@tarojs/components 3.5.0-alpha.7 → 3.5.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (365) hide show
  1. package/README.md +2 -0
  2. package/dist/cjs/{index-4495e5cf.js → index-cd258c8b.js} +1 -27
  3. package/dist/cjs/loader.cjs.js +2 -2
  4. package/dist/cjs/taro-ad-core.cjs.entry.js +2 -2
  5. package/dist/cjs/taro-ad-custom-core.cjs.entry.js +2 -2
  6. package/dist/cjs/taro-audio-core.cjs.entry.js +2 -2
  7. package/dist/cjs/taro-block-core.cjs.entry.js +2 -2
  8. package/dist/cjs/taro-button-core.cjs.entry.js +2 -2
  9. package/dist/cjs/taro-camera-core.cjs.entry.js +2 -2
  10. package/dist/cjs/taro-canvas-core.cjs.entry.js +2 -2
  11. package/dist/cjs/taro-checkbox-core_2.cjs.entry.js +3 -3
  12. package/dist/cjs/taro-components.cjs.js +2 -2
  13. package/dist/cjs/taro-cover-image-core.cjs.entry.js +2 -2
  14. package/dist/cjs/taro-cover-view-core.cjs.entry.js +2 -2
  15. package/dist/cjs/taro-custom-wrapper-core.cjs.entry.js +2 -2
  16. package/dist/cjs/taro-editor-core.cjs.entry.js +2 -2
  17. package/dist/cjs/taro-form-core.cjs.entry.js +2 -2
  18. package/dist/cjs/taro-functional-page-navigator-core.cjs.entry.js +2 -2
  19. package/dist/cjs/taro-icon-core.cjs.entry.js +2 -2
  20. package/dist/cjs/taro-image-core.cjs.entry.js +2 -2
  21. package/dist/cjs/taro-input-core.cjs.entry.js +2 -2
  22. package/dist/cjs/taro-keyboard-accessory-core.cjs.entry.js +2 -2
  23. package/dist/cjs/taro-label-core.cjs.entry.js +2 -2
  24. package/dist/cjs/taro-live-player-core.cjs.entry.js +2 -2
  25. package/dist/cjs/taro-live-pusher-core.cjs.entry.js +2 -2
  26. package/dist/cjs/taro-map-core.cjs.entry.js +2 -2
  27. package/dist/cjs/taro-match-media-core.cjs.entry.js +2 -2
  28. package/dist/cjs/taro-movable-area-core.cjs.entry.js +2 -2
  29. package/dist/cjs/taro-movable-view-core.cjs.entry.js +2 -2
  30. package/dist/cjs/taro-navigation-bar-core.cjs.entry.js +2 -2
  31. package/dist/cjs/taro-navigator-core.cjs.entry.js +2 -2
  32. package/dist/cjs/taro-official-account-core.cjs.entry.js +2 -2
  33. package/dist/cjs/taro-open-data-core.cjs.entry.js +2 -2
  34. package/dist/cjs/taro-page-container-core.cjs.entry.js +2 -2
  35. package/dist/cjs/taro-page-meta-core.cjs.entry.js +2 -2
  36. package/dist/cjs/taro-picker-core_2.cjs.entry.js +3 -3
  37. package/dist/cjs/taro-picker-view-column-core.cjs.entry.js +2 -2
  38. package/dist/cjs/taro-picker-view-core.cjs.entry.js +2 -2
  39. package/dist/cjs/taro-progress-core.cjs.entry.js +2 -2
  40. package/dist/cjs/taro-pull-to-refresh.cjs.entry.js +9 -8
  41. package/dist/cjs/taro-radio-core_2.cjs.entry.js +3 -3
  42. package/dist/cjs/taro-rich-text-core.cjs.entry.js +2 -2
  43. package/dist/cjs/taro-scroll-view-core.cjs.entry.js +2 -2
  44. package/dist/cjs/taro-share-element-core.cjs.entry.js +2 -2
  45. package/dist/cjs/taro-slider-core.cjs.entry.js +2 -2
  46. package/dist/cjs/taro-slot-core.cjs.entry.js +2 -2
  47. package/dist/cjs/taro-swiper-core_2.cjs.entry.js +3 -3
  48. package/dist/cjs/taro-switch-core.cjs.entry.js +2 -2
  49. package/dist/cjs/taro-tabbar.cjs.entry.js +2 -2
  50. package/dist/cjs/taro-text-core.cjs.entry.js +2 -2
  51. package/dist/cjs/taro-textarea-core.cjs.entry.js +2 -2
  52. package/dist/cjs/taro-video-control_3.cjs.entry.js +4 -4
  53. package/dist/cjs/taro-view-core.cjs.entry.js +4 -4
  54. package/dist/cjs/taro-voip-room-core.cjs.entry.js +2 -2
  55. package/dist/cjs/taro-web-view-core.cjs.entry.js +2 -2
  56. package/dist/collection/collection-manifest.json +2 -2
  57. package/dist/collection/components/pull-to-refresh/pull-to-refresh.js +7 -6
  58. package/dist/collection/components/view/view.js +2 -2
  59. package/dist/esm/{index-789b3db7.js → index-1d67274c.js} +1 -27
  60. package/dist/esm/loader.js +2 -2
  61. package/dist/esm/polyfills/css-shim.js +1 -1
  62. package/dist/esm/taro-ad-core.entry.js +2 -2
  63. package/dist/esm/taro-ad-custom-core.entry.js +2 -2
  64. package/dist/esm/taro-audio-core.entry.js +2 -2
  65. package/dist/esm/taro-block-core.entry.js +2 -2
  66. package/dist/esm/taro-button-core.entry.js +2 -2
  67. package/dist/esm/taro-camera-core.entry.js +2 -2
  68. package/dist/esm/taro-canvas-core.entry.js +2 -2
  69. package/dist/esm/taro-checkbox-core_2.entry.js +3 -3
  70. package/dist/esm/taro-components.js +2 -2
  71. package/dist/esm/taro-cover-image-core.entry.js +2 -2
  72. package/dist/esm/taro-cover-view-core.entry.js +2 -2
  73. package/dist/esm/taro-custom-wrapper-core.entry.js +2 -2
  74. package/dist/esm/taro-editor-core.entry.js +2 -2
  75. package/dist/esm/taro-form-core.entry.js +2 -2
  76. package/dist/esm/taro-functional-page-navigator-core.entry.js +2 -2
  77. package/dist/esm/taro-icon-core.entry.js +2 -2
  78. package/dist/esm/taro-image-core.entry.js +2 -2
  79. package/dist/esm/taro-input-core.entry.js +2 -2
  80. package/dist/esm/taro-keyboard-accessory-core.entry.js +2 -2
  81. package/dist/esm/taro-label-core.entry.js +2 -2
  82. package/dist/esm/taro-live-player-core.entry.js +2 -2
  83. package/dist/esm/taro-live-pusher-core.entry.js +2 -2
  84. package/dist/esm/taro-map-core.entry.js +2 -2
  85. package/dist/esm/taro-match-media-core.entry.js +2 -2
  86. package/dist/esm/taro-movable-area-core.entry.js +2 -2
  87. package/dist/esm/taro-movable-view-core.entry.js +2 -2
  88. package/dist/esm/taro-navigation-bar-core.entry.js +2 -2
  89. package/dist/esm/taro-navigator-core.entry.js +2 -2
  90. package/dist/esm/taro-official-account-core.entry.js +2 -2
  91. package/dist/esm/taro-open-data-core.entry.js +2 -2
  92. package/dist/esm/taro-page-container-core.entry.js +2 -2
  93. package/dist/esm/taro-page-meta-core.entry.js +2 -2
  94. package/dist/esm/taro-picker-core_2.entry.js +3 -3
  95. package/dist/esm/taro-picker-view-column-core.entry.js +2 -2
  96. package/dist/esm/taro-picker-view-core.entry.js +2 -2
  97. package/dist/esm/taro-progress-core.entry.js +2 -2
  98. package/dist/esm/taro-pull-to-refresh.entry.js +9 -8
  99. package/dist/esm/taro-radio-core_2.entry.js +3 -3
  100. package/dist/esm/taro-rich-text-core.entry.js +2 -2
  101. package/dist/esm/taro-scroll-view-core.entry.js +2 -2
  102. package/dist/esm/taro-share-element-core.entry.js +2 -2
  103. package/dist/esm/taro-slider-core.entry.js +2 -2
  104. package/dist/esm/taro-slot-core.entry.js +2 -2
  105. package/dist/esm/taro-swiper-core_2.entry.js +3 -3
  106. package/dist/esm/taro-switch-core.entry.js +2 -2
  107. package/dist/esm/taro-tabbar.entry.js +2 -2
  108. package/dist/esm/taro-text-core.entry.js +2 -2
  109. package/dist/esm/taro-textarea-core.entry.js +2 -2
  110. package/dist/esm/taro-video-control_3.entry.js +4 -4
  111. package/dist/esm/taro-view-core.entry.js +4 -4
  112. package/dist/esm/taro-voip-room-core.entry.js +2 -2
  113. package/dist/esm/taro-web-view-core.entry.js +2 -2
  114. package/dist/esm-es5/index-1d67274c.js +1 -0
  115. package/dist/esm-es5/loader.js +1 -1
  116. package/dist/esm-es5/taro-ad-core.entry.js +1 -1
  117. package/dist/esm-es5/taro-ad-custom-core.entry.js +1 -1
  118. package/dist/esm-es5/taro-audio-core.entry.js +1 -1
  119. package/dist/esm-es5/taro-block-core.entry.js +1 -1
  120. package/dist/esm-es5/taro-button-core.entry.js +1 -1
  121. package/dist/esm-es5/taro-camera-core.entry.js +1 -1
  122. package/dist/esm-es5/taro-canvas-core.entry.js +1 -1
  123. package/dist/esm-es5/taro-checkbox-core_2.entry.js +1 -1
  124. package/dist/esm-es5/taro-components.js +1 -1
  125. package/dist/esm-es5/taro-cover-image-core.entry.js +1 -1
  126. package/dist/esm-es5/taro-cover-view-core.entry.js +1 -1
  127. package/dist/esm-es5/taro-custom-wrapper-core.entry.js +1 -1
  128. package/dist/esm-es5/taro-editor-core.entry.js +1 -1
  129. package/dist/esm-es5/taro-form-core.entry.js +1 -1
  130. package/dist/esm-es5/taro-functional-page-navigator-core.entry.js +1 -1
  131. package/dist/esm-es5/taro-icon-core.entry.js +1 -1
  132. package/dist/esm-es5/taro-image-core.entry.js +1 -1
  133. package/dist/esm-es5/taro-input-core.entry.js +1 -1
  134. package/dist/esm-es5/taro-keyboard-accessory-core.entry.js +1 -1
  135. package/dist/esm-es5/taro-label-core.entry.js +1 -1
  136. package/dist/esm-es5/taro-live-player-core.entry.js +1 -1
  137. package/dist/esm-es5/taro-live-pusher-core.entry.js +1 -1
  138. package/dist/esm-es5/taro-map-core.entry.js +1 -1
  139. package/dist/esm-es5/taro-match-media-core.entry.js +1 -1
  140. package/dist/esm-es5/taro-movable-area-core.entry.js +1 -1
  141. package/dist/esm-es5/taro-movable-view-core.entry.js +1 -1
  142. package/dist/esm-es5/taro-navigation-bar-core.entry.js +1 -1
  143. package/dist/esm-es5/taro-navigator-core.entry.js +1 -1
  144. package/dist/esm-es5/taro-official-account-core.entry.js +1 -1
  145. package/dist/esm-es5/taro-open-data-core.entry.js +1 -1
  146. package/dist/esm-es5/taro-page-container-core.entry.js +1 -1
  147. package/dist/esm-es5/taro-page-meta-core.entry.js +1 -1
  148. package/dist/esm-es5/taro-picker-core_2.entry.js +1 -1
  149. package/dist/esm-es5/taro-picker-view-column-core.entry.js +1 -1
  150. package/dist/esm-es5/taro-picker-view-core.entry.js +1 -1
  151. package/dist/esm-es5/taro-progress-core.entry.js +1 -1
  152. package/dist/esm-es5/taro-pull-to-refresh.entry.js +1 -1
  153. package/dist/esm-es5/taro-radio-core_2.entry.js +1 -1
  154. package/dist/esm-es5/taro-rich-text-core.entry.js +1 -1
  155. package/dist/esm-es5/taro-scroll-view-core.entry.js +1 -1
  156. package/dist/esm-es5/taro-share-element-core.entry.js +1 -1
  157. package/dist/esm-es5/taro-slider-core.entry.js +1 -1
  158. package/dist/esm-es5/taro-slot-core.entry.js +1 -1
  159. package/dist/esm-es5/taro-swiper-core_2.entry.js +1 -1
  160. package/dist/esm-es5/taro-switch-core.entry.js +1 -1
  161. package/dist/esm-es5/taro-tabbar.entry.js +1 -1
  162. package/dist/esm-es5/taro-text-core.entry.js +1 -1
  163. package/dist/esm-es5/taro-textarea-core.entry.js +1 -1
  164. package/dist/esm-es5/taro-video-control_3.entry.js +2 -2
  165. package/dist/esm-es5/taro-view-core.entry.js +1 -1
  166. package/dist/esm-es5/taro-voip-room-core.entry.js +1 -1
  167. package/dist/esm-es5/taro-web-view-core.entry.js +1 -1
  168. package/dist/taro-components/p-06352f55.entry.js +1 -0
  169. package/dist/taro-components/p-085c4322.entry.js +1 -0
  170. package/dist/taro-components/p-087d704b.entry.js +1 -0
  171. package/dist/taro-components/p-0afc53da.entry.js +1 -0
  172. package/dist/taro-components/p-13359eb6.system.entry.js +1 -0
  173. package/dist/taro-components/p-1398c59d.system.entry.js +1 -0
  174. package/dist/taro-components/p-13d03572.entry.js +1 -0
  175. package/dist/taro-components/p-14484d41.entry.js +1 -0
  176. package/dist/taro-components/p-14b26b5f.system.entry.js +1 -0
  177. package/dist/taro-components/p-176374d6.system.entry.js +1 -0
  178. package/dist/taro-components/p-17b78ad7.entry.js +1 -0
  179. package/dist/taro-components/p-1e44fcfd.entry.js +1 -0
  180. package/dist/taro-components/p-1fbf755f.entry.js +1 -0
  181. package/dist/taro-components/{p-407aada8.system.entry.js → p-221bffa0.system.entry.js} +1 -1
  182. package/dist/taro-components/{p-bfd76333.system.entry.js → p-24cc05ea.system.entry.js} +1 -1
  183. package/dist/taro-components/{p-55da9401.system.entry.js → p-2afb4d49.system.entry.js} +1 -1
  184. package/dist/taro-components/p-2c4dea36.system.entry.js +1 -0
  185. package/dist/taro-components/p-34d60fc8.entry.js +1 -0
  186. package/dist/taro-components/p-37ac3d2b.system.entry.js +1 -0
  187. package/dist/taro-components/p-3b067d1f.entry.js +1 -0
  188. package/dist/taro-components/p-3e1e4626.entry.js +1 -0
  189. package/dist/taro-components/p-3e7aced1.entry.js +1 -0
  190. package/dist/taro-components/{p-3774a0b9.system.entry.js → p-3efae2a3.system.entry.js} +1 -1
  191. package/dist/taro-components/p-44996bd6.system.js +1 -0
  192. package/dist/taro-components/p-45574a38.system.entry.js +1 -0
  193. package/dist/taro-components/{p-5ebf2333.system.entry.js → p-45b92229.system.entry.js} +1 -1
  194. package/dist/taro-components/{p-c090756b.system.entry.js → p-49df1b65.system.entry.js} +1 -1
  195. package/dist/taro-components/{p-7be1a0bb.system.entry.js → p-4a0599c1.system.entry.js} +1 -1
  196. package/dist/taro-components/{p-8554900a.system.entry.js → p-4cb60cf0.system.entry.js} +1 -1
  197. package/dist/taro-components/{p-96232b22.system.entry.js → p-52cbf36e.system.entry.js} +1 -1
  198. package/dist/taro-components/p-546f5965.system.entry.js +1 -0
  199. package/dist/taro-components/p-549636ca.entry.js +1 -0
  200. package/dist/taro-components/p-55646f03.entry.js +1 -0
  201. package/dist/taro-components/p-5656b308.system.entry.js +1 -0
  202. package/dist/taro-components/p-58cbfd17.entry.js +1 -0
  203. package/dist/taro-components/{p-c36df190.system.entry.js → p-5e48f1b4.system.entry.js} +1 -1
  204. package/dist/taro-components/p-615b87e8.entry.js +1 -0
  205. package/dist/taro-components/{p-4e108995.system.entry.js → p-617f5e2a.system.entry.js} +1 -1
  206. package/dist/taro-components/{p-61645135.system.entry.js → p-64f6f87c.system.entry.js} +55 -55
  207. package/dist/taro-components/p-68246408.entry.js +1 -0
  208. package/dist/taro-components/{p-0141754f.system.entry.js → p-6946f166.system.entry.js} +1 -1
  209. package/dist/taro-components/p-6e12bd70.system.entry.js +1 -0
  210. package/dist/taro-components/{p-36727043.entry.js → p-7419e765.entry.js} +1 -1
  211. package/dist/taro-components/{p-a3933a47.system.entry.js → p-79495606.system.entry.js} +1 -1
  212. package/dist/taro-components/p-7d457a6a.entry.js +1 -0
  213. package/dist/taro-components/p-7df1437d.system.entry.js +1 -0
  214. package/dist/taro-components/{p-d6e42063.system.entry.js → p-7f2d456b.system.entry.js} +1 -1
  215. package/dist/taro-components/p-7f726d39.entry.js +1 -0
  216. package/dist/taro-components/p-7f8ddefe.entry.js +1 -0
  217. package/dist/taro-components/p-81e33437.system.entry.js +1 -0
  218. package/dist/taro-components/p-880791ee.entry.js +1 -0
  219. package/dist/taro-components/p-884e6eab.entry.js +1 -0
  220. package/dist/taro-components/p-88e3bc92.entry.js +1 -0
  221. package/dist/taro-components/p-88ee404a.system.entry.js +1 -0
  222. package/dist/taro-components/{p-780c1853.system.entry.js → p-899c6b73.system.entry.js} +1 -1
  223. package/dist/taro-components/p-8a2b7701.entry.js +1 -0
  224. package/dist/taro-components/p-8c6d8802.entry.js +1 -0
  225. package/dist/taro-components/p-8c7cf814.js +1 -0
  226. package/dist/taro-components/p-8ca394d6.entry.js +1 -0
  227. package/dist/taro-components/p-8cdc809b.system.entry.js +1 -0
  228. package/dist/taro-components/{p-a66340b0.system.entry.js → p-8e0529f2.system.entry.js} +1 -1
  229. package/dist/taro-components/{p-4c8f288d.system.entry.js → p-8ea9ceb6.system.entry.js} +1 -1
  230. package/dist/taro-components/{p-97e8bb30.system.entry.js → p-90f11b84.system.entry.js} +1 -1
  231. package/dist/taro-components/p-917185f3.entry.js +1 -0
  232. package/dist/taro-components/p-92f26e22.entry.js +1 -0
  233. package/dist/taro-components/p-96706c5c.system.entry.js +1 -0
  234. package/dist/taro-components/p-97af3986.system.entry.js +1 -0
  235. package/dist/taro-components/{p-40711024.system.entry.js → p-9c0f3f24.system.entry.js} +1 -1
  236. package/dist/taro-components/{p-8194107c.system.entry.js → p-9f23c9e1.system.entry.js} +1 -1
  237. package/dist/taro-components/p-9ff180ae.entry.js +1 -0
  238. package/dist/taro-components/{p-aab7f8e8.system.js → p-a2fd3c03.system.js} +1 -1
  239. package/dist/taro-components/p-a9c3e575.entry.js +1 -0
  240. package/dist/taro-components/{p-431dd581.system.entry.js → p-ac4c4975.system.entry.js} +1 -1
  241. package/dist/taro-components/p-aca73ca4.entry.js +1 -0
  242. package/dist/taro-components/p-acb07924.system.entry.js +1 -0
  243. package/dist/taro-components/{p-99b8a7a2.system.entry.js → p-acfcb861.system.entry.js} +1 -1
  244. package/dist/taro-components/p-b31e6cf0.entry.js +1 -0
  245. package/dist/taro-components/p-b455351e.entry.js +1 -0
  246. package/dist/taro-components/p-b640bd56.entry.js +1 -0
  247. package/dist/taro-components/{p-1ae9ff34.system.entry.js → p-b7128eac.system.entry.js} +1 -1
  248. package/dist/taro-components/{p-c2a225ef.system.entry.js → p-ba984b34.system.entry.js} +1 -1
  249. package/dist/taro-components/{p-b3eaf173.entry.js → p-bb3d337d.entry.js} +2 -2
  250. package/dist/taro-components/p-c0875abf.entry.js +1 -0
  251. package/dist/taro-components/p-c1642977.entry.js +1 -0
  252. package/dist/taro-components/p-c33b552b.entry.js +1 -0
  253. package/dist/taro-components/p-c6d14c2b.entry.js +1 -0
  254. package/dist/taro-components/p-c995a3aa.entry.js +1 -0
  255. package/dist/taro-components/p-cde242bb.system.entry.js +1 -0
  256. package/dist/taro-components/p-de726095.entry.js +1 -0
  257. package/dist/taro-components/{p-a06fb894.system.entry.js → p-de95c6ac.system.entry.js} +1 -1
  258. package/dist/taro-components/{p-1a01e5a6.system.entry.js → p-deef9af1.system.entry.js} +1 -1
  259. package/dist/taro-components/p-e5486e8c.system.entry.js +1 -0
  260. package/dist/taro-components/p-e56a303b.entry.js +1 -0
  261. package/dist/taro-components/p-e5fdbc1c.entry.js +1 -0
  262. package/dist/taro-components/p-e6ec7abc.entry.js +1 -0
  263. package/dist/taro-components/{p-5d8ba574.system.entry.js → p-ed69dc55.system.entry.js} +1 -1
  264. package/dist/taro-components/p-ee1ffbb0.entry.js +1 -0
  265. package/dist/taro-components/{p-42b45ac3.system.entry.js → p-efc892d1.system.entry.js} +1 -1
  266. package/dist/taro-components/{p-954862dc.system.entry.js → p-f0c5c933.system.entry.js} +1 -1
  267. package/dist/taro-components/p-f425f3b5.entry.js +1 -0
  268. package/dist/taro-components/p-f5377a15.entry.js +1 -0
  269. package/dist/taro-components/{p-1900c26d.system.entry.js → p-f675e927.system.entry.js} +1 -1
  270. package/dist/taro-components/p-fc28dbdd.entry.js +1 -0
  271. package/dist/taro-components/p-fee2ad82.entry.js +1 -0
  272. package/dist/taro-components/p-ff792cf7.system.entry.js +1 -0
  273. package/dist/taro-components/taro-components.esm.js +1 -1
  274. package/dist/taro-components/taro-components.js +1 -1
  275. package/dist/types/home/runner/work/taro/taro/packages/taro-components/.stencil/types/props.d.ts +3 -3
  276. package/dist-h5/react/components/index.js +63 -0
  277. package/dist-h5/react/index.js +1 -46
  278. package/dist-h5/react/utils/reactify-wc.js +1 -1
  279. package/dist-h5/vue/components/index.js +60 -0
  280. package/dist-h5/vue/index.js +23 -26
  281. package/dist-h5/vue3/components/index.js +64 -0
  282. package/dist-h5/vue3/createFormsComponent.js +1 -1
  283. package/dist-h5/vue3/index.js +12 -65
  284. package/package.json +16 -9
  285. package/types/common.d.ts +2 -0
  286. package/types/props.ts +3 -4
  287. package/virtual-list/memoize.js +1 -0
  288. package/virtual-list/react/createListComponent.js +2 -1
  289. package/virtual-list/react/index.js +2 -1
  290. package/virtual-list/timer.js +1 -1
  291. package/virtual-list/vue/index.js +1 -1
  292. package/vue3.d.ts +3 -0
  293. package/dist/esm-es5/index-789b3db7.js +0 -1
  294. package/dist/taro-components/p-02282c70.system.entry.js +0 -1
  295. package/dist/taro-components/p-0674e57b.system.js +0 -1
  296. package/dist/taro-components/p-0adcc512.entry.js +0 -1
  297. package/dist/taro-components/p-107c83e4.system.entry.js +0 -1
  298. package/dist/taro-components/p-15f00e71.entry.js +0 -1
  299. package/dist/taro-components/p-1da081b6.entry.js +0 -1
  300. package/dist/taro-components/p-2927361f.entry.js +0 -1
  301. package/dist/taro-components/p-29f2cbdf.system.entry.js +0 -1
  302. package/dist/taro-components/p-2e78c090.entry.js +0 -1
  303. package/dist/taro-components/p-34477097.system.entry.js +0 -1
  304. package/dist/taro-components/p-3546a833.entry.js +0 -1
  305. package/dist/taro-components/p-3eb5219a.entry.js +0 -1
  306. package/dist/taro-components/p-404fbc7c.entry.js +0 -1
  307. package/dist/taro-components/p-44aa312d.system.entry.js +0 -1
  308. package/dist/taro-components/p-4651474c.entry.js +0 -1
  309. package/dist/taro-components/p-47484bac.system.entry.js +0 -1
  310. package/dist/taro-components/p-47eb9dcc.entry.js +0 -1
  311. package/dist/taro-components/p-497a5d9a.entry.js +0 -1
  312. package/dist/taro-components/p-4d4637df.entry.js +0 -1
  313. package/dist/taro-components/p-4eda1f6b.entry.js +0 -1
  314. package/dist/taro-components/p-518e7b29.entry.js +0 -1
  315. package/dist/taro-components/p-52033dd2.entry.js +0 -1
  316. package/dist/taro-components/p-52e0c86e.system.entry.js +0 -1
  317. package/dist/taro-components/p-557d86fe.entry.js +0 -1
  318. package/dist/taro-components/p-5d51b5b0.entry.js +0 -1
  319. package/dist/taro-components/p-64e67d96.system.entry.js +0 -1
  320. package/dist/taro-components/p-720134e9.system.entry.js +0 -1
  321. package/dist/taro-components/p-7309764b.entry.js +0 -1
  322. package/dist/taro-components/p-75c07a8d.system.entry.js +0 -1
  323. package/dist/taro-components/p-76ab644c.entry.js +0 -1
  324. package/dist/taro-components/p-783af5b6.entry.js +0 -1
  325. package/dist/taro-components/p-7868d50a.system.entry.js +0 -1
  326. package/dist/taro-components/p-7b43bfe6.entry.js +0 -1
  327. package/dist/taro-components/p-7c5be4ff.entry.js +0 -1
  328. package/dist/taro-components/p-7ee03392.system.entry.js +0 -1
  329. package/dist/taro-components/p-87282837.entry.js +0 -1
  330. package/dist/taro-components/p-8870f200.entry.js +0 -1
  331. package/dist/taro-components/p-89b902ef.entry.js +0 -1
  332. package/dist/taro-components/p-8ab7c95f.entry.js +0 -1
  333. package/dist/taro-components/p-8b9fdd2d.entry.js +0 -1
  334. package/dist/taro-components/p-8e56fb48.entry.js +0 -1
  335. package/dist/taro-components/p-8fd6b016.entry.js +0 -1
  336. package/dist/taro-components/p-95bd702e.entry.js +0 -1
  337. package/dist/taro-components/p-a0c6319e.entry.js +0 -1
  338. package/dist/taro-components/p-a296ef29.entry.js +0 -1
  339. package/dist/taro-components/p-a39fc58e.entry.js +0 -1
  340. package/dist/taro-components/p-a5b29178.system.entry.js +0 -1
  341. package/dist/taro-components/p-a64d8c69.entry.js +0 -1
  342. package/dist/taro-components/p-abe4452a.entry.js +0 -1
  343. package/dist/taro-components/p-b1cf6698.system.entry.js +0 -1
  344. package/dist/taro-components/p-b6956e54.entry.js +0 -1
  345. package/dist/taro-components/p-be4406bd.system.entry.js +0 -1
  346. package/dist/taro-components/p-c28a79eb.entry.js +0 -1
  347. package/dist/taro-components/p-c503bd98.system.entry.js +0 -1
  348. package/dist/taro-components/p-ca1f541c.system.entry.js +0 -1
  349. package/dist/taro-components/p-cabc377f.entry.js +0 -1
  350. package/dist/taro-components/p-cf9e80c9.entry.js +0 -1
  351. package/dist/taro-components/p-d1c28dd0.entry.js +0 -1
  352. package/dist/taro-components/p-d21dd145.js +0 -1
  353. package/dist/taro-components/p-d5bfba7d.entry.js +0 -1
  354. package/dist/taro-components/p-df00945b.entry.js +0 -1
  355. package/dist/taro-components/p-e28a1c0e.entry.js +0 -1
  356. package/dist/taro-components/p-e43c8d69.system.entry.js +0 -1
  357. package/dist/taro-components/p-f201d652.system.entry.js +0 -1
  358. package/dist/taro-components/p-f2add48e.entry.js +0 -1
  359. package/dist/taro-components/p-f46523cb.entry.js +0 -1
  360. package/dist/taro-components/p-f4e38010.entry.js +0 -1
  361. package/dist/taro-components/p-f7fc979d.entry.js +0 -1
  362. package/dist/taro-components/p-f8eb7e74.system.entry.js +0 -1
  363. package/dist/taro-components/p-fb1de68d.entry.js +0 -1
  364. package/dist/taro-components/p-fbf0fb63.entry.js +0 -1
  365. package/dist-h5/vue/simpleComponents.js +0 -19
