@amwaljs/checkout-button 0.2.9 → 0.3.0

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 (1233) hide show
  1. package/dist/checkout/checkout.esm.js +1 -2
  2. package/dist/checkout/index.esm.js +0 -2
  3. package/dist/checkout/p--tz3q7oD.js +4 -0
  4. package/dist/checkout/p-00e120c2.entry.js +1 -0
  5. package/dist/checkout/p-0363331c.entry.js +1 -0
  6. package/dist/checkout/p-0f731364.entry.js +4 -0
  7. package/dist/checkout/p-147541e8.entry.js +1 -0
  8. package/dist/checkout/p-16f51173.entry.js +1 -0
  9. package/dist/checkout/p-178c0495.entry.js +1 -0
  10. package/dist/checkout/p-1c08169f.entry.js +1 -0
  11. package/dist/checkout/p-1c6da25b.entry.js +1 -0
  12. package/dist/checkout/p-1dc3efa2.entry.js +1 -0
  13. package/dist/checkout/p-2383ebd8.entry.js +1 -0
  14. package/dist/checkout/p-25306802.entry.js +1 -0
  15. package/dist/checkout/p-26af1ebe.entry.js +1 -0
  16. package/dist/checkout/p-2768f09a.entry.js +1 -0
  17. package/dist/checkout/p-27fb8b9e.entry.js +1 -0
  18. package/dist/checkout/p-2c421f28.entry.js +1 -0
  19. package/dist/checkout/p-2dd918ca.entry.js +1 -0
  20. package/dist/checkout/p-2e366473.entry.js +1 -0
  21. package/dist/checkout/p-38f520fb.entry.js +1 -0
  22. package/dist/checkout/p-3a262c01.entry.js +1 -0
  23. package/dist/checkout/p-3c416dcd.entry.js +1 -0
  24. package/dist/checkout/p-418e3312.entry.js +1 -0
  25. package/dist/checkout/p-43c67eeb.entry.js +1 -0
  26. package/dist/checkout/p-44f2b201.entry.js +4 -0
  27. package/dist/checkout/p-470783cb.entry.js +1 -0
  28. package/dist/checkout/p-48c40063.entry.js +1 -0
  29. package/dist/checkout/p-490c7f14.entry.js +1 -0
  30. package/dist/checkout/p-493952b7.entry.js +1 -0
  31. package/dist/checkout/p-4de3b067.entry.js +1 -0
  32. package/dist/checkout/p-519c1a94.entry.js +1 -0
  33. package/dist/checkout/p-523f80de.entry.js +1 -0
  34. package/dist/checkout/p-5274360d.entry.js +1 -0
  35. package/dist/checkout/p-550a7fdf.entry.js +1 -0
  36. package/dist/checkout/p-5IcNt7MW.js +8 -0
  37. package/dist/checkout/p-5a2c8845.entry.js +7 -0
  38. package/dist/checkout/p-5d2b220e.entry.js +1 -0
  39. package/dist/checkout/p-60bbcf96.entry.js +1 -0
  40. package/dist/checkout/p-68738638.entry.js +1 -0
  41. package/dist/checkout/p-69233a7c.entry.js +1 -0
  42. package/dist/checkout/p-6a6a2461.entry.js +1 -0
  43. package/dist/checkout/p-6d4c0370.entry.js +1 -0
  44. package/dist/checkout/p-6f4a82d2.entry.js +1 -0
  45. package/dist/checkout/p-733767d9.entry.js +1 -0
  46. package/dist/checkout/p-77ebd92f.entry.js +1 -0
  47. package/dist/checkout/p-7YtNmL9y.js +4 -0
  48. package/dist/checkout/p-7a153eab.entry.js +4 -0
  49. package/dist/checkout/p-7c7e86fe.entry.js +1 -0
  50. package/dist/checkout/p-7d9ee602.entry.js +1 -0
  51. package/dist/checkout/p-7e3bc3c4.entry.js +1 -0
  52. package/dist/checkout/p-8427a296.entry.js +1 -0
  53. package/dist/checkout/p-870ec42b.entry.js +4 -0
  54. package/dist/checkout/p-890e9953.entry.js +1 -0
  55. package/dist/checkout/p-931d2424.entry.js +4 -0
  56. package/dist/checkout/p-93eb6dad.entry.js +1 -0
  57. package/dist/checkout/p-B-hirT0v.js +1 -2
  58. package/dist/checkout/p-B3WORC1a.js +1 -2
  59. package/dist/checkout/p-B7f9Wkif.js +1 -0
  60. package/dist/checkout/p-BJe8ISja.js +4 -0
  61. package/dist/checkout/p-BKaQyStq.js +5 -0
  62. package/dist/checkout/p-BR7SJd-v.js +2 -3
  63. package/dist/checkout/p-BTEOs1at.js +1 -2
  64. package/dist/checkout/p-BY0jsxmW.js +4 -0
  65. package/dist/checkout/p-B_Z54mfe.js +5 -0
  66. package/dist/checkout/p-Ba57PFgY.js +7 -0
  67. package/dist/checkout/p-BgOwfqIY.js +2 -6
  68. package/dist/checkout/p-BmVRXR1y.js +1 -2
  69. package/dist/checkout/p-BmlsNFZH.js +1 -2
  70. package/dist/checkout/p-C03M5ZSM.js +1 -2
  71. package/dist/checkout/p-C53feagD.js +1 -2
  72. package/dist/checkout/p-CAD1l928.js +8 -0
  73. package/dist/checkout/p-CFLSScFJ.js +4 -0
  74. package/dist/checkout/p-CH3Eg9_f.js +2 -9
  75. package/dist/checkout/p-CPoSEOHb.js +4 -0
  76. package/dist/checkout/p-CkCrVZwR.js +4 -0
  77. package/dist/checkout/p-D0wwuiQC.js +4 -0
  78. package/dist/checkout/p-D2NxOvQ8.js +2 -3
  79. package/dist/checkout/p-D4RIp70E.js +1 -2
  80. package/dist/checkout/p-DFxgipTc.js +4 -0
  81. package/dist/checkout/p-DJztqcrH.js +1 -2
  82. package/dist/checkout/p-DKg_dYcq.js +2 -3
  83. package/dist/checkout/p-DQmRrrcF.js +7 -0
  84. package/dist/checkout/p-DSLRCWTg.js +4 -0
  85. package/dist/checkout/p-DdmvYtPY.js +7 -0
  86. package/dist/checkout/p-DiVJyqlX.js +1 -2
  87. package/dist/checkout/p-Drg5BcI0.js +4 -0
  88. package/dist/checkout/p-Dtdm8lKC.js +1 -2
  89. package/dist/checkout/p-LsffVXQ5.js +4 -0
  90. package/dist/checkout/p-ZjP4CjeZ.js +1 -2
  91. package/dist/checkout/p-__1_zp1x.js +4 -0
  92. package/dist/checkout/p-a09d1040.entry.js +1 -0
  93. package/dist/checkout/p-a5f75741.entry.js +1 -0
  94. package/dist/checkout/p-ae30349d.entry.js +1 -0
  95. package/dist/checkout/p-afbe752e.entry.js +1 -0
  96. package/dist/checkout/p-b2e14651.entry.js +1 -0
  97. package/dist/checkout/p-b36fcda4.entry.js +1 -0
  98. package/dist/checkout/p-b67b736b.entry.js +1 -0
  99. package/dist/checkout/p-b7bf5abe.entry.js +1 -0
  100. package/dist/checkout/p-bb513178.entry.js +1 -0
  101. package/dist/checkout/p-bd4e1c37.entry.js +1 -0
  102. package/dist/checkout/p-beb2c33c.entry.js +1 -0
  103. package/dist/checkout/p-becc350d.entry.js +4 -0
  104. package/dist/checkout/p-c19dc56b.entry.js +1 -0
  105. package/dist/checkout/p-c1cbd33c.entry.js +1 -0
  106. package/dist/checkout/p-c34382ea.entry.js +1 -0
  107. package/dist/checkout/p-c4c9e530.entry.js +1 -0
  108. package/dist/checkout/p-c534dea9.entry.js +7 -0
  109. package/dist/checkout/p-c7978eb8.entry.js +4 -0
  110. package/dist/checkout/p-c8f6670e.entry.js +7 -0
  111. package/dist/checkout/p-cb1a44cc.entry.js +5 -0
  112. package/dist/checkout/p-cda0fb4e.entry.js +1 -0
  113. package/dist/checkout/p-cecfb55a.entry.js +1 -0
  114. package/dist/checkout/p-d819f4e4.entry.js +1 -0
  115. package/dist/checkout/p-dd2fe837.entry.js +1 -0
  116. package/dist/checkout/p-dfcadc7e.entry.js +7 -0
  117. package/dist/checkout/p-e37ae6e2.entry.js +1 -0
  118. package/dist/checkout/p-e8173bed.entry.js +21 -0
  119. package/dist/checkout/p-ead19b10.entry.js +1 -0
  120. package/dist/checkout/p-eae34719.entry.js +1 -0
  121. package/dist/checkout/p-eff08443.entry.js +1 -0
  122. package/dist/checkout/p-f0535bc6.entry.js +1 -0
  123. package/dist/checkout/p-fd971fbb.entry.js +1 -0
  124. package/dist/checkout/p-ff3211f5.entry.js +1 -0
  125. package/dist/checkout/p-hHmYLOfE.js +1 -2
  126. package/dist/checkout/p-ktzqax7n.js +1 -2
  127. package/dist/checkout/p-sObYyvOy.js +1 -2
  128. package/dist/checkout/p-vDXqvDVZ.js +8 -0
  129. package/dist/checkout/p-xxOnfNPU.js +9 -0
  130. package/dist/cjs/amwal-checkout-button_5.cjs.entry.js +85 -120
  131. package/dist/cjs/amwal-installments-guide.cjs.entry.js +1 -2
  132. package/dist/cjs/amwal-pos.cjs.entry.js +4 -3
  133. package/dist/cjs/amwal-widget-modal.cjs.entry.js +7 -4
  134. package/dist/cjs/amwal-widget.cjs.entry.js +10 -5
  135. package/dist/cjs/{animation-BtvIVax4.js → animation-DmZTzC07.js} +1 -4
  136. package/dist/cjs/app-globals-B6FjPa2t.js +7 -0
  137. package/dist/cjs/ar-CbT6TM-Q.js +0 -3
  138. package/dist/cjs/capacitor-CqhugS19.js +0 -3
  139. package/dist/cjs/checkout.cjs.js +5 -8
  140. package/dist/cjs/compare-with-utils-JlLIkecm.js +0 -3
  141. package/dist/cjs/{config-DUSoxbhv.js → config-DMigaw94.js} +1 -4
  142. package/dist/cjs/cubic-bezier-Bv3PvaRI.js +0 -3
  143. package/dist/cjs/{data-CjHlPfPW.js → data-C9NB5QNL.js} +1 -4
  144. package/dist/cjs/dir-Br-7_bel.js +0 -3
  145. package/dist/cjs/focus-visible-Da2o6bTP.js +0 -3
  146. package/dist/cjs/{framework-delegate-BoMy23Lz.js → framework-delegate-BFev42vk.js} +1 -4
  147. package/dist/cjs/gesture-controller-CiprlUhH.js +0 -3
  148. package/dist/cjs/haptic-DCn793nz.js +0 -3
  149. package/dist/cjs/{hardware-back-button-B1WYQg6m.js → hardware-back-button-CMceVPAk.js} +1 -4
  150. package/dist/cjs/{helpers-C5_WrFOI.js → helpers-VdS_U_Su.js} +1 -4
  151. package/dist/cjs/i18n-uGNv9SLK.js +0 -3
  152. package/dist/cjs/{index-DwdNl4cs.js → index-BQ9HVZwH.js} +2 -5
  153. package/dist/cjs/index-Calgykmz.js +0 -3
  154. package/dist/cjs/{index-C0J_JwJB.js → index-D1TvI2Ig.js} +2 -5
  155. package/dist/cjs/index-D3mJ1Cix.js +0 -3
  156. package/dist/cjs/{index-C3dD6F2g.js → index-DaUK-X4l.js} +5 -8
  157. package/dist/cjs/index-DseJYF57.js +0 -3
  158. package/dist/cjs/{index-C-U8a6CY.js → index-NREvOo92.js} +4 -7
  159. package/dist/cjs/{index-BPGqVQtz.js → index-q1-id3dG.js} +1708 -86
  160. package/dist/cjs/index.cjs.js +0 -3
  161. package/dist/cjs/{input-shims-DIBy37tN.js → input-shims-CJrPMP1S.js} +3 -6
  162. package/dist/cjs/{input.utils-IVavyQAZ.js → input.utils-D9hnMuNq.js} +2 -5
  163. package/dist/cjs/ion-accordion-group.cjs.entry.js +11 -6
  164. package/dist/cjs/ion-accordion.cjs.entry.js +6 -5
  165. package/dist/cjs/ion-action-sheet_5.cjs.entry.js +37 -20
  166. package/dist/cjs/ion-app.cjs.entry.js +7 -8
  167. package/dist/cjs/ion-avatar.cjs.entry.js +2 -3
  168. package/dist/cjs/ion-back-button.cjs.entry.js +3 -4
  169. package/dist/cjs/ion-backdrop.cjs.entry.js +2 -3
  170. package/dist/cjs/ion-badge.cjs.entry.js +2 -3
  171. package/dist/cjs/ion-breadcrumb.cjs.entry.js +3 -4
  172. package/dist/cjs/ion-breadcrumbs.cjs.entry.js +11 -6
  173. package/dist/cjs/ion-buttons_10.cjs.entry.js +17 -10
  174. package/dist/cjs/ion-card-content.cjs.entry.js +2 -3
  175. package/dist/cjs/ion-card-header.cjs.entry.js +2 -3
  176. package/dist/cjs/ion-card-subtitle.cjs.entry.js +2 -3
  177. package/dist/cjs/ion-card-title.cjs.entry.js +2 -3
  178. package/dist/cjs/ion-card.cjs.entry.js +3 -4
  179. package/dist/cjs/ion-chip.cjs.entry.js +2 -3
  180. package/dist/cjs/ion-col.cjs.entry.js +2 -3
  181. package/dist/cjs/ion-datetime-button.cjs.entry.js +4 -5
  182. package/dist/cjs/ion-datetime.cjs.entry.js +40 -19
  183. package/dist/cjs/ion-fab-button.cjs.entry.js +3 -4
  184. package/dist/cjs/ion-fab-list.cjs.entry.js +5 -4
  185. package/dist/cjs/ion-fab.cjs.entry.js +5 -4
  186. package/dist/cjs/ion-footer.cjs.entry.js +4 -5
  187. package/dist/cjs/ion-grid.cjs.entry.js +2 -3
  188. package/dist/cjs/ion-icon.cjs.entry.js +16 -7
  189. package/dist/cjs/ion-img.cjs.entry.js +6 -5
  190. package/dist/cjs/ion-infinite-scroll-content.cjs.entry.js +3 -4
  191. package/dist/cjs/ion-infinite-scroll.cjs.entry.js +10 -7
  192. package/dist/cjs/ion-input-otp.cjs.entry.js +12 -7
  193. package/dist/cjs/ion-input-password-toggle.cjs.entry.js +7 -6
  194. package/dist/cjs/ion-input.cjs.entry.js +17 -10
  195. package/dist/cjs/ion-item-divider.cjs.entry.js +2 -3
  196. package/dist/cjs/ion-item-group.cjs.entry.js +2 -3
  197. package/dist/cjs/ion-item-option.cjs.entry.js +2 -3
  198. package/dist/cjs/ion-item-options.cjs.entry.js +3 -4
  199. package/dist/cjs/ion-item-sliding.cjs.entry.js +7 -6
  200. package/dist/cjs/ion-label_2.cjs.entry.js +8 -5
  201. package/dist/cjs/ion-loading.cjs.entry.js +14 -11
  202. package/dist/cjs/ion-menu-button.cjs.entry.js +7 -8
  203. package/dist/cjs/ion-menu-toggle.cjs.entry.js +7 -8
  204. package/dist/cjs/ion-menu.cjs.entry.js +20 -13
  205. package/dist/cjs/ion-nav-link.cjs.entry.js +1 -2
  206. package/dist/cjs/ion-nav.cjs.entry.js +12 -9
  207. package/dist/cjs/ion-note.cjs.entry.js +2 -3
  208. package/dist/cjs/ion-picker-legacy-column.cjs.entry.js +6 -5
  209. package/dist/cjs/ion-picker-legacy.cjs.entry.js +13 -10
  210. package/dist/cjs/ion-picker_3.cjs.entry.js +12 -7
  211. package/dist/cjs/ion-popover.cjs.entry.js +17 -12
  212. package/dist/cjs/ion-progress-bar.cjs.entry.js +3 -4
  213. package/dist/cjs/ion-range.cjs.entry.js +25 -12
  214. package/dist/cjs/ion-refresher-content.cjs.entry.js +6 -7
  215. package/dist/cjs/ion-refresher.cjs.entry.js +9 -8
  216. package/dist/cjs/ion-reorder-group.cjs.entry.js +7 -6
  217. package/dist/cjs/ion-reorder.cjs.entry.js +2 -3
  218. package/dist/cjs/ion-route-redirect.cjs.entry.js +7 -4
  219. package/dist/cjs/ion-route.cjs.entry.js +10 -5
  220. package/dist/cjs/ion-router-link.cjs.entry.js +2 -3
  221. package/dist/cjs/ion-router-outlet.cjs.entry.js +9 -8
  222. package/dist/cjs/ion-router.cjs.entry.js +2 -3
  223. package/dist/cjs/ion-row.cjs.entry.js +2 -3
  224. package/dist/cjs/ion-searchbar.cjs.entry.js +18 -9
  225. package/dist/cjs/ion-segment-button.cjs.entry.js +6 -5
  226. package/dist/cjs/ion-segment-content.cjs.entry.js +1 -2
  227. package/dist/cjs/ion-segment-view.cjs.entry.js +1 -2
  228. package/dist/cjs/ion-segment.cjs.entry.js +15 -8
  229. package/dist/cjs/ion-select-option.cjs.entry.js +2 -3
  230. package/dist/cjs/ion-select.cjs.entry.js +19 -12
  231. package/dist/cjs/ion-skeleton-text.cjs.entry.js +2 -3
  232. package/dist/cjs/ion-spinner.cjs.entry.js +2 -3
  233. package/dist/cjs/ion-split-pane.cjs.entry.js +11 -6
  234. package/dist/cjs/ion-tab-bar.cjs.entry.js +5 -4
  235. package/dist/cjs/ion-tab-button.cjs.entry.js +3 -4
  236. package/dist/cjs/ion-tab.cjs.entry.js +6 -5
  237. package/dist/cjs/ion-tabs.cjs.entry.js +1 -2
  238. package/dist/cjs/ion-textarea.cjs.entry.js +15 -12
  239. package/dist/cjs/ion-thumbnail.cjs.entry.js +2 -3
  240. package/dist/cjs/ion-toast.cjs.entry.js +17 -12
  241. package/dist/cjs/ion-toggle.cjs.entry.js +6 -5
  242. package/dist/cjs/{ionic-global-BmDUlKDf.js → ionic-global-tfENS075.js} +1 -4
  243. package/dist/cjs/{ios.transition-ROXYV2qt.js → ios.transition-EMvH3Tod.js} +4 -7
  244. package/dist/cjs/keyboard-DuKzsHsS.js +0 -3
  245. package/dist/cjs/keyboard-controller-rH21qC_2.js +0 -3
  246. package/dist/cjs/keyboard-iyHR2ZF4.js +0 -3
  247. package/dist/cjs/loader.cjs.js +4 -7
  248. package/dist/cjs/lock-controller-58TZFRHC.js +0 -3
  249. package/dist/cjs/{md.transition-NftVXx7D.js → md.transition-CwoQ7h7X.js} +4 -7
  250. package/dist/cjs/{menu-toggle-util-CROwv_aL.js → menu-toggle-util-By6-554q.js} +1 -4
  251. package/dist/cjs/{notch-controller-BzbZcc1N.js → notch-controller-DWw_ctSD.js} +1 -4
  252. package/dist/cjs/{overlays-gyJEvMkB.js → overlays-sgG7yBK9.js} +8 -9
  253. package/dist/cjs/{refresher.utils-DZrHDYQN.js → refresher.utils-CMKixJwj.js} +3 -6
  254. package/dist/cjs/spinner-configs-BN41iw42.js +0 -3
  255. package/dist/cjs/{status-tap-B5QfH5DO.js → status-tap-CdatiX6b.js} +3 -6
  256. package/dist/cjs/{swipe-back-BkT4j65k.js → swipe-back-D3MYxlFO.js} +2 -5
  257. package/dist/cjs/theme-DbHdw1Nx.js +0 -3
  258. package/dist/cjs/validity-ClNawnRU.js +0 -3
  259. package/dist/cjs/watch-options-DOFUPyuf.js +0 -3
  260. package/dist/collection/collection-manifest.json +1 -1
  261. package/dist/collection/components/amwal-checkout-button/amwal-checkout-button.css +1 -1
  262. package/dist/collection/components/amwal-checkout-button/amwal-checkout-button.js +40 -55
  263. package/dist/collection/components/amwal-checkout-button/amwal-checkout-button.stories.js +0 -1
  264. package/dist/collection/components/amwal-installments-guide/amwal-installments-guide.js +0 -1
  265. package/dist/collection/components/amwal-installments-guide/amwal-installments-guide.stories.js +0 -1
  266. package/dist/collection/components/amwal-installments-timeline/amwal-installments-timeline.js +2 -3
  267. package/dist/collection/components/amwal-installments-timeline/amwal-installments-timeline.stories.js +0 -1
  268. package/dist/collection/components/amwal-pos/amwal-pos.js +0 -1
  269. package/dist/collection/components/amwal-pos/amwal-pos.stories.js +0 -1
  270. package/dist/collection/components/amwal-widget/amwal-widget-modal.js +0 -1
  271. package/dist/collection/components/amwal-widget/amwal-widget.js +8 -7
  272. package/dist/collection/components/amwal-widget/amwal-widget.stories.js +0 -1
  273. package/dist/collection/lang/i18n.js +0 -1
  274. package/dist/components/amwal-checkout-button.js +1 -5375
  275. package/dist/components/amwal-installments-guide.js +1 -83
  276. package/dist/components/amwal-installments-timeline.js +1 -9
  277. package/dist/components/amwal-pos.js +1 -3670
  278. package/dist/components/amwal-widget-modal.js +1 -9
  279. package/dist/components/amwal-widget.js +1 -422
  280. package/dist/components/index.js +1 -9
  281. package/dist/components/ion-accordion-group.js +1 -271
  282. package/dist/components/ion-accordion.js +1 -459
  283. package/dist/components/ion-action-sheet.js +1 -9
  284. package/dist/components/ion-alert.js +1 -9
  285. package/dist/components/ion-app.js +1 -130
  286. package/dist/components/ion-avatar.js +1 -44
  287. package/dist/components/ion-back-button.js +1 -133
  288. package/dist/components/ion-backdrop.js +1 -9
  289. package/dist/components/ion-badge.js +1 -50
  290. package/dist/components/ion-breadcrumb.js +1 -140
  291. package/dist/components/ion-breadcrumbs.js +1 -167
  292. package/dist/components/ion-button.js +1 -9
  293. package/dist/components/ion-buttons.js +1 -9
  294. package/dist/components/ion-card-content.js +1 -48
  295. package/dist/components/ion-card-header.js +1 -59
  296. package/dist/components/ion-card-subtitle.js +1 -51
  297. package/dist/components/ion-card-title.js +1 -51
  298. package/dist/components/ion-card.js +1 -110
  299. package/dist/components/ion-checkbox.js +1 -9
  300. package/dist/components/ion-chip.js +1 -69
  301. package/dist/components/ion-col.js +2 -167
  302. package/dist/components/ion-content.js +1 -9
  303. package/dist/components/ion-datetime-button.js +1 -386
  304. package/dist/components/ion-datetime.js +2 -2051
  305. package/dist/components/ion-fab-button.js +1 -154
  306. package/dist/components/ion-fab-list.js +1 -69
  307. package/dist/components/ion-fab.js +1 -104
  308. package/dist/components/ion-footer.js +2 -163
  309. package/dist/components/ion-grid.js +1 -49
  310. package/dist/components/ion-header.js +1 -9
  311. package/dist/components/ion-icon.js +1 -9
  312. package/dist/components/ion-img.js +1 -127
  313. package/dist/components/ion-infinite-scroll-content.js +1 -72
  314. package/dist/components/ion-infinite-scroll.js +1 -239
  315. package/dist/components/ion-input-otp.js +1 -685
  316. package/dist/components/ion-input-password-toggle.js +1 -131
  317. package/dist/components/ion-input.js +1 -620
  318. package/dist/components/ion-item-divider.js +1 -62
  319. package/dist/components/ion-item-group.js +1 -49
  320. package/dist/components/ion-item-option.js +1 -94
  321. package/dist/components/ion-item-options.js +1 -76
  322. package/dist/components/ion-item-sliding.js +1 -460
  323. package/dist/components/ion-item.js +1 -9
  324. package/dist/components/ion-label.js +1 -9
  325. package/dist/components/ion-list-header.js +1 -9
  326. package/dist/components/ion-list.js +1 -9
  327. package/dist/components/ion-loading.js +3 -354
  328. package/dist/components/ion-menu-button.js +1 -112
  329. package/dist/components/ion-menu-toggle.js +1 -67
  330. package/dist/components/ion-menu.js +1 -744
  331. package/dist/components/ion-modal.js +1 -9
  332. package/dist/components/ion-nav-link.js +2 -68
  333. package/dist/components/ion-nav.js +2 -955
  334. package/dist/components/ion-note.js +1 -50
  335. package/dist/components/ion-picker-column-option.js +1 -9
  336. package/dist/components/ion-picker-column.js +1 -9
  337. package/dist/components/ion-picker-legacy-column.js +1 -9
  338. package/dist/components/ion-picker-legacy.js +3 -347
  339. package/dist/components/ion-picker.js +1 -9
  340. package/dist/components/ion-popover.js +1 -9
  341. package/dist/components/ion-progress-bar.js +1 -103
  342. package/dist/components/ion-radio-group.js +1 -9
  343. package/dist/components/ion-radio.js +1 -9
  344. package/dist/components/ion-range.js +2 -848
  345. package/dist/components/ion-refresher-content.js +1 -91
  346. package/dist/components/ion-refresher.js +1 -753
  347. package/dist/components/ion-reorder-group.js +1 -325
  348. package/dist/components/ion-reorder.js +1 -63
  349. package/dist/components/ion-ripple-effect.js +1 -9
  350. package/dist/components/ion-route-redirect.js +1 -48
  351. package/dist/components/ion-route.js +1 -77
  352. package/dist/components/ion-router-link.js +1 -64
  353. package/dist/components/ion-router-outlet.js +1 -229
  354. package/dist/components/ion-router.js +3 -857
  355. package/dist/components/ion-row.js +1 -39
  356. package/dist/components/ion-searchbar.js +1 -532
  357. package/dist/components/ion-segment-button.js +1 -176
  358. package/dist/components/ion-segment-content.js +1 -38
  359. package/dist/components/ion-segment-view.js +1 -145
  360. package/dist/components/ion-segment.js +1 -605
  361. package/dist/components/ion-select-modal.js +1 -9
  362. package/dist/components/ion-select-option.js +1 -49
  363. package/dist/components/ion-select-popover.js +1 -9
  364. package/dist/components/ion-select.js +1 -1038
  365. package/dist/components/ion-skeleton-text.js +1 -67
  366. package/dist/components/ion-spinner.js +1 -9
  367. package/dist/components/ion-split-pane.js +1 -193
  368. package/dist/components/ion-tab-bar.js +1 -118
  369. package/dist/components/ion-tab-button.js +1 -130
  370. package/dist/components/ion-tab.js +1 -85
  371. package/dist/components/ion-tabs.js +1 -207
  372. package/dist/components/ion-text.js +1 -9
  373. package/dist/components/ion-textarea.js +1 -559
  374. package/dist/components/ion-thumbnail.js +1 -39
  375. package/dist/components/ion-title.js +1 -9
  376. package/dist/components/ion-toast.js +3 -955
  377. package/dist/components/ion-toggle.js +1 -363
  378. package/dist/components/ion-toolbar.js +1 -9
  379. package/dist/components/p-1a8GRr4X.js +8 -0
  380. package/dist/components/p-84v5d37k.js +5 -0
  381. package/dist/components/p-8qbKOEwg.js +7 -0
  382. package/dist/components/p-B-hirT0v.js +1 -38
  383. package/dist/components/p-B2pBbmZL.js +1 -0
  384. package/dist/components/p-B3WORC1a.js +1 -47
  385. package/dist/components/p-B6K4Vevt.js +1 -0
  386. package/dist/components/p-B8CJYukv.js +4 -0
  387. package/dist/components/p-B8rkbvHJ.js +4 -0
  388. package/dist/components/p-BB452BOr.js +1 -0
  389. package/dist/components/p-BGU8Nymd.js +1 -0
  390. package/dist/components/p-BHQVufb8.js +4 -0
  391. package/dist/components/p-BNXO_6OD.js +1 -0
  392. package/dist/components/p-BTEOs1at.js +1 -195
  393. package/dist/components/p-BU2g75_N.js +1 -0
  394. package/dist/components/p-BYPhePqa.js +4 -0
  395. package/dist/components/p-Bam2tSRs.js +1 -0
  396. package/dist/components/p-BgOwfqIY.js +2 -83
  397. package/dist/components/p-BgdIJBVf.js +4 -0
  398. package/dist/components/p-BgihAYme.js +7 -0
  399. package/dist/components/p-BmVRXR1y.js +1 -75
  400. package/dist/components/p-BxP8TDfL.js +2 -159
  401. package/dist/components/p-ByfqFtWT.js +1 -0
  402. package/dist/components/p-Bz350JGF.js +7 -0
  403. package/dist/components/p-C-A_jB82.js +4 -0
  404. package/dist/components/p-C03M5ZSM.js +1 -16
  405. package/dist/components/p-C53feagD.js +1 -18
  406. package/dist/components/p-CECOogQN.js +4 -0
  407. package/dist/components/p-CH3Eg9_f.js +3 -463
  408. package/dist/components/p-CQOdiSAf.js +1 -0
  409. package/dist/components/p-CUAFXzfF.js +1 -0
  410. package/dist/components/p-C_xZxwXS.js +1 -0
  411. package/dist/components/p-CaFnxdQd.js +1 -0
  412. package/dist/components/p-CoO47q0D.js +7 -0
  413. package/dist/components/p-D2NxOvQ8.js +2 -14
  414. package/dist/components/p-DDc_C9oA.js +7 -0
  415. package/dist/components/p-DIdQsHkC.js +4 -0
  416. package/dist/components/p-DJDxJDy6.js +1 -0
  417. package/dist/components/p-DJztqcrH.js +1 -17
  418. package/dist/components/p-DK1OQn93.js +1 -0
  419. package/dist/components/p-DKg_dYcq.js +2 -166
  420. package/dist/components/p-DMTBSB3x.js +1 -0
  421. package/dist/components/p-DQAmWfm1.js +8 -0
  422. package/dist/components/p-DR2jvB6s.js +4 -0
  423. package/dist/components/p-DRov8Rcu.js +4 -0
  424. package/dist/components/p-DVAa5Ick.js +1 -0
  425. package/dist/components/p-DXFVmcjn.js +1 -0
  426. package/dist/components/p-DYhpoJMW.js +4 -0
  427. package/dist/components/p-Db1yB4_h.js +4 -0
  428. package/dist/components/p-DcJzInl-.js +4 -0
  429. package/dist/components/p-DexEOBMU.js +8 -0
  430. package/dist/components/p-DiVJyqlX.js +1 -43
  431. package/dist/components/p-DjZwclUS.js +5 -0
  432. package/dist/components/p-DokQbOf0.js +7 -0
  433. package/dist/components/p-Dtdm8lKC.js +1 -47
  434. package/dist/components/p-DuZ7hY1a.js +2 -145
  435. package/dist/components/p-Dzmy2KMF.js +8 -0
  436. package/dist/components/p-GqmIVAr9.js +1 -0
  437. package/dist/components/p-RvBk4hGw.js +1 -0
  438. package/dist/components/p-RxmIKEEQ.js +1 -0
  439. package/dist/components/p-ZjP4CjeZ.js +1 -7
  440. package/dist/components/p-hHmYLOfE.js +1 -90
  441. package/dist/components/p-jWFeuAB5.js +1 -32
  442. package/dist/components/p-kYICRcU6.js +1 -0
  443. package/dist/components/p-lwDXTYn3.js +4 -0
  444. package/dist/components/p-oMX-ZLwD.js +4 -0
  445. package/dist/components/p-oThWliBi.js +4 -0
  446. package/dist/components/p-pUVFzc0m.js +4 -0
  447. package/dist/components/p-uBkJJD7w.js +1 -0
  448. package/dist/components/p-wRbQpgeV.js +1 -0
  449. package/dist/components/p-zVHkqcTn.js +4 -0
  450. package/dist/esm/amwal-checkout-button_5.entry.js +85 -120
  451. package/dist/esm/amwal-installments-guide.entry.js +1 -2
  452. package/dist/esm/amwal-pos.entry.js +4 -3
  453. package/dist/esm/amwal-widget-modal.entry.js +7 -4
  454. package/dist/esm/amwal-widget.entry.js +10 -5
  455. package/dist/esm/{animation-BU4GfyJQ.js → animation-Cdsew5KM.js} +1 -4
  456. package/dist/esm/app-globals-qL1LLHNB.js +5 -0
  457. package/dist/esm/ar-B3WORC1a.js +0 -3
  458. package/dist/esm/capacitor-CG3xQUND.js +0 -3
  459. package/dist/esm/checkout.js +6 -9
  460. package/dist/esm/compare-with-utils-sObYyvOy.js +0 -3
  461. package/dist/{components/p-uTKLFBBy.js → esm/config-CnpuADYS.js} +1 -4
  462. package/dist/esm/cubic-bezier-hHmYLOfE.js +0 -3
  463. package/dist/esm/{data-BKjeovce.js → data-u308JruM.js} +1 -4
  464. package/dist/esm/dir-C53feagD.js +0 -3
  465. package/dist/esm/focus-visible-BmVRXR1y.js +0 -3
  466. package/dist/{components/p-9R9WjA6V.js → esm/framework-delegate-29_VtSmv.js} +1 -4
  467. package/dist/esm/gesture-controller-BTEOs1at.js +0 -3
  468. package/dist/esm/haptic-C3ucbArX.js +0 -3
  469. package/dist/esm/{hardware-back-button-Nry6hGkN.js → hardware-back-button-DRef5MPc.js} +1 -4
  470. package/dist/esm/{helpers-uLqs1Gao.js → helpers-BuFc0hrS.js} +1 -4
  471. package/dist/esm/i18n-C_AfxZ5D.js +0 -3
  472. package/dist/esm/index-BmlsNFZH.js +0 -3
  473. package/dist/esm/index-CF4QYFB3.js +0 -3
  474. package/dist/esm/{index-CCWf5GQy.js → index-DoRYA1qF.js} +4 -7
  475. package/dist/esm/{index-Ct7Rjd6t.js → index-Dph-Z83P.js} +5 -8
  476. package/dist/esm/{index-BmWsedvI.js → index-J3a2mue2.js} +2 -5
  477. package/dist/esm/{index-ffNEk55Y.js → index-Ul_idjjE.js} +2 -5
  478. package/dist/esm/index-ZjP4CjeZ.js +0 -3
  479. package/dist/esm/{index-BxybgBKJ.js → index-xxOnfNPU.js} +1708 -86
  480. package/dist/esm/index.js +0 -3
  481. package/dist/esm/{input-shims-DkzcZwWm.js → input-shims-D1Cdl4JQ.js} +3 -6
  482. package/dist/esm/{input.utils-C_QovwBX.js → input.utils-CEeVIfb9.js} +2 -5
  483. package/dist/esm/ion-accordion-group.entry.js +11 -6
  484. package/dist/esm/ion-accordion.entry.js +6 -5
  485. package/dist/esm/ion-action-sheet_5.entry.js +37 -20
  486. package/dist/esm/ion-app.entry.js +7 -8
  487. package/dist/esm/ion-avatar.entry.js +2 -3
  488. package/dist/esm/ion-back-button.entry.js +3 -4
  489. package/dist/esm/ion-backdrop.entry.js +2 -3
  490. package/dist/esm/ion-badge.entry.js +2 -3
  491. package/dist/esm/ion-breadcrumb.entry.js +3 -4
  492. package/dist/esm/ion-breadcrumbs.entry.js +11 -6
  493. package/dist/esm/ion-buttons_10.entry.js +17 -10
  494. package/dist/esm/ion-card-content.entry.js +2 -3
  495. package/dist/esm/ion-card-header.entry.js +2 -3
  496. package/dist/esm/ion-card-subtitle.entry.js +2 -3
  497. package/dist/esm/ion-card-title.entry.js +2 -3
  498. package/dist/esm/ion-card.entry.js +3 -4
  499. package/dist/esm/ion-chip.entry.js +2 -3
  500. package/dist/esm/ion-col.entry.js +2 -3
  501. package/dist/esm/ion-datetime-button.entry.js +4 -5
  502. package/dist/esm/ion-datetime.entry.js +40 -19
  503. package/dist/esm/ion-fab-button.entry.js +3 -4
  504. package/dist/esm/ion-fab-list.entry.js +5 -4
  505. package/dist/esm/ion-fab.entry.js +5 -4
  506. package/dist/esm/ion-footer.entry.js +4 -5
  507. package/dist/esm/ion-grid.entry.js +2 -3
  508. package/dist/esm/ion-icon.entry.js +16 -7
  509. package/dist/esm/ion-img.entry.js +6 -5
  510. package/dist/esm/ion-infinite-scroll-content.entry.js +3 -4
  511. package/dist/esm/ion-infinite-scroll.entry.js +10 -7
  512. package/dist/esm/ion-input-otp.entry.js +12 -7
  513. package/dist/esm/ion-input-password-toggle.entry.js +7 -6
  514. package/dist/esm/ion-input.entry.js +17 -10
  515. package/dist/esm/ion-item-divider.entry.js +2 -3
  516. package/dist/esm/ion-item-group.entry.js +2 -3
  517. package/dist/esm/ion-item-option.entry.js +2 -3
  518. package/dist/esm/ion-item-options.entry.js +3 -4
  519. package/dist/esm/ion-item-sliding.entry.js +7 -6
  520. package/dist/esm/ion-label_2.entry.js +8 -5
  521. package/dist/esm/ion-loading.entry.js +14 -11
  522. package/dist/esm/ion-menu-button.entry.js +7 -8
  523. package/dist/esm/ion-menu-toggle.entry.js +7 -8
  524. package/dist/esm/ion-menu.entry.js +20 -13
  525. package/dist/esm/ion-nav-link.entry.js +1 -2
  526. package/dist/esm/ion-nav.entry.js +12 -9
  527. package/dist/esm/ion-note.entry.js +2 -3
  528. package/dist/esm/ion-picker-legacy-column.entry.js +6 -5
  529. package/dist/esm/ion-picker-legacy.entry.js +13 -10
  530. package/dist/esm/ion-picker_3.entry.js +12 -7
  531. package/dist/esm/ion-popover.entry.js +17 -12
  532. package/dist/esm/ion-progress-bar.entry.js +3 -4
  533. package/dist/esm/ion-range.entry.js +25 -12
  534. package/dist/esm/ion-refresher-content.entry.js +6 -7
  535. package/dist/esm/ion-refresher.entry.js +9 -8
  536. package/dist/esm/ion-reorder-group.entry.js +7 -6
  537. package/dist/esm/ion-reorder.entry.js +2 -3
  538. package/dist/esm/ion-route-redirect.entry.js +7 -4
  539. package/dist/esm/ion-route.entry.js +10 -5
  540. package/dist/esm/ion-router-link.entry.js +2 -3
  541. package/dist/esm/ion-router-outlet.entry.js +9 -8
  542. package/dist/esm/ion-router.entry.js +2 -3
  543. package/dist/esm/ion-row.entry.js +2 -3
  544. package/dist/esm/ion-searchbar.entry.js +18 -9
  545. package/dist/esm/ion-segment-button.entry.js +6 -5
  546. package/dist/esm/ion-segment-content.entry.js +1 -2
  547. package/dist/esm/ion-segment-view.entry.js +1 -2
  548. package/dist/esm/ion-segment.entry.js +15 -8
  549. package/dist/esm/ion-select-option.entry.js +2 -3
  550. package/dist/esm/ion-select.entry.js +19 -12
  551. package/dist/esm/ion-skeleton-text.entry.js +2 -3
  552. package/dist/esm/ion-spinner.entry.js +2 -3
  553. package/dist/esm/ion-split-pane.entry.js +11 -6
  554. package/dist/esm/ion-tab-bar.entry.js +5 -4
  555. package/dist/esm/ion-tab-button.entry.js +3 -4
  556. package/dist/esm/ion-tab.entry.js +6 -5
  557. package/dist/esm/ion-tabs.entry.js +1 -2
  558. package/dist/esm/ion-textarea.entry.js +15 -12
  559. package/dist/esm/ion-thumbnail.entry.js +2 -3
  560. package/dist/esm/ion-toast.entry.js +17 -12
  561. package/dist/esm/ion-toggle.entry.js +6 -5
  562. package/dist/esm/{ionic-global-C8oJToxs.js → ionic-global-BbOE2Sur.js} +1 -4
  563. package/dist/{components/p-CKAwPEA1.js → esm/ios.transition-BBpXvlVl.js} +5 -5
  564. package/dist/esm/keyboard-DcbqYXj5.js +0 -3
  565. package/dist/esm/keyboard-DgiyREKb.js +0 -3
  566. package/dist/esm/keyboard-controller-CqGCg8tB.js +0 -3
  567. package/dist/esm/loader.js +5 -8
  568. package/dist/esm/lock-controller-B-hirT0v.js +0 -3
  569. package/dist/{components/p-DG3y4Paj.js → esm/md.transition-uHL_rMwC.js} +5 -5
  570. package/dist/{components/p-BHR1qL-B.js → esm/menu-toggle-util-LSIuEJ8L.js} +1 -4
  571. package/dist/esm/{notch-controller-DCfp6pBF.js → notch-controller-CCHQ50bA.js} +1 -4
  572. package/dist/esm/{overlays-BDbqv7G-.js → overlays-CWok3_we.js} +8 -9
  573. package/dist/esm/{refresher.utils-DOS2Tyfp.js → refresher.utils-BwmoeJ1w.js} +3 -6
  574. package/dist/esm/spinner-configs-D4RIp70E.js +0 -3
  575. package/dist/esm/{status-tap-BTOXpL_S.js → status-tap-CMJKMvwt.js} +3 -6
  576. package/dist/esm/{swipe-back-CetNYyPP.js → swipe-back-BXQCI3bV.js} +2 -5
  577. package/dist/esm/theme-DiVJyqlX.js +0 -3
  578. package/dist/esm/validity-DJztqcrH.js +0 -3
  579. package/dist/esm/watch-options-Dtdm8lKC.js +0 -3
  580. package/dist/types/components/amwal-checkout-button/amwal-checkout-button.d.ts +2 -3
  581. package/dist/types/stencil-public-runtime.d.ts +14 -3
  582. package/package.json +7 -4
  583. package/dist/checkout/checkout.esm.js.map +0 -1
  584. package/dist/checkout/index.esm.js.map +0 -1
  585. package/dist/checkout/loader.esm.js.map +0 -1
  586. package/dist/checkout/p-00a301b3.entry.js +0 -2
  587. package/dist/checkout/p-00a301b3.entry.js.map +0 -1
  588. package/dist/checkout/p-07b5d96f.entry.js +0 -2
  589. package/dist/checkout/p-07b5d96f.entry.js.map +0 -1
  590. package/dist/checkout/p-09688586.entry.js +0 -2
  591. package/dist/checkout/p-09688586.entry.js.map +0 -1
  592. package/dist/checkout/p-18addee5.entry.js +0 -2
  593. package/dist/checkout/p-18addee5.entry.js.map +0 -1
  594. package/dist/checkout/p-18ddefd1.entry.js +0 -5
  595. package/dist/checkout/p-18ddefd1.entry.js.map +0 -1
  596. package/dist/checkout/p-19f6286e.entry.js +0 -2
  597. package/dist/checkout/p-19f6286e.entry.js.map +0 -1
  598. package/dist/checkout/p-1b654d66.entry.js +0 -2
  599. package/dist/checkout/p-1b654d66.entry.js.map +0 -1
  600. package/dist/checkout/p-215f237f.entry.js +0 -2
  601. package/dist/checkout/p-215f237f.entry.js.map +0 -1
  602. package/dist/checkout/p-243533d4.entry.js +0 -2
  603. package/dist/checkout/p-243533d4.entry.js.map +0 -1
  604. package/dist/checkout/p-2641406e.entry.js +0 -5
  605. package/dist/checkout/p-2641406e.entry.js.map +0 -1
  606. package/dist/checkout/p-2683c242.entry.js +0 -2
  607. package/dist/checkout/p-2683c242.entry.js.map +0 -1
  608. package/dist/checkout/p-270607e1.entry.js +0 -2
  609. package/dist/checkout/p-270607e1.entry.js.map +0 -1
  610. package/dist/checkout/p-28d82baa.entry.js +0 -2
  611. package/dist/checkout/p-28d82baa.entry.js.map +0 -1
  612. package/dist/checkout/p-2aa4f4ab.entry.js +0 -2
  613. package/dist/checkout/p-2aa4f4ab.entry.js.map +0 -1
  614. package/dist/checkout/p-2ee1a2b5.entry.js +0 -2
  615. package/dist/checkout/p-2ee1a2b5.entry.js.map +0 -1
  616. package/dist/checkout/p-358214aa.entry.js +0 -2
  617. package/dist/checkout/p-358214aa.entry.js.map +0 -1
  618. package/dist/checkout/p-36e0fbcc.entry.js +0 -20
  619. package/dist/checkout/p-36e0fbcc.entry.js.map +0 -1
  620. package/dist/checkout/p-37e54688.entry.js +0 -2
  621. package/dist/checkout/p-37e54688.entry.js.map +0 -1
  622. package/dist/checkout/p-3ef78696.entry.js +0 -2
  623. package/dist/checkout/p-3ef78696.entry.js.map +0 -1
  624. package/dist/checkout/p-454447c5.entry.js +0 -2
  625. package/dist/checkout/p-454447c5.entry.js.map +0 -1
  626. package/dist/checkout/p-4857bfa5.entry.js +0 -2
  627. package/dist/checkout/p-4857bfa5.entry.js.map +0 -1
  628. package/dist/checkout/p-4d89a3fa.entry.js +0 -2
  629. package/dist/checkout/p-4d89a3fa.entry.js.map +0 -1
  630. package/dist/checkout/p-52764c17.entry.js +0 -2
  631. package/dist/checkout/p-52764c17.entry.js.map +0 -1
  632. package/dist/checkout/p-57f622db.entry.js +0 -2
  633. package/dist/checkout/p-57f622db.entry.js.map +0 -1
  634. package/dist/checkout/p-59888ca4.entry.js +0 -2
  635. package/dist/checkout/p-59888ca4.entry.js.map +0 -1
  636. package/dist/checkout/p-5ecfbad6.entry.js +0 -2
  637. package/dist/checkout/p-5ecfbad6.entry.js.map +0 -1
  638. package/dist/checkout/p-62ca8564.entry.js +0 -2
  639. package/dist/checkout/p-62ca8564.entry.js.map +0 -1
  640. package/dist/checkout/p-6302dd24.entry.js +0 -2
  641. package/dist/checkout/p-6302dd24.entry.js.map +0 -1
  642. package/dist/checkout/p-64ac130b.entry.js +0 -2
  643. package/dist/checkout/p-64ac130b.entry.js.map +0 -1
  644. package/dist/checkout/p-6714fa18.entry.js +0 -2
  645. package/dist/checkout/p-6714fa18.entry.js.map +0 -1
  646. package/dist/checkout/p-681ae472.entry.js +0 -2
  647. package/dist/checkout/p-681ae472.entry.js.map +0 -1
  648. package/dist/checkout/p-69f632b2.entry.js +0 -5
  649. package/dist/checkout/p-69f632b2.entry.js.map +0 -1
  650. package/dist/checkout/p-6b72bcfa.entry.js +0 -2
  651. package/dist/checkout/p-6b72bcfa.entry.js.map +0 -1
  652. package/dist/checkout/p-74c91a78.entry.js +0 -2
  653. package/dist/checkout/p-74c91a78.entry.js.map +0 -1
  654. package/dist/checkout/p-7ba2116f.entry.js +0 -2
  655. package/dist/checkout/p-7ba2116f.entry.js.map +0 -1
  656. package/dist/checkout/p-7d45a649.entry.js +0 -5
  657. package/dist/checkout/p-7d45a649.entry.js.map +0 -1
  658. package/dist/checkout/p-7df3464f.entry.js +0 -2
  659. package/dist/checkout/p-7df3464f.entry.js.map +0 -1
  660. package/dist/checkout/p-7f336a66.entry.js +0 -2
  661. package/dist/checkout/p-7f336a66.entry.js.map +0 -1
  662. package/dist/checkout/p-7f3cb127.entry.js +0 -2
  663. package/dist/checkout/p-7f3cb127.entry.js.map +0 -1
  664. package/dist/checkout/p-82e0c3f5.entry.js +0 -5
  665. package/dist/checkout/p-82e0c3f5.entry.js.map +0 -1
  666. package/dist/checkout/p-83723f22.entry.js +0 -2
  667. package/dist/checkout/p-83723f22.entry.js.map +0 -1
  668. package/dist/checkout/p-83cc118e.entry.js +0 -2
  669. package/dist/checkout/p-83cc118e.entry.js.map +0 -1
  670. package/dist/checkout/p-84d696fb.entry.js +0 -2
  671. package/dist/checkout/p-84d696fb.entry.js.map +0 -1
  672. package/dist/checkout/p-85548f6c.entry.js +0 -2
  673. package/dist/checkout/p-85548f6c.entry.js.map +0 -1
  674. package/dist/checkout/p-85ee65c9.entry.js +0 -2
  675. package/dist/checkout/p-85ee65c9.entry.js.map +0 -1
  676. package/dist/checkout/p-8b182c6a.entry.js +0 -8
  677. package/dist/checkout/p-8b182c6a.entry.js.map +0 -1
  678. package/dist/checkout/p-8d31e4f7.entry.js +0 -2
  679. package/dist/checkout/p-8d31e4f7.entry.js.map +0 -1
  680. package/dist/checkout/p-8e3dc24d.entry.js +0 -2
  681. package/dist/checkout/p-8e3dc24d.entry.js.map +0 -1
  682. package/dist/checkout/p-8e96c15d.entry.js +0 -2
  683. package/dist/checkout/p-8e96c15d.entry.js.map +0 -1
  684. package/dist/checkout/p-8fbb12d6.entry.js +0 -2
  685. package/dist/checkout/p-8fbb12d6.entry.js.map +0 -1
  686. package/dist/checkout/p-924c47c2.entry.js +0 -20
  687. package/dist/checkout/p-924c47c2.entry.js.map +0 -1
  688. package/dist/checkout/p-931cb238.entry.js +0 -2
  689. package/dist/checkout/p-931cb238.entry.js.map +0 -1
  690. package/dist/checkout/p-93bc2286.entry.js +0 -2
  691. package/dist/checkout/p-93bc2286.entry.js.map +0 -1
  692. package/dist/checkout/p-B-KuLMsZ.js +0 -8
  693. package/dist/checkout/p-B-KuLMsZ.js.map +0 -1
  694. package/dist/checkout/p-B-hirT0v.js.map +0 -1
  695. package/dist/checkout/p-B3WORC1a.js.map +0 -1
  696. package/dist/checkout/p-BGDWAHw3.js +0 -5
  697. package/dist/checkout/p-BGDWAHw3.js.map +0 -1
  698. package/dist/checkout/p-BR7SJd-v.js.map +0 -1
  699. package/dist/checkout/p-BTEOs1at.js.map +0 -1
  700. package/dist/checkout/p-BWWP5b2n.js +0 -20
  701. package/dist/checkout/p-BWWP5b2n.js.map +0 -1
  702. package/dist/checkout/p-BgOwfqIY.js.map +0 -1
  703. package/dist/checkout/p-BmVRXR1y.js.map +0 -1
  704. package/dist/checkout/p-BmlsNFZH.js.map +0 -1
  705. package/dist/checkout/p-Bp4HXTAC.js +0 -6
  706. package/dist/checkout/p-Bp4HXTAC.js.map +0 -1
  707. package/dist/checkout/p-BthJ6qTQ.js +0 -5
  708. package/dist/checkout/p-BthJ6qTQ.js.map +0 -1
  709. package/dist/checkout/p-BxybgBKJ.js +0 -9
  710. package/dist/checkout/p-BxybgBKJ.js.map +0 -1
  711. package/dist/checkout/p-C03M5ZSM.js.map +0 -1
  712. package/dist/checkout/p-C0PjLcMv.js +0 -8
  713. package/dist/checkout/p-C0PjLcMv.js.map +0 -1
  714. package/dist/checkout/p-C1xutNb4.js +0 -5
  715. package/dist/checkout/p-C1xutNb4.js.map +0 -1
  716. package/dist/checkout/p-C53feagD.js.map +0 -1
  717. package/dist/checkout/p-C6ZGuX6t.js +0 -11
  718. package/dist/checkout/p-C6ZGuX6t.js.map +0 -1
  719. package/dist/checkout/p-CG5IBVB8.js +0 -5
  720. package/dist/checkout/p-CG5IBVB8.js.map +0 -1
  721. package/dist/checkout/p-CH3Eg9_f.js.map +0 -1
  722. package/dist/checkout/p-CR1XUyil.js +0 -8
  723. package/dist/checkout/p-CR1XUyil.js.map +0 -1
  724. package/dist/checkout/p-CUNZzVQR.js +0 -5
  725. package/dist/checkout/p-CUNZzVQR.js.map +0 -1
  726. package/dist/checkout/p-CZs2_vz-.js +0 -23
  727. package/dist/checkout/p-CZs2_vz-.js.map +0 -1
  728. package/dist/checkout/p-CganX2z7.js +0 -5
  729. package/dist/checkout/p-CganX2z7.js.map +0 -1
  730. package/dist/checkout/p-CiN1CmnZ.js +0 -5
  731. package/dist/checkout/p-CiN1CmnZ.js.map +0 -1
  732. package/dist/checkout/p-D2NxOvQ8.js.map +0 -1
  733. package/dist/checkout/p-D4RIp70E.js.map +0 -1
  734. package/dist/checkout/p-DDV5ZZmu.js +0 -8
  735. package/dist/checkout/p-DDV5ZZmu.js.map +0 -1
  736. package/dist/checkout/p-DGWbKjms.js +0 -5
  737. package/dist/checkout/p-DGWbKjms.js.map +0 -1
  738. package/dist/checkout/p-DJztqcrH.js.map +0 -1
  739. package/dist/checkout/p-DKg_dYcq.js.map +0 -1
  740. package/dist/checkout/p-DQMrQygy.js +0 -17
  741. package/dist/checkout/p-DQMrQygy.js.map +0 -1
  742. package/dist/checkout/p-DiVJyqlX.js.map +0 -1
  743. package/dist/checkout/p-DokgqSDS.js +0 -8
  744. package/dist/checkout/p-DokgqSDS.js.map +0 -1
  745. package/dist/checkout/p-DpIGiwma.js +0 -5
  746. package/dist/checkout/p-DpIGiwma.js.map +0 -1
  747. package/dist/checkout/p-Dtdm8lKC.js.map +0 -1
  748. package/dist/checkout/p-LC8Dag8J.js +0 -5
  749. package/dist/checkout/p-LC8Dag8J.js.map +0 -1
  750. package/dist/checkout/p-PlOw-cTg.js +0 -2
  751. package/dist/checkout/p-PlOw-cTg.js.map +0 -1
  752. package/dist/checkout/p-ZjP4CjeZ.js.map +0 -1
  753. package/dist/checkout/p-a3af7718.entry.js +0 -2
  754. package/dist/checkout/p-a3af7718.entry.js.map +0 -1
  755. package/dist/checkout/p-a4e73261.entry.js +0 -2
  756. package/dist/checkout/p-a4e73261.entry.js.map +0 -1
  757. package/dist/checkout/p-a5f0602a.entry.js +0 -8
  758. package/dist/checkout/p-a5f0602a.entry.js.map +0 -1
  759. package/dist/checkout/p-ad8b3747.entry.js +0 -2
  760. package/dist/checkout/p-ad8b3747.entry.js.map +0 -1
  761. package/dist/checkout/p-ae1491f9.entry.js +0 -14
  762. package/dist/checkout/p-ae1491f9.entry.js.map +0 -1
  763. package/dist/checkout/p-b015f67f.entry.js +0 -2
  764. package/dist/checkout/p-b015f67f.entry.js.map +0 -1
  765. package/dist/checkout/p-b04f980c.entry.js +0 -2
  766. package/dist/checkout/p-b04f980c.entry.js.map +0 -1
  767. package/dist/checkout/p-b0b107e3.entry.js +0 -2
  768. package/dist/checkout/p-b0b107e3.entry.js.map +0 -1
  769. package/dist/checkout/p-b1db1d70.entry.js +0 -2
  770. package/dist/checkout/p-b1db1d70.entry.js.map +0 -1
  771. package/dist/checkout/p-b49b96cf.entry.js +0 -2
  772. package/dist/checkout/p-b49b96cf.entry.js.map +0 -1
  773. package/dist/checkout/p-b828e054.entry.js +0 -2
  774. package/dist/checkout/p-b828e054.entry.js.map +0 -1
  775. package/dist/checkout/p-b93a1bd6.entry.js +0 -2
  776. package/dist/checkout/p-b93a1bd6.entry.js.map +0 -1
  777. package/dist/checkout/p-bc55f859.entry.js +0 -2
  778. package/dist/checkout/p-bc55f859.entry.js.map +0 -1
  779. package/dist/checkout/p-befcbd0d.entry.js +0 -2
  780. package/dist/checkout/p-befcbd0d.entry.js.map +0 -1
  781. package/dist/checkout/p-c48a9448.entry.js +0 -2
  782. package/dist/checkout/p-c48a9448.entry.js.map +0 -1
  783. package/dist/checkout/p-c615397e.entry.js +0 -17
  784. package/dist/checkout/p-c615397e.entry.js.map +0 -1
  785. package/dist/checkout/p-cab41a25.entry.js +0 -62
  786. package/dist/checkout/p-cab41a25.entry.js.map +0 -1
  787. package/dist/checkout/p-cbf0100c.entry.js +0 -2
  788. package/dist/checkout/p-cbf0100c.entry.js.map +0 -1
  789. package/dist/checkout/p-cc591365.entry.js +0 -2
  790. package/dist/checkout/p-cc591365.entry.js.map +0 -1
  791. package/dist/checkout/p-cd8e7091.entry.js +0 -2
  792. package/dist/checkout/p-cd8e7091.entry.js.map +0 -1
  793. package/dist/checkout/p-d0d33188.entry.js +0 -2
  794. package/dist/checkout/p-d0d33188.entry.js.map +0 -1
  795. package/dist/checkout/p-d18cc858.entry.js +0 -2
  796. package/dist/checkout/p-d18cc858.entry.js.map +0 -1
  797. package/dist/checkout/p-d595c210.entry.js +0 -2
  798. package/dist/checkout/p-d595c210.entry.js.map +0 -1
  799. package/dist/checkout/p-d70b96db.entry.js +0 -2
  800. package/dist/checkout/p-d70b96db.entry.js.map +0 -1
  801. package/dist/checkout/p-d9a88167.entry.js +0 -2
  802. package/dist/checkout/p-d9a88167.entry.js.map +0 -1
  803. package/dist/checkout/p-e0fd6219.entry.js +0 -5
  804. package/dist/checkout/p-e0fd6219.entry.js.map +0 -1
  805. package/dist/checkout/p-eae47e9d.entry.js +0 -2
  806. package/dist/checkout/p-eae47e9d.entry.js.map +0 -1
  807. package/dist/checkout/p-ee1b72ba.entry.js +0 -2
  808. package/dist/checkout/p-ee1b72ba.entry.js.map +0 -1
  809. package/dist/checkout/p-eeb818b4.entry.js +0 -2
  810. package/dist/checkout/p-eeb818b4.entry.js.map +0 -1
  811. package/dist/checkout/p-f7dd0c42.entry.js +0 -2
  812. package/dist/checkout/p-f7dd0c42.entry.js.map +0 -1
  813. package/dist/checkout/p-f8f93e18.entry.js +0 -2
  814. package/dist/checkout/p-f8f93e18.entry.js.map +0 -1
  815. package/dist/checkout/p-hHmYLOfE.js.map +0 -1
  816. package/dist/checkout/p-ktzqax7n.js.map +0 -1
  817. package/dist/checkout/p-sObYyvOy.js.map +0 -1
  818. package/dist/checkout/p-syN-rRwJ.js +0 -6
  819. package/dist/checkout/p-syN-rRwJ.js.map +0 -1
  820. package/dist/cjs/animation-BtvIVax4.js.map +0 -1
  821. package/dist/cjs/app-globals-k1SzUfrO.js +0 -10
  822. package/dist/cjs/app-globals-k1SzUfrO.js.map +0 -1
  823. package/dist/cjs/ar-CbT6TM-Q.js.map +0 -1
  824. package/dist/cjs/capacitor-CqhugS19.js.map +0 -1
  825. package/dist/cjs/checkout.cjs.js.map +0 -1
  826. package/dist/cjs/compare-with-utils-JlLIkecm.js.map +0 -1
  827. package/dist/cjs/config-DUSoxbhv.js.map +0 -1
  828. package/dist/cjs/cubic-bezier-Bv3PvaRI.js.map +0 -1
  829. package/dist/cjs/data-CjHlPfPW.js.map +0 -1
  830. package/dist/cjs/dir-Br-7_bel.js.map +0 -1
  831. package/dist/cjs/focus-visible-Da2o6bTP.js.map +0 -1
  832. package/dist/cjs/framework-delegate-BoMy23Lz.js.map +0 -1
  833. package/dist/cjs/gesture-controller-CiprlUhH.js.map +0 -1
  834. package/dist/cjs/haptic-DCn793nz.js.map +0 -1
  835. package/dist/cjs/hardware-back-button-B1WYQg6m.js.map +0 -1
  836. package/dist/cjs/helpers-C5_WrFOI.js.map +0 -1
  837. package/dist/cjs/i18n-uGNv9SLK.js.map +0 -1
  838. package/dist/cjs/index-BPGqVQtz.js.map +0 -1
  839. package/dist/cjs/index-C-U8a6CY.js.map +0 -1
  840. package/dist/cjs/index-C0J_JwJB.js.map +0 -1
  841. package/dist/cjs/index-C3dD6F2g.js.map +0 -1
  842. package/dist/cjs/index-Calgykmz.js.map +0 -1
  843. package/dist/cjs/index-D3mJ1Cix.js.map +0 -1
  844. package/dist/cjs/index-DseJYF57.js.map +0 -1
  845. package/dist/cjs/index-DwdNl4cs.js.map +0 -1
  846. package/dist/cjs/index.cjs.js.map +0 -1
  847. package/dist/cjs/input-shims-DIBy37tN.js.map +0 -1
  848. package/dist/cjs/input.utils-IVavyQAZ.js.map +0 -1
  849. package/dist/cjs/ionic-global-BmDUlKDf.js.map +0 -1
  850. package/dist/cjs/ios.transition-ROXYV2qt.js.map +0 -1
  851. package/dist/cjs/keyboard-DuKzsHsS.js.map +0 -1
  852. package/dist/cjs/keyboard-controller-rH21qC_2.js.map +0 -1
  853. package/dist/cjs/keyboard-iyHR2ZF4.js.map +0 -1
  854. package/dist/cjs/loader.cjs.js.map +0 -1
  855. package/dist/cjs/lock-controller-58TZFRHC.js.map +0 -1
  856. package/dist/cjs/md.transition-NftVXx7D.js.map +0 -1
  857. package/dist/cjs/menu-toggle-util-CROwv_aL.js.map +0 -1
  858. package/dist/cjs/notch-controller-BzbZcc1N.js.map +0 -1
  859. package/dist/cjs/overlays-gyJEvMkB.js.map +0 -1
  860. package/dist/cjs/refresher.utils-DZrHDYQN.js.map +0 -1
  861. package/dist/cjs/spinner-configs-BN41iw42.js.map +0 -1
  862. package/dist/cjs/status-tap-B5QfH5DO.js.map +0 -1
  863. package/dist/cjs/swipe-back-BkT4j65k.js.map +0 -1
  864. package/dist/cjs/theme-DbHdw1Nx.js.map +0 -1
  865. package/dist/cjs/validity-ClNawnRU.js.map +0 -1
  866. package/dist/cjs/watch-options-DOFUPyuf.js.map +0 -1
  867. package/dist/collection/components/amwal-checkout-button/amwal-checkout-button.js.map +0 -1
  868. package/dist/collection/components/amwal-checkout-button/amwal-checkout-button.stories.js.map +0 -1
  869. package/dist/collection/components/amwal-installments-guide/amwal-installments-guide.js.map +0 -1
  870. package/dist/collection/components/amwal-installments-guide/amwal-installments-guide.stories.js.map +0 -1
  871. package/dist/collection/components/amwal-installments-timeline/amwal-installments-timeline.js.map +0 -1
  872. package/dist/collection/components/amwal-installments-timeline/amwal-installments-timeline.stories.js.map +0 -1
  873. package/dist/collection/components/amwal-pos/amwal-pos.js.map +0 -1
  874. package/dist/collection/components/amwal-pos/amwal-pos.stories.js.map +0 -1
  875. package/dist/collection/components/amwal-widget/amwal-widget-modal.js.map +0 -1
  876. package/dist/collection/components/amwal-widget/amwal-widget.js.map +0 -1
  877. package/dist/collection/components/amwal-widget/amwal-widget.stories.js.map +0 -1
  878. package/dist/collection/lang/i18n.js.map +0 -1
  879. package/dist/components/amwal-checkout-button.js.map +0 -1
  880. package/dist/components/amwal-installments-guide.js.map +0 -1
  881. package/dist/components/amwal-installments-timeline.js.map +0 -1
  882. package/dist/components/amwal-pos.js.map +0 -1
  883. package/dist/components/amwal-widget-modal.js.map +0 -1
  884. package/dist/components/amwal-widget.js.map +0 -1
  885. package/dist/components/index.js.map +0 -1
  886. package/dist/components/ion-accordion-group.js.map +0 -1
  887. package/dist/components/ion-accordion.js.map +0 -1
  888. package/dist/components/ion-action-sheet.js.map +0 -1
  889. package/dist/components/ion-alert.js.map +0 -1
  890. package/dist/components/ion-app.js.map +0 -1
  891. package/dist/components/ion-avatar.js.map +0 -1
  892. package/dist/components/ion-back-button.js.map +0 -1
  893. package/dist/components/ion-backdrop.js.map +0 -1
  894. package/dist/components/ion-badge.js.map +0 -1
  895. package/dist/components/ion-breadcrumb.js.map +0 -1
  896. package/dist/components/ion-breadcrumbs.js.map +0 -1
  897. package/dist/components/ion-button.js.map +0 -1
  898. package/dist/components/ion-buttons.js.map +0 -1
  899. package/dist/components/ion-card-content.js.map +0 -1
  900. package/dist/components/ion-card-header.js.map +0 -1
  901. package/dist/components/ion-card-subtitle.js.map +0 -1
  902. package/dist/components/ion-card-title.js.map +0 -1
  903. package/dist/components/ion-card.js.map +0 -1
  904. package/dist/components/ion-checkbox.js.map +0 -1
  905. package/dist/components/ion-chip.js.map +0 -1
  906. package/dist/components/ion-col.js.map +0 -1
  907. package/dist/components/ion-content.js.map +0 -1
  908. package/dist/components/ion-datetime-button.js.map +0 -1
  909. package/dist/components/ion-datetime.js.map +0 -1
  910. package/dist/components/ion-fab-button.js.map +0 -1
  911. package/dist/components/ion-fab-list.js.map +0 -1
  912. package/dist/components/ion-fab.js.map +0 -1
  913. package/dist/components/ion-footer.js.map +0 -1
  914. package/dist/components/ion-grid.js.map +0 -1
  915. package/dist/components/ion-header.js.map +0 -1
  916. package/dist/components/ion-icon.js.map +0 -1
  917. package/dist/components/ion-img.js.map +0 -1
  918. package/dist/components/ion-infinite-scroll-content.js.map +0 -1
  919. package/dist/components/ion-infinite-scroll.js.map +0 -1
  920. package/dist/components/ion-input-otp.js.map +0 -1
  921. package/dist/components/ion-input-password-toggle.js.map +0 -1
  922. package/dist/components/ion-input.js.map +0 -1
  923. package/dist/components/ion-item-divider.js.map +0 -1
  924. package/dist/components/ion-item-group.js.map +0 -1
  925. package/dist/components/ion-item-option.js.map +0 -1
  926. package/dist/components/ion-item-options.js.map +0 -1
  927. package/dist/components/ion-item-sliding.js.map +0 -1
  928. package/dist/components/ion-item.js.map +0 -1
  929. package/dist/components/ion-label.js.map +0 -1
  930. package/dist/components/ion-list-header.js.map +0 -1
  931. package/dist/components/ion-list.js.map +0 -1
  932. package/dist/components/ion-loading.js.map +0 -1
  933. package/dist/components/ion-menu-button.js.map +0 -1
  934. package/dist/components/ion-menu-toggle.js.map +0 -1
  935. package/dist/components/ion-menu.js.map +0 -1
  936. package/dist/components/ion-modal.js.map +0 -1
  937. package/dist/components/ion-nav-link.js.map +0 -1
  938. package/dist/components/ion-nav.js.map +0 -1
  939. package/dist/components/ion-note.js.map +0 -1
  940. package/dist/components/ion-picker-column-option.js.map +0 -1
  941. package/dist/components/ion-picker-column.js.map +0 -1
  942. package/dist/components/ion-picker-legacy-column.js.map +0 -1
  943. package/dist/components/ion-picker-legacy.js.map +0 -1
  944. package/dist/components/ion-picker.js.map +0 -1
  945. package/dist/components/ion-popover.js.map +0 -1
  946. package/dist/components/ion-progress-bar.js.map +0 -1
  947. package/dist/components/ion-radio-group.js.map +0 -1
  948. package/dist/components/ion-radio.js.map +0 -1
  949. package/dist/components/ion-range.js.map +0 -1
  950. package/dist/components/ion-refresher-content.js.map +0 -1
  951. package/dist/components/ion-refresher.js.map +0 -1
  952. package/dist/components/ion-reorder-group.js.map +0 -1
  953. package/dist/components/ion-reorder.js.map +0 -1
  954. package/dist/components/ion-ripple-effect.js.map +0 -1
  955. package/dist/components/ion-route-redirect.js.map +0 -1
  956. package/dist/components/ion-route.js.map +0 -1
  957. package/dist/components/ion-router-link.js.map +0 -1
  958. package/dist/components/ion-router-outlet.js.map +0 -1
  959. package/dist/components/ion-router.js.map +0 -1
  960. package/dist/components/ion-row.js.map +0 -1
  961. package/dist/components/ion-searchbar.js.map +0 -1
  962. package/dist/components/ion-segment-button.js.map +0 -1
  963. package/dist/components/ion-segment-content.js.map +0 -1
  964. package/dist/components/ion-segment-view.js.map +0 -1
  965. package/dist/components/ion-segment.js.map +0 -1
  966. package/dist/components/ion-select-modal.js.map +0 -1
  967. package/dist/components/ion-select-option.js.map +0 -1
  968. package/dist/components/ion-select-popover.js.map +0 -1
  969. package/dist/components/ion-select.js.map +0 -1
  970. package/dist/components/ion-skeleton-text.js.map +0 -1
  971. package/dist/components/ion-spinner.js.map +0 -1
  972. package/dist/components/ion-split-pane.js.map +0 -1
  973. package/dist/components/ion-tab-bar.js.map +0 -1
  974. package/dist/components/ion-tab-button.js.map +0 -1
  975. package/dist/components/ion-tab.js.map +0 -1
  976. package/dist/components/ion-tabs.js.map +0 -1
  977. package/dist/components/ion-text.js.map +0 -1
  978. package/dist/components/ion-textarea.js.map +0 -1
  979. package/dist/components/ion-thumbnail.js.map +0 -1
  980. package/dist/components/ion-title.js.map +0 -1
  981. package/dist/components/ion-toast.js.map +0 -1
  982. package/dist/components/ion-toggle.js.map +0 -1
  983. package/dist/components/ion-toolbar.js.map +0 -1
  984. package/dist/components/p-2HMA6Bk9.js +0 -199
  985. package/dist/components/p-2HMA6Bk9.js.map +0 -1
  986. package/dist/components/p-5oWdAaAi.js +0 -192
  987. package/dist/components/p-5oWdAaAi.js.map +0 -1
  988. package/dist/components/p-9R9WjA6V.js.map +0 -1
  989. package/dist/components/p-B-hirT0v.js.map +0 -1
  990. package/dist/components/p-B2gn37E3.js +0 -71
  991. package/dist/components/p-B2gn37E3.js.map +0 -1
  992. package/dist/components/p-B3WORC1a.js.map +0 -1
  993. package/dist/components/p-BHR1qL-B.js.map +0 -1
  994. package/dist/components/p-BLZx8ena.js +0 -648
  995. package/dist/components/p-BLZx8ena.js.map +0 -1
  996. package/dist/components/p-BPfqVyXF.js +0 -131
  997. package/dist/components/p-BPfqVyXF.js.map +0 -1
  998. package/dist/components/p-BRke83qH.js +0 -59
  999. package/dist/components/p-BRke83qH.js.map +0 -1
  1000. package/dist/components/p-BTEOs1at.js.map +0 -1
  1001. package/dist/components/p-BZwvoMAR.js +0 -42
  1002. package/dist/components/p-BZwvoMAR.js.map +0 -1
  1003. package/dist/components/p-BeDf61kY.js +0 -427
  1004. package/dist/components/p-BeDf61kY.js.map +0 -1
  1005. package/dist/components/p-BfUU8qUe.js +0 -42
  1006. package/dist/components/p-BfUU8qUe.js.map +0 -1
  1007. package/dist/components/p-BgOwfqIY.js.map +0 -1
  1008. package/dist/components/p-BhiX6sCr.js +0 -826
  1009. package/dist/components/p-BhiX6sCr.js.map +0 -1
  1010. package/dist/components/p-Binl0XAs.js +0 -576
  1011. package/dist/components/p-Binl0XAs.js.map +0 -1
  1012. package/dist/components/p-Bm5dgzDt.js +0 -118
  1013. package/dist/components/p-Bm5dgzDt.js.map +0 -1
  1014. package/dist/components/p-BmVRXR1y.js.map +0 -1
  1015. package/dist/components/p-BqMnDwQG.js +0 -194
  1016. package/dist/components/p-BqMnDwQG.js.map +0 -1
  1017. package/dist/components/p-BxP8TDfL.js.map +0 -1
  1018. package/dist/components/p-Byqjk7Y-.js +0 -423
  1019. package/dist/components/p-Byqjk7Y-.js.map +0 -1
  1020. package/dist/components/p-C03M5ZSM.js.map +0 -1
  1021. package/dist/components/p-C53feagD.js.map +0 -1
  1022. package/dist/components/p-C9H5b4Sp.js +0 -156
  1023. package/dist/components/p-C9H5b4Sp.js.map +0 -1
  1024. package/dist/components/p-CBE-1aIM.js +0 -342
  1025. package/dist/components/p-CBE-1aIM.js.map +0 -1
  1026. package/dist/components/p-CH3Eg9_f.js.map +0 -1
  1027. package/dist/components/p-CKAwPEA1.js.map +0 -1
  1028. package/dist/components/p-CQgmejdy.js +0 -103
  1029. package/dist/components/p-CQgmejdy.js.map +0 -1
  1030. package/dist/components/p-CS0AfHCU.js +0 -321
  1031. package/dist/components/p-CS0AfHCU.js.map +0 -1
  1032. package/dist/components/p-CTM7uu-W.js +0 -1656
  1033. package/dist/components/p-CTM7uu-W.js.map +0 -1
  1034. package/dist/components/p-Ccgs7j-d.js +0 -229
  1035. package/dist/components/p-Ccgs7j-d.js.map +0 -1
  1036. package/dist/components/p-ClEjw1rH.js +0 -235
  1037. package/dist/components/p-ClEjw1rH.js.map +0 -1
  1038. package/dist/components/p-CqzV2Pip.js +0 -459
  1039. package/dist/components/p-CqzV2Pip.js.map +0 -1
  1040. package/dist/components/p-D-0nEl_9.js +0 -75
  1041. package/dist/components/p-D-0nEl_9.js.map +0 -1
  1042. package/dist/components/p-D2NxOvQ8.js.map +0 -1
  1043. package/dist/components/p-D86aKvUI.js +0 -305
  1044. package/dist/components/p-D86aKvUI.js.map +0 -1
  1045. package/dist/components/p-DBeEVQxe.js +0 -2542
  1046. package/dist/components/p-DBeEVQxe.js.map +0 -1
  1047. package/dist/components/p-DEAe7QEa.js +0 -152
  1048. package/dist/components/p-DEAe7QEa.js.map +0 -1
  1049. package/dist/components/p-DFwbATZZ.js +0 -92
  1050. package/dist/components/p-DFwbATZZ.js.map +0 -1
  1051. package/dist/components/p-DG3y4Paj.js.map +0 -1
  1052. package/dist/components/p-DJztqcrH.js.map +0 -1
  1053. package/dist/components/p-DKTjDEAE.js +0 -477
  1054. package/dist/components/p-DKTjDEAE.js.map +0 -1
  1055. package/dist/components/p-DKg_dYcq.js.map +0 -1
  1056. package/dist/components/p-DQU52fBY.js +0 -913
  1057. package/dist/components/p-DQU52fBY.js.map +0 -1
  1058. package/dist/components/p-DXxzBbWg.js +0 -290
  1059. package/dist/components/p-DXxzBbWg.js.map +0 -1
  1060. package/dist/components/p-DiBX36NE.js +0 -73
  1061. package/dist/components/p-DiBX36NE.js.map +0 -1
  1062. package/dist/components/p-DiVJyqlX.js.map +0 -1
  1063. package/dist/components/p-DpZBHf1M.js +0 -598
  1064. package/dist/components/p-DpZBHf1M.js.map +0 -1
  1065. package/dist/components/p-DskTArru.js +0 -112
  1066. package/dist/components/p-DskTArru.js.map +0 -1
  1067. package/dist/components/p-Dtdm8lKC.js.map +0 -1
  1068. package/dist/components/p-DuZ7hY1a.js.map +0 -1
  1069. package/dist/components/p-Dw849bTq.js +0 -305
  1070. package/dist/components/p-Dw849bTq.js.map +0 -1
  1071. package/dist/components/p-DwPO21ol.js +0 -153
  1072. package/dist/components/p-DwPO21ol.js.map +0 -1
  1073. package/dist/components/p-JTTQkHB9.js +0 -139
  1074. package/dist/components/p-JTTQkHB9.js.map +0 -1
  1075. package/dist/components/p-L_Psvpkz.js +0 -222
  1076. package/dist/components/p-L_Psvpkz.js.map +0 -1
  1077. package/dist/components/p-Vjh8RfHt.js +0 -264
  1078. package/dist/components/p-Vjh8RfHt.js.map +0 -1
  1079. package/dist/components/p-XkH8uZ6p.js +0 -624
  1080. package/dist/components/p-XkH8uZ6p.js.map +0 -1
  1081. package/dist/components/p-YUfYVoix.js +0 -170
  1082. package/dist/components/p-YUfYVoix.js.map +0 -1
  1083. package/dist/components/p-ZjP4CjeZ.js.map +0 -1
  1084. package/dist/components/p-_OXvEtk1.js +0 -501
  1085. package/dist/components/p-_OXvEtk1.js.map +0 -1
  1086. package/dist/components/p-abe_AkUW.js +0 -1982
  1087. package/dist/components/p-abe_AkUW.js.map +0 -1
  1088. package/dist/components/p-cCiT8ucm.js +0 -1519
  1089. package/dist/components/p-cCiT8ucm.js.map +0 -1
  1090. package/dist/components/p-fROlYcE4.js +0 -380
  1091. package/dist/components/p-fROlYcE4.js.map +0 -1
  1092. package/dist/components/p-hHmYLOfE.js.map +0 -1
  1093. package/dist/components/p-hoAPVm-t.js +0 -354
  1094. package/dist/components/p-hoAPVm-t.js.map +0 -1
  1095. package/dist/components/p-idUkgr5D.js +0 -81
  1096. package/dist/components/p-idUkgr5D.js.map +0 -1
  1097. package/dist/components/p-jWFeuAB5.js.map +0 -1
  1098. package/dist/components/p-o42LW1q1.js +0 -70
  1099. package/dist/components/p-o42LW1q1.js.map +0 -1
  1100. package/dist/components/p-oO2T0VL-.js +0 -50
  1101. package/dist/components/p-oO2T0VL-.js.map +0 -1
  1102. package/dist/components/p-uTKLFBBy.js.map +0 -1
  1103. package/dist/esm/amwal-installments-guide.entry.js.map +0 -1
  1104. package/dist/esm/amwal-pos.entry.js.map +0 -1
  1105. package/dist/esm/amwal-widget-modal.entry.js.map +0 -1
  1106. package/dist/esm/amwal-widget.entry.js.map +0 -1
  1107. package/dist/esm/animation-BU4GfyJQ.js.map +0 -1
  1108. package/dist/esm/app-globals-DiUHe8Ib.js +0 -8
  1109. package/dist/esm/app-globals-DiUHe8Ib.js.map +0 -1
  1110. package/dist/esm/ar-B3WORC1a.js.map +0 -1
  1111. package/dist/esm/capacitor-CG3xQUND.js.map +0 -1
  1112. package/dist/esm/checkout.js.map +0 -1
  1113. package/dist/esm/compare-with-utils-sObYyvOy.js.map +0 -1
  1114. package/dist/esm/config-V6Cb8IlP.js +0 -176
  1115. package/dist/esm/config-V6Cb8IlP.js.map +0 -1
  1116. package/dist/esm/cubic-bezier-hHmYLOfE.js.map +0 -1
  1117. package/dist/esm/data-BKjeovce.js.map +0 -1
  1118. package/dist/esm/dir-C53feagD.js.map +0 -1
  1119. package/dist/esm/focus-visible-BmVRXR1y.js.map +0 -1
  1120. package/dist/esm/framework-delegate-CaqRmNBr.js +0 -143
  1121. package/dist/esm/framework-delegate-CaqRmNBr.js.map +0 -1
  1122. package/dist/esm/gesture-controller-BTEOs1at.js.map +0 -1
  1123. package/dist/esm/haptic-C3ucbArX.js.map +0 -1
  1124. package/dist/esm/hardware-back-button-Nry6hGkN.js.map +0 -1
  1125. package/dist/esm/helpers-uLqs1Gao.js.map +0 -1
  1126. package/dist/esm/i18n-C_AfxZ5D.js.map +0 -1
  1127. package/dist/esm/index-BmWsedvI.js.map +0 -1
  1128. package/dist/esm/index-BmlsNFZH.js.map +0 -1
  1129. package/dist/esm/index-BxybgBKJ.js.map +0 -1
  1130. package/dist/esm/index-CCWf5GQy.js.map +0 -1
  1131. package/dist/esm/index-CF4QYFB3.js.map +0 -1
  1132. package/dist/esm/index-Ct7Rjd6t.js.map +0 -1
  1133. package/dist/esm/index-ZjP4CjeZ.js.map +0 -1
  1134. package/dist/esm/index-ffNEk55Y.js.map +0 -1
  1135. package/dist/esm/index.js.map +0 -1
  1136. package/dist/esm/input-shims-DkzcZwWm.js.map +0 -1
  1137. package/dist/esm/input.utils-C_QovwBX.js.map +0 -1
  1138. package/dist/esm/ion-accordion-group.entry.js.map +0 -1
  1139. package/dist/esm/ion-accordion.entry.js.map +0 -1
  1140. package/dist/esm/ion-app.entry.js.map +0 -1
  1141. package/dist/esm/ion-avatar.entry.js.map +0 -1
  1142. package/dist/esm/ion-back-button.entry.js.map +0 -1
  1143. package/dist/esm/ion-backdrop.entry.js.map +0 -1
  1144. package/dist/esm/ion-badge.entry.js.map +0 -1
  1145. package/dist/esm/ion-breadcrumb.entry.js.map +0 -1
  1146. package/dist/esm/ion-breadcrumbs.entry.js.map +0 -1
  1147. package/dist/esm/ion-card-content.entry.js.map +0 -1
  1148. package/dist/esm/ion-card-header.entry.js.map +0 -1
  1149. package/dist/esm/ion-card-subtitle.entry.js.map +0 -1
  1150. package/dist/esm/ion-card-title.entry.js.map +0 -1
  1151. package/dist/esm/ion-card.entry.js.map +0 -1
  1152. package/dist/esm/ion-chip.entry.js.map +0 -1
  1153. package/dist/esm/ion-col.entry.js.map +0 -1
  1154. package/dist/esm/ion-datetime-button.entry.js.map +0 -1
  1155. package/dist/esm/ion-datetime.entry.js.map +0 -1
  1156. package/dist/esm/ion-fab-button.entry.js.map +0 -1
  1157. package/dist/esm/ion-fab-list.entry.js.map +0 -1
  1158. package/dist/esm/ion-fab.entry.js.map +0 -1
  1159. package/dist/esm/ion-footer.entry.js.map +0 -1
  1160. package/dist/esm/ion-grid.entry.js.map +0 -1
  1161. package/dist/esm/ion-icon.entry.js.map +0 -1
  1162. package/dist/esm/ion-img.entry.js.map +0 -1
  1163. package/dist/esm/ion-infinite-scroll-content.entry.js.map +0 -1
  1164. package/dist/esm/ion-infinite-scroll.entry.js.map +0 -1
  1165. package/dist/esm/ion-input-otp.entry.js.map +0 -1
  1166. package/dist/esm/ion-input-password-toggle.entry.js.map +0 -1
  1167. package/dist/esm/ion-input.entry.js.map +0 -1
  1168. package/dist/esm/ion-item-divider.entry.js.map +0 -1
  1169. package/dist/esm/ion-item-group.entry.js.map +0 -1
  1170. package/dist/esm/ion-item-option.entry.js.map +0 -1
  1171. package/dist/esm/ion-item-options.entry.js.map +0 -1
  1172. package/dist/esm/ion-item-sliding.entry.js.map +0 -1
  1173. package/dist/esm/ion-loading.entry.js.map +0 -1
  1174. package/dist/esm/ion-menu-button.entry.js.map +0 -1
  1175. package/dist/esm/ion-menu-toggle.entry.js.map +0 -1
  1176. package/dist/esm/ion-menu.entry.js.map +0 -1
  1177. package/dist/esm/ion-nav-link.entry.js.map +0 -1
  1178. package/dist/esm/ion-nav.entry.js.map +0 -1
  1179. package/dist/esm/ion-note.entry.js.map +0 -1
  1180. package/dist/esm/ion-picker-legacy-column.entry.js.map +0 -1
  1181. package/dist/esm/ion-picker-legacy.entry.js.map +0 -1
  1182. package/dist/esm/ion-popover.entry.js.map +0 -1
  1183. package/dist/esm/ion-progress-bar.entry.js.map +0 -1
  1184. package/dist/esm/ion-range.entry.js.map +0 -1
  1185. package/dist/esm/ion-refresher-content.entry.js.map +0 -1
  1186. package/dist/esm/ion-refresher.entry.js.map +0 -1
  1187. package/dist/esm/ion-reorder-group.entry.js.map +0 -1
  1188. package/dist/esm/ion-reorder.entry.js.map +0 -1
  1189. package/dist/esm/ion-route-redirect.entry.js.map +0 -1
  1190. package/dist/esm/ion-route.entry.js.map +0 -1
  1191. package/dist/esm/ion-router-link.entry.js.map +0 -1
  1192. package/dist/esm/ion-router-outlet.entry.js.map +0 -1
  1193. package/dist/esm/ion-router.entry.js.map +0 -1
  1194. package/dist/esm/ion-row.entry.js.map +0 -1
  1195. package/dist/esm/ion-searchbar.entry.js.map +0 -1
  1196. package/dist/esm/ion-segment-button.entry.js.map +0 -1
  1197. package/dist/esm/ion-segment-content.entry.js.map +0 -1
  1198. package/dist/esm/ion-segment-view.entry.js.map +0 -1
  1199. package/dist/esm/ion-segment.entry.js.map +0 -1
  1200. package/dist/esm/ion-select-option.entry.js.map +0 -1
  1201. package/dist/esm/ion-select.entry.js.map +0 -1
  1202. package/dist/esm/ion-skeleton-text.entry.js.map +0 -1
  1203. package/dist/esm/ion-spinner.entry.js.map +0 -1
  1204. package/dist/esm/ion-split-pane.entry.js.map +0 -1
  1205. package/dist/esm/ion-tab-bar.entry.js.map +0 -1
  1206. package/dist/esm/ion-tab-button.entry.js.map +0 -1
  1207. package/dist/esm/ion-tab.entry.js.map +0 -1
  1208. package/dist/esm/ion-tabs.entry.js.map +0 -1
  1209. package/dist/esm/ion-textarea.entry.js.map +0 -1
  1210. package/dist/esm/ion-thumbnail.entry.js.map +0 -1
  1211. package/dist/esm/ion-toast.entry.js.map +0 -1
  1212. package/dist/esm/ion-toggle.entry.js.map +0 -1
  1213. package/dist/esm/ionic-global-C8oJToxs.js.map +0 -1
  1214. package/dist/esm/ios.transition-BFolpAgy.js +0 -681
  1215. package/dist/esm/ios.transition-BFolpAgy.js.map +0 -1
  1216. package/dist/esm/keyboard-DcbqYXj5.js.map +0 -1
  1217. package/dist/esm/keyboard-DgiyREKb.js.map +0 -1
  1218. package/dist/esm/keyboard-controller-CqGCg8tB.js.map +0 -1
  1219. package/dist/esm/loader.js.map +0 -1
  1220. package/dist/esm/lock-controller-B-hirT0v.js.map +0 -1
  1221. package/dist/esm/md.transition-e1BRt2V0.js +0 -60
  1222. package/dist/esm/md.transition-e1BRt2V0.js.map +0 -1
  1223. package/dist/esm/menu-toggle-util-CWs_NYdI.js +0 -15
  1224. package/dist/esm/menu-toggle-util-CWs_NYdI.js.map +0 -1
  1225. package/dist/esm/notch-controller-DCfp6pBF.js.map +0 -1
  1226. package/dist/esm/overlays-BDbqv7G-.js.map +0 -1
  1227. package/dist/esm/refresher.utils-DOS2Tyfp.js.map +0 -1
  1228. package/dist/esm/spinner-configs-D4RIp70E.js.map +0 -1
  1229. package/dist/esm/status-tap-BTOXpL_S.js.map +0 -1
  1230. package/dist/esm/swipe-back-CetNYyPP.js.map +0 -1
  1231. package/dist/esm/theme-DiVJyqlX.js.map +0 -1
  1232. package/dist/esm/validity-DJztqcrH.js.map +0 -1
  1233. package/dist/esm/watch-options-Dtdm8lKC.js.map +0 -1
