@ionic/core 8.2.8 → 8.3.1-dev.11725619573.1107b613

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 (1176) hide show
  1. package/components/action-sheet.js +13 -8
  2. package/components/alert.js +14 -10
  3. package/components/backdrop.js +10 -6
  4. package/components/button.js +41 -11
  5. package/components/buttons.js +11 -7
  6. package/components/caret-down.js +6 -0
  7. package/components/caret-left.js +6 -0
  8. package/components/caret-right.js +6 -0
  9. package/components/checkbox.js +34 -17
  10. package/components/data.js +4 -4
  11. package/components/index2.js +1 -2
  12. package/components/index4.js +8 -7
  13. package/components/index6.js +27 -30
  14. package/components/index7.js +124 -27
  15. package/components/index8.js +150 -111
  16. package/components/input-shims.js +1 -1
  17. package/components/input.utils.js +1 -1
  18. package/components/ion-accordion-group.js +9 -6
  19. package/components/ion-accordion.js +31 -9
  20. package/components/ion-app.js +5 -6
  21. package/components/ion-avatar.js +52 -3
  22. package/components/ion-back-button.js +28 -19
  23. package/components/ion-badge.js +44 -8
  24. package/components/ion-breadcrumb.js +44 -11
  25. package/components/ion-breadcrumbs.js +9 -5
  26. package/components/ion-card-content.js +11 -7
  27. package/components/ion-card-header.js +9 -5
  28. package/components/ion-card-subtitle.js +9 -5
  29. package/components/ion-card-title.js +9 -5
  30. package/components/ion-card.js +17 -9
  31. package/components/ion-chip.js +45 -8
  32. package/components/ion-col.js +5 -5
  33. package/components/ion-content.js +11 -11
  34. package/components/ion-datetime-button.js +9 -6
  35. package/components/ion-datetime.js +95 -20
  36. package/components/ion-fab-button.js +32 -10
  37. package/components/ion-fab-list.js +5 -5
  38. package/components/ion-fab.js +6 -6
  39. package/components/ion-footer.js +15 -11
  40. package/components/ion-grid.js +5 -5
  41. package/components/ion-header.js +20 -13
  42. package/components/ion-img.js +5 -2
  43. package/components/ion-infinite-scroll-content.js +12 -8
  44. package/components/ion-infinite-scroll.js +5 -5
  45. package/components/ion-input-password-toggle.js +52 -14
  46. package/components/ion-input.js +117 -20
  47. package/components/ion-item-divider.js +9 -5
  48. package/components/ion-item-group.js +9 -5
  49. package/components/ion-item-option.js +28 -8
  50. package/components/ion-item-options.js +9 -5
  51. package/components/ion-item-sliding.js +5 -5
  52. package/components/ion-loading.js +12 -8
  53. package/components/ion-menu-button.js +27 -10
  54. package/components/ion-menu-toggle.js +5 -5
  55. package/components/ion-menu.js +11 -7
  56. package/components/ion-modal.js +14 -11
  57. package/components/ion-nav-link.js +1 -1
  58. package/components/ion-nav.js +7 -6
  59. package/components/ion-note.js +9 -5
  60. package/components/ion-picker-legacy.js +7 -8
  61. package/components/ion-progress-bar.js +10 -6
  62. package/components/ion-range.js +11 -8
  63. package/components/ion-refresher-content.js +27 -9
  64. package/components/ion-refresher.js +11 -7
  65. package/components/ion-reorder-group.js +5 -5
  66. package/components/ion-reorder.js +30 -5
  67. package/components/ion-router-link.js +6 -6
  68. package/components/ion-router-outlet.js +2 -2
  69. package/components/ion-row.js +5 -2
  70. package/components/ion-searchbar.js +92 -16
  71. package/components/ion-segment-button.js +12 -8
  72. package/components/ion-segment.js +9 -5
  73. package/components/ion-select-option.js +5 -2
  74. package/components/ion-select.js +78 -30
  75. package/components/ion-skeleton-text.js +5 -5
  76. package/components/ion-split-pane.js +12 -8
  77. package/components/ion-tab-bar.js +11 -7
  78. package/components/ion-tab-button.js +11 -7
  79. package/components/ion-tab.js +2 -2
  80. package/components/ion-tabs.js +13 -3
  81. package/components/ion-text.js +5 -5
  82. package/components/ion-textarea.js +38 -11
  83. package/components/ion-thumbnail.js +5 -2
  84. package/components/ion-title.js +11 -7
  85. package/components/ion-toast.js +13 -9
  86. package/components/ion-toggle.js +80 -22
  87. package/components/ion-toolbar.js +11 -7
  88. package/components/ionic-global.js +191 -14
  89. package/components/ios.transition.js +1 -0
  90. package/components/item.js +40 -11
  91. package/components/label.js +9 -5
  92. package/components/list-header.js +9 -5
  93. package/components/list.js +29 -6
  94. package/components/list2.js +6 -0
  95. package/components/overlays.js +1 -2
  96. package/components/picker-column-option.js +9 -5
  97. package/components/picker-column.js +7 -7
  98. package/components/picker-column2.js +4 -4
  99. package/components/picker.js +8 -4
  100. package/components/popover.js +11 -8
  101. package/components/radio-group.js +5 -3
  102. package/components/radio.js +16 -12
  103. package/components/ripple-effect.js +18 -8
  104. package/components/select-popover.js +9 -2
  105. package/components/spinner.js +35 -9
  106. package/components/status-tap.js +1 -1
  107. package/components/x.js +6 -0
  108. package/css/core.css +1 -1
  109. package/css/core.css.map +1 -1
  110. package/css/display.css.map +1 -1
  111. package/css/flex-utils.css.map +1 -1
  112. package/css/float-elements.css.map +1 -1
  113. package/css/global.bundle.css +1 -1
  114. package/css/global.bundle.css.map +1 -1
  115. package/css/ionic/bundle.ionic.css +1 -0
  116. package/css/ionic/bundle.ionic.css.map +1 -0
  117. package/css/ionic/core.ionic.css +1 -0
  118. package/css/ionic/core.ionic.css.map +1 -0
  119. package/css/ionic/global.bundle.ionic.css +1 -0
  120. package/css/ionic/global.bundle.ionic.css.map +1 -0
  121. package/css/ionic/ionic-swiper.ionic.css +1 -0
  122. package/css/ionic/ionic-swiper.ionic.css.map +1 -0
  123. package/css/ionic/link.ionic.css +1 -0
  124. package/css/ionic/link.ionic.css.map +1 -0
  125. package/css/ionic/structure.ionic.css +1 -0
  126. package/css/ionic/structure.ionic.css.map +1 -0
  127. package/css/ionic/typography.ionic.css +1 -0
  128. package/css/ionic/typography.ionic.css.map +1 -0
  129. package/css/ionic/utils.bundle.ionic.css +1 -0
  130. package/css/ionic/utils.bundle.ionic.css.map +1 -0
  131. package/css/ionic-swiper.css +1 -1
  132. package/css/ionic-swiper.css.map +1 -1
  133. package/css/ionic.bundle.css +1 -1
  134. package/css/ionic.bundle.css.map +1 -1
  135. package/css/normalize.css.map +1 -1
  136. package/css/padding.css.map +1 -1
  137. package/css/palettes/dark.always.css.map +1 -1
  138. package/css/palettes/dark.class.css.map +1 -1
  139. package/css/palettes/dark.system.css.map +1 -1
  140. package/css/palettes/high-contrast-dark.always.css.map +1 -1
  141. package/css/palettes/high-contrast-dark.class.css.map +1 -1
  142. package/css/palettes/high-contrast-dark.system.css.map +1 -1
  143. package/css/palettes/high-contrast.always.css.map +1 -1
  144. package/css/palettes/high-contrast.class.css.map +1 -1
  145. package/css/palettes/high-contrast.system.css.map +1 -1
  146. package/css/structure.css +1 -1
  147. package/css/structure.css.map +1 -1
  148. package/css/text-alignment.css.map +1 -1
  149. package/css/text-transformation.css.map +1 -1
  150. package/css/typography.css +1 -1
  151. package/css/typography.css.map +1 -1
  152. package/css/utils.bundle.css.map +1 -1
  153. package/dist/cjs/{app-globals-2cfd442b.js → app-globals-5455b6db.js} +1 -1
  154. package/dist/cjs/caret-down-3c215cff.js +8 -0
  155. package/dist/cjs/caret-left-2bb66970.js +8 -0
  156. package/dist/cjs/caret-right-88e03970.js +8 -0
  157. package/dist/cjs/{data-21dc0f81.js → data-6f907069.js} +6 -6
  158. package/dist/cjs/{hardware-back-button-1f867b1e.js → hardware-back-button-ec03884a.js} +1 -1
  159. package/dist/cjs/{index-073c7cdc.js → index-0e360e93.js} +2 -2
  160. package/dist/cjs/{index-c170694d.js → index-3d59ba74.js} +13 -12
  161. package/dist/cjs/{index-5b6a7459.js → index-afc43278.js} +2 -2
  162. package/dist/cjs/{index-9bdd4f2a.js → index-f28d653f.js} +7 -8
  163. package/dist/cjs/index.cjs.js +7 -8
  164. package/dist/cjs/{input-shims-9e59ef62.js → input-shims-d7b15d63.js} +3 -2
  165. package/dist/cjs/{input.utils-611cde0b.js → input.utils-3967b058.js} +2 -2
  166. package/dist/cjs/ion-accordion_2.cjs.entry.js +40 -15
  167. package/dist/cjs/ion-action-sheet.cjs.entry.js +15 -11
  168. package/dist/cjs/ion-alert.cjs.entry.js +16 -13
  169. package/dist/cjs/ion-app_8.cjs.entry.js +93 -72
  170. package/dist/cjs/ion-avatar_3.cjs.entry.js +92 -9
  171. package/dist/cjs/ion-back-button.cjs.entry.js +28 -19
  172. package/dist/cjs/ion-backdrop.cjs.entry.js +10 -6
  173. package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +52 -15
  174. package/dist/cjs/ion-button_2.cjs.entry.js +44 -14
  175. package/dist/cjs/ion-card_5.cjs.entry.js +50 -27
  176. package/dist/cjs/ion-checkbox.cjs.entry.js +31 -16
  177. package/dist/cjs/ion-chip.cjs.entry.js +42 -7
  178. package/dist/cjs/ion-col_3.cjs.entry.js +13 -10
  179. package/dist/cjs/ion-datetime-button.cjs.entry.js +14 -11
  180. package/dist/cjs/ion-datetime_3.cjs.entry.js +183 -108
  181. package/dist/cjs/ion-fab_3.cjs.entry.js +41 -19
  182. package/dist/cjs/ion-img.cjs.entry.js +5 -2
  183. package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +16 -13
  184. package/dist/cjs/ion-input-password-toggle.cjs.entry.js +54 -16
  185. package/dist/cjs/ion-input.cjs.entry.js +116 -21
  186. package/dist/cjs/ion-item-option_3.cjs.entry.js +38 -16
  187. package/dist/cjs/ion-item_8.cjs.entry.js +111 -40
  188. package/dist/cjs/ion-loading.cjs.entry.js +14 -11
  189. package/dist/cjs/ion-menu_3.cjs.entry.js +44 -24
  190. package/dist/cjs/ion-modal.cjs.entry.js +22 -19
  191. package/dist/cjs/ion-nav_2.cjs.entry.js +9 -8
  192. package/dist/cjs/ion-picker-column-option.cjs.entry.js +9 -5
  193. package/dist/cjs/ion-picker-column.cjs.entry.js +7 -7
  194. package/dist/cjs/ion-picker.cjs.entry.js +8 -4
  195. package/dist/cjs/ion-popover.cjs.entry.js +17 -14
  196. package/dist/cjs/ion-progress-bar.cjs.entry.js +10 -6
  197. package/dist/cjs/ion-radio_2.cjs.entry.js +20 -14
  198. package/dist/cjs/ion-range.cjs.entry.js +16 -13
  199. package/dist/cjs/ion-refresher_2.cjs.entry.js +36 -15
  200. package/dist/cjs/ion-reorder_2.cjs.entry.js +34 -10
  201. package/dist/cjs/ion-ripple-effect.cjs.entry.js +17 -7
  202. package/dist/cjs/ion-route_4.cjs.entry.js +6 -6
  203. package/dist/cjs/ion-searchbar.cjs.entry.js +92 -16
  204. package/dist/cjs/ion-segment_2.cjs.entry.js +20 -12
  205. package/dist/cjs/ion-select_3.cjs.entry.js +92 -35
  206. package/dist/cjs/ion-spinner.cjs.entry.js +32 -7
  207. package/dist/cjs/ion-split-pane.cjs.entry.js +12 -8
  208. package/dist/cjs/ion-tab-bar_2.cjs.entry.js +21 -13
  209. package/dist/cjs/ion-tab_2.cjs.entry.js +15 -5
  210. package/dist/cjs/ion-text.cjs.entry.js +5 -5
  211. package/dist/cjs/ion-textarea.cjs.entry.js +38 -13
  212. package/dist/cjs/ion-toast.cjs.entry.js +36 -32
  213. package/dist/cjs/ion-toggle.cjs.entry.js +80 -22
  214. package/dist/cjs/ionic-global-f18d6c8d.js +418 -0
  215. package/dist/cjs/ionic.cjs.js +3 -3
  216. package/dist/cjs/{ios.transition-ac67e283.js → ios.transition-80b71ce4.js} +3 -3
  217. package/dist/cjs/list-2930c629.js +8 -0
  218. package/dist/cjs/loader.cjs.js +3 -3
  219. package/dist/cjs/{md.transition-8ceb4e1a.js → md.transition-b470bc3e.js} +2 -3
  220. package/dist/cjs/{overlays-4451d3fc.js → overlays-e91a13fd.js} +3 -4
  221. package/dist/cjs/{status-tap-e52a48f8.js → status-tap-1e8a064e.js} +2 -2
  222. package/dist/cjs/x-81a8f51c.js +8 -0
  223. package/dist/collection/components/accordion/accordion.ios.css +12 -0
  224. package/dist/collection/components/accordion/accordion.js +35 -15
  225. package/dist/collection/components/accordion/accordion.md.css +6 -0
  226. package/dist/collection/components/accordion-group/accordion-group.ios.css +12 -0
  227. package/dist/collection/components/accordion-group/accordion-group.js +11 -8
  228. package/dist/collection/components/accordion-group/accordion-group.md.css +18 -0
  229. package/dist/collection/components/action-sheet/action-sheet.ios.css +18 -6
  230. package/dist/collection/components/action-sheet/action-sheet.js +14 -10
  231. package/dist/collection/components/action-sheet/action-sheet.md.css +17 -5
  232. package/dist/collection/components/alert/alert.ios.css +19 -1
  233. package/dist/collection/components/alert/alert.js +15 -12
  234. package/dist/collection/components/alert/alert.md.css +19 -1
  235. package/dist/collection/components/app/app.js +8 -4
  236. package/dist/collection/components/avatar/avatar.ionic.css +271 -0
  237. package/dist/collection/components/avatar/avatar.ios.css +12 -0
  238. package/dist/collection/components/avatar/avatar.js +92 -4
  239. package/dist/collection/components/avatar/avatar.md.css +12 -0
  240. package/dist/collection/components/back-button/back-button.ios.css +60 -48
  241. package/dist/collection/components/back-button/back-button.js +27 -19
  242. package/dist/collection/components/back-button/back-button.md.css +60 -48
  243. package/dist/collection/components/backdrop/backdrop.ios.css +13 -1
  244. package/dist/collection/components/backdrop/backdrop.js +12 -6
  245. package/dist/collection/components/backdrop/backdrop.md.css +13 -1
  246. package/dist/collection/components/badge/badge.ionic.css +251 -0
  247. package/dist/collection/components/badge/badge.ios.css +106 -3
  248. package/dist/collection/components/badge/badge.js +75 -8
  249. package/dist/collection/components/badge/badge.md.css +106 -3
  250. package/dist/collection/components/breadcrumb/breadcrumb.ios.css +20 -8
  251. package/dist/collection/components/breadcrumb/breadcrumb.js +43 -11
  252. package/dist/collection/components/breadcrumb/breadcrumb.md.css +20 -8
  253. package/dist/collection/components/breadcrumbs/breadcrumbs.ios.css +6 -0
  254. package/dist/collection/components/breadcrumbs/breadcrumbs.js +11 -9
  255. package/dist/collection/components/breadcrumbs/breadcrumbs.md.css +6 -0
  256. package/dist/collection/components/button/button.ionic.css +591 -0
  257. package/dist/collection/components/button/button.ios.css +129 -36
  258. package/dist/collection/components/button/button.js +46 -16
  259. package/dist/collection/components/button/button.md.css +120 -40
  260. package/dist/collection/components/buttons/buttons.ionic.css +101 -0
  261. package/dist/collection/components/buttons/buttons.ios.css +59 -7
  262. package/dist/collection/components/buttons/buttons.js +14 -8
  263. package/dist/collection/components/buttons/buttons.md.css +55 -3
  264. package/dist/collection/components/card/card.ionic.css +139 -0
  265. package/dist/collection/components/card/card.ios.css +65 -14
  266. package/dist/collection/components/card/card.js +34 -10
  267. package/dist/collection/components/card/card.md.css +65 -14
  268. package/dist/collection/components/card-content/card-content.ionic.css +92 -0
  269. package/dist/collection/components/card-content/card-content.ios.css +16 -1
  270. package/dist/collection/components/card-content/card-content.js +11 -8
  271. package/dist/collection/components/card-content/card-content.md.css +16 -1
  272. package/dist/collection/components/card-header/card-header.ionic.css +89 -0
  273. package/dist/collection/components/card-header/card-header.ios.css +27 -15
  274. package/dist/collection/components/card-header/card-header.js +12 -9
  275. package/dist/collection/components/card-header/card-header.md.css +27 -15
  276. package/dist/collection/components/card-subtitle/card-subtitle.ionic.css +148 -0
  277. package/dist/collection/components/card-subtitle/card-subtitle.ios.css +12 -0
  278. package/dist/collection/components/card-subtitle/card-subtitle.js +11 -8
  279. package/dist/collection/components/card-subtitle/card-subtitle.md.css +12 -0
  280. package/dist/collection/components/card-title/card-title.ios.css +73 -0
  281. package/dist/collection/components/card-title/card-title.js +11 -8
  282. package/dist/collection/components/card-title/card-title.md.css +73 -0
  283. package/dist/collection/components/checkbox/checkbox.ionic.css +400 -0
  284. package/dist/collection/components/checkbox/checkbox.ios.css +29 -2
  285. package/dist/collection/components/checkbox/checkbox.js +74 -27
  286. package/dist/collection/components/checkbox/checkbox.md.css +30 -3
  287. package/dist/collection/components/chip/chip.ionic.css +162 -0
  288. package/dist/collection/components/chip/chip.ios.css +20 -1
  289. package/dist/collection/components/chip/chip.js +77 -8
  290. package/dist/collection/components/chip/chip.md.css +20 -1
  291. package/dist/collection/components/col/col.css +12 -0
  292. package/dist/collection/components/col/col.js +9 -5
  293. package/dist/collection/components/content/content.css +8 -2
  294. package/dist/collection/components/content/content.js +13 -10
  295. package/dist/collection/components/datetime/datetime.ionic.css +670 -0
  296. package/dist/collection/components/datetime/datetime.ios.css +232 -73
  297. package/dist/collection/components/datetime/datetime.js +95 -19
  298. package/dist/collection/components/datetime/datetime.md.css +232 -73
  299. package/dist/collection/components/datetime/utils/data.js +3 -3
  300. package/dist/collection/components/datetime-button/datetime-button.ios.css +6 -0
  301. package/dist/collection/components/datetime-button/datetime-button.js +11 -8
  302. package/dist/collection/components/datetime-button/datetime-button.md.css +6 -0
  303. package/dist/collection/components/fab/fab.css +25 -1
  304. package/dist/collection/components/fab/fab.js +9 -5
  305. package/dist/collection/components/fab-button/fab-button.ios.css +18 -6
  306. package/dist/collection/components/fab-button/fab-button.js +36 -15
  307. package/dist/collection/components/fab-button/fab-button.md.css +20 -8
  308. package/dist/collection/components/fab-list/fab-list.css +12 -0
  309. package/dist/collection/components/fab-list/fab-list.js +9 -5
  310. package/dist/collection/components/footer/footer.ios.css +14 -2
  311. package/dist/collection/components/footer/footer.js +17 -14
  312. package/dist/collection/components/footer/footer.md.css +12 -0
  313. package/dist/collection/components/grid/grid.css +12 -0
  314. package/dist/collection/components/grid/grid.js +9 -5
  315. package/dist/collection/components/header/header.ionic.css +88 -0
  316. package/dist/collection/components/header/header.ios.css +25 -10
  317. package/dist/collection/components/header/header.js +38 -15
  318. package/dist/collection/components/header/header.md.css +23 -8
  319. package/dist/collection/components/img/img.js +8 -2
  320. package/dist/collection/components/infinite-scroll/infinite-scroll.js +8 -4
  321. package/dist/collection/components/infinite-scroll-content/infinite-scroll-content.ios.css +12 -0
  322. package/dist/collection/components/infinite-scroll-content/infinite-scroll-content.js +16 -10
  323. package/dist/collection/components/infinite-scroll-content/infinite-scroll-content.md.css +12 -0
  324. package/dist/collection/components/input/input.ionic.css +1099 -0
  325. package/dist/collection/components/input/input.ios.css +21 -2
  326. package/dist/collection/components/input/input.js +143 -29
  327. package/dist/collection/components/input/input.md.css +43 -4
  328. package/dist/collection/components/input-password-toggle/input-password-toggle.common.css +61 -0
  329. package/dist/collection/components/input-password-toggle/input-password-toggle.ionic.css +143 -0
  330. package/dist/collection/components/input-password-toggle/input-password-toggle.js +48 -12
  331. package/dist/collection/components/item/item.ionic.css +494 -0
  332. package/dist/collection/components/item/item.ios.css +108 -69
  333. package/dist/collection/components/item/item.js +44 -16
  334. package/dist/collection/components/item/item.md.css +119 -68
  335. package/dist/collection/components/item-divider/item-divider.ios.css +18 -0
  336. package/dist/collection/components/item-divider/item-divider.js +11 -8
  337. package/dist/collection/components/item-divider/item-divider.md.css +18 -0
  338. package/dist/collection/components/item-group/item-group.ios.css +12 -0
  339. package/dist/collection/components/item-group/item-group.js +13 -7
  340. package/dist/collection/components/item-group/item-group.md.css +12 -0
  341. package/dist/collection/components/item-option/item-option.ionic.css +334 -0
  342. package/dist/collection/components/item-option/item-option.ios.css +14 -2
  343. package/dist/collection/components/item-option/item-option.js +43 -8
  344. package/dist/collection/components/item-option/item-option.md.css +14 -2
  345. package/dist/collection/components/item-options/item-options.ionic.css +260 -0
  346. package/dist/collection/components/item-options/item-options.ios.css +18 -0
  347. package/dist/collection/components/item-options/item-options.js +13 -7
  348. package/dist/collection/components/item-options/item-options.md.css +18 -0
  349. package/dist/collection/components/item-sliding/item-sliding.css +6 -0
  350. package/dist/collection/components/item-sliding/item-sliding.js +8 -4
  351. package/dist/collection/components/label/label.ios.css +18 -0
  352. package/dist/collection/components/label/label.js +11 -8
  353. package/dist/collection/components/label/label.md.css +18 -0
  354. package/dist/collection/components/list/list.ionic.css +196 -0
  355. package/dist/collection/components/list/list.ios.css +18 -0
  356. package/dist/collection/components/list/list.js +47 -9
  357. package/dist/collection/components/list/list.md.css +20 -2
  358. package/dist/collection/components/list-header/list-header.ionic.css +238 -0
  359. package/dist/collection/components/list-header/list-header.ios.css +18 -0
  360. package/dist/collection/components/list-header/list-header.js +11 -8
  361. package/dist/collection/components/list-header/list-header.md.css +18 -0
  362. package/dist/collection/components/loading/loading.ios.css +13 -1
  363. package/dist/collection/components/loading/loading.js +13 -10
  364. package/dist/collection/components/loading/loading.md.css +13 -1
  365. package/dist/collection/components/menu/menu.ios.css +15 -3
  366. package/dist/collection/components/menu/menu.js +12 -7
  367. package/dist/collection/components/menu/menu.md.css +15 -3
  368. package/dist/collection/components/menu-button/menu-button.ionic.css +240 -0
  369. package/dist/collection/components/menu-button/menu-button.ios.css +48 -14
  370. package/dist/collection/components/menu-button/menu-button.js +26 -10
  371. package/dist/collection/components/menu-button/menu-button.md.css +49 -15
  372. package/dist/collection/components/menu-toggle/menu-toggle.js +8 -5
  373. package/dist/collection/components/modal/modal.ios.css +14 -2
  374. package/dist/collection/components/modal/modal.js +13 -10
  375. package/dist/collection/components/modal/modal.md.css +14 -2
  376. package/dist/collection/components/nav/nav.css +7 -1
  377. package/dist/collection/components/nav/nav.js +11 -5
  378. package/dist/collection/components/nav-link/nav-link.js +5 -1
  379. package/dist/collection/components/note/note.ios.css +12 -0
  380. package/dist/collection/components/note/note.js +11 -8
  381. package/dist/collection/components/note/note.md.css +12 -0
  382. package/dist/collection/components/picker/picker.ios.css +15 -3
  383. package/dist/collection/components/picker/picker.js +8 -5
  384. package/dist/collection/components/picker/picker.md.css +15 -3
  385. package/dist/collection/components/picker-column/picker-column.css +9 -2
  386. package/dist/collection/components/picker-column/picker-column.js +8 -7
  387. package/dist/collection/components/picker-column-option/picker-column-option.ios.css +6 -0
  388. package/dist/collection/components/picker-column-option/picker-column-option.js +13 -7
  389. package/dist/collection/components/picker-column-option/picker-column-option.md.css +6 -0
  390. package/dist/collection/components/picker-legacy/picker.ios.css +13 -1
  391. package/dist/collection/components/picker-legacy/picker.js +7 -6
  392. package/dist/collection/components/picker-legacy/picker.md.css +13 -1
  393. package/dist/collection/components/picker-legacy-column/picker-column.ios.css +12 -0
  394. package/dist/collection/components/picker-legacy-column/picker-column.js +4 -4
  395. package/dist/collection/components/picker-legacy-column/picker-column.md.css +12 -0
  396. package/dist/collection/components/popover/popover.ios.css +13 -1
  397. package/dist/collection/components/popover/popover.js +15 -12
  398. package/dist/collection/components/popover/popover.md.css +13 -1
  399. package/dist/collection/components/progress-bar/progress-bar.ios.css +8 -2
  400. package/dist/collection/components/progress-bar/progress-bar.js +10 -7
  401. package/dist/collection/components/progress-bar/progress-bar.md.css +8 -2
  402. package/dist/collection/components/radio/radio.ionic.css +420 -0
  403. package/dist/collection/components/radio/radio.ios.css +143 -91
  404. package/dist/collection/components/radio/radio.js +24 -23
  405. package/dist/collection/components/radio/radio.md.css +143 -91
  406. package/dist/collection/components/radio-group/radio-group.js +9 -3
  407. package/dist/collection/components/range/range.ios.css +12 -0
  408. package/dist/collection/components/range/range.js +12 -9
  409. package/dist/collection/components/range/range.md.css +12 -0
  410. package/dist/collection/components/refresher/refresher.ios.css +14 -1
  411. package/dist/collection/components/refresher/refresher.js +11 -8
  412. package/dist/collection/components/refresher/refresher.md.css +15 -2
  413. package/dist/collection/components/refresher-content/refresher-content.js +28 -7
  414. package/dist/collection/components/reorder/reorder.ios.css +6 -0
  415. package/dist/collection/components/reorder/reorder.js +33 -6
  416. package/dist/collection/components/reorder/reorder.md.css +6 -0
  417. package/dist/collection/components/reorder-group/reorder-group.css +6 -0
  418. package/dist/collection/components/reorder-group/reorder-group.js +8 -4
  419. package/dist/collection/components/ripple-effect/{ripple-effect.css → ripple-effect.common.css} +7 -1
  420. package/dist/collection/components/ripple-effect/ripple-effect.ionic.css +154 -0
  421. package/dist/collection/components/ripple-effect/ripple-effect.js +14 -6
  422. package/dist/collection/components/route/route.js +4 -0
  423. package/dist/collection/components/router/router.js +4 -0
  424. package/dist/collection/components/router-link/router-link.css +8 -2
  425. package/dist/collection/components/router-link/router-link.js +9 -5
  426. package/dist/collection/components/router-outlet/router-outlet.css +7 -1
  427. package/dist/collection/components/router-outlet/router-outlet.js +5 -2
  428. package/dist/collection/components/row/row.css +12 -0
  429. package/dist/collection/components/row/row.js +9 -2
  430. package/dist/collection/components/searchbar/searchbar.ionic.css +270 -0
  431. package/dist/collection/components/searchbar/searchbar.ios.css +56 -18
  432. package/dist/collection/components/searchbar/searchbar.js +96 -24
  433. package/dist/collection/components/searchbar/searchbar.md.css +56 -18
  434. package/dist/collection/components/segment/segment.ios.css +18 -0
  435. package/dist/collection/components/segment/segment.js +11 -8
  436. package/dist/collection/components/segment/segment.md.css +18 -0
  437. package/dist/collection/components/segment-button/segment-button.ios.css +16 -4
  438. package/dist/collection/components/segment-button/segment-button.js +12 -9
  439. package/dist/collection/components/segment-button/segment-button.md.css +18 -6
  440. package/dist/collection/components/select/select.ios.css +23 -3
  441. package/dist/collection/components/select/select.js +84 -37
  442. package/dist/collection/components/select/select.md.css +39 -5
  443. package/dist/collection/components/select-option/select-option.js +9 -2
  444. package/dist/collection/components/select-popover/select-popover.ios.css +18 -0
  445. package/dist/collection/components/select-popover/select-popover.js +12 -4
  446. package/dist/collection/components/select-popover/select-popover.md.css +18 -0
  447. package/dist/collection/components/skeleton-text/skeleton-text.css +6 -0
  448. package/dist/collection/components/skeleton-text/skeleton-text.js +9 -5
  449. package/dist/collection/components/spinner/spinner.common.css +199 -0
  450. package/dist/collection/components/spinner/{spinner.css → spinner.ionic.css} +61 -0
  451. package/dist/collection/components/spinner/spinner.js +46 -6
  452. package/dist/collection/components/split-pane/split-pane.ios.css +20 -2
  453. package/dist/collection/components/split-pane/split-pane.js +14 -8
  454. package/dist/collection/components/split-pane/split-pane.md.css +20 -2
  455. package/dist/collection/components/tab/tab.js +6 -2
  456. package/dist/collection/components/tab-bar/tab-bar.ionic.css +200 -0
  457. package/dist/collection/components/tab-bar/tab-bar.ios.css +64 -43
  458. package/dist/collection/components/tab-bar/tab-bar.js +12 -9
  459. package/dist/collection/components/tab-bar/tab-bar.md.css +64 -43
  460. package/dist/collection/components/tab-button/tab-button.ionic.css +273 -0
  461. package/dist/collection/components/tab-button/tab-button.ios.css +103 -88
  462. package/dist/collection/components/tab-button/tab-button.js +11 -8
  463. package/dist/collection/components/tab-button/tab-button.md.css +103 -88
  464. package/dist/collection/components/tabs/tabs.css +7 -1
  465. package/dist/collection/components/tabs/tabs.js +15 -2
  466. package/dist/collection/components/text/text.css +6 -0
  467. package/dist/collection/components/text/text.js +7 -6
  468. package/dist/collection/components/textarea/textarea.ionic.css +801 -0
  469. package/dist/collection/components/textarea/textarea.ios.css +201 -96
  470. package/dist/collection/components/textarea/textarea.js +59 -16
  471. package/dist/collection/components/textarea/textarea.md.css +214 -97
  472. package/dist/collection/components/thumbnail/thumbnail.css +6 -0
  473. package/dist/collection/components/thumbnail/thumbnail.js +9 -2
  474. package/dist/collection/components/title/title.ionic.css +147 -0
  475. package/dist/collection/components/title/title.ios.css +32 -4
  476. package/dist/collection/components/title/title.js +13 -7
  477. package/dist/collection/components/title/title.md.css +32 -4
  478. package/dist/collection/components/toast/animations/utils.js +1 -1
  479. package/dist/collection/components/toast/toast.ios.css +12 -0
  480. package/dist/collection/components/toast/toast.js +15 -11
  481. package/dist/collection/components/toast/toast.md.css +12 -0
  482. package/dist/collection/components/toggle/toggle.ionic.css +421 -0
  483. package/dist/collection/components/toggle/toggle.ios.css +196 -120
  484. package/dist/collection/components/toggle/toggle.js +85 -32
  485. package/dist/collection/components/toggle/toggle.md.css +193 -120
  486. package/dist/collection/components/toolbar/toolbar.ionic.css +235 -0
  487. package/dist/collection/components/toolbar/toolbar.ios.css +90 -47
  488. package/dist/collection/components/toolbar/toolbar.js +13 -10
  489. package/dist/collection/components/toolbar/toolbar.md.css +90 -47
  490. package/dist/collection/global/ionic-global.js +161 -13
  491. package/dist/collection/utils/menu-controller/animations/overlay.js +3 -3
  492. package/dist/collection/utils/menu-controller/animations/push.js +2 -1
  493. package/dist/collection/utils/menu-controller/animations/reveal.js +2 -1
  494. package/dist/collection/utils/test/playwright/generator.js +48 -23
  495. package/dist/collection/utils/test/playwright/page/utils/goto.js +14 -5
  496. package/dist/collection/utils/test/playwright/page/utils/set-content.js +13 -1
  497. package/dist/collection/utils/transition/ios.transition.js +1 -0
  498. package/dist/docs.json +7049 -467
  499. package/dist/esm/{app-globals-b9f6e516.js → app-globals-ba5e973f.js} +1 -1
  500. package/dist/esm/{button-active-13c37337.js → button-active-4a3fadda.js} +1 -1
  501. package/dist/esm/caret-down-3eaad1cc.js +6 -0
  502. package/dist/esm/caret-left-33424bb0.js +6 -0
  503. package/dist/esm/caret-right-68d856ad.js +6 -0
  504. package/dist/esm/{data-ae11fd43.js → data-f41ab7b2.js} +4 -4
  505. package/dist/esm/{hardware-back-button-8e2c1354.js → hardware-back-button-42eeb7cf.js} +2 -2
  506. package/dist/esm/{index-97b0ab3f.js → index-24a79062.js} +9 -8
  507. package/dist/esm/{index-4e02bb5d.js → index-3f990258.js} +1 -1
  508. package/dist/esm/{index-e2cf2ceb.js → index-4ccb3ebe.js} +3 -3
  509. package/dist/esm/{index-5cc724f3.js → index-7b8200de.js} +1 -1
  510. package/dist/esm/{index-8579e7fd.js → index-e99290b2.js} +4 -5
  511. package/dist/esm/index.js +8 -9
  512. package/dist/esm/{input-shims-0314bbe5.js → input-shims-dceef79a.js} +3 -2
  513. package/dist/esm/{input.utils-09c71bc7.js → input.utils-93d4d143.js} +1 -1
  514. package/dist/esm/ion-accordion_2.entry.js +40 -15
  515. package/dist/esm/ion-action-sheet.entry.js +17 -13
  516. package/dist/esm/ion-alert.entry.js +18 -15
  517. package/dist/esm/ion-app_8.entry.js +83 -62
  518. package/dist/esm/ion-avatar_3.entry.js +93 -10
  519. package/dist/esm/ion-back-button.entry.js +29 -20
  520. package/dist/esm/ion-backdrop.entry.js +11 -7
  521. package/dist/esm/ion-breadcrumb_2.entry.js +53 -16
  522. package/dist/esm/ion-button_2.entry.js +42 -12
  523. package/dist/esm/ion-card_5.entry.js +51 -28
  524. package/dist/esm/ion-checkbox.entry.js +32 -17
  525. package/dist/esm/ion-chip.entry.js +43 -8
  526. package/dist/esm/ion-col_3.entry.js +14 -11
  527. package/dist/esm/ion-datetime-button.entry.js +11 -8
  528. package/dist/esm/ion-datetime_3.entry.js +108 -33
  529. package/dist/esm/ion-fab_3.entry.js +42 -20
  530. package/dist/esm/ion-img.entry.js +6 -3
  531. package/dist/esm/ion-infinite-scroll_2.entry.js +17 -14
  532. package/dist/esm/ion-input-password-toggle.entry.js +53 -15
  533. package/dist/esm/ion-input.entry.js +117 -22
  534. package/dist/esm/ion-item-option_3.entry.js +39 -17
  535. package/dist/esm/ion-item_8.entry.js +112 -41
  536. package/dist/esm/ion-loading.entry.js +15 -12
  537. package/dist/esm/ion-menu_3.entry.js +45 -25
  538. package/dist/esm/ion-modal.entry.js +18 -15
  539. package/dist/esm/ion-nav_2.entry.js +10 -9
  540. package/dist/esm/ion-picker-column-option.entry.js +10 -6
  541. package/dist/esm/ion-picker-column.entry.js +8 -8
  542. package/dist/esm/ion-picker.entry.js +9 -5
  543. package/dist/esm/ion-popover.entry.js +15 -12
  544. package/dist/esm/ion-progress-bar.entry.js +11 -7
  545. package/dist/esm/ion-radio_2.entry.js +21 -15
  546. package/dist/esm/ion-range.entry.js +12 -9
  547. package/dist/esm/ion-refresher_2.entry.js +37 -16
  548. package/dist/esm/ion-reorder_2.entry.js +35 -11
  549. package/dist/esm/ion-ripple-effect.entry.js +18 -8
  550. package/dist/esm/ion-route_4.entry.js +7 -7
  551. package/dist/esm/ion-searchbar.entry.js +93 -17
  552. package/dist/esm/ion-segment_2.entry.js +21 -13
  553. package/dist/esm/ion-select_3.entry.js +93 -36
  554. package/dist/esm/ion-spinner.entry.js +33 -8
  555. package/dist/esm/ion-split-pane.entry.js +13 -9
  556. package/dist/esm/ion-tab-bar_2.entry.js +22 -14
  557. package/dist/esm/ion-tab_2.entry.js +16 -6
  558. package/dist/esm/ion-text.entry.js +6 -6
  559. package/dist/esm/ion-textarea.entry.js +39 -14
  560. package/dist/esm/ion-toast.entry.js +16 -12
  561. package/dist/esm/ion-toggle.entry.js +81 -23
  562. package/dist/esm/ionic-global-e4f248ad.js +408 -0
  563. package/dist/esm/ionic.js +5 -5
  564. package/dist/esm/{ios.transition-beb96e76.js → ios.transition-de39258c.js} +4 -4
  565. package/dist/esm/list-6524700c.js +6 -0
  566. package/dist/esm/loader.js +5 -5
  567. package/dist/esm/{md.transition-d5aa5703.js → md.transition-414fe166.js} +3 -4
  568. package/dist/esm/{overlays-2ea57630.js → overlays-f2962c26.js} +2 -3
  569. package/dist/esm/{status-tap-a264a37f.js → status-tap-23b337ee.js} +3 -3
  570. package/dist/esm/x-a64bcd9f.js +6 -0
  571. package/dist/esm-es5/app-globals-ba5e973f.js +4 -0
  572. package/dist/esm-es5/{button-active-13c37337.js → button-active-4a3fadda.js} +1 -1
  573. package/dist/esm-es5/caret-down-3eaad1cc.js +4 -0
  574. package/dist/esm-es5/caret-left-33424bb0.js +4 -0
  575. package/dist/esm-es5/caret-right-68d856ad.js +4 -0
  576. package/dist/esm-es5/data-f41ab7b2.js +4 -0
  577. package/dist/esm-es5/{hardware-back-button-8e2c1354.js → hardware-back-button-42eeb7cf.js} +1 -1
  578. package/dist/esm-es5/index-24a79062.js +4 -0
  579. package/dist/esm-es5/{index-4e02bb5d.js → index-3f990258.js} +1 -1
  580. package/dist/esm-es5/{index-e2cf2ceb.js → index-4ccb3ebe.js} +1 -1
  581. package/dist/esm-es5/index-7b8200de.js +4 -0
  582. package/dist/esm-es5/index-e99290b2.js +4 -0
  583. package/dist/esm-es5/index.js +1 -1
  584. package/dist/esm-es5/input-shims-dceef79a.js +4 -0
  585. package/dist/esm-es5/input.utils-93d4d143.js +4 -0
  586. package/dist/esm-es5/ion-accordion_2.entry.js +1 -1
  587. package/dist/esm-es5/ion-action-sheet.entry.js +1 -1
  588. package/dist/esm-es5/ion-alert.entry.js +1 -1
  589. package/dist/esm-es5/ion-app_8.entry.js +1 -1
  590. package/dist/esm-es5/ion-avatar_3.entry.js +1 -1
  591. package/dist/esm-es5/ion-back-button.entry.js +1 -1
  592. package/dist/esm-es5/ion-backdrop.entry.js +1 -1
  593. package/dist/esm-es5/ion-breadcrumb_2.entry.js +1 -1
  594. package/dist/esm-es5/ion-button_2.entry.js +1 -1
  595. package/dist/esm-es5/ion-card_5.entry.js +1 -1
  596. package/dist/esm-es5/ion-checkbox.entry.js +1 -1
  597. package/dist/esm-es5/ion-chip.entry.js +1 -1
  598. package/dist/esm-es5/ion-col_3.entry.js +1 -1
  599. package/dist/esm-es5/ion-datetime-button.entry.js +1 -1
  600. package/dist/esm-es5/ion-datetime_3.entry.js +1 -1
  601. package/dist/esm-es5/ion-fab_3.entry.js +1 -1
  602. package/dist/esm-es5/ion-img.entry.js +1 -1
  603. package/dist/esm-es5/ion-infinite-scroll_2.entry.js +1 -1
  604. package/dist/esm-es5/ion-input-password-toggle.entry.js +1 -1
  605. package/dist/esm-es5/ion-input.entry.js +1 -1
  606. package/dist/esm-es5/ion-item-option_3.entry.js +1 -1
  607. package/dist/esm-es5/ion-item_8.entry.js +1 -1
  608. package/dist/esm-es5/ion-loading.entry.js +1 -1
  609. package/dist/esm-es5/ion-menu_3.entry.js +1 -1
  610. package/dist/esm-es5/ion-modal.entry.js +1 -1
  611. package/dist/esm-es5/ion-nav_2.entry.js +1 -1
  612. package/dist/esm-es5/ion-picker-column-option.entry.js +1 -1
  613. package/dist/esm-es5/ion-picker-column.entry.js +1 -1
  614. package/dist/esm-es5/ion-picker.entry.js +1 -1
  615. package/dist/esm-es5/ion-popover.entry.js +1 -1
  616. package/dist/esm-es5/ion-progress-bar.entry.js +1 -1
  617. package/dist/esm-es5/ion-radio_2.entry.js +1 -1
  618. package/dist/esm-es5/ion-range.entry.js +1 -1
  619. package/dist/esm-es5/ion-refresher_2.entry.js +1 -1
  620. package/dist/esm-es5/ion-reorder_2.entry.js +1 -1
  621. package/dist/esm-es5/ion-ripple-effect.entry.js +1 -1
  622. package/dist/esm-es5/ion-route_4.entry.js +1 -1
  623. package/dist/esm-es5/ion-searchbar.entry.js +1 -1
  624. package/dist/esm-es5/ion-segment_2.entry.js +1 -1
  625. package/dist/esm-es5/ion-select_3.entry.js +1 -1
  626. package/dist/esm-es5/ion-spinner.entry.js +1 -1
  627. package/dist/esm-es5/ion-split-pane.entry.js +1 -1
  628. package/dist/esm-es5/ion-tab-bar_2.entry.js +1 -1
  629. package/dist/esm-es5/ion-tab_2.entry.js +1 -1
  630. package/dist/esm-es5/ion-text.entry.js +1 -1
  631. package/dist/esm-es5/ion-textarea.entry.js +1 -1
  632. package/dist/esm-es5/ion-toast.entry.js +1 -1
  633. package/dist/esm-es5/ion-toggle.entry.js +1 -1
  634. package/dist/esm-es5/ionic-global-e4f248ad.js +4 -0
  635. package/dist/esm-es5/ionic.js +1 -1
  636. package/dist/esm-es5/ios.transition-de39258c.js +4 -0
  637. package/dist/esm-es5/list-6524700c.js +4 -0
  638. package/dist/esm-es5/loader.js +1 -1
  639. package/dist/esm-es5/md.transition-414fe166.js +4 -0
  640. package/dist/esm-es5/overlays-f2962c26.js +4 -0
  641. package/dist/esm-es5/status-tap-23b337ee.js +4 -0
  642. package/dist/esm-es5/x-a64bcd9f.js +4 -0
  643. package/dist/html.html-data.json +2168 -138
  644. package/dist/ionic/index.esm.js +1 -1
  645. package/dist/ionic/ionic.esm.js +1 -1
  646. package/dist/ionic/ionic.js +1 -1
  647. package/dist/ionic/{p-0c06e09b.system.js → p-0046d9bc.system.js} +1 -1
  648. package/dist/ionic/p-00b9fa44.system.entry.js +4 -0
  649. package/dist/ionic/p-01d80901.system.js +4 -0
  650. package/dist/ionic/p-02c43ec9.js +4 -0
  651. package/dist/ionic/p-03b87fa7.entry.js +4 -0
  652. package/dist/ionic/p-053e4878.system.entry.js +4 -0
  653. package/dist/ionic/{p-4b528ed3.js → p-05f3bcaa.js} +1 -1
  654. package/dist/ionic/p-06ec4706.js +4 -0
  655. package/dist/ionic/p-08925c36.js +4 -0
  656. package/dist/ionic/{p-96cc4814.js → p-0a10f339.js} +1 -1
  657. package/dist/ionic/{p-ab44e74e.entry.js → p-0a8da7ce.entry.js} +1 -1
  658. package/dist/ionic/{p-da2b833b.js → p-0ec01217.js} +1 -1
  659. package/dist/ionic/p-12626e9d.system.entry.js +4 -0
  660. package/dist/ionic/p-140fc790.entry.js +4 -0
  661. package/dist/ionic/p-158731ba.system.entry.js +4 -0
  662. package/dist/ionic/p-1747236f.js +4 -0
  663. package/dist/ionic/p-18b4325f.system.entry.js +4 -0
  664. package/dist/ionic/p-1aa962f6.system.entry.js +4 -0
  665. package/dist/ionic/p-1ae8e871.system.entry.js +4 -0
  666. package/dist/ionic/p-20884f87.system.js +4 -0
  667. package/dist/ionic/p-243adf8c.js +4 -0
  668. package/dist/ionic/p-275c29b5.system.entry.js +4 -0
  669. package/dist/ionic/p-2bdd24e6.system.entry.js +4 -0
  670. package/dist/ionic/{p-9cd1f569.system.js → p-2f61a63a.system.js} +1 -1
  671. package/dist/ionic/p-306c3d65.system.entry.js +4 -0
  672. package/dist/ionic/p-32169c52.entry.js +4 -0
  673. package/dist/ionic/p-321d2acb.entry.js +4 -0
  674. package/dist/ionic/p-346b2fbc.entry.js +4 -0
  675. package/dist/ionic/p-3892a067.js +4 -0
  676. package/dist/ionic/p-3c8fc23c.system.entry.js +4 -0
  677. package/dist/ionic/p-3cdeb748.system.entry.js +4 -0
  678. package/dist/ionic/{p-8b3ff142.entry.js → p-3e22f1d4.entry.js} +1 -1
  679. package/dist/ionic/{p-f687573e.system.js → p-40454f59.system.js} +1 -1
  680. package/dist/ionic/p-429dd2b5.system.js +4 -0
  681. package/dist/ionic/p-42aed3a6.system.entry.js +4 -0
  682. package/dist/ionic/{p-d60342e3.js → p-42c4db6f.js} +1 -1
  683. package/dist/ionic/p-43120e54.entry.js +4 -0
  684. package/dist/ionic/p-463a1dea.system.entry.js +4 -0
  685. package/dist/ionic/p-46f5cf48.entry.js +4 -0
  686. package/dist/ionic/{p-fd70cb80.system.entry.js → p-4adbda68.system.entry.js} +1 -1
  687. package/dist/ionic/p-4b08e4fd.system.entry.js +4 -0
  688. package/dist/ionic/p-4bdee306.entry.js +4 -0
  689. package/dist/ionic/p-4d95b7b5.entry.js +4 -0
  690. package/dist/ionic/p-4e8754c1.js +4 -0
  691. package/dist/ionic/p-5013f5fa.entry.js +4 -0
  692. package/dist/ionic/p-5081224b.entry.js +4 -0
  693. package/dist/ionic/p-521c94b8.system.entry.js +4 -0
  694. package/dist/ionic/p-522a7bdf.system.js +4 -0
  695. package/dist/ionic/p-53033010.system.entry.js +4 -0
  696. package/dist/ionic/p-54a378b3.entry.js +4 -0
  697. package/dist/ionic/p-56dd0e55.system.entry.js +4 -0
  698. package/dist/ionic/p-57cfc3c2.entry.js +4 -0
  699. package/dist/ionic/p-5b3c3d75.js +4 -0
  700. package/dist/ionic/p-5b57d327.system.js +4 -0
  701. package/dist/ionic/p-5d389876.entry.js +4 -0
  702. package/dist/ionic/p-5e576016.entry.js +4 -0
  703. package/dist/ionic/{p-487a3ae7.system.js → p-6036cb94.system.js} +1 -1
  704. package/dist/ionic/p-607c9c33.js +4 -0
  705. package/dist/ionic/p-60848cbc.entry.js +4 -0
  706. package/dist/ionic/p-61cc293d.entry.js +4 -0
  707. package/dist/ionic/p-6a0dd6bc.js +4 -0
  708. package/dist/ionic/p-6a7fa67f.entry.js +4 -0
  709. package/dist/ionic/p-6b98d727.entry.js +4 -0
  710. package/dist/ionic/p-6d645032.entry.js +4 -0
  711. package/dist/ionic/p-6dd5cdbd.entry.js +4 -0
  712. package/dist/ionic/p-7049d891.js +4 -0
  713. package/dist/ionic/p-70b8d47e.system.entry.js +4 -0
  714. package/dist/ionic/p-73581f47.system.entry.js +4 -0
  715. package/dist/ionic/p-7836fed9.system.entry.js +4 -0
  716. package/dist/ionic/p-7a9a4337.system.entry.js +4 -0
  717. package/dist/ionic/p-7cac5f7f.entry.js +4 -0
  718. package/dist/ionic/p-7f321ebf.entry.js +4 -0
  719. package/dist/ionic/{p-289d16f5.system.js → p-7fd6a21f.system.js} +1 -1
  720. package/dist/ionic/p-8348fade.js +4 -0
  721. package/dist/ionic/p-856bee2b.system.entry.js +4 -0
  722. package/dist/ionic/p-86416e99.system.entry.js +4 -0
  723. package/dist/ionic/p-88b33637.entry.js +4 -0
  724. package/dist/ionic/p-8b465101.js +4 -0
  725. package/dist/ionic/p-8dfbe10c.entry.js +4 -0
  726. package/dist/ionic/p-8fac355a.system.js +4 -0
  727. package/dist/ionic/p-91eae9c7.system.js +4 -0
  728. package/dist/ionic/p-927040c0.system.entry.js +4 -0
  729. package/dist/ionic/p-94096a03.entry.js +4 -0
  730. package/dist/ionic/p-98041d41.entry.js +4 -0
  731. package/dist/ionic/p-9a32448f.system.entry.js +4 -0
  732. package/dist/ionic/p-9f757325.entry.js +4 -0
  733. package/dist/ionic/{p-6d857105.system.entry.js → p-a152af1e.system.entry.js} +1 -1
  734. package/dist/ionic/p-a25a122f.entry.js +4 -0
  735. package/dist/ionic/p-a2ee3b81.entry.js +4 -0
  736. package/dist/ionic/p-a31b6caa.system.entry.js +4 -0
  737. package/dist/ionic/p-a39e1e47.system.entry.js +4 -0
  738. package/dist/ionic/p-a551e77f.system.entry.js +4 -0
  739. package/dist/ionic/p-a586d598.entry.js +4 -0
  740. package/dist/ionic/p-a9af4103.js +4 -0
  741. package/dist/ionic/p-ae18673c.system.entry.js +4 -0
  742. package/dist/ionic/p-b072e109.system.js +4 -0
  743. package/dist/ionic/p-b4a9fa3e.entry.js +4 -0
  744. package/dist/ionic/p-b5d6ee77.entry.js +4 -0
  745. package/dist/ionic/p-b81ebd93.system.entry.js +4 -0
  746. package/dist/ionic/p-b86c66ed.system.entry.js +4 -0
  747. package/dist/ionic/p-b88357ed.system.entry.js +4 -0
  748. package/dist/ionic/p-be117d41.system.entry.js +4 -0
  749. package/dist/ionic/p-be8458d0.entry.js +4 -0
  750. package/dist/ionic/{p-1e955a45.system.js → p-c0d5c3e3.system.js} +1 -1
  751. package/dist/ionic/p-c1336519.system.js +4 -0
  752. package/dist/ionic/p-c248c88d.system.js +4 -0
  753. package/dist/ionic/p-c33d4cdf.system.entry.js +4 -0
  754. package/dist/ionic/p-c3b64e65.system.entry.js +4 -0
  755. package/dist/ionic/{p-9ea607bd.system.js → p-c44a284a.system.js} +2 -2
  756. package/dist/ionic/p-c4fcb166.system.entry.js +4 -0
  757. package/dist/ionic/p-c51b80e9.entry.js +4 -0
  758. package/dist/ionic/p-c9e91e63.entry.js +4 -0
  759. package/dist/ionic/p-ce20ab2e.entry.js +4 -0
  760. package/dist/ionic/{p-c655f9cc.js → p-d0ad00b8.js} +1 -1
  761. package/dist/ionic/p-d0f62197.system.entry.js +4 -0
  762. package/dist/ionic/p-d2bfbb2f.system.entry.js +4 -0
  763. package/dist/ionic/p-d3632c40.entry.js +4 -0
  764. package/dist/ionic/p-d3e769ce.system.js +4 -0
  765. package/dist/ionic/p-d4f71e80.entry.js +4 -0
  766. package/dist/ionic/p-d5569fb7.system.js +4 -0
  767. package/dist/ionic/p-daf9d3a6.system.entry.js +4 -0
  768. package/dist/ionic/p-db0873c7.entry.js +4 -0
  769. package/dist/ionic/p-dddd1a9c.entry.js +4 -0
  770. package/dist/ionic/p-e0286f32.entry.js +4 -0
  771. package/dist/ionic/{p-f4d568f8.entry.js → p-e029fd7c.entry.js} +1 -1
  772. package/dist/ionic/p-e3b70846.system.js +4 -0
  773. package/dist/ionic/p-e3d430c8.js +4 -0
  774. package/dist/ionic/p-e5ef6b03.system.js +4 -0
  775. package/dist/ionic/p-e9306a3b.system.entry.js +4 -0
  776. package/dist/ionic/p-e9a82c36.system.entry.js +4 -0
  777. package/dist/ionic/p-ee6d6246.system.entry.js +4 -0
  778. package/dist/ionic/{p-586fa05c.system.js → p-ef1851f6.system.js} +1 -1
  779. package/dist/ionic/p-f30b71c6.entry.js +4 -0
  780. package/dist/ionic/{p-8302d21c.system.entry.js → p-f4d73064.system.entry.js} +1 -1
  781. package/dist/ionic/{p-c6181d52.system.js → p-f53d29b3.system.js} +1 -1
  782. package/dist/ionic/p-f55ae207.entry.js +4 -0
  783. package/dist/ionic/p-f9dc0fe2.entry.js +4 -0
  784. package/dist/ionic/{p-dc65c03b.js → p-fb4bdc66.js} +1 -1
  785. package/dist/ionic/p-fcbf5b6d.system.entry.js +4 -0
  786. package/dist/ionic/{p-4384e5de.system.entry.js → p-fe209ffd.system.entry.js} +1 -1
  787. package/dist/ionic/svg/accessibility-outline.svg +1 -1
  788. package/dist/ionic/svg/accessibility-sharp.svg +1 -1
  789. package/dist/ionic/svg/accessibility.svg +1 -1
  790. package/dist/ionic/svg/arrow-down-left-box-outline.svg +1 -0
  791. package/dist/ionic/svg/arrow-down-left-box-sharp.svg +1 -0
  792. package/dist/ionic/svg/arrow-down-left-box.svg +1 -0
  793. package/dist/ionic/svg/arrow-down-right-box-outline.svg +1 -0
  794. package/dist/ionic/svg/arrow-down-right-box-sharp.svg +1 -0
  795. package/dist/ionic/svg/arrow-down-right-box.svg +1 -0
  796. package/dist/ionic/svg/arrow-up-left-box-outline.svg +1 -0
  797. package/dist/ionic/svg/arrow-up-left-box-sharp.svg +1 -0
  798. package/dist/ionic/svg/arrow-up-left-box.svg +1 -0
  799. package/dist/ionic/svg/arrow-up-right-box-outline.svg +1 -0
  800. package/dist/ionic/svg/arrow-up-right-box-sharp.svg +1 -0
  801. package/dist/ionic/svg/arrow-up-right-box.svg +1 -0
  802. package/dist/ionic/svg/bag-add-outline.svg +1 -1
  803. package/dist/ionic/svg/bag-add-sharp.svg +1 -1
  804. package/dist/ionic/svg/bag-add.svg +1 -1
  805. package/dist/ionic/svg/bag-check-outline.svg +1 -1
  806. package/dist/ionic/svg/bag-check-sharp.svg +1 -1
  807. package/dist/ionic/svg/bag-check.svg +1 -1
  808. package/dist/ionic/svg/bag-handle-outline.svg +1 -1
  809. package/dist/ionic/svg/bag-handle-sharp.svg +1 -1
  810. package/dist/ionic/svg/bag-handle.svg +1 -1
  811. package/dist/ionic/svg/bag-outline.svg +1 -1
  812. package/dist/ionic/svg/bag-remove-outline.svg +1 -1
  813. package/dist/ionic/svg/bag-remove-sharp.svg +1 -1
  814. package/dist/ionic/svg/bag-remove.svg +1 -1
  815. package/dist/ionic/svg/bag-sharp.svg +1 -1
  816. package/dist/ionic/svg/bag.svg +1 -1
  817. package/dist/ionic/svg/balloon-outline.svg +1 -1
  818. package/dist/ionic/svg/balloon-sharp.svg +1 -1
  819. package/dist/ionic/svg/balloon.svg +1 -1
  820. package/dist/ionic/svg/ban-outline.svg +1 -1
  821. package/dist/ionic/svg/ban-sharp.svg +1 -1
  822. package/dist/ionic/svg/ban.svg +1 -1
  823. package/dist/ionic/svg/binoculars-outline.svg +1 -0
  824. package/dist/ionic/svg/binoculars-sharp.svg +1 -0
  825. package/dist/ionic/svg/binoculars.svg +1 -0
  826. package/dist/ionic/svg/body-outline.svg +1 -1
  827. package/dist/ionic/svg/bowling-ball-outline.svg +1 -1
  828. package/dist/ionic/svg/bowling-ball-sharp.svg +1 -1
  829. package/dist/ionic/svg/bowling-ball.svg +1 -1
  830. package/dist/ionic/svg/calendar-clear-outline.svg +1 -1
  831. package/dist/ionic/svg/calendar-clear-sharp.svg +1 -1
  832. package/dist/ionic/svg/calendar-clear.svg +1 -1
  833. package/dist/ionic/svg/calendar-number-outline.svg +1 -1
  834. package/dist/ionic/svg/calendar-number-sharp.svg +1 -1
  835. package/dist/ionic/svg/calendar-number.svg +1 -1
  836. package/dist/ionic/svg/calendar-outline.svg +1 -1
  837. package/dist/ionic/svg/calendar-sharp.svg +1 -1
  838. package/dist/ionic/svg/calendar.svg +1 -1
  839. package/dist/ionic/svg/chevron-collapse-outline.svg +1 -1
  840. package/dist/ionic/svg/chevron-collapse-sharp.svg +1 -1
  841. package/dist/ionic/svg/chevron-collapse.svg +1 -1
  842. package/dist/ionic/svg/chevron-expand-outline.svg +1 -1
  843. package/dist/ionic/svg/chevron-expand-sharp.svg +1 -1
  844. package/dist/ionic/svg/chevron-expand.svg +1 -1
  845. package/dist/ionic/svg/color-wand-outline.svg +1 -1
  846. package/dist/ionic/svg/color-wand.svg +1 -1
  847. package/dist/ionic/svg/diamond-outline.svg +1 -1
  848. package/dist/ionic/svg/diamond-sharp.svg +1 -1
  849. package/dist/ionic/svg/diamond.svg +1 -1
  850. package/dist/ionic/svg/dice-outline.svg +1 -1
  851. package/dist/ionic/svg/dice-sharp.svg +1 -1
  852. package/dist/ionic/svg/dice.svg +1 -1
  853. package/dist/ionic/svg/document-lock-outline.svg +1 -1
  854. package/dist/ionic/svg/document-lock-sharp.svg +1 -1
  855. package/dist/ionic/svg/document-lock.svg +1 -1
  856. package/dist/ionic/svg/extension-puzzle-outline.svg +1 -1
  857. package/dist/ionic/svg/extension-puzzle-sharp.svg +1 -1
  858. package/dist/ionic/svg/extension-puzzle.svg +1 -1
  859. package/dist/ionic/svg/filter-circle-outline.svg +1 -1
  860. package/dist/ionic/svg/filter-circle-sharp.svg +1 -1
  861. package/dist/ionic/svg/filter-circle.svg +1 -1
  862. package/dist/ionic/svg/fish-outline.svg +1 -1
  863. package/dist/ionic/svg/fish-sharp.svg +1 -1
  864. package/dist/ionic/svg/fish.svg +1 -1
  865. package/dist/ionic/svg/footsteps-outline.svg +1 -1
  866. package/dist/ionic/svg/footsteps-sharp.svg +1 -1
  867. package/dist/ionic/svg/footsteps.svg +1 -1
  868. package/dist/ionic/svg/id-card-outline.svg +1 -1
  869. package/dist/ionic/svg/id-card-sharp.svg +1 -1
  870. package/dist/ionic/svg/id-card.svg +1 -1
  871. package/dist/ionic/svg/invert-mode-outline.svg +1 -1
  872. package/dist/ionic/svg/invert-mode-sharp.svg +1 -1
  873. package/dist/ionic/svg/invert-mode.svg +1 -1
  874. package/dist/ionic/svg/logo-alipay.svg +1 -1
  875. package/dist/ionic/svg/logo-android.svg +1 -1
  876. package/dist/ionic/svg/logo-appflow.svg +1 -0
  877. package/dist/ionic/svg/logo-apple-ar.svg +1 -1
  878. package/dist/ionic/svg/logo-behance.svg +1 -1
  879. package/dist/ionic/svg/logo-bitbucket.svg +1 -1
  880. package/dist/ionic/svg/logo-deviantart.svg +1 -1
  881. package/dist/ionic/svg/logo-discord.svg +1 -1
  882. package/dist/ionic/svg/logo-docker.svg +1 -1
  883. package/dist/ionic/svg/logo-edge.svg +1 -1
  884. package/dist/ionic/svg/logo-facebook.svg +1 -1
  885. package/dist/ionic/svg/logo-figma.svg +1 -1
  886. package/dist/ionic/svg/logo-firebase.svg +1 -1
  887. package/dist/ionic/svg/logo-gitlab.svg +1 -1
  888. package/dist/ionic/svg/logo-ionic.svg +1 -1
  889. package/dist/ionic/svg/logo-mastodon.svg +1 -1
  890. package/dist/ionic/svg/logo-medium.svg +1 -1
  891. package/dist/ionic/svg/logo-microsoft.svg +1 -1
  892. package/dist/ionic/svg/logo-npm.svg +1 -1
  893. package/dist/ionic/svg/logo-paypal.svg +1 -1
  894. package/dist/ionic/svg/logo-soundcloud.svg +1 -1
  895. package/dist/ionic/svg/logo-tableau.svg +1 -1
  896. package/dist/ionic/svg/logo-tiktok.svg +1 -1
  897. package/dist/ionic/svg/logo-trapeze.svg +1 -0
  898. package/dist/ionic/svg/logo-venmo.svg +1 -1
  899. package/dist/ionic/svg/logo-vercel.svg +1 -1
  900. package/dist/ionic/svg/logo-wechat.svg +1 -1
  901. package/dist/ionic/svg/logo-x.svg +1 -0
  902. package/dist/ionic/svg/logo-yahoo.svg +1 -1
  903. package/dist/ionic/svg/prism-outline.svg +1 -1
  904. package/dist/ionic/svg/prism-sharp.svg +1 -1
  905. package/dist/ionic/svg/prism.svg +1 -1
  906. package/dist/ionic/svg/scale-outline.svg +1 -1
  907. package/dist/ionic/svg/scale-sharp.svg +1 -1
  908. package/dist/ionic/svg/scale.svg +1 -1
  909. package/dist/ionic/svg/server-outline.svg +1 -1
  910. package/dist/ionic/svg/server-sharp.svg +1 -1
  911. package/dist/ionic/svg/server.svg +1 -1
  912. package/dist/ionic/svg/shield-half-outline.svg +1 -1
  913. package/dist/ionic/svg/shield-half-sharp.svg +1 -1
  914. package/dist/ionic/svg/shield-half.svg +1 -1
  915. package/dist/ionic/svg/sparkles-outline.svg +1 -1
  916. package/dist/ionic/svg/sparkles-sharp.svg +1 -1
  917. package/dist/ionic/svg/sparkles.svg +1 -1
  918. package/dist/ionic/svg/storefront-outline.svg +1 -1
  919. package/dist/ionic/svg/storefront-sharp.svg +1 -1
  920. package/dist/ionic/svg/storefront.svg +1 -1
  921. package/dist/ionic/svg/telescope-outline.svg +1 -1
  922. package/dist/ionic/svg/telescope-sharp.svg +1 -1
  923. package/dist/ionic/svg/telescope.svg +1 -1
  924. package/dist/ionic/svg/ticket-outline.svg +1 -1
  925. package/dist/ionic/svg/ticket-sharp.svg +1 -1
  926. package/dist/ionic/svg/ticket.svg +1 -1
  927. package/dist/ionic/svg/today-outline.svg +1 -1
  928. package/dist/ionic/svg/today-sharp.svg +1 -1
  929. package/dist/ionic/svg/today.svg +1 -1
  930. package/dist/ionic/svg/unlink-outline.svg +1 -1
  931. package/dist/ionic/svg/unlink-sharp.svg +1 -1
  932. package/dist/ionic/svg/unlink.svg +1 -1
  933. package/dist/ionic/svg/videocam-off-outline.svg +1 -1
  934. package/dist/ionic/svg/videocam-off-sharp.svg +1 -1
  935. package/dist/ionic/svg/videocam-off.svg +1 -1
  936. package/dist/ionic/svg/wifi-outline.svg +1 -1
  937. package/dist/ionic/svg/wifi-sharp.svg +1 -1
  938. package/dist/ionic/svg/wifi.svg +1 -1
  939. package/dist/types/components/accordion/accordion.d.ts +4 -2
  940. package/dist/types/components/accordion-group/accordion-group.d.ts +2 -1
  941. package/dist/types/components/action-sheet/action-sheet-interface.d.ts +3 -7
  942. package/dist/types/components/action-sheet/action-sheet.d.ts +3 -2
  943. package/dist/types/components/alert/alert-interface.d.ts +3 -7
  944. package/dist/types/components/alert/alert.d.ts +3 -2
  945. package/dist/types/components/app/app.d.ts +4 -0
  946. package/dist/types/components/avatar/avatar.d.ts +28 -0
  947. package/dist/types/components/back-button/back-button.d.ts +2 -1
  948. package/dist/types/components/backdrop/backdrop.d.ts +4 -0
  949. package/dist/types/components/badge/badge.d.ts +23 -1
  950. package/dist/types/components/breadcrumb/breadcrumb.d.ts +4 -1
  951. package/dist/types/components/breadcrumbs/breadcrumbs.d.ts +2 -2
  952. package/dist/types/components/button/button.d.ts +15 -4
  953. package/dist/types/components/buttons/buttons.d.ts +5 -1
  954. package/dist/types/components/card/card.d.ts +8 -1
  955. package/dist/types/components/card-content/card-content.d.ts +2 -1
  956. package/dist/types/components/card-header/card-header.d.ts +3 -2
  957. package/dist/types/components/card-subtitle/card-subtitle.d.ts +2 -1
  958. package/dist/types/components/card-title/card-title.d.ts +2 -1
  959. package/dist/types/components/checkbox/checkbox.d.ts +18 -6
  960. package/dist/types/components/chip/chip.d.ts +19 -1
  961. package/dist/types/components/col/col.d.ts +4 -0
  962. package/dist/types/components/content/content.d.ts +3 -0
  963. package/dist/types/components/datetime/datetime.d.ts +26 -1
  964. package/dist/types/components/datetime/utils/data.d.ts +3 -3
  965. package/dist/types/components/datetime-button/datetime-button.d.ts +2 -1
  966. package/dist/types/components/fab/fab.d.ts +4 -0
  967. package/dist/types/components/fab-button/fab-button.d.ts +5 -3
  968. package/dist/types/components/fab-list/fab-list.d.ts +4 -0
  969. package/dist/types/components/footer/footer.d.ts +4 -3
  970. package/dist/types/components/grid/grid.d.ts +4 -0
  971. package/dist/types/components/header/header.d.ts +9 -3
  972. package/dist/types/components/img/img.d.ts +3 -0
  973. package/dist/types/components/infinite-scroll/infinite-scroll.d.ts +4 -0
  974. package/dist/types/components/infinite-scroll-content/infinite-scroll-content.d.ts +4 -0
  975. package/dist/types/components/input/input.d.ts +31 -5
  976. package/dist/types/components/input-password-toggle/input-password-toggle.d.ts +2 -0
  977. package/dist/types/components/item/item.d.ts +11 -4
  978. package/dist/types/components/item-divider/item-divider.d.ts +2 -1
  979. package/dist/types/components/item-group/item-group.d.ts +4 -0
  980. package/dist/types/components/item-option/item-option.d.ts +11 -1
  981. package/dist/types/components/item-options/item-options.d.ts +4 -0
  982. package/dist/types/components/item-sliding/item-sliding.d.ts +4 -0
  983. package/dist/types/components/label/label.d.ts +2 -1
  984. package/dist/types/components/list/list.d.ts +15 -1
  985. package/dist/types/components/list-header/list-header.d.ts +2 -1
  986. package/dist/types/components/loading/loading-interface.d.ts +2 -7
  987. package/dist/types/components/loading/loading.d.ts +3 -2
  988. package/dist/types/components/menu/menu.d.ts +3 -0
  989. package/dist/types/components/menu-button/menu-button.d.ts +3 -1
  990. package/dist/types/components/menu-toggle/menu-toggle.d.ts +3 -0
  991. package/dist/types/components/modal/modal-interface.d.ts +3 -7
  992. package/dist/types/components/modal/modal.d.ts +2 -1
  993. package/dist/types/components/nav/nav-interface.d.ts +9 -1
  994. package/dist/types/components/nav/nav.d.ts +5 -1
  995. package/dist/types/components/nav-link/nav-link.d.ts +4 -0
  996. package/dist/types/components/note/note.d.ts +2 -1
  997. package/dist/types/components/picker/picker.d.ts +2 -1
  998. package/dist/types/components/picker-column/picker-column.d.ts +2 -1
  999. package/dist/types/components/picker-column-option/picker-column-option.d.ts +4 -0
  1000. package/dist/types/components/picker-legacy/picker.d.ts +2 -1
  1001. package/dist/types/components/popover/popover-interface.d.ts +3 -6
  1002. package/dist/types/components/popover/popover.d.ts +6 -5
  1003. package/dist/types/components/progress-bar/progress-bar.d.ts +2 -1
  1004. package/dist/types/components/radio/radio.d.ts +6 -3
  1005. package/dist/types/components/radio-group/radio-group.d.ts +4 -0
  1006. package/dist/types/components/range/range.d.ts +2 -1
  1007. package/dist/types/components/refresher/refresher.d.ts +2 -1
  1008. package/dist/types/components/refresher-content/refresher-content.d.ts +4 -0
  1009. package/dist/types/components/reorder/reorder.d.ts +9 -0
  1010. package/dist/types/components/reorder-group/reorder-group.d.ts +4 -0
  1011. package/dist/types/components/ripple-effect/ripple-effect.d.ts +4 -0
  1012. package/dist/types/components/route/route.d.ts +4 -0
  1013. package/dist/types/components/router/router.d.ts +4 -0
  1014. package/dist/types/components/router-link/router-link.d.ts +4 -0
  1015. package/dist/types/components/router-outlet/router-outlet.d.ts +4 -1
  1016. package/dist/types/components/row/row.d.ts +4 -0
  1017. package/dist/types/components/searchbar/searchbar.d.ts +30 -8
  1018. package/dist/types/components/segment/segment.d.ts +2 -1
  1019. package/dist/types/components/segment-button/segment-button.d.ts +2 -1
  1020. package/dist/types/components/select/select.d.ts +21 -6
  1021. package/dist/types/components/select-option/select-option.d.ts +4 -0
  1022. package/dist/types/components/select-popover/select-popover.d.ts +3 -0
  1023. package/dist/types/components/skeleton-text/skeleton-text.d.ts +4 -0
  1024. package/dist/types/components/spinner/spinner.d.ts +15 -0
  1025. package/dist/types/components/split-pane/split-pane.d.ts +4 -0
  1026. package/dist/types/components/tab/tab.d.ts +4 -0
  1027. package/dist/types/components/tab-bar/tab-bar.d.ts +3 -2
  1028. package/dist/types/components/tab-button/tab-button.d.ts +2 -1
  1029. package/dist/types/components/tabs/tabs.d.ts +3 -0
  1030. package/dist/types/components/text/text.d.ts +2 -1
  1031. package/dist/types/components/textarea/textarea.d.ts +16 -4
  1032. package/dist/types/components/thumbnail/thumbnail.d.ts +4 -0
  1033. package/dist/types/components/title/title.d.ts +4 -0
  1034. package/dist/types/components/toast/animations/utils.d.ts +2 -2
  1035. package/dist/types/components/toast/toast-interface.d.ts +3 -7
  1036. package/dist/types/components/toast/toast.d.ts +3 -2
  1037. package/dist/types/components/toggle/toggle.d.ts +19 -3
  1038. package/dist/types/components/toolbar/toolbar.d.ts +4 -3
  1039. package/dist/types/components.d.ts +1342 -198
  1040. package/dist/types/global/ionic-global.d.ts +25 -2
  1041. package/dist/types/interface.d.ts +3 -0
  1042. package/dist/types/utils/config.d.ts +99 -2
  1043. package/dist/types/utils/overlays-interface.d.ts +31 -1
  1044. package/dist/types/utils/test/playwright/generator.d.ts +31 -2
  1045. package/hydrate/index.js +2015 -670
  1046. package/hydrate/index.mjs +2015 -670
  1047. package/package.json +9 -5
  1048. package/components/index9.js +0 -167
  1049. package/dist/cjs/index-5915f9b3.js +0 -38
  1050. package/dist/cjs/ionic-global-86430f67.js +0 -237
  1051. package/dist/esm/index-9b0d46f4.js +0 -34
  1052. package/dist/esm/ionic-global-8f9440ec.js +0 -231
  1053. package/dist/esm-es5/app-globals-b9f6e516.js +0 -4
  1054. package/dist/esm-es5/data-ae11fd43.js +0 -4
  1055. package/dist/esm-es5/index-5cc724f3.js +0 -4
  1056. package/dist/esm-es5/index-8579e7fd.js +0 -4
  1057. package/dist/esm-es5/index-97b0ab3f.js +0 -4
  1058. package/dist/esm-es5/index-9b0d46f4.js +0 -4
  1059. package/dist/esm-es5/input-shims-0314bbe5.js +0 -4
  1060. package/dist/esm-es5/input.utils-09c71bc7.js +0 -4
  1061. package/dist/esm-es5/ionic-global-8f9440ec.js +0 -4
  1062. package/dist/esm-es5/ios.transition-beb96e76.js +0 -4
  1063. package/dist/esm-es5/md.transition-d5aa5703.js +0 -4
  1064. package/dist/esm-es5/overlays-2ea57630.js +0 -4
  1065. package/dist/esm-es5/status-tap-a264a37f.js +0 -4
  1066. package/dist/ionic/p-0065a3d0.system.entry.js +0 -4
  1067. package/dist/ionic/p-06e58c4e.js +0 -4
  1068. package/dist/ionic/p-06fbb310.entry.js +0 -4
  1069. package/dist/ionic/p-06fee233.js +0 -4
  1070. package/dist/ionic/p-08cfccad.js +0 -4
  1071. package/dist/ionic/p-11810112.system.entry.js +0 -4
  1072. package/dist/ionic/p-1277436d.system.entry.js +0 -4
  1073. package/dist/ionic/p-13265275.system.entry.js +0 -4
  1074. package/dist/ionic/p-14c81a66.system.js +0 -4
  1075. package/dist/ionic/p-15ef22b3.system.entry.js +0 -4
  1076. package/dist/ionic/p-16917251.entry.js +0 -4
  1077. package/dist/ionic/p-184f2f63.system.entry.js +0 -4
  1078. package/dist/ionic/p-1979e535.system.entry.js +0 -4
  1079. package/dist/ionic/p-1b57577b.entry.js +0 -4
  1080. package/dist/ionic/p-1cacb881.system.entry.js +0 -4
  1081. package/dist/ionic/p-1d3ea8c1.entry.js +0 -4
  1082. package/dist/ionic/p-1dfe9aa7.entry.js +0 -4
  1083. package/dist/ionic/p-1e1b3d99.system.entry.js +0 -4
  1084. package/dist/ionic/p-1e423a83.entry.js +0 -4
  1085. package/dist/ionic/p-1f772e46.entry.js +0 -4
  1086. package/dist/ionic/p-2056f176.js +0 -4
  1087. package/dist/ionic/p-21904499.entry.js +0 -4
  1088. package/dist/ionic/p-21cd60c8.system.entry.js +0 -4
  1089. package/dist/ionic/p-23e0cd37.entry.js +0 -4
  1090. package/dist/ionic/p-2690b1de.js +0 -4
  1091. package/dist/ionic/p-2afb9310.entry.js +0 -4
  1092. package/dist/ionic/p-2b37f5bd.entry.js +0 -4
  1093. package/dist/ionic/p-2bb4b550.system.entry.js +0 -4
  1094. package/dist/ionic/p-2d93a7e5.system.js +0 -4
  1095. package/dist/ionic/p-2de64a3f.system.entry.js +0 -4
  1096. package/dist/ionic/p-330d7e08.entry.js +0 -4
  1097. package/dist/ionic/p-34a6b5a7.entry.js +0 -4
  1098. package/dist/ionic/p-382345db.system.entry.js +0 -4
  1099. package/dist/ionic/p-3ba261ac.entry.js +0 -4
  1100. package/dist/ionic/p-3d9ecf70.entry.js +0 -4
  1101. package/dist/ionic/p-4440f5b4.entry.js +0 -4
  1102. package/dist/ionic/p-444c76ee.system.entry.js +0 -4
  1103. package/dist/ionic/p-46121609.entry.js +0 -4
  1104. package/dist/ionic/p-49682936.entry.js +0 -4
  1105. package/dist/ionic/p-49ffacc0.system.entry.js +0 -4
  1106. package/dist/ionic/p-4a963829.system.entry.js +0 -4
  1107. package/dist/ionic/p-4ad3a2de.entry.js +0 -4
  1108. package/dist/ionic/p-4e6aa78c.entry.js +0 -4
  1109. package/dist/ionic/p-4fa22b8c.entry.js +0 -4
  1110. package/dist/ionic/p-505121c4.entry.js +0 -4
  1111. package/dist/ionic/p-52fce436.entry.js +0 -4
  1112. package/dist/ionic/p-56b0ac1b.system.entry.js +0 -4
  1113. package/dist/ionic/p-5ae3649f.system.entry.js +0 -4
  1114. package/dist/ionic/p-5ed06a13.system.entry.js +0 -4
  1115. package/dist/ionic/p-62bb4a33.system.entry.js +0 -4
  1116. package/dist/ionic/p-669c0566.system.js +0 -4
  1117. package/dist/ionic/p-66aa91c8.js +0 -4
  1118. package/dist/ionic/p-6e444bfa.entry.js +0 -4
  1119. package/dist/ionic/p-6e4ff107.system.entry.js +0 -4
  1120. package/dist/ionic/p-7123a4b9.system.js +0 -4
  1121. package/dist/ionic/p-7de39857.system.entry.js +0 -4
  1122. package/dist/ionic/p-7f375f5a.entry.js +0 -4
  1123. package/dist/ionic/p-82ad7191.entry.js +0 -4
  1124. package/dist/ionic/p-83f7a890.system.entry.js +0 -4
  1125. package/dist/ionic/p-840cdfe8.entry.js +0 -4
  1126. package/dist/ionic/p-86895ed7.system.js +0 -4
  1127. package/dist/ionic/p-86deab17.system.entry.js +0 -4
  1128. package/dist/ionic/p-8884ee37.system.entry.js +0 -4
  1129. package/dist/ionic/p-89611183.system.js +0 -4
  1130. package/dist/ionic/p-89d17c48.system.entry.js +0 -4
  1131. package/dist/ionic/p-8cab6a5c.system.entry.js +0 -4
  1132. package/dist/ionic/p-8d460677.entry.js +0 -4
  1133. package/dist/ionic/p-8ed4381f.js +0 -4
  1134. package/dist/ionic/p-96503a77.entry.js +0 -4
  1135. package/dist/ionic/p-97f6c01c.system.entry.js +0 -4
  1136. package/dist/ionic/p-98203dbd.system.entry.js +0 -4
  1137. package/dist/ionic/p-985f06f3.entry.js +0 -4
  1138. package/dist/ionic/p-98a7aade.js +0 -4
  1139. package/dist/ionic/p-9a957058.system.entry.js +0 -4
  1140. package/dist/ionic/p-9beb3fad.js +0 -4
  1141. package/dist/ionic/p-aa5358cb.system.entry.js +0 -4
  1142. package/dist/ionic/p-acaa514f.system.entry.js +0 -4
  1143. package/dist/ionic/p-afc9f5ed.system.entry.js +0 -4
  1144. package/dist/ionic/p-b032d7ad.system.entry.js +0 -4
  1145. package/dist/ionic/p-b0d099be.js +0 -4
  1146. package/dist/ionic/p-b0fbe12b.entry.js +0 -4
  1147. package/dist/ionic/p-b0fea0ab.system.entry.js +0 -4
  1148. package/dist/ionic/p-b6f09d60.system.entry.js +0 -4
  1149. package/dist/ionic/p-bb013b6c.system.entry.js +0 -4
  1150. package/dist/ionic/p-be11fb42.system.js +0 -4
  1151. package/dist/ionic/p-be32a527.entry.js +0 -4
  1152. package/dist/ionic/p-c7b3353c.entry.js +0 -4
  1153. package/dist/ionic/p-cdb1dc2f.system.entry.js +0 -4
  1154. package/dist/ionic/p-d232cc6e.system.entry.js +0 -4
  1155. package/dist/ionic/p-d4a694c5.system.entry.js +0 -4
  1156. package/dist/ionic/p-d6b5bfa3.entry.js +0 -4
  1157. package/dist/ionic/p-d7cde2c6.entry.js +0 -4
  1158. package/dist/ionic/p-d81e5138.entry.js +0 -4
  1159. package/dist/ionic/p-da5af268.system.entry.js +0 -4
  1160. package/dist/ionic/p-dfb78785.system.js +0 -4
  1161. package/dist/ionic/p-e00617fb.entry.js +0 -4
  1162. package/dist/ionic/p-e02807c4.entry.js +0 -4
  1163. package/dist/ionic/p-e043b29b.entry.js +0 -4
  1164. package/dist/ionic/p-e2edeaaf.entry.js +0 -4
  1165. package/dist/ionic/p-e8cd5bde.js +0 -4
  1166. package/dist/ionic/p-e98d4eb6.entry.js +0 -4
  1167. package/dist/ionic/p-eb43e72a.entry.js +0 -4
  1168. package/dist/ionic/p-ebe1326c.system.js +0 -4
  1169. package/dist/ionic/p-ed76b287.entry.js +0 -4
  1170. package/dist/ionic/p-eecf3a84.entry.js +0 -4
  1171. package/dist/ionic/p-f8fbf20f.system.entry.js +0 -4
  1172. package/dist/ionic/p-fa0d9805.entry.js +0 -4
  1173. package/dist/ionic/p-fca0933c.system.entry.js +0 -4
  1174. package/dist/ionic/p-ff417d5d.system.entry.js +0 -4
  1175. package/dist/ionic/p-ff4b7e40.system.js +0 -4
  1176. /package/dist/collection/components/{input-password-toggle/input-password-toggle.css → refresher-content/refresher-content.css} +0 -0
