cty-mui-core 1.0.2 → 1.0.4

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 (369) hide show
  1. package/components/action-sheet.js +5 -5
  2. package/components/alert.js +5 -5
  3. package/components/banner.js +1 -1
  4. package/components/circle.js +4 -4
  5. package/components/crop-image.js +1 -1
  6. package/components/cty-article-card.js +2 -2
  7. package/components/cty-audio.js +6 -5
  8. package/components/cty-camera-photo.js +3 -3
  9. package/components/cty-canvas-board.js +1 -1
  10. package/components/cty-canvas-video.js +1 -1
  11. package/components/cty-cascader.js +6 -8
  12. package/components/cty-count-down.js +3 -3
  13. package/components/cty-empty.js +3 -2
  14. package/components/cty-floating-bubble.js +1 -1
  15. package/components/cty-floating-panel.js +4 -5
  16. package/components/cty-image-upload.js +1 -1
  17. package/components/cty-image-viewer.js +1 -1
  18. package/components/cty-index-bar.js +3 -3
  19. package/components/cty-keyboard.js +1 -1
  20. package/components/cty-loading.js +3 -3
  21. package/components/cty-media-capture.js +1 -1
  22. package/components/cty-nav-bar.js +1 -1
  23. package/components/cty-notice-bar.js +2 -2
  24. package/components/cty-pdf-viewer.js +4 -4
  25. package/components/cty-progress.js +1 -1
  26. package/components/cty-quick-access.js +1 -1
  27. package/components/cty-rate.js +1 -1
  28. package/components/cty-record.js +2 -2
  29. package/components/cty-segment-slides.js +7 -3
  30. package/components/cty-share-sheet.js +2 -2
  31. package/components/cty-stepper.js +2 -2
  32. package/components/cty-steps.js +1 -1
  33. package/components/cty-text-ellipsis.js +2 -2
  34. package/components/cty-tour.js +5 -5
  35. package/components/cty-tutorial.js +1 -1
  36. package/components/cty-video.js +19 -6
  37. package/components/cty-virtual-list.js +1 -1
  38. package/components/divider.js +2 -2
  39. package/components/icon.js +1 -1
  40. package/components/index.js +8 -16
  41. package/components/overlay.js +2 -2
  42. package/components/permission-purpose.js +1 -1
  43. package/components/swipe-item.js +2 -2
  44. package/components/swipe.js +1 -1
  45. package/components/swiper.js +1 -1
  46. package/dist/cjs/cty-action-sheet.cjs.entry.js +5 -5
  47. package/dist/cjs/cty-alert_2.cjs.entry.js +9 -9
  48. package/dist/cjs/cty-article-card.cjs.entry.js +2 -2
  49. package/dist/cjs/cty-audio.cjs.entry.js +5 -5
  50. package/dist/cjs/cty-banner.cjs.entry.js +1 -1
  51. package/dist/cjs/cty-camera-photo.cjs.entry.js +3 -3
  52. package/dist/cjs/cty-canvas-board.cjs.entry.js +1 -1
  53. package/dist/cjs/cty-canvas-video.cjs.entry.js +1 -1
  54. package/dist/cjs/cty-cascader.cjs.entry.js +6 -8
  55. package/dist/cjs/cty-count-down.cjs.entry.js +3 -3
  56. package/dist/cjs/cty-crop-image.cjs.entry.js +1 -1
  57. package/dist/cjs/cty-divider.cjs.entry.js +2 -2
  58. package/dist/cjs/cty-empty.cjs.entry.js +3 -2
  59. package/dist/cjs/cty-floating-bubble.cjs.entry.js +1 -1
  60. package/dist/cjs/cty-floating-panel.cjs.entry.js +4 -5
  61. package/dist/cjs/cty-icon.cjs.entry.js +1 -1
  62. package/dist/cjs/cty-image-upload.cjs.entry.js +1 -1
  63. package/dist/cjs/cty-image-viewer.cjs.entry.js +1 -1
  64. package/dist/cjs/cty-index-bar.cjs.entry.js +3 -3
  65. package/dist/cjs/cty-keyboard.cjs.entry.js +1 -1
  66. package/dist/cjs/cty-loading.cjs.entry.js +3 -3
  67. package/dist/cjs/cty-media-capture.cjs.entry.js +1 -1
  68. package/dist/cjs/cty-mui.cjs.js +1 -1
  69. package/dist/cjs/cty-nav-bar.cjs.entry.js +1 -1
  70. package/dist/cjs/cty-notice-bar.cjs.entry.js +2 -2
  71. package/dist/cjs/cty-overlay.cjs.entry.js +2 -2
  72. package/dist/cjs/cty-pdf-viewer.cjs.entry.js +3 -3
  73. package/dist/cjs/cty-permission-purpose.cjs.entry.js +1 -1
  74. package/dist/cjs/cty-progress.cjs.entry.js +1 -1
  75. package/dist/cjs/cty-quick-access.cjs.entry.js +1 -1
  76. package/dist/cjs/cty-rate.cjs.entry.js +1 -1
  77. package/dist/cjs/cty-record.cjs.entry.js +2 -2
  78. package/dist/cjs/cty-segment-slides.cjs.entry.js +5 -2
  79. package/dist/cjs/cty-share-sheet.cjs.entry.js +2 -2
  80. package/dist/cjs/cty-stepper.cjs.entry.js +2 -2
  81. package/dist/cjs/cty-steps.cjs.entry.js +1 -1
  82. package/dist/cjs/cty-swipe_2.cjs.entry.js +3 -3
  83. package/dist/cjs/cty-swiper.cjs.entry.js +1 -1
  84. package/dist/cjs/cty-text-ellipsis.cjs.entry.js +2 -2
  85. package/dist/cjs/cty-tour.cjs.entry.js +5 -5
  86. package/dist/cjs/cty-tutorial.cjs.entry.js +1 -1
  87. package/dist/cjs/cty-video.cjs.entry.js +15 -5
  88. package/dist/cjs/cty-virtual-list.cjs.entry.js +1 -1
  89. package/dist/cjs/index.cjs.js +8 -16
  90. package/dist/cjs/loader.cjs.js +1 -1
  91. package/dist/collection/components/action-sheet/action-sheet.js +5 -5
  92. package/dist/collection/components/alert/alert.css +10 -0
  93. package/dist/collection/components/alert/alert.js +7 -8
  94. package/dist/collection/components/article-card/article-card.css +8 -1
  95. package/dist/collection/components/article-card/article-card.js +1 -1
  96. package/dist/collection/components/audio/audio.js +22 -5
  97. package/dist/collection/components/banner/banner.js +1 -1
  98. package/dist/collection/components/camera-photo/camera-photo.css +14 -12
  99. package/dist/collection/components/camera-photo/camera-photo.js +2 -2
  100. package/dist/collection/components/canvas-board/canvas-board.js +1 -1
  101. package/dist/collection/components/canvas-video/canvas-video.js +1 -1
  102. package/dist/collection/components/cascader/cascader.css +8 -2
  103. package/dist/collection/components/cascader/cascader.js +6 -8
  104. package/dist/collection/components/circle/circle.js +4 -4
  105. package/dist/collection/components/count-down/count-down.css +0 -1
  106. package/dist/collection/components/count-down/count-down.js +2 -2
  107. package/dist/collection/components/crop-image/crop-image.js +1 -1
  108. package/dist/collection/components/divider/divider.js +2 -2
  109. package/dist/collection/components/empty/empty.js +6 -6
  110. package/dist/collection/components/floating-bubble/floating-bubble.js +1 -1
  111. package/dist/collection/components/floating-panel/floating-panel.js +4 -5
  112. package/dist/collection/components/icon/icon.js +1 -1
  113. package/dist/collection/components/image-upload/image-upload.js +1 -1
  114. package/dist/collection/components/image-viewer/image-viewer.js +1 -1
  115. package/dist/collection/components/index-bar/index-bar.js +3 -3
  116. package/dist/collection/components/keyboard/keyboard.js +1 -1
  117. package/dist/collection/components/loading/loading.css +2 -0
  118. package/dist/collection/components/loading/loading.js +2 -2
  119. package/dist/collection/components/media-capture/media-capture.js +1 -1
  120. package/dist/collection/components/nav-bar/nav-bar.js +1 -1
  121. package/dist/collection/components/notice-bar/notice-bar.css +1 -0
  122. package/dist/collection/components/notice-bar/notice-bar.js +1 -1
  123. package/dist/collection/components/overlay/overlay.css +4 -2
  124. package/dist/collection/components/overlay/overlay.js +1 -1
  125. package/dist/collection/components/pdf-viewer/pdf-viewer.js +7 -7
  126. package/dist/collection/components/permission-purpose/permission-purpose.js +1 -1
  127. package/dist/collection/components/progress/progress.js +1 -1
  128. package/dist/collection/components/quick-access/quick-access.js +1 -1
  129. package/dist/collection/components/rate/rate.js +1 -1
  130. package/dist/collection/components/record/record.css +1 -0
  131. package/dist/collection/components/record/record.js +1 -1
  132. package/dist/collection/components/segment-slides/segment-slides.css +39 -7
  133. package/dist/collection/components/segment-slides/segment-slides.js +21 -1
  134. package/dist/collection/components/share-sheet/share-sheet.css +1 -0
  135. package/dist/collection/components/share-sheet/share-sheet.js +1 -1
  136. package/dist/collection/components/stepper/stepper.css +2 -0
  137. package/dist/collection/components/stepper/stepper.js +1 -1
  138. package/dist/collection/components/steps/steps.js +1 -1
  139. package/dist/collection/components/swipe/swipe.js +1 -1
  140. package/dist/collection/components/swipe-item/swipe-item.js +2 -2
  141. package/dist/collection/components/swiper/swiper.js +1 -1
  142. package/dist/collection/components/text-ellipsis/text-ellipsis.js +2 -2
  143. package/dist/collection/components/tour/tour.js +5 -5
  144. package/dist/collection/components/tutorial/tutorial.js +1 -1
  145. package/dist/collection/components/video/video.css +10 -0
  146. package/dist/collection/components/video/video.js +69 -4
  147. package/dist/collection/components/virtual-list/virtual-list.js +1 -1
  148. package/dist/collection/utils/animations/modal/base-fade.js +2 -4
  149. package/dist/collection/utils/animations/modal/fade.js +2 -4
  150. package/dist/collection/utils/animations/modal/rotate.js +2 -4
  151. package/dist/collection/utils/animations/modal/slide.js +2 -4
  152. package/dist/cty-mui/cty-mui.esm.js +1 -1
  153. package/dist/cty-mui/index.esm.js +1 -1
  154. package/dist/cty-mui/p-00e68c05.entry.js +1 -0
  155. package/dist/cty-mui/{p-4c37b963.system.entry.js → p-03f626a3.system.entry.js} +1 -1
  156. package/dist/cty-mui/{p-14d685e6.entry.js → p-0518caca.entry.js} +1 -1
  157. package/dist/cty-mui/{p-1b181c6b.entry.js → p-07c40b0a.entry.js} +1 -1
  158. package/dist/cty-mui/{p-cbbfc071.entry.js → p-09628d3c.entry.js} +1 -1
  159. package/dist/cty-mui/p-0b60e66b.entry.js +1 -0
  160. package/dist/cty-mui/p-10cc33b8.entry.js +1 -0
  161. package/dist/cty-mui/p-162eca47.entry.js +1 -0
  162. package/dist/cty-mui/p-16c44e92.system.js +1 -1
  163. package/dist/cty-mui/{p-9947976e.entry.js → p-17befd5e.entry.js} +1 -1
  164. package/dist/cty-mui/{p-1639635f.system.entry.js → p-18f480a8.system.entry.js} +1 -1
  165. package/dist/cty-mui/p-1ef16927.entry.js +1 -0
  166. package/dist/cty-mui/{p-eff2eb69.entry.js → p-209dc02b.entry.js} +1 -1
  167. package/dist/cty-mui/{p-fa5a88a2.entry.js → p-21d763dc.entry.js} +1 -1
  168. package/dist/cty-mui/{p-9da26241.system.entry.js → p-27274c5c.system.entry.js} +1 -1
  169. package/dist/cty-mui/p-2825ae05.system.entry.js +1 -0
  170. package/dist/cty-mui/p-2a93bb99.system.entry.js +1 -0
  171. package/dist/cty-mui/{p-ec5da891.system.entry.js → p-2f5b92eb.system.entry.js} +1 -1
  172. package/dist/cty-mui/p-314473bf.system.js +1 -0
  173. package/dist/cty-mui/p-31a40f14.entry.js +1 -0
  174. package/dist/cty-mui/{p-899d3ae4.entry.js → p-356ff6b8.entry.js} +1 -1
  175. package/dist/cty-mui/{p-de59b899.system.entry.js → p-382bd91f.system.entry.js} +1 -1
  176. package/dist/cty-mui/{p-e0d81f89.system.entry.js → p-411955a6.system.entry.js} +1 -1
  177. package/dist/cty-mui/{p-f5930227.system.entry.js → p-418a5c0c.system.entry.js} +1 -1
  178. package/dist/cty-mui/p-42f36ec1.system.entry.js +1 -0
  179. package/dist/cty-mui/{p-92e89a65.system.entry.js → p-450a7aea.system.entry.js} +1 -1
  180. package/dist/cty-mui/{p-893a891f.entry.js → p-4803c6d1.entry.js} +1 -1
  181. package/dist/cty-mui/{p-24607f87.entry.js → p-48b6a046.entry.js} +1 -1
  182. package/dist/cty-mui/{p-5bc3b6f0.entry.js → p-4ea3cbd0.entry.js} +1 -1
  183. package/dist/cty-mui/{p-6fe07f47.entry.js → p-4f7edefb.entry.js} +1 -1
  184. package/dist/cty-mui/p-51dc32d0.entry.js +1 -0
  185. package/dist/cty-mui/{p-f8d9479f.entry.js → p-52205475.entry.js} +1 -1
  186. package/dist/cty-mui/{p-3e695dee.entry.js → p-528063e0.entry.js} +1 -1
  187. package/dist/cty-mui/{p-c38466ec.system.entry.js → p-529e2563.system.entry.js} +1 -1
  188. package/dist/cty-mui/{p-862e09dc.entry.js → p-5ba50058.entry.js} +1 -1
  189. package/dist/cty-mui/p-5daeea4a.entry.js +1 -0
  190. package/dist/cty-mui/p-61e3bec8.system.entry.js +1 -0
  191. package/dist/cty-mui/p-637935a6.entry.js +1 -0
  192. package/dist/cty-mui/{p-bba9abb5.entry.js → p-65af8631.entry.js} +1 -1
  193. package/dist/cty-mui/{p-fef9fcb2.entry.js → p-695fa8e8.entry.js} +1 -1
  194. package/dist/cty-mui/{p-89ac0e74.system.entry.js → p-6a292c1d.system.entry.js} +1 -1
  195. package/dist/cty-mui/p-6a65b420.entry.js +1 -0
  196. package/dist/cty-mui/{p-667ec4cd.system.entry.js → p-6d32e043.system.entry.js} +1 -1
  197. package/dist/cty-mui/{p-e211879b.system.entry.js → p-6d9e140d.system.entry.js} +1 -1
  198. package/dist/cty-mui/{p-18164083.system.entry.js → p-6ed7e3eb.system.entry.js} +1 -1
  199. package/dist/cty-mui/p-74972e33.entry.js +1 -0
  200. package/dist/cty-mui/{p-08813e48.system.entry.js → p-797b9c93.system.entry.js} +1 -1
  201. package/dist/cty-mui/p-79a54895.system.entry.js +1 -0
  202. package/dist/cty-mui/p-8493e26e.entry.js +1 -0
  203. package/dist/cty-mui/p-849c8101.system.entry.js +1 -0
  204. package/dist/cty-mui/p-87e6d007.entry.js +1 -0
  205. package/dist/cty-mui/{p-ca263577.system.entry.js → p-8ab69c8b.system.entry.js} +1 -1
  206. package/dist/cty-mui/{p-2bdc0faf.entry.js → p-9d9302e7.entry.js} +1 -1
  207. package/dist/cty-mui/{p-90eddc24.system.entry.js → p-a61fa03a.system.entry.js} +1 -1
  208. package/dist/cty-mui/{p-ac9d7aea.system.entry.js → p-a6272e26.system.entry.js} +1 -1
  209. package/dist/cty-mui/{p-d7423676.system.entry.js → p-a74875fd.system.entry.js} +1 -1
  210. package/dist/cty-mui/{p-d0453a7d.system.entry.js → p-a985c9be.system.entry.js} +1 -1
  211. package/dist/cty-mui/p-ab9c425d.entry.js +1 -0
  212. package/dist/cty-mui/{p-0bfd3ca5.entry.js → p-ac2bd268.entry.js} +1 -1
  213. package/dist/cty-mui/{p-958cb881.entry.js → p-afc17e95.entry.js} +1 -1
  214. package/dist/cty-mui/{p-5b428325.system.entry.js → p-b323462f.system.entry.js} +1 -1
  215. package/dist/cty-mui/p-b4528483.system.entry.js +1 -0
  216. package/dist/cty-mui/p-b46e6c9b.system.entry.js +1 -0
  217. package/dist/cty-mui/{p-eb52b735.system.entry.js → p-c3ff249d.system.entry.js} +1 -1
  218. package/dist/cty-mui/{p-9679dbd7.entry.js → p-c8d7aba5.entry.js} +1 -1
  219. package/dist/cty-mui/{p-df6921d4.system.entry.js → p-c98c948b.system.entry.js} +1 -1
  220. package/dist/cty-mui/{p-f2004e57.entry.js → p-c9ac5105.entry.js} +1 -1
  221. package/dist/cty-mui/{p-d19c42f5.entry.js → p-ca19acfb.entry.js} +1 -1
  222. package/dist/cty-mui/{p-31add44a.system.entry.js → p-cae86616.system.entry.js} +1 -1
  223. package/dist/cty-mui/{p-dc362dd5.system.entry.js → p-d4c44004.system.entry.js} +1 -1
  224. package/dist/cty-mui/{p-d41b5d59.system.entry.js → p-de705c6b.system.entry.js} +1 -1
  225. package/dist/cty-mui/{p-147800bd.system.entry.js → p-e0adff67.system.entry.js} +1 -1
  226. package/dist/cty-mui/{p-c54d8bbc.system.entry.js → p-e101b496.system.entry.js} +1 -1
  227. package/dist/cty-mui/{p-5c1d44f2.system.entry.js → p-e1a7dbb0.system.entry.js} +1 -1
  228. package/dist/cty-mui/p-e59df1a9.system.entry.js +1 -0
  229. package/dist/cty-mui/{p-cd4e549b.system.entry.js → p-e684e369.system.entry.js} +1 -1
  230. package/dist/cty-mui/{p-ebbd2b7f.entry.js → p-e9fb8092.entry.js} +1 -1
  231. package/dist/cty-mui/{p-e41a2196.entry.js → p-eb74a116.entry.js} +1 -1
  232. package/dist/cty-mui/{p-52ae34b4.entry.js → p-ec4e96fa.entry.js} +1 -1
  233. package/dist/cty-mui/{p-5d3f261a.system.entry.js → p-f0357168.system.entry.js} +1 -1
  234. package/dist/cty-mui/p-f2bdc69d.system.entry.js +1 -0
  235. package/dist/cty-mui/p-f36a5045.entry.js +1 -0
  236. package/dist/cty-mui/{p-d9cd6f59.entry.js → p-f37ef451.entry.js} +1 -1
  237. package/dist/cty-mui/{p-a7dd4e88.system.entry.js → p-f3f8786c.system.entry.js} +1 -1
  238. package/dist/cty-mui/{p-1c26060a.entry.js → p-fcc1d1c1.entry.js} +1 -1
  239. package/dist/cty-mui/p-fcd881d0.system.entry.js +1 -0
  240. package/dist/docs.json +265 -25
  241. package/dist/esm/cty-action-sheet.entry.js +5 -5
  242. package/dist/esm/cty-alert_2.entry.js +9 -9
  243. package/dist/esm/cty-article-card.entry.js +2 -2
  244. package/dist/esm/cty-audio.entry.js +5 -5
  245. package/dist/esm/cty-banner.entry.js +1 -1
  246. package/dist/esm/cty-camera-photo.entry.js +3 -3
  247. package/dist/esm/cty-canvas-board.entry.js +1 -1
  248. package/dist/esm/cty-canvas-video.entry.js +1 -1
  249. package/dist/esm/cty-cascader.entry.js +6 -8
  250. package/dist/esm/cty-count-down.entry.js +3 -3
  251. package/dist/esm/cty-crop-image.entry.js +1 -1
  252. package/dist/esm/cty-divider.entry.js +2 -2
  253. package/dist/esm/cty-empty.entry.js +3 -2
  254. package/dist/esm/cty-floating-bubble.entry.js +1 -1
  255. package/dist/esm/cty-floating-panel.entry.js +4 -5
  256. package/dist/esm/cty-icon.entry.js +1 -1
  257. package/dist/esm/cty-image-upload.entry.js +1 -1
  258. package/dist/esm/cty-image-viewer.entry.js +1 -1
  259. package/dist/esm/cty-index-bar.entry.js +3 -3
  260. package/dist/esm/cty-keyboard.entry.js +1 -1
  261. package/dist/esm/cty-loading.entry.js +3 -3
  262. package/dist/esm/cty-media-capture.entry.js +1 -1
  263. package/dist/esm/cty-mui.js +1 -1
  264. package/dist/esm/cty-nav-bar.entry.js +1 -1
  265. package/dist/esm/cty-notice-bar.entry.js +2 -2
  266. package/dist/esm/cty-overlay.entry.js +2 -2
  267. package/dist/esm/cty-pdf-viewer.entry.js +3 -3
  268. package/dist/esm/cty-permission-purpose.entry.js +1 -1
  269. package/dist/esm/cty-progress.entry.js +1 -1
  270. package/dist/esm/cty-quick-access.entry.js +1 -1
  271. package/dist/esm/cty-rate.entry.js +1 -1
  272. package/dist/esm/cty-record.entry.js +2 -2
  273. package/dist/esm/cty-segment-slides.entry.js +5 -2
  274. package/dist/esm/cty-share-sheet.entry.js +2 -2
  275. package/dist/esm/cty-stepper.entry.js +2 -2
  276. package/dist/esm/cty-steps.entry.js +1 -1
  277. package/dist/esm/cty-swipe_2.entry.js +3 -3
  278. package/dist/esm/cty-swiper.entry.js +1 -1
  279. package/dist/esm/cty-text-ellipsis.entry.js +2 -2
  280. package/dist/esm/cty-tour.entry.js +5 -5
  281. package/dist/esm/cty-tutorial.entry.js +1 -1
  282. package/dist/esm/cty-video.entry.js +15 -5
  283. package/dist/esm/cty-virtual-list.entry.js +1 -1
  284. package/dist/esm/index.js +8 -16
  285. package/dist/esm/loader.js +1 -1
  286. package/dist/esm-es5/cty-action-sheet.entry.js +1 -1
  287. package/dist/esm-es5/cty-alert_2.entry.js +1 -1
  288. package/dist/esm-es5/cty-article-card.entry.js +1 -1
  289. package/dist/esm-es5/cty-audio.entry.js +1 -1
  290. package/dist/esm-es5/cty-banner.entry.js +1 -1
  291. package/dist/esm-es5/cty-camera-photo.entry.js +1 -1
  292. package/dist/esm-es5/cty-canvas-board.entry.js +1 -1
  293. package/dist/esm-es5/cty-canvas-video.entry.js +1 -1
  294. package/dist/esm-es5/cty-cascader.entry.js +1 -1
  295. package/dist/esm-es5/cty-count-down.entry.js +1 -1
  296. package/dist/esm-es5/cty-crop-image.entry.js +1 -1
  297. package/dist/esm-es5/cty-divider.entry.js +1 -1
  298. package/dist/esm-es5/cty-empty.entry.js +1 -1
  299. package/dist/esm-es5/cty-floating-bubble.entry.js +1 -1
  300. package/dist/esm-es5/cty-floating-panel.entry.js +1 -1
  301. package/dist/esm-es5/cty-icon.entry.js +1 -1
  302. package/dist/esm-es5/cty-image-upload.entry.js +1 -1
  303. package/dist/esm-es5/cty-image-viewer.entry.js +1 -1
  304. package/dist/esm-es5/cty-index-bar.entry.js +1 -1
  305. package/dist/esm-es5/cty-keyboard.entry.js +1 -1
  306. package/dist/esm-es5/cty-loading.entry.js +1 -1
  307. package/dist/esm-es5/cty-media-capture.entry.js +1 -1
  308. package/dist/esm-es5/cty-mui.js +1 -1
  309. package/dist/esm-es5/cty-nav-bar.entry.js +1 -1
  310. package/dist/esm-es5/cty-notice-bar.entry.js +1 -1
  311. package/dist/esm-es5/cty-overlay.entry.js +1 -1
  312. package/dist/esm-es5/cty-pdf-viewer.entry.js +1 -1
  313. package/dist/esm-es5/cty-permission-purpose.entry.js +1 -1
  314. package/dist/esm-es5/cty-progress.entry.js +1 -1
  315. package/dist/esm-es5/cty-quick-access.entry.js +1 -1
  316. package/dist/esm-es5/cty-rate.entry.js +1 -1
  317. package/dist/esm-es5/cty-record.entry.js +1 -1
  318. package/dist/esm-es5/cty-segment-slides.entry.js +1 -1
  319. package/dist/esm-es5/cty-share-sheet.entry.js +1 -1
  320. package/dist/esm-es5/cty-stepper.entry.js +1 -1
  321. package/dist/esm-es5/cty-steps.entry.js +1 -1
  322. package/dist/esm-es5/cty-swipe_2.entry.js +1 -1
  323. package/dist/esm-es5/cty-swiper.entry.js +1 -1
  324. package/dist/esm-es5/cty-text-ellipsis.entry.js +1 -1
  325. package/dist/esm-es5/cty-tour.entry.js +1 -1
  326. package/dist/esm-es5/cty-tutorial.entry.js +1 -1
  327. package/dist/esm-es5/cty-video.entry.js +1 -1
  328. package/dist/esm-es5/cty-virtual-list.entry.js +1 -1
  329. package/dist/esm-es5/index.js +1 -1
  330. package/dist/esm-es5/loader.js +1 -1
  331. package/dist/types/components/alert/alert.d.ts +1 -1
  332. package/dist/types/components/audio/audio.d.ts +1 -1
  333. package/dist/types/components/cascader/cascader.d.ts +1 -1
  334. package/dist/types/components/empty/empty.d.ts +1 -1
  335. package/dist/types/components/pdf-viewer/pdf-viewer.d.ts +1 -1
  336. package/dist/types/components/segment-slides/segment-slides.d.ts +1 -0
  337. package/dist/types/components/video/video.d.ts +3 -1
  338. package/dist/types/components.d.ts +11 -6
  339. package/dist/types/utils/animations/modal/fade.d.ts +2 -3
  340. package/dist/types/utils/animations/modal/rotate.d.ts +2 -3
  341. package/dist/types/utils/animations/modal/slide.d.ts +2 -3
  342. package/package.json +1 -1
  343. package/dist/cty-mui/p-02767256.entry.js +0 -1
  344. package/dist/cty-mui/p-0909376f.system.entry.js +0 -1
  345. package/dist/cty-mui/p-0d55cf14.system.entry.js +0 -1
  346. package/dist/cty-mui/p-10c1aa0f.system.js +0 -1
  347. package/dist/cty-mui/p-1198f939.entry.js +0 -1
  348. package/dist/cty-mui/p-4056a25c.system.entry.js +0 -1
  349. package/dist/cty-mui/p-6dcc104f.entry.js +0 -1
  350. package/dist/cty-mui/p-77fa3fa3.entry.js +0 -1
  351. package/dist/cty-mui/p-80e03ee5.entry.js +0 -1
  352. package/dist/cty-mui/p-81a5e802.entry.js +0 -1
  353. package/dist/cty-mui/p-8329005b.system.entry.js +0 -1
  354. package/dist/cty-mui/p-8e671133.system.entry.js +0 -1
  355. package/dist/cty-mui/p-8f895694.entry.js +0 -1
  356. package/dist/cty-mui/p-9ff3030a.system.entry.js +0 -1
  357. package/dist/cty-mui/p-a3aaf57c.system.entry.js +0 -1
  358. package/dist/cty-mui/p-a58be5e4.entry.js +0 -1
  359. package/dist/cty-mui/p-c1391708.entry.js +0 -1
  360. package/dist/cty-mui/p-c46402bd.entry.js +0 -1
  361. package/dist/cty-mui/p-c9fcf594.system.entry.js +0 -1
  362. package/dist/cty-mui/p-d0235bb5.entry.js +0 -1
  363. package/dist/cty-mui/p-d0d92a1a.entry.js +0 -1
  364. package/dist/cty-mui/p-d63c2571.entry.js +0 -1
  365. package/dist/cty-mui/p-ddeff6ac.system.entry.js +0 -1
  366. package/dist/cty-mui/p-e5b4e452.system.entry.js +0 -1
  367. package/dist/cty-mui/p-ea818f95.entry.js +0 -1
  368. package/dist/cty-mui/p-f0c8a6e2.entry.js +0 -1
  369. package/dist/cty-mui/p-ff2f8d09.system.entry.js +0 -1
