@tarojs/components 3.3.12 → 3.3.16

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 (267) hide show
  1. package/dist/cjs/{index-eefce54e.js → index-7464647f.js} +156 -101
  2. package/dist/cjs/{index-cf56824f.js → index-cde74e58.js} +1 -1
  3. package/dist/cjs/loader.cjs.js +3 -3
  4. package/dist/cjs/taro-audio-core.cjs.entry.js +2 -2
  5. package/dist/cjs/taro-block-core.cjs.entry.js +2 -2
  6. package/dist/cjs/taro-button-core.cjs.entry.js +3 -3
  7. package/dist/cjs/taro-camera-core.cjs.entry.js +2 -2
  8. package/dist/cjs/taro-canvas-core.cjs.entry.js +2 -2
  9. package/dist/cjs/taro-checkbox-core_2.cjs.entry.js +6 -5
  10. package/dist/cjs/taro-components.cjs.js +5 -5
  11. package/dist/cjs/taro-cover-image-core.cjs.entry.js +19 -5
  12. package/dist/cjs/taro-cover-view-core.cjs.entry.js +51 -5
  13. package/dist/cjs/taro-custom-wrapper-core.cjs.entry.js +2 -2
  14. package/dist/cjs/taro-form-core.cjs.entry.js +2 -2
  15. package/dist/cjs/taro-icon-core.cjs.entry.js +3 -3
  16. package/dist/cjs/taro-image-core.cjs.entry.js +3 -3
  17. package/dist/cjs/taro-input-core.cjs.entry.js +21 -13
  18. package/dist/cjs/taro-label-core.cjs.entry.js +2 -2
  19. package/dist/cjs/taro-movable-area-core.cjs.entry.js +2 -2
  20. package/dist/cjs/taro-movable-view-core.cjs.entry.js +2 -2
  21. package/dist/cjs/taro-navigator-core.cjs.entry.js +3 -3
  22. package/dist/cjs/taro-open-data-core.cjs.entry.js +2 -2
  23. package/dist/cjs/taro-picker-core_2.cjs.entry.js +4 -4
  24. package/dist/cjs/taro-picker-view-column-core.cjs.entry.js +2 -2
  25. package/dist/cjs/taro-picker-view-core.cjs.entry.js +2 -2
  26. package/dist/cjs/taro-progress-core.cjs.entry.js +2 -2
  27. package/dist/cjs/taro-pull-to-refresh.cjs.entry.js +3 -3
  28. package/dist/cjs/taro-radio-core_2.cjs.entry.js +3 -3
  29. package/dist/cjs/taro-rich-text-core.cjs.entry.js +2 -2
  30. package/dist/cjs/taro-scroll-view-core.cjs.entry.js +3 -3
  31. package/dist/cjs/taro-slider-core.cjs.entry.js +2 -2
  32. package/dist/cjs/taro-swiper-core_2.cjs.entry.js +112 -106
  33. package/dist/cjs/taro-switch-core.cjs.entry.js +2 -2
  34. package/dist/cjs/taro-tabbar.cjs.entry.js +71 -23
  35. package/dist/cjs/taro-text-core.cjs.entry.js +3 -3
  36. package/dist/cjs/taro-textarea-core.cjs.entry.js +65 -5
  37. package/dist/cjs/taro-video-control_3.cjs.entry.js +5 -5
  38. package/dist/cjs/taro-view-core.cjs.entry.js +11 -3
  39. package/dist/cjs/taro-web-view-core.cjs.entry.js +2 -2
  40. package/dist/collection/collection-manifest.json +3 -3
  41. package/dist/collection/components/checkbox/checkbox.js +21 -2
  42. package/dist/collection/components/cover-image/cover-image.js +94 -0
  43. package/dist/collection/components/cover-image/style/index.css +5 -0
  44. package/dist/collection/components/cover-view/cover-view.js +166 -4
  45. package/dist/collection/components/cover-view/style/cover-view.css +3 -0
  46. package/dist/collection/components/input/input.js +19 -11
  47. package/dist/collection/components/swiper/swiper.js +7 -1
  48. package/dist/collection/components/tabbar/tabbar.js +72 -20
  49. package/dist/collection/components/textarea/style/index.css +6 -2
  50. package/dist/collection/components/textarea/textarea.js +98 -3
  51. package/dist/collection/components/view/view.js +9 -1
  52. package/dist/esm/{index-310de3d5.js → index-165a6222.js} +156 -101
  53. package/dist/esm/{index-ff1b322a.js → index-85e10859.js} +1 -1
  54. package/dist/esm/loader.js +3 -3
  55. package/dist/esm/taro-audio-core.entry.js +2 -2
  56. package/dist/esm/taro-block-core.entry.js +2 -2
  57. package/dist/esm/taro-button-core.entry.js +3 -3
  58. package/dist/esm/taro-camera-core.entry.js +2 -2
  59. package/dist/esm/taro-canvas-core.entry.js +2 -2
  60. package/dist/esm/taro-checkbox-core_2.entry.js +6 -5
  61. package/dist/esm/taro-components.js +5 -5
  62. package/dist/esm/taro-cover-image-core.entry.js +19 -5
  63. package/dist/esm/taro-cover-view-core.entry.js +51 -5
  64. package/dist/esm/taro-custom-wrapper-core.entry.js +2 -2
  65. package/dist/esm/taro-form-core.entry.js +2 -2
  66. package/dist/esm/taro-icon-core.entry.js +3 -3
  67. package/dist/esm/taro-image-core.entry.js +3 -3
  68. package/dist/esm/taro-input-core.entry.js +21 -13
  69. package/dist/esm/taro-label-core.entry.js +2 -2
  70. package/dist/esm/taro-movable-area-core.entry.js +2 -2
  71. package/dist/esm/taro-movable-view-core.entry.js +2 -2
  72. package/dist/esm/taro-navigator-core.entry.js +3 -3
  73. package/dist/esm/taro-open-data-core.entry.js +2 -2
  74. package/dist/esm/taro-picker-core_2.entry.js +4 -4
  75. package/dist/esm/taro-picker-view-column-core.entry.js +2 -2
  76. package/dist/esm/taro-picker-view-core.entry.js +2 -2
  77. package/dist/esm/taro-progress-core.entry.js +2 -2
  78. package/dist/esm/taro-pull-to-refresh.entry.js +3 -3
  79. package/dist/esm/taro-radio-core_2.entry.js +3 -3
  80. package/dist/esm/taro-rich-text-core.entry.js +2 -2
  81. package/dist/esm/taro-scroll-view-core.entry.js +3 -3
  82. package/dist/esm/taro-slider-core.entry.js +2 -2
  83. package/dist/esm/taro-swiper-core_2.entry.js +112 -106
  84. package/dist/esm/taro-switch-core.entry.js +2 -2
  85. package/dist/esm/taro-tabbar.entry.js +71 -23
  86. package/dist/esm/taro-text-core.entry.js +3 -3
  87. package/dist/esm/taro-textarea-core.entry.js +65 -5
  88. package/dist/esm/taro-video-control_3.entry.js +5 -5
  89. package/dist/esm/taro-view-core.entry.js +11 -3
  90. package/dist/esm/taro-web-view-core.entry.js +2 -2
  91. package/dist/esm-es5/index-165a6222.js +1 -0
  92. package/dist/esm-es5/{index-ff1b322a.js → index-85e10859.js} +0 -0
  93. package/dist/esm-es5/loader.js +1 -1
  94. package/dist/esm-es5/taro-audio-core.entry.js +1 -1
  95. package/dist/esm-es5/taro-block-core.entry.js +1 -1
  96. package/dist/esm-es5/taro-button-core.entry.js +1 -1
  97. package/dist/esm-es5/taro-camera-core.entry.js +1 -1
  98. package/dist/esm-es5/taro-canvas-core.entry.js +1 -1
  99. package/dist/esm-es5/taro-checkbox-core_2.entry.js +1 -1
  100. package/dist/esm-es5/taro-components.js +1 -1
  101. package/dist/esm-es5/taro-cover-image-core.entry.js +1 -1
  102. package/dist/esm-es5/taro-cover-view-core.entry.js +1 -1
  103. package/dist/esm-es5/taro-custom-wrapper-core.entry.js +1 -1
  104. package/dist/esm-es5/taro-form-core.entry.js +1 -1
  105. package/dist/esm-es5/taro-icon-core.entry.js +1 -1
  106. package/dist/esm-es5/taro-image-core.entry.js +1 -1
  107. package/dist/esm-es5/taro-input-core.entry.js +1 -1
  108. package/dist/esm-es5/taro-label-core.entry.js +1 -1
  109. package/dist/esm-es5/taro-movable-area-core.entry.js +1 -1
  110. package/dist/esm-es5/taro-movable-view-core.entry.js +1 -1
  111. package/dist/esm-es5/taro-navigator-core.entry.js +1 -1
  112. package/dist/esm-es5/taro-open-data-core.entry.js +1 -1
  113. package/dist/esm-es5/taro-picker-core_2.entry.js +1 -1
  114. package/dist/esm-es5/taro-picker-view-column-core.entry.js +1 -1
  115. package/dist/esm-es5/taro-picker-view-core.entry.js +1 -1
  116. package/dist/esm-es5/taro-progress-core.entry.js +1 -1
  117. package/dist/esm-es5/taro-pull-to-refresh.entry.js +1 -1
  118. package/dist/esm-es5/taro-radio-core_2.entry.js +1 -1
  119. package/dist/esm-es5/taro-rich-text-core.entry.js +1 -1
  120. package/dist/esm-es5/taro-scroll-view-core.entry.js +1 -1
  121. package/dist/esm-es5/taro-slider-core.entry.js +1 -1
  122. package/dist/esm-es5/taro-swiper-core_2.entry.js +1 -1
  123. package/dist/esm-es5/taro-switch-core.entry.js +1 -1
  124. package/dist/esm-es5/taro-tabbar.entry.js +1 -1
  125. package/dist/esm-es5/taro-text-core.entry.js +1 -1
  126. package/dist/esm-es5/taro-textarea-core.entry.js +1 -1
  127. package/dist/esm-es5/taro-video-control_3.entry.js +1 -1
  128. package/dist/esm-es5/taro-view-core.entry.js +1 -1
  129. package/dist/esm-es5/taro-web-view-core.entry.js +1 -1
  130. package/dist/taro-components/{p-8eb84de2.system.entry.js → p-00328ebf.system.entry.js} +1 -1
  131. package/dist/taro-components/p-016f56cc.system.entry.js +1 -0
  132. package/dist/taro-components/{p-15121391.system.entry.js → p-098f4931.system.entry.js} +1 -1
  133. package/dist/taro-components/p-0da88b1b.entry.js +1 -0
  134. package/dist/taro-components/p-0fb7f599.entry.js +1 -0
  135. package/dist/taro-components/p-1507bcbf.entry.js +1 -0
  136. package/dist/taro-components/p-17c0731f.entry.js +1 -0
  137. package/dist/taro-components/{p-9a4123eb.system.entry.js → p-1ed219a6.system.entry.js} +1 -1
  138. package/dist/taro-components/p-26c08f44.entry.js +1 -0
  139. package/dist/taro-components/{p-502841e0.system.entry.js → p-26d8c60a.system.entry.js} +1 -1
  140. package/dist/taro-components/{p-970ed6da.system.entry.js → p-2b6a2449.system.entry.js} +1 -1
  141. package/dist/taro-components/{p-239bf0ca.system.entry.js → p-2ce9bc65.system.entry.js} +1 -1
  142. package/dist/taro-components/{p-1f2dfaef.system.entry.js → p-2de1a146.system.entry.js} +1 -1
  143. package/dist/taro-components/{p-a079321f.system.entry.js → p-2eda9121.system.entry.js} +1 -1
  144. package/dist/taro-components/p-30bfacb9.system.js +1 -0
  145. package/dist/taro-components/{p-921a765a.system.entry.js → p-321aeeec.system.entry.js} +1 -1
  146. package/dist/taro-components/p-33bcdee9.entry.js +1 -0
  147. package/dist/taro-components/p-3554df41.entry.js +1 -0
  148. package/dist/taro-components/p-37cfef64.entry.js +1 -0
  149. package/dist/taro-components/p-39bee235.entry.js +1 -0
  150. package/dist/taro-components/p-3e2d4793.entry.js +1 -0
  151. package/dist/taro-components/{p-e15654c4.system.entry.js → p-4168e24d.system.entry.js} +1 -1
  152. package/dist/taro-components/{p-236774f0.system.entry.js → p-4462dca4.system.entry.js} +1 -1
  153. package/dist/taro-components/{p-30c0639e.js → p-49ae5efb.js} +1 -1
  154. package/dist/taro-components/p-4a2ffc1c.entry.js +1 -0
  155. package/dist/taro-components/p-4ff67760.entry.js +1 -0
  156. package/dist/taro-components/p-5412a1d2.system.entry.js +1 -0
  157. package/dist/taro-components/{p-9242dcf7.system.entry.js → p-5a13bd63.system.entry.js} +1 -1
  158. package/dist/taro-components/{p-aed3d0e9.system.entry.js → p-5c8ba192.system.entry.js} +1 -1
  159. package/dist/taro-components/p-5d84eaf0.entry.js +1 -0
  160. package/dist/taro-components/{p-318795b9.system.entry.js → p-5e6feca6.system.entry.js} +1 -1
  161. package/dist/taro-components/{p-625158f0.js → p-6967e577.js} +0 -0
  162. package/dist/taro-components/{p-bd00f506.system.js → p-696f0d1c.system.js} +0 -0
  163. package/dist/taro-components/{p-d402dc94.system.entry.js → p-69be8189.system.entry.js} +1 -1
  164. package/dist/taro-components/p-6daacf48.entry.js +1 -0
  165. package/dist/taro-components/p-72f2b6f5.entry.js +1 -0
  166. package/dist/taro-components/p-76c00960.entry.js +1 -0
  167. package/dist/taro-components/p-79b3c05a.entry.js +1 -0
  168. package/dist/taro-components/p-7a5be745.entry.js +1 -0
  169. package/dist/taro-components/p-7b021c48.entry.js +1 -0
  170. package/dist/taro-components/p-7f3e5f09.entry.js +1 -0
  171. package/dist/taro-components/{p-c1d6c0ba.system.entry.js → p-7ffcfb05.system.entry.js} +1 -1
  172. package/dist/taro-components/p-81588c19.entry.js +1 -0
  173. package/dist/taro-components/p-8235b7b7.system.entry.js +1 -0
  174. package/dist/taro-components/{p-89fc30f0.entry.js → p-8cf16235.entry.js} +1 -1
  175. package/dist/taro-components/{p-4f139925.system.entry.js → p-8d905ff5.system.entry.js} +1 -1
  176. package/dist/taro-components/p-923c6e08.entry.js +1 -0
  177. package/dist/taro-components/p-93748645.system.js +1 -0
  178. package/dist/taro-components/p-9767491b.entry.js +1 -0
  179. package/dist/taro-components/p-9bd65170.system.entry.js +1 -0
  180. package/dist/taro-components/{p-3eb31172.system.entry.js → p-9d6a7a70.system.entry.js} +1 -1
  181. package/dist/taro-components/{p-e3e40b03.system.entry.js → p-9e807bd6.system.entry.js} +1 -1
  182. package/dist/taro-components/p-9e912454.system.entry.js +1 -0
  183. package/dist/taro-components/p-a03009b5.entry.js +1 -0
  184. package/dist/taro-components/{p-9c9178cd.system.entry.js → p-a34988ff.system.entry.js} +1 -1
  185. package/dist/taro-components/p-a65e86b8.system.entry.js +1 -0
  186. package/dist/taro-components/p-a895db87.entry.js +1 -0
  187. package/dist/taro-components/{p-0f393c6d.system.entry.js → p-b685a487.system.entry.js} +1 -1
  188. package/dist/taro-components/{p-129341f2.system.entry.js → p-bd922592.system.entry.js} +1 -1
  189. package/dist/taro-components/p-ca67c759.entry.js +1 -0
  190. package/dist/taro-components/p-cb8099dd.entry.js +1 -0
  191. package/dist/taro-components/p-ce093936.entry.js +1 -0
  192. package/dist/taro-components/{p-4d11f3ad.system.entry.js → p-ce49e2f4.system.entry.js} +1 -1
  193. package/dist/taro-components/p-d12592f1.entry.js +1 -0
  194. package/dist/taro-components/{p-a74d5aa5.system.entry.js → p-d52009d1.system.entry.js} +1 -1
  195. package/dist/taro-components/{p-2e9e9ca7.system.entry.js → p-d52bf5f5.system.entry.js} +1 -1
  196. package/dist/taro-components/{p-81f5977d.system.entry.js → p-d6269b5e.system.entry.js} +1 -1
  197. package/dist/taro-components/p-d6a37b93.entry.js +1 -0
  198. package/dist/taro-components/p-d8363f59.system.entry.js +1 -0
  199. package/dist/taro-components/p-d9494012.system.entry.js +1 -0
  200. package/dist/taro-components/p-de3a4828.entry.js +1 -0
  201. package/dist/taro-components/p-f4158e42.entry.js +1 -0
  202. package/dist/taro-components/p-f6c7f07c.system.entry.js +1 -0
  203. package/dist/taro-components/p-f7b6c1a6.entry.js +1 -0
  204. package/dist/taro-components/p-f991bc7b.entry.js +1 -0
  205. package/dist/taro-components/taro-components.esm.js +1 -1
  206. package/dist/taro-components/taro-components.js +1 -1
  207. package/dist/types/components/checkbox/checkbox.d.ts +1 -0
  208. package/dist/types/components/cover-image/cover-image.d.ts +11 -0
  209. package/dist/types/components/cover-view/cover-view.d.ts +14 -2
  210. package/dist/types/components/tabbar/tabbar.d.ts +20 -1
  211. package/dist/types/components/textarea/textarea.d.ts +6 -0
  212. package/dist/types/components/view/view.d.ts +2 -0
  213. package/dist/types/components.d.ts +20 -0
  214. package/dist/types/stencil-public-runtime.d.ts +190 -182
  215. package/dist-h5/vue/createComponent.js +4 -0
  216. package/dist-h5/vue/createFormsComponent.js +8 -1
  217. package/dist-h5/vue/simpleComponents.js +1 -1
  218. package/loader/index.d.ts +0 -1
  219. package/package.json +5 -5
  220. package/dist/collection/components/cover-view/cover-image.js +0 -11
  221. package/dist/esm-es5/index-310de3d5.js +0 -1
  222. package/dist/taro-components/p-180fd001.entry.js +0 -1
  223. package/dist/taro-components/p-28348261.entry.js +0 -1
  224. package/dist/taro-components/p-31b89eb3.entry.js +0 -1
  225. package/dist/taro-components/p-31f0f881.entry.js +0 -1
  226. package/dist/taro-components/p-4591dff5.entry.js +0 -1
  227. package/dist/taro-components/p-4afe24d7.entry.js +0 -1
  228. package/dist/taro-components/p-4b632069.entry.js +0 -1
  229. package/dist/taro-components/p-4f1d45ff.entry.js +0 -1
  230. package/dist/taro-components/p-5032d822.entry.js +0 -1
  231. package/dist/taro-components/p-593ee811.entry.js +0 -1
  232. package/dist/taro-components/p-6287057a.entry.js +0 -1
  233. package/dist/taro-components/p-66120099.entry.js +0 -1
  234. package/dist/taro-components/p-6730fa44.entry.js +0 -1
  235. package/dist/taro-components/p-6f331ed3.entry.js +0 -1
  236. package/dist/taro-components/p-73c389e7.system.entry.js +0 -1
  237. package/dist/taro-components/p-7911ccd6.system.entry.js +0 -1
  238. package/dist/taro-components/p-8031d6b5.system.entry.js +0 -1
  239. package/dist/taro-components/p-80f50da7.entry.js +0 -1
  240. package/dist/taro-components/p-82185d54.system.entry.js +0 -1
  241. package/dist/taro-components/p-8676c058.entry.js +0 -1
  242. package/dist/taro-components/p-8c43da73.system.entry.js +0 -1
  243. package/dist/taro-components/p-8f7b75f6.system.entry.js +0 -1
  244. package/dist/taro-components/p-906c3a0a.entry.js +0 -1
  245. package/dist/taro-components/p-9205470e.entry.js +0 -1
  246. package/dist/taro-components/p-945fa1a0.entry.js +0 -1
  247. package/dist/taro-components/p-95f5261c.entry.js +0 -1
  248. package/dist/taro-components/p-96771939.entry.js +0 -1
  249. package/dist/taro-components/p-96f1e9e7.entry.js +0 -1
  250. package/dist/taro-components/p-9c47f99e.entry.js +0 -1
  251. package/dist/taro-components/p-9fe2309f.entry.js +0 -1
  252. package/dist/taro-components/p-9ffb69e5.system.entry.js +0 -1
  253. package/dist/taro-components/p-a208926a.entry.js +0 -1
  254. package/dist/taro-components/p-a3e783c3.entry.js +0 -1
  255. package/dist/taro-components/p-af393b0b.entry.js +0 -1
  256. package/dist/taro-components/p-b2ed71a7.entry.js +0 -1
  257. package/dist/taro-components/p-b5d2597b.system.js +0 -1
  258. package/dist/taro-components/p-b7c29d05.entry.js +0 -1
  259. package/dist/taro-components/p-c2810ece.entry.js +0 -1
  260. package/dist/taro-components/p-c37d9a5d.system.entry.js +0 -1
  261. package/dist/taro-components/p-c9380fa6.entry.js +0 -1
  262. package/dist/taro-components/p-ca74a018.entry.js +0 -1
  263. package/dist/taro-components/p-cf496b3b.system.js +0 -1
  264. package/dist/taro-components/p-e256974b.system.entry.js +0 -1
  265. package/dist/taro-components/p-e28625a2.entry.js +0 -1
  266. package/dist/taro-components/p-e302b8d7.entry.js +0 -1
  267. package/dist/types/components/cover-view/cover-image.d.ts +0 -4