@@ -1,4 +1,4 @@
1
1
  import{__awaiter,__generator}from"tslib";
2
2
  /*!
3
3
  * (C) Ionic http://ionicframework.com - MIT License
4
- */import{w as writeTask,r as registerInstance,d as createEvent,e as readTask,h,i as getElement,f as Host}from"./index-4e02bb5d.js";import{g as getTimeGivenProgression}from"./cubic-bezier-fe2083dc.js";import{I as ION_CONTENT_CLASS_SELECTOR,b as ION_CONTENT_ELEMENT_SELECTOR,p as printIonContentErrorMsg,g as getScrollElement}from"./index-5cc724f3.js";import{t as transitionEndAsync,c as componentOnReady,j as clamp,g as getElementRoot,r as raf}from"./helpers-da915de8.js";import{d as hapticImpact,I as ImpactStyle}from"./haptic-ac164e4c.js";import{b as getIonMode,c as config}from"./ionic-global-8f9440ec.js";import{c as createAnimation}from"./animation-eab5a4ca.js";import{E as ENABLE_HTML_CONTENT_DEFAULT,a as sanitizeDOMString}from"./config-49c88215.js";import{h as caretBackSharp,i as arrowDown}from"./index-e2cf2ceb.js";import{S as SPINNERS}from"./spinner-configs-964f7cf3.js";import"./index-9b0d46f4.js";import"./capacitor-59395cbd.js";import"./index-a5d50daf.js";var getRefresherAnimationType=function(e){var r=e.previousElementSibling;var n=r!==null&&r.tagName==="ION-HEADER";return n?"translate":"scale"};var createPullingAnimation=function(e,r,n){return e==="scale"?createScaleAnimation(r,n):createTranslateAnimation(r,n)};var createBaseAnimation=function(e){var r=e.querySelector("ion-spinner");var n=r.shadowRoot.querySelector("circle");var i=e.querySelector(".spinner-arrow-container");var t=e.querySelector(".arrow-container");var s=t?t.querySelector("ion-icon"):null;var o=createAnimation().duration(1e3).easing("ease-out");var a=createAnimation().addElement(i).keyframes([{offset:0,opacity:"0.3"},{offset:.45,opacity:"0.3"},{offset:.55,opacity:"1"},{offset:1,opacity:"1"}]);var f=createAnimation().addElement(n).keyframes([{offset:0,strokeDasharray:"1px, 200px"},{offset:.2,strokeDasharray:"1px, 200px"},{offset:.55,strokeDasharray:"100px, 200px"},{offset:1,strokeDasharray:"100px, 200px"}]);var h=createAnimation().addElement(r).keyframes([{offset:0,transform:"rotate(-90deg)"},{offset:1,transform:"rotate(210deg)"}]);if(t&&s){var c=createAnimation().addElement(t).keyframes([{offset:0,transform:"rotate(0deg)"},{offset:.3,transform:"rotate(0deg)"},{offset:.55,transform:"rotate(280deg)"},{offset:1,transform:"rotate(400deg)"}]);var l=createAnimation().addElement(s).keyframes([{offset:0,transform:"translateX(2px) scale(0)"},{offset:.3,transform:"translateX(2px) scale(0)"},{offset:.55,transform:"translateX(-1.5px) scale(1)"},{offset:1,transform:"translateX(-1.5px) scale(1)"}]);o.addAnimation([c,l])}return o.addAnimation([a,f,h])};var createScaleAnimation=function(e,r){var n=r.clientHeight;var i=createAnimation().addElement(e).keyframes([{offset:0,transform:"scale(0) translateY(-".concat(n,"px)")},{offset:1,transform:"scale(1) translateY(100px)"}]);return createBaseAnimation(e).addAnimation([i])};var createTranslateAnimation=function(e,r){var n=r.clientHeight;var i=createAnimation().addElement(e).keyframes([{offset:0,transform:"translateY(-".concat(n,"px)")},{offset:1,transform:"translateY(100px)"}]);return createBaseAnimation(e).addAnimation([i])};var createSnapBackAnimation=function(e){return createAnimation().duration(125).addElement(e).fromTo("transform","translateY(var(--ion-pulling-refresher-translate, 100px))","translateY(0px)")};var setSpinnerOpacity=function(e,r){e.style.setProperty("opacity",r.toString())};var handleScrollWhilePulling=function(e,r,n){var i=1;writeTask((function(){e.forEach((function(e,t){var s=t*(i/r);var o=i-s;var a=n-s;var f=clamp(0,a/o,1);e.style.setProperty("opacity",f.toString())}))}))};var handleScrollWhileRefreshing=function(e,r){writeTask((function(){e.style.setProperty("--refreshing-rotation-duration",r>=1?"0.5s":"2s");e.style.setProperty("opacity","1")}))};var translateElement=function(e,r,n){if(n===void 0){n=200}if(!e){return Promise.resolve()}var i=transitionEndAsync(e,n);writeTask((function(){e.style.setProperty("transition","".concat(n,"ms all ease-out"));if(r===undefined){e.style.removeProperty("transform")}else{e.style.setProperty("transform","translate3d(0px, ".concat(r,", 0px)"))}}));return i};var supportsRubberBandScrolling=function(){return navigator.maxTouchPoints>0&&CSS.supports("background: -webkit-named-image(apple-pay-logo-black)")};var shouldUseNativeRefresher=function(e,r){return __awaiter(void 0,void 0,void 0,(function(){var n,i,t;return __generator(this,(function(s){switch(s.label){case 0:n=e.querySelector("ion-refresher-content");if(!n){return[2,Promise.resolve(false)]}return[4,new Promise((function(e){return componentOnReady(n,e)}))];case 1:s.sent();i=e.querySelector("ion-refresher-content .refresher-pulling ion-spinner");t=e.querySelector("ion-refresher-content .refresher-refreshing ion-spinner");return[2,i!==null&&t!==null&&(r==="ios"&&supportsRubberBandScrolling()||r==="md")]}}))}))};var refresherIosCss="ion-refresher{top:0;display:none;position:absolute;width:100%;height:60px;pointer-events:none;z-index:-1}ion-refresher{inset-inline-start:0}ion-refresher.refresher-active{display:block}ion-refresher-content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;height:100%}.refresher-pulling,.refresher-refreshing{display:none;width:100%}.refresher-pulling-icon,.refresher-refreshing-icon{-webkit-transform-origin:center;transform-origin:center;-webkit-transition:200ms;transition:200ms;font-size:30px;text-align:center}:host-context([dir=rtl]) .refresher-pulling-icon,:host-context([dir=rtl]) .refresher-refreshing-icon{-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}[dir=rtl] .refresher-pulling-icon,[dir=rtl] .refresher-refreshing-icon{-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}@supports selector(:dir(rtl)){.refresher-pulling-icon:dir(rtl),.refresher-refreshing-icon:dir(rtl){-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}}.refresher-pulling-text,.refresher-refreshing-text{font-size:16px;text-align:center}ion-refresher-content .arrow-container{display:none}.refresher-pulling ion-refresher-content .refresher-pulling{display:block}.refresher-ready ion-refresher-content .refresher-pulling{display:block}.refresher-ready ion-refresher-content .refresher-pulling-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.refresher-refreshing ion-refresher-content .refresher-refreshing{display:block}.refresher-cancelling ion-refresher-content .refresher-pulling{display:block}.refresher-cancelling ion-refresher-content .refresher-pulling-icon{-webkit-transform:scale(0);transform:scale(0)}.refresher-completing ion-refresher-content .refresher-refreshing{display:block}.refresher-completing ion-refresher-content .refresher-refreshing-icon{-webkit-transform:scale(0);transform:scale(0)}.refresher-native .refresher-pulling-text,.refresher-native .refresher-refreshing-text{display:none}.refresher-ios .refresher-pulling-icon,.refresher-ios .refresher-refreshing-icon{color:var(--ion-text-color, #000)}.refresher-ios .refresher-pulling-text,.refresher-ios .refresher-refreshing-text{color:var(--ion-text-color, #000)}.refresher-ios .refresher-refreshing .spinner-lines-ios line,.refresher-ios .refresher-refreshing .spinner-lines-small-ios line,.refresher-ios .refresher-refreshing .spinner-crescent circle{stroke:var(--ion-text-color, #000)}.refresher-ios .refresher-refreshing .spinner-bubbles circle,.refresher-ios .refresher-refreshing .spinner-circles circle,.refresher-ios .refresher-refreshing .spinner-dots circle{fill:var(--ion-text-color, #000)}ion-refresher.refresher-native{display:block;z-index:1}ion-refresher.refresher-native ion-spinner{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0}.refresher-native .refresher-refreshing ion-spinner{--refreshing-rotation-duration:2s;display:none;-webkit-animation:var(--refreshing-rotation-duration) ease-out refresher-rotate forwards;animation:var(--refreshing-rotation-duration) ease-out refresher-rotate forwards}.refresher-native .refresher-refreshing{display:none;-webkit-animation:250ms linear refresher-pop forwards;animation:250ms linear refresher-pop forwards}.refresher-native ion-spinner{width:32px;height:32px;color:var(--ion-color-step-450, var(--ion-background-color-step-450, #747577))}.refresher-native.refresher-refreshing .refresher-pulling ion-spinner,.refresher-native.refresher-completing .refresher-pulling ion-spinner{display:none}.refresher-native.refresher-refreshing .refresher-refreshing ion-spinner,.refresher-native.refresher-completing .refresher-refreshing ion-spinner{display:block}.refresher-native.refresher-pulling .refresher-pulling ion-spinner{display:block}.refresher-native.refresher-pulling .refresher-refreshing ion-spinner{display:none}.refresher-native.refresher-completing ion-refresher-content .refresher-refreshing-icon{-webkit-transform:scale(0) rotate(180deg);transform:scale(0) rotate(180deg);-webkit-transition:300ms;transition:300ms}@-webkit-keyframes refresher-pop{0%{-webkit-transform:scale(1);transform:scale(1);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}50%{-webkit-transform:scale(1.2);transform:scale(1.2);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}100%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes refresher-pop{0%{-webkit-transform:scale(1);transform:scale(1);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}50%{-webkit-transform:scale(1.2);transform:scale(1.2);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}100%{-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes refresher-rotate{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(180deg);transform:rotate(180deg)}}@keyframes refresher-rotate{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(180deg);transform:rotate(180deg)}}";var IonRefresherIosStyle0=refresherIosCss;var refresherMdCss="ion-refresher{top:0;display:none;position:absolute;width:100%;height:60px;pointer-events:none;z-index:-1}ion-refresher{inset-inline-start:0}ion-refresher.refresher-active{display:block}ion-refresher-content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;height:100%}.refresher-pulling,.refresher-refreshing{display:none;width:100%}.refresher-pulling-icon,.refresher-refreshing-icon{-webkit-transform-origin:center;transform-origin:center;-webkit-transition:200ms;transition:200ms;font-size:30px;text-align:center}:host-context([dir=rtl]) .refresher-pulling-icon,:host-context([dir=rtl]) .refresher-refreshing-icon{-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}[dir=rtl] .refresher-pulling-icon,[dir=rtl] .refresher-refreshing-icon{-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}@supports selector(:dir(rtl)){.refresher-pulling-icon:dir(rtl),.refresher-refreshing-icon:dir(rtl){-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}}.refresher-pulling-text,.refresher-refreshing-text{font-size:16px;text-align:center}ion-refresher-content .arrow-container{display:none}.refresher-pulling ion-refresher-content .refresher-pulling{display:block}.refresher-ready ion-refresher-content .refresher-pulling{display:block}.refresher-ready ion-refresher-content .refresher-pulling-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.refresher-refreshing ion-refresher-content .refresher-refreshing{display:block}.refresher-cancelling ion-refresher-content .refresher-pulling{display:block}.refresher-cancelling ion-refresher-content .refresher-pulling-icon{-webkit-transform:scale(0);transform:scale(0)}.refresher-completing ion-refresher-content .refresher-refreshing{display:block}.refresher-completing ion-refresher-content .refresher-refreshing-icon{-webkit-transform:scale(0);transform:scale(0)}.refresher-native .refresher-pulling-text,.refresher-native .refresher-refreshing-text{display:none}.refresher-md .refresher-pulling-icon,.refresher-md .refresher-refreshing-icon{color:var(--ion-text-color, #000)}.refresher-md .refresher-pulling-text,.refresher-md .refresher-refreshing-text{color:var(--ion-text-color, #000)}.refresher-md .refresher-refreshing .spinner-lines-md line,.refresher-md .refresher-refreshing .spinner-lines-small-md line,.refresher-md .refresher-refreshing .spinner-crescent circle{stroke:var(--ion-text-color, #000)}.refresher-md .refresher-refreshing .spinner-bubbles circle,.refresher-md .refresher-refreshing .spinner-circles circle,.refresher-md .refresher-refreshing .spinner-dots circle{fill:var(--ion-text-color, #000)}ion-refresher.refresher-native{display:block;z-index:1}ion-refresher.refresher-native ion-spinner{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;width:24px;height:24px;color:var(--ion-color-primary, #0054e9)}ion-refresher.refresher-native .spinner-arrow-container{display:inherit}ion-refresher.refresher-native .arrow-container{display:block;position:absolute;width:24px;height:24px}ion-refresher.refresher-native .arrow-container ion-icon{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;left:0;right:0;bottom:-4px;position:absolute;color:var(--ion-color-primary, #0054e9);font-size:12px}ion-refresher.refresher-native.refresher-pulling ion-refresher-content .refresher-pulling,ion-refresher.refresher-native.refresher-ready ion-refresher-content .refresher-pulling{display:-ms-flexbox;display:flex}ion-refresher.refresher-native.refresher-refreshing ion-refresher-content .refresher-refreshing,ion-refresher.refresher-native.refresher-completing ion-refresher-content .refresher-refreshing,ion-refresher.refresher-native.refresher-cancelling ion-refresher-content .refresher-refreshing{display:-ms-flexbox;display:flex}ion-refresher.refresher-native .refresher-pulling-icon{-webkit-transform:translateY(calc(-100% - 10px));transform:translateY(calc(-100% - 10px))}ion-refresher.refresher-native .refresher-pulling-icon,ion-refresher.refresher-native .refresher-refreshing-icon{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;border-radius:100%;-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;display:-ms-flexbox;display:flex;border:1px solid var(--ion-color-step-200, var(--ion-background-color-step-200, #ececec));background:var(--ion-color-step-250, var(--ion-background-color-step-250, #ffffff));-webkit-box-shadow:0px 1px 6px rgba(0, 0, 0, 0.1);box-shadow:0px 1px 6px rgba(0, 0, 0, 0.1)}";var IonRefresherMdStyle0=refresherMdCss;var Refresher=function(){function e(e){registerInstance(this,e);this.ionRefresh=createEvent(this,"ionRefresh",7);this.ionPull=createEvent(this,"ionPull",7);this.ionStart=createEvent(this,"ionStart",7);this.appliedStyles=false;this.didStart=false;this.progress=0;this.pointerDown=false;this.needsCompletion=false;this.didRefresh=false;this.contentFullscreen=false;this.lastVelocityY=0;this.animations=[];this.nativeRefresher=false;this.state=1;this.pullMin=60;this.pullMax=this.pullMin+60;this.closeDuration="280ms";this.snapbackDuration="280ms";this.pullFactor=1;this.disabled=false}e.prototype.disabledChanged=function(){if(this.gesture){this.gesture.enable(!this.disabled)}};e.prototype.checkNativeRefresher=function(){return __awaiter(this,void 0,void 0,(function(){var e,r;return __generator(this,(function(n){switch(n.label){case 0:return[4,shouldUseNativeRefresher(this.el,getIonMode(this))];case 1:e=n.sent();if(e&&!this.nativeRefresher){r=this.el.closest("ion-content");this.setupNativeRefresher(r)}else if(!e){this.destroyNativeRefresher()}return[2]}}))}))};e.prototype.destroyNativeRefresher=function(){if(this.scrollEl&&this.scrollListenerCallback){this.scrollEl.removeEventListener("scroll",this.scrollListenerCallback);this.scrollListenerCallback=undefined}this.nativeRefresher=false};e.prototype.resetNativeRefresher=function(e,r){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){switch(n.label){case 0:this.state=r;if(!(getIonMode(this)==="ios"))return[3,2];return[4,translateElement(e,undefined,300)];case 1:n.sent();return[3,4];case 2:return[4,transitionEndAsync(this.el.querySelector(".refresher-refreshing-icon"),200)];case 3:n.sent();n.label=4;case 4:this.didRefresh=false;this.needsCompletion=false;this.pointerDown=false;this.animations.forEach((function(e){return e.destroy()}));this.animations=[];this.progress=0;this.state=1;return[2]}}))}))};e.prototype.setupiOSNativeRefresher=function(e,r){return __awaiter(this,void 0,void 0,(function(){var n,i,t,s;var o=this;return __generator(this,(function(a){switch(a.label){case 0:this.elementToTransform=this.scrollEl;n=e.shadowRoot.querySelectorAll("svg");i=this.scrollEl.clientHeight*.16;t=n.length;writeTask((function(){return n.forEach((function(e){return e.style.setProperty("animation","none")}))}));this.scrollListenerCallback=function(){if(!o.pointerDown&&o.state===1){return}readTask((function(){var e=o.scrollEl.scrollTop;var s=o.el.clientHeight;if(e>0){if(o.state===8){var a=clamp(0,e/(s*.5),1);writeTask((function(){return setSpinnerOpacity(r,1-a)}));return}return}if(o.pointerDown){if(!o.didStart){o.didStart=true;o.ionStart.emit()}if(o.pointerDown){o.ionPull.emit()}}var f=o.didStart?30:0;var h=o.progress=clamp(0,(Math.abs(e)-f)/i,1);var c=o.state===8||h===1;if(c){if(o.pointerDown){handleScrollWhileRefreshing(r,o.lastVelocityY)}if(!o.didRefresh){o.beginRefresh();o.didRefresh=true;hapticImpact({style:ImpactStyle.Light});if(!o.pointerDown){translateElement(o.elementToTransform,"".concat(s,"px"))}}}else{o.state=2;handleScrollWhilePulling(n,t,h)}}))};this.scrollEl.addEventListener("scroll",this.scrollListenerCallback);s=this;return[4,import("./index-39782642.js")];case 1:s.gesture=a.sent().createGesture({el:this.scrollEl,gestureName:"refresher",gesturePriority:31,direction:"y",threshold:5,onStart:function(){o.pointerDown=true;if(!o.didRefresh){translateElement(o.elementToTransform,"0px")}if(i===0){i=o.scrollEl.clientHeight*.16}},onMove:function(e){o.lastVelocityY=e.velocityY},onEnd:function(){o.pointerDown=false;o.didStart=false;if(o.needsCompletion){o.resetNativeRefresher(o.elementToTransform,32);o.needsCompletion=false}else if(o.didRefresh){readTask((function(){return translateElement(o.elementToTransform,"".concat(o.el.clientHeight,"px"))}))}}});this.disabledChanged();return[2]}}))}))};e.prototype.setupMDNativeRefresher=function(e,r,n){return __awaiter(this,void 0,void 0,(function(){var i,t,s,o;var a=this;return __generator(this,(function(f){switch(f.label){case 0:i=getElementRoot(r).querySelector("circle");t=this.el.querySelector("ion-refresher-content .refresher-pulling-icon");s=getElementRoot(n).querySelector("circle");if(i!==null&&s!==null){writeTask((function(){i.style.setProperty("animation","none");n.style.setProperty("animation-delay","-655ms");s.style.setProperty("animation-delay","-655ms")}))}o=this;return[4,import("./index-39782642.js")];case 1:o.gesture=f.sent().createGesture({el:this.scrollEl,gestureName:"refresher",gesturePriority:31,direction:"y",threshold:5,canStart:function(){return a.state!==8&&a.state!==32&&a.scrollEl.scrollTop===0},onStart:function(e){a.progress=0;e.data={animation:undefined,didStart:false,cancelled:false}},onMove:function(r){if(r.velocityY<0&&a.progress===0&&!r.data.didStart||r.data.cancelled){r.data.cancelled=true;return}if(!r.data.didStart){r.data.didStart=true;a.state=2;var n=a.scrollEl;var i=n.matches(ION_CONTENT_CLASS_SELECTOR)?"overflow":"--overflow";writeTask((function(){return n.style.setProperty(i,"hidden")}));var s=getRefresherAnimationType(e);var o=createPullingAnimation(s,t,a.el);r.data.animation=o;o.progressStart(false,0);a.ionStart.emit();a.animations.push(o);return}a.progress=clamp(0,r.deltaY/180*.5,1);r.data.animation.progressStep(a.progress);a.ionPull.emit()},onEnd:function(e){if(!e.data.didStart){return}a.gesture.enable(false);var r=a.scrollEl;var n=r.matches(ION_CONTENT_CLASS_SELECTOR)?"overflow":"--overflow";writeTask((function(){return r.style.removeProperty(n)}));if(a.progress<=.4){e.data.animation.progressEnd(0,a.progress,500).onFinish((function(){a.animations.forEach((function(e){return e.destroy()}));a.animations=[];a.gesture.enable(true);a.state=1}));return}var i=getTimeGivenProgression([0,0],[0,0],[1,1],[1,1],a.progress)[0];var s=createSnapBackAnimation(t);a.animations.push(s);writeTask((function(){return __awaiter(a,void 0,void 0,(function(){return __generator(this,(function(r){switch(r.label){case 0:t.style.setProperty("--ion-pulling-refresher-translate","".concat(i*100,"px"));e.data.animation.progressEnd();return[4,s.play()];case 1:r.sent();this.beginRefresh();e.data.animation.destroy();this.gesture.enable(true);return[2]}}))}))}))}});this.disabledChanged();return[2]}}))}))};e.prototype.setupNativeRefresher=function(e){return __awaiter(this,void 0,void 0,(function(){var r,n;return __generator(this,(function(i){if(this.scrollListenerCallback||!e||this.nativeRefresher||!this.scrollEl){return[2]}this.setCss(0,"",false,"");this.nativeRefresher=true;r=this.el.querySelector("ion-refresher-content .refresher-pulling ion-spinner");n=this.el.querySelector("ion-refresher-content .refresher-refreshing ion-spinner");if(getIonMode(this)==="ios"){this.setupiOSNativeRefresher(r,n)}else{this.setupMDNativeRefresher(e,r,n)}return[2]}))}))};e.prototype.componentDidUpdate=function(){this.checkNativeRefresher()};e.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){var e;var r=this;return __generator(this,(function(n){if(this.el.getAttribute("slot")!=="fixed"){console.error('Make sure you use: <ion-refresher slot="fixed">');return[2]}e=this.el.closest(ION_CONTENT_ELEMENT_SELECTOR);if(!e){printIonContentErrorMsg(this.el);return[2]}componentOnReady(e,(function(){return __awaiter(r,void 0,void 0,(function(){var r,n,i,t;var s=this;return __generator(this,(function(o){switch(o.label){case 0:r=e.querySelector(ION_CONTENT_CLASS_SELECTOR);n=this;return[4,getScrollElement(r!==null&&r!==void 0?r:e)];case 1:n.scrollEl=o.sent();i=this;return[4,e.getBackgroundElement()];case 2:i.backgroundContentEl=o.sent();this.contentFullscreen=e.fullscreen;return[4,shouldUseNativeRefresher(this.el,getIonMode(this))];case 3:if(!o.sent())return[3,4];this.setupNativeRefresher(e);return[3,6];case 4:t=this;return[4,import("./index-39782642.js")];case 5:t.gesture=o.sent().createGesture({el:e,gestureName:"refresher",gesturePriority:31,direction:"y",threshold:20,passive:false,canStart:function(){return s.canStart()},onStart:function(){return s.onStart()},onMove:function(e){return s.onMove(e)},onEnd:function(){return s.onEnd()}});this.disabledChanged();o.label=6;case 6:return[2]}}))}))}));return[2]}))}))};e.prototype.disconnectedCallback=function(){this.destroyNativeRefresher();this.scrollEl=undefined;if(this.gesture){this.gesture.destroy();this.gesture=undefined}};e.prototype.complete=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(r){if(this.nativeRefresher){this.needsCompletion=true;if(!this.pointerDown){raf((function(){return raf((function(){return e.resetNativeRefresher(e.elementToTransform,32)}))}))}}else{this.close(32,"120ms")}return[2]}))}))};e.prototype.cancel=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(r){if(this.nativeRefresher){if(!this.pointerDown){raf((function(){return raf((function(){return e.resetNativeRefresher(e.elementToTransform,16)}))}))}}else{this.close(16,"")}return[2]}))}))};e.prototype.getProgress=function(){return Promise.resolve(this.progress)};e.prototype.canStart=function(){if(!this.scrollEl){return false}if(this.state!==1){return false}if(this.scrollEl.scrollTop>0){return false}return true};e.prototype.onStart=function(){this.progress=0;this.state=1;this.memoizeOverflowStyle();if(this.contentFullscreen&&this.backgroundContentEl){this.backgroundContentEl.style.setProperty("--offset-top","0px")}};e.prototype.onMove=function(e){if(!this.scrollEl){return}var r=e.event;if(r.touches!==undefined&&r.touches.length>1){return}if((this.state&56)!==0){return}var n=Number.isNaN(this.pullFactor)||this.pullFactor<0?1:this.pullFactor;var i=e.deltaY*n;if(i<=0){this.progress=0;this.state=1;if(this.appliedStyles){this.setCss(0,"",false,"");return}return}if(this.state===1){var t=this.scrollEl.scrollTop;if(t>0){this.progress=0;return}this.state=2}if(r.cancelable){r.preventDefault()}this.setCss(i,"0ms",true,"");if(i===0){this.progress=0;return}var s=this.pullMin;this.progress=i/s;if(!this.didStart){this.didStart=true;this.ionStart.emit()}this.ionPull.emit();if(i<s){this.state=2;return}if(i>this.pullMax){this.beginRefresh();return}this.state=4;return};e.prototype.onEnd=function(){if(this.state===4){this.beginRefresh()}else if(this.state===2){this.cancel()}else if(this.state===1){this.restoreOverflowStyle()}};e.prototype.beginRefresh=function(){this.state=8;this.setCss(this.pullMin,this.snapbackDuration,true,"");this.ionRefresh.emit({complete:this.complete.bind(this)})};e.prototype.close=function(e,r){var n=this;setTimeout((function(){var e;n.state=1;n.progress=0;n.didStart=false;n.setCss(0,"0ms",false,"",true);if(n.contentFullscreen&&n.backgroundContentEl){(e=n.backgroundContentEl)===null||e===void 0?void 0:e.style.removeProperty("--offset-top")}}),600);this.state=e;this.setCss(0,this.closeDuration,true,r)};e.prototype.setCss=function(e,r,n,i,t){var s=this;if(t===void 0){t=false}if(this.nativeRefresher){return}this.appliedStyles=e>0;writeTask((function(){if(s.scrollEl&&s.backgroundContentEl){var o=s.scrollEl.style;var a=s.backgroundContentEl.style;o.transform=a.transform=e>0?"translateY(".concat(e,"px) translateZ(0px)"):"";o.transitionDuration=a.transitionDuration=r;o.transitionDelay=a.transitionDelay=i;o.overflow=n?"hidden":""}if(t){s.restoreOverflowStyle()}}))};e.prototype.memoizeOverflowStyle=function(){if(this.scrollEl){var e=this.scrollEl.style,r=e.overflow,n=e.overflowX,i=e.overflowY;this.overflowStyles={overflow:r!==null&&r!==void 0?r:"",overflowX:n!==null&&n!==void 0?n:"",overflowY:i!==null&&i!==void 0?i:""}}};e.prototype.restoreOverflowStyle=function(){if(this.overflowStyles!==undefined&&this.scrollEl!==undefined){var e=this.overflowStyles,r=e.overflow,n=e.overflowX,i=e.overflowY;this.scrollEl.style.overflow=r;this.scrollEl.style.overflowX=n;this.scrollEl.style.overflowY=i;this.overflowStyles=undefined}};e.prototype.render=function(){var e;var r=getIonMode(this);return h(Host,{key:"3270f181a5141e7d886ec554a3e892974446b90e",slot:"fixed",class:(e={},e[r]=true,e["refresher-".concat(r)]=true,e["refresher-native"]=this.nativeRefresher,e["refresher-active"]=this.state!==1,e["refresher-pulling"]=this.state===2,e["refresher-ready"]=this.state===4,e["refresher-refreshing"]=this.state===8,e["refresher-cancelling"]=this.state===16,e["refresher-completing"]=this.state===32,e)})};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{disabled:["disabledChanged"]}},enumerable:false,configurable:true});return e}();Refresher.style={ios:IonRefresherIosStyle0,md:IonRefresherMdStyle0};var RefresherContent=function(){function e(e){registerInstance(this,e);this.customHTMLEnabled=config.get("innerHTMLTemplatesEnabled",ENABLE_HTML_CONTENT_DEFAULT);this.pullingIcon=undefined;this.pullingText=undefined;this.refreshingSpinner=undefined;this.refreshingText=undefined}e.prototype.componentWillLoad=function(){if(this.pullingIcon===undefined){var e=supportsRubberBandScrolling();var r=getIonMode(this);var n=e?"lines":arrowDown;this.pullingIcon=config.get("refreshingIcon",r==="ios"&&e?config.get("spinner",n):"circular")}if(this.refreshingSpinner===undefined){var r=getIonMode(this);this.refreshingSpinner=config.get("refreshingSpinner",config.get("spinner",r==="ios"?"lines":"circular"))}};e.prototype.renderPullingText=function(){var e=this,r=e.customHTMLEnabled,n=e.pullingText;if(r){return h("div",{class:"refresher-pulling-text",innerHTML:sanitizeDOMString(n)})}return h("div",{class:"refresher-pulling-text"},n)};e.prototype.renderRefreshingText=function(){var e=this,r=e.customHTMLEnabled,n=e.refreshingText;if(r){return h("div",{class:"refresher-refreshing-text",innerHTML:sanitizeDOMString(n)})}return h("div",{class:"refresher-refreshing-text"},n)};e.prototype.render=function(){var e=this.pullingIcon;var r=e!=null&&SPINNERS[e]!==undefined;var n=getIonMode(this);return h(Host,{key:"1bec5b4da221c69d856f3f5ddf40f2e03ebf2a4c",class:n},h("div",{key:"4fcc526c4f1881e9368d9cd16bd7030919bd3841",class:"refresher-pulling"},this.pullingIcon&&r&&h("div",{key:"a4e9e2e12c2d7faefc8303ec8c021f999ddf308e",class:"refresher-pulling-icon"},h("div",{key:"5a2d215feb7fb4b64d540d3a65c0f24b415a2433",class:"spinner-arrow-container"},h("ion-spinner",{key:"abef2621d671ac6ff0abac43a702cbd825b7f127",name:this.pullingIcon,paused:true}),n==="md"&&this.pullingIcon==="circular"&&h("div",{key:"30087d672c3780672a05874cd93cd099b2855462",class:"arrow-container"},h("ion-icon",{key:"5e30333dee469aec0d8efc8c4e6dabb619c6f363",icon:caretBackSharp,"aria-hidden":"true"})))),this.pullingIcon&&!r&&h("div",{key:"48fe72b5ce8ded633c6ee799cebb520b9c8be528",class:"refresher-pulling-icon"},h("ion-icon",{key:"d8dfd5d42056b1c0a436c5006affb255407816c0",icon:this.pullingIcon,lazy:false,"aria-hidden":"true"})),this.pullingText!==undefined&&this.renderPullingText()),h("div",{key:"c2cbfb94f157c82601ffe7bb815ff82ebc7c0a49",class:"refresher-refreshing"},this.refreshingSpinner&&h("div",{key:"17f3ebe6a31768d5e389f45a2c12f68600185db9",class:"refresher-refreshing-icon"},h("ion-spinner",{key:"e8e61f8d7189c9939bba184201c9509d1d5b0fad",name:this.refreshingSpinner})),this.refreshingText!==undefined&&this.renderRefreshingText()))};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();export{Refresher as ion_refresher,RefresherContent as ion_refresher_content};
4
+ */import{w as writeTask,r as registerInstance,e as createEvent,f as readTask,h,g as getElement,i as Host}from"./index-3f990258.js";import{g as getTimeGivenProgression}from"./cubic-bezier-fe2083dc.js";import{I as ION_CONTENT_CLASS_SELECTOR,b as ION_CONTENT_ELEMENT_SELECTOR,p as printIonContentErrorMsg,g as getScrollElement}from"./index-7b8200de.js";import{t as transitionEndAsync,c as componentOnReady,j as clamp,g as getElementRoot,r as raf}from"./helpers-da915de8.js";import{d as hapticImpact,I as ImpactStyle}from"./haptic-ac164e4c.js";import{b as getIonMode,d as getIonTheme,c as config}from"./ionic-global-e4f248ad.js";import{c as createAnimation}from"./animation-eab5a4ca.js";import{E as ENABLE_HTML_CONTENT_DEFAULT,a as sanitizeDOMString}from"./config-49c88215.js";import{h as arrowDown,i as caretBackSharp}from"./index-4ccb3ebe.js";import{S as SPINNERS}from"./spinner-configs-964f7cf3.js";import"./capacitor-59395cbd.js";import"./index-a5d50daf.js";var getRefresherAnimationType=function(e){var r=e.previousElementSibling;var n=r!==null&&r.tagName==="ION-HEADER";return n?"translate":"scale"};var createPullingAnimation=function(e,r,n){return e==="scale"?createScaleAnimation(r,n):createTranslateAnimation(r,n)};var createBaseAnimation=function(e){var r=e.querySelector("ion-spinner");var n=r.shadowRoot.querySelector("circle");var i=e.querySelector(".spinner-arrow-container");var t=e.querySelector(".arrow-container");var s=t?t.querySelector("ion-icon"):null;var o=createAnimation().duration(1e3).easing("ease-out");var a=createAnimation().addElement(i).keyframes([{offset:0,opacity:"0.3"},{offset:.45,opacity:"0.3"},{offset:.55,opacity:"1"},{offset:1,opacity:"1"}]);var f=createAnimation().addElement(n).keyframes([{offset:0,strokeDasharray:"1px, 200px"},{offset:.2,strokeDasharray:"1px, 200px"},{offset:.55,strokeDasharray:"100px, 200px"},{offset:1,strokeDasharray:"100px, 200px"}]);var h=createAnimation().addElement(r).keyframes([{offset:0,transform:"rotate(-90deg)"},{offset:1,transform:"rotate(210deg)"}]);if(t&&s){var c=createAnimation().addElement(t).keyframes([{offset:0,transform:"rotate(0deg)"},{offset:.3,transform:"rotate(0deg)"},{offset:.55,transform:"rotate(280deg)"},{offset:1,transform:"rotate(400deg)"}]);var l=createAnimation().addElement(s).keyframes([{offset:0,transform:"translateX(2px) scale(0)"},{offset:.3,transform:"translateX(2px) scale(0)"},{offset:.55,transform:"translateX(-1.5px) scale(1)"},{offset:1,transform:"translateX(-1.5px) scale(1)"}]);o.addAnimation([c,l])}return o.addAnimation([a,f,h])};var createScaleAnimation=function(e,r){var n=r.clientHeight;var i=createAnimation().addElement(e).keyframes([{offset:0,transform:"scale(0) translateY(-".concat(n,"px)")},{offset:1,transform:"scale(1) translateY(100px)"}]);return createBaseAnimation(e).addAnimation([i])};var createTranslateAnimation=function(e,r){var n=r.clientHeight;var i=createAnimation().addElement(e).keyframes([{offset:0,transform:"translateY(-".concat(n,"px)")},{offset:1,transform:"translateY(100px)"}]);return createBaseAnimation(e).addAnimation([i])};var createSnapBackAnimation=function(e){return createAnimation().duration(125).addElement(e).fromTo("transform","translateY(var(--ion-pulling-refresher-translate, 100px))","translateY(0px)")};var setSpinnerOpacity=function(e,r){e.style.setProperty("opacity",r.toString())};var handleScrollWhilePulling=function(e,r,n){var i=1;writeTask((function(){e.forEach((function(e,t){var s=t*(i/r);var o=i-s;var a=n-s;var f=clamp(0,a/o,1);e.style.setProperty("opacity",f.toString())}))}))};var handleScrollWhileRefreshing=function(e,r){writeTask((function(){e.style.setProperty("--refreshing-rotation-duration",r>=1?"0.5s":"2s");e.style.setProperty("opacity","1")}))};var translateElement=function(e,r,n){if(n===void 0){n=200}if(!e){return Promise.resolve()}var i=transitionEndAsync(e,n);writeTask((function(){e.style.setProperty("transition","".concat(n,"ms all ease-out"));if(r===undefined){e.style.removeProperty("transform")}else{e.style.setProperty("transform","translate3d(0px, ".concat(r,", 0px)"))}}));return i};var supportsRubberBandScrolling=function(){return navigator.maxTouchPoints>0&&CSS.supports("background: -webkit-named-image(apple-pay-logo-black)")};var shouldUseNativeRefresher=function(e,r){return __awaiter(void 0,void 0,void 0,(function(){var n,i,t;return __generator(this,(function(s){switch(s.label){case 0:n=e.querySelector("ion-refresher-content");if(!n){return[2,Promise.resolve(false)]}return[4,new Promise((function(e){return componentOnReady(n,e)}))];case 1:s.sent();i=e.querySelector("ion-refresher-content .refresher-pulling ion-spinner");t=e.querySelector("ion-refresher-content .refresher-refreshing ion-spinner");return[2,i!==null&&t!==null&&(r==="ios"&&supportsRubberBandScrolling()||r==="md")]}}))}))};var ionicRefresherMdCss="ion-refresher{top:0;display:none;position:absolute;width:100%;height:60px;pointer-events:none;z-index:-1}ion-refresher{inset-inline-start:0}ion-refresher.refresher-active{display:block}ion-refresher-content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;height:100%}.refresher-pulling,.refresher-refreshing{display:none;width:100%}.refresher-pulling-icon,.refresher-refreshing-icon{-webkit-transform-origin:center;transform-origin:center;-webkit-transition:200ms;transition:200ms;font-size:30px;text-align:center}:host-context([dir=rtl]) .refresher-pulling-icon,:host-context([dir=rtl]) .refresher-refreshing-icon{-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}[dir=rtl] .refresher-pulling-icon,[dir=rtl] .refresher-refreshing-icon{-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}@supports selector(:dir(rtl)){.refresher-pulling-icon:dir(rtl),.refresher-refreshing-icon:dir(rtl){-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}}.refresher-pulling-text,.refresher-refreshing-text{font-size:16px;text-align:center}ion-refresher-content .arrow-container{display:none}.refresher-pulling ion-refresher-content .refresher-pulling{display:block}.refresher-ready ion-refresher-content .refresher-pulling{display:block}.refresher-ready ion-refresher-content .refresher-pulling-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.refresher-refreshing ion-refresher-content .refresher-refreshing{display:block}.refresher-cancelling ion-refresher-content .refresher-pulling{display:block}.refresher-cancelling ion-refresher-content .refresher-pulling-icon{-webkit-transform:scale(0);transform:scale(0)}.refresher-completing ion-refresher-content .refresher-refreshing{display:block}.refresher-completing ion-refresher-content .refresher-refreshing-icon{-webkit-transform:scale(0);transform:scale(0)}.refresher-native .refresher-pulling-text,.refresher-native .refresher-refreshing-text{display:none}.refresher-md .refresher-pulling-icon,.refresher-md .refresher-refreshing-icon{color:var(--ion-text-color, #000)}.refresher-md .refresher-pulling-text,.refresher-md .refresher-refreshing-text{color:var(--ion-text-color, #000)}.refresher-md .refresher-refreshing .spinner-lines-md line,.refresher-md .refresher-refreshing .spinner-lines-small-md line,.refresher-md .refresher-refreshing .spinner-crescent circle{stroke:var(--ion-text-color, #000)}.refresher-md .refresher-refreshing .spinner-bubbles circle,.refresher-md .refresher-refreshing .spinner-circles circle,.refresher-md .refresher-refreshing .spinner-dots circle{fill:var(--ion-text-color, #000)}ion-refresher.refresher-native{display:block;z-index:1}ion-refresher.refresher-native ion-spinner{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;width:24px;height:24px;color:var(--ion-color-primary, #0054e9)}ion-refresher.refresher-native .spinner-arrow-container{display:inherit}ion-refresher.refresher-native .arrow-container{display:block;position:absolute;width:24px;height:24px}ion-refresher.refresher-native .arrow-container ion-icon{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;right:0;left:0;bottom:-4px;position:absolute;color:var(--ion-color-primary, #0054e9);font-size:12px}ion-refresher.refresher-native.refresher-pulling ion-refresher-content .refresher-pulling,ion-refresher.refresher-native.refresher-ready ion-refresher-content .refresher-pulling{display:-ms-flexbox;display:flex}ion-refresher.refresher-native.refresher-refreshing ion-refresher-content .refresher-refreshing,ion-refresher.refresher-native.refresher-completing ion-refresher-content .refresher-refreshing,ion-refresher.refresher-native.refresher-cancelling ion-refresher-content .refresher-refreshing{display:-ms-flexbox;display:flex}ion-refresher.refresher-native .refresher-pulling-icon{-webkit-transform:translateY(calc(-100% - 10px));transform:translateY(calc(-100% - 10px))}ion-refresher.refresher-native .refresher-pulling-icon,ion-refresher.refresher-native .refresher-refreshing-icon{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;border-radius:100%;-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;display:-ms-flexbox;display:flex;border:1px solid var(--ion-color-step-200, var(--ion-background-color-step-200, #ececec));background:var(--ion-color-step-250, var(--ion-background-color-step-250, #ffffff));-webkit-box-shadow:0px 1px 6px rgba(0, 0, 0, 0.1);box-shadow:0px 1px 6px rgba(0, 0, 0, 0.1)}";var IonRefresherIonicStyle0=ionicRefresherMdCss;var refresherIosCss="ion-refresher{top:0;display:none;position:absolute;width:100%;height:60px;pointer-events:none;z-index:-1}ion-refresher{inset-inline-start:0}ion-refresher.refresher-active{display:block}ion-refresher-content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;height:100%}.refresher-pulling,.refresher-refreshing{display:none;width:100%}.refresher-pulling-icon,.refresher-refreshing-icon{-webkit-transform-origin:center;transform-origin:center;-webkit-transition:200ms;transition:200ms;font-size:30px;text-align:center}:host-context([dir=rtl]) .refresher-pulling-icon,:host-context([dir=rtl]) .refresher-refreshing-icon{-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}[dir=rtl] .refresher-pulling-icon,[dir=rtl] .refresher-refreshing-icon{-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}@supports selector(:dir(rtl)){.refresher-pulling-icon:dir(rtl),.refresher-refreshing-icon:dir(rtl){-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}}.refresher-pulling-text,.refresher-refreshing-text{font-size:16px;text-align:center}ion-refresher-content .arrow-container{display:none}.refresher-pulling ion-refresher-content .refresher-pulling{display:block}.refresher-ready ion-refresher-content .refresher-pulling{display:block}.refresher-ready ion-refresher-content .refresher-pulling-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.refresher-refreshing ion-refresher-content .refresher-refreshing{display:block}.refresher-cancelling ion-refresher-content .refresher-pulling{display:block}.refresher-cancelling ion-refresher-content .refresher-pulling-icon{-webkit-transform:scale(0);transform:scale(0)}.refresher-completing ion-refresher-content .refresher-refreshing{display:block}.refresher-completing ion-refresher-content .refresher-refreshing-icon{-webkit-transform:scale(0);transform:scale(0)}.refresher-native .refresher-pulling-text,.refresher-native .refresher-refreshing-text{display:none}.refresher-ios .refresher-pulling-icon,.refresher-ios .refresher-refreshing-icon{color:var(--ion-text-color, #000)}.refresher-ios .refresher-pulling-text,.refresher-ios .refresher-refreshing-text{color:var(--ion-text-color, #000)}.refresher-ios .refresher-refreshing .spinner-lines-ios line,.refresher-ios .refresher-refreshing .spinner-lines-small-ios line,.refresher-ios .refresher-refreshing .spinner-crescent circle{stroke:var(--ion-text-color, #000)}.refresher-ios .refresher-refreshing .spinner-bubbles circle,.refresher-ios .refresher-refreshing .spinner-circles circle,.refresher-ios .refresher-refreshing .spinner-dots circle{fill:var(--ion-text-color, #000)}ion-refresher.refresher-native{display:block;z-index:1}ion-refresher.refresher-native ion-spinner{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0}.refresher-native .refresher-refreshing ion-spinner{--refreshing-rotation-duration:2s;display:none;-webkit-animation:var(--refreshing-rotation-duration) ease-out refresher-rotate forwards;animation:var(--refreshing-rotation-duration) ease-out refresher-rotate forwards}.refresher-native .refresher-refreshing{display:none;-webkit-animation:250ms linear refresher-pop forwards;animation:250ms linear refresher-pop forwards}.refresher-native ion-spinner{width:32px;height:32px;color:var(--ion-color-step-450, var(--ion-background-color-step-450, #747577))}.refresher-native.refresher-refreshing .refresher-pulling ion-spinner,.refresher-native.refresher-completing .refresher-pulling ion-spinner{display:none}.refresher-native.refresher-refreshing .refresher-refreshing ion-spinner,.refresher-native.refresher-completing .refresher-refreshing ion-spinner{display:block}.refresher-native.refresher-pulling .refresher-pulling ion-spinner{display:block}.refresher-native.refresher-pulling .refresher-refreshing ion-spinner{display:none}.refresher-native.refresher-completing ion-refresher-content .refresher-refreshing-icon{-webkit-transform:scale(0) rotate(180deg);transform:scale(0) rotate(180deg);-webkit-transition:300ms;transition:300ms}@-webkit-keyframes refresher-pop{0%{-webkit-transform:scale(1);transform:scale(1);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}50%{-webkit-transform:scale(1.2);transform:scale(1.2);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}100%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes refresher-pop{0%{-webkit-transform:scale(1);transform:scale(1);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}50%{-webkit-transform:scale(1.2);transform:scale(1.2);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}100%{-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes refresher-rotate{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(180deg);transform:rotate(180deg)}}@keyframes refresher-rotate{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(180deg);transform:rotate(180deg)}}";var IonRefresherIosStyle0=refresherIosCss;var refresherMdCss="ion-refresher{top:0;display:none;position:absolute;width:100%;height:60px;pointer-events:none;z-index:-1}ion-refresher{inset-inline-start:0}ion-refresher.refresher-active{display:block}ion-refresher-content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;height:100%}.refresher-pulling,.refresher-refreshing{display:none;width:100%}.refresher-pulling-icon,.refresher-refreshing-icon{-webkit-transform-origin:center;transform-origin:center;-webkit-transition:200ms;transition:200ms;font-size:30px;text-align:center}:host-context([dir=rtl]) .refresher-pulling-icon,:host-context([dir=rtl]) .refresher-refreshing-icon{-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}[dir=rtl] .refresher-pulling-icon,[dir=rtl] .refresher-refreshing-icon{-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}@supports selector(:dir(rtl)){.refresher-pulling-icon:dir(rtl),.refresher-refreshing-icon:dir(rtl){-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}}.refresher-pulling-text,.refresher-refreshing-text{font-size:16px;text-align:center}ion-refresher-content .arrow-container{display:none}.refresher-pulling ion-refresher-content .refresher-pulling{display:block}.refresher-ready ion-refresher-content .refresher-pulling{display:block}.refresher-ready ion-refresher-content .refresher-pulling-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.refresher-refreshing ion-refresher-content .refresher-refreshing{display:block}.refresher-cancelling ion-refresher-content .refresher-pulling{display:block}.refresher-cancelling ion-refresher-content .refresher-pulling-icon{-webkit-transform:scale(0);transform:scale(0)}.refresher-completing ion-refresher-content .refresher-refreshing{display:block}.refresher-completing ion-refresher-content .refresher-refreshing-icon{-webkit-transform:scale(0);transform:scale(0)}.refresher-native .refresher-pulling-text,.refresher-native .refresher-refreshing-text{display:none}.refresher-md .refresher-pulling-icon,.refresher-md .refresher-refreshing-icon{color:var(--ion-text-color, #000)}.refresher-md .refresher-pulling-text,.refresher-md .refresher-refreshing-text{color:var(--ion-text-color, #000)}.refresher-md .refresher-refreshing .spinner-lines-md line,.refresher-md .refresher-refreshing .spinner-lines-small-md line,.refresher-md .refresher-refreshing .spinner-crescent circle{stroke:var(--ion-text-color, #000)}.refresher-md .refresher-refreshing .spinner-bubbles circle,.refresher-md .refresher-refreshing .spinner-circles circle,.refresher-md .refresher-refreshing .spinner-dots circle{fill:var(--ion-text-color, #000)}ion-refresher.refresher-native{display:block;z-index:1}ion-refresher.refresher-native ion-spinner{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;width:24px;height:24px;color:var(--ion-color-primary, #0054e9)}ion-refresher.refresher-native .spinner-arrow-container{display:inherit}ion-refresher.refresher-native .arrow-container{display:block;position:absolute;width:24px;height:24px}ion-refresher.refresher-native .arrow-container ion-icon{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;right:0;left:0;bottom:-4px;position:absolute;color:var(--ion-color-primary, #0054e9);font-size:12px}ion-refresher.refresher-native.refresher-pulling ion-refresher-content .refresher-pulling,ion-refresher.refresher-native.refresher-ready ion-refresher-content .refresher-pulling{display:-ms-flexbox;display:flex}ion-refresher.refresher-native.refresher-refreshing ion-refresher-content .refresher-refreshing,ion-refresher.refresher-native.refresher-completing ion-refresher-content .refresher-refreshing,ion-refresher.refresher-native.refresher-cancelling ion-refresher-content .refresher-refreshing{display:-ms-flexbox;display:flex}ion-refresher.refresher-native .refresher-pulling-icon{-webkit-transform:translateY(calc(-100% - 10px));transform:translateY(calc(-100% - 10px))}ion-refresher.refresher-native .refresher-pulling-icon,ion-refresher.refresher-native .refresher-refreshing-icon{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;border-radius:100%;-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;display:-ms-flexbox;display:flex;border:1px solid var(--ion-color-step-200, var(--ion-background-color-step-200, #ececec));background:var(--ion-color-step-250, var(--ion-background-color-step-250, #ffffff));-webkit-box-shadow:0px 1px 6px rgba(0, 0, 0, 0.1);box-shadow:0px 1px 6px rgba(0, 0, 0, 0.1)}";var IonRefresherMdStyle0=refresherMdCss;var Refresher=function(){function e(e){registerInstance(this,e);this.ionRefresh=createEvent(this,"ionRefresh",7);this.ionPull=createEvent(this,"ionPull",7);this.ionStart=createEvent(this,"ionStart",7);this.appliedStyles=false;this.didStart=false;this.progress=0;this.pointerDown=false;this.needsCompletion=false;this.didRefresh=false;this.contentFullscreen=false;this.lastVelocityY=0;this.animations=[];this.nativeRefresher=false;this.state=1;this.pullMin=60;this.pullMax=this.pullMin+60;this.closeDuration="280ms";this.snapbackDuration="280ms";this.pullFactor=1;this.disabled=false}e.prototype.disabledChanged=function(){if(this.gesture){this.gesture.enable(!this.disabled)}};e.prototype.checkNativeRefresher=function(){return __awaiter(this,void 0,void 0,(function(){var e,r;return __generator(this,(function(n){switch(n.label){case 0:return[4,shouldUseNativeRefresher(this.el,getIonMode(this))];case 1:e=n.sent();if(e&&!this.nativeRefresher){r=this.el.closest("ion-content");this.setupNativeRefresher(r)}else if(!e){this.destroyNativeRefresher()}return[2]}}))}))};e.prototype.destroyNativeRefresher=function(){if(this.scrollEl&&this.scrollListenerCallback){this.scrollEl.removeEventListener("scroll",this.scrollListenerCallback);this.scrollListenerCallback=undefined}this.nativeRefresher=false};e.prototype.resetNativeRefresher=function(e,r){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){switch(n.label){case 0:this.state=r;if(!(getIonMode(this)==="ios"))return[3,2];return[4,translateElement(e,undefined,300)];case 1:n.sent();return[3,4];case 2:return[4,transitionEndAsync(this.el.querySelector(".refresher-refreshing-icon"),200)];case 3:n.sent();n.label=4;case 4:this.didRefresh=false;this.needsCompletion=false;this.pointerDown=false;this.animations.forEach((function(e){return e.destroy()}));this.animations=[];this.progress=0;this.state=1;return[2]}}))}))};e.prototype.setupiOSNativeRefresher=function(e,r){return __awaiter(this,void 0,void 0,(function(){var n,i,t,s;var o=this;return __generator(this,(function(a){switch(a.label){case 0:this.elementToTransform=this.scrollEl;n=e.shadowRoot.querySelectorAll("svg");i=this.scrollEl.clientHeight*.16;t=n.length;writeTask((function(){return n.forEach((function(e){return e.style.setProperty("animation","none")}))}));this.scrollListenerCallback=function(){if(!o.pointerDown&&o.state===1){return}readTask((function(){var e=o.scrollEl.scrollTop;var s=o.el.clientHeight;if(e>0){if(o.state===8){var a=clamp(0,e/(s*.5),1);writeTask((function(){return setSpinnerOpacity(r,1-a)}));return}return}if(o.pointerDown){if(!o.didStart){o.didStart=true;o.ionStart.emit()}if(o.pointerDown){o.ionPull.emit()}}var f=o.didStart?30:0;var h=o.progress=clamp(0,(Math.abs(e)-f)/i,1);var c=o.state===8||h===1;if(c){if(o.pointerDown){handleScrollWhileRefreshing(r,o.lastVelocityY)}if(!o.didRefresh){o.beginRefresh();o.didRefresh=true;hapticImpact({style:ImpactStyle.Light});if(!o.pointerDown){translateElement(o.elementToTransform,"".concat(s,"px"))}}}else{o.state=2;handleScrollWhilePulling(n,t,h)}}))};this.scrollEl.addEventListener("scroll",this.scrollListenerCallback);s=this;return[4,import("./index-39782642.js")];case 1:s.gesture=a.sent().createGesture({el:this.scrollEl,gestureName:"refresher",gesturePriority:31,direction:"y",threshold:5,onStart:function(){o.pointerDown=true;if(!o.didRefresh){translateElement(o.elementToTransform,"0px")}if(i===0){i=o.scrollEl.clientHeight*.16}},onMove:function(e){o.lastVelocityY=e.velocityY},onEnd:function(){o.pointerDown=false;o.didStart=false;if(o.needsCompletion){o.resetNativeRefresher(o.elementToTransform,32);o.needsCompletion=false}else if(o.didRefresh){readTask((function(){return translateElement(o.elementToTransform,"".concat(o.el.clientHeight,"px"))}))}}});this.disabledChanged();return[2]}}))}))};e.prototype.setupMDNativeRefresher=function(e,r,n){return __awaiter(this,void 0,void 0,(function(){var i,t,s,o;var a=this;return __generator(this,(function(f){switch(f.label){case 0:i=getElementRoot(r).querySelector("circle");t=this.el.querySelector("ion-refresher-content .refresher-pulling-icon");s=getElementRoot(n).querySelector("circle");if(i!==null&&s!==null){writeTask((function(){i.style.setProperty("animation","none");n.style.setProperty("animation-delay","-655ms");s.style.setProperty("animation-delay","-655ms")}))}o=this;return[4,import("./index-39782642.js")];case 1:o.gesture=f.sent().createGesture({el:this.scrollEl,gestureName:"refresher",gesturePriority:31,direction:"y",threshold:5,canStart:function(){return a.state!==8&&a.state!==32&&a.scrollEl.scrollTop===0},onStart:function(e){a.progress=0;e.data={animation:undefined,didStart:false,cancelled:false}},onMove:function(r){if(r.velocityY<0&&a.progress===0&&!r.data.didStart||r.data.cancelled){r.data.cancelled=true;return}if(!r.data.didStart){r.data.didStart=true;a.state=2;var n=a.scrollEl;var i=n.matches(ION_CONTENT_CLASS_SELECTOR)?"overflow":"--overflow";writeTask((function(){return n.style.setProperty(i,"hidden")}));var s=getRefresherAnimationType(e);var o=createPullingAnimation(s,t,a.el);r.data.animation=o;o.progressStart(false,0);a.ionStart.emit();a.animations.push(o);return}a.progress=clamp(0,r.deltaY/180*.5,1);r.data.animation.progressStep(a.progress);a.ionPull.emit()},onEnd:function(e){if(!e.data.didStart){return}a.gesture.enable(false);var r=a.scrollEl;var n=r.matches(ION_CONTENT_CLASS_SELECTOR)?"overflow":"--overflow";writeTask((function(){return r.style.removeProperty(n)}));if(a.progress<=.4){e.data.animation.progressEnd(0,a.progress,500).onFinish((function(){a.animations.forEach((function(e){return e.destroy()}));a.animations=[];a.gesture.enable(true);a.state=1}));return}var i=getTimeGivenProgression([0,0],[0,0],[1,1],[1,1],a.progress)[0];var s=createSnapBackAnimation(t);a.animations.push(s);writeTask((function(){return __awaiter(a,void 0,void 0,(function(){return __generator(this,(function(r){switch(r.label){case 0:t.style.setProperty("--ion-pulling-refresher-translate","".concat(i*100,"px"));e.data.animation.progressEnd();return[4,s.play()];case 1:r.sent();this.beginRefresh();e.data.animation.destroy();this.gesture.enable(true);return[2]}}))}))}))}});this.disabledChanged();return[2]}}))}))};e.prototype.setupNativeRefresher=function(e){return __awaiter(this,void 0,void 0,(function(){var r,n;return __generator(this,(function(i){if(this.scrollListenerCallback||!e||this.nativeRefresher||!this.scrollEl){return[2]}this.setCss(0,"",false,"");this.nativeRefresher=true;r=this.el.querySelector("ion-refresher-content .refresher-pulling ion-spinner");n=this.el.querySelector("ion-refresher-content .refresher-refreshing ion-spinner");if(getIonMode(this)==="ios"){this.setupiOSNativeRefresher(r,n)}else{this.setupMDNativeRefresher(e,r,n)}return[2]}))}))};e.prototype.componentDidUpdate=function(){this.checkNativeRefresher()};e.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){var e;var r=this;return __generator(this,(function(n){if(this.el.getAttribute("slot")!=="fixed"){console.error('Make sure you use: <ion-refresher slot="fixed">');return[2]}e=this.el.closest(ION_CONTENT_ELEMENT_SELECTOR);if(!e){printIonContentErrorMsg(this.el);return[2]}componentOnReady(e,(function(){return __awaiter(r,void 0,void 0,(function(){var r,n,i,t;var s=this;return __generator(this,(function(o){switch(o.label){case 0:r=e.querySelector(ION_CONTENT_CLASS_SELECTOR);n=this;return[4,getScrollElement(r!==null&&r!==void 0?r:e)];case 1:n.scrollEl=o.sent();i=this;return[4,e.getBackgroundElement()];case 2:i.backgroundContentEl=o.sent();this.contentFullscreen=e.fullscreen;return[4,shouldUseNativeRefresher(this.el,getIonMode(this))];case 3:if(!o.sent())return[3,4];this.setupNativeRefresher(e);return[3,6];case 4:t=this;return[4,import("./index-39782642.js")];case 5:t.gesture=o.sent().createGesture({el:e,gestureName:"refresher",gesturePriority:31,direction:"y",threshold:20,passive:false,canStart:function(){return s.canStart()},onStart:function(){return s.onStart()},onMove:function(e){return s.onMove(e)},onEnd:function(){return s.onEnd()}});this.disabledChanged();o.label=6;case 6:return[2]}}))}))}));return[2]}))}))};e.prototype.disconnectedCallback=function(){this.destroyNativeRefresher();this.scrollEl=undefined;if(this.gesture){this.gesture.destroy();this.gesture=undefined}};e.prototype.complete=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(r){if(this.nativeRefresher){this.needsCompletion=true;if(!this.pointerDown){raf((function(){return raf((function(){return e.resetNativeRefresher(e.elementToTransform,32)}))}))}}else{this.close(32,"120ms")}return[2]}))}))};e.prototype.cancel=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(r){if(this.nativeRefresher){if(!this.pointerDown){raf((function(){return raf((function(){return e.resetNativeRefresher(e.elementToTransform,16)}))}))}}else{this.close(16,"")}return[2]}))}))};e.prototype.getProgress=function(){return Promise.resolve(this.progress)};e.prototype.canStart=function(){if(!this.scrollEl){return false}if(this.state!==1){return false}if(this.scrollEl.scrollTop>0){return false}return true};e.prototype.onStart=function(){this.progress=0;this.state=1;this.memoizeOverflowStyle();if(this.contentFullscreen&&this.backgroundContentEl){this.backgroundContentEl.style.setProperty("--offset-top","0px")}};e.prototype.onMove=function(e){if(!this.scrollEl){return}var r=e.event;if(r.touches!==undefined&&r.touches.length>1){return}if((this.state&56)!==0){return}var n=Number.isNaN(this.pullFactor)||this.pullFactor<0?1:this.pullFactor;var i=e.deltaY*n;if(i<=0){this.progress=0;this.state=1;if(this.appliedStyles){this.setCss(0,"",false,"");return}return}if(this.state===1){var t=this.scrollEl.scrollTop;if(t>0){this.progress=0;return}this.state=2}if(r.cancelable){r.preventDefault()}this.setCss(i,"0ms",true,"");if(i===0){this.progress=0;return}var s=this.pullMin;this.progress=i/s;if(!this.didStart){this.didStart=true;this.ionStart.emit()}this.ionPull.emit();if(i<s){this.state=2;return}if(i>this.pullMax){this.beginRefresh();return}this.state=4;return};e.prototype.onEnd=function(){if(this.state===4){this.beginRefresh()}else if(this.state===2){this.cancel()}else if(this.state===1){this.restoreOverflowStyle()}};e.prototype.beginRefresh=function(){this.state=8;this.setCss(this.pullMin,this.snapbackDuration,true,"");this.ionRefresh.emit({complete:this.complete.bind(this)})};e.prototype.close=function(e,r){var n=this;setTimeout((function(){var e;n.state=1;n.progress=0;n.didStart=false;n.setCss(0,"0ms",false,"",true);if(n.contentFullscreen&&n.backgroundContentEl){(e=n.backgroundContentEl)===null||e===void 0?void 0:e.style.removeProperty("--offset-top")}}),600);this.state=e;this.setCss(0,this.closeDuration,true,r)};e.prototype.setCss=function(e,r,n,i,t){var s=this;if(t===void 0){t=false}if(this.nativeRefresher){return}this.appliedStyles=e>0;writeTask((function(){if(s.scrollEl&&s.backgroundContentEl){var o=s.scrollEl.style;var a=s.backgroundContentEl.style;o.transform=a.transform=e>0?"translateY(".concat(e,"px) translateZ(0px)"):"";o.transitionDuration=a.transitionDuration=r;o.transitionDelay=a.transitionDelay=i;o.overflow=n?"hidden":""}if(t){s.restoreOverflowStyle()}}))};e.prototype.memoizeOverflowStyle=function(){if(this.scrollEl){var e=this.scrollEl.style,r=e.overflow,n=e.overflowX,i=e.overflowY;this.overflowStyles={overflow:r!==null&&r!==void 0?r:"",overflowX:n!==null&&n!==void 0?n:"",overflowY:i!==null&&i!==void 0?i:""}}};e.prototype.restoreOverflowStyle=function(){if(this.overflowStyles!==undefined&&this.scrollEl!==undefined){var e=this.overflowStyles,r=e.overflow,n=e.overflowX,i=e.overflowY;this.scrollEl.style.overflow=r;this.scrollEl.style.overflowX=n;this.scrollEl.style.overflowY=i;this.overflowStyles=undefined}};e.prototype.render=function(){var e;var r=getIonTheme(this);return h(Host,{key:"ecc8cddc285a230e4a95fae1e275a1f8c350e104",slot:"fixed",class:(e={},e[r]=true,e["refresher-".concat(r)]=true,e["refresher-native"]=this.nativeRefresher,e["refresher-active"]=this.state!==1,e["refresher-pulling"]=this.state===2,e["refresher-ready"]=this.state===4,e["refresher-refreshing"]=this.state===8,e["refresher-cancelling"]=this.state===16,e["refresher-completing"]=this.state===32,e)})};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{disabled:["disabledChanged"]}},enumerable:false,configurable:true});return e}();Refresher.style={ionic:IonRefresherIonicStyle0,ios:IonRefresherIosStyle0,md:IonRefresherMdStyle0};var caretLeftFillSvg="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNTYgMjU2IiBmaWxsPSJjdXJyZW50Q29sb3IiPjxwYXRoIGQ9Ik0xNjgsNDhWMjA4YTgsOCwwLDAsMS0xMy42Niw1LjY2bC04MC04MGE4LDgsMCwwLDEsMC0xMS4zMmw4MC04MEE4LDgsMCwwLDEsMTY4LDQ4WiIvPjwvc3ZnPg==";var ionicRefresherContentCss="";var IonRefresherContentIonicStyle0=ionicRefresherContentCss;var iosRefresherContentCss="";var IonRefresherContentIosStyle0=iosRefresherContentCss;var mdRefresherContentCss="";var IonRefresherContentMdStyle0=mdRefresherContentCss;var RefresherContent=function(){function e(e){registerInstance(this,e);this.customHTMLEnabled=config.get("innerHTMLTemplatesEnabled",ENABLE_HTML_CONTENT_DEFAULT);this.pullingIcon=undefined;this.pullingText=undefined;this.refreshingSpinner=undefined;this.refreshingText=undefined}e.prototype.componentWillLoad=function(){var e=getIonTheme(this);if(this.pullingIcon===undefined){var r=supportsRubberBandScrolling();var n=r?"lines":arrowDown;this.pullingIcon=config.get("refreshingIcon",e==="ios"&&r?config.get("spinner",n):"circular")}if(this.refreshingSpinner===undefined){this.refreshingSpinner=config.get("refreshingSpinner",config.get("spinner",e==="ios"?"lines":"circular"))}};e.prototype.renderPullingText=function(){var e=this,r=e.customHTMLEnabled,n=e.pullingText;if(r){return h("div",{class:"refresher-pulling-text",innerHTML:sanitizeDOMString(n)})}return h("div",{class:"refresher-pulling-text"},n)};e.prototype.renderRefreshingText=function(){var e=this,r=e.customHTMLEnabled,n=e.refreshingText;if(r){return h("div",{class:"refresher-refreshing-text",innerHTML:sanitizeDOMString(n)})}return h("div",{class:"refresher-refreshing-text"},n)};e.prototype.render=function(){var e;var r=this.pullingIcon;var n=r!=null&&SPINNERS[r]!==undefined;var i=getIonTheme(this);var t=i==="ionic"?caretLeftFillSvg:caretBackSharp;return h(Host,{key:"8dcfdbc6969e4370e070e1f3c5fc1785c63f620b",class:(e={},e[i]=true,e)},h("div",{key:"2322cc218e3b78c9b85a3d5596b2e67bf82a7de5",class:"refresher-pulling"},this.pullingIcon&&n&&h("div",{key:"8cbb0dd8862e474b3d0255c1a727cc9a6ed437f2",class:"refresher-pulling-icon"},h("div",{key:"a510b37135e9ba3045d66e68b8b5f374034d48a4",class:"spinner-arrow-container"},h("ion-spinner",{key:"58f33aaa8b659e0241db0ce464a7bcd180820e8e",name:this.pullingIcon,paused:true}),(i==="md"||i==="ionic")&&this.pullingIcon==="circular"&&h("div",{key:"8e93bed47f0961b68cc5c3010508d7d70b6e81da",class:"arrow-container"},h("ion-icon",{key:"d8c0aea713104112de808b15b8a1d90805623a87",icon:t,"aria-hidden":"true"})))),this.pullingIcon&&!n&&h("div",{key:"ebc1847517406c2f4b09d0793e45f786feb9b062",class:"refresher-pulling-icon"},h("ion-icon",{key:"74f2778b23a53ceece7a77276aaa74c75a01a15f",icon:this.pullingIcon,lazy:false,"aria-hidden":"true"})),this.pullingText!==undefined&&this.renderPullingText()),h("div",{key:"722264dcb2ade5489ef1939024506fa16a8f7f6a",class:"refresher-refreshing"},this.refreshingSpinner&&h("div",{key:"83f066cfb0586534ad43c2bba715624be131ba8f",class:"refresher-refreshing-icon"},h("ion-spinner",{key:"0c8093761225dc4b1d99696c14f9f2a62ae987ad",name:this.refreshingSpinner})),this.refreshingText!==undefined&&this.renderRefreshingText()))};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();RefresherContent.style={ionic:IonRefresherContentIonicStyle0,ios:IonRefresherContentIosStyle0,md:IonRefresherContentMdStyle0};export{Refresher as ion_refresher,RefresherContent as ion_refresher_content};
@@ -1,4 +1,4 @@
1
1
  import{__awaiter,__generator}from"tslib";
2
2
  /*!
3
3
  * (C) Ionic http://ionicframework.com - MIT License
4
- */import{r as registerInstance,h,f as Host,i as getElement,d as createEvent}from"./index-4e02bb5d.js";import{j as reorderThreeOutline,k as reorderTwoSharp}from"./index-e2cf2ceb.js";import{b as getIonMode}from"./ionic-global-8f9440ec.js";import{f as findClosestIonContent,g as getScrollElement}from"./index-5cc724f3.js";import{r as raf}from"./helpers-da915de8.js";import{a as hapticSelectionStart,b as hapticSelectionChanged,h as hapticSelectionEnd}from"./haptic-ac164e4c.js";import"./index-9b0d46f4.js";import"./capacitor-59395cbd.js";import"./index-a5d50daf.js";var reorderIosCss=":host([slot]){display:none;line-height:0;z-index:100}.reorder-icon{display:block}::slotted(ion-icon){font-size:dynamic-font(16px)}.reorder-icon{font-size:2.125rem;opacity:0.4}";var IonReorderIosStyle0=reorderIosCss;var reorderMdCss=":host([slot]){display:none;line-height:0;z-index:100}.reorder-icon{display:block}::slotted(ion-icon){font-size:dynamic-font(16px)}.reorder-icon{font-size:1.9375rem;opacity:0.3}";var IonReorderMdStyle0=reorderMdCss;var Reorder=function(){function r(r){registerInstance(this,r)}r.prototype.onClick=function(r){var e=this.el.closest("ion-reorder-group");r.preventDefault();if(!e||!e.disabled){r.stopImmediatePropagation()}};r.prototype.render=function(){var r=getIonMode(this);var e=r==="ios"?reorderThreeOutline:reorderTwoSharp;return h(Host,{key:"663d74e231e3af56b6298ee2539fdac9c8465839",class:r},h("slot",{key:"c7c384ab8c9ca8abdc89cd984a39dfde70e342ca"},h("ion-icon",{key:"c8b6052db03d4b9e33a90e600c20861c73ee73ce",icon:e,lazy:false,class:"reorder-icon",part:"icon","aria-hidden":"true"})))};Object.defineProperty(r.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return r}();Reorder.style={ios:IonReorderIosStyle0,md:IonReorderMdStyle0};var reorderGroupCss=".reorder-list-active>*{display:block;-webkit-transition:-webkit-transform 300ms;transition:-webkit-transform 300ms;transition:transform 300ms;transition:transform 300ms, -webkit-transform 300ms;will-change:transform}.reorder-enabled{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.reorder-enabled ion-reorder{display:block;cursor:-webkit-grab;cursor:grab;pointer-events:all;-ms-touch-action:none;touch-action:none}.reorder-selected,.reorder-selected ion-reorder{cursor:-webkit-grabbing;cursor:grabbing}.reorder-selected{position:relative;-webkit-transition:none !important;transition:none !important;-webkit-box-shadow:0 0 10px rgba(0, 0, 0, 0.4);box-shadow:0 0 10px rgba(0, 0, 0, 0.4);opacity:0.8;z-index:100}.reorder-visible ion-reorder .reorder-icon{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}";var IonReorderGroupStyle0=reorderGroupCss;var ReorderGroup=function(){function r(r){registerInstance(this,r);this.ionItemReorder=createEvent(this,"ionItemReorder",7);this.lastToIndex=-1;this.cachedHeights=[];this.scrollElTop=0;this.scrollElBottom=0;this.scrollElInitial=0;this.containerTop=0;this.containerBottom=0;this.state=0;this.disabled=true}r.prototype.disabledChanged=function(){if(this.gesture){this.gesture.enable(!this.disabled)}};r.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){var r,e,t;var i=this;return __generator(this,(function(n){switch(n.label){case 0:r=findClosestIonContent(this.el);if(!r)return[3,2];e=this;return[4,getScrollElement(r)];case 1:e.scrollEl=n.sent();n.label=2;case 2:t=this;return[4,import("./index-39782642.js")];case 3:t.gesture=n.sent().createGesture({el:this.el,gestureName:"reorder",gesturePriority:110,threshold:0,direction:"y",passive:false,canStart:function(r){return i.canStart(r)},onStart:function(r){return i.onStart(r)},onMove:function(r){return i.onMove(r)},onEnd:function(){return i.onEnd()}});this.disabledChanged();return[2]}}))}))};r.prototype.disconnectedCallback=function(){this.onEnd();if(this.gesture){this.gesture.destroy();this.gesture=undefined}};r.prototype.complete=function(r){return Promise.resolve(this.completeReorder(r))};r.prototype.canStart=function(r){if(this.selectedItemEl||this.state!==0){return false}var e=r.event.target;var t=e.closest("ion-reorder");if(!t){return false}var i=findReorderItem(t,this.el);if(!i){return false}r.data=i;return true};r.prototype.onStart=function(r){r.event.preventDefault();var e=this.selectedItemEl=r.data;var t=this.cachedHeights;t.length=0;var i=this.el;var n=i.children;if(!n||n.length===0){return}var o=0;for(var s=0;s<n.length;s++){var a=n[s];o+=a.offsetHeight;t.push(o);a.$ionIndex=s}var d=i.getBoundingClientRect();this.containerTop=d.top;this.containerBottom=d.bottom;if(this.scrollEl){var c=this.scrollEl.getBoundingClientRect();this.scrollElInitial=this.scrollEl.scrollTop;this.scrollElTop=c.top+AUTO_SCROLL_MARGIN;this.scrollElBottom=c.bottom-AUTO_SCROLL_MARGIN}else{this.scrollElInitial=0;this.scrollElTop=0;this.scrollElBottom=0}this.lastToIndex=indexForItem(e);this.selectedItemHeight=e.offsetHeight;this.state=1;e.classList.add(ITEM_REORDER_SELECTED);hapticSelectionStart()};r.prototype.onMove=function(r){var e=this.selectedItemEl;if(!e){return}var t=this.autoscroll(r.currentY);var i=this.containerTop-t;var n=this.containerBottom-t;var o=Math.max(i,Math.min(r.currentY,n));var s=t+o-r.startY;var a=o-i;var d=this.itemIndexForTop(a);if(d!==this.lastToIndex){var c=indexForItem(e);this.lastToIndex=d;hapticSelectionChanged();this.reorderMove(c,d)}e.style.transform="translateY(".concat(s,"px)")};r.prototype.onEnd=function(){var r=this.selectedItemEl;this.state=2;if(!r){this.state=0;return}var e=this.lastToIndex;var t=indexForItem(r);if(e===t){this.completeReorder()}else{this.ionItemReorder.emit({from:t,to:e,complete:this.completeReorder.bind(this)})}hapticSelectionEnd()};r.prototype.completeReorder=function(r){var e=this;var t=this.selectedItemEl;if(t&&this.state===2){var i=this.el.children;var n=i.length;var o=this.lastToIndex;var s=indexForItem(t);raf((function(){if(o!==s&&(r===undefined||r===true)){var a=s<o?i[o+1]:i[o];e.el.insertBefore(t,a)}for(var d=0;d<n;d++){i[d].style["transform"]=""}}));if(Array.isArray(r)){r=reorderArray(r,s,o)}t.style.transition="";t.classList.remove(ITEM_REORDER_SELECTED);this.selectedItemEl=undefined;this.state=0}return r};r.prototype.itemIndexForTop=function(r){var e=this.cachedHeights;for(var t=0;t<e.length;t++){if(e[t]>r){return t}}return e.length-1};r.prototype.reorderMove=function(r,e){var t=this.selectedItemHeight;var i=this.el.children;for(var n=0;n<i.length;n++){var o=i[n].style;var s="";if(n>r&&n<=e){s="translateY(".concat(-t,"px)")}else if(n<r&&n>=e){s="translateY(".concat(t,"px)")}o["transform"]=s}};r.prototype.autoscroll=function(r){if(!this.scrollEl){return 0}var e=0;if(r<this.scrollElTop){e=-SCROLL_JUMP}else if(r>this.scrollElBottom){e=SCROLL_JUMP}if(e!==0){this.scrollEl.scrollBy(0,e)}return this.scrollEl.scrollTop-this.scrollElInitial};r.prototype.render=function(){var r;var e=getIonMode(this);return h(Host,{key:"491f3e5843cf728ff4589e58bd86b8ce6709b293",class:(r={},r[e]=true,r["reorder-enabled"]=!this.disabled,r["reorder-list-active"]=this.state!==0,r)})};Object.defineProperty(r.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(r,"watchers",{get:function(){return{disabled:["disabledChanged"]}},enumerable:false,configurable:true});return r}();var indexForItem=function(r){return r["$ionIndex"]};var findReorderItem=function(r,e){var t;while(r){t=r.parentElement;if(t===e){return r}r=t}return undefined};var AUTO_SCROLL_MARGIN=60;var SCROLL_JUMP=10;var ITEM_REORDER_SELECTED="reorder-selected";var reorderArray=function(r,e,t){var i=r[e];r.splice(e,1);r.splice(t,0,i);return r.slice()};ReorderGroup.style=IonReorderGroupStyle0;export{Reorder as ion_reorder,ReorderGroup as ion_reorder_group};
4
+ */import{r as registerInstance,h,i as Host,g as getElement,e as createEvent}from"./index-3f990258.js";import{l as listSvg}from"./list-6524700c.js";import{j as reorderThreeOutline,k as reorderTwoSharp}from"./index-4ccb3ebe.js";import{d as getIonTheme,c as config}from"./ionic-global-e4f248ad.js";import{f as findClosestIonContent,g as getScrollElement}from"./index-7b8200de.js";import{r as raf}from"./helpers-da915de8.js";import{a as hapticSelectionStart,b as hapticSelectionChanged,h as hapticSelectionEnd}from"./haptic-ac164e4c.js";import"./capacitor-59395cbd.js";import"./index-a5d50daf.js";var ionicReorderMdCss=":host([slot]){display:none;line-height:0;z-index:100}.reorder-icon{display:block}::slotted(ion-icon){font-size:dynamic-font(16px)}.reorder-icon{font-size:1.9375rem;opacity:0.3}";var IonReorderIonicStyle0=ionicReorderMdCss;var reorderIosCss=":host([slot]){display:none;line-height:0;z-index:100}.reorder-icon{display:block}::slotted(ion-icon){font-size:dynamic-font(16px)}.reorder-icon{font-size:2.125rem;opacity:0.4}";var IonReorderIosStyle0=reorderIosCss;var reorderMdCss=":host([slot]){display:none;line-height:0;z-index:100}.reorder-icon{display:block}::slotted(ion-icon){font-size:dynamic-font(16px)}.reorder-icon{font-size:1.9375rem;opacity:0.3}";var IonReorderMdStyle0=reorderMdCss;var Reorder=function(){function r(r){registerInstance(this,r)}r.prototype.onClick=function(r){var e=this.el.closest("ion-reorder-group");r.preventDefault();if(!e||!e.disabled){r.stopImmediatePropagation()}};Object.defineProperty(r.prototype,"reorderHandleIcon",{get:function(){var r=getIonTheme(this);var e={ios:reorderThreeOutline,ionic:listSvg,md:reorderTwoSharp};var t=e[r]||e.md;return config.get("reorderHandleIcon",t)},enumerable:false,configurable:true});r.prototype.render=function(){var r;var e=this.reorderHandleIcon;var t=getIonTheme(this);return h(Host,{key:"d76311b2f0d0c941933392e24d62fb395380d87b",class:(r={},r[t]=true,r)},h("slot",{key:"443ce8da83c30a0f8028e1ace13bb859557000e5"},h("ion-icon",{key:"7139e4f7de76a945c51346ecbba0a9bf2e82c45a",icon:e,lazy:false,class:"reorder-icon",part:"icon","aria-hidden":"true"})))};Object.defineProperty(r.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return r}();Reorder.style={ionic:IonReorderIonicStyle0,ios:IonReorderIosStyle0,md:IonReorderMdStyle0};var reorderGroupCss=".reorder-list-active>*{display:block;-webkit-transition:-webkit-transform 300ms;transition:-webkit-transform 300ms;transition:transform 300ms;transition:transform 300ms, -webkit-transform 300ms;will-change:transform}.reorder-enabled{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.reorder-enabled ion-reorder{display:block;cursor:-webkit-grab;cursor:grab;pointer-events:all;-ms-touch-action:none;touch-action:none}.reorder-selected,.reorder-selected ion-reorder{cursor:-webkit-grabbing;cursor:grabbing}.reorder-selected{position:relative;-webkit-transition:none !important;transition:none !important;-webkit-box-shadow:0 0 10px rgba(0, 0, 0, 0.4);box-shadow:0 0 10px rgba(0, 0, 0, 0.4);opacity:0.8;z-index:100}.reorder-visible ion-reorder .reorder-icon{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}";var IonReorderGroupStyle0=reorderGroupCss;var ReorderGroup=function(){function r(r){registerInstance(this,r);this.ionItemReorder=createEvent(this,"ionItemReorder",7);this.lastToIndex=-1;this.cachedHeights=[];this.scrollElTop=0;this.scrollElBottom=0;this.scrollElInitial=0;this.containerTop=0;this.containerBottom=0;this.state=0;this.disabled=true}r.prototype.disabledChanged=function(){if(this.gesture){this.gesture.enable(!this.disabled)}};r.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){var r,e,t;var i=this;return __generator(this,(function(n){switch(n.label){case 0:r=findClosestIonContent(this.el);if(!r)return[3,2];e=this;return[4,getScrollElement(r)];case 1:e.scrollEl=n.sent();n.label=2;case 2:t=this;return[4,import("./index-39782642.js")];case 3:t.gesture=n.sent().createGesture({el:this.el,gestureName:"reorder",gesturePriority:110,threshold:0,direction:"y",passive:false,canStart:function(r){return i.canStart(r)},onStart:function(r){return i.onStart(r)},onMove:function(r){return i.onMove(r)},onEnd:function(){return i.onEnd()}});this.disabledChanged();return[2]}}))}))};r.prototype.disconnectedCallback=function(){this.onEnd();if(this.gesture){this.gesture.destroy();this.gesture=undefined}};r.prototype.complete=function(r){return Promise.resolve(this.completeReorder(r))};r.prototype.canStart=function(r){if(this.selectedItemEl||this.state!==0){return false}var e=r.event.target;var t=e.closest("ion-reorder");if(!t){return false}var i=findReorderItem(t,this.el);if(!i){return false}r.data=i;return true};r.prototype.onStart=function(r){r.event.preventDefault();var e=this.selectedItemEl=r.data;var t=this.cachedHeights;t.length=0;var i=this.el;var n=i.children;if(!n||n.length===0){return}var o=0;for(var s=0;s<n.length;s++){var a=n[s];o+=a.offsetHeight;t.push(o);a.$ionIndex=s}var d=i.getBoundingClientRect();this.containerTop=d.top;this.containerBottom=d.bottom;if(this.scrollEl){var c=this.scrollEl.getBoundingClientRect();this.scrollElInitial=this.scrollEl.scrollTop;this.scrollElTop=c.top+AUTO_SCROLL_MARGIN;this.scrollElBottom=c.bottom-AUTO_SCROLL_MARGIN}else{this.scrollElInitial=0;this.scrollElTop=0;this.scrollElBottom=0}this.lastToIndex=indexForItem(e);this.selectedItemHeight=e.offsetHeight;this.state=1;e.classList.add(ITEM_REORDER_SELECTED);hapticSelectionStart()};r.prototype.onMove=function(r){var e=this.selectedItemEl;if(!e){return}var t=this.autoscroll(r.currentY);var i=this.containerTop-t;var n=this.containerBottom-t;var o=Math.max(i,Math.min(r.currentY,n));var s=t+o-r.startY;var a=o-i;var d=this.itemIndexForTop(a);if(d!==this.lastToIndex){var c=indexForItem(e);this.lastToIndex=d;hapticSelectionChanged();this.reorderMove(c,d)}e.style.transform="translateY(".concat(s,"px)")};r.prototype.onEnd=function(){var r=this.selectedItemEl;this.state=2;if(!r){this.state=0;return}var e=this.lastToIndex;var t=indexForItem(r);if(e===t){this.completeReorder()}else{this.ionItemReorder.emit({from:t,to:e,complete:this.completeReorder.bind(this)})}hapticSelectionEnd()};r.prototype.completeReorder=function(r){var e=this;var t=this.selectedItemEl;if(t&&this.state===2){var i=this.el.children;var n=i.length;var o=this.lastToIndex;var s=indexForItem(t);raf((function(){if(o!==s&&(r===undefined||r===true)){var a=s<o?i[o+1]:i[o];e.el.insertBefore(t,a)}for(var d=0;d<n;d++){i[d].style["transform"]=""}}));if(Array.isArray(r)){r=reorderArray(r,s,o)}t.style.transition="";t.classList.remove(ITEM_REORDER_SELECTED);this.selectedItemEl=undefined;this.state=0}return r};r.prototype.itemIndexForTop=function(r){var e=this.cachedHeights;for(var t=0;t<e.length;t++){if(e[t]>r){return t}}return e.length-1};r.prototype.reorderMove=function(r,e){var t=this.selectedItemHeight;var i=this.el.children;for(var n=0;n<i.length;n++){var o=i[n].style;var s="";if(n>r&&n<=e){s="translateY(".concat(-t,"px)")}else if(n<r&&n>=e){s="translateY(".concat(t,"px)")}o["transform"]=s}};r.prototype.autoscroll=function(r){if(!this.scrollEl){return 0}var e=0;if(r<this.scrollElTop){e=-SCROLL_JUMP}else if(r>this.scrollElBottom){e=SCROLL_JUMP}if(e!==0){this.scrollEl.scrollBy(0,e)}return this.scrollEl.scrollTop-this.scrollElInitial};r.prototype.render=function(){var r;var e=getIonTheme(this);return h(Host,{key:"757f3947c85e794a8a8829fec7a2f4edcd1610cf",class:(r={},r[e]=true,r["reorder-enabled"]=!this.disabled,r["reorder-list-active"]=this.state!==0,r)})};Object.defineProperty(r.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(r,"watchers",{get:function(){return{disabled:["disabledChanged"]}},enumerable:false,configurable:true});return r}();var indexForItem=function(r){return r["$ionIndex"]};var findReorderItem=function(r,e){var t;while(r){t=r.parentElement;if(t===e){return r}r=t}return undefined};var AUTO_SCROLL_MARGIN=60;var SCROLL_JUMP=10;var ITEM_REORDER_SELECTED="reorder-selected";var reorderArray=function(r,e,t){var i=r[e];r.splice(e,1);r.splice(t,0,i);return r.slice()};ReorderGroup.style=IonReorderGroupStyle0;export{Reorder as ion_reorder,ReorderGroup as ion_reorder_group};
@@ -1,4 +1,4 @@
1
1
  import{__awaiter,__generator}from"tslib";
