@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,2053 +1,4 @@
1
- import { j as printIonError, f as printIonWarning, p as proxyCustomElement, H, c as createEvent, w as writeTask, h, e as Host, t as transformTag } from './p-abe_AkUW.js';
2
- import { startFocusVisible } from './p-BmVRXR1y.js';
3
- import { r as raf, g as getElementRoot, d as renderHiddenInput } from './p-CBE-1aIM.js';
4
- import { F as FOCUS_TRAP_DISABLE_CLASS } from './p-DQU52fBY.js';
5
- import { i as isRTL } from './p-C53feagD.js';
6
- import { c as createColorClasses } from './p-DiVJyqlX.js';
7
- import { c as chevronDown, f as caretUpSharp, g as chevronForward, h as caretDownSharp, a as chevronBack } from './p-jWFeuAB5.js';
8
- import { g as getIonMode } from './p-DEAe7QEa.js';
9
- import { i as isBefore, a as isAfter, g as getPreviousMonth, b as getNextMonth, c as isSameDay, d as getDay, e as generateDayAriaLabel, v as validateParts, f as getPartsFromCalendarDay, h as getNextYear, j as getPreviousYear, k as getEndOfWeek, l as getStartOfWeek, m as getPreviousDay, n as getNextDay, o as getPreviousWeek, p as getNextWeek, q as parseMinParts, r as parseMaxParts, s as parseDate, w as warnIfValueOutOfBounds, t as parseAmPm, u as clampDate, x as convertToArrayOfNumbers, y as convertDataToISO, z as getToday, A as getClosestValidDate, B as generateMonths, C as getNumDaysInMonth, D as getCombinedDateColumnData, E as getMonthColumnData, F as getDayColumnData, G as getYearColumnData, H as isMonthFirstLocale, I as getTimeColumnsData, J as isLocaleDayPeriodRTL, K as getDaysOfWeek, L as getMonthAndYear, M as getDaysOfMonth, N as getHourCycle, O as getLocalizedTime, P as getLocalizedDateTime, Q as formatValue, R as calculateHourFromAMPM } from './p-CTM7uu-W.js';
10
- import { d as defineCustomElement$a } from './p-D-0nEl_9.js';
11
- import { d as defineCustomElement$9 } from './p-Dw849bTq.js';
12
- import { d as defineCustomElement$8 } from './p-BRke83qH.js';
13
- import { d as defineCustomElement$7 } from './p-CqzV2Pip.js';
14
- import { d as defineCustomElement$6 } from './p-_OXvEtk1.js';
15
- import { d as defineCustomElement$5 } from './p-DpZBHf1M.js';
16
- import { d as defineCustomElement$4 } from './p-JTTQkHB9.js';
17
- import { d as defineCustomElement$3 } from './p-cCiT8ucm.js';
18
- import { d as defineCustomElement$2 } from './p-DskTArru.js';
19
-
1
+ import{j as t,f as e,p as a,H as i,c as n,w as o,h as r,e as s,t as d}from"./p-DQAmWfm1.js";import{startFocusVisible as l}from"./p-BmVRXR1y.js";import{r as h,g as c,d as p}from"./p-BHQVufb8.js";import{F as m}from"./p-Dzmy2KMF.js";import{i as u}from"./p-C53feagD.js";import{c as b}from"./p-DiVJyqlX.js";import{c as y,f as g,g as f,h as x,a as v}from"./p-jWFeuAB5.js";import{g as w}from"./p-DexEOBMU.js";import{i as k,a as j,g as C,b as O,c as P,d as D,e as V,v as z,f as $,h as A,j as T,k as E,l as S,m as B,n as R,o as W,p as I,q as M,r as F,s as L,w as H,t as q,u as G,x as Y,y as Q,z as X,A as K,B as N,C as U,D as J,E as Z,F as _,G as tt,H as et,I as at,J as it,K as nt,L as ot,M as rt,N as st,O as dt,P as lt,Q as ht,R as ct}from"./p-B8rkbvHJ.js";import{d as pt}from"./p-BGU8Nymd.js";import{d as mt}from"./p-B6K4Vevt.js";import{d as ut}from"./p-DVAa5Ick.js";import{d as bt}from"./p-wRbQpgeV.js";import{d as yt}from"./p-RvBk4hGw.js";import{d as gt}from"./p-C_xZxwXS.js";import{d as ft}from"./p-DXFVmcjn.js";import{d as xt}from"./p-lwDXTYn3.js";import{d as vt}from"./p-CQOdiSAf.js";
20
2
  /*!
21
3
  * (C) Ionic http://ionicframework.com - MIT License
22
- */
23
- const isYearDisabled = (refYear, minParts, maxParts) => {
24
- if (minParts && minParts.year > refYear) {
25
- return true;
26
- }
27
- if (maxParts && maxParts.year < refYear) {
28
- return true;
29
- }
30
- return false;
31
- };
32
- /**
33
- * Returns true if a given day should
34
- * not be interactive according to its value,
35
- * or the max/min dates.
36
- */
37
- const isDayDisabled = (refParts, minParts, maxParts, dayValues) => {
38
- /**
39
- * If this is a filler date (i.e. padding)
40
- * then the date is disabled.
41
- */
42
- if (refParts.day === null) {
43
- return true;
44
- }
45
- /**
46
- * If user passed in a list of acceptable day values
47
- * check to make sure that the date we are looking
48
- * at is in this array.
49
- */
50
- if (dayValues !== undefined && !dayValues.includes(refParts.day)) {
51
- return true;
52
- }
53
- /**
54
- * Given a min date, perform the following
55
- * checks. If any of them are true, then the
56
- * day should be disabled:
57
- * 1. Is the current year < the min allowed year?
58
- * 2. Is the current year === min allowed year,
59
- * but the current month < the min allowed month?
60
- * 3. Is the current year === min allowed year, the
61
- * current month === min allow month, but the current
62
- * day < the min allowed day?
63
- */
64
- if (minParts && isBefore(refParts, minParts)) {
65
- return true;
66
- }
67
- /**
68
- * Given a max date, perform the following
69
- * checks. If any of them are true, then the
70
- * day should be disabled:
71
- * 1. Is the current year > the max allowed year?
72
- * 2. Is the current year === max allowed year,
73
- * but the current month > the max allowed month?
74
- * 3. Is the current year === max allowed year, the
75
- * current month === max allow month, but the current
76
- * day > the max allowed day?
77
- */
78
- if (maxParts && isAfter(refParts, maxParts)) {
79
- return true;
80
- }
81
- /**
82
- * If none of these checks
83
- * passed then the date should
84
- * be interactive.
85
- */
86
- return false;
87
- };
88
- /**
89
- * Given a locale, a date, the selected date(s), and today's date,
90
- * generate the state for a given calendar day button.
91
- */
92
- const getCalendarDayState = (locale, refParts, activeParts, todayParts, minParts, maxParts, dayValues) => {
93
- /**
94
- * activeParts signals what day(s) are currently selected in the datetime.
95
- * If multiple="true", this will be an array, but the logic in this util
96
- * is the same whether we have one selected day or many because we're only
97
- * calculating the state for one button. So, we treat a single activeParts value
98
- * the same as an array of length one.
99
- */
100
- const activePartsArray = Array.isArray(activeParts) ? activeParts : [activeParts];
101
- /**
102
- * The day button is active if it is selected, or in other words, if refParts
103
- * matches at least one selected date.
104
- */
105
- const isActive = activePartsArray.find((parts) => isSameDay(refParts, parts)) !== undefined;
106
- const isToday = isSameDay(refParts, todayParts);
107
- const disabled = isDayDisabled(refParts, minParts, maxParts, dayValues);
108
- /**
109
- * Note that we always return one object regardless of whether activeParts
110
- * was an array, since we pare down to one value for isActive.
111
- */
112
- return {
113
- disabled,
114
- isActive,
115
- isToday,
116
- ariaSelected: isActive ? 'true' : null,
117
- ariaLabel: generateDayAriaLabel(locale, isToday, refParts),
118
- text: refParts.day != null ? getDay(locale, refParts) : null,
119
- };
120
- };
121
- /**
122
- * Returns `true` if the month is disabled given the
123
- * current date value and min/max date constraints.
124
- */
125
- const isMonthDisabled = (refParts, { minParts, maxParts, }) => {
126
- // If the year is disabled then the month is disabled.
127
- if (isYearDisabled(refParts.year, minParts, maxParts)) {
128
- return true;
129
- }
130
- // If the date value is before the min date, then the month is disabled.
131
- // If the date value is after the max date, then the month is disabled.
132
- if ((minParts && isBefore(refParts, minParts)) || (maxParts && isAfter(refParts, maxParts))) {
133
- return true;
134
- }
135
- return false;
136
- };
137
- /**
138
- * Given a working date, an optional minimum date range,
139
- * and an optional maximum date range; determine if the
140
- * previous navigation button is disabled.
141
- */
142
- const isPrevMonthDisabled = (refParts, minParts, maxParts) => {
143
- const prevMonth = Object.assign(Object.assign({}, getPreviousMonth(refParts)), { day: null });
144
- return isMonthDisabled(prevMonth, {
145
- minParts,
146
- maxParts,
147
- });
148
- };
149
- /**
150
- * Given a working date and a maximum date range,
151
- * determine if the next navigation button is disabled.
152
- */
153
- const isNextMonthDisabled = (refParts, maxParts) => {
154
- const nextMonth = Object.assign(Object.assign({}, getNextMonth(refParts)), { day: null });
155
- return isMonthDisabled(nextMonth, {
156
- maxParts,
157
- });
158
- };
159
- /**
160
- * Given the value of the highlightedDates property
161
- * and an ISO string, return the styles to use for
162
- * that date, or undefined if none are found.
163
- */
164
- const getHighlightStyles = (highlightedDates, dateIsoString, el) => {
165
- if (Array.isArray(highlightedDates)) {
166
- const dateStringWithoutTime = dateIsoString.split('T')[0];
167
- const matchingHighlight = highlightedDates.find((hd) => hd.date === dateStringWithoutTime);
168
- if (matchingHighlight) {
169
- return {
170
- textColor: matchingHighlight.textColor,
171
- backgroundColor: matchingHighlight.backgroundColor,
172
- border: matchingHighlight.border,
173
- };
174
- }
175
- }
176
- else {
177
- /**
178
- * Wrap in a try-catch to prevent exceptions in the user's function
179
- * from interrupting the calendar's rendering.
180
- */
181
- try {
182
- return highlightedDates(dateIsoString);
183
- }
184
- catch (e) {
185
- printIonError('[ion-datetime] - Exception thrown from provided `highlightedDates` callback. Please check your function and try again.', el, e);
186
- }
187
- }
188
- return undefined;
189
- };
190
-
191
- /*!
192
- * (C) Ionic http://ionicframework.com - MIT License
193
- */
194
- /**
195
- * If a time zone is provided in the format options, the rendered text could
196
- * differ from what was selected in the Datetime, which could cause
197
- * confusion.
198
- */
199
- const warnIfTimeZoneProvided = (el, formatOptions) => {
200
- var _a, _b, _c, _d;
201
- if (((_a = formatOptions === null || formatOptions === void 0 ? void 0 : formatOptions.date) === null || _a === void 0 ? void 0 : _a.timeZone) ||
202
- ((_b = formatOptions === null || formatOptions === void 0 ? void 0 : formatOptions.date) === null || _b === void 0 ? void 0 : _b.timeZoneName) ||
203
- ((_c = formatOptions === null || formatOptions === void 0 ? void 0 : formatOptions.time) === null || _c === void 0 ? void 0 : _c.timeZone) ||
204
- ((_d = formatOptions === null || formatOptions === void 0 ? void 0 : formatOptions.time) === null || _d === void 0 ? void 0 : _d.timeZoneName)) {
205
- printIonWarning('[ion-datetime] - "timeZone" and "timeZoneName" are not supported in "formatOptions".', el);
206
- }
207
- };
208
- const checkForPresentationFormatMismatch = (el, presentation, formatOptions) => {
209
- // formatOptions is not required
210
- if (!formatOptions)
211
- return;
212
- // If formatOptions is provided, the date and/or time objects are required, depending on the presentation
213
- switch (presentation) {
214
- case 'date':
215
- case 'month-year':
216
- case 'month':
217
- case 'year':
218
- if (formatOptions.date === undefined) {
219
- printIonWarning(`[ion-datetime] - The '${presentation}' presentation requires a date object in formatOptions.`, el);
220
- }
221
- break;
222
- case 'time':
223
- if (formatOptions.time === undefined) {
224
- printIonWarning(`[ion-datetime] - The 'time' presentation requires a time object in formatOptions.`, el);
225
- }
226
- break;
227
- case 'date-time':
228
- case 'time-date':
229
- if (formatOptions.date === undefined && formatOptions.time === undefined) {
230
- printIonWarning(`[ion-datetime] - The '${presentation}' presentation requires either a date or time object (or both) in formatOptions.`, el);
231
- }
232
- break;
233
- }
234
- };
235
-
236
- const datetimeIosCss = () => `:host{display:flex;flex-flow:column;background:var(--background);overflow:hidden}:host(.datetime-size-fixed){width:auto;height:auto}:host(.datetime-size-fixed:not(.datetime-prefer-wheel)){max-width:350px}:host(.datetime-size-fixed.datetime-prefer-wheel){min-width:350px;max-width:max-content}:host(.datetime-size-cover){width:100%}:host .calendar-body,:host .datetime-year{opacity:0}:host(:not(.datetime-ready)) .datetime-year{position:absolute;pointer-events:none}:host(.datetime-ready) .calendar-body{opacity:1}:host(.datetime-ready) .datetime-year{display:none;opacity:1}:host .wheel-order-year-first .day-column{order:3;text-align:end}:host .wheel-order-year-first .month-column{order:2;text-align:end}:host .wheel-order-year-first .year-column{order:1;text-align:start}:host .datetime-calendar,:host .datetime-year{display:flex;flex:1 1 auto;flex-flow:column}:host(.show-month-and-year) .datetime-year{display:flex}:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{display:none}:host(.month-year-picker-open) .datetime-footer{display:none}:host(.datetime-disabled){pointer-events:none}:host(.datetime-disabled) .calendar-days-of-week,:host(.datetime-disabled) .datetime-time{opacity:0.4}:host(.datetime-readonly){pointer-events:none;}:host(.datetime-readonly) .calendar-action-buttons,:host(.datetime-readonly) .calendar-body,:host(.datetime-readonly) .datetime-year{pointer-events:initial}:host(.datetime-readonly) .calendar-day[disabled]:not(.calendar-day-constrained),:host(.datetime-readonly) .datetime-action-buttons ion-button[disabled]{opacity:1}:host .datetime-header .datetime-title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host .datetime-action-buttons.has-clear-button{width:100%}:host .datetime-action-buttons ion-buttons{display:flex;justify-content:space-between}.datetime-action-buttons .datetime-action-buttons-container{display:flex}:host .calendar-action-buttons{display:flex;justify-content:space-between}:host .calendar-action-buttons ion-button{--background:transparent}:host .calendar-days-of-week{display:grid;grid-template-columns:repeat(7, 1fr);text-align:center}.calendar-days-of-week .day-of-week{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0}:host .calendar-body{display:flex;flex-grow:1;scroll-snap-type:x mandatory;overflow-x:scroll;overflow-y:hidden;scrollbar-width:none;outline:none}:host .calendar-body .calendar-month{display:flex;flex-flow:column;scroll-snap-align:start;scroll-snap-stop:always;flex-shrink:0;width:100%}:host .calendar-body .calendar-month-disabled{scroll-snap-align:none}:host .calendar-body::-webkit-scrollbar{display:none}:host .calendar-body .calendar-month-grid{display:grid;grid-template-columns:repeat(7, 1fr)}:host .calendar-day-wrapper{display:flex;align-items:center;justify-content:center;min-width:0;min-height:0;overflow:visible}.calendar-day{border-radius:50%;-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:0px;padding-bottom:0px;-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px;margin-top:0px;margin-bottom:0px;display:flex;position:relative;align-items:center;justify-content:center;border:none;outline:none;background:none;color:currentColor;font-family:var(--ion-font-family, inherit);cursor:pointer;appearance:none;z-index:0}:host .calendar-day[disabled]{pointer-events:none;opacity:0.4}.calendar-day:not(.calendar-day-adjacent-day):focus{background:rgba(var(--ion-color-base-rgb), 0.2);box-shadow:0px 0px 0px 4px rgba(var(--ion-color-base-rgb), 0.2)}:host .datetime-time{display:flex;justify-content:space-between}:host(.datetime-presentation-time) .datetime-time{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}:host ion-popover{--height:200px}:host .time-header{display:flex;align-items:center}:host .time-body{border-radius:8px;-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:6px;padding-bottom:6px;display:flex;border:none;background:var(--ion-color-step-300, var(--ion-background-color-step-300, #edeef0));color:var(--ion-text-color, #000);font-family:inherit;font-size:inherit;cursor:pointer;appearance:none}:host .time-body-active{color:var(--ion-color-base)}:host(.in-item){position:static}:host(.show-month-and-year) .calendar-action-buttons .calendar-month-year-toggle{color:var(--ion-color-base)}.calendar-month-year{min-width:0}.calendar-month-year-toggle{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;position:relative;border:0;outline:none;background:transparent;cursor:pointer;z-index:1}.calendar-month-year-toggle::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0;transition:opacity 15ms linear, background-color 15ms linear;z-index:-1}.calendar-month-year-toggle.ion-focused::after{background:currentColor}.calendar-month-year-toggle:disabled{opacity:0.3;pointer-events:none}.calendar-month-year-toggle ion-icon{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:0;padding-inline-end:0;padding-top:0;padding-bottom:0;flex-shrink:0}.calendar-month-year-toggle #toggle-wrapper{display:inline-flex;align-items:center}ion-picker{--highlight-background:var(--wheel-highlight-background);--highlight-border-radius:var(--wheel-highlight-border-radius);--fade-background-rgb:var(--wheel-fade-background-rgb)}:host{--background:var(--ion-color-light, #f4f5f8);--background-rgb:var(--ion-color-light-rgb, 244, 245, 248);--title-color:var(--ion-color-step-600, var(--ion-text-color-step-400, #666666))}:host(.datetime-presentation-date-time:not(.datetime-prefer-wheel)),:host(.datetime-presentation-time-date:not(.datetime-prefer-wheel)),:host(.datetime-presentation-date:not(.datetime-prefer-wheel)){min-height:350px}:host .datetime-header{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:16px;padding-bottom:16px;border-bottom:0.55px solid var(--ion-color-step-200, var(--ion-background-color-step-200, #cccccc));font-size:min(0.875rem, 22.4px)}:host .datetime-header .datetime-title{color:var(--title-color)}:host .datetime-header .datetime-selected-date{margin-top:10px}.calendar-month-year-toggle{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:0px;padding-bottom:0px;min-height:44px;font-size:min(1rem, 25.6px);font-weight:600}.calendar-month-year-toggle.ion-focused::after{opacity:0.15}.calendar-month-year-toggle #toggle-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:8px;margin-inline-end:8px;margin-top:10px;margin-bottom:10px}:host .calendar-action-buttons .calendar-month-year-toggle ion-icon,:host .calendar-action-buttons ion-buttons ion-button{color:var(--ion-color-base)}:host .calendar-action-buttons ion-buttons{padding-left:0;padding-right:0;padding-top:8px;padding-bottom:0}:host .calendar-action-buttons ion-buttons ion-button{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}:host .calendar-days-of-week{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:0;padding-bottom:0;color:var(--ion-color-step-300, var(--ion-text-color-step-700, #b3b3b3));font-size:min(0.75rem, 19.2px);font-weight:600;line-height:24px;text-transform:uppercase}@supports (border-radius: mod(1px, 1px)){.calendar-days-of-week .day-of-week{width:clamp(20px, calc(mod(min(1rem, 24px), 24px) * 10), 100%);height:24px;overflow:hidden}.calendar-day{border-radius:max(8px, mod(min(1rem, 24px), 24px) * 10)}}@supports ((border-radius: mod(1px, 1px)) and (background: -webkit-named-image(apple-pay-logo-black)) and (not (contain-intrinsic-size: none))) or (not (border-radius: mod(1px, 1px))){.calendar-days-of-week .day-of-week{width:auto;height:auto;overflow:initial}.calendar-day{border-radius:32px}}:host .calendar-body .calendar-month .calendar-month-grid{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;align-items:center;height:calc(100% - 16px)}:host .calendar-day-wrapper{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;height:0;min-height:1rem}:host .calendar-day{width:40px;min-width:40px;height:40px;font-size:min(1.25rem, 32px)}.calendar-day.calendar-day-active{background:rgba(var(--ion-color-base-rgb), 0.2);font-size:min(1.375rem, 35.2px)}:host .calendar-day.calendar-day-today{color:var(--ion-color-base)}:host .calendar-day.calendar-day-active,:host .calendar-day.calendar-day-adjacent-day.calendar-day-active{color:var(--ion-color-base);font-weight:600}:host .calendar-day.calendar-day-today.calendar-day-active{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host .calendar-day.calendar-day-adjacent-day{color:var(--ion-color-step-300, var(--ion-text-color-step-700, #b3b3b3))}:host .datetime-time{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:8px;padding-bottom:16px;font-size:min(1rem, 25.6px)}:host .datetime-time .time-header{font-weight:600}:host .datetime-buttons{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;border-top:0.55px solid var(--ion-color-step-200, var(--ion-background-color-step-200, #cccccc))}:host .datetime-buttons ::slotted(ion-buttons),:host .datetime-buttons ion-buttons{display:flex;align-items:center;justify-content:space-between}:host .datetime-action-buttons{width:100%}`;
237
-
238
- const datetimeMdCss = () => `:host{display:flex;flex-flow:column;background:var(--background);overflow:hidden}:host(.datetime-size-fixed){width:auto;height:auto}:host(.datetime-size-fixed:not(.datetime-prefer-wheel)){max-width:350px}:host(.datetime-size-fixed.datetime-prefer-wheel){min-width:350px;max-width:max-content}:host(.datetime-size-cover){width:100%}:host .calendar-body,:host .datetime-year{opacity:0}:host(:not(.datetime-ready)) .datetime-year{position:absolute;pointer-events:none}:host(.datetime-ready) .calendar-body{opacity:1}:host(.datetime-ready) .datetime-year{display:none;opacity:1}:host .wheel-order-year-first .day-column{order:3;text-align:end}:host .wheel-order-year-first .month-column{order:2;text-align:end}:host .wheel-order-year-first .year-column{order:1;text-align:start}:host .datetime-calendar,:host .datetime-year{display:flex;flex:1 1 auto;flex-flow:column}:host(.show-month-and-year) .datetime-year{display:flex}:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{display:none}:host(.month-year-picker-open) .datetime-footer{display:none}:host(.datetime-disabled){pointer-events:none}:host(.datetime-disabled) .calendar-days-of-week,:host(.datetime-disabled) .datetime-time{opacity:0.4}:host(.datetime-readonly){pointer-events:none;}:host(.datetime-readonly) .calendar-action-buttons,:host(.datetime-readonly) .calendar-body,:host(.datetime-readonly) .datetime-year{pointer-events:initial}:host(.datetime-readonly) .calendar-day[disabled]:not(.calendar-day-constrained),:host(.datetime-readonly) .datetime-action-buttons ion-button[disabled]{opacity:1}:host .datetime-header .datetime-title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host .datetime-action-buttons.has-clear-button{width:100%}:host .datetime-action-buttons ion-buttons{display:flex;justify-content:space-between}.datetime-action-buttons .datetime-action-buttons-container{display:flex}:host .calendar-action-buttons{display:flex;justify-content:space-between}:host .calendar-action-buttons ion-button{--background:transparent}:host .calendar-days-of-week{display:grid;grid-template-columns:repeat(7, 1fr);text-align:center}.calendar-days-of-week .day-of-week{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0}:host .calendar-body{display:flex;flex-grow:1;scroll-snap-type:x mandatory;overflow-x:scroll;overflow-y:hidden;scrollbar-width:none;outline:none}:host .calendar-body .calendar-month{display:flex;flex-flow:column;scroll-snap-align:start;scroll-snap-stop:always;flex-shrink:0;width:100%}:host .calendar-body .calendar-month-disabled{scroll-snap-align:none}:host .calendar-body::-webkit-scrollbar{display:none}:host .calendar-body .calendar-month-grid{display:grid;grid-template-columns:repeat(7, 1fr)}:host .calendar-day-wrapper{display:flex;align-items:center;justify-content:center;min-width:0;min-height:0;overflow:visible}.calendar-day{border-radius:50%;-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:0px;padding-bottom:0px;-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px;margin-top:0px;margin-bottom:0px;display:flex;position:relative;align-items:center;justify-content:center;border:none;outline:none;background:none;color:currentColor;font-family:var(--ion-font-family, inherit);cursor:pointer;appearance:none;z-index:0}:host .calendar-day[disabled]{pointer-events:none;opacity:0.4}.calendar-day:not(.calendar-day-adjacent-day):focus{background:rgba(var(--ion-color-base-rgb), 0.2);box-shadow:0px 0px 0px 4px rgba(var(--ion-color-base-rgb), 0.2)}:host .datetime-time{display:flex;justify-content:space-between}:host(.datetime-presentation-time) .datetime-time{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}:host ion-popover{--height:200px}:host .time-header{display:flex;align-items:center}:host .time-body{border-radius:8px;-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:6px;padding-bottom:6px;display:flex;border:none;background:var(--ion-color-step-300, var(--ion-background-color-step-300, #edeef0));color:var(--ion-text-color, #000);font-family:inherit;font-size:inherit;cursor:pointer;appearance:none}:host .time-body-active{color:var(--ion-color-base)}:host(.in-item){position:static}:host(.show-month-and-year) .calendar-action-buttons .calendar-month-year-toggle{color:var(--ion-color-base)}.calendar-month-year{min-width:0}.calendar-month-year-toggle{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;position:relative;border:0;outline:none;background:transparent;cursor:pointer;z-index:1}.calendar-month-year-toggle::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0;transition:opacity 15ms linear, background-color 15ms linear;z-index:-1}.calendar-month-year-toggle.ion-focused::after{background:currentColor}.calendar-month-year-toggle:disabled{opacity:0.3;pointer-events:none}.calendar-month-year-toggle ion-icon{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:0;padding-inline-end:0;padding-top:0;padding-bottom:0;flex-shrink:0}.calendar-month-year-toggle #toggle-wrapper{display:inline-flex;align-items:center}ion-picker{--highlight-background:var(--wheel-highlight-background);--highlight-border-radius:var(--wheel-highlight-border-radius);--fade-background-rgb:var(--wheel-fade-background-rgb)}:host{--background:var(--ion-color-step-100, var(--ion-background-color-step-100, #ffffff));--title-color:var(--ion-color-contrast)}:host .datetime-header{-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:20px;padding-inline-end:20px;padding-top:20px;padding-bottom:20px;background:var(--ion-color-base);color:var(--title-color)}:host .datetime-header .datetime-title{font-size:0.75rem;text-transform:uppercase}:host .datetime-header .datetime-selected-date{margin-top:30px;font-size:2.125rem}:host .calendar-action-buttons ion-button{--color:var(--ion-color-step-650, var(--ion-text-color-step-350, #595959))}.calendar-month-year-toggle{-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:12px;padding-bottom:12px;min-height:48px;background:transparent;color:var(--ion-color-step-650, var(--ion-text-color-step-350, #595959));z-index:1}.calendar-month-year-toggle.ion-focused::after{opacity:0.04}.calendar-month-year-toggle ion-ripple-effect{color:currentColor}@media (any-hover: hover){.calendar-month-year-toggle.ion-activatable:not(.ion-focused):hover::after{background:currentColor;opacity:0.04}}:host .calendar-days-of-week{-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px;padding-top:0px;padding-bottom:0px;color:var(--ion-color-step-500, var(--ion-text-color-step-500, gray));font-size:0.875rem;line-height:36px}:host .calendar-body .calendar-month .calendar-month-grid{-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px;padding-top:4px;padding-bottom:4px;grid-template-rows:repeat(6, 1fr)}:host .calendar-day{width:42px;min-width:42px;height:42px;font-size:0.875rem}:host .calendar-day.calendar-day-today{border:1px solid var(--ion-color-base);color:var(--ion-color-base)}:host .calendar-day.calendar-day-active,:host .calendar-day.calendar-day-adjacent-day.calendar-day-active{color:var(--ion-color-contrast)}.calendar-day.calendar-day-active,.calendar-day.calendar-day-active:focus{border:1px solid var(--ion-color-base);background:var(--ion-color-base)}:host .calendar-day.calendar-day-adjacent-day{color:var(--ion-color-step-500, var(--ion-text-color-step-500, gray))}:host .datetime-time{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:8px;padding-bottom:8px}:host .time-header{color:var(--ion-color-step-650, var(--ion-text-color-step-350, #595959))}:host(.datetime-presentation-month) .datetime-year,:host(.datetime-presentation-year) .datetime-year,:host(.datetime-presentation-month-year) .datetime-year{margin-top:20px;margin-bottom:20px}:host .datetime-buttons{-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px;padding-top:10px;padding-bottom:10px;display:flex;align-items:center;justify-content:flex-end}`;
239
-
240
- const Datetime = /*@__PURE__*/ proxyCustomElement(class Datetime extends H {
241
- constructor(registerHost) {
242
- super();
243
- if (registerHost !== false) {
244
- this.__registerHost();
245
- }
246
- this.__attachShadow();
247
- this.ionCancel = createEvent(this, "ionCancel", 7);
248
- this.ionChange = createEvent(this, "ionChange", 7);
249
- this.ionValueChange = createEvent(this, "ionValueChange", 7);
250
- this.ionFocus = createEvent(this, "ionFocus", 7);
251
- this.ionBlur = createEvent(this, "ionBlur", 7);
252
- this.ionStyle = createEvent(this, "ionStyle", 7);
253
- this.ionRender = createEvent(this, "ionRender", 7);
254
- this.inputId = `ion-dt-${datetimeIds++}`;
255
- this.prevPresentation = null;
256
- this.showMonthAndYear = false;
257
- this.activeParts = [];
258
- this.workingParts = {
259
- month: 5,
260
- day: 28,
261
- year: 2021,
262
- hour: 13,
263
- minute: 52,
264
- ampm: 'pm',
265
- isAdjacentDay: false,
266
- };
267
- this.isTimePopoverOpen = false;
268
- /**
269
- * The color to use from your application's color palette.
270
- * Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`.
271
- * For more information on colors, see [theming](/docs/theming/basics).
272
- */
273
- this.color = 'primary';
274
- /**
275
- * The name of the control, which is submitted with the form data.
276
- */
277
- this.name = this.inputId;
278
- /**
279
- * If `true`, the user cannot interact with the datetime.
280
- */
281
- this.disabled = false;
282
- /**
283
- * If `true`, the datetime appears normal but the selected date cannot be changed.
284
- */
285
- this.readonly = false;
286
- /**
287
- * If `true`, the datetime calendar displays a six-week (42-day) layout,
288
- * including days from the previous and next months to fill the grid.
289
- * These adjacent days are selectable unless disabled.
290
- */
291
- this.showAdjacentDays = false;
292
- /**
293
- * Which values you want to select. `"date"` will show
294
- * a calendar picker to select the month, day, and year. `"time"`
295
- * will show a time picker to select the hour, minute, and (optionally)
296
- * AM/PM. `"date-time"` will show the date picker first and time picker second.
297
- * `"time-date"` will show the time picker first and date picker second.
298
- */
299
- this.presentation = 'date-time';
300
- /**
301
- * The text to display on the picker's cancel button.
302
- */
303
- this.cancelText = 'Cancel';
304
- /**
305
- * The text to display on the picker's "Done" button.
306
- */
307
- this.doneText = 'Done';
308
- /**
309
- * The text to display on the picker's "Clear" button.
310
- */
311
- this.clearText = 'Clear';
312
- /**
313
- * The locale to use for `ion-datetime`. This
314
- * impacts month and day name formatting.
315
- * The `"default"` value refers to the default
316
- * locale set by your device.
317
- */
318
- this.locale = 'default';
319
- /**
320
- * The first day of the week to use for `ion-datetime`. The
321
- * default value is `0` and represents Sunday.
322
- */
323
- this.firstDayOfWeek = 0;
324
- /**
325
- * If `true`, multiple dates can be selected at once. Only
326
- * applies to `presentation="date"` and `preferWheel="false"`.
327
- */
328
- this.multiple = false;
329
- /**
330
- * If `true`, a header will be shown above the calendar
331
- * picker. This will include both the slotted title, and
332
- * the selected date.
333
- */
334
- this.showDefaultTitle = false;
335
- /**
336
- * If `true`, the default "Cancel" and "OK" buttons
337
- * will be rendered at the bottom of the `ion-datetime`
338
- * component. Developers can also use the `button` slot
339
- * if they want to customize these buttons. If custom
340
- * buttons are set in the `button` slot then the
341
- * default buttons will not be rendered.
342
- */
343
- this.showDefaultButtons = false;
344
- /**
345
- * If `true`, a "Clear" button will be rendered alongside
346
- * the default "Cancel" and "OK" buttons at the bottom of the `ion-datetime`
347
- * component. Developers can also use the `button` slot
348
- * if they want to customize these buttons. If custom
349
- * buttons are set in the `button` slot then the
350
- * default buttons will not be rendered.
351
- */
352
- this.showClearButton = false;
353
- /**
354
- * If `true`, the default "Time" label will be rendered
355
- * for the time selector of the `ion-datetime` component.
356
- * Developers can also use the `time-label` slot
357
- * if they want to customize this label. If a custom
358
- * label is set in the `time-label` slot then the
359
- * default label will not be rendered.
360
- */
361
- this.showDefaultTimeLabel = true;
362
- /**
363
- * If `cover`, the `ion-datetime` will expand to cover the full width of its container.
364
- * If `fixed`, the `ion-datetime` will have a fixed width.
365
- */
366
- this.size = 'fixed';
367
- /**
368
- * If `true`, a wheel picker will be rendered instead of a calendar grid
369
- * where possible. If `false`, a calendar grid will be rendered instead of
370
- * a wheel picker where possible.
371
- *
372
- * A wheel picker can be rendered instead of a grid when `presentation` is
373
- * one of the following values: `"date"`, `"date-time"`, or `"time-date"`.
374
- *
375
- * A wheel picker will always be rendered regardless of
376
- * the `preferWheel` value when `presentation` is one of the following values:
377
- * `"time"`, `"month"`, `"month-year"`, or `"year"`.
378
- */
379
- this.preferWheel = false;
380
- this.warnIfIncorrectValueUsage = () => {
381
- const { multiple, value } = this;
382
- if (!multiple && Array.isArray(value)) {
383
- /**
384
- * We do some processing on the `value` array so
385
- * that it looks more like an array when logged to
386
- * the console.
387
- * Example given ['a', 'b']
388
- * Default toString() behavior: a,b
389
- * Custom behavior: ['a', 'b']
390
- */
391
- printIonWarning(`[ion-datetime] - An array of values was passed, but multiple is "false". This is incorrect usage and may result in unexpected behaviors. To dismiss this warning, pass a string to the "value" property when multiple="false".
392
-
393
- Value Passed: [${value.map((v) => `'${v}'`).join(', ')}]
394
- `, this.el);
395
- }
396
- };
397
- this.setValue = (value) => {
398
- this.value = value;
399
- this.ionChange.emit({ value });
400
- };
401
- /**
402
- * Returns the DatetimePart interface
403
- * to use when rendering an initial set of
404
- * data. This should be used when rendering an
405
- * interface in an environment where the `value`
406
- * may not be set. This function works
407
- * by returning the first selected date and then
408
- * falling back to defaultParts if no active date
409
- * is selected.
410
- */
411
- this.getActivePartsWithFallback = () => {
412
- var _a;
413
- const { defaultParts } = this;
414
- return (_a = this.getActivePart()) !== null && _a !== void 0 ? _a : defaultParts;
415
- };
416
- this.getActivePart = () => {
417
- const { activeParts } = this;
418
- return Array.isArray(activeParts) ? activeParts[0] : activeParts;
419
- };
420
- this.closeParentOverlay = (role) => {
421
- const popoverOrModal = this.el.closest('ion-modal, ion-popover');
422
- if (popoverOrModal) {
423
- popoverOrModal.dismiss(undefined, role);
424
- }
425
- };
426
- this.setWorkingParts = (parts) => {
427
- this.workingParts = Object.assign({}, parts);
428
- };
429
- this.setActiveParts = (parts, removeDate = false) => {
430
- /** if the datetime component is in readonly mode,
431
- * allow browsing of the calendar without changing
432
- * the set value
433
- */
434
- if (this.readonly) {
435
- return;
436
- }
437
- const { multiple, minParts, maxParts, activeParts } = this;
438
- /**
439
- * When setting the active parts, it is possible
440
- * to set invalid data. For example,
441
- * when updating January 31 to February,
442
- * February 31 does not exist. As a result
443
- * we need to validate the active parts and
444
- * ensure that we are only setting valid dates.
445
- * Additionally, we need to update the working parts
446
- * too in the event that the validated parts are different.
447
- */
448
- const validatedParts = validateParts(parts, minParts, maxParts);
449
- this.setWorkingParts(validatedParts);
450
- if (multiple) {
451
- const activePartsArray = Array.isArray(activeParts) ? activeParts : [activeParts];
452
- if (removeDate) {
453
- this.activeParts = activePartsArray.filter((p) => !isSameDay(p, validatedParts));
454
- }
455
- else {
456
- this.activeParts = [...activePartsArray, validatedParts];
457
- }
458
- }
459
- else {
460
- this.activeParts = Object.assign({}, validatedParts);
461
- }
462
- const hasSlottedButtons = this.el.querySelector('[slot="buttons"]') !== null;
463
- if (hasSlottedButtons || this.showDefaultButtons) {
464
- return;
465
- }
466
- this.confirm();
467
- };
468
- this.initializeKeyboardListeners = () => {
469
- const calendarBodyRef = this.calendarBodyRef;
470
- if (!calendarBodyRef) {
471
- return;
472
- }
473
- const root = this.el.shadowRoot;
474
- /**
475
- * Get a reference to the month
476
- * element we are currently viewing.
477
- */
478
- const currentMonth = calendarBodyRef.querySelector('.calendar-month:nth-of-type(2)');
479
- /**
480
- * When focusing the calendar body, we want to pass focus
481
- * to the working day, but other days should
482
- * only be accessible using the arrow keys. Pressing
483
- * Tab should jump between bodies of selectable content.
484
- */
485
- const checkCalendarBodyFocus = (ev) => {
486
- var _a;
487
- const record = ev[0];
488
- /**
489
- * If calendar body was already focused
490
- * when this fired or if the calendar body
491
- * if not currently focused, we should not re-focus
492
- * the inner day.
493
- */
494
- if (((_a = record.oldValue) === null || _a === void 0 ? void 0 : _a.includes('ion-focused')) || !calendarBodyRef.classList.contains('ion-focused')) {
495
- return;
496
- }
497
- this.focusWorkingDay(currentMonth);
498
- };
499
- const mo = new MutationObserver(checkCalendarBodyFocus);
500
- mo.observe(calendarBodyRef, { attributeFilter: ['class'], attributeOldValue: true });
501
- this.destroyKeyboardMO = () => {
502
- mo === null || mo === void 0 ? void 0 : mo.disconnect();
503
- };
504
- /**
505
- * We must use keydown not keyup as we want
506
- * to prevent scrolling when using the arrow keys.
507
- */
508
- calendarBodyRef.addEventListener('keydown', (ev) => {
509
- const activeElement = root.activeElement;
510
- if (!activeElement || !activeElement.classList.contains('calendar-day')) {
511
- return;
512
- }
513
- const parts = getPartsFromCalendarDay(activeElement);
514
- let partsToFocus;
515
- switch (ev.key) {
516
- case 'ArrowDown':
517
- ev.preventDefault();
518
- partsToFocus = getNextWeek(parts);
519
- break;
520
- case 'ArrowUp':
521
- ev.preventDefault();
522
- partsToFocus = getPreviousWeek(parts);
523
- break;
524
- case 'ArrowRight':
525
- ev.preventDefault();
526
- partsToFocus = getNextDay(parts);
527
- break;
528
- case 'ArrowLeft':
529
- ev.preventDefault();
530
- partsToFocus = getPreviousDay(parts);
531
- break;
532
- case 'Home':
533
- ev.preventDefault();
534
- partsToFocus = getStartOfWeek(parts);
535
- break;
536
- case 'End':
537
- ev.preventDefault();
538
- partsToFocus = getEndOfWeek(parts);
539
- break;
540
- case 'PageUp':
541
- ev.preventDefault();
542
- partsToFocus = ev.shiftKey ? getPreviousYear(parts) : getPreviousMonth(parts);
543
- break;
544
- case 'PageDown':
545
- ev.preventDefault();
546
- partsToFocus = ev.shiftKey ? getNextYear(parts) : getNextMonth(parts);
547
- break;
548
- /**
549
- * Do not preventDefault here
550
- * as we do not want to override other
551
- * browser defaults such as pressing Enter/Space
552
- * to select a day.
553
- */
554
- default:
555
- return;
556
- }
557
- /**
558
- * If the day we want to move focus to is
559
- * disabled, do not do anything.
560
- */
561
- if (isDayDisabled(partsToFocus, this.minParts, this.maxParts)) {
562
- return;
563
- }
564
- this.setWorkingParts(Object.assign(Object.assign({}, this.workingParts), partsToFocus));
565
- /**
566
- * Give view a chance to re-render
567
- * then move focus to the new working day
568
- */
569
- requestAnimationFrame(() => this.focusWorkingDay(currentMonth));
570
- });
571
- };
572
- this.focusWorkingDay = (currentMonth) => {
573
- /**
574
- * Get the number of offset days so
575
- * we know how much to offset our next selector by
576
- * to grab the correct calendar-day element.
577
- */
578
- const { day, month, year } = this.workingParts;
579
- const firstOfMonth = new Date(`${month}/1/${year}`).getDay();
580
- const offset = firstOfMonth >= this.firstDayOfWeek
581
- ? firstOfMonth - this.firstDayOfWeek
582
- : 7 - (this.firstDayOfWeek - firstOfMonth);
583
- if (day === null) {
584
- return;
585
- }
586
- /**
587
- * Get the calendar day element
588
- * and focus it.
589
- */
590
- const dayEl = currentMonth.querySelector(`.calendar-day-wrapper:nth-of-type(${offset + day}) .calendar-day`);
591
- if (dayEl) {
592
- dayEl.focus();
593
- }
594
- };
595
- this.processMinParts = () => {
596
- const { min, defaultParts } = this;
597
- if (min === undefined) {
598
- this.minParts = undefined;
599
- return;
600
- }
601
- this.minParts = parseMinParts(min, defaultParts);
602
- };
603
- this.processMaxParts = () => {
604
- const { max, defaultParts } = this;
605
- if (max === undefined) {
606
- this.maxParts = undefined;
607
- return;
608
- }
609
- this.maxParts = parseMaxParts(max, defaultParts);
610
- };
611
- this.initializeCalendarListener = () => {
612
- const calendarBodyRef = this.calendarBodyRef;
613
- if (!calendarBodyRef) {
614
- return;
615
- }
616
- /**
617
- * For performance reasons, we only render 3
618
- * months at a time: The current month, the previous
619
- * month, and the next month. We have a scroll listener
620
- * on the calendar body to append/prepend new months.
621
- *
622
- * We can do this because Stencil is smart enough to not
623
- * re-create the .calendar-month containers, but rather
624
- * update the content within those containers.
625
- *
626
- * As an added bonus, WebKit has some troubles with
627
- * scroll-snap-stop: always, so not rendering all of
628
- * the months in a row allows us to mostly sidestep
629
- * that issue.
630
- */
631
- const months = calendarBodyRef.querySelectorAll('.calendar-month');
632
- const startMonth = months[0];
633
- const workingMonth = months[1];
634
- const endMonth = months[2];
635
- const mode = getIonMode(this);
636
- const needsiOSRubberBandFix = mode === 'ios' && typeof navigator !== 'undefined' && navigator.maxTouchPoints > 1;
637
- /**
638
- * Before setting up the scroll listener,
639
- * scroll the middle month into view.
640
- * scrollIntoView() will scroll entire page
641
- * if element is not in viewport. Use scrollLeft instead.
642
- */
643
- writeTask(() => {
644
- calendarBodyRef.scrollLeft = startMonth.clientWidth * (isRTL(this.el) ? -1 : 1);
645
- const getChangedMonth = (parts) => {
646
- const box = calendarBodyRef.getBoundingClientRect();
647
- /**
648
- * If the current scroll position is all the way to the left
649
- * then we have scrolled to the previous month.
650
- * Otherwise, assume that we have scrolled to the next
651
- * month. We have a tolerance of 2px to account for
652
- * sub pixel rendering.
653
- *
654
- * Check below the next line ensures that we did not
655
- * swipe and abort (i.e. we swiped but we are still on the current month).
656
- */
657
- const condition = isRTL(this.el) ? calendarBodyRef.scrollLeft >= -2 : calendarBodyRef.scrollLeft <= 2;
658
- const month = condition ? startMonth : endMonth;
659
- /**
660
- * The edge of the month must be lined up with
661
- * the edge of the calendar body in order for
662
- * the component to update. Otherwise, it
663
- * may be the case that the user has paused their
664
- * swipe or the browser has not finished snapping yet.
665
- * Rather than check if the x values are equal,
666
- * we give it a tolerance of 2px to account for
667
- * sub pixel rendering.
668
- */
669
- const monthBox = month.getBoundingClientRect();
670
- if (Math.abs(monthBox.x - box.x) > 2)
671
- return;
672
- /**
673
- * If we're force-rendering a month, assume we've
674
- * scrolled to that and return it.
675
- *
676
- * If forceRenderDate is ever used in a context where the
677
- * forced month is not immediately auto-scrolled to, this
678
- * should be updated to also check whether `month` has the
679
- * same month and year as the forced date.
680
- */
681
- const { forceRenderDate } = this;
682
- if (forceRenderDate !== undefined) {
683
- return { month: forceRenderDate.month, year: forceRenderDate.year, day: forceRenderDate.day };
684
- }
685
- /**
686
- * From here, we can determine if the start
687
- * month or the end month was scrolled into view.
688
- * If no month was changed, then we can return from
689
- * the scroll callback early.
690
- */
691
- if (month === startMonth) {
692
- return getPreviousMonth(parts);
693
- }
694
- else if (month === endMonth) {
695
- return getNextMonth(parts);
696
- }
697
- else {
698
- return;
699
- }
700
- };
701
- const updateActiveMonth = () => {
702
- if (needsiOSRubberBandFix) {
703
- calendarBodyRef.style.removeProperty('pointer-events');
704
- appliediOSRubberBandFix = false;
705
- }
706
- /**
707
- * If the month did not change
708
- * then we can return early.
709
- */
710
- const newDate = getChangedMonth(this.workingParts);
711
- if (!newDate)
712
- return;
713
- const { month, day, year } = newDate;
714
- if (isMonthDisabled({ month, year, day: null }, {
715
- minParts: Object.assign(Object.assign({}, this.minParts), { day: null }),
716
- maxParts: Object.assign(Object.assign({}, this.maxParts), { day: null }),
717
- })) {
718
- return;
719
- }
720
- /**
721
- * Prevent scrolling for other browsers
722
- * to give the DOM time to update and the container
723
- * time to properly snap.
724
- */
725
- calendarBodyRef.style.setProperty('overflow', 'hidden');
726
- /**
727
- * Use a writeTask here to ensure
728
- * that the state is updated and the
729
- * correct month is scrolled into view
730
- * in the same frame. This is not
731
- * typically a problem on newer devices
732
- * but older/slower device may have a flicker
733
- * if we did not do this.
734
- */
735
- writeTask(() => {
736
- this.setWorkingParts(Object.assign(Object.assign({}, this.workingParts), { month, day: day, year }));
737
- calendarBodyRef.scrollLeft = workingMonth.clientWidth * (isRTL(this.el) ? -1 : 1);
738
- calendarBodyRef.style.removeProperty('overflow');
739
- if (this.resolveForceDateScrolling) {
740
- this.resolveForceDateScrolling();
741
- }
742
- });
743
- };
744
- /**
745
- * When the container finishes scrolling we
746
- * need to update the DOM with the selected month.
747
- */
748
- let scrollTimeout;
749
- /**
750
- * We do not want to attempt to set pointer-events
751
- * multiple times within a single swipe gesture as
752
- * that adds unnecessary work to the main thread.
753
- */
754
- let appliediOSRubberBandFix = false;
755
- const scrollCallback = () => {
756
- if (scrollTimeout) {
757
- clearTimeout(scrollTimeout);
758
- }
759
- /**
760
- * On iOS it is possible to quickly rubber band
761
- * the scroll area before the scroll timeout has fired.
762
- * This results in users reaching the end of the scrollable
763
- * container before the DOM has updated.
764
- * By setting `pointer-events: none` we can ensure that
765
- * subsequent swipes do not happen while the container
766
- * is snapping.
767
- */
768
- if (!appliediOSRubberBandFix && needsiOSRubberBandFix) {
769
- calendarBodyRef.style.setProperty('pointer-events', 'none');
770
- appliediOSRubberBandFix = true;
771
- }
772
- // Wait ~3 frames
773
- scrollTimeout = setTimeout(updateActiveMonth, 50);
774
- };
775
- calendarBodyRef.addEventListener('scroll', scrollCallback);
776
- this.destroyCalendarListener = () => {
777
- calendarBodyRef.removeEventListener('scroll', scrollCallback);
778
- };
779
- });
780
- };
781
- /**
782
- * Clean up all listeners except for the overlay
783
- * listener. This is so that we can re-create the listeners
784
- * if the datetime has been hidden/presented by a modal or popover.
785
- */
786
- this.destroyInteractionListeners = () => {
787
- const { destroyCalendarListener, destroyKeyboardMO } = this;
788
- if (destroyCalendarListener !== undefined) {
789
- destroyCalendarListener();
790
- }
791
- if (destroyKeyboardMO !== undefined) {
792
- destroyKeyboardMO();
793
- }
794
- };
795
- /**
796
- * TODO(FW-6931): Remove this fallback upon solving the root cause
797
- * Fallback to ensure the datetime becomes ready even if
798
- * IntersectionObserver never reports it as intersecting.
799
- *
800
- * This is primarily used in environments where the observer
801
- * might not fire as expected, such as when running under
802
- * synthetic tests that stub IntersectionObserver.
803
- */
804
- this.ensureReadyIfVisible = () => {
805
- if (this.el.classList.contains('datetime-ready')) {
806
- return;
807
- }
808
- const rect = this.el.getBoundingClientRect();
809
- if (rect.width === 0 || rect.height === 0) {
810
- return;
811
- }
812
- this.initializeListeners();
813
- writeTask(() => {
814
- this.el.classList.add('datetime-ready');
815
- });
816
- };
817
- this.processValue = (value) => {
818
- const hasValue = value !== null && value !== undefined && value !== '' && (!Array.isArray(value) || value.length > 0);
819
- const valueToProcess = hasValue ? parseDate(value) : this.defaultParts;
820
- const { minParts, maxParts, workingParts, el } = this;
821
- this.warnIfIncorrectValueUsage();
822
- /**
823
- * Return early if the value wasn't parsed correctly, such as
824
- * if an improperly formatted date string was provided.
825
- */
826
- if (!valueToProcess) {
827
- return;
828
- }
829
- /**
830
- * Datetime should only warn of out of bounds values
831
- * if set by the user. If the `value` is undefined,
832
- * we will default to today's date which may be out
833
- * of bounds. In this case, the warning makes it look
834
- * like the developer did something wrong which is
835
- * not true.
836
- */
837
- if (hasValue) {
838
- warnIfValueOutOfBounds(valueToProcess, minParts, maxParts);
839
- }
840
- /**
841
- * If there are multiple values, clamp to the last one.
842
- * This is because the last value is the one that the user
843
- * has most recently interacted with.
844
- */
845
- const singleValue = Array.isArray(valueToProcess) ? valueToProcess[valueToProcess.length - 1] : valueToProcess;
846
- const targetValue = clampDate(singleValue, minParts, maxParts);
847
- const { month, day, year, hour, minute } = targetValue;
848
- const ampm = parseAmPm(hour);
849
- /**
850
- * Since `activeParts` indicates a value that been explicitly selected
851
- * either by the user or the app, only update `activeParts` if the
852
- * `value` property is set.
853
- */
854
- if (hasValue) {
855
- if (Array.isArray(valueToProcess)) {
856
- this.activeParts = [...valueToProcess];
857
- }
858
- else {
859
- this.activeParts = {
860
- month,
861
- day,
862
- year,
863
- hour,
864
- minute,
865
- ampm,
866
- };
867
- }
868
- }
869
- else {
870
- /**
871
- * Reset the active parts if the value is not set.
872
- * This will clear the selected calendar day when
873
- * performing a clear action or using the reset() method.
874
- */
875
- this.activeParts = [];
876
- }
877
- const didChangeMonth = (month !== undefined && month !== workingParts.month) || (year !== undefined && year !== workingParts.year);
878
- const bodyIsVisible = el.classList.contains('datetime-ready');
879
- const { isGridStyle, showMonthAndYear } = this;
880
- if (isGridStyle && didChangeMonth && bodyIsVisible && !showMonthAndYear) {
881
- /**
882
- * Only animate if:
883
- * 1. We're using grid style (wheel style pickers should just jump to new value)
884
- * 2. The month and/or year actually changed, and both are defined (otherwise there's nothing to animate to)
885
- * 3. The calendar body is visible (prevents animation when in collapsed datetime-button, for example)
886
- * 4. The month/year picker is not open (since you wouldn't see the animation anyway)
887
- */
888
- this.animateToDate(targetValue);
889
- }
890
- else {
891
- this.setWorkingParts({
892
- month,
893
- day,
894
- year,
895
- hour,
896
- minute,
897
- ampm,
898
- });
899
- }
900
- };
901
- this.animateToDate = async (targetValue) => {
902
- const { workingParts } = this;
903
- /**
904
- * Tell other render functions that we need to force the
905
- * target month to appear in place of the actual next/prev month.
906
- * Because this is a State variable, a rerender will be triggered
907
- * automatically, updating the rendered months.
908
- */
909
- this.forceRenderDate = targetValue;
910
- /**
911
- * Flag that we've started scrolling to the forced date.
912
- * The resolve function will be called by the datetime's
913
- * scroll listener when it's done updating everything.
914
- * This is a replacement for making prev/nextMonth async,
915
- * since the logic we're waiting on is in a listener.
916
- */
917
- const forceDateScrollingPromise = new Promise((resolve) => {
918
- this.resolveForceDateScrolling = resolve;
919
- });
920
- /**
921
- * Animate smoothly to the forced month. This will also update
922
- * workingParts and correct the surrounding months for us.
923
- */
924
- const targetMonthIsBefore = isBefore(targetValue, workingParts);
925
- targetMonthIsBefore ? this.prevMonth() : this.nextMonth();
926
- await forceDateScrollingPromise;
927
- this.resolveForceDateScrolling = undefined;
928
- this.forceRenderDate = undefined;
929
- };
930
- this.onFocus = () => {
931
- this.ionFocus.emit();
932
- };
933
- this.onBlur = () => {
934
- this.ionBlur.emit();
935
- };
936
- this.hasValue = () => {
937
- return this.value != null;
938
- };
939
- this.nextMonth = () => {
940
- const calendarBodyRef = this.calendarBodyRef;
941
- if (!calendarBodyRef) {
942
- return;
943
- }
944
- const nextMonth = calendarBodyRef.querySelector('.calendar-month:last-of-type');
945
- if (!nextMonth) {
946
- return;
947
- }
948
- const left = nextMonth.offsetWidth * 2;
949
- calendarBodyRef.scrollTo({
950
- top: 0,
951
- left: left * (isRTL(this.el) ? -1 : 1),
952
- behavior: 'smooth',
953
- });
954
- };
955
- this.prevMonth = () => {
956
- const calendarBodyRef = this.calendarBodyRef;
957
- if (!calendarBodyRef) {
958
- return;
959
- }
960
- const prevMonth = calendarBodyRef.querySelector('.calendar-month:first-of-type');
961
- if (!prevMonth) {
962
- return;
963
- }
964
- calendarBodyRef.scrollTo({
965
- top: 0,
966
- left: 0,
967
- behavior: 'smooth',
968
- });
969
- };
970
- this.toggleMonthAndYearView = () => {
971
- this.showMonthAndYear = !this.showMonthAndYear;
972
- };
973
- }
974
- formatOptionsChanged() {
975
- const { el, formatOptions, presentation } = this;
976
- checkForPresentationFormatMismatch(el, presentation, formatOptions);
977
- warnIfTimeZoneProvided(el, formatOptions);
978
- }
979
- disabledChanged() {
980
- this.emitStyle();
981
- }
982
- minChanged() {
983
- this.processMinParts();
984
- }
985
- maxChanged() {
986
- this.processMaxParts();
987
- }
988
- presentationChanged() {
989
- const { el, formatOptions, presentation } = this;
990
- checkForPresentationFormatMismatch(el, presentation, formatOptions);
991
- }
992
- get isGridStyle() {
993
- const { presentation, preferWheel } = this;
994
- const hasDatePresentation = presentation === 'date' || presentation === 'date-time' || presentation === 'time-date';
995
- return hasDatePresentation && !preferWheel;
996
- }
997
- yearValuesChanged() {
998
- this.parsedYearValues = convertToArrayOfNumbers(this.yearValues);
999
- }
1000
- monthValuesChanged() {
1001
- this.parsedMonthValues = convertToArrayOfNumbers(this.monthValues);
1002
- }
1003
- dayValuesChanged() {
1004
- this.parsedDayValues = convertToArrayOfNumbers(this.dayValues);
1005
- }
1006
- hourValuesChanged() {
1007
- this.parsedHourValues = convertToArrayOfNumbers(this.hourValues);
1008
- }
1009
- minuteValuesChanged() {
1010
- this.parsedMinuteValues = convertToArrayOfNumbers(this.minuteValues);
1011
- }
1012
- /**
1013
- * Update the datetime value when the value changes
1014
- */
1015
- async valueChanged() {
1016
- const { value } = this;
1017
- if (this.hasValue()) {
1018
- this.processValue(value);
1019
- }
1020
- this.emitStyle();
1021
- this.ionValueChange.emit({ value });
1022
- }
1023
- /**
1024
- * Confirms the selected datetime value, updates the
1025
- * `value` property, and optionally closes the popover
1026
- * or modal that the datetime was presented in.
1027
- *
1028
- * @param closeOverlay If `true`, closes the parent overlay. Defaults to `false`.
1029
- */
1030
- async confirm(closeOverlay = false) {
1031
- const { isCalendarPicker, activeParts, preferWheel, workingParts } = this;
1032
- /**
1033
- * We only update the value if the presentation is not a calendar picker.
1034
- */
1035
- if (activeParts !== undefined || !isCalendarPicker) {
1036
- const activePartsIsArray = Array.isArray(activeParts);
1037
- if (activePartsIsArray && activeParts.length === 0) {
1038
- if (preferWheel) {
1039
- /**
1040
- * If the datetime is using a wheel picker, but the
1041
- * active parts are empty, then the user has confirmed the
1042
- * initial value (working parts) presented to them.
1043
- */
1044
- this.setValue(convertDataToISO(workingParts));
1045
- }
1046
- else {
1047
- this.setValue(undefined);
1048
- }
1049
- }
1050
- else {
1051
- this.setValue(convertDataToISO(activeParts));
1052
- }
1053
- }
1054
- if (closeOverlay) {
1055
- this.closeParentOverlay(CONFIRM_ROLE);
1056
- }
1057
- }
1058
- /**
1059
- * Resets the internal state of the datetime but does not update the value.
1060
- * Passing a valid ISO-8601 string will reset the state of the component to the provided date.
1061
- * If no value is provided, the internal state will be reset to the clamped value of the min, max and today.
1062
- *
1063
- * @param startDate A valid [ISO-8601 string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date#date_time_string_format) to reset the datetime state to.
1064
- */
1065
- async reset(startDate) {
1066
- this.processValue(startDate);
1067
- }
1068
- /**
1069
- * Emits the ionCancel event and
1070
- * optionally closes the popover
1071
- * or modal that the datetime was
1072
- * presented in.
1073
- *
1074
- * @param closeOverlay If `true`, closes the parent overlay. Defaults to `false`.
1075
- */
1076
- async cancel(closeOverlay = false) {
1077
- this.ionCancel.emit();
1078
- if (closeOverlay) {
1079
- this.closeParentOverlay(CANCEL_ROLE);
1080
- }
1081
- }
1082
- get isCalendarPicker() {
1083
- const { presentation } = this;
1084
- return presentation === 'date' || presentation === 'date-time' || presentation === 'time-date';
1085
- }
1086
- connectedCallback() {
1087
- this.clearFocusVisible = startFocusVisible(this.el).destroy;
1088
- }
1089
- disconnectedCallback() {
1090
- if (this.clearFocusVisible) {
1091
- this.clearFocusVisible();
1092
- this.clearFocusVisible = undefined;
1093
- }
1094
- }
1095
- initializeListeners() {
1096
- this.initializeCalendarListener();
1097
- this.initializeKeyboardListeners();
1098
- }
1099
- componentDidLoad() {
1100
- const { el, intersectionTrackerRef } = this;
1101
- /**
1102
- * If a scrollable element is hidden using `display: none`,
1103
- * it will not have a scroll height meaning we cannot scroll elements
1104
- * into view. As a result, we will need to wait for the datetime to become
1105
- * visible if used inside of a modal or a popover otherwise the scrollable
1106
- * areas will not have the correct values snapped into place.
1107
- */
1108
- const visibleCallback = (entries) => {
1109
- const ev = entries[0];
1110
- if (!ev.isIntersecting) {
1111
- return;
1112
- }
1113
- this.initializeListeners();
1114
- /**
1115
- * TODO FW-2793: Datetime needs a frame to ensure that it
1116
- * can properly scroll contents into view. As a result
1117
- * we hide the scrollable content until after that frame
1118
- * so users do not see the content quickly shifting. The downside
1119
- * is that the content will pop into view a frame after. Maybe there
1120
- * is a better way to handle this?
1121
- */
1122
- writeTask(() => {
1123
- this.el.classList.add('datetime-ready');
1124
- });
1125
- };
1126
- const visibleIO = new IntersectionObserver(visibleCallback, { threshold: 0.01, root: el });
1127
- /**
1128
- * Use raf to avoid a race condition between the component loading and
1129
- * its display animation starting (such as when shown in a modal). This
1130
- * could cause the datetime to start at a visibility of 0, erroneously
1131
- * triggering the `hiddenIO` observer below.
1132
- */
1133
- raf(() => visibleIO === null || visibleIO === void 0 ? void 0 : visibleIO.observe(intersectionTrackerRef));
1134
- /**
1135
- * TODO(FW-6931): Remove this fallback upon solving the root cause
1136
- * Fallback: If IntersectionObserver never reports that the
1137
- * datetime is visible but the host clearly has layout, ensure
1138
- * we still initialize listeners and mark the component as ready.
1139
- *
1140
- * We schedule this after everything has had a chance to run.
1141
- */
1142
- setTimeout(() => {
1143
- this.ensureReadyIfVisible();
1144
- }, 100);
1145
- /**
1146
- * We need to clean up listeners when the datetime is hidden
1147
- * in a popover/modal so that we can properly scroll containers
1148
- * back into view if they are re-presented. When the datetime is hidden
1149
- * the scroll areas have scroll widths/heights of 0px, so any snapping
1150
- * we did originally has been lost.
1151
- */
1152
- const hiddenCallback = (entries) => {
1153
- const ev = entries[0];
1154
- if (ev.isIntersecting) {
1155
- return;
1156
- }
1157
- this.destroyInteractionListeners();
1158
- /**
1159
- * When datetime is hidden, we need to make sure that
1160
- * the month/year picker is closed. Otherwise,
1161
- * it will be open when the datetime re-appears
1162
- * and the scroll area of the calendar grid will be 0.
1163
- * As a result, the wrong month will be shown.
1164
- */
1165
- this.showMonthAndYear = false;
1166
- writeTask(() => {
1167
- this.el.classList.remove('datetime-ready');
1168
- });
1169
- };
1170
- const hiddenIO = new IntersectionObserver(hiddenCallback, { threshold: 0, root: el });
1171
- raf(() => hiddenIO === null || hiddenIO === void 0 ? void 0 : hiddenIO.observe(intersectionTrackerRef));
1172
- /**
1173
- * Datetime uses Ionic components that emit
1174
- * ionFocus and ionBlur. These events are
1175
- * composed meaning they will cross
1176
- * the shadow dom boundary. We need to
1177
- * stop propagation on these events otherwise
1178
- * developers will see 2 ionFocus or 2 ionBlur
1179
- * events at a time.
1180
- */
1181
- const root = getElementRoot(this.el);
1182
- root.addEventListener('ionFocus', (ev) => ev.stopPropagation());
1183
- root.addEventListener('ionBlur', (ev) => ev.stopPropagation());
1184
- }
1185
- /**
1186
- * When the presentation is changed, all calendar content is recreated,
1187
- * so we need to re-init behavior with the new elements.
1188
- */
1189
- componentDidRender() {
1190
- const { presentation, prevPresentation, calendarBodyRef, minParts, preferWheel, forceRenderDate } = this;
1191
- /**
1192
- * TODO(FW-2165)
1193
- * Remove this when https://bugs.webkit.org/show_bug.cgi?id=235960 is fixed.
1194
- * When using `min`, we add `scroll-snap-align: none`
1195
- * to the disabled month so that users cannot scroll to it.
1196
- * This triggers a bug in WebKit where the scroll position is reset.
1197
- * Since the month change logic is handled by a scroll listener,
1198
- * this causes the month to change leading to `scroll-snap-align`
1199
- * changing again, thus changing the scroll position again and causing
1200
- * an infinite loop.
1201
- * This issue only applies to the calendar grid, so we can disable
1202
- * it if the calendar grid is not being used.
1203
- */
1204
- const hasCalendarGrid = !preferWheel && ['date-time', 'time-date', 'date'].includes(presentation);
1205
- if (minParts !== undefined && hasCalendarGrid && calendarBodyRef) {
1206
- const workingMonth = calendarBodyRef.querySelector('.calendar-month:nth-of-type(1)');
1207
- /**
1208
- * We need to make sure the datetime is not in the process
1209
- * of scrolling to a new datetime value if the value
1210
- * is updated programmatically.
1211
- * Otherwise, the datetime will appear to not scroll at all because
1212
- * we are resetting the scroll position to the center of the view.
1213
- * Prior to the datetime's value being updated programmatically,
1214
- * the calendarBodyRef is scrolled such that the middle month is centered
1215
- * in the view. The below code updates the scroll position so the middle
1216
- * month is also centered in the view. Since the scroll position did not change,
1217
- * the scroll callback in this file does not fire,
1218
- * and the resolveForceDateScrolling promise never resolves.
1219
- */
1220
- if (workingMonth && forceRenderDate === undefined) {
1221
- calendarBodyRef.scrollLeft = workingMonth.clientWidth * (isRTL(this.el) ? -1 : 1);
1222
- }
1223
- }
1224
- if (prevPresentation === null) {
1225
- this.prevPresentation = presentation;
1226
- return;
1227
- }
1228
- if (presentation === prevPresentation) {
1229
- return;
1230
- }
1231
- this.prevPresentation = presentation;
1232
- this.destroyInteractionListeners();
1233
- this.initializeListeners();
1234
- /**
1235
- * The month/year picker from the date interface
1236
- * should be closed as it is not available in non-date
1237
- * interfaces.
1238
- */
1239
- this.showMonthAndYear = false;
1240
- raf(() => {
1241
- this.ionRender.emit();
1242
- });
1243
- }
1244
- componentWillLoad() {
1245
- const { el, formatOptions, highlightedDates, multiple, presentation, preferWheel } = this;
1246
- if (multiple) {
1247
- if (presentation !== 'date') {
1248
- printIonWarning('[ion-datetime] - Multiple date selection is only supported for presentation="date".', el);
1249
- }
1250
- if (preferWheel) {
1251
- printIonWarning('[ion-datetime] - Multiple date selection is not supported with preferWheel="true".', el);
1252
- }
1253
- }
1254
- if (highlightedDates !== undefined) {
1255
- if (presentation !== 'date' && presentation !== 'date-time' && presentation !== 'time-date') {
1256
- printIonWarning('[ion-datetime] - The highlightedDates property is only supported with the date, date-time, and time-date presentations.', el);
1257
- }
1258
- if (preferWheel) {
1259
- printIonWarning('[ion-datetime] - The highlightedDates property is not supported with preferWheel="true".', el);
1260
- }
1261
- }
1262
- if (formatOptions) {
1263
- checkForPresentationFormatMismatch(el, presentation, formatOptions);
1264
- warnIfTimeZoneProvided(el, formatOptions);
1265
- }
1266
- const hourValues = (this.parsedHourValues = convertToArrayOfNumbers(this.hourValues));
1267
- const minuteValues = (this.parsedMinuteValues = convertToArrayOfNumbers(this.minuteValues));
1268
- const monthValues = (this.parsedMonthValues = convertToArrayOfNumbers(this.monthValues));
1269
- const yearValues = (this.parsedYearValues = convertToArrayOfNumbers(this.yearValues));
1270
- const dayValues = (this.parsedDayValues = convertToArrayOfNumbers(this.dayValues));
1271
- const todayParts = (this.todayParts = parseDate(getToday()));
1272
- this.processMinParts();
1273
- this.processMaxParts();
1274
- this.defaultParts = getClosestValidDate({
1275
- refParts: todayParts,
1276
- monthValues,
1277
- dayValues,
1278
- yearValues,
1279
- hourValues,
1280
- minuteValues,
1281
- minParts: this.minParts,
1282
- maxParts: this.maxParts,
1283
- });
1284
- this.processValue(this.value);
1285
- this.emitStyle();
1286
- }
1287
- emitStyle() {
1288
- this.ionStyle.emit({
1289
- interactive: true,
1290
- datetime: true,
1291
- 'interactive-disabled': this.disabled,
1292
- });
1293
- }
1294
- /**
1295
- * Universal render methods
1296
- * These are pieces of datetime that
1297
- * are rendered independently of presentation.
1298
- */
1299
- renderFooter() {
1300
- const { disabled, readonly, showDefaultButtons, showClearButton } = this;
1301
- /**
1302
- * The cancel, clear, and confirm buttons
1303
- * should not be interactive if the datetime
1304
- * is disabled or readonly.
1305
- */
1306
- const isButtonDisabled = disabled || readonly;
1307
- const hasSlottedButtons = this.el.querySelector('[slot="buttons"]') !== null;
1308
- if (!hasSlottedButtons && !showDefaultButtons && !showClearButton) {
1309
- return;
1310
- }
1311
- const clearButtonClick = () => {
1312
- this.reset();
1313
- this.setValue(undefined);
1314
- };
1315
- /**
1316
- * By default we render two buttons:
1317
- * Cancel - Dismisses the datetime and
1318
- * does not update the `value` prop.
1319
- * OK - Dismisses the datetime and
1320
- * updates the `value` prop.
1321
- */
1322
- return (h("div", { class: "datetime-footer" }, h("div", { class: "datetime-buttons" }, h("div", { class: {
1323
- ['datetime-action-buttons']: true,
1324
- ['has-clear-button']: this.showClearButton,
1325
- } }, h("slot", { name: "buttons" }, h("ion-buttons", null, showDefaultButtons && (h("ion-button", { id: "cancel-button", color: this.color, onClick: () => this.cancel(true), disabled: isButtonDisabled }, this.cancelText)), h("div", { class: "datetime-action-buttons-container" }, showClearButton && (h("ion-button", { id: "clear-button", color: this.color, onClick: () => clearButtonClick(), disabled: isButtonDisabled }, this.clearText)), showDefaultButtons && (h("ion-button", { id: "confirm-button", color: this.color, onClick: () => this.confirm(true), disabled: isButtonDisabled }, this.doneText)))))))));
1326
- }
1327
- /**
1328
- * Wheel picker render methods
1329
- */
1330
- renderWheelPicker(forcePresentation = this.presentation) {
1331
- /**
1332
- * If presentation="time-date" we switch the
1333
- * order of the render array here instead of
1334
- * manually reordering each date/time picker
1335
- * column with CSS. This allows for additional
1336
- * flexibility if we need to render subsets
1337
- * of the date/time data or do additional ordering
1338
- * within the child render functions.
1339
- */
1340
- const renderArray = forcePresentation === 'time-date'
1341
- ? [this.renderTimePickerColumns(forcePresentation), this.renderDatePickerColumns(forcePresentation)]
1342
- : [this.renderDatePickerColumns(forcePresentation), this.renderTimePickerColumns(forcePresentation)];
1343
- return h("ion-picker", { class: FOCUS_TRAP_DISABLE_CLASS }, renderArray);
1344
- }
1345
- renderDatePickerColumns(forcePresentation) {
1346
- return forcePresentation === 'date-time' || forcePresentation === 'time-date'
1347
- ? this.renderCombinedDatePickerColumn()
1348
- : this.renderIndividualDatePickerColumns(forcePresentation);
1349
- }
1350
- renderCombinedDatePickerColumn() {
1351
- const { defaultParts, disabled, workingParts, locale, minParts, maxParts, todayParts, isDateEnabled } = this;
1352
- const activePart = this.getActivePartsWithFallback();
1353
- /**
1354
- * By default, generate a range of 3 months:
1355
- * Previous month, current month, and next month
1356
- */
1357
- const monthsToRender = generateMonths(workingParts);
1358
- const lastMonth = monthsToRender[monthsToRender.length - 1];
1359
- /**
1360
- * Ensure that users can select the entire window of dates.
1361
- */
1362
- monthsToRender[0].day = 1;
1363
- lastMonth.day = getNumDaysInMonth(lastMonth.month, lastMonth.year);
1364
- /**
1365
- * Narrow the dates rendered based on min/max dates (if any).
1366
- * The `min` date is used if the min is after the generated min month.
1367
- * The `max` date is used if the max is before the generated max month.
1368
- * This ensures that the sliding window always stays at 3 months
1369
- * but still allows future dates to be lazily rendered based on any min/max
1370
- * constraints.
1371
- */
1372
- const min = minParts !== undefined && isAfter(minParts, monthsToRender[0]) ? minParts : monthsToRender[0];
1373
- const max = maxParts !== undefined && isBefore(maxParts, lastMonth) ? maxParts : lastMonth;
1374
- const result = getCombinedDateColumnData(locale, todayParts, min, max, this.parsedDayValues, this.parsedMonthValues);
1375
- let items = result.items;
1376
- const parts = result.parts;
1377
- if (isDateEnabled) {
1378
- items = items.map((itemObject, index) => {
1379
- const referenceParts = parts[index];
1380
- let disabled;
1381
- try {
1382
- /**
1383
- * The `isDateEnabled` implementation is try-catch wrapped
1384
- * to prevent exceptions in the user's function from
1385
- * interrupting the calendar rendering.
1386
- */
1387
- disabled = !isDateEnabled(convertDataToISO(referenceParts));
1388
- }
1389
- catch (e) {
1390
- printIonError('[ion-datetime] - Exception thrown from provided `isDateEnabled` function. Please check your function and try again.', e);
1391
- }
1392
- return Object.assign(Object.assign({}, itemObject), { disabled });
1393
- });
1394
- }
1395
- /**
1396
- * If we have selected a day already, then default the column
1397
- * to that value. Otherwise, set it to the default date.
1398
- */
1399
- const todayString = workingParts.day !== null
1400
- ? `${workingParts.year}-${workingParts.month}-${workingParts.day}`
1401
- : `${defaultParts.year}-${defaultParts.month}-${defaultParts.day}`;
1402
- return (h("ion-picker-column", { "aria-label": "Select a date", class: "date-column", color: this.color, disabled: disabled, value: todayString, onIonChange: (ev) => {
1403
- const { value } = ev.detail;
1404
- const findPart = parts.find(({ month, day, year }) => value === `${year}-${month}-${day}`);
1405
- this.setWorkingParts(Object.assign(Object.assign({}, workingParts), findPart));
1406
- this.setActiveParts(Object.assign(Object.assign({}, activePart), findPart));
1407
- ev.stopPropagation();
1408
- } }, items.map((item) => (h("ion-picker-column-option", { part: item.value === todayString ? `${WHEEL_ITEM_PART} ${WHEEL_ITEM_ACTIVE_PART}` : WHEEL_ITEM_PART, key: item.value, disabled: item.disabled, value: item.value }, item.text)))));
1409
- }
1410
- renderIndividualDatePickerColumns(forcePresentation) {
1411
- const { workingParts, isDateEnabled } = this;
1412
- const shouldRenderMonths = forcePresentation !== 'year' && forcePresentation !== 'time';
1413
- const months = shouldRenderMonths
1414
- ? getMonthColumnData(this.locale, workingParts, this.minParts, this.maxParts, this.parsedMonthValues)
1415
- : [];
1416
- const shouldRenderDays = forcePresentation === 'date';
1417
- let days = shouldRenderDays
1418
- ? getDayColumnData(this.locale, workingParts, this.minParts, this.maxParts, this.parsedDayValues)
1419
- : [];
1420
- if (isDateEnabled) {
1421
- days = days.map((dayObject) => {
1422
- const { value } = dayObject;
1423
- const valueNum = typeof value === 'string' ? parseInt(value) : value;
1424
- const referenceParts = {
1425
- month: workingParts.month,
1426
- day: valueNum,
1427
- year: workingParts.year,
1428
- };
1429
- let disabled;
1430
- try {
1431
- /**
1432
- * The `isDateEnabled` implementation is try-catch wrapped
1433
- * to prevent exceptions in the user's function from
1434
- * interrupting the calendar rendering.
1435
- */
1436
- disabled = !isDateEnabled(convertDataToISO(referenceParts));
1437
- }
1438
- catch (e) {
1439
- printIonError('[ion-datetime] - Exception thrown from provided `isDateEnabled` function. Please check your function and try again.', e);
1440
- }
1441
- return Object.assign(Object.assign({}, dayObject), { disabled });
1442
- });
1443
- }
1444
- const shouldRenderYears = forcePresentation !== 'month' && forcePresentation !== 'time';
1445
- const years = shouldRenderYears
1446
- ? getYearColumnData(this.locale, this.defaultParts, this.minParts, this.maxParts, this.parsedYearValues)
1447
- : [];
1448
- /**
1449
- * Certain locales show the day before the month.
1450
- */
1451
- const showMonthFirst = isMonthFirstLocale(this.locale, { month: 'numeric', day: 'numeric' });
1452
- let renderArray = [];
1453
- if (showMonthFirst) {
1454
- renderArray = [
1455
- this.renderMonthPickerColumn(months),
1456
- this.renderDayPickerColumn(days),
1457
- this.renderYearPickerColumn(years),
1458
- ];
1459
- }
1460
- else {
1461
- renderArray = [
1462
- this.renderDayPickerColumn(days),
1463
- this.renderMonthPickerColumn(months),
1464
- this.renderYearPickerColumn(years),
1465
- ];
1466
- }
1467
- return renderArray;
1468
- }
1469
- renderDayPickerColumn(days) {
1470
- var _a;
1471
- if (days.length === 0) {
1472
- return [];
1473
- }
1474
- const { disabled, workingParts } = this;
1475
- const activePart = this.getActivePartsWithFallback();
1476
- const pickerColumnValue = (_a = (workingParts.day !== null ? workingParts.day : this.defaultParts.day)) !== null && _a !== void 0 ? _a : undefined;
1477
- return (h("ion-picker-column", { "aria-label": "Select a day", class: "day-column", color: this.color, disabled: disabled, value: pickerColumnValue, onIonChange: (ev) => {
1478
- this.setWorkingParts(Object.assign(Object.assign({}, workingParts), { day: ev.detail.value }));
1479
- this.setActiveParts(Object.assign(Object.assign({}, activePart), { day: ev.detail.value }));
1480
- ev.stopPropagation();
1481
- } }, days.map((day) => (h("ion-picker-column-option", { part: day.value === pickerColumnValue ? `${WHEEL_ITEM_PART} ${WHEEL_ITEM_ACTIVE_PART}` : WHEEL_ITEM_PART, key: day.value, disabled: day.disabled, value: day.value }, day.text)))));
1482
- }
1483
- renderMonthPickerColumn(months) {
1484
- if (months.length === 0) {
1485
- return [];
1486
- }
1487
- const { disabled, workingParts } = this;
1488
- const activePart = this.getActivePartsWithFallback();
1489
- return (h("ion-picker-column", { "aria-label": "Select a month", class: "month-column", color: this.color, disabled: disabled, value: workingParts.month, onIonChange: (ev) => {
1490
- this.setWorkingParts(Object.assign(Object.assign({}, workingParts), { month: ev.detail.value }));
1491
- this.setActiveParts(Object.assign(Object.assign({}, activePart), { month: ev.detail.value }));
1492
- ev.stopPropagation();
1493
- } }, months.map((month) => (h("ion-picker-column-option", { part: month.value === workingParts.month ? `${WHEEL_ITEM_PART} ${WHEEL_ITEM_ACTIVE_PART}` : WHEEL_ITEM_PART, key: month.value, disabled: month.disabled, value: month.value }, month.text)))));
1494
- }
1495
- renderYearPickerColumn(years) {
1496
- if (years.length === 0) {
1497
- return [];
1498
- }
1499
- const { disabled, workingParts } = this;
1500
- const activePart = this.getActivePartsWithFallback();
1501
- return (h("ion-picker-column", { "aria-label": "Select a year", class: "year-column", color: this.color, disabled: disabled, value: workingParts.year, onIonChange: (ev) => {
1502
- this.setWorkingParts(Object.assign(Object.assign({}, workingParts), { year: ev.detail.value }));
1503
- this.setActiveParts(Object.assign(Object.assign({}, activePart), { year: ev.detail.value }));
1504
- ev.stopPropagation();
1505
- } }, years.map((year) => (h("ion-picker-column-option", { part: year.value === workingParts.year ? `${WHEEL_ITEM_PART} ${WHEEL_ITEM_ACTIVE_PART}` : WHEEL_ITEM_PART, key: year.value, disabled: year.disabled, value: year.value }, year.text)))));
1506
- }
1507
- renderTimePickerColumns(forcePresentation) {
1508
- if (['date', 'month', 'month-year', 'year'].includes(forcePresentation)) {
1509
- return [];
1510
- }
1511
- /**
1512
- * If a user has not selected a date,
1513
- * then we should show all times. If the
1514
- * user has selected a date (even if it has
1515
- * not been confirmed yet), we should apply
1516
- * the max and min restrictions so that the
1517
- * time picker shows values that are
1518
- * appropriate for the selected date.
1519
- */
1520
- const activePart = this.getActivePart();
1521
- const userHasSelectedDate = activePart !== undefined;
1522
- const { hoursData, minutesData, dayPeriodData } = getTimeColumnsData(this.locale, this.workingParts, this.hourCycle, userHasSelectedDate ? this.minParts : undefined, userHasSelectedDate ? this.maxParts : undefined, this.parsedHourValues, this.parsedMinuteValues);
1523
- return [
1524
- this.renderHourPickerColumn(hoursData),
1525
- this.renderMinutePickerColumn(minutesData),
1526
- this.renderDayPeriodPickerColumn(dayPeriodData),
1527
- ];
1528
- }
1529
- renderHourPickerColumn(hoursData) {
1530
- const { disabled, workingParts } = this;
1531
- if (hoursData.length === 0)
1532
- return [];
1533
- const activePart = this.getActivePartsWithFallback();
1534
- return (h("ion-picker-column", { "aria-label": "Select an hour", color: this.color, disabled: disabled, value: activePart.hour, numericInput: true, onIonChange: (ev) => {
1535
- this.setWorkingParts(Object.assign(Object.assign({}, workingParts), { hour: ev.detail.value }));
1536
- this.setActiveParts(Object.assign(Object.assign({}, this.getActivePartsWithFallback()), { hour: ev.detail.value }));
1537
- ev.stopPropagation();
1538
- } }, hoursData.map((hour) => (h("ion-picker-column-option", { part: hour.value === activePart.hour ? `${WHEEL_ITEM_PART} ${WHEEL_ITEM_ACTIVE_PART}` : WHEEL_ITEM_PART, key: hour.value, disabled: hour.disabled, value: hour.value }, hour.text)))));
1539
- }
1540
- renderMinutePickerColumn(minutesData) {
1541
- const { disabled, workingParts } = this;
1542
- if (minutesData.length === 0)
1543
- return [];
1544
- const activePart = this.getActivePartsWithFallback();
1545
- return (h("ion-picker-column", { "aria-label": "Select a minute", color: this.color, disabled: disabled, value: activePart.minute, numericInput: true, onIonChange: (ev) => {
1546
- this.setWorkingParts(Object.assign(Object.assign({}, workingParts), { minute: ev.detail.value }));
1547
- this.setActiveParts(Object.assign(Object.assign({}, this.getActivePartsWithFallback()), { minute: ev.detail.value }));
1548
- ev.stopPropagation();
1549
- } }, minutesData.map((minute) => (h("ion-picker-column-option", { part: minute.value === activePart.minute ? `${WHEEL_ITEM_PART} ${WHEEL_ITEM_ACTIVE_PART}` : WHEEL_ITEM_PART, key: minute.value, disabled: minute.disabled, value: minute.value }, minute.text)))));
1550
- }
1551
- renderDayPeriodPickerColumn(dayPeriodData) {
1552
- const { disabled, workingParts } = this;
1553
- if (dayPeriodData.length === 0) {
1554
- return [];
1555
- }
1556
- const activePart = this.getActivePartsWithFallback();
1557
- const isDayPeriodRTL = isLocaleDayPeriodRTL(this.locale);
1558
- return (h("ion-picker-column", { "aria-label": "Select a day period", style: isDayPeriodRTL ? { order: '-1' } : {}, color: this.color, disabled: disabled, value: activePart.ampm, onIonChange: (ev) => {
1559
- const hour = calculateHourFromAMPM(workingParts, ev.detail.value);
1560
- this.setWorkingParts(Object.assign(Object.assign({}, workingParts), { ampm: ev.detail.value, hour }));
1561
- this.setActiveParts(Object.assign(Object.assign({}, this.getActivePartsWithFallback()), { ampm: ev.detail.value, hour }));
1562
- ev.stopPropagation();
1563
- } }, dayPeriodData.map((dayPeriod) => (h("ion-picker-column-option", { part: dayPeriod.value === activePart.ampm ? `${WHEEL_ITEM_PART} ${WHEEL_ITEM_ACTIVE_PART}` : WHEEL_ITEM_PART, key: dayPeriod.value, disabled: dayPeriod.disabled, value: dayPeriod.value }, dayPeriod.text)))));
1564
- }
1565
- renderWheelView(forcePresentation) {
1566
- const { locale } = this;
1567
- const showMonthFirst = isMonthFirstLocale(locale);
1568
- const columnOrder = showMonthFirst ? 'month-first' : 'year-first';
1569
- return (h("div", { class: {
1570
- [`wheel-order-${columnOrder}`]: true,
1571
- } }, this.renderWheelPicker(forcePresentation)));
1572
- }
1573
- /**
1574
- * Grid Render Methods
1575
- */
1576
- renderCalendarHeader(mode) {
1577
- const { disabled } = this;
1578
- const expandedIcon = mode === 'ios' ? chevronDown : caretUpSharp;
1579
- const collapsedIcon = mode === 'ios' ? chevronForward : caretDownSharp;
1580
- const prevMonthDisabled = disabled || isPrevMonthDisabled(this.workingParts, this.minParts, this.maxParts);
1581
- const nextMonthDisabled = disabled || isNextMonthDisabled(this.workingParts, this.maxParts);
1582
- // don't use the inheritAttributes util because it removes dir from the host, and we still need that
1583
- const hostDir = this.el.getAttribute('dir') || undefined;
1584
- return (h("div", { class: "calendar-header" }, h("div", { class: "calendar-action-buttons" }, h("div", { class: "calendar-month-year" }, h("button", { class: {
1585
- 'calendar-month-year-toggle': true,
1586
- 'ion-activatable': true,
1587
- 'ion-focusable': true,
1588
- }, part: "month-year-button", disabled: disabled, "aria-label": this.showMonthAndYear ? 'Hide year picker' : 'Show year picker', onClick: () => this.toggleMonthAndYearView() }, h("span", { id: "toggle-wrapper" }, getMonthAndYear(this.locale, this.workingParts), h("ion-icon", { "aria-hidden": "true", icon: this.showMonthAndYear ? expandedIcon : collapsedIcon, lazy: false, flipRtl: true })), mode === 'md' && h("ion-ripple-effect", null))), h("div", { class: "calendar-next-prev" }, h("ion-buttons", null, h("ion-button", { "aria-label": "Previous month", disabled: prevMonthDisabled, onClick: () => this.prevMonth() }, h("ion-icon", { dir: hostDir, "aria-hidden": "true", slot: "icon-only", icon: chevronBack, lazy: false, flipRtl: true })), h("ion-button", { "aria-label": "Next month", disabled: nextMonthDisabled, onClick: () => this.nextMonth() }, h("ion-icon", { dir: hostDir, "aria-hidden": "true", slot: "icon-only", icon: chevronForward, lazy: false, flipRtl: true }))))), h("div", { class: "calendar-days-of-week", "aria-hidden": "true" }, getDaysOfWeek(this.locale, mode, this.firstDayOfWeek % 7).map((d) => {
1589
- return h("div", { class: "day-of-week" }, d);
1590
- }))));
1591
- }
1592
- renderMonth(month, year) {
1593
- const { disabled, readonly } = this;
1594
- const yearAllowed = this.parsedYearValues === undefined || this.parsedYearValues.includes(year);
1595
- const monthAllowed = this.parsedMonthValues === undefined || this.parsedMonthValues.includes(month);
1596
- const isCalMonthDisabled = !yearAllowed || !monthAllowed;
1597
- const isDatetimeDisabled = disabled || readonly;
1598
- const swipeDisabled = disabled ||
1599
- isMonthDisabled({
1600
- month,
1601
- year,
1602
- day: null,
1603
- }, {
1604
- // The day is not used when checking if a month is disabled.
1605
- // Users should be able to access the min or max month, even if the
1606
- // min/max date is out of bounds (e.g. min is set to Feb 15, Feb should not be disabled).
1607
- minParts: Object.assign(Object.assign({}, this.minParts), { day: null }),
1608
- maxParts: Object.assign(Object.assign({}, this.maxParts), { day: null }),
1609
- });
1610
- // The working month should never have swipe disabled.
1611
- // Otherwise the CSS scroll snap will not work and the user
1612
- // can free-scroll the calendar.
1613
- const isWorkingMonth = this.workingParts.month === month && this.workingParts.year === year;
1614
- const activePart = this.getActivePartsWithFallback();
1615
- return (h("div", { "aria-hidden": !isWorkingMonth ? 'true' : null, class: {
1616
- 'calendar-month': true,
1617
- // Prevents scroll snap swipe gestures for months outside of the min/max bounds
1618
- 'calendar-month-disabled': !isWorkingMonth && swipeDisabled,
1619
- } }, h("div", { class: "calendar-month-grid" }, getDaysOfMonth(month, year, this.firstDayOfWeek % 7, this.showAdjacentDays).map((dateObject, index) => {
1620
- const { day, dayOfWeek, isAdjacentDay } = dateObject;
1621
- const { el, highlightedDates, isDateEnabled, multiple, showAdjacentDays } = this;
1622
- let _month = month;
1623
- let _year = year;
1624
- if (showAdjacentDays && isAdjacentDay && day !== null) {
1625
- if (day > 20) {
1626
- // Leading with the adjacent day from the previous month
1627
- // if its a adjacent day and is higher than '20' (last week even in feb)
1628
- if (month === 1) {
1629
- _year = year - 1;
1630
- _month = 12;
1631
- }
1632
- else {
1633
- _month = month - 1;
1634
- }
1635
- }
1636
- else if (day < 15) {
1637
- // Leading with the adjacent day from the next month
1638
- // if its a adjacent day and is lower than '15' (first two weeks)
1639
- if (month === 12) {
1640
- _year = year + 1;
1641
- _month = 1;
1642
- }
1643
- else {
1644
- _month = month + 1;
1645
- }
1646
- }
1647
- }
1648
- const referenceParts = { month: _month, day, year: _year, isAdjacentDay };
1649
- const isCalendarPadding = day === null;
1650
- const { isActive, isToday, ariaLabel, ariaSelected, disabled: isDayDisabled, text, } = getCalendarDayState(this.locale, referenceParts, this.activeParts, this.todayParts, this.minParts, this.maxParts, this.parsedDayValues);
1651
- const dateIsoString = convertDataToISO(referenceParts);
1652
- let isCalDayDisabled = isCalMonthDisabled || isDayDisabled;
1653
- if (!isCalDayDisabled && isDateEnabled !== undefined) {
1654
- try {
1655
- /**
1656
- * The `isDateEnabled` implementation is try-catch wrapped
1657
- * to prevent exceptions in the user's function from
1658
- * interrupting the calendar rendering.
1659
- */
1660
- isCalDayDisabled = !isDateEnabled(dateIsoString);
1661
- }
1662
- catch (e) {
1663
- printIonError('[ion-datetime] - Exception thrown from provided `isDateEnabled` function. Please check your function and try again.', el, e);
1664
- }
1665
- }
1666
- /**
1667
- * Some days are constrained through max & min or allowed dates
1668
- * and also disabled because the component is readonly or disabled.
1669
- * These need to be displayed differently.
1670
- */
1671
- const isCalDayConstrained = isCalDayDisabled && isDatetimeDisabled;
1672
- const isButtonDisabled = isCalDayDisabled || isDatetimeDisabled;
1673
- let dateStyle = undefined;
1674
- /**
1675
- * Custom highlight styles should not override the style for selected dates,
1676
- * nor apply to "filler days" at the start of the grid.
1677
- */
1678
- if (highlightedDates !== undefined && !isActive && day !== null && !isAdjacentDay) {
1679
- dateStyle = getHighlightStyles(highlightedDates, dateIsoString, el);
1680
- }
1681
- let dateParts = undefined;
1682
- // "Filler days" at the beginning of the grid should not get the calendar day
1683
- // CSS parts added to them
1684
- if (!isCalendarPadding && !isAdjacentDay) {
1685
- dateParts = `calendar-day${isActive ? ' active' : ''}${isToday ? ' today' : ''}${isCalDayDisabled ? ' disabled' : ''}`;
1686
- }
1687
- else if (isAdjacentDay) {
1688
- dateParts = `calendar-day${isCalDayDisabled ? ' disabled' : ''}`;
1689
- }
1690
- return (h("div", { class: "calendar-day-wrapper" }, h("button", {
1691
- // We need to use !important for the inline styles here because
1692
- // otherwise the CSS shadow parts will override these styles.
1693
- // See https://github.com/WICG/webcomponents/issues/847
1694
- // Both the CSS shadow parts and highlightedDates styles are
1695
- // provided by the developer, but highlightedDates styles should
1696
- // always take priority.
1697
- ref: (el) => {
1698
- if (el) {
1699
- el.style.setProperty('color', `${dateStyle ? dateStyle.textColor : ''}`, 'important');
1700
- el.style.setProperty('background-color', `${dateStyle ? dateStyle.backgroundColor : ''}`, 'important');
1701
- el.style.setProperty('border', `${dateStyle ? dateStyle.border : ''}`, 'important');
1702
- }
1703
- }, tabindex: "-1", "data-day": day, "data-month": _month, "data-year": _year, "data-index": index, "data-day-of-week": dayOfWeek, disabled: isButtonDisabled, class: {
1704
- 'calendar-day-padding': isCalendarPadding,
1705
- 'calendar-day': true,
1706
- 'calendar-day-active': isActive,
1707
- 'calendar-day-constrained': isCalDayConstrained,
1708
- 'calendar-day-today': isToday,
1709
- 'calendar-day-adjacent-day': isAdjacentDay,
1710
- }, part: dateParts, "aria-hidden": isCalendarPadding ? 'true' : null, "aria-selected": ariaSelected, "aria-label": ariaLabel, onClick: () => {
1711
- if (isCalendarPadding) {
1712
- return;
1713
- }
1714
- if (isAdjacentDay) {
1715
- // The user selected a day outside the current month. Ignore this button, as the month will be re-rendered.
1716
- this.el.blur();
1717
- this.activeParts = Object.assign(Object.assign({}, activePart), referenceParts);
1718
- this.animateToDate(referenceParts);
1719
- this.confirm();
1720
- }
1721
- else {
1722
- this.setWorkingParts(Object.assign(Object.assign({}, this.workingParts), referenceParts));
1723
- // Multiple only needs date info so we can wipe out other fields like time.
1724
- if (multiple) {
1725
- this.setActiveParts(referenceParts, isActive);
1726
- }
1727
- else {
1728
- this.setActiveParts(Object.assign(Object.assign({}, activePart), referenceParts));
1729
- }
1730
- }
1731
- }
1732
- }, text)));
1733
- }))));
1734
- }
1735
- renderCalendarBody() {
1736
- return (h("div", { class: "calendar-body ion-focusable", ref: (el) => (this.calendarBodyRef = el), tabindex: "0" }, generateMonths(this.workingParts, this.forceRenderDate).map(({ month, year }) => {
1737
- return this.renderMonth(month, year);
1738
- })));
1739
- }
1740
- renderCalendar(mode) {
1741
- return (h("div", { class: "datetime-calendar", key: "datetime-calendar" }, this.renderCalendarHeader(mode), this.renderCalendarBody()));
1742
- }
1743
- renderTimeLabel() {
1744
- const hasSlottedTimeLabel = this.el.querySelector('[slot="time-label"]') !== null;
1745
- if (!hasSlottedTimeLabel && !this.showDefaultTimeLabel) {
1746
- return;
1747
- }
1748
- return h("slot", { name: "time-label" }, "Time");
1749
- }
1750
- renderTimeOverlay() {
1751
- const { disabled, hourCycle, isTimePopoverOpen, locale, formatOptions } = this;
1752
- const computedHourCycle = getHourCycle(locale, hourCycle);
1753
- const activePart = this.getActivePartsWithFallback();
1754
- return [
1755
- h("div", { class: "time-header" }, this.renderTimeLabel()),
1756
- h("button", { class: {
1757
- 'time-body': true,
1758
- 'time-body-active': isTimePopoverOpen,
1759
- }, part: `time-button${isTimePopoverOpen ? ' active' : ''}`, "aria-expanded": "false", "aria-haspopup": "true", disabled: disabled, onClick: async (ev) => {
1760
- const { popoverRef } = this;
1761
- if (popoverRef) {
1762
- this.isTimePopoverOpen = true;
1763
- popoverRef.present(new CustomEvent('ionShadowTarget', {
1764
- detail: {
1765
- ionShadowTarget: ev.target,
1766
- },
1767
- }));
1768
- await popoverRef.onWillDismiss();
1769
- this.isTimePopoverOpen = false;
1770
- }
1771
- } }, getLocalizedTime(locale, activePart, computedHourCycle, formatOptions === null || formatOptions === void 0 ? void 0 : formatOptions.time)),
1772
- h("ion-popover", { alignment: "center", translucent: true, overlayIndex: 1, arrow: false, onWillPresent: (ev) => {
1773
- /**
1774
- * Intersection Observers do not consistently fire between Blink and Webkit
1775
- * when toggling the visibility of the popover and trying to scroll the picker
1776
- * column to the correct time value.
1777
- *
1778
- * This will correctly scroll the element position to the correct time value,
1779
- * before the popover is fully presented.
1780
- */
1781
- const cols = ev.target.querySelectorAll('ion-picker-column');
1782
- // TODO (FW-615): Potentially remove this when intersection observers are fixed in picker column
1783
- cols.forEach((col) => col.scrollActiveItemIntoView());
1784
- }, style: {
1785
- '--offset-y': '-10px',
1786
- '--min-width': 'fit-content',
1787
- },
1788
- // Allow native browser keyboard events to support up/down/home/end key
1789
- // navigation within the time picker.
1790
- keyboardEvents: true, ref: (el) => (this.popoverRef = el) }, this.renderWheelPicker('time')),
1791
- ];
1792
- }
1793
- getHeaderSelectedDateText() {
1794
- var _a;
1795
- const { activeParts, formatOptions, multiple, titleSelectedDatesFormatter } = this;
1796
- const isArray = Array.isArray(activeParts);
1797
- let headerText;
1798
- if (multiple && isArray && activeParts.length !== 1) {
1799
- headerText = `${activeParts.length} days`; // default/fallback for multiple selection
1800
- if (titleSelectedDatesFormatter !== undefined) {
1801
- try {
1802
- headerText = titleSelectedDatesFormatter(convertDataToISO(activeParts));
1803
- }
1804
- catch (e) {
1805
- printIonError('[ion-datetime] - Exception in provided `titleSelectedDatesFormatter`:', e);
1806
- }
1807
- }
1808
- }
1809
- else {
1810
- // for exactly 1 day selected (multiple set or not), show a formatted version of that
1811
- headerText = getLocalizedDateTime(this.locale, this.getActivePartsWithFallback(), (_a = formatOptions === null || formatOptions === void 0 ? void 0 : formatOptions.date) !== null && _a !== void 0 ? _a : { weekday: 'short', month: 'short', day: 'numeric' });
1812
- }
1813
- return headerText;
1814
- }
1815
- renderHeader(showExpandedHeader = true) {
1816
- const hasSlottedTitle = this.el.querySelector('[slot="title"]') !== null;
1817
- if (!hasSlottedTitle && !this.showDefaultTitle) {
1818
- return;
1819
- }
1820
- return (h("div", { class: "datetime-header" }, h("div", { class: "datetime-title" }, h("slot", { name: "title" }, "Select Date")), showExpandedHeader && h("div", { class: "datetime-selected-date" }, this.getHeaderSelectedDateText())));
1821
- }
1822
- /**
1823
- * Render time picker inside of datetime.
1824
- * Do not pass color prop to segment on
1825
- * iOS mode. MD segment has been customized and
1826
- * should take on the color prop, but iOS
1827
- * should just be the default segment.
1828
- */
1829
- renderTime() {
1830
- const { presentation } = this;
1831
- const timeOnlyPresentation = presentation === 'time';
1832
- return (h("div", { class: "datetime-time" }, timeOnlyPresentation ? this.renderWheelPicker() : this.renderTimeOverlay()));
1833
- }
1834
- /**
1835
- * Renders the month/year picker that is
1836
- * displayed on the calendar grid.
1837
- * The .datetime-year class has additional
1838
- * styles that let us show/hide the
1839
- * picker when the user clicks on the
1840
- * toggle in the calendar header.
1841
- */
1842
- renderCalendarViewMonthYearPicker() {
1843
- return h("div", { class: "datetime-year" }, this.renderWheelView('month-year'));
1844
- }
1845
- /**
1846
- * Render entry point
1847
- * All presentation types are rendered from here.
1848
- */
1849
- renderDatetime(mode) {
1850
- const { presentation, preferWheel } = this;
1851
- /**
1852
- * Certain presentation types have separate grid and wheel displays.
1853
- * If preferWheel is true then we should show a wheel picker instead.
1854
- */
1855
- const hasWheelVariant = presentation === 'date' || presentation === 'date-time' || presentation === 'time-date';
1856
- if (preferWheel && hasWheelVariant) {
1857
- return [this.renderHeader(false), this.renderWheelView(), this.renderFooter()];
1858
- }
1859
- switch (presentation) {
1860
- case 'date-time':
1861
- return [
1862
- this.renderHeader(),
1863
- this.renderCalendar(mode),
1864
- this.renderCalendarViewMonthYearPicker(),
1865
- this.renderTime(),
1866
- this.renderFooter(),
1867
- ];
1868
- case 'time-date':
1869
- return [
1870
- this.renderHeader(),
1871
- this.renderTime(),
1872
- this.renderCalendar(mode),
1873
- this.renderCalendarViewMonthYearPicker(),
1874
- this.renderFooter(),
1875
- ];
1876
- case 'time':
1877
- return [this.renderHeader(false), this.renderTime(), this.renderFooter()];
1878
- case 'month':
1879
- case 'month-year':
1880
- case 'year':
1881
- return [this.renderHeader(false), this.renderWheelView(), this.renderFooter()];
1882
- default:
1883
- return [
1884
- this.renderHeader(),
1885
- this.renderCalendar(mode),
1886
- this.renderCalendarViewMonthYearPicker(),
1887
- this.renderFooter(),
1888
- ];
1889
- }
1890
- }
1891
- render() {
1892
- const { name, value, disabled, el, color, readonly, showMonthAndYear, preferWheel, presentation, size, isGridStyle, } = this;
1893
- const mode = getIonMode(this);
1894
- const isMonthAndYearPresentation = presentation === 'year' || presentation === 'month' || presentation === 'month-year';
1895
- const shouldShowMonthAndYear = showMonthAndYear || isMonthAndYearPresentation;
1896
- const monthYearPickerOpen = showMonthAndYear && !isMonthAndYearPresentation;
1897
- const hasDatePresentation = presentation === 'date' || presentation === 'date-time' || presentation === 'time-date';
1898
- const hasWheelVariant = hasDatePresentation && preferWheel;
1899
- renderHiddenInput(true, el, name, formatValue(value), disabled);
1900
- return (h(Host, { key: 'efdbc0922670a841bc667ceac392cdc1dedffd01', "aria-disabled": disabled ? 'true' : null, onFocus: this.onFocus, onBlur: this.onBlur, class: Object.assign({}, createColorClasses(color, {
1901
- [mode]: true,
1902
- ['datetime-readonly']: readonly,
1903
- ['datetime-disabled']: disabled,
1904
- 'show-month-and-year': shouldShowMonthAndYear,
1905
- 'month-year-picker-open': monthYearPickerOpen,
1906
- [`datetime-presentation-${presentation}`]: true,
1907
- [`datetime-size-${size}`]: true,
1908
- [`datetime-prefer-wheel`]: hasWheelVariant,
1909
- [`datetime-grid`]: isGridStyle,
1910
- })) }, h("div", { key: '3f8bb75fcb0baff55182ef3aa1b535eacc58d81f', class: "intersection-tracker", ref: (el) => (this.intersectionTrackerRef = el) }), this.renderDatetime(mode)));
1911
- }
1912
- get el() { return this; }
1913
- static get watchers() { return {
1914
- "formatOptions": ["formatOptionsChanged"],
1915
- "disabled": ["disabledChanged"],
1916
- "min": ["minChanged"],
1917
- "max": ["maxChanged"],
1918
- "presentation": ["presentationChanged"],
1919
- "yearValues": ["yearValuesChanged"],
1920
- "monthValues": ["monthValuesChanged"],
1921
- "dayValues": ["dayValuesChanged"],
1922
- "hourValues": ["hourValuesChanged"],
1923
- "minuteValues": ["minuteValuesChanged"],
1924
- "value": ["valueChanged"]
1925
- }; }
1926
- static get style() { return {
1927
- ios: datetimeIosCss(),
1928
- md: datetimeMdCss()
1929
- }; }
1930
- }, [289, "ion-datetime", {
1931
- "color": [1],
1932
- "name": [1],
1933
- "disabled": [4],
1934
- "formatOptions": [16],
1935
- "readonly": [4],
1936
- "isDateEnabled": [16],
1937
- "showAdjacentDays": [4, "show-adjacent-days"],
1938
- "min": [1025],
1939
- "max": [1025],
1940
- "presentation": [1],
1941
- "cancelText": [1, "cancel-text"],
1942
- "doneText": [1, "done-text"],
1943
- "clearText": [1, "clear-text"],
1944
- "yearValues": [8, "year-values"],
1945
- "monthValues": [8, "month-values"],
1946
- "dayValues": [8, "day-values"],
1947
- "hourValues": [8, "hour-values"],
1948
- "minuteValues": [8, "minute-values"],
1949
- "locale": [1],
1950
- "firstDayOfWeek": [2, "first-day-of-week"],
1951
- "titleSelectedDatesFormatter": [16],
1952
- "multiple": [4],
1953
- "highlightedDates": [16],
1954
- "value": [1025],
1955
- "showDefaultTitle": [4, "show-default-title"],
1956
- "showDefaultButtons": [4, "show-default-buttons"],
1957
- "showClearButton": [4, "show-clear-button"],
1958
- "showDefaultTimeLabel": [4, "show-default-time-label"],
1959
- "hourCycle": [1, "hour-cycle"],
1960
- "size": [1],
1961
- "preferWheel": [4, "prefer-wheel"],
1962
- "showMonthAndYear": [32],
1963
- "activeParts": [32],
1964
- "workingParts": [32],
1965
- "isTimePopoverOpen": [32],
1966
- "forceRenderDate": [32],
1967
- "confirm": [64],
1968
- "reset": [64],
1969
- "cancel": [64]
1970
- }, undefined, {
1971
- "formatOptions": ["formatOptionsChanged"],
1972
- "disabled": ["disabledChanged"],
1973
- "min": ["minChanged"],
1974
- "max": ["maxChanged"],
1975
- "presentation": ["presentationChanged"],
1976
- "yearValues": ["yearValuesChanged"],
1977
- "monthValues": ["monthValuesChanged"],
1978
- "dayValues": ["dayValuesChanged"],
1979
- "hourValues": ["hourValuesChanged"],
1980
- "minuteValues": ["minuteValuesChanged"],
1981
- "value": ["valueChanged"]
1982
- }]);
1983
- let datetimeIds = 0;
1984
- const CANCEL_ROLE = 'datetime-cancel';
1985
- const CONFIRM_ROLE = 'datetime-confirm';
1986
- const WHEEL_ITEM_PART = 'wheel-item';
1987
- const WHEEL_ITEM_ACTIVE_PART = `active`;
1988
- function defineCustomElement$1() {
1989
- if (typeof customElements === "undefined") {
1990
- return;
1991
- }
1992
- const components = ["ion-datetime", "ion-backdrop", "ion-button", "ion-buttons", "ion-icon", "ion-picker", "ion-picker-column", "ion-picker-column-option", "ion-popover", "ion-ripple-effect"];
1993
- components.forEach(tagName => { switch (tagName) {
1994
- case "ion-datetime":
1995
- if (!customElements.get(transformTag(tagName))) {
1996
- customElements.define(transformTag(tagName), Datetime);
1997
- }
1998
- break;
1999
- case "ion-backdrop":
2000
- if (!customElements.get(transformTag(tagName))) {
2001
- defineCustomElement$a();
2002
- }
2003
- break;
2004
- case "ion-button":
2005
- if (!customElements.get(transformTag(tagName))) {
2006
- defineCustomElement$9();
2007
- }
2008
- break;
2009
- case "ion-buttons":
2010
- if (!customElements.get(transformTag(tagName))) {
2011
- defineCustomElement$8();
2012
- }
2013
- break;
2014
- case "ion-icon":
2015
- if (!customElements.get(transformTag(tagName))) {
2016
- defineCustomElement$7();
2017
- }
2018
- break;
2019
- case "ion-picker":
2020
- if (!customElements.get(transformTag(tagName))) {
2021
- defineCustomElement$6();
2022
- }
2023
- break;
2024
- case "ion-picker-column":
2025
- if (!customElements.get(transformTag(tagName))) {
2026
- defineCustomElement$5();
2027
- }
2028
- break;
2029
- case "ion-picker-column-option":
2030
- if (!customElements.get(transformTag(tagName))) {
2031
- defineCustomElement$4();
2032
- }
2033
- break;
2034
- case "ion-popover":
2035
- if (!customElements.get(transformTag(tagName))) {
2036
- defineCustomElement$3();
2037
- }
2038
- break;
2039
- case "ion-ripple-effect":
2040
- if (!customElements.get(transformTag(tagName))) {
2041
- defineCustomElement$2();
2042
- }
2043
- break;
2044
- } });
2045
- }
2046
-
2047
- const IonDatetime = Datetime;
2048
- const defineCustomElement = defineCustomElement$1;
2049
-
2050
- export { IonDatetime, defineCustomElement };
2051
- //# sourceMappingURL=ion-datetime.js.map
2052
-
2053
- //# sourceMappingURL=ion-datetime.js.map
4
+ */const wt=(t,e,a,i)=>null===t.day||void 0!==i&&!i.includes(t.day)||!(!e||!k(t,e))||!(!a||!j(t,a)),kt=(t,e,a,i,n,o,r)=>{const s=void 0!==(Array.isArray(a)?a:[a]).find((t=>P(e,t))),d=P(e,i);return{disabled:wt(e,n,o,r),isActive:s,isToday:d,ariaSelected:s?"true":null,ariaLabel:V(t,d,e),text:null!=e.day?D(t,e):null}},jt=(t,{minParts:e,maxParts:a})=>!!((t,e,a)=>!!(e&&e.year>t)||!!(a&&a.year<t))(t.year,e,a)||!!(e&&k(t,e)||a&&j(t,a)),Ct=(t,a)=>{var i,n,o,r;((null===(i=null==a?void 0:a.date)||void 0===i?void 0:i.timeZone)||(null===(n=null==a?void 0:a.date)||void 0===n?void 0:n.timeZoneName)||(null===(o=null==a?void 0:a.time)||void 0===o?void 0:o.timeZone)||(null===(r=null==a?void 0:a.time)||void 0===r?void 0:r.timeZoneName))&&e('[ion-datetime] - "timeZone" and "timeZoneName" are not supported in "formatOptions".',t)},Ot=(t,a,i)=>{if(i)switch(a){case"date":case"month-year":case"month":case"year":void 0===i.date&&e(`[ion-datetime] - The '${a}' presentation requires a date object in formatOptions.`,t);break;case"time":void 0===i.time&&e("[ion-datetime] - The 'time' presentation requires a time object in formatOptions.",t);break;case"date-time":case"time-date":void 0===i.date&&void 0===i.time&&e(`[ion-datetime] - The '${a}' presentation requires either a date or time object (or both) in formatOptions.`,t)}},Pt=a(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.ionCancel=n(this,"ionCancel",7),this.ionChange=n(this,"ionChange",7),this.ionValueChange=n(this,"ionValueChange",7),this.ionFocus=n(this,"ionFocus",7),this.ionBlur=n(this,"ionBlur",7),this.ionStyle=n(this,"ionStyle",7),this.ionRender=n(this,"ionRender",7),this.inputId="ion-dt-"+Dt++,this.prevPresentation=null,this.showMonthAndYear=!1,this.activeParts=[],this.workingParts={month:5,day:28,year:2021,hour:13,minute:52,ampm:"pm",isAdjacentDay:!1},this.isTimePopoverOpen=!1,this.color="primary",this.name=this.inputId,this.disabled=!1,this.readonly=!1,this.showAdjacentDays=!1,this.presentation="date-time",this.cancelText="Cancel",this.doneText="Done",this.clearText="Clear",this.locale="default",this.firstDayOfWeek=0,this.multiple=!1,this.showDefaultTitle=!1,this.showDefaultButtons=!1,this.showClearButton=!1,this.showDefaultTimeLabel=!0,this.size="fixed",this.preferWheel=!1,this.warnIfIncorrectValueUsage=()=>{const{multiple:t,value:a}=this;!t&&Array.isArray(a)&&e(`[ion-datetime] - An array of values was passed, but multiple is "false". This is incorrect usage and may result in unexpected behaviors. To dismiss this warning, pass a string to the "value" property when multiple="false".\n\n Value Passed: [${a.map((t=>`'${t}'`)).join(", ")}]\n`,this.el)},this.setValue=t=>{this.value=t,this.ionChange.emit({value:t})},this.getActivePartsWithFallback=()=>{var t;const{defaultParts:e}=this;return null!==(t=this.getActivePart())&&void 0!==t?t:e},this.getActivePart=()=>{const{activeParts:t}=this;return Array.isArray(t)?t[0]:t},this.closeParentOverlay=t=>{const e=this.el.closest("ion-modal, ion-popover");e&&e.dismiss(void 0,t)},this.setWorkingParts=t=>{this.workingParts=Object.assign({},t)},this.setActiveParts=(t,e=!1)=>{if(this.readonly)return;const{multiple:a,minParts:i,maxParts:n,activeParts:o}=this,r=z(t,i,n);if(this.setWorkingParts(r),a){const t=Array.isArray(o)?o:[o];this.activeParts=e?t.filter((t=>!P(t,r))):[...t,r]}else this.activeParts=Object.assign({},r);null!==this.el.querySelector('[slot="buttons"]')||this.showDefaultButtons||this.confirm()},this.initializeKeyboardListeners=()=>{const t=this.calendarBodyRef;if(!t)return;const e=this.el.shadowRoot,a=t.querySelector(".calendar-month:nth-of-type(2)"),i=new MutationObserver((e=>{var i;!(null===(i=e[0].oldValue)||void 0===i?void 0:i.includes("ion-focused"))&&t.classList.contains("ion-focused")&&this.focusWorkingDay(a)}));i.observe(t,{attributeFilter:["class"],attributeOldValue:!0}),this.destroyKeyboardMO=()=>{null==i||i.disconnect()},t.addEventListener("keydown",(t=>{const i=e.activeElement;if(!i||!i.classList.contains("calendar-day"))return;const n=$(i);let o;switch(t.key){case"ArrowDown":t.preventDefault(),o=I(n);break;case"ArrowUp":t.preventDefault(),o=W(n);break;case"ArrowRight":t.preventDefault(),o=R(n);break;case"ArrowLeft":t.preventDefault(),o=B(n);break;case"Home":t.preventDefault(),o=S(n);break;case"End":t.preventDefault(),o=E(n);break;case"PageUp":t.preventDefault(),o=t.shiftKey?T(n):C(n);break;case"PageDown":t.preventDefault(),o=t.shiftKey?A(n):O(n);break;default:return}wt(o,this.minParts,this.maxParts)||(this.setWorkingParts(Object.assign(Object.assign({},this.workingParts),o)),requestAnimationFrame((()=>this.focusWorkingDay(a))))}))},this.focusWorkingDay=t=>{const{day:e,month:a,year:i}=this.workingParts,n=new Date(`${a}/1/${i}`).getDay();if(null===e)return;const o=t.querySelector(`.calendar-day-wrapper:nth-of-type(${(n>=this.firstDayOfWeek?n-this.firstDayOfWeek:7-(this.firstDayOfWeek-n))+e}) .calendar-day`);o&&o.focus()},this.processMinParts=()=>{const{min:t,defaultParts:e}=this;this.minParts=void 0!==t?M(t,e):void 0},this.processMaxParts=()=>{const{max:t,defaultParts:e}=this;this.maxParts=void 0!==t?F(t,e):void 0},this.initializeCalendarListener=()=>{const t=this.calendarBodyRef;if(!t)return;const e=t.querySelectorAll(".calendar-month"),a=e[0],i=e[1],n=e[2],r="ios"===w(this)&&"undefined"!=typeof navigator&&navigator.maxTouchPoints>1;o((()=>{t.scrollLeft=a.clientWidth*(u(this.el)?-1:1);const e=e=>{const i=t.getBoundingClientRect(),o=(u(this.el)?t.scrollLeft>=-2:t.scrollLeft<=2)?a:n,r=o.getBoundingClientRect();if(Math.abs(r.x-i.x)>2)return;const{forceRenderDate:s}=this;return void 0!==s?{month:s.month,year:s.year,day:s.day}:o===a?C(e):o===n?O(e):void 0},s=()=>{r&&(t.style.removeProperty("pointer-events"),l=!1);const a=e(this.workingParts);if(!a)return;const{month:n,day:s,year:d}=a;jt({month:n,year:d,day:null},{minParts:Object.assign(Object.assign({},this.minParts),{day:null}),maxParts:Object.assign(Object.assign({},this.maxParts),{day:null})})||(t.style.setProperty("overflow","hidden"),o((()=>{this.setWorkingParts(Object.assign(Object.assign({},this.workingParts),{month:n,day:s,year:d})),t.scrollLeft=i.clientWidth*(u(this.el)?-1:1),t.style.removeProperty("overflow"),this.resolveForceDateScrolling&&this.resolveForceDateScrolling()})))};let d,l=!1;const h=()=>{d&&clearTimeout(d),!l&&r&&(t.style.setProperty("pointer-events","none"),l=!0),d=setTimeout(s,50)};t.addEventListener("scroll",h),this.destroyCalendarListener=()=>{t.removeEventListener("scroll",h)}}))},this.destroyInteractionListeners=()=>{const{destroyCalendarListener:t,destroyKeyboardMO:e}=this;void 0!==t&&t(),void 0!==e&&e()},this.ensureReadyIfVisible=()=>{if(this.el.classList.contains("datetime-ready"))return;const t=this.el.getBoundingClientRect();0!==t.width&&0!==t.height&&(this.initializeListeners(),o((()=>{this.el.classList.add("datetime-ready")})))},this.processValue=t=>{const e=null!=t&&""!==t&&(!Array.isArray(t)||t.length>0),a=e?L(t):this.defaultParts,{minParts:i,maxParts:n,workingParts:o,el:r}=this;if(this.warnIfIncorrectValueUsage(),!a)return;e&&H(a,i,n);const s=G(Array.isArray(a)?a[a.length-1]:a,i,n),{month:d,day:l,year:h,hour:c,minute:p}=s,m=q(c);this.activeParts=e?Array.isArray(a)?[...a]:{month:d,day:l,year:h,hour:c,minute:p,ampm:m}:[];const u=void 0!==d&&d!==o.month||void 0!==h&&h!==o.year,b=r.classList.contains("datetime-ready"),{isGridStyle:y,showMonthAndYear:g}=this;y&&u&&b&&!g?this.animateToDate(s):this.setWorkingParts({month:d,day:l,year:h,hour:c,minute:p,ampm:m})},this.animateToDate=async t=>{const{workingParts:e}=this;this.forceRenderDate=t;const a=new Promise((t=>{this.resolveForceDateScrolling=t}));k(t,e)?this.prevMonth():this.nextMonth(),await a,this.resolveForceDateScrolling=void 0,this.forceRenderDate=void 0},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()},this.hasValue=()=>null!=this.value,this.nextMonth=()=>{const t=this.calendarBodyRef;if(!t)return;const e=t.querySelector(".calendar-month:last-of-type");e&&t.scrollTo({top:0,left:2*e.offsetWidth*(u(this.el)?-1:1),behavior:"smooth"})},this.prevMonth=()=>{const t=this.calendarBodyRef;t&&t.querySelector(".calendar-month:first-of-type")&&t.scrollTo({top:0,left:0,behavior:"smooth"})},this.toggleMonthAndYearView=()=>{this.showMonthAndYear=!this.showMonthAndYear}}formatOptionsChanged(){const{el:t,formatOptions:e,presentation:a}=this;Ot(t,a,e),Ct(t,e)}disabledChanged(){this.emitStyle()}minChanged(){this.processMinParts()}maxChanged(){this.processMaxParts()}presentationChanged(){const{el:t,formatOptions:e,presentation:a}=this;Ot(t,a,e)}get isGridStyle(){const{presentation:t,preferWheel:e}=this;return("date"===t||"date-time"===t||"time-date"===t)&&!e}yearValuesChanged(){this.parsedYearValues=Y(this.yearValues)}monthValuesChanged(){this.parsedMonthValues=Y(this.monthValues)}dayValuesChanged(){this.parsedDayValues=Y(this.dayValues)}hourValuesChanged(){this.parsedHourValues=Y(this.hourValues)}minuteValuesChanged(){this.parsedMinuteValues=Y(this.minuteValues)}async valueChanged(){const{value:t}=this;this.hasValue()&&this.processValue(t),this.emitStyle(),this.ionValueChange.emit({value:t})}async confirm(t=!1){const{isCalendarPicker:e,activeParts:a,preferWheel:i,workingParts:n}=this;void 0===a&&e||this.setValue(Array.isArray(a)&&0===a.length?i?Q(n):void 0:Q(a)),t&&this.closeParentOverlay(zt)}async reset(t){this.processValue(t)}async cancel(t=!1){this.ionCancel.emit(),t&&this.closeParentOverlay(Vt)}get isCalendarPicker(){const{presentation:t}=this;return"date"===t||"date-time"===t||"time-date"===t}connectedCallback(){this.clearFocusVisible=l(this.el).destroy}disconnectedCallback(){this.clearFocusVisible&&(this.clearFocusVisible(),this.clearFocusVisible=void 0)}initializeListeners(){this.initializeCalendarListener(),this.initializeKeyboardListeners()}componentDidLoad(){const{el:t,intersectionTrackerRef:e}=this,a=new IntersectionObserver((t=>{t[0].isIntersecting&&(this.initializeListeners(),o((()=>{this.el.classList.add("datetime-ready")})))}),{threshold:.01,root:t});h((()=>null==a?void 0:a.observe(e))),setTimeout((()=>{this.ensureReadyIfVisible()}),100);const i=new IntersectionObserver((t=>{t[0].isIntersecting||(this.destroyInteractionListeners(),this.showMonthAndYear=!1,o((()=>{this.el.classList.remove("datetime-ready")})))}),{threshold:0,root:t});h((()=>null==i?void 0:i.observe(e)));const n=c(this.el);n.addEventListener("ionFocus",(t=>t.stopPropagation())),n.addEventListener("ionBlur",(t=>t.stopPropagation()))}componentDidRender(){const{presentation:t,prevPresentation:e,calendarBodyRef:a,minParts:i,preferWheel:n,forceRenderDate:o}=this;if(void 0!==i&&!n&&["date-time","time-date","date"].includes(t)&&a){const t=a.querySelector(".calendar-month:nth-of-type(1)");t&&void 0===o&&(a.scrollLeft=t.clientWidth*(u(this.el)?-1:1))}null!==e?t!==e&&(this.prevPresentation=t,this.destroyInteractionListeners(),this.initializeListeners(),this.showMonthAndYear=!1,h((()=>{this.ionRender.emit()}))):this.prevPresentation=t}componentWillLoad(){const{el:t,formatOptions:a,highlightedDates:i,multiple:n,presentation:o,preferWheel:r}=this;n&&("date"!==o&&e('[ion-datetime] - Multiple date selection is only supported for presentation="date".',t),r&&e('[ion-datetime] - Multiple date selection is not supported with preferWheel="true".',t)),void 0!==i&&("date"!==o&&"date-time"!==o&&"time-date"!==o&&e("[ion-datetime] - The highlightedDates property is only supported with the date, date-time, and time-date presentations.",t),r&&e('[ion-datetime] - The highlightedDates property is not supported with preferWheel="true".',t)),a&&(Ot(t,o,a),Ct(t,a));const s=this.parsedHourValues=Y(this.hourValues),d=this.parsedMinuteValues=Y(this.minuteValues),l=this.parsedMonthValues=Y(this.monthValues),h=this.parsedYearValues=Y(this.yearValues),c=this.parsedDayValues=Y(this.dayValues),p=this.todayParts=L(X());this.processMinParts(),this.processMaxParts(),this.defaultParts=K({refParts:p,monthValues:l,dayValues:c,yearValues:h,hourValues:s,minuteValues:d,minParts:this.minParts,maxParts:this.maxParts}),this.processValue(this.value),this.emitStyle()}emitStyle(){this.ionStyle.emit({interactive:!0,datetime:!0,"interactive-disabled":this.disabled})}renderFooter(){const{disabled:t,readonly:e,showDefaultButtons:a,showClearButton:i}=this,n=t||e;if(null===this.el.querySelector('[slot="buttons"]')&&!a&&!i)return;const o=()=>{this.reset(),this.setValue(void 0)};return r("div",{class:"datetime-footer"},r("div",{class:"datetime-buttons"},r("div",{class:{"datetime-action-buttons":!0,"has-clear-button":this.showClearButton}},r("slot",{name:"buttons"},r("ion-buttons",null,a&&r("ion-button",{id:"cancel-button",color:this.color,onClick:()=>this.cancel(!0),disabled:n},this.cancelText),r("div",{class:"datetime-action-buttons-container"},i&&r("ion-button",{id:"clear-button",color:this.color,onClick:()=>o(),disabled:n},this.clearText),a&&r("ion-button",{id:"confirm-button",color:this.color,onClick:()=>this.confirm(!0),disabled:n},this.doneText)))))))}renderWheelPicker(t=this.presentation){const e="time-date"===t?[this.renderTimePickerColumns(t),this.renderDatePickerColumns(t)]:[this.renderDatePickerColumns(t),this.renderTimePickerColumns(t)];return r("ion-picker",{class:m},e)}renderDatePickerColumns(t){return"date-time"===t||"time-date"===t?this.renderCombinedDatePickerColumn():this.renderIndividualDatePickerColumns(t)}renderCombinedDatePickerColumn(){const{defaultParts:e,disabled:a,workingParts:i,locale:n,minParts:o,maxParts:s,todayParts:d,isDateEnabled:l}=this,h=this.getActivePartsWithFallback(),c=N(i),p=c[c.length-1];c[0].day=1,p.day=U(p.month,p.year);const m=void 0!==o&&j(o,c[0])?o:c[0],u=void 0!==s&&k(s,p)?s:p,b=J(n,d,m,u,this.parsedDayValues,this.parsedMonthValues);let y=b.items;const g=b.parts;l&&(y=y.map(((e,a)=>{const i=g[a];let n;try{n=!l(Q(i))}catch(e){t("[ion-datetime] - Exception thrown from provided `isDateEnabled` function. Please check your function and try again.",e)}return Object.assign(Object.assign({},e),{disabled:n})})));const f=null!==i.day?`${i.year}-${i.month}-${i.day}`:`${e.year}-${e.month}-${e.day}`;return r("ion-picker-column",{"aria-label":"Select a date",class:"date-column",color:this.color,disabled:a,value:f,onIonChange:t=>{const{value:e}=t.detail,a=g.find((({month:t,day:a,year:i})=>e===`${i}-${t}-${a}`));this.setWorkingParts(Object.assign(Object.assign({},i),a)),this.setActiveParts(Object.assign(Object.assign({},h),a)),t.stopPropagation()}},y.map((t=>r("ion-picker-column-option",{part:t.value===f?`${$t} ${At}`:$t,key:t.value,disabled:t.disabled,value:t.value},t.text))))}renderIndividualDatePickerColumns(e){const{workingParts:a,isDateEnabled:i}=this,n="year"!==e&&"time"!==e?Z(this.locale,a,this.minParts,this.maxParts,this.parsedMonthValues):[];let o="date"===e?_(this.locale,a,this.minParts,this.maxParts,this.parsedDayValues):[];i&&(o=o.map((e=>{const{value:n}=e,o={month:a.month,day:"string"==typeof n?parseInt(n):n,year:a.year};let r;try{r=!i(Q(o))}catch(e){t("[ion-datetime] - Exception thrown from provided `isDateEnabled` function. Please check your function and try again.",e)}return Object.assign(Object.assign({},e),{disabled:r})})));const r="month"!==e&&"time"!==e?tt(this.locale,this.defaultParts,this.minParts,this.maxParts,this.parsedYearValues):[];let s=[];return s=et(this.locale,{month:"numeric",day:"numeric"})?[this.renderMonthPickerColumn(n),this.renderDayPickerColumn(o),this.renderYearPickerColumn(r)]:[this.renderDayPickerColumn(o),this.renderMonthPickerColumn(n),this.renderYearPickerColumn(r)],s}renderDayPickerColumn(t){var e;if(0===t.length)return[];const{disabled:a,workingParts:i}=this,n=this.getActivePartsWithFallback(),o=null!==(e=null!==i.day?i.day:this.defaultParts.day)&&void 0!==e?e:void 0;return r("ion-picker-column",{"aria-label":"Select a day",class:"day-column",color:this.color,disabled:a,value:o,onIonChange:t=>{this.setWorkingParts(Object.assign(Object.assign({},i),{day:t.detail.value})),this.setActiveParts(Object.assign(Object.assign({},n),{day:t.detail.value})),t.stopPropagation()}},t.map((t=>r("ion-picker-column-option",{part:t.value===o?`${$t} ${At}`:$t,key:t.value,disabled:t.disabled,value:t.value},t.text))))}renderMonthPickerColumn(t){if(0===t.length)return[];const{disabled:e,workingParts:a}=this,i=this.getActivePartsWithFallback();return r("ion-picker-column",{"aria-label":"Select a month",class:"month-column",color:this.color,disabled:e,value:a.month,onIonChange:t=>{this.setWorkingParts(Object.assign(Object.assign({},a),{month:t.detail.value})),this.setActiveParts(Object.assign(Object.assign({},i),{month:t.detail.value})),t.stopPropagation()}},t.map((t=>r("ion-picker-column-option",{part:t.value===a.month?`${$t} ${At}`:$t,key:t.value,disabled:t.disabled,value:t.value},t.text))))}renderYearPickerColumn(t){if(0===t.length)return[];const{disabled:e,workingParts:a}=this,i=this.getActivePartsWithFallback();return r("ion-picker-column",{"aria-label":"Select a year",class:"year-column",color:this.color,disabled:e,value:a.year,onIonChange:t=>{this.setWorkingParts(Object.assign(Object.assign({},a),{year:t.detail.value})),this.setActiveParts(Object.assign(Object.assign({},i),{year:t.detail.value})),t.stopPropagation()}},t.map((t=>r("ion-picker-column-option",{part:t.value===a.year?`${$t} ${At}`:$t,key:t.value,disabled:t.disabled,value:t.value},t.text))))}renderTimePickerColumns(t){if(["date","month","month-year","year"].includes(t))return[];const e=void 0!==this.getActivePart(),{hoursData:a,minutesData:i,dayPeriodData:n}=at(this.locale,this.workingParts,this.hourCycle,e?this.minParts:void 0,e?this.maxParts:void 0,this.parsedHourValues,this.parsedMinuteValues);return[this.renderHourPickerColumn(a),this.renderMinutePickerColumn(i),this.renderDayPeriodPickerColumn(n)]}renderHourPickerColumn(t){const{disabled:e,workingParts:a}=this;if(0===t.length)return[];const i=this.getActivePartsWithFallback();return r("ion-picker-column",{"aria-label":"Select an hour",color:this.color,disabled:e,value:i.hour,numericInput:!0,onIonChange:t=>{this.setWorkingParts(Object.assign(Object.assign({},a),{hour:t.detail.value})),this.setActiveParts(Object.assign(Object.assign({},this.getActivePartsWithFallback()),{hour:t.detail.value})),t.stopPropagation()}},t.map((t=>r("ion-picker-column-option",{part:t.value===i.hour?`${$t} ${At}`:$t,key:t.value,disabled:t.disabled,value:t.value},t.text))))}renderMinutePickerColumn(t){const{disabled:e,workingParts:a}=this;if(0===t.length)return[];const i=this.getActivePartsWithFallback();return r("ion-picker-column",{"aria-label":"Select a minute",color:this.color,disabled:e,value:i.minute,numericInput:!0,onIonChange:t=>{this.setWorkingParts(Object.assign(Object.assign({},a),{minute:t.detail.value})),this.setActiveParts(Object.assign(Object.assign({},this.getActivePartsWithFallback()),{minute:t.detail.value})),t.stopPropagation()}},t.map((t=>r("ion-picker-column-option",{part:t.value===i.minute?`${$t} ${At}`:$t,key:t.value,disabled:t.disabled,value:t.value},t.text))))}renderDayPeriodPickerColumn(t){const{disabled:e,workingParts:a}=this;if(0===t.length)return[];const i=this.getActivePartsWithFallback(),n=it(this.locale);return r("ion-picker-column",{"aria-label":"Select a day period",style:n?{order:"-1"}:{},color:this.color,disabled:e,value:i.ampm,onIonChange:t=>{const e=ct(a,t.detail.value);this.setWorkingParts(Object.assign(Object.assign({},a),{ampm:t.detail.value,hour:e})),this.setActiveParts(Object.assign(Object.assign({},this.getActivePartsWithFallback()),{ampm:t.detail.value,hour:e})),t.stopPropagation()}},t.map((t=>r("ion-picker-column-option",{part:t.value===i.ampm?`${$t} ${At}`:$t,key:t.value,disabled:t.disabled,value:t.value},t.text))))}renderWheelView(t){const{locale:e}=this,a=et(e)?"month-first":"year-first";return r("div",{class:{["wheel-order-"+a]:!0}},this.renderWheelPicker(t))}renderCalendarHeader(t){const{disabled:e}=this,a="ios"===t?y:g,i="ios"===t?f:x,n=e||((t,e,a)=>{const i=Object.assign(Object.assign({},C(this.workingParts)),{day:null});return jt(i,{minParts:e,maxParts:a})})(0,this.minParts,this.maxParts),o=e||((t,e)=>{const a=Object.assign(Object.assign({},O(this.workingParts)),{day:null});return jt(a,{maxParts:e})})(0,this.maxParts),s=this.el.getAttribute("dir")||void 0;return r("div",{class:"calendar-header"},r("div",{class:"calendar-action-buttons"},r("div",{class:"calendar-month-year"},r("button",{class:{"calendar-month-year-toggle":!0,"ion-activatable":!0,"ion-focusable":!0},part:"month-year-button",disabled:e,"aria-label":this.showMonthAndYear?"Hide year picker":"Show year picker",onClick:()=>this.toggleMonthAndYearView()},r("span",{id:"toggle-wrapper"},ot(this.locale,this.workingParts),r("ion-icon",{"aria-hidden":"true",icon:this.showMonthAndYear?a:i,lazy:!1,flipRtl:!0})),"md"===t&&r("ion-ripple-effect",null))),r("div",{class:"calendar-next-prev"},r("ion-buttons",null,r("ion-button",{"aria-label":"Previous month",disabled:n,onClick:()=>this.prevMonth()},r("ion-icon",{dir:s,"aria-hidden":"true",slot:"icon-only",icon:v,lazy:!1,flipRtl:!0})),r("ion-button",{"aria-label":"Next month",disabled:o,onClick:()=>this.nextMonth()},r("ion-icon",{dir:s,"aria-hidden":"true",slot:"icon-only",icon:f,lazy:!1,flipRtl:!0}))))),r("div",{class:"calendar-days-of-week","aria-hidden":"true"},nt(this.locale,t,this.firstDayOfWeek%7).map((t=>r("div",{class:"day-of-week"},t)))))}renderMonth(e,a){const{disabled:i,readonly:n}=this,o=void 0===this.parsedYearValues||this.parsedYearValues.includes(a),s=void 0===this.parsedMonthValues||this.parsedMonthValues.includes(e),d=!o||!s,l=i||n,h=i||jt({month:e,year:a,day:null},{minParts:Object.assign(Object.assign({},this.minParts),{day:null}),maxParts:Object.assign(Object.assign({},this.maxParts),{day:null})}),c=this.workingParts.month===e&&this.workingParts.year===a,p=this.getActivePartsWithFallback();return r("div",{"aria-hidden":c?null:"true",class:{"calendar-month":!0,"calendar-month-disabled":!c&&h}},r("div",{class:"calendar-month-grid"},rt(e,a,this.firstDayOfWeek%7,this.showAdjacentDays).map(((i,n)=>{const{day:o,dayOfWeek:s,isAdjacentDay:h}=i,{el:c,highlightedDates:m,isDateEnabled:u,multiple:b,showAdjacentDays:y}=this;let g=e,f=a;y&&h&&null!==o&&(o>20?1===e?(f=a-1,g=12):g=e-1:o<15&&(12===e?(f=a+1,g=1):g=e+1));const x={month:g,day:o,year:f,isAdjacentDay:h},v=null===o,{isActive:w,isToday:k,ariaLabel:j,ariaSelected:C,disabled:O,text:P}=kt(this.locale,x,this.activeParts,this.todayParts,this.minParts,this.maxParts,this.parsedDayValues),D=Q(x);let V=d||O;if(!V&&void 0!==u)try{V=!u(D)}catch(e){t("[ion-datetime] - Exception thrown from provided `isDateEnabled` function. Please check your function and try again.",c,e)}const z=V&&l,$=V||l;let A,T;return void 0===m||w||null===o||h||(A=((e,a,i)=>{if(Array.isArray(e)){const t=a.split("T")[0],i=e.find((e=>e.date===t));if(i)return{textColor:i.textColor,backgroundColor:i.backgroundColor,border:i.border}}else try{return e(a)}catch(e){t("[ion-datetime] - Exception thrown from provided `highlightedDates` callback. Please check your function and try again.",i,e)}})(m,D,c)),v||h?h&&(T="calendar-day"+(V?" disabled":"")):T=`calendar-day${w?" active":""}${k?" today":""}${V?" disabled":""}`,r("div",{class:"calendar-day-wrapper"},r("button",{ref:t=>{t&&(t.style.setProperty("color",""+(A?A.textColor:""),"important"),t.style.setProperty("background-color",""+(A?A.backgroundColor:""),"important"),t.style.setProperty("border",""+(A?A.border:""),"important"))},tabindex:"-1","data-day":o,"data-month":g,"data-year":f,"data-index":n,"data-day-of-week":s,disabled:$,class:{"calendar-day-padding":v,"calendar-day":!0,"calendar-day-active":w,"calendar-day-constrained":z,"calendar-day-today":k,"calendar-day-adjacent-day":h},part:T,"aria-hidden":v?"true":null,"aria-selected":C,"aria-label":j,onClick:()=>{v||(h?(this.el.blur(),this.activeParts=Object.assign(Object.assign({},p),x),this.animateToDate(x),this.confirm()):(this.setWorkingParts(Object.assign(Object.assign({},this.workingParts),x)),b?this.setActiveParts(x,w):this.setActiveParts(Object.assign(Object.assign({},p),x))))}},P))}))))}renderCalendarBody(){return r("div",{class:"calendar-body ion-focusable",ref:t=>this.calendarBodyRef=t,tabindex:"0"},N(this.workingParts,this.forceRenderDate).map((({month:t,year:e})=>this.renderMonth(t,e))))}renderCalendar(t){return r("div",{class:"datetime-calendar",key:"datetime-calendar"},this.renderCalendarHeader(t),this.renderCalendarBody())}renderTimeLabel(){if(null!==this.el.querySelector('[slot="time-label"]')||this.showDefaultTimeLabel)return r("slot",{name:"time-label"},"Time")}renderTimeOverlay(){const{disabled:t,hourCycle:e,isTimePopoverOpen:a,locale:i,formatOptions:n}=this,o=st(i,e),s=this.getActivePartsWithFallback();return[r("div",{class:"time-header"},this.renderTimeLabel()),r("button",{class:{"time-body":!0,"time-body-active":a},part:"time-button"+(a?" active":""),"aria-expanded":"false","aria-haspopup":"true",disabled:t,onClick:async t=>{const{popoverRef:e}=this;e&&(this.isTimePopoverOpen=!0,e.present(new CustomEvent("ionShadowTarget",{detail:{ionShadowTarget:t.target}})),await e.onWillDismiss(),this.isTimePopoverOpen=!1)}},dt(i,s,o,null==n?void 0:n.time)),r("ion-popover",{alignment:"center",translucent:!0,overlayIndex:1,arrow:!1,onWillPresent:t=>{t.target.querySelectorAll("ion-picker-column").forEach((t=>t.scrollActiveItemIntoView()))},style:{"--offset-y":"-10px","--min-width":"fit-content"},keyboardEvents:!0,ref:t=>this.popoverRef=t},this.renderWheelPicker("time"))]}getHeaderSelectedDateText(){var e;const{activeParts:a,formatOptions:i,multiple:n,titleSelectedDatesFormatter:o}=this;let r;if(n&&Array.isArray(a)&&1!==a.length){if(r=a.length+" days",void 0!==o)try{r=o(Q(a))}catch(e){t("[ion-datetime] - Exception in provided `titleSelectedDatesFormatter`:",e)}}else r=lt(this.locale,this.getActivePartsWithFallback(),null!==(e=null==i?void 0:i.date)&&void 0!==e?e:{weekday:"short",month:"short",day:"numeric"});return r}renderHeader(t=!0){if(null!==this.el.querySelector('[slot="title"]')||this.showDefaultTitle)return r("div",{class:"datetime-header"},r("div",{class:"datetime-title"},r("slot",{name:"title"},"Select Date")),t&&r("div",{class:"datetime-selected-date"},this.getHeaderSelectedDateText()))}renderTime(){const{presentation:t}=this;return r("div",{class:"datetime-time"},"time"===t?this.renderWheelPicker():this.renderTimeOverlay())}renderCalendarViewMonthYearPicker(){return r("div",{class:"datetime-year"},this.renderWheelView("month-year"))}renderDatetime(t){const{presentation:e,preferWheel:a}=this;if(a&&("date"===e||"date-time"===e||"time-date"===e))return[this.renderHeader(!1),this.renderWheelView(),this.renderFooter()];switch(e){case"date-time":return[this.renderHeader(),this.renderCalendar(t),this.renderCalendarViewMonthYearPicker(),this.renderTime(),this.renderFooter()];case"time-date":return[this.renderHeader(),this.renderTime(),this.renderCalendar(t),this.renderCalendarViewMonthYearPicker(),this.renderFooter()];case"time":return[this.renderHeader(!1),this.renderTime(),this.renderFooter()];case"month":case"month-year":case"year":return[this.renderHeader(!1),this.renderWheelView(),this.renderFooter()];default:return[this.renderHeader(),this.renderCalendar(t),this.renderCalendarViewMonthYearPicker(),this.renderFooter()]}}render(){const{name:t,value:e,disabled:a,el:i,color:n,readonly:o,showMonthAndYear:d,preferWheel:l,presentation:h,size:c,isGridStyle:m}=this,u=w(this),y="year"===h||"month"===h||"month-year"===h,g=d||y,f=d&&!y,x=("date"===h||"date-time"===h||"time-date"===h)&&l;return p(!0,i,t,ht(e),a),r(s,{key:"efdbc0922670a841bc667ceac392cdc1dedffd01","aria-disabled":a?"true":null,onFocus:this.onFocus,onBlur:this.onBlur,class:Object.assign({},b(n,{[u]:!0,"datetime-readonly":o,"datetime-disabled":a,"show-month-and-year":g,"month-year-picker-open":f,["datetime-presentation-"+h]:!0,["datetime-size-"+c]:!0,"datetime-prefer-wheel":x,"datetime-grid":m}))},r("div",{key:"3f8bb75fcb0baff55182ef3aa1b535eacc58d81f",class:"intersection-tracker",ref:t=>this.intersectionTrackerRef=t}),this.renderDatetime(u))}get el(){return this}static get watchers(){return{formatOptions:[{formatOptionsChanged:0}],disabled:[{disabledChanged:0}],min:[{minChanged:0}],max:[{maxChanged:0}],presentation:[{presentationChanged:0}],yearValues:[{yearValuesChanged:0}],monthValues:[{monthValuesChanged:0}],dayValues:[{dayValuesChanged:0}],hourValues:[{hourValuesChanged:0}],minuteValues:[{minuteValuesChanged:0}],value:[{valueChanged:0}]}}static get style(){return{ios:':host{display:flex;flex-flow:column;background:var(--background);overflow:hidden}:host(.datetime-size-fixed){width:auto;height:auto}:host(.datetime-size-fixed:not(.datetime-prefer-wheel)){max-width:350px}:host(.datetime-size-fixed.datetime-prefer-wheel){min-width:350px;max-width:max-content}:host(.datetime-size-cover){width:100%}:host .calendar-body,:host .datetime-year{opacity:0}:host(:not(.datetime-ready)) .datetime-year{position:absolute;pointer-events:none}:host(.datetime-ready) .calendar-body{opacity:1}:host(.datetime-ready) .datetime-year{display:none;opacity:1}:host .wheel-order-year-first .day-column{order:3;text-align:end}:host .wheel-order-year-first .month-column{order:2;text-align:end}:host .wheel-order-year-first .year-column{order:1;text-align:start}:host .datetime-calendar,:host .datetime-year{display:flex;flex:1 1 auto;flex-flow:column}:host(.show-month-and-year) .datetime-year{display:flex}:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{display:none}:host(.month-year-picker-open) .datetime-footer{display:none}:host(.datetime-disabled){pointer-events:none}:host(.datetime-disabled) .calendar-days-of-week,:host(.datetime-disabled) .datetime-time{opacity:0.4}:host(.datetime-readonly){pointer-events:none;}:host(.datetime-readonly) .calendar-action-buttons,:host(.datetime-readonly) .calendar-body,:host(.datetime-readonly) .datetime-year{pointer-events:initial}:host(.datetime-readonly) .calendar-day[disabled]:not(.calendar-day-constrained),:host(.datetime-readonly) .datetime-action-buttons ion-button[disabled]{opacity:1}:host .datetime-header .datetime-title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host .datetime-action-buttons.has-clear-button{width:100%}:host .datetime-action-buttons ion-buttons{display:flex;justify-content:space-between}.datetime-action-buttons .datetime-action-buttons-container{display:flex}:host .calendar-action-buttons{display:flex;justify-content:space-between}:host .calendar-action-buttons ion-button{--background:transparent}:host .calendar-days-of-week{display:grid;grid-template-columns:repeat(7, 1fr);text-align:center}.calendar-days-of-week .day-of-week{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0}:host .calendar-body{display:flex;flex-grow:1;scroll-snap-type:x mandatory;overflow-x:scroll;overflow-y:hidden;scrollbar-width:none;outline:none}:host .calendar-body .calendar-month{display:flex;flex-flow:column;scroll-snap-align:start;scroll-snap-stop:always;flex-shrink:0;width:100%}:host .calendar-body .calendar-month-disabled{scroll-snap-align:none}:host .calendar-body::-webkit-scrollbar{display:none}:host .calendar-body .calendar-month-grid{display:grid;grid-template-columns:repeat(7, 1fr)}:host .calendar-day-wrapper{display:flex;align-items:center;justify-content:center;min-width:0;min-height:0;overflow:visible}.calendar-day{border-radius:50%;-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:0px;padding-bottom:0px;-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px;margin-top:0px;margin-bottom:0px;display:flex;position:relative;align-items:center;justify-content:center;border:none;outline:none;background:none;color:currentColor;font-family:var(--ion-font-family, inherit);cursor:pointer;appearance:none;z-index:0}:host .calendar-day[disabled]{pointer-events:none;opacity:0.4}.calendar-day:not(.calendar-day-adjacent-day):focus{background:rgba(var(--ion-color-base-rgb), 0.2);box-shadow:0px 0px 0px 4px rgba(var(--ion-color-base-rgb), 0.2)}:host .datetime-time{display:flex;justify-content:space-between}:host(.datetime-presentation-time) .datetime-time{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}:host ion-popover{--height:200px}:host .time-header{display:flex;align-items:center}:host .time-body{border-radius:8px;-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:6px;padding-bottom:6px;display:flex;border:none;background:var(--ion-color-step-300, var(--ion-background-color-step-300, #edeef0));color:var(--ion-text-color, #000);font-family:inherit;font-size:inherit;cursor:pointer;appearance:none}:host .time-body-active{color:var(--ion-color-base)}:host(.in-item){position:static}:host(.show-month-and-year) .calendar-action-buttons .calendar-month-year-toggle{color:var(--ion-color-base)}.calendar-month-year{min-width:0}.calendar-month-year-toggle{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;position:relative;border:0;outline:none;background:transparent;cursor:pointer;z-index:1}.calendar-month-year-toggle::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0;transition:opacity 15ms linear, background-color 15ms linear;z-index:-1}.calendar-month-year-toggle.ion-focused::after{background:currentColor}.calendar-month-year-toggle:disabled{opacity:0.3;pointer-events:none}.calendar-month-year-toggle ion-icon{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:0;padding-inline-end:0;padding-top:0;padding-bottom:0;flex-shrink:0}.calendar-month-year-toggle #toggle-wrapper{display:inline-flex;align-items:center}ion-picker{--highlight-background:var(--wheel-highlight-background);--highlight-border-radius:var(--wheel-highlight-border-radius);--fade-background-rgb:var(--wheel-fade-background-rgb)}:host{--background:var(--ion-color-light, #f4f5f8);--background-rgb:var(--ion-color-light-rgb, 244, 245, 248);--title-color:var(--ion-color-step-600, var(--ion-text-color-step-400, #666666))}:host(.datetime-presentation-date-time:not(.datetime-prefer-wheel)),:host(.datetime-presentation-time-date:not(.datetime-prefer-wheel)),:host(.datetime-presentation-date:not(.datetime-prefer-wheel)){min-height:350px}:host .datetime-header{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:16px;padding-bottom:16px;border-bottom:0.55px solid var(--ion-color-step-200, var(--ion-background-color-step-200, #cccccc));font-size:min(0.875rem, 22.4px)}:host .datetime-header .datetime-title{color:var(--title-color)}:host .datetime-header .datetime-selected-date{margin-top:10px}.calendar-month-year-toggle{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:0px;padding-bottom:0px;min-height:44px;font-size:min(1rem, 25.6px);font-weight:600}.calendar-month-year-toggle.ion-focused::after{opacity:0.15}.calendar-month-year-toggle #toggle-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:8px;margin-inline-end:8px;margin-top:10px;margin-bottom:10px}:host .calendar-action-buttons .calendar-month-year-toggle ion-icon,:host .calendar-action-buttons ion-buttons ion-button{color:var(--ion-color-base)}:host .calendar-action-buttons ion-buttons{padding-left:0;padding-right:0;padding-top:8px;padding-bottom:0}:host .calendar-action-buttons ion-buttons ion-button{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}:host .calendar-days-of-week{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:0;padding-bottom:0;color:var(--ion-color-step-300, var(--ion-text-color-step-700, #b3b3b3));font-size:min(0.75rem, 19.2px);font-weight:600;line-height:24px;text-transform:uppercase}@supports (border-radius: mod(1px, 1px)){.calendar-days-of-week .day-of-week{width:clamp(20px, calc(mod(min(1rem, 24px), 24px) * 10), 100%);height:24px;overflow:hidden}.calendar-day{border-radius:max(8px, mod(min(1rem, 24px), 24px) * 10)}}@supports ((border-radius: mod(1px, 1px)) and (background: -webkit-named-image(apple-pay-logo-black)) and (not (contain-intrinsic-size: none))) or (not (border-radius: mod(1px, 1px))){.calendar-days-of-week .day-of-week{width:auto;height:auto;overflow:initial}.calendar-day{border-radius:32px}}:host .calendar-body .calendar-month .calendar-month-grid{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;align-items:center;height:calc(100% - 16px)}:host .calendar-day-wrapper{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;height:0;min-height:1rem}:host .calendar-day{width:40px;min-width:40px;height:40px;font-size:min(1.25rem, 32px)}.calendar-day.calendar-day-active{background:rgba(var(--ion-color-base-rgb), 0.2);font-size:min(1.375rem, 35.2px)}:host .calendar-day.calendar-day-today{color:var(--ion-color-base)}:host .calendar-day.calendar-day-active,:host .calendar-day.calendar-day-adjacent-day.calendar-day-active{color:var(--ion-color-base);font-weight:600}:host .calendar-day.calendar-day-today.calendar-day-active{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host .calendar-day.calendar-day-adjacent-day{color:var(--ion-color-step-300, var(--ion-text-color-step-700, #b3b3b3))}:host .datetime-time{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:8px;padding-bottom:16px;font-size:min(1rem, 25.6px)}:host .datetime-time .time-header{font-weight:600}:host .datetime-buttons{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;border-top:0.55px solid var(--ion-color-step-200, var(--ion-background-color-step-200, #cccccc))}:host .datetime-buttons ::slotted(ion-buttons),:host .datetime-buttons ion-buttons{display:flex;align-items:center;justify-content:space-between}:host .datetime-action-buttons{width:100%}',md:':host{display:flex;flex-flow:column;background:var(--background);overflow:hidden}:host(.datetime-size-fixed){width:auto;height:auto}:host(.datetime-size-fixed:not(.datetime-prefer-wheel)){max-width:350px}:host(.datetime-size-fixed.datetime-prefer-wheel){min-width:350px;max-width:max-content}:host(.datetime-size-cover){width:100%}:host .calendar-body,:host .datetime-year{opacity:0}:host(:not(.datetime-ready)) .datetime-year{position:absolute;pointer-events:none}:host(.datetime-ready) .calendar-body{opacity:1}:host(.datetime-ready) .datetime-year{display:none;opacity:1}:host .wheel-order-year-first .day-column{order:3;text-align:end}:host .wheel-order-year-first .month-column{order:2;text-align:end}:host .wheel-order-year-first .year-column{order:1;text-align:start}:host .datetime-calendar,:host .datetime-year{display:flex;flex:1 1 auto;flex-flow:column}:host(.show-month-and-year) .datetime-year{display:flex}:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{display:none}:host(.month-year-picker-open) .datetime-footer{display:none}:host(.datetime-disabled){pointer-events:none}:host(.datetime-disabled) .calendar-days-of-week,:host(.datetime-disabled) .datetime-time{opacity:0.4}:host(.datetime-readonly){pointer-events:none;}:host(.datetime-readonly) .calendar-action-buttons,:host(.datetime-readonly) .calendar-body,:host(.datetime-readonly) .datetime-year{pointer-events:initial}:host(.datetime-readonly) .calendar-day[disabled]:not(.calendar-day-constrained),:host(.datetime-readonly) .datetime-action-buttons ion-button[disabled]{opacity:1}:host .datetime-header .datetime-title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host .datetime-action-buttons.has-clear-button{width:100%}:host .datetime-action-buttons ion-buttons{display:flex;justify-content:space-between}.datetime-action-buttons .datetime-action-buttons-container{display:flex}:host .calendar-action-buttons{display:flex;justify-content:space-between}:host .calendar-action-buttons ion-button{--background:transparent}:host .calendar-days-of-week{display:grid;grid-template-columns:repeat(7, 1fr);text-align:center}.calendar-days-of-week .day-of-week{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0}:host .calendar-body{display:flex;flex-grow:1;scroll-snap-type:x mandatory;overflow-x:scroll;overflow-y:hidden;scrollbar-width:none;outline:none}:host .calendar-body .calendar-month{display:flex;flex-flow:column;scroll-snap-align:start;scroll-snap-stop:always;flex-shrink:0;width:100%}:host .calendar-body .calendar-month-disabled{scroll-snap-align:none}:host .calendar-body::-webkit-scrollbar{display:none}:host .calendar-body .calendar-month-grid{display:grid;grid-template-columns:repeat(7, 1fr)}:host .calendar-day-wrapper{display:flex;align-items:center;justify-content:center;min-width:0;min-height:0;overflow:visible}.calendar-day{border-radius:50%;-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:0px;padding-bottom:0px;-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px;margin-top:0px;margin-bottom:0px;display:flex;position:relative;align-items:center;justify-content:center;border:none;outline:none;background:none;color:currentColor;font-family:var(--ion-font-family, inherit);cursor:pointer;appearance:none;z-index:0}:host .calendar-day[disabled]{pointer-events:none;opacity:0.4}.calendar-day:not(.calendar-day-adjacent-day):focus{background:rgba(var(--ion-color-base-rgb), 0.2);box-shadow:0px 0px 0px 4px rgba(var(--ion-color-base-rgb), 0.2)}:host .datetime-time{display:flex;justify-content:space-between}:host(.datetime-presentation-time) .datetime-time{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}:host ion-popover{--height:200px}:host .time-header{display:flex;align-items:center}:host .time-body{border-radius:8px;-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:6px;padding-bottom:6px;display:flex;border:none;background:var(--ion-color-step-300, var(--ion-background-color-step-300, #edeef0));color:var(--ion-text-color, #000);font-family:inherit;font-size:inherit;cursor:pointer;appearance:none}:host .time-body-active{color:var(--ion-color-base)}:host(.in-item){position:static}:host(.show-month-and-year) .calendar-action-buttons .calendar-month-year-toggle{color:var(--ion-color-base)}.calendar-month-year{min-width:0}.calendar-month-year-toggle{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;position:relative;border:0;outline:none;background:transparent;cursor:pointer;z-index:1}.calendar-month-year-toggle::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0;transition:opacity 15ms linear, background-color 15ms linear;z-index:-1}.calendar-month-year-toggle.ion-focused::after{background:currentColor}.calendar-month-year-toggle:disabled{opacity:0.3;pointer-events:none}.calendar-month-year-toggle ion-icon{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:0;padding-inline-end:0;padding-top:0;padding-bottom:0;flex-shrink:0}.calendar-month-year-toggle #toggle-wrapper{display:inline-flex;align-items:center}ion-picker{--highlight-background:var(--wheel-highlight-background);--highlight-border-radius:var(--wheel-highlight-border-radius);--fade-background-rgb:var(--wheel-fade-background-rgb)}:host{--background:var(--ion-color-step-100, var(--ion-background-color-step-100, #ffffff));--title-color:var(--ion-color-contrast)}:host .datetime-header{-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:20px;padding-inline-end:20px;padding-top:20px;padding-bottom:20px;background:var(--ion-color-base);color:var(--title-color)}:host .datetime-header .datetime-title{font-size:0.75rem;text-transform:uppercase}:host .datetime-header .datetime-selected-date{margin-top:30px;font-size:2.125rem}:host .calendar-action-buttons ion-button{--color:var(--ion-color-step-650, var(--ion-text-color-step-350, #595959))}.calendar-month-year-toggle{-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:12px;padding-bottom:12px;min-height:48px;background:transparent;color:var(--ion-color-step-650, var(--ion-text-color-step-350, #595959));z-index:1}.calendar-month-year-toggle.ion-focused::after{opacity:0.04}.calendar-month-year-toggle ion-ripple-effect{color:currentColor}@media (any-hover: hover){.calendar-month-year-toggle.ion-activatable:not(.ion-focused):hover::after{background:currentColor;opacity:0.04}}:host .calendar-days-of-week{-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px;padding-top:0px;padding-bottom:0px;color:var(--ion-color-step-500, var(--ion-text-color-step-500, gray));font-size:0.875rem;line-height:36px}:host .calendar-body .calendar-month .calendar-month-grid{-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px;padding-top:4px;padding-bottom:4px;grid-template-rows:repeat(6, 1fr)}:host .calendar-day{width:42px;min-width:42px;height:42px;font-size:0.875rem}:host .calendar-day.calendar-day-today{border:1px solid var(--ion-color-base);color:var(--ion-color-base)}:host .calendar-day.calendar-day-active,:host .calendar-day.calendar-day-adjacent-day.calendar-day-active{color:var(--ion-color-contrast)}.calendar-day.calendar-day-active,.calendar-day.calendar-day-active:focus{border:1px solid var(--ion-color-base);background:var(--ion-color-base)}:host .calendar-day.calendar-day-adjacent-day{color:var(--ion-color-step-500, var(--ion-text-color-step-500, gray))}:host .datetime-time{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:8px;padding-bottom:8px}:host .time-header{color:var(--ion-color-step-650, var(--ion-text-color-step-350, #595959))}:host(.datetime-presentation-month) .datetime-year,:host(.datetime-presentation-year) .datetime-year,:host(.datetime-presentation-month-year) .datetime-year{margin-top:20px;margin-bottom:20px}:host .datetime-buttons{-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px;padding-top:10px;padding-bottom:10px;display:flex;align-items:center;justify-content:flex-end}'}}},[289,"ion-datetime",{color:[1],name:[1],disabled:[4],formatOptions:[16],readonly:[4],isDateEnabled:[16],showAdjacentDays:[4,"show-adjacent-days"],min:[1025],max:[1025],presentation:[1],cancelText:[1,"cancel-text"],doneText:[1,"done-text"],clearText:[1,"clear-text"],yearValues:[8,"year-values"],monthValues:[8,"month-values"],dayValues:[8,"day-values"],hourValues:[8,"hour-values"],minuteValues:[8,"minute-values"],locale:[1],firstDayOfWeek:[2,"first-day-of-week"],titleSelectedDatesFormatter:[16],multiple:[4],highlightedDates:[16],value:[1025],showDefaultTitle:[4,"show-default-title"],showDefaultButtons:[4,"show-default-buttons"],showClearButton:[4,"show-clear-button"],showDefaultTimeLabel:[4,"show-default-time-label"],hourCycle:[1,"hour-cycle"],size:[1],preferWheel:[4,"prefer-wheel"],showMonthAndYear:[32],activeParts:[32],workingParts:[32],isTimePopoverOpen:[32],forceRenderDate:[32],confirm:[64],reset:[64],cancel:[64]},void 0,{formatOptions:[{formatOptionsChanged:0}],disabled:[{disabledChanged:0}],min:[{minChanged:0}],max:[{maxChanged:0}],presentation:[{presentationChanged:0}],yearValues:[{yearValuesChanged:0}],monthValues:[{monthValuesChanged:0}],dayValues:[{dayValuesChanged:0}],hourValues:[{hourValuesChanged:0}],minuteValues:[{minuteValuesChanged:0}],value:[{valueChanged:0}]}]);let Dt=0;const Vt="datetime-cancel",zt="datetime-confirm",$t="wheel-item",At="active",Tt=Pt,Et=function(){"undefined"!=typeof customElements&&["ion-datetime","ion-backdrop","ion-button","ion-buttons","ion-icon","ion-picker","ion-picker-column","ion-picker-column-option","ion-popover","ion-ripple-effect"].forEach((t=>{switch(t){case"ion-datetime":customElements.get(d(t))||customElements.define(d(t),Pt);break;case"ion-backdrop":customElements.get(d(t))||pt();break;case"ion-button":customElements.get(d(t))||mt();break;case"ion-buttons":customElements.get(d(t))||ut();break;case"ion-icon":customElements.get(d(t))||bt();break;case"ion-picker":customElements.get(d(t))||yt();break;case"ion-picker-column":customElements.get(d(t))||gt();break;case"ion-picker-column-option":customElements.get(d(t))||ft();break;case"ion-popover":customElements.get(d(t))||xt();break;case"ion-ripple-effect":customElements.get(d(t))||vt()}}))};export{Tt as IonDatetime,Et as defineCustomElement}