@@ -1,4 +1,4 @@
1
- import{r as t,h as i,H as n,g as r,c as e}from"./p-d21dd145.js";import{a as s,b as o,g as a,c as h}from"./p-7e5d2d7a.js";import{t as u}from"./p-5746d7ce.js";const c=t=>{if(!t)return"";const i=Math.round(t%60),n=Math.round((t-i)/60);return`${n<10?`0${n}`:n}:${i<10?`0${i}`:i}`},f=t=>Math.max(-1,Math.min(t,1)),l=function(){let t;const i=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]];var n=["webkitEnterFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"];let r=0;const e=i.length,s={};for(;r<e;r++)if(t=i[r],t&&t[1]in document){for(r=0;r<t.length;r++)s[i[0][r]]=t[r];return s}if(!s[i[0][0]])for(r=0;r<n.length;r++)s[i[0][r]]=n[r];return s}();var v=function(t,i,n,r){return new(n||(n=Promise))((function(e,s){function o(t){try{h(r.next(t))}catch(t){s(t)}}function a(t){try{h(r.throw(t))}catch(t){s(t)}}function h(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n((function(t){t(i)}))).then(o,a)}h((r=r.apply(t,i||[])).next())}))};const d=class{constructor(i){t(this,i),this.visible=!1,this.isDraggingProgressBall=!1,this.percentage=0,this.progressDimensions={left:0,width:0},this.calcPercentage=t=>{let i=t-this.progressDimensions.left;return i=Math.max(i,0),i=Math.min(i,this.progressDimensions.width),i/this.progressDimensions.width},this.onDragProgressBallStart=()=>{this.isDraggingProgressBall=!0,this.hideControlsTimer&&clearTimeout(this.hideControlsTimer)},this.onClickProgress=t=>{t.stopPropagation();const i=this.calcPercentage(t.pageX);this.seekFunc(i*this.duration),this.toggleVisibility(!0)}}onDocumentTouchMove(t){this.isDraggingProgressBall&&(this.percentage=this.calcPercentage(t.touches[0].pageX),this.setProgressBall(this.percentage),this.setCurrentTime(this.percentage*this.duration))}onDocumentTouchEnd(){this.isDraggingProgressBall&&(this.isDraggingProgressBall=!1,this.seekFunc(this.percentage*this.duration),this.toggleVisibility(!0))}setProgressBall(t){return v(this,void 0,void 0,(function*(){this.progressBallRef&&(this.progressBallRef.style.left=100*t+"%")}))}toggleVisibility(t){return v(this,void 0,void 0,(function*(){const i=void 0===t?!this.visible:t;i?(this.hideControlsTimer&&clearTimeout(this.hideControlsTimer),this.isPlaying&&(this.hideControlsTimer=setTimeout((()=>{this.toggleVisibility(!1)}),2e3)),this.controlsRef.style.visibility="visible"):this.controlsRef.style.visibility="hidden",this.visible=!!i}))}getIsDraggingProgressBall(){return v(this,void 0,void 0,(function*(){return this.isDraggingProgressBall}))}setCurrentTime(t){return v(this,void 0,void 0,(function*(){this.currentTimeRef.innerHTML=c(t)}))}render(){const{controls:t,currentTime:r,duration:e,isPlaying:s,pauseFunc:o,playFunc:a,showPlayBtn:h,showProgress:u}=this,f=c(e);let l;return l=h?i("div",s?{class:"taro-video-control-button taro-video-control-button-pause",onClick:o}:{class:"taro-video-control-button taro-video-control-button-play",onClick:a}):null,i(n,{class:"taro-video-bar taro-video-bar-full"},t&&i("div",{class:"taro-video-controls"},l,u&&i("div",{class:"taro-video-current-time",ref:t=>this.currentTimeRef=t},c(r)),u&&i("div",{class:"taro-video-progress-container",onClick:this.onClickProgress},i("div",{class:"taro-video-progress",ref:t=>{if(!t)return;const i=t.getBoundingClientRect();this.progressDimensions.left=i.left,this.progressDimensions.width=i.width}},i("div",{class:"taro-video-progress-buffered",style:{width:"100%"}}),i("div",{class:"taro-video-ball",ref:t=>this.progressBallRef=t,onTouchStart:this.onDragProgressBallStart,style:{left:(f?this.currentTime/e*100:0)+"%"}},i("div",{class:"taro-video-inner"})))),u&&i("div",{class:"taro-video-duration"},f)),i("slot",null))}get controlsRef(){return r(this)}},m=a(s((function(t){var i;"undefined"!=typeof window&&(i=function(){return function(t){var i={};function n(r){if(i[r])return i[r].exports;var e=i[r]={i:r,l:!1,exports:{}};return t[r].call(e.exports,e,e.exports,n),e.l=!0,e.exports}return n.m=t,n.c=i,n.d=function(t,i,r){n.o(t,i)||Object.defineProperty(t,i,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,i){if(1&i&&(t=n(t)),8&i)return t;if(4&i&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&i&&"string"!=typeof t)for(var e in t)n.d(r,e,function(i){return t[i]}.bind(null,e));return r},n.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(i,"a",i),i},n.o=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)},n.p="/dist/",n(n.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":
1
+ import{r as t,h as i,H as n,g as r,c as e}from"./p-8c7cf814.js";import{a as s,b as o,g as a,c as h}from"./p-7e5d2d7a.js";import{t as u}from"./p-5746d7ce.js";const c=t=>{if(!t)return"";const i=Math.round(t%60),n=Math.round((t-i)/60);return`${n<10?`0${n}`:n}:${i<10?`0${i}`:i}`},f=t=>Math.max(-1,Math.min(t,1)),l=function(){let t;const i=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]];var n=["webkitEnterFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"];let r=0;const e=i.length,s={};for(;r<e;r++)if(t=i[r],t&&t[1]in document){for(r=0;r<t.length;r++)s[i[0][r]]=t[r];return s}if(!s[i[0][0]])for(r=0;r<n.length;r++)s[i[0][r]]=n[r];return s}();var v=function(t,i,n,r){return new(n||(n=Promise))((function(e,s){function o(t){try{h(r.next(t))}catch(t){s(t)}}function a(t){try{h(r.throw(t))}catch(t){s(t)}}function h(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n((function(t){t(i)}))).then(o,a)}h((r=r.apply(t,i||[])).next())}))};let d=class{constructor(i){t(this,i),this.visible=!1,this.isDraggingProgressBall=!1,this.percentage=0,this.progressDimensions={left:0,width:0},this.calcPercentage=t=>{let i=t-this.progressDimensions.left;return i=Math.max(i,0),i=Math.min(i,this.progressDimensions.width),i/this.progressDimensions.width},this.onDragProgressBallStart=()=>{this.isDraggingProgressBall=!0,this.hideControlsTimer&&clearTimeout(this.hideControlsTimer)},this.onClickProgress=t=>{t.stopPropagation();const i=this.calcPercentage(t.pageX);this.seekFunc(i*this.duration),this.toggleVisibility(!0)}}onDocumentTouchMove(t){this.isDraggingProgressBall&&(this.percentage=this.calcPercentage(t.touches[0].pageX),this.setProgressBall(this.percentage),this.setCurrentTime(this.percentage*this.duration))}onDocumentTouchEnd(){this.isDraggingProgressBall&&(this.isDraggingProgressBall=!1,this.seekFunc(this.percentage*this.duration),this.toggleVisibility(!0))}setProgressBall(t){return v(this,void 0,void 0,(function*(){this.progressBallRef&&(this.progressBallRef.style.left=100*t+"%")}))}toggleVisibility(t){return v(this,void 0,void 0,(function*(){const i=void 0===t?!this.visible:t;i?(this.hideControlsTimer&&clearTimeout(this.hideControlsTimer),this.isPlaying&&(this.hideControlsTimer=setTimeout((()=>{this.toggleVisibility(!1)}),2e3)),this.controlsRef.style.visibility="visible"):this.controlsRef.style.visibility="hidden",this.visible=!!i}))}getIsDraggingProgressBall(){return v(this,void 0,void 0,(function*(){return this.isDraggingProgressBall}))}setCurrentTime(t){return v(this,void 0,void 0,(function*(){this.currentTimeRef.innerHTML=c(t)}))}render(){const{controls:t,currentTime:r,duration:e,isPlaying:s,pauseFunc:o,playFunc:a,showPlayBtn:h,showProgress:u}=this,f=c(e);let l;return l=h?i("div",s?{class:"taro-video-control-button taro-video-control-button-pause",onClick:o}:{class:"taro-video-control-button taro-video-control-button-play",onClick:a}):null,i(n,{class:"taro-video-bar taro-video-bar-full"},t&&i("div",{class:"taro-video-controls"},l,u&&i("div",{class:"taro-video-current-time",ref:t=>this.currentTimeRef=t},c(r)),u&&i("div",{class:"taro-video-progress-container",onClick:this.onClickProgress},i("div",{class:"taro-video-progress",ref:t=>{if(!t)return;const i=t.getBoundingClientRect();this.progressDimensions.left=i.left,this.progressDimensions.width=i.width}},i("div",{class:"taro-video-progress-buffered",style:{width:"100%"}}),i("div",{class:"taro-video-ball",ref:t=>this.progressBallRef=t,onTouchStart:this.onDragProgressBallStart,style:{left:(f?this.currentTime/e*100:0)+"%"}},i("div",{class:"taro-video-inner"})))),u&&i("div",{class:"taro-video-duration"},f)),i("slot",null))}get controlsRef(){return r(this)}};const m=a(s((function(t){var i;"undefined"!=typeof window&&(i=function(){return function(t){var i={};function n(r){if(i[r])return i[r].exports;var e=i[r]={i:r,l:!1,exports:{}};return t[r].call(e.exports,e,e.exports,n),e.l=!0,e.exports}return n.m=t,n.c=i,n.d=function(t,i,r){n.o(t,i)||Object.defineProperty(t,i,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,i){if(1&i&&(t=n(t)),8&i)return t;if(4&i&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&i&&"string"!=typeof t)for(var e in t)n.d(r,e,function(i){return t[i]}.bind(null,e));return r},n.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(i,"a",i),i},n.o=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)},n.p="/dist/",n(n.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":
2
2
  /*!*********************************************!*\
3
3
  !*** ./node_modules/eventemitter3/index.js ***!
4
4
  \*********************************************/
@@ -362,4 +362,4 @@ import{r as t,h as i,H as n,g as r,c as e}from"./p-d21dd145.js";import{a as s,b
362
362
  /*!*********************************!*\
363
363
  !*** ./src/utils/xhr-loader.ts ***!
364
364
  \*********************************/
365
- /*! exports provided: default */function(t,i,n){n.r(i);var r=n(/*! ../utils/logger */"./src/utils/logger.ts"),e=n(/*! ../loader/load-stats */"./src/loader/load-stats.ts"),s=/^age:\s*[\d.]+\s*$/m;i.default=function(){function t(t){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=void 0,this.loader=null,this.stats=void 0,this.xhrSetup=t?t.xhrSetup:null,this.stats=new e.LoadStats,this.retryDelay=0}var i=t.prototype;return i.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},i.abortInternal=function(){var t=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),t&&(t.onreadystatechange=null,t.onprogress=null,4!==t.readyState&&(this.stats.aborted=!0,t.abort()))},i.abort=function(){var t;this.abortInternal(),null!==(t=this.callbacks)&&void 0!==t&&t.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},i.load=function(t,i,n){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=t,this.config=i,this.callbacks=n,this.retryDelay=i.retryDelay,this.loadInternal()},i.loadInternal=function(){var t=this.config,i=this.context;if(t){var n=this.loader=new self.XMLHttpRequest,r=this.stats;r.loading.first=0,r.loaded=0;var e=this.xhrSetup;try{if(e)try{e(n,i.url)}catch(t){n.open("GET",i.url,!0),e(n,i.url)}n.readyState||n.open("GET",i.url,!0);var s=this.context.headers;if(s)for(var o in s)n.setRequestHeader(o,s[o])}catch(t){return void this.callbacks.onError({code:n.status,text:t.message},i,n)}i.rangeEnd&&n.setRequestHeader("Range","bytes="+i.rangeStart+"-"+(i.rangeEnd-1)),n.onreadystatechange=this.readystatechange.bind(this),n.onprogress=this.loadprogress.bind(this),n.responseType=i.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),t.timeout),n.send()}},i.readystatechange=function(){var t=this.context,i=this.loader,n=this.stats;if(t&&i){var e=i.readyState,s=this.config;if(!n.aborted&&e>=2)if(self.clearTimeout(this.requestTimeout),0===n.loading.first&&(n.loading.first=Math.max(self.performance.now(),n.loading.start)),4===e){i.onreadystatechange=null,i.onprogress=null;var o=i.status;if(o>=200&&o<300){var a,h;if(n.loading.end=Math.max(self.performance.now(),n.loading.first),h="arraybuffer"===t.responseType?(a=i.response).byteLength:(a=i.responseText).length,n.loaded=n.total=h,!this.callbacks)return;var u=this.callbacks.onProgress;if(u&&u(n,t,a,i),!this.callbacks)return;this.callbacks.onSuccess({url:i.responseURL,data:a},n,t,i)}else n.retry>=s.maxRetry||o>=400&&o<499?(r.logger.error(o+" while loading "+t.url),this.callbacks.onError({code:o,text:i.statusText},t,i)):(r.logger.warn(o+" while loading "+t.url+", retrying in "+this.retryDelay+"..."),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay),this.retryDelay=Math.min(2*this.retryDelay,s.maxRetryDelay),n.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),s.timeout)}},i.loadtimeout=function(){r.logger.warn("timeout while loading "+this.context.url);var t=this.callbacks;t&&(this.abortInternal(),t.onTimeout(this.stats,this.context,this.loader))},i.loadprogress=function(t){var i=this.stats;i.loaded=t.loaded,t.lengthComputable&&(i.total=t.total)},i.getCacheAge=function(){var t=null;if(this.loader&&s.test(this.loader.getAllResponseHeaders())){var i=this.loader.getResponseHeader("age");t=i?parseFloat(i):null}return t},t}()}}).default},t.exports=i())})));var p=function(t,i,n,r){return new(n||(n=Promise))((function(e,s){function o(t){try{h(r.next(t))}catch(t){s(t)}}function a(t){try{h(r.throw(t))}catch(t){s(t)}}function h(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n((function(t){t(i)}))).then(o,a)}h((r=r.apply(t,i||[])).next())}))};const g=class{constructor(i){t(this,i),this.onPlay=e(this,"play",7),this.onPause=e(this,"pause",7),this.onEnded=e(this,"ended",7),this.onTimeUpdate=e(this,"timeupdate",7),this.onError=e(this,"error",7),this.onFullScreenChange=e(this,"fullscreenchange",7),this.onProgress=e(this,"progress",7),this.onLoadedMetaData=e(this,"loadedmetadata",7),this.currentTime=0,this.isDraggingProgress=!1,this.gestureType="none",this.controls=!0,this.autoplay=!1,this.loop=!1,this.muted=!1,this.initialTime=0,this.objectFit="contain",this.showProgress=!0,this.showFullscreenBtn=!0,this.showPlayBtn=!0,this.showCenterPlayBtn=!0,this.showMuteBtn=!1,this.danmuBtn=!1,this.enableDanmu=!1,this.enablePlayGesture=!1,this.enableProgressGesture=!0,this.vslideGesture=!1,this.vslideGestureInFullscreen=!0,this.nativeProps={},this._enableDanmu=!1,this.isPlaying=!1,this.isFirst=!0,this.isFullScreen=!1,this.fullScreenTimestamp=(new Date).getTime(),this.isMute=!1,this.analyzeGesture=t=>{var i;const n={type:"none"},r=t.touches[0].screenX-this.lastTouchScreenX,e=t.touches[0].screenY-this.lastTouchScreenY,s=this.isFullScreen?this.vslideGestureInFullscreen:this.vslideGesture;if("none"===this.gestureType){if(o=e,Math.sqrt(Math.pow(r,2)+Math.pow(o,2))<10)return n;if(Math.abs(e)>=Math.abs(r)){if(!s)return n;this.gestureType="adjustVolume",this.lastVolume=this.videoRef.volume}else if(Math.abs(e)<Math.abs(r)){if(!this.enableProgressGesture)return n;this.gestureType="adjustProgress",this.lastPercentage=this.currentTime/(null!==(i=this.duration)&&void 0!==i?i:this._duration)}}var o;return n.type=this.gestureType,n.dataX=f(r/200),n.dataY=f(e/200),n},this.loadNativePlayer=()=>{this.videoRef&&(this.videoRef.src=this.src,this.videoRef.load())},this.init=()=>{const{src:t,videoRef:i}=this;/\.(m3u8)($|\?)/i.test(t)?m.isSupported()?(this.hls&&this.hls.destroy(),this.hls=new m,this.hls.loadSource(t),this.hls.attachMedia(i),this.hls.on(m.Events.MANIFEST_PARSED,(()=>{this.autoplay&&this.play()}))):i.canPlayType("application/vnd.apple.mpegurl")?this.loadNativePlayer():console.error("该浏览器不支持 HLS 播放"):this.loadNativePlayer()},this.handlePlay=()=>{this.isPlaying=!0,this.isFirst=!1,this.controlsRef.toggleVisibility(!0),this.onPlay.emit()},this.handlePause=()=>{this.isPlaying=!1,this.controlsRef.toggleVisibility(!0),this.onPause.emit()},this.handleEnded=()=>{this.isFirst=!0,this.pause(),this.controlsRef.toggleVisibility(),this.onEnded.emit()},this.handleTimeUpdate=u((t=>p(this,void 0,void 0,(function*(){var i,n;this.currentTime=this.videoRef.currentTime;const r=this.duration||this._duration,e=yield this.controlsRef.getIsDraggingProgressBall();this.controls&&this.showProgress&&(e||this.isDraggingProgress||(this.controlsRef.setProgressBall(this.currentTime/r),this.controlsRef.setCurrentTime(this.currentTime))),this.danmuRef.tick(this.currentTime),this.onTimeUpdate.emit({duration:null===(i=t.target)||void 0===i?void 0:i.duration,currentTime:null===(n=t.target)||void 0===n?void 0:n.currentTime}),this.duration&&this.currentTime>=this.duration&&(this.seek(0),this.handleEnded())}))),250),this.handleError=t=>{var i,n;this.onError.emit({errMsg:null===(n=null===(i=t.target)||void 0===i?void 0:i.error)||void 0===n?void 0:n.message})},this.handleDurationChange=()=>{this._duration=this.videoRef.duration},this.handleProgress=()=>{this.onProgress.emit()},this.handleLoadedMetaData=t=>{const i=t.target;this.onLoadedMetaData.emit({width:i.videoWidth,height:i.videoHeight,duration:i.duration})},this._play=()=>this.videoRef.play(),this._pause=()=>this.videoRef.pause(),this._stop=()=>{this.videoRef.pause(),this._seek(0)},this._seek=t=>{this.videoRef.currentTime=t},this.onTouchStartContainer=t=>{this.lastTouchScreenX=t.touches[0].screenX,this.lastTouchScreenY=t.touches[0].screenY},this.onClickContainer=()=>{if(this.enablePlayGesture){const t=Date.now();t-this.lastClickedTime<300&&(this.isPlaying?this.pause():this.play()),this.lastClickedTime=t}this.controlsRef.toggleVisibility()},this.onClickFullScreenBtn=t=>{t.stopPropagation(),this.toggleFullScreen()},this.handleFullScreenChange=t=>{const i=(new Date).getTime();!t.detail&&this.isFullScreen&&!document[l.fullscreenElement]&&i-this.fullScreenTimestamp>100&&this.toggleFullScreen(!1)},this.toggleFullScreen=(t=!this.isFullScreen)=>{this.isFullScreen=t,this.controlsRef.toggleVisibility(!0),this.fullScreenTimestamp=(new Date).getTime(),this.onFullScreenChange.emit({fullScreen:this.isFullScreen,direction:"vertical"}),this.isFullScreen&&!document[l.fullscreenElement]&&setTimeout((()=>{this.videoRef[l.requestFullscreen]({navigationUI:"show"})}),0)},this.toggleMute=t=>{t.stopPropagation(),this.videoRef.muted=!this.isMute,this.controlsRef.toggleVisibility(!0),this.isMute=!this.isMute},this.toggleDanmu=t=>{t.stopPropagation(),this.controlsRef.toggleVisibility(!0),this._enableDanmu=!this._enableDanmu}}componentWillLoad(){this._enableDanmu=this.enableDanmu}componentDidLoad(){this.init(),this.initialTime&&(this.videoRef.currentTime=this.initialTime),this.danmuRef.sendDanmu(this.danmuList),document.addEventListener&&document.addEventListener(l.fullscreenchange,this.handleFullScreenChange)}componentDidRender(){}disconnectedCallback(){document.removeEventListener&&document.removeEventListener(l.fullscreenchange,this.handleFullScreenChange)}watchEnableDanmu(t){this._enableDanmu=t}watchSrc(){this.init()}onDocumentTouchMove(t){return p(this,void 0,void 0,(function*(){if(void 0===this.lastTouchScreenX||void 0===this.lastTouchScreenY)return;if(yield this.controlsRef.getIsDraggingProgressBall())return;const i=this.analyzeGesture(t);if("adjustVolume"===i.type){this.toastVolumeRef.style.visibility="visible";const t=Math.max(Math.min(this.lastVolume-i.dataY,1),0);this.videoRef.volume=t,this.toastVolumeBarRef.style.width=100*t+"%"}else if("adjustProgress"===i.type){this.isDraggingProgress=!0,this.nextPercentage=Math.max(Math.min(this.lastPercentage+i.dataX,1),0),this.controls&&this.showProgress&&(this.controlsRef.setProgressBall(this.nextPercentage),this.controlsRef.toggleVisibility(!0));const t=this.duration||this._duration;this.toastProgressTitleRef.innerHTML=`${c(this.nextPercentage*t)} / ${c(t)}`,this.toastProgressRef.style.visibility="visible"}}))}onDocumentTouchEnd(){var t;"adjustVolume"===this.gestureType?this.toastVolumeRef.style.visibility="hidden":"adjustProgress"===this.gestureType&&(this.toastProgressRef.style.visibility="hidden"),this.isDraggingProgress&&(this.isDraggingProgress=!1,this.seek(this.nextPercentage*(null!==(t=this.duration)&&void 0!==t?t:this._duration))),this.gestureType="none",this.lastTouchScreenX=void 0,this.lastTouchScreenY=void 0}play(){return p(this,void 0,void 0,(function*(){this._play()}))}pause(){return p(this,void 0,void 0,(function*(){this._pause()}))}stop(){return p(this,void 0,void 0,(function*(){this._stop()}))}seek(t){return p(this,void 0,void 0,(function*(){this._seek(t)}))}requestFullScreen(){return p(this,void 0,void 0,(function*(){this.toggleFullScreen(!0)}))}exitFullScreen(){return p(this,void 0,void 0,(function*(){this.toggleFullScreen(!1)}))}render(){const{controls:t,autoplay:r,loop:e,muted:s,poster:o,objectFit:a,isFirst:u,isMute:f,isFullScreen:l,showCenterPlayBtn:v,isPlaying:d,_enableDanmu:m,showMuteBtn:p,danmuBtn:g,showFullscreenBtn:b,nativeProps:y}=this,w=this.duration||this._duration,A=c(w);return i(n,{class:h("taro-video-container",{"taro-video-type-fullscreen":l}),onTouchStart:this.onTouchStartContainer,onClick:this.onClickContainer},i("video",Object.assign({class:"taro-video-video",style:{"object-fit":a},ref:t=>{t&&(this.videoRef=t)},autoplay:r,loop:e,muted:s,poster:t?o:void 0,playsinline:!0,"webkit-playsinline":!0,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onTimeUpdate:this.handleTimeUpdate,onError:this.handleError,onDurationChange:this.handleDurationChange,onProgress:this.handleProgress,onLoadedMetaData:this.handleLoadedMetaData},y),"暂时不支持播放该视频"),i("taro-video-danmu",{ref:t=>{t&&(this.danmuRef=t)},enable:m}),u&&v&&!d&&i("div",{class:"taro-video-cover"},i("div",{class:"taro-video-cover-play-button",onClick:()=>this.play()}),i("p",{class:"taro-video-cover-duration"},A)),i("taro-video-control",{ref:t=>{t&&(this.controlsRef=t)},controls:t,currentTime:this.currentTime,duration:w,isPlaying:this.isPlaying,pauseFunc:this._pause,playFunc:this._play,seekFunc:this._seek,showPlayBtn:this.showPlayBtn,showProgress:this.showProgress},p&&i("div",{class:h("taro-video-mute",{"taro-video-type-mute":f}),onClick:this.toggleMute}),g&&i("div",{class:h("taro-video-danmu-button",{"taro-video-danmu-button-active":m}),onClick:this.toggleDanmu},"弹幕"),b&&i("div",{class:h("taro-video-fullscreen",{"taro-video-type-fullscreen":l}),onClick:this.onClickFullScreenBtn})),i("div",{class:"taro-video-toast taro-video-toast-volume",ref:t=>{t&&(this.toastVolumeRef=t)}},i("div",{class:"taro-video-toast-title"},"音量"),i("div",{class:"taro-video-toast-icon"}),i("div",{class:"taro-video-toast-value"},i("div",{class:"taro-video-toast-value-content",ref:t=>{t&&(this.toastVolumeBarRef=t)}},i("div",{class:"taro-video-toast-volume-grids"},Array(10).fill(1).map((()=>i("div",{class:"taro-video-toast-volume-grids-item"}))))))),i("div",{class:"taro-video-toast taro-video-toast-progress",ref:t=>{t&&(this.toastProgressRef=t)}},i("div",{class:"taro-video-toast-title",ref:t=>{t&&(this.toastProgressTitleRef=t)}})))}get el(){return r(this)}static get watchers(){return{enableDanmu:["watchEnableDanmu"],src:["watchSrc"]}}};g.style='.taro-video{display:inline-block;overflow:hidden;position:relative;width:100%;height:225px;line-height:0}.taro-video[hidden]{display:none}.taro-video-container{display:inline-block;overflow:hidden;position:absolute;left:0;top:0;width:100%;height:100%;background-color:#000;-o-object-position:inherit;object-position:inherit}.taro-video-container.taro-video-type-fullscreen{position:fixed;left:0;right:0;top:0;bottom:0;z-index:999}.taro-video-container.taro-video-type-fullscreen.taro-video-type-rotate-left{-webkit-transform:translate(-50%, -50%) rotate(-90deg);transform:translate(-50%, -50%) rotate(-90deg)}.taro-video-container.taro-video-type-fullscreen.taro-video-type-rotate-right{-webkit-transform:translate(-50%, -50%) rotate(90deg);transform:translate(-50%, -50%) rotate(90deg)}.taro-video-video{width:100%;height:100%;-o-object-position:inherit;object-position:inherit}.taro-video-cover{display:-ms-flexbox;display:flex;position:absolute;left:0;top:0;bottom:0;z-index:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;width:100%;background-color:rgba(1, 1, 1, 0.5);-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-pack:center;-webkit-box-align:center}.taro-video-cover-play-button{width:40px;height:40px;background-repeat:no-repeat;background-position:50% 50%;background-size:50%}.taro-video-cover-duration{margin-top:10px;line-height:1;font-size:16px;color:#fff}.taro-video-bar{display:-ms-flexbox;display:flex;visibility:hidden;overflow:hidden;position:absolute;right:0;bottom:0;z-index:1;-ms-flex-align:center;align-items:center;padding:0 10px;height:44px;background-color:rgba(0, 0, 0, 0.5);-webkit-box-align:center}.taro-video-bar.taro-video-bar-full{left:0}.taro-video-controls{display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;margin:0 8.5px}.taro-video-control-button{-webkit-box-sizing:content-box;box-sizing:content-box;margin-left:-8.5px;padding:14.5px 12.5px;width:13px;height:15px}.taro-video-control-button::after{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:50% 50%;background-size:100%;content:""}.taro-video-control-button.taro-video-control-button-play::after,.taro-video-cover-play-button{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAeCAYAAAAy2w7YAAAAAXNSR0IArs4c6QAAAWhJREFUSA1j+P///0cgBoHjQGzCQCsAtgJB/AMy5wCxGNXtQ9iBwvoA5BUCMQvVLEQxHpNzDSjkRhXLMM3GKrIeKKpEkYVYjcUu+AMo3ALE3GRZiN1MvKKPgbIRJFuG10j8koeA0gZEW4jfLIKyf4EqpgOxMEELCRpFnIJ3QGU5QMyM00LizCFa1SWgSkeslhFtBGkKVwGVy6FYSJp+klR/A6quB2JOkIWMIK0oNlOf8xBoZDE9LAI7nYn6HsBq4l96WHQEaLUpAyiOaASeAM2NgvuPBpaACt82IEYtfKls0UagecpwXyAzqGTRdaA57sjmYrAptAjUsCkGYlYMg9EFyLQI1IiZB8Ti6Obh5JNh0QmgHlOcBuKSIMGi50C18UDMiMssvOJEWPQLqKYbiHnxGkRIkoBF24DyaoTMIEoeh0W3geI+RBlArCI0iz4D+RVAzEasfqLVAQ19AcSg5LoYiKWI1kiiQgCMBLnEEcfDSgAAAABJRU5ErkJggg==")}.taro-video-control-button.taro-video-control-button-pause::after{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAgCAYAAAAffCjxAAAAAXNSR0IArs4c6QAAAFlJREFUSA3tksEKACAIQ7X//5zq98wOgQayum8QaGweHhMzG/6OujzKAymn+0LMqivu1XznWmX8/echTIyMyAgTwA72iIwwAexgj8gIE8CO3aMRbDPMaEy5BRGaKcZv8YxRAAAAAElFTkSuQmCC")}.taro-video-current-time,.taro-video-duration{margin-top:15px;margin-bottom:14.5px;height:14.5px;line-height:14.5px;font-size:12px;color:#cbcbcb}.taro-video-progress-container{position:relative;-ms-flex-positive:2;flex-grow:2;-webkit-box-flex:2}.taro-video-progress{position:relative;margin:21px 12px;height:2px;background-color:rgba(255, 255, 255, 0.4)}.taro-video-progress-buffered{position:absolute;left:0;top:0;width:0;height:100%;background-color:rgba(255, 255, 255, 0.8);-webkit-transition:width 0.1s;transition:width 0.1s}.taro-video-ball{position:absolute;left:0;top:-21px;-webkit-box-sizing:content-box;box-sizing:content-box;margin-left:-22px;padding:14px;width:16px;height:16px}.taro-video-inner{border-radius:50%;width:100%;height:100%;background-color:#fff}.taro-video-danmu-button{margin:0 8.5px;padding:2px 10px;border:1px solid #fff;border-radius:5px;line-height:1;font-size:13px;color:#fff;white-space:nowrap}.taro-video-danmu-button.taro-video-danmu-button-active{border-color:#48c23d;color:#48c23d}.taro-video-fullscreen,.taro-video-mute{-webkit-box-sizing:content-box;box-sizing:content-box;padding:8.5px;width:17px;height:17px;background-repeat:no-repeat;background-position:50% 50%;background-size:50%}.taro-video-fullscreen{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAhUlEQVRYR+2WSwrAMAhEnZO3PfmULLooGEFTiIXJ2s/kRY2wzQeb85sE9CRA8jSzY1YfAFzhJBnU1AVgxH2dSiArCnD9QgGzRNnOech48SRABHoSyFb5in3PSbhyo6yvCPQkEM3u7BsPe/0FIvBfAh/vhKmVbO9SWun1qk/PSVi9TcVPBG6R1YIhgWwNpQAAAABJRU5ErkJggg==")}.taro-video-fullscreen.taro-video-type-fullscreen{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAABPUlEQVRYR+2Xu0pDURBF1/ZLxNcHKNiIlfhA7C0UBSEE8RNEBNFPUEQEEbGx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gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5PmxYVAAACLklEQVRYhc2XP2sVQRRHz40hKoqaQgVBCy1EozFlGiVFxMLGh4piYWEh+hkEP4YKAVFEEFTyughaCH6DqIVpAhYWEgIxoJE8cywyi5tNHu/tJmvyg2WZO3dmzt47/zZUtoJ6Nhsg09YDiYhKDzACTAFNYH9lEpUq80TdrT5wpV5n/ZV9KoGoo+pXV2uyKkipOaLuUceAt8DhUvQd1FsCYhR4ChzaSIBMHSOi7lOfsByFWiCgEBH1GHAF2JlMPcBt4GC3HUYEaj9wF3gVEVPtfNVTwAXgWX7CDKq/1piAZTSZBmim8qJ6sQ3EgDqb/L7kU3MH2NHtl3dQX3r3Ak21UYAYAj4A/cl0JB+RF+uMRj4iQ+p8zt7KYFLdXKHuRi0gacBhV6a6pd5bA6KRNagFJPU9qv5u47toLmW1HnoR8Q5oAK1CVQu4FBHj/wUkaXsb+4pzpVaQFPqXrN7Be4Fx9VztIOr1BLEtmX4A94E/qdwHTKjDWYM6lu81dSlnn3V570BtuLxaMs2rZ/IgYxsBovaoPwsQA4VoFWEm8ql5DiysNyURsQTMpOIMcDYiPhd8xoGr/FtNC2G6FKXD6ihwGdiVHMoeeh8jYlA9ANwE3kTEp3bO6vE03qOONzR1r/q4RGrquaFFxFxE3ALOA9+6jExpdb180y55AhirhaRTatq0GXEzL8+ZIuI9cBJ4WKiartJf9nWV/mty7UfUafW7erpqRGI9EBuprffvu9n6C1KOmsqwI5A1AAAAAElFTkSuQmCC")}.taro-video-danmu{overflow:visible;position:absolute;left:0;top:0;bottom:0;margin-top:14px;margin-bottom:44px;width:100%;line-height:14px;font-size:14px}.taro-video-danmu-item{position:absolute;left:100%;line-height:1;color:#fff;white-space:nowrap;-webkit-transform:translateX(0);transform:translateX(0);-webkit-transition-property:left, -webkit-transform;transition-property:left, -webkit-transform;transition-property:left, transform;transition-property:left, transform, -webkit-transform;-webkit-transition-duration:3s;transition-duration:3s;-webkit-transition-timing-function:linear;transition-timing-function:linear}.taro-video-toast{display:block;visibility:hidden;position:absolute;left:50%;top:50%;border-radius:5px;background-color:rgba(255, 255, 255, 0.8);pointer-events:none;color:#000;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}.taro-video-toast.taro-video-toast-volume{display:block;width:100px;height:100px}.taro-video-toast-volume .taro-video-toast-title{display:block;margin-top:10px;width:100%;line-height:16px;text-align:center;font-size:12px}.taro-video-toast-volume .taro-video-toast-icon{display:block;margin-left:25%;width:50%;height:50%;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAFhklEQVR4Xu2aeaxfQxTHP1VBES0NIQitWtpaaxeCUkQtaYVa0tiClAq1ExIiQTVppaWxt8RWSa2tWkJQRGgtQaSIpUKEpG0ssbbk28yV2+mZO/e9e3vvu/e98897mZnfzPl+75mZs0wvurn06ub46SGgxwLqZaA3sB/wO/A+8G/V6tS5BU4BJgJbO9DvAMOB36okoQ4CNgAeBEYbQK8Bbm4zAdsBc4EdAyA/APZoKwHHAA8DG2UA/AnYrG0ErAVcD1yXA9gfQJ8c40obsqbPgH7AY8CROTVuFQFD3X7fJid4DWsNAWOAGZ0w58YTsDZwKzChA189PbTRBGwKzAYO6iT4srbAMHfTfAksjulS1iG4JzAH2Dy2YKS/qAVcCdzi1vgZOBZ4PWvNGAG6wgYCW0IwctzNmf06BcEXtYABwOeA4otEfgEOdnGGqV6IAAUopwM6zDYuAVjeKYpYwCjgCWOhH513+b2lhE+Avrj89NPyalzyuCIE6EN9BfQ1dHoPOAD40+9LE6D/5aoqSqtLsgiQC60DTiHzfGCFoaSsQAexZdlTgEuyCDgLuK8u5G7dEAHyKN8CBrtxLwDHAX8Z+l4N3GS0L3db4aN0X5opmc+2XZQAfb2LPd2eciG1lUSRJZ9qYHkZONwiYAjwSc3gs24BXWWWfzEVuMjQez13HljX8v7A28lvEgsInaBVcxLaAvr6sgJLtBWeNTrOB+4w2p8DRvoEnA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4QqO6rtLYspXWZ/nQQkOJTAUJZGIav19q9MvKvN1RUIWKMAY5P3EBBjqO393d4C/gMVHwRQlpx21QAAAABJRU5ErkJggg==");background-repeat:no-repeat;background-position:50% 50%;background-size:50%;fill:#000}.taro-video-toast-volume .taro-video-toast-value{margin-left:10px;margin-top:5px;width:80px;height:5px}.taro-video-toast-volume .taro-video-toast-value>.taro-video-toast-value-content{overflow:hidden}.taro-video-toast-volume-grids{width:80px;height:5px}.taro-video-toast-volume-grids-item{float:left;width:7.1px;height:5px;background-color:#000}.taro-video-toast-volume-grids-item:not(:first-child){margin-left:1px}.taro-video-toast.taro-video-toast-progress{padding:6px;background-color:rgba(0, 0, 0, 0.8);line-height:18px;font-size:14px;color:#fff}';var b=function(t,i,n,r){return new(n||(n=Promise))((function(e,s){function o(t){try{h(r.next(t))}catch(t){s(t)}}function a(t){try{h(r.throw(t))}catch(t){s(t)}}function h(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n((function(t){t(i)}))).then(o,a)}h((r=r.apply(t,i||[])).next())}))};const y=class{constructor(i){t(this,i),this.list=[],this.danmuElList=[],this.currentTime=0,this.enable=!1,this.danmuList=[]}ensureProperties(t){const i=Object.assign({},t);return"time"in t||(i.time=this.currentTime),i.key=Math.random(),i.bottom=90*Math.random()+5+"%",i}sendDanmu(t=[]){return b(this,void 0,void 0,(function*(){this.list=Array.isArray(t)?[...this.list,...t.map((t=>this.ensureProperties(t)))]:[...this.list,Object.assign({},this.ensureProperties(t))]}))}tick(t){return b(this,void 0,void 0,(function*(){if(this.currentTime=t,!this.enable)return;const i=this.list.filter((({time:i})=>t-i<4&&t>i));let n=!1;const r=this.danmuList;n=i.length!==r.length||i.some((({key:t})=>r.every((i=>t!==i.key)))),n&&(this.danmuList=i)}))}componentDidUpdate(){requestAnimationFrame((()=>{setTimeout((()=>{this.danmuElList.splice(0).forEach((t=>{t.style.left="0",t.style.webkitTransform="translateX(-100%)",t.style.transform="translateX(-100%)"}))}))}))}render(){return this.enable?i(n,{class:"taro-video-danmu"},this.danmuList.map((({text:t,color:n,bottom:r,key:e})=>i("p",{class:"taro-video-danmu-item",key:e,style:{color:n,bottom:r},ref:t=>{t&&this.danmuElList.push(t)}},t)))):""}};export{d as taro_video_control,g as taro_video_core,y as taro_video_danmu}
365
+ /*! exports provided: default */function(t,i,n){n.r(i);var r=n(/*! ../utils/logger */"./src/utils/logger.ts"),e=n(/*! ../loader/load-stats */"./src/loader/load-stats.ts"),s=/^age:\s*[\d.]+\s*$/m;i.default=function(){function t(t){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=void 0,this.loader=null,this.stats=void 0,this.xhrSetup=t?t.xhrSetup:null,this.stats=new e.LoadStats,this.retryDelay=0}var i=t.prototype;return i.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},i.abortInternal=function(){var t=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),t&&(t.onreadystatechange=null,t.onprogress=null,4!==t.readyState&&(this.stats.aborted=!0,t.abort()))},i.abort=function(){var t;this.abortInternal(),null!==(t=this.callbacks)&&void 0!==t&&t.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},i.load=function(t,i,n){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=t,this.config=i,this.callbacks=n,this.retryDelay=i.retryDelay,this.loadInternal()},i.loadInternal=function(){var t=this.config,i=this.context;if(t){var n=this.loader=new self.XMLHttpRequest,r=this.stats;r.loading.first=0,r.loaded=0;var e=this.xhrSetup;try{if(e)try{e(n,i.url)}catch(t){n.open("GET",i.url,!0),e(n,i.url)}n.readyState||n.open("GET",i.url,!0);var s=this.context.headers;if(s)for(var o in s)n.setRequestHeader(o,s[o])}catch(t){return void this.callbacks.onError({code:n.status,text:t.message},i,n)}i.rangeEnd&&n.setRequestHeader("Range","bytes="+i.rangeStart+"-"+(i.rangeEnd-1)),n.onreadystatechange=this.readystatechange.bind(this),n.onprogress=this.loadprogress.bind(this),n.responseType=i.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),t.timeout),n.send()}},i.readystatechange=function(){var t=this.context,i=this.loader,n=this.stats;if(t&&i){var e=i.readyState,s=this.config;if(!n.aborted&&e>=2)if(self.clearTimeout(this.requestTimeout),0===n.loading.first&&(n.loading.first=Math.max(self.performance.now(),n.loading.start)),4===e){i.onreadystatechange=null,i.onprogress=null;var o=i.status;if(o>=200&&o<300){var a,h;if(n.loading.end=Math.max(self.performance.now(),n.loading.first),h="arraybuffer"===t.responseType?(a=i.response).byteLength:(a=i.responseText).length,n.loaded=n.total=h,!this.callbacks)return;var u=this.callbacks.onProgress;if(u&&u(n,t,a,i),!this.callbacks)return;this.callbacks.onSuccess({url:i.responseURL,data:a},n,t,i)}else n.retry>=s.maxRetry||o>=400&&o<499?(r.logger.error(o+" while loading "+t.url),this.callbacks.onError({code:o,text:i.statusText},t,i)):(r.logger.warn(o+" while loading "+t.url+", retrying in "+this.retryDelay+"..."),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay),this.retryDelay=Math.min(2*this.retryDelay,s.maxRetryDelay),n.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),s.timeout)}},i.loadtimeout=function(){r.logger.warn("timeout while loading "+this.context.url);var t=this.callbacks;t&&(this.abortInternal(),t.onTimeout(this.stats,this.context,this.loader))},i.loadprogress=function(t){var i=this.stats;i.loaded=t.loaded,t.lengthComputable&&(i.total=t.total)},i.getCacheAge=function(){var t=null;if(this.loader&&s.test(this.loader.getAllResponseHeaders())){var i=this.loader.getResponseHeader("age");t=i?parseFloat(i):null}return t},t}()}}).default},t.exports=i())})));var p=function(t,i,n,r){return new(n||(n=Promise))((function(e,s){function o(t){try{h(r.next(t))}catch(t){s(t)}}function a(t){try{h(r.throw(t))}catch(t){s(t)}}function h(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n((function(t){t(i)}))).then(o,a)}h((r=r.apply(t,i||[])).next())}))};let g=class{constructor(i){t(this,i),this.onPlay=e(this,"play",7),this.onPause=e(this,"pause",7),this.onEnded=e(this,"ended",7),this.onTimeUpdate=e(this,"timeupdate",7),this.onError=e(this,"error",7),this.onFullScreenChange=e(this,"fullscreenchange",7),this.onProgress=e(this,"progress",7),this.onLoadedMetaData=e(this,"loadedmetadata",7),this.currentTime=0,this.isDraggingProgress=!1,this.gestureType="none",this.controls=!0,this.autoplay=!1,this.loop=!1,this.muted=!1,this.initialTime=0,this.objectFit="contain",this.showProgress=!0,this.showFullscreenBtn=!0,this.showPlayBtn=!0,this.showCenterPlayBtn=!0,this.showMuteBtn=!1,this.danmuBtn=!1,this.enableDanmu=!1,this.enablePlayGesture=!1,this.enableProgressGesture=!0,this.vslideGesture=!1,this.vslideGestureInFullscreen=!0,this.nativeProps={},this._enableDanmu=!1,this.isPlaying=!1,this.isFirst=!0,this.isFullScreen=!1,this.fullScreenTimestamp=(new Date).getTime(),this.isMute=!1,this.analyzeGesture=t=>{var i;const n={type:"none"},r=t.touches[0].screenX-this.lastTouchScreenX,e=t.touches[0].screenY-this.lastTouchScreenY,s=this.isFullScreen?this.vslideGestureInFullscreen:this.vslideGesture;if("none"===this.gestureType){if(o=e,Math.sqrt(Math.pow(r,2)+Math.pow(o,2))<10)return n;if(Math.abs(e)>=Math.abs(r)){if(!s)return n;this.gestureType="adjustVolume",this.lastVolume=this.videoRef.volume}else if(Math.abs(e)<Math.abs(r)){if(!this.enableProgressGesture)return n;this.gestureType="adjustProgress",this.lastPercentage=this.currentTime/(null!==(i=this.duration)&&void 0!==i?i:this._duration)}}var o;return n.type=this.gestureType,n.dataX=f(r/200),n.dataY=f(e/200),n},this.loadNativePlayer=()=>{this.videoRef&&(this.videoRef.src=this.src,this.videoRef.load())},this.init=()=>{const{src:t,videoRef:i}=this;/\.(m3u8)($|\?)/i.test(t)?m.isSupported()?(this.hls&&this.hls.destroy(),this.hls=new m,this.hls.loadSource(t),this.hls.attachMedia(i),this.hls.on(m.Events.MANIFEST_PARSED,(()=>{this.autoplay&&this.play()}))):i.canPlayType("application/vnd.apple.mpegurl")?this.loadNativePlayer():console.error("该浏览器不支持 HLS 播放"):this.loadNativePlayer()},this.handlePlay=()=>{this.isPlaying=!0,this.isFirst=!1,this.controlsRef.toggleVisibility(!0),this.onPlay.emit()},this.handlePause=()=>{this.isPlaying=!1,this.controlsRef.toggleVisibility(!0),this.onPause.emit()},this.handleEnded=()=>{this.isFirst=!0,this.pause(),this.controlsRef.toggleVisibility(),this.onEnded.emit()},this.handleTimeUpdate=u((t=>p(this,void 0,void 0,(function*(){var i,n;this.currentTime=this.videoRef.currentTime;const r=this.duration||this._duration,e=yield this.controlsRef.getIsDraggingProgressBall();this.controls&&this.showProgress&&(e||this.isDraggingProgress||(this.controlsRef.setProgressBall(this.currentTime/r),this.controlsRef.setCurrentTime(this.currentTime))),this.danmuRef.tick(this.currentTime),this.onTimeUpdate.emit({duration:null===(i=t.target)||void 0===i?void 0:i.duration,currentTime:null===(n=t.target)||void 0===n?void 0:n.currentTime}),this.duration&&this.currentTime>=this.duration&&(this.seek(0),this.handleEnded())}))),250),this.handleError=t=>{var i,n;this.onError.emit({errMsg:null===(n=null===(i=t.target)||void 0===i?void 0:i.error)||void 0===n?void 0:n.message})},this.handleDurationChange=()=>{this._duration=this.videoRef.duration},this.handleProgress=()=>{this.onProgress.emit()},this.handleLoadedMetaData=t=>{const i=t.target;this.onLoadedMetaData.emit({width:i.videoWidth,height:i.videoHeight,duration:i.duration})},this._play=()=>this.videoRef.play(),this._pause=()=>this.videoRef.pause(),this._stop=()=>{this.videoRef.pause(),this._seek(0)},this._seek=t=>{this.videoRef.currentTime=t},this.onTouchStartContainer=t=>{this.lastTouchScreenX=t.touches[0].screenX,this.lastTouchScreenY=t.touches[0].screenY},this.onClickContainer=()=>{if(this.enablePlayGesture){const t=Date.now();t-this.lastClickedTime<300&&(this.isPlaying?this.pause():this.play()),this.lastClickedTime=t}this.controlsRef.toggleVisibility()},this.onClickFullScreenBtn=t=>{t.stopPropagation(),this.toggleFullScreen()},this.handleFullScreenChange=t=>{const i=(new Date).getTime();!t.detail&&this.isFullScreen&&!document[l.fullscreenElement]&&i-this.fullScreenTimestamp>100&&this.toggleFullScreen(!1)},this.toggleFullScreen=(t=!this.isFullScreen)=>{this.isFullScreen=t,this.controlsRef.toggleVisibility(!0),this.fullScreenTimestamp=(new Date).getTime(),this.onFullScreenChange.emit({fullScreen:this.isFullScreen,direction:"vertical"}),this.isFullScreen&&!document[l.fullscreenElement]&&setTimeout((()=>{this.videoRef[l.requestFullscreen]({navigationUI:"show"})}),0)},this.toggleMute=t=>{t.stopPropagation(),this.videoRef.muted=!this.isMute,this.controlsRef.toggleVisibility(!0),this.isMute=!this.isMute},this.toggleDanmu=t=>{t.stopPropagation(),this.controlsRef.toggleVisibility(!0),this._enableDanmu=!this._enableDanmu}}componentWillLoad(){this._enableDanmu=this.enableDanmu}componentDidLoad(){this.init(),this.initialTime&&(this.videoRef.currentTime=this.initialTime),this.danmuRef.sendDanmu(this.danmuList),document.addEventListener&&document.addEventListener(l.fullscreenchange,this.handleFullScreenChange)}componentDidRender(){}disconnectedCallback(){document.removeEventListener&&document.removeEventListener(l.fullscreenchange,this.handleFullScreenChange)}watchEnableDanmu(t){this._enableDanmu=t}watchSrc(){this.init()}onDocumentTouchMove(t){return p(this,void 0,void 0,(function*(){if(void 0===this.lastTouchScreenX||void 0===this.lastTouchScreenY)return;if(yield this.controlsRef.getIsDraggingProgressBall())return;const i=this.analyzeGesture(t);if("adjustVolume"===i.type){this.toastVolumeRef.style.visibility="visible";const t=Math.max(Math.min(this.lastVolume-i.dataY,1),0);this.videoRef.volume=t,this.toastVolumeBarRef.style.width=100*t+"%"}else if("adjustProgress"===i.type){this.isDraggingProgress=!0,this.nextPercentage=Math.max(Math.min(this.lastPercentage+i.dataX,1),0),this.controls&&this.showProgress&&(this.controlsRef.setProgressBall(this.nextPercentage),this.controlsRef.toggleVisibility(!0));const t=this.duration||this._duration;this.toastProgressTitleRef.innerHTML=`${c(this.nextPercentage*t)} / ${c(t)}`,this.toastProgressRef.style.visibility="visible"}}))}onDocumentTouchEnd(){var t;"adjustVolume"===this.gestureType?this.toastVolumeRef.style.visibility="hidden":"adjustProgress"===this.gestureType&&(this.toastProgressRef.style.visibility="hidden"),this.isDraggingProgress&&(this.isDraggingProgress=!1,this.seek(this.nextPercentage*(null!==(t=this.duration)&&void 0!==t?t:this._duration))),this.gestureType="none",this.lastTouchScreenX=void 0,this.lastTouchScreenY=void 0}play(){return p(this,void 0,void 0,(function*(){this._play()}))}pause(){return p(this,void 0,void 0,(function*(){this._pause()}))}stop(){return p(this,void 0,void 0,(function*(){this._stop()}))}seek(t){return p(this,void 0,void 0,(function*(){this._seek(t)}))}requestFullScreen(){return p(this,void 0,void 0,(function*(){this.toggleFullScreen(!0)}))}exitFullScreen(){return p(this,void 0,void 0,(function*(){this.toggleFullScreen(!1)}))}render(){const{controls:t,autoplay:r,loop:e,muted:s,poster:o,objectFit:a,isFirst:u,isMute:f,isFullScreen:l,showCenterPlayBtn:v,isPlaying:d,_enableDanmu:m,showMuteBtn:p,danmuBtn:g,showFullscreenBtn:b,nativeProps:y}=this,w=this.duration||this._duration,A=c(w);return i(n,{class:h("taro-video-container",{"taro-video-type-fullscreen":l}),onTouchStart:this.onTouchStartContainer,onClick:this.onClickContainer},i("video",Object.assign({class:"taro-video-video",style:{"object-fit":a},ref:t=>{t&&(this.videoRef=t)},autoplay:r,loop:e,muted:s,poster:t?o:void 0,playsinline:!0,"webkit-playsinline":!0,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onTimeUpdate:this.handleTimeUpdate,onError:this.handleError,onDurationChange:this.handleDurationChange,onProgress:this.handleProgress,onLoadedMetaData:this.handleLoadedMetaData},y),"暂时不支持播放该视频"),i("taro-video-danmu",{ref:t=>{t&&(this.danmuRef=t)},enable:m}),u&&v&&!d&&i("div",{class:"taro-video-cover"},i("div",{class:"taro-video-cover-play-button",onClick:()=>this.play()}),i("p",{class:"taro-video-cover-duration"},A)),i("taro-video-control",{ref:t=>{t&&(this.controlsRef=t)},controls:t,currentTime:this.currentTime,duration:w,isPlaying:this.isPlaying,pauseFunc:this._pause,playFunc:this._play,seekFunc:this._seek,showPlayBtn:this.showPlayBtn,showProgress:this.showProgress},p&&i("div",{class:h("taro-video-mute",{"taro-video-type-mute":f}),onClick:this.toggleMute}),g&&i("div",{class:h("taro-video-danmu-button",{"taro-video-danmu-button-active":m}),onClick:this.toggleDanmu},"弹幕"),b&&i("div",{class:h("taro-video-fullscreen",{"taro-video-type-fullscreen":l}),onClick:this.onClickFullScreenBtn})),i("div",{class:"taro-video-toast taro-video-toast-volume",ref:t=>{t&&(this.toastVolumeRef=t)}},i("div",{class:"taro-video-toast-title"},"音量"),i("div",{class:"taro-video-toast-icon"}),i("div",{class:"taro-video-toast-value"},i("div",{class:"taro-video-toast-value-content",ref:t=>{t&&(this.toastVolumeBarRef=t)}},i("div",{class:"taro-video-toast-volume-grids"},Array(10).fill(1).map((()=>i("div",{class:"taro-video-toast-volume-grids-item"}))))))),i("div",{class:"taro-video-toast taro-video-toast-progress",ref:t=>{t&&(this.toastProgressRef=t)}},i("div",{class:"taro-video-toast-title",ref:t=>{t&&(this.toastProgressTitleRef=t)}})))}get el(){return r(this)}static get watchers(){return{enableDanmu:["watchEnableDanmu"],src:["watchSrc"]}}};g.style='.taro-video{display:inline-block;overflow:hidden;position:relative;width:100%;height:225px;line-height:0}.taro-video[hidden]{display:none}.taro-video-container{display:inline-block;overflow:hidden;position:absolute;left:0;top:0;width:100%;height:100%;background-color:#000;-o-object-position:inherit;object-position:inherit}.taro-video-container.taro-video-type-fullscreen{position:fixed;left:0;right:0;top:0;bottom:0;z-index:999}.taro-video-container.taro-video-type-fullscreen.taro-video-type-rotate-left{-webkit-transform:translate(-50%, -50%) rotate(-90deg);transform:translate(-50%, -50%) rotate(-90deg)}.taro-video-container.taro-video-type-fullscreen.taro-video-type-rotate-right{-webkit-transform:translate(-50%, -50%) rotate(90deg);transform:translate(-50%, -50%) rotate(90deg)}.taro-video-video{width:100%;height:100%;-o-object-position:inherit;object-position:inherit}.taro-video-cover{display:-ms-flexbox;display:flex;position:absolute;left:0;top:0;bottom:0;z-index:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;width:100%;background-color:rgba(1, 1, 1, 0.5);-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-pack:center;-webkit-box-align:center}.taro-video-cover-play-button{width:40px;height:40px;background-repeat:no-repeat;background-position:50% 50%;background-size:50%}.taro-video-cover-duration{margin-top:10px;line-height:1;font-size:16px;color:#fff}.taro-video-bar{display:-ms-flexbox;display:flex;visibility:hidden;overflow:hidden;position:absolute;right:0;bottom:0;z-index:1;-ms-flex-align:center;align-items:center;padding:0 10px;height:44px;background-color:rgba(0, 0, 0, 0.5);-webkit-box-align:center}.taro-video-bar.taro-video-bar-full{left:0}.taro-video-controls{display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;margin:0 8.5px}.taro-video-control-button{-webkit-box-sizing:content-box;box-sizing:content-box;margin-left:-8.5px;padding:14.5px 12.5px;width:13px;height:15px}.taro-video-control-button::after{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:50% 50%;background-size:100%;content:""}.taro-video-control-button.taro-video-control-button-play::after,.taro-video-cover-play-button{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAeCAYAAAAy2w7YAAAAAXNSR0IArs4c6QAAAWhJREFUSA1j+P///0cgBoHjQGzCQCsAtgJB/AMy5wCxGNXtQ9iBwvoA5BUCMQvVLEQxHpNzDSjkRhXLMM3GKrIeKKpEkYVYjcUu+AMo3ALE3GRZiN1MvKKPgbIRJFuG10j8koeA0gZEW4jfLIKyf4EqpgOxMEELCRpFnIJ3QGU5QMyM00LizCFa1SWgSkeslhFtBGkKVwGVy6FYSJp+klR/A6quB2JOkIWMIK0oNlOf8xBoZDE9LAI7nYn6HsBq4l96WHQEaLUpAyiOaASeAM2NgvuPBpaACt82IEYtfKls0UagecpwXyAzqGTRdaA57sjmYrAptAjUsCkGYlYMg9EFyLQI1IiZB8Ti6Obh5JNh0QmgHlOcBuKSIMGi50C18UDMiMssvOJEWPQLqKYbiHnxGkRIkoBF24DyaoTMIEoeh0W3geI+RBlArCI0iz4D+RVAzEasfqLVAQ19AcSg5LoYiKWI1kiiQgCMBLnEEcfDSgAAAABJRU5ErkJggg==")}.taro-video-control-button.taro-video-control-button-pause::after{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAgCAYAAAAffCjxAAAAAXNSR0IArs4c6QAAAFlJREFUSA3tksEKACAIQ7X//5zq98wOgQayum8QaGweHhMzG/6OujzKAymn+0LMqivu1XznWmX8/echTIyMyAgTwA72iIwwAexgj8gIE8CO3aMRbDPMaEy5BRGaKcZv8YxRAAAAAElFTkSuQmCC")}.taro-video-current-time,.taro-video-duration{margin-top:15px;margin-bottom:14.5px;height:14.5px;line-height:14.5px;font-size:12px;color:#cbcbcb}.taro-video-progress-container{position:relative;-ms-flex-positive:2;flex-grow:2;-webkit-box-flex:2}.taro-video-progress{position:relative;margin:21px 12px;height:2px;background-color:rgba(255, 255, 255, 0.4)}.taro-video-progress-buffered{position:absolute;left:0;top:0;width:0;height:100%;background-color:rgba(255, 255, 255, 0.8);-webkit-transition:width 0.1s;transition:width 0.1s}.taro-video-ball{position:absolute;left:0;top:-21px;-webkit-box-sizing:content-box;box-sizing:content-box;margin-left:-22px;padding:14px;width:16px;height:16px}.taro-video-inner{border-radius:50%;width:100%;height:100%;background-color:#fff}.taro-video-danmu-button{margin:0 8.5px;padding:2px 10px;border:1px solid #fff;border-radius:5px;line-height:1;font-size:13px;color:#fff;white-space:nowrap}.taro-video-danmu-button.taro-video-danmu-button-active{border-color:#48c23d;color:#48c23d}.taro-video-fullscreen,.taro-video-mute{-webkit-box-sizing:content-box;box-sizing:content-box;padding:8.5px;width:17px;height:17px;background-repeat:no-repeat;background-position:50% 50%;background-size:50%}.taro-video-fullscreen{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAhUlEQVRYR+2WSwrAMAhEnZO3PfmULLooGEFTiIXJ2s/kRY2wzQeb85sE9CRA8jSzY1YfAFzhJBnU1AVgxH2dSiArCnD9QgGzRNnOech48SRABHoSyFb5in3PSbhyo6yvCPQkEM3u7BsPe/0FIvBfAh/vhKmVbO9SWun1qk/PSVi9TcVPBG6R1YIhgWwNpQAAAABJRU5ErkJggg==")}.taro-video-fullscreen.taro-video-type-fullscreen{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAABPUlEQVRYR+2Xu0pDURBF1/ZLxNcHKNiIlfhA7C0UBSEE8RNEBNFPUEQEEbGxFiSSSrCwEHsf5E/ccsSUuWfUhKQ40947+y42Z8+ZK/pcinzf9hhwD1xJ2q/qsb0JHAOzkl5y+lGAGnCWICQtZgAS6DxQk3TeLYA6cAo0JSXxjmW7CcwBdUkJurKiDhSA4kBvHbA9CqwBQx2O7BSw8ssU3ALPFRF4knT3nQLbr8B4LjLBOdAAFgJaLUkjbYC9n+zm+i4kXWbmwCqwnRMCHiXthuZAQOzPrxSA4kBxYDAcsH0EzATCfCLpJjOINoCtgFZabg7bk7AFDAeaGpKWgitZTu5N0kQbYBmYrujo9mX0CVxL+gidAdu9vY5zXhWA4sAgOND3X7NJ4AHYCaxkB8B62gslvecSFpoDOZH/PP8Cnt7hIaM5xCEAAAAASUVORK5CYII=")}.taro-video-mute{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXB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2XPWsVQRSGnxPjF4oGRfxoRQKGWCU2Ft7CykrQWosEyf/If0hhIPgHDEmbNJZqCFxiQEgTUGxsBUVEHgvnyrjZZJO92V1fGIaZnTPvszPszNlQ6VIjnbr/DwCoDLMNak/dUVfUK0f2rQugnlcX/FevWgFQH6gf3autRgHUC+piiXHzAOmtPx9gXgug8itQx9SXwDpw47AGKXZWvXvQmNFCwE3gCXA2dY0Az4GrRzHONA9cU/vAbERsllEOyh31e8USV2mrMPdG9uyn+rDom2/BHHCm5puWKiKmgdtAnz+rvaxO5mNygEvHaZ5BfADuARvAaWBpP4DGFBHfgBngFzClTrUKkCDeA+9S837rAEnbqb7VFcCpVJ/oCmCw959aB1AfAROpudYqgDoOLKRmPyLelAF8bcD4pPoMeAtcB34AT4uDBqXXwFG8XXUU/72MIuK1OgE8Bs6l7mEvo8up7lN1Ge0n9aK6VHMFZvJTr9S3CiALaCQhqZOSvegMIAvu2UVSWpigLC1fbQ0gm6in7qpfLCQbhwGIYcyPQ53/G3YO8BtUtd35bvKcVwAAAABJRU5ErkJggg==")}.taro-video-mute.taro-video-type-mute{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAgCAYAAAB3j6rJAAAACXBIWXMAAAsTAAALEwEAmpwYAAAGAGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDAgNzkuMTYwNDUxLCAyMDE3LzA1LzA2LTAxOjA4OjIxICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp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v5u47toLmW1HnoR8Q5oAK1CVQu4FBHj/wUkaXsb+4pzpVaQFPqXrN7Be4Fx9VztIOr1BLEtmX4A94E/qdwHTKjDWYM6lu81dSlnn3V570BtuLxaMs2rZ/IgYxsBovaoPwsQA4VoFWEm8ql5DiysNyURsQTMpOIMcDYiPhd8xoGr/FtNC2G6FKXD6ihwGdiVHMoeeh8jYlA9ANwE3kTEp3bO6vE03qOONzR1r/q4RGrquaFFxFxE3ALOA9+6jExpdb180y55AhirhaRTatq0GXEzL8+ZIuI9cBJ4WKiartJf9nWV/mty7UfUafW7erpqRGI9EBuprffvu9n6C1KOmsqwI5A1AAAAAElFTkSuQmCC")}.taro-video-danmu{overflow:visible;position:absolute;left:0;top:0;bottom:0;margin-top:14px;margin-bottom:44px;width:100%;line-height:14px;font-size:14px}.taro-video-danmu-item{position:absolute;left:100%;line-height:1;color:#fff;white-space:nowrap;-webkit-transform:translateX(0);transform:translateX(0);-webkit-transition-property:left, -webkit-transform;transition-property:left, -webkit-transform;transition-property:left, transform;transition-property:left, transform, -webkit-transform;-webkit-transition-duration:3s;transition-duration:3s;-webkit-transition-timing-function:linear;transition-timing-function:linear}.taro-video-toast{display:block;visibility:hidden;position:absolute;left:50%;top:50%;border-radius:5px;background-color:rgba(255, 255, 255, 0.8);pointer-events:none;color:#000;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}.taro-video-toast.taro-video-toast-volume{display:block;width:100px;height:100px}.taro-video-toast-volume .taro-video-toast-title{display:block;margin-top:10px;width:100%;line-height:16px;text-align:center;font-size:12px}.taro-video-toast-volume .taro-video-toast-icon{display:block;margin-left:25%;width:50%;height:50%;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAFhklEQVR4Xu2aeaxfQxTHP1VBES0NIQitWtpaaxeCUkQtaYVa0tiClAq1ExIiQTVppaWxt8RWSa2tWkJQRGgtQaSIpUKEpG0ssbbk28yV2+mZO/e9e3vvu/e98897mZ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VTZ0Jh5UJPsFQtD/wDaAHGWl5EzgwaUi2gK4UXS11S0cTIjrMFBtYQdAk4DID0BnAAz4B6wNLgTKKG0VIDBHwqitwpOcW+OOB540FdeipNKbUWFrUtn06o5xOij4KyDuqU0IE3Obl/rLA63pTzm9XA8jKACjdniZAaSKFmUpB1yUhAlTsUEpMh913wEkuTe7rKTzPAHqO44vpKPkFhH3cWWBVV6ogJVYZUgz/tXtIYelzI3Ct0fExIGx6j7iKWBUUveyYBehv1RIjIEsfqziq8Xp4pSBJOYTVJFQcVY3wCFeKUjVGyYfQWB00+5bEVBECrNS+qsOKBpVHNCVWHs+LS7H5PV5pOu9v0+OKEOAXR39w1e1C7wM6AkJ1eLmkRcrpRQiQrqobXO5S3vL3/4kBKMsCknV0k+iasVLUMV3UX5SAPGtED8EOT+L9YENnCasUIXNO2goChFWHqAIRyxXN4qI1BCQg9dJESYq8LnbrCBAR8t50Lig6i0krCRBoVWhVlt45wkBrCRBuRZyPuAguxIPe9lXqhpd9DcZMXOvdkPF0Xu/8dohNUmZ/1QQkuitXr+d4fryuFx3jywQYm6suAqSX8vLTXKJDt4QqO6rtLYspXWZ/nQQkOJTAUJZGIav19q9MvKvN1RUIWKMAY5P3EBBjqO393d4C/gMVHwRQlpx21QAAAABJRU5ErkJggg==");background-repeat:no-repeat;background-position:50% 50%;background-size:50%;fill:#000}.taro-video-toast-volume .taro-video-toast-value{margin-left:10px;margin-top:5px;width:80px;height:5px}.taro-video-toast-volume .taro-video-toast-value>.taro-video-toast-value-content{overflow:hidden}.taro-video-toast-volume-grids{width:80px;height:5px}.taro-video-toast-volume-grids-item{float:left;width:7.1px;height:5px;background-color:#000}.taro-video-toast-volume-grids-item:not(:first-child){margin-left:1px}.taro-video-toast.taro-video-toast-progress{padding:6px;background-color:rgba(0, 0, 0, 0.8);line-height:18px;font-size:14px;color:#fff}';var b=function(t,i,n,r){return new(n||(n=Promise))((function(e,s){function o(t){try{h(r.next(t))}catch(t){s(t)}}function a(t){try{h(r.throw(t))}catch(t){s(t)}}function h(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n((function(t){t(i)}))).then(o,a)}h((r=r.apply(t,i||[])).next())}))};let y=class{constructor(i){t(this,i),this.list=[],this.danmuElList=[],this.currentTime=0,this.enable=!1,this.danmuList=[]}ensureProperties(t){const i=Object.assign({},t);return"time"in t||(i.time=this.currentTime),i.key=Math.random(),i.bottom=90*Math.random()+5+"%",i}sendDanmu(t=[]){return b(this,void 0,void 0,(function*(){this.list=Array.isArray(t)?[...this.list,...t.map((t=>this.ensureProperties(t)))]:[...this.list,Object.assign({},this.ensureProperties(t))]}))}tick(t){return b(this,void 0,void 0,(function*(){if(this.currentTime=t,!this.enable)return;const i=this.list.filter((({time:i})=>t-i<4&&t>i));let n=!1;const r=this.danmuList;n=i.length!==r.length||i.some((({key:t})=>r.every((i=>t!==i.key)))),n&&(this.danmuList=i)}))}componentDidUpdate(){requestAnimationFrame((()=>{setTimeout((()=>{this.danmuElList.splice(0).forEach((t=>{t.style.left="0",t.style.webkitTransform="translateX(-100%)",t.style.transform="translateX(-100%)"}))}))}))}render(){return this.enable?i(n,{class:"taro-video-danmu"},this.danmuList.map((({text:t,color:n,bottom:r,key:e})=>i("p",{class:"taro-video-danmu-item",key:e,style:{color:n,bottom:r},ref:t=>{t&&this.danmuElList.push(t)}},t)))):""}};export{d as taro_video_control,g as taro_video_core,y as taro_video_danmu}
@@ -0,0 +1 @@
1
+ import{r,c as o,h as t}from"./p-8c7cf814.js";let s=class{constructor(t){r(this,t),this.onLoad=o(this,"load",7),this.onError=o(this,"error",7)}render(){const{src:r,onLoad:o,onError:s}=this;return t("iframe",{class:"taro-webview",onLoad:t=>{t.stopPropagation(),o.emit({src:r})},onError:o=>{o.stopPropagation(),s.emit({src:r})},src:r})}};s.style="iframe{border:none}.taro-webview{position:fixed;top:0;bottom:0;z-index:999;width:100%;height:100%}";export{s as taro_web_view_core}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as i,H as h}from"./p-8c7cf814.js";import{c as o}from"./p-7e5d2d7a.js";let e=class{constructor(i){t(this,i),this.onLongPress=s(this,"longpress",7),this.hoverStartTime=50,this.hoverStayTime=400,this.hover=!1,this.touch=!1,this.startTime=0}onTouchStart(){this.hoverClass&&(this.touch=!0,setTimeout((()=>{this.touch&&(this.hover=!0)}),this.hoverStartTime)),this.timeoutEvent=setTimeout((()=>{this.onLongPress.emit()}),350),this.startTime=Date.now()}onTouchMove(){clearTimeout(this.timeoutEvent)}onTouchEnd(){Date.now()-this.startTime<350&&clearTimeout(this.timeoutEvent),this.hoverClass&&(this.touch=!1,setTimeout((()=>{this.touch||(this.hover=!1)}),this.hoverStayTime))}render(){const t=o({[`${this.hoverClass}`]:this.hover});let s={};return this.animation&&(s.animation=this.animation,s["data-animation"]=this.animation),i(h,Object.assign({class:t},s),i("slot",null))}};e.style="taro-cover-view-core{display:block}";export{e as taro_cover_view_core}
@@ -0,0 +1 @@
1
+ import{r as o,h as r,H as s}from"./p-8c7cf814.js";let c=class{constructor(r){o(this,r)}componentDidLoad(){console.error("H5 暂不支持 KeyboardAccessory 组件!")}render(){return r(s,null)}};export{c as taro_keyboard_accessory_core}
@@ -0,0 +1 @@
1
+ import{r as o,h as r,H as s}from"./p-8c7cf814.js";let t=class{constructor(r){o(this,r)}componentDidLoad(){console.error("H5 暂不支持 Map 组件!")}render(){return r(s,null)}};export{t as taro_map_core}
@@ -0,0 +1 @@
1
+ import{r as o,h as s,H as r}from"./p-8c7cf814.js";import{c as t}from"./p-7e5d2d7a.js";let c=class{constructor(s){o(this,s),this.size="23"}render(){const{type:o,size:c,color:e}=this,i=null==o?void 0:o.replace(/_/g,"-"),a=t({[`weui-icon-${i}`]:!0});return s(r,{class:a,style:{"font-size":`${c}px`,color:e}})}};export{c as taro_icon_core}
@@ -0,0 +1 @@
1
+ System.register(["./p-44996bd6.system.js"],(function(t){"use strict";var n,r,e;return{setters:[function(t){n=t.r;r=t.h;e=t.H}],execute:function(){var o=t("taro_slot_core",function(){function t(t){n(this,t)}t.prototype.componentDidLoad=function(){console.error("H5 暂不支持 Slot 组件!")};t.prototype.render=function(){return r(e,null)};return t}())}}}));
@@ -0,0 +1 @@
1
+ import{r as t,c as e,h as i,H as o,g as s}from"./p-8c7cf814.js";let n=class{constructor(i){t(this,i),this.onChange=e(this,"checkboxchange",7),this.value="",this.checked=!1,this.disabled=!1,this.nativeProps={},this.isWillLoadCalled=!1,this.handleChange=t=>{t.stopPropagation(),this.onChange.emit({value:this.value})}}watchId(t){this.isWillLoadCalled&&t&&this.inputEl.setAttribute("id",t)}componentWillLoad(){this.isWillLoadCalled=!0}componentDidRender(){this.id&&this.el.removeAttribute("id")}render(){const{checked:t,name:e,color:s,value:n,disabled:c,nativeProps:r}=this;return i(o,{className:"weui-cells_checkbox"},i("input",Object.assign({ref:t=>{t&&(this.inputEl=t,this.id&&t.setAttribute("id",this.id))},type:"checkbox",value:n,name:e,class:"taro-checkbox_checked",style:{color:s},checked:t,disabled:c,onChange:this.handleChange},r)),i("slot",null))}get el(){return s(this)}static get watchers(){return{id:["watchId"]}}};n.style='.taro-checkbox{display:inline-block;position:relative}.taro-checkbox_checked{display:inline-block;position:relative;top:5px;border:1px solid #d1d1d1;border-radius:3px;width:23px;height:23px;min-height:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:0;background-color:#fff;vertical-align:0;font-size:23px;color:#1aad19}.taro-checkbox_checked:checked::before{display:inline-block;position:absolute;left:50%;top:50%;vertical-align:middle;text-decoration:inherit;text-align:center;text-transform:none;font-family:weui;font-style:normal;font-weight:normal;font-variant:normal;font-size:inherit;color:inherit;content:"\\ea08";-webkit-transform:translate(-50%, -48%) scale(0.73);transform:translate(-50%, -48%) scale(0.73);speak:none}';let c=class{constructor(i){t(this,i),this.onChange=e(this,"change",7),this.uniqueName=Date.now().toString(36)}function(t){if(t.stopPropagation(),"TARO-CHECKBOX-CORE"!==t.target.tagName)return;const e=this.el.querySelectorAll("taro-checkbox-core");this.value=this.getValues(e),this.onChange.emit({value:this.value})}componentDidLoad(){this.el.querySelectorAll("taro-checkbox-core").forEach((t=>{t.setAttribute("name",this.name||this.uniqueName)})),Object.defineProperty(this.el,"value",{get:()=>{if(!this.value){const t=this.el.querySelectorAll("taro-checkbox-core");this.value=this.getValues(t)}return this.value},configurable:!0})}getValues(t){return Array.from(t).filter((t=>{const e=t.querySelector("input");return null==e?void 0:e.checked})).map((t=>t.value))}render(){return i(o,null)}get el(){return s(this)}};export{n as taro_checkbox_core,c as taro_checkbox_group_core}
@@ -1 +1 @@
1
- System.register(["./p-0674e57b.system.js"],(function(e){"use strict";var t,n,o,i,r;return{setters:[function(e){t=e.r;n=e.c;o=e.h;i=e.H;r=e.g}],execute:function(){var a='.taro-checkbox{display:inline-block;position:relative}.taro-checkbox_checked{display:inline-block;position:relative;top:5px;border:1px solid #d1d1d1;border-radius:3px;width:23px;height:23px;min-height:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:0;background-color:#fff;vertical-align:0;font-size:23px;color:#1aad19}.taro-checkbox_checked:checked::before{display:inline-block;position:absolute;left:50%;top:50%;vertical-align:middle;text-decoration:inherit;text-align:center;text-transform:none;font-family:weui;font-style:normal;font-weight:normal;font-variant:normal;font-size:inherit;color:inherit;content:"\\ea08";-webkit-transform:translate(-50%, -48%) scale(0.73);transform:translate(-50%, -48%) scale(0.73);speak:none}';var c=e("taro_checkbox_core",function(){function e(e){var o=this;t(this,e);this.onChange=n(this,"checkboxchange",7);this.value="";this.checked=false;this.disabled=false;this.nativeProps={};this.isWillLoadCalled=false;this.handleChange=function(e){e.stopPropagation();o.onChange.emit({value:o.value})}}e.prototype.watchId=function(e){if(!this.isWillLoadCalled)return;if(e)this.inputEl.setAttribute("id",e)};e.prototype.componentWillLoad=function(){this.isWillLoadCalled=true};e.prototype.componentDidRender=function(){this.id&&this.el.removeAttribute("id")};e.prototype.render=function(){var e=this;var t=this,n=t.checked,r=t.name,a=t.color,c=t.value,l=t.disabled,u=t.nativeProps;return o(i,{className:"weui-cells_checkbox"},o("input",Object.assign({ref:function(t){if(!t)return;e.inputEl=t;if(e.id)t.setAttribute("id",e.id)},type:"checkbox",value:c,name:r,class:"taro-checkbox_checked",style:{color:a},checked:n,disabled:l,onChange:this.handleChange},u)),o("slot",null))};Object.defineProperty(e.prototype,"el",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{id:["watchId"]}},enumerable:false,configurable:true});return e}());c.style=a;var l=e("taro_checkbox_group_core",function(){function e(e){t(this,e);this.onChange=n(this,"change",7);this.uniqueName=Date.now().toString(36)}e.prototype.function=function(e){e.stopPropagation();if(e.target.tagName!=="TARO-CHECKBOX-CORE")return;var t=this.el.querySelectorAll("taro-checkbox-core");this.value=this.getValues(t);this.onChange.emit({value:this.value})};e.prototype.componentDidLoad=function(){var e=this;var t=this.el.querySelectorAll("taro-checkbox-core");t.forEach((function(t){t.setAttribute("name",e.name||e.uniqueName)}));Object.defineProperty(this.el,"value",{get:function(){if(!e.value){var t=e.el.querySelectorAll("taro-checkbox-core");e.value=e.getValues(t)}return e.value},configurable:true})};e.prototype.getValues=function(e){return Array.from(e).filter((function(e){var t=e.querySelector("input");return t===null||t===void 0?void 0:t.checked})).map((function(e){return e.value}))};e.prototype.render=function(){return o(i,null)};Object.defineProperty(e.prototype,"el",{get:function(){return r(this)},enumerable:false,configurable:true});return e}())}}}));
1
+ System.register(["./p-44996bd6.system.js"],(function(e){"use strict";var t,n,o,i,r;return{setters:[function(e){t=e.r;n=e.c;o=e.h;i=e.H;r=e.g}],execute:function(){var a='.taro-checkbox{display:inline-block;position:relative}.taro-checkbox_checked{display:inline-block;position:relative;top:5px;border:1px solid #d1d1d1;border-radius:3px;width:23px;height:23px;min-height:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:0;background-color:#fff;vertical-align:0;font-size:23px;color:#1aad19}.taro-checkbox_checked:checked::before{display:inline-block;position:absolute;left:50%;top:50%;vertical-align:middle;text-decoration:inherit;text-align:center;text-transform:none;font-family:weui;font-style:normal;font-weight:normal;font-variant:normal;font-size:inherit;color:inherit;content:"\\ea08";-webkit-transform:translate(-50%, -48%) scale(0.73);transform:translate(-50%, -48%) scale(0.73);speak:none}';var c=e("taro_checkbox_core",function(){function e(e){var o=this;t(this,e);this.onChange=n(this,"checkboxchange",7);this.value="";this.checked=false;this.disabled=false;this.nativeProps={};this.isWillLoadCalled=false;this.handleChange=function(e){e.stopPropagation();o.onChange.emit({value:o.value})}}e.prototype.watchId=function(e){if(!this.isWillLoadCalled)return;if(e)this.inputEl.setAttribute("id",e)};e.prototype.componentWillLoad=function(){this.isWillLoadCalled=true};e.prototype.componentDidRender=function(){this.id&&this.el.removeAttribute("id")};e.prototype.render=function(){var e=this;var t=this,n=t.checked,r=t.name,a=t.color,c=t.value,l=t.disabled,u=t.nativeProps;return o(i,{className:"weui-cells_checkbox"},o("input",Object.assign({ref:function(t){if(!t)return;e.inputEl=t;if(e.id)t.setAttribute("id",e.id)},type:"checkbox",value:c,name:r,class:"taro-checkbox_checked",style:{color:a},checked:n,disabled:l,onChange:this.handleChange},u)),o("slot",null))};Object.defineProperty(e.prototype,"el",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{id:["watchId"]}},enumerable:false,configurable:true});return e}());c.style=a;var l=e("taro_checkbox_group_core",function(){function e(e){t(this,e);this.onChange=n(this,"change",7);this.uniqueName=Date.now().toString(36)}e.prototype.function=function(e){e.stopPropagation();if(e.target.tagName!=="TARO-CHECKBOX-CORE")return;var t=this.el.querySelectorAll("taro-checkbox-core");this.value=this.getValues(t);this.onChange.emit({value:this.value})};e.prototype.componentDidLoad=function(){var e=this;var t=this.el.querySelectorAll("taro-checkbox-core");t.forEach((function(t){t.setAttribute("name",e.name||e.uniqueName)}));Object.defineProperty(this.el,"value",{get:function(){if(!e.value){var t=e.el.querySelectorAll("taro-checkbox-core");e.value=e.getValues(t)}return e.value},configurable:true})};e.prototype.getValues=function(e){return Array.from(e).filter((function(e){var t=e.querySelector("input");return t===null||t===void 0?void 0:t.checked})).map((function(e){return e.value}))};e.prototype.render=function(){return o(i,null)};Object.defineProperty(e.prototype,"el",{get:function(){return r(this)},enumerable:false,configurable:true});return e}())}}}));
@@ -1 +1 @@
1
- System.register(["./p-0674e57b.system.js"],(function(e){"use strict";var t,n,i,a;return{setters:[function(e){t=e.r;n=e.c;i=e.h;a=e.g}],execute:function(){var o="taro-textarea-core{display:block;width:300px}taro-textarea-core .auto-height{height:auto}.taro-textarea{display:block;position:relative;border:0;width:100%;height:150px;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:auto;line-height:1.5}.taro-textarea:focus{outline:none}";function r(e){return e!==null&&e!==void 0?e:""}var h=e("taro_textarea_core",function(){function e(e){var i=this;t(this,e);this.onInput=n(this,"input",7);this.onFocus=n(this,"focus",7);this.onBlur=n(this,"blur",7);this.onChange=n(this,"change",7);this.onLineChange=n(this,"linechange",7);this.disabled=false;this.maxlength=140;this.autoFocus=false;this.autoHeight=false;this.nativeProps={};this.line=1;this.handleInput=function(e){e.stopPropagation();i.handleLineChange();i.onInput.emit({value:e.target.value,cursor:e.target.value.length})};this.handleFocus=function(e){i.onFocus.emit({value:e.target.value})};this.handleBlur=function(e){i.onBlur.emit({value:e.target.value})};this.handleChange=function(e){e.stopPropagation();i.onChange.emit({value:e.target.value})};this.handleLineChange=function(){var e=i.getNumberOfLines();if(e!==i.line){i.line=e;i.onLineChange.emit({height:i.textareaRef.clientHeight,lineCount:i.line})}};this.calculateContentHeight=function(e,t){var n=e.style.height,i=e.offsetHeight,a=e.scrollHeight,o=e.style.overflow,r=e.style.minHeight||null;if(i>=a){e.style.minHeight=0;e.style.height=i+t+"px";e.style.overflow="hidden";if(a<e.scrollHeight){while(e.offsetHeight>=e.scrollHeight){e.style.height=(i-=t)+"px"}while(e.offsetHeight<e.scrollHeight){e.style.height=i+++"px"}e.style.height=n;e.style.overflow=o;e.style.minHeight=r;return i}}else{return a}};this.getNumberOfLines=function(){var e=i.textareaRef,t=window.getComputedStyle?window.getComputedStyle(e):e.style,n=parseInt(t.lineHeight,10),a=i.calculateContentHeight(e,n),o=Math.floor(a/n);return o}}e.prototype.componentDidLoad=function(){var e=this;Object.defineProperty(this.el,"value",{get:function(){return e.textareaRef.value},set:function(t){return e.value=t},configurable:true});this.autoFocus&&this.textareaRef.focus()};e.prototype.render=function(){var e=this;var t=this,n=t.value,a=t.placeholder,o=t.disabled,h=t.maxlength,l=t.autoFocus,s=t.autoHeight,u=t.name,c=t.nativeProps,g=t.handleInput,f=t.handleFocus,p=t.handleBlur,d=t.handleChange;var v={};if(s){v.rows=this.line}return i("textarea",Object.assign({ref:function(t){if(t){e.textareaRef=t}},class:"taro-textarea ".concat(s?"auto-height":""),value:r(n),placeholder:a,name:u,disabled:o,maxlength:h,autofocus:l,onInput:g,onFocus:f,onBlur:p,onChange:d},c,v))};Object.defineProperty(e.prototype,"el",{get:function(){return a(this)},enumerable:false,configurable:true});return e}());h.style=o}}}));
1
+ System.register(["./p-44996bd6.system.js"],(function(e){"use strict";var t,n,i,a;return{setters:[function(e){t=e.r;n=e.c;i=e.h;a=e.g}],execute:function(){var o="taro-textarea-core{display:block;width:300px}taro-textarea-core .auto-height{height:auto}.taro-textarea{display:block;position:relative;border:0;width:100%;height:150px;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:auto;line-height:1.5}.taro-textarea:focus{outline:none}";function r(e){return e!==null&&e!==void 0?e:""}var h=e("taro_textarea_core",function(){function e(e){var i=this;t(this,e);this.onInput=n(this,"input",7);this.onFocus=n(this,"focus",7);this.onBlur=n(this,"blur",7);this.onChange=n(this,"change",7);this.onLineChange=n(this,"linechange",7);this.disabled=false;this.maxlength=140;this.autoFocus=false;this.autoHeight=false;this.nativeProps={};this.line=1;this.handleInput=function(e){e.stopPropagation();i.handleLineChange();i.onInput.emit({value:e.target.value,cursor:e.target.value.length})};this.handleFocus=function(e){i.onFocus.emit({value:e.target.value})};this.handleBlur=function(e){i.onBlur.emit({value:e.target.value})};this.handleChange=function(e){e.stopPropagation();i.onChange.emit({value:e.target.value})};this.handleLineChange=function(){var e=i.getNumberOfLines();if(e!==i.line){i.line=e;i.onLineChange.emit({height:i.textareaRef.clientHeight,lineCount:i.line})}};this.calculateContentHeight=function(e,t){var n=e.style.height,i=e.offsetHeight,a=e.scrollHeight,o=e.style.overflow,r=e.style.minHeight||null;if(i>=a){e.style.minHeight=0;e.style.height=i+t+"px";e.style.overflow="hidden";if(a<e.scrollHeight){while(e.offsetHeight>=e.scrollHeight){e.style.height=(i-=t)+"px"}while(e.offsetHeight<e.scrollHeight){e.style.height=i+++"px"}e.style.height=n;e.style.overflow=o;e.style.minHeight=r;return i}}else{return a}};this.getNumberOfLines=function(){var e=i.textareaRef,t=window.getComputedStyle?window.getComputedStyle(e):e.style,n=parseInt(t.lineHeight,10),a=i.calculateContentHeight(e,n),o=Math.floor(a/n);return o}}e.prototype.componentDidLoad=function(){var e=this;Object.defineProperty(this.el,"value",{get:function(){return e.textareaRef.value},set:function(t){return e.value=t},configurable:true});this.autoFocus&&this.textareaRef.focus()};e.prototype.render=function(){var e=this;var t=this,n=t.value,a=t.placeholder,o=t.disabled,h=t.maxlength,l=t.autoFocus,s=t.autoHeight,u=t.name,c=t.nativeProps,g=t.handleInput,f=t.handleFocus,p=t.handleBlur,d=t.handleChange;var v={};if(s){v.rows=this.line}return i("textarea",Object.assign({ref:function(t){if(t){e.textareaRef=t}},class:"taro-textarea "+(s?"auto-height":""),value:r(n),placeholder:a,name:u,disabled:o,maxlength:h,autofocus:l,onInput:g,onFocus:f,onBlur:p,onChange:d},c,v))};Object.defineProperty(e.prototype,"el",{get:function(){return a(this)},enumerable:false,configurable:true});return e}());h.style=o}}}));
@@ -0,0 +1 @@
1
+ System.register(["./p-44996bd6.system.js"],(function(o){"use strict";var t,r,n;return{setters:[function(o){t=o.r;r=o.h;n=o.H}],execute:function(){var e=o("taro_voip_room_core",function(){function o(o){t(this,o)}o.prototype.componentDidLoad=function(){console.error("H5 暂不支持 VoipRoom 组件!")};o.prototype.render=function(){return r(n,null)};return o}())}}}));
@@ -0,0 +1 @@
1
+ import{r as o,h as c,H as r}from"./p-8c7cf814.js";let t=class{constructor(c){o(this,c)}componentDidLoad(){console.error("H5 暂不支持 OfficialAccount 组件!")}render(){return c(r,null)}};export{t as taro_official_account_core}
@@ -0,0 +1 @@
1
+ import{r as t,c as i,h as s,H as e,g as h}from"./p-8c7cf814.js";import{c as n}from"./p-7e5d2d7a.js";function o(t,i){const s=[];for(let e=t;e<=i;e++)s.push(`${e<10?"0":""}${e}`);return s}const r=["20","21","22","23",...o(0,23),"00","01","02","03"],a=["56","57","58","59",...o(0,59),"00","01","02","03"];function c(t,i){return!isNaN(+t)&&t>=0&&t<i.length}function u(t){if(!/^\d{1,2}:\d{1,2}$/.test(t))return!1;const i=t.split(":").map((t=>+t));return!(i[0]<0||i[0]>23||i[1]<0||i[1]>59)}function d(t,i){const s=t.split(":").map((t=>+t)),e=i.split(":").map((t=>+t));return s[0]<e[0]||s[0]===e[0]&&s[1]<=e[1]}function l(t){if(!t)return!1;const i=new Date(t.replace(/-/g,"/"));return!isNaN(i.getMonth())&&i}function p(t){let i;return i=Array.isArray(t)?t.map((t=>String(t))):t,i}function m(t,i){const s=[];for(let e=t;e<=i;e++)s.push(e);return s}function g(t,i){return m(t,i)}function f(t,i,s){let e=1,h=12;return t.getFullYear()===s&&(e=t.getMonth()+1),i.getFullYear()===s&&(h=i.getMonth()+1),m(e,h)}function _(t,i,s,e){let h=1,n=function(t,i){return 4===i||6===i||9===i||11===i?30:2===i?t%4==0&&t%100!=0||t%400==0?29:28:31}(s,e);return t.getFullYear()===s&&t.getMonth()+1===e&&(h=t.getDate()),i.getFullYear()===s&&i.getMonth()+1===e&&(n=i.getDate()),m(h,n)}let k=class{constructor(e){t(this,e),this.onChange=i(this,"change",7),this.onColumnChange=i(this,"columnchange",7),this.onCancel=i(this,"cancel",7),this.index=[],this.mode="selector",this.disabled=!1,this.range=[],this.start="",this.end="",this.fields="day",this.name="",this.pickerValue=[],this.height=[],this.hidden=!0,this.fadeOut=!1,this.isWillLoadCalled=!1,this.showPicker=()=>{this.disabled||(this.height=this.getHeightByIndex(),this.hidden=!1)},this.getHeightByIndex=()=>this.index.map((t=>{let i=0;return"time"===this.mode&&(i=136),102-34*t-i})),this.hidePicker=()=>{this.fadeOut=!0,setTimeout((()=>{this.hidden=!0,this.fadeOut=!1}),350)},this.handleChange=()=>{this.hidePicker(),this.index=this.height.map((t=>(102-t)/34));let t=this.index.length&&"selector"!==this.mode?this.index:this.index[0];if("time"===this.mode){const i=[r.slice(),a.slice()],s=this.index.map(((t,s)=>i[s][t]));this.index=s.map((t=>parseInt(t))),t=s.join(":")}if("date"===this.mode){const{_start:i,_end:s,_updateValue:e}=this.pickerDate,h=e[0],n=e[1],o=g(i.getFullYear(),s.getFullYear()),r=f(i,s,h),a=_(i,s,h,n),c=o[this.index[0]],u=r[this.index[1]],d=a[this.index[2]];t="year"===this.fields?[c]:"month"===this.fields?[c,u]:[c,u,d],t=t.map((t=>t<10?`0${t}`:t)).join("-")}this.pickerValue=t,this.onChange.emit({value:t})},this.handleCancel=()=>{this.hidePicker(),this.onCancel.emit()},this.updateHeight=(t,i,s=!1)=>{const e=[...this.height];if(e[i]=t,this.height=e,s){let{start:t,end:i}=this;if(u(t)||(t="00:00"),u(i)||(i="23:59"),!d(t,i))return;const s=[r.slice(),a.slice()],e=this.height.map((t=>(102-t)/34)).map(((t,i)=>s[i][t])).join(":");if(d(t,e)){if(!d(e,i)){const t=i.split(":").map((t=>102-34*(+t+4)));requestAnimationFrame((()=>this.height=t))}}else{const i=t.split(":").map((t=>102-34*(+t+4)));requestAnimationFrame((()=>this.height=i))}}},this.handleColumnChange=(t,i)=>{this.onColumnChange.emit({column:Number(i),value:(102-t)/34})},this.updateDay=(t,i)=>{const{_start:s,_end:e,_updateValue:h}=this.pickerDate;h[i]=t;const n=h[0],o=h[1],r=h[2];if(0===i){const t=f(s,e,n),i=t[t.length-1],r=t[0];o>i&&(h[1]=i),o<r&&(h[1]=r);const a=102-34*t.indexOf(h[1]);this.updateDay(h[1],1),this.updateHeight(a,"1")}else if(1===i){const t=_(s,e,n,o),i=t[t.length-1],a=t[0];r>i&&(h[2]=i),r<a&&(h[2]=a);const c=102-34*t.indexOf(h[2]);this.updateDay(h[2],2),this.updateHeight(c,"2")}},this.getSelector=()=>s("taro-picker-group",{range:this.range,rangeKey:this.rangeKey,height:this.height[0],updateHeight:this.updateHeight,columnId:"0"}),this.getMultiSelector=()=>this.range.map(((t,i)=>s("taro-picker-group",{range:t,rangeKey:this.rangeKey,height:this.height[i],updateHeight:this.updateHeight,onColumnChange:this.handleColumnChange,columnId:String(i)}))),this.getTimeSelector=()=>{const t=r.slice(),i=a.slice();return[s("taro-picker-group",{mode:"time",range:t,height:this.height[0],updateHeight:this.updateHeight,columnId:"0"}),s("taro-picker-group",{mode:"time",range:i,height:this.height[1],updateHeight:this.updateHeight,columnId:"1"})]},this.getDateSelector=()=>{const{fields:t,height:i}=this,{_start:e,_end:h,_updateValue:n}=this.pickerDate,o=n[0],r=n[1],a=g(e.getFullYear(),h.getFullYear()).map((t=>`${t}年`)),c=f(e,h,o).map((t=>`${t<10?`0${t}`:t}月`)),u=_(e,h,o,r).map((t=>`${t<10?`0${t}`:t}日`)),d=[s("taro-picker-group",{mode:"date",range:a,height:i[0],updateDay:this.updateDay,updateHeight:this.updateHeight,columnId:"0"})];return"month"!==t&&"day"!==t||d.push(s("taro-picker-group",{mode:"date",range:c,height:i[1],updateDay:this.updateDay,updateHeight:this.updateHeight,columnId:"1"})),"day"===t&&d.push(s("taro-picker-group",{mode:"date",range:u,height:i[2],updateDay:this.updateDay,updateHeight:this.updateHeight,columnId:"2"})),d}}componentWillLoad(){this.isWillLoadCalled=!0,this.handleProps()}componentDidLoad(){Object.defineProperty(this.el,"value",{get:()=>this.pickerValue,set:t=>this.value=t,configurable:!0}),this.overlay&&document.body.appendChild(this.overlay)}disconnectedCallback(){var t;this.overlay&&(null===(t=this.overlay.parentNode)||void 0===t||t.removeChild(this.overlay))}onPropsChange(){this.isWillLoadCalled&&this.handleProps()}handleProps(){const{mode:t,start:i,end:s}=this;if("selector"===t){const t=this.value;this.index=[c(t,this.range)?Math.floor(t):0]}else if("multiSelector"===t){const t=this.value;this.index=[],this.range.forEach(((i,s)=>{const e=null==t?void 0:t[s],h=c(e,i)?Math.floor(e):0;this.index.push(h)}))}else if("time"===t){let t=this.value;u(t)||(console.warn("time picker value illegal"),t="0:0");const i=t.split(":").map((t=>+t));this.index=i}else if("date"===t){const t=l(this.value)||new Date((new Date).setHours(0,0,0,0)),e=l(i)||new Date("1970/01/01"),h=l(s)||new Date("2999/01/01");if(!(t>=e&&t<=h))throw new Error("Date Interval Error");{const i=t.getFullYear(),s=t.getMonth()+1,n=t.getDate(),o=g(e.getFullYear(),h.getFullYear()),r=f(e,h,i),a=_(e,h,i,s);this.index=[o.indexOf(i),r.indexOf(s),a.indexOf(n)],this.pickerDate&&this.pickerDate._value.getTime()===t.getTime()&&this.pickerDate._start.getTime()===e.getTime()&&this.pickerDate._end.getTime()===h.getTime()||(this.pickerDate={_value:t,_start:e,_end:h,_updateValue:[i,s,n]})}}if(this.height=this.getHeightByIndex(),this.pickerValue=this.value,"date"===t){const t=this.pickerValue;"month"===this.fields?this.pickerValue=t.split("-").slice(0,2).join("-"):"year"===this.fields&&(this.pickerValue=t.split("-")[0])}}render(){const{name:t,mode:i,fadeOut:h,hidden:o}=this;let r;switch(i){case"multiSelector":r=this.getMultiSelector();break;case"time":r=this.getTimeSelector();break;case"date":r=this.getDateSelector();break;default:r=this.getSelector()}const a=n("weui-mask","weui-animate-fade-in",{"weui-animate-fade-out":h}),c=n("weui-picker","weui-animate-slide-up",{"weui-animate-slide-down":h}),u=o?{display:"none"}:{};return s(e,null,s("div",{onClick:this.showPicker},s("slot",null),s("input",{type:"hidden",name:t,value:p(this.pickerValue)})),s("div",{class:"weui-picker__overlay",style:u,ref:t=>{this.overlay=t}},s("div",{class:a,onClick:this.handleCancel}),s("div",{class:c},s("div",{class:"weui-picker__hd"},s("div",{class:"weui-picker__action",onClick:this.handleCancel},"取消"),s("div",{class:"weui-picker__action",onClick:this.handleChange},"确定")),s("div",{class:"weui-picker__bd"},r),s("input",{type:"hidden",name:t,value:p(this.pickerValue)}))))}get el(){return h(this)}static get watchers(){return{mode:["onPropsChange"],value:["onPropsChange"],range:["onPropsChange"],start:["onPropsChange"],end:["onPropsChange"]}}};k.style=".weui-picker,.weui-picker__hd{font-size:12px}";let w=class{constructor(i){t(this,i),this.range=[]}getPosition(){const t=`translate3d(0, ${this.height}px, 0)`,i=`transform ${this.touchEnd?.3:0}s`;return{transform:t,"-webkit-transform":t,transition:i,"-webkit-transition":i}}formulaUnlimitedScroll(t,i,s){const{height:e,updateHeight:h,columnId:n}=this,o="up"===s?1:-1;this.touchEnd=!1,h(-t*o*34+e,n),requestAnimationFrame((()=>{this.touchEnd=!0;const s=Math.round(i/-34)+t*o;h(102-34*s,n,!0)}))}handleMoveStart(t){this.startY=t,this.preY=t,this.hadMove=!1}handleMoving(t){const i=t,s=i-this.preY;this.preY=i,this.touchEnd=!1,Math.abs(i-this.startY)>10&&(this.hadMove=!0);let e=this.height+s;"time"===this.mode&&("0"===this.columnId?(e>0&&(e=-816+s),e<-850&&(e=-34+s)):"1"===this.columnId&&(e>0&&(e=-2040+s),e<-2074&&(e=-34+s))),this.updateHeight(e,this.columnId)}handleMoveEnd(t){const{mode:i,range:s,height:e,updateHeight:h,onColumnChange:n,columnId:o}=this,r=-34*(s.length-1),a=t;let c;if(this.touchEnd=!0,this.hadMove)c=e-102;else if(c=e-102-(a-(window.innerHeight-119)),"time"===i)if("0"===o){if(c>-85)return this.formulaUnlimitedScroll(24,c,"up");if(c<-969)return this.formulaUnlimitedScroll(24,c,"down")}else if("1"===o){if(c>-85)return this.formulaUnlimitedScroll(60,c,"up");if(c<-2193)return this.formulaUnlimitedScroll(60,c,"down")}c>0&&(c=0),c<r&&(c=r);const u=Math.round(c/-34),d=102-34*u;"date"===this.mode&&("0"===this.columnId&&this.updateDay(+this.range[u].replace(/[^0-9]/gi,""),0),"1"===this.columnId&&this.updateDay(+this.range[u].replace(/[^0-9]/gi,""),1),"2"===this.columnId&&this.updateDay(+this.range[u].replace(/[^0-9]/gi,""),2)),h(d,o,"time"===i),n&&n(d,o)}onMouseDown(t){this.isMove=!0,this.handleMoveStart(t.clientY)}onMouseMove(t){t.preventDefault(),this.isMove&&this.handleMoving(t.clientY)}onMouseMoveEnd(t){this.isMove&&(this.isMove=!1,this.handleMoveEnd(t.clientY))}onTouchStart(t){this.handleMoveStart(t.changedTouches[0].clientY)}onTouchMove(t){t.preventDefault(),this.handleMoving(t.changedTouches[0].clientY)}onTouchEnd(t){this.handleMoveEnd(t.changedTouches[0].clientY)}render(){const{range:t,rangeKey:i}=this,h=t.map((t=>s("div",{class:"weui-picker__item"},i?t[i]:t)));return s(e,{class:"weui-picker__group"},s("div",{class:"weui-picker__mask"}),s("div",{class:"weui-picker__indicator"}),s("div",{class:"weui-picker__content",style:this.getPosition()},h))}};export{k as taro_picker_core,w as taro_picker_group}
@@ -0,0 +1 @@
1
+ import{r as o,h as r,H as s}from"./p-8c7cf814.js";let t=class{constructor(r){o(this,r)}componentDidLoad(){console.error("H5 暂不支持 AdCustom 组件!")}render(){return r(s,null)}};export{t as taro_ad_custom_core}
@@ -1 +1 @@
1
- System.register(["./p-0674e57b.system.js"],(function(e){"use strict";var t,r,n;return{setters:[function(e){t=e.r;r=e.h;n=e.H}],execute:function(){var o=e("taro_live_player_core",function(){function e(e){t(this,e)}e.prototype.componentDidLoad=function(){console.error("H5 暂不支持 LivePlayer 组件!")};e.prototype.render=function(){return r(n,null)};return e}())}}}));
1
+ System.register(["./p-44996bd6.system.js"],(function(e){"use strict";var t,r,n;return{setters:[function(e){t=e.r;r=e.h;n=e.H}],execute:function(){var o=e("taro_live_player_core",function(){function e(e){t(this,e)}e.prototype.componentDidLoad=function(){console.error("H5 暂不支持 LivePlayer 组件!")};e.prototype.render=function(){return r(n,null)};return e}())}}}));
@@ -0,0 +1 @@
1
+ import{r as o,h as e,H as r}from"./p-8c7cf814.js";let s=class{constructor(e){o(this,e)}componentDidLoad(){console.error("H5 暂不支持 MovableView 组件!")}render(){return e(r,null)}};export{s as taro_movable_view_core}
@@ -1 +1 @@
1
- System.register(["./p-0674e57b.system.js"],(function(t){"use strict";var r,e,n;return{setters:[function(t){r=t.r;e=t.h;n=t.H}],execute:function(){var u=t("taro_custom_wrapper_core",function(){function t(t){r(this,t)}t.prototype.render=function(){return e(n,null)};return t}())}}}));
1
+ System.register(["./p-44996bd6.system.js"],(function(t){"use strict";var r,e,n;return{setters:[function(t){r=t.r;e=t.h;n=t.H}],execute:function(){var u=t("taro_custom_wrapper_core",function(){function t(t){r(this,t)}t.prototype.render=function(){return e(n,null)};return t}())}}}));
@@ -1 +1 @@
1
- System.register(["./p-0674e57b.system.js","./p-663d1bb9.system.js"],(function(e){"use strict";var t,i,o,n,s,r;return{setters:[function(e){t=e.r;i=e.c;o=e.h;n=e.g;s=e.H},function(e){r=e.d}],execute:function(){var l=".taro-picker-view-column-container{display:-ms-flexbox;display:flex;overflow:scroll;overflow-x:hidden;position:relative;-ms-flex-direction:column;flex-direction:column;-ms-flex:1;flex:1;text-align:center}.taro-picker-view-column-container::-webkit-scrollbar{display:none}";var c=e("taro_picker_view_column_core",function(){function e(e){var o=this;t(this,e);this.onChange=i(this,"onselect",7);this.onSelectStart=i(this,"onselectstart",7);this.onSelectEnd=i(this,"onselectend",7);this.initialPosition="0";this.paddingVertical=0;this.isInit=false;this.isMove=false;this.handleSelected=r((function(){var e=o.el.childNodes;var t=0;var i="0";for(var n in e){var s=e[n];var r=s.offsetHeight;if(t+r/2>o.el.scrollTop){i=n;break}t+=r}o.el.scrollTo({top:t,behavior:"smooth"});o.onChange.emit({curIndex:o.col,selectedIndex:i});o.onSelectEnd.emit()}),500)}e.prototype.onScroll=function(e){if(!this.isMove){this.isMove=true;this.onSelectStart.emit()}this.handleSelected()};e.prototype.onMouseEnd=function(){if(!this.isMove)return;this.isMove=false;this.handleSelected()};e.prototype.onTouchEnd=function(){this.isMove=false;this.handleSelected()};e.prototype.componentDidUpdate=function(){if(!this.isInit){this.isInit=true;var e=this.el.childNodes;var t=0;var i=0;for(var o in e){var n=e[o];if(this.initialPosition===o||!n||typeof n.offsetHeight!=="number"){break}i+=n.offsetHeight;t++}this.el.scrollTo({top:i});if(t>=e.length){this.onChange.emit({curIndex:this.col,selectedIndex:t-1})}}};e.prototype.render=function(){var e=this.paddingVertical,t=e===void 0?0:e;return o(s,{class:"taro-picker-view-column-container",style:{"padding-top":"".concat(t,"px"),"padding-bottom":"".concat(t,"px")}})};Object.defineProperty(e.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});return e}());c.style=l}}}));
1
+ System.register(["./p-44996bd6.system.js","./p-663d1bb9.system.js"],(function(e){"use strict";var t,i,o,n,s,r;return{setters:[function(e){t=e.r;i=e.c;o=e.h;n=e.g;s=e.H},function(e){r=e.d}],execute:function(){var l=".taro-picker-view-column-container{display:-ms-flexbox;display:flex;overflow:scroll;overflow-x:hidden;position:relative;-ms-flex-direction:column;flex-direction:column;-ms-flex:1;flex:1;text-align:center}.taro-picker-view-column-container::-webkit-scrollbar{display:none}";var c=e("taro_picker_view_column_core",function(){function e(e){var o=this;t(this,e);this.onChange=i(this,"onselect",7);this.onSelectStart=i(this,"onselectstart",7);this.onSelectEnd=i(this,"onselectend",7);this.initialPosition="0";this.paddingVertical=0;this.isInit=false;this.isMove=false;this.handleSelected=r((function(){var e=o.el.childNodes;var t=0;var i="0";for(var n in e){var s=e[n];var r=s.offsetHeight;if(t+r/2>o.el.scrollTop){i=n;break}t+=r}o.el.scrollTo({top:t,behavior:"smooth"});o.onChange.emit({curIndex:o.col,selectedIndex:i});o.onSelectEnd.emit()}),500)}e.prototype.onScroll=function(e){if(!this.isMove){this.isMove=true;this.onSelectStart.emit()}this.handleSelected()};e.prototype.onMouseEnd=function(){if(!this.isMove)return;this.isMove=false;this.handleSelected()};e.prototype.onTouchEnd=function(){this.isMove=false;this.handleSelected()};e.prototype.componentDidUpdate=function(){if(!this.isInit){this.isInit=true;var e=this.el.childNodes;var t=0;var i=0;for(var o in e){var n=e[o];if(this.initialPosition===o||!n||typeof n.offsetHeight!=="number"){break}i+=n.offsetHeight;t++}this.el.scrollTo({top:i});if(t>=e.length){this.onChange.emit({curIndex:this.col,selectedIndex:t-1})}}};e.prototype.render=function(){var e=this.paddingVertical,t=e===void 0?0:e;return o(s,{class:"taro-picker-view-column-container",style:{"padding-top":t+"px","padding-bottom":t+"px"}})};Object.defineProperty(e.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});return e}());c.style=l}}}));
@@ -0,0 +1 @@
1
+ import{r as o,h as r,H as t}from"./p-8c7cf814.js";let s=class{constructor(r){o(this,r)}componentDidLoad(){console.error("H5 暂不支持 Slot 组件!")}render(){return r(t,null)}};export{s as taro_slot_core}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as o,H as i,g as l}from"./p-8c7cf814.js";import{c as r}from"./p-7e5d2d7a.js";import{d as c}from"./p-5746d7ce.js";function h(t,s,o){if(t===s||"number"!=typeof t)return;const i=s-t,l=Date.now(),r=s>=t;!function c(){var h;h=Date.now()-l,t=i*h/500+t,r&&t>=s||!r&&s>=t?o(s):(o(t),requestAnimationFrame(c))}()}let e=class{constructor(o){t(this,o),this.onScroll=s(this,"scroll",3),this.onScrollToUpper=s(this,"scrolltoupper",3),this.onScrollToLower=s(this,"scrolltolower",3),this.scrollX=!1,this.scrollY=!1,this.upperThreshold=50,this.lowerThreshold=50,this.scrollWithAnimation=!1,this.handleScroll=t=>{if(t instanceof CustomEvent)return;const{scrollLeft:s,scrollTop:o,scrollHeight:i,scrollWidth:l}=this.el;this._scrollLeft=s,this._scrollTop=o,this.upperAndLower(),this.onScroll.emit({scrollLeft:s,scrollTop:o,scrollHeight:i,scrollWidth:l})},this.upperAndLower=c((()=>{const{offsetWidth:t,offsetHeight:s,scrollLeft:o,scrollTop:i,scrollHeight:l,scrollWidth:r}=this.el,c=Number(this.lowerThreshold),h=Number(this.upperThreshold);!isNaN(c)&&(this.scrollY&&s+i+c>=l||this.scrollX&&t+o+c>=r)&&this.onScrollToLower.emit({direction:this.scrollX?"right":this.scrollY?"bottom":""}),!isNaN(h)&&(this.scrollY&&i<=h||this.scrollX&&o<=h)&&this.onScrollToUpper.emit({direction:this.scrollX?"left":this.scrollY?"top":""})}),200)}watchScrollLeft(t){const s=Number(t);this.scrollX&&!isNaN(s)&&s!==this._scrollLeft&&(this.scrollWithAnimation?h(this._scrollLeft,s,(t=>this.el.scrollLeft=t)):this.el.scrollLeft=s,this._scrollLeft=s)}watchScrollTop(t){const s=Number(t);this.scrollY&&!isNaN(s)&&s!==this._scrollTop&&(this.scrollWithAnimation?h(this._scrollTop,s,(t=>this.el.scrollTop=t)):this.el.scrollTop=s,this._scrollTop=s)}watchScrollIntoView(t){var s;"string"==typeof t&&t&&(null===(s=document.querySelector(`#${t}`))||void 0===s||s.scrollIntoView({behavior:"smooth",block:"center",inline:"start"}))}componentDidLoad(){const{scrollY:t,scrollX:s,scrollWithAnimation:o}=this,i=Number(this.mpScrollTop),l=Number(this.mpScrollLeft);t&&!isNaN(i)&&(o?h(0,i,(t=>this.el.scrollTop=t)):this.el.scrollTop=i,this._scrollTop=i),s&&!isNaN(l)&&(o?h(0,l,(t=>this.el.scrollLeft=t)):this.el.scrollLeft=l,this._scrollLeft=l)}render(){const{scrollX:t,scrollY:s}=this,l=r({"taro-scroll-view__scroll-x":t,"taro-scroll-view__scroll-y":s});return o(i,{class:l,onScroll:this.handleScroll},o("slot",null))}get el(){return l(this)}static get watchers(){return{mpScrollLeft:["watchScrollLeft"],mpScrollTop:["watchScrollTop"],mpScrollIntoView:["watchScrollIntoView"]}}};e.style="taro-scroll-view-core{display:block;width:100%;-webkit-overflow-scrolling:auto}taro-scroll-view-core::-webkit-scrollbar{display:none}.taro-scroll-view__scroll-x{overflow-x:scroll;overflow-y:hidden}.taro-scroll-view__scroll-y{overflow-x:hidden;overflow-y:scroll}";export{e as taro_scroll_view_core}
@@ -1 +1 @@
1
- System.register(["./p-0674e57b.system.js"],(function(t){"use strict";var n,r,e;return{setters:[function(t){n=t.r;r=t.h;e=t.H}],execute:function(){var o=t("taro_navigation_bar_core",function(){function t(t){n(this,t)}t.prototype.componentDidLoad=function(){console.error("H5 暂不支持 NavigationBar 组件!")};t.prototype.render=function(){return r(e,null)};return t}())}}}));
1
+ System.register(["./p-44996bd6.system.js"],(function(t){"use strict";var n,r,e;return{setters:[function(t){n=t.r;r=t.h;e=t.H}],execute:function(){var o=t("taro_navigation_bar_core",function(){function t(t){n(this,t)}t.prototype.componentDidLoad=function(){console.error("H5 暂不支持 NavigationBar 组件!")};t.prototype.render=function(){return r(e,null)};return t}())}}}));
@@ -0,0 +1 @@
1
+ import{h as t,r as a,c as r,H as e,g as s}from"./p-8c7cf814.js";import o from"@tarojs/taro";import{c as i}from"./p-7e5d2d7a.js";const n=t=>{let a,r=t||"";const e={path:null,query:null,fragment:null};return a=r.indexOf("#"),a>-1&&(e.fragment=r.substring(a+1),r=r.substring(0,a)),a=r.indexOf("?"),a>-1&&(e.query=r.substring(a+1),r=r.substring(0,a)),e.path=r,e};function h(t){return"/"===t.charAt(0)}function b(t,a){for(var r=a,e=r+1,s=t.length;e<s;r+=1,e+=1)t[r]=t[e];t.pop()}const l=({index:a,isSelected:r=!1,textColor:e,iconPath:s,badgeText:o,showRedDot:n=!1,text:h,onSelect:b})=>{const l=i("weui-tabbar__item",{"weui-bar__item_on":r});return t("a",{key:a,href:"javascript:;",class:l,onClick:function(){b(a)}},t("span",{style:{display:"inline-block",position:"relative"}},t("img",{src:s,alt:"",class:"weui-tabbar__icon"}),!!o&&t("span",{class:"weui-badge taro-tabbar-badge",style:{position:"absolute",top:"-2px",right:"-13px"}},o),n&&t("span",{class:"weui-badge weui-badge_dot",style:{position:"absolute",top:"0",right:"-6px"}})),t("p",{class:"weui-tabbar__label",style:{color:e}},h))},d=(t="")=>"/"===t[0]?t:`/${t}`,c=(t="",a="")=>((t="",a="")=>new RegExp("^"+a+"(\\/|\\?|#|$)","i").test(t))(t,a)?t.substr(a.length):t;let _=class{constructor(t){a(this,t),this.onLongPress=r(this,"longpress",7),this.homePage="",this.customRoutes=[],this.tabbarPos="bottom",this.selectedIndex=-1,this.status=0,this.getOriginUrl=t=>{const a=this.customRoutes.filter((([,a])=>n(a).path===n(t).path));return((t="",a="")=>t.includes(a)?t.substring(0,t.length-a.length):t)(a.length?a[0][0]:t,".html")},this.getSelectedIndex=t=>{let a=-1;return this.list.forEach((({pagePath:r},e)=>{n(t).path===n(r).path&&(a=e)})),a},this.switchTab=t=>{this.selectedIndex=t,o.switchTab({url:this.list[t].pagePath})},this.switchTabHandler=({url:t,successHandler:a,errorHandler:r})=>{const e=function(t,a){void 0===a&&(a="");var r,e=t&&t.split("/")||[],s=a&&a.split("/")||[],o=t&&h(t),i=a&&h(a),n=o||i;if(t&&h(t)?s=e:e.length&&(s.pop(),s=s.concat(e)),!s.length)return"/";if(s.length){var l=s[s.length-1];r="."===l||".."===l||""===l}else r=!1;for(var d=0,c=s.length;c>=0;c--){var _=s[c];"."===_?b(s,c):".."===_?(b(s,c),d++):d&&(b(s,c),d--)}if(!n)for(;d--;d)s.unshift("..");!n||""===s[0]||s[0]&&h(s[0])||s.unshift("");var u=s.join("/");return r&&"/"!==u.substr(-1)&&(u+="/"),u}(t,this.getOriginUrl(this.getCurrentUrl()||this.homePage)),s=this.getSelectedIndex(e);s>-1?(this.switchTab(s),a({errMsg:"switchTab:ok"})):r({errMsg:`switchTab:fail page "${e}" is not found`})},this.routerChangeHandler=t=>{var a;const r=null===(a=null==t?void 0:t.toLocation)||void 0===a?void 0:a.path;let e;if("string"==typeof r){const t=this.conf.basename||"/";e=c(d(r||this.homePage),t)}else e=this.getCurrentUrl();this.selectedIndex=this.getSelectedIndex(this.getOriginUrl(e))},this.setTabBarBadgeHandler=({index:t,text:a,successHandler:r,errorHandler:e})=>{const s=[...this.list];t in s?(s[t].showRedDot=!1,s[t].badgeText=a,r({errMsg:"setTabBarBadge:ok"})):e({errMsg:"setTabBarBadge:fail tabbar item not found"}),this.list=s},this.removeTabBarBadgeHandler=({index:t,successHandler:a,errorHandler:r})=>{const e=[...this.list];t in e?(e[t].badgeText=null,e[t].badgeText=null,a({errMsg:"removeTabBarBadge:ok"})):r({errMsg:"removeTabBarBadge:fail tabbar item not found"}),this.list=e},this.showTabBarRedDotHandler=({index:t,successHandler:a,errorHandler:r})=>{const e=[...this.list];t in e?(e[t].badgeText=null,e[t].showRedDot=!0,a({errMsg:"showTabBarRedDot:ok"})):r({errMsg:"showTabBarRedDot:fail tabbar item not found"}),this.list=e},this.hideTabBarRedDotHandler=({index:t,successHandler:a,errorHandler:r})=>{const e=[...this.list];t in e?(e[t].showRedDot=!1,a({errMsg:"hideTabBarRedDot:ok"})):r({errMsg:"hideTabBarRedDot:fail tabbar item not found"}),this.list=e},this.showTabBarHandler=({successHandler:t})=>{this.status=0,t({errMsg:"showTabBar:ok"})},this.hideTabBarHandler=({animation:t,successHandler:a})=>{this.status=t?2:1,a({errMsg:"hideTabBar:ok"})},this.setTabBarStyleHandler=({color:t,selectedColor:a,backgroundColor:r,borderStyle:e,successHandler:s})=>{r&&(this.backgroundColor=r),e&&(this.borderStyle=e),t&&(this.color=t),a&&(this.selectedColor=a),s({errMsg:"setTabBarStyle:ok"})},this.setTabBarItemHandler=({index:t,iconPath:a,selectedIconPath:r,text:e,successHandler:s,errorHandler:o})=>{const i=[...this.list];t in i?(a&&(i[t].iconPath=a),r&&(i[t].selectedIconPath=r),e&&(i[t].text=e),s({errMsg:"setTabBarItem:ok"})):o({errMsg:"setTabBarItem:fail tabbar item not found"}),this.list=i};const e=this.conf.list,s=this.conf.customRoutes;if("[object Array]"!==Object.prototype.toString.call(e)||e.length<2||e.length>5)throw new Error("tabBar 配置错误");this.homePage=d(this.conf.homePage);for(let t in s){const a=s[t];t=d(t),"string"==typeof a?this.customRoutes.push([t,d(a)]):(null==a?void 0:a.length)>0&&this.customRoutes.push(...a.map((a=>[t,d(a)])))}e.forEach((t=>{0!==t.pagePath.indexOf("/")&&(t.pagePath="/"+t.pagePath)})),this.list=e,this.borderStyle=this.conf.borderStyle,this.backgroundColor=this.conf.backgroundColor,this.color=this.conf.color,this.selectedColor=this.conf.selectedColor}getCurrentUrl(){const t=this.conf.basename||"/";let a;if("hash"===this.conf.mode){const t=window.location.href,r=t.indexOf("#");a=-1===r?"":t.substring(r+1)}else a=location.pathname;const r=d(c(a,t));return decodeURI("/"===r?this.homePage:r)}bindEvent(){o.eventCenter.on("__taroRouterChange",this.routerChangeHandler),o.eventCenter.on("__taroSwitchTab",this.switchTabHandler),o.eventCenter.on("__taroSetTabBarBadge",this.setTabBarBadgeHandler),o.eventCenter.on("__taroRemoveTabBarBadge",this.removeTabBarBadgeHandler),o.eventCenter.on("__taroShowTabBarRedDotHandler",this.showTabBarRedDotHandler),o.eventCenter.on("__taroHideTabBarRedDotHandler",this.hideTabBarRedDotHandler),o.eventCenter.on("__taroShowTabBar",this.showTabBarHandler),o.eventCenter.on("__taroHideTabBar",this.hideTabBarHandler),o.eventCenter.on("__taroSetTabBarStyle",this.setTabBarStyleHandler),o.eventCenter.on("__taroSetTabBarItem",this.setTabBarItemHandler)}removeEvent(){o.eventCenter.off("__taroRouterChange",this.routerChangeHandler),o.eventCenter.off("__taroSwitchTab",this.switchTabHandler),o.eventCenter.off("__taroSetTabBarBadge",this.setTabBarBadgeHandler),o.eventCenter.off("__taroRemoveTabBarBadge",this.removeTabBarBadgeHandler),o.eventCenter.off("__taroShowTabBarRedDotHandler",this.showTabBarRedDotHandler),o.eventCenter.off("__taroHideTabBarRedDotHandler",this.hideTabBarRedDotHandler),o.eventCenter.off("__taroShowTabBar",this.showTabBarHandler),o.eventCenter.off("__taroHideTabBar",this.hideTabBarHandler),o.eventCenter.off("__taroSetTabBarStyle",this.setTabBarStyleHandler),o.eventCenter.off("__taroSetTabBarItem",this.setTabBarItemHandler)}componentDidLoad(){this.tabbarPos=this.tabbar.nextElementSibling?"top":"bottom",this.bindEvent(),this.routerChangeHandler()}disconnectedCallback(){this.removeEvent()}render(){const{tabbarPos:a="bottom"}=this,r=this.status,s=i("weui-tabbar",{[`taro-tabbar__border-${this.borderStyle||"black"}`]:!0});return t(e,{class:i("taro-tabbar__tabbar",`taro-tabbar__tabbar-${a}`,{"taro-tabbar__tabbar-hide":-1===this.selectedIndex||1===r,"taro-tabbar__tabbar-slideout":2===r})},t("div",{class:s,style:{backgroundColor:this.backgroundColor||"",height:"inherit"}},this.list.map(((a,r)=>{const e=this.selectedIndex===r;let s,o;return e?(s=this.selectedColor||"",o=a.selectedIconPath):(s=this.color||"",o=a.iconPath),t(l,{index:r,onSelect:this.switchTab.bind(this),isSelected:e,textColor:s,iconPath:o,text:a.text,badgeText:a.badgeText,showRedDot:a.showRedDot})}))))}get tabbar(){return s(this)}};_.style="html,body{height:100%}#app{height:100%}.taro-tabbar__border-white::before{border-top-color:#fff !important}.taro-tabbar__container{display:-ms-flexbox;display:flex;overflow:hidden;-ms-flex-direction:column;flex-direction:column;height:100%}.taro-tabbar__panel{overflow:auto;position:relative;-ms-flex:1;flex:1;-webkit-overflow-scrolling:auto}.taro-tabbar__tabbar{position:relative;width:100%;height:50px;-webkit-transition:bottom 0.2s, top 0.2s;transition:bottom 0.2s, top 0.2s}.taro-tabbar__tabbar-top{top:0}.taro-tabbar__tabbar-bottom{bottom:0;margin-bottom:constant(safe-area-inset-bottom);margin-bottom:env(safe-area-inset-bottom)}.taro-tabbar__tabbar-hide{display:none}.taro-tabbar__tabbar-slideout{top:-52px;-ms-flex:0 0;flex:0 0}.taro-tabbar__panel+.taro-tabbar__tabbar-slideout{top:auto;bottom:-52px}";export{_ as taro_tabbar}
@@ -0,0 +1 @@
1
+ import{r,h as o,H as a}from"./p-8c7cf814.js";let e=class{constructor(o){r(this,o)}componentDidLoad(){console.error("H5 暂不支持 Camera 组件!")}render(){return o(a,null)}};export{e as taro_camera_core}
@@ -0,0 +1 @@
1
+ System.register(["./p-44996bd6.system.js"],(function(t){"use strict";var n,r,e;return{setters:[function(t){n=t.r;r=t.h;e=t.H}],execute:function(){var o=t("taro_ad_core",function(){function t(t){n(this,t)}t.prototype.componentDidLoad=function(){console.error("H5 暂不支持 Ad 组件!")};t.prototype.render=function(){return r(e,null)};return t}())}}}));
@@ -1 +1 @@
1
- import{p as e,b as o}from"./p-d21dd145.js";(()=>{const o=import.meta.url,r={};return""!==o&&(r.resourcesUrl=new URL(".",o).href),e(r)})().then((e=>o([["p-0adcc512",[[4,"taro-checkbox-core",{name:[1],value:[1],color:[1],id:[1025],checked:[4],disabled:[4],nativeProps:[16],isWillLoadCalled:[32]}],[0,"taro-checkbox-group-core",{name:[8]},[[0,"checkboxchange","function"]]]]],["p-8870f200",[[4,"taro-radio-core",{name:[1],value:[1],id:[1025],checked:[1028],disabled:[4],nativeProps:[16],isWillLoadCalled:[32]}],[0,"taro-radio-group-core",{name:[8]},[[0,"radiochange","function"]]]]],["p-36727043",[[4,"taro-swiper-core",{indicatorDots:[4,"indicator-dots"],indicatorColor:[1,"indicator-color"],indicatorActiveColor:[1,"indicator-active-color"],autoplay:[4],current:[2],interval:[2],duration:[2],circular:[4],vertical:[4],previousMargin:[1,"previous-margin"],nextMargin:[1,"next-margin"],displayMultipleItems:[2,"display-multiple-items"],full:[4],swiperWrapper:[32],swiper:[32],isWillLoadCalled:[32],observer:[32],observerFirst:[32],observerLast:[32]}],[0,"taro-swiper-item-core",{itemId:[1,"item-id"]}]]],["p-a39fc58e",[[0,"taro-ad-core"]]],["p-8e56fb48",[[0,"taro-ad-custom-core"]]],["p-b6956e54",[[0,"taro-audio-core",{src:[1],controls:[4],autoplay:[4],loop:[4],muted:[4],nativeProps:[16]}]]],["p-d5bfba7d",[[0,"taro-block-core"]]],["p-2e78c090",[[4,"taro-button-core",{disabled:[4],hoverClass:[1,"hover-class"],type:[1],hoverStartTime:[2,"hover-start-time"],hoverStayTime:[2,"hover-stay-time"],size:[1],plain:[4],loading:[4],formType:[1,"form-type"],hover:[32],touch:[32]},[[1,"touchstart","onTouchStart"],[1,"touchend","onTouchEnd"]]]]],["p-1da081b6",[[0,"taro-camera-core"]]],["p-2927361f",[[0,"taro-canvas-core",{canvasId:[1,"canvas-id"],nativeProps:[16]}]]],["p-8b9fdd2d",[[0,"taro-cover-image-core",{src:[1],nativeProps:[16]}]]],["p-76ab644c",[[4,"taro-cover-view-core",{animation:[1],hoverClass:[1,"hover-class"],hoverStartTime:[2,"hover-start-time"],hoverStayTime:[2,"hover-stay-time"],hover:[32],touch:[32]},[[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-87282837",[[0,"taro-custom-wrapper-core"]]],["p-f2add48e",[[0,"taro-editor-core"]]],["p-15f00e71",[[4,"taro-form-core",{slotParent:[32]},[[0,"tarobuttonsubmit","onButtonSubmit"],[0,"tarobuttonreset","onButtonReset"]]]]],["p-df00945b",[[0,"taro-functional-page-navigator-core"]]],["p-f46523cb",[[0,"taro-icon-core",{type:[1],size:[8],color:[1]}]]],["p-abe4452a",[[0,"taro-image-core",{src:[1],mode:[1],lazyLoad:[4,"lazy-load"],nativeProps:[16],aspectFillMode:[32]}]]],["p-7309764b",[[0,"taro-input-core",{value:[1],type:[1],password:[4],placeholder:[1],disabled:[4],maxlength:[2],autoFocus:[4,"auto-focus"],confirmType:[1,"confirm-type"],name:[1],nativeProps:[16]}]]],["p-d1c28dd0",[[0,"taro-keyboard-accessory-core"]]],["p-a64d8c69",[[4,"taro-label-core",{for:[1]}]]],["p-518e7b29",[[0,"taro-live-player-core"]]],["p-497a5d9a",[[0,"taro-live-pusher-core"]]],["p-3eb5219a",[[0,"taro-map-core"]]],["p-cabc377f",[[0,"taro-match-media-core"]]],["p-7c5be4ff",[[0,"taro-movable-area-core"]]],["p-f7fc979d",[[0,"taro-movable-view-core"]]],["p-404fbc7c",[[0,"taro-navigation-bar-core"]]],["p-4d4637df",[[0,"taro-navigator-core",{hoverClass:[1,"hover-class"],url:[1],openType:[1,"open-type"],isHover:[4,"is-hover"],delta:[2]},[[0,"click","onClick"]]]]],["p-3546a833",[[0,"taro-official-account-core"]]],["p-47eb9dcc",[[0,"taro-open-data-core"]]],["p-8fd6b016",[[0,"taro-page-container-core"]]],["p-f4e38010",[[0,"taro-page-meta-core"]]],["p-a0c6319e",[[0,"taro-picker-view-column-core",{col:[1],initialPosition:[1,"initial-position"],paddingVertical:[2,"padding-vertical"],isInit:[32],isMove:[32]},[[1,"scroll","onScroll"],[1,"mouseup","onMouseEnd"],[1,"mouseout","onMouseEnd"],[1,"mouseleave","onMouseEnd"],[1,"touchend","onTouchEnd"]]]]],["p-fbf0fb63",[[4,"taro-picker-view-core",{indicatorStyle:[1,"indicator-style"],indicatorClass:[1,"indicator-class"],value:[16],maskStyle:[1,"mask-style"],maskClass:[1,"mask-class"]},[[0,"onselect","onSelect"],[0,"onselectstart","onSelectStart"],[0,"onselectend","onPickerColEnd"]]]]],["p-4eda1f6b",[[0,"taro-progress-core",{percent:[2],showInfo:[4,"show-info"],borderRadius:[8,"border-radius"],fontSize:[8,"font-size"],strokeWidth:[8,"stroke-width"],activeColor:[1,"active-color"],backgroundColor:[1,"background-color"],active:[4]}]]],["p-4651474c",[[4,"taro-pull-to-refresh",{prefixCls:[1,"prefix-cls"],distanceToRefresh:[2,"distance-to-refresh"],damping:[2],indicator:[16],currSt:[32],dragOnEdge:[32]}]]],["p-52033dd2",[[0,"taro-rich-text-core",{nodes:[1]}]]],["p-8ab7c95f",[[4,"taro-scroll-view-core",{scrollX:[4,"scroll-x"],scrollY:[4,"scroll-y"],upperThreshold:[8,"upper-threshold"],lowerThreshold:[8,"lower-threshold"],mpScrollTop:[8,"scroll-top"],mpScrollLeft:[8,"scroll-left"],mpScrollIntoView:[1,"scroll-into-view"],scrollWithAnimation:[4,"scroll-with-animation"]}]]],["p-a296ef29",[[0,"taro-share-element-core"]]],["p-557d86fe",[[0,"taro-slider-core",{min:[2],max:[2],step:[2],disabled:[4],value:[1026],activeColor:[1,"active-color"],backgroundColor:[1,"background-color"],blockSize:[2,"block-size"],blockColor:[1,"block-color"],showValue:[4,"show-value"],name:[1],val:[32],totalWidth:[32],touching:[32],ogX:[32],touchId:[32],percent:[32],ogPercent:[32],isWillLoadCalled:[32]}]]],["p-783af5b6",[[0,"taro-slot-core"]]],["p-95bd702e",[[0,"taro-switch-core",{type:[1],checked:[4],color:[1],name:[1],disabled:[4],nativeProps:[16],isChecked:[32],isWillLoadCalled:[32]}]]],["p-fb1de68d",[[0,"taro-tabbar",{conf:[16],list:[32],borderStyle:[32],backgroundColor:[32],color:[32],selectedColor:[32],selectedIndex:[32],status:[32]}]]],["p-c28a79eb",[[4,"taro-text-core",{selectable:[4]}]]],["p-e28a1c0e",[[0,"taro-textarea-core",{value:[1],placeholder:[1],disabled:[4],maxlength:[2],autoFocus:[4,"auto-focus"],autoHeight:[4,"auto-height"],name:[1],nativeProps:[16],line:[32]}]]],["p-cf9e80c9",[[4,"taro-view-core",{animation:[1],hoverClass:[1,"hover-class"],hoverStartTime:[2,"hover-start-time"],hoverStayTime:[2,"hover-stay-time"],hover:[32],touch:[32]},[[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-5d51b5b0",[[0,"taro-voip-room-core"]]],["p-89b902ef",[[0,"taro-web-view-core",{src:[1]}]]],["p-7b43bfe6",[[4,"taro-picker-core",{mode:[1],disabled:[4],range:[16],rangeKey:[1,"range-key"],value:[8],start:[1],end:[1],fields:[1],name:[1],pickerValue:[32],height:[32],hidden:[32],fadeOut:[32],isWillLoadCalled:[32]}],[0,"taro-picker-group",{mode:[1],range:[16],rangeKey:[1,"range-key"],height:[2],columnId:[1,"column-id"],updateHeight:[16],onColumnChange:[16],updateDay:[16],startY:[32],preY:[32],hadMove:[32],touchEnd:[32],isMove:[32]},[[1,"mousedown","onMouseDown"],[1,"mousemove","onMouseMove"],[1,"mouseup","onMouseMoveEnd"],[1,"mouseleave","onMouseMoveEnd"],[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-b3eaf173",[[0,"taro-video-core",{src:[1],duration:[2],controls:[4],autoplay:[4],loop:[4],muted:[4],initialTime:[2,"initial-time"],poster:[1],objectFit:[1,"object-fit"],showProgress:[4,"show-progress"],showFullscreenBtn:[4,"show-fullscreen-btn"],showPlayBtn:[4,"show-play-btn"],showCenterPlayBtn:[4,"show-center-play-btn"],showMuteBtn:[4,"show-mute-btn"],danmuList:[16],danmuBtn:[4,"danmu-btn"],enableDanmu:[4,"enable-danmu"],enablePlayGesture:[4,"enable-play-gesture"],enableProgressGesture:[4,"enable-progress-gesture"],vslideGesture:[4,"vslide-gesture"],vslideGestureInFullscreen:[4,"vslide-gesture-in-fullscreen"],nativeProps:[16],_duration:[32],_enableDanmu:[32],isPlaying:[32],isFirst:[32],isFullScreen:[32],fullScreenTimestamp:[32],isMute:[32],play:[64],pause:[64],stop:[64],seek:[64],requestFullScreen:[64],exitFullScreen:[64]},[[5,"touchmove","onDocumentTouchMove"],[5,"touchend","onDocumentTouchEnd"],[5,"touchcancel","onDocumentTouchEnd"]]],[4,"taro-video-control",{controls:[4],currentTime:[2,"current-time"],duration:[2],isPlaying:[4,"is-playing"],pauseFunc:[16],playFunc:[16],seekFunc:[16],showPlayBtn:[4,"show-play-btn"],showProgress:[4,"show-progress"],setProgressBall:[64],toggleVisibility:[64],getIsDraggingProgressBall:[64],setCurrentTime:[64]},[[5,"touchmove","onDocumentTouchMove"],[5,"touchend","onDocumentTouchEnd"],[5,"touchcancel","onDocumentTouchEnd"]]],[0,"taro-video-danmu",{enable:[4],danmuList:[32],sendDanmu:[64],tick:[64]}]]]],e)));
1
+ import{p as e,b as o}from"./p-8c7cf814.js";(()=>{const o=import.meta.url,r={};return""!==o&&(r.resourcesUrl=new URL(".",o).href),e(r)})().then((e=>o([["p-de726095",[[4,"taro-checkbox-core",{name:[1],value:[1],color:[1],id:[1025],checked:[4],disabled:[4],nativeProps:[16],isWillLoadCalled:[32]}],[0,"taro-checkbox-group-core",{name:[8]},[[0,"checkboxchange","function"]]]]],["p-8a2b7701",[[4,"taro-radio-core",{name:[1],value:[1],id:[1025],checked:[1028],disabled:[4],nativeProps:[16],isWillLoadCalled:[32]}],[0,"taro-radio-group-core",{name:[8]},[[0,"radiochange","function"]]]]],["p-7419e765",[[4,"taro-swiper-core",{indicatorDots:[4,"indicator-dots"],indicatorColor:[1,"indicator-color"],indicatorActiveColor:[1,"indicator-active-color"],autoplay:[4],current:[2],interval:[2],duration:[2],circular:[4],vertical:[4],previousMargin:[1,"previous-margin"],nextMargin:[1,"next-margin"],displayMultipleItems:[2,"display-multiple-items"],full:[4],swiperWrapper:[32],swiper:[32],isWillLoadCalled:[32],observer:[32],observerFirst:[32],observerLast:[32]}],[0,"taro-swiper-item-core",{itemId:[1,"item-id"]}]]],["p-8c6d8802",[[0,"taro-ad-core"]]],["p-e6ec7abc",[[0,"taro-ad-custom-core"]]],["p-884e6eab",[[0,"taro-audio-core",{src:[1],controls:[4],autoplay:[4],loop:[4],muted:[4],nativeProps:[16]}]]],["p-549636ca",[[0,"taro-block-core"]]],["p-17b78ad7",[[4,"taro-button-core",{disabled:[4],hoverClass:[1,"hover-class"],type:[1],hoverStartTime:[2,"hover-start-time"],hoverStayTime:[2,"hover-stay-time"],size:[1],plain:[4],loading:[4],formType:[1,"form-type"],hover:[32],touch:[32]},[[1,"touchstart","onTouchStart"],[1,"touchend","onTouchEnd"]]]]],["p-fee2ad82",[[0,"taro-camera-core"]]],["p-7d457a6a",[[0,"taro-canvas-core",{canvasId:[1,"canvas-id"],nativeProps:[16]}]]],["p-880791ee",[[0,"taro-cover-image-core",{src:[1],nativeProps:[16]}]]],["p-c1642977",[[4,"taro-cover-view-core",{animation:[1],hoverClass:[1,"hover-class"],hoverStartTime:[2,"hover-start-time"],hoverStayTime:[2,"hover-stay-time"],hover:[32],touch:[32]},[[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-b31e6cf0",[[0,"taro-custom-wrapper-core"]]],["p-13d03572",[[0,"taro-editor-core"]]],["p-aca73ca4",[[4,"taro-form-core",{slotParent:[32]},[[0,"tarobuttonsubmit","onButtonSubmit"],[0,"tarobuttonreset","onButtonReset"]]]]],["p-087d704b",[[0,"taro-functional-page-navigator-core"]]],["p-c995a3aa",[[0,"taro-icon-core",{type:[1],size:[8],color:[1]}]]],["p-92f26e22",[[0,"taro-image-core",{src:[1],mode:[1],lazyLoad:[4,"lazy-load"],nativeProps:[16],aspectFillMode:[32]}]]],["p-a9c3e575",[[0,"taro-input-core",{value:[1],type:[1],password:[4],placeholder:[1],disabled:[4],maxlength:[2],autoFocus:[4,"auto-focus"],confirmType:[1,"confirm-type"],name:[1],nativeProps:[16]}]]],["p-c33b552b",[[0,"taro-keyboard-accessory-core"]]],["p-7f726d39",[[4,"taro-label-core",{for:[1]}]]],["p-615b87e8",[[0,"taro-live-player-core"]]],["p-1fbf755f",[[0,"taro-live-pusher-core"]]],["p-c6d14c2b",[[0,"taro-map-core"]]],["p-14484d41",[[0,"taro-match-media-core"]]],["p-917185f3",[[0,"taro-movable-area-core"]]],["p-ee1ffbb0",[[0,"taro-movable-view-core"]]],["p-b640bd56",[[0,"taro-navigation-bar-core"]]],["p-3b067d1f",[[0,"taro-navigator-core",{hoverClass:[1,"hover-class"],url:[1],openType:[1,"open-type"],isHover:[4,"is-hover"],delta:[2]},[[0,"click","onClick"]]]]],["p-e56a303b",[[0,"taro-official-account-core"]]],["p-68246408",[[0,"taro-open-data-core"]]],["p-085c4322",[[0,"taro-page-container-core"]]],["p-3e7aced1",[[0,"taro-page-meta-core"]]],["p-0afc53da",[[0,"taro-picker-view-column-core",{col:[1],initialPosition:[1,"initial-position"],paddingVertical:[2,"padding-vertical"],isInit:[32],isMove:[32]},[[1,"scroll","onScroll"],[1,"mouseup","onMouseEnd"],[1,"mouseout","onMouseEnd"],[1,"mouseleave","onMouseEnd"],[1,"touchend","onTouchEnd"]]]]],["p-88e3bc92",[[4,"taro-picker-view-core",{indicatorStyle:[1,"indicator-style"],indicatorClass:[1,"indicator-class"],value:[16],maskStyle:[1,"mask-style"],maskClass:[1,"mask-class"]},[[0,"onselect","onSelect"],[0,"onselectstart","onSelectStart"],[0,"onselectend","onPickerColEnd"]]]]],["p-06352f55",[[0,"taro-progress-core",{percent:[2],showInfo:[4,"show-info"],borderRadius:[8,"border-radius"],fontSize:[8,"font-size"],strokeWidth:[8,"stroke-width"],activeColor:[1,"active-color"],backgroundColor:[1,"background-color"],active:[4]}]]],["p-3e1e4626",[[4,"taro-pull-to-refresh",{prefixCls:[1,"prefix-cls"],distanceToRefresh:[2,"distance-to-refresh"],damping:[2],indicator:[16],currSt:[32],dragOnEdge:[32]}]]],["p-55646f03",[[0,"taro-rich-text-core",{nodes:[1]}]]],["p-f5377a15",[[4,"taro-scroll-view-core",{scrollX:[4,"scroll-x"],scrollY:[4,"scroll-y"],upperThreshold:[8,"upper-threshold"],lowerThreshold:[8,"lower-threshold"],mpScrollTop:[8,"scroll-top"],mpScrollLeft:[8,"scroll-left"],mpScrollIntoView:[1,"scroll-into-view"],scrollWithAnimation:[4,"scroll-with-animation"]}]]],["p-b455351e",[[0,"taro-share-element-core"]]],["p-7f8ddefe",[[0,"taro-slider-core",{min:[2],max:[2],step:[2],disabled:[4],value:[1026],activeColor:[1,"active-color"],backgroundColor:[1,"background-color"],blockSize:[2,"block-size"],blockColor:[1,"block-color"],showValue:[4,"show-value"],name:[1],val:[32],totalWidth:[32],touching:[32],ogX:[32],touchId:[32],percent:[32],ogPercent:[32],isWillLoadCalled:[32]}]]],["p-f425f3b5",[[0,"taro-slot-core"]]],["p-58cbfd17",[[0,"taro-switch-core",{type:[1],checked:[4],color:[1],name:[1],disabled:[4],nativeProps:[16],isChecked:[32],isWillLoadCalled:[32]}]]],["p-fc28dbdd",[[0,"taro-tabbar",{conf:[16],list:[32],borderStyle:[32],backgroundColor:[32],color:[32],selectedColor:[32],selectedIndex:[32],status:[32]}]]],["p-8ca394d6",[[4,"taro-text-core",{selectable:[4]}]]],["p-34d60fc8",[[0,"taro-textarea-core",{value:[1],placeholder:[1],disabled:[4],maxlength:[2],autoFocus:[4,"auto-focus"],autoHeight:[4,"auto-height"],name:[1],nativeProps:[16],line:[32]}]]],["p-1e44fcfd",[[4,"taro-view-core",{animation:[1],hoverClass:[1,"hover-class"],hoverStartTime:[2,"hover-start-time"],hoverStayTime:[2,"hover-stay-time"],hover:[32],touch:[32]},[[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-9ff180ae",[[0,"taro-voip-room-core"]]],["p-c0875abf",[[0,"taro-web-view-core",{src:[1]}]]],["p-e5fdbc1c",[[4,"taro-picker-core",{mode:[1],disabled:[4],range:[16],rangeKey:[1,"range-key"],value:[8],start:[1],end:[1],fields:[1],name:[1],pickerValue:[32],height:[32],hidden:[32],fadeOut:[32],isWillLoadCalled:[32]}],[0,"taro-picker-group",{mode:[1],range:[16],rangeKey:[1,"range-key"],height:[2],columnId:[1,"column-id"],updateHeight:[16],onColumnChange:[16],updateDay:[16],startY:[32],preY:[32],hadMove:[32],touchEnd:[32],isMove:[32]},[[1,"mousedown","onMouseDown"],[1,"mousemove","onMouseMove"],[1,"mouseup","onMouseMoveEnd"],[1,"mouseleave","onMouseMoveEnd"],[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-bb3d337d",[[0,"taro-video-core",{src:[1],duration:[2],controls:[4],autoplay:[4],loop:[4],muted:[4],initialTime:[2,"initial-time"],poster:[1],objectFit:[1,"object-fit"],showProgress:[4,"show-progress"],showFullscreenBtn:[4,"show-fullscreen-btn"],showPlayBtn:[4,"show-play-btn"],showCenterPlayBtn:[4,"show-center-play-btn"],showMuteBtn:[4,"show-mute-btn"],danmuList:[16],danmuBtn:[4,"danmu-btn"],enableDanmu:[4,"enable-danmu"],enablePlayGesture:[4,"enable-play-gesture"],enableProgressGesture:[4,"enable-progress-gesture"],vslideGesture:[4,"vslide-gesture"],vslideGestureInFullscreen:[4,"vslide-gesture-in-fullscreen"],nativeProps:[16],_duration:[32],_enableDanmu:[32],isPlaying:[32],isFirst:[32],isFullScreen:[32],fullScreenTimestamp:[32],isMute:[32],play:[64],pause:[64],stop:[64],seek:[64],requestFullScreen:[64],exitFullScreen:[64]},[[5,"touchmove","onDocumentTouchMove"],[5,"touchend","onDocumentTouchEnd"],[5,"touchcancel","onDocumentTouchEnd"]]],[4,"taro-video-control",{controls:[4],currentTime:[2,"current-time"],duration:[2],isPlaying:[4,"is-playing"],pauseFunc:[16],playFunc:[16],seekFunc:[16],showPlayBtn:[4,"show-play-btn"],showProgress:[4,"show-progress"],setProgressBall:[64],toggleVisibility:[64],getIsDraggingProgressBall:[64],setCurrentTime:[64]},[[5,"touchmove","onDocumentTouchMove"],[5,"touchend","onDocumentTouchEnd"],[5,"touchcancel","onDocumentTouchEnd"]]],[0,"taro-video-danmu",{enable:[4],danmuList:[32],sendDanmu:[64],tick:[64]}]]]],e)));
@@ -114,7 +114,7 @@ DOMTokenList
114
114
 
115
115
  var resourcesUrl = scriptElm ? scriptElm.getAttribute('data-resources-url') || scriptElm.src : '';
116
116
  var start = function() {
117
- var url = new URL('./p-aab7f8e8.system.js', new URL(resourcesUrl, window.location.origin));
117
+ var url = new URL('./p-a2fd3c03.system.js', new URL(resourcesUrl, window.location.origin));
118
118
  System.import(url.href);
119
119
  };
120
120
 
@@ -26,7 +26,7 @@ export { FormProps } from './Form';
26
26
  export { InputProps } from './Input';
27
27
  export { KeyboardAccessoryProps } from './KeyboardAccessory';
28
28
  export { LabelProps } from './Label';
29
- export { PickerDateProps, PickerTimeProps, PickerRegionProps, PickerSelectorProps, PickerMultiSelectorProps } from './Picker';
29
+ export { PickerDateProps, PickerMultiSelectorProps, PickerRegionProps, PickerSelectorProps, PickerTimeProps } from './Picker';
30
30
  export { PickerViewProps } from './PickerView';
31
31
  export { PickerViewColumnProps } from './PickerViewColumn';
32
32
  export { RadioProps } from './Radio';
@@ -36,8 +36,8 @@ export { SwitchProps } from './Switch';
36
36
  export { TextareaProps } from './Textarea';
37
37
  /** 导航 */
38
38
  export { FunctionalPageNavigatorProps } from './FunctionalPageNavigator';
39
- export { NavigatorProps } from './Navigator';
40
39
  export { NavigationBarProps } from './NavigationBar';
40
+ export { NavigatorProps } from './Navigator';
41
41
  /** 媒体组件 */
42
42
  export { AudioProps } from './Audio';
43
43
  export { CameraProps } from './Camera';
@@ -57,6 +57,6 @@ export { OfficialAccountProps } from './OfficialAccount';
57
57
  export { OpenDataProps } from './OpenData';
58
58
  export { WebViewProps } from './WebView';
59
59
  /** 配置节点 */
60
- export { PageMetaProps } from './PageMeta';
61
60
  export { CustomWrapperProps } from './CustomWrapper';
61
+ export { PageMetaProps } from './PageMeta';
62
62
  export { SlotProps } from './Slot';
@@ -0,0 +1,63 @@
1
+ import { Fragment } from 'react';
2
+ import reactifyWc from '../utils/reactify-wc'; // 视图容器
3
+
4
+ export var CoverImage = reactifyWc('taro-cover-image-core');
5
+ export var CoverView = reactifyWc('taro-cover-view-core');
6
+ export var MatchMedia = reactifyWc('taro-match-media-core');
7
+ export var MovableArea = reactifyWc('taro-movable-area-core');
8
+ export var MovableView = reactifyWc('taro-movable-view-core');
9
+ export var PageContainer = reactifyWc('taro-page-container-core');
10
+ export var ScrollView = reactifyWc('taro-scroll-view-core');
11
+ export var ShareElement = reactifyWc('taro-share-element-core');
12
+ export var Swiper = reactifyWc('taro-swiper-core');
13
+ export var SwiperItem = reactifyWc('taro-swiper-item-core');
14
+ export var View = reactifyWc('taro-view-core'); // 基础内容
15
+
16
+ export var Icon = reactifyWc('taro-icon-core');
17
+ export var Progress = reactifyWc('taro-progress-core');
18
+ export var RichText = reactifyWc('taro-rich-text-core');
19
+ export var Text = reactifyWc('taro-text-core'); // 表单组件
20
+
21
+ export var Button = reactifyWc('taro-button-core');
22
+ export var Checkbox = reactifyWc('taro-checkbox-core');
23
+ export var CheckboxGroup = reactifyWc('taro-checkbox-group-core');
24
+ export var Editor = reactifyWc('taro-editor-core');
25
+ export var Form = reactifyWc('taro-form-core');
26
+ export { default as Input } from './input';
27
+ export var KeyboardAccessory = reactifyWc('taro-keyboard-accessory-core');
28
+ export var Label = reactifyWc('taro-label-core');
29
+ export var Picker = reactifyWc('taro-picker-core');
30
+ export var PickerView = reactifyWc('taro-picker-view-core');
31
+ export var PickerViewColumn = reactifyWc('taro-picker-view-column-core');
32
+ export var Radio = reactifyWc('taro-radio-core');
33
+ export var RadioGroup = reactifyWc('taro-radio-group-core');
34
+ export var Slider = reactifyWc('taro-slider-core');
35
+ export var Switch = reactifyWc('taro-switch-core');
36
+ export var Textarea = reactifyWc('taro-textarea-core'); // 导航
37
+
38
+ export var FunctionalPageNavigator = reactifyWc('taro-functional-page-navigator-core');
39
+ export var Navigator = reactifyWc('taro-navigator-core'); // 媒体组件
40
+
41
+ export var Audio = reactifyWc('taro-audio-core');
42
+ export var Camera = reactifyWc('taro-camera-core');
43
+ export var Image = reactifyWc('taro-image-core');
44
+ export var LivePlayer = reactifyWc('taro-live-player-core');
45
+ export var Video = reactifyWc('taro-video-core');
46
+ export var VoipRoom = reactifyWc('taro-voip-room-core'); // 地图
47
+
48
+ export var Map = reactifyWc('taro-map-core'); // 画布
49
+
50
+ export var Canvas = reactifyWc('taro-canvas-core'); // 开放能力
51
+
52
+ export var WebView = reactifyWc('taro-web-view-core');
53
+ export var Ad = reactifyWc('taro-ad-core');
54
+ export var AdCustom = reactifyWc('taro-ad-custom-core');
55
+ export var OfficialAccount = reactifyWc('taro-official-account-core');
56
+ export var OpenData = reactifyWc('taro-open-data-core'); // 导航栏
57
+
58
+ export var NavigationBar = reactifyWc('taro-navigation-bar-core'); // 页面属性配置节点
59
+
60
+ export var PageMeta = reactifyWc('taro-page-meta-core'); // 其他
61
+
62
+ export var Block = Fragment;
63
+ export var CustomWrapper = reactifyWc('taro-custom-wrapper-core');
@@ -1,46 +1 @@
1
- import { Fragment } from 'react';
2
- import reactifyWc from './utils/reactify-wc';
3
- import ReactInput from './components/input';
4
- export var View = reactifyWc('taro-view-core');
5
- export var Icon = reactifyWc('taro-icon-core');
6
- export var Progress = reactifyWc('taro-progress-core');
7
- export var RichText = reactifyWc('taro-rich-text-core');
8
- export var Text = reactifyWc('taro-text-core');
9
- export var Button = reactifyWc('taro-button-core');
10
- export var Checkbox = reactifyWc('taro-checkbox-core');
11
- export var CheckboxGroup = reactifyWc('taro-checkbox-group-core');
12
- export var Editor = reactifyWc('taro-editor-core');
13
- export var Form = reactifyWc('taro-form-core');
14
- export var Input = ReactInput;
15
- export var Label = reactifyWc('taro-label-core');
16
- export var Picker = reactifyWc('taro-picker-core');
17
- export var PickerView = reactifyWc('taro-picker-view-core');
18
- export var PickerViewColumn = reactifyWc('taro-picker-view-column-core');
19
- export var Radio = reactifyWc('taro-radio-core');
20
- export var RadioGroup = reactifyWc('taro-radio-group-core');
21
- export var Slider = reactifyWc('taro-slider-core');
22
- export var Switch = reactifyWc('taro-switch-core');
23
- export var CoverImage = reactifyWc('taro-cover-image-core');
24
- export var Textarea = reactifyWc('taro-textarea-core');
25
- export var CoverView = reactifyWc('taro-cover-view-core');
26
- export var MovableArea = reactifyWc('taro-movable-area-core');
27
- export var MovableView = reactifyWc('taro-movable-view-core');
28
- export var ScrollView = reactifyWc('taro-scroll-view-core');
29
- export var Swiper = reactifyWc('taro-swiper-core');
30
- export var SwiperItem = reactifyWc('taro-swiper-item-core');
31
- export var FunctionalPageNavigator = reactifyWc('taro-functional-page-navigator-core');
32
- export var Navigator = reactifyWc('taro-navigator-core');
33
- export var Audio = reactifyWc('taro-audio-core');
34
- export var Camera = reactifyWc('taro-camera-core');
35
- export var Image = reactifyWc('taro-image-core');
36
- export var LivePlayer = reactifyWc('taro-live-player-core');
37
- export var Video = reactifyWc('taro-video-core');
38
- export var Map = reactifyWc('taro-map-core');
39
- export var Canvas = reactifyWc('taro-canvas-core');
40
- export var Ad = reactifyWc('taro-ad-core');
41
- export var OfficialAccount = reactifyWc('taro-official-account-core');
42
- export var OpenData = reactifyWc('taro-open-data-core');
43
- export var WebView = reactifyWc('taro-web-view-core');
44
- export var NavigationBar = reactifyWc('taro-navigation-bar-core');
45
- export var Block = Fragment;
46
- export var CustomWrapper = reactifyWc('taro-custom-wrapper-core');
1
+ export * from './components';