2
2
  /*!
3
3
  * (C) Ionic http://ionicframework.com - MIT License
4
- */import{r as registerInstance,e as readTask,w as writeTask,h,i as getElement,f as Host}from"./index-4e02bb5d.js";import{b as getIonMode}from"./ionic-global-8f9440ec.js";var rippleEffectCss=":host{left:0;right:0;top:0;bottom:0;position:absolute;contain:strict;pointer-events:none}:host(.unbounded){contain:layout size style}.ripple-effect{border-radius:50%;position:absolute;background-color:currentColor;color:inherit;contain:strict;opacity:0;-webkit-animation:225ms rippleAnimation forwards, 75ms fadeInAnimation forwards;animation:225ms rippleAnimation forwards, 75ms fadeInAnimation forwards;will-change:transform, opacity;pointer-events:none}.fade-out{-webkit-transform:translate(var(--translate-end)) scale(var(--final-scale, 1));transform:translate(var(--translate-end)) scale(var(--final-scale, 1));-webkit-animation:150ms fadeOutAnimation forwards;animation:150ms fadeOutAnimation forwards}@-webkit-keyframes rippleAnimation{from{-webkit-animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transform:scale(1);transform:scale(1)}to{-webkit-transform:translate(var(--translate-end)) scale(var(--final-scale, 1));transform:translate(var(--translate-end)) scale(var(--final-scale, 1))}}@keyframes rippleAnimation{from{-webkit-animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transform:scale(1);transform:scale(1)}to{-webkit-transform:translate(var(--translate-end)) scale(var(--final-scale, 1));transform:translate(var(--translate-end)) scale(var(--final-scale, 1))}}@-webkit-keyframes fadeInAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0}to{opacity:0.16}}@keyframes fadeInAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0}to{opacity:0.16}}@-webkit-keyframes fadeOutAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0.16}to{opacity:0}}@keyframes fadeOutAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0.16}to{opacity:0}}";var IonRippleEffectStyle0=rippleEffectCss;var RippleEffect=function(){function t(t){registerInstance(this,t);this.type="bounded"}t.prototype.addRipple=function(t,n){return __awaiter(this,void 0,void 0,(function(){var a=this;return __generator(this,(function(i){return[2,new Promise((function(i){readTask((function(){var e=a.el.getBoundingClientRect();var r=e.width;var o=e.height;var s=Math.sqrt(r*r+o*o);var f=Math.max(o,r);var c=a.unbounded?f:s+PADDING;var l=Math.floor(f*INITIAL_ORIGIN_SCALE);var m=c/l;var u=t-e.left;var p=n-e.top;if(a.unbounded){u=r*.5;p=o*.5}var b=u-l*.5;var d=p-l*.5;var v=r*.5-u;var w=o*.5-p;writeTask((function(){var t=document.createElement("div");t.classList.add("ripple-effect");var n=t.style;n.top=d+"px";n.left=b+"px";n.width=n.height=l+"px";n.setProperty("--final-scale","".concat(m));n.setProperty("--translate-end","".concat(v,"px, ").concat(w,"px"));var e=a.el.shadowRoot||a.el;e.appendChild(t);setTimeout((function(){i((function(){removeRipple(t)}))}),225+100)}))}))}))]}))}))};Object.defineProperty(t.prototype,"unbounded",{get:function(){return this.type==="unbounded"},enumerable:false,configurable:true});t.prototype.render=function(){var t;var n=getIonMode(this);return h(Host,{key:"2302f087ab1c6755355736e4ca77309c5fdcf185",role:"presentation",class:(t={},t[n]=true,t.unbounded=this.unbounded,t)})};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();var removeRipple=function(t){t.classList.add("fade-out");setTimeout((function(){t.remove()}),200)};var PADDING=10;var INITIAL_ORIGIN_SCALE=.5;RippleEffect.style=IonRippleEffectStyle0;export{RippleEffect as ion_ripple_effect};
4
+ */import{r as registerInstance,f as readTask,w as writeTask,h,g as getElement,i as Host}from"./index-3f990258.js";import{d as getIonTheme}from"./ionic-global-e4f248ad.js";var rippleEffectIonicCss=":host{right:0;left:0;top:0;bottom:0;position:absolute;contain:strict;pointer-events:none}:host(.unbounded){contain:layout size style}.ripple-effect{border-radius:50%;position:absolute;background-color:currentColor;color:inherit;contain:strict;opacity:0;-webkit-animation:225ms rippleAnimation forwards, 75ms fadeInAnimation forwards;animation:225ms rippleAnimation forwards, 75ms fadeInAnimation forwards;will-change:transform, opacity;pointer-events:none}.fade-out{-webkit-transform:translate(var(--translate-end)) scale(var(--final-scale, 1));transform:translate(var(--translate-end)) scale(var(--final-scale, 1));-webkit-animation:150ms fadeOutAnimation forwards;animation:150ms fadeOutAnimation forwards}@-webkit-keyframes rippleAnimation{from{-webkit-animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transform:scale(1);transform:scale(1)}to{-webkit-transform:translate(var(--translate-end)) scale(var(--final-scale, 1));transform:translate(var(--translate-end)) scale(var(--final-scale, 1))}}@keyframes rippleAnimation{from{-webkit-animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transform:scale(1);transform:scale(1)}to{-webkit-transform:translate(var(--translate-end)) scale(var(--final-scale, 1));transform:translate(var(--translate-end)) scale(var(--final-scale, 1))}}@-webkit-keyframes fadeInAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0}to{opacity:0.16}}@keyframes fadeInAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0}to{opacity:0.16}}@-webkit-keyframes fadeOutAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0.16}to{opacity:0}}@keyframes fadeOutAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0.16}to{opacity:0}}.ripple-effect{-webkit-animation-name:rippleAnimation, fadeInAnimation;animation-name:rippleAnimation, fadeInAnimation}.fade-out{-webkit-animation-name:fadeOutAnimation;animation-name:fadeOutAnimation}@keyframes rippleAnimation{from{-webkit-animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transform:scale(1);transform:scale(1)}to{-webkit-transform:translate(var(--translate-end)) scale(var(--final-scale, 1));transform:translate(var(--translate-end)) scale(var(--final-scale, 1))}}@keyframes fadeInAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0}to{opacity:var(--ripple-opacity, 0.16)}}@keyframes fadeOutAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:var(--ripple-opacity, 0.16)}to{opacity:0}}";var IonRippleEffectIonicStyle0=rippleEffectIonicCss;var iosRippleEffectCommonCss=":host{right:0;left:0;top:0;bottom:0;position:absolute;contain:strict;pointer-events:none}:host(.unbounded){contain:layout size style}.ripple-effect{border-radius:50%;position:absolute;background-color:currentColor;color:inherit;contain:strict;opacity:0;-webkit-animation:225ms rippleAnimation forwards, 75ms fadeInAnimation forwards;animation:225ms rippleAnimation forwards, 75ms fadeInAnimation forwards;will-change:transform, opacity;pointer-events:none}.fade-out{-webkit-transform:translate(var(--translate-end)) scale(var(--final-scale, 1));transform:translate(var(--translate-end)) scale(var(--final-scale, 1));-webkit-animation:150ms fadeOutAnimation forwards;animation:150ms fadeOutAnimation forwards}@-webkit-keyframes rippleAnimation{from{-webkit-animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transform:scale(1);transform:scale(1)}to{-webkit-transform:translate(var(--translate-end)) scale(var(--final-scale, 1));transform:translate(var(--translate-end)) scale(var(--final-scale, 1))}}@keyframes rippleAnimation{from{-webkit-animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transform:scale(1);transform:scale(1)}to{-webkit-transform:translate(var(--translate-end)) scale(var(--final-scale, 1));transform:translate(var(--translate-end)) scale(var(--final-scale, 1))}}@-webkit-keyframes fadeInAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0}to{opacity:0.16}}@keyframes fadeInAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0}to{opacity:0.16}}@-webkit-keyframes fadeOutAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0.16}to{opacity:0}}@keyframes fadeOutAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0.16}to{opacity:0}}";var IonRippleEffectIosStyle0=iosRippleEffectCommonCss;var mdRippleEffectCommonCss=":host{right:0;left:0;top:0;bottom:0;position:absolute;contain:strict;pointer-events:none}:host(.unbounded){contain:layout size style}.ripple-effect{border-radius:50%;position:absolute;background-color:currentColor;color:inherit;contain:strict;opacity:0;-webkit-animation:225ms rippleAnimation forwards, 75ms fadeInAnimation forwards;animation:225ms rippleAnimation forwards, 75ms fadeInAnimation forwards;will-change:transform, opacity;pointer-events:none}.fade-out{-webkit-transform:translate(var(--translate-end)) scale(var(--final-scale, 1));transform:translate(var(--translate-end)) scale(var(--final-scale, 1));-webkit-animation:150ms fadeOutAnimation forwards;animation:150ms fadeOutAnimation forwards}@-webkit-keyframes rippleAnimation{from{-webkit-animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transform:scale(1);transform:scale(1)}to{-webkit-transform:translate(var(--translate-end)) scale(var(--final-scale, 1));transform:translate(var(--translate-end)) scale(var(--final-scale, 1))}}@keyframes rippleAnimation{from{-webkit-animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transform:scale(1);transform:scale(1)}to{-webkit-transform:translate(var(--translate-end)) scale(var(--final-scale, 1));transform:translate(var(--translate-end)) scale(var(--final-scale, 1))}}@-webkit-keyframes fadeInAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0}to{opacity:0.16}}@keyframes fadeInAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0}to{opacity:0.16}}@-webkit-keyframes fadeOutAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0.16}to{opacity:0}}@keyframes fadeOutAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0.16}to{opacity:0}}";var IonRippleEffectMdStyle0=mdRippleEffectCommonCss;var RippleEffect=function(){function i(i){registerInstance(this,i);this.type="bounded"}i.prototype.addRipple=function(i,n){return __awaiter(this,void 0,void 0,(function(){var a=this;return __generator(this,(function(t){return[2,new Promise((function(t){readTask((function(){var e=a.el.getBoundingClientRect();var o=e.width;var r=e.height;var s=Math.sqrt(o*o+r*r);var m=Math.max(r,o);var f=a.unbounded?m:s+PADDING;var c=Math.floor(m*INITIAL_ORIGIN_SCALE);var l=f/c;var p=i-e.left;var u=n-e.top;if(a.unbounded){p=o*.5;u=r*.5}var b=p-c*.5;var d=u-c*.5;var k=o*.5-p;var v=r*.5-u;writeTask((function(){var i=document.createElement("div");i.classList.add("ripple-effect");var n=i.style;n.top=d+"px";n.left=b+"px";n.width=n.height=c+"px";n.setProperty("--final-scale","".concat(l));n.setProperty("--translate-end","".concat(k,"px, ").concat(v,"px"));var e=a.el.shadowRoot||a.el;e.appendChild(i);setTimeout((function(){t((function(){removeRipple(i)}))}),225+100)}))}))}))]}))}))};Object.defineProperty(i.prototype,"unbounded",{get:function(){return this.type==="unbounded"},enumerable:false,configurable:true});i.prototype.render=function(){var i;var n=getIonTheme(this);return h(Host,{key:"8ae91c86a67ffd14458eb733a207f01a64d59307",role:"presentation",class:(i={},i[n]=true,i.unbounded=this.unbounded,i)})};Object.defineProperty(i.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return i}();var removeRipple=function(i){i.classList.add("fade-out");setTimeout((function(){i.remove()}),200)};var PADDING=10;var INITIAL_ORIGIN_SCALE=.5;RippleEffect.style={ionic:IonRippleEffectIonicStyle0,ios:IonRippleEffectIosStyle0,md:IonRippleEffectMdStyle0};export{RippleEffect as ion_ripple_effect};
@@ -1,4 +1,4 @@
1
1
  import{__awaiter,__generator,__spreadArray}from"tslib";
2
2
  /*!
3
3
  * (C) Ionic http://ionicframework.com - MIT License
4
- */import{r as registerInstance,d as createEvent,i as getElement,h,f as Host}from"./index-4e02bb5d.js";import{c as componentOnReady,o as debounce}from"./helpers-da915de8.js";import{o as openURL,c as createColorClasses}from"./theme-01f3f29c.js";import{b as getIonMode}from"./ionic-global-8f9440ec.js";var Route=function(){function r(r){registerInstance(this,r);this.ionRouteDataChanged=createEvent(this,"ionRouteDataChanged",7);this.url="";this.component=undefined;this.componentProps=undefined;this.beforeLeave=undefined;this.beforeEnter=undefined}r.prototype.onUpdate=function(r){this.ionRouteDataChanged.emit(r)};r.prototype.onComponentProps=function(r,e){if(r===e){return}var t=r?Object.keys(r):[];var n=e?Object.keys(e):[];if(t.length!==n.length){this.onUpdate(r);return}for(var i=0,a=t;i<a.length;i++){var o=a[i];if(r[o]!==e[o]){this.onUpdate(r);return}}};r.prototype.connectedCallback=function(){this.ionRouteDataChanged.emit()};Object.defineProperty(r,"watchers",{get:function(){return{url:["onUpdate"],component:["onUpdate"],componentProps:["onComponentProps"]}},enumerable:false,configurable:true});return r}();var RouteRedirect=function(){function r(r){registerInstance(this,r);this.ionRouteRedirectChanged=createEvent(this,"ionRouteRedirectChanged",7);this.from=undefined;this.to=undefined}r.prototype.propDidChange=function(){this.ionRouteRedirectChanged.emit()};r.prototype.connectedCallback=function(){this.ionRouteRedirectChanged.emit()};Object.defineProperty(r,"watchers",{get:function(){return{from:["propDidChange"],to:["propDidChange"]}},enumerable:false,configurable:true});return r}();var ROUTER_INTENT_NONE="root";var ROUTER_INTENT_FORWARD="forward";var ROUTER_INTENT_BACK="back";var generatePath=function(r){var e=r.filter((function(r){return r.length>0})).join("/");return"/"+e};var generateUrl=function(r,e,t){var n=generatePath(r);if(e){n="#"+n}if(t!==undefined){n+="?"+t}return n};var writeSegments=function(r,e,t,n,i,a,o){var u=generateUrl(__spreadArray(__spreadArray([],parsePath(e).segments,true),n,true),t,o);if(i===ROUTER_INTENT_FORWARD){r.pushState(a,"",u)}else{r.replaceState(a,"",u)}};var chainToSegments=function(r){var e=[];for(var t=0,n=r;t<n.length;t++){var i=n[t];for(var a=0,o=i.segments;a<o.length;a++){var u=o[a];if(u[0]===":"){var s=i.params&&i.params[u.slice(1)];if(!s){return null}e.push(s)}else if(u!==""){e.push(u)}}}return e};var removePrefix=function(r,e){if(r.length>e.length){return null}if(r.length<=1&&r[0]===""){return e}for(var t=0;t<r.length;t++){if(r[t]!==e[t]){return null}}if(e.length===r.length){return[""]}return e.slice(r.length)};var readSegments=function(r,e,t){var n=parsePath(e).segments;var i=t?r.hash.slice(1):r.pathname;var a=parsePath(i).segments;return removePrefix(n,a)};var parsePath=function(r){var e=[""];var t;if(r!=null){var n=r.indexOf("?");if(n>-1){t=r.substring(n+1);r=r.substring(0,n)}e=r.split("/").map((function(r){return r.trim()})).filter((function(r){return r.length>0}));if(e.length===0){e=[""]}}return{segments:e,queryString:t}};var printRoutes=function(r){console.group("[ion-core] ROUTES[".concat(r.length,"]"));var e=function(r){var e=[];r.forEach((function(r){return e.push.apply(e,r.segments)}));var t=r.map((function(r){return r.id}));console.debug("%c ".concat(generatePath(e)),"font-weight: bold; padding-left: 20px","=>\t","(".concat(t.join(", "),")"))};for(var t=0,n=r;t<n.length;t++){var i=n[t];e(i)}console.groupEnd()};var printRedirects=function(r){console.group("[ion-core] REDIRECTS[".concat(r.length,"]"));for(var e=0,t=r;e<t.length;e++){var n=t[e];if(n.to){console.debug("FROM: ","$c ".concat(generatePath(n.from)),"font-weight: bold"," TO: ","$c ".concat(generatePath(n.to.segments)),"font-weight: bold")}}console.groupEnd()};var writeNavState=function(r,e,t,n){var i=[];for(var a=4;a<arguments.length;a++){i[a-4]=arguments[a]}return __awaiter(void 0,__spreadArray([r,e,t,n],i,true),void 0,(function(r,e,t,n,i,a){var o,u,s,f;if(i===void 0){i=false}return __generator(this,(function(c){switch(c.label){case 0:c.trys.push([0,6,,7]);o=searchNavNode(r);if(n>=e.length||!o){return[2,i]}return[4,new Promise((function(r){return componentOnReady(o,r)}))];case 1:c.sent();u=e[n];return[4,o.setRouteId(u.id,u.params,t,a)];case 2:s=c.sent();if(s.changed){t=ROUTER_INTENT_NONE;i=true}return[4,writeNavState(s.element,e,t,n+1,i,a)];case 3:i=c.sent();if(!s.markVisible)return[3,5];return[4,s.markVisible()];case 4:c.sent();c.label=5;case 5:return[2,i];case 6:f=c.sent();console.error(f);return[2,false];case 7:return[2]}}))}))};var readNavState=function(r){return __awaiter(void 0,void 0,void 0,(function(){var e,t,n,i;return __generator(this,(function(a){switch(a.label){case 0:e=[];n=r;a.label=1;case 1:if(!(t=searchNavNode(n)))return[3,3];return[4,t.getRouteId()];case 2:i=a.sent();if(i){n=i.element;i.element=undefined;e.push(i)}else{return[3,3]}return[3,1];case 3:return[2,{ids:e,outlet:t}]}}))}))};var waitUntilNavNode=function(){if(searchNavNode(document.body)){return Promise.resolve()}return new Promise((function(r){window.addEventListener("ionNavWillLoad",(function(){return r()}),{once:true})}))};var OUTLET_SELECTOR=":not([no-router]) ion-nav, :not([no-router]) ion-tabs, :not([no-router]) ion-router-outlet";var searchNavNode=function(r){if(!r){return undefined}if(r.matches(OUTLET_SELECTOR)){return r}var e=r.querySelector(OUTLET_SELECTOR);return e!==null&&e!==void 0?e:undefined};var matchesRedirect=function(r,e){var t=e.from,n=e.to;if(n===undefined){return false}if(t.length>r.length){return false}for(var i=0;i<t.length;i++){var a=t[i];if(a==="*"){return true}if(a!==r[i]){return false}}return t.length===r.length};var findRouteRedirect=function(r,e){return e.find((function(e){return matchesRedirect(r,e)}))};var matchesIDs=function(r,e){var t=Math.min(r.length,e.length);var n=0;for(var i=0;i<t;i++){var a=r[i];var o=e[i];if(a.id.toLowerCase()!==o.id){break}if(a.params){var u=Object.keys(a.params);if(u.length===o.segments.length){var s=u.map((function(r){return":".concat(r)}));for(var f=0;f<s.length;f++){if(s[f].toLowerCase()!==o.segments[f]){break}n++}}}n++}return n};var matchesSegments=function(r,e){var t=new RouterSegments(r);var n=false;var i;for(var a=0;a<e.length;a++){var o=e[a].segments;if(o[0]===""){n=true}else{for(var u=0,s=o;u<s.length;u++){var f=s[u];var c=t.next();if(f[0]===":"){if(c===""){return null}i=i||[];var h=i[a]||(i[a]={});h[f.slice(1)]=c}else if(c!==f){return null}}n=false}}var d=n?n===(t.next()===""):true;if(!d){return null}if(i){return e.map((function(r,e){return{id:r.id,segments:r.segments,params:mergeParams(r.params,i[e]),beforeEnter:r.beforeEnter,beforeLeave:r.beforeLeave}}))}return e};var mergeParams=function(r,e){return r||e?Object.assign(Object.assign({},r),e):undefined};var findChainForIDs=function(r,e){var t=null;var n=0;for(var i=0,a=e;i<a.length;i++){var o=a[i];var u=matchesIDs(r,o);if(u>n){t=o;n=u}}if(t){return t.map((function(e,t){var n;return{id:e.id,segments:e.segments,params:mergeParams(e.params,(n=r[t])===null||n===void 0?void 0:n.params)}}))}return null};var findChainForSegments=function(r,e){var t=null;var n=0;for(var i=0,a=e;i<a.length;i++){var o=a[i];var u=matchesSegments(r,o);if(u!==null){var s=computePriority(u);if(s>n){n=s;t=u}}}return t};var computePriority=function(r){var e=1;var t=1;for(var n=0,i=r;n<i.length;n++){var a=i[n];for(var o=0,u=a.segments;o<u.length;o++){var s=u[o];if(s[0]===":"){e+=Math.pow(1,t)}else if(s!==""){e+=Math.pow(2,t)}t++}}return e};var RouterSegments=function(){function r(r){this.segments=r.slice()}r.prototype.next=function(){if(this.segments.length>0){return this.segments.shift()}return""};return r}();var readProp=function(r,e){if(e in r){return r[e]}if(r.hasAttribute(e)){return r.getAttribute(e)}return null};var readRedirects=function(r){return Array.from(r.children).filter((function(r){return r.tagName==="ION-ROUTE-REDIRECT"})).map((function(r){var e=readProp(r,"to");return{from:parsePath(readProp(r,"from")).segments,to:e==null?undefined:parsePath(e)}}))};var readRoutes=function(r){return flattenRouterTree(readRouteNodes(r))};var readRouteNodes=function(r){return Array.from(r.children).filter((function(r){return r.tagName==="ION-ROUTE"&&r.component})).map((function(r){var e=readProp(r,"component");return{segments:parsePath(readProp(r,"url")).segments,id:e.toLowerCase(),params:r.componentProps,beforeLeave:r.beforeLeave,beforeEnter:r.beforeEnter,children:readRouteNodes(r)}}))};var flattenRouterTree=function(r){var e=[];for(var t=0,n=r;t<n.length;t++){var i=n[t];flattenNode([],e,i)}return e};var flattenNode=function(r,e,t){r=__spreadArray(__spreadArray([],r,true),[{id:t.id,segments:t.segments,params:t.params,beforeLeave:t.beforeLeave,beforeEnter:t.beforeEnter}],false);if(t.children.length===0){e.push(r);return}for(var n=0,i=t.children;n<i.length;n++){var a=i[n];flattenNode(r,e,a)}};var Router=function(){function r(r){registerInstance(this,r);this.ionRouteWillChange=createEvent(this,"ionRouteWillChange",7);this.ionRouteDidChange=createEvent(this,"ionRouteDidChange",7);this.previousPath=null;this.busy=false;this.state=0;this.lastState=0;this.root="/";this.useHash=true}r.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var r,e,t;return __generator(this,(function(n){switch(n.label){case 0:return[4,waitUntilNavNode()];case 1:n.sent();return[4,this.runGuards(this.getSegments())];case 2:r=n.sent();if(!(r!==true))return[3,5];if(!(typeof r==="object"))return[3,4];e=r.redirect;t=parsePath(e);this.setSegments(t.segments,ROUTER_INTENT_NONE,t.queryString);return[4,this.writeNavStateRoot(t.segments,ROUTER_INTENT_NONE)];case 3:n.sent();n.label=4;case 4:return[3,7];case 5:return[4,this.onRoutesChanged()];case 6:n.sent();n.label=7;case 7:return[2]}}))}))};r.prototype.componentDidLoad=function(){window.addEventListener("ionRouteRedirectChanged",debounce(this.onRedirectChanged.bind(this),10));window.addEventListener("ionRouteDataChanged",debounce(this.onRoutesChanged.bind(this),100))};r.prototype.onPopState=function(){return __awaiter(this,void 0,void 0,(function(){var r,e,t;return __generator(this,(function(n){switch(n.label){case 0:r=this.historyDirection();e=this.getSegments();return[4,this.runGuards(e)];case 1:t=n.sent();if(t!==true){if(typeof t==="object"){e=parsePath(t.redirect).segments}else{return[2,false]}}return[2,this.writeNavStateRoot(e,r)]}}))}))};r.prototype.onBackButton=function(r){var e=this;r.detail.register(0,(function(r){e.back();r()}))};r.prototype.canTransition=function(){return __awaiter(this,void 0,void 0,(function(){var r;return __generator(this,(function(e){switch(e.label){case 0:return[4,this.runGuards()];case 1:r=e.sent();if(r!==true){if(typeof r==="object"){return[2,r.redirect]}else{return[2,false]}}return[2,true]}}))}))};r.prototype.push=function(r){return __awaiter(this,arguments,void 0,(function(r,e,t){var n,i,a,o,u;if(e===void 0){e="forward"}return __generator(this,(function(s){switch(s.label){case 0:if(r.startsWith(".")){i=(n=this.previousPath)!==null&&n!==void 0?n:"/";a=new URL(r,"https://host/".concat(i));r=a.pathname+a.search}o=parsePath(r);return[4,this.runGuards(o.segments)];case 1:u=s.sent();if(u!==true){if(typeof u==="object"){o=parsePath(u.redirect)}else{return[2,false]}}this.setSegments(o.segments,e,o.queryString);return[2,this.writeNavStateRoot(o.segments,e,t)]}}))}))};r.prototype.back=function(){window.history.back();return Promise.resolve(this.waitPromise)};r.prototype.printDebug=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){printRoutes(readRoutes(this.el));printRedirects(readRedirects(this.el));return[2]}))}))};r.prototype.navChanged=function(r){return __awaiter(this,void 0,void 0,(function(){var e,t,n,i,a,o;return __generator(this,(function(u){switch(u.label){case 0:if(this.busy){console.warn("[ion-router] router is busy, navChanged was cancelled");return[2,false]}return[4,readNavState(window.document.body)];case 1:e=u.sent(),t=e.ids,n=e.outlet;i=readRoutes(this.el);a=findChainForIDs(t,i);if(!a){console.warn("[ion-router] no matching URL for ",t.map((function(r){return r.id})));return[2,false]}o=chainToSegments(a);if(!o){console.warn("[ion-router] router could not match path because some required param is missing");return[2,false]}this.setSegments(o,r);return[4,this.safeWriteNavState(n,a,ROUTER_INTENT_NONE,o,null,t.length)];case 2:u.sent();return[2,true]}}))}))};r.prototype.onRedirectChanged=function(){var r=this.getSegments();if(r&&findRouteRedirect(r,readRedirects(this.el))){this.writeNavStateRoot(r,ROUTER_INTENT_NONE)}};r.prototype.onRoutesChanged=function(){return this.writeNavStateRoot(this.getSegments(),ROUTER_INTENT_NONE)};r.prototype.historyDirection=function(){var r;var e=window;if(e.history.state===null){this.state++;e.history.replaceState(this.state,e.document.title,(r=e.document.location)===null||r===void 0?void 0:r.href)}var t=e.history.state;var n=this.lastState;this.lastState=t;if(t>n||t>=n&&n>0){return ROUTER_INTENT_FORWARD}if(t<n){return ROUTER_INTENT_BACK}return ROUTER_INTENT_NONE};r.prototype.writeNavStateRoot=function(r,e,t){return __awaiter(this,void 0,void 0,(function(){var n,i,a,o,u,s,f,c;return __generator(this,(function(h){if(!r){console.error("[ion-router] URL is not part of the routing set");return[2,false]}n=readRedirects(this.el);i=findRouteRedirect(r,n);a=null;if(i){o=i.to,u=o.segments,s=o.queryString;this.setSegments(u,e,s);a=i.from;r=u}f=readRoutes(this.el);c=findChainForSegments(r,f);if(!c){console.error("[ion-router] the path does not match any route");return[2,false]}return[2,this.safeWriteNavState(document.body,c,e,r,a,0,t)]}))}))};r.prototype.safeWriteNavState=function(r,e,t,n,i){return __awaiter(this,arguments,void 0,(function(r,e,t,n,i,a,o){var u,s,f;if(a===void 0){a=0}return __generator(this,(function(c){switch(c.label){case 0:return[4,this.lock()];case 1:u=c.sent();s=false;c.label=2;case 2:c.trys.push([2,4,,5]);return[4,this.writeNavState(r,e,t,n,i,a,o)];case 3:s=c.sent();return[3,5];case 4:f=c.sent();console.error(f);return[3,5];case 5:u();return[2,s]}}))}))};r.prototype.lock=function(){return __awaiter(this,void 0,void 0,(function(){var r,e;return __generator(this,(function(t){switch(t.label){case 0:r=this.waitPromise;this.waitPromise=new Promise((function(r){return e=r}));if(!(r!==undefined))return[3,2];return[4,r];case 1:t.sent();t.label=2;case 2:return[2,e]}}))}))};r.prototype.runGuards=function(){return __awaiter(this,arguments,void 0,(function(r,e){var t,n,i,a,o,u,s;if(r===void 0){r=this.getSegments()}return __generator(this,(function(f){switch(f.label){case 0:if(e===undefined){e=parsePath(this.previousPath).segments}if(!r||!e){return[2,true]}t=readRoutes(this.el);n=findChainForSegments(e,t);i=n&&n[n.length-1].beforeLeave;if(!i)return[3,2];return[4,i()];case 1:o=f.sent();return[3,3];case 2:o=true;f.label=3;case 3:a=o;if(a===false||typeof a==="object"){return[2,a]}u=findChainForSegments(r,t);s=u&&u[u.length-1].beforeEnter;return[2,s?s():true]}}))}))};r.prototype.writeNavState=function(r,e,t,n,i){return __awaiter(this,arguments,void 0,(function(r,e,t,n,i,a,o){var u,s;if(a===void 0){a=0}return __generator(this,(function(f){switch(f.label){case 0:if(this.busy){console.warn("[ion-router] router is busy, transition was cancelled");return[2,false]}this.busy=true;u=this.routeChangeEvent(n,i);if(u){this.ionRouteWillChange.emit(u)}return[4,writeNavState(r,e,t,a,false,o)];case 1:s=f.sent();this.busy=false;if(u){this.ionRouteDidChange.emit(u)}return[2,s]}}))}))};r.prototype.setSegments=function(r,e,t){this.state++;writeSegments(window.history,this.root,this.useHash,r,e,this.state,t)};r.prototype.getSegments=function(){return readSegments(window.location,this.root,this.useHash)};r.prototype.routeChangeEvent=function(r,e){var t=this.previousPath;var n=generatePath(r);this.previousPath=n;if(n===t){return null}var i=e?generatePath(e):null;return{from:t,redirectedFrom:i,to:n}};Object.defineProperty(r.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return r}();var routerLinkCss=":host{--background:transparent;--color:var(--ion-color-primary, #0054e9);background:var(--background);color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}a{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}";var IonRouterLinkStyle0=routerLinkCss;var RouterLink=function(){function r(r){var e=this;registerInstance(this,r);this.onClick=function(r){openURL(e.href,r,e.routerDirection,e.routerAnimation)};this.color=undefined;this.href=undefined;this.rel=undefined;this.routerDirection="forward";this.routerAnimation=undefined;this.target=undefined}r.prototype.render=function(){var r;var e=getIonMode(this);var t={href:this.href,rel:this.rel,target:this.target};return h(Host,{key:"f876442cab5b14b7e83c6d6ad2c2d878a9c57439",onClick:this.onClick,class:createColorClasses(this.color,(r={},r[e]=true,r["ion-activatable"]=true,r))},h("a",Object.assign({key:"c44b78ec1fd10a40c23bfe548860ac2b346646a8"},t),h("slot",{key:"d32180a567613f79f89885135bd0d776ffc1eb8e"})))};return r}();RouterLink.style=IonRouterLinkStyle0;export{Route as ion_route,RouteRedirect as ion_route_redirect,Router as ion_router,RouterLink as ion_router_link};
4
+ */import{r as registerInstance,e as createEvent,g as getElement,h,i as Host}from"./index-3f990258.js";import{c as componentOnReady,o as debounce}from"./helpers-da915de8.js";import{o as openURL,c as createColorClasses}from"./theme-01f3f29c.js";import{d as getIonTheme}from"./ionic-global-e4f248ad.js";var Route=function(){function r(r){registerInstance(this,r);this.ionRouteDataChanged=createEvent(this,"ionRouteDataChanged",7);this.url="";this.component=undefined;this.componentProps=undefined;this.beforeLeave=undefined;this.beforeEnter=undefined}r.prototype.onUpdate=function(r){this.ionRouteDataChanged.emit(r)};r.prototype.onComponentProps=function(r,e){if(r===e){return}var t=r?Object.keys(r):[];var n=e?Object.keys(e):[];if(t.length!==n.length){this.onUpdate(r);return}for(var i=0,a=t;i<a.length;i++){var o=a[i];if(r[o]!==e[o]){this.onUpdate(r);return}}};r.prototype.connectedCallback=function(){this.ionRouteDataChanged.emit()};Object.defineProperty(r,"watchers",{get:function(){return{url:["onUpdate"],component:["onUpdate"],componentProps:["onComponentProps"]}},enumerable:false,configurable:true});return r}();var RouteRedirect=function(){function r(r){registerInstance(this,r);this.ionRouteRedirectChanged=createEvent(this,"ionRouteRedirectChanged",7);this.from=undefined;this.to=undefined}r.prototype.propDidChange=function(){this.ionRouteRedirectChanged.emit()};r.prototype.connectedCallback=function(){this.ionRouteRedirectChanged.emit()};Object.defineProperty(r,"watchers",{get:function(){return{from:["propDidChange"],to:["propDidChange"]}},enumerable:false,configurable:true});return r}();var ROUTER_INTENT_NONE="root";var ROUTER_INTENT_FORWARD="forward";var ROUTER_INTENT_BACK="back";var generatePath=function(r){var e=r.filter((function(r){return r.length>0})).join("/");return"/"+e};var generateUrl=function(r,e,t){var n=generatePath(r);if(e){n="#"+n}if(t!==undefined){n+="?"+t}return n};var writeSegments=function(r,e,t,n,i,a,o){var u=generateUrl(__spreadArray(__spreadArray([],parsePath(e).segments,true),n,true),t,o);if(i===ROUTER_INTENT_FORWARD){r.pushState(a,"",u)}else{r.replaceState(a,"",u)}};var chainToSegments=function(r){var e=[];for(var t=0,n=r;t<n.length;t++){var i=n[t];for(var a=0,o=i.segments;a<o.length;a++){var u=o[a];if(u[0]===":"){var s=i.params&&i.params[u.slice(1)];if(!s){return null}e.push(s)}else if(u!==""){e.push(u)}}}return e};var removePrefix=function(r,e){if(r.length>e.length){return null}if(r.length<=1&&r[0]===""){return e}for(var t=0;t<r.length;t++){if(r[t]!==e[t]){return null}}if(e.length===r.length){return[""]}return e.slice(r.length)};var readSegments=function(r,e,t){var n=parsePath(e).segments;var i=t?r.hash.slice(1):r.pathname;var a=parsePath(i).segments;return removePrefix(n,a)};var parsePath=function(r){var e=[""];var t;if(r!=null){var n=r.indexOf("?");if(n>-1){t=r.substring(n+1);r=r.substring(0,n)}e=r.split("/").map((function(r){return r.trim()})).filter((function(r){return r.length>0}));if(e.length===0){e=[""]}}return{segments:e,queryString:t}};var printRoutes=function(r){console.group("[ion-core] ROUTES[".concat(r.length,"]"));var e=function(r){var e=[];r.forEach((function(r){return e.push.apply(e,r.segments)}));var t=r.map((function(r){return r.id}));console.debug("%c ".concat(generatePath(e)),"font-weight: bold; padding-left: 20px","=>\t","(".concat(t.join(", "),")"))};for(var t=0,n=r;t<n.length;t++){var i=n[t];e(i)}console.groupEnd()};var printRedirects=function(r){console.group("[ion-core] REDIRECTS[".concat(r.length,"]"));for(var e=0,t=r;e<t.length;e++){var n=t[e];if(n.to){console.debug("FROM: ","$c ".concat(generatePath(n.from)),"font-weight: bold"," TO: ","$c ".concat(generatePath(n.to.segments)),"font-weight: bold")}}console.groupEnd()};var writeNavState=function(r,e,t,n){var i=[];for(var a=4;a<arguments.length;a++){i[a-4]=arguments[a]}return __awaiter(void 0,__spreadArray([r,e,t,n],i,true),void 0,(function(r,e,t,n,i,a){var o,u,s,f;if(i===void 0){i=false}return __generator(this,(function(c){switch(c.label){case 0:c.trys.push([0,6,,7]);o=searchNavNode(r);if(n>=e.length||!o){return[2,i]}return[4,new Promise((function(r){return componentOnReady(o,r)}))];case 1:c.sent();u=e[n];return[4,o.setRouteId(u.id,u.params,t,a)];case 2:s=c.sent();if(s.changed){t=ROUTER_INTENT_NONE;i=true}return[4,writeNavState(s.element,e,t,n+1,i,a)];case 3:i=c.sent();if(!s.markVisible)return[3,5];return[4,s.markVisible()];case 4:c.sent();c.label=5;case 5:return[2,i];case 6:f=c.sent();console.error(f);return[2,false];case 7:return[2]}}))}))};var readNavState=function(r){return __awaiter(void 0,void 0,void 0,(function(){var e,t,n,i;return __generator(this,(function(a){switch(a.label){case 0:e=[];n=r;a.label=1;case 1:if(!(t=searchNavNode(n)))return[3,3];return[4,t.getRouteId()];case 2:i=a.sent();if(i){n=i.element;i.element=undefined;e.push(i)}else{return[3,3]}return[3,1];case 3:return[2,{ids:e,outlet:t}]}}))}))};var waitUntilNavNode=function(){if(searchNavNode(document.body)){return Promise.resolve()}return new Promise((function(r){window.addEventListener("ionNavWillLoad",(function(){return r()}),{once:true})}))};var OUTLET_SELECTOR=":not([no-router]) ion-nav, :not([no-router]) ion-tabs, :not([no-router]) ion-router-outlet";var searchNavNode=function(r){if(!r){return undefined}if(r.matches(OUTLET_SELECTOR)){return r}var e=r.querySelector(OUTLET_SELECTOR);return e!==null&&e!==void 0?e:undefined};var matchesRedirect=function(r,e){var t=e.from,n=e.to;if(n===undefined){return false}if(t.length>r.length){return false}for(var i=0;i<t.length;i++){var a=t[i];if(a==="*"){return true}if(a!==r[i]){return false}}return t.length===r.length};var findRouteRedirect=function(r,e){return e.find((function(e){return matchesRedirect(r,e)}))};var matchesIDs=function(r,e){var t=Math.min(r.length,e.length);var n=0;for(var i=0;i<t;i++){var a=r[i];var o=e[i];if(a.id.toLowerCase()!==o.id){break}if(a.params){var u=Object.keys(a.params);if(u.length===o.segments.length){var s=u.map((function(r){return":".concat(r)}));for(var f=0;f<s.length;f++){if(s[f].toLowerCase()!==o.segments[f]){break}n++}}}n++}return n};var matchesSegments=function(r,e){var t=new RouterSegments(r);var n=false;var i;for(var a=0;a<e.length;a++){var o=e[a].segments;if(o[0]===""){n=true}else{for(var u=0,s=o;u<s.length;u++){var f=s[u];var c=t.next();if(f[0]===":"){if(c===""){return null}i=i||[];var h=i[a]||(i[a]={});h[f.slice(1)]=c}else if(c!==f){return null}}n=false}}var d=n?n===(t.next()===""):true;if(!d){return null}if(i){return e.map((function(r,e){return{id:r.id,segments:r.segments,params:mergeParams(r.params,i[e]),beforeEnter:r.beforeEnter,beforeLeave:r.beforeLeave}}))}return e};var mergeParams=function(r,e){return r||e?Object.assign(Object.assign({},r),e):undefined};var findChainForIDs=function(r,e){var t=null;var n=0;for(var i=0,a=e;i<a.length;i++){var o=a[i];var u=matchesIDs(r,o);if(u>n){t=o;n=u}}if(t){return t.map((function(e,t){var n;return{id:e.id,segments:e.segments,params:mergeParams(e.params,(n=r[t])===null||n===void 0?void 0:n.params)}}))}return null};var findChainForSegments=function(r,e){var t=null;var n=0;for(var i=0,a=e;i<a.length;i++){var o=a[i];var u=matchesSegments(r,o);if(u!==null){var s=computePriority(u);if(s>n){n=s;t=u}}}return t};var computePriority=function(r){var e=1;var t=1;for(var n=0,i=r;n<i.length;n++){var a=i[n];for(var o=0,u=a.segments;o<u.length;o++){var s=u[o];if(s[0]===":"){e+=Math.pow(1,t)}else if(s!==""){e+=Math.pow(2,t)}t++}}return e};var RouterSegments=function(){function r(r){this.segments=r.slice()}r.prototype.next=function(){if(this.segments.length>0){return this.segments.shift()}return""};return r}();var readProp=function(r,e){if(e in r){return r[e]}if(r.hasAttribute(e)){return r.getAttribute(e)}return null};var readRedirects=function(r){return Array.from(r.children).filter((function(r){return r.tagName==="ION-ROUTE-REDIRECT"})).map((function(r){var e=readProp(r,"to");return{from:parsePath(readProp(r,"from")).segments,to:e==null?undefined:parsePath(e)}}))};var readRoutes=function(r){return flattenRouterTree(readRouteNodes(r))};var readRouteNodes=function(r){return Array.from(r.children).filter((function(r){return r.tagName==="ION-ROUTE"&&r.component})).map((function(r){var e=readProp(r,"component");return{segments:parsePath(readProp(r,"url")).segments,id:e.toLowerCase(),params:r.componentProps,beforeLeave:r.beforeLeave,beforeEnter:r.beforeEnter,children:readRouteNodes(r)}}))};var flattenRouterTree=function(r){var e=[];for(var t=0,n=r;t<n.length;t++){var i=n[t];flattenNode([],e,i)}return e};var flattenNode=function(r,e,t){r=__spreadArray(__spreadArray([],r,true),[{id:t.id,segments:t.segments,params:t.params,beforeLeave:t.beforeLeave,beforeEnter:t.beforeEnter}],false);if(t.children.length===0){e.push(r);return}for(var n=0,i=t.children;n<i.length;n++){var a=i[n];flattenNode(r,e,a)}};var Router=function(){function r(r){registerInstance(this,r);this.ionRouteWillChange=createEvent(this,"ionRouteWillChange",7);this.ionRouteDidChange=createEvent(this,"ionRouteDidChange",7);this.previousPath=null;this.busy=false;this.state=0;this.lastState=0;this.root="/";this.useHash=true}r.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var r,e,t;return __generator(this,(function(n){switch(n.label){case 0:return[4,waitUntilNavNode()];case 1:n.sent();return[4,this.runGuards(this.getSegments())];case 2:r=n.sent();if(!(r!==true))return[3,5];if(!(typeof r==="object"))return[3,4];e=r.redirect;t=parsePath(e);this.setSegments(t.segments,ROUTER_INTENT_NONE,t.queryString);return[4,this.writeNavStateRoot(t.segments,ROUTER_INTENT_NONE)];case 3:n.sent();n.label=4;case 4:return[3,7];case 5:return[4,this.onRoutesChanged()];case 6:n.sent();n.label=7;case 7:return[2]}}))}))};r.prototype.componentDidLoad=function(){window.addEventListener("ionRouteRedirectChanged",debounce(this.onRedirectChanged.bind(this),10));window.addEventListener("ionRouteDataChanged",debounce(this.onRoutesChanged.bind(this),100))};r.prototype.onPopState=function(){return __awaiter(this,void 0,void 0,(function(){var r,e,t;return __generator(this,(function(n){switch(n.label){case 0:r=this.historyDirection();e=this.getSegments();return[4,this.runGuards(e)];case 1:t=n.sent();if(t!==true){if(typeof t==="object"){e=parsePath(t.redirect).segments}else{return[2,false]}}return[2,this.writeNavStateRoot(e,r)]}}))}))};r.prototype.onBackButton=function(r){var e=this;r.detail.register(0,(function(r){e.back();r()}))};r.prototype.canTransition=function(){return __awaiter(this,void 0,void 0,(function(){var r;return __generator(this,(function(e){switch(e.label){case 0:return[4,this.runGuards()];case 1:r=e.sent();if(r!==true){if(typeof r==="object"){return[2,r.redirect]}else{return[2,false]}}return[2,true]}}))}))};r.prototype.push=function(r){return __awaiter(this,arguments,void 0,(function(r,e,t){var n,i,a,o,u;if(e===void 0){e="forward"}return __generator(this,(function(s){switch(s.label){case 0:if(r.startsWith(".")){i=(n=this.previousPath)!==null&&n!==void 0?n:"/";a=new URL(r,"https://host/".concat(i));r=a.pathname+a.search}o=parsePath(r);return[4,this.runGuards(o.segments)];case 1:u=s.sent();if(u!==true){if(typeof u==="object"){o=parsePath(u.redirect)}else{return[2,false]}}this.setSegments(o.segments,e,o.queryString);return[2,this.writeNavStateRoot(o.segments,e,t)]}}))}))};r.prototype.back=function(){window.history.back();return Promise.resolve(this.waitPromise)};r.prototype.printDebug=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){printRoutes(readRoutes(this.el));printRedirects(readRedirects(this.el));return[2]}))}))};r.prototype.navChanged=function(r){return __awaiter(this,void 0,void 0,(function(){var e,t,n,i,a,o;return __generator(this,(function(u){switch(u.label){case 0:if(this.busy){console.warn("[ion-router] router is busy, navChanged was cancelled");return[2,false]}return[4,readNavState(window.document.body)];case 1:e=u.sent(),t=e.ids,n=e.outlet;i=readRoutes(this.el);a=findChainForIDs(t,i);if(!a){console.warn("[ion-router] no matching URL for ",t.map((function(r){return r.id})));return[2,false]}o=chainToSegments(a);if(!o){console.warn("[ion-router] router could not match path because some required param is missing");return[2,false]}this.setSegments(o,r);return[4,this.safeWriteNavState(n,a,ROUTER_INTENT_NONE,o,null,t.length)];case 2:u.sent();return[2,true]}}))}))};r.prototype.onRedirectChanged=function(){var r=this.getSegments();if(r&&findRouteRedirect(r,readRedirects(this.el))){this.writeNavStateRoot(r,ROUTER_INTENT_NONE)}};r.prototype.onRoutesChanged=function(){return this.writeNavStateRoot(this.getSegments(),ROUTER_INTENT_NONE)};r.prototype.historyDirection=function(){var r;var e=window;if(e.history.state===null){this.state++;e.history.replaceState(this.state,e.document.title,(r=e.document.location)===null||r===void 0?void 0:r.href)}var t=e.history.state;var n=this.lastState;this.lastState=t;if(t>n||t>=n&&n>0){return ROUTER_INTENT_FORWARD}if(t<n){return ROUTER_INTENT_BACK}return ROUTER_INTENT_NONE};r.prototype.writeNavStateRoot=function(r,e,t){return __awaiter(this,void 0,void 0,(function(){var n,i,a,o,u,s,f,c;return __generator(this,(function(h){if(!r){console.error("[ion-router] URL is not part of the routing set");return[2,false]}n=readRedirects(this.el);i=findRouteRedirect(r,n);a=null;if(i){o=i.to,u=o.segments,s=o.queryString;this.setSegments(u,e,s);a=i.from;r=u}f=readRoutes(this.el);c=findChainForSegments(r,f);if(!c){console.error("[ion-router] the path does not match any route");return[2,false]}return[2,this.safeWriteNavState(document.body,c,e,r,a,0,t)]}))}))};r.prototype.safeWriteNavState=function(r,e,t,n,i){return __awaiter(this,arguments,void 0,(function(r,e,t,n,i,a,o){var u,s,f;if(a===void 0){a=0}return __generator(this,(function(c){switch(c.label){case 0:return[4,this.lock()];case 1:u=c.sent();s=false;c.label=2;case 2:c.trys.push([2,4,,5]);return[4,this.writeNavState(r,e,t,n,i,a,o)];case 3:s=c.sent();return[3,5];case 4:f=c.sent();console.error(f);return[3,5];case 5:u();return[2,s]}}))}))};r.prototype.lock=function(){return __awaiter(this,void 0,void 0,(function(){var r,e;return __generator(this,(function(t){switch(t.label){case 0:r=this.waitPromise;this.waitPromise=new Promise((function(r){return e=r}));if(!(r!==undefined))return[3,2];return[4,r];case 1:t.sent();t.label=2;case 2:return[2,e]}}))}))};r.prototype.runGuards=function(){return __awaiter(this,arguments,void 0,(function(r,e){var t,n,i,a,o,u,s;if(r===void 0){r=this.getSegments()}return __generator(this,(function(f){switch(f.label){case 0:if(e===undefined){e=parsePath(this.previousPath).segments}if(!r||!e){return[2,true]}t=readRoutes(this.el);n=findChainForSegments(e,t);i=n&&n[n.length-1].beforeLeave;if(!i)return[3,2];return[4,i()];case 1:o=f.sent();return[3,3];case 2:o=true;f.label=3;case 3:a=o;if(a===false||typeof a==="object"){return[2,a]}u=findChainForSegments(r,t);s=u&&u[u.length-1].beforeEnter;return[2,s?s():true]}}))}))};r.prototype.writeNavState=function(r,e,t,n,i){return __awaiter(this,arguments,void 0,(function(r,e,t,n,i,a,o){var u,s;if(a===void 0){a=0}return __generator(this,(function(f){switch(f.label){case 0:if(this.busy){console.warn("[ion-router] router is busy, transition was cancelled");return[2,false]}this.busy=true;u=this.routeChangeEvent(n,i);if(u){this.ionRouteWillChange.emit(u)}return[4,writeNavState(r,e,t,a,false,o)];case 1:s=f.sent();this.busy=false;if(u){this.ionRouteDidChange.emit(u)}return[2,s]}}))}))};r.prototype.setSegments=function(r,e,t){this.state++;writeSegments(window.history,this.root,this.useHash,r,e,this.state,t)};r.prototype.getSegments=function(){return readSegments(window.location,this.root,this.useHash)};r.prototype.routeChangeEvent=function(r,e){var t=this.previousPath;var n=generatePath(r);this.previousPath=n;if(n===t){return null}var i=e?generatePath(e):null;return{from:t,redirectedFrom:i,to:n}};Object.defineProperty(r.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return r}();var routerLinkCss=":host{--background:transparent;--color:var(--ion-color-primary, #0054e9);background:var(--background);color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}a{color:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-align:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;white-space:inherit}";var IonRouterLinkStyle0=routerLinkCss;var RouterLink=function(){function r(r){var e=this;registerInstance(this,r);this.onClick=function(r){openURL(e.href,r,e.routerDirection,e.routerAnimation)};this.color=undefined;this.href=undefined;this.rel=undefined;this.routerDirection="forward";this.routerAnimation=undefined;this.target=undefined}r.prototype.render=function(){var r;var e=getIonTheme(this);var t={href:this.href,rel:this.rel,target:this.target};return h(Host,{key:"faf50a5dd2b054f763fcf2e5bf6ad221d667f84a",onClick:this.onClick,class:createColorClasses(this.color,(r={},r[e]=true,r["ion-activatable"]=true,r))},h("a",Object.assign({key:"584d22b9804b6e46792de22a5f3af82f4dceac7b"},t),h("slot",{key:"bc5c5f59c198fc1ebf8d92dc5b799528e6a8e993"})))};return r}();RouterLink.style=IonRouterLinkStyle0;export{Route as ion_route,RouteRedirect as ion_route_redirect,Router as ion_router,RouterLink as ion_router_link};
@@ -1,4 +1,4 @@
1
1
  import{__awaiter,__generator}from"tslib";