@@ -85,17 +85,17 @@ const ActionSheet = /*@__PURE__*/ proxyCustomElement(class ActionSheet extends H
85
85
  }
86
86
  renderHeader() {
87
87
  if (this.title || this.subtitle || this.closeable)
88
- return (h("div", { class: "cty-action-sheet__header" }, h("slot", { name: "title" }), this.title && h("h2", { class: "cty-action-sheet__title cty-ellipsis" }, this.title), this.subtitle && h("p", { class: "cty-action-sheet__subtitle cty-ellipsis2" }, this.subtitle), h("slot", { name: "subtitle" }), this.closeable && (h("button", { class: "cty-action-sheet__close cty-button-native", onClick: () => this.dismiss() }, h("cty-icon", { name: this.closeIcon })))));
88
+ return (h("div", { class: "cty-action-sheet__header", part: "header" }, h("slot", { name: "title" }), this.title && h("h2", { class: "cty-action-sheet__title cty-ellipsis" }, this.title), this.subtitle && h("p", { class: "cty-action-sheet__subtitle cty-ellipsis2" }, this.subtitle), h("slot", { name: "subtitle" }), this.closeable && (h("button", { class: "cty-action-sheet__close cty-button-native", onClick: () => this.dismiss() }, h("cty-icon", { name: this.closeIcon })))));
89
89
  }
