@amwaljs/checkout-button 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (888) hide show
  1. package/README.md +1 -1
  2. package/dist/checkout/checkout.esm.js +1 -1
  3. package/dist/checkout/{p-c03b6161.entry.js → p-00045a8c.entry.js} +1 -1
  4. package/dist/checkout/p-01bbe74f.entry.js +1 -0
  5. package/dist/checkout/p-051412fa.entry.js +1 -0
  6. package/dist/checkout/p-09cbe586.entry.js +4 -0
  7. package/dist/checkout/{p-439ad699.entry.js → p-0a85a01f.entry.js} +2 -2
  8. package/dist/checkout/{p-d5652cd4.entry.js → p-0bbfeb3c.entry.js} +1 -1
  9. package/dist/checkout/{p-4ae1a390.entry.js → p-0d96b482.entry.js} +1 -1
  10. package/dist/checkout/{p-DUa_5Mmb.js → p-0f03cd28.js} +2 -2
  11. package/dist/checkout/p-104d7733.entry.js +1 -0
  12. package/dist/checkout/{p-8036cf49.entry.js → p-10ad151a.entry.js} +5 -5
  13. package/dist/checkout/p-112455b1.js +1 -0
  14. package/dist/checkout/p-11beffea.entry.js +1 -0
  15. package/dist/checkout/p-13245fd4.js +1 -0
  16. package/dist/checkout/p-13741a94.entry.js +1 -0
  17. package/dist/checkout/p-14ea2c82.entry.js +1 -0
  18. package/dist/checkout/p-167dc7a7.entry.js +4 -0
  19. package/dist/checkout/p-1a749b59.entry.js +1 -0
  20. package/dist/checkout/p-1c718939.entry.js +1 -0
  21. package/dist/checkout/{p-11205aeb.entry.js → p-1cbb13f2.entry.js} +1 -1
  22. package/dist/checkout/{p-46ff73b3.entry.js → p-20df5234.entry.js} +1 -1
  23. package/dist/checkout/p-24068b1c.entry.js +1 -0
  24. package/dist/checkout/{p-7006753a.entry.js → p-28ccecc7.entry.js} +2 -2
  25. package/dist/checkout/p-361649c3.js +4 -0
  26. package/dist/{components/p-DoR35tr_.js → checkout/p-39ad94cf.js} +2 -2
  27. package/dist/checkout/p-3b75b22a.js +5 -0
  28. package/dist/checkout/p-3b80783d.js +8 -0
  29. package/dist/checkout/p-3d3eefc3.js +4 -0
  30. package/dist/checkout/p-3e1e3453.js +4 -0
  31. package/dist/checkout/p-3e681e57.js +4 -0
  32. package/dist/checkout/{p-bf933eb6.entry.js → p-3e8da476.entry.js} +1 -1
  33. package/dist/checkout/{p-1dc08181.entry.js → p-4028c0d2.entry.js} +1 -1
  34. package/dist/checkout/p-44c91c42.entry.js +1 -0
  35. package/dist/checkout/p-464f5a60.entry.js +1 -0
  36. package/dist/checkout/p-46b7ee7f.entry.js +1 -0
  37. package/dist/checkout/p-48784250.entry.js +1 -0
  38. package/dist/{components/p-wiOwkFtc.js → checkout/p-4be20bf2.js} +1 -1
  39. package/dist/{components/p-Dl_WhQZu.js → checkout/p-4f78d3a0.js} +2 -2
  40. package/dist/checkout/{p-4da4ecc4.entry.js → p-529bce3f.entry.js} +1 -1
  41. package/dist/checkout/p-536a0294.js +4 -0
  42. package/dist/checkout/{p-eae2d3f2.entry.js → p-5eecd5ef.entry.js} +1 -1
  43. package/dist/checkout/p-64257c8d.entry.js +1 -0
  44. package/dist/checkout/{p-5903b3af.entry.js → p-64bd1dd3.entry.js} +1 -1
  45. package/dist/checkout/{p-9b7d7231.entry.js → p-68a4caba.entry.js} +1 -1
  46. package/dist/checkout/{p-978b3762.entry.js → p-69242ed6.entry.js} +1 -1
  47. package/dist/checkout/{p-62b7c8b0.entry.js → p-6d886d7e.entry.js} +1 -1
  48. package/dist/checkout/{p-ofaUly0p.js → p-6fa979e3.js} +2 -2
  49. package/dist/checkout/p-6fb474f3.entry.js +1 -0
  50. package/dist/checkout/p-77104220.js +7 -0
  51. package/dist/checkout/{p-aba43d04.entry.js → p-79ec3e4b.entry.js} +1 -1
  52. package/dist/checkout/{p-cd2c344b.entry.js → p-7b51bf67.entry.js} +2 -2
  53. package/dist/checkout/p-7f0004c9.js +4 -0
  54. package/dist/checkout/p-7fe50ab4.entry.js +1 -0
  55. package/dist/checkout/p-880b451c.entry.js +4 -0
  56. package/dist/checkout/p-886dad62.entry.js +1 -0
  57. package/dist/checkout/p-886e8746.entry.js +1 -0
  58. package/dist/checkout/p-88abdf59.js +4 -0
  59. package/dist/checkout/{p-f845e91b.entry.js → p-8a97a411.entry.js} +1 -1
  60. package/dist/checkout/p-8af3c6cc.entry.js +1 -0
  61. package/dist/checkout/{p-8b015c21.entry.js → p-8c022f5d.entry.js} +1 -1
  62. package/dist/checkout/{p-56e307eb.entry.js → p-91855eae.entry.js} +1 -1
  63. package/dist/checkout/{p-ca257d45.entry.js → p-9185e55b.entry.js} +1 -1
  64. package/dist/checkout/{p-4b34896c.entry.js → p-926eda98.entry.js} +1 -1
  65. package/dist/checkout/p-93e5b313.entry.js +4 -0
  66. package/dist/checkout/{p-4a86b731.entry.js → p-97024acb.entry.js} +1 -1
  67. package/dist/checkout/p-99e447f9.js +1 -0
  68. package/dist/{components/p-BgOwfqIY.js → checkout/p-9b519de5.js} +2 -2
  69. package/dist/checkout/{p-b8245f6a.entry.js → p-9b65a6e5.entry.js} +1 -1
  70. package/dist/checkout/{p-53ae9dd0.entry.js → p-9cc1fdfb.entry.js} +1 -1
  71. package/dist/checkout/{p-8fc1287a.entry.js → p-9f26fb71.entry.js} +1 -1
  72. package/dist/checkout/p-9f41a631.entry.js +1 -0
  73. package/dist/checkout/{p-5f005b5e.entry.js → p-a2ce8858.entry.js} +1 -1
  74. package/dist/checkout/{p-e4d0702d.entry.js → p-a3fca65c.entry.js} +1 -1
  75. package/dist/checkout/{p-d370e756.entry.js → p-a6056eb1.entry.js} +2 -2
  76. package/dist/checkout/{p-c929d6ea.entry.js → p-a7b2cbb9.entry.js} +1 -1
  77. package/dist/{components/p-Dwo-QLgs.js → checkout/p-ab16e6ce.js} +1 -1
  78. package/dist/checkout/{p-63db3363.entry.js → p-ab9a18c4.entry.js} +1 -1
  79. package/dist/checkout/p-b038db20.js +4 -0
  80. package/dist/checkout/p-b4ad8642.entry.js +1 -0
  81. package/dist/checkout/p-b4cf78ad.entry.js +1 -0
  82. package/dist/checkout/p-b7be2ec0.js +4 -0
  83. package/dist/checkout/p-b84d9e44.js +4 -0
  84. package/dist/{components/p-CwRU9ccI.js → checkout/p-b8fdd517.js} +1 -1
  85. package/dist/checkout/{p-d799009b.entry.js → p-b9d8ab12.entry.js} +1 -1
  86. package/dist/checkout/p-bb1f698e.js +4 -0
  87. package/dist/checkout/p-bd17be25.js +4 -0
  88. package/dist/checkout/p-bd4df0bc.entry.js +1 -0
  89. package/dist/checkout/p-c152bdea.js +4 -0
  90. package/dist/checkout/{p-f22v7XAM.js → p-c30e2b28.js} +2 -2
  91. package/dist/checkout/{p-c2296aa1.entry.js → p-c61a3d5d.entry.js} +1 -1
  92. package/dist/checkout/p-c6ee4bb6.entry.js +1 -0
  93. package/dist/checkout/p-c771a565.entry.js +1 -0
  94. package/dist/checkout/{p-3c9a8bee.entry.js → p-c82b2823.entry.js} +1 -1
  95. package/dist/checkout/p-c8f7d1b5.entry.js +1 -0
  96. package/dist/checkout/p-ceef30cd.entry.js +1 -0
  97. package/dist/checkout/p-d5733333.entry.js +1 -0
  98. package/dist/checkout/p-d5bba69c.entry.js +1 -0
  99. package/dist/checkout/p-d60b2328.js +4 -0
  100. package/dist/checkout/p-d60e05e2.entry.js +1 -0
  101. package/dist/checkout/p-d6b04157.entry.js +1 -0
  102. package/dist/checkout/p-d7a430bf.js +2 -0
  103. package/dist/checkout/{p-B3WORC1a.js → p-d839c693.js} +1 -1
  104. package/dist/checkout/{p-141f2eab.entry.js → p-d9dfb3ae.entry.js} +3 -3
  105. package/dist/checkout/p-dc51d318.js +5 -0
  106. package/dist/checkout/p-ddbe30b8.entry.js +1 -0
  107. package/dist/checkout/p-de418dd1.entry.js +1 -0
  108. package/dist/checkout/{p-b4000357.entry.js → p-defa5f72.entry.js} +2 -2
  109. package/dist/checkout/{p-b90c064e.entry.js → p-df0fa5e1.entry.js} +2 -2
  110. package/dist/checkout/{p-c8740acc.entry.js → p-e0f073f1.entry.js} +3 -3
  111. package/dist/checkout/p-e237d611.entry.js +1 -0
  112. package/dist/checkout/p-ea71fb8d.entry.js +1 -0
  113. package/dist/checkout/{p-95563c4c.entry.js → p-eda93a0b.entry.js} +1 -1
  114. package/dist/checkout/p-eee05053.entry.js +1 -0
  115. package/dist/checkout/{p-95431a73.entry.js → p-f8460dc4.entry.js} +1 -1
  116. package/dist/checkout/p-f875507d.entry.js +1 -0
  117. package/dist/checkout/p-faf06441.js +4 -0
  118. package/dist/checkout/p-fb147065.entry.js +1 -0
  119. package/dist/checkout/{p-af32124b.entry.js → p-fb45cdd1.entry.js} +1 -1
  120. package/dist/cjs/_commonjsHelpers-537d719a.js +20 -0
  121. package/dist/cjs/amwal-checkout-button_5.cjs.entry.js +1298 -2881
  122. package/dist/cjs/amwal-installments-guide.cjs.entry.js +42 -43
  123. package/dist/cjs/amwal-pos.cjs.entry.js +3180 -3452
  124. package/dist/cjs/amwal-widget-modal.cjs.entry.js +162 -175
  125. package/dist/cjs/amwal-widget.cjs.entry.js +314 -343
  126. package/dist/cjs/{animation-BhN-MT4J.js → animation-26241cb2.js} +2 -2
  127. package/dist/cjs/{app-globals-NtXImkuk.js → app-globals-42a13029.js} +1 -1
  128. package/dist/cjs/{ar-CbT6TM-Q.js → ar-3a6829a4.js} +10 -4
  129. package/dist/cjs/{capacitor-CqhugS19.js → capacitor-a9365f60.js} +1 -1
  130. package/dist/cjs/checkout.cjs.js +19 -16
  131. package/dist/cjs/{data-UgkxeXMB.js → data-19081291.js} +1 -1
  132. package/dist/cjs/{form-controller-DRf0gBOg.js → form-controller-3ffb27b1.js} +1 -1
  133. package/dist/cjs/{framework-delegate-D-6PUvOi.js → framework-delegate-ab2cc190.js} +1 -1
  134. package/dist/cjs/{gesture-controller-IMq9Cgi2.js → gesture-controller-b1c0efac.js} +1 -1
  135. package/dist/cjs/{haptic-CC9tl6g8.js → haptic-80174512.js} +1 -1
  136. package/dist/cjs/{hardware-back-button-C2D2eOk8.js → hardware-back-button-ddfefd22.js} +3 -3
  137. package/dist/cjs/{helpers-B4vhh9gt.js → helpers-72ba682d.js} +4 -1
  138. package/dist/cjs/i18n-18ad02d5.js +13 -0
  139. package/dist/cjs/{index-CKcQE8Zg.js → index-0d0b84fb.js} +4 -3
  140. package/dist/cjs/{index-6eOg4xTk.js → index-2602a653.js} +0 -1
  141. package/dist/cjs/{index-DZA7ogU0.js → index-2cd1a895.js} +4 -4
  142. package/dist/cjs/index-7522b3a9.js +2256 -0
  143. package/dist/cjs/{index-bc_r9XRf.js → index-9b7d2c31.js} +9 -9
  144. package/dist/cjs/{index-q1ImtF5k.js → index-ce06e6a3.js} +3 -3
  145. package/dist/cjs/{index-XMjUjboS.js → index-da554121.js} +3 -3
  146. package/dist/cjs/{input-shims-CCRbO2DB.js → input-shims-1a8ed779.js} +6 -6
  147. package/dist/cjs/{input.utils-CyVgmmWQ.js → input.utils-67143876.js} +3 -3
  148. package/dist/cjs/ion-accordion-group.cjs.entry.js +199 -203
  149. package/dist/cjs/ion-accordion.cjs.entry.js +305 -305
  150. package/dist/cjs/ion-action-sheet_3.cjs.entry.js +695 -705
  151. package/dist/cjs/ion-app.cjs.entry.js +95 -93
  152. package/dist/cjs/ion-avatar.cjs.entry.js +14 -12
  153. package/dist/cjs/ion-back-button.cjs.entry.js +78 -76
  154. package/dist/cjs/ion-backdrop.cjs.entry.js +44 -42
  155. package/dist/cjs/ion-badge.cjs.entry.js +19 -17
  156. package/dist/cjs/ion-breadcrumb.cjs.entry.js +86 -84
  157. package/dist/cjs/ion-breadcrumbs.cjs.entry.js +120 -124
  158. package/dist/cjs/ion-buttons_3.cjs.entry.js +822 -822
  159. package/dist/cjs/ion-card-content.cjs.entry.js +19 -17
  160. package/dist/cjs/ion-card-header.cjs.entry.js +22 -20
  161. package/dist/cjs/ion-card-subtitle.cjs.entry.js +20 -18
  162. package/dist/cjs/ion-card-title.cjs.entry.js +20 -18
  163. package/dist/cjs/ion-card.cjs.entry.js +55 -53
  164. package/dist/cjs/ion-checkbox_7.cjs.entry.js +862 -882
  165. package/dist/cjs/ion-chip.cjs.entry.js +24 -22
  166. package/dist/cjs/ion-col.cjs.entry.js +110 -108
  167. package/dist/cjs/ion-content.cjs.entry.js +376 -374
  168. package/dist/cjs/ion-datetime-button.cjs.entry.js +330 -328
  169. package/dist/cjs/ion-datetime.cjs.entry.js +1547 -1567
  170. package/dist/cjs/ion-fab-button.cjs.entry.js +78 -76
  171. package/dist/cjs/ion-fab-list.cjs.entry.js +31 -31
  172. package/dist/cjs/ion-fab.cjs.entry.js +58 -58
  173. package/dist/cjs/ion-footer.cjs.entry.js +94 -92
  174. package/dist/cjs/ion-grid.cjs.entry.js +17 -15
  175. package/dist/cjs/ion-header.cjs.entry.js +143 -141
  176. package/dist/cjs/ion-icon.cjs.entry.js +104 -112
  177. package/dist/cjs/ion-img.cjs.entry.js +83 -83
  178. package/dist/cjs/ion-infinite-scroll-content.cjs.entry.js +34 -32
  179. package/dist/cjs/ion-infinite-scroll.cjs.entry.js +174 -176
  180. package/dist/cjs/ion-input.cjs.entry.js +447 -453
  181. package/dist/cjs/ion-item-divider.cjs.entry.js +23 -21
  182. package/dist/cjs/ion-item-group.cjs.entry.js +20 -18
  183. package/dist/cjs/ion-item-option.cjs.entry.js +45 -43
  184. package/dist/cjs/ion-item-options.cjs.entry.js +40 -38
  185. package/dist/cjs/ion-item-sliding.cjs.entry.js +391 -391
  186. package/dist/cjs/ion-loading.cjs.entry.js +162 -164
  187. package/dist/cjs/ion-menu-button.cjs.entry.js +60 -58
  188. package/dist/cjs/ion-menu-toggle.cjs.entry.js +36 -34
  189. package/dist/cjs/ion-menu.cjs.entry.js +606 -612
  190. package/dist/cjs/ion-modal.cjs.entry.js +551 -553
  191. package/dist/cjs/ion-nav-link.cjs.entry.js +17 -15
  192. package/dist/cjs/ion-nav.cjs.entry.js +823 -825
  193. package/dist/cjs/ion-note.cjs.entry.js +19 -17
  194. package/dist/cjs/ion-picker-column.cjs.entry.js +327 -327
  195. package/dist/cjs/ion-picker.cjs.entry.js +198 -200
  196. package/dist/cjs/ion-popover.cjs.entry.js +326 -330
  197. package/dist/cjs/ion-progress-bar.cjs.entry.js +44 -42
  198. package/dist/cjs/ion-range.cjs.entry.js +644 -654
  199. package/dist/cjs/ion-refresher-content.cjs.entry.js +53 -51
  200. package/dist/cjs/ion-refresher.cjs.entry.js +586 -586
  201. package/dist/cjs/ion-reorder-group.cjs.entry.js +252 -252
  202. package/dist/cjs/ion-reorder.cjs.entry.js +26 -24
  203. package/dist/cjs/ion-route-redirect.cjs.entry.js +19 -21
  204. package/dist/cjs/ion-route.cjs.entry.js +37 -41
  205. package/dist/cjs/ion-router-link.cjs.entry.js +31 -29
  206. package/dist/cjs/ion-router-outlet.cjs.entry.js +178 -178
  207. package/dist/cjs/ion-router.cjs.entry.js +266 -264
  208. package/dist/cjs/ion-row.cjs.entry.js +12 -10
  209. package/dist/cjs/ion-searchbar.cjs.entry.js +388 -396
  210. package/dist/cjs/ion-segment-button.cjs.entry.js +96 -96
  211. package/dist/cjs/ion-segment.cjs.entry.js +414 -420
  212. package/dist/cjs/ion-select-option.cjs.entry.js +16 -14
  213. package/dist/cjs/ion-select.cjs.entry.js +693 -699
  214. package/dist/cjs/ion-skeleton-text.cjs.entry.js +35 -33
  215. package/dist/cjs/ion-spinner.cjs.entry.js +50 -48
  216. package/dist/cjs/ion-split-pane.cjs.entry.js +120 -124
  217. package/dist/cjs/ion-tab-bar.cjs.entry.js +66 -66
  218. package/dist/cjs/ion-tab-button.cjs.entry.js +82 -80
  219. package/dist/cjs/ion-tab.cjs.entry.js +50 -50
  220. package/dist/cjs/ion-tabs.cjs.entry.js +134 -132
  221. package/dist/cjs/ion-textarea.cjs.entry.js +396 -400
  222. package/dist/cjs/ion-thumbnail.cjs.entry.js +12 -10
  223. package/dist/cjs/ion-title.cjs.entry.js +43 -43
  224. package/dist/cjs/ion-toast.cjs.entry.js +371 -375
  225. package/dist/cjs/ion-toggle.cjs.entry.js +230 -230
  226. package/dist/cjs/ion-toolbar.cjs.entry.js +61 -59
  227. package/dist/cjs/{ionic-global-DRLi5Iq3.js → ionic-global-3915f1f1.js} +55 -58
  228. package/dist/cjs/{ios.transition-D4vyO_a_.js → ios.transition-b9c0b967.js} +5 -5
  229. package/dist/cjs/{keyboard-iyHR2ZF4.js → keyboard-5d4b83b3.js} +3 -3
  230. package/dist/cjs/{keyboard-DuKzsHsS.js → keyboard-bc8ebbf7.js} +1 -1
  231. package/dist/cjs/{keyboard-controller-rH21qC_2.js → keyboard-controller-c6633754.js} +2 -2
  232. package/dist/cjs/loader.cjs.js +19 -8
  233. package/dist/cjs/{md.transition-Dkxy3kpE.js → md.transition-830acbb7.js} +5 -5
  234. package/dist/cjs/{menu-toggle-util-CmPuayU0.js → menu-toggle-util-315c26b3.js} +1 -1
  235. package/dist/cjs/{notch-controller-Dtpow1eD.js → notch-controller-dcf09601.js} +2 -2
  236. package/dist/cjs/{overlays-Bc8tk6t5.js → overlays-08819e3f.js} +6 -6
  237. package/dist/cjs/{refresher.utils-CPl6gciv.js → refresher.utils-e41509f7.js} +3 -3
  238. package/dist/cjs/{status-tap-XtIhF72O.js → status-tap-ec021cb4.js} +4 -4
  239. package/dist/cjs/{swipe-back-C9j0kufI.js → swipe-back-3d3a5129.js} +4 -4
  240. package/dist/collection/collection-manifest.json +8 -8
  241. package/dist/collection/components/amwal-checkout-button/amwal-checkout-button.js +1714 -1888
  242. package/dist/collection/components/amwal-checkout-button/amwal-checkout-button.stories.js +84 -84
  243. package/dist/collection/components/amwal-installments-guide/amwal-installments-guide.js +75 -80
  244. package/dist/collection/components/amwal-installments-guide/amwal-installments-guide.stories.js +25 -25
  245. package/dist/collection/components/amwal-installments-timeline/amwal-installments-timeline.js +506 -569
  246. package/dist/collection/components/amwal-installments-timeline/amwal-installments-timeline.stories.js +80 -80
  247. package/dist/collection/components/amwal-pos/amwal-pos.js +1022 -1094
  248. package/dist/collection/components/amwal-pos/amwal-pos.stories.js +209 -209
  249. package/dist/collection/components/amwal-widget/amwal-widget-modal.js +326 -350
  250. package/dist/collection/components/amwal-widget/amwal-widget.js +673 -736
  251. package/dist/collection/components/amwal-widget/amwal-widget.stories.js +184 -184
  252. package/dist/collection/lang/i18n.js +7 -7
  253. package/dist/components/amwal-checkout-button.d.ts +2 -2
  254. package/dist/components/amwal-checkout-button.js +3811 -1
  255. package/dist/components/amwal-installments-guide.d.ts +2 -2
  256. package/dist/components/amwal-installments-guide.js +75 -1
  257. package/dist/components/amwal-installments-timeline.d.ts +2 -2
  258. package/dist/components/amwal-installments-timeline.js +6 -1
  259. package/dist/components/amwal-pos.d.ts +2 -2
  260. package/dist/components/amwal-pos.js +3391 -1
  261. package/dist/components/amwal-widget-modal.d.ts +2 -2
  262. package/dist/components/amwal-widget-modal.js +6 -1
  263. package/dist/components/amwal-widget.d.ts +2 -2
  264. package/dist/components/amwal-widget.js +389 -1
  265. package/dist/components/index.d.ts +0 -6
  266. package/dist/components/index.js +6 -1
  267. package/dist/components/ion-accordion-group.js +248 -1
  268. package/dist/components/ion-accordion.js +353 -1
  269. package/dist/components/ion-action-sheet.js +6 -1
  270. package/dist/components/ion-alert.js +6 -1
  271. package/dist/components/ion-app.js +125 -1
  272. package/dist/components/ion-avatar.js +39 -1
  273. package/dist/components/ion-back-button.js +127 -1
  274. package/dist/components/ion-backdrop.js +6 -1
  275. package/dist/components/ion-badge.js +46 -1
  276. package/dist/components/ion-breadcrumb.js +131 -1
  277. package/dist/components/ion-breadcrumbs.js +152 -1
  278. package/dist/components/ion-button.js +6 -1
  279. package/dist/components/ion-buttons.js +6 -1
  280. package/dist/components/ion-card-content.js +43 -1
  281. package/dist/components/ion-card-header.js +50 -1
  282. package/dist/components/ion-card-subtitle.js +47 -1
  283. package/dist/components/ion-card-title.js +47 -1
  284. package/dist/components/ion-card.js +98 -1
  285. package/dist/components/ion-checkbox.js +6 -1
  286. package/dist/components/ion-chip.js +59 -1
  287. package/dist/components/ion-col.js +186 -2
  288. package/dist/components/ion-content.js +440 -1
  289. package/dist/components/ion-datetime-button.js +378 -1
  290. package/dist/components/ion-datetime.js +1961 -2
  291. package/dist/components/ion-fab-button.js +130 -1
  292. package/dist/components/ion-fab-list.js +56 -1
  293. package/dist/components/ion-fab.js +90 -1
  294. package/dist/components/ion-footer.js +152 -2
  295. package/dist/components/ion-grid.js +41 -1
  296. package/dist/components/ion-header.js +356 -2
  297. package/dist/components/ion-icon.js +6 -1
  298. package/dist/components/ion-img.js +124 -1
  299. package/dist/components/ion-infinite-scroll-content.js +69 -1
  300. package/dist/components/ion-infinite-scroll.js +209 -1
  301. package/dist/components/ion-input.js +564 -1
  302. package/dist/components/ion-item-divider.js +51 -1
  303. package/dist/components/ion-item-group.js +44 -1
  304. package/dist/components/ion-item-option.js +85 -1
  305. package/dist/components/ion-item-options.js +67 -1
  306. package/dist/components/ion-item-sliding.js +449 -1
  307. package/dist/components/ion-item.js +6 -1
  308. package/dist/components/ion-label.js +6 -1
  309. package/dist/components/ion-list-header.js +6 -1
  310. package/dist/components/ion-list.js +6 -1
  311. package/dist/components/ion-loading.js +325 -3
  312. package/dist/components/ion-menu-button.js +100 -1
  313. package/dist/components/ion-menu-toggle.js +57 -1
  314. package/dist/components/ion-menu.js +679 -1
  315. package/dist/components/ion-modal.js +1775 -3
  316. package/dist/components/ion-nav-link.js +63 -2
  317. package/dist/components/ion-nav.js +945 -2
  318. package/dist/components/ion-note.js +6 -1
  319. package/dist/components/ion-picker-column-internal.js +6 -1
  320. package/dist/components/ion-picker-column.js +6 -1
  321. package/dist/components/ion-picker-internal.js +6 -1
  322. package/dist/components/ion-picker.js +317 -3
  323. package/dist/components/ion-popover.js +6 -1
  324. package/dist/components/ion-progress-bar.js +79 -1
  325. package/dist/components/ion-radio-group.js +6 -1
  326. package/dist/components/ion-radio.js +6 -1
  327. package/dist/components/ion-range.js +778 -2
  328. package/dist/components/ion-refresher-content.js +90 -1
  329. package/dist/components/ion-refresher.js +652 -1
  330. package/dist/components/ion-reorder-group.js +300 -1
  331. package/dist/components/ion-reorder.js +58 -1
  332. package/dist/components/ion-ripple-effect.js +6 -1
  333. package/dist/components/ion-route-redirect.js +42 -1
  334. package/dist/components/ion-route.js +66 -1
  335. package/dist/components/ion-router-link.js +60 -1
  336. package/dist/components/ion-router-outlet.js +219 -1
  337. package/dist/components/ion-router.js +833 -3
  338. package/dist/components/ion-row.js +34 -1
  339. package/dist/components/ion-searchbar.js +472 -1
  340. package/dist/components/ion-segment-button.js +139 -1
  341. package/dist/components/ion-segment.js +472 -1
  342. package/dist/components/ion-select-option.js +42 -1
  343. package/dist/components/ion-select-popover.js +6 -1
  344. package/dist/components/ion-select.js +864 -1
  345. package/dist/components/ion-skeleton-text.js +59 -1
  346. package/dist/components/ion-spinner.js +6 -1
  347. package/dist/components/ion-split-pane.js +166 -1
  348. package/dist/components/ion-tab-bar.js +95 -1
  349. package/dist/components/ion-tab-button.js +125 -1
  350. package/dist/components/ion-tab.js +80 -1
  351. package/dist/components/ion-tabs.js +176 -1
  352. package/dist/components/ion-text.js +6 -1
  353. package/dist/components/ion-textarea.js +496 -1
  354. package/dist/components/ion-thumbnail.js +34 -1
  355. package/dist/components/ion-title.js +71 -1
  356. package/dist/components/ion-toast.js +914 -3
  357. package/dist/components/ion-toggle.js +282 -1
  358. package/dist/components/ion-toolbar.js +91 -1
  359. package/dist/components/p-01b49f83.js +269 -0
  360. package/dist/{esm/ios.transition-DMsViooj.js → components/p-02b77441.js} +2 -5
  361. package/dist/components/p-02bc6b21.js +203 -0
  362. package/dist/components/p-031ed92d.js +389 -0
  363. package/dist/components/p-03803c7d.js +369 -0
  364. package/dist/components/p-089e034e.js +234 -0
  365. package/dist/components/p-0dc7a5ff.js +512 -0
  366. package/dist/components/p-110f8490.js +566 -0
  367. package/dist/components/p-112455b1.js +17 -0
  368. package/dist/{esm/index-BMJhFU53.js → components/p-1596e301.js} +4 -4
  369. package/dist/components/p-1785e30a.js +318 -0
  370. package/dist/{esm/helpers-C6kqtbmV.js → components/p-2bb89b46.js} +5 -2
  371. package/dist/components/p-2d7d745d.js +224 -0
  372. package/dist/components/p-2fc99fef.js +262 -0
  373. package/dist/{esm/input-shims-DSFPFhb7.js → components/p-3296ebd9.js} +4 -6
  374. package/dist/{esm/data-Cl-_yBA0.js → components/p-39ad94cf.js} +2 -2
  375. package/dist/{esm/capacitor-CG3xQUND.js → components/p-3d3eefc3.js} +1 -1
  376. package/dist/{esm/form-controller-xetTxjL6.js → components/p-3e1d2896.js} +1 -1
  377. package/dist/{esm/keyboard-controller-CqGCg8tB.js → components/p-3e1e3453.js} +2 -2
  378. package/dist/{esm/md.transition-BQT2r4ED.js → components/p-503328f2.js} +2 -5
  379. package/dist/components/p-51c44f42.js +98 -0
  380. package/dist/components/p-5280b372.js +42 -0
  381. package/dist/{esm/index-DuUXGZp2.js → components/p-53e2dbe4.js} +3 -3
  382. package/dist/components/p-5441c730.js +851 -0
  383. package/dist/{esm/refresher.utils-D4tPnZsM.js → components/p-74e68924.js} +4 -4
  384. package/dist/{esm/framework-delegate-D_uGiYYw.js → components/p-76525f0f.js} +1 -1
  385. package/dist/{esm/index-CcopIPA0.js → components/p-77104220.js} +6 -4
  386. package/dist/components/p-77ccb793.js +185 -0
  387. package/dist/components/p-83e529db.js +380 -0
  388. package/dist/{esm/animation-DRf3dwMu.js → components/p-89c4c5cb.js} +2 -2
  389. package/dist/components/p-8b3d1e06.js +67 -0
  390. package/dist/components/p-901c16c5.js +210 -0
  391. package/dist/components/p-93e2a608.js +374 -0
  392. package/dist/components/p-95c79593.js +43 -0
  393. package/dist/components/p-96073863.js +82 -0
  394. package/dist/components/p-99e447f9.js +13 -0
  395. package/dist/{esm/keyboard-DgiyREKb.js → components/p-9b519de5.js} +1 -1
  396. package/dist/{esm/input.utils-BuIvhxo3.js → components/p-9d350d61.js} +3 -3
  397. package/dist/{esm/notch-controller-CQeDnZLe.js → components/p-9df67c24.js} +2 -2
  398. package/dist/components/p-a0e691dd.js +39 -0
  399. package/dist/components/p-ab10d1ae.js +47 -0
  400. package/dist/components/p-abc01c5d.js +194 -0
  401. package/dist/components/p-abd248d1.js +196 -0
  402. package/dist/{esm/haptic-D5jGzBs8.js → components/p-af073aaf.js} +2 -2
  403. package/dist/{esm/swipe-back-DE05lWQD.js → components/p-b32529b9.js} +3 -4
  404. package/dist/{esm/index-C75BfBAE.js → components/p-b8fdd517.js} +1 -2
  405. package/dist/components/p-cebc113f.js +38 -0
  406. package/dist/components/p-d25fd077.js +331 -0
  407. package/dist/{esm/menu-toggle-util-wdO31cdC.js → components/p-d3596f64.js} +1 -1
  408. package/dist/{esm/keyboard-DcbqYXj5.js → components/p-d60b2328.js} +1 -3
  409. package/dist/components/p-d69dc32f.js +97 -0
  410. package/dist/{esm/hardware-back-button-CzxcJiYO.js → components/p-d72e8d7b.js} +2 -3
  411. package/dist/{esm/ar-B3WORC1a.js → components/p-d839c693.js} +12 -5
  412. package/dist/{esm/index-D8d_89Nl.js → components/p-e187a77c.js} +1 -1
  413. package/dist/components/p-e65ea9fb.js +1379 -0
  414. package/dist/components/p-ec0e3f3f.js +2040 -0
  415. package/dist/components/p-ecb4db1c.js +64 -0
  416. package/dist/{esm/gesture-controller-CukVBo5-.js → components/p-f728a68f.js} +1 -1
  417. package/dist/components/p-f7e3c502.js +73 -0
  418. package/dist/components/p-fe463a42.js +272 -0
  419. package/dist/esm/_commonjsHelpers-9943807e.js +17 -0
  420. package/dist/esm/amwal-checkout-button_5.entry.js +1296 -2881
  421. package/dist/esm/amwal-installments-guide.entry.js +40 -43
  422. package/dist/esm/amwal-pos.entry.js +3178 -3452
  423. package/dist/esm/amwal-widget-modal.entry.js +160 -175
  424. package/dist/esm/amwal-widget.entry.js +312 -343
  425. package/dist/esm/animation-a6d5c3b1.js +1063 -0
  426. package/dist/esm/{app-globals-BHnkZZiH.js → app-globals-c817b28b.js} +1 -1
  427. package/dist/esm/ar-7d2629bf.js +51 -0
  428. package/dist/esm/capacitor-ba4337da.js +13 -0
  429. package/dist/esm/checkout.js +18 -16
  430. package/dist/esm/config-8e06237c.js +171 -0
  431. package/dist/esm/cubic-bezier-874f336d.js +90 -0
  432. package/dist/esm/data-8916315d.js +1628 -0
  433. package/dist/esm/dir-1d4aa386.js +18 -0
  434. package/dist/esm/focus-visible-32968d3d.js +75 -0
  435. package/dist/esm/form-controller-b1aa7393.js +64 -0
  436. package/dist/esm/framework-delegate-de1aa369.js +140 -0
  437. package/dist/esm/gesture-controller-58ffa500.js +195 -0
  438. package/dist/esm/haptic-4d4d8eb1.js +206 -0
  439. package/dist/esm/hardware-back-button-f93acff0.js +116 -0
  440. package/dist/esm/helpers-f0dcbd72.js +418 -0
  441. package/dist/esm/i18n-53f85411.js +13 -0
  442. package/dist/esm/{index-CNcx43L8.js → index-0b560278.js} +4 -4
  443. package/dist/esm/index-5894dd63.js +196 -0
  444. package/dist/esm/{index-DUF6JAQL.js → index-5a126e54.js} +6 -6
  445. package/dist/esm/index-5e663431.js +128 -0
  446. package/dist/esm/index-8cc94b11.js +2219 -0
  447. package/dist/esm/index-afdf867c.js +26 -0
  448. package/dist/esm/index-d9b41a43.js +34 -0
  449. package/dist/esm/index-f6dce931.js +466 -0
  450. package/dist/esm/index-fb97e55c.js +7 -0
  451. package/dist/esm/input-shims-75d4750d.js +617 -0
  452. package/dist/esm/input.utils-79bde07f.js +138 -0
  453. package/dist/esm/ion-accordion-group.entry.js +197 -203
  454. package/dist/esm/ion-accordion.entry.js +303 -305
  455. package/dist/esm/ion-action-sheet_3.entry.js +693 -705
  456. package/dist/esm/ion-app.entry.js +93 -93
  457. package/dist/esm/ion-avatar.entry.js +12 -12
  458. package/dist/esm/ion-back-button.entry.js +76 -76
  459. package/dist/esm/ion-backdrop.entry.js +42 -42
  460. package/dist/esm/ion-badge.entry.js +17 -17
  461. package/dist/esm/ion-breadcrumb.entry.js +84 -84
  462. package/dist/esm/ion-breadcrumbs.entry.js +118 -124
  463. package/dist/esm/ion-buttons_3.entry.js +820 -822
  464. package/dist/esm/ion-card-content.entry.js +17 -17
  465. package/dist/esm/ion-card-header.entry.js +20 -20
  466. package/dist/esm/ion-card-subtitle.entry.js +18 -18
  467. package/dist/esm/ion-card-title.entry.js +18 -18
  468. package/dist/esm/ion-card.entry.js +53 -53
  469. package/dist/esm/ion-checkbox_7.entry.js +860 -882
  470. package/dist/esm/ion-chip.entry.js +22 -22
  471. package/dist/esm/ion-col.entry.js +108 -108
  472. package/dist/esm/ion-content.entry.js +374 -374
  473. package/dist/esm/ion-datetime-button.entry.js +328 -328
  474. package/dist/esm/ion-datetime.entry.js +1545 -1567
  475. package/dist/esm/ion-fab-button.entry.js +76 -76
  476. package/dist/esm/ion-fab-list.entry.js +29 -31
  477. package/dist/esm/ion-fab.entry.js +56 -58
  478. package/dist/esm/ion-footer.entry.js +92 -92
  479. package/dist/esm/ion-grid.entry.js +15 -15
  480. package/dist/esm/ion-header.entry.js +141 -141
  481. package/dist/esm/ion-icon.entry.js +102 -112
  482. package/dist/esm/ion-img.entry.js +81 -83
  483. package/dist/esm/ion-infinite-scroll-content.entry.js +32 -32
  484. package/dist/esm/ion-infinite-scroll.entry.js +172 -176
  485. package/dist/esm/ion-input.entry.js +445 -453
  486. package/dist/esm/ion-item-divider.entry.js +21 -21
  487. package/dist/esm/ion-item-group.entry.js +18 -18
  488. package/dist/esm/ion-item-option.entry.js +43 -43
  489. package/dist/esm/ion-item-options.entry.js +38 -38
  490. package/dist/esm/ion-item-sliding.entry.js +389 -391
  491. package/dist/esm/ion-loading.entry.js +160 -164
  492. package/dist/esm/ion-menu-button.entry.js +58 -58
  493. package/dist/esm/ion-menu-toggle.entry.js +34 -34
  494. package/dist/esm/ion-menu.entry.js +604 -612
  495. package/dist/esm/ion-modal.entry.js +549 -553
  496. package/dist/esm/ion-nav-link.entry.js +15 -15
  497. package/dist/esm/ion-nav.entry.js +821 -825
  498. package/dist/esm/ion-note.entry.js +17 -17
  499. package/dist/esm/ion-picker-column.entry.js +325 -327
  500. package/dist/esm/ion-picker.entry.js +196 -200
  501. package/dist/esm/ion-popover.entry.js +324 -330
  502. package/dist/esm/ion-progress-bar.entry.js +42 -42
  503. package/dist/esm/ion-range.entry.js +642 -654
  504. package/dist/esm/ion-refresher-content.entry.js +51 -51
  505. package/dist/esm/ion-refresher.entry.js +584 -586
  506. package/dist/esm/ion-reorder-group.entry.js +250 -252
  507. package/dist/esm/ion-reorder.entry.js +24 -24
  508. package/dist/esm/ion-route-redirect.entry.js +17 -21
  509. package/dist/esm/ion-route.entry.js +35 -41
  510. package/dist/esm/ion-router-link.entry.js +29 -29
  511. package/dist/esm/ion-router-outlet.entry.js +176 -178
  512. package/dist/esm/ion-router.entry.js +264 -264
  513. package/dist/esm/ion-row.entry.js +10 -10
  514. package/dist/esm/ion-searchbar.entry.js +386 -396
  515. package/dist/esm/ion-segment-button.entry.js +94 -96
  516. package/dist/esm/ion-segment.entry.js +412 -420
  517. package/dist/esm/ion-select-option.entry.js +14 -14
  518. package/dist/esm/ion-select.entry.js +691 -699
  519. package/dist/esm/ion-skeleton-text.entry.js +33 -33
  520. package/dist/esm/ion-spinner.entry.js +48 -48
  521. package/dist/esm/ion-split-pane.entry.js +118 -124
  522. package/dist/esm/ion-tab-bar.entry.js +64 -66
  523. package/dist/esm/ion-tab-button.entry.js +80 -80
  524. package/dist/esm/ion-tab.entry.js +48 -50
  525. package/dist/esm/ion-tabs.entry.js +132 -132
  526. package/dist/esm/ion-textarea.entry.js +394 -400
  527. package/dist/esm/ion-thumbnail.entry.js +10 -10
  528. package/dist/esm/ion-title.entry.js +41 -43
  529. package/dist/esm/ion-toast.entry.js +369 -375
  530. package/dist/esm/ion-toggle.entry.js +228 -230
  531. package/dist/esm/ion-toolbar.entry.js +59 -59
  532. package/dist/esm/{ionic-global-DXXzPLPc.js → ionic-global-0b7766cb.js} +55 -58
  533. package/dist/esm/ios.transition-22fb53bc.js +651 -0
  534. package/dist/esm/keyboard-1f073554.js +82 -0
  535. package/dist/esm/keyboard-96b6e80b.js +146 -0
  536. package/dist/esm/keyboard-controller-5a2f625f.js +165 -0
  537. package/dist/esm/loader.js +17 -8
  538. package/dist/esm/lock-controller-632e3c10.js +38 -0
  539. package/dist/esm/md.transition-f6ff9834.js +57 -0
  540. package/dist/esm/menu-toggle-util-594849ff.js +12 -0
  541. package/dist/esm/notch-controller-d511b3b3.js +153 -0
  542. package/dist/esm/{overlays-SBLrmFy6.js → overlays-642a91df.js} +7 -7
  543. package/dist/esm/polyfills/core-js.js +11 -0
  544. package/dist/esm/polyfills/css-shim.js +1 -0
  545. package/dist/esm/polyfills/dom.js +79 -0
  546. package/dist/esm/polyfills/es5-html-element.js +1 -0
  547. package/dist/esm/polyfills/index.js +34 -0
  548. package/dist/esm/polyfills/system.js +6 -0
  549. package/dist/esm/refresher.utils-19137568.js +196 -0
  550. package/dist/esm/{status-tap-CjxQA4Bj.js → status-tap-bb6959a8.js} +4 -4
  551. package/dist/esm/swipe-back-6cec4c33.js +79 -0
  552. package/dist/esm/theme-35c700b7.js +43 -0
  553. package/dist/esm/watch-options-7bf43687.js +47 -0
  554. package/dist/node_modules/@ionic/core/dist/collection/components/accordion/accordion.ios.css +193 -0
  555. package/dist/node_modules/@ionic/core/dist/collection/components/accordion/accordion.md.css +135 -0
  556. package/dist/node_modules/@ionic/core/dist/collection/components/accordion-group/accordion-group.ios.css +127 -0
  557. package/dist/node_modules/@ionic/core/dist/collection/components/accordion-group/accordion-group.md.css +229 -0
  558. package/dist/node_modules/@ionic/core/dist/collection/components/action-sheet/action-sheet.ios.css +456 -0
  559. package/dist/node_modules/@ionic/core/dist/collection/components/action-sheet/action-sheet.md.css +384 -0
  560. package/dist/node_modules/@ionic/core/dist/collection/components/alert/alert.ios.css +755 -0
  561. package/dist/node_modules/@ionic/core/dist/collection/components/alert/alert.md.css +770 -0
  562. package/dist/node_modules/@ionic/core/dist/collection/components/app/app.css +17 -0
  563. package/dist/node_modules/@ionic/core/dist/collection/components/avatar/avatar.ios.css +132 -0
  564. package/dist/node_modules/@ionic/core/dist/collection/components/avatar/avatar.md.css +132 -0
  565. package/dist/node_modules/@ionic/core/dist/collection/components/back-button/back-button.ios.css +372 -0
  566. package/dist/node_modules/@ionic/core/dist/collection/components/back-button/back-button.md.css +385 -0
  567. package/dist/node_modules/@ionic/core/dist/collection/components/backdrop/backdrop.ios.css +136 -0
  568. package/dist/node_modules/@ionic/core/dist/collection/components/backdrop/backdrop.md.css +136 -0
  569. package/dist/node_modules/@ionic/core/dist/collection/components/badge/badge.ios.css +168 -0
  570. package/dist/node_modules/@ionic/core/dist/collection/components/badge/badge.md.css +164 -0
  571. package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumb/breadcrumb.ios.css +326 -0
  572. package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumb/breadcrumb.md.css +310 -0
  573. package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumbs/breadcrumbs.ios.css +81 -0
  574. package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumbs/breadcrumbs.md.css +80 -0
  575. package/dist/node_modules/@ionic/core/dist/collection/components/button/button.ios.css +596 -0
  576. package/dist/node_modules/@ionic/core/dist/collection/components/button/button.md.css +517 -0
  577. package/dist/node_modules/@ionic/core/dist/collection/components/buttons/buttons.ios.css +279 -0
  578. package/dist/node_modules/@ionic/core/dist/collection/components/buttons/buttons.md.css +299 -0
  579. package/dist/node_modules/@ionic/core/dist/collection/components/card/card.ios.css +203 -0
  580. package/dist/node_modules/@ionic/core/dist/collection/components/card/card.md.css +198 -0
  581. package/dist/node_modules/@ionic/core/dist/collection/components/card-content/card-content.ios.css +163 -0
  582. package/dist/node_modules/@ionic/core/dist/collection/components/card-content/card-content.md.css +165 -0
  583. package/dist/node_modules/@ionic/core/dist/collection/components/card-header/card-header.ios.css +141 -0
  584. package/dist/node_modules/@ionic/core/dist/collection/components/card-header/card-header.md.css +138 -0
  585. package/dist/node_modules/@ionic/core/dist/collection/components/card-subtitle/card-subtitle.ios.css +138 -0
  586. package/dist/node_modules/@ionic/core/dist/collection/components/card-subtitle/card-subtitle.md.css +136 -0
  587. package/dist/node_modules/@ionic/core/dist/collection/components/card-title/card-title.ios.css +137 -0
  588. package/dist/node_modules/@ionic/core/dist/collection/components/card-title/card-title.md.css +137 -0
  589. package/dist/node_modules/@ionic/core/dist/collection/components/checkbox/checkbox.ios.css +536 -0
  590. package/dist/node_modules/@ionic/core/dist/collection/components/checkbox/checkbox.md.css +552 -0
  591. package/dist/node_modules/@ionic/core/dist/collection/components/chip/chip.ios.css +212 -0
  592. package/dist/node_modules/@ionic/core/dist/collection/components/chip/chip.md.css +207 -0
  593. package/dist/node_modules/@ionic/core/dist/collection/components/col/col.css +200 -0
  594. package/dist/node_modules/@ionic/core/dist/collection/components/content/content.css +282 -0
  595. package/dist/node_modules/@ionic/core/dist/collection/components/datetime/datetime.ios.css +850 -0
  596. package/dist/node_modules/@ionic/core/dist/collection/components/datetime/datetime.md.css +706 -0
  597. package/dist/node_modules/@ionic/core/dist/collection/components/datetime-button/datetime-button.css +100 -0
  598. package/dist/node_modules/@ionic/core/dist/collection/components/fab/fab.css +366 -0
  599. package/dist/node_modules/@ionic/core/dist/collection/components/fab-button/fab-button.ios.css +422 -0
  600. package/dist/node_modules/@ionic/core/dist/collection/components/fab-button/fab-button.md.css +393 -0
  601. package/dist/node_modules/@ionic/core/dist/collection/components/fab-list/fab-list.css +240 -0
  602. package/dist/node_modules/@ionic/core/dist/collection/components/footer/footer.ios.css +146 -0
  603. package/dist/node_modules/@ionic/core/dist/collection/components/footer/footer.md.css +129 -0
  604. package/dist/node_modules/@ionic/core/dist/collection/components/grid/grid.css +235 -0
  605. package/dist/node_modules/@ionic/core/dist/collection/components/header/header.ios.css +250 -0
  606. package/dist/node_modules/@ionic/core/dist/collection/components/header/header.md.css +133 -0
  607. package/dist/node_modules/@ionic/core/dist/collection/components/img/img.css +12 -0
  608. package/dist/node_modules/@ionic/core/dist/collection/components/infinite-scroll/infinite-scroll.css +8 -0
  609. package/dist/node_modules/@ionic/core/dist/collection/components/infinite-scroll-content/infinite-scroll-content.ios.css +156 -0
  610. package/dist/node_modules/@ionic/core/dist/collection/components/infinite-scroll-content/infinite-scroll-content.md.css +156 -0
  611. package/dist/node_modules/@ionic/core/dist/collection/components/input/input.ios.css +833 -0
  612. package/dist/node_modules/@ionic/core/dist/collection/components/input/input.md.css +1446 -0
  613. package/dist/node_modules/@ionic/core/dist/collection/components/item/item.ios.css +815 -0
  614. package/dist/node_modules/@ionic/core/dist/collection/components/item/item.md.css +1187 -0
  615. package/dist/node_modules/@ionic/core/dist/collection/components/item-divider/item-divider.ios.css +351 -0
  616. package/dist/node_modules/@ionic/core/dist/collection/components/item-divider/item-divider.md.css +417 -0
  617. package/dist/node_modules/@ionic/core/dist/collection/components/item-group/item-group.ios.css +114 -0
  618. package/dist/node_modules/@ionic/core/dist/collection/components/item-group/item-group.md.css +114 -0
  619. package/dist/node_modules/@ionic/core/dist/collection/components/item-option/item-option.ios.css +242 -0
  620. package/dist/node_modules/@ionic/core/dist/collection/components/item-option/item-option.md.css +236 -0
  621. package/dist/node_modules/@ionic/core/dist/collection/components/item-options/item-options.ios.css +287 -0
  622. package/dist/node_modules/@ionic/core/dist/collection/components/item-options/item-options.md.css +284 -0
  623. package/dist/node_modules/@ionic/core/dist/collection/components/item-sliding/item-sliding.css +121 -0
  624. package/dist/node_modules/@ionic/core/dist/collection/components/label/label.ios.css +334 -0
  625. package/dist/node_modules/@ionic/core/dist/collection/components/label/label.md.css +421 -0
  626. package/dist/node_modules/@ionic/core/dist/collection/components/list/list.ios.css +242 -0
  627. package/dist/node_modules/@ionic/core/dist/collection/components/list/list.md.css +287 -0
  628. package/dist/node_modules/@ionic/core/dist/collection/components/list-header/list-header.ios.css +285 -0
  629. package/dist/node_modules/@ionic/core/dist/collection/components/list-header/list-header.md.css +266 -0
  630. package/dist/node_modules/@ionic/core/dist/collection/components/loading/loading.ios.css +205 -0
  631. package/dist/node_modules/@ionic/core/dist/collection/components/loading/loading.md.css +196 -0
  632. package/dist/node_modules/@ionic/core/dist/collection/components/menu/menu.ios.css +378 -0
  633. package/dist/node_modules/@ionic/core/dist/collection/components/menu/menu.md.css +374 -0
  634. package/dist/node_modules/@ionic/core/dist/collection/components/menu-button/menu-button.ios.css +279 -0
  635. package/dist/node_modules/@ionic/core/dist/collection/components/menu-button/menu-button.md.css +282 -0
  636. package/dist/node_modules/@ionic/core/dist/collection/components/menu-toggle/menu-toggle.css +3 -0
  637. package/dist/node_modules/@ionic/core/dist/collection/components/modal/modal.ios.css +357 -0
  638. package/dist/node_modules/@ionic/core/dist/collection/components/modal/modal.md.css +272 -0
  639. package/dist/node_modules/@ionic/core/dist/collection/components/nav/nav.css +64 -0
  640. package/dist/node_modules/@ionic/core/dist/collection/components/note/note.ios.css +127 -0
  641. package/dist/node_modules/@ionic/core/dist/collection/components/note/note.md.css +127 -0
  642. package/dist/node_modules/@ionic/core/dist/collection/components/picker/picker.ios.css +367 -0
  643. package/dist/node_modules/@ionic/core/dist/collection/components/picker/picker.md.css +354 -0
  644. package/dist/node_modules/@ionic/core/dist/collection/components/picker-column/picker-column.ios.css +255 -0
  645. package/dist/node_modules/@ionic/core/dist/collection/components/picker-column/picker-column.md.css +246 -0
  646. package/dist/node_modules/@ionic/core/dist/collection/components/picker-column-internal/picker-column-internal.ios.css +138 -0
  647. package/dist/node_modules/@ionic/core/dist/collection/components/picker-column-internal/picker-column-internal.md.css +196 -0
  648. package/dist/node_modules/@ionic/core/dist/collection/components/picker-internal/picker-internal.ios.css +262 -0
  649. package/dist/node_modules/@ionic/core/dist/collection/components/picker-internal/picker-internal.md.css +258 -0
  650. package/dist/node_modules/@ionic/core/dist/collection/components/popover/popover.ios.css +366 -0
  651. package/dist/node_modules/@ionic/core/dist/collection/components/popover/popover.md.css +266 -0
  652. package/dist/node_modules/@ionic/core/dist/collection/components/progress-bar/progress-bar.ios.css +261 -0
  653. package/dist/node_modules/@ionic/core/dist/collection/components/progress-bar/progress-bar.md.css +261 -0
  654. package/dist/node_modules/@ionic/core/dist/collection/components/radio/radio.ios.css +557 -0
  655. package/dist/node_modules/@ionic/core/dist/collection/components/radio/radio.md.css +580 -0
  656. package/dist/node_modules/@ionic/core/dist/collection/components/range/range.ios.css +660 -0
  657. package/dist/node_modules/@ionic/core/dist/collection/components/range/range.md.css +819 -0
  658. package/dist/node_modules/@ionic/core/dist/collection/components/refresher/refresher.ios.css +321 -0
  659. package/dist/node_modules/@ionic/core/dist/collection/components/refresher/refresher.md.css +316 -0
  660. package/dist/node_modules/@ionic/core/dist/collection/components/reorder/reorder.ios.css +77 -0
  661. package/dist/node_modules/@ionic/core/dist/collection/components/reorder/reorder.md.css +77 -0
  662. package/dist/node_modules/@ionic/core/dist/collection/components/reorder-group/reorder-group.css +89 -0
  663. package/dist/node_modules/@ionic/core/dist/collection/components/ripple-effect/ripple-effect.css +113 -0
  664. package/dist/node_modules/@ionic/core/dist/collection/components/router-link/router-link.css +84 -0
  665. package/dist/node_modules/@ionic/core/dist/collection/components/router-outlet/router-outlet.css +64 -0
  666. package/dist/node_modules/@ionic/core/dist/collection/components/row/row.css +136 -0
  667. package/dist/node_modules/@ionic/core/dist/collection/components/searchbar/searchbar.ios.css +477 -0
  668. package/dist/node_modules/@ionic/core/dist/collection/components/searchbar/searchbar.md.css +456 -0
  669. package/dist/node_modules/@ionic/core/dist/collection/components/segment/segment.ios.css +224 -0
  670. package/dist/node_modules/@ionic/core/dist/collection/components/segment/segment.md.css +214 -0
  671. package/dist/node_modules/@ionic/core/dist/collection/components/segment-button/segment-button.ios.css +520 -0
  672. package/dist/node_modules/@ionic/core/dist/collection/components/segment-button/segment-button.md.css +506 -0
  673. package/dist/node_modules/@ionic/core/dist/collection/components/select/select.ios.css +787 -0
  674. package/dist/node_modules/@ionic/core/dist/collection/components/select/select.md.css +1374 -0
  675. package/dist/node_modules/@ionic/core/dist/collection/components/select-option/select-option.css +3 -0
  676. package/dist/node_modules/@ionic/core/dist/collection/components/select-popover/select-popover.ios.css +190 -0
  677. package/dist/node_modules/@ionic/core/dist/collection/components/select-popover/select-popover.md.css +212 -0
  678. package/dist/node_modules/@ionic/core/dist/collection/components/skeleton-text/skeleton-text.css +108 -0
  679. package/dist/node_modules/@ionic/core/dist/collection/components/spinner/spinner.css +232 -0
  680. package/dist/node_modules/@ionic/core/dist/collection/components/split-pane/split-pane.ios.css +265 -0
  681. package/dist/node_modules/@ionic/core/dist/collection/components/split-pane/split-pane.md.css +265 -0
  682. package/dist/node_modules/@ionic/core/dist/collection/components/tab/tab.css +4 -0
  683. package/dist/node_modules/@ionic/core/dist/collection/components/tab-bar/tab-bar.ios.css +252 -0
  684. package/dist/node_modules/@ionic/core/dist/collection/components/tab-bar/tab-bar.md.css +239 -0
  685. package/dist/node_modules/@ionic/core/dist/collection/components/tab-button/tab-button.ios.css +477 -0
  686. package/dist/node_modules/@ionic/core/dist/collection/components/tab-button/tab-button.md.css +501 -0
  687. package/dist/node_modules/@ionic/core/dist/collection/components/tabs/tabs.css +74 -0
  688. package/dist/node_modules/@ionic/core/dist/collection/components/text/text.css +58 -0
  689. package/dist/node_modules/@ionic/core/dist/collection/components/textarea/textarea.ios.css +987 -0
  690. package/dist/node_modules/@ionic/core/dist/collection/components/textarea/textarea.md.css +1553 -0
  691. package/dist/node_modules/@ionic/core/dist/collection/components/thumbnail/thumbnail.css +76 -0
  692. package/dist/node_modules/@ionic/core/dist/collection/components/title/title.ios.css +183 -0
  693. package/dist/node_modules/@ionic/core/dist/collection/components/title/title.md.css +102 -0
  694. package/dist/node_modules/@ionic/core/dist/collection/components/toast/toast.ios.css +399 -0
  695. package/dist/node_modules/@ionic/core/dist/collection/components/toast/toast.md.css +429 -0
  696. package/dist/node_modules/@ionic/core/dist/collection/components/toggle/toggle.ios.css +680 -0
  697. package/dist/node_modules/@ionic/core/dist/collection/components/toggle/toggle.md.css +625 -0
  698. package/dist/node_modules/@ionic/core/dist/collection/components/toolbar/toolbar.ios.css +265 -0
  699. package/dist/node_modules/@ionic/core/dist/collection/components/toolbar/toolbar.md.css +244 -0
  700. package/dist/node_modules/ionicons/dist/collection/components/icon/icon.css +144 -0
  701. package/dist/types/components/amwal-checkout-button/amwal-checkout-button.d.ts +327 -327
  702. package/dist/types/components/amwal-checkout-button/amwal-checkout-button.stories.d.ts +34 -34
  703. package/dist/types/components/amwal-installments-guide/amwal-installments-guide.d.ts +14 -14
  704. package/dist/types/components/amwal-installments-guide/amwal-installments-guide.stories.d.ts +17 -17
  705. package/dist/types/components/amwal-installments-timeline/amwal-installments-timeline.d.ts +106 -106
  706. package/dist/types/components/amwal-installments-timeline/amwal-installments-timeline.stories.d.ts +67 -67
  707. package/dist/types/components/amwal-pos/amwal-pos.d.ts +228 -228
  708. package/dist/types/components/amwal-pos/amwal-pos.stories.d.ts +185 -185
  709. package/dist/types/components/amwal-widget/amwal-widget-modal.d.ts +56 -56
  710. package/dist/types/components/amwal-widget/amwal-widget.d.ts +165 -165
  711. package/dist/types/components/amwal-widget/amwal-widget.stories.d.ts +101 -101
  712. package/dist/types/components.d.ts +0 -206
  713. package/dist/types/lang/i18n.d.ts +1 -1
  714. package/dist/types/stencil-public-runtime.d.ts +21 -191
  715. package/loader/cdn.js +3 -1
  716. package/loader/index.cjs.js +3 -1
  717. package/loader/index.d.ts +1 -4
  718. package/loader/index.es2017.js +3 -1
  719. package/loader/index.js +3 -1
  720. package/loader/package.json +11 -0
  721. package/package.json +28 -34
  722. package/dist/checkout/p-0161d109.entry.js +0 -1
  723. package/dist/checkout/p-0a8ef1ec.entry.js +0 -1
  724. package/dist/checkout/p-10a72fbe.entry.js +0 -1
  725. package/dist/checkout/p-12ed4081.entry.js +0 -1
  726. package/dist/checkout/p-13c36adc.entry.js +0 -1
  727. package/dist/checkout/p-194b17d8.entry.js +0 -1
  728. package/dist/checkout/p-272a1ffd.entry.js +0 -1
  729. package/dist/checkout/p-307af48b.entry.js +0 -1
  730. package/dist/checkout/p-3207674d.entry.js +0 -1
  731. package/dist/checkout/p-3208e56f.entry.js +0 -1
  732. package/dist/checkout/p-4426eb3b.entry.js +0 -1
  733. package/dist/checkout/p-458da59f.entry.js +0 -1
  734. package/dist/checkout/p-46e69508.entry.js +0 -1
  735. package/dist/checkout/p-49046c16.entry.js +0 -4
  736. package/dist/checkout/p-53dc0e86.entry.js +0 -1
  737. package/dist/checkout/p-5a6fc9fd.entry.js +0 -1
  738. package/dist/checkout/p-5e65653a.entry.js +0 -1
  739. package/dist/checkout/p-5f124c24.entry.js +0 -1
  740. package/dist/checkout/p-6a8ad104.entry.js +0 -1
  741. package/dist/checkout/p-76fb4325.entry.js +0 -1
  742. package/dist/checkout/p-78db60fb.entry.js +0 -1
  743. package/dist/checkout/p-8e34a1bb.entry.js +0 -1
  744. package/dist/checkout/p-91474b10.entry.js +0 -1
  745. package/dist/checkout/p-93OyAGoo.js +0 -2
  746. package/dist/checkout/p-94a57258.entry.js +0 -1
  747. package/dist/checkout/p-BEVStXwd.js +0 -7
  748. package/dist/checkout/p-BQu7QPd5.js +0 -4
  749. package/dist/checkout/p-BR7SJd-v.js +0 -4
  750. package/dist/checkout/p-BcFRJSFv.js +0 -4
  751. package/dist/checkout/p-BcUxrseY.js +0 -1
  752. package/dist/checkout/p-BdG893XR.js +0 -4
  753. package/dist/checkout/p-BgOwfqIY.js +0 -4
  754. package/dist/checkout/p-Bm9bMvCb.js +0 -4
  755. package/dist/checkout/p-C03M5ZSM.js +0 -1
  756. package/dist/checkout/p-C6kqtbmV.js +0 -4
  757. package/dist/checkout/p-C75BfBAE.js +0 -1
  758. package/dist/checkout/p-CVrvo9Qz.js +0 -4
  759. package/dist/checkout/p-ChixdDt6.js +0 -4
  760. package/dist/checkout/p-Cjnmql4G.js +0 -8
  761. package/dist/checkout/p-D0I0TqZU.js +0 -4
  762. package/dist/checkout/p-D2NxOvQ8.js +0 -4
  763. package/dist/checkout/p-D8d_89Nl.js +0 -4
  764. package/dist/checkout/p-DAhcxcAh.js +0 -4
  765. package/dist/checkout/p-DDtPO7yO.js +0 -4
  766. package/dist/checkout/p-DKg_dYcq.js +0 -4
  767. package/dist/checkout/p-DMAPbDyG.js +0 -4
  768. package/dist/checkout/p-DihS-5gH.js +0 -4
  769. package/dist/checkout/p-DkrNcwKK.js +0 -5
  770. package/dist/checkout/p-Dzj_jqIY.js +0 -4
  771. package/dist/checkout/p-E8AXUhZ3.js +0 -7
  772. package/dist/checkout/p-Ufaww5Lq.js +0 -4
  773. package/dist/checkout/p-a90efa79.entry.js +0 -1
  774. package/dist/checkout/p-abd12b84.entry.js +0 -1
  775. package/dist/checkout/p-abe1becc.entry.js +0 -1
  776. package/dist/checkout/p-b2f66c60.entry.js +0 -4
  777. package/dist/checkout/p-b45f5952.entry.js +0 -1
  778. package/dist/checkout/p-c2240d19.entry.js +0 -1
  779. package/dist/checkout/p-c28b4374.entry.js +0 -1
  780. package/dist/checkout/p-cb2db223.entry.js +0 -1
  781. package/dist/checkout/p-cb3967fc.entry.js +0 -1
  782. package/dist/checkout/p-cef16f11.entry.js +0 -1
  783. package/dist/checkout/p-df1b4347.entry.js +0 -4
  784. package/dist/checkout/p-e4bc42fb.entry.js +0 -1
  785. package/dist/checkout/p-e785fb8a.entry.js +0 -1
  786. package/dist/checkout/p-e8bd206a.entry.js +0 -1
  787. package/dist/checkout/p-ef749875.entry.js +0 -1
  788. package/dist/checkout/p-f157b6b2.entry.js +0 -4
  789. package/dist/checkout/p-f351a19a.entry.js +0 -1
  790. package/dist/checkout/p-ff2e59e3.entry.js +0 -1
  791. package/dist/checkout/p-hAETByzF.js +0 -5
  792. package/dist/checkout/p-vn1iXXUO.js +0 -9
  793. package/dist/cjs/i18n-uGNv9SLK.js +0 -13
  794. package/dist/cjs/index-DncWzXDA.js +0 -3738
  795. package/dist/components/p-55BwDerf.js +0 -8
  796. package/dist/components/p-B-M4K7iJ.js +0 -7
  797. package/dist/components/p-B-hirT0v.js +0 -4
  798. package/dist/components/p-B3WORC1a.js +0 -1
  799. package/dist/components/p-B5XH2zAk.js +0 -1
  800. package/dist/components/p-B5ZghgSh.js +0 -4
  801. package/dist/components/p-BEVStXwd.js +0 -7
  802. package/dist/components/p-BH0TCnxk.js +0 -4
  803. package/dist/components/p-BIA8A9ZO.js +0 -1
  804. package/dist/components/p-BOkYKP6F.js +0 -1
  805. package/dist/components/p-BOm0KT2x.js +0 -1
  806. package/dist/components/p-Bb_Zji0h.js +0 -4
  807. package/dist/components/p-BmVRXR1y.js +0 -4
  808. package/dist/components/p-BnQDByf2.js +0 -1
  809. package/dist/components/p-BoxjYI-Q.js +0 -4
  810. package/dist/components/p-BriBxgcM.js +0 -1
  811. package/dist/components/p-BwKjt_Dc.js +0 -4
  812. package/dist/components/p-Bx78uXfc.js +0 -5
  813. package/dist/components/p-C-20JWsp.js +0 -4
  814. package/dist/components/p-C03M5ZSM.js +0 -1
  815. package/dist/components/p-C53feagD.js +0 -4
  816. package/dist/components/p-CLrB3zV0.js +0 -4
  817. package/dist/components/p-CN34uOrj.js +0 -9
  818. package/dist/components/p-CQmcNwZM.js +0 -4
  819. package/dist/components/p-CYd0Smt1.js +0 -1
  820. package/dist/components/p-CgPXSjzI.js +0 -4
  821. package/dist/components/p-Cho32MPa.js +0 -4
  822. package/dist/components/p-ClE6rMJs.js +0 -4
  823. package/dist/components/p-Cm9b7fIl.js +0 -1
  824. package/dist/components/p-CukVBo5-.js +0 -4
  825. package/dist/components/p-D2NxOvQ8.js +0 -4
  826. package/dist/components/p-D4DqwBlW.js +0 -4
  827. package/dist/components/p-D7YY0NXg.js +0 -4
  828. package/dist/components/p-D8OVJo1v.js +0 -7
  829. package/dist/components/p-DKg_dYcq.js +0 -4
  830. package/dist/components/p-DLVYPrYs.js +0 -1
  831. package/dist/components/p-DMmSL7_l.js +0 -1
  832. package/dist/components/p-DOPF2QRF.js +0 -1
  833. package/dist/components/p-DTgJTJD6.js +0 -1
  834. package/dist/components/p-DiVJyqlX.js +0 -4
  835. package/dist/components/p-DrS88eFz.js +0 -1
  836. package/dist/components/p-Dtdm8lKC.js +0 -4
  837. package/dist/components/p-DuZ7hY1a.js +0 -4
  838. package/dist/components/p-Dx-C8Ob_.js +0 -7
  839. package/dist/components/p-DxEgz9x_.js +0 -1
  840. package/dist/components/p-DxSo4SXG.js +0 -1
  841. package/dist/components/p-HSPzo8it.js +0 -1
  842. package/dist/components/p-OrwCUtWu.js +0 -4
  843. package/dist/components/p-UgkI2Wa4.js +0 -1
  844. package/dist/components/p-VeNdmYSo.js +0 -1
  845. package/dist/components/p-YbpebnFS.js +0 -4
  846. package/dist/components/p-ZjP4CjeZ.js +0 -4
  847. package/dist/components/p-_VuKPdkD.js +0 -4
  848. package/dist/components/p-aWL6BxTN.js +0 -4
  849. package/dist/components/p-hHmYLOfE.js +0 -4
  850. package/dist/components/p-qoI-S7yk.js +0 -4
  851. package/dist/components/p-uXV7tzS3.js +0 -1
  852. package/dist/components/p-yu3xCFhr.js +0 -7
  853. package/dist/components/p-zp5f483d.js +0 -1
  854. package/dist/esm/i18n-C_AfxZ5D.js +0 -13
  855. package/dist/esm/index-93OyAGoo.js +0 -3721
  856. /package/dist/checkout/{p-B-hirT0v.js → p-01ad898f.js} +0 -0
  857. /package/dist/checkout/{p-DiVJyqlX.js → p-350e7423.js} +0 -0
  858. /package/dist/checkout/{p-sObYyvOy.js → p-52b4c112.js} +0 -0
  859. /package/dist/checkout/{p-BmVRXR1y.js → p-620fa0ec.js} +0 -0
  860. /package/dist/checkout/{p-hHmYLOfE.js → p-94286cc3.js} +0 -0
  861. /package/dist/checkout/{p-D4RIp70E.js → p-9efbca93.js} +0 -0
  862. /package/dist/checkout/{p-Dtdm8lKC.js → p-9f4ac833.js} +0 -0
  863. /package/dist/checkout/{p-yu3xCFhr.js → p-b2289937.js} +0 -0
  864. /package/dist/checkout/{p-C53feagD.js → p-d5862637.js} +0 -0
  865. /package/dist/checkout/{p-ZjP4CjeZ.js → p-d7fe59ee.js} +0 -0
  866. /package/dist/{components/p-CYPPT3AE.js → checkout/p-e187a77c.js} +0 -0
  867. /package/dist/checkout/{p-CukVBo5-.js → p-f728a68f.js} +0 -0
  868. /package/dist/cjs/{compare-with-utils-JlLIkecm.js → compare-with-utils-adbe64a6.js} +0 -0
  869. /package/dist/cjs/{config-ptk2Lf4l.js → config-e2a8c0c7.js} +0 -0
  870. /package/dist/cjs/{cubic-bezier-Bv3PvaRI.js → cubic-bezier-5ff9b04e.js} +0 -0
  871. /package/dist/cjs/{dir-Br-7_bel.js → dir-374f13f2.js} +0 -0
  872. /package/dist/cjs/{focus-visible-Da2o6bTP.js → focus-visible-b7381162.js} +0 -0
  873. /package/dist/cjs/{index-CH3IFTaK.js → index-071786b4.js} +0 -0
  874. /package/dist/cjs/{index-D3mJ1Cix.js → index-a281cac3.js} +0 -0
  875. /package/dist/cjs/{lock-controller-58TZFRHC.js → lock-controller-e2dfece6.js} +0 -0
  876. /package/dist/cjs/{spinner-configs-BN41iw42.js → spinner-configs-036ebfd8.js} +0 -0
  877. /package/dist/cjs/{theme-DbHdw1Nx.js → theme-12dec869.js} +0 -0
  878. /package/dist/cjs/{watch-options-DOFUPyuf.js → watch-options-1cccbe6a.js} +0 -0
  879. /package/dist/{esm/lock-controller-B-hirT0v.js → components/p-01ad898f.js} +0 -0
  880. /package/dist/{esm/theme-DiVJyqlX.js → components/p-350e7423.js} +0 -0
  881. /package/dist/{esm/focus-visible-BmVRXR1y.js → components/p-620fa0ec.js} +0 -0
  882. /package/dist/{esm/cubic-bezier-hHmYLOfE.js → components/p-94286cc3.js} +0 -0
  883. /package/dist/{esm/watch-options-Dtdm8lKC.js → components/p-9f4ac833.js} +0 -0
  884. /package/dist/{esm/config-yu3xCFhr.js → components/p-b2289937.js} +0 -0
  885. /package/dist/{esm/dir-C53feagD.js → components/p-d5862637.js} +0 -0
  886. /package/dist/{esm/index-ZjP4CjeZ.js → components/p-d7fe59ee.js} +0 -0
  887. /package/dist/esm/{compare-with-utils-sObYyvOy.js → compare-with-utils-d58be312.js} +0 -0
  888. /package/dist/esm/{spinner-configs-D4RIp70E.js → spinner-configs-c9fb0813.js} +0 -0