2
2
  /*!
3
3
  * (C) Ionic http://ionicframework.com - MIT License
4
- */import{r as registerInstance,d as createEvent,j as forceUpdate,h,f as Host,i as getElement}from"./index-4e02bb5d.js";import{e as debounceEvent,h as inheritAttributes,c as componentOnReady,r as raf}from"./helpers-da915de8.js";import{i as isRTL}from"./dir-babeabeb.js";import{c as createColorClasses}from"./theme-01f3f29c.js";import{a as arrowBackSharp,b as closeCircle,d as closeSharp,s as searchOutline,e as searchSharp}from"./index-e2cf2ceb.js";import{c as config,b as getIonMode}from"./ionic-global-8f9440ec.js";var searchbarIosCss=".sc-ion-searchbar-ios-h{--placeholder-color:initial;--placeholder-font-style:initial;--placeholder-font-weight:initial;--placeholder-opacity:var(--ion-placeholder-opacity, 0.6);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;width:100%;color:var(--color);font-family:var(--ion-font-family, inherit);-webkit-box-sizing:border-box;box-sizing:border-box}.ion-color.sc-ion-searchbar-ios-h{color:var(--ion-color-contrast)}.ion-color.sc-ion-searchbar-ios-h .searchbar-input.sc-ion-searchbar-ios{background:var(--ion-color-base)}.ion-color.sc-ion-searchbar-ios-h .searchbar-clear-button.sc-ion-searchbar-ios,.ion-color.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios,.ion-color.sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios{color:inherit}.searchbar-search-icon.sc-ion-searchbar-ios{color:var(--icon-color);pointer-events:none}.searchbar-input-container.sc-ion-searchbar-ios{display:block;position:relative;-ms-flex-negative:1;flex-shrink:1;width:100%}.searchbar-input.sc-ion-searchbar-ios{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;border-radius:var(--border-radius);display:block;width:100%;min-height:inherit;border:0;outline:none;background:var(--background);font-family:inherit;-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none}.searchbar-input.sc-ion-searchbar-ios::-webkit-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-ios::-moz-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-ios:-ms-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-ios::-ms-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-ios::placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-ios::-webkit-search-cancel-button,.searchbar-input.sc-ion-searchbar-ios::-ms-clear{display:none}.searchbar-cancel-button.sc-ion-searchbar-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:none;height:100%;border:0;outline:none;color:var(--cancel-button-color);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.searchbar-cancel-button.sc-ion-searchbar-ios>div.sc-ion-searchbar-ios{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%}.searchbar-clear-button.sc-ion-searchbar-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:none;min-height:0;outline:none;color:var(--clear-button-color);-webkit-appearance:none;-moz-appearance:none;appearance:none}.searchbar-clear-button.sc-ion-searchbar-ios:focus{opacity:0.5}.searchbar-has-value.searchbar-should-show-clear.sc-ion-searchbar-ios-h .searchbar-clear-button.sc-ion-searchbar-ios{display:block}.searchbar-disabled.sc-ion-searchbar-ios-h{cursor:default;opacity:0.4;pointer-events:none}.sc-ion-searchbar-ios-h{--background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.07);--border-radius:10px;--box-shadow:none;--cancel-button-color:var(--ion-color-primary, #0054e9);--clear-button-color:var(--ion-color-step-600, var(--ion-text-color-step-400, #666666));--color:var(--ion-text-color, #000);--icon-color:var(--ion-color-step-600, var(--ion-text-color-step-400, #666666));-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:12px;padding-bottom:12px;min-height:60px;contain:content}.searchbar-input-container.sc-ion-searchbar-ios{min-height:36px}.searchbar-search-icon.sc-ion-searchbar-ios{-webkit-margin-start:calc(50% - 60px);margin-inline-start:calc(50% - 60px);top:0;position:absolute;width:1.375rem;height:100%;contain:strict}.searchbar-search-icon.sc-ion-searchbar-ios{inset-inline-start:5px}.searchbar-input.sc-ion-searchbar-ios{-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:6px;padding-bottom:6px;height:100%;font-size:1.0625rem;font-weight:400;contain:strict}.searchbar-has-value.searchbar-should-show-clear.sc-ion-searchbar-ios-h .searchbar-input.sc-ion-searchbar-ios{-webkit-padding-start:1.75rem;padding-inline-start:1.75rem;-webkit-padding-end:1.75rem;padding-inline-end:1.75rem}.searchbar-clear-button.sc-ion-searchbar-ios{top:0;background-position:center;position:absolute;width:1.875rem;height:100%;border:0;background-color:transparent}.searchbar-clear-button.sc-ion-searchbar-ios{inset-inline-end:0}.searchbar-clear-icon.sc-ion-searchbar-ios{width:1.125rem;height:100%}.searchbar-cancel-button.sc-ion-searchbar-ios{-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:0;padding-inline-end:0;padding-top:0;padding-bottom:0;-ms-flex-negative:0;flex-shrink:0;background-color:transparent;font-size:17px}.searchbar-left-aligned.sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios{-webkit-margin-start:0;margin-inline-start:0}.searchbar-left-aligned.sc-ion-searchbar-ios-h .searchbar-input.sc-ion-searchbar-ios{-webkit-padding-start:1.875rem;padding-inline-start:1.875rem}.searchbar-has-focus.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios,.searchbar-should-show-cancel.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios,.searchbar-animated.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios{display:block}.searchbar-animated.sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios,.searchbar-animated.sc-ion-searchbar-ios-h .searchbar-input.sc-ion-searchbar-ios{-webkit-transition:all 300ms ease;transition:all 300ms ease}.searchbar-animated.searchbar-has-focus.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios,.searchbar-animated.searchbar-should-show-cancel.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios{opacity:1;pointer-events:auto}.searchbar-animated.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios{-webkit-margin-end:-100%;margin-inline-end:-100%;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);-webkit-transition:all 300ms ease;transition:all 300ms ease;opacity:0;pointer-events:none}.searchbar-no-animate.sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios,.searchbar-no-animate.sc-ion-searchbar-ios-h .searchbar-input.sc-ion-searchbar-ios,.searchbar-no-animate.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios{-webkit-transition-duration:0ms;transition-duration:0ms}.ion-color.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios{color:var(--ion-color-base)}@media (any-hover: hover){.ion-color.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios:hover{color:var(--ion-color-tint)}}ion-toolbar.sc-ion-searchbar-ios-h,ion-toolbar .sc-ion-searchbar-ios-h{padding-top:1px;padding-bottom:15px;min-height:52px}ion-toolbar.ion-color.sc-ion-searchbar-ios-h:not(.ion-color),ion-toolbar.ion-color .sc-ion-searchbar-ios-h:not(.ion-color){color:inherit}ion-toolbar.ion-color.sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-cancel-button.sc-ion-searchbar-ios,ion-toolbar.ion-color .sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-cancel-button.sc-ion-searchbar-ios{color:currentColor}ion-toolbar.ion-color.sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios,ion-toolbar.ion-color .sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios{color:currentColor;opacity:0.5}ion-toolbar.ion-color.sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-input.sc-ion-searchbar-ios,ion-toolbar.ion-color .sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-input.sc-ion-searchbar-ios{background:rgba(var(--ion-color-contrast-rgb), 0.07);color:currentColor}ion-toolbar.ion-color.sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-clear-button.sc-ion-searchbar-ios,ion-toolbar.ion-color .sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-clear-button.sc-ion-searchbar-ios{color:currentColor;opacity:0.5}";var IonSearchbarIosStyle0=searchbarIosCss;var searchbarMdCss=".sc-ion-searchbar-md-h{--placeholder-color:initial;--placeholder-font-style:initial;--placeholder-font-weight:initial;--placeholder-opacity:var(--ion-placeholder-opacity, 0.6);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;width:100%;color:var(--color);font-family:var(--ion-font-family, inherit);-webkit-box-sizing:border-box;box-sizing:border-box}.ion-color.sc-ion-searchbar-md-h{color:var(--ion-color-contrast)}.ion-color.sc-ion-searchbar-md-h .searchbar-input.sc-ion-searchbar-md{background:var(--ion-color-base)}.ion-color.sc-ion-searchbar-md-h .searchbar-clear-button.sc-ion-searchbar-md,.ion-color.sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md,.ion-color.sc-ion-searchbar-md-h .searchbar-search-icon.sc-ion-searchbar-md{color:inherit}.searchbar-search-icon.sc-ion-searchbar-md{color:var(--icon-color);pointer-events:none}.searchbar-input-container.sc-ion-searchbar-md{display:block;position:relative;-ms-flex-negative:1;flex-shrink:1;width:100%}.searchbar-input.sc-ion-searchbar-md{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;border-radius:var(--border-radius);display:block;width:100%;min-height:inherit;border:0;outline:none;background:var(--background);font-family:inherit;-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none}.searchbar-input.sc-ion-searchbar-md::-webkit-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-md::-moz-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-md:-ms-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-md::-ms-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-md::placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-md::-webkit-search-cancel-button,.searchbar-input.sc-ion-searchbar-md::-ms-clear{display:none}.searchbar-cancel-button.sc-ion-searchbar-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:none;height:100%;border:0;outline:none;color:var(--cancel-button-color);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.searchbar-cancel-button.sc-ion-searchbar-md>div.sc-ion-searchbar-md{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%}.searchbar-clear-button.sc-ion-searchbar-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:none;min-height:0;outline:none;color:var(--clear-button-color);-webkit-appearance:none;-moz-appearance:none;appearance:none}.searchbar-clear-button.sc-ion-searchbar-md:focus{opacity:0.5}.searchbar-has-value.searchbar-should-show-clear.sc-ion-searchbar-md-h .searchbar-clear-button.sc-ion-searchbar-md{display:block}.searchbar-disabled.sc-ion-searchbar-md-h{cursor:default;opacity:0.4;pointer-events:none}.sc-ion-searchbar-md-h{--background:var(--ion-background-color, #fff);--border-radius:2px;--box-shadow:0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);--cancel-button-color:var(--ion-color-step-900, var(--ion-text-color-step-100, #1a1a1a));--clear-button-color:initial;--color:var(--ion-color-step-850, var(--ion-text-color-step-150, #262626));--icon-color:var(--ion-color-step-600, var(--ion-text-color-step-400, #666666));-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;background:inherit}.searchbar-search-icon.sc-ion-searchbar-md{top:11px;width:1.3125rem;height:1.3125rem}.searchbar-search-icon.sc-ion-searchbar-md{inset-inline-start:16px}.searchbar-cancel-button.sc-ion-searchbar-md{top:0;background-color:transparent;font-size:1.5em}.searchbar-cancel-button.sc-ion-searchbar-md{inset-inline-start:9px}.searchbar-search-icon.sc-ion-searchbar-md,.searchbar-cancel-button.sc-ion-searchbar-md{position:absolute}.searchbar-search-icon.ion-activated.sc-ion-searchbar-md,.searchbar-cancel-button.ion-activated.sc-ion-searchbar-md{background-color:transparent}.searchbar-input.sc-ion-searchbar-md{-webkit-padding-start:3.4375rem;padding-inline-start:3.4375rem;-webkit-padding-end:3.4375rem;padding-inline-end:3.4375rem;padding-top:0.375rem;padding-bottom:0.375rem;background-position:left 8px center;height:auto;font-size:1rem;font-weight:400;line-height:30px}[dir=rtl].sc-ion-searchbar-md-h .searchbar-input.sc-ion-searchbar-md,[dir=rtl] .sc-ion-searchbar-md-h .searchbar-input.sc-ion-searchbar-md{background-position:right 8px center}[dir=rtl].sc-ion-searchbar-md .searchbar-input.sc-ion-searchbar-md{background-position:right 8px center}@supports selector(:dir(rtl)){.searchbar-input.sc-ion-searchbar-md:dir(rtl){background-position:right 8px center}}.searchbar-clear-button.sc-ion-searchbar-md{top:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;position:absolute;height:100%;border:0;background-color:transparent}.searchbar-clear-button.sc-ion-searchbar-md{inset-inline-end:13px}.searchbar-clear-button.ion-activated.sc-ion-searchbar-md{background-color:transparent}.searchbar-clear-icon.sc-ion-searchbar-md{width:1.375rem;height:100%}.searchbar-has-focus.sc-ion-searchbar-md-h .searchbar-search-icon.sc-ion-searchbar-md{display:block}.searchbar-has-focus.sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md,.searchbar-should-show-cancel.sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md{display:block}.searchbar-has-focus.sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md+.searchbar-search-icon.sc-ion-searchbar-md,.searchbar-should-show-cancel.sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md+.searchbar-search-icon.sc-ion-searchbar-md{display:none}ion-toolbar.sc-ion-searchbar-md-h,ion-toolbar .sc-ion-searchbar-md-h{-webkit-padding-start:7px;padding-inline-start:7px;-webkit-padding-end:7px;padding-inline-end:7px;padding-top:3px;padding-bottom:3px}";var IonSearchbarMdStyle0=searchbarMdCss;var Searchbar=function(){function a(a){var r=this;registerInstance(this,a);this.ionInput=createEvent(this,"ionInput",7);this.ionChange=createEvent(this,"ionChange",7);this.ionCancel=createEvent(this,"ionCancel",7);this.ionClear=createEvent(this,"ionClear",7);this.ionBlur=createEvent(this,"ionBlur",7);this.ionFocus=createEvent(this,"ionFocus",7);this.ionStyle=createEvent(this,"ionStyle",7);this.isCancelVisible=false;this.shouldAlignLeft=true;this.inputId="ion-searchbar-".concat(searchbarIds++);this.inheritedAttributes={};this.onClearInput=function(a){return __awaiter(r,void 0,void 0,(function(){var r=this;return __generator(this,(function(e){this.ionClear.emit();return[2,new Promise((function(e){setTimeout((function(){var o=r.getValue();if(o!==""){r.value="";r.emitInputChange();if(a&&!r.focused){r.setFocus();r.focusedValue=o}}e()}),16*4)}))]}))}))};this.onCancelSearchbar=function(a){return __awaiter(r,void 0,void 0,(function(){var r,e;return __generator(this,(function(o){switch(o.label){case 0:if(a){a.preventDefault();a.stopPropagation()}this.ionCancel.emit();r=this.getValue();e=this.focused;return[4,this.onClearInput()];case 1:o.sent();if(r&&!e){this.emitValueChange(a)}if(this.nativeInput){this.nativeInput.blur()}return[2]}}))}))};this.onInput=function(a){var e=a.target;if(e){r.value=e.value}r.emitInputChange(a)};this.onChange=function(a){r.emitValueChange(a)};this.onBlur=function(a){r.focused=false;r.ionBlur.emit();r.positionElements();if(r.focusedValue!==r.value){r.emitValueChange(a)}r.focusedValue=undefined};this.onFocus=function(){r.focused=true;r.focusedValue=r.value;r.ionFocus.emit();r.positionElements()};this.focused=false;this.noAnimate=true;this.color=undefined;this.animated=false;this.autocapitalize="off";this.autocomplete="off";this.autocorrect="off";this.cancelButtonIcon=config.get("backButtonIcon",arrowBackSharp);this.cancelButtonText="Cancel";this.clearIcon=undefined;this.debounce=undefined;this.disabled=false;this.inputmode=undefined;this.enterkeyhint=undefined;this.maxlength=undefined;this.minlength=undefined;this.name=this.inputId;this.placeholder="Search";this.searchIcon=undefined;this.showCancelButton="never";this.showClearButton="always";this.spellcheck=false;this.type="search";this.value=""}a.prototype.onLangChanged=function(a){this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{lang:a});forceUpdate(this)};a.prototype.onDirChanged=function(a){this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{dir:a});forceUpdate(this)};a.prototype.debounceChanged=function(){var a=this,r=a.ionInput,e=a.debounce,o=a.originalIonInput;this.ionInput=e===undefined?o!==null&&o!==void 0?o:r:debounceEvent(r,e)};a.prototype.valueChanged=function(){var a=this.nativeInput;var r=this.getValue();if(a&&a.value!==r){a.value=r}};a.prototype.showCancelButtonChanged=function(){var a=this;requestAnimationFrame((function(){a.positionElements();forceUpdate(a)}))};a.prototype.connectedCallback=function(){this.emitStyle()};a.prototype.componentWillLoad=function(){this.inheritedAttributes=Object.assign({},inheritAttributes(this.el,["lang","dir"]))};a.prototype.componentDidLoad=function(){var a=this;this.originalIonInput=this.ionInput;this.positionElements();this.debounceChanged();setTimeout((function(){a.noAnimate=false}),300)};a.prototype.emitStyle=function(){this.ionStyle.emit({searchbar:true})};a.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(a){if(this.nativeInput){this.nativeInput.focus()}return[2]}))}))};a.prototype.getInputElement=function(){return __awaiter(this,void 0,void 0,(function(){var a=this;return __generator(this,(function(r){switch(r.label){case 0:if(!!this.nativeInput)return[3,2];return[4,new Promise((function(r){return componentOnReady(a.el,r)}))];case 1:r.sent();r.label=2;case 2:return[2,Promise.resolve(this.nativeInput)]}}))}))};a.prototype.emitValueChange=function(a){var r=this.value;var e=r==null?r:r.toString();this.focusedValue=e;this.ionChange.emit({value:e,event:a})};a.prototype.emitInputChange=function(a){var r=this.value;this.ionInput.emit({value:r,event:a})};a.prototype.positionElements=function(){var a=this.getValue();var r=this.shouldAlignLeft;var e=getIonMode(this);var o=!this.animated||a.trim()!==""||!!this.focused;this.shouldAlignLeft=o;if(e!=="ios"){return}if(r!==o){this.positionPlaceholder()}if(this.animated){this.positionCancelButton()}};a.prototype.positionPlaceholder=function(){var a=this.nativeInput;if(!a){return}var r=isRTL(this.el);var e=(this.el.shadowRoot||this.el).querySelector(".searchbar-search-icon");if(this.shouldAlignLeft){a.removeAttribute("style");e.removeAttribute("style")}else{var o=document;var i=o.createElement("span");i.innerText=this.placeholder||"";o.body.appendChild(i);raf((function(){var o=i.offsetWidth;i.remove();var n="calc(50% - "+o/2+"px)";var t="calc(50% - "+(o/2+e.clientWidth+8)+"px)";if(r){a.style.paddingRight=n;e.style.marginRight=t}else{a.style.paddingLeft=n;e.style.marginLeft=t}}))}};a.prototype.positionCancelButton=function(){var a=isRTL(this.el);var r=(this.el.shadowRoot||this.el).querySelector(".searchbar-cancel-button");var e=this.shouldShowCancelButton();if(r!==null&&e!==this.isCancelVisible){var o=r.style;this.isCancelVisible=e;if(e){if(a){o.marginLeft="0"}else{o.marginRight="0"}}else{var i=r.offsetWidth;if(i>0){if(a){o.marginLeft=-i+"px"}else{o.marginRight=-i+"px"}}}}};a.prototype.getValue=function(){return this.value||""};a.prototype.hasValue=function(){return this.getValue()!==""};a.prototype.shouldShowCancelButton=function(){if(this.showCancelButton==="never"||this.showCancelButton==="focus"&&!this.focused){return false}return true};a.prototype.shouldShowClearButton=function(){if(this.showClearButton==="never"||this.showClearButton==="focus"&&!this.focused){return false}return true};a.prototype.render=function(){var a;var r=this;var e=this,o=e.cancelButtonText,i=e.autocapitalize;var n=this.animated&&config.getBoolean("animated",true);var t=getIonMode(this);var s=this.clearIcon||(t==="ios"?closeCircle:closeSharp);var c=this.searchIcon||(t==="ios"?searchOutline:searchSharp);var l=this.shouldShowCancelButton();var b=this.showCancelButton!=="never"&&h("button",{key:"20b2d0f2e3425eede725dbe3323c7c29cdb66f4e","aria-label":o,"aria-hidden":l?undefined:"true",type:"button",tabIndex:t==="ios"&&!l?-1:undefined,onMouseDown:this.onCancelSearchbar,onTouchStart:this.onCancelSearchbar,class:"searchbar-cancel-button"},h("div",{key:"3a516c3fdd35256eb79639fd340afcdd92cfd7aa","aria-hidden":"true"},t==="md"?h("ion-icon",{"aria-hidden":"true",mode:t,icon:this.cancelButtonIcon,lazy:false}):o));return h(Host,{key:"34878db21f63a9bdffca0446d8ad5619ff04cac3",role:"search","aria-disabled":this.disabled?"true":null,class:createColorClasses(this.color,(a={},a[t]=true,a["searchbar-animated"]=n,a["searchbar-disabled"]=this.disabled,a["searchbar-no-animate"]=n&&this.noAnimate,a["searchbar-has-value"]=this.hasValue(),a["searchbar-left-aligned"]=this.shouldAlignLeft,a["searchbar-has-focus"]=this.focused,a["searchbar-should-show-clear"]=this.shouldShowClearButton(),a["searchbar-should-show-cancel"]=this.shouldShowCancelButton(),a))},h("div",{key:"faa7b011206a8359b1963368c65988e506b260cb",class:"searchbar-input-container"},h("input",Object.assign({key:"732d3e5a2b258da6f136a14472ac872816a9853b","aria-label":"search text",disabled:this.disabled,ref:function(a){return r.nativeInput=a},class:"searchbar-input",inputMode:this.inputmode,enterKeyHint:this.enterkeyhint,name:this.name,onInput:this.onInput,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,minLength:this.minlength,maxLength:this.maxlength,placeholder:this.placeholder,type:this.type,value:this.getValue(),autoCapitalize:i==="default"?undefined:i,autoComplete:this.autocomplete,autoCorrect:this.autocorrect,spellcheck:this.spellcheck},this.inheritedAttributes)),t==="md"&&b,h("ion-icon",{key:"767dca971849f221dde220deae728b41bf764b98","aria-hidden":"true",mode:t,icon:c,lazy:false,class:"searchbar-search-icon"}),h("button",{key:"9941b5de1ed9ebcf3e81de8e0731c09dea5a89d9","aria-label":"reset",type:"button","no-blur":true,class:"searchbar-clear-button",onPointerDown:function(a){a.preventDefault()},onClick:function(){return r.onClearInput(true)}},h("ion-icon",{key:"cb2b543d286373a84e2c6c2a959f92b045bbd7dd","aria-hidden":"true",mode:t,icon:s,lazy:false,class:"searchbar-clear-icon"}))),t==="ios"&&b)};Object.defineProperty(a.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(a,"watchers",{get:function(){return{lang:["onLangChanged"],dir:["onDirChanged"],debounce:["debounceChanged"],value:["valueChanged"],showCancelButton:["showCancelButtonChanged"]}},enumerable:false,configurable:true});return a}();var searchbarIds=0;Searchbar.style={ios:IonSearchbarIosStyle0,md:IonSearchbarMdStyle0};export{Searchbar as ion_searchbar};
4
+ */import{r as registerInstance,e as createEvent,j as forceUpdate,h,i as Host,g as getElement}from"./index-3f990258.js";import{x as xSvg}from"./x-a64bcd9f.js";import{e as debounceEvent,h as inheritAttributes,c as componentOnReady,r as raf}from"./helpers-da915de8.js";import{i as isRTL}from"./dir-babeabeb.js";import{c as createColorClasses}from"./theme-01f3f29c.js";import{b as closeCircle,d as closeSharp,s as searchOutline,e as searchSharp,a as arrowBackSharp}from"./index-4ccb3ebe.js";import{d as getIonTheme,c as config}from"./ionic-global-e4f248ad.js";var arrowLeftSvg="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNTYgMjU2IiBmaWxsPSJjdXJyZW50Q29sb3IiPjxwYXRoIGQ9Ik0yMjQsMTI4YTgsOCwwLDAsMS04LDhINTkuMzFsNTguMzUsNTguMzRhOCw4LDAsMCwxLTExLjMyLDExLjMybC03Mi03MmE4LDgsMCwwLDEsMC0xMS4zMmw3Mi03MmE4LDgsMCwwLDEsMTEuMzIsMTEuMzJMNTkuMzEsMTIwSDIxNkE4LDgsMCwwLDEsMjI0LDEyOFoiLz48L3N2Zz4=";var magnifyingGlassSvg="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNTYgMjU2IiBmaWxsPSJjdXJyZW50Q29sb3IiPjxwYXRoIGQ9Ik0yMjkuNjYsMjE4LjM0bC01MC4wNy01MC4wNmE4OC4xMSw4OC4xMSwwLDEsMC0xMS4zMSwxMS4zMWw1MC4wNiw1MC4wN2E4LDgsMCwwLDAsMTEuMzItMTEuMzJaTTQwLDExMmE3Miw3MiwwLDEsMSw3Miw3MkE3Mi4wOCw3Mi4wOCwwLDAsMSw0MCwxMTJaIi8+PC9zdmc+";var searchbarIonicCss=".sc-ion-searchbar-ionic-h{--placeholder-color:initial;--placeholder-font-style:initial;--placeholder-font-weight:initial;--placeholder-opacity:var(--ion-placeholder-opacity, 1);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;width:100%;color:var(--color);-webkit-box-sizing:border-box;box-sizing:border-box}.searchbar-search-icon.sc-ion-searchbar-ionic{color:var(--icon-color);pointer-events:none}.searchbar-input-container.sc-ion-searchbar-ionic{display:block;position:relative;-ms-flex-negative:1;flex-shrink:1;width:100%}.searchbar-input.sc-ion-searchbar-ionic{color:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-align:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;white-space:inherit;border-radius:var(--border-radius);display:block;width:100%;min-height:inherit;border:0;outline:none;background:var(--background);font-family:inherit;-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none}.searchbar-input.sc-ion-searchbar-ionic::-webkit-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-ionic::-moz-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-ionic:-ms-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-ionic::-ms-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-ionic::placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-ionic::-webkit-search-cancel-button,.searchbar-input.sc-ion-searchbar-ionic::-ms-clear{display:none}.searchbar-cancel-button.sc-ion-searchbar-ionic{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:none;height:100%;border:0;outline:none;color:var(--cancel-button-color);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.searchbar-cancel-button.sc-ion-searchbar-ionic>div.sc-ion-searchbar-ionic{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%}.searchbar-clear-button.sc-ion-searchbar-ionic{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:none;min-height:0;outline:none;color:var(--clear-button-color);-webkit-appearance:none;-moz-appearance:none;appearance:none}.searchbar-clear-button.sc-ion-searchbar-ionic:focus{opacity:0.5}.searchbar-has-value.searchbar-should-show-clear.sc-ion-searchbar-ionic-h .searchbar-clear-button.sc-ion-searchbar-ionic{display:block}.sc-ion-searchbar-ionic-h{--background:var(--ionic-color-neutral-100, #f1f1f1);--border-radius:var(--ionic-border-radius-800, 32px);--box-shadow:none;--cancel-button-color:var(--ionic-color-neutral-800, #626262);--clear-button-color:var(--ionic-color-neutral-800, #626262);--color:var(--ionic-color-neutral-800, #626262);--icon-color:var(--ionic-color-neutral-800, #626262);padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;min-height:var(--ionic-scale-1000, 40px);contain:content}.searchbar-input-container.sc-ion-searchbar-ionic{min-height:var(--ionic-scale-1000, 40px)}.searchbar-search-icon.sc-ion-searchbar-ionic{display:none}.searchbar-input.sc-ion-searchbar-ionic{-webkit-padding-start:var(--ionic-space-300, 12px);padding-inline-start:var(--ionic-space-300, 12px);-webkit-padding-end:var(--ionic-space-300, 12px);padding-inline-end:var(--ionic-space-300, 12px);padding-top:var(--ionic-space-300, 12px);padding-bottom:var(--ionic-space-300, 12px);height:100%;font-size:var(--ionic-font-size-350, 0.875rem);font-weight:var(--ionic-font-weight-regular, 400);contain:strict}.searchbar-clear-button.sc-ion-searchbar-ionic{top:50%;position:absolute;width:var(--ionic-scale-600, 24px);height:var(--ionic-scale-600, 24px);-webkit-transform:translateY(-50%);transform:translateY(-50%);background-color:transparent;font-size:var(--ionic-font-size-400, 1rem);contain:strict}.searchbar-clear-button.sc-ion-searchbar-ionic{inset-inline-end:var(--ionic-space-200, 8px)}ion-toolbar.sc-ion-searchbar-ionic-h,ion-toolbar .sc-ion-searchbar-ionic-h{min-height:var(--ionic-scale-1000, 40px)}";var IonSearchbarIonicStyle0=searchbarIonicCss;var searchbarIosCss=".sc-ion-searchbar-ios-h{--placeholder-color:initial;--placeholder-font-style:initial;--placeholder-font-weight:initial;--placeholder-opacity:var(--ion-placeholder-opacity, 1);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;width:100%;color:var(--color);-webkit-box-sizing:border-box;box-sizing:border-box}.searchbar-search-icon.sc-ion-searchbar-ios{color:var(--icon-color);pointer-events:none}.searchbar-input-container.sc-ion-searchbar-ios{display:block;position:relative;-ms-flex-negative:1;flex-shrink:1;width:100%}.searchbar-input.sc-ion-searchbar-ios{color:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-align:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;white-space:inherit;border-radius:var(--border-radius);display:block;width:100%;min-height:inherit;border:0;outline:none;background:var(--background);font-family:inherit;-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none}.searchbar-input.sc-ion-searchbar-ios::-webkit-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-ios::-moz-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-ios:-ms-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-ios::-ms-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-ios::placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-ios::-webkit-search-cancel-button,.searchbar-input.sc-ion-searchbar-ios::-ms-clear{display:none}.searchbar-cancel-button.sc-ion-searchbar-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:none;height:100%;border:0;outline:none;color:var(--cancel-button-color);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.searchbar-cancel-button.sc-ion-searchbar-ios>div.sc-ion-searchbar-ios{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%}.searchbar-clear-button.sc-ion-searchbar-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:none;min-height:0;outline:none;color:var(--clear-button-color);-webkit-appearance:none;-moz-appearance:none;appearance:none}.searchbar-clear-button.sc-ion-searchbar-ios:focus{opacity:0.5}.searchbar-has-value.searchbar-should-show-clear.sc-ion-searchbar-ios-h .searchbar-clear-button.sc-ion-searchbar-ios{display:block}.sc-ion-searchbar-ios-h{--placeholder-opacity:var(--ion-placeholder-opacity, 0.6);font-family:var(--ion-font-family, inherit)}.ion-color.sc-ion-searchbar-ios-h{color:var(--ion-color-contrast)}.ion-color.sc-ion-searchbar-ios-h .searchbar-input.sc-ion-searchbar-ios{background:var(--ion-color-base)}.ion-color.sc-ion-searchbar-ios-h .searchbar-clear-button.sc-ion-searchbar-ios,.ion-color.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios,.ion-color.sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios{color:inherit}.searchbar-disabled.sc-ion-searchbar-ios-h{cursor:default;opacity:0.4;pointer-events:none}.sc-ion-searchbar-ios-h{--background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.07);--border-radius:10px;--box-shadow:none;--cancel-button-color:var(--ion-color-primary, #0054e9);--clear-button-color:var(--ion-color-step-600, var(--ion-text-color-step-400, #666666));--color:var(--ion-text-color, #000);--icon-color:var(--ion-color-step-600, var(--ion-text-color-step-400, #666666));-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:12px;padding-bottom:12px;min-height:60px;contain:content}.searchbar-input-container.sc-ion-searchbar-ios{min-height:36px}.searchbar-search-icon.sc-ion-searchbar-ios{-webkit-margin-start:calc(50% - 60px);margin-inline-start:calc(50% - 60px);top:0;position:absolute;width:1.375rem;height:100%;contain:strict}.searchbar-search-icon.sc-ion-searchbar-ios{inset-inline-start:5px}.searchbar-input.sc-ion-searchbar-ios{-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:6px;padding-bottom:6px;height:100%;font-size:1.0625rem;font-weight:400;contain:strict}.searchbar-has-value.searchbar-should-show-clear.sc-ion-searchbar-ios-h .searchbar-input.sc-ion-searchbar-ios{-webkit-padding-start:1.75rem;padding-inline-start:1.75rem;-webkit-padding-end:1.75rem;padding-inline-end:1.75rem}.searchbar-clear-button.sc-ion-searchbar-ios{top:0;background-position:center;position:absolute;width:1.875rem;height:100%;border:0;background-color:transparent}.searchbar-clear-button.sc-ion-searchbar-ios{inset-inline-end:0}.searchbar-clear-icon.sc-ion-searchbar-ios{width:1.125rem;height:100%}.searchbar-cancel-button.sc-ion-searchbar-ios{-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:0;padding-inline-end:0;padding-top:0;padding-bottom:0;-ms-flex-negative:0;flex-shrink:0;background-color:transparent;font-size:17px}.searchbar-left-aligned.sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios{-webkit-margin-start:0;margin-inline-start:0}.searchbar-left-aligned.sc-ion-searchbar-ios-h .searchbar-input.sc-ion-searchbar-ios{-webkit-padding-start:1.875rem;padding-inline-start:1.875rem}.searchbar-has-focus.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios,.searchbar-should-show-cancel.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios,.searchbar-animated.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios{display:block}.searchbar-animated.sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios,.searchbar-animated.sc-ion-searchbar-ios-h .searchbar-input.sc-ion-searchbar-ios{-webkit-transition:all 300ms ease;transition:all 300ms ease}.searchbar-animated.searchbar-has-focus.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios,.searchbar-animated.searchbar-should-show-cancel.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios{opacity:1;pointer-events:auto}.searchbar-animated.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios{-webkit-margin-end:-100%;margin-inline-end:-100%;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);-webkit-transition:all 300ms ease;transition:all 300ms ease;opacity:0;pointer-events:none}.searchbar-no-animate.sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios,.searchbar-no-animate.sc-ion-searchbar-ios-h .searchbar-input.sc-ion-searchbar-ios,.searchbar-no-animate.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios{-webkit-transition-duration:0ms;transition-duration:0ms}.ion-color.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios{color:var(--ion-color-base)}@media (any-hover: hover){.ion-color.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios:hover{color:var(--ion-color-tint)}}ion-toolbar.sc-ion-searchbar-ios-h,ion-toolbar .sc-ion-searchbar-ios-h{padding-top:1px;padding-bottom:15px;min-height:52px}ion-toolbar.ion-color.sc-ion-searchbar-ios-h:not(.ion-color),ion-toolbar.ion-color .sc-ion-searchbar-ios-h:not(.ion-color){color:inherit}ion-toolbar.ion-color.sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-cancel-button.sc-ion-searchbar-ios,ion-toolbar.ion-color .sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-cancel-button.sc-ion-searchbar-ios{color:currentColor}ion-toolbar.ion-color.sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios,ion-toolbar.ion-color .sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios{color:currentColor;opacity:0.5}ion-toolbar.ion-color.sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-input.sc-ion-searchbar-ios,ion-toolbar.ion-color .sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-input.sc-ion-searchbar-ios{background:rgba(var(--ion-color-contrast-rgb), 0.07);color:currentColor}ion-toolbar.ion-color.sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-clear-button.sc-ion-searchbar-ios,ion-toolbar.ion-color .sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-clear-button.sc-ion-searchbar-ios{color:currentColor;opacity:0.5}";var IonSearchbarIosStyle0=searchbarIosCss;var searchbarMdCss=".sc-ion-searchbar-md-h{--placeholder-color:initial;--placeholder-font-style:initial;--placeholder-font-weight:initial;--placeholder-opacity:var(--ion-placeholder-opacity, 1);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;width:100%;color:var(--color);-webkit-box-sizing:border-box;box-sizing:border-box}.searchbar-search-icon.sc-ion-searchbar-md{color:var(--icon-color);pointer-events:none}.searchbar-input-container.sc-ion-searchbar-md{display:block;position:relative;-ms-flex-negative:1;flex-shrink:1;width:100%}.searchbar-input.sc-ion-searchbar-md{color:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-align:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;white-space:inherit;border-radius:var(--border-radius);display:block;width:100%;min-height:inherit;border:0;outline:none;background:var(--background);font-family:inherit;-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none}.searchbar-input.sc-ion-searchbar-md::-webkit-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-md::-moz-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-md:-ms-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-md::-ms-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-md::placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-md::-webkit-search-cancel-button,.searchbar-input.sc-ion-searchbar-md::-ms-clear{display:none}.searchbar-cancel-button.sc-ion-searchbar-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:none;height:100%;border:0;outline:none;color:var(--cancel-button-color);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.searchbar-cancel-button.sc-ion-searchbar-md>div.sc-ion-searchbar-md{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%}.searchbar-clear-button.sc-ion-searchbar-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:none;min-height:0;outline:none;color:var(--clear-button-color);-webkit-appearance:none;-moz-appearance:none;appearance:none}.searchbar-clear-button.sc-ion-searchbar-md:focus{opacity:0.5}.searchbar-has-value.searchbar-should-show-clear.sc-ion-searchbar-md-h .searchbar-clear-button.sc-ion-searchbar-md{display:block}.sc-ion-searchbar-md-h{--placeholder-opacity:var(--ion-placeholder-opacity, 0.6);font-family:var(--ion-font-family, inherit)}.ion-color.sc-ion-searchbar-md-h{color:var(--ion-color-contrast)}.ion-color.sc-ion-searchbar-md-h .searchbar-input.sc-ion-searchbar-md{background:var(--ion-color-base)}.ion-color.sc-ion-searchbar-md-h .searchbar-clear-button.sc-ion-searchbar-md,.ion-color.sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md,.ion-color.sc-ion-searchbar-md-h .searchbar-search-icon.sc-ion-searchbar-md{color:inherit}.searchbar-disabled.sc-ion-searchbar-md-h{cursor:default;opacity:0.4;pointer-events:none}.sc-ion-searchbar-md-h{--background:var(--ion-background-color, #fff);--border-radius:2px;--box-shadow:0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);--cancel-button-color:var(--ion-color-step-900, var(--ion-text-color-step-100, #1a1a1a));--clear-button-color:initial;--color:var(--ion-color-step-850, var(--ion-text-color-step-150, #262626));--icon-color:var(--ion-color-step-600, var(--ion-text-color-step-400, #666666));-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;background:inherit}.searchbar-search-icon.sc-ion-searchbar-md{top:11px;width:1.3125rem;height:1.3125rem}.searchbar-search-icon.sc-ion-searchbar-md{inset-inline-start:16px}.searchbar-cancel-button.sc-ion-searchbar-md{top:0;background-color:transparent;font-size:1.5em}.searchbar-cancel-button.sc-ion-searchbar-md{inset-inline-start:9px}.searchbar-search-icon.sc-ion-searchbar-md,.searchbar-cancel-button.sc-ion-searchbar-md{position:absolute}.searchbar-search-icon.ion-activated.sc-ion-searchbar-md,.searchbar-cancel-button.ion-activated.sc-ion-searchbar-md{background-color:transparent}.searchbar-input.sc-ion-searchbar-md{-webkit-padding-start:3.4375rem;padding-inline-start:3.4375rem;-webkit-padding-end:3.4375rem;padding-inline-end:3.4375rem;padding-top:0.375rem;padding-bottom:0.375rem;background-position:left 8px center;height:auto;font-size:1rem;font-weight:400;line-height:30px}[dir=rtl].sc-ion-searchbar-md-h .searchbar-input.sc-ion-searchbar-md,[dir=rtl] .sc-ion-searchbar-md-h .searchbar-input.sc-ion-searchbar-md{background-position:right 8px center}[dir=rtl].sc-ion-searchbar-md .searchbar-input.sc-ion-searchbar-md{background-position:right 8px center}@supports selector(:dir(rtl)){.searchbar-input.sc-ion-searchbar-md:dir(rtl){background-position:right 8px center}}.searchbar-clear-button.sc-ion-searchbar-md{top:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;position:absolute;height:100%;border:0;background-color:transparent}.searchbar-clear-button.sc-ion-searchbar-md{inset-inline-end:13px}.searchbar-clear-button.ion-activated.sc-ion-searchbar-md{background-color:transparent}.searchbar-clear-icon.sc-ion-searchbar-md{width:1.375rem;height:100%}.searchbar-has-focus.sc-ion-searchbar-md-h .searchbar-search-icon.sc-ion-searchbar-md{display:block}.searchbar-has-focus.sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md,.searchbar-should-show-cancel.sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md{display:block}.searchbar-has-focus.sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md+.searchbar-search-icon.sc-ion-searchbar-md,.searchbar-should-show-cancel.sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md+.searchbar-search-icon.sc-ion-searchbar-md{display:none}ion-toolbar.sc-ion-searchbar-md-h,ion-toolbar .sc-ion-searchbar-md-h{-webkit-padding-start:7px;padding-inline-start:7px;-webkit-padding-end:7px;padding-inline-end:7px;padding-top:3px;padding-bottom:3px}";var IonSearchbarMdStyle0=searchbarMdCss;var Searchbar=function(){function a(a){var r=this;registerInstance(this,a);this.ionInput=createEvent(this,"ionInput",7);this.ionChange=createEvent(this,"ionChange",7);this.ionCancel=createEvent(this,"ionCancel",7);this.ionClear=createEvent(this,"ionClear",7);this.ionBlur=createEvent(this,"ionBlur",7);this.ionFocus=createEvent(this,"ionFocus",7);this.ionStyle=createEvent(this,"ionStyle",7);this.isCancelVisible=false;this.shouldAlignLeft=true;this.inputId="ion-searchbar-".concat(searchbarIds++);this.inheritedAttributes={};this.onClearInput=function(a){return __awaiter(r,void 0,void 0,(function(){var r=this;return __generator(this,(function(e){this.ionClear.emit();return[2,new Promise((function(e){setTimeout((function(){var i=r.getValue();if(i!==""){r.value="";r.emitInputChange();if(a&&!r.focused){r.setFocus();r.focusedValue=i}}e()}),16*4)}))]}))}))};this.onCancelSearchbar=function(a){return __awaiter(r,void 0,void 0,(function(){var r,e;return __generator(this,(function(i){switch(i.label){case 0:if(a){a.preventDefault();a.stopPropagation()}this.ionCancel.emit();r=this.getValue();e=this.focused;return[4,this.onClearInput()];case 1:i.sent();if(r&&!e){this.emitValueChange(a)}if(this.nativeInput){this.nativeInput.blur()}return[2]}}))}))};this.onInput=function(a){var e=a.target;if(e){r.value=e.value}r.emitInputChange(a)};this.onChange=function(a){r.emitValueChange(a)};this.onBlur=function(a){r.focused=false;r.ionBlur.emit();r.positionElements();if(r.focusedValue!==r.value){r.emitValueChange(a)}r.focusedValue=undefined};this.onFocus=function(){r.focused=true;r.focusedValue=r.value;r.ionFocus.emit();r.positionElements()};this.focused=false;this.noAnimate=true;this.color=undefined;this.animated=false;this.autocapitalize="off";this.autocomplete="off";this.autocorrect="off";this.cancelButtonIcon=undefined;this.cancelButtonText="Cancel";this.clearIcon=undefined;this.debounce=undefined;this.disabled=false;this.inputmode=undefined;this.enterkeyhint=undefined;this.maxlength=undefined;this.minlength=undefined;this.name=this.inputId;this.placeholder="Search";this.searchIcon=undefined;this.showCancelButton="never";this.showClearButton="always";this.spellcheck=false;this.type="search";this.value=""}a.prototype.onLangChanged=function(a){this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{lang:a});forceUpdate(this)};a.prototype.onDirChanged=function(a){this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{dir:a});forceUpdate(this)};a.prototype.debounceChanged=function(){var a=this,r=a.ionInput,e=a.debounce,i=a.originalIonInput;this.ionInput=e===undefined?i!==null&&i!==void 0?i:r:debounceEvent(r,e)};a.prototype.valueChanged=function(){var a=this.nativeInput;var r=this.getValue();if(a&&a.value!==r){a.value=r}};a.prototype.showCancelButtonChanged=function(){var a=this;requestAnimationFrame((function(){a.positionElements();forceUpdate(a)}))};a.prototype.connectedCallback=function(){this.emitStyle()};a.prototype.componentWillLoad=function(){this.inheritedAttributes=Object.assign({},inheritAttributes(this.el,["lang","dir"]))};a.prototype.componentDidLoad=function(){var a=this;this.originalIonInput=this.ionInput;this.positionElements();this.debounceChanged();setTimeout((function(){a.noAnimate=false}),300)};a.prototype.emitStyle=function(){this.ionStyle.emit({searchbar:true})};a.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(a){if(this.nativeInput){this.nativeInput.focus()}return[2]}))}))};a.prototype.getInputElement=function(){return __awaiter(this,void 0,void 0,(function(){var a=this;return __generator(this,(function(r){switch(r.label){case 0:if(!!this.nativeInput)return[3,2];return[4,new Promise((function(r){return componentOnReady(a.el,r)}))];case 1:r.sent();r.label=2;case 2:return[2,Promise.resolve(this.nativeInput)]}}))}))};a.prototype.emitValueChange=function(a){var r=this.value;var e=r==null?r:r.toString();this.focusedValue=e;this.ionChange.emit({value:e,event:a})};a.prototype.emitInputChange=function(a){var r=this.value;this.ionInput.emit({value:r,event:a})};a.prototype.positionElements=function(){var a=this.getValue();var r=this.shouldAlignLeft;var e=getIonTheme(this);var i=!this.animated||a.trim()!==""||!!this.focused;this.shouldAlignLeft=i;if(e!=="ios"){return}if(r!==i){this.positionPlaceholder()}if(this.animated){this.positionCancelButton()}};a.prototype.positionPlaceholder=function(){var a=this.nativeInput;if(!a){return}var r=isRTL(this.el);var e=(this.el.shadowRoot||this.el).querySelector(".searchbar-search-icon");if(this.shouldAlignLeft){a.removeAttribute("style");e.removeAttribute("style")}else{var i=document;var o=i.createElement("span");o.innerText=this.placeholder||"";i.body.appendChild(o);raf((function(){var i=o.offsetWidth;o.remove();var n="calc(50% - "+i/2+"px)";var t="calc(50% - "+(i/2+e.clientWidth+8)+"px)";if(r){a.style.paddingRight=n;e.style.marginRight=t}else{a.style.paddingLeft=n;e.style.marginLeft=t}}))}};a.prototype.positionCancelButton=function(){var a=isRTL(this.el);var r=(this.el.shadowRoot||this.el).querySelector(".searchbar-cancel-button");var e=this.shouldShowCancelButton();if(r!==null&&e!==this.isCancelVisible){var i=r.style;this.isCancelVisible=e;if(e){if(a){i.marginLeft="0"}else{i.marginRight="0"}}else{var o=r.offsetWidth;if(o>0){if(a){i.marginLeft=-o+"px"}else{i.marginRight=-o+"px"}}}}};a.prototype.getValue=function(){return this.value||""};a.prototype.hasValue=function(){return this.getValue()!==""};a.prototype.shouldShowCancelButton=function(){if(this.showCancelButton==="never"||this.showCancelButton==="focus"&&!this.focused){return false}return true};a.prototype.shouldShowClearButton=function(){if(this.showClearButton==="never"||this.showClearButton==="focus"&&!this.focused){return false}return true};Object.defineProperty(a.prototype,"searchbarClearIcon",{get:function(){if(this.clearIcon!=null){return this.clearIcon}var a=getIonTheme(this);var r={ios:closeCircle,ionic:xSvg,md:closeSharp};var e=r[a]||r.md;return config.get("searchbarClearIcon",e)},enumerable:false,configurable:true});Object.defineProperty(a.prototype,"searchbarSearchIcon",{get:function(){if(this.searchIcon!=null){return this.searchIcon}var a=getIonTheme(this);var r={ios:searchOutline,ionic:magnifyingGlassSvg,md:searchSharp};var e=r[a]||r.md;return config.get("searchbarSearchIcon",e)},enumerable:false,configurable:true});Object.defineProperty(a.prototype,"searchbarCancelIcon",{get:function(){if(this.cancelButtonIcon!=null){return this.cancelButtonIcon}var a=getIonTheme(this);var r={ios:arrowBackSharp,ionic:arrowLeftSvg,md:arrowBackSharp};var e=r[a]||r.md;return config.get("searchbarCancelIcon",config.get("backButtonIcon",e))},enumerable:false,configurable:true});a.prototype.render=function(){var a;var r=this;var e=this,i=e.cancelButtonText,o=e.autocapitalize,n=e.searchbarCancelIcon,t=e.searchbarClearIcon,c=e.searchbarSearchIcon;var s=this.animated&&config.getBoolean("animated",true);var l=getIonTheme(this);var b=this.shouldShowCancelButton();var d=this.showCancelButton!=="never"&&h("button",{key:"8864a41b139b41cff1ed28df8e9b182abd586205","aria-label":i,"aria-hidden":b?undefined:"true",type:"button",tabIndex:l==="ios"&&!b?-1:undefined,onMouseDown:this.onCancelSearchbar,onTouchStart:this.onCancelSearchbar,class:"searchbar-cancel-button"},h("div",{key:"0b65f3dff4b2a2904bcd34e1eb2de0ea845739a1","aria-hidden":"true"},l==="md"||l==="ionic"?h("ion-icon",{"aria-hidden":"true",icon:n,lazy:false}):i));return h(Host,{key:"bfdaa58f80a6a7e3baaf34c7180d6c8a8f26db3b",role:"search","aria-disabled":this.disabled?"true":null,class:createColorClasses(this.color,(a={},a[l]=true,a["searchbar-animated"]=s,a["searchbar-disabled"]=this.disabled,a["searchbar-no-animate"]=s&&this.noAnimate,a["searchbar-has-value"]=this.hasValue(),a["searchbar-left-aligned"]=this.shouldAlignLeft,a["searchbar-has-focus"]=this.focused,a["searchbar-should-show-clear"]=this.shouldShowClearButton(),a["searchbar-should-show-cancel"]=this.shouldShowCancelButton(),a))},h("div",{key:"026738237b8ce44dbf9aa0c3e28495722fd4fe43",class:"searchbar-input-container"},h("input",Object.assign({key:"2c95c7a1c26e114a0200a64aeb4d65ee744dcc16","aria-label":"search text",disabled:this.disabled,ref:function(a){return r.nativeInput=a},class:"searchbar-input",inputMode:this.inputmode,enterKeyHint:this.enterkeyhint,name:this.name,onInput:this.onInput,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,minLength:this.minlength,maxLength:this.maxlength,placeholder:this.placeholder,type:this.type,value:this.getValue(),autoCapitalize:o==="default"?undefined:o,autoComplete:this.autocomplete,autoCorrect:this.autocorrect,spellcheck:this.spellcheck},this.inheritedAttributes)),(l==="md"||l==="ionic")&&d,h("ion-icon",{key:"b377e3f6b8e8d81811dec662d88de49516467210","aria-hidden":"true",icon:c,lazy:false,class:"searchbar-search-icon"}),h("button",{key:"72e66dd70a9759f853cf10ca0904d1f94b5c46c0","aria-label":"reset",type:"button","no-blur":true,class:"searchbar-clear-button",onPointerDown:function(a){a.preventDefault()},onClick:function(){return r.onClearInput(true)}},h("ion-icon",{key:"43c0c542e4a2e86c17ac0fe945b507ff8bf2f306","aria-hidden":"true",icon:t,lazy:false,class:"searchbar-clear-icon"}))),l==="ios"&&d)};Object.defineProperty(a.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(a,"watchers",{get:function(){return{lang:["onLangChanged"],dir:["onDirChanged"],debounce:["debounceChanged"],value:["valueChanged"],showCancelButton:["showCancelButtonChanged"]}},enumerable:false,configurable:true});return a}();var searchbarIds=0;Searchbar.style={ionic:IonSearchbarIonicStyle0,ios:IonSearchbarIosStyle0,md:IonSearchbarMdStyle0};export{Searchbar as ion_searchbar};