@@ -1,2542 +0,0 @@
1
- import { p as proxyCustomElement, H, c as createEvent, f as printIonWarning, w as writeTask, d as config, h, e as Host, t as transformTag } from './p-abe_AkUW.js';
2
- import { a as findClosestIonContent, i as isIonContent, d as disableContentScrollY, r as resetContentScrollY, f as findIonContent, p as printIonContentErrorMsg } from './p-BPfqVyXF.js';
3
- import { C as CoreDelegate, a as attachComponent, d as detachComponent } from './p-9R9WjA6V.js';
4
- import { k as clamp, g as getElementRoot, r as raf, c as inheritAttributes, j as hasLazyBuild } from './p-CBE-1aIM.js';
5
- import { c as createLockController } from './p-B-hirT0v.js';
6
- import { g as getCapacitor } from './p-D2NxOvQ8.js';
7
- import { G as GESTURE, O as OVERLAY_GESTURE_PRIORITY, F as FOCUS_TRAP_DISABLE_CLASS, a as createTriggerController, B as BACKDROP, b as prepareOverlay, f as setOverlayId, p as present, d as dismiss, e as eventMethod } from './p-DQU52fBY.js';
8
- import { g as getClassMap } from './p-DiVJyqlX.js';
9
- import { d as deepReady, w as waitForMount } from './p-BeDf61kY.js';
10
- import { g as getIonMode } from './p-DEAe7QEa.js';
11
- import { KEYBOARD_DID_OPEN } from './p-DuZ7hY1a.js';
12
- import { c as createAnimation } from './p-BhiX6sCr.js';
13
- import { g as getTimeGivenProgression } from './p-hHmYLOfE.js';
14
- import { createGesture } from './p-CH3Eg9_f.js';
15
- import { w as win } from './p-ZjP4CjeZ.js';
16
- import { d as defineCustomElement$1 } from './p-D-0nEl_9.js';
17
-
18
- /*!
19
- * (C) Ionic http://ionicframework.com - MIT License
20
- */
21
- var Style;
22
- (function (Style) {
23
- Style["Dark"] = "DARK";
24
- Style["Light"] = "LIGHT";
25
- Style["Default"] = "DEFAULT";
26
- })(Style || (Style = {}));
27
- const StatusBar = {
28
- getEngine() {
29
- const capacitor = getCapacitor();
30
- if (capacitor === null || capacitor === void 0 ? void 0 : capacitor.isPluginAvailable('StatusBar')) {
31
- return capacitor.Plugins.StatusBar;
32
- }
33
- return undefined;
34
- },
35
- setStyle(options) {
36
- const engine = this.getEngine();
37
- if (!engine) {
38
- return;
39
- }
40
- engine.setStyle(options);
41
- },
42
- getStyle: async function () {
43
- const engine = this.getEngine();
44
- if (!engine) {
45
- return Style.Default;
46
- }
47
- const { style } = await engine.getInfo();
48
- return style;
49
- },
50
- };
51
-
52
- /*!
53
- * (C) Ionic http://ionicframework.com - MIT License
54
- */
55
- /**
56
- * Use y = mx + b to
57
- * figure out the backdrop value
58
- * at a particular x coordinate. This
59
- * is useful when the backdrop does
60
- * not begin to fade in until after
61
- * the 0 breakpoint.
62
- */
63
- const getBackdropValueForSheet = (x, backdropBreakpoint) => {
64
- /**
65
- * We will use these points:
66
- * (backdropBreakpoint, 0)
67
- * (maxBreakpoint, 1)
68
- * We know that at the beginning breakpoint,
69
- * the backdrop will be hidden. We also
70
- * know that at the maxBreakpoint, the backdrop
71
- * must be fully visible. maxBreakpoint should
72
- * always be 1 even if the maximum value
73
- * of the breakpoints array is not 1 since
74
- * the animation runs from a progress of 0
75
- * to a progress of 1.
76
- * m = (y2 - y1) / (x2 - x1)
77
- *
78
- * This is simplified from:
79
- * m = (1 - 0) / (maxBreakpoint - backdropBreakpoint)
80
- *
81
- * If the backdropBreakpoint is 1, we return 0 as the
82
- * backdrop is completely hidden.
83
- *
84
- */
85
- if (backdropBreakpoint === 1) {
86
- return 0;
87
- }
88
- const slope = 1 / (1 - backdropBreakpoint);
89
- /**
90
- * From here, compute b which is
91
- * the backdrop opacity if the offset
92
- * is 0. If the backdrop does not
93
- * begin to fade in until after the
94
- * 0 breakpoint, this b value will be
95
- * negative. This is fine as we never pass
96
- * b directly into the animation keyframes.
97
- * b = y - mx
98
- * Use a known point: (backdropBreakpoint, 0)
99
- * This is simplified from:
100
- * b = 0 - (backdropBreakpoint * slope)
101
- */
102
- const b = -(backdropBreakpoint * slope);
103
- /**
104
- * Finally, we can now determine the
105
- * backdrop offset given an arbitrary
106
- * gesture offset.
107
- */
108
- return x * slope + b;
109
- };
110
- /**
111
- * The tablet/desktop card modal activates
112
- * when the window width is >= 768.
113
- * At that point, the presenting element
114
- * is not transformed, so we do not need to
115
- * adjust the status bar color.
116
- *
117
- */
118
- const setCardStatusBarDark = () => {
119
- if (!win || win.innerWidth >= 768) {
120
- return;
121
- }
122
- StatusBar.setStyle({ style: Style.Dark });
123
- };
124
- const setCardStatusBarDefault = (defaultStyle = Style.Default) => {
125
- if (!win || win.innerWidth >= 768) {
126
- return;
127
- }
128
- StatusBar.setStyle({ style: defaultStyle });
129
- };
130
-
131
- /*!
132
- * (C) Ionic http://ionicframework.com - MIT License
133
- */
134
- const handleCanDismiss = async (el, animation) => {
135
- /**
136
- * If canDismiss is not a function
137
- * then we can return early. If canDismiss is `true`,
138
- * then canDismissBlocksGesture is `false` as canDismiss
139
- * will never interrupt the gesture. As a result,
140
- * this code block is never reached. If canDismiss is `false`,
141
- * then we never dismiss.
142
- */
143
- if (typeof el.canDismiss !== 'function') {
144
- return;
145
- }
146
- /**
147
- * Run the canDismiss callback.
148
- * If the function returns `true`,
149
- * then we can proceed with dismiss.
150
- */
151
- const shouldDismiss = await el.canDismiss(undefined, GESTURE);
152
- if (!shouldDismiss) {
153
- return;
154
- }
155
- /**
156
- * If canDismiss resolved after the snap
157
- * back animation finished, we can
158
- * dismiss immediately.
159
- *
160
- * If canDismiss resolved before the snap
161
- * back animation finished, we need to
162
- * wait until the snap back animation is
163
- * done before dismissing.
164
- */
165
- if (animation.isRunning()) {
166
- animation.onFinish(() => {
167
- el.dismiss(undefined, 'handler');
168
- }, { oneTimeCallback: true });
169
- }
170
- else {
171
- el.dismiss(undefined, 'handler');
172
- }
173
- };
174
- /**
175
- * This function lets us simulate a realistic spring-like animation
176
- * when swiping down on the modal.
177
- * There are two forces that we need to use to compute the spring physics:
178
- *
179
- * 1. Stiffness, k: This is a measure of resistance applied a spring.
180
- * 2. Dampening, c: This value has the effect of reducing or preventing oscillation.
181
- *
182
- * Using these two values, we can calculate the Spring Force and the Dampening Force
183
- * to compute the total force applied to a spring.
184
- *
185
- * Spring Force: This force pulls a spring back into its equilibrium position.
186
- * Hooke's Law tells us that that spring force (FS) = kX.
187
- * k is the stiffness of a spring, and X is the displacement of the spring from its
188
- * equilibrium position. In this case, it is the amount by which the free end
189
- * of a spring was displaced (stretched/pushed) from its "relaxed" position.
190
- *
191
- * Dampening Force: This force slows down motion. Without it, a spring would oscillate forever.
192
- * The dampening force, FD, can be found via this formula: FD = -cv
193
- * where c the dampening value and v is velocity.
194
- *
195
- * Therefore, the resulting force that is exerted on the block is:
196
- * F = FS + FD = -kX - cv
197
- *
198
- * Newton's 2nd Law tells us that F = ma:
199
- * ma = -kX - cv.
200
- *
201
- * For Ionic's purposes, we can assume that m = 1:
202
- * a = -kX - cv
203
- *
204
- * Imagine a block attached to the end of a spring. At equilibrium
205
- * the block is at position x = 1.
206
- * Pressing on the block moves it to position x = 0;
207
- * So, to calculate the displacement, we need to take the
208
- * current position and subtract the previous position from it.
209
- * X = x - x0 = 0 - 1 = -1.
210
- *
211
- * For Ionic's purposes, we are only pushing on the spring modal
212
- * so we have a max position of 1.
213
- * As a result, we can expand displacement to this formula:
214
- * X = x - 1
215
- *
216
- * a = -k(x - 1) - cv
217
- *
218
- * We can represent the motion of something as a function of time: f(t) = x.
219
- * The derivative of position gives us the velocity: f'(t)
220
- * The derivative of the velocity gives us the acceleration: f''(t)
221
- *
222
- * We can substitute the formula above with these values:
223
- *
224
- * f"(t) = -k * (f(t) - 1) - c * f'(t)
225
- *
226
- * This is called a differential equation.
227
- *
228
- * We know that at t = 0, we are at x = 0 because the modal does not move: f(0) = 0
229
- * This means our velocity is also zero: f'(0) = 0.
230
- *
231
- * We can cheat a bit and plug the formula into Wolfram Alpha.
232
- * However, we need to pick stiffness and dampening values:
233
- * k = 0.57
234
- * c = 15
235
- *
236
- * I picked these as they are fairly close to native iOS's spring effect
237
- * with the modal.
238
- *
239
- * What we plug in is this: f(0) = 0; f'(0) = 0; f''(t) = -0.57(f(t) - 1) - 15f'(t)
240
- *
241
- * The result is a formula that lets us calculate the acceleration
242
- * for a given time t.
243
- * Note: This is the approximate form of the solution. Wolfram Alpha will
244
- * give you a complex differential equation too.
245
- */
246
- const calculateSpringStep = (t) => {
247
- return 0.00255275 * 2.71828 ** (-14.9619 * t) - 1.00255 * 2.71828 ** (-0.0380968 * t) + 1;
248
- };
249
-
250
- /*!
251
- * (C) Ionic http://ionicframework.com - MIT License
252
- */
253
- // Defaults for the card swipe animation
254
- const SwipeToCloseDefaults = {
255
- MIN_PRESENTING_SCALE: 0.915,
256
- };
257
- const createSwipeToCloseGesture = (el, animation, statusBarStyle, onDismiss) => {
258
- /**
259
- * The step value at which a card modal
260
- * is eligible for dismissing via gesture.
261
- */
262
- const DISMISS_THRESHOLD = 0.5;
263
- const height = el.offsetHeight;
264
- let isOpen = false;
265
- let canDismissBlocksGesture = false;
266
- let contentEl = null;
267
- let scrollEl = null;
268
- const canDismissMaxStep = 0.2;
269
- let initialScrollY = true;
270
- let lastStep = 0;
271
- const getScrollY = () => {
272
- if (contentEl && isIonContent(contentEl)) {
273
- return contentEl.scrollY;
274
- /**
275
- * Custom scroll containers are intended to be
276
- * used with virtual scrolling, so we assume
277
- * there is scrolling in this case.
278
- */
279
- }
280
- else {
281
- return true;
282
- }
283
- };
284
- const canStart = (detail) => {
285
- const target = detail.event.target;
286
- if (target === null || !target.closest) {
287
- return true;
288
- }
289
- /**
290
- * If we are swiping on the content,
291
- * swiping should only be possible if
292
- * the content is scrolled all the way
293
- * to the top so that we do not interfere
294
- * with scrolling.
295
- *
296
- * We cannot assume that the `ion-content`
297
- * target will remain consistent between
298
- * swipes. For example, when using
299
- * ion-nav within a card modal it is
300
- * possible to swipe, push a view, and then
301
- * swipe again. The target content will not
302
- * be the same between swipes.
303
- */
304
- contentEl = findClosestIonContent(target);
305
- if (contentEl) {
306
- /**
307
- * The card should never swipe to close
308
- * on the content with a refresher.
309
- * Note: We cannot solve this by making the
310
- * swipeToClose gesture have a higher priority
311
- * than the refresher gesture as the iOS native
312
- * refresh gesture uses a scroll listener in
313
- * addition to a gesture.
314
- *
315
- * Note: Do not use getScrollElement here
316
- * because we need this to be a synchronous
317
- * operation, and getScrollElement is
318
- * asynchronous.
319
- */
320
- if (isIonContent(contentEl)) {
321
- const root = getElementRoot(contentEl);
322
- scrollEl = root.querySelector('.inner-scroll');
323
- }
324
- else {
325
- scrollEl = contentEl;
326
- }
327
- const hasRefresherInContent = !!contentEl.querySelector('ion-refresher');
328
- return !hasRefresherInContent && scrollEl.scrollTop === 0;
329
- }
330
- /**
331
- * Card should be swipeable on all
332
- * parts of the modal except for the footer.
333
- */
334
- const footer = target.closest('ion-footer');
335
- if (footer === null) {
336
- return true;
337
- }
338
- return false;
339
- };
340
- const onStart = (detail) => {
341
- const { deltaY } = detail;
342
- /**
343
- * Get the initial scrollY value so
344
- * that we can correctly reset the scrollY
345
- * prop when the gesture ends.
346
- */
347
- initialScrollY = getScrollY();
348
- /**
349
- * If canDismiss is anything other than `true`
350
- * then users should be able to swipe down
351
- * until a threshold is hit. At that point,
352
- * the card modal should not proceed any further.
353
- * TODO (FW-937)
354
- * Remove undefined check
355
- */
356
- canDismissBlocksGesture = el.canDismiss !== undefined && el.canDismiss !== true;
357
- /**
358
- * If we are pulling down, then
359
- * it is possible we are pulling on the
360
- * content. We do not want scrolling to
361
- * happen at the same time as the gesture.
362
- */
363
- if (deltaY > 0 && contentEl) {
364
- disableContentScrollY(contentEl);
365
- }
366
- animation.progressStart(true, isOpen ? 1 : 0);
367
- };
368
- const onMove = (detail) => {
369
- const { deltaY } = detail;
370
- /**
371
- * If we are pulling down, then
372
- * it is possible we are pulling on the
373
- * content. We do not want scrolling to
374
- * happen at the same time as the gesture.
375
- */
376
- if (deltaY > 0 && contentEl) {
377
- disableContentScrollY(contentEl);
378
- }
379
- /**
380
- * If we are swiping on the content
381
- * then the swipe gesture should only
382
- * happen if we are pulling down.
383
- *
384
- * However, if we pull up and
385
- * then down such that the scroll position
386
- * returns to 0, we should be able to swipe
387
- * the card.
388
- */
389
- const step = detail.deltaY / height;
390
- /**
391
- * Check if user is swiping down and
392
- * if we have a canDismiss value that
393
- * should block the gesture from
394
- * proceeding,
395
- */
396
- const isAttemptingDismissWithCanDismiss = step >= 0 && canDismissBlocksGesture;
397
- /**
398
- * If we are blocking the gesture from dismissing,
399
- * set the max step value so that the sheet cannot be
400
- * completely hidden.
401
- */
402
- const maxStep = isAttemptingDismissWithCanDismiss ? canDismissMaxStep : 0.9999;
403
- /**
404
- * If we are blocking the gesture from
405
- * dismissing, calculate the spring modifier value
406
- * this will be added to the starting breakpoint
407
- * value to give the gesture a spring-like feeling.
408
- * Note that the starting breakpoint is always 0,
409
- * so we omit adding 0 to the result.
410
- */
411
- const processedStep = isAttemptingDismissWithCanDismiss ? calculateSpringStep(step / maxStep) : step;
412
- const clampedStep = clamp(0.0001, processedStep, maxStep);
413
- animation.progressStep(clampedStep);
414
- /**
415
- * When swiping down half way, the status bar style
416
- * should be reset to its default value.
417
- *
418
- * We track lastStep so that we do not fire these
419
- * functions on every onMove, only when the user has
420
- * crossed a certain threshold.
421
- */
422
- if (clampedStep >= DISMISS_THRESHOLD && lastStep < DISMISS_THRESHOLD) {
423
- setCardStatusBarDefault(statusBarStyle);
424
- /**
425
- * However, if we swipe back up, then the
426
- * status bar style should be set to have light
427
- * text on a dark background.
428
- */
429
- }
430
- else if (clampedStep < DISMISS_THRESHOLD && lastStep >= DISMISS_THRESHOLD) {
431
- setCardStatusBarDark();
432
- }
433
- lastStep = clampedStep;
434
- };
435
- const onEnd = (detail) => {
436
- const velocity = detail.velocityY;
437
- const step = detail.deltaY / height;
438
- const isAttemptingDismissWithCanDismiss = step >= 0 && canDismissBlocksGesture;
439
- const maxStep = isAttemptingDismissWithCanDismiss ? canDismissMaxStep : 0.9999;
440
- const processedStep = isAttemptingDismissWithCanDismiss ? calculateSpringStep(step / maxStep) : step;
441
- const clampedStep = clamp(0.0001, processedStep, maxStep);
442
- const threshold = (detail.deltaY + velocity * 1000) / height;
443
- /**
444
- * If canDismiss blocks
445
- * the swipe gesture, then the
446
- * animation can never complete until
447
- * canDismiss is checked.
448
- */
449
- const shouldComplete = !isAttemptingDismissWithCanDismiss && threshold >= DISMISS_THRESHOLD;
450
- let newStepValue = shouldComplete ? -1e-3 : 0.001;
451
- if (!shouldComplete) {
452
- animation.easing('cubic-bezier(1, 0, 0.68, 0.28)');
453
- newStepValue += getTimeGivenProgression([0, 0], [1, 0], [0.68, 0.28], [1, 1], clampedStep)[0];
454
- }
455
- else {
456
- animation.easing('cubic-bezier(0.32, 0.72, 0, 1)');
457
- newStepValue += getTimeGivenProgression([0, 0], [0.32, 0.72], [0, 1], [1, 1], clampedStep)[0];
458
- }
459
- const duration = shouldComplete
460
- ? computeDuration(step * height, velocity)
461
- : computeDuration((1 - clampedStep) * height, velocity);
462
- isOpen = shouldComplete;
463
- gesture.enable(false);
464
- if (contentEl) {
465
- resetContentScrollY(contentEl, initialScrollY);
466
- }
467
- animation
468
- .onFinish(() => {
469
- if (!shouldComplete) {
470
- gesture.enable(true);
471
- }
472
- })
473
- .progressEnd(shouldComplete ? 1 : 0, newStepValue, duration);
474
- /**
475
- * If the canDismiss value blocked the gesture
476
- * from proceeding, then we should ignore whatever
477
- * shouldComplete is. Whether or not the modal
478
- * animation should complete is now determined by
479
- * canDismiss.
480
- *
481
- * If the user swiped >25% of the way
482
- * to the max step, then we should
483
- * check canDismiss. 25% was chosen
484
- * to avoid accidental swipes.
485
- */
486
- if (isAttemptingDismissWithCanDismiss && clampedStep > maxStep / 4) {
487
- handleCanDismiss(el, animation);
488
- }
489
- else if (shouldComplete) {
490
- onDismiss();
491
- }
492
- };
493
- const gesture = createGesture({
494
- el,
495
- gestureName: 'modalSwipeToClose',
496
- gesturePriority: OVERLAY_GESTURE_PRIORITY,
497
- direction: 'y',
498
- threshold: 10,
499
- canStart,
500
- onStart,
501
- onMove,
502
- onEnd,
503
- });
504
- return gesture;
505
- };
506
- const computeDuration = (remaining, velocity) => {
507
- return clamp(400, remaining / Math.abs(velocity * 1.1), 500);
508
- };
509
-
510
- /*!
511
- * (C) Ionic http://ionicframework.com - MIT License
512
- */
513
- const createSheetEnterAnimation = (opts) => {
514
- const { currentBreakpoint, backdropBreakpoint, expandToScroll } = opts;
515
- /**
516
- * If the backdropBreakpoint is undefined, then the backdrop
517
- * should always fade in. If the backdropBreakpoint came before the
518
- * current breakpoint, then the backdrop should be fading in.
519
- */
520
- const shouldShowBackdrop = backdropBreakpoint === undefined || backdropBreakpoint < currentBreakpoint;
521
- const initialBackdrop = shouldShowBackdrop ? `calc(var(--backdrop-opacity) * ${currentBreakpoint})` : '0';
522
- const backdropAnimation = createAnimation('backdropAnimation').fromTo('opacity', 0, initialBackdrop);
523
- if (shouldShowBackdrop) {
524
- backdropAnimation
525
- .beforeStyles({
526
- 'pointer-events': 'none',
527
- })
528
- .afterClearStyles(['pointer-events']);
529
- }
530
- const wrapperAnimation = createAnimation('wrapperAnimation').keyframes([
531
- { offset: 0, opacity: 1, transform: 'translateY(100%)' },
532
- { offset: 1, opacity: 1, transform: `translateY(${100 - currentBreakpoint * 100}%)` },
533
- ]);
534
- /**
535
- * This allows the content to be scrollable at any breakpoint.
536
- */
537
- const contentAnimation = !expandToScroll
538
- ? createAnimation('contentAnimation').keyframes([
539
- { offset: 0, opacity: 1, maxHeight: `${(1 - currentBreakpoint) * 100}%` },
540
- { offset: 1, opacity: 1, maxHeight: `${currentBreakpoint * 100}%` },
541
- ])
542
- : undefined;
543
- return { wrapperAnimation, backdropAnimation, contentAnimation };
544
- };
545
- const createSheetLeaveAnimation = (opts) => {
546
- const { currentBreakpoint, backdropBreakpoint } = opts;
547
- /**
548
- * Backdrop does not always fade in from 0 to 1 if backdropBreakpoint
549
- * is defined, so we need to account for that offset by figuring out
550
- * what the current backdrop value should be.
551
- */
552
- const backdropValue = `calc(var(--backdrop-opacity) * ${getBackdropValueForSheet(currentBreakpoint, backdropBreakpoint)})`;
553
- const defaultBackdrop = [
554
- { offset: 0, opacity: backdropValue },
555
- { offset: 1, opacity: 0 },
556
- ];
557
- const customBackdrop = [
558
- { offset: 0, opacity: backdropValue },
559
- { offset: backdropBreakpoint, opacity: 0 },
560
- { offset: 1, opacity: 0 },
561
- ];
562
- const backdropAnimation = createAnimation('backdropAnimation').keyframes(backdropBreakpoint !== 0 ? customBackdrop : defaultBackdrop);
563
- const wrapperAnimation = createAnimation('wrapperAnimation').keyframes([
564
- { offset: 0, opacity: 1, transform: `translateY(${100 - currentBreakpoint * 100}%)` },
565
- { offset: 1, opacity: 1, transform: `translateY(100%)` },
566
- ]);
567
- return { wrapperAnimation, backdropAnimation };
568
- };
569
-
570
- /*!
571
- * (C) Ionic http://ionicframework.com - MIT License
572
- */
573
- const createEnterAnimation$1 = () => {
574
- const backdropAnimation = createAnimation()
575
- .fromTo('opacity', 0.01, 'var(--backdrop-opacity)')
576
- .beforeStyles({
577
- 'pointer-events': 'none',
578
- })
579
- .afterClearStyles(['pointer-events']);
580
- const wrapperAnimation = createAnimation().fromTo('transform', 'translateY(100vh)', 'translateY(0vh)');
581
- return { backdropAnimation, wrapperAnimation, contentAnimation: undefined };
582
- };
583
- /**
584
- * iOS Modal Enter Animation for the Card presentation style
585
- */
586
- const iosEnterAnimation = (baseEl, opts) => {
587
- const { presentingEl, currentBreakpoint, expandToScroll } = opts;
588
- const root = getElementRoot(baseEl);
589
- const { wrapperAnimation, backdropAnimation, contentAnimation } = currentBreakpoint !== undefined ? createSheetEnterAnimation(opts) : createEnterAnimation$1();
590
- backdropAnimation.addElement(root.querySelector('ion-backdrop'));
591
- wrapperAnimation.addElement(root.querySelectorAll('.modal-wrapper, .modal-shadow')).beforeStyles({ opacity: 1 });
592
- // The content animation is only added if scrolling is enabled for
593
- // all the breakpoints.
594
- !expandToScroll && (contentAnimation === null || contentAnimation === void 0 ? void 0 : contentAnimation.addElement(baseEl.querySelector('.ion-page')));
595
- const baseAnimation = createAnimation('entering-base')
596
- .addElement(baseEl)
597
- .easing('cubic-bezier(0.32,0.72,0,1)')
598
- .duration(500)
599
- .addAnimation([wrapperAnimation]);
600
- if (contentAnimation) {
601
- baseAnimation.addAnimation(contentAnimation);
602
- }
603
- if (presentingEl) {
604
- const isPortrait = window.innerWidth < 768;
605
- const hasCardModal = presentingEl.tagName === 'ION-MODAL' && presentingEl.presentingElement !== undefined;
606
- const presentingElRoot = getElementRoot(presentingEl);
607
- const presentingAnimation = createAnimation().beforeStyles({
608
- transform: 'translateY(0)',
609
- 'transform-origin': 'top center',
610
- overflow: 'hidden',
611
- });
612
- const bodyEl = document.body;
613
- if (isPortrait) {
614
- /**
615
- * Fallback for browsers that does not support `max()` (ex: Firefox)
616
- * No need to worry about statusbar padding since engines like Gecko
617
- * are not used as the engine for standalone Cordova/Capacitor apps
618
- */
619
- const transformOffset = !CSS.supports('width', 'max(0px, 1px)') ? '30px' : 'max(30px, var(--ion-safe-area-top))';
620
- const modalTransform = hasCardModal ? '-10px' : transformOffset;
621
- const toPresentingScale = SwipeToCloseDefaults.MIN_PRESENTING_SCALE;
622
- const finalTransform = `translateY(${modalTransform}) scale(${toPresentingScale})`;
623
- presentingAnimation
624
- .afterStyles({
625
- transform: finalTransform,
626
- })
627
- .beforeAddWrite(() => bodyEl.style.setProperty('background-color', 'black'))
628
- .addElement(presentingEl)
629
- .keyframes([
630
- { offset: 0, filter: 'contrast(1)', transform: 'translateY(0px) scale(1)', borderRadius: '0px' },
631
- { offset: 1, filter: 'contrast(0.85)', transform: finalTransform, borderRadius: '10px 10px 0 0' },
632
- ]);
633
- baseAnimation.addAnimation(presentingAnimation);
634
- }
635
- else {
636
- baseAnimation.addAnimation(backdropAnimation);
637
- if (!hasCardModal) {
638
- wrapperAnimation.fromTo('opacity', '0', '1');
639
- }
640
- else {
641
- const toPresentingScale = hasCardModal ? SwipeToCloseDefaults.MIN_PRESENTING_SCALE : 1;
642
- const finalTransform = `translateY(-10px) scale(${toPresentingScale})`;
643
- presentingAnimation
644
- .afterStyles({
645
- transform: finalTransform,
646
- })
647
- .addElement(presentingElRoot.querySelector('.modal-wrapper'))
648
- .keyframes([
649
- { offset: 0, filter: 'contrast(1)', transform: 'translateY(0) scale(1)' },
650
- { offset: 1, filter: 'contrast(0.85)', transform: finalTransform },
651
- ]);
652
- const shadowAnimation = createAnimation()
653
- .afterStyles({
654
- transform: finalTransform,
655
- })
656
- .addElement(presentingElRoot.querySelector('.modal-shadow'))
657
- .keyframes([
658
- { offset: 0, opacity: '1', transform: 'translateY(0) scale(1)' },
659
- { offset: 1, opacity: '0', transform: finalTransform },
660
- ]);
661
- baseAnimation.addAnimation([presentingAnimation, shadowAnimation]);
662
- }
663
- }
664
- }
665
- else {
666
- baseAnimation.addAnimation(backdropAnimation);
667
- }
668
- return baseAnimation;
669
- };
670
-
671
- /*!
672
- * (C) Ionic http://ionicframework.com - MIT License
673
- */
674
- const createLeaveAnimation$1 = () => {
675
- const backdropAnimation = createAnimation().fromTo('opacity', 'var(--backdrop-opacity)', 0);
676
- const wrapperAnimation = createAnimation().fromTo('transform', 'translateY(0vh)', 'translateY(100vh)');
677
- return { backdropAnimation, wrapperAnimation };
678
- };
679
- /**
680
- * iOS Modal Leave Animation
681
- */
682
- const iosLeaveAnimation = (baseEl, opts, duration = 500) => {
683
- const { presentingEl, currentBreakpoint } = opts;
684
- const root = getElementRoot(baseEl);
685
- const { wrapperAnimation, backdropAnimation } = currentBreakpoint !== undefined ? createSheetLeaveAnimation(opts) : createLeaveAnimation$1();
686
- backdropAnimation.addElement(root.querySelector('ion-backdrop'));
687
- wrapperAnimation.addElement(root.querySelectorAll('.modal-wrapper, .modal-shadow')).beforeStyles({ opacity: 1 });
688
- const baseAnimation = createAnimation('leaving-base')
689
- .addElement(baseEl)
690
- .easing('cubic-bezier(0.32,0.72,0,1)')
691
- .duration(duration)
692
- .addAnimation(wrapperAnimation);
693
- if (presentingEl) {
694
- const isPortrait = window.innerWidth < 768;
695
- const hasCardModal = presentingEl.tagName === 'ION-MODAL' && presentingEl.presentingElement !== undefined;
696
- const presentingElRoot = getElementRoot(presentingEl);
697
- const presentingAnimation = createAnimation()
698
- .beforeClearStyles(['transform'])
699
- .afterClearStyles(['transform'])
700
- .onFinish((currentStep) => {
701
- // only reset background color if this is the last card-style modal
702
- if (currentStep !== 1) {
703
- return;
704
- }
705
- presentingEl.style.setProperty('overflow', '');
706
- const numModals = Array.from(bodyEl.querySelectorAll('ion-modal:not(.overlay-hidden)')).filter((m) => m.presentingElement !== undefined).length;
707
- if (numModals <= 1) {
708
- bodyEl.style.setProperty('background-color', '');
709
- }
710
- });
711
- const bodyEl = document.body;
712
- if (isPortrait) {
713
- const transformOffset = !CSS.supports('width', 'max(0px, 1px)') ? '30px' : 'max(30px, var(--ion-safe-area-top))';
714
- const modalTransform = hasCardModal ? '-10px' : transformOffset;
715
- const toPresentingScale = SwipeToCloseDefaults.MIN_PRESENTING_SCALE;
716
- const finalTransform = `translateY(${modalTransform}) scale(${toPresentingScale})`;
717
- presentingAnimation.addElement(presentingEl).keyframes([
718
- { offset: 0, filter: 'contrast(0.85)', transform: finalTransform, borderRadius: '10px 10px 0 0' },
719
- { offset: 1, filter: 'contrast(1)', transform: 'translateY(0px) scale(1)', borderRadius: '0px' },
720
- ]);
721
- baseAnimation.addAnimation(presentingAnimation);
722
- }
723
- else {
724
- baseAnimation.addAnimation(backdropAnimation);
725
- if (!hasCardModal) {
726
- wrapperAnimation.fromTo('opacity', '1', '0');
727
- }
728
- else {
729
- const toPresentingScale = hasCardModal ? SwipeToCloseDefaults.MIN_PRESENTING_SCALE : 1;
730
- const finalTransform = `translateY(-10px) scale(${toPresentingScale})`;
731
- presentingAnimation
732
- .addElement(presentingElRoot.querySelector('.modal-wrapper'))
733
- .afterStyles({
734
- transform: 'translate3d(0, 0, 0)',
735
- })
736
- .keyframes([
737
- { offset: 0, filter: 'contrast(0.85)', transform: finalTransform },
738
- { offset: 1, filter: 'contrast(1)', transform: 'translateY(0) scale(1)' },
739
- ]);
740
- const shadowAnimation = createAnimation()
741
- .addElement(presentingElRoot.querySelector('.modal-shadow'))
742
- .afterStyles({
743
- transform: 'translateY(0) scale(1)',
744
- })
745
- .keyframes([
746
- { offset: 0, opacity: '0', transform: finalTransform },
747
- { offset: 1, opacity: '1', transform: 'translateY(0) scale(1)' },
748
- ]);
749
- baseAnimation.addAnimation([presentingAnimation, shadowAnimation]);
750
- }
751
- }
752
- }
753
- else {
754
- baseAnimation.addAnimation(backdropAnimation);
755
- }
756
- return baseAnimation;
757
- };
758
-
759
- /*!
760
- * (C) Ionic http://ionicframework.com - MIT License
761
- */
762
- /**
763
- * Transition animation from portrait view to landscape view
764
- * This handles the case where a card modal is open in portrait view
765
- * and the user switches to landscape view
766
- */
767
- const portraitToLandscapeTransition = (baseEl, opts, duration = 300) => {
768
- const { presentingEl } = opts;
769
- if (!presentingEl) {
770
- // No transition needed for non-card modals
771
- return createAnimation('portrait-to-landscape-transition');
772
- }
773
- const presentingElIsCardModal = presentingEl.tagName === 'ION-MODAL' && presentingEl.presentingElement !== undefined;
774
- const presentingElRoot = getElementRoot(presentingEl);
775
- const bodyEl = document.body;
776
- const baseAnimation = createAnimation('portrait-to-landscape-transition')
777
- .addElement(baseEl)
778
- .easing('cubic-bezier(0.32,0.72,0,1)')
779
- .duration(duration);
780
- const presentingAnimation = createAnimation().beforeStyles({
781
- transform: 'translateY(0)',
782
- 'transform-origin': 'top center',
783
- overflow: 'hidden',
784
- });
785
- if (!presentingElIsCardModal) {
786
- // The presenting element is not a card modal, so we do not
787
- // need to care about layering and modal-specific styles.
788
- const root = getElementRoot(baseEl);
789
- const wrapperAnimation = createAnimation()
790
- .addElement(root.querySelectorAll('.modal-wrapper, .modal-shadow'))
791
- .fromTo('opacity', '1', '1'); // Keep wrapper visible in landscape
792
- const backdropAnimation = createAnimation()
793
- .addElement(root.querySelector('ion-backdrop'))
794
- .fromTo('opacity', 'var(--backdrop-opacity)', 'var(--backdrop-opacity)'); // Keep backdrop visible
795
- // Animate presentingEl from portrait state back to normal
796
- const transformOffset = !CSS.supports('width', 'max(0px, 1px)') ? '30px' : 'max(30px, var(--ion-safe-area-top))';
797
- const toPresentingScale = SwipeToCloseDefaults.MIN_PRESENTING_SCALE;
798
- const fromTransform = `translateY(${transformOffset}) scale(${toPresentingScale})`;
799
- presentingAnimation
800
- .addElement(presentingEl)
801
- .afterStyles({
802
- transform: 'translateY(0px) scale(1)',
803
- 'border-radius': '0px',
804
- })
805
- .beforeAddWrite(() => bodyEl.style.setProperty('background-color', ''))
806
- .fromTo('transform', fromTransform, 'translateY(0px) scale(1)')
807
- .fromTo('filter', 'contrast(0.85)', 'contrast(1)')
808
- .fromTo('border-radius', '10px 10px 0 0', '0px');
809
- baseAnimation.addAnimation([presentingAnimation, wrapperAnimation, backdropAnimation]);
810
- }
811
- else {
812
- // The presenting element is a card modal, so we do
813
- // need to care about layering and modal-specific styles.
814
- const toPresentingScale = SwipeToCloseDefaults.MIN_PRESENTING_SCALE;
815
- const fromTransform = `translateY(-10px) scale(${toPresentingScale})`;
816
- const toTransform = `translateY(0px) scale(1)`;
817
- presentingAnimation
818
- .addElement(presentingEl)
819
- .afterStyles({
820
- transform: toTransform,
821
- })
822
- .fromTo('transform', fromTransform, toTransform)
823
- .fromTo('filter', 'contrast(0.85)', 'contrast(1)');
824
- const shadowAnimation = createAnimation()
825
- .addElement(presentingElRoot.querySelector('.modal-shadow'))
826
- .afterStyles({
827
- transform: toTransform,
828
- opacity: '0',
829
- })
830
- .fromTo('transform', fromTransform, toTransform);
831
- baseAnimation.addAnimation([presentingAnimation, shadowAnimation]);
832
- }
833
- return baseAnimation;
834
- };
835
- /**
836
- * Transition animation from landscape view to portrait view
837
- * This handles the case where a card modal is open in landscape view
838
- * and the user switches to portrait view
839
- */
840
- const landscapeToPortraitTransition = (baseEl, opts, duration = 300) => {
841
- const { presentingEl } = opts;
842
- if (!presentingEl) {
843
- // No transition needed for non-card modals
844
- return createAnimation('landscape-to-portrait-transition');
845
- }
846
- const presentingElIsCardModal = presentingEl.tagName === 'ION-MODAL' && presentingEl.presentingElement !== undefined;
847
- const presentingElRoot = getElementRoot(presentingEl);
848
- const bodyEl = document.body;
849
- const baseAnimation = createAnimation('landscape-to-portrait-transition')
850
- .addElement(baseEl)
851
- .easing('cubic-bezier(0.32,0.72,0,1)')
852
- .duration(duration);
853
- const presentingAnimation = createAnimation().beforeStyles({
854
- transform: 'translateY(0)',
855
- 'transform-origin': 'top center',
856
- overflow: 'hidden',
857
- });
858
- if (!presentingElIsCardModal) {
859
- // The presenting element is not a card modal, so we do not
860
- // need to care about layering and modal-specific styles.
861
- const root = getElementRoot(baseEl);
862
- const wrapperAnimation = createAnimation()
863
- .addElement(root.querySelectorAll('.modal-wrapper, .modal-shadow'))
864
- .fromTo('opacity', '1', '1'); // Keep wrapper visible
865
- const backdropAnimation = createAnimation()
866
- .addElement(root.querySelector('ion-backdrop'))
867
- .fromTo('opacity', 'var(--backdrop-opacity)', 'var(--backdrop-opacity)'); // Keep backdrop visible
868
- // Animate presentingEl from normal state to portrait state
869
- const transformOffset = !CSS.supports('width', 'max(0px, 1px)') ? '30px' : 'max(30px, var(--ion-safe-area-top))';
870
- const toPresentingScale = SwipeToCloseDefaults.MIN_PRESENTING_SCALE;
871
- const toTransform = `translateY(${transformOffset}) scale(${toPresentingScale})`;
872
- presentingAnimation
873
- .addElement(presentingEl)
874
- .afterStyles({
875
- transform: toTransform,
876
- })
877
- .beforeAddWrite(() => bodyEl.style.setProperty('background-color', 'black'))
878
- .keyframes([
879
- { offset: 0, transform: 'translateY(0px) scale(1)', filter: 'contrast(1)', borderRadius: '0px' },
880
- { offset: 0.2, transform: 'translateY(0px) scale(1)', filter: 'contrast(1)', borderRadius: '10px 10px 0 0' },
881
- { offset: 1, transform: toTransform, filter: 'contrast(0.85)', borderRadius: '10px 10px 0 0' },
882
- ]);
883
- baseAnimation.addAnimation([presentingAnimation, wrapperAnimation, backdropAnimation]);
884
- }
885
- else {
886
- // The presenting element is also a card modal, so we need
887
- // to handle layering and modal-specific styles.
888
- const toPresentingScale = SwipeToCloseDefaults.MIN_PRESENTING_SCALE;
889
- const fromTransform = `translateY(-10px) scale(${toPresentingScale})`;
890
- const toTransform = `translateY(0) scale(1)`;
891
- presentingAnimation
892
- .addElement(presentingEl)
893
- .afterStyles({
894
- transform: toTransform,
895
- })
896
- .fromTo('transform', fromTransform, toTransform);
897
- const shadowAnimation = createAnimation()
898
- .addElement(presentingElRoot.querySelector('.modal-shadow'))
899
- .afterStyles({
900
- transform: toTransform,
901
- opacity: '0',
902
- })
903
- .fromTo('transform', fromTransform, toTransform);
904
- baseAnimation.addAnimation([presentingAnimation, shadowAnimation]);
905
- }
906
- return baseAnimation;
907
- };
908
-
909
- /*!
910
- * (C) Ionic http://ionicframework.com - MIT License
911
- */
912
- const createEnterAnimation = () => {
913
- const backdropAnimation = createAnimation()
914
- .fromTo('opacity', 0.01, 'var(--backdrop-opacity)')
915
- .beforeStyles({
916
- 'pointer-events': 'none',
917
- })
918
- .afterClearStyles(['pointer-events']);
919
- const wrapperAnimation = createAnimation().keyframes([
920
- { offset: 0, opacity: 0.01, transform: 'translateY(40px)' },
921
- { offset: 1, opacity: 1, transform: `translateY(0px)` },
922
- ]);
923
- return { backdropAnimation, wrapperAnimation, contentAnimation: undefined };
924
- };
925
- /**
926
- * Md Modal Enter Animation
927
- */
928
- const mdEnterAnimation = (baseEl, opts) => {
929
- const { currentBreakpoint, expandToScroll } = opts;
930
- const root = getElementRoot(baseEl);
931
- const { wrapperAnimation, backdropAnimation, contentAnimation } = currentBreakpoint !== undefined ? createSheetEnterAnimation(opts) : createEnterAnimation();
932
- backdropAnimation.addElement(root.querySelector('ion-backdrop'));
933
- wrapperAnimation.addElement(root.querySelector('.modal-wrapper'));
934
- // The content animation is only added if scrolling is enabled for
935
- // all the breakpoints.
936
- !expandToScroll && (contentAnimation === null || contentAnimation === void 0 ? void 0 : contentAnimation.addElement(baseEl.querySelector('.ion-page')));
937
- const baseAnimation = createAnimation()
938
- .addElement(baseEl)
939
- .easing('cubic-bezier(0.36,0.66,0.04,1)')
940
- .duration(280)
941
- .addAnimation([backdropAnimation, wrapperAnimation]);
942
- if (contentAnimation) {
943
- baseAnimation.addAnimation(contentAnimation);
944
- }
945
- return baseAnimation;
946
- };
947
-
948
- /*!
949
- * (C) Ionic http://ionicframework.com - MIT License
950
- */
951
- const createLeaveAnimation = () => {
952
- const backdropAnimation = createAnimation().fromTo('opacity', 'var(--backdrop-opacity)', 0);
953
- const wrapperAnimation = createAnimation().keyframes([
954
- { offset: 0, opacity: 0.99, transform: `translateY(0px)` },
955
- { offset: 1, opacity: 0, transform: 'translateY(40px)' },
956
- ]);
957
- return { backdropAnimation, wrapperAnimation };
958
- };
959
- /**
960
- * Md Modal Leave Animation
961
- */
962
- const mdLeaveAnimation = (baseEl, opts) => {
963
- const { currentBreakpoint } = opts;
964
- const root = getElementRoot(baseEl);
965
- const { wrapperAnimation, backdropAnimation } = currentBreakpoint !== undefined ? createSheetLeaveAnimation(opts) : createLeaveAnimation();
966
- backdropAnimation.addElement(root.querySelector('ion-backdrop'));
967
- wrapperAnimation.addElement(root.querySelector('.modal-wrapper'));
968
- const baseAnimation = createAnimation()
969
- .easing('cubic-bezier(0.47,0,0.745,0.715)')
970
- .duration(200)
971
- .addAnimation([backdropAnimation, wrapperAnimation]);
972
- return baseAnimation;
973
- };
974
-
975
- /*!
976
- * (C) Ionic http://ionicframework.com - MIT License
977
- */
978
- const createSheetGesture = (baseEl, backdropEl, wrapperEl, initialBreakpoint, backdropBreakpoint, animation, breakpoints = [], expandToScroll, getCurrentBreakpoint, onDismiss, onBreakpointChange) => {
979
- // Defaults for the sheet swipe animation
980
- const defaultBackdrop = [
981
- { offset: 0, opacity: 'var(--backdrop-opacity)' },
982
- { offset: 1, opacity: 0.01 },
983
- ];
984
- const customBackdrop = [
985
- { offset: 0, opacity: 'var(--backdrop-opacity)' },
986
- { offset: 1 - backdropBreakpoint, opacity: 0 },
987
- { offset: 1, opacity: 0 },
988
- ];
989
- const SheetDefaults = {
990
- WRAPPER_KEYFRAMES: [
991
- { offset: 0, transform: 'translateY(0%)' },
992
- { offset: 1, transform: 'translateY(100%)' },
993
- ],
994
- BACKDROP_KEYFRAMES: backdropBreakpoint !== 0 ? customBackdrop : defaultBackdrop,
995
- CONTENT_KEYFRAMES: [
996
- { offset: 0, maxHeight: '100%' },
997
- { offset: 1, maxHeight: '0%' },
998
- ],
999
- };
1000
- const contentEl = baseEl.querySelector('ion-content');
1001
- const height = wrapperEl.clientHeight;
1002
- let currentBreakpoint = initialBreakpoint;
1003
- let offset = 0;
1004
- let canDismissBlocksGesture = false;
1005
- let cachedScrollEl = null;
1006
- let cachedFooterEls = null;
1007
- let cachedFooterYPosition = null;
1008
- let currentFooterState = null;
1009
- const canDismissMaxStep = 0.95;
1010
- const maxBreakpoint = breakpoints[breakpoints.length - 1];
1011
- const minBreakpoint = breakpoints[0];
1012
- const wrapperAnimation = animation.childAnimations.find((ani) => ani.id === 'wrapperAnimation');
1013
- const backdropAnimation = animation.childAnimations.find((ani) => ani.id === 'backdropAnimation');
1014
- const contentAnimation = animation.childAnimations.find((ani) => ani.id === 'contentAnimation');
1015
- const enableBackdrop = () => {
1016
- // Respect explicit opt-out of focus trapping/backdrop interactions
1017
- // If focusTrap is false or showBackdrop is false, do not enable the backdrop or re-enable focus trap
1018
- const el = baseEl;
1019
- if (el.focusTrap === false || el.showBackdrop === false) {
1020
- return;
1021
- }
1022
- baseEl.style.setProperty('pointer-events', 'auto');
1023
- backdropEl.style.setProperty('pointer-events', 'auto');
1024
- /**
1025
- * When the backdrop is enabled, elements such
1026
- * as inputs should not be focusable outside
1027
- * the sheet.
1028
- */
1029
- baseEl.classList.remove(FOCUS_TRAP_DISABLE_CLASS);
1030
- };
1031
- const disableBackdrop = () => {
1032
- baseEl.style.setProperty('pointer-events', 'none');
1033
- backdropEl.style.setProperty('pointer-events', 'none');
1034
- /**
1035
- * When the backdrop is enabled, elements such
1036
- * as inputs should not be focusable outside
1037
- * the sheet.
1038
- * Adding this class disables focus trapping
1039
- * for the sheet temporarily.
1040
- */
1041
- baseEl.classList.add(FOCUS_TRAP_DISABLE_CLASS);
1042
- };
1043
- /**
1044
- * Toggles the footer to an absolute position while moving to prevent
1045
- * it from shaking while the sheet is being dragged.
1046
- * @param newPosition Whether the footer is in a moving or stationary position.
1047
- */
1048
- const swapFooterPosition = (newPosition) => {
1049
- if (!cachedFooterEls) {
1050
- cachedFooterEls = Array.from(baseEl.querySelectorAll('ion-footer'));
1051
- if (!cachedFooterEls.length) {
1052
- return;
1053
- }
1054
- }
1055
- const page = baseEl.querySelector('.ion-page');
1056
- currentFooterState = newPosition;
1057
- if (newPosition === 'stationary') {
1058
- cachedFooterEls.forEach((cachedFooterEl) => {
1059
- // Reset positioning styles to allow normal document flow
1060
- cachedFooterEl.classList.remove('modal-footer-moving');
1061
- cachedFooterEl.style.removeProperty('position');
1062
- cachedFooterEl.style.removeProperty('width');
1063
- cachedFooterEl.style.removeProperty('height');
1064
- cachedFooterEl.style.removeProperty('top');
1065
- cachedFooterEl.style.removeProperty('left');
1066
- page === null || page === void 0 ? void 0 : page.style.removeProperty('padding-bottom');
1067
- // Move to page
1068
- page === null || page === void 0 ? void 0 : page.appendChild(cachedFooterEl);
1069
- });
1070
- }
1071
- else {
1072
- let footerHeights = 0;
1073
- cachedFooterEls.forEach((cachedFooterEl, index) => {
1074
- // Get both the footer and document body positions
1075
- const cachedFooterElRect = cachedFooterEl.getBoundingClientRect();
1076
- const bodyRect = document.body.getBoundingClientRect();
1077
- // Calculate the total height of all footers
1078
- // so we can add padding to the page element
1079
- footerHeights += cachedFooterEl.clientHeight;
1080
- // Calculate absolute position relative to body
1081
- // We need to subtract the body's offsetTop to get true position within document.body
1082
- const absoluteTop = cachedFooterElRect.top - bodyRect.top;
1083
- const absoluteLeft = cachedFooterElRect.left - bodyRect.left;
1084
- // Capture the footer's current dimensions and store them in CSS variables for
1085
- // later use when applying absolute positioning.
1086
- cachedFooterEl.style.setProperty('--pinned-width', `${cachedFooterEl.clientWidth}px`);
1087
- cachedFooterEl.style.setProperty('--pinned-height', `${cachedFooterEl.clientHeight}px`);
1088
- cachedFooterEl.style.setProperty('--pinned-top', `${absoluteTop}px`);
1089
- cachedFooterEl.style.setProperty('--pinned-left', `${absoluteLeft}px`);
1090
- // Only cache the first footer's Y position
1091
- // This is used to determine if the sheet has been moved below the footer
1092
- // and needs to be swapped back to stationary so it collapses correctly.
1093
- if (index === 0) {
1094
- cachedFooterYPosition = absoluteTop;
1095
- // If there's a header, we need to combine the header height with the footer position
1096
- // because the header moves with the drag handle, so when it starts overlapping the footer,
1097
- // we need to account for that.
1098
- const header = baseEl.querySelector('ion-header');
1099
- if (header) {
1100
- cachedFooterYPosition -= header.clientHeight;
1101
- }
1102
- }
1103
- });
1104
- // Apply the pinning of styles after we've calculated everything
1105
- // so that we don't cause layouts to shift while calculating the footer positions.
1106
- // Otherwise, with multiple footers we'll end up capturing the wrong positions.
1107
- cachedFooterEls.forEach((cachedFooterEl) => {
1108
- // Add padding to the parent element to prevent content from being hidden
1109
- // when the footer is positioned absolutely. This has to be done before we
1110
- // make the footer absolutely positioned or we may accidentally cause the
1111
- // sheet to scroll.
1112
- page === null || page === void 0 ? void 0 : page.style.setProperty('padding-bottom', `${footerHeights}px`);
1113
- // Apply positioning styles to keep footer at bottom
1114
- cachedFooterEl.classList.add('modal-footer-moving');
1115
- // Apply our preserved styles to pin the footer
1116
- cachedFooterEl.style.setProperty('position', 'absolute');
1117
- cachedFooterEl.style.setProperty('width', 'var(--pinned-width)');
1118
- cachedFooterEl.style.setProperty('height', 'var(--pinned-height)');
1119
- cachedFooterEl.style.setProperty('top', 'var(--pinned-top)');
1120
- cachedFooterEl.style.setProperty('left', 'var(--pinned-left)');
1121
- // Move the element to the body when everything else is done
1122
- document.body.appendChild(cachedFooterEl);
1123
- });
1124
- }
1125
- };
1126
- /**
1127
- * After the entering animation completes,
1128
- * we need to set the animation to go from
1129
- * offset 0 to offset 1 so that users can
1130
- * swipe in any direction. We then set the
1131
- * animation offset to the current breakpoint
1132
- * so there is no flickering.
1133
- */
1134
- if (wrapperAnimation && backdropAnimation) {
1135
- wrapperAnimation.keyframes([...SheetDefaults.WRAPPER_KEYFRAMES]);
1136
- backdropAnimation.keyframes([...SheetDefaults.BACKDROP_KEYFRAMES]);
1137
- contentAnimation === null || contentAnimation === void 0 ? void 0 : contentAnimation.keyframes([...SheetDefaults.CONTENT_KEYFRAMES]);
1138
- animation.progressStart(true, 1 - currentBreakpoint);
1139
- /**
1140
- * If backdrop is not enabled, then content
1141
- * behind modal should be clickable. To do this, we need
1142
- * to remove pointer-events from ion-modal as a whole.
1143
- * ion-backdrop and .modal-wrapper always have pointer-events: auto
1144
- * applied, so the modal content can still be interacted with.
1145
- */
1146
- const shouldEnableBackdrop = currentBreakpoint > backdropBreakpoint &&
1147
- baseEl.focusTrap !== false &&
1148
- baseEl.showBackdrop !== false;
1149
- if (shouldEnableBackdrop) {
1150
- enableBackdrop();
1151
- }
1152
- else {
1153
- disableBackdrop();
1154
- }
1155
- }
1156
- if (contentEl && currentBreakpoint !== maxBreakpoint && expandToScroll) {
1157
- contentEl.scrollY = false;
1158
- }
1159
- const canStart = (detail) => {
1160
- /**
1161
- * If we are swiping on the content, swiping should only be possible if the content
1162
- * is scrolled all the way to the top so that we do not interfere with scrolling.
1163
- *
1164
- * We cannot assume that the `ion-content` target will remain consistent between swipes.
1165
- * For example, when using ion-nav within a modal it is possible to swipe, push a view,
1166
- * and then swipe again. The target content will not be the same between swipes.
1167
- */
1168
- const contentEl = findClosestIonContent(detail.event.target);
1169
- currentBreakpoint = getCurrentBreakpoint();
1170
- /**
1171
- * If `expandToScroll` is disabled, we should not allow the swipe gesture
1172
- * to start if the content is not scrolled to the top.
1173
- */
1174
- if (!expandToScroll && contentEl) {
1175
- const scrollEl = isIonContent(contentEl) ? getElementRoot(contentEl).querySelector('.inner-scroll') : contentEl;
1176
- return scrollEl.scrollTop === 0;
1177
- }
1178
- if (currentBreakpoint === 1 && contentEl) {
1179
- /**
1180
- * The modal should never swipe to close on the content with a refresher.
1181
- * Note 1: We cannot solve this by making this gesture have a higher priority than
1182
- * the refresher gesture as the iOS native refresh gesture uses a scroll listener in
1183
- * addition to a gesture.
1184
- *
1185
- * Note 2: Do not use getScrollElement here because we need this to be a synchronous
1186
- * operation, and getScrollElement is asynchronous.
1187
- */
1188
- const scrollEl = isIonContent(contentEl) ? getElementRoot(contentEl).querySelector('.inner-scroll') : contentEl;
1189
- const hasRefresherInContent = !!contentEl.querySelector('ion-refresher');
1190
- return !hasRefresherInContent && scrollEl.scrollTop === 0;
1191
- }
1192
- return true;
1193
- };
1194
- const onStart = (detail) => {
1195
- /**
1196
- * If canDismiss is anything other than `true`
1197
- * then users should be able to swipe down
1198
- * until a threshold is hit. At that point,
1199
- * the card modal should not proceed any further.
1200
- *
1201
- * canDismiss is never fired via gesture if there is
1202
- * no 0 breakpoint. However, it can be fired if the user
1203
- * presses Esc or the hardware back button.
1204
- * TODO (FW-937)
1205
- * Remove undefined check
1206
- */
1207
- canDismissBlocksGesture = baseEl.canDismiss !== undefined && baseEl.canDismiss !== true && minBreakpoint === 0;
1208
- /**
1209
- * Cache the scroll element reference when the gesture starts,
1210
- * this allows us to avoid querying the DOM for the target in onMove,
1211
- * which would impact performance significantly.
1212
- */
1213
- if (!expandToScroll) {
1214
- const targetEl = findClosestIonContent(detail.event.target);
1215
- cachedScrollEl =
1216
- targetEl && isIonContent(targetEl) ? getElementRoot(targetEl).querySelector('.inner-scroll') : targetEl;
1217
- }
1218
- /**
1219
- * If expandToScroll is disabled, we need to swap
1220
- * the footer position to moving so that it doesn't shake
1221
- * while the sheet is being dragged.
1222
- */
1223
- if (!expandToScroll) {
1224
- swapFooterPosition('moving');
1225
- }
1226
- /**
1227
- * If we are pulling down, then it is possible we are pulling on the content.
1228
- * We do not want scrolling to happen at the same time as the gesture.
1229
- */
1230
- if (detail.deltaY > 0 && contentEl) {
1231
- contentEl.scrollY = false;
1232
- }
1233
- raf(() => {
1234
- /**
1235
- * Dismisses the open keyboard when the sheet drag gesture is started.
1236
- * Sets the focus onto the modal element.
1237
- */
1238
- baseEl.focus();
1239
- });
1240
- animation.progressStart(true, 1 - currentBreakpoint);
1241
- };
1242
- const onMove = (detail) => {
1243
- /**
1244
- * If `expandToScroll` is disabled, we need to see if we're currently below
1245
- * the footer element and the footer is in a stationary position. If so,
1246
- * we need to make the stationary the original position so that the footer
1247
- * collapses with the sheet.
1248
- */
1249
- if (!expandToScroll && cachedFooterYPosition !== null && currentFooterState !== null) {
1250
- // Check if we need to swap the footer position
1251
- if (detail.currentY >= cachedFooterYPosition && currentFooterState === 'moving') {
1252
- swapFooterPosition('stationary');
1253
- }
1254
- else if (detail.currentY < cachedFooterYPosition && currentFooterState === 'stationary') {
1255
- swapFooterPosition('moving');
1256
- }
1257
- }
1258
- /**
1259
- * If `expandToScroll` is disabled, and an upwards swipe gesture is done within
1260
- * the scrollable content, we should not allow the swipe gesture to continue.
1261
- */
1262
- if (!expandToScroll && detail.deltaY <= 0 && cachedScrollEl) {
1263
- return;
1264
- }
1265
- /**
1266
- * If we are pulling down, then it is possible we are pulling on the content.
1267
- * We do not want scrolling to happen at the same time as the gesture.
1268
- * This accounts for when the user scrolls down, scrolls all the way up, and then
1269
- * pulls down again such that the modal should start to move.
1270
- */
1271
- if (detail.deltaY > 0 && contentEl) {
1272
- contentEl.scrollY = false;
1273
- }
1274
- /**
1275
- * Given the change in gesture position on the Y axis,
1276
- * compute where the offset of the animation should be
1277
- * relative to where the user dragged.
1278
- */
1279
- const initialStep = 1 - currentBreakpoint;
1280
- const secondToLastBreakpoint = breakpoints.length > 1 ? 1 - breakpoints[1] : undefined;
1281
- const step = initialStep + detail.deltaY / height;
1282
- const isAttemptingDismissWithCanDismiss = secondToLastBreakpoint !== undefined && step >= secondToLastBreakpoint && canDismissBlocksGesture;
1283
- /**
1284
- * If we are blocking the gesture from dismissing,
1285
- * set the max step value so that the sheet cannot be
1286
- * completely hidden.
1287
- */
1288
- const maxStep = isAttemptingDismissWithCanDismiss ? canDismissMaxStep : 0.9999;
1289
- /**
1290
- * If we are blocking the gesture from
1291
- * dismissing, calculate the spring modifier value
1292
- * this will be added to the starting breakpoint
1293
- * value to give the gesture a spring-like feeling.
1294
- * Note that when isAttemptingDismissWithCanDismiss is true,
1295
- * the modifier is always added to the breakpoint that
1296
- * appears right after the 0 breakpoint.
1297
- *
1298
- * Note that this modifier is essentially the progression
1299
- * between secondToLastBreakpoint and maxStep which is
1300
- * why we subtract secondToLastBreakpoint. This lets us get
1301
- * the result as a value from 0 to 1.
1302
- */
1303
- const processedStep = isAttemptingDismissWithCanDismiss && secondToLastBreakpoint !== undefined
1304
- ? secondToLastBreakpoint +
1305
- calculateSpringStep((step - secondToLastBreakpoint) / (maxStep - secondToLastBreakpoint))
1306
- : step;
1307
- offset = clamp(0.0001, processedStep, maxStep);
1308
- animation.progressStep(offset);
1309
- };
1310
- const onEnd = (detail) => {
1311
- /**
1312
- * If expandToScroll is disabled, we should not allow the moveSheetToBreakpoint
1313
- * function to be called if the user is trying to swipe content upwards and the content
1314
- * is not scrolled to the top.
1315
- */
1316
- if (!expandToScroll && detail.deltaY <= 0 && cachedScrollEl && cachedScrollEl.scrollTop > 0) {
1317
- /**
1318
- * If expand to scroll is disabled, we need to make sure we swap the footer position
1319
- * back to stationary so that it will collapse correctly if the modal is dismissed without
1320
- * dragging (e.g. through a dismiss button).
1321
- * This can cause issues if the user has a modal with content that can be dragged, as we'll
1322
- * swap to moving on drag and if we don't swap back here then the footer will get stuck.
1323
- */
1324
- swapFooterPosition('stationary');
1325
- return;
1326
- }
1327
- /**
1328
- * When the gesture releases, we need to determine
1329
- * the closest breakpoint to snap to.
1330
- */
1331
- const velocity = detail.velocityY;
1332
- const threshold = (detail.deltaY + velocity * 350) / height;
1333
- const diff = currentBreakpoint - threshold;
1334
- const closest = breakpoints.reduce((a, b) => {
1335
- return Math.abs(b - diff) < Math.abs(a - diff) ? b : a;
1336
- });
1337
- moveSheetToBreakpoint({
1338
- breakpoint: closest,
1339
- breakpointOffset: offset,
1340
- canDismiss: canDismissBlocksGesture,
1341
- /**
1342
- * The swipe is user-driven, so we should
1343
- * always animate when the gesture ends.
1344
- */
1345
- animated: true,
1346
- });
1347
- };
1348
- const moveSheetToBreakpoint = (options) => {
1349
- const { breakpoint, canDismiss, breakpointOffset, animated } = options;
1350
- /**
1351
- * canDismiss should only prevent snapping
1352
- * when users are trying to dismiss. If canDismiss
1353
- * is present but the user is trying to swipe upwards,
1354
- * we should allow that to happen,
1355
- */
1356
- const shouldPreventDismiss = canDismiss && breakpoint === 0;
1357
- const snapToBreakpoint = shouldPreventDismiss ? currentBreakpoint : breakpoint;
1358
- const shouldRemainOpen = snapToBreakpoint !== 0;
1359
- currentBreakpoint = 0;
1360
- /**
1361
- * Update the animation so that it plays from
1362
- * the last offset to the closest snap point.
1363
- */
1364
- if (wrapperAnimation && backdropAnimation) {
1365
- wrapperAnimation.keyframes([
1366
- { offset: 0, transform: `translateY(${breakpointOffset * 100}%)` },
1367
- { offset: 1, transform: `translateY(${(1 - snapToBreakpoint) * 100}%)` },
1368
- ]);
1369
- backdropAnimation.keyframes([
1370
- {
1371
- offset: 0,
1372
- opacity: `calc(var(--backdrop-opacity) * ${getBackdropValueForSheet(1 - breakpointOffset, backdropBreakpoint)})`,
1373
- },
1374
- {
1375
- offset: 1,
1376
- opacity: `calc(var(--backdrop-opacity) * ${getBackdropValueForSheet(snapToBreakpoint, backdropBreakpoint)})`,
1377
- },
1378
- ]);
1379
- if (contentAnimation) {
1380
- /**
1381
- * The modal content should scroll at any breakpoint when expandToScroll
1382
- * is disabled. In order to do this, the content needs to be completely
1383
- * viewable so scrolling can access everything. Otherwise, the default
1384
- * behavior would show the content off the screen and only allow
1385
- * scrolling when the sheet is fully expanded.
1386
- */
1387
- contentAnimation.keyframes([
1388
- { offset: 0, maxHeight: `${(1 - breakpointOffset) * 100}%` },
1389
- { offset: 1, maxHeight: `${snapToBreakpoint * 100}%` },
1390
- ]);
1391
- }
1392
- animation.progressStep(0);
1393
- }
1394
- /**
1395
- * Gesture should remain disabled until the
1396
- * snapping animation completes.
1397
- */
1398
- gesture.enable(false);
1399
- if (shouldPreventDismiss) {
1400
- handleCanDismiss(baseEl, animation);
1401
- }
1402
- else if (!shouldRemainOpen) {
1403
- onDismiss();
1404
- }
1405
- /**
1406
- * Enables scrolling immediately if the sheet is about to fully expand
1407
- * or if it allows scrolling at any breakpoint. Without this, there would
1408
- * be a ~500ms delay while the modal animation completes, causing a
1409
- * noticeable lag. Native iOS allows scrolling as soon as the gesture is
1410
- * released, so we align with that behavior.
1411
- */
1412
- if (contentEl && (snapToBreakpoint === breakpoints[breakpoints.length - 1] || !expandToScroll)) {
1413
- contentEl.scrollY = true;
1414
- }
1415
- /**
1416
- * If expandToScroll is disabled and we're animating
1417
- * to close the sheet, we need to swap
1418
- * the footer position to stationary so that it
1419
- * will collapse correctly. We cannot just always swap
1420
- * here or it'll be jittery while animating movement.
1421
- */
1422
- if (!expandToScroll && snapToBreakpoint === 0) {
1423
- swapFooterPosition('stationary');
1424
- }
1425
- return new Promise((resolve) => {
1426
- animation
1427
- .onFinish(() => {
1428
- if (shouldRemainOpen) {
1429
- /**
1430
- * If expandToScroll is disabled, we need to swap
1431
- * the footer position to stationary so that it
1432
- * will act as it would by default.
1433
- */
1434
- if (!expandToScroll) {
1435
- swapFooterPosition('stationary');
1436
- }
1437
- /**
1438
- * Once the snapping animation completes,
1439
- * we need to reset the animation to go
1440
- * from 0 to 1 so users can swipe in any direction.
1441
- * We then set the animation offset to the current
1442
- * breakpoint so that it starts at the snapped position.
1443
- */
1444
- if (wrapperAnimation && backdropAnimation) {
1445
- raf(() => {
1446
- wrapperAnimation.keyframes([...SheetDefaults.WRAPPER_KEYFRAMES]);
1447
- backdropAnimation.keyframes([...SheetDefaults.BACKDROP_KEYFRAMES]);
1448
- contentAnimation === null || contentAnimation === void 0 ? void 0 : contentAnimation.keyframes([...SheetDefaults.CONTENT_KEYFRAMES]);
1449
- animation.progressStart(true, 1 - snapToBreakpoint);
1450
- currentBreakpoint = snapToBreakpoint;
1451
- onBreakpointChange(currentBreakpoint);
1452
- /**
1453
- * Backdrop should become enabled
1454
- * after the backdropBreakpoint value
1455
- */
1456
- const shouldEnableBackdrop = currentBreakpoint > backdropBreakpoint &&
1457
- baseEl.focusTrap !== false &&
1458
- baseEl.showBackdrop !== false;
1459
- if (shouldEnableBackdrop) {
1460
- enableBackdrop();
1461
- }
1462
- else {
1463
- disableBackdrop();
1464
- }
1465
- gesture.enable(true);
1466
- resolve();
1467
- });
1468
- }
1469
- else {
1470
- gesture.enable(true);
1471
- resolve();
1472
- }
1473
- }
1474
- else {
1475
- resolve();
1476
- }
1477
- /**
1478
- * This must be a one time callback
1479
- * otherwise a new callback will
1480
- * be added every time onEnd runs.
1481
- */
1482
- }, { oneTimeCallback: true })
1483
- .progressEnd(1, 0, animated ? 500 : 0);
1484
- });
1485
- };
1486
- const gesture = createGesture({
1487
- el: wrapperEl,
1488
- gestureName: 'modalSheet',
1489
- gesturePriority: 40,
1490
- direction: 'y',
1491
- threshold: 10,
1492
- canStart,
1493
- onStart,
1494
- onMove,
1495
- onEnd,
1496
- });
1497
- return {
1498
- gesture,
1499
- moveSheetToBreakpoint,
1500
- };
1501
- };
1502
-
1503
- const modalIosCss = () => `:host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--overflow:hidden;--border-radius:0;--border-width:0;--border-style:none;--border-color:transparent;--background:var(--ion-background-color, #fff);--box-shadow:none;--backdrop-opacity:0;left:0;right:0;top:0;bottom:0;display:flex;position:absolute;align-items:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);contain:strict}.modal-wrapper,ion-backdrop{pointer-events:auto}:host(.overlay-hidden){display:none}.modal-wrapper,.modal-shadow{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);box-shadow:var(--box-shadow);overflow:var(--overflow);z-index:10}.modal-shadow{position:absolute;background:transparent}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--width:600px;--height:500px;--ion-safe-area-top:0px;--ion-safe-area-bottom:0px;--ion-safe-area-right:0px;--ion-safe-area-left:0px}}@media only screen and (min-width: 768px) and (min-height: 768px){:host{--width:600px;--height:600px}}.modal-handle{left:0px;right:0px;top:5px;border-radius:8px;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;position:absolute;width:36px;height:5px;transform:translateZ(0);border:0;background:var(--ion-color-step-350, var(--ion-background-color-step-350, #c0c0be));cursor:pointer;z-index:11}.modal-handle::before{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;position:absolute;width:36px;height:5px;transform:translate(-50%, -50%);content:""}:host(.modal-sheet){--height:calc(100% - (var(--ion-safe-area-top) + 10px))}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}:host(.modal-sheet.modal-no-expand-scroll) ion-footer{position:absolute;bottom:0;width:var(--width)}:host{--backdrop-opacity:var(--ion-backdrop-opacity, 0.4)}:host(.modal-card),:host(.modal-sheet){--border-radius:10px}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--border-radius:10px}}.modal-wrapper{transform:translate3d(0, 100%, 0)}@media screen and (max-width: 767px){@supports (width: max(0px, 1px)){:host(.modal-card){--height:calc(100% - max(30px, var(--ion-safe-area-top)) - 10px)}}@supports not (width: max(0px, 1px)){:host(.modal-card){--height:calc(100% - 40px)}}:host(.modal-card) .modal-wrapper{border-start-start-radius:var(--border-radius);border-start-end-radius:var(--border-radius);border-end-end-radius:0;border-end-start-radius:0}:host(.modal-card){--backdrop-opacity:0;--width:100%;align-items:flex-end}:host(.modal-card) .modal-shadow{display:none}:host(.modal-card) ion-backdrop{pointer-events:none}}@media screen and (min-width: 768px){:host(.modal-card){--width:calc(100% - 120px);--height:calc(100% - (120px + var(--ion-safe-area-top) + var(--ion-safe-area-bottom)));--max-width:720px;--max-height:1000px;--backdrop-opacity:0;--box-shadow:0px 0px 30px 10px rgba(0, 0, 0, 0.1);transition:all 0.5s ease-in-out}:host(.modal-card) .modal-wrapper{box-shadow:none}:host(.modal-card) .modal-shadow{box-shadow:var(--box-shadow)}}:host(.modal-sheet) .modal-wrapper{border-start-start-radius:var(--border-radius);border-start-end-radius:var(--border-radius);border-end-end-radius:0;border-end-start-radius:0}`;
1504
-
1505
- const modalMdCss = () => `:host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--overflow:hidden;--border-radius:0;--border-width:0;--border-style:none;--border-color:transparent;--background:var(--ion-background-color, #fff);--box-shadow:none;--backdrop-opacity:0;left:0;right:0;top:0;bottom:0;display:flex;position:absolute;align-items:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);contain:strict}.modal-wrapper,ion-backdrop{pointer-events:auto}:host(.overlay-hidden){display:none}.modal-wrapper,.modal-shadow{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);box-shadow:var(--box-shadow);overflow:var(--overflow);z-index:10}.modal-shadow{position:absolute;background:transparent}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--width:600px;--height:500px;--ion-safe-area-top:0px;--ion-safe-area-bottom:0px;--ion-safe-area-right:0px;--ion-safe-area-left:0px}}@media only screen and (min-width: 768px) and (min-height: 768px){:host{--width:600px;--height:600px}}.modal-handle{left:0px;right:0px;top:5px;border-radius:8px;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;position:absolute;width:36px;height:5px;transform:translateZ(0);border:0;background:var(--ion-color-step-350, var(--ion-background-color-step-350, #c0c0be));cursor:pointer;z-index:11}.modal-handle::before{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;position:absolute;width:36px;height:5px;transform:translate(-50%, -50%);content:""}:host(.modal-sheet){--height:calc(100% - (var(--ion-safe-area-top) + 10px))}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}:host(.modal-sheet.modal-no-expand-scroll) ion-footer{position:absolute;bottom:0;width:var(--width)}:host{--backdrop-opacity:var(--ion-backdrop-opacity, 0.32)}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--border-radius:2px;--box-shadow:0 28px 48px rgba(0, 0, 0, 0.4)}}.modal-wrapper{transform:translate3d(0, 40px, 0);opacity:0.01}`;
1506
-
1507
- const Modal = /*@__PURE__*/ proxyCustomElement(class Modal extends H {
1508
- constructor(registerHost) {
1509
- super();
1510
- if (registerHost !== false) {
1511
- this.__registerHost();
1512
- }
1513
- this.__attachShadow();
1514
- this.didPresent = createEvent(this, "ionModalDidPresent", 7);
1515
- this.willPresent = createEvent(this, "ionModalWillPresent", 7);
1516
- this.willDismiss = createEvent(this, "ionModalWillDismiss", 7);
1517
- this.didDismiss = createEvent(this, "ionModalDidDismiss", 7);
1518
- this.ionBreakpointDidChange = createEvent(this, "ionBreakpointDidChange", 7);
1519
- this.didPresentShorthand = createEvent(this, "didPresent", 7);
1520
- this.willPresentShorthand = createEvent(this, "willPresent", 7);
1521
- this.willDismissShorthand = createEvent(this, "willDismiss", 7);
1522
- this.didDismissShorthand = createEvent(this, "didDismiss", 7);
1523
- this.ionMount = createEvent(this, "ionMount", 7);
1524
- this.lockController = createLockController();
1525
- this.triggerController = createTriggerController();
1526
- this.coreDelegate = CoreDelegate();
1527
- this.isSheetModal = false;
1528
- this.inheritedAttributes = {};
1529
- this.inline = false;
1530
- // Whether or not modal is being dismissed via gesture
1531
- this.gestureAnimationDismissing = false;
1532
- this.presented = false;
1533
- /** @internal */
1534
- this.hasController = false;
1535
- /**
1536
- * If `true`, the keyboard will be automatically dismissed when the overlay is presented.
1537
- */
1538
- this.keyboardClose = true;
1539
- /**
1540
- * Controls whether scrolling or dragging within the sheet modal expands
1541
- * it to a larger breakpoint. This only takes effect when `breakpoints`
1542
- * and `initialBreakpoint` are set.
1543
- *
1544
- * If `true`, scrolling or dragging anywhere in the modal will first expand
1545
- * it to the next breakpoint. Once fully expanded, scrolling will affect the
1546
- * content.
1547
- * If `false`, scrolling will always affect the content. The modal will
1548
- * only expand when dragging the header or handle. The modal will close when
1549
- * dragging the header or handle. It can also be closed when dragging the
1550
- * content, but only if the content is scrolled to the top.
1551
- */
1552
- this.expandToScroll = true;
1553
- /**
1554
- * A decimal value between 0 and 1 that indicates the
1555
- * point after which the backdrop will begin to fade in
1556
- * when using a sheet modal. Prior to this point, the
1557
- * backdrop will be hidden and the content underneath
1558
- * the sheet can be interacted with. This value is exclusive
1559
- * meaning the backdrop will become active after the value
1560
- * specified.
1561
- */
1562
- this.backdropBreakpoint = 0;
1563
- /**
1564
- * The interaction behavior for the sheet modal when the handle is pressed.
1565
- *
1566
- * Defaults to `"none"`, which means the modal will not change size or position when the handle is pressed.
1567
- * Set to `"cycle"` to let the modal cycle between available breakpoints when pressed.
1568
- *
1569
- * Handle behavior is unavailable when the `handle` property is set to `false` or
1570
- * when the `breakpoints` property is not set (using a fullscreen or card modal).
1571
- */
1572
- this.handleBehavior = 'none';
1573
- /**
1574
- * If `true`, the modal will be dismissed when the backdrop is clicked.
1575
- */
1576
- this.backdropDismiss = true;
1577
- /**
1578
- * If `true`, a backdrop will be displayed behind the modal.
1579
- * This property controls whether or not the backdrop
1580
- * darkens the screen when the modal is presented.
1581
- * It does not control whether or not the backdrop
1582
- * is active or present in the DOM.
1583
- */
1584
- this.showBackdrop = true;
1585
- /**
1586
- * If `true`, the modal will animate.
1587
- */
1588
- this.animated = true;
1589
- /**
1590
- * If `true`, the modal will open. If `false`, the modal will close.
1591
- * Use this if you need finer grained control over presentation, otherwise
1592
- * just use the modalController or the `trigger` property.
1593
- * Note: `isOpen` will not automatically be set back to `false` when
1594
- * the modal dismisses. You will need to do that in your code.
1595
- */
1596
- this.isOpen = false;
1597
- /**
1598
- * If `true`, the component passed into `ion-modal` will
1599
- * automatically be mounted when the modal is created. The
1600
- * component will remain mounted even when the modal is dismissed.
1601
- * However, the component will be destroyed when the modal is
1602
- * destroyed. This property is not reactive and should only be
1603
- * used when initially creating a modal.
1604
- *
1605
- * Note: This feature only applies to inline modals in JavaScript
1606
- * frameworks such as Angular, React, and Vue.
1607
- */
1608
- this.keepContentsMounted = false;
1609
- /**
1610
- * If `true`, focus will not be allowed to move outside of this overlay.
1611
- * If `false`, focus will be allowed to move outside of the overlay.
1612
- *
1613
- * In most scenarios this property should remain set to `true`. Setting
1614
- * this property to `false` can cause severe accessibility issues as users
1615
- * relying on assistive technologies may be able to move focus into
1616
- * a confusing state. We recommend only setting this to `false` when
1617
- * absolutely necessary.
1618
- *
1619
- * Developers may want to consider disabling focus trapping if this
1620
- * overlay presents a non-Ionic overlay from a 3rd party library.
1621
- * Developers would disable focus trapping on the Ionic overlay
1622
- * when presenting the 3rd party overlay and then re-enable
1623
- * focus trapping when dismissing the 3rd party overlay and moving
1624
- * focus back to the Ionic overlay.
1625
- */
1626
- this.focusTrap = true;
1627
- /**
1628
- * Determines whether or not a modal can dismiss
1629
- * when calling the `dismiss` method.
1630
- *
1631
- * If the value is `true` or the value's function returns `true`, the modal will close when trying to dismiss.
1632
- * If the value is `false` or the value's function returns `false`, the modal will not close when trying to dismiss.
1633
- *
1634
- * See https://ionicframework.com/docs/troubleshooting/runtime#accessing-this
1635
- * if you need to access `this` from within the callback.
1636
- */
1637
- this.canDismiss = true;
1638
- this.onHandleClick = () => {
1639
- const { sheetTransition, handleBehavior } = this;
1640
- if (handleBehavior !== 'cycle' || sheetTransition !== undefined) {
1641
- /**
1642
- * The sheet modal should not advance to the next breakpoint
1643
- * if the handle behavior is not `cycle` or if the handle
1644
- * is clicked while the sheet is moving to a breakpoint.
1645
- */
1646
- return;
1647
- }
1648
- this.moveToNextBreakpoint();
1649
- };
1650
- this.onBackdropTap = () => {
1651
- const { sheetTransition } = this;
1652
- if (sheetTransition !== undefined) {
1653
- /**
1654
- * When the handle is double clicked at the largest breakpoint,
1655
- * it will start to move to the first breakpoint. While transitioning,
1656
- * the backdrop will often receive the second click. We prevent the
1657
- * backdrop from dismissing the modal while moving between breakpoints.
1658
- */
1659
- return;
1660
- }
1661
- this.dismiss(undefined, BACKDROP);
1662
- };
1663
- this.onLifecycle = (modalEvent) => {
1664
- const el = this.usersElement;
1665
- const name = LIFECYCLE_MAP[modalEvent.type];
1666
- if (el && name) {
1667
- const ev = new CustomEvent(name, {
1668
- bubbles: false,
1669
- cancelable: false,
1670
- detail: modalEvent.detail,
1671
- });
1672
- el.dispatchEvent(ev);
1673
- }
1674
- };
1675
- /**
1676
- * When the modal receives focus directly, pass focus to the handle
1677
- * if it exists and is focusable, otherwise let the focus trap handle it.
1678
- */
1679
- this.onModalFocus = (ev) => {
1680
- const { dragHandleEl, el } = this;
1681
- // Only handle focus if the modal itself was focused (not a child element)
1682
- if (ev.target === el && dragHandleEl && dragHandleEl.tabIndex !== -1) {
1683
- dragHandleEl.focus();
1684
- }
1685
- };
1686
- /**
1687
- * When the slot changes, we need to find all the modals in the slot
1688
- * and set the data-parent-ion-modal attribute on them so we can find them
1689
- * and dismiss them when we get dismissed.
1690
- * We need to do it this way because when a modal is opened, it's moved to
1691
- * the end of the body and is no longer an actual child of the modal.
1692
- */
1693
- this.onSlotChange = ({ target }) => {
1694
- const slot = target;
1695
- slot.assignedElements().forEach((el) => {
1696
- el.querySelectorAll('ion-modal').forEach((childModal) => {
1697
- // We don't need to write to the DOM if the modal is already tagged
1698
- // If this is a deeply nested modal, this effect should cascade so we don't
1699
- // need to worry about another modal claiming the same child.
1700
- if (childModal.getAttribute('data-parent-ion-modal') === null) {
1701
- childModal.setAttribute('data-parent-ion-modal', this.el.id);
1702
- }
1703
- });
1704
- });
1705
- };
1706
- }
1707
- onIsOpenChange(newValue, oldValue) {
1708
- if (newValue === true && oldValue === false) {
1709
- this.present();
1710
- }
1711
- else if (newValue === false && oldValue === true) {
1712
- this.dismiss();
1713
- }
1714
- }
1715
- triggerChanged() {
1716
- const { trigger, el, triggerController } = this;
1717
- if (trigger) {
1718
- triggerController.addClickListener(el, trigger);
1719
- }
1720
- }
1721
- onWindowResize() {
1722
- // Only handle resize for iOS card modals when no custom animations are provided
1723
- if (getIonMode(this) !== 'ios' || !this.presentingElement || this.enterAnimation || this.leaveAnimation) {
1724
- return;
1725
- }
1726
- clearTimeout(this.resizeTimeout);
1727
- this.resizeTimeout = setTimeout(() => {
1728
- this.handleViewTransition();
1729
- }, 50); // Debounce to avoid excessive calls during active resizing
1730
- }
1731
- breakpointsChanged(breakpoints) {
1732
- if (breakpoints !== undefined) {
1733
- this.sortedBreakpoints = breakpoints.sort((a, b) => a - b);
1734
- }
1735
- }
1736
- connectedCallback() {
1737
- const { el } = this;
1738
- prepareOverlay(el);
1739
- this.triggerChanged();
1740
- }
1741
- disconnectedCallback() {
1742
- this.triggerController.removeClickListener();
1743
- this.cleanupViewTransitionListener();
1744
- this.cleanupParentRemovalObserver();
1745
- }
1746
- componentWillLoad() {
1747
- var _a;
1748
- const { breakpoints, initialBreakpoint, el, htmlAttributes } = this;
1749
- const isSheetModal = (this.isSheetModal = breakpoints !== undefined && initialBreakpoint !== undefined);
1750
- const attributesToInherit = ['aria-label', 'role'];
1751
- this.inheritedAttributes = inheritAttributes(el, attributesToInherit);
1752
- // Cache original parent before modal gets moved to body during presentation
1753
- if (el.parentNode) {
1754
- this.cachedOriginalParent = el.parentNode;
1755
- }
1756
- /**
1757
- * When using a controller modal you can set attributes
1758
- * using the htmlAttributes property. Since the above attributes
1759
- * need to be inherited inside of the modal, we need to look
1760
- * and see if these attributes are being set via htmlAttributes.
1761
- *
1762
- * We could alternatively move this to componentDidLoad to simplify the work
1763
- * here, but we'd then need to make inheritedAttributes a State variable,
1764
- * thus causing another render to always happen after the first render.
1765
- */
1766
- if (htmlAttributes !== undefined) {
1767
- attributesToInherit.forEach((attribute) => {
1768
- const attributeValue = htmlAttributes[attribute];
1769
- if (attributeValue) {
1770
- /**
1771
- * If an attribute we need to inherit was
1772
- * set using htmlAttributes then add it to
1773
- * inheritedAttributes and remove it from htmlAttributes.
1774
- * This ensures the attribute is inherited and not
1775
- * set on the host.
1776
- *
1777
- * In this case, if an inherited attribute is set
1778
- * on the host element and using htmlAttributes then
1779
- * htmlAttributes wins, but that's not a pattern that we recommend.
1780
- * The only time you'd need htmlAttributes is when using modalController.
1781
- */
1782
- this.inheritedAttributes = Object.assign(Object.assign({}, this.inheritedAttributes), { [attribute]: htmlAttributes[attribute] });
1783
- delete htmlAttributes[attribute];
1784
- }
1785
- });
1786
- }
1787
- if (isSheetModal) {
1788
- this.currentBreakpoint = this.initialBreakpoint;
1789
- }
1790
- if (breakpoints !== undefined && initialBreakpoint !== undefined && !breakpoints.includes(initialBreakpoint)) {
1791
- printIonWarning('[ion-modal] - Your breakpoints array must include the initialBreakpoint value.');
1792
- }
1793
- if (!((_a = this.htmlAttributes) === null || _a === void 0 ? void 0 : _a.id)) {
1794
- setOverlayId(this.el);
1795
- }
1796
- }
1797
- componentDidLoad() {
1798
- /**
1799
- * If modal was rendered with isOpen="true"
1800
- * then we should open modal immediately.
1801
- */
1802
- if (this.isOpen === true) {
1803
- raf(() => this.present());
1804
- }
1805
- this.breakpointsChanged(this.breakpoints);
1806
- /**
1807
- * When binding values in frameworks such as Angular
1808
- * it is possible for the value to be set after the Web Component
1809
- * initializes but before the value watcher is set up in Stencil.
1810
- * As a result, the watcher callback may not be fired.
1811
- * We work around this by manually calling the watcher
1812
- * callback when the component has loaded and the watcher
1813
- * is configured.
1814
- */
1815
- this.triggerChanged();
1816
- }
1817
- /**
1818
- * Determines whether or not an overlay
1819
- * is being used inline or via a controller/JS
1820
- * and returns the correct delegate.
1821
- * By default, subsequent calls to getDelegate
1822
- * will use a cached version of the delegate.
1823
- * This is useful for calling dismiss after
1824
- * present so that the correct delegate is given.
1825
- */
1826
- getDelegate(force = false) {
1827
- if (this.workingDelegate && !force) {
1828
- return {
1829
- delegate: this.workingDelegate,
1830
- inline: this.inline,
1831
- };
1832
- }
1833
- /**
1834
- * If using overlay inline
1835
- * we potentially need to use the coreDelegate
1836
- * so that this works in vanilla JS apps.
1837
- * If a developer has presented this component
1838
- * via a controller, then we can assume
1839
- * the component is already in the
1840
- * correct place.
1841
- */
1842
- const parentEl = this.el.parentNode;
1843
- const inline = (this.inline = parentEl !== null && !this.hasController);
1844
- const delegate = (this.workingDelegate = inline ? this.delegate || this.coreDelegate : this.delegate);
1845
- return { inline, delegate };
1846
- }
1847
- /**
1848
- * Determines whether or not the
1849
- * modal is allowed to dismiss based
1850
- * on the state of the canDismiss prop.
1851
- */
1852
- async checkCanDismiss(data, role) {
1853
- const { canDismiss } = this;
1854
- if (typeof canDismiss === 'function') {
1855
- return canDismiss(data, role);
1856
- }
1857
- return canDismiss;
1858
- }
1859
- /**
1860
- * Present the modal overlay after it has been created.
1861
- */
1862
- async present() {
1863
- const unlock = await this.lockController.lock();
1864
- if (this.presented) {
1865
- unlock();
1866
- return;
1867
- }
1868
- const { presentingElement, el } = this;
1869
- /**
1870
- * If the modal is presented multiple times (inline modals), we
1871
- * need to reset the current breakpoint to the initial breakpoint.
1872
- */
1873
- this.currentBreakpoint = this.initialBreakpoint;
1874
- const { inline, delegate } = this.getDelegate(true);
1875
- /**
1876
- * Emit ionMount so JS Frameworks have an opportunity
1877
- * to add the child component to the DOM. The child
1878
- * component will be assigned to this.usersElement below.
1879
- */
1880
- this.ionMount.emit();
1881
- this.usersElement = await attachComponent(delegate, el, this.component, ['ion-page'], this.componentProps, inline);
1882
- /**
1883
- * When using the lazy loaded build of Stencil, we need to wait
1884
- * for every Stencil component instance to be ready before presenting
1885
- * otherwise there can be a flash of unstyled content. With the
1886
- * custom elements bundle we need to wait for the JS framework
1887
- * mount the inner contents of the overlay otherwise WebKit may
1888
- * get the transition incorrect.
1889
- */
1890
- if (hasLazyBuild(el)) {
1891
- await deepReady(this.usersElement);
1892
- /**
1893
- * If keepContentsMounted="true" then the
1894
- * JS Framework has already mounted the inner
1895
- * contents so there is no need to wait.
1896
- * Otherwise, we need to wait for the JS
1897
- * Framework to mount the inner contents
1898
- * of this component.
1899
- */
1900
- }
1901
- else if (!this.keepContentsMounted) {
1902
- await waitForMount();
1903
- }
1904
- writeTask(() => this.el.classList.add('show-modal'));
1905
- const hasCardModal = presentingElement !== undefined;
1906
- /**
1907
- * We need to change the status bar at the
1908
- * start of the animation so that it completes
1909
- * by the time the card animation is done.
1910
- */
1911
- if (hasCardModal && getIonMode(this) === 'ios') {
1912
- // Cache the original status bar color before the modal is presented
1913
- this.statusBarStyle = await StatusBar.getStyle();
1914
- setCardStatusBarDark();
1915
- }
1916
- await present(this, 'modalEnter', iosEnterAnimation, mdEnterAnimation, {
1917
- presentingEl: presentingElement,
1918
- currentBreakpoint: this.initialBreakpoint,
1919
- backdropBreakpoint: this.backdropBreakpoint,
1920
- expandToScroll: this.expandToScroll,
1921
- });
1922
- /* tslint:disable-next-line */
1923
- if (typeof window !== 'undefined') {
1924
- /**
1925
- * This needs to be setup before any
1926
- * non-transition async work so it can be dereferenced
1927
- * in the dismiss method. The dismiss method
1928
- * only waits for the entering transition
1929
- * to finish. It does not wait for all of the `present`
1930
- * method to resolve.
1931
- */
1932
- this.keyboardOpenCallback = () => {
1933
- if (this.gesture) {
1934
- /**
1935
- * When the native keyboard is opened and the webview
1936
- * is resized, the gesture implementation will become unresponsive
1937
- * and enter a free-scroll mode.
1938
- *
1939
- * When the keyboard is opened, we disable the gesture for
1940
- * a single frame and re-enable once the contents have repositioned
1941
- * from the keyboard placement.
1942
- */
1943
- this.gesture.enable(false);
1944
- raf(() => {
1945
- if (this.gesture) {
1946
- this.gesture.enable(true);
1947
- }
1948
- });
1949
- }
1950
- };
1951
- window.addEventListener(KEYBOARD_DID_OPEN, this.keyboardOpenCallback);
1952
- }
1953
- /**
1954
- * Recalculate isSheetModal because framework bindings (e.g., Angular)
1955
- * may not have been applied when componentWillLoad ran.
1956
- */
1957
- const isSheetModal = this.breakpoints !== undefined && this.initialBreakpoint !== undefined;
1958
- this.isSheetModal = isSheetModal;
1959
- if (isSheetModal) {
1960
- this.initSheetGesture();
1961
- }
1962
- else if (hasCardModal) {
1963
- this.initSwipeToClose();
1964
- }
1965
- // Initialize view transition listener for iOS card modals
1966
- this.initViewTransitionListener();
1967
- // Initialize parent removal observer
1968
- this.initParentRemovalObserver();
1969
- unlock();
1970
- }
1971
- initSwipeToClose() {
1972
- var _a;
1973
- if (getIonMode(this) !== 'ios') {
1974
- return;
1975
- }
1976
- const { el } = this;
1977
- // All of the elements needed for the swipe gesture
1978
- // should be in the DOM and referenced by now, except
1979
- // for the presenting el
1980
- const animationBuilder = this.leaveAnimation || config.get('modalLeave', iosLeaveAnimation);
1981
- const ani = (this.animation = animationBuilder(el, {
1982
- presentingEl: this.presentingElement,
1983
- expandToScroll: this.expandToScroll,
1984
- }));
1985
- const contentEl = findIonContent(el);
1986
- if (!contentEl) {
1987
- printIonContentErrorMsg(el);
1988
- return;
1989
- }
1990
- const statusBarStyle = (_a = this.statusBarStyle) !== null && _a !== void 0 ? _a : Style.Default;
1991
- this.gesture = createSwipeToCloseGesture(el, ani, statusBarStyle, () => {
1992
- /**
1993
- * While the gesture animation is finishing
1994
- * it is possible for a user to tap the backdrop.
1995
- * This would result in the dismiss animation
1996
- * being played again. Typically this is avoided
1997
- * by setting `presented = false` on the overlay
1998
- * component; however, we cannot do that here as
1999
- * that would prevent the element from being
2000
- * removed from the DOM.
2001
- */
2002
- this.gestureAnimationDismissing = true;
2003
- /**
2004
- * Reset the status bar style as the dismiss animation
2005
- * starts otherwise the status bar will be the wrong
2006
- * color for the duration of the dismiss animation.
2007
- * The dismiss method does this as well, but
2008
- * in this case it's only called once the animation
2009
- * has finished.
2010
- */
2011
- setCardStatusBarDefault(this.statusBarStyle);
2012
- this.animation.onFinish(async () => {
2013
- await this.dismiss(undefined, GESTURE);
2014
- this.gestureAnimationDismissing = false;
2015
- });
2016
- });
2017
- this.gesture.enable(true);
2018
- }
2019
- initSheetGesture() {
2020
- const { wrapperEl, initialBreakpoint, backdropBreakpoint } = this;
2021
- if (!wrapperEl || initialBreakpoint === undefined) {
2022
- return;
2023
- }
2024
- const animationBuilder = this.enterAnimation || config.get('modalEnter', iosEnterAnimation);
2025
- const ani = (this.animation = animationBuilder(this.el, {
2026
- presentingEl: this.presentingElement,
2027
- currentBreakpoint: initialBreakpoint,
2028
- backdropBreakpoint,
2029
- expandToScroll: this.expandToScroll,
2030
- }));
2031
- ani.progressStart(true, 1);
2032
- const { gesture, moveSheetToBreakpoint } = createSheetGesture(this.el, this.backdropEl, wrapperEl, initialBreakpoint, backdropBreakpoint, ani, this.sortedBreakpoints, this.expandToScroll, () => { var _a; return (_a = this.currentBreakpoint) !== null && _a !== void 0 ? _a : 0; }, () => this.sheetOnDismiss(), (breakpoint) => {
2033
- if (this.currentBreakpoint !== breakpoint) {
2034
- this.currentBreakpoint = breakpoint;
2035
- this.ionBreakpointDidChange.emit({ breakpoint });
2036
- }
2037
- });
2038
- this.gesture = gesture;
2039
- this.moveSheetToBreakpoint = moveSheetToBreakpoint;
2040
- this.gesture.enable(true);
2041
- /**
2042
- * When backdrop interaction is allowed, nested router outlets from child routes
2043
- * may block pointer events to parent content. Apply passthrough styles only when
2044
- * the modal was the sole content of a child route page.
2045
- * See https://github.com/ionic-team/ionic-framework/issues/30700
2046
- */
2047
- const backdropNotBlocking = this.showBackdrop === false || this.focusTrap === false || backdropBreakpoint > 0;
2048
- if (backdropNotBlocking) {
2049
- this.setupChildRoutePassthrough();
2050
- }
2051
- }
2052
- /**
2053
- * For sheet modals that allow background interaction, sets up pointer-events
2054
- * passthrough on child route page wrappers and nested router outlets.
2055
- */
2056
- setupChildRoutePassthrough() {
2057
- var _a;
2058
- // Cache the page parent for cleanup
2059
- this.cachedPageParent = this.getOriginalPageParent();
2060
- const pageParent = this.cachedPageParent;
2061
- // Skip ion-app (controller modals) and pages with visible sibling content next to the modal
2062
- if (!pageParent || pageParent.tagName === 'ION-APP') {
2063
- return;
2064
- }
2065
- const hasVisibleContent = Array.from(pageParent.children).some((child) => {
2066
- var _a;
2067
- return child !== this.el &&
2068
- !(child instanceof H && window.getComputedStyle(child).display === 'none') &&
2069
- child.tagName !== 'TEMPLATE' &&
2070
- child.tagName !== 'SLOT' &&
2071
- !(child.nodeType === Node.TEXT_NODE && !((_a = child.textContent) === null || _a === void 0 ? void 0 : _a.trim()));
2072
- });
2073
- if (hasVisibleContent) {
2074
- return;
2075
- }
2076
- // Child route case: page only contained the modal
2077
- pageParent.classList.add('ion-page-overlay-passthrough');
2078
- // Also make nested router outlets passthrough
2079
- const routerOutlet = pageParent.parentElement;
2080
- if ((routerOutlet === null || routerOutlet === void 0 ? void 0 : routerOutlet.tagName) === 'ION-ROUTER-OUTLET' && ((_a = routerOutlet.parentElement) === null || _a === void 0 ? void 0 : _a.tagName) !== 'ION-APP') {
2081
- routerOutlet.style.setProperty('pointer-events', 'none');
2082
- routerOutlet.setAttribute('data-overlay-passthrough', 'true');
2083
- }
2084
- }
2085
- /**
2086
- * Finds the ion-page ancestor of the modal's original parent location.
2087
- */
2088
- getOriginalPageParent() {
2089
- if (!this.cachedOriginalParent) {
2090
- return null;
2091
- }
2092
- let pageParent = this.cachedOriginalParent;
2093
- while (pageParent && !pageParent.classList.contains('ion-page')) {
2094
- pageParent = pageParent.parentElement;
2095
- }
2096
- return pageParent;
2097
- }
2098
- /**
2099
- * Removes passthrough styles added by setupChildRoutePassthrough.
2100
- */
2101
- cleanupChildRoutePassthrough() {
2102
- const pageParent = this.cachedPageParent;
2103
- if (!pageParent) {
2104
- return;
2105
- }
2106
- pageParent.classList.remove('ion-page-overlay-passthrough');
2107
- const routerOutlet = pageParent.parentElement;
2108
- if (routerOutlet === null || routerOutlet === void 0 ? void 0 : routerOutlet.hasAttribute('data-overlay-passthrough')) {
2109
- routerOutlet.style.removeProperty('pointer-events');
2110
- routerOutlet.removeAttribute('data-overlay-passthrough');
2111
- }
2112
- // Clear the cached reference
2113
- this.cachedPageParent = undefined;
2114
- }
2115
- sheetOnDismiss() {
2116
- /**
2117
- * While the gesture animation is finishing
2118
- * it is possible for a user to tap the backdrop.
2119
- * This would result in the dismiss animation
2120
- * being played again. Typically this is avoided
2121
- * by setting `presented = false` on the overlay
2122
- * component; however, we cannot do that here as
2123
- * that would prevent the element from being
2124
- * removed from the DOM.
2125
- */
2126
- this.gestureAnimationDismissing = true;
2127
- this.animation.onFinish(async () => {
2128
- this.currentBreakpoint = 0;
2129
- this.ionBreakpointDidChange.emit({ breakpoint: this.currentBreakpoint });
2130
- await this.dismiss(undefined, GESTURE);
2131
- this.gestureAnimationDismissing = false;
2132
- });
2133
- }
2134
- /**
2135
- * Dismiss the modal overlay after it has been presented.
2136
- * This is a no-op if the overlay has not been presented yet. If you want
2137
- * to remove an overlay from the DOM that was never presented, use the
2138
- * [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
2139
- *
2140
- * @param data Any data to emit in the dismiss events.
2141
- * @param role The role of the element that is dismissing the modal.
2142
- * For example, `cancel` or `backdrop`.
2143
- */
2144
- async dismiss(data, role) {
2145
- var _a;
2146
- if (this.gestureAnimationDismissing && role !== GESTURE) {
2147
- return false;
2148
- }
2149
- /**
2150
- * Because the canDismiss check below is async,
2151
- * we need to claim a lock before the check happens,
2152
- * in case the dismiss transition does run.
2153
- */
2154
- const unlock = await this.lockController.lock();
2155
- /**
2156
- * Dismiss all child modals. This is especially important in
2157
- * Angular and React because it's possible to lose control of a child
2158
- * modal when the parent modal is dismissed.
2159
- */
2160
- await this.dismissNestedModals();
2161
- /**
2162
- * If a canDismiss handler is responsible
2163
- * for calling the dismiss method, we should
2164
- * not run the canDismiss check again.
2165
- */
2166
- if (role !== 'handler' && !(await this.checkCanDismiss(data, role))) {
2167
- unlock();
2168
- return false;
2169
- }
2170
- const { presentingElement } = this;
2171
- /**
2172
- * We need to start the status bar change
2173
- * before the animation so that the change
2174
- * finishes when the dismiss animation does.
2175
- */
2176
- const hasCardModal = presentingElement !== undefined;
2177
- if (hasCardModal && getIonMode(this) === 'ios') {
2178
- setCardStatusBarDefault(this.statusBarStyle);
2179
- }
2180
- /* tslint:disable-next-line */
2181
- if (typeof window !== 'undefined' && this.keyboardOpenCallback) {
2182
- window.removeEventListener(KEYBOARD_DID_OPEN, this.keyboardOpenCallback);
2183
- this.keyboardOpenCallback = undefined;
2184
- }
2185
- const dismissed = await dismiss(this, data, role, 'modalLeave', iosLeaveAnimation, mdLeaveAnimation, {
2186
- presentingEl: presentingElement,
2187
- currentBreakpoint: (_a = this.currentBreakpoint) !== null && _a !== void 0 ? _a : this.initialBreakpoint,
2188
- backdropBreakpoint: this.backdropBreakpoint,
2189
- expandToScroll: this.expandToScroll,
2190
- });
2191
- if (dismissed) {
2192
- const { delegate } = this.getDelegate();
2193
- await detachComponent(delegate, this.usersElement);
2194
- writeTask(() => this.el.classList.remove('show-modal'));
2195
- if (this.animation) {
2196
- this.animation.destroy();
2197
- }
2198
- if (this.gesture) {
2199
- this.gesture.destroy();
2200
- }
2201
- this.cleanupViewTransitionListener();
2202
- this.cleanupParentRemovalObserver();
2203
- this.cleanupChildRoutePassthrough();
2204
- }
2205
- this.currentBreakpoint = undefined;
2206
- this.animation = undefined;
2207
- unlock();
2208
- return dismissed;
2209
- }
2210
- /**
2211
- * Returns a promise that resolves when the modal did dismiss.
2212
- */
2213
- onDidDismiss() {
2214
- return eventMethod(this.el, 'ionModalDidDismiss');
2215
- }
2216
- /**
2217
- * Returns a promise that resolves when the modal will dismiss.
2218
- */
2219
- onWillDismiss() {
2220
- return eventMethod(this.el, 'ionModalWillDismiss');
2221
- }
2222
- /**
2223
- * Move a sheet style modal to a specific breakpoint.
2224
- *
2225
- * @param breakpoint The breakpoint value to move the sheet modal to.
2226
- * Must be a value defined in your `breakpoints` array.
2227
- */
2228
- async setCurrentBreakpoint(breakpoint) {
2229
- if (!this.isSheetModal) {
2230
- printIonWarning('[ion-modal] - setCurrentBreakpoint is only supported on sheet modals.');
2231
- return;
2232
- }
2233
- if (!this.breakpoints.includes(breakpoint)) {
2234
- printIonWarning(`[ion-modal] - Attempted to set invalid breakpoint value ${breakpoint}. Please double check that the breakpoint value is part of your defined breakpoints.`);
2235
- return;
2236
- }
2237
- const { currentBreakpoint, moveSheetToBreakpoint, canDismiss, breakpoints, animated } = this;
2238
- if (currentBreakpoint === breakpoint) {
2239
- return;
2240
- }
2241
- if (moveSheetToBreakpoint) {
2242
- this.sheetTransition = moveSheetToBreakpoint({
2243
- breakpoint,
2244
- breakpointOffset: 1 - currentBreakpoint,
2245
- canDismiss: canDismiss !== undefined && canDismiss !== true && breakpoints[0] === 0,
2246
- animated,
2247
- });
2248
- await this.sheetTransition;
2249
- this.sheetTransition = undefined;
2250
- }
2251
- }
2252
- /**
2253
- * Returns the current breakpoint of a sheet style modal
2254
- */
2255
- async getCurrentBreakpoint() {
2256
- return this.currentBreakpoint;
2257
- }
2258
- async moveToNextBreakpoint() {
2259
- const { breakpoints, currentBreakpoint } = this;
2260
- if (!breakpoints || currentBreakpoint == null) {
2261
- /**
2262
- * If the modal does not have breakpoints and/or the current
2263
- * breakpoint is not set, we can't move to the next breakpoint.
2264
- */
2265
- return false;
2266
- }
2267
- const allowedBreakpoints = breakpoints.filter((b) => b !== 0);
2268
- const currentBreakpointIndex = allowedBreakpoints.indexOf(currentBreakpoint);
2269
- const nextBreakpointIndex = (currentBreakpointIndex + 1) % allowedBreakpoints.length;
2270
- const nextBreakpoint = allowedBreakpoints[nextBreakpointIndex];
2271
- /**
2272
- * Sets the current breakpoint to the next available breakpoint.
2273
- * If the current breakpoint is the last breakpoint, we set the current
2274
- * breakpoint to the first non-zero breakpoint to avoid dismissing the sheet.
2275
- */
2276
- await this.setCurrentBreakpoint(nextBreakpoint);
2277
- return true;
2278
- }
2279
- initViewTransitionListener() {
2280
- // Only enable for iOS card modals when no custom animations are provided
2281
- if (getIonMode(this) !== 'ios' || !this.presentingElement || this.enterAnimation || this.leaveAnimation) {
2282
- return;
2283
- }
2284
- // Set initial view state
2285
- this.currentViewIsPortrait = window.innerWidth < 768;
2286
- }
2287
- handleViewTransition() {
2288
- const isPortrait = window.innerWidth < 768;
2289
- // Only transition if view state actually changed
2290
- if (this.currentViewIsPortrait === isPortrait) {
2291
- return;
2292
- }
2293
- // Cancel any ongoing transition animation
2294
- if (this.viewTransitionAnimation) {
2295
- this.viewTransitionAnimation.destroy();
2296
- this.viewTransitionAnimation = undefined;
2297
- }
2298
- const { presentingElement } = this;
2299
- if (!presentingElement) {
2300
- return;
2301
- }
2302
- // Create transition animation
2303
- let transitionAnimation;
2304
- if (this.currentViewIsPortrait && !isPortrait) {
2305
- // Portrait to landscape transition
2306
- transitionAnimation = portraitToLandscapeTransition(this.el, {
2307
- presentingEl: presentingElement});
2308
- }
2309
- else {
2310
- // Landscape to portrait transition
2311
- transitionAnimation = landscapeToPortraitTransition(this.el, {
2312
- presentingEl: presentingElement});
2313
- }
2314
- // Update state and play animation
2315
- this.currentViewIsPortrait = isPortrait;
2316
- this.viewTransitionAnimation = transitionAnimation;
2317
- transitionAnimation.play().then(() => {
2318
- this.viewTransitionAnimation = undefined;
2319
- // After orientation transition, recreate the swipe-to-close gesture
2320
- // with updated animation that reflects the new presenting element state
2321
- this.reinitSwipeToClose();
2322
- });
2323
- }
2324
- cleanupViewTransitionListener() {
2325
- // Clear any pending resize timeout
2326
- if (this.resizeTimeout) {
2327
- clearTimeout(this.resizeTimeout);
2328
- this.resizeTimeout = undefined;
2329
- }
2330
- if (this.viewTransitionAnimation) {
2331
- this.viewTransitionAnimation.destroy();
2332
- this.viewTransitionAnimation = undefined;
2333
- }
2334
- }
2335
- reinitSwipeToClose() {
2336
- // Only reinitialize if we have a presenting element and are on iOS
2337
- if (getIonMode(this) !== 'ios' || !this.presentingElement) {
2338
- return;
2339
- }
2340
- // Clean up existing gesture and animation
2341
- if (this.gesture) {
2342
- this.gesture.destroy();
2343
- this.gesture = undefined;
2344
- }
2345
- if (this.animation) {
2346
- // Properly end the progress-based animation at initial state before destroying
2347
- // to avoid leaving modal in intermediate swipe position
2348
- this.animation.progressEnd(0, 0, 0);
2349
- this.animation.destroy();
2350
- this.animation = undefined;
2351
- }
2352
- // Force the modal back to the correct position or it could end up
2353
- // in a weird state after destroying the animation
2354
- raf(() => {
2355
- this.ensureCorrectModalPosition();
2356
- this.initSwipeToClose();
2357
- });
2358
- }
2359
- ensureCorrectModalPosition() {
2360
- const { el, presentingElement } = this;
2361
- const root = getElementRoot(el);
2362
- const wrapperEl = root.querySelector('.modal-wrapper');
2363
- if (wrapperEl) {
2364
- wrapperEl.style.transform = 'translateY(0vh)';
2365
- wrapperEl.style.opacity = '1';
2366
- }
2367
- if ((presentingElement === null || presentingElement === void 0 ? void 0 : presentingElement.tagName) === 'ION-MODAL') {
2368
- const isPortrait = window.innerWidth < 768;
2369
- if (isPortrait) {
2370
- const transformOffset = !CSS.supports('width', 'max(0px, 1px)')
2371
- ? '30px'
2372
- : 'max(30px, var(--ion-safe-area-top))';
2373
- const scale = SwipeToCloseDefaults.MIN_PRESENTING_SCALE;
2374
- presentingElement.style.transform = `translateY(${transformOffset}) scale(${scale})`;
2375
- }
2376
- else {
2377
- presentingElement.style.transform = 'translateY(0px) scale(1)';
2378
- }
2379
- }
2380
- }
2381
- async dismissNestedModals() {
2382
- const nestedModals = document.querySelectorAll(`ion-modal[data-parent-ion-modal="${this.el.id}"]`);
2383
- nestedModals === null || nestedModals === void 0 ? void 0 : nestedModals.forEach(async (modal) => {
2384
- await modal.dismiss(undefined, 'parent-dismissed');
2385
- });
2386
- }
2387
- initParentRemovalObserver() {
2388
- if (typeof MutationObserver === 'undefined') {
2389
- return;
2390
- }
2391
- // Only observe if we have a cached parent and are in browser environment
2392
- if (typeof window === 'undefined' || !this.cachedOriginalParent) {
2393
- return;
2394
- }
2395
- // Don't observe document or fragment nodes as they can't be "removed"
2396
- if (this.cachedOriginalParent.nodeType === Node.DOCUMENT_NODE ||
2397
- this.cachedOriginalParent.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
2398
- return;
2399
- }
2400
- /**
2401
- * Don't observe for controller-based modals or when the parent is the
2402
- * app root (document.body or ion-app). These parents won't be removed,
2403
- * and observing document.body with subtree: true causes performance
2404
- * issues with frameworks like Angular during change detection.
2405
- */
2406
- if (this.hasController ||
2407
- this.cachedOriginalParent === document.body ||
2408
- this.cachedOriginalParent.tagName === 'ION-APP') {
2409
- return;
2410
- }
2411
- this.parentRemovalObserver = new MutationObserver((mutations) => {
2412
- mutations.forEach((mutation) => {
2413
- if (mutation.type === 'childList' && mutation.removedNodes.length > 0) {
2414
- // Check if our cached original parent was removed
2415
- const cachedParentWasRemoved = Array.from(mutation.removedNodes).some((node) => {
2416
- var _a, _b;
2417
- const isDirectMatch = node === this.cachedOriginalParent;
2418
- const isContainedMatch = this.cachedOriginalParent
2419
- ? (_b = (_a = node).contains) === null || _b === void 0 ? void 0 : _b.call(_a, this.cachedOriginalParent)
2420
- : false;
2421
- return isDirectMatch || isContainedMatch;
2422
- });
2423
- // Also check if parent is no longer connected to DOM
2424
- const cachedParentDisconnected = this.cachedOriginalParent && !this.cachedOriginalParent.isConnected;
2425
- if (cachedParentWasRemoved || cachedParentDisconnected) {
2426
- this.dismiss(undefined, 'parent-removed');
2427
- // Release the reference to the cached original parent
2428
- // so we don't have a memory leak
2429
- this.cachedOriginalParent = undefined;
2430
- }
2431
- }
2432
- });
2433
- });
2434
- // Observe document body with subtree to catch removals at any level
2435
- this.parentRemovalObserver.observe(document.body, {
2436
- childList: true,
2437
- subtree: true,
2438
- });
2439
- }
2440
- cleanupParentRemovalObserver() {
2441
- var _a;
2442
- (_a = this.parentRemovalObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
2443
- this.parentRemovalObserver = undefined;
2444
- }
2445
- render() {
2446
- const { handle, isSheetModal, presentingElement, htmlAttributes, handleBehavior, inheritedAttributes, focusTrap, expandToScroll, } = this;
2447
- const showHandle = handle !== false && isSheetModal;
2448
- const mode = getIonMode(this);
2449
- const isCardModal = presentingElement !== undefined && mode === 'ios';
2450
- const isHandleCycle = handleBehavior === 'cycle';
2451
- const isSheetModalWithHandle = isSheetModal && showHandle;
2452
- return (h(Host, Object.assign({ key: '9a75095a13de0cfc96f1fa69fd92777d25da8daa', "no-router": true,
2453
- // Allow the modal to be navigable when the handle is focusable
2454
- tabIndex: isHandleCycle && isSheetModalWithHandle ? 0 : -1 }, htmlAttributes, { style: {
2455
- zIndex: `${20000 + this.overlayIndex}`,
2456
- }, class: Object.assign({ [mode]: true, ['modal-default']: !isCardModal && !isSheetModal, [`modal-card`]: isCardModal, [`modal-sheet`]: isSheetModal, [`modal-no-expand-scroll`]: isSheetModal && !expandToScroll, 'overlay-hidden': true, [FOCUS_TRAP_DISABLE_CLASS]: focusTrap === false }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonModalDidPresent: this.onLifecycle, onIonModalWillPresent: this.onLifecycle, onIonModalWillDismiss: this.onLifecycle, onIonModalDidDismiss: this.onLifecycle, onFocus: this.onModalFocus }), h("ion-backdrop", { key: 'd02612d8063ef20f59f173ff47795f71cdaaf63e', ref: (el) => (this.backdropEl = el), visible: this.showBackdrop, tappable: this.backdropDismiss, part: "backdrop" }), mode === 'ios' && h("div", { key: '708761b70a93e34c08faae079569f444c7416a4c', class: "modal-shadow" }), h("div", Object.assign({ key: 'a72226ff1a98229f9bfd9207b98fc57e02baa430',
2457
- /*
2458
- role and aria-modal must be used on the
2459
- same element. They must also be set inside the
2460
- shadow DOM otherwise ion-button will not be highlighted
2461
- when using VoiceOver: https://bugs.webkit.org/show_bug.cgi?id=247134
2462
- */
2463
- role: "dialog" }, inheritedAttributes, { "aria-modal": "true", class: "modal-wrapper ion-overlay-wrapper", part: "content", ref: (el) => (this.wrapperEl = el) }), showHandle && (h("button", { key: '0547f32323882660221385d84d492929caa77c6b', class: "modal-handle",
2464
- // Prevents the handle from receiving keyboard focus when it does not cycle
2465
- tabIndex: !isHandleCycle ? -1 : 0, "aria-label": "Activate to adjust the size of the dialog overlaying the screen", onClick: isHandleCycle ? this.onHandleClick : undefined, part: "handle", ref: (el) => (this.dragHandleEl = el) })), h("slot", { key: 'fccbd64518b6fa22f9e874deb6b4ba55d8d89c3b', onSlotchange: this.onSlotChange }))));
2466
- }
2467
- get el() { return this; }
2468
- static get watchers() { return {
2469
- "isOpen": ["onIsOpenChange"],
2470
- "trigger": ["triggerChanged"]
2471
- }; }
2472
- static get style() { return {
2473
- ios: modalIosCss(),
2474
- md: modalMdCss()
2475
- }; }
2476
- }, [289, "ion-modal", {
2477
- "hasController": [4, "has-controller"],
2478
- "overlayIndex": [2, "overlay-index"],
2479
- "delegate": [16],
2480
- "keyboardClose": [4, "keyboard-close"],
2481
- "enterAnimation": [16],
2482
- "leaveAnimation": [16],
2483
- "breakpoints": [16],
2484
- "expandToScroll": [4, "expand-to-scroll"],
2485
- "initialBreakpoint": [2, "initial-breakpoint"],
2486
- "backdropBreakpoint": [2, "backdrop-breakpoint"],
2487
- "handle": [4],
2488
- "handleBehavior": [1, "handle-behavior"],
2489
- "component": [1],
2490
- "componentProps": [16],
2491
- "cssClass": [1, "css-class"],
2492
- "backdropDismiss": [4, "backdrop-dismiss"],
2493
- "showBackdrop": [4, "show-backdrop"],
2494
- "animated": [4],
2495
- "presentingElement": [16],
2496
- "htmlAttributes": [16],
2497
- "isOpen": [4, "is-open"],
2498
- "trigger": [1],
2499
- "keepContentsMounted": [4, "keep-contents-mounted"],
2500
- "focusTrap": [4, "focus-trap"],
2501
- "canDismiss": [4, "can-dismiss"],
2502
- "isSheetModal": [32],
2503
- "presented": [32],
2504
- "present": [64],
2505
- "dismiss": [64],
2506
- "onDidDismiss": [64],
2507
- "onWillDismiss": [64],
2508
- "setCurrentBreakpoint": [64],
2509
- "getCurrentBreakpoint": [64]
2510
- }, [[9, "resize", "onWindowResize"]], {
2511
- "isOpen": ["onIsOpenChange"],
2512
- "trigger": ["triggerChanged"]
2513
- }]);
2514
- const LIFECYCLE_MAP = {
2515
- ionModalDidPresent: 'ionViewDidEnter',
2516
- ionModalWillPresent: 'ionViewWillEnter',
2517
- ionModalWillDismiss: 'ionViewWillLeave',
2518
- ionModalDidDismiss: 'ionViewDidLeave',
2519
- };
2520
- function defineCustomElement() {
2521
- if (typeof customElements === "undefined") {
2522
- return;
2523
- }
2524
- const components = ["ion-modal", "ion-backdrop"];
2525
- components.forEach(tagName => { switch (tagName) {
2526
- case "ion-modal":
2527
- if (!customElements.get(transformTag(tagName))) {
2528
- customElements.define(transformTag(tagName), Modal);
2529
- }
2530
- break;
2531
- case "ion-backdrop":
2532
- if (!customElements.get(transformTag(tagName))) {
2533
- defineCustomElement$1();
2534
- }
2535
- break;
2536
- } });
2537
- }
2538
-
2539
- export { Modal as M, defineCustomElement as d };
2540
- //# sourceMappingURL=p-DBeEVQxe.js.map
2541
-
2542
- //# sourceMappingURL=p-DBeEVQxe.js.map