@@ -1 +1 @@
1
- System.register(["./p-cf496b3b.system.js","./p-bd00f506.system.js"],(function(l){"use strict";var o,r,t,e,s,i;return{setters:[function(l){o=l.r;r=l.c;t=l.h;e=l.H;s=l.g},function(l){i=l.c}],execute:function(){var c="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}";function n(l,o,r){if(l===o||typeof l!=="number"){return}var t=o-l;var e=500;var s=Date.now();var i=o>=l;function c(l,o,r,t){return r*l/t+o}function n(){l=c(Date.now()-s,l,t,e);if(i&&l>=o||!i&&o>=l){r(o);return}r(l);requestAnimationFrame(n)}n()}function f(l,o){var r;return function(){var t=[];for(var e=0;e<arguments.length;e++){t[e]=arguments[e]}clearTimeout(r);r=setTimeout((function(){l.apply(void 0,t)}),o)}}var h=l("taro_scroll_view_core",function(){function l(l){var t=this;o(this,l);this.onScroll=r(this,"scroll",7);this.onScrollToUpper=r(this,"scrolltoupper",7);this.onScrollToLower=r(this,"scrolltolower",7);this.scrollX=false;this.scrollY=false;this.upperThreshold=50;this.lowerThreshold=50;this.scrollWithAnimation=false;this.handleScroll=function(l){if(l instanceof CustomEvent)return;var o=t.el,r=o.scrollLeft,e=o.scrollTop,s=o.scrollHeight,i=o.scrollWidth;t._scrollLeft=r;t._scrollTop=e;t.uperAndLower();t.onScroll.emit({scrollLeft:r,scrollTop:e,scrollHeight:s,scrollWidth:i})};this.uperAndLower=f((function(){var l=t.el,o=l.offsetWidth,r=l.offsetHeight,e=l.scrollLeft,s=l.scrollTop,i=l.scrollHeight,c=l.scrollWidth;var n=Number(t.lowerThreshold);var f=Number(t.upperThreshold);if(!isNaN(n)&&(t.scrollY&&r+s+n>=i||t.scrollX&&o+e+n>=c)){t.onScrollToLower.emit({direction:t.scrollX?"right":t.scrollY?"bottom":""})}if(!isNaN(f)&&(t.scrollY&&s<=f||t.scrollX&&e<=f)){t.onScrollToUpper.emit({direction:t.scrollX?"left":t.scrollY?"top":""})}}),200)}l.prototype.watchScrollLeft=function(l){var o=this;var r=Number(l);if(this.scrollX&&!isNaN(r)&&r!==this._scrollLeft){if(this.scrollWithAnimation){n(this._scrollLeft,r,(function(l){return o.el.scrollLeft=l}))}else{this.el.scrollLeft=r}this._scrollLeft=r}};l.prototype.watchScrollTop=function(l){var o=this;var r=Number(l);if(this.scrollY&&!isNaN(r)&&r!==this._scrollTop){if(this.scrollWithAnimation){n(this._scrollTop,r,(function(l){return o.el.scrollTop=l}))}else{this.el.scrollTop=r}this._scrollTop=r}};l.prototype.watchScrollIntoView=function(l){var o;if(typeof l==="string"&&l){(o=document.querySelector("#"+l))===null||o===void 0?void 0:o.scrollIntoView({behavior:"smooth",block:"center",inline:"start"})}};l.prototype.componentDidLoad=function(){var l=this;var o=this,r=o.scrollY,t=o.scrollX,e=o.scrollWithAnimation;var s=Number(this.mpScrollTop);var i=Number(this.mpScrollLeft);if(r&&!isNaN(s)){if(e){n(0,s,(function(o){return l.el.scrollTop=o}))}else{this.el.scrollTop=s}this._scrollTop=s}if(t&&!isNaN(i)){if(e){n(0,i,(function(o){return l.el.scrollLeft=o}))}else{this.el.scrollLeft=i}this._scrollLeft=i}};l.prototype.render=function(){var l=this,o=l.scrollX,r=l.scrollY;var s=i({"taro-scroll-view__scroll-x":o,"taro-scroll-view__scroll-y":r});return t(e,{class:s,onScroll:this.handleScroll},t("slot",null))};Object.defineProperty(l.prototype,"el",{get:function(){return s(this)},enumerable:false,configurable:true});Object.defineProperty(l,"watchers",{get:function(){return{mpScrollLeft:["watchScrollLeft"],mpScrollTop:["watchScrollTop"],mpScrollIntoView:["watchScrollIntoView"]}},enumerable:false,configurable:true});return l}());h.style=c}}}));
1
+ System.register(["./p-93748645.system.js","./p-696f0d1c.system.js"],(function(l){"use strict";var o,r,t,e,s,i;return{setters:[function(l){o=l.r;r=l.c;t=l.h;e=l.H;s=l.g},function(l){i=l.c}],execute:function(){var c="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}";function n(l,o,r){if(l===o||typeof l!=="number"){return}var t=o-l;var e=500;var s=Date.now();var i=o>=l;function c(l,o,r,t){return r*l/t+o}function n(){l=c(Date.now()-s,l,t,e);if(i&&l>=o||!i&&o>=l){r(o);return}r(l);requestAnimationFrame(n)}n()}function f(l,o){var r;return function(){var t=[];for(var e=0;e<arguments.length;e++){t[e]=arguments[e]}clearTimeout(r);r=setTimeout((function(){l.apply(void 0,t)}),o)}}var h=l("taro_scroll_view_core",function(){function l(l){var t=this;o(this,l);this.onScroll=r(this,"scroll",7);this.onScrollToUpper=r(this,"scrolltoupper",7);this.onScrollToLower=r(this,"scrolltolower",7);this.scrollX=false;this.scrollY=false;this.upperThreshold=50;this.lowerThreshold=50;this.scrollWithAnimation=false;this.handleScroll=function(l){if(l instanceof CustomEvent)return;var o=t.el,r=o.scrollLeft,e=o.scrollTop,s=o.scrollHeight,i=o.scrollWidth;t._scrollLeft=r;t._scrollTop=e;t.uperAndLower();t.onScroll.emit({scrollLeft:r,scrollTop:e,scrollHeight:s,scrollWidth:i})};this.uperAndLower=f((function(){var l=t.el,o=l.offsetWidth,r=l.offsetHeight,e=l.scrollLeft,s=l.scrollTop,i=l.scrollHeight,c=l.scrollWidth;var n=Number(t.lowerThreshold);var f=Number(t.upperThreshold);if(!isNaN(n)&&(t.scrollY&&r+s+n>=i||t.scrollX&&o+e+n>=c)){t.onScrollToLower.emit({direction:t.scrollX?"right":t.scrollY?"bottom":""})}if(!isNaN(f)&&(t.scrollY&&s<=f||t.scrollX&&e<=f)){t.onScrollToUpper.emit({direction:t.scrollX?"left":t.scrollY?"top":""})}}),200)}l.prototype.watchScrollLeft=function(l){var o=this;var r=Number(l);if(this.scrollX&&!isNaN(r)&&r!==this._scrollLeft){if(this.scrollWithAnimation){n(this._scrollLeft,r,(function(l){return o.el.scrollLeft=l}))}else{this.el.scrollLeft=r}this._scrollLeft=r}};l.prototype.watchScrollTop=function(l){var o=this;var r=Number(l);if(this.scrollY&&!isNaN(r)&&r!==this._scrollTop){if(this.scrollWithAnimation){n(this._scrollTop,r,(function(l){return o.el.scrollTop=l}))}else{this.el.scrollTop=r}this._scrollTop=r}};l.prototype.watchScrollIntoView=function(l){var o;if(typeof l==="string"&&l){(o=document.querySelector("#"+l))===null||o===void 0?void 0:o.scrollIntoView({behavior:"smooth",block:"center",inline:"start"})}};l.prototype.componentDidLoad=function(){var l=this;var o=this,r=o.scrollY,t=o.scrollX,e=o.scrollWithAnimation;var s=Number(this.mpScrollTop);var i=Number(this.mpScrollLeft);if(r&&!isNaN(s)){if(e){n(0,s,(function(o){return l.el.scrollTop=o}))}else{this.el.scrollTop=s}this._scrollTop=s}if(t&&!isNaN(i)){if(e){n(0,i,(function(o){return l.el.scrollLeft=o}))}else{this.el.scrollLeft=i}this._scrollLeft=i}};l.prototype.render=function(){var l=this,o=l.scrollX,r=l.scrollY;var s=i({"taro-scroll-view__scroll-x":o,"taro-scroll-view__scroll-y":r});return t(e,{class:s,onScroll:this.handleScroll},t("slot",null))};Object.defineProperty(l.prototype,"el",{get:function(){return s(this)},enumerable:false,configurable:true});Object.defineProperty(l,"watchers",{get:function(){return{mpScrollLeft:["watchScrollLeft"],mpScrollTop:["watchScrollTop"],mpScrollIntoView:["watchScrollIntoView"]}},enumerable:false,configurable:true});return l}());h.style=c}}}));
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as o,H as i,g as l}from"./p-49ae5efb.js";import{c as r}from"./p-6967e577.js";function e(t,s,o){if(t===s||"number"!=typeof t)return;const i=s-t,l=Date.now(),r=s>=t;!function e(){var c;c=Date.now()-l,t=i*c/500+t,r&&t>=s||!r&&s>=t?o(s):(o(t),requestAnimationFrame(e))}()}let c=class{constructor(o){t(this,o),this.onScroll=s(this,"scroll",7),this.onScrollToUpper=s(this,"scrolltoupper",7),this.onScrollToLower=s(this,"scrolltolower",7),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.uperAndLower(),this.onScroll.emit({scrollLeft:s,scrollTop:o,scrollHeight:i,scrollWidth:l})},this.uperAndLower=function(t){let s;return function(...o){clearTimeout(s),s=setTimeout((function(){t(...o)}),200)}}((()=>{const{offsetWidth:t,offsetHeight:s,scrollLeft:o,scrollTop:i,scrollHeight:l,scrollWidth:r}=this.el,e=Number(this.lowerThreshold),c=Number(this.upperThreshold);!isNaN(e)&&(this.scrollY&&s+i+e>=l||this.scrollX&&t+o+e>=r)&&this.onScrollToLower.emit({direction:this.scrollX?"right":this.scrollY?"bottom":""}),!isNaN(c)&&(this.scrollY&&i<=c||this.scrollX&&o<=c)&&this.onScrollToUpper.emit({direction:this.scrollX?"left":this.scrollY?"top":""})}))}watchScrollLeft(t){const s=Number(t);this.scrollX&&!isNaN(s)&&s!==this._scrollLeft&&(this.scrollWithAnimation?e(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?e(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?e(0,i,(t=>this.el.scrollTop=t)):this.el.scrollTop=i,this._scrollTop=i),s&&!isNaN(l)&&(o?e(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"]}}};c.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{c as taro_scroll_view_core}
@@ -0,0 +1 @@
1
+ var __extends=this&&this.__extends||function(){var e=function(r,n){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n))e[n]=r[n]};return e(r,n)};return function(r,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(r,n);function t(){this.constructor=r}r.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}}();var __awaiter=this&&this.__awaiter||function(e,r,n,t){function a(e){return e instanceof n?e:new n((function(r){r(e)}))}return new(n||(n=Promise))((function(n,i){function l(e){try{s(t.next(e))}catch(e){i(e)}}function o(e){try{s(t["throw"](e))}catch(e){i(e)}}function s(e){e.done?n(e.value):a(e.value).then(l,o)}s((t=t.apply(e,r||[])).next())}))};var __generator=this&&this.__generator||function(e,r){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},t,a,i,l;return l={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(l[Symbol.iterator]=function(){return this}),l;function o(e){return function(r){return s([e,r])}}function s(l){if(t)throw new TypeError("Generator is already executing.");while(n)try{if(t=1,a&&(i=l[0]&2?a["return"]:l[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,l[1])).done)return i;if(a=0,i)l=[l[0]&2,i.value];switch(l[0]){case 0:case 1:i=l;break;case 4:n.label++;return{value:l[1],done:false};case 5:n.label++;a=l[1];l=[0];continue;case 7:l=n.ops.pop();n.trys.pop();continue;default:if(!(i=n.trys,i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){n.label=l[1];break}if(l[0]===6&&n.label<i[1]){n.label=i[1];i=l;break}if(i&&n.label<i[2]){n.label=i[2];n.ops.push(l);break}if(i[2])n.ops.pop();n.trys.pop();continue}l=r.call(e,n)}catch(e){l=[6,e];a=0}finally{t=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,r){for(var n=0,t=r.length,a=e.length;n<t;n++,a++)e[a]=r[n];return e};System.register([],(function(e,r){"use strict";return{execute:function(){var n=this;var t="taro-components";var a;var i;var l=false;var o=false;var s=false;var f=false;var $=false;var u=typeof window!=="undefined"?window:{};var c=u.document||{head:{}};var v={$flags$:0,$resourcesUrl$:"",jmp:function(e){return e()},raf:function(e){return requestAnimationFrame(e)},ael:function(e,r,n,t){return e.addEventListener(r,n,t)},rel:function(e,r,n,t){return e.removeEventListener(r,n,t)},ce:function(e,r){return new CustomEvent(e,r)}};var d=e("p",(function(e){return Promise.resolve(e)}));var p=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replace==="function"}catch(e){}return false}();var h=function(e,r,n,t){if(n){n.map((function(n){var t=n[0],a=n[1],i=n[2];var l=g(e,t);var o=m(r,i);var s=y(t);v.ael(l,a,o,s);(r.$rmListeners$=r.$rmListeners$||[]).push((function(){return v.rel(l,a,o,s)}))}))}};var m=function(e,r){return function(n){try{{if(e.$flags$&256){e.$lazyInstance$[r](n)}else{(e.$queuedListeners$=e.$queuedListeners$||[]).push([r,n])}}}catch(e){Ee(e)}}};var g=function(e,r){if(r&4)return c;return e};var y=function(e){return(e&2)!==0};var b="{visibility:hidden}.hydrated{visibility:inherit}";var w="http://www.w3.org/1999/xlink";var N=function(e,r){if(r===void 0){r=""}{return function(){return}}};var _=function(e,r){{return function(){return}}};var R=new WeakMap;var k=function(e,r,n){var t=je.get(e);if(p&&n){t=t||new CSSStyleSheet;t.replace(r)}else{t=r}je.set(e,t)};var S=function(e,r,n,t){var a=T(r);var i=je.get(a);e=e.nodeType===11?e:c;if(i){if(typeof i==="string"){e=e.head||e;var l=R.get(e);var o=void 0;if(!l){R.set(e,l=new Set)}if(!l.has(a)){{{o=c.createElement("style");o.innerHTML=i}e.insertBefore(o,e.querySelector("link"))}if(l){l.add(a)}}}else if(!e.adoptedStyleSheets.includes(i)){e.adoptedStyleSheets=__spreadArray(__spreadArray([],e.adoptedStyleSheets),[i])}}return a};var x=function(e){var r=e.$cmpMeta$;var n=e.$hostElement$;var t=N("attachStyles",r.$tagName$);S(n.getRootNode(),r);t()};var T=function(e,r){return"sc-"+e.$tagName$};var C={};var E=function(e){e=typeof e;return e==="object"||e==="function"};var L=e("h",(function(e,r){var n=[];for(var t=2;t<arguments.length;t++){n[t-2]=arguments[t]}var a=null;var i=null;var l=null;var o=false;var s=false;var f=[];var $=function(r){for(var n=0;n<r.length;n++){a=r[n];if(Array.isArray(a)){$(a)}else if(a!=null&&typeof a!=="boolean"){if(o=typeof e!=="function"&&!E(a)){a=String(a)}if(o&&s){f[f.length-1].$text$+=a}else{f.push(o?P(null,a):a)}s=o}}};$(n);if(r){if(r.key){i=r.key}if(r.name){l=r.name}{var u=r.className||r.class;if(u){r.class=typeof u!=="object"?u:Object.keys(u).filter((function(e){return u[e]})).join(" ")}}}if(typeof e==="function"){return e(r===null?{}:r,f,M)}var c=P(e,null);c.$attrs$=r;if(f.length>0){c.$children$=f}{c.$key$=i}{c.$name$=l}return c}));var P=function(e,r){var n={$flags$:0,$tag$:e,$text$:r,$elm$:null,$children$:null};{n.$attrs$=null}{n.$key$=null}{n.$name$=null}return n};var j=e("H",{});var A=function(e){return e&&e.$tag$===j};var M={forEach:function(e,r){return e.map(I).forEach(r)},map:function(e,r){return e.map(I).map(r).map(O)}};var I=function(e){return{vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}};var O=function(e){if(typeof e.vtag==="function"){var r=Object.assign({},e.vattrs);if(e.vkey){r.key=e.vkey}if(e.vname){r.name=e.vname}return L.apply(void 0,__spreadArray([e.vtag,r],e.vchildren||[]))}var n=P(e.vtag,e.vtext);n.$attrs$=e.vattrs;n.$children$=e.vchildren;n.$key$=e.vkey;n.$name$=e.vname;return n};var B=function(e,r,n,t,a,i){if(n!==t){var l=Ce(e,r);var o=r.toLowerCase();if(r==="class"){var s=e.classList;var f=U(n);var $=U(t);s.remove.apply(s,f.filter((function(e){return e&&!$.includes(e)})));s.add.apply(s,$.filter((function(e){return e&&!f.includes(e)})))}else if(r==="style"){{for(var c in n){if(!t||t[c]==null){if(c.includes("-")){e.style.removeProperty(c)}else{e.style[c]=""}}}}for(var c in t){if(!n||t[c]!==n[c]){if(c.includes("-")){e.style.setProperty(c,t[c])}else{e.style[c]=t[c]}}}}else if(r==="key");else if(r==="ref"){if(t){t(e)}}else if(!l&&r[0]==="o"&&r[1]==="n"){if(r[2]==="-"){r=r.slice(3)}else if(Ce(u,o)){r=o.slice(2)}else{r=o[2]+r.slice(3)}if(n){v.rel(e,r,n,false)}if(t){v.ael(e,r,t,false)}}else{var d=E(t);if((l||d&&t!==null)&&!a){try{if(!e.tagName.includes("-")){var p=t==null?"":t;if(r==="list"){l=false}else if(n==null||e[r]!=p){e[r]=p}}else{e[r]=t}}catch(e){}}var h=false;{if(o!==(o=o.replace(/^xlink\:?/,""))){r=o;h=true}}if(t==null||t===false){if(t!==false||e.getAttribute(r)===""){if(h){e.removeAttributeNS(w,r)}else{e.removeAttribute(r)}}}else if((!l||i&4||a)&&!d){t=t===true?"":t;if(h){e.setAttributeNS(w,r,t)}else{e.setAttribute(r,t)}}}}};var z=/\s/;var U=function(e){return!e?[]:e.split(z)};var q=function(e,r,n,t){var a=r.$elm$.nodeType===11&&r.$elm$.host?r.$elm$.host:r.$elm$;var i=e&&e.$attrs$||C;var l=r.$attrs$||C;{for(t in i){if(!(t in l)){B(a,t,i[t],undefined,n,r.$flags$)}}}for(t in l){B(a,t,i[t],l[t],n,r.$flags$)}};var H=function(e,r,n,t){var o=r.$children$[n];var $=0;var u;var v;var d;if(!l){s=true;if(o.$tag$==="slot"){o.$flags$|=o.$children$?2:1}}if(o.$text$!==null){u=o.$elm$=c.createTextNode(o.$text$)}else if(o.$flags$&1){u=o.$elm$=c.createTextNode("")}else{u=o.$elm$=c.createElement(o.$flags$&2?"slot-fb":o.$tag$);{q(null,o,f)}if(o.$children$){for($=0;$<o.$children$.length;++$){v=H(e,o,$);if(v){u.appendChild(v)}}}}{u["s-hn"]=i;if(o.$flags$&(2|1)){u["s-sr"]=true;u["s-cr"]=a;u["s-sn"]=o.$name$||"";d=e&&e.$children$&&e.$children$[n];if(d&&d.$tag$===o.$tag$&&e.$elm$){V(e.$elm$,false)}}}return u};var V=function(e,r){v.$flags$|=1;var n=e.childNodes;for(var t=n.length-1;t>=0;t--){var a=n[t];if(a["s-hn"]!==i&&a["s-ol"]){K(a).insertBefore(a,J(a));a["s-ol"].remove();a["s-ol"]=undefined;s=true}if(r){V(a,r)}}v.$flags$&=~1};var W=function(e,r,n,t,a,i){var l=e["s-cr"]&&e["s-cr"].parentNode||e;var o;for(;a<=i;++a){if(t[a]){o=H(null,n,a);if(o){t[a].$elm$=o;l.insertBefore(o,J(r))}}}};var D=function(e,r,n,t,a){for(;r<=n;++r){if(t=e[r]){a=t.$elm$;re(t);{o=true;if(a["s-ol"]){a["s-ol"].remove()}else{V(a,true)}}a.remove()}}};var F=function(e,r,n,t){var a=0;var i=0;var l=0;var o=0;var s=r.length-1;var f=r[0];var $=r[s];var u=t.length-1;var c=t[0];var v=t[u];var d;var p;while(a<=s&&i<=u){if(f==null){f=r[++a]}else if($==null){$=r[--s]}else if(c==null){c=t[++i]}else if(v==null){v=t[--u]}else if(G(f,c)){Q(f,c);f=r[++a];c=t[++i]}else if(G($,v)){Q($,v);$=r[--s];v=t[--u]}else if(G(f,v)){if(f.$tag$==="slot"||v.$tag$==="slot"){V(f.$elm$.parentNode,false)}Q(f,v);e.insertBefore(f.$elm$,$.$elm$.nextSibling);f=r[++a];v=t[--u]}else if(G($,c)){if(f.$tag$==="slot"||v.$tag$==="slot"){V($.$elm$.parentNode,false)}Q($,c);e.insertBefore($.$elm$,f.$elm$);$=r[--s];c=t[++i]}else{l=-1;{for(o=a;o<=s;++o){if(r[o]&&r[o].$key$!==null&&r[o].$key$===c.$key$){l=o;break}}}if(l>=0){p=r[l];if(p.$tag$!==c.$tag$){d=H(r&&r[i],n,l)}else{Q(p,c);r[l]=undefined;d=p.$elm$}c=t[++i]}else{d=H(r&&r[i],n,i);c=t[++i]}if(d){{K(f.$elm$).insertBefore(d,J(f.$elm$))}}}}if(a>s){W(e,t[u+1]==null?null:t[u+1].$elm$,n,t,i,u)}else if(i>u){D(r,a,s)}};var G=function(e,r){if(e.$tag$===r.$tag$){if(e.$tag$==="slot"){return e.$name$===r.$name$}{return e.$key$===r.$key$}}return false};var J=function(e){return e&&e["s-ol"]||e};var K=function(e){return(e["s-ol"]?e["s-ol"]:e).parentNode};var Q=function(e,r){var n=r.$elm$=e.$elm$;var t=e.$children$;var a=r.$children$;var i=r.$tag$;var l=r.$text$;var o;if(l===null){{if(i==="slot");else{q(e,r,f)}}if(t!==null&&a!==null){F(n,t,r,a)}else if(a!==null){if(e.$text$!==null){n.textContent=""}W(n,null,r,a,0,a.length-1)}else if(t!==null){D(t,0,t.length-1)}}else if(o=n["s-cr"]){o.parentNode.textContent=l}else if(e.$text$!==l){n.data=l}};var X=function(e){var r=e.childNodes;var n;var t;var a;var i;var l;var o;for(t=0,a=r.length;t<a;t++){n=r[t];if(n.nodeType===1){if(n["s-sr"]){l=n["s-sn"];n.hidden=false;for(i=0;i<a;i++){o=r[i].nodeType;if(r[i]["s-hn"]!==n["s-hn"]||l!==""){if(o===1&&l===r[i].getAttribute("slot")){n.hidden=true;break}}else{if(o===1||o===3&&r[i].textContent.trim()!==""){n.hidden=true;break}}}}X(n)}}};var Y=[];var Z=function(e){var r;var n;var t;var a;var i;var l;var s=0;var f=e.childNodes;var $=f.length;for(;s<$;s++){r=f[s];if(r["s-sr"]&&(n=r["s-cr"])&&n.parentNode){t=n.parentNode.childNodes;a=r["s-sn"];for(l=t.length-1;l>=0;l--){n=t[l];if(!n["s-cn"]&&!n["s-nr"]&&n["s-hn"]!==r["s-hn"]){if(ee(n,a)){i=Y.find((function(e){return e.$nodeToRelocate$===n}));o=true;n["s-sn"]=n["s-sn"]||a;if(i){i.$slotRefNode$=r}else{Y.push({$slotRefNode$:r,$nodeToRelocate$:n})}if(n["s-sr"]){Y.map((function(e){if(ee(e.$nodeToRelocate$,n["s-sn"])){i=Y.find((function(e){return e.$nodeToRelocate$===n}));if(i&&!e.$slotRefNode$){e.$slotRefNode$=i.$slotRefNode$}}}))}}else if(!Y.some((function(e){return e.$nodeToRelocate$===n}))){Y.push({$nodeToRelocate$:n})}}}}if(r.nodeType===1){Z(r)}}};var ee=function(e,r){if(e.nodeType===1){if(e.getAttribute("slot")===null&&r===""){return true}if(e.getAttribute("slot")===r){return true}return false}if(e["s-sn"]===r){return true}return r===""};var re=function(e){{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null);e.$children$&&e.$children$.map(re)}};var ne=function(e,r){var n=e.$hostElement$;var t=e.$cmpMeta$;var f=e.$vnode$||P(null,null);var $=A(r)?r:L(null,null,r);i=n.tagName;$.$tag$=null;$.$flags$|=4;e.$vnode$=$;$.$elm$=f.$elm$=n;{a=n["s-cr"];l=(t.$flags$&1)!==0;o=false}Q(f,$);{v.$flags$|=1;if(s){Z($.$elm$);var u=void 0;var d=void 0;var p=void 0;var h=void 0;var m=void 0;var g=void 0;var y=0;for(;y<Y.length;y++){u=Y[y];d=u.$nodeToRelocate$;if(!d["s-ol"]){p=c.createTextNode("");p["s-nr"]=d;d.parentNode.insertBefore(d["s-ol"]=p,d)}}for(y=0;y<Y.length;y++){u=Y[y];d=u.$nodeToRelocate$;if(u.$slotRefNode$){h=u.$slotRefNode$.parentNode;m=u.$slotRefNode$.nextSibling;p=d["s-ol"];while(p=p.previousSibling){g=p["s-nr"];if(g&&g["s-sn"]===d["s-sn"]&&h===g.parentNode){g=g.nextSibling;if(!g||!g["s-nr"]){m=g;break}}}if(!m&&h!==d.parentNode||d.nextSibling!==m){if(d!==m){if(!d["s-hn"]&&d["s-ol"]){d["s-hn"]=d["s-ol"].parentNode.nodeName}h.insertBefore(d,m)}}}else{if(d.nodeType===1){d.hidden=true}}}}if(o){X($.$elm$)}v.$flags$&=~1;Y.length=0}};var te=e("g",(function(e){return Se(e).$hostElement$}));var ae=e("c",(function(e,r,n){var t=te(e);return{emit:function(e){return ie(t,r,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:e})}}}));var ie=function(e,r,n){var t=v.ce(r,n);e.dispatchEvent(t);return t};var le=function(e,r){if(r&&!e.$onRenderResolve$&&r["s-p"]){r["s-p"].push(new Promise((function(r){return e.$onRenderResolve$=r})))}};var oe=function(e,r){{e.$flags$|=16}if(e.$flags$&4){e.$flags$|=512;return}le(e,e.$ancestorComponent$);var n=function(){return se(e,r)};return Ue(n)};var se=function(e,r){var n=N("scheduleUpdate",e.$cmpMeta$.$tagName$);var t=e.$lazyInstance$;var a;if(r){{e.$flags$|=256;if(e.$queuedListeners$){e.$queuedListeners$.map((function(e){var r=e[0],n=e[1];return ve(t,r,n)}));e.$queuedListeners$=null}}{a=ve(t,"componentWillLoad")}}else{{a=ve(t,"componentWillUpdate")}}n();return de(a,(function(){return fe(e,t,r)}))};var fe=function(e,r,t){return __awaiter(n,void 0,void 0,(function(){var n,a,i,l,o,s;return __generator(this,(function(f){n=e.$hostElement$;a=N("update",e.$cmpMeta$.$tagName$);i=n["s-rc"];if(t){x(e)}l=N("render",e.$cmpMeta$.$tagName$);{$e(e,r)}if(i){i.map((function(e){return e()}));n["s-rc"]=undefined}l();a();{o=n["s-p"];s=function(){return ue(e)};if(o.length===0){s()}else{Promise.all(o).then(s);e.$flags$|=4;o.length=0}}return[2]}))}))};var $e=function(e,r,n){try{r=r.render();{e.$flags$&=~16}{e.$flags$|=2}{{{ne(e,r)}}}}catch(r){Ee(r,e.$hostElement$)}return null};var ue=function(e){var r=e.$cmpMeta$.$tagName$;var n=e.$hostElement$;var t=N("postUpdate",r);var a=e.$lazyInstance$;var i=e.$ancestorComponent$;{ve(a,"componentDidRender")}if(!(e.$flags$&64)){e.$flags$|=64;{pe(n)}{ve(a,"componentDidLoad")}t();{e.$onReadyResolve$(n);if(!i){ce()}}}else{{ve(a,"componentDidUpdate")}t()}{e.$onInstanceResolve$(n)}{if(e.$onRenderResolve$){e.$onRenderResolve$();e.$onRenderResolve$=undefined}if(e.$flags$&512){ze((function(){return oe(e,false)}))}e.$flags$&=~(4|512)}};var ce=function(e){{pe(c.documentElement)}ze((function(){return ie(u,"appload",{detail:{namespace:t}})}))};var ve=function(e,r,n){if(e&&e[r]){try{return e[r](n)}catch(e){Ee(e)}}return undefined};var de=function(e,r){return e&&e.then?e.then(r):r()};var pe=function(e){return e.classList.add("hydrated")};var he=function(e,r){if(e!=null&&!E(e)){if(r&4){return e==="false"?false:e===""||!!e}if(r&2){return parseFloat(e)}if(r&1){return String(e)}return e}return e};var me=function(e,r){return Se(e).$instanceValues$.get(r)};var ge=function(e,r,n,t){var a=Se(e);var i=a.$hostElement$;var l=a.$instanceValues$.get(r);var o=a.$flags$;var s=a.$lazyInstance$;n=he(n,t.$members$[r][0]);if((!(o&8)||l===undefined)&&n!==l){a.$instanceValues$.set(r,n);if(s){if(t.$watchers$&&o&128){var f=t.$watchers$[r];if(f){f.map((function(e){try{s[e](n,l,r)}catch(e){Ee(e,i)}}))}}if((o&(2|16))===2){oe(a,false)}}}};var ye=function(e,r,n){if(r.$members$){if(e.watchers){r.$watchers$=e.watchers}var t=Object.entries(r.$members$);var a=e.prototype;t.map((function(e){var t=e[0],i=e[1][0];if(i&31||n&2&&i&32){Object.defineProperty(a,t,{get:function(){return me(this,t)},set:function(e){ge(this,t,e,r)},configurable:true,enumerable:true})}else if(n&1&&i&64){Object.defineProperty(a,t,{value:function(){var e=[];for(var r=0;r<arguments.length;r++){e[r]=arguments[r]}var n=Se(this);return n.$onInstancePromise$.then((function(){var r;return(r=n.$lazyInstance$)[t].apply(r,e)}))}})}}));if(n&1){var i=new Map;a.attributeChangedCallback=function(e,r,n){var t=this;v.jmp((function(){var r=i.get(e);if(t.hasOwnProperty(r)){n=t[r];delete t[r]}t[r]=n===null&&typeof t[r]==="boolean"?false:n}))};e.observedAttributes=t.filter((function(e){var r=e[0],n=e[1];return n[0]&15})).map((function(e){var r=e[0],n=e[1];var t=n[1]||r;i.set(t,r);return t}))}}return e};var be=function(e,r,t,a,i){return __awaiter(n,void 0,void 0,(function(){var e,n,a,l,o,s,f;return __generator(this,(function($){switch($.label){case 0:if(!((r.$flags$&32)===0))return[3,3];r.$flags$|=32;i=Pe(t);if(!i.then)return[3,2];e=_();return[4,i];case 1:i=$.sent();e();$.label=2;case 2:if(!i.isProxied){{t.$watchers$=i.watchers}ye(i,t,2);i.isProxied=true}n=N("createInstance",t.$tagName$);{r.$flags$|=8}try{new i(r)}catch(e){Ee(e)}{r.$flags$&=~8}{r.$flags$|=128}n();if(i.style){a=i.style;l=T(t);if(!je.has(l)){o=N("registerStyles",t.$tagName$);k(l,a,!!(t.$flags$&1));o()}}$.label=3;case 3:s=r.$ancestorComponent$;f=function(){return oe(r,true)};if(s&&s["s-rc"]){s["s-rc"].push(f)}else{f()}return[2]}}))}))};var we=function(e){if((v.$flags$&1)===0){var r=Se(e);var n=r.$cmpMeta$;var t=N("connectedCallback",n.$tagName$);if(!(r.$flags$&1)){r.$flags$|=1;{if(n.$flags$&(4|8)){Ne(e)}}{var a=e;while(a=a.parentNode||a.host){if(a["s-p"]){le(r,r.$ancestorComponent$=a);break}}}if(n.$members$){Object.entries(n.$members$).map((function(r){var n=r[0],t=r[1][0];if(t&31&&e.hasOwnProperty(n)){var a=e[n];delete e[n];e[n]=a}}))}{be(e,r,n)}}else{h(e,r,n.$listeners$)}t()}};var Ne=function(e){var r=e["s-cr"]=c.createComment("");r["s-cn"]=true;e.insertBefore(r,e.firstChild)};var _e=function(e){if((v.$flags$&1)===0){var r=Se(e);var n=r.$lazyInstance$;{if(r.$rmListeners$){r.$rmListeners$.map((function(e){return e()}));r.$rmListeners$=undefined}}{ve(n,"disconnectedCallback")}}};var Re=e("b",(function(e,r){if(r===void 0){r={}}var n=N();var t=[];var a=r.exclude||[];var i=u.customElements;var l=c.head;var o=l.querySelector("meta[charset]");var s=c.createElement("style");var f=[];var $;var d=true;Object.assign(v,r);v.$resourcesUrl$=new URL(r.resourcesUrl||"./",c.baseURI).href;e.map((function(e){return e[1].map((function(r){var n={$flags$:r[0],$tagName$:r[1],$members$:r[2],$listeners$:r[3]};{n.$members$=r[2]}{n.$listeners$=r[3]}{n.$watchers$={}}var l=n.$tagName$;var o=function(e){__extends(r,e);function r(r){var t=e.call(this,r)||this;r=t;Te(r,n);return t}r.prototype.connectedCallback=function(){var e=this;if($){clearTimeout($);$=null}if(d){f.push(this)}else{v.jmp((function(){return we(e)}))}};r.prototype.disconnectedCallback=function(){var e=this;v.jmp((function(){return _e(e)}))};r.prototype.componentOnReady=function(){return Se(this).$onReadyPromise$};return r}(HTMLElement);n.$lazyBundleId$=e[0];if(!a.includes(l)&&!i.get(l)){t.push(l);i.define(l,ye(o,n,1))}}))}));{s.innerHTML=t+b;s.setAttribute("data-styles","");l.insertBefore(s,o?o.nextSibling:l.firstChild)}d=false;if(f.length){f.map((function(e){return e.connectedCallback()}))}else{{v.jmp((function(){return $=setTimeout(ce,30)}))}}n()}));var ke=new WeakMap;var Se=function(e){return ke.get(e)};var xe=e("r",(function(e,r){return ke.set(r.$lazyInstance$=e,r)}));var Te=function(e,r){var n={$flags$:0,$hostElement$:e,$cmpMeta$:r,$instanceValues$:new Map};{n.$onInstancePromise$=new Promise((function(e){return n.$onInstanceResolve$=e}))}{n.$onReadyPromise$=new Promise((function(e){return n.$onReadyResolve$=e}));e["s-p"]=[];e["s-rc"]=[]}h(e,n,r.$listeners$);return ke.set(e,n)};var Ce=function(e,r){return r in e};var Ee=function(e,r){return(0,console.error)(e,r)};var Le=new Map;var Pe=function(e,n,t){var a=e.$tagName$.replace(/-/g,"_");var i=e.$lazyBundleId$;var l=Le.get(i);if(l){return l[a]}return r.import("./"+i+".entry.js"+"").then((function(e){{Le.set(i,e)}return e[a]}),Ee)};var je=new Map;var Ae=[];var Me=[];var Ie=function(e,r){return function(n){e.push(n);if(!$){$=true;if(r&&v.$flags$&4){ze(Be)}else{v.raf(Be)}}}};var Oe=function(e){for(var r=0;r<e.length;r++){try{e[r](performance.now())}catch(e){Ee(e)}}e.length=0};var Be=function(){Oe(Ae);{Oe(Me);if($=Ae.length>0){v.raf(Be)}}};var ze=function(e){return d().then(e)};var Ue=Ie(Me,true)}}}));
@@ -0,0 +1 @@
1
+ import{r as e,h as o,H as r}from"./p-49ae5efb.js";let c=class{constructor(o){e(this,o)}componentDidLoad(){console.error("H5 暂不支持 PickerViewColumn 组件!")}render(){return o(r,null)}};export{c as taro_picker_view_column_core}
@@ -0,0 +1 @@
1
+ System.register(["./p-93748645.system.js","./p-696f0d1c.system.js"],(function(t){"use strict";var i,e,o,s,n;return{setters:[function(t){i=t.r;e=t.c;o=t.h;s=t.H},function(t){n=t.c}],execute:function(){var r="taro-cover-view-core{display:block}";var h=t("taro_cover_view_core",function(){function t(t){i(this,t);this.onLongPress=e(this,"longpress",7);this.hoverStartTime=50;this.hoverStayTime=400;this.hover=false;this.touch=false;this.startTime=0}t.prototype.onTouchStart=function(){var t=this;if(this.hoverClass){this.touch=true;setTimeout((function(){if(t.touch){t.hover=true}}),this.hoverStartTime)}this.timeoutEvent=setTimeout((function(){t.onLongPress.emit()}),350);this.startTime=Date.now()};t.prototype.onTouchMove=function(){clearTimeout(this.timeoutEvent)};t.prototype.onTouchEnd=function(){var t=this;var i=Date.now()-this.startTime;if(i<350){clearTimeout(this.timeoutEvent)}if(this.hoverClass){this.touch=false;setTimeout((function(){if(!t.touch){t.hover=false}}),this.hoverStayTime)}};t.prototype.render=function(){var t;var i=n((t={},t[""+this.hoverClass]=this.hover,t));var e={};if(!!this.animation){e["animation"]=this.animation;e["data-animation"]=this.animation}return o(s,Object.assign({class:i},e),o("slot",null))};return t}());h.style=r}}}));
@@ -1 +1 @@
1
- System.register(["./p-cf496b3b.system.js"],(function(t){"use strict";var n,o,e,i;return{setters:[function(t){n=t.r;o=t.c;e=t.h;i=t.g}],execute:function(){var r="taro-canvas-core{position:relative;display:block;width:300px;height:150px}";var c=500;var s=t("taro_canvas_core",function(){function t(t){var e=this;n(this,t);this.onLongTap=o(this,"longtap",7);this.nativeProps={};this.onTouchStart=function(){e.timer=setTimeout((function(){e.onLongTap.emit()}),c)};this.onTouchMove=function(){clearTimeout(e.timer)};this.onTouchEnd=function(){clearTimeout(e.timer)}}t.prototype.render=function(){var t=this,n=t.canvasId,o=t.nativeProps;return e("canvas",Object.assign({"canvas-id":n,style:{width:"100%",height:"100%"},onTouchStart:this.onTouchStart,onTouchMove:this.onTouchMove,onTouchEnd:this.onTouchEnd},o))};Object.defineProperty(t.prototype,"el",{get:function(){return i(this)},enumerable:false,configurable:true});return t}());s.style=r}}}));
1
+ System.register(["./p-93748645.system.js"],(function(t){"use strict";var n,o,e,i;return{setters:[function(t){n=t.r;o=t.c;e=t.h;i=t.g}],execute:function(){var r="taro-canvas-core{position:relative;display:block;width:300px;height:150px}";var s=500;var c=t("taro_canvas_core",function(){function t(t){var e=this;n(this,t);this.onLongTap=o(this,"longtap",7);this.nativeProps={};this.onTouchStart=function(){e.timer=setTimeout((function(){e.onLongTap.emit()}),s)};this.onTouchMove=function(){clearTimeout(e.timer)};this.onTouchEnd=function(){clearTimeout(e.timer)}}t.prototype.render=function(){var t=this,n=t.canvasId,o=t.nativeProps;return e("canvas",Object.assign({"canvas-id":n,style:{width:"100%",height:"100%"},onTouchStart:this.onTouchStart,onTouchMove:this.onTouchMove,onTouchEnd:this.onTouchEnd},o))};Object.defineProperty(t.prototype,"el",{get:function(){return i(this)},enumerable:false,configurable:true});return t}());c.style=r}}}));
@@ -1 +1 @@
1
- System.register(["./p-cf496b3b.system.js"],(function(r){"use strict";var t,o,e;return{setters:[function(r){t=r.r;o=r.c;e=r.h}],execute:function(){var n="iframe{border:none}.taro-webview{position:fixed;top:0;bottom:0;width:100%;height:100%;z-index:999}";var i=r("taro_web_view_core",function(){function r(r){t(this,r);this.onLoad=o(this,"load",7);this.onError=o(this,"error",7)}r.prototype.render=function(){var r=this,t=r.src,o=r.onLoad,n=r.onError;return e("iframe",{class:"taro-webview",onLoad:function(r){r.stopPropagation();o.emit({src:t})},onError:function(r){r.stopPropagation();n.emit({src:t})},src:t})};return r}());i.style=n}}}));
1
+ System.register(["./p-93748645.system.js"],(function(r){"use strict";var t,o,e;return{setters:[function(r){t=r.r;o=r.c;e=r.h}],execute:function(){var n="iframe{border:none}.taro-webview{position:fixed;top:0;bottom:0;width:100%;height:100%;z-index:999}";var i=r("taro_web_view_core",function(){function r(r){t(this,r);this.onLoad=o(this,"load",7);this.onError=o(this,"error",7)}r.prototype.render=function(){var r=this,t=r.src,o=r.onLoad,n=r.onError;return e("iframe",{class:"taro-webview",onLoad:function(r){r.stopPropagation();o.emit({src:t})},onError:function(r){r.stopPropagation();n.emit({src:t})},src:t})};return r}());i.style=n}}}));
@@ -0,0 +1 @@
1
+ System.register(["./p-93748645.system.js","./p-696f0d1c.system.js"],(function(t){"use strict";var e,o,i,s,n,r;return{setters:[function(t){e=t.r;o=t.c;i=t.h;s=t.H;n=t.g},function(t){r=t.c}],execute:function(){var h="body,html{-webkit-tap-highlight-color:rgba(0, 0, 0, 0);user-select:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}taro-view-core{display:block}";var a=t("taro_view_core",function(){function t(t){e(this,t);this.onLongPress=o(this,"longpress",7);this.hoverStartTime=50;this.hoverStayTime=400;this.hover=false;this.touch=false;this.startTime=0}t.prototype.onTouchStart=function(){var t=this;if(this.hoverClass){this.touch=true;setTimeout((function(){if(t.touch){t.hover=true}}),this.hoverStartTime)}this.timeoutEvent=setTimeout((function(){t.onLongPress.emit()}),350);this.startTime=Date.now()};t.prototype.onTouchMove=function(){clearTimeout(this.timeoutEvent)};t.prototype.onTouchEnd=function(){var t=this;var e=Date.now()-this.startTime;if(e<350){clearTimeout(this.timeoutEvent)}if(this.hoverClass){this.touch=false;setTimeout((function(){if(!t.touch){t.hover=false}}),this.hoverStayTime)}};t.prototype.componentDidRender=function(){var t=this.el;t.childNodes.forEach((function(e){if(e.nodeType===document.COMMENT_NODE)t.removeChild(e)}))};t.prototype.render=function(){var t;var e=r((t={},t[""+this.hoverClass]=this.hover,t));var o={};if(!!this.animation){o["animation"]=this.animation;o["data-animation"]=this.animation}return i(s,Object.assign({class:e},o),i("slot",null))};Object.defineProperty(t.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});return t}());a.style=h}}}));
@@ -0,0 +1 @@
1
+ import{h as t,r as a,c as r,H as e,g as s}from"./p-49ae5efb.js";import{c as o}from"./p-6967e577.js";function i(t){return"/"===t.charAt(0)}function h(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 b=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},n=({index:a,isSelected:r=!1,textColor:e,iconPath:s,badgeText:i,showRedDot:h=!1,text:b,onSelect:n})=>{const l=o("weui-tabbar__item",{"weui-bar__item_on":r});return t("a",{key:a,href:"javascript:;",class:l,onClick:function(){n(a)}},t("span",{style:{display:"inline-block",position:"relative"}},t("img",{src:s,alt:"",class:"weui-tabbar__icon"}),!!i&&t("span",{class:"weui-badge taro-tabbar-badge",style:{position:"absolute",top:"-2px",right:"-13px"}},i),h&&t("span",{class:"weui-badge weui-badge_dot",style:{position:"absolute",top:"0",right:"-6px"}})),t("p",{class:"weui-tabbar__label",style:{color:e}},b))},l=require("@tarojs/taro"),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])=>b(a).path===b(t).path));return a.length?a[0][0]:t},this.getSelectedIndex=t=>{let a=-1;return this.list.forEach((({pagePath:r},e)=>{b(t).path===b(r).path&&(a=e)})),a},this.switchTab=t=>{this.selectedIndex=t,l.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&&i(t),b=a&&i(a),n=o||b;if(t&&i(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];"."===_?h(s,c):".."===_?(h(s,c),d++):d&&(h(s,c),d--)}if(!n)for(;d--;d)s.unshift("..");!n||""===s[0]||s[0]&&i(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=>{let a,r;if(t&&(a=t.toLocation),a&&a.path){const t=d(a.path);r=c("/"===t?this.homePage:t,this.conf.basename||"/")}else r=this.getCurrentUrl();this.selectedIndex=this.getSelectedIndex(this.getOriginUrl(r))},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(const t in s)this.customRoutes.push([t,s[t]]);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"/"===r?this.homePage:r}bindEvent(){l.eventCenter.on("__taroRouterChange",this.routerChangeHandler),l.eventCenter.on("__taroSwitchTab",this.switchTabHandler),l.eventCenter.on("__taroSetTabBarBadge",this.setTabBarBadgeHandler),l.eventCenter.on("__taroRemoveTabBarBadge",this.removeTabBarBadgeHandler),l.eventCenter.on("__taroShowTabBarRedDotHandler",this.showTabBarRedDotHandler),l.eventCenter.on("__taroHideTabBarRedDotHandler",this.hideTabBarRedDotHandler),l.eventCenter.on("__taroShowTabBar",this.showTabBarHandler),l.eventCenter.on("__taroHideTabBar",this.hideTabBarHandler),l.eventCenter.on("__taroSetTabBarStyle",this.setTabBarStyleHandler),l.eventCenter.on("__taroSetTabBarItem",this.setTabBarItemHandler)}removeEvent(){l.eventCenter.off("__taroRouterChange",this.routerChangeHandler),l.eventCenter.off("__taroSwitchTab",this.switchTabHandler),l.eventCenter.off("__taroSetTabBarBadge",this.setTabBarBadgeHandler),l.eventCenter.off("__taroRemoveTabBarBadge",this.removeTabBarBadgeHandler),l.eventCenter.off("__taroShowTabBarRedDotHandler",this.showTabBarRedDotHandler),l.eventCenter.off("__taroHideTabBarRedDotHandler",this.hideTabBarRedDotHandler),l.eventCenter.off("__taroShowTabBar",this.showTabBarHandler),l.eventCenter.off("__taroHideTabBar",this.hideTabBarHandler),l.eventCenter.off("__taroSetTabBarStyle",this.setTabBarStyleHandler),l.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=o("weui-tabbar",{[`taro-tabbar__border-${this.borderStyle||"black"}`]:!0});return t(e,{class:o("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||""}},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(n,{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;height:100%;-ms-flex-direction:column;flex-direction:column;overflow:hidden}.taro-tabbar__panel{-ms-flex:1;flex:1;position:relative;overflow:auto;-webkit-overflow-scrolling:touch}.taro-tabbar__tabbar{position:relative;height:50px;width:100%;-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}.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}
@@ -1 +1 @@
1
- System.register(["./p-cf496b3b.system.js"],(function(t){"use strict";var e,i,n,a,r;return{setters:[function(t){e=t.r;i=t.c;n=t.h;a=t.H;r=t.g}],execute:function(){var o=t("taro_slider_core",function(){function t(t){var n=this;e(this,t);this.onChange=i(this,"change",7);this.onChanging=i(this,"changing",7);this.min=0;this.max=100;this.step=1;this.disabled=false;this.value=0;this.activeColor="#1aad19";this.backgroundColor="#e9e9e9";this.blockSize=28;this.blockColor="#ffffff";this.showValue=false;this.name="";this.totalWidth=0;this.touching=false;this.ogX=0;this.touchId=null;this.percent=0;this.isWillLoadCalled=false;this.handleTouchStart=function(t){if(n.touching||n.disabled)return;n.touching=true;n.touchId=t.targetTouches[0].identifier;n.totalWidth=n.sliderInsRef.clientWidth;n.ogX=t.targetTouches[0].pageX;n.ogPercent=n.percent};this.handleTouchMove=function(t){var e=n,i=e.disabled,a=e.touching,r=e.touchId,o=e.totalWidth,l=e.max,s=e.min,h=e.ogX,u=e.ogPercent;if(!a||i)return;if(t.targetTouches[0].identifier!==r)return;t.preventDefault();var c=t.targetTouches[0].pageX;var d=c-h;var f=d/o*100+u;f=Math.max(0,Math.min(f,100));var v=s+f*.01*(l-s);n.updateByStep(v);n.onChanging.emit({detail:t.detail,value:n.val})};this.handleTouchEnd=function(t){var e=n,i=e.disabled,a=e.touching;if(!a||i)return;if(n.percent!==n.ogPercent){n.onChange.emit({detail:t.detail,value:n.val})}n.touching=false;n.touchId=null;n.ogX=0;n.ogPercent=0}}t.prototype.function=function(t){if(!this.isWillLoadCalled)return;var e=this,i=e.max,n=e.min;if(t!==null&&t!==this.val){var a=Math.max(n,Math.min(t,i));this.updateByStep(a)}};t.prototype.componentDidLoad=function(){var t=this;Object.defineProperty(this.el,"value",{get:function(){return t.val},set:function(e){return t.value=e},configurable:true});this.handler.addEventListener("touchstart",this.handleTouchStart);this.handler.addEventListener("touchmove",this.handleTouchMove);this.handler.addEventListener("touchend",this.handleTouchEnd)};t.prototype.componentDidUpdate=function(){this.value=null};t.prototype.componentWillLoad=function(){this.isWillLoadCalled=true;var t=this,e=t.value,i=t.max,n=t.min;if(e===null)return;var a=Math.max(n,Math.min(e,i));this.updateByStep(a)};t.prototype.updateByStep=function(t){var e=this,i=e.max,n=e.min,a=e.step;var r=Math.floor((i-n)/a);for(var o=0;o<=r;o++){var l=n+a*o;var s=o===r?null:n+a*(o+1);if(t===l)break;if(!s&&t>l){t=l}if(s&&t>l&&t<s){if(t-l<a/2){t=l}else{t=s}break}}var h=(t-n)/(i-n)*100;this.val=t;this.percent=h};t.prototype.render=function(){var t=this;var e=this,i=e.showValue,r=e.backgroundColor,o=e.activeColor,l=e.blockColor,s=e.name,h=e.percent,u=e.val;var c=this.blockSize;var d={backgroundColor:r};var f=h>100?100:h;var v={width:f+"%",backgroundColor:o};if(c<12){c=12}if(c>28){c=28}var p={left:f+"%",width:c+"px",height:c+"px",backgroundColor:l,marginTop:"-"+Math.floor(c/2)+"px",marginLeft:"-"+Math.floor(c/2)+"px"};return n(a,{class:"weui-slider-box"},n("div",{class:"weui-slider"},n("div",{class:"weui-slider__inner",style:d,ref:function(e){return t.sliderInsRef=e}},n("div",{style:v,class:"weui-slider__track"}),n("div",{class:"weui-slider__handler",ref:function(e){if(e)t.handler=e},style:p}),n("input",{type:"hidden",name:s,value:u}))),i&&n("div",{class:"weui-slider-box__value"},u))};Object.defineProperty(t.prototype,"el",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{value:["function"]}},enumerable:false,configurable:true});return t}())}}}));
1
+ System.register(["./p-93748645.system.js"],(function(t){"use strict";var e,i,n,a,r;return{setters:[function(t){e=t.r;i=t.c;n=t.h;a=t.H;r=t.g}],execute:function(){var o=t("taro_slider_core",function(){function t(t){var n=this;e(this,t);this.onChange=i(this,"change",7);this.onChanging=i(this,"changing",7);this.min=0;this.max=100;this.step=1;this.disabled=false;this.value=0;this.activeColor="#1aad19";this.backgroundColor="#e9e9e9";this.blockSize=28;this.blockColor="#ffffff";this.showValue=false;this.name="";this.totalWidth=0;this.touching=false;this.ogX=0;this.touchId=null;this.percent=0;this.isWillLoadCalled=false;this.handleTouchStart=function(t){if(n.touching||n.disabled)return;n.touching=true;n.touchId=t.targetTouches[0].identifier;n.totalWidth=n.sliderInsRef.clientWidth;n.ogX=t.targetTouches[0].pageX;n.ogPercent=n.percent};this.handleTouchMove=function(t){var e=n,i=e.disabled,a=e.touching,r=e.touchId,o=e.totalWidth,l=e.max,s=e.min,h=e.ogX,u=e.ogPercent;if(!a||i)return;if(t.targetTouches[0].identifier!==r)return;t.preventDefault();var c=t.targetTouches[0].pageX;var d=c-h;var f=d/o*100+u;f=Math.max(0,Math.min(f,100));var v=s+f*.01*(l-s);n.updateByStep(v);n.onChanging.emit({detail:t.detail,value:n.val})};this.handleTouchEnd=function(t){var e=n,i=e.disabled,a=e.touching;if(!a||i)return;if(n.percent!==n.ogPercent){n.onChange.emit({detail:t.detail,value:n.val})}n.touching=false;n.touchId=null;n.ogX=0;n.ogPercent=0}}t.prototype.function=function(t){if(!this.isWillLoadCalled)return;var e=this,i=e.max,n=e.min;if(t!==null&&t!==this.val){var a=Math.max(n,Math.min(t,i));this.updateByStep(a)}};t.prototype.componentDidLoad=function(){var t=this;Object.defineProperty(this.el,"value",{get:function(){return t.val},set:function(e){return t.value=e},configurable:true});this.handler.addEventListener("touchstart",this.handleTouchStart);this.handler.addEventListener("touchmove",this.handleTouchMove);this.handler.addEventListener("touchend",this.handleTouchEnd)};t.prototype.componentDidUpdate=function(){this.value=null};t.prototype.componentWillLoad=function(){this.isWillLoadCalled=true;var t=this,e=t.value,i=t.max,n=t.min;if(e===null)return;var a=Math.max(n,Math.min(e,i));this.updateByStep(a)};t.prototype.updateByStep=function(t){var e=this,i=e.max,n=e.min,a=e.step;var r=Math.floor((i-n)/a);for(var o=0;o<=r;o++){var l=n+a*o;var s=o===r?null:n+a*(o+1);if(t===l)break;if(!s&&t>l){t=l}if(s&&t>l&&t<s){if(t-l<a/2){t=l}else{t=s}break}}var h=(t-n)/(i-n)*100;this.val=t;this.percent=h};t.prototype.render=function(){var t=this;var e=this,i=e.showValue,r=e.backgroundColor,o=e.activeColor,l=e.blockColor,s=e.name,h=e.percent,u=e.val;var c=this.blockSize;var d={backgroundColor:r};var f=h>100?100:h;var v={width:f+"%",backgroundColor:o};if(c<12){c=12}if(c>28){c=28}var p={left:f+"%",width:c+"px",height:c+"px",backgroundColor:l,marginTop:"-"+Math.floor(c/2)+"px",marginLeft:"-"+Math.floor(c/2)+"px"};return n(a,{class:"weui-slider-box"},n("div",{class:"weui-slider"},n("div",{class:"weui-slider__inner",style:d,ref:function(e){return t.sliderInsRef=e}},n("div",{style:v,class:"weui-slider__track"}),n("div",{class:"weui-slider__handler",ref:function(e){if(e)t.handler=e},style:p}),n("input",{type:"hidden",name:s,value:u}))),i&&n("div",{class:"weui-slider-box__value"},u))};Object.defineProperty(t.prototype,"el",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{value:["function"]}},enumerable:false,configurable:true});return t}())}}}));
@@ -0,0 +1 @@
1
+ var __spreadArray=this&&this.__spreadArray||function(e,t){for(var r=0,a=t.length,o=e.length;r<a;r++,o++)e[o]=t[r];return e};System.register(["./p-93748645.system.js","./p-696f0d1c.system.js"],(function(e){"use strict";var t,r,a,o,n,i;return{setters:[function(e){t=e.h;r=e.r;a=e.c;o=e.H;n=e.g},function(e){i=e.c}],execute:function(){function s(e){return e.charAt(0)==="/"}function l(e,t){for(var r=t,a=r+1,o=e.length;a<o;r+=1,a+=1){e[r]=e[a]}e.pop()}function b(e,t){if(t===undefined)t="";var r=e&&e.split("/")||[];var a=t&&t.split("/")||[];var o=e&&s(e);var n=t&&s(t);var i=o||n;if(e&&s(e)){a=r}else if(r.length){a.pop();a=a.concat(r)}if(!a.length)return"/";var b;if(a.length){var d=a[a.length-1];b=d==="."||d===".."||d===""}else{b=false}var h=0;for(var c=a.length;c>=0;c--){var f=a[c];if(f==="."){l(a,c)}else if(f===".."){l(a,c);h++}else if(h){l(a,c);h--}}if(!i)for(;h--;h)a.unshift("..");if(i&&a[0]!==""&&(!a[0]||!s(a[0])))a.unshift("");var u=a.join("/");if(b&&u.substr(-1)!=="/")u+="/";return u}var d=function(e){var t=e||"";var r;var a={path:null,query:null,fragment:null};r=t.indexOf("#");if(r>-1){a.fragment=t.substring(r+1);t=t.substring(0,r)}r=t.indexOf("?");if(r>-1){a.query=t.substring(r+1);t=t.substring(0,r)}a.path=t;return a};var h=function(e){var r=e.index,a=e.isSelected,o=a===void 0?false:a,n=e.textColor,s=e.iconPath,l=e.badgeText,b=e.showRedDot,d=b===void 0?false:b,h=e.text,c=e.onSelect;var f=i("weui-tabbar__item",{"weui-bar__item_on":o});var u={position:"absolute",top:"-2px",right:"-13px"};var v={position:"absolute",top:"0",right:"-6px"};function g(){c(r)}return t("a",{key:r,href:"javascript:;",class:f,onClick:g},t("span",{style:{display:"inline-block",position:"relative"}},t("img",{src:s,alt:"",class:"weui-tabbar__icon"}),!!l&&t("span",{class:"weui-badge taro-tabbar-badge",style:u},l),d&&t("span",{class:"weui-badge weui-badge_dot",style:v})),t("p",{class:"weui-tabbar__label",style:{color:n}},h))};var c="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;height:100%;-ms-flex-direction:column;flex-direction:column;overflow:hidden}.taro-tabbar__panel{-ms-flex:1;flex:1;position:relative;overflow:auto;-webkit-overflow-scrolling:touch}.taro-tabbar__tabbar{position:relative;height:50px;width:100%;-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}.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}";var f=require("@tarojs/taro");var u=function(e){return e[0]==="/"?e:"/"+e};var v=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)};var g=function(e,t){return v(e,t)?e.substr(t.length):e};var _=0;var p=1;var T=2;var B="taro-tabbar__tabbar";var m="taro-tabbar__tabbar-hide";var H="taro-tabbar__tabbar-slideout";var x=e("taro_tabbar",function(){function e(e){var t=this;r(this,e);this.onLongPress=a(this,"longpress",7);this.homePage="";this.customRoutes=[];this.tabbarPos="bottom";this.selectedIndex=-1;this.status=_;this.getOriginUrl=function(e){var r=t.customRoutes.filter((function(t){var r=t[1];var a=d(r).path;var o=d(e).path;return a===o}));return r.length?r[0][0]:e};this.getSelectedIndex=function(e){var r=-1;t.list.forEach((function(t,a){var o=t.pagePath;var n=d(e).path;var i=d(o).path;if(n===i){r=a}}));return r};this.switchTab=function(e){t.selectedIndex=e;f.switchTab({url:t.list[e].pagePath})};this.switchTabHandler=function(e){var r=e.url,a=e.successHandler,o=e.errorHandler;var n=t.getOriginUrl(t.getCurrentUrl()||t.homePage);var i=b(r,n);var s=t.getSelectedIndex(i);if(s>-1){t.switchTab(s);a({errMsg:"switchTab:ok"})}else{o({errMsg:'switchTab:fail page "'+i+'" is not found'})}};this.routerChangeHandler=function(e){var r;var a;if(e){r=e.toLocation}if(r&&r.path){var o=u(r.path);a=g(o==="/"?t.homePage:o,t.conf.basename||"/")}else{a=t.getCurrentUrl()}t.selectedIndex=t.getSelectedIndex(t.getOriginUrl(a))};this.setTabBarBadgeHandler=function(e){var r=e.index,a=e.text,o=e.successHandler,n=e.errorHandler;var i=__spreadArray([],t.list);if(r in i){i[r].showRedDot=false;i[r].badgeText=a;o({errMsg:"setTabBarBadge:ok"})}else{n({errMsg:"setTabBarBadge:fail tabbar item not found"})}t.list=i};this.removeTabBarBadgeHandler=function(e){var r=e.index,a=e.successHandler,o=e.errorHandler;var n=__spreadArray([],t.list);if(r in n){n[r].badgeText=null;n[r].badgeText=null;a({errMsg:"removeTabBarBadge:ok"})}else{o({errMsg:"removeTabBarBadge:fail tabbar item not found"})}t.list=n};this.showTabBarRedDotHandler=function(e){var r=e.index,a=e.successHandler,o=e.errorHandler;var n=__spreadArray([],t.list);if(r in n){n[r].badgeText=null;n[r].showRedDot=true;a({errMsg:"showTabBarRedDot:ok"})}else{o({errMsg:"showTabBarRedDot:fail tabbar item not found"})}t.list=n};this.hideTabBarRedDotHandler=function(e){var r=e.index,a=e.successHandler,o=e.errorHandler;var n=__spreadArray([],t.list);if(r in n){n[r].showRedDot=false;a({errMsg:"hideTabBarRedDot:ok"})}else{o({errMsg:"hideTabBarRedDot:fail tabbar item not found"})}t.list=n};this.showTabBarHandler=function(e){var r=e.successHandler;t.status=_;r({errMsg:"showTabBar:ok"})};this.hideTabBarHandler=function(e){var r=e.animation,a=e.successHandler;t.status=r?T:p;a({errMsg:"hideTabBar:ok"})};this.setTabBarStyleHandler=function(e){var r=e.color,a=e.selectedColor,o=e.backgroundColor,n=e.borderStyle,i=e.successHandler;if(o)t.backgroundColor=o;if(n)t.borderStyle=n;if(r)t.color=r;if(a)t.selectedColor=a;i({errMsg:"setTabBarStyle:ok"})};this.setTabBarItemHandler=function(e){var r=e.index,a=e.iconPath,o=e.selectedIconPath,n=e.text,i=e.successHandler,s=e.errorHandler;var l=__spreadArray([],t.list);if(r in l){if(a)l[r].iconPath=a;if(o)l[r].selectedIconPath=o;if(n)l[r].text=n;i({errMsg:"setTabBarItem:ok"})}else{s({errMsg:"setTabBarItem:fail tabbar item not found"})}t.list=l};var o=this.conf.list;var n=this.conf.customRoutes;if(Object.prototype.toString.call(o)!=="[object Array]"||o.length<2||o.length>5){throw new Error("tabBar 配置错误")}this.homePage=u(this.conf.homePage);for(var i in n){this.customRoutes.push([i,n[i]])}o.forEach((function(e){if(e.pagePath.indexOf("/")!==0){e.pagePath="/"+e.pagePath}}));this.list=o;this.borderStyle=this.conf.borderStyle;this.backgroundColor=this.conf.backgroundColor;this.color=this.conf.color;this.selectedColor=this.conf.selectedColor}e.prototype.getCurrentUrl=function(){var e=this.conf.mode;var t=this.conf.basename||"/";var r;if(e==="hash"){var a=window.location.href;var o=a.indexOf("#");r=o===-1?"":a.substring(o+1)}else{r=location.pathname}var n=u(g(r,t));return n==="/"?this.homePage:n};e.prototype.bindEvent=function(){f.eventCenter.on("__taroRouterChange",this.routerChangeHandler);f.eventCenter.on("__taroSwitchTab",this.switchTabHandler);f.eventCenter.on("__taroSetTabBarBadge",this.setTabBarBadgeHandler);f.eventCenter.on("__taroRemoveTabBarBadge",this.removeTabBarBadgeHandler);f.eventCenter.on("__taroShowTabBarRedDotHandler",this.showTabBarRedDotHandler);f.eventCenter.on("__taroHideTabBarRedDotHandler",this.hideTabBarRedDotHandler);f.eventCenter.on("__taroShowTabBar",this.showTabBarHandler);f.eventCenter.on("__taroHideTabBar",this.hideTabBarHandler);f.eventCenter.on("__taroSetTabBarStyle",this.setTabBarStyleHandler);f.eventCenter.on("__taroSetTabBarItem",this.setTabBarItemHandler)};e.prototype.removeEvent=function(){f.eventCenter.off("__taroRouterChange",this.routerChangeHandler);f.eventCenter.off("__taroSwitchTab",this.switchTabHandler);f.eventCenter.off("__taroSetTabBarBadge",this.setTabBarBadgeHandler);f.eventCenter.off("__taroRemoveTabBarBadge",this.removeTabBarBadgeHandler);f.eventCenter.off("__taroShowTabBarRedDotHandler",this.showTabBarRedDotHandler);f.eventCenter.off("__taroHideTabBarRedDotHandler",this.hideTabBarRedDotHandler);f.eventCenter.off("__taroShowTabBar",this.showTabBarHandler);f.eventCenter.off("__taroHideTabBar",this.hideTabBarHandler);f.eventCenter.off("__taroSetTabBarStyle",this.setTabBarStyleHandler);f.eventCenter.off("__taroSetTabBarItem",this.setTabBarItemHandler)};e.prototype.componentDidLoad=function(){this.tabbarPos=this.tabbar.nextElementSibling?"top":"bottom";this.bindEvent();this.routerChangeHandler()};e.prototype.disconnectedCallback=function(){this.removeEvent()};e.prototype.render=function(){var e,r;var a=this;var n=this.tabbarPos,s=n===void 0?"bottom":n;var l=this.status;var b=i("weui-tabbar",(e={},e["taro-tabbar__border-"+(this.borderStyle||"black")]=true,e));var d=this.selectedIndex===-1||l===p;var c=l===T;return t(o,{class:i(B,B+"-"+s,(r={},r[m]=d,r[H]=c,r))},t("div",{class:b,style:{backgroundColor:this.backgroundColor||""}},this.list.map((function(e,r){var o=a.selectedIndex===r;var n;var i;if(o){n=a.selectedColor||"";i=e.selectedIconPath}else{n=a.color||"";i=e.iconPath}return t(h,{index:r,onSelect:a.switchTab.bind(a),isSelected:o,textColor:n,iconPath:i,text:e.text,badgeText:e.badgeText,showRedDot:e.showRedDot})}))))};Object.defineProperty(e.prototype,"tabbar",{get:function(){return n(this)},enumerable:false,configurable:true});return e}());x.style=c}}}));
@@ -0,0 +1 @@
1
+ import{r,h as e,H as o}from"./p-49ae5efb.js";let s=class{constructor(e){r(this,e)}render(){return e(o,null)}};export{s as taro_block_core}
@@ -1 +1 @@
1
- System.register(["./p-cf496b3b.system.js","./p-bd00f506.system.js"],(function(e){"use strict";var t,r,i,a,s;return{setters:[function(e){t=e.r;r=e.c;i=e.h;a=e.H},function(e){s=e.c}],execute:function(){var n=".navigator-hover{background:#efefef}";var o=require("@tarojs/taro");var c=e("taro_navigator_core",function(){function e(e){t(this,e);this.onSuccess=r(this,"cuccess",7);this.onFail=r(this,"fail",7);this.onComplete=r(this,"Complete",7);this.openType="navigate";this.isHover=false;this.delta=0}e.prototype.onClick=function(){var e=this,t=e.openType,r=e.onSuccess,i=e.onFail,a=e.onComplete;var s=Promise.resolve();switch(t){case"navigate":s=o.navigateTo({url:this.url});break;case"redirect":s=o.redirectTo({url:this.url});break;case"switchTab":s=o.switchTab({url:this.url});break;case"reLaunch":s=o.reLaunch({url:this.url});break;case"navigateBack":s=o.navigateBack({delta:this.delta});break;case"exit":s=Promise.reject(new Error('navigator:fail 暂不支持"openType: exit"'));break}if(s){s.then((function(e){r.emit(e)})).catch((function(e){i.emit(e)})).finally((function(){a.emit()}))}};e.prototype.render=function(){var e;var t=this,r=t.isHover,n=t.hoverClass;return i(a,{class:s((e={},e[n]=r,e))})};return e}());c.style=n}}}));
1
+ System.register(["./p-93748645.system.js","./p-696f0d1c.system.js"],(function(e){"use strict";var t,r,i,a,s;return{setters:[function(e){t=e.r;r=e.c;i=e.h;a=e.H},function(e){s=e.c}],execute:function(){var n=".navigator-hover{background:#efefef}";var o=require("@tarojs/taro");var c=e("taro_navigator_core",function(){function e(e){t(this,e);this.onSuccess=r(this,"cuccess",7);this.onFail=r(this,"fail",7);this.onComplete=r(this,"Complete",7);this.openType="navigate";this.isHover=false;this.delta=0}e.prototype.onClick=function(){var e=this,t=e.openType,r=e.onSuccess,i=e.onFail,a=e.onComplete;var s=Promise.resolve();switch(t){case"navigate":s=o.navigateTo({url:this.url});break;case"redirect":s=o.redirectTo({url:this.url});break;case"switchTab":s=o.switchTab({url:this.url});break;case"reLaunch":s=o.reLaunch({url:this.url});break;case"navigateBack":s=o.navigateBack({delta:this.delta});break;case"exit":s=Promise.reject(new Error('navigator:fail 暂不支持"openType: exit"'));break}if(s){s.then((function(e){r.emit(e)})).catch((function(e){i.emit(e)})).finally((function(){a.emit()}))}};e.prototype.render=function(){var e;var t=this,r=t.isHover,n=t.hoverClass;return i(a,{class:s((e={},e[n]=r,e))})};return e}());c.style=n}}}));
@@ -1 +1 @@
1
- System.register(["./p-cf496b3b.system.js","./p-bd00f506.system.js"],(function(e){"use strict";var t,s,r,n;return{setters:[function(e){t=e.r;s=e.h;r=e.H},function(e){n=e.c}],execute:function(){var c="taro-text-core{display:inline;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;white-space:pre-wrap}.taro-text__selectable{-moz-user-select:text;-webkit-user-select:text;-ms-user-select:text;user-select:text}";var l=e("taro_text_core",function(){function e(e){t(this,e);this.selectable=false}e.prototype.render=function(){var e=n({"taro-text__selectable":this.selectable});return s(r,{class:e},s("slot",null))};return e}());l.style=c}}}));
1
+ System.register(["./p-93748645.system.js","./p-696f0d1c.system.js"],(function(e){"use strict";var t,s,r,n;return{setters:[function(e){t=e.r;s=e.h;r=e.H},function(e){n=e.c}],execute:function(){var c="taro-text-core{display:inline;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;white-space:pre-wrap}.taro-text__selectable{-moz-user-select:text;-webkit-user-select:text;-ms-user-select:text;user-select:text}";var l=e("taro_text_core",function(){function e(e){t(this,e);this.selectable=false}e.prototype.render=function(){var e=n({"taro-text__selectable":this.selectable});return s(r,{class:e},s("slot",null))};return e}());l.style=c}}}));
@@ -0,0 +1 @@
1
+ import{r as o,c as t,h as r,H as a,g as e}from"./p-49ae5efb.js";import{c as i}from"./p-6967e577.js";let n=class{constructor(r){o(this,r),this.onSubmit=t(this,"tarobuttonsubmit",7),this.onReset=t(this,"tarobuttonreset",7),this.hoverClass="button-hover",this.type="",this.hoverStartTime=20,this.hoverStayTime=70,this.loading=!1,this.formType=null,this.hover=!1,this.touch=!1}onTouchStart(){this.disabled||(this.touch=!0,this.hoverClass&&!this.disabled&&setTimeout((()=>{this.touch&&(this.hover=!0)}),this.hoverStartTime))}onTouchEnd(){this.disabled||(this.touch=!1,this.hoverClass&&!this.disabled&&setTimeout((()=>{this.touch||(this.hover=!1)}),this.hoverStayTime),"submit"===this.formType?this.onSubmit.emit():"reset"===this.formType&&this.onReset.emit())}render(){const{disabled:o,hoverClass:t,type:e,size:n,plain:b,loading:l,hover:c}=this,d=i({[`${t}`]:c&&!o});return r(a,{class:d,type:e,plain:b,loading:l,size:n,disabled:o},l&&r("i",{class:"weui-loading"}),r("slot",null))}get el(){return e(this)}};n.style='taro-button-core{position:relative;display:block;margin-left:auto;margin-right:auto;padding-left:14px;padding-right:14px;-webkit-box-sizing:border-box;box-sizing:border-box;font-size:18px;text-align:center;text-decoration:none;color:#000000;background-color:#F8F8F8;line-height:2.55555556;border-radius:5px;-webkit-tap-highlight-color:rgba(0, 0, 0, 0);overflow:hidden;width:100%;border-width:0;outline:0;-webkit-appearance:none}taro-button-core:not([disabled]):active{color:rgba(0, 0, 0, 0.6);background-color:#DEDEDE}taro-button-core:focus{outline:0}taro-button-core:after{content:" ";width:200%;height:200%;position:absolute;top:0;left:0;border:1px solid rgba(0, 0, 0, 0.2);-webkit-transform:scale(0.5);transform:scale(0.5);-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:10px}taro-button-core+taro-button-core{margin-top:15px}taro-button-core[type=default]{color:#000000;background-color:#F8F8F8}taro-button-core[type=default]:not([disabled]):visited{color:#000000}taro-button-core[type=default]:not([disabled]):active{color:rgba(0, 0, 0, 0.6);background-color:#DEDEDE}taro-button-core[size=mini]{width:auto;display:inline-block;padding:0 1.32em;line-height:2.3;font-size:13px}taro-button-core[plain],taro-button-core[plain][type=default],taro-button-core[plain][type=primary]{border-width:1px;background-color:transparent}taro-button-core[disabled]{color:rgba(255, 255, 255, 0.6)}taro-button-core[disabled][type=default]{color:rgba(0, 0, 0, 0.3);background-color:#F7F7F7}taro-button-core[disabled][type=primary]{background-color:#9ED99D}taro-button-core[disabled][type=warn]{background-color:#EC8B89}taro-button-core[loading] .weui-loading{margin:-0.2em 0.34em 0 0}taro-button-core[loading][type=primary],taro-button-core[loading][type=warn]{color:rgba(255, 255, 255, 0.6)}taro-button-core[loading][type=primary]{background-color:#179B16}taro-button-core[loading][type=warn]{background-color:#CE3C39}taro-button-core[plain][type=primary]{color:#1aad19;border:1px solid #1aad19}taro-button-core[plain][type=primary]:not([disabled]):active{color:rgba(26, 173, 25, 0.6);border-color:rgba(26, 173, 25, 0.6);background-color:transparent}taro-button-core[plain][type=primary]:after{border-width:0}taro-button-core[plain],taro-button-core[plain][type=default]{color:#353535;border:1px solid #353535}taro-button-core[plain]:not([disabled]):active,taro-button-core[plain][type=default]:not([disabled]):active{color:rgba(53, 53, 53, 0.6);border-color:rgba(53, 53, 53, 0.6);background-color:transparent}taro-button-core[plain]:after,taro-button-core[plain][type=default]:after{border-width:0}taro-button-core[type=primary]{color:#fff;background-color:#1AAD19}taro-button-core[type=primary]:not([disabled]):visited{color:#FFFFFF}taro-button-core[type=primary]:not([disabled]):active{color:rgba(255, 255, 255, 0.6);background-color:#179B16}taro-button-core[type=warn]{color:#fff;background-color:#E64340}taro-button-core[type=warn]:not([disabled]):visited{color:#FFFFFF}taro-button-core[type=warn]:not([disabled]):active{color:rgba(255, 255, 255, 0.6);background-color:#CE3C39}taro-button-core[plain][disabled]{color:rgba(0, 0, 0, 0.3);border:1px solid rgba(0, 0, 0, 0.2);background-color:#F7F7F7}taro-button-core[plain][disabled][type=primary]{color:rgba(0, 0, 0, 0.3);border:1px solid rgba(0, 0, 0, 0.2);background-color:#F7F7F7}';export{n as taro_button_core}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as i,H as h}from"./p-49ae5efb.js";import{c as e}from"./p-6967e577.js";let o=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=e({[`${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))}};o.style="taro-cover-view-core{display:block}";export{o as taro_cover_view_core}
@@ -0,0 +1 @@
1
+ import{r as t,h as e,H as r}from"./p-49ae5efb.js";let n=class{constructor(r){t(this,r),this.renderNode=t=>{if("type"in t&&"text"===t.type)return(t.text||"").replace(/&nbsp;/g," ");if("name"in t&&t.name){const{name:r,attrs:n,children:s}=t,o={};let i=[];if(n&&"object"==typeof n)for(const t in n){const e=n[t];if("style"!==t||"string"!=typeof e)o[t]=e;else{const t=e.split(";").map((t=>t.trim())).filter((t=>t)),r={};t.forEach((t=>{if(!t)return;const e=/(.+): *(.+)/g.exec(t);if(!e)return;const[,n,s]=e,o=n.replace(/-([a-z])/g,((...t)=>t[1].toUpperCase()));r[o]=s})),Object.keys(r).length&&(o.style=r)}}return s&&s.length&&(i=s.map((t=>this.renderNode(t)))),e(r,o,i)}return null}}render(){const{nodes:t,renderNode:n}=this;return Array.isArray(t)?e(r,null,t.map((t=>n(t)))):e(r,{innerHTML:t})}};export{n as taro_rich_text_core}
@@ -1 +1 @@
1
- System.register(["./p-cf496b3b.system.js"],(function(t){"use strict";var n,e,r;return{setters:[function(t){n=t.r;e=t.h;r=t.H}],execute:function(){var o=t("taro_open_data_core",function(){function t(t){n(this,t)}t.prototype.componentDidLoad=function(){console.error("H5 暂不支持 OpenData 组件!")};t.prototype.render=function(){return e(r,null)};return t}())}}}));
1
+ System.register(["./p-93748645.system.js"],(function(t){"use strict";var n,e,r;return{setters:[function(t){n=t.r;e=t.h;r=t.H}],execute:function(){var o=t("taro_open_data_core",function(){function t(t){n(this,t)}t.prototype.componentDidLoad=function(){console.error("H5 暂不支持 OpenData 组件!")};t.prototype.render=function(){return e(r,null)};return t}())}}}));
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as i}from"./p-49ae5efb.js";let e=class{constructor(i){t(this,i),this.onError=s(this,"error",7),this.onPlay=s(this,"play",7),this.onPause=s(this,"pause",7),this.onTimeUpdate=s(this,"timeupdate",7),this.onEnded=s(this,"ended",7),this.controls=!0,this.autoplay=!1,this.loop=!1,this.muted=!1,this.nativeProps={}}bindevent(){this.audio.addEventListener("timeupdate",(t=>{this.onTimeUpdate.emit({duration:t.srcElement.duration,currentTime:t.srcElement.duration})})),this.audio.addEventListener("ended",(()=>{this.onEnded.emit()})),this.audio.addEventListener("play",(()=>{this.onPlay.emit()})),this.audio.addEventListener("pause",(t=>{this.onPause.emit(t)})),this.audio.addEventListener("error",(t=>{var s;this.onError.emit({errMsg:null===(s=t.srcElement.error)||void 0===s?void 0:s.code})}))}componentDidLoad(){this.bindevent()}render(){const{src:t,controls:s,autoplay:e,loop:o,muted:h,nativeProps:r}=this;return i("audio",Object.assign({src:t,controls:s,autoplay:e,loop:o,muted:h,ref:t=>{this.audio=t}},r))}};e.style="audio{max-width:100%;outline:none}";export{e as taro_audio_core}
@@ -1 +1 @@
1
- System.register(["./p-cf496b3b.system.js","./p-bd00f506.system.js"],(function(t,i){"use strict";var o,e,r,a,s;return{setters:[function(t){o=t.r;e=t.c;r=t.h;a=t.H},function(t){s=t.c}],execute:function(){var n='img[src=""]{opacity:0}taro-image-core{display:inline-block;overflow:hidden;position:relative;font-size:0;width:320px;height:240px}.taro-img.taro-img__widthfix{height:100%}.taro-img__mode-scaletofill{width:100%;height:100%}.taro-img__mode-aspectfit{max-width:100%;max-height:100%}.taro-img__mode-aspectfill{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}.taro-img__mode-aspectfill--width{min-width:100%;height:100%}.taro-img__mode-aspectfill--height{width:100%;min-height:100%}.taro-img__mode-widthfix{width:100%}.taro-img__mode-top{width:100%}.taro-img__mode-bottom{width:100%;position:absolute;bottom:0}.taro-img__mode-left{height:100%}.taro-img__mode-right{position:absolute;height:100%;right:0}.taro-img__mode-topright{position:absolute;right:0}.taro-img__mode-bottomleft{position:absolute;bottom:0}.taro-img__mode-bottomright{position:absolute;right:0;bottom:0}';i.import("./p-3b1d2d37.system.js");var h=t("taro_image_core",function(){function t(t){o(this,t);this.onLoad=e(this,"load",7);this.onError=e(this,"error",7);this.mode="scaleToFill";this.lazyLoad=false;this.nativeProps={};this.aspectFillMode="width"}t.prototype.componentDidLoad=function(){var t=this;if(!this.lazyLoad)return;var i=new IntersectionObserver((function(o){if(o[o.length-1].isIntersecting){i.unobserve(t.imgRef);t.imgRef.src=t.src}}),{rootMargin:"300px 0px"});i.observe(this.imgRef)};t.prototype.imageOnLoad=function(){var t=this.imgRef,i=t.width,o=t.height,e=t.naturalWidth,r=t.naturalHeight;this.onLoad.emit({width:i,height:o});this.aspectFillMode=e>r?"width":"height"};t.prototype.imageOnError=function(){this.onError.emit()};t.prototype.render=function(){var t;var i=this;var o=this,e=o.src,n=o.mode,h=o.lazyLoad,m=o.aspectFillMode,d=o.imageOnLoad,g=o.imageOnError,l=o.nativeProps;var c=s({"taro-img__widthfix":n==="widthFix"});var f=s("taro-img__mode-"+n.toLowerCase().replace(/\s/g,""),(t={},t["taro-img__mode-aspectfill--"+m]=n==="aspectFill",t));return r(a,{class:c},h?r("img",Object.assign({ref:function(t){return i.imgRef=t},class:f,onLoad:d.bind(this),onError:g.bind(this)},l)):r("img",Object.assign({ref:function(t){return i.imgRef=t},class:f,src:e,onLoad:d.bind(this),onError:g.bind(this)},l)))};return t}());h.style=n}}}));
1
+ System.register(["./p-93748645.system.js","./p-696f0d1c.system.js"],(function(t,i){"use strict";var o,e,r,a,s;return{setters:[function(t){o=t.r;e=t.c;r=t.h;a=t.H},function(t){s=t.c}],execute:function(){var n='img[src=""]{opacity:0}taro-image-core{display:inline-block;overflow:hidden;position:relative;font-size:0;width:320px;height:240px}.taro-img.taro-img__widthfix{height:100%}.taro-img__mode-scaletofill{width:100%;height:100%}.taro-img__mode-aspectfit{max-width:100%;max-height:100%}.taro-img__mode-aspectfill{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}.taro-img__mode-aspectfill--width{min-width:100%;height:100%}.taro-img__mode-aspectfill--height{width:100%;min-height:100%}.taro-img__mode-widthfix{width:100%}.taro-img__mode-top{width:100%}.taro-img__mode-bottom{width:100%;position:absolute;bottom:0}.taro-img__mode-left{height:100%}.taro-img__mode-right{position:absolute;height:100%;right:0}.taro-img__mode-topright{position:absolute;right:0}.taro-img__mode-bottomleft{position:absolute;bottom:0}.taro-img__mode-bottomright{position:absolute;right:0;bottom:0}';i.import("./p-3b1d2d37.system.js");var h=t("taro_image_core",function(){function t(t){o(this,t);this.onLoad=e(this,"load",7);this.onError=e(this,"error",7);this.mode="scaleToFill";this.lazyLoad=false;this.nativeProps={};this.aspectFillMode="width"}t.prototype.componentDidLoad=function(){var t=this;if(!this.lazyLoad)return;var i=new IntersectionObserver((function(o){if(o[o.length-1].isIntersecting){i.unobserve(t.imgRef);t.imgRef.src=t.src}}),{rootMargin:"300px 0px"});i.observe(this.imgRef)};t.prototype.imageOnLoad=function(){var t=this.imgRef,i=t.width,o=t.height,e=t.naturalWidth,r=t.naturalHeight;this.onLoad.emit({width:i,height:o});this.aspectFillMode=e>r?"width":"height"};t.prototype.imageOnError=function(){this.onError.emit()};t.prototype.render=function(){var t;var i=this;var o=this,e=o.src,n=o.mode,h=o.lazyLoad,m=o.aspectFillMode,d=o.imageOnLoad,g=o.imageOnError,l=o.nativeProps;var c=s({"taro-img__widthfix":n==="widthFix"});var f=s("taro-img__mode-"+n.toLowerCase().replace(/\s/g,""),(t={},t["taro-img__mode-aspectfill--"+m]=n==="aspectFill",t));return r(a,{class:c},h?r("img",Object.assign({ref:function(t){return i.imgRef=t},class:f,onLoad:d.bind(this),onError:g.bind(this)},l)):r("img",Object.assign({ref:function(t){return i.imgRef=t},class:f,src:e,onLoad:d.bind(this),onError:g.bind(this)},l)))};return t}());h.style=n}}}));
@@ -1 +1 @@
1
- System.register(["./p-cf496b3b.system.js"],(function(r){"use strict";var s,t,e;return{setters:[function(r){s=r.r;t=r.h;e=r.H}],execute:function(){var o=r("taro_progress_core",function(){function r(r){s(this,r);this.percent=0;this.showInfo=false;this.borderRadius=0;this.fontSize=16;this.strokeWidth=6;this.activeColor="#09BB07";this.backgroundColor="#EBEBEB";this.active=false}r.prototype.render=function(){var r=this,s=r.percent,o=r.showInfo,i=r.borderRadius,n=r.fontSize,a=r.strokeWidth,c=r.activeColor,u=r.backgroundColor,h=r.active;var d=s>100?100:s<0?0:s;var l={height:a+"px",backgroundColor:u};var p=h?"width 1s ease-in-out":"none";var f={width:d+"%",transition:p,WebkitTransition:p,backgroundColor:c,borderRadius:i?i+"px":"0px"};return t(e,{class:"weui-progress"},t("div",{class:"weui-progress__bar",style:l},t("div",{class:"weui-progress__inner-bar",style:f})),o&&t("div",{class:"weui-progress__opr",style:{"font-size":n+"px"}},t("span",null,d,"%")))};return r}())}}}));
1
+ System.register(["./p-93748645.system.js"],(function(r){"use strict";var s,t,e;return{setters:[function(r){s=r.r;t=r.h;e=r.H}],execute:function(){var o=r("taro_progress_core",function(){function r(r){s(this,r);this.percent=0;this.showInfo=false;this.borderRadius=0;this.fontSize=16;this.strokeWidth=6;this.activeColor="#09BB07";this.backgroundColor="#EBEBEB";this.active=false}r.prototype.render=function(){var r=this,s=r.percent,o=r.showInfo,i=r.borderRadius,n=r.fontSize,a=r.strokeWidth,u=r.activeColor,c=r.backgroundColor,h=r.active;var d=s>100?100:s<0?0:s;var l={height:a+"px",backgroundColor:c};var p=h?"width 1s ease-in-out":"none";var v={width:d+"%",transition:p,WebkitTransition:p,backgroundColor:u,borderRadius:i?i+"px":"0px"};return t(e,{class:"weui-progress"},t("div",{class:"weui-progress__bar",style:l},t("div",{class:"weui-progress__inner-bar",style:v})),o&&t("div",{class:"weui-progress__opr",style:{"font-size":n+"px"}},t("span",null,d,"%")))};return r}())}}}));
@@ -1 +1 @@
1
- System.register(["./p-cf496b3b.system.js","./p-bd00f506.system.js"],(function(t){"use strict";var e,r,n,s;return{setters:[function(t){e=t.r;r=t.h;n=t.H},function(t){s=t.c}],execute:function(){var i=t("taro_icon_core",function(){function t(t){e(this,t);this.size="23"}t.prototype.render=function(){var t;var e=this,i=e.type,o=e.size,c=e.color;var u=i===null||i===void 0?void 0:i.replace(/_/g,"-");var a=s((t={},t["weui-icon-"+u]=true,t));var f={"font-size":o+"px",color:c};return r(n,{class:a,style:f})};return t}())}}}));
1
+ System.register(["./p-93748645.system.js","./p-696f0d1c.system.js"],(function(t){"use strict";var e,r,n,s;return{setters:[function(t){e=t.r;r=t.h;n=t.H},function(t){s=t.c}],execute:function(){var i=t("taro_icon_core",function(){function t(t){e(this,t);this.size="23"}t.prototype.render=function(){var t;var e=this,i=e.type,o=e.size,c=e.color;var u=i===null||i===void 0?void 0:i.replace(/_/g,"-");var a=s((t={},t["weui-icon-"+u]=true,t));var f={"font-size":o+"px",color:c};return r(n,{class:a,style:f})};return t}())}}}));
@@ -0,0 +1 @@
1
+ import{r as e,h as o,H as r}from"./p-49ae5efb.js";let a=class{constructor(o){e(this,o)}componentDidLoad(){console.error("H5 暂不支持 MovableArea 组件!")}render(){return o(r,null)}};export{a as taro_movable_area_core}
@@ -0,0 +1 @@
1
+ System.register(["./p-93748645.system.js"],(function(r){"use strict";var t,i,e;return{setters:[function(r){t=r.r;i=r.c;e=r.h}],execute:function(){var o="taro-cover-image-core{overflow:hidden;width:320px;height:240px}";var n=r("taro_cover_image_core",function(){function r(r){t(this,r);this.onLoad=i(this,"load",7);this.onError=i(this,"error",7);this.nativeProps={}}r.prototype.imageOnLoad=function(){var r=this.imgRef,t=r.width,i=r.height;this.onLoad.emit({width:t,height:i})};r.prototype.imageOnError=function(){this.onError.emit()};r.prototype.render=function(){var r=this;var t=this,i=t.src,o=t.imageOnLoad,n=t.imageOnError,s=t.nativeProps;return e("img",Object.assign({ref:function(t){return r.imgRef=t},src:i,onLoad:o.bind(this),onError:n.bind(this)},s))};return r}());n.style=o}}}));
@@ -0,0 +1 @@
1
+ System.register(["./p-93748645.system.js"],(function(t){"use strict";var e,n,i,o;return{setters:[function(t){e=t.r;n=t.c;i=t.h;o=t.g}],execute:function(){var s="taro-input-core{display:block}input{display:block;height:1.4rem;text-align:inherit;text-overflow:clip;overflow:hidden;white-space:nowrap}";function u(t,e,n){if(e==="search")t="search";if(n)t="password";if(typeof t==="undefined"){return"text"}if(!t){throw new Error("unexpected type")}if(t==="digit")t="number";return t}function a(t){return t!==null&&t!==void 0?t:""}var r=t("taro_input_core",function(){function t(t){var i=this;e(this,t);this.onInput=n(this,"input",7);this.onFocus=n(this,"focus",7);this.onBlur=n(this,"blur",7);this.onConfirm=n(this,"confirm",7);this.onChange=n(this,"change",7);this.onKeyDown=n(this,"keydown",7);this.isOnComposition=false;this.onInputExcuted=false;this.password=false;this.disabled=false;this.maxlength=140;this.autoFocus=false;this.confirmType="done";this.nativeProps={};this.handleInput=function(t){t.stopPropagation();var e=i,n=e.type,o=e.maxlength,s=e.confirmType,a=e.password;if(!i.isOnComposition&&!i.onInputExcuted){var r=t.target.value;var l=u(n,s,a);i.onInputExcuted=true;if(l==="number"&&r&&o<=r.length){r=r.substring(0,o);t.target.value=r}i._value=r;i.onInput.emit({value:r,cursor:r.length})}};this.handleFocus=function(t){i.onInputExcuted=false;i.onFocus.emit({value:t.target.value})};this.handleBlur=function(t){i.onBlur.emit({value:t.target.value})};this.handleChange=function(t){t.stopPropagation();i.onChange.emit({value:t.target.value})};this.handleKeyDown=function(t){var e=t.target.value;var n=t.keyCode||t.code;i.onInputExcuted=false;t.stopPropagation();i.onKeyDown.emit({value:e,cursor:e.length,keyCode:n});n===13&&i.onConfirm.emit({value:e})};this.handleComposition=function(t){if(!(t.target instanceof HTMLInputElement))return;if(t.type==="compositionend"){i.isOnComposition=false;i.onInput.emit({value:t.target.value})}else{i.isOnComposition=true}}}t.prototype.watchHandler=function(t,e){if(t!==e){this._value=t}};t.prototype.watchFocus=function(t,e){var n;if(!e&&t){(n=this.inputRef)===null||n===void 0?void 0:n.focus()}};t.prototype.componentWillLoad=function(){this._value=this.value};t.prototype.componentDidLoad=function(){var t=this;var e,n,i,o;if(this.type==="file"){this.fileListener=function(){t.onInput.emit()};(e=this.inputRef)===null||e===void 0?void 0:e.addEventListener("change",this.fileListener)}else{(n=this.inputRef)===null||n===void 0?void 0:n.addEventListener("compositionstart",this.handleComposition);(i=this.inputRef)===null||i===void 0?void 0:i.addEventListener("compositionend",this.handleComposition)}Object.defineProperty(this.el,"value",{get:function(){var e;return(e=t.inputRef)===null||e===void 0?void 0:e.value},set:function(e){t._value=e},configurable:true});this.autoFocus&&((o=this.inputRef)===null||o===void 0?void 0:o.focus())};t.prototype.disconnectedCallback=function(){var t;if(this.type==="file"){(t=this.inputRef)===null||t===void 0?void 0:t.removeEventListener("change",this.fileListener)}};t.prototype.render=function(){var t=this;var e=this,n=e._value,o=e.type,s=e.password,r=e.placeholder,l=e.disabled,h=e.maxlength,c=e.confirmType,p=e.name,f=e.nativeProps;return i("input",Object.assign({ref:function(e){t.inputRef=e},class:"weui-input",value:a(n),type:u(o,c,s),placeholder:r,disabled:l,maxlength:h,name:p,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onChange:this.handleChange,onKeyDown:this.handleKeyDown},f))};Object.defineProperty(t.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{value:["watchHandler"],autoFocus:["watchFocus"]}},enumerable:false,configurable:true});return t}());r.style=s}}}));
@@ -0,0 +1 @@
1
+ import{r as t,c as e,h as i,H as o,g as s}from"./p-49ae5efb.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:r,nativeProps:c}=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:r,onChange:this.handleChange},c)),i("slot",null))}get el(){return s(this)}static get watchers(){return{id:["watchId"]}}};n.style='@charset "UTF-8";.taro-checkbox{position:relative;display:inline-block}.taro-checkbox_checked{display:inline-block;min-height:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:0;font-size:23px;border:1px solid #d1d1d1;background-color:#ffffff;border-radius:3px;color:#1AAD19;width:23px;height:23px;position:relative;vertical-align:0;top:5px}.taro-checkbox_checked:checked::before{font-family:"weui";font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;text-align:center;speak:none;display:inline-block;vertical-align:middle;text-decoration:inherit;content:"";color:inherit;font-size:inherit;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%, -48%) scale(0.73);transform:translate(-50%, -48%) scale(0.73)}';let r=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,r as taro_checkbox_group_core}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as i,g as e}from"./p-49ae5efb.js";let a=class{constructor(i){t(this,i),this.onLongTap=s(this,"longtap",7),this.nativeProps={},this.onTouchStart=()=>{this.timer=setTimeout((()=>{this.onLongTap.emit()}),500)},this.onTouchMove=()=>{clearTimeout(this.timer)},this.onTouchEnd=()=>{clearTimeout(this.timer)}}render(){const{canvasId:t,nativeProps:s}=this;return i("canvas",Object.assign({"canvas-id":t,style:{width:"100%",height:"100%"},onTouchStart:this.onTouchStart,onTouchMove:this.onTouchMove,onTouchEnd:this.onTouchEnd},s))}get el(){return e(this)}};a.style="taro-canvas-core{position:relative;display:block;width:300px;height:150px}";export{a as taro_canvas_core}
@@ -0,0 +1 @@
1
+ var __awaiter=this&&this.__awaiter||function(t,e,i,o){function r(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,n){function s(t){try{l(o.next(t))}catch(t){n(t)}}function a(t){try{l(o["throw"](t))}catch(t){n(t)}}function l(t){t.done?i(t.value):r(t.value).then(s,a)}l((o=o.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},o,r,n,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(t){return function(e){return l([t,e])}}function l(s){if(o)throw new TypeError("Generator is already executing.");while(i)try{if(o=1,r&&(n=s[0]&2?r["return"]:s[0]?r["throw"]||((n=r["return"])&&n.call(r),0):r.next)&&!(n=n.call(r,s[1])).done)return n;if(r=0,n)s=[s[0]&2,n.value];switch(s[0]){case 0:case 1:n=s;break;case 4:i.label++;return{value:s[1],done:false};case 5:i.label++;r=s[1];s=[0];continue;case 7:s=i.ops.pop();i.trys.pop();continue;default:if(!(n=i.trys,n=n.length>0&&n[n.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!n||s[1]>n[0]&&s[1]<n[3])){i.label=s[1];break}if(s[0]===6&&i.label<n[1]){i.label=n[1];n=s;break}if(n&&i.label<n[2]){i.label=n[2];i.ops.push(s);break}if(n[2])i.ops.pop();i.trys.pop();continue}s=e.call(t,i)}catch(t){s=[6,t];r=0}finally{o=n=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,e){for(var i=0,o=e.length,r=t.length;i<o;i++,r++)t[r]=e[i];return t};System.register(["./p-93748645.system.js","./p-696f0d1c.system.js"],(function(t){"use strict";var e,i,o,r,n,s;return{setters:[function(t){e=t.r;i=t.h;o=t.H;r=t.g;n=t.c},function(t){s=t.c}],execute:function(){var a=function(t){if(t==null)return"";var e=Math.round(t%60);var i=Math.round((t-e)/60);return(i<10?"0"+i:i)+":"+(e<10?"0"+e:e)};var l=function(t,e){return Math.sqrt(Math.pow(t,2)+Math.pow(e,2))};var u=function(t){return Math.max(-1,Math.min(t,1))};var c=function(t,e){var i=0;return function(){var o=Date.now();if(o-i>e){t.apply(this,arguments);i=o}}};var d=function(){var t;var e=[["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 i=["webkitEnterFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"];var o=0;var r=e.length;var n={};for(;o<r;o++){t=e[o];if(t&&t[1]in document){for(o=0;o<t.length;o++){n[e[0][o]]=t[o]}return n}}if(!n[e[0][0]]){for(o=0;o<i.length;o++){n[e[0][o]]=i[o]}}return n}();var h=t("taro_video_control",function(){function t(t){var i=this;e(this,t);this.visible=false;this.isDraggingProgressBall=false;this.percentage=0;this.progressDimentions={left:0,width:0};this.calcPercentage=function(t){var e=t-i.progressDimentions.left;e=Math.max(e,0);e=Math.min(e,i.progressDimentions.width);return e/i.progressDimentions.width};this.onDragProgressBallStart=function(){i.isDraggingProgressBall=true;i.hideControlsTimer&&clearTimeout(i.hideControlsTimer)};this.onClickProgress=function(t){t.stopPropagation();var e=i.calcPercentage(t.pageX);i.seekFunc(e*i.duration);i.toggleVisibility(true)}}t.prototype.onDocumentTouchMove=function(t){if(!this.isDraggingProgressBall)return;var e=t.touches[0].pageX;this.percentage=this.calcPercentage(e);this.setProgressBall(this.percentage);this.setCurrentTime(this.percentage*this.duration)};t.prototype.onDocumentTouchEnd=function(){if(!this.isDraggingProgressBall)return;this.isDraggingProgressBall=false;this.seekFunc(this.percentage*this.duration);this.toggleVisibility(true)};t.prototype.setProgressBall=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.progressBallRef){this.progressBallRef.style.left=t*100+"%"}return[2]}))}))};t.prototype.toggleVisibility=function(t){return __awaiter(this,void 0,void 0,(function(){var e;var i=this;return __generator(this,(function(o){e=t===undefined?!this.visible:t;if(e){this.hideControlsTimer&&clearTimeout(this.hideControlsTimer);if(this.isPlaying){this.hideControlsTimer=setTimeout((function(){i.toggleVisibility(false)}),2e3)}this.controlsRef.style.visibility="visible"}else{this.controlsRef.style.visibility="hidden"}this.visible=!!e;return[2]}))}))};t.prototype.getIsDraggingProgressBall=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.isDraggingProgressBall]}))}))};t.prototype.setCurrentTime=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.currentTimeRef.innerHTML=a(t);return[2]}))}))};t.prototype.render=function(){var t=this;var e=this,r=e.controls,n=e.currentTime,s=e.duration,l=e.isPlaying,u=e.pauseFunc,c=e.playFunc,d=e.showPlayBtn,h=e.showProgress;var g=a(s);var f;if(!d){f=null}else if(l){f=i("div",{class:"taro-video-control-button taro-video-control-button-pause",onClick:u})}else{f=i("div",{class:"taro-video-control-button taro-video-control-button-play",onClick:c})}return i(o,{class:"taro-video-bar taro-video-bar-full"},r&&i("div",{class:"taro-video-controls"},f,h&&i("div",{class:"taro-video-current-time",ref:function(e){return t.currentTimeRef=e}},a(n)),h&&i("div",{class:"taro-video-progress-container",onClick:this.onClickProgress},i("div",{class:"taro-video-progress",ref:function(e){if(!e)return;var i=e.getBoundingClientRect();t.progressDimentions.left=i.left;t.progressDimentions.width=i.width}},i("div",{class:"taro-video-progress-buffered",style:{width:"100%"}}),i("div",{class:"taro-video-ball",ref:function(e){return t.progressBallRef=e},onTouchStart:this.onDragProgressBallStart,style:{left:(g?this.currentTime/s*100:0)+"%"}},i("div",{class:"taro-video-inner"})))),h&&i("div",{class:"taro-video-duration"},g)),i("slot",null))};Object.defineProperty(t.prototype,"controlsRef",{get:function(){return r(this)},enumerable:false,configurable:true});return t}());var g='.taro-video{width:100%;height:225px;display:inline-block;line-height:0;overflow:hidden;position:relative}.taro-video[hidden]{display:none}.taro-video-container{width:100%;height:100%;background-color:#000;display:inline-block;position:absolute;top:0;left:0;overflow:hidden;-o-object-position:inherit;object-position:inherit}.taro-video-container.taro-video-type-fullscreen{position:fixed;top:0;left:0;right: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{position:absolute;top:0;left:0;bottom:0;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;background-color:rgba(1, 1, 1, 0.5);z-index:1}.taro-video-cover-play-button{width:40px;height:40px;background-size:50%;background-repeat:no-repeat;background-position:50% 50%}.taro-video-cover-duration{color:#fff;font-size:16px;line-height:1;margin-top:10px}.taro-video-bar{visibility:hidden;height:44px;background-color:rgba(0, 0, 0, 0.5);overflow:hidden;position:absolute;bottom:0;right:0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:0 10px;z-index:1}.taro-video-bar.taro-video-bar-full{left:0}.taro-video-controls{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;margin:0 8.5px}.taro-video-control-button{width:13px;height:15px;padding:14.5px 12.5px 14.5px 12.5px;margin-left:-8.5px;-webkit-box-sizing:content-box;box-sizing:content-box}.taro-video-control-button:after{content:"";display:block;width:100%;height:100%;background-size:100%;background-position:50% 50%;background-repeat:no-repeat}.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{height:14.5px;line-height:14.5px;margin-top:15px;margin-bottom:14.5px;font-size:12px;color:#cbcbcb}.taro-video-progress-container{-webkit-box-flex:2;-webkit-flex-grow:2;-ms-flex-positive:2;flex-grow:2;position:relative}.taro-video-progress{height:2px;margin:21px 12px;background-color:rgba(255, 255, 255, 0.4);position:relative}.taro-video-progress-buffered{position:absolute;left:0;top:0;width:0;height:100%;-webkit-transition:width 0.1s;transition:width 0.1s;background-color:rgba(255, 255, 255, 0.8)}.taro-video-ball{width:16px;height:16px;padding:14px;position:absolute;top:-21px;-webkit-box-sizing:content-box;box-sizing:content-box;left:0;margin-left:-22px}.taro-video-inner{width:100%;height:100%;background-color:#fff;border-radius:50%}.taro-video-danmu-button{white-space:nowrap;line-height:1;padding:2px 10px;border:1px solid #fff;border-radius:5px;font-size:13px;color:#fff;margin:0 8.5px}.taro-video-danmu-button.taro-video-danmu-button-active{border-color:#48c23d;color:#48c23d}.taro-video-fullscreen,.taro-video-mute{width:17px;height:17px;padding:8.5px;-webkit-box-sizing:content-box;box-sizing:content-box;background-size:50%;background-position:50% 50%;background-repeat:no-repeat}.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,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAGAGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDAgNzkuMTYwNDUxLCAyMDE3LzA1LzA2LTAxOjA4OjIxICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxOCAoTWFjaW50b3NoKSIgeG1wOkNyZWF0ZURhdGU9IjIwMTktMDQtMTFUMTA6MTg6MjArMDg6MDAiIHhtcDpNb2RpZnlEYXRlPSIyMDE5LTA0LTExVDEwOjIyOjIyKzA4OjAwIiB4bXA6TWV0YWRhdGFEYXRlPSIyMDE5LTA0LTExVDEwOjIyOjIyKzA4OjAwIiBkYzpmb3JtYXQ9ImltYWdlL3BuZyIgcGhvdG9zaG9wOkNvbG9yTW9kZT0iMyIgcGhvdG9zaG9wOklDQ1Byb2ZpbGU9InNSR0IgSUVDNjE5NjYtMi4xIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjk3YmE4Yjg0LTFhNTYtNGM1MS04NDVkLTNiZmYyMGI0ZDc0ZiIgeG1wTU06RG9jdW1lbnRJRD0iYWRvYmU6ZG9jaWQ6cGhvdG9zaG9wOjg1NGQ3MjlkLWUwNjctZjU0OC1hMTlhLTBlZjQ4OGRkYjJiOSIgeG1wTU06T3JpZ2luYWxEb2N1bWVudElEPSJ4bXAuZGlkOjA1ODY3ZDFlLWQ3NGEtNDgyNC04MDU3LTYzYmRmMTdjODk5ZSI+IDx4bXBNTTpIaXN0b3J5PiA8cmRmOlNlcT4gPHJkZjpsaSBzdEV2dDphY3Rpb249ImNyZWF0ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6MDU4NjdkMWUtZDc0YS00ODI0LTgwNTctNjNiZGYxN2M4OTllIiBzdEV2dDp3aGVuPSIyMDE5LTA0LTExVDEwOjE4OjIwKzA4OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxOCAoTWFjaW50b3NoKSIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6OTdiYThiODQtMWE1Ni00YzUxLTg0NWQtM2JmZjIwYjRkNzRmIiBzdEV2dDp3aGVuPSIyMDE5LTA0LTExVDEwOjIyOjIyKzA4OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxOCAoTWFjaW50b3NoKSIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz459+FoAAABqElEQVRYhc2XPWsVQRSGnxPjF4oGRfxoRQKGWCU2Ft7CykrQWosEyf/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,iVBORw0KGgoAAAANSUhEUgAAACIAAAAgCAYAAAB3j6rJAAAACXBIWXMAAAsTAAALEwEAmpwYAAAGAGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDAgNzkuMTYwNDUxLCAyMDE3LzA1LzA2LTAxOjA4OjIxICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxOCAoTWFjaW50b3NoKSIgeG1wOkNyZWF0ZURhdGU9IjIwMTktMDQtMTFUMTA6MTk6MDMrMDg6MDAiIHhtcDpNb2RpZnlEYXRlPSIyMDE5LTA0LTExVDEwOjIyOjMzKzA4OjAwIiB4bXA6TWV0YWRhdGFEYXRlPSIyMDE5LTA0LTExVDEwOjIyOjMzKzA4OjAwIiBkYzpmb3JtYXQ9ImltYWdlL3BuZyIgcGhvdG9zaG9wOkNvbG9yTW9kZT0iMyIgcGhvdG9zaG9wOklDQ1Byb2ZpbGU9InNSR0IgSUVDNjE5NjYtMi4xIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjAzYjJmNjE2LTZmZTUtNDJjNC1iNTgwLTczNzZjZjI2NzdmNSIgeG1wTU06RG9jdW1lbnRJRD0iYWRvYmU6ZG9jaWQ6cGhvdG9zaG9wOjYzZjQ2NTYzLWE0ZjktOGQ0Mi1hM2FhLTY3ODJhNDBhYWNjMSIgeG1wTU06T3JpZ2luYWxEb2N1bWVudElEPSJ4bXAuZGlkOjIyYWNjMWFlLTg4ZmMtNDBlZi1iMWM1LTNmODgwY2QzYWI2MiI+IDx4bXBNTTpIaXN0b3J5PiA8cmRmOlNlcT4gPHJkZjpsaSBzdEV2dDphY3Rpb249ImNyZWF0ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6MjJhY2MxYWUtODhmYy00MGVmLWIxYzUtM2Y4ODBjZDNhYjYyIiBzdEV2dDp3aGVuPSIyMDE5LTA0LTExVDEwOjE5OjAzKzA4OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxOCAoTWFjaW50b3NoKSIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6MDNiMmY2MTYtNmZlNS00MmM0LWI1ODAtNzM3NmNmMjY3N2Y1IiBzdEV2dDp3aGVuPSIyMDE5LTA0LTExVDEwOjIyOjMzKzA4OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxOCAoTWFjaW50b3NoKSIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+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{position:absolute;top:0;left:0;bottom:0;width:100%;margin-top:14px;margin-bottom:44px;font-size:14px;line-height:14px;overflow:visible}.taro-video-danmu-item{line-height:1;position:absolute;color:#fff;white-space:nowrap;left:100%;-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{pointer-events:none;position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);border-radius:5px;background-color:rgba(255, 255, 255, 0.8);color:#000;display:block;visibility:hidden}.taro-video-toast.taro-video-toast-volume{width:100px;height:100px;display:block}.taro-video-toast-volume .taro-video-toast-title{width:100%;font-size:12px;line-height:16px;text-align:center;margin-top:10px;display:block}.taro-video-toast-volume .taro-video-toast-icon{fill:#000;width:50%;height:50%;margin-left:25%;display:block;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+4w2p8DRvoEnAPcXTVaY70QAbrbXwIONX7zBSAL/tvrk1+iviTllnRry2irr/QSEws4D7izCxMg1XQLLAQGGXpeCkw22kOWI49RMUujCJC+uwAfGtfcImAng4AtAMsBeg04pIkESOfbgQsMsNoGnxrtSrfv7rXrSlwXWN6kLZBgEBiB8iWUUZZPIN/AF1nMoiYSICDfAlt5iB4CxhpAzwXuMtqPBuY1lYB5wFEeqFeAwwyguvIUqvuiQO/xphJwP3Cmhyh0EKrOoGDIF7n+M5pKwEwXrqdBCaQSM77Ig7SSIicDs5pKwIvACA+pzFwZIF9OlKm36QyQV7jEqDDJk5VD58uFgGIGX1Se+6yJFqAKsqI6X84GdDb4Mh0Y5zUqjFYFakUTCXja5QLSmBQHbAL8ahAgT1AeYVreSKLLphGwF/CuAfLJQLldGSTFD75c5d4mNCoWyAqG9gYWGED1AOMKo12ZbiWA/idA++deY2DVTZ0Jh5UJPsFQtD/wDaAHGWl5EzgwaUi2gK4UXS11S0cTIjrMFBtYQdAk4DID0BnAAz4B6wNLgTKKG0VIDBHwqitwpOcW+OOB540FdeipNKbUWFrUtn06o5xOij4KyDuqU0IE3Obl/rLA63pTzm9XA8jKACjdniZAaSKFmUpB1yUhAlTsUEpMh913wEkuTe7rKTzPAHqO44vpKPkFhH3cWWBVV6ogJVYZUgz/tXtIYelzI3Ct0fExIGx6j7iKWBUUveyYBehv1RIjIEsfqziq8Xp4pSBJOYTVJFQcVY3wCFeKUjVGyYfQWB00+5bEVBECrNS+qsOKBpVHNCVWHs+LS7H5PV5pOu9v0+OKEOAXR39w1e1C7wM6AkJ1eLmkRcrpRQiQrqobXO5S3vL3/4kBKMsCknV0k+iasVLUMV3UX5SAPGtED8EOT+L9YENnCasUIXNO2goChFWHqAIRyxXN4qI1BCQg9dJESYq8LnbrCBAR8t50Lig6i0krCRBoVWhVlt45wkBrCRBuRZyPuAguxIPe9lXqhpd9DcZMXOvdkPF0Xu/8dohNUmZ/1QQkuitXr+d4fryuFx3jywQYm6suAqSX8vLTXKJDt4QqO6rtLYspXWZ/nQQkOJTAUJZGIav19q9MvKvN1RUIWKMAY5P3EBBjqO393d4C/gMVHwRQlpx21QAAAABJRU5ErkJggg==);background-size:50%;background-position:50% 50%;background-repeat:no-repeat}.taro-video-toast-volume .taro-video-toast-value{width:80px;height:5px;margin-top:5px;margin-left:10px}.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{background-color:rgba(0, 0, 0, 0.8);color:#fff;font-size:14px;line-height:18px;padding:6px}';var f=t("taro_video_core",function(){function t(t){var i=this;e(this,t);this.onPlay=n(this,"play",7);this.onPause=n(this,"pause",7);this.onEnded=n(this,"ended",7);this.onTimeUpdate=n(this,"timeupdate",7);this.onError=n(this,"error",7);this.onFullScreenChange=n(this,"fullscreenchange",7);this.onProgress=n(this,"progress",7);this.onLoadedMetaData=n(this,"loadedmetadata",7);this.currentTime=0;this.isDraggingProgress=false;this.gestureType="none";this.controls=true;this.autoplay=false;this.loop=false;this.muted=false;this.initialTime=0;this.objectFit="contain";this.showProgress=true;this.showFullscreenBtn=true;this.showPlayBtn=true;this.showCenterPlayBtn=true;this.showMuteBtn=false;this.danmuBtn=false;this.enableDanmu=false;this.enablePlayGesture=false;this.enableProgressGesture=true;this.vslideGesture=false;this.vslideGestureInFullscreen=true;this.nativeProps={};this._enableDanmu=false;this.isPlaying=false;this.isFirst=true;this.isFullScreen=false;this.fullScreenTimestamp=(new Date).getTime();this.isMute=false;this.analyseGesture=function(t){var e;var o={type:"none"};var r=t.touches[0].screenX;var n=t.touches[0].screenY;var s=r-i.lastTouchScreenX;var a=n-i.lastTouchScreenY;var c=i.isFullScreen?i.vslideGestureInFullscreen:i.vslideGesture;if(i.gestureType==="none"){var d=l(s,a);if(d<10)return o;if(Math.abs(a)>=Math.abs(s)){if(c){i.gestureType="adjustVolume";i.lastVolume=i.videoRef.volume}else{return o}}else if(Math.abs(a)<Math.abs(s)){if(i.enableProgressGesture){i.gestureType="adjustProgress";i.lastPercentage=i.currentTime/((e=i.duration)!==null&&e!==void 0?e:i._duration)}else{return o}}}o.type=i.gestureType;o.dataX=u(s/200);o.dataY=u(a/200);return o};this.handlePlay=function(){i.isPlaying=true;i.isFirst=false;i.controlsRef.toggleVisibility(true);i.onPlay.emit()};this.handlePause=function(){i.isPlaying=false;i.controlsRef.toggleVisibility(true);i.onPause.emit()};this.handleEnded=function(){i.isFirst=true;i.pause();i.controlsRef.toggleVisibility();i.onEnded.emit()};this.handleTimeUpdate=c((function(t){return __awaiter(i,void 0,void 0,(function(){var e,i,o,r;return __generator(this,(function(n){switch(n.label){case 0:this.currentTime=this.videoRef.currentTime;o=this.duration||this._duration;return[4,this.controlsRef.getIsDraggingProgressBall()];case 1:r=n.sent();if(this.controls&&this.showProgress){if(!r&&!this.isDraggingProgress){this.controlsRef.setProgressBall(this.currentTime/o);this.controlsRef.setCurrentTime(this.currentTime)}}this.danmuRef.tick(this.currentTime);this.onTimeUpdate.emit({duration:(e=t.target)===null||e===void 0?void 0:e.duration,currentTime:(i=t.target)===null||i===void 0?void 0:i.currentTime});if(this.duration){if(this.currentTime>=this.duration){this.seek(0);this.handleEnded()}}return[2]}}))}))}),250);this.handleError=function(t){var e,o;i.onError.emit({errMsg:(o=(e=t.target)===null||e===void 0?void 0:e.error)===null||o===void 0?void 0:o.message})};this.handleDurationChange=function(){i._duration=i.videoRef.duration};this.handleProgress=function(){i.onProgress.emit()};this.handleLoadedMetaData=function(t){var e=t.target;i.onLoadedMetaData.emit({width:e.videoWidth,height:e.videoHeight,duration:e.duration})};this._play=function(){return i.videoRef.play()};this._pause=function(){return i.videoRef.pause()};this._stop=function(){i.videoRef.pause();i._seek(0)};this._seek=function(t){i.videoRef.currentTime=t};this.onTouchStartContainer=function(t){i.lastTouchScreenX=t.touches[0].screenX;i.lastTouchScreenY=t.touches[0].screenY};this.onClickContainer=function(){if(i.enablePlayGesture){var t=Date.now();if(t-i.lastClickedTime<300){i.isPlaying?i.pause():i.play()}i.lastClickedTime=t}i.controlsRef.toggleVisibility()};this.onClickFullScreenBtn=function(t){t.stopPropagation();i.toggleFullScreen()};this.handleFullScreenChange=function(t){var e=(new Date).getTime();if(!t.detail&&i.isFullScreen&&!document[d.fullscreenElement]&&e-i.fullScreenTimestamp>100){i.toggleFullScreen(false)}};this.toggleFullScreen=function(t){if(t===void 0){t=!i.isFullScreen}i.isFullScreen=t;i.controlsRef.toggleVisibility(true);i.fullScreenTimestamp=(new Date).getTime();i.onFullScreenChange.emit({fullScreen:i.isFullScreen,direction:"vertical"});if(i.isFullScreen&&!document[d.fullscreenElement]){setTimeout((function(){i.videoRef[d.requestFullscreen]({navigationUI:"show"})}),0)}};this.toggleMute=function(t){t.stopPropagation();i.videoRef.muted=!i.isMute;i.controlsRef.toggleVisibility(true);i.isMute=!i.isMute};this.toggleDanmu=function(t){t.stopPropagation();i.controlsRef.toggleVisibility(true);i._enableDanmu=!i._enableDanmu}}t.prototype.componentWillLoad=function(){this._enableDanmu=this.enableDanmu};t.prototype.componentDidLoad=function(){if(this.initialTime){this.videoRef.currentTime=this.initialTime}this.danmuRef.sendDanmu(this.danmuList);if(document.addEventListener){document.addEventListener(d.fullscreenchange,this.handleFullScreenChange)}};t.prototype.componentDidRender=function(){};t.prototype.disconnectedCallback=function(){if(document.removeEventListener){document.removeEventListener(d.fullscreenchange,this.handleFullScreenChange)}};t.prototype.watchEnableDanmu=function(t){this._enableDanmu=t};t.prototype.onDocumentTouchMove=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,o;return __generator(this,(function(r){switch(r.label){case 0:if(this.lastTouchScreenX===undefined||this.lastTouchScreenY===undefined)return[2];return[4,this.controlsRef.getIsDraggingProgressBall()];case 1:if(r.sent())return[2];e=this.analyseGesture(t);if(e.type==="adjustVolume"){this.toastVolumeRef.style.visibility="visible";i=Math.max(Math.min(this.lastVolume-e.dataY,1),0);this.videoRef.volume=i;this.toastVolumeBarRef.style.width=i*100+"%"}else if(e.type==="adjustProgress"){this.isDraggingProgress=true;this.nextPercentage=Math.max(Math.min(this.lastPercentage+e.dataX,1),0);if(this.controls&&this.showProgress){this.controlsRef.setProgressBall(this.nextPercentage);this.controlsRef.toggleVisibility(true)}o=this.duration||this._duration;this.toastProgressTitleRef.innerHTML=a(this.nextPercentage*o)+" / "+a(o);this.toastProgressRef.style.visibility="visible"}return[2]}}))}))};t.prototype.onDocumentTouchEnd=function(){var t;if(this.gestureType==="adjustVolume"){this.toastVolumeRef.style.visibility="hidden"}else if(this.gestureType==="adjustProgress"){this.toastProgressRef.style.visibility="hidden"}if(this.isDraggingProgress){this.isDraggingProgress=false;this.seek(this.nextPercentage*((t=this.duration)!==null&&t!==void 0?t:this._duration))}this.gestureType="none";this.lastTouchScreenX=undefined;this.lastTouchScreenY=undefined};t.prototype.play=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this._play();return[2]}))}))};t.prototype.pause=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this._pause();return[2]}))}))};t.prototype.stop=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this._stop();return[2]}))}))};t.prototype.seek=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this._seek(t);return[2]}))}))};t.prototype.requestFullScreen=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.toggleFullScreen(true);return[2]}))}))};t.prototype.exitFullScreen=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.toggleFullScreen(false);return[2]}))}))};t.prototype.render=function(){var t=this;var e=this,r=e.src,n=e.controls,l=e.autoplay,u=e.loop,c=e.muted,d=e.poster,h=e.objectFit,g=e.isFirst,f=e.isMute,A=e.isFullScreen,p=e.duration,v=e._duration,b=e.showCenterPlayBtn,m=e.isPlaying,y=e._enableDanmu,w=e.showMuteBtn,E=e.danmuBtn,k=e.showFullscreenBtn,x=e.nativeProps;var T=a(p||v||null);return i(o,{class:s("taro-video-container",{"taro-video-type-fullscreen":A}),onTouchStart:this.onTouchStartContainer,onClick:this.onClickContainer},i("video",Object.assign({class:"taro-video-video",style:{"object-fit":h},ref:function(e){if(e){t.videoRef=e}},src:r,autoplay:l,loop:u,muted:c,poster:n?d:undefined,playsinline:true,"webkit-playsinline":true,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onTimeUpdate:this.handleTimeUpdate,onError:this.handleError,onDurationChange:this.handleDurationChange,onProgress:this.handleProgress,onLoadedMetaData:this.handleLoadedMetaData},x),"暂时不支持播放该视频"),i("taro-video-danmu",{ref:function(e){if(e){t.danmuRef=e}},enable:y}),g&&b&&!m&&i("div",{class:"taro-video-cover"},i("div",{class:"taro-video-cover-play-button",onClick:function(){return t.play()}}),i("p",{class:"taro-video-cover-duration"},T)),i("taro-video-control",{ref:function(e){if(e){t.controlsRef=e}},controls:n,currentTime:this.currentTime,duration:this.duration||this._duration||undefined,isPlaying:this.isPlaying,pauseFunc:this._pause,playFunc:this._play,seekFunc:this._seek,showPlayBtn:this.showPlayBtn,showProgress:this.showProgress},w&&i("div",{class:s("taro-video-mute",{"taro-video-type-mute":f}),onClick:this.toggleMute}),E&&i("div",{class:s("taro-video-danmu-button",{"taro-video-danmu-button-active":y}),onClick:this.toggleDanmu},"弹幕"),k&&i("div",{class:s("taro-video-fullscreen",{"taro-video-type-fullscreen":A}),onClick:this.onClickFullScreenBtn})),i("div",{class:"taro-video-toast taro-video-toast-volume",ref:function(e){if(e){t.toastVolumeRef=e}}},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:function(e){if(e){t.toastVolumeBarRef=e}}},i("div",{class:"taro-video-toast-volume-grids"},Array(10).fill(1).map((function(){return i("div",{class:"taro-video-toast-volume-grids-item"})})))))),i("div",{class:"taro-video-toast taro-video-toast-progress",ref:function(e){if(e){t.toastProgressRef=e}}},i("div",{class:"taro-video-toast-title",ref:function(e){if(e){t.toastProgressTitleRef=e}}})))};Object.defineProperty(t.prototype,"el",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{enableDanmu:["watchEnableDanmu"]}},enumerable:false,configurable:true});return t}());f.style=g;var A=t("taro_video_danmu",function(){function t(t){e(this,t);this.list=[];this.danmuElList=[];this.currentTime=0;this.enable=false;this.danmuList=[]}t.prototype.ensureProperties=function(t){var e=Object.assign({},t);if(!("time"in t)){e.time=this.currentTime}e.key=Math.random();e.bottom=Math.random()*90+5+"%";return e};t.prototype.sendDanmu=function(t){if(t===void 0){t=[]}return __awaiter(this,void 0,void 0,(function(){var e;var i=this;return __generator(this,(function(o){if(Array.isArray(t)){this.list=__spreadArray(__spreadArray([],this.list),t.map((function(t){return i.ensureProperties(t)})))}else{e=t;this.list=__spreadArray(__spreadArray([],this.list),[Object.assign({},this.ensureProperties(e))])}return[2]}))}))};t.prototype.tick=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,o,r;return __generator(this,(function(n){this.currentTime=t;if(!this.enable)return[2];e=this.list;i=e.filter((function(e){var i=e.time;return t-i<4&&t>i}));o=false;r=this.danmuList;if(i.length!==r.length){o=true}else{o=i.some((function(t){var e=t.key;return r.every((function(t){return e!==t.key}))}))}if(o){this.danmuList=i}return[2]}))}))};t.prototype.componentDidUpdate=function(){var t=this;requestAnimationFrame((function(){setTimeout((function(){var e=t.danmuElList.splice(0);e.forEach((function(t){t.style.left="0";t.style.webkitTransform="translateX(-100%)";t.style.transform="translateX(-100%)"}))}))}))};t.prototype.render=function(){var t=this;if(!this.enable)return"";return i(o,{class:"taro-video-danmu"},this.danmuList.map((function(e){var o=e.text,r=e.color,n=e.bottom,s=e.key;return i("p",{class:"taro-video-danmu-item",key:s,style:{color:r,bottom:n},ref:function(e){if(e){t.danmuElList.push(e)}}},o)})))};return t}())}}}));
@@ -0,0 +1 @@
1
+ import{r as e,h as o,H as r}from"./p-49ae5efb.js";let a=class{constructor(o){e(this,o)}componentDidLoad(){console.error("H5 暂不支持 MovableView 组件!")}render(){return o(r,null)}};export{a as taro_movable_view_core}
@@ -0,0 +1 @@
1
+ import{r as o,h as e,H as r}from"./p-49ae5efb.js";let a=class{constructor(e){o(this,e)}componentDidLoad(){console.error("H5 暂不支持 OpenData 组件!")}render(){return e(r,null)}};export{a as taro_open_data_core}
@@ -1 +1 @@
1
- import{p as e,b as o}from"./p-30c0639e.js";(()=>{const o=import.meta.url,r={};return""!==o&&(r.resourcesUrl=new URL(".",o).href),e(r)})().then((e=>o([["p-4afe24d7",[[4,"taro-checkbox-core",{name:[1],value:[1],color:[1],id:[1025],checked:[4],nativeProps:[16],isWillLoadCalled:[32]}],[0,"taro-checkbox-group-core",{name:[8]},[[0,"checkboxchange","function"]]]]],["p-c9380fa6",[[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-89fc30f0",[[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-906c3a0a",[[0,"taro-audio-core",{src:[1],controls:[4],autoplay:[4],loop:[4],muted:[4],nativeProps:[16]}]]],["p-9c47f99e",[[0,"taro-block-core"]]],["p-6730fa44",[[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-28348261",[[0,"taro-camera-core"]]],["p-af393b0b",[[0,"taro-canvas-core",{canvasId:[1,"canvas-id"],nativeProps:[16]}]]],["p-31f0f881",[[0,"taro-cover-image-core"]]],["p-6f331ed3",[[0,"taro-cover-view-core"]]],["p-4b632069",[[0,"taro-custom-wrapper-core"]]],["p-b7c29d05",[[4,"taro-form-core",{slotParent:[32]},[[0,"tarobuttonsubmit","onButtonSubmit"],[0,"tarobuttonreset","onButtonReset"]]]]],["p-4f1d45ff",[[0,"taro-icon-core",{type:[1],size:[8],color:[1]}]]],["p-c2810ece",[[0,"taro-image-core",{src:[1],mode:[1],lazyLoad:[4,"lazy-load"],nativeProps:[16],aspectFillMode:[32]}]]],["p-945fa1a0",[[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],_value:[32]}]]],["p-8676c058",[[4,"taro-label-core",{for:[1]}]]],["p-4591dff5",[[0,"taro-movable-area-core"]]],["p-a208926a",[[0,"taro-movable-view-core"]]],["p-96771939",[[0,"taro-navigator-core",{hoverClass:[1,"hover-class"],url:[1],openType:[1,"open-type"],isHover:[4,"is-hover"],delta:[2]},[[0,"click","onClick"]]]]],["p-180fd001",[[0,"taro-open-data-core"]]],["p-95f5261c",[[0,"taro-picker-view-column-core"]]],["p-ca74a018",[[0,"taro-picker-view-core"]]],["p-e302b8d7",[[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-9205470e",[[4,"taro-pull-to-refresh",{prefixCls:[1,"prefix-cls"],distanceToRefresh:[2,"distance-to-refresh"],damping:[2],indicator:[16],currSt:[32],dragOnEdge:[32]}]]],["p-e28625a2",[[0,"taro-rich-text-core",{nodes:[1]}]]],["p-a3e783c3",[[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-b2ed71a7",[[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-96f1e9e7",[[0,"taro-switch-core",{type:[1],checked:[4],color:[1],name:[1],disabled:[4],nativeProps:[16],isChecked:[32],isWillLoadCalled:[32]}]]],["p-593ee811",[[0,"taro-tabbar",{conf:[16],list:[32],selectedIndex:[32],status:[32]}]]],["p-66120099",[[4,"taro-text-core",{selectable:[4]}]]],["p-6287057a",[[0,"taro-textarea-core",{value:[1],placeholder:[1],disabled:[4],maxlength:[2],autoFocus:[4,"auto-focus"],name:[1],nativeProps:[16]}]]],["p-31b89eb3",[[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-5032d822",[[0,"taro-web-view-core",{src:[1]}]]],["p-80f50da7",[[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-9fe2309f",[[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-49ae5efb.js";(()=>{const o=import.meta.url,r={};return""!==o&&(r.resourcesUrl=new URL(".",o).href),e(r)})().then((e=>o([["p-de3a4828",[[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-0da88b1b",[[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-8cf16235",[[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-d12592f1",[[0,"taro-audio-core",{src:[1],controls:[4],autoplay:[4],loop:[4],muted:[4],nativeProps:[16]}]]],["p-a895db87",[[0,"taro-block-core"]]],["p-ca67c759",[[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-76c00960",[[0,"taro-camera-core"]]],["p-f4158e42",[[0,"taro-canvas-core",{canvasId:[1,"canvas-id"],nativeProps:[16]}]]],["p-33bcdee9",[[0,"taro-cover-image-core",{src:[1],nativeProps:[16]}]]],["p-cb8099dd",[[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-3554df41",[[0,"taro-custom-wrapper-core"]]],["p-26c08f44",[[4,"taro-form-core",{slotParent:[32]},[[0,"tarobuttonsubmit","onButtonSubmit"],[0,"tarobuttonreset","onButtonReset"]]]]],["p-4a2ffc1c",[[0,"taro-icon-core",{type:[1],size:[8],color:[1]}]]],["p-0fb7f599",[[0,"taro-image-core",{src:[1],mode:[1],lazyLoad:[4,"lazy-load"],nativeProps:[16],aspectFillMode:[32]}]]],["p-39bee235",[[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],_value:[32]}]]],["p-6daacf48",[[4,"taro-label-core",{for:[1]}]]],["p-d6a37b93",[[0,"taro-movable-area-core"]]],["p-f7b6c1a6",[[0,"taro-movable-view-core"]]],["p-4ff67760",[[0,"taro-navigator-core",{hoverClass:[1,"hover-class"],url:[1],openType:[1,"open-type"],isHover:[4,"is-hover"],delta:[2]},[[0,"click","onClick"]]]]],["p-f991bc7b",[[0,"taro-open-data-core"]]],["p-9767491b",[[0,"taro-picker-view-column-core"]]],["p-17c0731f",[[0,"taro-picker-view-core"]]],["p-3e2d4793",[[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-5d84eaf0",[[4,"taro-pull-to-refresh",{prefixCls:[1,"prefix-cls"],distanceToRefresh:[2,"distance-to-refresh"],damping:[2],indicator:[16],currSt:[32],dragOnEdge:[32]}]]],["p-ce093936",[[0,"taro-rich-text-core",{nodes:[1]}]]],["p-923c6e08",[[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-1507bcbf",[[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-37cfef64",[[0,"taro-switch-core",{type:[1],checked:[4],color:[1],name:[1],disabled:[4],nativeProps:[16],isChecked:[32],isWillLoadCalled:[32]}]]],["p-a03009b5",[[0,"taro-tabbar",{conf:[16],list:[32],borderStyle:[32],backgroundColor:[32],color:[32],selectedColor:[32],selectedIndex:[32],status:[32]}]]],["p-7b021c48",[[4,"taro-text-core",{selectable:[4]}]]],["p-79b3c05a",[[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-7a5be745",[[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-7f3e5f09",[[0,"taro-web-view-core",{src:[1]}]]],["p-81588c19",[[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-72f2b6f5",[[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-b5d2597b.system.js', new URL(resourcesUrl, window.location.origin));
117
+ var url = new URL('./p-30bfacb9.system.js', new URL(resourcesUrl, window.location.origin));
118
118
  System.import(url.href);
119
119
  };
120
120
 
@@ -6,6 +6,7 @@ export declare class Checkbox implements ComponentInterface {
6
6
  color: string;
7
7
  id: string;
8
8
  checked: boolean;
9
+ disabled: boolean;
9
10
  nativeProps: {};
10
11
  isWillLoadCalled: boolean;
11
12
  el: HTMLElement;
@@ -0,0 +1,11 @@
1
+ import { ComponentInterface, EventEmitter } from '../../stencil-public-runtime';
2
+ export declare class CoverImage implements ComponentInterface {
3
+ src: string;
4
+ nativeProps: {};
5
+ onLoad: EventEmitter;
6
+ onError: EventEmitter;
7
+ private imgRef;
8
+ imageOnLoad(): void;
9
+ imageOnError(): void;
10
+ render(): any;
11
+ }
@@ -1,4 +1,16 @@
1
- export declare class CoverView {
2
- componentDidLoad(): void;
1
+ import { ComponentInterface, EventEmitter } from '../../stencil-public-runtime';
2
+ export declare class CoverView implements ComponentInterface {
3
+ animation: string;
4
+ hoverClass: string;
5
+ hoverStartTime: number;
6
+ hoverStayTime: number;
7
+ hover: boolean;
8
+ touch: boolean;
9
+ onLongPress: EventEmitter;
10
+ private timeoutEvent;
11
+ private startTime;
12
+ onTouchStart(): void;
13
+ onTouchMove(): void;
14
+ onTouchEnd(): void;
3
15
  render(): any;
4
16
  }
@@ -35,6 +35,10 @@ export declare class Tabbar implements ComponentInterface {
35
35
  private tabbarPos;
36
36
  conf: Conf;
37
37
  list: TabbarList[];
38
+ borderStyle: Conf['borderStyle'];
39
+ backgroundColor: Conf['backgroundColor'];
40
+ color: Conf['color'];
41
+ selectedColor: Conf['selectedColor'];
38
42
  selectedIndex: number;
39
43
  status: 0 | 1 | 2;
40
44
  onLongPress: EventEmitter;
@@ -46,7 +50,7 @@ export declare class Tabbar implements ComponentInterface {
46
50
  switchTab: (index: number) => void;
47
51
  switchTabHandler: ({ url, successHandler, errorHandler }: RouterHandler) => void;
48
52
  routerChangeHandler: (options?: any) => void;
49
- setTabBarBadgeHandler: ({ index, text, errorHandler }: RouterHandler) => void;
53
+ setTabBarBadgeHandler: ({ index, text, successHandler, errorHandler }: RouterHandler) => void;
50
54
  removeTabBarBadgeHandler: ({ index, successHandler, errorHandler }: RouterHandler) => void;
51
55
  showTabBarRedDotHandler: ({ index, successHandler, errorHandler }: RouterHandler) => void;
52
56
  hideTabBarRedDotHandler: ({ index, successHandler, errorHandler }: RouterHandler) => void;
@@ -57,6 +61,21 @@ export declare class Tabbar implements ComponentInterface {
57
61
  animation: any;
58
62
  successHandler: any;
59
63
  }) => void;
64
+ setTabBarStyleHandler: ({ color, selectedColor, backgroundColor, borderStyle, successHandler }: {
65
+ color: any;
66
+ selectedColor: any;
67
+ backgroundColor: any;
68
+ borderStyle: any;
69
+ successHandler: any;
70
+ }) => void;
71
+ setTabBarItemHandler: ({ index, iconPath, selectedIconPath, text, successHandler, errorHandler }: {
72
+ index: any;
73
+ iconPath: any;
74
+ selectedIconPath: any;
75
+ text: any;
76
+ successHandler: any;
77
+ errorHandler: any;
78
+ }) => void;
60
79
  bindEvent(): void;
61
80
  removeEvent(): void;
62
81
  componentDidLoad(): void;
@@ -8,16 +8,22 @@ export declare class Textarea implements ComponentInterface {
8
8
  disabled: boolean;
9
9
  maxlength: number;
10
10
  autoFocus: boolean;
11
+ autoHeight: boolean;
11
12
  name: string;
12
13
  nativeProps: {};
14
+ line: number;
13
15
  onInput: EventEmitter;
14
16
  onFocus: EventEmitter;
15
17
  onBlur: EventEmitter;
16
18
  onChange: EventEmitter;
19
+ onLineChange: EventEmitter;
17
20
  componentDidLoad(): void;
18
21
  hanldeInput: (e: TaroEvent<HTMLInputElement>) => void;
19
22
  handleFocus: (e: TaroEvent<HTMLInputElement> & FocusEvent) => void;
20
23
  handleBlur: (e: TaroEvent<HTMLInputElement> & FocusEvent) => void;
21
24
  handleChange: (e: TaroEvent<HTMLInputElement>) => void;
25
+ handleLineChange: () => void;
26
+ calculateContentHeight: (ta: any, scanAmount: any) => any;
27
+ getNumberOfLines: () => number;
22
28
  render(): any;
23
29
  }
@@ -1,5 +1,6 @@
1
1
  import { ComponentInterface, EventEmitter } from '../../stencil-public-runtime';
2
2
  export declare class View implements ComponentInterface {
3
+ el: HTMLElement;
3
4
  animation: string;
4
5
  hoverClass: string;
5
6
  hoverStartTime: number;
@@ -12,5 +13,6 @@ export declare class View implements ComponentInterface {
12
13
  onTouchStart(): void;
13
14
  onTouchMove(): void;
14
15
  onTouchEnd(): void;
16
+ componentDidRender(): void;
15
17
  render(): any;
16
18
  }