@@ -1,7 +1,1779 @@
1
- import{p as t,H as o,c as i,w as a,h as r,d as e,t as s}from"./p-BnQDByf2.js";import{a as n,i as d,d as p,r as h,f as l,p as c}from"./p-B5ZghgSh.js";import{C as m,a as b,d as f}from"./p-Bx78uXfc.js";import{m as u,g as v,r as w,c as g,h as x}from"./p-BwKjt_Dc.js";import{c as k}from"./p-B-hirT0v.js";import{p as y}from"./p-CYPPT3AE.js";import{g as B}from"./p-D2NxOvQ8.js";import{G as D,O as A,a as Y,B as C,b as E,f as j,p as M,d as O,e as S}from"./p-OrwCUtWu.js";import{g as P}from"./p-DiVJyqlX.js";import{d as I,w as T}from"./p-BoxjYI-Q.js";import{g as W,c as $}from"./p-CN34uOrj.js";import{KEYBOARD_DID_OPEN as z}from"./p-DuZ7hY1a.js";import{c as L}from"./p-D4DqwBlW.js";import{g as R}from"./p-hHmYLOfE.js";import{createGesture as N}from"./p-BEVStXwd.js";import{w as Z}from"./p-ZjP4CjeZ.js";import{d as V}from"./p-BIA8A9ZO.js";
1
+ import { p as proxyCustomElement, H, c as createEvent, w as writeTask, h, d as Host } from './p-ec0e3f3f.js';
2
+ import { a as findClosestIonContent, i as isIonContent, d as disableContentScrollY, r as resetContentScrollY, f as findIonContent, p as printIonContentErrorMsg } from './p-1596e301.js';
3
+ import { C as CoreDelegate, a as attachComponent, d as detachComponent } from './p-76525f0f.js';
4
+ import { g as getElementRoot, m as clamp, b as raf, d as inheritAttributes, l as hasLazyBuild } from './p-2bb89b46.js';
5
+ import { c as createLockController } from './p-01ad898f.js';
6
+ import { p as printIonWarning } from './p-e187a77c.js';
7
+ import { g as getCapacitor } from './p-3d3eefc3.js';
8
+ import { G as GESTURE, O as OVERLAY_GESTURE_PRIORITY, a as createTriggerController, B as BACKDROP, b as prepareOverlay, f as setOverlayId, p as present, d as dismiss, e as eventMethod } from './p-5441c730.js';
9
+ import { g as getClassMap } from './p-350e7423.js';
10
+ import { d as deepReady, w as waitForMount } from './p-089e034e.js';
11
+ import { g as getIonMode, c as config } from './p-901c16c5.js';
12
+ import { KEYBOARD_DID_OPEN } from './p-d60b2328.js';
13
+ import { c as createAnimation } from './p-89c4c5cb.js';
14
+ import { g as getTimeGivenProgression } from './p-94286cc3.js';
15
+ import { createGesture } from './p-77104220.js';
16
+ import { w as win } from './p-d7fe59ee.js';
17
+ import { d as defineCustomElement$2 } from './p-f7e3c502.js';
18
+
2
19
  /*!
3
20
  * (C) Ionic http://ionicframework.com - MIT License
4
- */var K;!function(t){t.Dark="DARK",t.Light="LIGHT",t.Default="DEFAULT"}(K||(K={}));const F={getEngine(){const t=B();if(null==t?void 0:t.isPluginAvailable("StatusBar"))return t.Plugins.StatusBar},supportsDefaultStatusBarStyle(){const t=B();return!!(null==t?void 0:t.PluginHeaders)},setStyle(t){const o=this.getEngine();o&&o.setStyle(t)},getStyle:async function(){const t=this.getEngine();if(!t)return K.Default;const{style:o}=await t.getInfo();return o}},G=(t,o)=>{if(1===o)return 0;const i=1/(1-o);return t*i+-o*i},Q=()=>{!Z||Z.innerWidth>=768||!F.supportsDefaultStatusBarStyle()||F.setStyle({style:K.Dark})},X=(t=K.Default)=>{!Z||Z.innerWidth>=768||!F.supportsDefaultStatusBarStyle()||F.setStyle({style:t})},_=async(t,o)=>{"function"==typeof t.canDismiss&&await t.canDismiss(void 0,D)&&(o.isRunning()?o.onFinish((()=>{t.dismiss(void 0,"handler")}),{oneTimeCallback:!0}):t.dismiss(void 0,"handler"))},q=t=>.00255275*2.71828**(-14.9619*t)-1.00255*2.71828**(-.0380968*t)+1,H=.93,U=(t,o)=>u(400,t/Math.abs(1.1*o),500),J=t=>{const{currentBreakpoint:o,backdropBreakpoint:i}=t,a=void 0===i||i<o,r=a?`calc(var(--backdrop-opacity) * ${o})`:"0",e=L("backdropAnimation").fromTo("opacity",0,r);return a&&e.beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),{wrapperAnimation:L("wrapperAnimation").keyframes([{offset:0,opacity:1,transform:"translateY(100%)"},{offset:1,opacity:1,transform:`translateY(${100-100*o}%)`}]),backdropAnimation:e}},tt=t=>{const{currentBreakpoint:o,backdropBreakpoint:i}=t,a=`calc(var(--backdrop-opacity) * ${G(o,i)})`,r=[{offset:0,opacity:a},{offset:1,opacity:0}],e=[{offset:0,opacity:a},{offset:i,opacity:0},{offset:1,opacity:0}],s=L("backdropAnimation").keyframes(0!==i?e:r);return{wrapperAnimation:L("wrapperAnimation").keyframes([{offset:0,opacity:1,transform:`translateY(${100-100*o}%)`},{offset:1,opacity:1,transform:"translateY(100%)"}]),backdropAnimation:s}},ot=(t,o)=>{const{presentingEl:i,currentBreakpoint:a}=o,r=v(t),{wrapperAnimation:e,backdropAnimation:s}=void 0!==a?J(o):{backdropAnimation:L().fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),wrapperAnimation:L().fromTo("transform","translateY(100vh)","translateY(0vh)")};s.addElement(r.querySelector("ion-backdrop")),e.addElement(r.querySelectorAll(".modal-wrapper, .modal-shadow")).beforeStyles({opacity:1});const n=L("entering-base").addElement(t).easing("cubic-bezier(0.32,0.72,0,1)").duration(500).addAnimation(e);if(i){const t=window.innerWidth<768,o="ION-MODAL"===i.tagName&&void 0!==i.presentingElement,a=v(i),r=L().beforeStyles({transform:"translateY(0)","transform-origin":"top center",overflow:"hidden"}),d=document.body;if(t){const t=CSS.supports("width","max(0px, 1px)")?"max(30px, var(--ion-safe-area-top))":"30px",a=`translateY(${o?"-10px":t}) scale(0.93)`;r.afterStyles({transform:a}).beforeAddWrite((()=>d.style.setProperty("background-color","black"))).addElement(i).keyframes([{offset:0,filter:"contrast(1)",transform:"translateY(0px) scale(1)",borderRadius:"0px"},{offset:1,filter:"contrast(0.85)",transform:a,borderRadius:"10px 10px 0 0"}]),n.addAnimation(r)}else if(n.addAnimation(s),o){const t=`translateY(-10px) scale(${o?H:1})`;r.afterStyles({transform:t}).addElement(a.querySelector(".modal-wrapper")).keyframes([{offset:0,filter:"contrast(1)",transform:"translateY(0) scale(1)"},{offset:1,filter:"contrast(0.85)",transform:t}]);const i=L().afterStyles({transform:t}).addElement(a.querySelector(".modal-shadow")).keyframes([{offset:0,opacity:"1",transform:"translateY(0) scale(1)"},{offset:1,opacity:"0",transform:t}]);n.addAnimation([r,i])}else e.fromTo("opacity","0","1")}else n.addAnimation(s);return n},it=(t,o,i=500)=>{const{presentingEl:a,currentBreakpoint:r}=o,e=v(t),{wrapperAnimation:s,backdropAnimation:n}=void 0!==r?tt(o):{backdropAnimation:L().fromTo("opacity","var(--backdrop-opacity)",0),wrapperAnimation:L().fromTo("transform","translateY(0vh)","translateY(100vh)")};n.addElement(e.querySelector("ion-backdrop")),s.addElement(e.querySelectorAll(".modal-wrapper, .modal-shadow")).beforeStyles({opacity:1});const d=L("leaving-base").addElement(t).easing("cubic-bezier(0.32,0.72,0,1)").duration(i).addAnimation(s);if(a){const t=window.innerWidth<768,o="ION-MODAL"===a.tagName&&void 0!==a.presentingElement,i=v(a),r=L().beforeClearStyles(["transform"]).afterClearStyles(["transform"]).onFinish((t=>{1===t&&(a.style.setProperty("overflow",""),Array.from(e.querySelectorAll("ion-modal:not(.overlay-hidden)")).filter((t=>void 0!==t.presentingElement)).length<=1&&e.style.setProperty("background-color",""))})),e=document.body;if(t){const t=CSS.supports("width","max(0px, 1px)")?"max(30px, var(--ion-safe-area-top))":"30px",i=`translateY(${o?"-10px":t}) scale(0.93)`;r.addElement(a).keyframes([{offset:0,filter:"contrast(0.85)",transform:i,borderRadius:"10px 10px 0 0"},{offset:1,filter:"contrast(1)",transform:"translateY(0px) scale(1)",borderRadius:"0px"}]),d.addAnimation(r)}else if(d.addAnimation(n),o){const t=`translateY(-10px) scale(${o?H:1})`;r.addElement(i.querySelector(".modal-wrapper")).afterStyles({transform:"translate3d(0, 0, 0)"}).keyframes([{offset:0,filter:"contrast(0.85)",transform:t},{offset:1,filter:"contrast(1)",transform:"translateY(0) scale(1)"}]);const a=L().addElement(i.querySelector(".modal-shadow")).afterStyles({transform:"translateY(0) scale(1)"}).keyframes([{offset:0,opacity:"0",transform:t},{offset:1,opacity:"1",transform:"translateY(0) scale(1)"}]);d.addAnimation([r,a])}else s.fromTo("opacity","1","0")}else d.addAnimation(n);return d},at=(t,o)=>{const{currentBreakpoint:i}=o,a=v(t),{wrapperAnimation:r,backdropAnimation:e}=void 0!==i?J(o):{backdropAnimation:L().fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),wrapperAnimation:L().keyframes([{offset:0,opacity:.01,transform:"translateY(40px)"},{offset:1,opacity:1,transform:"translateY(0px)"}])};return e.addElement(a.querySelector("ion-backdrop")),r.addElement(a.querySelector(".modal-wrapper")),L().addElement(t).easing("cubic-bezier(0.36,0.66,0.04,1)").duration(280).addAnimation([e,r])},rt=(t,o)=>{const{currentBreakpoint:i}=o,a=v(t),{wrapperAnimation:r,backdropAnimation:e}=void 0!==i?tt(o):{backdropAnimation:L().fromTo("opacity","var(--backdrop-opacity)",0),wrapperAnimation:L().keyframes([{offset:0,opacity:.99,transform:"translateY(0px)"},{offset:1,opacity:0,transform:"translateY(40px)"}])};return e.addElement(a.querySelector("ion-backdrop")),r.addElement(a.querySelector(".modal-wrapper")),L().easing("cubic-bezier(0.47,0,0.745,0.715)").duration(200).addAnimation([e,r])},et=t(class extends o{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.didPresent=i(this,"ionModalDidPresent",7),this.willPresent=i(this,"ionModalWillPresent",7),this.willDismiss=i(this,"ionModalWillDismiss",7),this.didDismiss=i(this,"ionModalDidDismiss",7),this.ionBreakpointDidChange=i(this,"ionBreakpointDidChange",7),this.didPresentShorthand=i(this,"didPresent",7),this.willPresentShorthand=i(this,"willPresent",7),this.willDismissShorthand=i(this,"willDismiss",7),this.didDismissShorthand=i(this,"didDismiss",7),this.ionMount=i(this,"ionMount",7),this.lockController=k(),this.triggerController=Y(),this.coreDelegate=m(),this.isSheetModal=!1,this.inheritedAttributes={},this.inline=!1,this.gestureAnimationDismissing=!1,this.onHandleClick=()=>{const{sheetTransition:t,handleBehavior:o}=this;"cycle"===o&&void 0===t&&this.moveToNextBreakpoint()},this.onBackdropTap=()=>{const{sheetTransition:t}=this;void 0===t&&this.dismiss(void 0,C)},this.onLifecycle=t=>{const o=this.usersElement,i=st[t.type];if(o&&i){const a=new CustomEvent(i,{bubbles:!1,cancelable:!1,detail:t.detail});o.dispatchEvent(a)}},this.presented=!1,this.hasController=!1,this.overlayIndex=void 0,this.delegate=void 0,this.keyboardClose=!0,this.enterAnimation=void 0,this.leaveAnimation=void 0,this.breakpoints=void 0,this.initialBreakpoint=void 0,this.backdropBreakpoint=0,this.handle=void 0,this.handleBehavior="none",this.component=void 0,this.componentProps=void 0,this.cssClass=void 0,this.backdropDismiss=!0,this.showBackdrop=!0,this.animated=!0,this.presentingElement=void 0,this.htmlAttributes=void 0,this.isOpen=!1,this.trigger=void 0,this.keepContentsMounted=!1,this.canDismiss=!0}onIsOpenChange(t,o){!0===t&&!1===o?this.present():!1===t&&!0===o&&this.dismiss()}triggerChanged(){const{trigger:t,el:o,triggerController:i}=this;t&&i.addClickListener(o,t)}breakpointsChanged(t){void 0!==t&&(this.sortedBreakpoints=t.sort(((t,o)=>t-o)))}connectedCallback(){const{el:t}=this;E(t),this.triggerChanged()}disconnectedCallback(){this.triggerController.removeClickListener()}componentWillLoad(){const{breakpoints:t,initialBreakpoint:o,el:i,htmlAttributes:a}=this,r=this.isSheetModal=void 0!==t&&void 0!==o,e=["aria-label","role"];this.inheritedAttributes=g(i,e),void 0!==a&&e.forEach((t=>{a[t]&&(this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:a[t]}),delete a[t])})),r&&(this.currentBreakpoint=this.initialBreakpoint),void 0===t||void 0===o||t.includes(o)||y("Your breakpoints array must include the initialBreakpoint value."),j(i)}componentDidLoad(){!0===this.isOpen&&w((()=>this.present())),this.breakpointsChanged(this.breakpoints),this.triggerChanged()}getDelegate(t=!1){if(this.workingDelegate&&!t)return{delegate:this.workingDelegate,inline:this.inline};const o=this.inline=null!==this.el.parentNode&&!this.hasController;return{inline:o,delegate:this.workingDelegate=o?this.delegate||this.coreDelegate:this.delegate}}async checkCanDismiss(t,o){const{canDismiss:i}=this;return"function"==typeof i?i(t,o):i}async present(){const t=await this.lockController.lock();if(this.presented)return void t();const{presentingElement:o,el:i}=this;this.currentBreakpoint=this.initialBreakpoint;const{inline:r,delegate:e}=this.getDelegate(!0);this.ionMount.emit(),this.usersElement=await b(e,i,this.component,["ion-page"],this.componentProps,r),x(i)?await I(this.usersElement):this.keepContentsMounted||await T(),a((()=>this.el.classList.add("show-modal")));const s=void 0!==o;s&&"ios"===W(this)&&(this.statusBarStyle=await F.getStyle(),Q()),await M(this,"modalEnter",ot,at,{presentingEl:o,currentBreakpoint:this.initialBreakpoint,backdropBreakpoint:this.backdropBreakpoint}),"undefined"!=typeof window&&(this.keyboardOpenCallback=()=>{this.gesture&&(this.gesture.enable(!1),w((()=>{this.gesture&&this.gesture.enable(!0)})))},window.addEventListener(z,this.keyboardOpenCallback)),this.isSheetModal?this.initSheetGesture():s&&this.initSwipeToClose(),t()}initSwipeToClose(){var t;if("ios"!==W(this))return;const{el:o}=this,i=this.leaveAnimation||$.get("modalLeave",it),a=this.animation=i(o,{presentingEl:this.presentingElement});if(!l(o))return void c(o);const r=null!==(t=this.statusBarStyle)&&void 0!==t?t:K.Default;this.gesture=((t,o,i,a)=>{const r=.5,e=t.offsetHeight;let s=!1,l=!1,c=null,m=null,b=!0,f=0;const w=N({el:t,gestureName:"modalSwipeToClose",gesturePriority:A,direction:"y",threshold:10,canStart:t=>{const o=t.event.target;if(null===o||!o.closest)return!0;if(c=n(o),c){if(d(c)){const t=v(c);m=t.querySelector(".inner-scroll")}else m=c;return!c.querySelector("ion-refresher")&&0===m.scrollTop}return null===o.closest("ion-footer")},onStart:i=>{const{deltaY:a}=i;b=!c||!d(c)||c.scrollY,l=void 0!==t.canDismiss&&!0!==t.canDismiss,a>0&&c&&p(c),o.progressStart(!0,s?1:0)},onMove:t=>{const{deltaY:a}=t;a>0&&c&&p(c);const s=t.deltaY/e,n=s>=0&&l,d=n?.2:.9999,h=n?q(s/d):s,m=u(1e-4,h,d);o.progressStep(m),m>=r&&f<r?X(i):m<r&&f>=r&&Q(),f=m},onEnd:i=>{const n=i.velocityY,d=i.deltaY/e,p=d>=0&&l,m=p?.2:.9999,f=p?q(d/m):d,v=u(1e-4,f,m),g=!p&&(i.deltaY+1e3*n)/e>=r;let x=g?-.001:.001;g?(o.easing("cubic-bezier(0.32, 0.72, 0, 1)"),x+=R([0,0],[.32,.72],[0,1],[1,1],v)[0]):(o.easing("cubic-bezier(1, 0, 0.68, 0.28)"),x+=R([0,0],[1,0],[.68,.28],[1,1],v)[0]);const k=U(g?d*e:(1-v)*e,n);s=g,w.enable(!1),c&&h(c,b),o.onFinish((()=>{g||w.enable(!0)})).progressEnd(g?1:0,x,k),p&&v>m/4?_(t,o):g&&a()}});return w})(o,a,r,(()=>{this.gestureAnimationDismissing=!0,X(this.statusBarStyle),this.animation.onFinish((async()=>{await this.dismiss(void 0,D),this.gestureAnimationDismissing=!1}))})),this.gesture.enable(!0)}initSheetGesture(){const{wrapperEl:t,initialBreakpoint:o,backdropBreakpoint:i}=this;if(!t||void 0===o)return;const a=this.enterAnimation||$.get("modalEnter",ot),r=this.animation=a(this.el,{presentingEl:this.presentingElement,currentBreakpoint:o,backdropBreakpoint:i});r.progressStart(!0,1);const{gesture:e,moveSheetToBreakpoint:s}=((t,o,i,a,r,e,s=[],p,h,l)=>{const c={WRAPPER_KEYFRAMES:[{offset:0,transform:"translateY(0%)"},{offset:1,transform:"translateY(100%)"}],BACKDROP_KEYFRAMES:0!==r?[{offset:0,opacity:"var(--backdrop-opacity)"},{offset:1-r,opacity:0},{offset:1,opacity:0}]:[{offset:0,opacity:"var(--backdrop-opacity)"},{offset:1,opacity:.01}]},m=t.querySelector("ion-content"),b=i.clientHeight;let f=a,g=0,x=!1;const k=e.childAnimations.find((t=>"wrapperAnimation"===t.id)),y=e.childAnimations.find((t=>"backdropAnimation"===t.id)),B=s[s.length-1],D=s[0],A=()=>{t.style.setProperty("pointer-events","auto"),o.style.setProperty("pointer-events","auto"),t.classList.remove("ion-disable-focus-trap")},Y=()=>{t.style.setProperty("pointer-events","none"),o.style.setProperty("pointer-events","none"),t.classList.add("ion-disable-focus-trap")};k&&y&&(k.keyframes([...c.WRAPPER_KEYFRAMES]),y.keyframes([...c.BACKDROP_KEYFRAMES]),e.progressStart(!0,1-f),f>r?A():Y()),m&&f!==B&&(m.scrollY=!1);const C=o=>{const{breakpoint:i,canDismiss:a,breakpointOffset:n,animated:d}=o,p=a&&0===i,b=p?f:i,u=0!==b;return f=0,k&&y&&(k.keyframes([{offset:0,transform:`translateY(${100*n}%)`},{offset:1,transform:`translateY(${100*(1-b)}%)`}]),y.keyframes([{offset:0,opacity:`calc(var(--backdrop-opacity) * ${G(1-n,r)})`},{offset:1,opacity:`calc(var(--backdrop-opacity) * ${G(b,r)})`}]),e.progressStep(0)),E.enable(!1),p?_(t,e):u||h(),m&&b===s[s.length-1]&&(m.scrollY=!0),new Promise((t=>{e.onFinish((()=>{u?k&&y?w((()=>{k.keyframes([...c.WRAPPER_KEYFRAMES]),y.keyframes([...c.BACKDROP_KEYFRAMES]),e.progressStart(!0,1-b),f=b,l(f),f>r?A():Y(),E.enable(!0),t()})):(E.enable(!0),t()):t()}),{oneTimeCallback:!0}).progressEnd(1,0,d?500:0)}))},E=N({el:i,gestureName:"modalSheet",gesturePriority:40,direction:"y",threshold:10,canStart:t=>{const o=n(t.event.target);if(f=p(),1===f&&o){const t=d(o)?v(o).querySelector(".inner-scroll"):o;return!o.querySelector("ion-refresher")&&0===t.scrollTop}return!0},onStart:o=>{x=void 0!==t.canDismiss&&!0!==t.canDismiss&&0===D,o.deltaY>0&&m&&(m.scrollY=!1),w((()=>{t.focus()})),e.progressStart(!0,1-f)},onMove:t=>{t.deltaY>0&&m&&(m.scrollY=!1);const o=s.length>1?1-s[1]:void 0,i=1-f+t.deltaY/b,a=void 0!==o&&i>=o&&x,r=a?.95:.9999,n=a&&void 0!==o?o+q((i-o)/(r-o)):i;g=u(1e-4,n,r),e.progressStep(g)},onEnd:t=>{const o=f-(t.deltaY+350*t.velocityY)/b,i=s.reduce(((t,i)=>Math.abs(i-o)<Math.abs(t-o)?i:t));C({breakpoint:i,breakpointOffset:g,canDismiss:x,animated:!0})}});return{gesture:E,moveSheetToBreakpoint:C}})(this.el,this.backdropEl,t,o,i,r,this.sortedBreakpoints,(()=>{var t;return null!==(t=this.currentBreakpoint)&&void 0!==t?t:0}),(()=>this.sheetOnDismiss()),(t=>{this.currentBreakpoint!==t&&(this.currentBreakpoint=t,this.ionBreakpointDidChange.emit({breakpoint:t}))}));this.gesture=e,this.moveSheetToBreakpoint=s,this.gesture.enable(!0)}sheetOnDismiss(){this.gestureAnimationDismissing=!0,this.animation.onFinish((async()=>{this.currentBreakpoint=0,this.ionBreakpointDidChange.emit({breakpoint:this.currentBreakpoint}),await this.dismiss(void 0,D),this.gestureAnimationDismissing=!1}))}async dismiss(t,o){var i;if(this.gestureAnimationDismissing&&o!==D)return!1;const r=await this.lockController.lock();if("handler"!==o&&!await this.checkCanDismiss(t,o))return r(),!1;const{presentingElement:e}=this;void 0!==e&&"ios"===W(this)&&X(this.statusBarStyle),"undefined"!=typeof window&&this.keyboardOpenCallback&&(window.removeEventListener(z,this.keyboardOpenCallback),this.keyboardOpenCallback=void 0);const s=await O(this,t,o,"modalLeave",it,rt,{presentingEl:e,currentBreakpoint:null!==(i=this.currentBreakpoint)&&void 0!==i?i:this.initialBreakpoint,backdropBreakpoint:this.backdropBreakpoint});if(s){const{delegate:t}=this.getDelegate();await f(t,this.usersElement),a((()=>this.el.classList.remove("show-modal"))),this.animation&&this.animation.destroy(),this.gesture&&this.gesture.destroy()}return this.currentBreakpoint=void 0,this.animation=void 0,r(),s}onDidDismiss(){return S(this.el,"ionModalDidDismiss")}onWillDismiss(){return S(this.el,"ionModalWillDismiss")}async setCurrentBreakpoint(t){if(!this.isSheetModal)return void y("setCurrentBreakpoint is only supported on sheet modals.");if(!this.breakpoints.includes(t))return void y(`Attempted to set invalid breakpoint value ${t}. Please double check that the breakpoint value is part of your defined breakpoints.`);const{currentBreakpoint:o,moveSheetToBreakpoint:i,canDismiss:a,breakpoints:r,animated:e}=this;o!==t&&i&&(this.sheetTransition=i({breakpoint:t,breakpointOffset:1-o,canDismiss:void 0!==a&&!0!==a&&0===r[0],animated:e}),await this.sheetTransition,this.sheetTransition=void 0)}async getCurrentBreakpoint(){return this.currentBreakpoint}async moveToNextBreakpoint(){const{breakpoints:t,currentBreakpoint:o}=this;if(!t||null==o)return!1;const i=t.filter((t=>0!==t)),a=i.indexOf(o),r=i[(a+1)%i.length];return await this.setCurrentBreakpoint(r),!0}render(){const{handle:t,isSheetModal:o,presentingElement:i,htmlAttributes:a,handleBehavior:s,inheritedAttributes:n}=this,d=!1!==t&&o,p=W(this),h=void 0!==i&&"ios"===p,l="cycle"===s;return r(e,Object.assign({key:"e4ad28e6e794560d85252aebdca7f4752e4e7e99","no-router":!0,tabindex:"-1"},a,{style:{zIndex:""+(2e4+this.overlayIndex)},class:Object.assign({[p]:!0,"modal-default":!h&&!o,"modal-card":h,"modal-sheet":o,"overlay-hidden":!0},P(this.cssClass)),onIonBackdropTap:this.onBackdropTap,onIonModalDidPresent:this.onLifecycle,onIonModalWillPresent:this.onLifecycle,onIonModalWillDismiss:this.onLifecycle,onIonModalDidDismiss:this.onLifecycle}),r("ion-backdrop",{key:"6efd67361a062d15488390f9f0d6c0841e541893",ref:t=>this.backdropEl=t,visible:this.showBackdrop,tappable:this.backdropDismiss,part:"backdrop"}),"ios"===p&&r("div",{key:"557b1c6b297df75acc80d1350b971e65ace6c343",class:"modal-shadow"}),r("div",Object.assign({key:"67f9b27b662303fbaadaee2ae89972caadfd9994",role:"dialog"},n,{"aria-modal":"true",class:"modal-wrapper ion-overlay-wrapper",part:"content",ref:t=>this.wrapperEl=t}),d&&r("button",{key:"8f1eecc451b52467a8c3cfe500335cf6254bbfbc",class:"modal-handle",tabIndex:l?0:-1,"aria-label":"Activate to adjust the size of the dialog overlaying the screen",onClick:l?this.onHandleClick:void 0,part:"handle"}),r("slot",{key:"cdc923404f01a14b9071a434c68547da3b22c71e"})))}get el(){return this}static get watchers(){return{isOpen:[{onIsOpenChange:0}],trigger:[{triggerChanged:0}]}}static get style(){return{ios:':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, #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{--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-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl]):host(.modal-card) .modal-wrapper,:host-context([dir=rtl]).modal-card .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}@supports selector(:dir(rtl)){:host(.modal-card:dir(rtl)) .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-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-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl]):host(.modal-sheet) .modal-wrapper,:host-context([dir=rtl]).modal-sheet .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}@supports selector(:dir(rtl)){:host(.modal-sheet:dir(rtl)) .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}}',md:':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, #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{--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}'}}},[289,"ion-modal",{hasController:[4,"has-controller"],overlayIndex:[2,"overlay-index"],delegate:[16],keyboardClose:[4,"keyboard-close"],enterAnimation:[16],leaveAnimation:[16],breakpoints:[16],initialBreakpoint:[2,"initial-breakpoint"],backdropBreakpoint:[2,"backdrop-breakpoint"],handle:[4],handleBehavior:[1,"handle-behavior"],component:[1],componentProps:[16],cssClass:[1,"css-class"],backdropDismiss:[4,"backdrop-dismiss"],showBackdrop:[4,"show-backdrop"],animated:[4],presentingElement:[16],htmlAttributes:[16],isOpen:[4,"is-open"],trigger:[1],keepContentsMounted:[4,"keep-contents-mounted"],canDismiss:[4,"can-dismiss"],presented:[32],present:[64],dismiss:[64],onDidDismiss:[64],onWillDismiss:[64],setCurrentBreakpoint:[64],getCurrentBreakpoint:[64]},void 0,{isOpen:[{onIsOpenChange:0}],trigger:[{triggerChanged:0}]}]),st={ionModalDidPresent:"ionViewDidEnter",ionModalWillPresent:"ionViewWillEnter",ionModalWillDismiss:"ionViewWillLeave",ionModalDidDismiss:"ionViewDidLeave"},nt=et,dt=function(){"undefined"!=typeof customElements&&["ion-modal","ion-backdrop"].forEach((t=>{switch(t){case"ion-modal":customElements.get(s(t))||customElements.define(s(t),et);break;case"ion-backdrop":customElements.get(s(t))||V()}}))};
21
+ */
22
+ var Style;
23
+ (function (Style) {
24
+ Style["Dark"] = "DARK";
25
+ Style["Light"] = "LIGHT";
26
+ Style["Default"] = "DEFAULT";
27
+ })(Style || (Style = {}));
28
+ const StatusBar = {
29
+ getEngine() {
30
+ const capacitor = getCapacitor();
31
+ if (capacitor === null || capacitor === void 0 ? void 0 : capacitor.isPluginAvailable('StatusBar')) {
32
+ return capacitor.Plugins.StatusBar;
33
+ }
34
+ return undefined;
35
+ },
36
+ // TODO FW-4696 Remove supportDefaultStatusBarStyle in Ionic v8
37
+ supportsDefaultStatusBarStyle() {
38
+ const capacitor = getCapacitor();
39
+ /**
40
+ * The 'DEFAULT' status bar style was added
41
+ * to the @capacitor/status-bar plugin in Capacitor 3.
42
+ * PluginHeaders is only supported in Capacitor 3+,
43
+ * so we can use this to detect Capacitor 3.
44
+ */
45
+ return !!(capacitor === null || capacitor === void 0 ? void 0 : capacitor.PluginHeaders);
46
+ },
47
+ setStyle(options) {
48
+ const engine = this.getEngine();
49
+ if (!engine) {
50
+ return;
51
+ }
52
+ engine.setStyle(options);
53
+ },
54
+ getStyle: async function () {
55
+ const engine = this.getEngine();
56
+ if (!engine) {
57
+ return Style.Default;
58
+ }
59
+ const { style } = await engine.getInfo();
60
+ return style;
61
+ },
62
+ };
63
+
5
64
  /*!
6
65
  * (C) Ionic http://ionicframework.com - MIT License
7
- */export{nt as IonModal,dt as defineCustomElement}
66
+ */
67
+ /**
68
+ * Use y = mx + b to
69
+ * figure out the backdrop value
70
+ * at a particular x coordinate. This
71
+ * is useful when the backdrop does
72
+ * not begin to fade in until after
73
+ * the 0 breakpoint.
74
+ */
75
+ const getBackdropValueForSheet = (x, backdropBreakpoint) => {
76
+ /**
77
+ * We will use these points:
78
+ * (backdropBreakpoint, 0)
79
+ * (maxBreakpoint, 1)
80
+ * We know that at the beginning breakpoint,
81
+ * the backdrop will be hidden. We also
82
+ * know that at the maxBreakpoint, the backdrop
83
+ * must be fully visible. maxBreakpoint should
84
+ * always be 1 even if the maximum value
85
+ * of the breakpoints array is not 1 since
86
+ * the animation runs from a progress of 0
87
+ * to a progress of 1.
88
+ * m = (y2 - y1) / (x2 - x1)
89
+ *
90
+ * This is simplified from:
91
+ * m = (1 - 0) / (maxBreakpoint - backdropBreakpoint)
92
+ *
93
+ * If the backdropBreakpoint is 1, we return 0 as the
94
+ * backdrop is completely hidden.
95
+ *
96
+ */
97
+ if (backdropBreakpoint === 1) {
98
+ return 0;
99
+ }
100
+ const slope = 1 / (1 - backdropBreakpoint);
101
+ /**
102
+ * From here, compute b which is
103
+ * the backdrop opacity if the offset
104
+ * is 0. If the backdrop does not
105
+ * begin to fade in until after the
106
+ * 0 breakpoint, this b value will be
107
+ * negative. This is fine as we never pass
108
+ * b directly into the animation keyframes.
109
+ * b = y - mx
110
+ * Use a known point: (backdropBreakpoint, 0)
111
+ * This is simplified from:
112
+ * b = 0 - (backdropBreakpoint * slope)
113
+ */
114
+ const b = -(backdropBreakpoint * slope);
115
+ /**
116
+ * Finally, we can now determine the
117
+ * backdrop offset given an arbitrary
118
+ * gesture offset.
119
+ */
120
+ return x * slope + b;
121
+ };
122
+ /**
123
+ * The tablet/desktop card modal activates
124
+ * when the window width is >= 768.
125
+ * At that point, the presenting element
126
+ * is not transformed, so we do not need to
127
+ * adjust the status bar color.
128
+ *
129
+ * Note: We check supportsDefaultStatusBarStyle so that
130
+ * Capacitor <= 2 users do not get their status bar
131
+ * stuck in an inconsistent state due to a lack of
132
+ * support for Style.Default.
133
+ */
134
+ const setCardStatusBarDark = () => {
135
+ // TODO FW-4696 Remove supportDefaultStatusBarStyle in Ionic v8
136
+ if (!win || win.innerWidth >= 768 || !StatusBar.supportsDefaultStatusBarStyle()) {
137
+ return;
138
+ }
139
+ StatusBar.setStyle({ style: Style.Dark });
140
+ };
141
+ const setCardStatusBarDefault = (defaultStyle = Style.Default) => {
142
+ // TODO FW-4696 Remove supportDefaultStatusBarStyle in Ionic v8
143
+ if (!win || win.innerWidth >= 768 || !StatusBar.supportsDefaultStatusBarStyle()) {
144
+ return;
145
+ }
146
+ StatusBar.setStyle({ style: defaultStyle });
147
+ };
148
+
149
+ /*!
150
+ * (C) Ionic http://ionicframework.com - MIT License
151
+ */
152
+ const handleCanDismiss = async (el, animation) => {
153
+ /**
154
+ * If canDismiss is not a function
155
+ * then we can return early. If canDismiss is `true`,
156
+ * then canDismissBlocksGesture is `false` as canDismiss
157
+ * will never interrupt the gesture. As a result,
158
+ * this code block is never reached. If canDismiss is `false`,
159
+ * then we never dismiss.
160
+ */
161
+ if (typeof el.canDismiss !== 'function') {
162
+ return;
163
+ }
164
+ /**
165
+ * Run the canDismiss callback.
166
+ * If the function returns `true`,
167
+ * then we can proceed with dismiss.
168
+ */
169
+ const shouldDismiss = await el.canDismiss(undefined, GESTURE);
170
+ if (!shouldDismiss) {
171
+ return;
172
+ }
173
+ /**
174
+ * If canDismiss resolved after the snap
175
+ * back animation finished, we can
176
+ * dismiss immediately.
177
+ *
178
+ * If canDismiss resolved before the snap
179
+ * back animation finished, we need to
180
+ * wait until the snap back animation is
181
+ * done before dismissing.
182
+ */
183
+ if (animation.isRunning()) {
184
+ animation.onFinish(() => {
185
+ el.dismiss(undefined, 'handler');
186
+ }, { oneTimeCallback: true });
187
+ }
188
+ else {
189
+ el.dismiss(undefined, 'handler');
190
+ }
191
+ };
192
+ /**
193
+ * This function lets us simulate a realistic spring-like animation
194
+ * when swiping down on the modal.
195
+ * There are two forces that we need to use to compute the spring physics:
196
+ *
197
+ * 1. Stiffness, k: This is a measure of resistance applied a spring.
198
+ * 2. Dampening, c: This value has the effect of reducing or preventing oscillation.
199
+ *
200
+ * Using these two values, we can calculate the Spring Force and the Dampening Force
201
+ * to compute the total force applied to a spring.
202
+ *
203
+ * Spring Force: This force pulls a spring back into its equilibrium position.
204
+ * Hooke's Law tells us that that spring force (FS) = kX.
205
+ * k is the stiffness of a spring, and X is the displacement of the spring from its
206
+ * equilibrium position. In this case, it is the amount by which the free end
207
+ * of a spring was displaced (stretched/pushed) from its "relaxed" position.
208
+ *
209
+ * Dampening Force: This force slows down motion. Without it, a spring would oscillate forever.
210
+ * The dampening force, FD, can be found via this formula: FD = -cv
211
+ * where c the dampening value and v is velocity.
212
+ *
213
+ * Therefore, the resulting force that is exerted on the block is:
214
+ * F = FS + FD = -kX - cv
215
+ *
216
+ * Newton's 2nd Law tells us that F = ma:
217
+ * ma = -kX - cv.
218
+ *
219
+ * For Ionic's purposes, we can assume that m = 1:
220
+ * a = -kX - cv
221
+ *
222
+ * Imagine a block attached to the end of a spring. At equilibrium
223
+ * the block is at position x = 1.
224
+ * Pressing on the block moves it to position x = 0;
225
+ * So, to calculate the displacement, we need to take the
226
+ * current position and subtract the previous position from it.
227
+ * X = x - x0 = 0 - 1 = -1.
228
+ *
229
+ * For Ionic's purposes, we are only pushing on the spring modal
230
+ * so we have a max position of 1.
231
+ * As a result, we can expand displacement to this formula:
232
+ * X = x - 1
233
+ *
234
+ * a = -k(x - 1) - cv
235
+ *
236
+ * We can represent the motion of something as a function of time: f(t) = x.
237
+ * The derivative of position gives us the velocity: f'(t)
238
+ * The derivative of the velocity gives us the acceleration: f''(t)
239
+ *
240
+ * We can substitute the formula above with these values:
241
+ *
242
+ * f"(t) = -k * (f(t) - 1) - c * f'(t)
243
+ *
244
+ * This is called a differential equation.
245
+ *
246
+ * We know that at t = 0, we are at x = 0 because the modal does not move: f(0) = 0
247
+ * This means our velocity is also zero: f'(0) = 0.
248
+ *
249
+ * We can cheat a bit and plug the formula into Wolfram Alpha.
250
+ * However, we need to pick stiffness and dampening values:
251
+ * k = 0.57
252
+ * c = 15
253
+ *
254
+ * I picked these as they are fairly close to native iOS's spring effect
255
+ * with the modal.
256
+ *
257
+ * What we plug in is this: f(0) = 0; f'(0) = 0; f''(t) = -0.57(f(t) - 1) - 15f'(t)
258
+ *
259
+ * The result is a formula that lets us calculate the acceleration
260
+ * for a given time t.
261
+ * Note: This is the approximate form of the solution. Wolfram Alpha will
262
+ * give you a complex differential equation too.
263
+ */
264
+ const calculateSpringStep = (t) => {
265
+ return 0.00255275 * 2.71828 ** (-14.9619 * t) - 1.00255 * 2.71828 ** (-0.0380968 * t) + 1;
266
+ };
267
+
268
+ /*!
269
+ * (C) Ionic http://ionicframework.com - MIT License
270
+ */
271
+ // Defaults for the card swipe animation
272
+ const SwipeToCloseDefaults = {
273
+ MIN_PRESENTING_SCALE: 0.93,
274
+ };
275
+ const createSwipeToCloseGesture = (el, animation, statusBarStyle, onDismiss) => {
276
+ /**
277
+ * The step value at which a card modal
278
+ * is eligible for dismissing via gesture.
279
+ */
280
+ const DISMISS_THRESHOLD = 0.5;
281
+ const height = el.offsetHeight;
282
+ let isOpen = false;
283
+ let canDismissBlocksGesture = false;
284
+ let contentEl = null;
285
+ let scrollEl = null;
286
+ const canDismissMaxStep = 0.2;
287
+ let initialScrollY = true;
288
+ let lastStep = 0;
289
+ const getScrollY = () => {
290
+ if (contentEl && isIonContent(contentEl)) {
291
+ return contentEl.scrollY;
292
+ /**
293
+ * Custom scroll containers are intended to be
294
+ * used with virtual scrolling, so we assume
295
+ * there is scrolling in this case.
296
+ */
297
+ }
298
+ else {
299
+ return true;
300
+ }
301
+ };
302
+ const canStart = (detail) => {
303
+ const target = detail.event.target;
304
+ if (target === null || !target.closest) {
305
+ return true;
306
+ }
307
+ /**
308
+ * If we are swiping on the content,
309
+ * swiping should only be possible if
310
+ * the content is scrolled all the way
311
+ * to the top so that we do not interfere
312
+ * with scrolling.
313
+ *
314
+ * We cannot assume that the `ion-content`
315
+ * target will remain consistent between
316
+ * swipes. For example, when using
317
+ * ion-nav within a card modal it is
318
+ * possible to swipe, push a view, and then
319
+ * swipe again. The target content will not
320
+ * be the same between swipes.
321
+ */
322
+ contentEl = findClosestIonContent(target);
323
+ if (contentEl) {
324
+ /**
325
+ * The card should never swipe to close
326
+ * on the content with a refresher.
327
+ * Note: We cannot solve this by making the
328
+ * swipeToClose gesture have a higher priority
329
+ * than the refresher gesture as the iOS native
330
+ * refresh gesture uses a scroll listener in
331
+ * addition to a gesture.
332
+ *
333
+ * Note: Do not use getScrollElement here
334
+ * because we need this to be a synchronous
335
+ * operation, and getScrollElement is
336
+ * asynchronous.
337
+ */
338
+ if (isIonContent(contentEl)) {
339
+ const root = getElementRoot(contentEl);
340
+ scrollEl = root.querySelector('.inner-scroll');
341
+ }
342
+ else {
343
+ scrollEl = contentEl;
344
+ }
345
+ const hasRefresherInContent = !!contentEl.querySelector('ion-refresher');
346
+ return !hasRefresherInContent && scrollEl.scrollTop === 0;
347
+ }
348
+ /**
349
+ * Card should be swipeable on all
350
+ * parts of the modal except for the footer.
351
+ */
352
+ const footer = target.closest('ion-footer');
353
+ if (footer === null) {
354
+ return true;
355
+ }
356
+ return false;
357
+ };
358
+ const onStart = (detail) => {
359
+ const { deltaY } = detail;
360
+ /**
361
+ * Get the initial scrollY value so
362
+ * that we can correctly reset the scrollY
363
+ * prop when the gesture ends.
364
+ */
365
+ initialScrollY = getScrollY();
366
+ /**
367
+ * If canDismiss is anything other than `true`
368
+ * then users should be able to swipe down
369
+ * until a threshold is hit. At that point,
370
+ * the card modal should not proceed any further.
371
+ * TODO (FW-937)
372
+ * Remove undefined check
373
+ */
374
+ canDismissBlocksGesture = el.canDismiss !== undefined && el.canDismiss !== true;
375
+ /**
376
+ * If we are pulling down, then
377
+ * it is possible we are pulling on the
378
+ * content. We do not want scrolling to
379
+ * happen at the same time as the gesture.
380
+ */
381
+ if (deltaY > 0 && contentEl) {
382
+ disableContentScrollY(contentEl);
383
+ }
384
+ animation.progressStart(true, isOpen ? 1 : 0);
385
+ };
386
+ const onMove = (detail) => {
387
+ const { deltaY } = detail;
388
+ /**
389
+ * If we are pulling down, then
390
+ * it is possible we are pulling on the
391
+ * content. We do not want scrolling to
392
+ * happen at the same time as the gesture.
393
+ */
394
+ if (deltaY > 0 && contentEl) {
395
+ disableContentScrollY(contentEl);
396
+ }
397
+ /**
398
+ * If we are swiping on the content
399
+ * then the swipe gesture should only
400
+ * happen if we are pulling down.
401
+ *
402
+ * However, if we pull up and
403
+ * then down such that the scroll position
404
+ * returns to 0, we should be able to swipe
405
+ * the card.
406
+ */
407
+ const step = detail.deltaY / height;
408
+ /**
409
+ * Check if user is swiping down and
410
+ * if we have a canDismiss value that
411
+ * should block the gesture from
412
+ * proceeding,
413
+ */
414
+ const isAttemptingDismissWithCanDismiss = step >= 0 && canDismissBlocksGesture;
415
+ /**
416
+ * If we are blocking the gesture from dismissing,
417
+ * set the max step value so that the sheet cannot be
418
+ * completely hidden.
419
+ */
420
+ const maxStep = isAttemptingDismissWithCanDismiss ? canDismissMaxStep : 0.9999;
421
+ /**
422
+ * If we are blocking the gesture from
423
+ * dismissing, calculate the spring modifier value
424
+ * this will be added to the starting breakpoint
425
+ * value to give the gesture a spring-like feeling.
426
+ * Note that the starting breakpoint is always 0,
427
+ * so we omit adding 0 to the result.
428
+ */
429
+ const processedStep = isAttemptingDismissWithCanDismiss ? calculateSpringStep(step / maxStep) : step;
430
+ const clampedStep = clamp(0.0001, processedStep, maxStep);
431
+ animation.progressStep(clampedStep);
432
+ /**
433
+ * When swiping down half way, the status bar style
434
+ * should be reset to its default value.
435
+ *
436
+ * We track lastStep so that we do not fire these
437
+ * functions on every onMove, only when the user has
438
+ * crossed a certain threshold.
439
+ */
440
+ if (clampedStep >= DISMISS_THRESHOLD && lastStep < DISMISS_THRESHOLD) {
441
+ setCardStatusBarDefault(statusBarStyle);
442
+ /**
443
+ * However, if we swipe back up, then the
444
+ * status bar style should be set to have light
445
+ * text on a dark background.
446
+ */
447
+ }
448
+ else if (clampedStep < DISMISS_THRESHOLD && lastStep >= DISMISS_THRESHOLD) {
449
+ setCardStatusBarDark();
450
+ }
451
+ lastStep = clampedStep;
452
+ };
453
+ const onEnd = (detail) => {
454
+ const velocity = detail.velocityY;
455
+ const step = detail.deltaY / height;
456
+ const isAttemptingDismissWithCanDismiss = step >= 0 && canDismissBlocksGesture;
457
+ const maxStep = isAttemptingDismissWithCanDismiss ? canDismissMaxStep : 0.9999;
458
+ const processedStep = isAttemptingDismissWithCanDismiss ? calculateSpringStep(step / maxStep) : step;
459
+ const clampedStep = clamp(0.0001, processedStep, maxStep);
460
+ const threshold = (detail.deltaY + velocity * 1000) / height;
461
+ /**
462
+ * If canDismiss blocks
463
+ * the swipe gesture, then the
464
+ * animation can never complete until
465
+ * canDismiss is checked.
466
+ */
467
+ const shouldComplete = !isAttemptingDismissWithCanDismiss && threshold >= DISMISS_THRESHOLD;
468
+ let newStepValue = shouldComplete ? -0.001 : 0.001;
469
+ if (!shouldComplete) {
470
+ animation.easing('cubic-bezier(1, 0, 0.68, 0.28)');
471
+ newStepValue += getTimeGivenProgression([0, 0], [1, 0], [0.68, 0.28], [1, 1], clampedStep)[0];
472
+ }
473
+ else {
474
+ animation.easing('cubic-bezier(0.32, 0.72, 0, 1)');
475
+ newStepValue += getTimeGivenProgression([0, 0], [0.32, 0.72], [0, 1], [1, 1], clampedStep)[0];
476
+ }
477
+ const duration = shouldComplete
478
+ ? computeDuration(step * height, velocity)
479
+ : computeDuration((1 - clampedStep) * height, velocity);
480
+ isOpen = shouldComplete;
481
+ gesture.enable(false);
482
+ if (contentEl) {
483
+ resetContentScrollY(contentEl, initialScrollY);
484
+ }
485
+ animation
486
+ .onFinish(() => {
487
+ if (!shouldComplete) {
488
+ gesture.enable(true);
489
+ }
490
+ })
491
+ .progressEnd(shouldComplete ? 1 : 0, newStepValue, duration);
492
+ /**
493
+ * If the canDismiss value blocked the gesture
494
+ * from proceeding, then we should ignore whatever
495
+ * shouldComplete is. Whether or not the modal
496
+ * animation should complete is now determined by
497
+ * canDismiss.
498
+ *
499
+ * If the user swiped >25% of the way
500
+ * to the max step, then we should
501
+ * check canDismiss. 25% was chosen
502
+ * to avoid accidental swipes.
503
+ */
504
+ if (isAttemptingDismissWithCanDismiss && clampedStep > maxStep / 4) {
505
+ handleCanDismiss(el, animation);
506
+ }
507
+ else if (shouldComplete) {
508
+ onDismiss();
509
+ }
510
+ };
511
+ const gesture = createGesture({
512
+ el,
513
+ gestureName: 'modalSwipeToClose',
514
+ gesturePriority: OVERLAY_GESTURE_PRIORITY,
515
+ direction: 'y',
516
+ threshold: 10,
517
+ canStart,
518
+ onStart,
519
+ onMove,
520
+ onEnd,
521
+ });
522
+ return gesture;
523
+ };
524
+ const computeDuration = (remaining, velocity) => {
525
+ return clamp(400, remaining / Math.abs(velocity * 1.1), 500);
526
+ };
527
+
528
+ /*!
529
+ * (C) Ionic http://ionicframework.com - MIT License
530
+ */
531
+ const createSheetEnterAnimation = (opts) => {
532
+ const { currentBreakpoint, backdropBreakpoint } = opts;
533
+ /**
534
+ * If the backdropBreakpoint is undefined, then the backdrop
535
+ * should always fade in. If the backdropBreakpoint came before the
536
+ * current breakpoint, then the backdrop should be fading in.
537
+ */
538
+ const shouldShowBackdrop = backdropBreakpoint === undefined || backdropBreakpoint < currentBreakpoint;
539
+ const initialBackdrop = shouldShowBackdrop ? `calc(var(--backdrop-opacity) * ${currentBreakpoint})` : '0';
540
+ const backdropAnimation = createAnimation('backdropAnimation').fromTo('opacity', 0, initialBackdrop);
541
+ if (shouldShowBackdrop) {
542
+ backdropAnimation
543
+ .beforeStyles({
544
+ 'pointer-events': 'none',
545
+ })
546
+ .afterClearStyles(['pointer-events']);
547
+ }
548
+ const wrapperAnimation = createAnimation('wrapperAnimation').keyframes([
549
+ { offset: 0, opacity: 1, transform: 'translateY(100%)' },
550
+ { offset: 1, opacity: 1, transform: `translateY(${100 - currentBreakpoint * 100}%)` },
551
+ ]);
552
+ return { wrapperAnimation, backdropAnimation };
553
+ };
554
+ const createSheetLeaveAnimation = (opts) => {
555
+ const { currentBreakpoint, backdropBreakpoint } = opts;
556
+ /**
557
+ * Backdrop does not always fade in from 0 to 1 if backdropBreakpoint
558
+ * is defined, so we need to account for that offset by figuring out
559
+ * what the current backdrop value should be.
560
+ */
561
+ const backdropValue = `calc(var(--backdrop-opacity) * ${getBackdropValueForSheet(currentBreakpoint, backdropBreakpoint)})`;
562
+ const defaultBackdrop = [
563
+ { offset: 0, opacity: backdropValue },
564
+ { offset: 1, opacity: 0 },
565
+ ];
566
+ const customBackdrop = [
567
+ { offset: 0, opacity: backdropValue },
568
+ { offset: backdropBreakpoint, opacity: 0 },
569
+ { offset: 1, opacity: 0 },
570
+ ];
571
+ const backdropAnimation = createAnimation('backdropAnimation').keyframes(backdropBreakpoint !== 0 ? customBackdrop : defaultBackdrop);
572
+ const wrapperAnimation = createAnimation('wrapperAnimation').keyframes([
573
+ { offset: 0, opacity: 1, transform: `translateY(${100 - currentBreakpoint * 100}%)` },
574
+ { offset: 1, opacity: 1, transform: `translateY(100%)` },
575
+ ]);
576
+ return { wrapperAnimation, backdropAnimation };
577
+ };
578
+
579
+ /*!
580
+ * (C) Ionic http://ionicframework.com - MIT License
581
+ */
582
+ const createEnterAnimation$1 = () => {
583
+ const backdropAnimation = createAnimation()
584
+ .fromTo('opacity', 0.01, 'var(--backdrop-opacity)')
585
+ .beforeStyles({
586
+ 'pointer-events': 'none',
587
+ })
588
+ .afterClearStyles(['pointer-events']);
589
+ const wrapperAnimation = createAnimation().fromTo('transform', 'translateY(100vh)', 'translateY(0vh)');
590
+ return { backdropAnimation, wrapperAnimation };
591
+ };
592
+ /**
593
+ * iOS Modal Enter Animation for the Card presentation style
594
+ */
595
+ const iosEnterAnimation = (baseEl, opts) => {
596
+ const { presentingEl, currentBreakpoint } = opts;
597
+ const root = getElementRoot(baseEl);
598
+ const { wrapperAnimation, backdropAnimation } = currentBreakpoint !== undefined ? createSheetEnterAnimation(opts) : createEnterAnimation$1();
599
+ backdropAnimation.addElement(root.querySelector('ion-backdrop'));
600
+ wrapperAnimation.addElement(root.querySelectorAll('.modal-wrapper, .modal-shadow')).beforeStyles({ opacity: 1 });
601
+ const baseAnimation = createAnimation('entering-base')
602
+ .addElement(baseEl)
603
+ .easing('cubic-bezier(0.32,0.72,0,1)')
604
+ .duration(500)
605
+ .addAnimation(wrapperAnimation);
606
+ if (presentingEl) {
607
+ const isMobile = window.innerWidth < 768;
608
+ const hasCardModal = presentingEl.tagName === 'ION-MODAL' && presentingEl.presentingElement !== undefined;
609
+ const presentingElRoot = getElementRoot(presentingEl);
610
+ const presentingAnimation = createAnimation().beforeStyles({
611
+ transform: 'translateY(0)',
612
+ 'transform-origin': 'top center',
613
+ overflow: 'hidden',
614
+ });
615
+ const bodyEl = document.body;
616
+ if (isMobile) {
617
+ /**
618
+ * Fallback for browsers that does not support `max()` (ex: Firefox)
619
+ * No need to worry about statusbar padding since engines like Gecko
620
+ * are not used as the engine for standalone Cordova/Capacitor apps
621
+ */
622
+ const transformOffset = !CSS.supports('width', 'max(0px, 1px)') ? '30px' : 'max(30px, var(--ion-safe-area-top))';
623
+ const modalTransform = hasCardModal ? '-10px' : transformOffset;
624
+ const toPresentingScale = SwipeToCloseDefaults.MIN_PRESENTING_SCALE;
625
+ const finalTransform = `translateY(${modalTransform}) scale(${toPresentingScale})`;
626
+ presentingAnimation
627
+ .afterStyles({
628
+ transform: finalTransform,
629
+ })
630
+ .beforeAddWrite(() => bodyEl.style.setProperty('background-color', 'black'))
631
+ .addElement(presentingEl)
632
+ .keyframes([
633
+ { offset: 0, filter: 'contrast(1)', transform: 'translateY(0px) scale(1)', borderRadius: '0px' },
634
+ { offset: 1, filter: 'contrast(0.85)', transform: finalTransform, borderRadius: '10px 10px 0 0' },
635
+ ]);
636
+ baseAnimation.addAnimation(presentingAnimation);
637
+ }
638
+ else {
639
+ baseAnimation.addAnimation(backdropAnimation);
640
+ if (!hasCardModal) {
641
+ wrapperAnimation.fromTo('opacity', '0', '1');
642
+ }
643
+ else {
644
+ const toPresentingScale = hasCardModal ? SwipeToCloseDefaults.MIN_PRESENTING_SCALE : 1;
645
+ const finalTransform = `translateY(-10px) scale(${toPresentingScale})`;
646
+ presentingAnimation
647
+ .afterStyles({
648
+ transform: finalTransform,
649
+ })
650
+ .addElement(presentingElRoot.querySelector('.modal-wrapper'))
651
+ .keyframes([
652
+ { offset: 0, filter: 'contrast(1)', transform: 'translateY(0) scale(1)' },
653
+ { offset: 1, filter: 'contrast(0.85)', transform: finalTransform },
654
+ ]);
655
+ const shadowAnimation = createAnimation()
656
+ .afterStyles({
657
+ transform: finalTransform,
658
+ })
659
+ .addElement(presentingElRoot.querySelector('.modal-shadow'))
660
+ .keyframes([
661
+ { offset: 0, opacity: '1', transform: 'translateY(0) scale(1)' },
662
+ { offset: 1, opacity: '0', transform: finalTransform },
663
+ ]);
664
+ baseAnimation.addAnimation([presentingAnimation, shadowAnimation]);
665
+ }
666
+ }
667
+ }
668
+ else {
669
+ baseAnimation.addAnimation(backdropAnimation);
670
+ }
671
+ return baseAnimation;
672
+ };
673
+
674
+ /*!
675
+ * (C) Ionic http://ionicframework.com - MIT License
676
+ */
677
+ const createLeaveAnimation$1 = () => {
678
+ const backdropAnimation = createAnimation().fromTo('opacity', 'var(--backdrop-opacity)', 0);
679
+ const wrapperAnimation = createAnimation().fromTo('transform', 'translateY(0vh)', 'translateY(100vh)');
680
+ return { backdropAnimation, wrapperAnimation };
681
+ };
682
+ /**
683
+ * iOS Modal Leave Animation
684
+ */
685
+ const iosLeaveAnimation = (baseEl, opts, duration = 500) => {
686
+ const { presentingEl, currentBreakpoint } = opts;
687
+ const root = getElementRoot(baseEl);
688
+ const { wrapperAnimation, backdropAnimation } = currentBreakpoint !== undefined ? createSheetLeaveAnimation(opts) : createLeaveAnimation$1();
689
+ backdropAnimation.addElement(root.querySelector('ion-backdrop'));
690
+ wrapperAnimation.addElement(root.querySelectorAll('.modal-wrapper, .modal-shadow')).beforeStyles({ opacity: 1 });
691
+ const baseAnimation = createAnimation('leaving-base')
692
+ .addElement(baseEl)
693
+ .easing('cubic-bezier(0.32,0.72,0,1)')
694
+ .duration(duration)
695
+ .addAnimation(wrapperAnimation);
696
+ if (presentingEl) {
697
+ const isMobile = window.innerWidth < 768;
698
+ const hasCardModal = presentingEl.tagName === 'ION-MODAL' && presentingEl.presentingElement !== undefined;
699
+ const presentingElRoot = getElementRoot(presentingEl);
700
+ const presentingAnimation = createAnimation()
701
+ .beforeClearStyles(['transform'])
702
+ .afterClearStyles(['transform'])
703
+ .onFinish((currentStep) => {
704
+ // only reset background color if this is the last card-style modal
705
+ if (currentStep !== 1) {
706
+ return;
707
+ }
708
+ presentingEl.style.setProperty('overflow', '');
709
+ const numModals = Array.from(bodyEl.querySelectorAll('ion-modal:not(.overlay-hidden)')).filter((m) => m.presentingElement !== undefined).length;
710
+ if (numModals <= 1) {
711
+ bodyEl.style.setProperty('background-color', '');
712
+ }
713
+ });
714
+ const bodyEl = document.body;
715
+ if (isMobile) {
716
+ const transformOffset = !CSS.supports('width', 'max(0px, 1px)') ? '30px' : 'max(30px, var(--ion-safe-area-top))';
717
+ const modalTransform = hasCardModal ? '-10px' : transformOffset;
718
+ const toPresentingScale = SwipeToCloseDefaults.MIN_PRESENTING_SCALE;
719
+ const finalTransform = `translateY(${modalTransform}) scale(${toPresentingScale})`;
720
+ presentingAnimation.addElement(presentingEl).keyframes([
721
+ { offset: 0, filter: 'contrast(0.85)', transform: finalTransform, borderRadius: '10px 10px 0 0' },
722
+ { offset: 1, filter: 'contrast(1)', transform: 'translateY(0px) scale(1)', borderRadius: '0px' },
723
+ ]);
724
+ baseAnimation.addAnimation(presentingAnimation);
725
+ }
726
+ else {
727
+ baseAnimation.addAnimation(backdropAnimation);
728
+ if (!hasCardModal) {
729
+ wrapperAnimation.fromTo('opacity', '1', '0');
730
+ }
731
+ else {
732
+ const toPresentingScale = hasCardModal ? SwipeToCloseDefaults.MIN_PRESENTING_SCALE : 1;
733
+ const finalTransform = `translateY(-10px) scale(${toPresentingScale})`;
734
+ presentingAnimation
735
+ .addElement(presentingElRoot.querySelector('.modal-wrapper'))
736
+ .afterStyles({
737
+ transform: 'translate3d(0, 0, 0)',
738
+ })
739
+ .keyframes([
740
+ { offset: 0, filter: 'contrast(0.85)', transform: finalTransform },
741
+ { offset: 1, filter: 'contrast(1)', transform: 'translateY(0) scale(1)' },
742
+ ]);
743
+ const shadowAnimation = createAnimation()
744
+ .addElement(presentingElRoot.querySelector('.modal-shadow'))
745
+ .afterStyles({
746
+ transform: 'translateY(0) scale(1)',
747
+ })
748
+ .keyframes([
749
+ { offset: 0, opacity: '0', transform: finalTransform },
750
+ { offset: 1, opacity: '1', transform: 'translateY(0) scale(1)' },
751
+ ]);
752
+ baseAnimation.addAnimation([presentingAnimation, shadowAnimation]);
753
+ }
754
+ }
755
+ }
756
+ else {
757
+ baseAnimation.addAnimation(backdropAnimation);
758
+ }
759
+ return baseAnimation;
760
+ };
761
+
762
+ /*!
763
+ * (C) Ionic http://ionicframework.com - MIT License
764
+ */
765
+ const createEnterAnimation = () => {
766
+ const backdropAnimation = createAnimation()
767
+ .fromTo('opacity', 0.01, 'var(--backdrop-opacity)')
768
+ .beforeStyles({
769
+ 'pointer-events': 'none',
770
+ })
771
+ .afterClearStyles(['pointer-events']);
772
+ const wrapperAnimation = createAnimation().keyframes([
773
+ { offset: 0, opacity: 0.01, transform: 'translateY(40px)' },
774
+ { offset: 1, opacity: 1, transform: `translateY(0px)` },
775
+ ]);
776
+ return { backdropAnimation, wrapperAnimation };
777
+ };
778
+ /**
779
+ * Md Modal Enter Animation
780
+ */
781
+ const mdEnterAnimation = (baseEl, opts) => {
782
+ const { currentBreakpoint } = opts;
783
+ const root = getElementRoot(baseEl);
784
+ const { wrapperAnimation, backdropAnimation } = currentBreakpoint !== undefined ? createSheetEnterAnimation(opts) : createEnterAnimation();
785
+ backdropAnimation.addElement(root.querySelector('ion-backdrop'));
786
+ wrapperAnimation.addElement(root.querySelector('.modal-wrapper'));
787
+ return createAnimation()
788
+ .addElement(baseEl)
789
+ .easing('cubic-bezier(0.36,0.66,0.04,1)')
790
+ .duration(280)
791
+ .addAnimation([backdropAnimation, wrapperAnimation]);
792
+ };
793
+
794
+ /*!
795
+ * (C) Ionic http://ionicframework.com - MIT License
796
+ */
797
+ const createLeaveAnimation = () => {
798
+ const backdropAnimation = createAnimation().fromTo('opacity', 'var(--backdrop-opacity)', 0);
799
+ const wrapperAnimation = createAnimation().keyframes([
800
+ { offset: 0, opacity: 0.99, transform: `translateY(0px)` },
801
+ { offset: 1, opacity: 0, transform: 'translateY(40px)' },
802
+ ]);
803
+ return { backdropAnimation, wrapperAnimation };
804
+ };
805
+ /**
806
+ * Md Modal Leave Animation
807
+ */
808
+ const mdLeaveAnimation = (baseEl, opts) => {
809
+ const { currentBreakpoint } = opts;
810
+ const root = getElementRoot(baseEl);
811
+ const { wrapperAnimation, backdropAnimation } = currentBreakpoint !== undefined ? createSheetLeaveAnimation(opts) : createLeaveAnimation();
812
+ backdropAnimation.addElement(root.querySelector('ion-backdrop'));
813
+ wrapperAnimation.addElement(root.querySelector('.modal-wrapper'));
814
+ return createAnimation()
815
+ .easing('cubic-bezier(0.47,0,0.745,0.715)')
816
+ .duration(200)
817
+ .addAnimation([backdropAnimation, wrapperAnimation]);
818
+ };
819
+
820
+ /*!
821
+ * (C) Ionic http://ionicframework.com - MIT License
822
+ */
823
+ const createSheetGesture = (baseEl, backdropEl, wrapperEl, initialBreakpoint, backdropBreakpoint, animation, breakpoints = [], getCurrentBreakpoint, onDismiss, onBreakpointChange) => {
824
+ // Defaults for the sheet swipe animation
825
+ const defaultBackdrop = [
826
+ { offset: 0, opacity: 'var(--backdrop-opacity)' },
827
+ { offset: 1, opacity: 0.01 },
828
+ ];
829
+ const customBackdrop = [
830
+ { offset: 0, opacity: 'var(--backdrop-opacity)' },
831
+ { offset: 1 - backdropBreakpoint, opacity: 0 },
832
+ { offset: 1, opacity: 0 },
833
+ ];
834
+ const SheetDefaults = {
835
+ WRAPPER_KEYFRAMES: [
836
+ { offset: 0, transform: 'translateY(0%)' },
837
+ { offset: 1, transform: 'translateY(100%)' },
838
+ ],
839
+ BACKDROP_KEYFRAMES: backdropBreakpoint !== 0 ? customBackdrop : defaultBackdrop,
840
+ };
841
+ const contentEl = baseEl.querySelector('ion-content');
842
+ const height = wrapperEl.clientHeight;
843
+ let currentBreakpoint = initialBreakpoint;
844
+ let offset = 0;
845
+ let canDismissBlocksGesture = false;
846
+ const canDismissMaxStep = 0.95;
847
+ const wrapperAnimation = animation.childAnimations.find((ani) => ani.id === 'wrapperAnimation');
848
+ const backdropAnimation = animation.childAnimations.find((ani) => ani.id === 'backdropAnimation');
849
+ const maxBreakpoint = breakpoints[breakpoints.length - 1];
850
+ const minBreakpoint = breakpoints[0];
851
+ const enableBackdrop = () => {
852
+ baseEl.style.setProperty('pointer-events', 'auto');
853
+ backdropEl.style.setProperty('pointer-events', 'auto');
854
+ /**
855
+ * When the backdrop is enabled, elements such
856
+ * as inputs should not be focusable outside
857
+ * the sheet.
858
+ */
859
+ baseEl.classList.remove('ion-disable-focus-trap');
860
+ };
861
+ const disableBackdrop = () => {
862
+ baseEl.style.setProperty('pointer-events', 'none');
863
+ backdropEl.style.setProperty('pointer-events', 'none');
864
+ /**
865
+ * When the backdrop is enabled, elements such
866
+ * as inputs should not be focusable outside
867
+ * the sheet.
868
+ * Adding this class disables focus trapping
869
+ * for the sheet temporarily.
870
+ */
871
+ baseEl.classList.add('ion-disable-focus-trap');
872
+ };
873
+ /**
874
+ * After the entering animation completes,
875
+ * we need to set the animation to go from
876
+ * offset 0 to offset 1 so that users can
877
+ * swipe in any direction. We then set the
878
+ * animation offset to the current breakpoint
879
+ * so there is no flickering.
880
+ */
881
+ if (wrapperAnimation && backdropAnimation) {
882
+ wrapperAnimation.keyframes([...SheetDefaults.WRAPPER_KEYFRAMES]);
883
+ backdropAnimation.keyframes([...SheetDefaults.BACKDROP_KEYFRAMES]);
884
+ animation.progressStart(true, 1 - currentBreakpoint);
885
+ /**
886
+ * If backdrop is not enabled, then content
887
+ * behind modal should be clickable. To do this, we need
888
+ * to remove pointer-events from ion-modal as a whole.
889
+ * ion-backdrop and .modal-wrapper always have pointer-events: auto
890
+ * applied, so the modal content can still be interacted with.
891
+ */
892
+ const shouldEnableBackdrop = currentBreakpoint > backdropBreakpoint;
893
+ if (shouldEnableBackdrop) {
894
+ enableBackdrop();
895
+ }
896
+ else {
897
+ disableBackdrop();
898
+ }
899
+ }
900
+ if (contentEl && currentBreakpoint !== maxBreakpoint) {
901
+ contentEl.scrollY = false;
902
+ }
903
+ const canStart = (detail) => {
904
+ /**
905
+ * If we are swiping on the content, swiping should only be possible if the content
906
+ * is scrolled all the way to the top so that we do not interfere with scrolling.
907
+ *
908
+ * We cannot assume that the `ion-content` target will remain consistent between swipes.
909
+ * For example, when using ion-nav within a modal it is possible to swipe, push a view,
910
+ * and then swipe again. The target content will not be the same between swipes.
911
+ */
912
+ const contentEl = findClosestIonContent(detail.event.target);
913
+ currentBreakpoint = getCurrentBreakpoint();
914
+ if (currentBreakpoint === 1 && contentEl) {
915
+ /**
916
+ * The modal should never swipe to close on the content with a refresher.
917
+ * Note 1: We cannot solve this by making this gesture have a higher priority than
918
+ * the refresher gesture as the iOS native refresh gesture uses a scroll listener in
919
+ * addition to a gesture.
920
+ *
921
+ * Note 2: Do not use getScrollElement here because we need this to be a synchronous
922
+ * operation, and getScrollElement is asynchronous.
923
+ */
924
+ const scrollEl = isIonContent(contentEl) ? getElementRoot(contentEl).querySelector('.inner-scroll') : contentEl;
925
+ const hasRefresherInContent = !!contentEl.querySelector('ion-refresher');
926
+ return !hasRefresherInContent && scrollEl.scrollTop === 0;
927
+ }
928
+ return true;
929
+ };
930
+ const onStart = (detail) => {
931
+ /**
932
+ * If canDismiss is anything other than `true`
933
+ * then users should be able to swipe down
934
+ * until a threshold is hit. At that point,
935
+ * the card modal should not proceed any further.
936
+ *
937
+ * canDismiss is never fired via gesture if there is
938
+ * no 0 breakpoint. However, it can be fired if the user
939
+ * presses Esc or the hardware back button.
940
+ * TODO (FW-937)
941
+ * Remove undefined check
942
+ */
943
+ canDismissBlocksGesture = baseEl.canDismiss !== undefined && baseEl.canDismiss !== true && minBreakpoint === 0;
944
+ /**
945
+ * If we are pulling down, then it is possible we are pulling on the content.
946
+ * We do not want scrolling to happen at the same time as the gesture.
947
+ */
948
+ if (detail.deltaY > 0 && contentEl) {
949
+ contentEl.scrollY = false;
950
+ }
951
+ raf(() => {
952
+ /**
953
+ * Dismisses the open keyboard when the sheet drag gesture is started.
954
+ * Sets the focus onto the modal element.
955
+ */
956
+ baseEl.focus();
957
+ });
958
+ animation.progressStart(true, 1 - currentBreakpoint);
959
+ };
960
+ const onMove = (detail) => {
961
+ /**
962
+ * If we are pulling down, then it is possible we are pulling on the content.
963
+ * We do not want scrolling to happen at the same time as the gesture.
964
+ * This accounts for when the user scrolls down, scrolls all the way up, and then
965
+ * pulls down again such that the modal should start to move.
966
+ */
967
+ if (detail.deltaY > 0 && contentEl) {
968
+ contentEl.scrollY = false;
969
+ }
970
+ /**
971
+ * Given the change in gesture position on the Y axis,
972
+ * compute where the offset of the animation should be
973
+ * relative to where the user dragged.
974
+ */
975
+ const initialStep = 1 - currentBreakpoint;
976
+ const secondToLastBreakpoint = breakpoints.length > 1 ? 1 - breakpoints[1] : undefined;
977
+ const step = initialStep + detail.deltaY / height;
978
+ const isAttemptingDismissWithCanDismiss = secondToLastBreakpoint !== undefined && step >= secondToLastBreakpoint && canDismissBlocksGesture;
979
+ /**
980
+ * If we are blocking the gesture from dismissing,
981
+ * set the max step value so that the sheet cannot be
982
+ * completely hidden.
983
+ */
984
+ const maxStep = isAttemptingDismissWithCanDismiss ? canDismissMaxStep : 0.9999;
985
+ /**
986
+ * If we are blocking the gesture from
987
+ * dismissing, calculate the spring modifier value
988
+ * this will be added to the starting breakpoint
989
+ * value to give the gesture a spring-like feeling.
990
+ * Note that when isAttemptingDismissWithCanDismiss is true,
991
+ * the modifier is always added to the breakpoint that
992
+ * appears right after the 0 breakpoint.
993
+ *
994
+ * Note that this modifier is essentially the progression
995
+ * between secondToLastBreakpoint and maxStep which is
996
+ * why we subtract secondToLastBreakpoint. This lets us get
997
+ * the result as a value from 0 to 1.
998
+ */
999
+ const processedStep = isAttemptingDismissWithCanDismiss && secondToLastBreakpoint !== undefined
1000
+ ? secondToLastBreakpoint +
1001
+ calculateSpringStep((step - secondToLastBreakpoint) / (maxStep - secondToLastBreakpoint))
1002
+ : step;
1003
+ offset = clamp(0.0001, processedStep, maxStep);
1004
+ animation.progressStep(offset);
1005
+ };
1006
+ const onEnd = (detail) => {
1007
+ /**
1008
+ * When the gesture releases, we need to determine
1009
+ * the closest breakpoint to snap to.
1010
+ */
1011
+ const velocity = detail.velocityY;
1012
+ const threshold = (detail.deltaY + velocity * 350) / height;
1013
+ const diff = currentBreakpoint - threshold;
1014
+ const closest = breakpoints.reduce((a, b) => {
1015
+ return Math.abs(b - diff) < Math.abs(a - diff) ? b : a;
1016
+ });
1017
+ moveSheetToBreakpoint({
1018
+ breakpoint: closest,
1019
+ breakpointOffset: offset,
1020
+ canDismiss: canDismissBlocksGesture,
1021
+ /**
1022
+ * The swipe is user-driven, so we should
1023
+ * always animate when the gesture ends.
1024
+ */
1025
+ animated: true,
1026
+ });
1027
+ };
1028
+ const moveSheetToBreakpoint = (options) => {
1029
+ const { breakpoint, canDismiss, breakpointOffset, animated } = options;
1030
+ /**
1031
+ * canDismiss should only prevent snapping
1032
+ * when users are trying to dismiss. If canDismiss
1033
+ * is present but the user is trying to swipe upwards,
1034
+ * we should allow that to happen,
1035
+ */
1036
+ const shouldPreventDismiss = canDismiss && breakpoint === 0;
1037
+ const snapToBreakpoint = shouldPreventDismiss ? currentBreakpoint : breakpoint;
1038
+ const shouldRemainOpen = snapToBreakpoint !== 0;
1039
+ currentBreakpoint = 0;
1040
+ /**
1041
+ * Update the animation so that it plays from
1042
+ * the last offset to the closest snap point.
1043
+ */
1044
+ if (wrapperAnimation && backdropAnimation) {
1045
+ wrapperAnimation.keyframes([
1046
+ { offset: 0, transform: `translateY(${breakpointOffset * 100}%)` },
1047
+ { offset: 1, transform: `translateY(${(1 - snapToBreakpoint) * 100}%)` },
1048
+ ]);
1049
+ backdropAnimation.keyframes([
1050
+ {
1051
+ offset: 0,
1052
+ opacity: `calc(var(--backdrop-opacity) * ${getBackdropValueForSheet(1 - breakpointOffset, backdropBreakpoint)})`,
1053
+ },
1054
+ {
1055
+ offset: 1,
1056
+ opacity: `calc(var(--backdrop-opacity) * ${getBackdropValueForSheet(snapToBreakpoint, backdropBreakpoint)})`,
1057
+ },
1058
+ ]);
1059
+ animation.progressStep(0);
1060
+ }
1061
+ /**
1062
+ * Gesture should remain disabled until the
1063
+ * snapping animation completes.
1064
+ */
1065
+ gesture.enable(false);
1066
+ if (shouldPreventDismiss) {
1067
+ handleCanDismiss(baseEl, animation);
1068
+ }
1069
+ else if (!shouldRemainOpen) {
1070
+ onDismiss();
1071
+ }
1072
+ /**
1073
+ * If the sheet is going to be fully expanded then we should enable
1074
+ * scrolling immediately. The sheet modal animation takes ~500ms to finish
1075
+ * so if we wait until then there is a visible delay for when scrolling is
1076
+ * re-enabled. Native iOS allows for scrolling on the sheet modal as soon
1077
+ * as the gesture is released, so we align with that.
1078
+ */
1079
+ if (contentEl && snapToBreakpoint === breakpoints[breakpoints.length - 1]) {
1080
+ contentEl.scrollY = true;
1081
+ }
1082
+ return new Promise((resolve) => {
1083
+ animation
1084
+ .onFinish(() => {
1085
+ if (shouldRemainOpen) {
1086
+ /**
1087
+ * Once the snapping animation completes,
1088
+ * we need to reset the animation to go
1089
+ * from 0 to 1 so users can swipe in any direction.
1090
+ * We then set the animation offset to the current
1091
+ * breakpoint so that it starts at the snapped position.
1092
+ */
1093
+ if (wrapperAnimation && backdropAnimation) {
1094
+ raf(() => {
1095
+ wrapperAnimation.keyframes([...SheetDefaults.WRAPPER_KEYFRAMES]);
1096
+ backdropAnimation.keyframes([...SheetDefaults.BACKDROP_KEYFRAMES]);
1097
+ animation.progressStart(true, 1 - snapToBreakpoint);
1098
+ currentBreakpoint = snapToBreakpoint;
1099
+ onBreakpointChange(currentBreakpoint);
1100
+ /**
1101
+ * Backdrop should become enabled
1102
+ * after the backdropBreakpoint value
1103
+ */
1104
+ const shouldEnableBackdrop = currentBreakpoint > backdropBreakpoint;
1105
+ if (shouldEnableBackdrop) {
1106
+ enableBackdrop();
1107
+ }
1108
+ else {
1109
+ disableBackdrop();
1110
+ }
1111
+ gesture.enable(true);
1112
+ resolve();
1113
+ });
1114
+ }
1115
+ else {
1116
+ gesture.enable(true);
1117
+ resolve();
1118
+ }
1119
+ }
1120
+ else {
1121
+ resolve();
1122
+ }
1123
+ /**
1124
+ * This must be a one time callback
1125
+ * otherwise a new callback will
1126
+ * be added every time onEnd runs.
1127
+ */
1128
+ }, { oneTimeCallback: true })
1129
+ .progressEnd(1, 0, animated ? 500 : 0);
1130
+ });
1131
+ };
1132
+ const gesture = createGesture({
1133
+ el: wrapperEl,
1134
+ gestureName: 'modalSheet',
1135
+ gesturePriority: 40,
1136
+ direction: 'y',
1137
+ threshold: 10,
1138
+ canStart,
1139
+ onStart,
1140
+ onMove,
1141
+ onEnd,
1142
+ });
1143
+ return {
1144
+ gesture,
1145
+ moveSheetToBreakpoint,
1146
+ };
1147
+ };
1148
+
1149
+ 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, #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{--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-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl]):host(.modal-card) .modal-wrapper,:host-context([dir=rtl]).modal-card .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}@supports selector(:dir(rtl)){:host(.modal-card:dir(rtl)) .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-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-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl]):host(.modal-sheet) .modal-wrapper,:host-context([dir=rtl]).modal-sheet .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}@supports selector(:dir(rtl)){:host(.modal-sheet:dir(rtl)) .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}}";
1150
+
1151
+ 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, #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{--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}";
1152
+
1153
+ const Modal = /*@__PURE__*/ proxyCustomElement(class Modal extends H {
1154
+ constructor() {
1155
+ super();
1156
+ this.__registerHost();
1157
+ this.__attachShadow();
1158
+ this.didPresent = createEvent(this, "ionModalDidPresent", 7);
1159
+ this.willPresent = createEvent(this, "ionModalWillPresent", 7);
1160
+ this.willDismiss = createEvent(this, "ionModalWillDismiss", 7);
1161
+ this.didDismiss = createEvent(this, "ionModalDidDismiss", 7);
1162
+ this.ionBreakpointDidChange = createEvent(this, "ionBreakpointDidChange", 7);
1163
+ this.didPresentShorthand = createEvent(this, "didPresent", 7);
1164
+ this.willPresentShorthand = createEvent(this, "willPresent", 7);
1165
+ this.willDismissShorthand = createEvent(this, "willDismiss", 7);
1166
+ this.didDismissShorthand = createEvent(this, "didDismiss", 7);
1167
+ this.ionMount = createEvent(this, "ionMount", 7);
1168
+ this.lockController = createLockController();
1169
+ this.triggerController = createTriggerController();
1170
+ this.coreDelegate = CoreDelegate();
1171
+ this.isSheetModal = false;
1172
+ this.inheritedAttributes = {};
1173
+ this.inline = false;
1174
+ // Whether or not modal is being dismissed via gesture
1175
+ this.gestureAnimationDismissing = false;
1176
+ this.onHandleClick = () => {
1177
+ const { sheetTransition, handleBehavior } = this;
1178
+ if (handleBehavior !== 'cycle' || sheetTransition !== undefined) {
1179
+ /**
1180
+ * The sheet modal should not advance to the next breakpoint
1181
+ * if the handle behavior is not `cycle` or if the handle
1182
+ * is clicked while the sheet is moving to a breakpoint.
1183
+ */
1184
+ return;
1185
+ }
1186
+ this.moveToNextBreakpoint();
1187
+ };
1188
+ this.onBackdropTap = () => {
1189
+ const { sheetTransition } = this;
1190
+ if (sheetTransition !== undefined) {
1191
+ /**
1192
+ * When the handle is double clicked at the largest breakpoint,
1193
+ * it will start to move to the first breakpoint. While transitioning,
1194
+ * the backdrop will often receive the second click. We prevent the
1195
+ * backdrop from dismissing the modal while moving between breakpoints.
1196
+ */
1197
+ return;
1198
+ }
1199
+ this.dismiss(undefined, BACKDROP);
1200
+ };
1201
+ this.onLifecycle = (modalEvent) => {
1202
+ const el = this.usersElement;
1203
+ const name = LIFECYCLE_MAP[modalEvent.type];
1204
+ if (el && name) {
1205
+ const ev = new CustomEvent(name, {
1206
+ bubbles: false,
1207
+ cancelable: false,
1208
+ detail: modalEvent.detail,
1209
+ });
1210
+ el.dispatchEvent(ev);
1211
+ }
1212
+ };
1213
+ this.presented = false;
1214
+ this.hasController = false;
1215
+ this.overlayIndex = undefined;
1216
+ this.delegate = undefined;
1217
+ this.keyboardClose = true;
1218
+ this.enterAnimation = undefined;
1219
+ this.leaveAnimation = undefined;
1220
+ this.breakpoints = undefined;
1221
+ this.initialBreakpoint = undefined;
1222
+ this.backdropBreakpoint = 0;
1223
+ this.handle = undefined;
1224
+ this.handleBehavior = 'none';
1225
+ this.component = undefined;
1226
+ this.componentProps = undefined;
1227
+ this.cssClass = undefined;
1228
+ this.backdropDismiss = true;
1229
+ this.showBackdrop = true;
1230
+ this.animated = true;
1231
+ this.presentingElement = undefined;
1232
+ this.htmlAttributes = undefined;
1233
+ this.isOpen = false;
1234
+ this.trigger = undefined;
1235
+ this.keepContentsMounted = false;
1236
+ this.canDismiss = true;
1237
+ }
1238
+ onIsOpenChange(newValue, oldValue) {
1239
+ if (newValue === true && oldValue === false) {
1240
+ this.present();
1241
+ }
1242
+ else if (newValue === false && oldValue === true) {
1243
+ this.dismiss();
1244
+ }
1245
+ }
1246
+ triggerChanged() {
1247
+ const { trigger, el, triggerController } = this;
1248
+ if (trigger) {
1249
+ triggerController.addClickListener(el, trigger);
1250
+ }
1251
+ }
1252
+ breakpointsChanged(breakpoints) {
1253
+ if (breakpoints !== undefined) {
1254
+ this.sortedBreakpoints = breakpoints.sort((a, b) => a - b);
1255
+ }
1256
+ }
1257
+ connectedCallback() {
1258
+ const { el } = this;
1259
+ prepareOverlay(el);
1260
+ this.triggerChanged();
1261
+ }
1262
+ disconnectedCallback() {
1263
+ this.triggerController.removeClickListener();
1264
+ }
1265
+ componentWillLoad() {
1266
+ const { breakpoints, initialBreakpoint, el, htmlAttributes } = this;
1267
+ const isSheetModal = (this.isSheetModal = breakpoints !== undefined && initialBreakpoint !== undefined);
1268
+ const attributesToInherit = ['aria-label', 'role'];
1269
+ this.inheritedAttributes = inheritAttributes(el, attributesToInherit);
1270
+ /**
1271
+ * When using a controller modal you can set attributes
1272
+ * using the htmlAttributes property. Since the above attributes
1273
+ * need to be inherited inside of the modal, we need to look
1274
+ * and see if these attributes are being set via htmlAttributes.
1275
+ *
1276
+ * We could alternatively move this to componentDidLoad to simplify the work
1277
+ * here, but we'd then need to make inheritedAttributes a State variable,
1278
+ * thus causing another render to always happen after the first render.
1279
+ */
1280
+ if (htmlAttributes !== undefined) {
1281
+ attributesToInherit.forEach((attribute) => {
1282
+ const attributeValue = htmlAttributes[attribute];
1283
+ if (attributeValue) {
1284
+ /**
1285
+ * If an attribute we need to inherit was
1286
+ * set using htmlAttributes then add it to
1287
+ * inheritedAttributes and remove it from htmlAttributes.
1288
+ * This ensures the attribute is inherited and not
1289
+ * set on the host.
1290
+ *
1291
+ * In this case, if an inherited attribute is set
1292
+ * on the host element and using htmlAttributes then
1293
+ * htmlAttributes wins, but that's not a pattern that we recommend.
1294
+ * The only time you'd need htmlAttributes is when using modalController.
1295
+ */
1296
+ this.inheritedAttributes = Object.assign(Object.assign({}, this.inheritedAttributes), { [attribute]: htmlAttributes[attribute] });
1297
+ delete htmlAttributes[attribute];
1298
+ }
1299
+ });
1300
+ }
1301
+ if (isSheetModal) {
1302
+ this.currentBreakpoint = this.initialBreakpoint;
1303
+ }
1304
+ if (breakpoints !== undefined && initialBreakpoint !== undefined && !breakpoints.includes(initialBreakpoint)) {
1305
+ printIonWarning('Your breakpoints array must include the initialBreakpoint value.');
1306
+ }
1307
+ setOverlayId(el);
1308
+ }
1309
+ componentDidLoad() {
1310
+ /**
1311
+ * If modal was rendered with isOpen="true"
1312
+ * then we should open modal immediately.
1313
+ */
1314
+ if (this.isOpen === true) {
1315
+ raf(() => this.present());
1316
+ }
1317
+ this.breakpointsChanged(this.breakpoints);
1318
+ /**
1319
+ * When binding values in frameworks such as Angular
1320
+ * it is possible for the value to be set after the Web Component
1321
+ * initializes but before the value watcher is set up in Stencil.
1322
+ * As a result, the watcher callback may not be fired.
1323
+ * We work around this by manually calling the watcher
1324
+ * callback when the component has loaded and the watcher
1325
+ * is configured.
1326
+ */
1327
+ this.triggerChanged();
1328
+ }
1329
+ /**
1330
+ * Determines whether or not an overlay
1331
+ * is being used inline or via a controller/JS
1332
+ * and returns the correct delegate.
1333
+ * By default, subsequent calls to getDelegate
1334
+ * will use a cached version of the delegate.
1335
+ * This is useful for calling dismiss after
1336
+ * present so that the correct delegate is given.
1337
+ */
1338
+ getDelegate(force = false) {
1339
+ if (this.workingDelegate && !force) {
1340
+ return {
1341
+ delegate: this.workingDelegate,
1342
+ inline: this.inline,
1343
+ };
1344
+ }
1345
+ /**
1346
+ * If using overlay inline
1347
+ * we potentially need to use the coreDelegate
1348
+ * so that this works in vanilla JS apps.
1349
+ * If a developer has presented this component
1350
+ * via a controller, then we can assume
1351
+ * the component is already in the
1352
+ * correct place.
1353
+ */
1354
+ const parentEl = this.el.parentNode;
1355
+ const inline = (this.inline = parentEl !== null && !this.hasController);
1356
+ const delegate = (this.workingDelegate = inline ? this.delegate || this.coreDelegate : this.delegate);
1357
+ return { inline, delegate };
1358
+ }
1359
+ /**
1360
+ * Determines whether or not the
1361
+ * modal is allowed to dismiss based
1362
+ * on the state of the canDismiss prop.
1363
+ */
1364
+ async checkCanDismiss(data, role) {
1365
+ const { canDismiss } = this;
1366
+ if (typeof canDismiss === 'function') {
1367
+ return canDismiss(data, role);
1368
+ }
1369
+ return canDismiss;
1370
+ }
1371
+ /**
1372
+ * Present the modal overlay after it has been created.
1373
+ */
1374
+ async present() {
1375
+ const unlock = await this.lockController.lock();
1376
+ if (this.presented) {
1377
+ unlock();
1378
+ return;
1379
+ }
1380
+ const { presentingElement, el } = this;
1381
+ /**
1382
+ * If the modal is presented multiple times (inline modals), we
1383
+ * need to reset the current breakpoint to the initial breakpoint.
1384
+ */
1385
+ this.currentBreakpoint = this.initialBreakpoint;
1386
+ const { inline, delegate } = this.getDelegate(true);
1387
+ /**
1388
+ * Emit ionMount so JS Frameworks have an opportunity
1389
+ * to add the child component to the DOM. The child
1390
+ * component will be assigned to this.usersElement below.
1391
+ */
1392
+ this.ionMount.emit();
1393
+ this.usersElement = await attachComponent(delegate, el, this.component, ['ion-page'], this.componentProps, inline);
1394
+ /**
1395
+ * When using the lazy loaded build of Stencil, we need to wait
1396
+ * for every Stencil component instance to be ready before presenting
1397
+ * otherwise there can be a flash of unstyled content. With the
1398
+ * custom elements bundle we need to wait for the JS framework
1399
+ * mount the inner contents of the overlay otherwise WebKit may
1400
+ * get the transition incorrect.
1401
+ */
1402
+ if (hasLazyBuild(el)) {
1403
+ await deepReady(this.usersElement);
1404
+ /**
1405
+ * If keepContentsMounted="true" then the
1406
+ * JS Framework has already mounted the inner
1407
+ * contents so there is no need to wait.
1408
+ * Otherwise, we need to wait for the JS
1409
+ * Framework to mount the inner contents
1410
+ * of this component.
1411
+ */
1412
+ }
1413
+ else if (!this.keepContentsMounted) {
1414
+ await waitForMount();
1415
+ }
1416
+ writeTask(() => this.el.classList.add('show-modal'));
1417
+ const hasCardModal = presentingElement !== undefined;
1418
+ /**
1419
+ * We need to change the status bar at the
1420
+ * start of the animation so that it completes
1421
+ * by the time the card animation is done.
1422
+ */
1423
+ if (hasCardModal && getIonMode(this) === 'ios') {
1424
+ // Cache the original status bar color before the modal is presented
1425
+ this.statusBarStyle = await StatusBar.getStyle();
1426
+ setCardStatusBarDark();
1427
+ }
1428
+ await present(this, 'modalEnter', iosEnterAnimation, mdEnterAnimation, {
1429
+ presentingEl: presentingElement,
1430
+ currentBreakpoint: this.initialBreakpoint,
1431
+ backdropBreakpoint: this.backdropBreakpoint,
1432
+ });
1433
+ /* tslint:disable-next-line */
1434
+ if (typeof window !== 'undefined') {
1435
+ /**
1436
+ * This needs to be setup before any
1437
+ * non-transition async work so it can be dereferenced
1438
+ * in the dismiss method. The dismiss method
1439
+ * only waits for the entering transition
1440
+ * to finish. It does not wait for all of the `present`
1441
+ * method to resolve.
1442
+ */
1443
+ this.keyboardOpenCallback = () => {
1444
+ if (this.gesture) {
1445
+ /**
1446
+ * When the native keyboard is opened and the webview
1447
+ * is resized, the gesture implementation will become unresponsive
1448
+ * and enter a free-scroll mode.
1449
+ *
1450
+ * When the keyboard is opened, we disable the gesture for
1451
+ * a single frame and re-enable once the contents have repositioned
1452
+ * from the keyboard placement.
1453
+ */
1454
+ this.gesture.enable(false);
1455
+ raf(() => {
1456
+ if (this.gesture) {
1457
+ this.gesture.enable(true);
1458
+ }
1459
+ });
1460
+ }
1461
+ };
1462
+ window.addEventListener(KEYBOARD_DID_OPEN, this.keyboardOpenCallback);
1463
+ }
1464
+ if (this.isSheetModal) {
1465
+ this.initSheetGesture();
1466
+ }
1467
+ else if (hasCardModal) {
1468
+ this.initSwipeToClose();
1469
+ }
1470
+ unlock();
1471
+ }
1472
+ initSwipeToClose() {
1473
+ var _a;
1474
+ if (getIonMode(this) !== 'ios') {
1475
+ return;
1476
+ }
1477
+ const { el } = this;
1478
+ // All of the elements needed for the swipe gesture
1479
+ // should be in the DOM and referenced by now, except
1480
+ // for the presenting el
1481
+ const animationBuilder = this.leaveAnimation || config.get('modalLeave', iosLeaveAnimation);
1482
+ const ani = (this.animation = animationBuilder(el, { presentingEl: this.presentingElement }));
1483
+ const contentEl = findIonContent(el);
1484
+ if (!contentEl) {
1485
+ printIonContentErrorMsg(el);
1486
+ return;
1487
+ }
1488
+ const statusBarStyle = (_a = this.statusBarStyle) !== null && _a !== void 0 ? _a : Style.Default;
1489
+ this.gesture = createSwipeToCloseGesture(el, ani, statusBarStyle, () => {
1490
+ /**
1491
+ * While the gesture animation is finishing
1492
+ * it is possible for a user to tap the backdrop.
1493
+ * This would result in the dismiss animation
1494
+ * being played again. Typically this is avoided
1495
+ * by setting `presented = false` on the overlay
1496
+ * component; however, we cannot do that here as
1497
+ * that would prevent the element from being
1498
+ * removed from the DOM.
1499
+ */
1500
+ this.gestureAnimationDismissing = true;
1501
+ /**
1502
+ * Reset the status bar style as the dismiss animation
1503
+ * starts otherwise the status bar will be the wrong
1504
+ * color for the duration of the dismiss animation.
1505
+ * The dismiss method does this as well, but
1506
+ * in this case it's only called once the animation
1507
+ * has finished.
1508
+ */
1509
+ setCardStatusBarDefault(this.statusBarStyle);
1510
+ this.animation.onFinish(async () => {
1511
+ await this.dismiss(undefined, GESTURE);
1512
+ this.gestureAnimationDismissing = false;
1513
+ });
1514
+ });
1515
+ this.gesture.enable(true);
1516
+ }
1517
+ initSheetGesture() {
1518
+ const { wrapperEl, initialBreakpoint, backdropBreakpoint } = this;
1519
+ if (!wrapperEl || initialBreakpoint === undefined) {
1520
+ return;
1521
+ }
1522
+ const animationBuilder = this.enterAnimation || config.get('modalEnter', iosEnterAnimation);
1523
+ const ani = (this.animation = animationBuilder(this.el, {
1524
+ presentingEl: this.presentingElement,
1525
+ currentBreakpoint: initialBreakpoint,
1526
+ backdropBreakpoint,
1527
+ }));
1528
+ ani.progressStart(true, 1);
1529
+ const { gesture, moveSheetToBreakpoint } = createSheetGesture(this.el, this.backdropEl, wrapperEl, initialBreakpoint, backdropBreakpoint, ani, this.sortedBreakpoints, () => { var _a; return (_a = this.currentBreakpoint) !== null && _a !== void 0 ? _a : 0; }, () => this.sheetOnDismiss(), (breakpoint) => {
1530
+ if (this.currentBreakpoint !== breakpoint) {
1531
+ this.currentBreakpoint = breakpoint;
1532
+ this.ionBreakpointDidChange.emit({ breakpoint });
1533
+ }
1534
+ });
1535
+ this.gesture = gesture;
1536
+ this.moveSheetToBreakpoint = moveSheetToBreakpoint;
1537
+ this.gesture.enable(true);
1538
+ }
1539
+ sheetOnDismiss() {
1540
+ /**
1541
+ * While the gesture animation is finishing
1542
+ * it is possible for a user to tap the backdrop.
1543
+ * This would result in the dismiss animation
1544
+ * being played again. Typically this is avoided
1545
+ * by setting `presented = false` on the overlay
1546
+ * component; however, we cannot do that here as
1547
+ * that would prevent the element from being
1548
+ * removed from the DOM.
1549
+ */
1550
+ this.gestureAnimationDismissing = true;
1551
+ this.animation.onFinish(async () => {
1552
+ this.currentBreakpoint = 0;
1553
+ this.ionBreakpointDidChange.emit({ breakpoint: this.currentBreakpoint });
1554
+ await this.dismiss(undefined, GESTURE);
1555
+ this.gestureAnimationDismissing = false;
1556
+ });
1557
+ }
1558
+ /**
1559
+ * Dismiss the modal overlay after it has been presented.
1560
+ *
1561
+ * @param data Any data to emit in the dismiss events.
1562
+ * @param role The role of the element that is dismissing the modal. For example, 'cancel' or 'backdrop'.
1563
+ *
1564
+ * This is a no-op if the overlay has not been presented yet. If you want
1565
+ * to remove an overlay from the DOM that was never presented, use the
1566
+ * [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
1567
+ */
1568
+ async dismiss(data, role) {
1569
+ var _a;
1570
+ if (this.gestureAnimationDismissing && role !== GESTURE) {
1571
+ return false;
1572
+ }
1573
+ /**
1574
+ * Because the canDismiss check below is async,
1575
+ * we need to claim a lock before the check happens,
1576
+ * in case the dismiss transition does run.
1577
+ */
1578
+ const unlock = await this.lockController.lock();
1579
+ /**
1580
+ * If a canDismiss handler is responsible
1581
+ * for calling the dismiss method, we should
1582
+ * not run the canDismiss check again.
1583
+ */
1584
+ if (role !== 'handler' && !(await this.checkCanDismiss(data, role))) {
1585
+ unlock();
1586
+ return false;
1587
+ }
1588
+ const { presentingElement } = this;
1589
+ /**
1590
+ * We need to start the status bar change
1591
+ * before the animation so that the change
1592
+ * finishes when the dismiss animation does.
1593
+ */
1594
+ const hasCardModal = presentingElement !== undefined;
1595
+ if (hasCardModal && getIonMode(this) === 'ios') {
1596
+ setCardStatusBarDefault(this.statusBarStyle);
1597
+ }
1598
+ /* tslint:disable-next-line */
1599
+ if (typeof window !== 'undefined' && this.keyboardOpenCallback) {
1600
+ window.removeEventListener(KEYBOARD_DID_OPEN, this.keyboardOpenCallback);
1601
+ this.keyboardOpenCallback = undefined;
1602
+ }
1603
+ const dismissed = await dismiss(this, data, role, 'modalLeave', iosLeaveAnimation, mdLeaveAnimation, {
1604
+ presentingEl: presentingElement,
1605
+ currentBreakpoint: (_a = this.currentBreakpoint) !== null && _a !== void 0 ? _a : this.initialBreakpoint,
1606
+ backdropBreakpoint: this.backdropBreakpoint,
1607
+ });
1608
+ if (dismissed) {
1609
+ const { delegate } = this.getDelegate();
1610
+ await detachComponent(delegate, this.usersElement);
1611
+ writeTask(() => this.el.classList.remove('show-modal'));
1612
+ if (this.animation) {
1613
+ this.animation.destroy();
1614
+ }
1615
+ if (this.gesture) {
1616
+ this.gesture.destroy();
1617
+ }
1618
+ }
1619
+ this.currentBreakpoint = undefined;
1620
+ this.animation = undefined;
1621
+ unlock();
1622
+ return dismissed;
1623
+ }
1624
+ /**
1625
+ * Returns a promise that resolves when the modal did dismiss.
1626
+ */
1627
+ onDidDismiss() {
1628
+ return eventMethod(this.el, 'ionModalDidDismiss');
1629
+ }
1630
+ /**
1631
+ * Returns a promise that resolves when the modal will dismiss.
1632
+ */
1633
+ onWillDismiss() {
1634
+ return eventMethod(this.el, 'ionModalWillDismiss');
1635
+ }
1636
+ /**
1637
+ * Move a sheet style modal to a specific breakpoint. The breakpoint value must
1638
+ * be a value defined in your `breakpoints` array.
1639
+ */
1640
+ async setCurrentBreakpoint(breakpoint) {
1641
+ if (!this.isSheetModal) {
1642
+ printIonWarning('setCurrentBreakpoint is only supported on sheet modals.');
1643
+ return;
1644
+ }
1645
+ if (!this.breakpoints.includes(breakpoint)) {
1646
+ printIonWarning(`Attempted to set invalid breakpoint value ${breakpoint}. Please double check that the breakpoint value is part of your defined breakpoints.`);
1647
+ return;
1648
+ }
1649
+ const { currentBreakpoint, moveSheetToBreakpoint, canDismiss, breakpoints, animated } = this;
1650
+ if (currentBreakpoint === breakpoint) {
1651
+ return;
1652
+ }
1653
+ if (moveSheetToBreakpoint) {
1654
+ this.sheetTransition = moveSheetToBreakpoint({
1655
+ breakpoint,
1656
+ breakpointOffset: 1 - currentBreakpoint,
1657
+ canDismiss: canDismiss !== undefined && canDismiss !== true && breakpoints[0] === 0,
1658
+ animated,
1659
+ });
1660
+ await this.sheetTransition;
1661
+ this.sheetTransition = undefined;
1662
+ }
1663
+ }
1664
+ /**
1665
+ * Returns the current breakpoint of a sheet style modal
1666
+ */
1667
+ async getCurrentBreakpoint() {
1668
+ return this.currentBreakpoint;
1669
+ }
1670
+ async moveToNextBreakpoint() {
1671
+ const { breakpoints, currentBreakpoint } = this;
1672
+ if (!breakpoints || currentBreakpoint == null) {
1673
+ /**
1674
+ * If the modal does not have breakpoints and/or the current
1675
+ * breakpoint is not set, we can't move to the next breakpoint.
1676
+ */
1677
+ return false;
1678
+ }
1679
+ const allowedBreakpoints = breakpoints.filter((b) => b !== 0);
1680
+ const currentBreakpointIndex = allowedBreakpoints.indexOf(currentBreakpoint);
1681
+ const nextBreakpointIndex = (currentBreakpointIndex + 1) % allowedBreakpoints.length;
1682
+ const nextBreakpoint = allowedBreakpoints[nextBreakpointIndex];
1683
+ /**
1684
+ * Sets the current breakpoint to the next available breakpoint.
1685
+ * If the current breakpoint is the last breakpoint, we set the current
1686
+ * breakpoint to the first non-zero breakpoint to avoid dismissing the sheet.
1687
+ */
1688
+ await this.setCurrentBreakpoint(nextBreakpoint);
1689
+ return true;
1690
+ }
1691
+ render() {
1692
+ const { handle, isSheetModal, presentingElement, htmlAttributes, handleBehavior, inheritedAttributes } = this;
1693
+ const showHandle = handle !== false && isSheetModal;
1694
+ const mode = getIonMode(this);
1695
+ const isCardModal = presentingElement !== undefined && mode === 'ios';
1696
+ const isHandleCycle = handleBehavior === 'cycle';
1697
+ return (h(Host, Object.assign({ key: 'e4ad28e6e794560d85252aebdca7f4752e4e7e99', "no-router": true, tabindex: "-1" }, htmlAttributes, { style: {
1698
+ zIndex: `${20000 + this.overlayIndex}`,
1699
+ }, class: Object.assign({ [mode]: true, ['modal-default']: !isCardModal && !isSheetModal, [`modal-card`]: isCardModal, [`modal-sheet`]: isSheetModal, 'overlay-hidden': true }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonModalDidPresent: this.onLifecycle, onIonModalWillPresent: this.onLifecycle, onIonModalWillDismiss: this.onLifecycle, onIonModalDidDismiss: this.onLifecycle }), h("ion-backdrop", { key: '6efd67361a062d15488390f9f0d6c0841e541893', ref: (el) => (this.backdropEl = el), visible: this.showBackdrop, tappable: this.backdropDismiss, part: "backdrop" }), mode === 'ios' && h("div", { key: '557b1c6b297df75acc80d1350b971e65ace6c343', class: "modal-shadow" }), h("div", Object.assign({ key: '67f9b27b662303fbaadaee2ae89972caadfd9994',
1700
+ /*
1701
+ role and aria-modal must be used on the
1702
+ same element. They must also be set inside the
1703
+ shadow DOM otherwise ion-button will not be highlighted
1704
+ when using VoiceOver: https://bugs.webkit.org/show_bug.cgi?id=247134
1705
+ */
1706
+ role: "dialog" }, inheritedAttributes, { "aria-modal": "true", class: "modal-wrapper ion-overlay-wrapper", part: "content", ref: (el) => (this.wrapperEl = el) }), showHandle && (h("button", { key: '8f1eecc451b52467a8c3cfe500335cf6254bbfbc', class: "modal-handle",
1707
+ // Prevents the handle from receiving keyboard focus when it does not cycle
1708
+ tabIndex: !isHandleCycle ? -1 : 0, "aria-label": "Activate to adjust the size of the dialog overlaying the screen", onClick: isHandleCycle ? this.onHandleClick : undefined, part: "handle" })), h("slot", { key: 'cdc923404f01a14b9071a434c68547da3b22c71e' }))));
1709
+ }
1710
+ get el() { return this; }
1711
+ static get watchers() { return {
1712
+ "isOpen": ["onIsOpenChange"],
1713
+ "trigger": ["triggerChanged"]
1714
+ }; }
1715
+ static get style() { return {
1716
+ ios: modalIosCss,
1717
+ md: modalMdCss
1718
+ }; }
1719
+ }, [33, "ion-modal", {
1720
+ "hasController": [4, "has-controller"],
1721
+ "overlayIndex": [2, "overlay-index"],
1722
+ "delegate": [16],
1723
+ "keyboardClose": [4, "keyboard-close"],
1724
+ "enterAnimation": [16],
1725
+ "leaveAnimation": [16],
1726
+ "breakpoints": [16],
1727
+ "initialBreakpoint": [2, "initial-breakpoint"],
1728
+ "backdropBreakpoint": [2, "backdrop-breakpoint"],
1729
+ "handle": [4],
1730
+ "handleBehavior": [1, "handle-behavior"],
1731
+ "component": [1],
1732
+ "componentProps": [16],
1733
+ "cssClass": [1, "css-class"],
1734
+ "backdropDismiss": [4, "backdrop-dismiss"],
1735
+ "showBackdrop": [4, "show-backdrop"],
1736
+ "animated": [4],
1737
+ "presentingElement": [16],
1738
+ "htmlAttributes": [16],
1739
+ "isOpen": [4, "is-open"],
1740
+ "trigger": [1],
1741
+ "keepContentsMounted": [4, "keep-contents-mounted"],
1742
+ "canDismiss": [4, "can-dismiss"],
1743
+ "presented": [32],
1744
+ "present": [64],
1745
+ "dismiss": [64],
1746
+ "onDidDismiss": [64],
1747
+ "onWillDismiss": [64],
1748
+ "setCurrentBreakpoint": [64],
1749
+ "getCurrentBreakpoint": [64]
1750
+ }]);
1751
+ const LIFECYCLE_MAP = {
1752
+ ionModalDidPresent: 'ionViewDidEnter',
1753
+ ionModalWillPresent: 'ionViewWillEnter',
1754
+ ionModalWillDismiss: 'ionViewWillLeave',
1755
+ ionModalDidDismiss: 'ionViewDidLeave',
1756
+ };
1757
+ function defineCustomElement$1() {
1758
+ if (typeof customElements === "undefined") {
1759
+ return;
1760
+ }
1761
+ const components = ["ion-modal", "ion-backdrop"];
1762
+ components.forEach(tagName => { switch (tagName) {
1763
+ case "ion-modal":
1764
+ if (!customElements.get(tagName)) {
1765
+ customElements.define(tagName, Modal);
1766
+ }
1767
+ break;
1768
+ case "ion-backdrop":
1769
+ if (!customElements.get(tagName)) {
1770
+ defineCustomElement$2();
1771
+ }
1772
+ break;
1773
+ } });
1774
+ }
1775
+
1776
+ const IonModal = Modal;
1777
+ const defineCustomElement = defineCustomElement$1;
1778
+
1779
+ export { IonModal, defineCustomElement };