90
90
  renderOptions() {
91
- return (h("div", { class: "cty-action-sheet__options" }, h("slot", { name: "options-start" }), this.options.map((option, idx) => {
92
- return (h("button", { class: { 'cty-action-sheet__option cty-button-native': true, 'flex-column-center': true }, disabled: option.disabled, onClick: () => this._buttonClick(idx) }, h("span", { class: "cty-action-sheet__option-content" }, option.text && (h("span", { class: "cty-action-sheet__option-text", style: { color: option.color } }, ' ', option.text)), option.description && h("span", { class: "cty-action-sheet__option-description" }, option.description))));
91
+ return (h("div", { class: "cty-action-sheet__options", part: "options" }, h("slot", { name: "options-start" }), this.options.map((option, idx) => {
92
+ return (h("button", { part: "option", class: { 'cty-action-sheet__option cty-button-native': true, 'flex-column-center': true }, disabled: option.disabled, onClick: () => this._buttonClick(idx) }, h("span", { class: "cty-action-sheet__option-content" }, option.text && (h("span", { class: "cty-action-sheet__option-text", style: { color: option.color } }, ' ', option.text)), option.description && h("span", { class: "cty-action-sheet__option-description" }, option.description))));
93
93
  }), h("slot", { name: "options-end" })));
94
94
  }
95
95
  render() {
96
- return (h(Host, { key: 'cdc4ed7fee160ead7b0b73434b68fe7eb1bbf2f2', class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { 'overlay-hidden cty-pos-cover': true }), style: { zIndex: `${20000 + this.overlayIndex}` } }, h("cty-overlay", { key: '69530f739ad3cfc2dfa9c64d846393212859bead', animated: false, position: "bottom", backdropDismiss: this.backdropDismiss, onCtyDismiss: () => this.dismiss() }, h("div", { key: '35a36d76641b42d001c474138ce96ed217e50a9c', class: "cty-action-sheet flex-column safe-area-bottom-border-color", onClick: e => {
96
+ return (h(Host, { key: '0e4944340ee226375034d529fe82d4808cd5aebf', class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { 'overlay-hidden cty-pos-cover': true }), style: { zIndex: `${20000 + this.overlayIndex}` } }, h("cty-overlay", { key: '8ad470f7f41c5db0f5efc4ea439825153179ed2c', animated: false, position: "bottom", backdropDismiss: this.backdropDismiss, onCtyDismiss: () => this.dismiss() }, h("div", { key: '18d2dd95902c4273f63f50cdef8fef2d9492c2b7', class: "cty-action-sheet flex-column safe-area-bottom-border-color", onClick: e => {
97
97
  e.stopPropagation();
98
- } }, h("slot", { key: 'e192efca02d4959eba78d615d4389233c861bfd3', name: "header" }), this.renderHeader(), h("slot", { key: '9053f90cd275d7daf5f0abcebca4a98f469f8d56', name: "options" }), this.renderOptions(), this.cancelText && (h("div", { key: '6db5430d506a3f2fd13122ff0b6b3cd900e0554f', class: "cty-action-sheet__cancel" }, h("button", { key: '42b556b829516093255f5c7aa9ac890132bc4826', class: "cty-action-sheet__cancel-button cty-button-native", onClick: () => this.dismiss() }, this.cancelText))), h("slot", { key: '73ff105f389a6548df4c276fc170d0feb08f95c6', name: "cancel" })))));
98
+ } }, h("slot", { key: 'd87ffac93a4b4e042287ae803802c1e2b5e77034', name: "header" }), this.renderHeader(), h("slot", { key: '47b942c7872faf29e3a892b9b6fb72463b84f703', name: "options" }), this.renderOptions(), this.cancelText && (h("div", { key: '5d8812cfe9a121ff3e900796336f0040e5adc85d', class: "cty-action-sheet__cancel" }, h("button", { key: '707d216e4f657ac41c3450eb270e2519969f0d0e', part: "cancel", class: "cty-action-sheet__cancel-button cty-button-native", onClick: () => this.dismiss() }, this.cancelText))), h("slot", { key: 'd03610d01ec280e660edfb7cd1da432b70478d51', name: "cancel" })))));
99
99
  }
100
100
  get el() { return this; }
101
101
  static get watchers() { return {
@@ -6,7 +6,7 @@ import { c as config } from './config2.js';
6
6
  import { d as defineCustomElement$3 } from './icon.js';
7
7
  import { d as defineCustomElement$1 } from './icon2.js';
8
8
 
9
- const alertCss = "*{-webkit-box-sizing:border-box;box-sizing:border-box}p,h1,h2,h3,h4,h5,h6{margin:0;padding:0}.flex{display:-ms-flexbox;display:flex}.flex-wrap{display:-ms-flexbox;display:flex;-ms-flex-flow:wrap;flex-flow:wrap}.flex-align-start{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start}.flex-align-center{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.flex-align-end{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end}.flex-justify-start{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start}.flex-justify-center{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.flex-justify-end{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end}.flex-align-end-start{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:start;justify-content:flex-start}.flex-align-end-center{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:center;justify-content:center}.flex-align-end-end{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:end;justify-content:flex-end}.flex-center{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.flex-center-justify-end{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end}.flex-between{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.flex-center-between{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}.flex-column{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column}.flex-column-align-center{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-align:center;align-items:center}.flex-column-justify-center{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-pack:center;justify-content:center}.flex-column-center{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.flex-column-between{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-pack:justify;justify-content:space-between}.flex-column-center-between{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}.cty-pos-rel{position:relative}.cty-pos-abs{position:absolute}.cty-pos-fix{position:fixed}.cty-pos-sti{position:-webkit-sticky;position:sticky}.cty-pos-cover{position:absolute;top:0;bottom:0;left:0;right:0}.cty-pos-l-t{position:absolute;left:0;top:0}.cty-pos-l-b{position:absolute;left:0;bottom:0}.cty-pos-r-t{position:absolute;right:0;top:0}.cty-pos-r-b{position:absolute;right:0;bottom:0}.cty-pos-100{position:absolute;left:0;top:0;width:100%;height:100%}.cty-pos-w100{position:absolute;left:0;width:100%}.cty-pos-h100{position:absolute;top:0;height:100%}.cty-pos-c{position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}.cty-pos-c-x{position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.cty-pos-c-x-t{position:absolute;top:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.cty-pos-c-x-b{position:absolute;bottom:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.cty-pos-c-y{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.cty-pos-c-y-l{position:absolute;left:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.cty-pos-c-y-r{position:absolute;right:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.cty-button-native{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;margin:0;padding:0;background:transparent;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;line-height:1;border:0;outline:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:0;-webkit-box-shadow:none;box-shadow:none;cursor:pointer}ion-button{--background-activated:transparent;--background-focused:transparent;--background-hover:transparent;--box-shadow:none}ion-grid{padding:0}ion-row{padding:0}ion-col{padding:0}ion-item{--padding-bottom:0;--padding-end:0;--padding-start:0;--padding-top:0;--inner-padding-top:0;--inner-padding-start:0;--inner-padding-end:0;--inner-padding-bottom:0;--inner-border-width:0;--border-width:0;--min-height:0;--background:none;overflow:initial}ion-toast{--width:84%;--height:36px;--color:var(--cty-color-white);--background:rgba(0, 0, 0, 0.7);--border-radius:100px;line-height:1.2;font-size:var(--cty-font-size-base);text-align:center}:host{--cty-alert-overlay-position:fixed;--cty-alert-overlay-z-index:10;--cty-alert-overlay-background:var(--cty-overlay-color);--cty-alert-overlay-width:100vw;--cty-alert-overlay-height:100vh;--cty-alert-overflow:initial;--cty-alert-width:80%;--cty-alert-background:var(--cty-color-white);--cty-alert-padding-bottom:15px;--cty-alert-padding-end:15px;--cty-alert-padding-start:15px;--cty-alert-padding-top:15px;--cty-alert-transform:none;--cty-alert-transform-origin:center center;--cty-alert-border-radius:12px;--cty-alert-img-translate-y:0;--cty-alert-img-width:70px;--cty-alert-img-z-index:0;--cty-alert-title-align:flex-start;--cty-alert-title-color:var(--cty-text-color-primary);--cty-alert-title-size:var(--cty-font-size-medium);--cty-alert-title-weight:600;--cty-alert-title-line-height:20px;--cty-alert-close-top:12px;--cty-alert-close-right:8px;--cty-alert-close-width:24px;--cty-alert-close-height:24px;--cty-alert-close-border-radius:var(--cty-border-radius-circle);--cty-alert-close-border:1px solid var(--cty-text-color-white);--cty-alert-close-size:18px;--cty-alert-close-color:var(--cty-text-color-regular);--cty-alert-content-margin-bottom:20px;--cty-alert-content-margin-top:20px;--cty-alert-content-padding-bottom:0;--cty-alert-content-padding-end:0;--cty-alert-content-padding-start:0;--cty-alert-content-padding-top:0;--cty-alert-content-size:var(--cty-font-size-base);--cty-alert-content-align:justify;--cty-alert-content-color:var(--cty-text-color-primary);--cty-alert-content-line-height:20px;--cty-alert-buttons-direction:row;--cty-alert-buttons-justify:center;--cty-alert-buttons-align:center;--cty-alert-button-width:100%;--cty-alert-button-min-height:36px;--cty-alert-button-padding:0;--cty-alert-button-offset-top:0;--cty-alert-button-offset-right:15px;--cty-alert-button-radius:var(--cty-border-radius-medium);--cty-alert-button-background:var(--cty-color-white);--cty-alert-button-border:1px solid var(--cty-border-color);--cty-alert-button-color:var(--cty-text-color-primary);--cty-alert-button-size:var(--cty-font-size-base);--cty-alert-button-primary-background:var(--cty-color-primary);--cty-alert-button-primary-color:var(--cty-text-color-white);--cty-alert-button-primary-border-color:var(--cty-color-primary)}:host(.overlay-hidden){display:none}cty-overlay{--cty-overlay-position:var(--cty-alert-overlay-position);--cty-overlay-z-index:var(--cty-alert-overlay-z-index);--cty-overlay-background:var(--cty-alert-overlay-background);--cty-overlay-width:var(--cty-alert-overlay-width);--cty-overlay-height:var(--cty-alert-overlay-height)}.cty-alert{overflow:var(--cty-alert-overflow);position:relative;width:var(--cty-alert-width);background:var(--cty-alert-background);padding:var(--cty-alert-padding-top) var(--cty-alert-padding-end) var(--cty-alert-padding-bottom) var(--cty-alert-padding-start);border-radius:var(--cty-alert-border-radius);-webkit-transform-origin:var(--cty-alert-transform-origin);transform-origin:var(--cty-alert-transform-origin);-webkit-transform:var(--cty-alert-transform);transform:var(--cty-alert-transform)}.cty-alert__img{position:absolute;left:50%;top:0;z-index:var(--cty-alert-img-z-index);width:var(--cty-alert-img-width);-webkit-transform:translate(-50%, var(--cty-alert-img-translate-y));transform:translate(-50%, var(--cty-alert-img-translate-y));pointer-events:none}.cty-alert__close{position:absolute;z-index:calc(var(--cty-alert-img-z-index) + 1);right:var(--cty-alert-close-right);top:var(--cty-alert-close-top);font-size:var(--cty-alert-close-size);color:var(--cty-alert-close-color);border-radius:var(--cty-alert-close-border-radius);border:var(--cty-alert-close-border);width:var(--cty-alert-close-width);height:var(--cty-alert-close-height)}.cty-alert__header{position:relative;-ms-flex-pack:var(--cty-alert-title-align);justify-content:var(--cty-alert-title-align)}.cty-alert__title{font-size:var(--cty-alert-title-size);font-weight:var(--cty-alert-title-weight);line-height:var(--cty-alert-title-line-height);color:var(--cty-alert-title-color)}.cty-alert__content{position:relative;margin:var(--cty-alert-content-margin-top) 0 var(--cty-alert-content-margin-bottom);padding:var(--cty-alert-content-padding-top) var(--cty-alert-content-padding-end) var(--cty-alert-content-padding-bottom) var(--cty-alert-content-padding-start);font-size:var(--cty-alert-content-size);color:var(--cty-alert-content-color);line-height:var(--cty-alert-content-line-height);text-align:var(--cty-alert-content-align)}.cty-alert__buttons{-ms-flex-direction:var(--cty-alert-buttons-direction);flex-direction:var(--cty-alert-buttons-direction);-ms-flex-pack:var(--cty-alert-buttons-justify);justify-content:var(--cty-alert-buttons-justify);-ms-flex-align:var(--cty-alert-buttons-align);align-items:var(--cty-alert-buttons-align)}.cty-alert__button{width:var(--cty-alert-button-width);min-height:var(--cty-alert-button-min-height);padding:var(--cty-alert-button-padding);background:var(--cty-alert-button-background);font-size:var(--cty-alert-button-size);color:var(--cty-alert-button-color);border-radius:var(--cty-alert-button-radius);border:var(--cty-alert-button-border)}.cty-alert__button+.cty-alert__button{margin:var(--cty-alert-button-offset-top) 0 0 var(--cty-alert-button-offset-right)}.cty-alert__button:last-child{color:var(--cty-alert-button-primary-color);background:var(--cty-alert-button-primary-background);border-color:var(--cty-alert-button-primary-border-color)}";
9
+ const alertCss = "*{-webkit-box-sizing:border-box;box-sizing:border-box}p,h1,h2,h3,h4,h5,h6{margin:0;padding:0}.flex{display:-ms-flexbox;display:flex}.flex-wrap{display:-ms-flexbox;display:flex;-ms-flex-flow:wrap;flex-flow:wrap}.flex-align-start{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start}.flex-align-center{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.flex-align-end{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end}.flex-justify-start{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start}.flex-justify-center{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.flex-justify-end{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end}.flex-align-end-start{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:start;justify-content:flex-start}.flex-align-end-center{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:center;justify-content:center}.flex-align-end-end{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:end;justify-content:flex-end}.flex-center{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.flex-center-justify-end{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end}.flex-between{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.flex-center-between{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}.flex-column{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column}.flex-column-align-center{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-align:center;align-items:center}.flex-column-justify-center{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-pack:center;justify-content:center}.flex-column-center{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.flex-column-between{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-pack:justify;justify-content:space-between}.flex-column-center-between{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}.cty-pos-rel{position:relative}.cty-pos-abs{position:absolute}.cty-pos-fix{position:fixed}.cty-pos-sti{position:-webkit-sticky;position:sticky}.cty-pos-cover{position:absolute;top:0;bottom:0;left:0;right:0}.cty-pos-l-t{position:absolute;left:0;top:0}.cty-pos-l-b{position:absolute;left:0;bottom:0}.cty-pos-r-t{position:absolute;right:0;top:0}.cty-pos-r-b{position:absolute;right:0;bottom:0}.cty-pos-100{position:absolute;left:0;top:0;width:100%;height:100%}.cty-pos-w100{position:absolute;left:0;width:100%}.cty-pos-h100{position:absolute;top:0;height:100%}.cty-pos-c{position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}.cty-pos-c-x{position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.cty-pos-c-x-t{position:absolute;top:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.cty-pos-c-x-b{position:absolute;bottom:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.cty-pos-c-y{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.cty-pos-c-y-l{position:absolute;left:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.cty-pos-c-y-r{position:absolute;right:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.cty-button-native{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;margin:0;padding:0;background:transparent;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;line-height:1;border:0;outline:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:0;-webkit-box-shadow:none;box-shadow:none;cursor:pointer}ion-button{--background-activated:transparent;--background-focused:transparent;--background-hover:transparent;--box-shadow:none}ion-grid{padding:0}ion-row{padding:0}ion-col{padding:0}ion-item{--padding-bottom:0;--padding-end:0;--padding-start:0;--padding-top:0;--inner-padding-top:0;--inner-padding-start:0;--inner-padding-end:0;--inner-padding-bottom:0;--inner-border-width:0;--border-width:0;--min-height:0;--background:none;overflow:initial}ion-toast{--width:84%;--height:36px;--color:var(--cty-color-white);--background:rgba(0, 0, 0, 0.7);--border-radius:100px;line-height:1.2;font-size:var(--cty-font-size-base);text-align:center}:host{--cty-alert-overlay-position:fixed;--cty-alert-overlay-z-index:10;--cty-alert-overlay-background:var(--cty-overlay-color);--cty-alert-overlay-width:100vw;--cty-alert-overlay-height:100vh;--cty-alert-overflow:initial;--cty-alert-width:80%;--cty-alert-background:var(--cty-color-white);--cty-alert-padding-bottom:15px;--cty-alert-padding-end:15px;--cty-alert-padding-start:15px;--cty-alert-padding-top:15px;--cty-alert-transform:none;--cty-alert-transform-origin:center center;--cty-alert-border-radius:12px;--cty-alert-img-translate-y:0;--cty-alert-img-width:70px;--cty-alert-img-z-index:0;--cty-alert-header-padding:0;--cty-alert-header-margin:0;--cty-alert-title-align:flex-start;--cty-alert-title-color:var(--cty-text-color-primary);--cty-alert-title-size:var(--cty-font-size-medium);--cty-alert-title-weight:600;--cty-alert-title-line-height:20px;--cty-alert-close-top:12px;--cty-alert-close-right:8px;--cty-alert-close-width:24px;--cty-alert-close-height:24px;--cty-alert-close-border-radius:var(--cty-border-radius-circle);--cty-alert-close-border:1px solid var(--cty-text-color-white);--cty-alert-close-size:18px;--cty-alert-close-color:var(--cty-text-color-regular);--cty-alert-content-margin-bottom:20px;--cty-alert-content-margin-top:20px;--cty-alert-content-padding-bottom:0;--cty-alert-content-padding-end:0;--cty-alert-content-padding-start:0;--cty-alert-content-padding-top:0;--cty-alert-content-size:var(--cty-font-size-base);--cty-alert-content-align:justify;--cty-alert-content-text-indent:initial;--cty-alert-content-color:var(--cty-text-color-primary);--cty-alert-content-line-height:20px;--cty-alert-buttons-direction:row;--cty-alert-buttons-justify:center;--cty-alert-buttons-align:center;--cty-alert-buttons-padding:0;--cty-alert-buttons-margin:0;--cty-alert-button-width:100%;--cty-alert-button-min-height:36px;--cty-alert-button-padding:0;--cty-alert-button-offset-top:0;--cty-alert-button-offset-right:15px;--cty-alert-button-radius:var(--cty-border-radius-medium);--cty-alert-button-background:var(--cty-color-white);--cty-alert-button-border:1px solid var(--cty-border-color);--cty-alert-button-color:var(--cty-text-color-primary);--cty-alert-button-size:var(--cty-font-size-base);--cty-alert-button-primary-background:var(--cty-color-primary);--cty-alert-button-primary-color:var(--cty-text-color-white);--cty-alert-button-primary-border-color:var(--cty-color-primary)}:host(.overlay-hidden){display:none}cty-overlay{--cty-overlay-position:var(--cty-alert-overlay-position);--cty-overlay-z-index:var(--cty-alert-overlay-z-index);--cty-overlay-background:var(--cty-alert-overlay-background);--cty-overlay-width:var(--cty-alert-overlay-width);--cty-overlay-height:var(--cty-alert-overlay-height)}.cty-alert{overflow:var(--cty-alert-overflow);position:relative;width:var(--cty-alert-width);background:var(--cty-alert-background);padding:var(--cty-alert-padding-top) var(--cty-alert-padding-end) var(--cty-alert-padding-bottom) var(--cty-alert-padding-start);border-radius:var(--cty-alert-border-radius);-webkit-transform-origin:var(--cty-alert-transform-origin);transform-origin:var(--cty-alert-transform-origin);-webkit-transform:var(--cty-alert-transform);transform:var(--cty-alert-transform)}.cty-alert__img{position:absolute;left:50%;top:0;z-index:var(--cty-alert-img-z-index);width:var(--cty-alert-img-width);-webkit-transform:translate(-50%, var(--cty-alert-img-translate-y));transform:translate(-50%, var(--cty-alert-img-translate-y));pointer-events:none}.cty-alert__close{position:absolute;z-index:calc(var(--cty-alert-img-z-index) + 1);right:var(--cty-alert-close-right);top:var(--cty-alert-close-top);font-size:var(--cty-alert-close-size);color:var(--cty-alert-close-color);border-radius:var(--cty-alert-close-border-radius);border:var(--cty-alert-close-border);width:var(--cty-alert-close-width);height:var(--cty-alert-close-height)}.cty-alert__header{position:relative;-ms-flex-pack:var(--cty-alert-title-align);justify-content:var(--cty-alert-title-align);margin:var(--cty-alert-header-margin);padding:var(--cty-alert-header-padding)}.cty-alert__title{font-size:var(--cty-alert-title-size);font-weight:var(--cty-alert-title-weight);line-height:var(--cty-alert-title-line-height);color:var(--cty-alert-title-color)}.cty-alert__content{position:relative;margin:var(--cty-alert-content-margin-top) 0 var(--cty-alert-content-margin-bottom);padding:var(--cty-alert-content-padding-top) var(--cty-alert-content-padding-end) var(--cty-alert-content-padding-bottom) var(--cty-alert-content-padding-start);font-size:var(--cty-alert-content-size);color:var(--cty-alert-content-color);line-height:var(--cty-alert-content-line-height);text-align:var(--cty-alert-content-align);text-indent:var(--cty-alert-content-text-indent)}.cty-alert__buttons{-ms-flex-direction:var(--cty-alert-buttons-direction);flex-direction:var(--cty-alert-buttons-direction);-ms-flex-pack:var(--cty-alert-buttons-justify);justify-content:var(--cty-alert-buttons-justify);-ms-flex-align:var(--cty-alert-buttons-align);align-items:var(--cty-alert-buttons-align);margin:var(--cty-alert-buttons-margin);padding:var(--cty-alert-buttons-padding)}.cty-alert__button{width:var(--cty-alert-button-width);min-height:var(--cty-alert-button-min-height);padding:var(--cty-alert-button-padding);background:var(--cty-alert-button-background);font-size:var(--cty-alert-button-size);color:var(--cty-alert-button-color);border-radius:var(--cty-alert-button-radius);border:var(--cty-alert-button-border)}.cty-alert__button+.cty-alert__button{margin:var(--cty-alert-button-offset-top) 0 0 var(--cty-alert-button-offset-right)}.cty-alert__button:last-child{color:var(--cty-alert-button-primary-color);background:var(--cty-alert-button-primary-background);border-color:var(--cty-alert-button-primary-border-color)}";
10
10
  const CtyAlertStyle0 = alertCss;
11
11
 
12
12
  const Alert = /*@__PURE__*/ proxyCustomElement(class Alert extends HTMLElement {
@@ -33,7 +33,7 @@ const Alert = /*@__PURE__*/ proxyCustomElement(class Alert extends HTMLElement {
33
33
  this.img = '';
34
34
  this.closeable = true;
35
35
  this.content = '';
36
- this.buttons = config.get('alertButtons') || [];
36
+ this.buttons = undefined;
37
37
  this.root = 'default';
38
38
  this.animated = false;
39
39
  this.cssClass = undefined;
@@ -48,7 +48,7 @@ const Alert = /*@__PURE__*/ proxyCustomElement(class Alert extends HTMLElement {
48
48
  }
49
49
  }
50
50
  buttonsChanged() {
51
- const buttons = this.buttons;
51
+ const buttons = this.buttons || config.get('alertButtons', []);
52
52
  this._buttonList = buttons === null || buttons === void 0 ? void 0 : buttons.map((p) => {
53
53
  if (typeof p === 'string') {
54
54
  const item = {};
@@ -94,14 +94,14 @@ const Alert = /*@__PURE__*/ proxyCustomElement(class Alert extends HTMLElement {
94
94
  return eventMethod(this.el, 'ctyWillDismiss');
95
95
  }
96
96
  async _buttonClick(item, index) {
97
- item.handler && await item.handler(this.buttons[index]);
97
+ item.handler && await item.handler((this.buttons || config.get('alertButtons', []))[index]);
98
98
  this.ctyTap.emit({ item, index });
99
99
  if (item.action && item.action.toLowerCase() === 'cancel') {
100
100
  this.dismiss();
101
101
  }
102
102
  }
103
103
  render() {
104
- return (h(Host, { key: 'd713b1fd9c8192603fb4d54aaeb17feaacfba32e', class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { 'overlay-hidden cty-pos-cover': true }), style: { zIndex: `${20000 + this.overlayIndex}` } }, h("cty-overlay", { key: '18a256d64b3173d04b4e5dfa47513e5404a7f6ac', animated: false, backdropDismiss: this.backdropDismiss, onCtyDismiss: () => this.dismiss() }, h("slot", { key: '1691e36d515c56512fef9d93b632dfefc0c91bda', name: "alert" }), h("div", { key: 'd96c607e2dab8ae4b71060195f5804446a7edd1d', class: "cty-alert", onClick: (e) => e.stopPropagation() }, this.img && h("img", { key: '04d4f58723ceff6ce797371207ef81f39ef728c5', src: this.img, class: "cty-alert__img" }), this.closeable && h("slot", { key: '2ca5608f330e30c842fa556129fadb7c9856bb66', name: "close" }, h("button", { key: '12356f982f54749cef1942f8eb48795e627da41c', class: "cty-alert__close cty-button-native", onClick: () => this.dismiss() }, h("cty-icon", { key: '15bfd6cb29347ecc7f5b465c3f64f70e97e93790', name: "cty-close2" }))), h("slot", { key: '576ca650954e4156b402825f4afaeec638d03ed9', name: "header" }), h("div", { key: 'aa230ed44509e56277b68e04173c186aca8dba8c', class: "cty-alert__header flex-align-center" }, h("slot", { key: 'faa4bd8151d03ab5174a85afb69f6f72283edfd7', name: "title-start" }), h("h3", { key: 'c0d369168c5d26f9b5d89b719178c972e11bdc83', class: "cty-alert__title" }, this.title), h("slot", { key: 'e06b7b2585f86473c96c3319a640ce5c89364997', name: "title-end" })), h("slot", { key: '8778e1b3f88da15a37e8e2ff1cbf60bbc5de7d21', name: "content" }), this.content && h("div", { key: '26580052b132aae741a0d11610953b16f051d3bb', class: "cty-alert__content", innerHTML: sanitizeDOMString(this.content) }), h("slot", { key: 'abee9be674db2c73e3e6dbfc82e57325680a488e', name: "buttons" }), !!this._buttonList.length && h("div", { key: '1b264ebe249a100f7d32e296b52a0f3271ed35c6', class: "cty-alert__buttons flex" }, this._buttonList.map((ele, idx) => h("button", { onClick: () => this._buttonClick(ele, idx), class: { 'cty-alert__button cty-button-native': true } }, ele.text))), h("slot", { key: '54589a597eeac8f264d18a6809a33c3c6ed23f7f', name: "bottom" })))));
104
+ return (h(Host, { key: '959ed76f6084891a99fb90008df48b4f39bf44fc', class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { 'overlay-hidden cty-pos-cover': true }), style: { zIndex: `${20000 + this.overlayIndex}` } }, h("cty-overlay", { key: '428839b5edca9837bb10c21632ba580119a51ac3', animated: false, backdropDismiss: this.backdropDismiss, onCtyDismiss: () => this.dismiss() }, h("slot", { key: '37d9df8286b23d234d85c1b33b91db2128d58492', name: "alert" }), h("div", { key: '39e50b5b2f81e95b10ac392c31ee02342a92d684', class: "cty-alert", onClick: (e) => e.stopPropagation() }, this.img && h("img", { key: 'c9c21149b8419d37019e1312a8abe7654960514d', src: this.img, class: "cty-alert__img" }), this.closeable && h("slot", { key: '0ee3f870e8dbb6bb153620241b8e19ca0947dde3', name: "close" }, h("button", { key: '49a935a9de515e16977ad310ba1ee583ad470aa5', class: "cty-alert__close cty-button-native", onClick: () => this.dismiss() }, h("cty-icon", { key: '1756645fc07d22bd42e7a6273ea887277c8ffcfe', name: "cty-close2" }))), h("slot", { key: '79f092f60b55247ff4caa919fb57df81dd1e7214', name: "header" }), h("div", { key: 'fd4a14e9a412043b3ceb6ad29793f0d3d1d4b2fe', class: "cty-alert__header flex-align-center", part: "header" }, h("slot", { key: 'c364da9e26183ab9cc5bf8836c1394ffa528d56e', name: "title-start" }), h("h3", { key: '18477afe5c3cc4d0a929d5cc2401ebf862ae233a', class: "cty-alert__title" }, this.title), h("slot", { key: '85ef231b12ddd0c878feaa5d664a3949e75b90d0', name: "title-end" })), h("slot", { key: '523ee1cb831024ccd7816a21dfc8085f4cb23fae', name: "content" }), this.content && h("div", { key: '2427057ffc166446c7bf14ac2d9e62bb3da4c674', part: "content", class: "cty-alert__content", innerHTML: sanitizeDOMString(this.content) }), h("slot", { key: '7c5f6b8a30732983d1745f92f029cddb3cf10041', name: "buttons" }), !!this._buttonList.length && h("div", { key: '781d0cab69ca15fc591f599622bb22cbb6f1c38b', class: "cty-alert__buttons flex", part: "buttons" }, this._buttonList.map((ele, idx) => h("button", { part: "button button" + idx, onClick: () => this._buttonClick(ele, idx), class: { 'cty-alert__button cty-button-native': true } }, ele.text))), h("slot", { key: '681f5313cf4b4313926578fe88d0ddd5a7551e20', name: "bottom" })))));
105
105
  }
106
106
  get el() { return this; }
107
107
  static get watchers() { return {
@@ -60,7 +60,7 @@ const Banner = /*@__PURE__*/ proxyCustomElement(class Banner extends HTMLElement
60
60
  indicator,
61
61
  touchable
62
62
  };
63
- return (h(Host, { key: 'e6bb5b37afc1903102f472fed7ce11372cda4531', class: "cty-banner" }, h("cty-swipe", Object.assign({ key: 'd7d9a040a27f8b1510496c084a20b15a03550339', class: "cty-banner__swipe" }, attrs, { onCtyChange: (e) => this.handleChange(e), ref: (el) => this.swipeEl = el }), this._banners.map((item, index) => (h("cty-swipe-item", { class: "cty-banner__swipe-item", onClick: (e) => { this.handleTap(e, item, index); } }, item[this.props.pic] && h("img", { class: "cty-banner__img", src: item[this.props.pic], alt: item[this.props.alt || ''] }), h("slot", { name: index + '' })))), h("slot", { key: 'c61fb12e3c1cf3a4c5bf2f432761dfd1a6218fe8', slot: "start", name: "start" }), h("slot", { key: '82d127e0d47c3cd6836fecd07bb6cd01da9644b9', slot: "end", name: "end" }))));
63
+ return (h(Host, { key: 'c8fc6e5308ddff650870f7b9cd69c95180f4ff46', class: "cty-banner" }, h("cty-swipe", Object.assign({ key: '80020a2b65ed9e067d6e345d2962ac7880a38fc5', class: "cty-banner__swipe" }, attrs, { onCtyChange: (e) => this.handleChange(e), ref: (el) => this.swipeEl = el }), this._banners.map((item, index) => (h("cty-swipe-item", { class: "cty-banner__swipe-item", onClick: (e) => { this.handleTap(e, item, index); } }, item[this.props.pic] && h("img", { class: "cty-banner__img", src: item[this.props.pic], alt: item[this.props.alt || ''] }), h("slot", { name: index + '' })))), h("slot", { key: 'f929374df6ae7db99663cbf311ad3e30e8864114', slot: "start", name: "start" }), h("slot", { key: 'e03ec41fa220c6d4347cffbdee37a58519e58f03', slot: "end", name: "end" }))));
64
64
  }
65
65
  get el() { return this; }
66
66
  static get watchers() { return {
@@ -35,11 +35,11 @@ const Circle = /*@__PURE__*/ proxyCustomElement(class Circle extends HTMLElement
35
35
  this.updateSVGAttr();
36
36
  }
37
37
  updateSVGAttr() {
38
- var _a, _b, _c, _d, _e;
38
+ var _a, _b, _c, _d;
39
39
  (_a = this.svgEl) === null || _a === void 0 ? void 0 : _a.setAttribute('viewBox', `0 0 ${+this.width + this.rad * 2} ${+this.width + this.rad * 2}`);
40
40
  (_b = this.layerEl) === null || _b === void 0 ? void 0 : _b.setAttribute('d', this._getPath());
41
41
  (_c = this.hoverEl) === null || _c === void 0 ? void 0 : _c.setAttribute('d', this._getPath());
42
- Array.from((_e = (_d = this.svgEl) === null || _d === void 0 ? void 0 : _d.querySelectorAll('stop')) !== null && _e !== void 0 ? _e : []).forEach((stopEL, index) => {
42
+ Array.from(((_d = this.svgEl) === null || _d === void 0 ? void 0 : _d.querySelectorAll('stop')) || []).forEach((stopEL, index) => {
43
43
  stopEL.setAttribute('key', index.toString());
44
44
  stopEL.setAttribute('offset', this.colors[index].offset);
45
45
  stopEL.setAttribute('stop-color', this.colors[index].color);
@@ -59,11 +59,11 @@ const Circle = /*@__PURE__*/ proxyCustomElement(class Circle extends HTMLElement
59
59
  return `M ${viewBoxSize / 2} ${viewBoxSize / 2} m 0, -500 a 500, 500 0 1, ${sweepFlag} 0, 1000 a 500, 500 0 1, ${sweepFlag} 0, -1000`;
60
60
  }
61
61
  render() {
62
- return (h(Host, { key: '75beb83b1851d9a87ad50c7b7185f317e858bc50', class: "cty-circle" }, h("svg", { key: '256c80eb3a76c7cd2356255f0c46e0e2cb372dc0', ref: el => (this.svgEl = el) }, this.needDefs && h("defs", { key: 'dadae631ca1d7329c6e46cf6dffc316ee0902b3a' }, h("linearGradient", { key: '49ceccab6b71b5382f0f93a9015c7582ee2bce6c', id: this.gradientId, x1: "100%", y1: "0%", x2: "0%", y2: "0%" }, this.colors.map(() => (h("stop", null))))), h("path", { key: '950cf13feb06df61ef664d06ed876db2504bbf98', ref: el => (this.layerEl = el), class: "cty-circle__layer", style: { 'stroke-width': this.width + 'px' } }), h("path", { key: 'a827bc67b031ffc5ba92f00618cbcc27136b7b39', ref: el => (this.hoverEl = el), class: "cty-circle__hover", style: {
62
+ return (h(Host, { key: '4615a36df5463b4f9e9f9f7220ae5937507b21f0', class: "cty-circle" }, h("svg", { key: 'f5ba1507ff597461d60255efc244ff29ddd5ebb4', ref: el => (this.svgEl = el) }, this.needDefs && h("defs", { key: '86b909985b37195fe2cd68b57e97958ae89d100e' }, h("linearGradient", { key: '3f39de431f271a55b73f79be5cce5fb0cb2d8113', id: this.gradientId, x1: "100%", y1: "0%", x2: "0%", y2: "0%" }, this.colors.map(() => (h("stop", null))))), h("path", { key: 'ffa514538439ec99972e8b5c39a5792e5926f987', ref: el => (this.layerEl = el), class: "cty-circle__layer", style: { 'stroke-width': this.width + 'px' } }), h("path", { key: 'c1b5dd07c9b2c94f95c984b0cdd359d0b2799539', ref: el => (this.hoverEl = el), class: "cty-circle__hover", style: {
63
63
  'stroke': this.rate <= 0 && this.zeroTransparent ? 'transparent' : this.needDefs ? 'url(#' + this.gradientId + ')' : this.color,
64
64
  'stroke-width': +this.width + 1 + 'px',
65
65
  'strokeDasharray': (this.rate / 100 * this.perimeter) + 'px ' + this.perimeter + 'px'
66
- } })), this.text !== '' && h("div", { key: '09461790226951d7377eb66cd96ee5965ccc671d', class: "cty-circle__text" }, this.text), h("slot", { key: 'bb9d03247849c466354a217e91123e90c3ae4689' })));
66
+ } })), this.text !== '' && h("div", { key: 'fb130dcdcafb4e61cb7e988613d43e0bcfc23dbc', class: "cty-circle__text" }, this.text), h("slot", { key: 'cf12711e75c472c21b7242559132497bdf78132f' })));
67
67
  }
68
68
  get el() { return this; }
69
69
  static get watchers() { return {
@@ -209,7 +209,7 @@ const CropImage = /*@__PURE__*/ proxyCustomElement(class CropImage extends HTMLE
209
209
  return (h("div", { class: "cty-crop-image__buttons flex-center-between safe-area-bottom-border-color" }, this.cancelText && cancelCmp, this.confirmText && confirmCmp));
210
210
  }
211
211
  render() {
212
- return (h(Host, { key: '33e790d0a11b49f0b8490f2bd03be2acce6877c7', class: "cty-crop-image flex-center", onMouseDown: (e) => this.doTouchStart(e), onTouchStart: (e) => this.doTouchStart(e), onTouchMove: (e) => this.doTouchMove(e), onTouchEnd: () => this.doTouchEnd() }, h("slot", { key: 'd5a1a5850612b75b6209c2828d2a2cd5a293c793', name: "header" }), h("div", { key: 'f459ad61d4405de45dc8312ead8f0021714121bd', class: "cty-crop-image__wrapper", ref: el => (this.imageEl = el) }, h("img", { key: '01a16a69e523d69152233bf545ed9cf8587e8b9f', src: this.url, class: "cty-crop-image__image" })), h("div", { key: 'f0b1ef444ae147b207a36ae4745cfdab2da0c4f7', class: "cty-crop-image__clip", ref: el => (this.clipEl = el) }), h("slot", { key: '8e22b55eead2fcb5807bfd173f644b7402195b56', name: "clip" }), this.renderButtons(), h("slot", { key: '24ddd7d2eef20471cd954508f04ac57e2822de63', name: "footer" })));
212
+ return (h(Host, { key: '43f17e672b771c53152dfe0847e177a0c2ba76aa', class: "cty-crop-image flex-center", onMouseDown: (e) => this.doTouchStart(e), onTouchStart: (e) => this.doTouchStart(e), onTouchMove: (e) => this.doTouchMove(e), onTouchEnd: () => this.doTouchEnd() }, h("slot", { key: 'e2da889d53b0db5b1d430c2a8b4499962bb302cc', name: "header" }), h("div", { key: 'cfb668814543995fa37056d8678707da366ca0b1', class: "cty-crop-image__wrapper", ref: el => (this.imageEl = el) }, h("img", { key: 'af52f5f040a65a485a6dd1a3f31ebe7d5ca7bc9b', src: this.url, class: "cty-crop-image__image" })), h("div", { key: 'a22f4a33ac1ed2bc66e25184fe3773013e3a6475', class: "cty-crop-image__clip", ref: el => (this.clipEl = el) }), h("slot", { key: '155ae12288f52032a3dd9a6f130e5adb8ca657c8', name: "clip" }), this.renderButtons(), h("slot", { key: 'dcd24e27b48a6ca42d3eafec4963d5f251465679', name: "footer" })));
213
213
  }
214
214
  get el() { return this; }
215
215
  static get style() { return CtyCropImageStyle0; }
@@ -1,6 +1,6 @@
1
1
  import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
2
 
3
- const articleCardCss = "*{-webkit-box-sizing:border-box;box-sizing:border-box}p,h1,h2,h3,h4,h5,h6{margin:0;padding:0}.flex{display:-ms-flexbox;display:flex}.flex-wrap{display:-ms-flexbox;display:flex;-ms-flex-flow:wrap;flex-flow:wrap}.flex-align-start{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start}.flex-align-center{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.flex-align-end{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end}.flex-justify-start{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start}.flex-justify-center{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.flex-justify-end{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end}.flex-align-end-start{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:start;justify-content:flex-start}.flex-align-end-center{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:center;justify-content:center}.flex-align-end-end{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:end;justify-content:flex-end}.flex-center{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.flex-center-justify-end{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end}.flex-between{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.flex-center-between{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}.flex-column{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column}.flex-column-align-center{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-align:center;align-items:center}.flex-column-justify-center{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-pack:center;justify-content:center}.flex-column-center{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.flex-column-between{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-pack:justify;justify-content:space-between}.flex-column-center-between{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}:host{--cty-article-card-title-color:var(--cty-text-color-primary);--cty-article-card-title-size:var(--cty-font-size-medium);--cty-article-card-title-weight:500;--cty-article-card-title-line-height:24px;--cty-article-card-title-line-clamp:2;--cty-article-card-thumbnail-width:100px;--cty-article-card-thumbnail-height:auto;--cty-article-card-thumbnail-radius:4px;--cty-article-card-thumbnail-offset:15px;--cty-article-card-thumbnail-offset-top:8px;--cty-article-card-thumbnail-gap:5px;--cty-article-card-thumbnail-img-width:calc((100% - var(--cty-article-card-thumbnail-gap) * 2) / 3);--cty-article-card-thumbnail-img-height:auto;display:block;overflow:hidden;width:100%;background:var(--cty-color-white);padding:12px 15px}:host(.cty-article-card__right){-ms-flex-flow:row-reverse;flex-flow:row-reverse}.cty-article-card__thumbnail{overflow:hidden;min-width:var(--cty-article-card-thumbnail-width);width:var(--cty-article-card-thumbnail-width);height:var(--cty-article-card-thumbnail-height);border-radius:var(--cty-article-card-thumbnail-radius);margin-right:var(--cty-article-card-thumbnail-offset)}.cty-article-card__thumbnail img{display:block;width:100%;height:100%}.cty-article-card__thumbnail-right{margin-right:0;margin-left:var(--cty-article-card-thumbnail-offset)}.cty-article-card__content{-ms-flex:1;flex:1;min-height:var(--cty-article-card-thumbnail-height)}.cty-article-card__title{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--cty-article-card-title-line-clamp);line-clamp:var(--cty-article-card-title-line-clamp);word-break:break-all;line-break:anywhere;color:var(--cty-article-card-title-color);font-size:var(--cty-article-card-title-size);font-weight:var(--cty-article-card-title-weight);line-height:var(--cty-article-card-title-line-height)}.cty-article-card__thumbnails{margin-top:var(--cty-article-card-thumbnail-offset-top)}.cty-article-card__thumbnails-img{width:var(--cty-article-card-thumbnail-img-width);height:var(--cty-article-card-thumbnail-img-height);border-radius:var(--cty-article-card-thumbnail-radius)}.cty-article-card__thumbnails-img:not(:nth-child(3n+1)){margin-left:var(--cty-article-card-thumbnail-gap)}.cty-article-card__thumbnails-img:nth-child(n+4){margin-top:var(--cty-article-card-thumbnail-gap)}";
3
+ const articleCardCss = "*{-webkit-box-sizing:border-box;box-sizing:border-box}p,h1,h2,h3,h4,h5,h6{margin:0;padding:0}.flex{display:-ms-flexbox;display:flex}.flex-wrap{display:-ms-flexbox;display:flex;-ms-flex-flow:wrap;flex-flow:wrap}.flex-align-start{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start}.flex-align-center{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.flex-align-end{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end}.flex-justify-start{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start}.flex-justify-center{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.flex-justify-end{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end}.flex-align-end-start{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:start;justify-content:flex-start}.flex-align-end-center{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:center;justify-content:center}.flex-align-end-end{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:end;justify-content:flex-end}.flex-center{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.flex-center-justify-end{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end}.flex-between{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.flex-center-between{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}.flex-column{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column}.flex-column-align-center{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-align:center;align-items:center}.flex-column-justify-center{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-pack:center;justify-content:center}.flex-column-center{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.flex-column-between{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-pack:justify;justify-content:space-between}.flex-column-center-between{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}:host{--cty-article-card-title-color:var(--cty-text-color-primary);--cty-article-card-title-size:var(--cty-font-size-medium);--cty-article-card-title-weight:500;--cty-article-card-title-line-height:24px;--cty-article-card-title-line-clamp:2;--cty-article-card-thumbnail-width:100px;--cty-article-card-thumbnail-height:auto;--cty-article-card-thumbnail-radius:4px;--cty-article-card-thumbnail-offset:15px;--cty-article-card-thumbnail-offset-top:8px;--cty-article-card-thumbnail-gap:5px;--cty-article-card-thumbnail-img-width:calc((100% - var(--cty-article-card-thumbnail-gap) * 2) / 3);--cty-article-card-thumbnail-img-height:auto;--cty-article-card-content-min-height:auto;--cty-article-card-content-max-width:auto;--cty-article-card-content-margin:0;--cty-article-card-content-padding:0;display:block;overflow:hidden;width:100%;background:var(--cty-color-white);padding:12px 15px}:host(.cty-article-card__right){-ms-flex-flow:row-reverse;flex-flow:row-reverse}.cty-article-card__thumbnail{overflow:hidden;min-width:var(--cty-article-card-thumbnail-width);width:var(--cty-article-card-thumbnail-width);height:var(--cty-article-card-thumbnail-height);border-radius:var(--cty-article-card-thumbnail-radius);margin-right:var(--cty-article-card-thumbnail-offset)}.cty-article-card__thumbnail img{display:block;width:100%;height:100%}.cty-article-card__thumbnail-right{margin-right:0;margin-left:var(--cty-article-card-thumbnail-offset)}.cty-article-card__content{-ms-flex:1;flex:1;min-height:var(--cty-article-card-content-min-height);max-width:var(--cty-article-card-content-max-width);margin:var(--cty-article-card-content-margin);padding:var(--cty-article-card-content-padding)}.cty-article-card__title{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--cty-article-card-title-line-clamp);line-clamp:var(--cty-article-card-title-line-clamp);word-break:break-all;line-break:anywhere;color:var(--cty-article-card-title-color);font-size:var(--cty-article-card-title-size);font-weight:var(--cty-article-card-title-weight);line-height:var(--cty-article-card-title-line-height)}.cty-article-card__thumbnails{margin-top:var(--cty-article-card-thumbnail-offset-top)}.cty-article-card__thumbnails-img{width:var(--cty-article-card-thumbnail-img-width);height:var(--cty-article-card-thumbnail-img-height);border-radius:var(--cty-article-card-thumbnail-radius)}.cty-article-card__thumbnails-img:not(:nth-child(3n+1)){margin-left:var(--cty-article-card-thumbnail-gap)}.cty-article-card__thumbnails-img:nth-child(n+4){margin-top:var(--cty-article-card-thumbnail-gap)}";
4
4
  const CtyArticleCardStyle0 = articleCardCss;
5
5
 
6
6
  const ArticleCard = /*@__PURE__*/ proxyCustomElement(class ArticleCard extends HTMLElement {
@@ -36,7 +36,7 @@ const ArticleCard = /*@__PURE__*/ proxyCustomElement(class ArticleCard extends H
36
36
  }
37
37
  render() {
38
38
  const { currentLayout, singleThumbnail, multiThumbnailUrls, title } = this;
39
- return (h(Host, { key: 'bb88bfebf576c0b44fe7dac7ddd8cd8ee8ff09fa', class: { 'cty-article-card': true, 'flex-between': currentLayout !== 'bottom', 'cty-article-card__right': currentLayout === 'right' } }, singleThumbnail && currentLayout !== 'bottom' && (h("div", { key: '78acc96757848c61265e09b35e9192e7d5a38880', class: { 'cty-article-card__thumbnail': true, 'cty-article-card__thumbnail-right': currentLayout === 'right' } }, h("img", { key: '7d3fd1975b1a4c8cac2b1d546c6d1d65401b0808', src: singleThumbnail }))), h("div", { key: '90ac2600aaff3baea374615f25ea69261f222681', class: "cty-article-card__content flex-column-between" }, h("p", { key: '94a483ba42a18c4da860b4210bb8e0613d2e25a6', class: "cty-article-card__title" }, title), h("slot", { key: '4234fcd05b525ef534f74104d05d3e540e22a8d7' })), multiThumbnailUrls.length > 0 && (h("div", { key: 'fcad4cf18baeac9c02406d5c7072ea712979b38e', class: "cty-article-card__thumbnails flex-wrap" }, multiThumbnailUrls.map(thumbnail => (h("img", { src: thumbnail, class: "cty-article-card__thumbnails-img" })))))));
39
+ return (h(Host, { key: 'bb88bfebf576c0b44fe7dac7ddd8cd8ee8ff09fa', class: { 'cty-article-card': true, 'flex-between': currentLayout !== 'bottom', 'cty-article-card__right': currentLayout === 'right' } }, singleThumbnail && currentLayout !== 'bottom' && (h("div", { key: 'd704a4097df3dc745c69214a19197df1df4d5939', part: "thumbnail", class: { 'cty-article-card__thumbnail': true, 'cty-article-card__thumbnail-right': currentLayout === 'right' } }, h("img", { key: 'c4b87e95bc21042a79ba661dbb41da0b5f1dbc81', src: singleThumbnail }))), h("div", { key: 'd749ad6eb3e0d6c166543f82ea10b9122e473561', class: "cty-article-card__content flex-column-between", part: "content" }, h("p", { key: '382b493320ef7fe173f07f3665918fa432afe5cf', class: "cty-article-card__title" }, title), h("slot", { key: '069dc23553a1a1acd8805d938114b3942b193b23' })), multiThumbnailUrls.length > 0 && (h("div", { key: '5c9a02725ebec4e6069d6517a98c85f05476eb6f', class: "cty-article-card__thumbnails flex-wrap", part: "thumbnails" }, multiThumbnailUrls.map(thumbnail => (h("img", { src: thumbnail, class: "cty-article-card__thumbnails-img" })))))));
40
40
  }
41
41
  get el() { return this; }
42
42
  static get watchers() { return {
@@ -128,11 +128,11 @@ const Audio = /*@__PURE__*/ proxyCustomElement(class Audio extends HTMLElement {
128
128
  }
129
129
  const _currentTime = (this.playProgress / 100.0) * this.audioEl.duration;
130
130
  this.audioEl.currentTime = _currentTime;
131
- this.setPlayedTime();
131
+ this.updatePlayedTime();
132
132
  }
133
133
  }
134
134
  // 设置播放时间
135
- setPlayedTime() {
135
+ async updatePlayedTime() {
136
136
  const currTime = Math.floor(this.audioEl.currentTime);
137
137
  const duration = this.audioEl.duration;
138
138
  this.playProgress = duration > 0 ? Math.round((currTime / duration) * 100) : 0;
@@ -178,11 +178,11 @@ const Audio = /*@__PURE__*/ proxyCustomElement(class Audio extends HTMLElement {
178
178
  const currentTime = this.audioEl.currentTime; /*当前已播放的时间,单位秒*/
179
179
  const d = currentTime / this.audioEl.duration; /*当前播放时常占总时常的百分比*/
180
180
  this.playProgress = Math.floor(d * 100);
181
- this.setPlayedTime();
181
+ this.updatePlayedTime();
182
182
  this.ctyTimeupdate.emit();
183
183
  }
184
184
  _audioCanplay() {
185
- this.setPlayedTime();
185
+ this.updatePlayedTime();
186
186
  this.ctyCanplay.emit();
187
187
  if (this.autoplay && this.isWifi) {
188
188
  this.isPlaying = true;
@@ -252,7 +252,7 @@ const Audio = /*@__PURE__*/ proxyCustomElement(class Audio extends HTMLElement {
252
252
  });
253
253
  }
254
254
  render() {
255
- return (h(Host, { key: '89727e7d285ff0fdce65cb50142470c900431a22', class: "cty-audio flex-align-center" }, h("slot", { key: '2850fdda73c031f524e02fd7f9b6c73b743062a5', name: "start" }), this.playCtrl && (h("button", { key: 'b7d153d4d886cf89369ea0a0645f70ad61b2d031', class: "cty-audio__toggle-play cty-button-native", onClick: () => this.switchAudio() }, h("cty-icon", { key: 'cc23805830636ded1f11ab001e1b0d7c362388ff', name: !this.isPlaying ? 'cty-play' : 'cty-pause' }))), h("slot", { key: 'b8b6825b56a92e1a6a76def44f769926e7fcdb30', name: "range" }), h("div", { key: '38825585418f7c2bf55642a1f2e35f502b3235c6', class: "cty-audio__range flex-column-between" }, h("div", { key: '237f1ba3aba049a943006ea6749a5196ae92b688', class: "cty-audio__range-touch", onTouchStart: e => this._doPrgTouchstart(e), onTouchMove: e => this._doPrgTouchmove(e), onTouchEnd: () => this._doPrgTouchend() }), h("ion-range", { key: '33a2d2fa1fc6d5f4c559a719186c3c109e4bd912', class: "cty-audio__range-progress", value: this.playProgress }), h("div", { key: '706e48939811b4c11c4c3655609238de39798246', class: "cty-audio__range-label flex-center-between" }, h("span", { key: 'ded81ee9783960459b9c0c08db7fe8b5066c5584' }, this.currentTimeLabel), h("span", { key: '5f8322c40afcd1d7f1198b252752c6319369cf79' }, this.totalTimeLabel))), h("div", { key: '141d2524303dc92caaa28401f7ec0909b9a6017a', class: "flex-center cty-audio__rate" }, this.rateVisible && (h("button", { key: 'dea93f01a29236e49733fa45dda14b5d51e549f9', class: "cty-button-native flex-column-between cty-audio__rate-button", onClick: e => this._toSetRate(e) }, h("img", { key: 'b58224024a6613ac55a7d04d64d19598b34ea70c', src: this.rateIconUrl }), h("span", { key: '900b52c5f854efa64d495834cc6bf4014c23f36e' }, "\u500D\u901F"))), h("slot", { key: '8978764ad990c64b97f88d8bffeb6e9816ddbf19', name: "ends" })), h("audio", { key: 'feb06b6a6d092175f212026b5422d0f907c11b7f', ref: el => (this.audioEl = el), preload: "metadata", src: this.url, autoplay: this.autoplay && this.isWifi, onTimeUpdate: () => this._audioTimeupdate(), onCanPlay: () => this._audioCanplay(), onEnded: () => this._audioEnded(), onPlay: () => this._audioPlay(), onPause: () => this._audioPause(), onError: () => this._audioError() }), this.rateDialogVisible && (h("cty-action-sheet", { key: '7a866754c8e34873cbaf4022599519494ac951f1', animated: false, root: '', cancelText: "\u53D6\u6D88", overlayIndex: 1, onCtyDismiss: () => (this.rateDialogVisible = false) }, h("div", { key: 'eb631b13ba552ac05fba523d21b0b11b79b119bb', slot: 'options', class: "cty-overlay__rates" }, this.rates.map((item) => h("button", { class: { active: this.rate == item, 'flex-center-between cty-button-native cty-overlay__rate': true }, onClick: () => this.setPlayRate(item) }, h("span", null, item, "X"), h("cty-icon", { name: this.rate == item ? checkmarkCircle : radioButtonOffOutline, slot: "end" })))))), h("ion-toast", { key: 'e904c019c87ca2fde53a890104a6ae376707a7d5', "is-open": this.isToastVisible, message: this.toastMessage, duration: this.toastDuration, onIonToastDidDismiss: () => this.isToastVisible = false, position: 'middle' })));
255
+ return (h(Host, { key: '1eb1967717312954e4328b5e9707d4d495295dac', class: "cty-audio flex-align-center" }, h("slot", { key: '7b57621cad62f83e35de4404befa22cf93aacc38', name: "start" }), this.playCtrl && (h("button", { key: '3b3f9d3ca211230cfdd582026438b0171cafcad1', class: "cty-audio__toggle-play cty-button-native", onClick: () => this.switchAudio() }, h("cty-icon", { key: '8b788cbd4172d11b6409d2bbaf7739736401aa8e', name: !this.isPlaying ? 'cty-play' : 'cty-pause' }))), h("slot", { key: '3dc13b5d14e50c2d650e2542b7de6612d101d6c5', name: "range" }), h("div", { key: '36b1b804c40088615adbd9f749f5db0ffef24149', class: "cty-audio__range flex-column-between" }, h("div", { key: '453a9882754b11891480d698f7c98b4674f0d417', class: "cty-audio__range-touch", onTouchStart: e => this._doPrgTouchstart(e), onTouchMove: e => this._doPrgTouchmove(e), onTouchEnd: () => this._doPrgTouchend() }), h("ion-range", { key: 'eefc8c6e4404a26ec5d225c418c898e313395267', class: "cty-audio__range-progress", value: this.playProgress }), h("div", { key: 'bbc1fc84a27d76d0a2044e2ac146c2281eef472d', class: "cty-audio__range-label flex-center-between" }, h("span", { key: 'bde1b22eac69823c4b3057886b458784ea4d8c55' }, this.currentTimeLabel), h("span", { key: '2357ba7e2712cba84230cbba7fe7671081460182' }, this.totalTimeLabel))), h("div", { key: '493d6d664479bd4fa8a48863fa8828a9b1e1ac87', class: "flex-center cty-audio__rate" }, this.rateVisible && (h("button", { key: 'd9950ba09a202ceb21304ec715445811d355d69e', class: "cty-button-native flex-column-between cty-audio__rate-button", onClick: e => this._toSetRate(e) }, h("slot", { key: 'e29a92e8918bbe85dd4dcb3f336eeda9f8781226', name: "rate-button" }, h("img", { key: 'f6bc6d5b2ab16091cb593d330bbe6704b874cdb3', src: this.rateIconUrl }), h("span", { key: '1f9dec2f163a44b6437b1c507f96e48192e4cb91' }, "\u500D\u901F")))), h("slot", { key: '13492acc6011c9f46f903874f3727a4eb36fe1e0', name: "rate" })), h("slot", { key: '456f133c5c3f7d07670e514527de87165ce80bef', name: "end" }), h("audio", { key: 'fbf0057af7b356633a4bf9aed0ecdd0dc526f581', ref: el => (this.audioEl = el), preload: "metadata", src: this.url, autoplay: this.autoplay && this.isWifi, onTimeUpdate: () => this._audioTimeupdate(), onCanPlay: () => this._audioCanplay(), onEnded: () => this._audioEnded(), onPlay: () => this._audioPlay(), onPause: () => this._audioPause(), onError: () => this._audioError() }), this.rateDialogVisible && (h("cty-action-sheet", { key: '7dd364906c199faaead13e688f65ccba0f4b0527', animated: false, root: '', cancelText: "\u53D6\u6D88", overlayIndex: 1, onCtyDismiss: () => (this.rateDialogVisible = false) }, h("div", { key: '4d5913627c433f15cc85b70525841eece84ed9d2', slot: 'options', class: "cty-overlay__rates" }, this.rates.map((item) => h("button", { class: { active: this.rate == item, 'flex-center-between cty-button-native cty-overlay__rate': true }, onClick: () => this.setPlayRate(item) }, h("span", null, item, "X"), h("cty-icon", { name: this.rate == item ? checkmarkCircle : radioButtonOffOutline, slot: "end" })))))), h("ion-toast", { key: '9001f89f65f7f9913e54c4b3199c408f7f6f85a0', "is-open": this.isToastVisible, message: this.toastMessage, duration: this.toastDuration, onIonToastDidDismiss: () => this.isToastVisible = false, position: 'middle' })));
256
256
  }
257
257
  get el() { return this; }
258
258
  static get style() { return CtyAudioStyle0; }
@@ -279,6 +279,7 @@ const Audio = /*@__PURE__*/ proxyCustomElement(class Audio extends HTMLElement {
279
279
  "isToastVisible": [32],
280
280
  "toastMessage": [32],
281
281
  "toastDuration": [32],
282
+ "updatePlayedTime": [64],
282
283
  "switchAudio": [64],
283
284
  "play": [64],
284
285
  "pause": [64],
@@ -207,7 +207,7 @@ class CTYImagePicker {
207
207
  }
208
208
  const imagePicker = new CTYImagePicker();
209
209
 
210
- const cameraPhotoCss = "*{-webkit-box-sizing:border-box;box-sizing:border-box}p,h1,h2,h3,h4,h5,h6{margin:0;padding:0}.cty-pos-rel{position:relative}.cty-pos-abs{position:absolute}.cty-pos-fix{position:fixed}.cty-pos-sti{position:-webkit-sticky;position:sticky}.cty-pos-cover{position:absolute;top:0;bottom:0;left:0;right:0}.cty-pos-l-t{position:absolute;left:0;top:0}.cty-pos-l-b{position:absolute;left:0;bottom:0}.cty-pos-r-t{position:absolute;right:0;top:0}.cty-pos-r-b{position:absolute;right:0;bottom:0}.cty-pos-100{position:absolute;left:0;top:0;width:100%;height:100%}.cty-pos-w100{position:absolute;left:0;width:100%}.cty-pos-h100{position:absolute;top:0;height:100%}.cty-pos-c{position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}.cty-pos-c-x{position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.cty-pos-c-x-t{position:absolute;top:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.cty-pos-c-x-b{position:absolute;bottom:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.cty-pos-c-y{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.cty-pos-c-y-l{position:absolute;left:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.cty-pos-c-y-r{position:absolute;right:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}:host{--cty-camera-photo-overlay-position:fixed;--cty-camera-photo-overlay-z-index:10;--cty-camera-photo-overlay-background:var(--cty-overlay-color);--cty-camera-photo-overlay-width:100vw;--cty-camera-photo-overlay-height:100vh;--cty-camera-photo-padding:0;--cty-camera-photo-border-radius:0;--cty-camera-photo-title-color:var(--cty-text-color-primary);--cty-camera-photo-title-size:var(--cty-font-size-medium);--cty-camera-photo-title-line-height:36px;--cty-camera-photo-title-weight:500;--cty-camera-photo-title-align:center;--cty-camera-photo-close-top:10px;--cty-camera-photo-close-right:10px;--cty-camera-photo-close-color:var(--cty-text-color-secondary);--cty-camera-photo-close-size:20px;--cty-camera-photo-option-padding-bottom:14px;--cty-camera-photo-option-padding-top:14px;--cty-camera-photo-option-text-align:center;--cty-camera-photo-option-text-color:var(--cty-text-color-primary);--cty-camera-photo-option-text-size:var(--cty-font-size-medium);--cty-camera-photo-option-text-line-height:22px;--cty-camera-photo-cancel-background:var(--cty-color-white);--cty-camera-photo-cancel-padding-top:0;--cty-camera-photo-cancel-padding-bottom:0;--cty-camera-photo-cancel-border:8px solid var(--cty-border-color-extra-light);--cty-camera-photo-cancel-color:var(--cty-text-color-primary);--cty-camera-photo-cancel-min-height:48px;--cty-camera-photo-cancel-size:var(--cty-font-size-medium);--cty-camera-photo-crop-width:100vw;--cty-camera-photo-crop-height:100vh;--cty-camera-photo-crop-background:var(--cty-color-black);--cty-camera-photo-crop-clip-height:100vw;--cty-camera-photo-crop-clip-width:100vw;--cty-camera-photo-crop-clip-background:var(--cty-overlay-color-dark);--cty-camera-photo-crop-clip-border:1px solid #767676;--cty-camera-photo-crop-buttons-padding:12px 0;--cty-camera-photo-crop-button-padding:0 12px;--cty-camera-photo-crop-button-color:var(--cty-text-color-white);--cty-camera-photo-crop-button-active-color:var(--cty-text-color-white);--cty-camera-photo-crop-button-size:var(--cty-font-size-base);--cty-camera-photo-crop-button-line-height:30px;--cty-camera-photo-crop-button-weight:400;--cty-camera-photo-crop-overlay-background:var(--cty-overlay-color);--cty-camera-photo-permission-purpose-overlay-background:transparent;--cty-camera-photo-permission-purpose-overlay-height:auto}:host(.overlay-hidden){display:none}cty-action-sheet{--cty-action-sheet-overlay-position:var(--cty-camera-photo-overlay-position);--cty-action-sheet-overlay-z-index:var(--cty-camera-photo-overlay-z-index);--cty-action-sheet-overlay-width:var(--cty-camera-photo-overlay-width);--cty-action-sheet-overlay-height:var(--cty-camera-photo-overlay-height);--cty-action-sheet-overlay-background:var(--cty-camera-photo-overlay-background);--cty-action-sheet-padding:var(--cty-camera-photo-padding);--cty-action-sheet-border-radius:var(--cty-camera-photo-border-radius);--cty-action-sheet-title-color:var(--cty-camera-photo-title-color);--cty-action-sheet-title-size:var(--cty-camera-photo-title-size);--cty-action-sheet-title-line-height:var(--cty-camera-photo-title-line-height);--cty-action-sheet-title-weight:var(--cty-camera-photo-title-weight);--cty-action-sheet-title-align:var(--cty-camera-photo-title-align);--cty-action-sheet-close-top:var(--cty-action-sheet-close-top);--cty-action-sheet-close-right:var(--cty-action-sheet-close-right);--cty-action-sheet-close-color:var(--cty-action-sheet-close-color);--cty-action-sheet-close-size:var(--cty-action-sheet-close-size);--cty-action-sheet-option-padding-bottom:var(--cty-camera-photo-option-padding-bottom);--cty-action-sheet-option-padding-top:var(--cty-camera-photo-option-padding-top);--cty-action-sheet-option-text-align:var(--cty-camera-photo-option-text-align);--cty-action-sheet-option-text-color:var(--cty-camera-photo-option-text-color);--cty-action-sheet-option-text-size:var(--cty-camera-photo-option-text-size);--cty-action-sheet-option-text-line-height:var(--cty-camera-photo-option-text-line-height);--cty-action-sheet-cancel-background:var(--cty-camera-photo-cancel-background);--cty-action-sheet-cancel-padding-top:var(--cty-camera-photo-cancel-padding-top);--cty-action-sheet-cancel-padding-bottom:var(--cty-camera-photo-cancel-padding-bottom);--cty-action-sheet-cancel-border:var(--cty-camera-photo-cancel-border);--cty-action-sheet-cancel-color:var(--cty-camera-photo-cancel-color);--cty-action-sheet-cancel-min-height:var(--cty-camera-photo-cancel-min-height);--cty-action-sheet-cancel-size:var(--cty-camera-photo-cancel-size)}cty-overlay{--cty-overlay-background:var(--cty-camera-photo-crop-overlay-background)}cty-crop-image{--background:var(--cty-camera-photo-crop-background);--width:var(--cty-camera-photo-crop-width);--height:var(--cty-camera-photo-crop-height);--clip-width:var(--cty-camera-photo-crop-clip-width);--clip-height:var(--cty-camera-photo-crop-clip-height);--buttons-padding-start:var(--cty-camera-photo-crop-buttons-padding-start);--buttons-padding-end:var(--cty-camera-photo-crop-buttons-padding-end);--buttons-padding-top:var(--cty-camera-photo-crop-buttons-padding-top);--buttons-padding-bottom:var(--cty-camera-photo-crop-buttons-padding-bottom);--label-size:var(--cty-camera-photo-crop-label-size);--label-color:var(--cty-camera-photo-crop-label-color);--clip-background:var(--cty-camera-photo-crop-clip-background)}cty-permission-purpose{--cty-permission-purpose-overlay-background:var(--cty-camera-photo-permission-purpose-overlay-background);--cty-permission-purpose-overlay-height:var(--cty-camera-photo-permission-purpose-overlay-height)}";
210
+ const cameraPhotoCss = "*{-webkit-box-sizing:border-box;box-sizing:border-box}p,h1,h2,h3,h4,h5,h6{margin:0;padding:0}.cty-pos-rel{position:relative}.cty-pos-abs{position:absolute}.cty-pos-fix{position:fixed}.cty-pos-sti{position:-webkit-sticky;position:sticky}.cty-pos-cover{position:absolute;top:0;bottom:0;left:0;right:0}.cty-pos-l-t{position:absolute;left:0;top:0}.cty-pos-l-b{position:absolute;left:0;bottom:0}.cty-pos-r-t{position:absolute;right:0;top:0}.cty-pos-r-b{position:absolute;right:0;bottom:0}.cty-pos-100{position:absolute;left:0;top:0;width:100%;height:100%}.cty-pos-w100{position:absolute;left:0;width:100%}.cty-pos-h100{position:absolute;top:0;height:100%}.cty-pos-c{position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}.cty-pos-c-x{position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.cty-pos-c-x-t{position:absolute;top:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.cty-pos-c-x-b{position:absolute;bottom:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.cty-pos-c-y{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.cty-pos-c-y-l{position:absolute;left:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.cty-pos-c-y-r{position:absolute;right:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}:host{--cty-camera-photo-overlay-position:fixed;--cty-camera-photo-overlay-z-index:10;--cty-camera-photo-overlay-background:var(--cty-overlay-color);--cty-camera-photo-overlay-width:100vw;--cty-camera-photo-overlay-height:100vh;--cty-camera-photo-padding:0;--cty-camera-photo-border-radius:0;--cty-camera-photo-title-color:var(--cty-text-color-primary);--cty-camera-photo-title-size:var(--cty-font-size-medium);--cty-camera-photo-title-line-height:36px;--cty-camera-photo-title-weight:500;--cty-camera-photo-title-align:center;--cty-camera-photo-close-top:10px;--cty-camera-photo-close-right:10px;--cty-camera-photo-close-color:var(--cty-text-color-secondary);--cty-camera-photo-close-size:20px;--cty-camera-photo-option-padding-bottom:14px;--cty-camera-photo-option-padding-top:14px;--cty-camera-photo-option-text-align:center;--cty-camera-photo-option-text-color:var(--cty-text-color-primary);--cty-camera-photo-option-text-size:var(--cty-font-size-medium);--cty-camera-photo-option-text-line-height:22px;--cty-camera-photo-cancel-background:var(--cty-color-white);--cty-camera-photo-cancel-padding-top:0;--cty-camera-photo-cancel-padding-bottom:0;--cty-camera-photo-cancel-border:8px solid var(--cty-border-color-extra-light);--cty-camera-photo-cancel-color:var(--cty-text-color-primary);--cty-camera-photo-cancel-min-height:48px;--cty-camera-photo-cancel-size:var(--cty-font-size-medium);--cty-camera-photo-crop-width:100vw;--cty-camera-photo-crop-height:100vh;--cty-camera-photo-crop-background:var(--cty-color-black);--cty-camera-photo-crop-clip-height:100vw;--cty-camera-photo-crop-clip-width:100vw;--cty-camera-photo-crop-clip-background:var(--cty-overlay-color-dark);--cty-camera-photo-crop-clip-border:1px solid #767676;--cty-camera-photo-crop-buttons-padding:12px 0;--cty-camera-photo-crop-button-padding:0 12px;--cty-camera-photo-crop-button-color:var(--cty-text-color-white);--cty-camera-photo-crop-button-active-color:var(--cty-text-color-white);--cty-camera-photo-crop-button-size:var(--cty-font-size-base);--cty-camera-photo-crop-button-line-height:30px;--cty-camera-photo-crop-button-weight:400;--cty-camera-photo-crop-overlay-background:var(--cty-overlay-color);--cty-camera-photo-permission-purpose-overlay-background:transparent;--cty-camera-photo-permission-purpose-overlay-height:auto}:host(.overlay-hidden){display:none}cty-action-sheet{--cty-action-sheet-overlay-position:var(--cty-camera-photo-overlay-position);--cty-action-sheet-overlay-z-index:var(--cty-camera-photo-overlay-z-index);--cty-action-sheet-overlay-width:var(--cty-camera-photo-overlay-width);--cty-action-sheet-overlay-height:var(--cty-camera-photo-overlay-height);--cty-action-sheet-overlay-background:var(--cty-camera-photo-overlay-background);--cty-action-sheet-padding:var(--cty-camera-photo-padding);--cty-action-sheet-border-radius:var(--cty-camera-photo-border-radius);--cty-action-sheet-title-color:var(--cty-camera-photo-title-color);--cty-action-sheet-title-size:var(--cty-camera-photo-title-size);--cty-action-sheet-title-line-height:var(--cty-camera-photo-title-line-height);--cty-action-sheet-title-weight:var(--cty-camera-photo-title-weight);--cty-action-sheet-title-align:var(--cty-camera-photo-title-align);--cty-action-sheet-close-top:var(--cty-action-sheet-close-top);--cty-action-sheet-close-right:var(--cty-action-sheet-close-right);--cty-action-sheet-close-color:var(--cty-action-sheet-close-color);--cty-action-sheet-close-size:var(--cty-action-sheet-close-size);--cty-action-sheet-option-padding-bottom:var(--cty-camera-photo-option-padding-bottom);--cty-action-sheet-option-padding-top:var(--cty-camera-photo-option-padding-top);--cty-action-sheet-option-text-align:var(--cty-camera-photo-option-text-align);--cty-action-sheet-option-text-color:var(--cty-camera-photo-option-text-color);--cty-action-sheet-option-text-size:var(--cty-camera-photo-option-text-size);--cty-action-sheet-option-text-line-height:var(--cty-camera-photo-option-text-line-height);--cty-action-sheet-cancel-background:var(--cty-camera-photo-cancel-background);--cty-action-sheet-cancel-padding-top:var(--cty-camera-photo-cancel-padding-top);--cty-action-sheet-cancel-padding-bottom:var(--cty-camera-photo-cancel-padding-bottom);--cty-action-sheet-cancel-border:var(--cty-camera-photo-cancel-border);--cty-action-sheet-cancel-color:var(--cty-camera-photo-cancel-color);--cty-action-sheet-cancel-min-height:var(--cty-camera-photo-cancel-min-height);--cty-action-sheet-cancel-size:var(--cty-camera-photo-cancel-size)}cty-overlay{--cty-overlay-background:var(--cty-camera-photo-crop-overlay-background)}cty-crop-image{background:var(--cty-camera-photo-crop-background);width:var(--cty-camera-photo-crop-width);height:var(--cty-camera-photo-crop-height);--cty-crop-image-clip-width:var(--cty-camera-photo-crop-clip-width);--cty-crop-image-clip-height:var(--cty-camera-photo-crop-clip-height);--cty-crop-image-clip-background:var(--cty-camera-photo-crop-clip-background);--cty-crop-image-clip-border:var(--cty-camera-photo-crop-clip-border);--cty-crop-image-buttons-padding:var(--cty-camera-photo-crop-buttons-padding);--cty-crop-image-button-padding:var(--cty-camera-photo-crop-button-padding);--cty-crop-image-button-color:var(--cty-camera-photo-crop-button-color);--cty-crop-image-button-active-color:var(--cty-camera-photo-crop-button-active-color);--cty-crop-image-button-size:var(--cty-camera-photo-crop-button-size);--cty-crop-image-button-line-height:var(--cty-camera-photo-crop-button-line-height);--cty-crop-image-button-weight:var(--cty-camera-photo-crop-overlay-background)}cty-permission-purpose{--cty-permission-purpose-overlay-background:var(--cty-camera-photo-permission-purpose-overlay-background);--cty-permission-purpose-overlay-height:var(--cty-camera-photo-permission-purpose-overlay-height)}";
211
211
  const CtyCameraPhotoStyle0 = cameraPhotoCss;
212
212
 
213
213
  const CameraPhoto = /*@__PURE__*/ proxyCustomElement(class CameraPhoto extends HTMLElement {
@@ -377,7 +377,7 @@ const CameraPhoto = /*@__PURE__*/ proxyCustomElement(class CameraPhoto extends H
377
377
  return;
378
378
  })
379
379
  .catch(err => {
380
- return err !== null && err !== void 0 ? err : null;
380
+ return err === undefined ? null : err;
381
381
  });
382
382
  }
383
383
  _doCropCancel() {
@@ -394,7 +394,7 @@ const CameraPhoto = /*@__PURE__*/ proxyCustomElement(class CameraPhoto extends H
394
394
  this.ctyTap.emit({ index, imageList });
395
395
  }
396
396
  render() {
397
- return (h(Host, { key: '4c2d1efa2be4b2476a0f902206c3e1fe3ce751ac', class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { 'overlay-hidden': true, 'cty-pos-cover': this.overlay }), style: { zIndex: `${20000 + this.overlayIndex}` } }, h("cty-action-sheet", { key: '73c417aefe33006e51bec62568118c548948394f', animated: false, overlayIndex: 1, backdropDismiss: this.backdropDismiss, title: this.title, closeable: this.closeable, closeIcon: this.closeIcon, cancelText: this.cancelText, options: this.options, onCtyDismiss: () => this.dismiss(), onCtyTap: e => this._buttonClick(e) }), this.showCropImage && (h("cty-overlay", { key: '90b340e70bcd16d26592b389fd76cb1ee785ca52', animated: false, backdropDismiss: false }, h("cty-crop-image", { key: '586caf34285ef0b39e05e803fca5abb190f863e4', url: this.clipImage, cancelText: this.clipCancelText, confirmText: this.clipCconfirmText, imageWidth: this.clipImageWidth, imageBackground: this.clipImageBg, maxScale: this.clipMaxScale, minScale: this.clipMinScale, suffix: this.clipImageSuffix, quality: this.clipImageQuality, onCtyCancel: () => this._doCropCancel(), onCtyConfirm: (e) => this._doCropConfirm(e) }))), this.showPermissionPurpose && h("cty-permission-purpose", { key: '854407953b7d6aecc34efe64fc2ca96d7f24ccd4', description: this.permissionDescription })));
397
+ return (h(Host, { key: '1209dc8c96e0f6d610938094ee9043aa945e0a7e', class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { 'overlay-hidden': true, 'cty-pos-cover': this.overlay }), style: { zIndex: `${20000 + this.overlayIndex}` } }, h("cty-action-sheet", { key: 'ae17be413e6275ee15b90e4a6f841a49f783900a', animated: false, overlayIndex: 1, backdropDismiss: this.backdropDismiss, title: this.title, closeable: this.closeable, closeIcon: this.closeIcon, cancelText: this.cancelText, options: this.options, onCtyDismiss: () => this.dismiss(), onCtyTap: e => this._buttonClick(e) }), this.showCropImage && (h("cty-overlay", { key: '052ccb88ecae00fd87d3c2794a944c8f93b36843', animated: false, backdropDismiss: false }, h("cty-crop-image", { key: '0b4de285fb815ed8a49aae0bd07b70c8dc4969a3', url: this.clipImage, cancelText: this.clipCancelText, confirmText: this.clipCconfirmText, imageWidth: this.clipImageWidth, imageBackground: this.clipImageBg, maxScale: this.clipMaxScale, minScale: this.clipMinScale, suffix: this.clipImageSuffix, quality: this.clipImageQuality, onCtyCancel: () => this._doCropCancel(), onCtyConfirm: (e) => this._doCropConfirm(e) }))), this.showPermissionPurpose && h("cty-permission-purpose", { key: '60a99a0480aba31c86454b821f9cba8d4b9ea24d', description: this.permissionDescription })));
398
398
  }
399
399
  get el() { return this; }
400
400
  static get watchers() { return {
@@ -208,7 +208,7 @@ const CanvasBoard = /*@__PURE__*/ proxyCustomElement(class CanvasBoard extends H
208
208
  } }, h("i", { style: { width: item * 2 + 'px', height: item * 2 + 'px' } }))))), h("div", { class: "cty-canvas-board__line-alpha", onClick: e => e.stopPropagation() }, h("div", { class: "cty-canvas-board__line-alpha-bg" }), h("ion-range", { max: 1, min: 0, step: 0.01, ref: (el) => (this.alphaRangeRef = el), class: "cty-canvas-board__line-alpha-range", value: this.alpha, onIonChange: (event) => this.alphaChange(event) })))));
209
209
  }
210
210
  render() {
211
- return (h(Host, { key: '7dabf6b3b63649c3228fc623462fd81d1708a2b2', class: "cty-canvas-board flex-column" }, h("slot", { key: '3dab2ed71025188e36c2cdd38b49f22cb2a0b737', name: "header" }), this.headerOpn && (h("div", { key: 'bf6c3755c3de48a3f464a03b8be8e7c5330abbfb', class: "cty-canvas-board__header flex-center-between" }, h("slot", { key: '2ae622f80139c2e8cc98cbbfd88e551bf9f74dd7', name: "header-start" }), this.bgIcon && h("button", { key: '66fef7aaff32352714fbffd10538515fb5e4cccd', class: "cty-button-native", onClick: () => this.updateBgColor() }, h("cty-icon", { key: '57a3cd1dee6ff13a48644957911e23ec2aeaf960', name: this.bgIcon, class: "cty-canvas-board__palette" }), h("input", { key: '128b4469e0a36cbb23326eae597210ecb837f250', type: "color", class: "cty-canvas-board__picker-color", ref: el => (this.bgPickerEl = el), value: this.bgColor, onInput: (e) => this.bgColorChange(e) })), h("slot", { key: 'ef3fc3da54b0b70167dca86715a5d1bef892a940', name: "header-opn-start" }, " "), (this.undoIcon || this.redoIcon) && h("div", { key: '2b0268eeebdad9a68c96915b1f713c81d41301ea', class: "cty-canvas-board__opn flex-center" }, this.undoIcon && h("button", { key: '8d72dd0e5d973892c15dd943c1ba7bdea77d94ef', class: "cty-button-native cty-canvas-board__opn-icon", onClick: () => this.undo() }, h("cty-icon", { key: 'dda87e041bb357c1bda15115d6052ca428f5ac48', name: this.undoIcon, class: { 'cty-canvas-board__opn-active': this.drawingHistory.length > 1 && this.step > 0 } })), this.redoIcon && h("button", { key: '1049b9bf64c4286ef80a01790a25bcb02f8c666f', class: "cty-button-native cty-canvas-board__opn-icon", onClick: () => this.redo() }, h("cty-icon", { key: 'fd426195f7d40cda31ebad57fccebadc9d079615', name: this.redoIcon, class: { 'cty-canvas-board__opn-active': this.step < this.drawingHistory.length - 1 } }))), h("slot", { key: '2114566ea11b645c3f4721e1b15503adb54202a1', name: "header-opn-end" }), this.clearIcon && h("button", { key: '51f03700275904e73c44314fe1324ab20bda22eb', class: "cty-button-native cty-canvas-board__clear", onClick: () => this.clear() }, h("cty-icon", { key: 'f5ad941c3ba918e4f89977109834047df8ff3294', name: this.clearIcon })), h("slot", { key: 'a799fe8652488b5f62719c5a99df3c1b27a4ab80', name: "header-end" }))), h("slot", { key: '7b42c37cf91a67c5b3c6cae95fc57a9b45e0976a', name: "main" }), h("div", { key: '83e78043af48e161161c4b5234b0edf593bcdcb7', class: "cty-canvas-board__main" }, h("canvas", { key: 'd85d2ed23795dd76c9b80d8cf977d58096d6c476', ref: el => (this.canvasEl = el), style: { background: this.bgColor }, onTouchStart: e => this.startDrawing(e), onTouchMove: e => this.moveDrawing(e), onTouchEnd: e => this.endDrawing(e), onMouseDown: e => this.startDrawing(e), onMouseMove: e => this.moveDrawing(e), onMouseUp: e => this.endDrawing(e) }), h("canvas", { key: '736348ed76bcfb4a23c77acbf55718a1d21663be', ref: el => (this.imageCanvasEl = el), style: { display: 'none' } }), h("span", { key: '10db4d802279782a573acf44b6183219c44e1b7a', class: "cty-canvas-board__eraser-circle", ref: el => (this.eraserEl = el) }), this.isCanvasEmpty && h("slot", { key: 'c943573e1c88efd4ff57bac631657561b1781e89', name: "placeholder" }), h("slot", { key: '4483d4150a0bd89ef0fc0b9c5b92b698551ab87f' })), h("slot", { key: '5ad71ecbd28f2de9191cc066f34205b66c44e4a4', name: "footer" }), this.footerOpn && (h("div", { key: '6c83abdde45cfedcebe52fded63f7cfe346a51c1', class: "cty-canvas-board__footer flex-center" }, h("slot", { key: '90d5316091ddce4555b14398d71124b0993d10df', name: "footer-start" }), this.pencilIcon && (h("button", { key: 'ead63062251064fb19910029aaf64a60b462de14', class: "cty-button-native cty-canvas-board__pen", onClick: e => this.updatePencil(e) }, h("cty-icon", { key: '6e9eac796d79220af98d4dea4ead48b332c5cf5b', name: this.pencilIcon, class: { 'cty-canvas-board__footer-active': !this.isEraser } }))), h("button", { key: '00f7e0bd6c170fa7f2a46250cd394436806ece5a', class: "cty-button-native cty-canvas-board__eraser", onClick: () => (this.isEraser = !this.isEraser) }, h("cty-icon", { key: 'bd4bd17c3db1b9a416f8668e4bd40daec94104a2', name: this.eraserIcon, class: { 'cty-canvas-board__footer-active': this.isEraser } })), h("button", { key: '1d5d409bcea1db8ebc6c152be4d0181ec7fc3b5d', class: "cty-button-native cty-canvas-board__color-button", onClick: () => this.updateColor() }, h("input", { key: '59b3386aa79fbf0fea335805d441425695032056', type: "color", value: this.strokeColor, class: "cty-canvas-board__picker-color", ref: el => (this.colorPickerEl = el), onInput: (e) => this.penColorChange(e) })), h("slot", { key: 'ba48824cb5deda131a5024c803c9b6aa9d852b02', name: "footer-end" }))), h("slot", { key: '947d8214112903656383320ce16877bc06809df2', name: "bottom" }), this.showButtons && (h("div", { key: 'fd44be4e900582162b47c851a2cfc0771f7ca787', class: "cty-canvas-board__buttons flex-justify-end" }, h("slot", { key: 'f084e9f7860cb691cacbd7188686145f5966875e', name: "bottom-button-start" }), h("button", { key: '919be54ddc04f3da4da40df0dcd729a86bc98a09', class: "cty-canvas-board__button cty-button-native", onClick: () => this.clear() }, this.clearLabel), h("button", { key: '41e7ecf160ba4e8caac4dc36cf00d250e4c0c943', class: "cty-canvas-board__button cty-button-native", onClick: () => this.confirm() }, this.confirmLabel), h("slot", { key: '8f361e062ae4e8d0533eeb73239abe5e58637942', name: "bottom-button-end" }))), this.renderPopover()));
211
+ return (h(Host, { key: '4ad55066b1418593fc0ab98ed040e3c76e874e24', class: "cty-canvas-board flex-column" }, h("slot", { key: '63393fb4bb1583eee521278e7c51696033ebf36b', name: "header" }), this.headerOpn && (h("div", { key: '4bdb44ced8f8e11fa7b60e034d881af791b5da8b', class: "cty-canvas-board__header flex-center-between" }, h("slot", { key: '0c231b72884777ca86c71350ffafe620e9331385', name: "header-start" }), this.bgIcon && h("button", { key: 'e5e4d1cd289240801a07f5393a7eeb5e61ea8ff7', class: "cty-button-native", onClick: () => this.updateBgColor() }, h("cty-icon", { key: 'c7fae15975caba4ae3ab7a0bf2225332b8f901b1', name: this.bgIcon, class: "cty-canvas-board__palette" }), h("input", { key: '4d80bad3c6a2f6c201ba92371d3acca94aa160be', type: "color", class: "cty-canvas-board__picker-color", ref: el => (this.bgPickerEl = el), value: this.bgColor, onInput: (e) => this.bgColorChange(e) })), h("slot", { key: 'de2ed29f8c1458d6b1f9cab24b1447a501dc2197', name: "header-opn-start" }, " "), (this.undoIcon || this.redoIcon) && h("div", { key: 'd857d7c5d097cb90ebb9392f53adcc8dc34bf028', class: "cty-canvas-board__opn flex-center" }, this.undoIcon && h("button", { key: '6b8585028e89a486bccdee01bc23713479ccbd95', class: "cty-button-native cty-canvas-board__opn-icon", onClick: () => this.undo() }, h("cty-icon", { key: '1e1397978bd0bb41294bdf9d13fce1522643ca1b', name: this.undoIcon, class: { 'cty-canvas-board__opn-active': this.drawingHistory.length > 1 && this.step > 0 } })), this.redoIcon && h("button", { key: '00e875b9c0e9e72f495344728ce22de70bf7c11f', class: "cty-button-native cty-canvas-board__opn-icon", onClick: () => this.redo() }, h("cty-icon", { key: '7514febef0bb8c9d02399a8f359cb617c832014f', name: this.redoIcon, class: { 'cty-canvas-board__opn-active': this.step < this.drawingHistory.length - 1 } }))), h("slot", { key: '4c8d783bfd7b3fad6d7bb8ccffd4b71fbddc8c4b', name: "header-opn-end" }), this.clearIcon && h("button", { key: 'f20db72f60bf8aba050149baf6604da1ac9c0665', class: "cty-button-native cty-canvas-board__clear", onClick: () => this.clear() }, h("cty-icon", { key: 'a573b34fb16618303a8cdda92d715669bdfe7354', name: this.clearIcon })), h("slot", { key: 'e9e0442adb8f921b98a25c8c40d434d117fc92ab', name: "header-end" }))), h("slot", { key: '5dd294b133a3dba2fbd1ad2e6b732a79bd5a23f2', name: "main" }), h("div", { key: '8215bd1c609508bfe0dd83f3c14918bb96965c80', class: "cty-canvas-board__main" }, h("canvas", { key: 'be659679089641858819034052fc53139641c169', ref: el => (this.canvasEl = el), style: { background: this.bgColor }, onTouchStart: e => this.startDrawing(e), onTouchMove: e => this.moveDrawing(e), onTouchEnd: e => this.endDrawing(e), onMouseDown: e => this.startDrawing(e), onMouseMove: e => this.moveDrawing(e), onMouseUp: e => this.endDrawing(e) }), h("canvas", { key: 'fe4fe36e5bf1b576604a80044a38f8919602eb8b', ref: el => (this.imageCanvasEl = el), style: { display: 'none' } }), h("span", { key: 'b10114deeecca5aba0cc9df570663f2524fba122', class: "cty-canvas-board__eraser-circle", ref: el => (this.eraserEl = el) }), this.isCanvasEmpty && h("slot", { key: '04940fcc8b9fdf8f74063ebbbe289ebeab0d479b', name: "placeholder" }), h("slot", { key: '65c69927254cec4f2b17d6e17b6e1c7d671a6caa' })), h("slot", { key: 'ee13ea9726dde6fb3dcf72e18465b44b3295c11f', name: "footer" }), this.footerOpn && (h("div", { key: '18c4b0a9aeb69227ee5ccccc47941fcda68d2d90', class: "cty-canvas-board__footer flex-center" }, h("slot", { key: '44123ea03a2ebb8f38ad0756c500d9bb9289cc1d', name: "footer-start" }), this.pencilIcon && (h("button", { key: '5122db6db34babc3348db56449d10b66c40c2cf6', class: "cty-button-native cty-canvas-board__pen", onClick: e => this.updatePencil(e) }, h("cty-icon", { key: 'f443d24c315a7b24dd3de9ed5c15dbf58f10ee8a', name: this.pencilIcon, class: { 'cty-canvas-board__footer-active': !this.isEraser } }))), h("button", { key: '7852ce1bdc970d7c6bd94f8dc8a9525a9f50dbaa', class: "cty-button-native cty-canvas-board__eraser", onClick: () => (this.isEraser = !this.isEraser) }, h("cty-icon", { key: 'd816fe88a28992fb9db8685c0416c7c0214452aa', name: this.eraserIcon, class: { 'cty-canvas-board__footer-active': this.isEraser } })), h("button", { key: '7dbd7c2f53f6a7b7c10fa5eb3865e555d76fb3ee', class: "cty-button-native cty-canvas-board__color-button", onClick: () => this.updateColor() }, h("input", { key: 'bd19cdcf3b3d5dd31e5335c89bfdba73fd6c3eb7', type: "color", value: this.strokeColor, class: "cty-canvas-board__picker-color", ref: el => (this.colorPickerEl = el), onInput: (e) => this.penColorChange(e) })), h("slot", { key: '427cff0948557ac5d9a0d4d8c87cb7268e74d070', name: "footer-end" }))), h("slot", { key: 'c4b30f32d4a86478f4d9c37d0b902eaa4a1cdbd2', name: "bottom" }), this.showButtons && (h("div", { key: '205144c2cba7dc40f9c0cc69042cecb33f1575be', class: "cty-canvas-board__buttons flex-justify-end" }, h("slot", { key: '5e075c008f1aa465837038b11a3535b67ba2eed9', name: "bottom-button-start" }), h("button", { key: '005d37782f92af7640046650a093ba04e207d238', class: "cty-canvas-board__button cty-button-native", onClick: () => this.clear() }, this.clearLabel), h("button", { key: 'bf5ca8d2c2a5a3790da8ff58e2c2e825a1119c7f', class: "cty-canvas-board__button cty-button-native", onClick: () => this.confirm() }, this.confirmLabel), h("slot", { key: '5435dc891312859dadfad6388735efceebc0fcdc', name: "bottom-button-end" }))), this.renderPopover()));
212
212
  }
213
213
  get el() { return this; }
214
214
  static get style() { return CtyCanvasBoardStyle0; }
@@ -770,7 +770,7 @@ const CanvasVideo = /*@__PURE__*/ proxyCustomElement(class CanvasVideo extends H
770
770
  }, onTransitionEnd: () => this.transitionend() }, h("div", { class: "cty-canvas-video__progress-inner" }))), !this.isVertical && this.isMove && !!this.progressBar && (h("div", { class: "cty-canvas-video__time" }, h("span", { class: "cty-canvas-video__time-left" }, this.transTime(this.pTime)), h("span", { class: "cty-canvas-video__time-center" }, "/"), h("span", { class: "cty-canvas-video__time-right" }, this.transTime(this.pDuration)))), !(!this.isVertical && this.isMove && !!this.progressBar) && (h("div", { class: "cty-canvas-video__content" }, option.renderSlot !== 'content' && (h("div", { class: "cty-canvas-video__content-box" }, h("div", { class: "cty-canvas-video__tip" }, h("cty-icon", { name: "cty-lamp" }), option[this._props.tip || 'tip']), h("p", { class: "cty-canvas-video__date" }, option[this._props.date || 'date']), h("p", { class: "cty-canvas-video__description" }, option[this._props.description || 'description']), h("button", { class: "cty-canvas-video__name cty-button-native", onClick: e => this.clickName(e) }, '@' + option[this._props.name || 'name']))), option.contentRender !== undefined && h("slot", { name: option.contentRender }))), !(!this.isVertical && this.isMove && !!this.progressBar) && (h("div", { class: "cty-canvas-video__sidebar" }, option.renderSlot !== 'sidebar' && (h("button", { class: "cty-canvas-video__avatar cty-button-native", onClick: e => this.clickAvatar(e) }, h("img", { src: option[this._props.avatar || 'avatar'] }), this.avatarButton && h("span", { class: "cty-canvas-video__avatar-button" }, this.avatarButton))), option.renderSlot !== 'sidebar' && option[this._props.likeCount || 'likeCount'] && (h("button", { class: "cty-canvas-video__sidebar-item cty-button-native", onClick: e => this.clickLike(e) }, h("cty-icon", { name: "cty-thumb" }), h("span", null, option[this._props.likeCount || 'likeCount']))), option.renderSlot !== 'sidebar' && option[this._props.viewCount || 'viewCount'] && (h("button", { class: "cty-canvas-video__sidebar-item cty-button-native" }, h("cty-icon", { name: "cty-eye" }), h("span", null, option[this._props.viewCount || 'viewCount']))), option.renderSlot !== 'sidebar' && option[this._props.collectCount || 'collectCount'] && (h("button", { class: "cty-canvas-video__sidebar-item cty-button-native", onClick: e => this.clickCollect(e) }, h("cty-icon", { name: "cty-star" }), h("span", null, option[this._props.collectCount || 'collectCount']))), option.sidebarRender !== 'sidebar' && (h("button", { class: "cty-canvas-video__sidebar-item cty-button-native", onClick: e => this.clickShare(e) }, h("cty-icon", { name: "cty-share" }), h("span", null, "\u5206\u4EAB"))), option.sidebarRender !== undefined && h("slot", { name: option.sidebarRender }))))));
771
771
  }
772
772
  render() {
773
- return (h(Host, { key: 'c5404c72482f43f26d9611b325319742563f8795', class: "cty-canvas-video" }, h("div", { key: '792019b69f3d9a778018ed74ad145ac6f11e0ac8', class: "cty-canvas-videos" }, h("video", { key: '92a04a0913ab15da81e0b79aa8d094b987e6ac2f', ref: el => (this.videoEl1 = el), preload: this.preload, "x5-video-player-type": "h5", "x5-video-player-fullscreen": "true", playsinline: true, "webkit-playsinline": true, onTimeUpdate: () => this.videoTimeupdate1(), onEnded: () => this.videoEnded(), src: this.videoUrl1, typeof: "video/mp4", autoplay: this.autoplay && this.videoIndex == 0 }), h("video", { key: 'f31e96fc8d37c6d94cdc30abaa54477dc9c6f7c2', ref: el => (this.videoEl2 = el), preload: this.preload, "x5-video-player-type": "h5", "x5-video-player-fullscreen": "true", playsinline: true, "webkit-playsinline": true, onTimeUpdate: () => this.videoTimeupdate2(), onEnded: () => this.videoEnded(), src: this.videoUrl2, typeof: "video/mp4", autoplay: this.autoplay && this.videoIndex == 1 }), h("video", { key: 'edcca095749727539850560b5965f028a90ea61b', ref: el => (this.videoEl3 = el), preload: this.preload, "x5-video-player-type": "h5", "x5-video-player-fullscreen": "true", playsinline: true, "webkit-playsinline": true, onTimeUpdate: () => this.videoTimeupdate3(), onEnded: () => this.videoEnded(), src: this.videoUrl3, typeof: "video/mp4", autoplay: this.autoplay && this.videoIndex == 2 })), h("div", { key: '6f38a9271ee39a5076be7fcb98d65e3de582c1f7', class: "cty-canvas-video__slides", ref: el => (this.videoSlidesEl = el) }, this.renderSlide())));
773
+ return (h(Host, { key: 'fe5d626620d19d6fd807ae450e711dfc18ec6856', class: "cty-canvas-video" }, h("div", { key: '9fd08f6b8f30442860d09667ec3fbd7a66b9cdcc', class: "cty-canvas-videos" }, h("video", { key: '3673cdd938399f843a7eed0c2f23d195691639e6', ref: el => (this.videoEl1 = el), preload: this.preload, "x5-video-player-type": "h5", "x5-video-player-fullscreen": "true", playsinline: true, "webkit-playsinline": true, onTimeUpdate: () => this.videoTimeupdate1(), onEnded: () => this.videoEnded(), src: this.videoUrl1, typeof: "video/mp4", autoplay: this.autoplay && this.videoIndex == 0 }), h("video", { key: 'f2928397106237b2747a5b5c34979aa8ac105f6a', ref: el => (this.videoEl2 = el), preload: this.preload, "x5-video-player-type": "h5", "x5-video-player-fullscreen": "true", playsinline: true, "webkit-playsinline": true, onTimeUpdate: () => this.videoTimeupdate2(), onEnded: () => this.videoEnded(), src: this.videoUrl2, typeof: "video/mp4", autoplay: this.autoplay && this.videoIndex == 1 }), h("video", { key: '41125c8c1fed010751ea9015cd5b6d84e31a1842', ref: el => (this.videoEl3 = el), preload: this.preload, "x5-video-player-type": "h5", "x5-video-player-fullscreen": "true", playsinline: true, "webkit-playsinline": true, onTimeUpdate: () => this.videoTimeupdate3(), onEnded: () => this.videoEnded(), src: this.videoUrl3, typeof: "video/mp4", autoplay: this.autoplay && this.videoIndex == 2 })), h("div", { key: 'a8c9165aea9783d9dcc0bff1e420e227e4e2d9d3', class: "cty-canvas-video__slides", ref: el => (this.videoSlidesEl = el) }, this.renderSlide())));
774
774
  }
775
775
  get el() { return this; }
776
776
  static get watchers() { return {
@@ -13506,7 +13506,7 @@ const CTYCityData = [
13506
13506
  },
13507
13507
  ];
13508
13508
 
13509
- const cascaderCss = "*{-webkit-box-sizing:border-box;box-sizing:border-box}p,h1,h2,h3,h4,h5,h6{margin:0;padding:0}.cty-button-native{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;margin:0;padding:0;background:transparent;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;line-height:1;border:0;outline:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:0;-webkit-box-shadow:none;box-shadow:none;cursor:pointer}:host{--cty-cascader-background:#FFF;--cty-cascader-overlay-background:rgba(0, 0, 0, 0.3);--cty-cascader-header-height:44px;--cty-cascader-header-button-size:14px;--cty-cascader-title-size:16px;--cty-cascader-title-color:var(--cty-text-color-dark);--cty-cascader-title-weight:500;--cty-cascader-cancel-color:var(--cty-color-medium);--cty-cascader-confirm-color:var(--cty-color-primary);--cty-cascader-option-text-color:var(--cty-text-color-dark);--cty-cascader-picked-border-color:var(--cty-border-color);--cty-cascader-mask-background-image:linear-gradient(180deg,\n rgba(255, 255, 255, 0.9),\n rgba(255, 255, 255, 0.4)), linear-gradient(0deg,\n rgba(255, 255, 255, 0.9),\n rgba(255, 255, 255, 0.4))}:host(.overlay-hidden){display:none}cty-overlay{--cty-overlay-background:var(--cty-cascader-overlay-background, rgba(0, 0, 0, 0.3))}.cty-cascader-container{position:fixed;bottom:0;left:0;right:0;background:var(--cty-cascader-background);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.cascader{width:100%;background:var(--cty-cascader-background)}.cty-cascader-header{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;height:var(--cty-cascader-header-height, 44px)}.cty-cascader-header button{font-size:var(--cty-cascader-header-button-size)}.cty-cascader-header button.cancel{color:var(--cty-cascader-cancel-color)}.cty-cascader-header button.confirm{color:var(--cty-cascader-confirm-color)}.cty-cascader-header .cty-cascader-title{color:var(--cty-cascader-title-color);font-size:var(--cty-cascader-title-size);font-weight:var(--cty-cascader-title-weight)}.cty-cascader-columns{position:relative;display:-ms-flexbox;display:flex;overflow:hidden}.cty-cascader-column{-ms-flex:1;flex:1;position:relative;overflow:hidden}.cty-cascader-scroller{position:absolute;left:0;right:0;top:0;-webkit-transition-timing-function:cubic-bezier(0.23, 1, 0.32, 1);transition-timing-function:cubic-bezier(0.23, 1, 0.32, 1)}.cty-cascader-option{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;padding:0 4px;cursor:pointer}.cty-cascader-option .cty-cascader-text{text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--cty-cascader-option-text-color)}.cty-cascader-picked{position:absolute;left:0;right:0;pointer-events:none;border-top:1px solid var(--cty-cascader-picked-border-color);border-bottom:1px solid var(--cty-cascader-picked-border-color)}.cty-cascader-mask{position:absolute;top:0;left:0;right:0;bottom:0;background-image:var(--cty-cascader-mask-background-image);background-repeat:no-repeat;background-position:top, bottom;pointer-events:none}";
13509
+ const cascaderCss = "*{-webkit-box-sizing:border-box;box-sizing:border-box}p,h1,h2,h3,h4,h5,h6{margin:0;padding:0}.cty-button-native{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;margin:0;padding:0;background:transparent;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;line-height:1;border:0;outline:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:0;-webkit-box-shadow:none;box-shadow:none;cursor:pointer}:host{--cty-cascader-background:#FFF;--cty-cascader-overlay-background:rgba(0, 0, 0, 0.3);--cty-cascader-header-height:44px;--cty-cascader-header-button-size:var(--cty-font-size-medium);--cty-cascader-header-padding:0px 15px;--cty-cascader-header-border-bottom:1px solid var(--cty-border-color-light);--cty-cascader-title-size:var(--cty-font-size-medium);--cty-cascader-title-color:var(--cty-text-color-dark);--cty-cascader-title-weight:500;--cty-cascader-cancel-color:var(--cty-color-medium);--cty-cascader-confirm-color:var(--cty-color-primary);--cty-cascader-option-text-color:var(--cty-text-color-dark);--cty-cascader-option-text-font-size:var(--cty-font-size-medium);--cty-cascader-picked-border-color:var(--cty-border-color);--cty-cascader-mask-background-image:linear-gradient(180deg,\n rgba(255, 255, 255, 0.9),\n rgba(255, 255, 255, 0.4)), linear-gradient(0deg,\n rgba(255, 255, 255, 0.9),\n rgba(255, 255, 255, 0.4))}:host(.overlay-hidden){display:none}cty-overlay{--cty-overlay-background:var(--cty-cascader-overlay-background, rgba(0, 0, 0, 0.3))}.cty-cascader-container{position:fixed;bottom:0;left:0;right:0;background:var(--cty-cascader-background);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.cascader{width:100%;background:var(--cty-cascader-background)}.cty-cascader-header{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;height:var(--cty-cascader-header-height, 44px);border-bottom:var(--cty-cascader-header-border-bottom);padding:var(--cty-cascader-header-padding)}.cty-cascader-header button{font-size:var(--cty-cascader-header-button-size)}.cty-cascader-header button.cancel{color:var(--cty-cascader-cancel-color)}.cty-cascader-header button.confirm{color:var(--cty-cascader-confirm-color)}.cty-cascader-header .cty-cascader-title{color:var(--cty-cascader-title-color);font-size:var(--cty-cascader-title-size);font-weight:var(--cty-cascader-title-weight)}.cty-cascader-columns{position:relative;display:-ms-flexbox;display:flex;overflow:hidden}.cty-cascader-column{-ms-flex:1;flex:1;position:relative;overflow:hidden}.cty-cascader-scroller{position:absolute;left:0;right:0;top:0;-webkit-transition-timing-function:cubic-bezier(0.23, 1, 0.32, 1);transition-timing-function:cubic-bezier(0.23, 1, 0.32, 1)}.cty-cascader-option{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;padding:0 4px;cursor:pointer}.cty-cascader-option .cty-cascader-text{text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--cty-cascader-option-text-color);font-size:var(--cty-cascader-option-text-font-size)}.cty-cascader-picked{position:absolute;left:0;right:0;pointer-events:none;border-top:1px solid var(--cty-cascader-picked-border-color);border-bottom:1px solid var(--cty-cascader-picked-border-color)}.cty-cascader-mask{position:absolute;top:0;left:0;right:0;bottom:0;background-image:var(--cty-cascader-mask-background-image);background-repeat:no-repeat;background-position:top, bottom;pointer-events:none}";
13510
13510
  const CtyCascaderStyle0 = cascaderCss;
13511
13511
 
13512
13512
  const Cascader = /*@__PURE__*/ proxyCustomElement(class Cascader extends HTMLElement {
@@ -13516,7 +13516,7 @@ const Cascader = /*@__PURE__*/ proxyCustomElement(class Cascader extends HTMLEle
13516
13516
  this.__attachShadow();
13517
13517
  this.ctyDismiss = createEvent(this, "ctyDismiss", 7);
13518
13518
  this.ctyChange = createEvent(this, "ctyChange", 7);
13519
- this.ctyComfirm = createEvent(this, "ctyComfirm", 7);
13519
+ this.ctyConfirm = createEvent(this, "ctyConfirm", 7);
13520
13520
  this.didPresent = createEvent(this, "ctyDidPresent", 7);
13521
13521
  this.willPresent = createEvent(this, "ctyWillPresent", 7);
13522
13522
  this.willDismiss = createEvent(this, "ctyWillDismiss", 7);
@@ -13662,7 +13662,6 @@ const Cascader = /*@__PURE__*/ proxyCustomElement(class Cascader extends HTMLEle
13662
13662
  return scrollColumns;
13663
13663
  }
13664
13664
  createChildren(scrollColumns, children, syncModelValue = true, depth = 1) {
13665
- var _a;
13666
13665
  if (children.length && (this.columnsCount == null || depth <= this.columnsCount)) {
13667
13666
  const scrollColumn = {
13668
13667
  id: this.sid++,
@@ -13689,12 +13688,11 @@ const Cascader = /*@__PURE__*/ proxyCustomElement(class Cascader extends HTMLEle
13689
13688
  return;
13690
13689
  if (this.type == 'city' && depth === 2)
13691
13690
  return;
13692
- this.createChildren(scrollColumns, (_a = scrollColumn.column[scrollColumn.index][this.childrenKey]) !== null && _a !== void 0 ? _a : [], syncModelValue, depth + 1);
13691
+ this.createChildren(scrollColumns, scrollColumn.column[scrollColumn.index][this.childrenKey] || [], syncModelValue, depth + 1);
13693
13692
  }
13694
13693
  }
13695
13694
  getValue(option) {
13696
- var _a;
13697
- return (_a = option[this.valueKey]) !== null && _a !== void 0 ? _a : option[this.textKey];
13695
+ return option[this.valueKey] === undefined ? option[this.textKey] : option[this.valueKey];
13698
13696
  }
13699
13697
  scrollTo(scrollColumn, duration = 0) {
13700
13698
  this.updateTranslate(scrollColumn);
@@ -13875,10 +13873,10 @@ const Cascader = /*@__PURE__*/ proxyCustomElement(class Cascader extends HTMLEle
13875
13873
  this.stopScroll();
13876
13874
  const { values, indexes, options } = this.getPicked();
13877
13875
  this.setPrevIndexes(indexes);
13878
- this.ctyComfirm.emit({ values, indexes, options });
13876
+ this.ctyConfirm.emit({ values, indexes, options });
13879
13877
  }
13880
13878
  render() {
13881
- return (h(Host, { key: 'db14552d56318a115c71b2fc9c0bdf576357fe1e', class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { 'overlay-hidden': true }), style: { zIndex: `${20000 + this.overlayIndex}` } }, h("cty-overlay", { key: '37c1984dcbe5fbaec948e765efa7ada826b5bf1a', animated: false, backdropDismiss: this.backdropDismiss, onCtyDismiss: () => this.dismiss() }, h("div", { key: 'a690e0e76113d9fda0cf5bd40ac9e9389f5e4b1e', class: "cty-cascader-container", ref: (el) => (this.cascaderContainerEl = el) }, h("div", { key: 'e22ea3d2494bd6150bbd9d1a93e4c5a220c52a98', class: "cty-cascader", onClick: (e) => e.stopPropagation() }, h("slot", { key: '58ab78287e73a07166cf22b78e91283ff67ff2bb', name: 'header' }), h("div", { key: '059760f1b06a5842143bc91aa36423138a535e70', class: "cty-cascader-header" }, h("button", { key: '0228c26a707d914ccb8b9134ac074677d5239f9d', onClick: () => this.dismiss(), class: "cancel cty-button-native" }, this.cancelText), h("div", { key: 'a000051625b81c15be56c05ac0fb0b6e6a1c45e1', class: "cty-cascader-title" }, this.title), h("button", { key: '13238c61db4d8e2823b29072154adca279655ab6', onClick: () => this.confirm(), class: "confirm cty-button-native" }, this.confirmText)), h("div", { key: '8f8b561a418c2b82bb028da626414dfac5c99877', class: "cty-cascader-columns", style: { height: this.columnHeight + 'px' } }, this.scrollColumns.map(c => h("div", { class: "cty-cascader-column", onTouchStart: (e) => this.handleTouchstart(e, c), onTouchMove: (e) => this.handleTouchmove(e, c), onTouchEnd: () => this.handleTouchend(c), onMouseDown: (e) => this.handleTouchstart(e, c), onMouseMove: (e) => this.handleTouchmove(e, c), onMouseUp: () => this.handleTouchend(c) }, h("div", { class: "cty-cascader-scroller", style: { transform: 'translateY(' + c.translate + 'px)', 'transition-duration': c.duration + 'ms', 'transition-property': c.duration ? 'transform' : 'none' }, onTransitionEnd: () => this.handleTransitionend(c) }, c.column.map((option, i) => h("div", { class: 'cty-cascader-option ' + (option.className || ''), style: { height: this.optionHeight + 'px' }, onClick: () => this.handleClick(c, i) }, h("div", { class: 'cty-cascader-text ' + (option.textClassName || '') }, option[this.textKey])))))), h("div", { key: 'de906aa100679ea92ef9f1ee475d70ea3063d9a0', class: "cty-cascader-picked", style: { top: this.center + 'px', height: this.optionHeight + 'px' } }), h("div", { key: '53618fd23268436b04642d50fa76c585fde25dff', class: "cty-cascader-mask", style: { 'background-size': '100% ' + (this.columnHeight - this.optionHeight) / 2 + 'px' } })))))));
13879
+ return (h(Host, { key: '869db9422cc098889201961e90e60b4d42824e3a', class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { 'overlay-hidden': true }), style: { zIndex: `${20000 + this.overlayIndex}` } }, h("cty-overlay", { key: '5b1aa4c4861e99c24617519ef4939babf3792431', animated: false, backdropDismiss: this.backdropDismiss, onCtyDismiss: () => this.dismiss() }, h("div", { key: 'd72a70775caff77cc1bba7618266f5793192e31f', class: "cty-cascader-container", ref: (el) => (this.cascaderContainerEl = el) }, h("div", { key: 'c9027509a2acafc55d3da658e766cb727c15fa1b', class: "cty-cascader", onClick: (e) => e.stopPropagation() }, h("slot", { key: 'fd2e14a35bb4c3f8449b507552b2d7ed01ceefa4', name: 'header' }), h("div", { key: '4077d4d91d568cf281cff4c602a1a8d9bb22aeb7', class: "cty-cascader-header" }, h("button", { key: 'c9dd2d9725c9b7e9f45b31a8e50b25e6ab7a6972', onClick: () => this.dismiss(), class: "cancel cty-button-native" }, this.cancelText), h("div", { key: '89aa1f6fc298b9412a8b1686e0d3c667c1ae0540', class: "cty-cascader-title" }, this.title), h("button", { key: '3e01947c12d3df815617f66af3e8ad16490c56f8', onClick: () => this.confirm(), class: "confirm cty-button-native" }, this.confirmText)), h("div", { key: '0da2d2e76249696a84851a14c90c56dd6ceb65be', class: "cty-cascader-columns", style: { height: this.columnHeight + 'px' } }, this.scrollColumns.map(c => h("div", { class: "cty-cascader-column", onTouchStart: (e) => this.handleTouchstart(e, c), onTouchMove: (e) => this.handleTouchmove(e, c), onTouchEnd: () => this.handleTouchend(c), onMouseDown: (e) => this.handleTouchstart(e, c), onMouseMove: (e) => this.handleTouchmove(e, c), onMouseUp: () => this.handleTouchend(c) }, h("div", { class: "cty-cascader-scroller", style: { transform: 'translateY(' + c.translate + 'px)', 'transition-duration': c.duration + 'ms', 'transition-property': c.duration ? 'transform' : 'none' }, onTransitionEnd: () => this.handleTransitionend(c) }, c.column.map((option, i) => h("div", { class: 'cty-cascader-option ' + (option.className || ''), style: { height: this.optionHeight + 'px' }, onClick: () => this.handleClick(c, i) }, h("div", { class: 'cty-cascader-text ' + (option.textClassName || '') }, option[this.textKey])))))), h("div", { key: '5b4ca9f1f41204151a28400347d5d9797b819cf0', class: "cty-cascader-picked", style: { top: this.center + 'px', height: this.optionHeight + 'px' } }), h("div", { key: 'f421cc2641b717b0c32a9598616c4a3ad99eb7c9', class: "cty-cascader-mask", style: { 'background-size': '100% ' + (this.columnHeight - this.optionHeight) / 2 + 'px' } })))))));
13882
13880
  }
13883
13881
  get el() { return this; }
13884
13882
  static get watchers() { return {
@@ -1,7 +1,7 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
2
  import { p as pad } from './format2.js';
3
3
 
4
- const countDownCss = "*{-webkit-box-sizing:border-box;box-sizing:border-box}p,h1,h2,h3,h4,h5,h6{margin:0;padding:0}:host{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;font-size:var(--cty-font-size-base);--cty-count-down-color:inherit;--cty-count-down-size:auto;--cty-count-down-font-size:var(--cty-font-size-base);--cty-count-down-item-background:transparent;--cty-count-down-item-border-radius:0;--cty-count-down-unit-offset:0 5px;--cty-count-down-unit-color:inherit}.cty-count-down__item{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.cty-count-down__label{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:var(--cty-count-down-size);height:var(--cty-count-down-size);background:var(--cty-count-down-item-background);border-radius:var(--cty-count-down-item-border-radius);color:var(--cty-count-down-color)}.cty-count-down__unit{margin:var(--cty-count-down-unit-offset);color:var(--cty-count-down-unit-color)}";
4
+ const countDownCss = "*{-webkit-box-sizing:border-box;box-sizing:border-box}p,h1,h2,h3,h4,h5,h6{margin:0;padding:0}:host{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;font-size:var(--cty-font-size-base);--cty-count-down-color:inherit;--cty-count-down-size:auto;--cty-count-down-item-background:transparent;--cty-count-down-item-border-radius:0;--cty-count-down-unit-offset:0 5px;--cty-count-down-unit-color:inherit}.cty-count-down__item{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.cty-count-down__label{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:var(--cty-count-down-size);height:var(--cty-count-down-size);background:var(--cty-count-down-item-background);border-radius:var(--cty-count-down-item-border-radius);color:var(--cty-count-down-color)}.cty-count-down__unit{margin:var(--cty-count-down-unit-offset);color:var(--cty-count-down-unit-color)}";
5
5
  const CtyCountDownStyle0 = countDownCss;
6
6
 
7
7
  const CountDown = /*@__PURE__*/ proxyCustomElement(class CountDown extends HTMLElement {
@@ -144,8 +144,8 @@ const CountDown = /*@__PURE__*/ proxyCustomElement(class CountDown extends HTMLE
144
144
  return timeText;
145
145
  }
146
146
  render() {
147
- return (h(Host, { key: '2d6505dbab05459bdbdf4d41b13c364cec28f109', class: "cty-count-down" }, !this.isSingle &&
148
- this.timeRange.map((item, idx) => (h("div", { class: "cty-count-down__item" }, h("span", { class: "cty-count-down__label" }, pad(this.timeData[item], 2) || this.timeData[item]), (this.unit || idx !== this.timeRange.length - 1) && h("span", { class: "cty-count-down__unit" }, this.unit ? this.dateFormatUnit[item] : ':')))), this.isSingle && (h("div", { key: '962a6fa25c432c9a3e6ce60676840ea192c82d61', class: "cty-count-down__item" }, h("span", { key: '9aa401213f8658532a40765c57708087fd6f3404', class: "cty-count-down__label" }, " ", this.formattedTime, " "))), h("slot", { key: '26fc984ab7693070bf85bfb869622dfc3d4c8380' })));
147
+ return (h(Host, { key: 'e870ab32c3a47aa2d39f1871722e719facf81ce3', class: "cty-count-down" }, !this.isSingle &&
148
+ this.timeRange.map((item, idx) => (h("div", { class: "cty-count-down__item", part: "item" }, h("span", { class: "cty-count-down__label", part: "label" }, pad(this.timeData[item], 2) || this.timeData[item]), (this.unit || idx !== this.timeRange.length - 1) && h("span", { class: "cty-count-down__unit" }, this.unit ? this.dateFormatUnit[item] : ':')))), this.isSingle && (h("div", { key: '31772c91f97a26b426caa22a72334db954da5954', class: "cty-count-down__item", part: "item" }, h("span", { key: '62823bbb13f07ea21031ad2728516a626a9dda49', class: "cty-count-down__label", part: "label" }, " ", this.formattedTime, " "))), h("slot", { key: '44e849c6d2f0813c211a2743a729b76d3e06efaa' })));
149
149
  }
150
150
  get el() { return this; }
151
151
  static get style() { return CtyCountDownStyle0; }
@@ -9,11 +9,12 @@ const Empty = /*@__PURE__*/ proxyCustomElement(class Empty extends HTMLElement {
9
9
  super();
10
10
  this.__registerHost();
11
11
  this.__attachShadow();
12
- this.image = config.get('resUrlPrefix', '') + 'assets/cty_res/svg/cty-no-data.svg';
12
+ this.image = undefined;
13
13
  this.description = '暂无数据';
14
14
  }
15
15
  render() {
16
- return (h(Host, { key: '3131d4f6eaf8368c907a81c6c5d38858793839a9', class: "cty-empty" }, h("slot", { key: '628d4b25980f73669da489ed2c8bbc66cbcc7a0a', name: "top" }), this.image && h("img", { key: '4d7118b2d94f2f9ad4af3efeb783b8eb5b8eb2fa', class: "cty-empty__image", src: this.image }), h("slot", { key: '429e0a2e192b78867ce79236bd4bc21854b5bb0a', name: "image" }), this.description && h("p", { key: '2065083f492a22c5deb941c87644079578be123f', class: "cty-empty__description" }, this.description), h("slot", { key: '3f5d7db02a303feaf002149e3285745661c17af7', name: "description" })));
16
+ const image = this.image === undefined ? (config.get('resUrlPrefix', '') + 'assets/cty_res/svg/cty-no-data.svg') : this.image;
17
+ return (h(Host, { key: '14bbdc70a7d0e287e77a0c4321b96bf46635d878', class: "cty-empty" }, h("slot", { key: '864950af0b1d30dce444f49e5df03add7020d54b', name: "top" }), image && h("img", { key: '082034fca812adc35d68154aa769aad0e07f10aa', class: "cty-empty__image", src: image }), h("slot", { key: '6a619735266e63e42927fcfb0f9dec4953c4bce4', name: "image" }), this.description && h("p", { key: 'f2195d2fa6429e44e89aee628e826455c98c0758', class: "cty-empty__description" }, this.description), h("slot", { key: 'd1645f49d8a8db0f50dff741b2f6c52b0c755125', name: "description" })));
17
18
  }
18
19
  static get assetsDirs() { return ["assets"]; }
19
20
  get el() { return this; }
@@ -150,7 +150,7 @@ const FloatingBubble = /*@__PURE__*/ proxyCustomElement(class FloatingBubble ext
150
150
  return touch;
151
151
  }
152
152
  render() {
153
- return (h(Host, { key: 'd071240e5f2dbcde58eed23f82e9395ae2488489', class: "cty-floating-bubble", onTouchStart: () => this.onTouchStart(), onTouchMove: (e) => this.onTouchMove(e), onTouchEnd: (e) => this.onTouchEnd(e), onTouchCancel: (e) => this.onTouchEnd(e), onMouseDown: () => this.onTouchStart(), onMouseMove: (e) => this.onTouchMove(e), onMouseUp: (e) => this.onTouchEnd(e), onMouseLeave: (e) => this.onTouchEnd(e), onClick: (e) => this.onClick(e), style: this.rootStyle }, this.icon && (h("cty-icon", { key: '51b0e7057f5cac59f358f24f7bdc2b5de9376ab3', class: "cty-floating-bubble__icon", name: this.icon })), h("slot", { key: 'b0ebab6919d992620fa2cd4f56b5825d0d8f6a9f' })));
153
+ return (h(Host, { key: '1d8e2de3110c7b777c704a7c33519377861e475e', class: "cty-floating-bubble", onTouchStart: () => this.onTouchStart(), onTouchMove: (e) => this.onTouchMove(e), onTouchEnd: (e) => this.onTouchEnd(e), onTouchCancel: (e) => this.onTouchEnd(e), onMouseDown: () => this.onTouchStart(), onMouseMove: (e) => this.onTouchMove(e), onMouseUp: (e) => this.onTouchEnd(e), onMouseLeave: (e) => this.onTouchEnd(e), onClick: (e) => this.onClick(e), style: this.rootStyle }, this.icon && (h("cty-icon", { key: '4f6e2544890d3091dcb87e4e0e200d3dc5933b78', class: "cty-floating-bubble__icon", name: this.icon })), h("slot", { key: '97cf3a331815a94a692cbcc14552f6b5c4bea5c1' })));
154
154
  }
155
155
  get el() { return this; }
156
156
  static get style() { return CtyFloatingBubbleStyle0; }