@tarojs/components 3.5.7 → 3.6.0-canary.1

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 (902) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/helper-db78e01a.js +2 -0
  3. package/dist/cjs/helper-db78e01a.js.map +1 -0
  4. package/dist/cjs/hls-67cbc62d.js +27624 -0
  5. package/dist/cjs/hls-67cbc62d.js.map +1 -0
  6. package/dist/cjs/index-47a1959e.js +2 -0
  7. package/dist/cjs/index-47a1959e.js.map +1 -0
  8. package/dist/cjs/{index-7c61bee9.js → index-9174e0b1.js} +477 -234
  9. package/dist/cjs/index-9174e0b1.js.map +1 -0
  10. package/dist/cjs/index-f9d21cc5.js +2 -0
  11. package/dist/cjs/index-f9d21cc5.js.map +1 -0
  12. package/dist/cjs/index.cjs.js +2 -0
  13. package/dist/cjs/index.cjs.js.map +1 -0
  14. package/dist/cjs/intersection-observer-dc4cfcef.js +2 -0
  15. package/dist/cjs/intersection-observer-dc4cfcef.js.map +1 -0
  16. package/dist/cjs/loader.cjs.js +5 -3
  17. package/dist/cjs/loader.cjs.js.map +1 -0
  18. package/dist/cjs/taro-ad-core.cjs.entry.js +4 -2
  19. package/dist/cjs/taro-ad-core.cjs.entry.js.map +1 -0
  20. package/dist/cjs/taro-ad-custom-core.cjs.entry.js +4 -2
  21. package/dist/cjs/taro-ad-custom-core.cjs.entry.js.map +1 -0
  22. package/dist/cjs/taro-audio-core.cjs.entry.js +5 -2
  23. package/dist/cjs/taro-audio-core.cjs.entry.js.map +1 -0
  24. package/dist/cjs/taro-block-core.cjs.entry.js +4 -2
  25. package/dist/cjs/taro-block-core.cjs.entry.js.map +1 -0
  26. package/dist/cjs/taro-button-core.cjs.entry.js +7 -2
  27. package/dist/cjs/taro-button-core.cjs.entry.js.map +1 -0
  28. package/dist/cjs/taro-camera-core.cjs.entry.js +4 -2
  29. package/dist/cjs/taro-camera-core.cjs.entry.js.map +1 -0
  30. package/dist/cjs/taro-canvas-core.cjs.entry.js +6 -3
  31. package/dist/cjs/taro-canvas-core.cjs.entry.js.map +1 -0
  32. package/dist/cjs/taro-checkbox-core_2.cjs.entry.js +15 -9
  33. package/dist/cjs/taro-checkbox-core_2.cjs.entry.js.map +1 -0
  34. package/dist/cjs/taro-components.cjs.js +5 -3
  35. package/dist/cjs/taro-components.cjs.js.map +1 -0
  36. package/dist/cjs/taro-cover-image-core.cjs.entry.js +7 -4
  37. package/dist/cjs/taro-cover-image-core.cjs.entry.js.map +1 -0
  38. package/dist/cjs/taro-cover-view-core.cjs.entry.js +7 -3
  39. package/dist/cjs/taro-cover-view-core.cjs.entry.js.map +1 -0
  40. package/dist/cjs/taro-custom-wrapper-core.cjs.entry.js +4 -2
  41. package/dist/cjs/taro-custom-wrapper-core.cjs.entry.js.map +1 -0
  42. package/dist/cjs/taro-editor-core.cjs.entry.js +4 -2
  43. package/dist/cjs/taro-editor-core.cjs.entry.js.map +1 -0
  44. package/dist/cjs/taro-form-core.cjs.entry.js +34 -39
  45. package/dist/cjs/taro-form-core.cjs.entry.js.map +1 -0
  46. package/dist/cjs/taro-functional-page-navigator-core.cjs.entry.js +4 -2
  47. package/dist/cjs/taro-functional-page-navigator-core.cjs.entry.js.map +1 -0
  48. package/dist/cjs/taro-icon-core.cjs.entry.js +6 -2
  49. package/dist/cjs/taro-icon-core.cjs.entry.js.map +1 -0
  50. package/dist/cjs/taro-image-core.cjs.entry.js +7 -4
  51. package/dist/cjs/taro-image-core.cjs.entry.js.map +1 -0
  52. package/dist/cjs/taro-input-core.cjs.entry.js +29 -14
  53. package/dist/cjs/taro-input-core.cjs.entry.js.map +1 -0
  54. package/dist/cjs/taro-keyboard-accessory-core.cjs.entry.js +4 -2
  55. package/dist/cjs/taro-keyboard-accessory-core.cjs.entry.js.map +1 -0
  56. package/dist/cjs/taro-label-core.cjs.entry.js +5 -2
  57. package/dist/cjs/taro-label-core.cjs.entry.js.map +1 -0
  58. package/dist/cjs/taro-live-player-core.cjs.entry.js +4 -2
  59. package/dist/cjs/taro-live-player-core.cjs.entry.js.map +1 -0
  60. package/dist/cjs/taro-live-pusher-core.cjs.entry.js +4 -2
  61. package/dist/cjs/taro-live-pusher-core.cjs.entry.js.map +1 -0
  62. package/dist/cjs/taro-map-core.cjs.entry.js +4 -2
  63. package/dist/cjs/taro-map-core.cjs.entry.js.map +1 -0
  64. package/dist/cjs/taro-match-media-core.cjs.entry.js +4 -2
  65. package/dist/cjs/taro-match-media-core.cjs.entry.js.map +1 -0
  66. package/dist/cjs/{taro-movable-view-core.cjs.entry.js → taro-movable-area-core_2.cjs.entry.js} +187 -97
  67. package/dist/cjs/taro-movable-area-core_2.cjs.entry.js.map +1 -0
  68. package/dist/cjs/taro-navigation-bar-core.cjs.entry.js +4 -2
  69. package/dist/cjs/taro-navigation-bar-core.cjs.entry.js.map +1 -0
  70. package/dist/cjs/taro-navigator-core.cjs.entry.js +6 -2
  71. package/dist/cjs/taro-navigator-core.cjs.entry.js.map +1 -0
  72. package/dist/cjs/taro-official-account-core.cjs.entry.js +4 -2
  73. package/dist/cjs/taro-official-account-core.cjs.entry.js.map +1 -0
  74. package/dist/cjs/taro-open-data-core.cjs.entry.js +4 -2
  75. package/dist/cjs/taro-open-data-core.cjs.entry.js.map +1 -0
  76. package/dist/cjs/taro-page-container-core.cjs.entry.js +4 -2
  77. package/dist/cjs/taro-page-container-core.cjs.entry.js.map +1 -0
  78. package/dist/cjs/taro-page-meta-core.cjs.entry.js +4 -2
  79. package/dist/cjs/taro-page-meta-core.cjs.entry.js.map +1 -0
  80. package/dist/cjs/taro-picker-core_2.cjs.entry.js +31 -15
  81. package/dist/cjs/taro-picker-core_2.cjs.entry.js.map +1 -0
  82. package/dist/cjs/{taro-picker-view-core.cjs.entry.js → taro-picker-view-column-core_2.cjs.entry.js} +101 -6
  83. package/dist/cjs/taro-picker-view-column-core_2.cjs.entry.js.map +1 -0
  84. package/dist/cjs/taro-progress-core.cjs.entry.js +7 -5
  85. package/dist/cjs/taro-progress-core.cjs.entry.js.map +1 -0
  86. package/dist/cjs/taro-pull-to-refresh.cjs.entry.js +10 -8
  87. package/dist/cjs/taro-pull-to-refresh.cjs.entry.js.map +1 -0
  88. package/dist/cjs/taro-radio-core_2.cjs.entry.js +15 -9
  89. package/dist/cjs/taro-radio-core_2.cjs.entry.js.map +1 -0
  90. package/dist/cjs/taro-rich-text-core.cjs.entry.js +5 -2
  91. package/dist/cjs/taro-rich-text-core.cjs.entry.js.map +1 -0
  92. package/dist/cjs/taro-root-portal-core.cjs.entry.js +4 -2
  93. package/dist/cjs/taro-root-portal-core.cjs.entry.js.map +1 -0
  94. package/dist/cjs/taro-scroll-view-core.cjs.entry.js +28 -22
  95. package/dist/cjs/taro-scroll-view-core.cjs.entry.js.map +1 -0
  96. package/dist/cjs/taro-share-element-core.cjs.entry.js +4 -2
  97. package/dist/cjs/taro-share-element-core.cjs.entry.js.map +1 -0
  98. package/dist/cjs/taro-slider-core.cjs.entry.js +37 -40
  99. package/dist/cjs/taro-slider-core.cjs.entry.js.map +1 -0
  100. package/dist/cjs/taro-slot-core.cjs.entry.js +4 -7
  101. package/dist/cjs/taro-slot-core.cjs.entry.js.map +1 -0
  102. package/dist/cjs/taro-swiper-core_2.cjs.entry.js +46 -72
  103. package/dist/cjs/taro-swiper-core_2.cjs.entry.js.map +1 -0
  104. package/dist/cjs/taro-switch-core.cjs.entry.js +12 -8
  105. package/dist/cjs/taro-switch-core.cjs.entry.js.map +1 -0
  106. package/dist/cjs/taro-tabbar.cjs.entry.js +12 -4
  107. package/dist/cjs/taro-tabbar.cjs.entry.js.map +1 -0
  108. package/dist/cjs/taro-text-core.cjs.entry.js +4 -2
  109. package/dist/cjs/taro-text-core.cjs.entry.js.map +1 -0
  110. package/dist/cjs/taro-textarea-core.cjs.entry.js +21 -10
  111. package/dist/cjs/taro-textarea-core.cjs.entry.js.map +1 -0
  112. package/dist/cjs/taro-video-control_3.cjs.entry.js +218 -27943
  113. package/dist/cjs/taro-video-control_3.cjs.entry.js.map +1 -0
  114. package/dist/cjs/taro-view-core.cjs.entry.js +7 -3
  115. package/dist/cjs/taro-view-core.cjs.entry.js.map +1 -0
  116. package/dist/cjs/taro-voip-room-core.cjs.entry.js +4 -2
  117. package/dist/cjs/taro-voip-room-core.cjs.entry.js.map +1 -0
  118. package/dist/cjs/taro-web-view-core.cjs.entry.js +5 -2
  119. package/dist/cjs/taro-web-view-core.cjs.entry.js.map +1 -0
  120. package/dist/collection/collection-manifest.json +16 -4
  121. package/dist/collection/components/ad/ad.js +2 -1
  122. package/dist/collection/components/ad/ad.js.map +1 -0
  123. package/dist/collection/components/ad-custom/ad-custom.js +2 -1
  124. package/dist/collection/components/ad-custom/ad-custom.js.map +1 -0
  125. package/dist/collection/components/audio/audio.js +199 -190
  126. package/dist/collection/components/audio/audio.js.map +1 -0
  127. package/dist/collection/components/block/block.js +2 -2
  128. package/dist/collection/components/block/block.js.map +1 -0
  129. package/dist/collection/components/button/button.js +224 -211
  130. package/dist/collection/components/button/button.js.map +1 -0
  131. package/dist/collection/components/camera/camera.js +2 -1
  132. package/dist/collection/components/camera/camera.js.map +1 -0
  133. package/dist/collection/components/canvas/canvas.js +67 -58
  134. package/dist/collection/components/canvas/canvas.js.map +1 -0
  135. package/dist/collection/components/checkbox/checkbox-group.js +50 -42
  136. package/dist/collection/components/checkbox/checkbox-group.js.map +1 -0
  137. package/dist/collection/components/checkbox/checkbox.js +175 -162
  138. package/dist/collection/components/checkbox/checkbox.js.map +1 -0
  139. package/dist/collection/components/cover-image/cover-image.js +83 -74
  140. package/dist/collection/components/cover-image/cover-image.js.map +1 -0
  141. package/dist/collection/components/cover-view/cover-view.js +131 -118
  142. package/dist/collection/components/cover-view/cover-view.js.map +1 -0
  143. package/dist/collection/components/custom-wrapper/custom-wrapper.js +2 -2
  144. package/dist/collection/components/custom-wrapper/custom-wrapper.js.map +1 -0
  145. package/dist/collection/components/editor/editor.js +2 -1
  146. package/dist/collection/components/editor/editor.js.map +1 -0
  147. package/dist/collection/components/form/form.js +66 -74
  148. package/dist/collection/components/form/form.js.map +1 -0
  149. package/dist/collection/components/functional-page-navigator/functional-page-navigator.js +2 -1
  150. package/dist/collection/components/functional-page-navigator/functional-page-navigator.js.map +1 -0
  151. package/dist/collection/components/icon/icon.js +61 -56
  152. package/dist/collection/components/icon/icon.js.map +1 -0
  153. package/dist/collection/components/image/image.js +125 -113
  154. package/dist/collection/components/image/image.js.map +1 -0
  155. package/dist/collection/components/input/input.js +336 -296
  156. package/dist/collection/components/input/input.js.map +1 -0
  157. package/dist/collection/components/keyboard-accessory/keyboard-accessory.js +2 -1
  158. package/dist/collection/components/keyboard-accessory/keyboard-accessory.js.map +1 -0
  159. package/dist/collection/components/label/label.js +27 -22
  160. package/dist/collection/components/label/label.js.map +1 -0
  161. package/dist/collection/components/live-player/live-player.js +2 -1
  162. package/dist/collection/components/live-player/live-player.js.map +1 -0
  163. package/dist/collection/components/live-pusher/live-pusher.js +2 -1
  164. package/dist/collection/components/live-pusher/live-pusher.js.map +1 -0
  165. package/dist/collection/components/map/map.js +2 -1
  166. package/dist/collection/components/map/map.js.map +1 -0
  167. package/dist/collection/components/match-media/match-media.js +2 -1
  168. package/dist/collection/components/match-media/match-media.js.map +1 -0
  169. package/dist/collection/components/movable-area/area.css +2 -2
  170. package/dist/collection/components/movable-area/movable-area.js +34 -26
  171. package/dist/collection/components/movable-area/movable-area.js.map +1 -0
  172. package/dist/collection/components/movable-area/movable-view.js +415 -457
  173. package/dist/collection/components/movable-area/movable-view.js.map +1 -0
  174. package/dist/collection/components/navigation-bar/navigation-bar.js +2 -1
  175. package/dist/collection/components/navigation-bar/navigation-bar.js.map +1 -0
  176. package/dist/collection/components/navigator/navigator.js +158 -145
  177. package/dist/collection/components/navigator/navigator.js.map +1 -0
  178. package/dist/collection/components/official-account/official-account.js +2 -1
  179. package/dist/collection/components/official-account/official-account.js.map +1 -0
  180. package/dist/collection/components/open-data/open-data.js +2 -1
  181. package/dist/collection/components/open-data/open-data.js.map +1 -0
  182. package/dist/collection/components/page-container/page-container.js +2 -1
  183. package/dist/collection/components/page-container/page-container.js.map +1 -0
  184. package/dist/collection/components/page-meta/page-meta.js +2 -1
  185. package/dist/collection/components/page-meta/page-meta.js.map +1 -0
  186. package/dist/collection/components/picker/constant.js +1 -0
  187. package/dist/collection/components/picker/constant.js.map +1 -0
  188. package/dist/collection/components/picker/picker-group.js +240 -176
  189. package/dist/collection/components/picker/picker-group.js.map +1 -0
  190. package/dist/collection/components/picker/picker.js +261 -257
  191. package/dist/collection/components/picker/picker.js.map +1 -0
  192. package/dist/collection/components/picker/utils.js +1 -0
  193. package/dist/collection/components/picker/utils.js.map +1 -0
  194. package/dist/collection/components/picker-view/picker-view-column.js +158 -147
  195. package/dist/collection/components/picker-view/picker-view-column.js.map +1 -0
  196. package/dist/collection/components/picker-view/picker-view.js +171 -159
  197. package/dist/collection/components/picker-view/picker-view.js.map +1 -0
  198. package/dist/collection/components/progress/progress.js +153 -157
  199. package/dist/collection/components/progress/progress.js.map +1 -0
  200. package/dist/collection/components/pull-to-refresh/pull-to-refresh.js +121 -114
  201. package/dist/collection/components/pull-to-refresh/pull-to-refresh.js.map +1 -0
  202. package/dist/collection/components/radio/radio-group.js +50 -43
  203. package/dist/collection/components/radio/radio-group.js.map +1 -0
  204. package/dist/collection/components/radio/radio.js +152 -144
  205. package/dist/collection/components/radio/radio.js.map +1 -0
  206. package/dist/collection/components/rich-text/rich-text.js +27 -23
  207. package/dist/collection/components/rich-text/rich-text.js.map +1 -0
  208. package/dist/collection/components/root-portal/root-portal.js +2 -1
  209. package/dist/collection/components/root-portal/root-portal.js.map +1 -0
  210. package/dist/collection/components/scroll-view/scroll-view.js +242 -220
  211. package/dist/collection/components/scroll-view/scroll-view.js.map +1 -0
  212. package/dist/collection/components/share-element/share-element.js +2 -1
  213. package/dist/collection/components/share-element/share-element.js.map +1 -0
  214. package/dist/collection/components/slider/slider.js +279 -283
  215. package/dist/collection/components/slider/slider.js.map +1 -0
  216. package/dist/collection/components/slot/slot.js +2 -5
  217. package/dist/collection/components/slot/slot.js.map +1 -0
  218. package/dist/collection/components/swiper/swiper-item.js +26 -21
  219. package/dist/collection/components/swiper/swiper-item.js.map +1 -0
  220. package/dist/collection/components/swiper/swiper.js +346 -368
  221. package/dist/collection/components/swiper/swiper.js.map +1 -0
  222. package/dist/collection/components/switch/switch.js +153 -139
  223. package/dist/collection/components/switch/switch.js.map +1 -0
  224. package/dist/collection/components/tabbar/tabbar-item.js +2 -6
  225. package/dist/collection/components/tabbar/tabbar-item.js.map +1 -0
  226. package/dist/collection/components/tabbar/tabbar.js +86 -70
  227. package/dist/collection/components/tabbar/tabbar.js.map +1 -0
  228. package/dist/collection/components/text/text.js +35 -30
  229. package/dist/collection/components/text/text.js.map +1 -0
  230. package/dist/collection/components/textarea/textarea.js +262 -227
  231. package/dist/collection/components/textarea/textarea.js.map +1 -0
  232. package/dist/collection/components/video/utils.js +1 -0
  233. package/dist/collection/components/video/utils.js.map +1 -0
  234. package/dist/collection/components/video/video-control.js +274 -286
  235. package/dist/collection/components/video/video-control.js.map +1 -0
  236. package/dist/collection/components/video/video-danmu.js +111 -118
  237. package/dist/collection/components/video/video-danmu.js.map +1 -0
  238. package/dist/collection/components/video/video.js +769 -834
  239. package/dist/collection/components/video/video.js.map +1 -0
  240. package/dist/collection/components/view/view.js +131 -118
  241. package/dist/collection/components/view/view.js.map +1 -0
  242. package/dist/collection/components/voip-room/voip-room.js +2 -1
  243. package/dist/collection/components/voip-room/voip-room.js.map +1 -0
  244. package/dist/collection/components/web-view/web-view.js +68 -57
  245. package/dist/collection/components/web-view/web-view.js.map +1 -0
  246. package/dist/collection/index.js +1 -0
  247. package/dist/collection/index.js.map +1 -0
  248. package/dist/collection/utils/helper.js +1 -0
  249. package/dist/collection/utils/helper.js.map +1 -0
  250. package/dist/collection/utils/index.js +1 -0
  251. package/dist/collection/utils/index.js.map +1 -0
  252. package/dist/collection/utils/style.js +1 -0
  253. package/dist/collection/utils/style.js.map +1 -0
  254. package/dist/collection/utils/url.js +1 -0
  255. package/dist/collection/utils/url.js.map +1 -0
  256. package/dist/esm/helper-3d0ecf0f.js +2 -0
  257. package/dist/esm/helper-3d0ecf0f.js.map +1 -0
  258. package/dist/esm/hls-221423a1.js +27622 -0
  259. package/dist/esm/hls-221423a1.js.map +1 -0
  260. package/dist/esm/index-1d8e8acd.js +2 -0
  261. package/dist/esm/index-1d8e8acd.js.map +1 -0
  262. package/dist/esm/{index-8809c729.js → index-5d881caf.js} +477 -234
  263. package/dist/esm/index-5d881caf.js.map +1 -0
  264. package/dist/esm/index-cad8203e.js +2 -0
  265. package/dist/esm/index-cad8203e.js.map +1 -0
  266. package/dist/esm/index.js +2 -0
  267. package/dist/esm/index.js.map +1 -0
  268. package/dist/esm/intersection-observer-8e4c7135.js +2 -0
  269. package/dist/esm/intersection-observer-8e4c7135.js.map +1 -0
  270. package/dist/esm/loader.js +5 -3
  271. package/dist/esm/loader.js.map +1 -0
  272. package/dist/esm/polyfills/css-shim.js +1 -1
  273. package/dist/esm/taro-ad-core.entry.js +4 -2
  274. package/dist/esm/taro-ad-core.entry.js.map +1 -0
  275. package/dist/esm/taro-ad-custom-core.entry.js +4 -2
  276. package/dist/esm/taro-ad-custom-core.entry.js.map +1 -0
  277. package/dist/esm/taro-audio-core.entry.js +5 -2
  278. package/dist/esm/taro-audio-core.entry.js.map +1 -0
  279. package/dist/esm/taro-block-core.entry.js +4 -2
  280. package/dist/esm/taro-block-core.entry.js.map +1 -0
  281. package/dist/esm/taro-button-core.entry.js +7 -2
  282. package/dist/esm/taro-button-core.entry.js.map +1 -0
  283. package/dist/esm/taro-camera-core.entry.js +4 -2
  284. package/dist/esm/taro-camera-core.entry.js.map +1 -0
  285. package/dist/esm/taro-canvas-core.entry.js +6 -3
  286. package/dist/esm/taro-canvas-core.entry.js.map +1 -0
  287. package/dist/esm/taro-checkbox-core_2.entry.js +15 -9
  288. package/dist/esm/taro-checkbox-core_2.entry.js.map +1 -0
  289. package/dist/esm/taro-components.js +5 -3
  290. package/dist/esm/taro-components.js.map +1 -0
  291. package/dist/esm/taro-cover-image-core.entry.js +7 -4
  292. package/dist/esm/taro-cover-image-core.entry.js.map +1 -0
  293. package/dist/esm/taro-cover-view-core.entry.js +7 -3
  294. package/dist/esm/taro-cover-view-core.entry.js.map +1 -0
  295. package/dist/esm/taro-custom-wrapper-core.entry.js +4 -2
  296. package/dist/esm/taro-custom-wrapper-core.entry.js.map +1 -0
  297. package/dist/esm/taro-editor-core.entry.js +4 -2
  298. package/dist/esm/taro-editor-core.entry.js.map +1 -0
  299. package/dist/esm/taro-form-core.entry.js +34 -39
  300. package/dist/esm/taro-form-core.entry.js.map +1 -0
  301. package/dist/esm/taro-functional-page-navigator-core.entry.js +4 -2
  302. package/dist/esm/taro-functional-page-navigator-core.entry.js.map +1 -0
  303. package/dist/esm/taro-icon-core.entry.js +6 -2
  304. package/dist/esm/taro-icon-core.entry.js.map +1 -0
  305. package/dist/esm/taro-image-core.entry.js +7 -4
  306. package/dist/esm/taro-image-core.entry.js.map +1 -0
  307. package/dist/esm/taro-input-core.entry.js +29 -14
  308. package/dist/esm/taro-input-core.entry.js.map +1 -0
  309. package/dist/esm/taro-keyboard-accessory-core.entry.js +4 -2
  310. package/dist/esm/taro-keyboard-accessory-core.entry.js.map +1 -0
  311. package/dist/esm/taro-label-core.entry.js +5 -2
  312. package/dist/esm/taro-label-core.entry.js.map +1 -0
  313. package/dist/esm/taro-live-player-core.entry.js +4 -2
  314. package/dist/esm/taro-live-player-core.entry.js.map +1 -0
  315. package/dist/esm/taro-live-pusher-core.entry.js +4 -2
  316. package/dist/esm/taro-live-pusher-core.entry.js.map +1 -0
  317. package/dist/esm/taro-map-core.entry.js +4 -2
  318. package/dist/esm/taro-map-core.entry.js.map +1 -0
  319. package/dist/esm/taro-match-media-core.entry.js +4 -2
  320. package/dist/esm/taro-match-media-core.entry.js.map +1 -0
  321. package/dist/esm/{taro-movable-view-core.entry.js → taro-movable-area-core_2.entry.js} +187 -98
  322. package/dist/esm/taro-movable-area-core_2.entry.js.map +1 -0
  323. package/dist/esm/taro-navigation-bar-core.entry.js +4 -2
  324. package/dist/esm/taro-navigation-bar-core.entry.js.map +1 -0
  325. package/dist/esm/taro-navigator-core.entry.js +6 -2
  326. package/dist/esm/taro-navigator-core.entry.js.map +1 -0
  327. package/dist/esm/taro-official-account-core.entry.js +4 -2
  328. package/dist/esm/taro-official-account-core.entry.js.map +1 -0
  329. package/dist/esm/taro-open-data-core.entry.js +4 -2
  330. package/dist/esm/taro-open-data-core.entry.js.map +1 -0
  331. package/dist/esm/taro-page-container-core.entry.js +4 -2
  332. package/dist/esm/taro-page-container-core.entry.js.map +1 -0
  333. package/dist/esm/taro-page-meta-core.entry.js +4 -2
  334. package/dist/esm/taro-page-meta-core.entry.js.map +1 -0
  335. package/dist/esm/taro-picker-core_2.entry.js +31 -15
  336. package/dist/esm/taro-picker-core_2.entry.js.map +1 -0
  337. package/dist/esm/{taro-picker-view-core.entry.js → taro-picker-view-column-core_2.entry.js} +97 -3
  338. package/dist/esm/taro-picker-view-column-core_2.entry.js.map +1 -0
  339. package/dist/esm/taro-progress-core.entry.js +7 -5
  340. package/dist/esm/taro-progress-core.entry.js.map +1 -0
  341. package/dist/esm/taro-pull-to-refresh.entry.js +10 -8
  342. package/dist/esm/taro-pull-to-refresh.entry.js.map +1 -0
  343. package/dist/esm/taro-radio-core_2.entry.js +15 -9
  344. package/dist/esm/taro-radio-core_2.entry.js.map +1 -0
  345. package/dist/esm/taro-rich-text-core.entry.js +5 -2
  346. package/dist/esm/taro-rich-text-core.entry.js.map +1 -0
  347. package/dist/esm/taro-root-portal-core.entry.js +4 -2
  348. package/dist/esm/taro-root-portal-core.entry.js.map +1 -0
  349. package/dist/esm/taro-scroll-view-core.entry.js +28 -22
  350. package/dist/esm/taro-scroll-view-core.entry.js.map +1 -0
  351. package/dist/esm/taro-share-element-core.entry.js +4 -2
  352. package/dist/esm/taro-share-element-core.entry.js.map +1 -0
  353. package/dist/esm/taro-slider-core.entry.js +37 -40
  354. package/dist/esm/taro-slider-core.entry.js.map +1 -0
  355. package/dist/esm/taro-slot-core.entry.js +4 -7
  356. package/dist/esm/taro-slot-core.entry.js.map +1 -0
  357. package/dist/esm/taro-swiper-core_2.entry.js +46 -72
  358. package/dist/esm/taro-swiper-core_2.entry.js.map +1 -0
  359. package/dist/esm/taro-switch-core.entry.js +12 -8
  360. package/dist/esm/taro-switch-core.entry.js.map +1 -0
  361. package/dist/esm/taro-tabbar.entry.js +12 -4
  362. package/dist/esm/taro-tabbar.entry.js.map +1 -0
  363. package/dist/esm/taro-text-core.entry.js +4 -2
  364. package/dist/esm/taro-text-core.entry.js.map +1 -0
  365. package/dist/esm/taro-textarea-core.entry.js +21 -10
  366. package/dist/esm/taro-textarea-core.entry.js.map +1 -0
  367. package/dist/esm/taro-video-control_3.entry.js +213 -27938
  368. package/dist/esm/taro-video-control_3.entry.js.map +1 -0
  369. package/dist/esm/taro-view-core.entry.js +7 -3
  370. package/dist/esm/taro-view-core.entry.js.map +1 -0
  371. package/dist/esm/taro-voip-room-core.entry.js +4 -2
  372. package/dist/esm/taro-voip-room-core.entry.js.map +1 -0
  373. package/dist/esm/taro-web-view-core.entry.js +5 -2
  374. package/dist/esm/taro-web-view-core.entry.js.map +1 -0
  375. package/dist/esm-es5/helper-3d0ecf0f.js +2 -1
  376. package/dist/esm-es5/helper-3d0ecf0f.js.map +1 -0
  377. package/dist/esm-es5/hls-221423a1.js +366 -0
  378. package/dist/esm-es5/hls-221423a1.js.map +1 -0
  379. package/dist/esm-es5/index-1d8e8acd.js +2 -1
  380. package/dist/esm-es5/index-1d8e8acd.js.map +1 -0
  381. package/dist/esm-es5/index-5d881caf.js +3 -0
  382. package/dist/esm-es5/index-5d881caf.js.map +1 -0
  383. package/dist/esm-es5/index-cad8203e.js +2 -1
  384. package/dist/esm-es5/index-cad8203e.js.map +1 -0
  385. package/dist/esm-es5/index.js +2 -0
  386. package/dist/esm-es5/index.js.map +1 -0
  387. package/dist/esm-es5/intersection-observer-8e4c7135.js +2 -1
  388. package/dist/esm-es5/intersection-observer-8e4c7135.js.map +1 -0
  389. package/dist/esm-es5/loader.js +2 -1
  390. package/dist/esm-es5/loader.js.map +1 -0
  391. package/dist/esm-es5/taro-ad-core.entry.js +2 -1
  392. package/dist/esm-es5/taro-ad-core.entry.js.map +1 -0
  393. package/dist/esm-es5/taro-ad-custom-core.entry.js +2 -1
  394. package/dist/esm-es5/taro-ad-custom-core.entry.js.map +1 -0
  395. package/dist/esm-es5/taro-audio-core.entry.js +2 -1
  396. package/dist/esm-es5/taro-audio-core.entry.js.map +1 -0
  397. package/dist/esm-es5/taro-block-core.entry.js +2 -1
  398. package/dist/esm-es5/taro-block-core.entry.js.map +1 -0
  399. package/dist/esm-es5/taro-button-core.entry.js +2 -1
  400. package/dist/esm-es5/taro-button-core.entry.js.map +1 -0
  401. package/dist/esm-es5/taro-camera-core.entry.js +2 -1
  402. package/dist/esm-es5/taro-camera-core.entry.js.map +1 -0
  403. package/dist/esm-es5/taro-canvas-core.entry.js +2 -1
  404. package/dist/esm-es5/taro-canvas-core.entry.js.map +1 -0
  405. package/dist/esm-es5/taro-checkbox-core_2.entry.js +2 -1
  406. package/dist/esm-es5/taro-checkbox-core_2.entry.js.map +1 -0
  407. package/dist/esm-es5/taro-components.js +2 -1
  408. package/dist/esm-es5/taro-components.js.map +1 -0
  409. package/dist/esm-es5/taro-cover-image-core.entry.js +2 -1
  410. package/dist/esm-es5/taro-cover-image-core.entry.js.map +1 -0
  411. package/dist/esm-es5/taro-cover-view-core.entry.js +2 -1
  412. package/dist/esm-es5/taro-cover-view-core.entry.js.map +1 -0
  413. package/dist/esm-es5/taro-custom-wrapper-core.entry.js +2 -1
  414. package/dist/esm-es5/taro-custom-wrapper-core.entry.js.map +1 -0
  415. package/dist/esm-es5/taro-editor-core.entry.js +2 -1
  416. package/dist/esm-es5/taro-editor-core.entry.js.map +1 -0
  417. package/dist/esm-es5/taro-form-core.entry.js +2 -1
  418. package/dist/esm-es5/taro-form-core.entry.js.map +1 -0
  419. package/dist/esm-es5/taro-functional-page-navigator-core.entry.js +2 -1
  420. package/dist/esm-es5/taro-functional-page-navigator-core.entry.js.map +1 -0
  421. package/dist/esm-es5/taro-icon-core.entry.js +2 -1
  422. package/dist/esm-es5/taro-icon-core.entry.js.map +1 -0
  423. package/dist/esm-es5/taro-image-core.entry.js +2 -1
  424. package/dist/esm-es5/taro-image-core.entry.js.map +1 -0
  425. package/dist/esm-es5/taro-input-core.entry.js +2 -1
  426. package/dist/esm-es5/taro-input-core.entry.js.map +1 -0
  427. package/dist/esm-es5/taro-keyboard-accessory-core.entry.js +2 -1
  428. package/dist/esm-es5/taro-keyboard-accessory-core.entry.js.map +1 -0
  429. package/dist/esm-es5/taro-label-core.entry.js +2 -1
  430. package/dist/esm-es5/taro-label-core.entry.js.map +1 -0
  431. package/dist/esm-es5/taro-live-player-core.entry.js +2 -1
  432. package/dist/esm-es5/taro-live-player-core.entry.js.map +1 -0
  433. package/dist/esm-es5/taro-live-pusher-core.entry.js +2 -1
  434. package/dist/esm-es5/taro-live-pusher-core.entry.js.map +1 -0
  435. package/dist/esm-es5/taro-map-core.entry.js +2 -1
  436. package/dist/esm-es5/taro-map-core.entry.js.map +1 -0
  437. package/dist/esm-es5/taro-match-media-core.entry.js +2 -1
  438. package/dist/esm-es5/taro-match-media-core.entry.js.map +1 -0
  439. package/dist/esm-es5/taro-movable-area-core_2.entry.js +2 -0
  440. package/dist/esm-es5/taro-movable-area-core_2.entry.js.map +1 -0
  441. package/dist/esm-es5/taro-navigation-bar-core.entry.js +2 -1
  442. package/dist/esm-es5/taro-navigation-bar-core.entry.js.map +1 -0
  443. package/dist/esm-es5/taro-navigator-core.entry.js +2 -1
  444. package/dist/esm-es5/taro-navigator-core.entry.js.map +1 -0
  445. package/dist/esm-es5/taro-official-account-core.entry.js +2 -1
  446. package/dist/esm-es5/taro-official-account-core.entry.js.map +1 -0
  447. package/dist/esm-es5/taro-open-data-core.entry.js +2 -1
  448. package/dist/esm-es5/taro-open-data-core.entry.js.map +1 -0
  449. package/dist/esm-es5/taro-page-container-core.entry.js +2 -1
  450. package/dist/esm-es5/taro-page-container-core.entry.js.map +1 -0
  451. package/dist/esm-es5/taro-page-meta-core.entry.js +2 -1
  452. package/dist/esm-es5/taro-page-meta-core.entry.js.map +1 -0
  453. package/dist/esm-es5/taro-picker-core_2.entry.js +2 -1
  454. package/dist/esm-es5/taro-picker-core_2.entry.js.map +1 -0
  455. package/dist/esm-es5/taro-picker-view-column-core_2.entry.js +2 -0
  456. package/dist/esm-es5/taro-picker-view-column-core_2.entry.js.map +1 -0
  457. package/dist/esm-es5/taro-progress-core.entry.js +2 -1
  458. package/dist/esm-es5/taro-progress-core.entry.js.map +1 -0
  459. package/dist/esm-es5/taro-pull-to-refresh.entry.js +2 -1
  460. package/dist/esm-es5/taro-pull-to-refresh.entry.js.map +1 -0
  461. package/dist/esm-es5/taro-radio-core_2.entry.js +2 -1
  462. package/dist/esm-es5/taro-radio-core_2.entry.js.map +1 -0
  463. package/dist/esm-es5/taro-rich-text-core.entry.js +2 -1
  464. package/dist/esm-es5/taro-rich-text-core.entry.js.map +1 -0
  465. package/dist/esm-es5/taro-root-portal-core.entry.js +2 -1
  466. package/dist/esm-es5/taro-root-portal-core.entry.js.map +1 -0
  467. package/dist/esm-es5/taro-scroll-view-core.entry.js +2 -1
  468. package/dist/esm-es5/taro-scroll-view-core.entry.js.map +1 -0
  469. package/dist/esm-es5/taro-share-element-core.entry.js +2 -1
  470. package/dist/esm-es5/taro-share-element-core.entry.js.map +1 -0
  471. package/dist/esm-es5/taro-slider-core.entry.js +2 -1
  472. package/dist/esm-es5/taro-slider-core.entry.js.map +1 -0
  473. package/dist/esm-es5/taro-slot-core.entry.js +2 -1
  474. package/dist/esm-es5/taro-slot-core.entry.js.map +1 -0
  475. package/dist/esm-es5/taro-swiper-core_2.entry.js +2 -1
  476. package/dist/esm-es5/taro-swiper-core_2.entry.js.map +1 -0
  477. package/dist/esm-es5/taro-switch-core.entry.js +2 -1
  478. package/dist/esm-es5/taro-switch-core.entry.js.map +1 -0
  479. package/dist/esm-es5/taro-tabbar.entry.js +2 -1
  480. package/dist/esm-es5/taro-tabbar.entry.js.map +1 -0
  481. package/dist/esm-es5/taro-text-core.entry.js +2 -1
  482. package/dist/esm-es5/taro-text-core.entry.js.map +1 -0
  483. package/dist/esm-es5/taro-textarea-core.entry.js +2 -1
  484. package/dist/esm-es5/taro-textarea-core.entry.js.map +1 -0
  485. package/dist/esm-es5/taro-video-control_3.entry.js +2 -365
  486. package/dist/esm-es5/taro-video-control_3.entry.js.map +1 -0
  487. package/dist/esm-es5/taro-view-core.entry.js +2 -1
  488. package/dist/esm-es5/taro-view-core.entry.js.map +1 -0
  489. package/dist/esm-es5/taro-voip-room-core.entry.js +2 -1
  490. package/dist/esm-es5/taro-voip-room-core.entry.js.map +1 -0
  491. package/dist/esm-es5/taro-web-view-core.entry.js +2 -1
  492. package/dist/esm-es5/taro-web-view-core.entry.js.map +1 -0
  493. package/{dist-h5/react/components → dist/react/component-lib}/index.js +1 -1
  494. package/{dist-h5/react/components → dist/react/component-lib}/input.js +5 -5
  495. package/{dist-h5/react/utils → dist/react/component-lib}/reactify-wc.js +10 -20
  496. package/dist/react/components.js +65 -0
  497. package/dist/react/helper.js +13 -0
  498. package/{dist-h5 → dist}/react/index.js +0 -0
  499. package/dist/react/react-component-lib/index.js +2 -0
  500. package/dist/react/react-component-lib/interfaces.js +1 -0
  501. package/dist/react/react-component-lib/utils/attachProps.js +107 -0
  502. package/dist/react/react-component-lib/utils/case.js +10 -0
  503. package/dist/react/react-component-lib/utils/dev.js +12 -0
  504. package/dist/taro-components/index.esm.js +2 -0
  505. package/dist/taro-components/index.esm.js.map +1 -0
  506. package/dist/taro-components/p-001ef419.system.entry.js +2 -0
  507. package/dist/taro-components/p-001ef419.system.entry.js.map +1 -0
  508. package/dist/taro-components/p-01dc54a5.entry.js +2 -0
  509. package/dist/taro-components/p-01dc54a5.entry.js.map +1 -0
  510. package/dist/taro-components/p-0382d7d0.system.entry.js +2 -0
  511. package/dist/taro-components/p-0382d7d0.system.entry.js.map +1 -0
  512. package/dist/taro-components/{p-a94524c9.system.entry.js → p-057159bc.system.entry.js} +2 -1
  513. package/dist/taro-components/p-057159bc.system.entry.js.map +1 -0
  514. package/dist/taro-components/p-0a896bc7.entry.js +2 -0
  515. package/dist/taro-components/p-0a896bc7.entry.js.map +1 -0
  516. package/dist/taro-components/p-0b38e6c7.system.entry.js +2 -0
  517. package/dist/taro-components/p-0b38e6c7.system.entry.js.map +1 -0
  518. package/dist/taro-components/p-0d36ef6b.entry.js +2 -0
  519. package/dist/taro-components/p-0d36ef6b.entry.js.map +1 -0
  520. package/dist/taro-components/p-0ee6a068.entry.js +2 -0
  521. package/dist/taro-components/p-0ee6a068.entry.js.map +1 -0
  522. package/dist/taro-components/p-12e4b019.entry.js +2 -0
  523. package/dist/taro-components/p-12e4b019.entry.js.map +1 -0
  524. package/dist/taro-components/p-15dced71.system.entry.js +2 -0
  525. package/dist/taro-components/p-15dced71.system.entry.js.map +1 -0
  526. package/dist/taro-components/p-15e45ed6.system.js +2 -1
  527. package/dist/taro-components/p-15e45ed6.system.js.map +1 -0
  528. package/dist/taro-components/{p-f81a74bb.system.entry.js → p-1743a04b.system.js} +82 -81
  529. package/dist/taro-components/p-1743a04b.system.js.map +1 -0
  530. package/dist/taro-components/p-17657dca.entry.js +2 -0
  531. package/dist/taro-components/p-17657dca.entry.js.map +1 -0
  532. package/dist/taro-components/p-1b2556e2.system.entry.js +2 -0
  533. package/dist/taro-components/p-1b2556e2.system.entry.js.map +1 -0
  534. package/dist/taro-components/p-1b64d2a2.entry.js +2 -0
  535. package/dist/taro-components/p-1b64d2a2.entry.js.map +1 -0
  536. package/dist/taro-components/p-1bd3d09b.system.entry.js +2 -0
  537. package/dist/taro-components/p-1bd3d09b.system.entry.js.map +1 -0
  538. package/dist/taro-components/p-1cb76199.entry.js +2 -0
  539. package/dist/taro-components/p-1cb76199.entry.js.map +1 -0
  540. package/dist/taro-components/{p-13f0b11f.system.entry.js → p-1cd1c507.system.entry.js} +2 -1
  541. package/dist/taro-components/p-1cd1c507.system.entry.js.map +1 -0
  542. package/dist/taro-components/p-1e436d5b.entry.js +2 -0
  543. package/dist/taro-components/p-1e436d5b.entry.js.map +1 -0
  544. package/dist/taro-components/p-2096bc5f.entry.js +2 -0
  545. package/dist/taro-components/p-2096bc5f.entry.js.map +1 -0
  546. package/dist/taro-components/p-20ec6387.entry.js +2 -0
  547. package/dist/taro-components/p-20ec6387.entry.js.map +1 -0
  548. package/dist/taro-components/{p-c5fd5c7f.system.entry.js → p-21b77a13.system.entry.js} +2 -1
  549. package/dist/taro-components/p-21b77a13.system.entry.js.map +1 -0
  550. package/dist/taro-components/p-2243a376.entry.js +2 -0
  551. package/dist/taro-components/p-2243a376.entry.js.map +1 -0
  552. package/dist/taro-components/p-22f9f9fa.entry.js +2 -0
  553. package/dist/taro-components/p-22f9f9fa.entry.js.map +1 -0
  554. package/dist/taro-components/p-29f04296.entry.js +2 -0
  555. package/dist/taro-components/p-29f04296.entry.js.map +1 -0
  556. package/dist/taro-components/{p-3e11c8cc.system.entry.js → p-301a8b85.system.entry.js} +2 -1
  557. package/dist/taro-components/p-301a8b85.system.entry.js.map +1 -0
  558. package/dist/taro-components/p-3b1d2d37.system.js +2 -1
  559. package/dist/taro-components/p-3b1d2d37.system.js.map +1 -0
  560. package/dist/taro-components/p-3b9a1125.entry.js +2 -0
  561. package/dist/taro-components/p-3b9a1125.entry.js.map +1 -0
  562. package/dist/taro-components/p-3c256e0e.entry.js +2 -0
  563. package/dist/taro-components/p-3c256e0e.entry.js.map +1 -0
  564. package/dist/taro-components/p-3e6b29c6.entry.js +2 -0
  565. package/dist/taro-components/p-3e6b29c6.entry.js.map +1 -0
  566. package/dist/taro-components/{p-a63fbc50.system.entry.js → p-439a3349.system.entry.js} +2 -1
  567. package/dist/taro-components/p-439a3349.system.entry.js.map +1 -0
  568. package/dist/taro-components/p-447386b2.system.entry.js +2 -0
  569. package/dist/taro-components/p-447386b2.system.entry.js.map +1 -0
  570. package/dist/taro-components/{p-d075934f.system.entry.js → p-45b6ea0c.system.entry.js} +2 -1
  571. package/dist/taro-components/p-45b6ea0c.system.entry.js.map +1 -0
  572. package/dist/taro-components/p-49a6cae4.system.entry.js +2 -0
  573. package/dist/taro-components/p-49a6cae4.system.entry.js.map +1 -0
  574. package/dist/taro-components/p-4b05e003.entry.js +2 -0
  575. package/dist/taro-components/p-4b05e003.entry.js.map +1 -0
  576. package/dist/taro-components/{p-692d986d.system.entry.js → p-4b27df71.system.entry.js} +2 -1
  577. package/dist/taro-components/p-4b27df71.system.entry.js.map +1 -0
  578. package/dist/taro-components/p-4b71c926.entry.js +2 -0
  579. package/dist/taro-components/p-4b71c926.entry.js.map +1 -0
  580. package/dist/taro-components/{p-f7c80795.system.entry.js → p-4fbb8b4c.system.entry.js} +2 -1
  581. package/dist/taro-components/p-4fbb8b4c.system.entry.js.map +1 -0
  582. package/dist/taro-components/p-50ea2036.system.js +2 -1
  583. package/dist/taro-components/p-50ea2036.system.js.map +1 -0
  584. package/dist/taro-components/p-55519002.entry.js +2 -0
  585. package/dist/taro-components/p-55519002.entry.js.map +1 -0
  586. package/dist/taro-components/p-570222e2.entry.js +2 -0
  587. package/dist/taro-components/p-570222e2.entry.js.map +1 -0
  588. package/dist/taro-components/p-5746d7ce.js +2 -1
  589. package/dist/taro-components/p-5746d7ce.js.map +1 -0
  590. package/dist/taro-components/{p-6ad59489.system.entry.js → p-580a72d1.system.entry.js} +2 -1
  591. package/dist/taro-components/p-580a72d1.system.entry.js.map +1 -0
  592. package/dist/taro-components/{p-93eed5d7.system.entry.js → p-59418be7.system.entry.js} +2 -1
  593. package/dist/taro-components/p-59418be7.system.entry.js.map +1 -0
  594. package/dist/taro-components/p-59e02aca.system.entry.js +2 -0
  595. package/dist/taro-components/p-59e02aca.system.entry.js.map +1 -0
  596. package/dist/taro-components/p-5b552407.entry.js +2 -0
  597. package/dist/taro-components/p-5b552407.entry.js.map +1 -0
  598. package/dist/taro-components/p-5bfefd19.js +3 -0
  599. package/dist/taro-components/p-5bfefd19.js.map +1 -0
  600. package/dist/taro-components/p-61f225ef.system.js +2 -1
  601. package/dist/taro-components/p-61f225ef.system.js.map +1 -0
  602. package/dist/taro-components/p-663d1bb9.system.js +2 -1
  603. package/dist/taro-components/p-663d1bb9.system.js.map +1 -0
  604. package/dist/taro-components/p-6a96da58.js +2 -1
  605. package/dist/taro-components/p-6a96da58.js.map +1 -0
  606. package/dist/taro-components/p-6af8be19.entry.js +2 -0
  607. package/dist/taro-components/p-6af8be19.entry.js.map +1 -0
  608. package/dist/taro-components/p-6ea2995b.entry.js +2 -0
  609. package/dist/taro-components/p-6ea2995b.entry.js.map +1 -0
  610. package/dist/taro-components/p-6f8af69f.entry.js +2 -0
  611. package/dist/taro-components/p-6f8af69f.entry.js.map +1 -0
  612. package/dist/taro-components/{p-f4ea8a56.system.entry.js → p-701b0286.system.entry.js} +2 -1
  613. package/dist/taro-components/p-701b0286.system.entry.js.map +1 -0
  614. package/dist/taro-components/p-72f327e1.js +2 -1
  615. package/dist/taro-components/p-72f327e1.js.map +1 -0
  616. package/dist/taro-components/p-72f626ab.system.entry.js +2 -0
  617. package/dist/taro-components/p-72f626ab.system.entry.js.map +1 -0
  618. package/dist/taro-components/p-755be847.system.entry.js +2 -0
  619. package/dist/taro-components/p-755be847.system.entry.js.map +1 -0
  620. package/dist/taro-components/p-76724e58.js +3 -2
  621. package/dist/taro-components/p-76724e58.js.map +1 -0
  622. package/dist/taro-components/p-7baff0b4.entry.js +2 -0
  623. package/dist/taro-components/p-7baff0b4.entry.js.map +1 -0
  624. package/dist/taro-components/p-8231e748.entry.js +2 -0
  625. package/dist/taro-components/p-8231e748.entry.js.map +1 -0
  626. package/dist/taro-components/{p-07294134.system.entry.js → p-8a3620a6.system.entry.js} +2 -1
  627. package/dist/taro-components/p-8a3620a6.system.entry.js.map +1 -0
  628. package/dist/taro-components/p-8a8f286f.system.js +3 -0
  629. package/dist/taro-components/p-8a8f286f.system.js.map +1 -0
  630. package/dist/taro-components/{p-7e960ac3.system.entry.js → p-8bec95d4.system.entry.js} +2 -1
  631. package/dist/taro-components/p-8bec95d4.system.entry.js.map +1 -0
  632. package/dist/taro-components/{p-e671c8c5.system.entry.js → p-8c8fe164.system.entry.js} +2 -1
  633. package/dist/taro-components/p-8c8fe164.system.entry.js.map +1 -0
  634. package/dist/taro-components/p-93cc7adc.entry.js +2 -0
  635. package/dist/taro-components/p-93cc7adc.entry.js.map +1 -0
  636. package/dist/taro-components/p-946c0799.system.entry.js +2 -0
  637. package/dist/taro-components/p-946c0799.system.entry.js.map +1 -0
  638. package/dist/taro-components/p-96a784f1.entry.js +2 -0
  639. package/dist/taro-components/p-96a784f1.entry.js.map +1 -0
  640. package/dist/taro-components/p-99bbe34a.system.entry.js +2 -0
  641. package/dist/taro-components/p-99bbe34a.system.entry.js.map +1 -0
  642. package/dist/taro-components/p-9e20c25c.entry.js +2 -0
  643. package/dist/taro-components/p-9e20c25c.entry.js.map +1 -0
  644. package/dist/taro-components/{p-075458e5.system.entry.js → p-9f1ca602.system.entry.js} +2 -1
  645. package/dist/taro-components/p-9f1ca602.system.entry.js.map +1 -0
  646. package/dist/taro-components/p-a1ace8c7.system.entry.js +2 -0
  647. package/dist/taro-components/p-a1ace8c7.system.entry.js.map +1 -0
  648. package/dist/taro-components/p-a29509fa.system.entry.js +2 -0
  649. package/dist/taro-components/p-a29509fa.system.entry.js.map +1 -0
  650. package/dist/taro-components/p-a2aab820.entry.js +2 -0
  651. package/dist/taro-components/p-a2aab820.entry.js.map +1 -0
  652. package/dist/taro-components/{p-d4da725f.system.entry.js → p-a6f2dc54.system.entry.js} +2 -1
  653. package/dist/taro-components/p-a6f2dc54.system.entry.js.map +1 -0
  654. package/dist/taro-components/p-ab105c26.entry.js +2 -0
  655. package/dist/taro-components/p-ab105c26.entry.js.map +1 -0
  656. package/dist/taro-components/{p-c93bb915.system.entry.js → p-b04a56bd.system.entry.js} +2 -1
  657. package/dist/taro-components/p-b04a56bd.system.entry.js.map +1 -0
  658. package/dist/taro-components/p-b10cb428.entry.js +2 -0
  659. package/dist/taro-components/p-b10cb428.entry.js.map +1 -0
  660. package/dist/taro-components/p-b4ec48c3.entry.js +2 -0
  661. package/dist/taro-components/p-b4ec48c3.entry.js.map +1 -0
  662. package/dist/taro-components/{p-d6662ab3.system.entry.js → p-b500c116.system.entry.js} +2 -1
  663. package/dist/taro-components/p-b500c116.system.entry.js.map +1 -0
  664. package/dist/taro-components/p-b832f4e8.entry.js +2 -0
  665. package/dist/taro-components/p-b832f4e8.entry.js.map +1 -0
  666. package/dist/taro-components/p-b88a55b4.system.entry.js +2 -0
  667. package/dist/taro-components/p-b88a55b4.system.entry.js.map +1 -0
  668. package/dist/taro-components/p-b90926cc.entry.js +2 -0
  669. package/dist/taro-components/p-b90926cc.entry.js.map +1 -0
  670. package/dist/taro-components/p-ba743573.entry.js +2 -0
  671. package/dist/taro-components/p-ba743573.entry.js.map +1 -0
  672. package/dist/taro-components/p-be3f5ac0.entry.js +2 -0
  673. package/dist/taro-components/p-be3f5ac0.entry.js.map +1 -0
  674. package/dist/taro-components/p-beea63a7.entry.js +2 -0
  675. package/dist/taro-components/p-beea63a7.entry.js.map +1 -0
  676. package/dist/taro-components/{p-b7681c76.system.entry.js → p-c0e3c822.system.entry.js} +2 -1
  677. package/dist/taro-components/p-c0e3c822.system.entry.js.map +1 -0
  678. package/dist/taro-components/p-c3acf0ea.system.entry.js +2 -0
  679. package/dist/taro-components/p-c3acf0ea.system.entry.js.map +1 -0
  680. package/dist/taro-components/p-c3bb8fa6.entry.js +2 -0
  681. package/dist/taro-components/p-c3bb8fa6.entry.js.map +1 -0
  682. package/dist/taro-components/{p-733cc64a.system.entry.js → p-c4cf58af.system.entry.js} +2 -1
  683. package/dist/taro-components/p-c4cf58af.system.entry.js.map +1 -0
  684. package/dist/taro-components/{p-b11aaf69.system.entry.js → p-c5c331bf.system.entry.js} +2 -1
  685. package/dist/taro-components/p-c5c331bf.system.entry.js.map +1 -0
  686. package/dist/taro-components/p-cb17d8bd.system.js +2 -0
  687. package/dist/taro-components/p-cb17d8bd.system.js.map +1 -0
  688. package/dist/taro-components/{p-fc9f4fd7.system.entry.js → p-cbe2436d.system.entry.js} +2 -1
  689. package/dist/taro-components/p-cbe2436d.system.entry.js.map +1 -0
  690. package/dist/taro-components/p-cd6a7eea.entry.js +2 -0
  691. package/dist/taro-components/p-cd6a7eea.entry.js.map +1 -0
  692. package/dist/taro-components/p-d4b6f19e.system.entry.js +2 -0
  693. package/dist/taro-components/p-d4b6f19e.system.entry.js.map +1 -0
  694. package/dist/taro-components/p-d5234e7e.js +366 -0
  695. package/dist/taro-components/p-d5234e7e.js.map +1 -0
  696. package/dist/taro-components/p-d5579efa.system.entry.js +2 -0
  697. package/dist/taro-components/p-d5579efa.system.entry.js.map +1 -0
  698. package/dist/taro-components/p-d619f198.system.entry.js +2 -0
  699. package/dist/taro-components/p-d619f198.system.entry.js.map +1 -0
  700. package/dist/taro-components/p-d7ab3e23.system.entry.js +2 -0
  701. package/dist/taro-components/p-d7ab3e23.system.entry.js.map +1 -0
  702. package/dist/taro-components/p-d7f4b10f.entry.js +2 -0
  703. package/dist/taro-components/p-d7f4b10f.entry.js.map +1 -0
  704. package/dist/taro-components/p-d85b216d.entry.js +2 -0
  705. package/dist/taro-components/p-d85b216d.entry.js.map +1 -0
  706. package/dist/taro-components/p-dcb48fd9.system.entry.js +2 -0
  707. package/dist/taro-components/p-dcb48fd9.system.entry.js.map +1 -0
  708. package/dist/taro-components/p-de762042.entry.js +2 -0
  709. package/dist/taro-components/p-de762042.entry.js.map +1 -0
  710. package/dist/taro-components/p-df862d0c.entry.js +2 -0
  711. package/dist/taro-components/p-df862d0c.entry.js.map +1 -0
  712. package/dist/taro-components/p-e0d6b00b.entry.js +2 -0
  713. package/dist/taro-components/p-e0d6b00b.entry.js.map +1 -0
  714. package/dist/taro-components/p-e4f1cc50.entry.js +2 -0
  715. package/dist/taro-components/p-e4f1cc50.entry.js.map +1 -0
  716. package/dist/taro-components/p-e59f999e.entry.js +2 -0
  717. package/dist/taro-components/p-e59f999e.entry.js.map +1 -0
  718. package/dist/taro-components/p-e7239faa.system.entry.js +2 -0
  719. package/dist/taro-components/p-e7239faa.system.entry.js.map +1 -0
  720. package/dist/taro-components/p-e98c07c3.system.entry.js +2 -0
  721. package/dist/taro-components/p-e98c07c3.system.entry.js.map +1 -0
  722. package/dist/taro-components/p-e9abe3e2.entry.js +2 -0
  723. package/dist/taro-components/p-e9abe3e2.entry.js.map +1 -0
  724. package/dist/taro-components/p-eddd00e9.system.entry.js +2 -0
  725. package/dist/taro-components/p-eddd00e9.system.entry.js.map +1 -0
  726. package/dist/taro-components/p-ef029c30.system.entry.js +2 -0
  727. package/dist/taro-components/p-ef029c30.system.entry.js.map +1 -0
  728. package/dist/taro-components/{p-8e2b048e.system.entry.js → p-f0d0160d.system.entry.js} +2 -1
  729. package/dist/taro-components/p-f0d0160d.system.entry.js.map +1 -0
  730. package/dist/taro-components/{p-f2803c2e.system.entry.js → p-f2c75971.system.entry.js} +2 -1
  731. package/dist/taro-components/p-f2c75971.system.entry.js.map +1 -0
  732. package/dist/taro-components/p-ffc44634.entry.js +2 -0
  733. package/dist/taro-components/p-ffc44634.entry.js.map +1 -0
  734. package/dist/taro-components/taro-components.esm.js +2 -1
  735. package/dist/taro-components/taro-components.esm.js.map +1 -0
  736. package/dist/taro-components/taro-components.js +2 -1
  737. package/dist/types/components/checkbox/checkbox.d.ts +2 -2
  738. package/dist/types/components/cover-image/cover-image.d.ts +1 -1
  739. package/dist/types/components/form/form.d.ts +4 -7
  740. package/dist/types/components/image/image.d.ts +1 -1
  741. package/dist/types/components/input/input.d.ts +4 -3
  742. package/dist/types/components/movable-area/movable-view.d.ts +3 -3
  743. package/dist/types/components/progress/progress.d.ts +1 -1
  744. package/dist/types/components/radio/radio.d.ts +2 -2
  745. package/dist/types/components/scroll-view/scroll-view.d.ts +1 -1
  746. package/dist/types/components/slider/slider.d.ts +3 -4
  747. package/dist/types/components/slot/slot.d.ts +0 -1
  748. package/dist/types/components/textarea/textarea.d.ts +1 -0
  749. package/dist/types/components/video/utils.d.ts +1 -1
  750. package/dist/types/components.d.ts +183 -70
  751. package/dist/types/stencil-public-runtime.d.ts +20 -4
  752. package/{dist-h5/vue/components/index.js → dist/vue2/component-lib/components.js} +0 -0
  753. package/{dist-h5/vue → dist/vue2/component-lib}/createComponent.js +0 -0
  754. package/{dist-h5/vue → dist/vue2/component-lib}/createFormsComponent.js +0 -0
  755. package/{dist-h5/vue/components → dist/vue2/component-lib}/icon.js +2 -2
  756. package/{dist-h5/vue/components → dist/vue2/component-lib}/image.js +2 -2
  757. package/{dist-h5/vue → dist/vue2/component-lib}/index.js +4 -3
  758. package/{dist-h5/vue → dist/vue2/component-lib}/mixins/listeners.js +0 -0
  759. package/{dist-h5/vue → dist/vue2/component-lib}/mixins/refs.js +0 -0
  760. package/{dist-h5/vue/components → dist/vue2/component-lib}/picker.js +2 -2
  761. package/{dist-h5/vue/components → dist/vue2/component-lib}/scroll-view.js +2 -2
  762. package/{dist-h5/vue/components → dist/vue2/component-lib}/text.js +2 -2
  763. package/dist/vue2/components.js +490 -0
  764. package/dist/vue2/index.js +26 -0
  765. package/dist/vue2/vue-component-lib/utils.js +45 -0
  766. package/{dist-h5/vue3 → dist/vue3/component-lib}/createComponent.js +1 -1
  767. package/{dist-h5/vue3 → dist/vue3/component-lib}/createFormsComponent.js +0 -0
  768. package/{dist-h5/vue3 → dist/vue3/component-lib}/forwardRef.js +0 -0
  769. package/{dist-h5/vue3/components → dist/vue3/component-lib}/icon.js +2 -2
  770. package/{dist-h5/vue3/components → dist/vue3/component-lib}/image.js +2 -2
  771. package/{dist-h5/vue3/components → dist/vue3/component-lib}/index.js +2 -2
  772. package/{dist-h5/vue3/components → dist/vue3/component-lib}/scroll-view.js +2 -2
  773. package/{dist-h5/vue3/components → dist/vue3/component-lib}/text.js +2 -2
  774. package/dist/vue3/components.js +64 -0
  775. package/{dist-h5 → dist}/vue3/index.js +0 -0
  776. package/dist/vue3/vue-component-lib/utils.js +201 -0
  777. package/loader/package.json +1 -0
  778. package/package.json +23 -23
  779. package/types/Ad.d.ts +20 -21
  780. package/types/Audio.d.ts +5 -5
  781. package/types/Button.d.ts +67 -70
  782. package/types/Camera.d.ts +15 -16
  783. package/types/Canvas.d.ts +22 -27
  784. package/types/Checkbox.d.ts +7 -7
  785. package/types/CoverImage.d.ts +15 -15
  786. package/types/CoverView.d.ts +5 -5
  787. package/types/Form.d.ts +10 -10
  788. package/types/Image.d.ts +20 -20
  789. package/types/Input.d.ts +26 -24
  790. package/types/LivePlayer.d.ts +31 -25
  791. package/types/LivePusher.d.ts +5 -5
  792. package/types/Map.d.ts +66 -71
  793. package/types/MovableView.d.ts +5 -14
  794. package/types/Navigator.d.ts +10 -10
  795. package/types/OpenData.d.ts +5 -5
  796. package/types/PageContainer.d.ts +7 -10
  797. package/types/PageMeta.d.ts +14 -14
  798. package/types/Picker.d.ts +1 -5
  799. package/types/PickerView.d.ts +11 -21
  800. package/types/Progress.d.ts +5 -5
  801. package/types/RadioGroup.d.ts +5 -5
  802. package/types/RichText.d.ts +17 -17
  803. package/types/ScrollView.d.ts +46 -30
  804. package/types/Slider.d.ts +10 -10
  805. package/types/Swiper.d.ts +20 -20
  806. package/types/Switch.d.ts +5 -5
  807. package/types/Textarea.d.ts +32 -32
  808. package/types/Video.d.ts +119 -108
  809. package/types/View.d.ts +21 -15
  810. package/types/VoipRoom.d.ts +5 -5
  811. package/types/WebView.d.ts +11 -5
  812. package/dist/cjs/taro-movable-area-core.cjs.entry.js +0 -157
  813. package/dist/cjs/taro-picker-view-column-core.cjs.entry.js +0 -95
  814. package/dist/esm/taro-movable-area-core.entry.js +0 -153
  815. package/dist/esm/taro-picker-view-column-core.entry.js +0 -91
  816. package/dist/esm-es5/index-8809c729.js +0 -1
  817. package/dist/esm-es5/taro-movable-area-core.entry.js +0 -1
  818. package/dist/esm-es5/taro-movable-view-core.entry.js +0 -1
  819. package/dist/esm-es5/taro-picker-view-column-core.entry.js +0 -1
  820. package/dist/esm-es5/taro-picker-view-core.entry.js +0 -1
  821. package/dist/taro-components/p-028e2728.entry.js +0 -1
  822. package/dist/taro-components/p-0380841f.system.js +0 -1
  823. package/dist/taro-components/p-059912fd.js +0 -1
  824. package/dist/taro-components/p-06178a0c.entry.js +0 -1
  825. package/dist/taro-components/p-06e6864b.system.entry.js +0 -1
  826. package/dist/taro-components/p-10c47df8.system.entry.js +0 -1
  827. package/dist/taro-components/p-1c775a11.system.entry.js +0 -1
  828. package/dist/taro-components/p-232ebfae.system.entry.js +0 -1
  829. package/dist/taro-components/p-25df0ce9.entry.js +0 -1
  830. package/dist/taro-components/p-27126803.system.entry.js +0 -1
  831. package/dist/taro-components/p-275d883f.system.entry.js +0 -1
  832. package/dist/taro-components/p-27c80869.system.entry.js +0 -1
  833. package/dist/taro-components/p-2ec47545.entry.js +0 -1
  834. package/dist/taro-components/p-3255f11f.system.entry.js +0 -1
  835. package/dist/taro-components/p-362998cf.entry.js +0 -1
  836. package/dist/taro-components/p-3744e978.entry.js +0 -365
  837. package/dist/taro-components/p-3c6090fd.entry.js +0 -1
  838. package/dist/taro-components/p-44398c17.system.entry.js +0 -1
  839. package/dist/taro-components/p-44cbb351.system.js +0 -1
  840. package/dist/taro-components/p-4ada10aa.entry.js +0 -1
  841. package/dist/taro-components/p-4cf436f9.entry.js +0 -1
  842. package/dist/taro-components/p-4d826fb7.entry.js +0 -1
  843. package/dist/taro-components/p-55266a1f.entry.js +0 -1
  844. package/dist/taro-components/p-56c86512.entry.js +0 -1
  845. package/dist/taro-components/p-5733124c.entry.js +0 -1
  846. package/dist/taro-components/p-57a2a441.entry.js +0 -1
  847. package/dist/taro-components/p-59d93770.entry.js +0 -1
  848. package/dist/taro-components/p-5a2305e7.entry.js +0 -1
  849. package/dist/taro-components/p-5a374cb9.entry.js +0 -1
  850. package/dist/taro-components/p-5c87902f.system.entry.js +0 -1
  851. package/dist/taro-components/p-5e223bab.system.entry.js +0 -1
  852. package/dist/taro-components/p-5f18259d.system.entry.js +0 -1
  853. package/dist/taro-components/p-62fc514e.entry.js +0 -1
  854. package/dist/taro-components/p-63a0c6b0.entry.js +0 -1
  855. package/dist/taro-components/p-64447f5a.system.entry.js +0 -1
  856. package/dist/taro-components/p-67222d90.system.entry.js +0 -1
  857. package/dist/taro-components/p-6800ac6f.entry.js +0 -1
  858. package/dist/taro-components/p-6aa557f0.entry.js +0 -1
  859. package/dist/taro-components/p-72f858e4.entry.js +0 -1
  860. package/dist/taro-components/p-7374537f.entry.js +0 -1
  861. package/dist/taro-components/p-7407013d.entry.js +0 -1
  862. package/dist/taro-components/p-7d329ab0.entry.js +0 -1
  863. package/dist/taro-components/p-7f93fa08.entry.js +0 -1
  864. package/dist/taro-components/p-82661d45.system.entry.js +0 -1
  865. package/dist/taro-components/p-8475421b.system.entry.js +0 -1
  866. package/dist/taro-components/p-8788dc46.system.entry.js +0 -1
  867. package/dist/taro-components/p-886571e5.entry.js +0 -1
  868. package/dist/taro-components/p-888fac99.entry.js +0 -1
  869. package/dist/taro-components/p-8aea3de3.entry.js +0 -1
  870. package/dist/taro-components/p-8c8be53b.entry.js +0 -1
  871. package/dist/taro-components/p-8cf86f31.system.entry.js +0 -1
  872. package/dist/taro-components/p-9234cc1d.entry.js +0 -1
  873. package/dist/taro-components/p-92699438.entry.js +0 -1
  874. package/dist/taro-components/p-9a0e70b1.entry.js +0 -1
  875. package/dist/taro-components/p-9afbb423.system.entry.js +0 -1
  876. package/dist/taro-components/p-9b39a940.entry.js +0 -1
  877. package/dist/taro-components/p-9e1572c5.system.entry.js +0 -1
  878. package/dist/taro-components/p-ab1256fe.entry.js +0 -1
  879. package/dist/taro-components/p-ad6ad7e3.system.entry.js +0 -1
  880. package/dist/taro-components/p-afbcd093.entry.js +0 -1
  881. package/dist/taro-components/p-b1ae9401.entry.js +0 -1
  882. package/dist/taro-components/p-b2800ccd.entry.js +0 -1
  883. package/dist/taro-components/p-b3b677fc.entry.js +0 -1
  884. package/dist/taro-components/p-b3d961f9.system.entry.js +0 -1
  885. package/dist/taro-components/p-b60820b4.entry.js +0 -1
  886. package/dist/taro-components/p-b7639674.entry.js +0 -1
  887. package/dist/taro-components/p-b7ac0b7f.system.entry.js +0 -1
  888. package/dist/taro-components/p-b9903f15.system.entry.js +0 -1
  889. package/dist/taro-components/p-bd706d39.entry.js +0 -1
  890. package/dist/taro-components/p-c92bafb6.system.entry.js +0 -1
  891. package/dist/taro-components/p-cf048af9.entry.js +0 -1
  892. package/dist/taro-components/p-d5f3080c.entry.js +0 -1
  893. package/dist/taro-components/p-df3b544a.system.entry.js +0 -1
  894. package/dist/taro-components/p-dff55efd.entry.js +0 -1
  895. package/dist/taro-components/p-eec00033.entry.js +0 -1
  896. package/dist/taro-components/p-eeed74e3.system.entry.js +0 -1
  897. package/dist/taro-components/p-ef006b23.entry.js +0 -1
  898. package/dist/taro-components/p-f8b9c4b0.entry.js +0 -1
  899. package/dist/taro-components/p-fa2a9bab.entry.js +0 -1
  900. package/dist/taro-components/p-fec6ac36.entry.js +0 -1
  901. package/dist/taro-components/p-ff84986d.entry.js +0 -1
  902. package/dist/taro-components/p-ffefd74f.entry.js +0 -1
@@ -0,0 +1,2 @@
1
+ import{r,h as s,H as o}from"./p-5bfefd19.js";const t=class{constructor(s){r(this,s)}render(){return s(o,null)}};export{t as taro_slot_core};
2
+ //# sourceMappingURL=p-1e436d5b.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["src/components/slot/slot.tsx"],"names":["Slot","[object Object]","h","Host"],"mappings":"mDAKaA,EAAI,+BACfC,SACE,OACEC,EAACC,EAAI","sourcesContent":["import { Component, ComponentInterface, h, Host } from '@stencil/core'\n\n@Component({\n tag: 'taro-slot-core'\n})\nexport class Slot implements ComponentInterface {\n render () {\n return (\n <Host />\n )\n }\n}\n"]}
@@ -0,0 +1,2 @@
1
+ import{r as e,h as t,H as s}from"./p-5bfefd19.js";import{c as r}from"./p-76724e58.js";const o="taro-text-core{display:inline;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:pre-wrap}.taro-text__selectable{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}";const c=class{constructor(t){e(this,t);this.selectable=false}render(){const e=r({"taro-text__selectable":this.selectable});return t(s,{class:e},t("slot",null))}};c.style=o;export{c as taro_text_core};
2
+ //# sourceMappingURL=p-2096bc5f.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["src/components/text/style/index.scss?tag=taro-text-core","src/components/text/text.tsx"],"names":["indexCss","Text","[object Object]","cls","classNames","taro-text__selectable","this","selectable","h","Host","class"],"mappings":"sFAAA,MAAMA,EAAW,6PCOJC,EAAI,+CACM,MAErBC,SACE,MAAMC,EAAMC,EAAW,CACrBC,wBAAyBC,KAAKC,aAEhC,OACEC,EAACC,EAAI,CAACC,MAAOP,GACXK,EAAA,OAAA","sourcesContent":["taro-text-core {\n display: inline;\n user-select: none;\n white-space: pre-wrap;\n}\n\n.taro-text__selectable {\n user-select: text;\n}\n","import { Component, Prop, h, ComponentInterface, Host } from '@stencil/core'\nimport classNames from 'classnames'\n\n@Component({\n tag: 'taro-text-core',\n styleUrl: './style/index.scss'\n})\nexport class Text implements ComponentInterface {\n @Prop() selectable = false\n\n render () {\n const cls = classNames({\n 'taro-text__selectable': this.selectable\n })\n return (\n <Host class={cls}>\n <slot></slot>\n </Host>\n )\n }\n}\n"]}
@@ -0,0 +1,2 @@
1
+ import{r,h as o,H as t}from"./p-5bfefd19.js";import{n as a}from"./p-6a96da58.js";import"@tarojs/taro";const s=class{constructor(o){r(this,o)}componentDidLoad(){a("LivePlayer",this)}render(){return o(t,null)}};export{s as taro_live_player_core};
2
+ //# sourceMappingURL=p-20ec6387.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["src/components/live-player/live-player.tsx"],"names":["LivePlayer","[object Object]","notSupport","this","h","Host"],"mappings":"4GAOaA,EAAU,+BACrBC,mBACEC,EAAW,aAAcC,MAG3BF,SACE,OACEG,EAACC,EAAI","sourcesContent":["import { Component, ComponentInterface, h, Host } from '@stencil/core'\n\nimport { notSupport } from '../../utils'\n\n@Component({\n tag: 'taro-live-player-core'\n})\nexport class LivePlayer implements ComponentInterface {\n componentDidLoad () {\n notSupport('LivePlayer', this)\n }\n\n render () {\n return (\n <Host />\n )\n }\n}\n"]}
@@ -1 +1,2 @@
1
- System.register(["./p-44cbb351.system.js","./p-15e45ed6.system.js","@tarojs/taro"],(function(t){"use strict";var n,e,o,r;return{setters:[function(t){n=t.r;e=t.h;o=t.H},function(t){r=t.n},function(){}],execute:function(){var i=t("taro_functional_page_navigator_core",function(){function t(t){n(this,t)}t.prototype.componentDidLoad=function(){r("FunctionalPageNavigator",this)};t.prototype.render=function(){return e(o,null)};return t}())}}}));
1
+ System.register(["./p-8a8f286f.system.js","./p-15e45ed6.system.js","@tarojs/taro"],(function(t){"use strict";var n,e,o,r;return{setters:[function(t){n=t.r;e=t.h;o=t.H},function(t){r=t.n},function(){}],execute:function(){var i=t("taro_functional_page_navigator_core",function(){function t(t){n(this,t)}t.prototype.componentDidLoad=function(){r("FunctionalPageNavigator",this)};t.prototype.render=function(){return e(o,null)};return t}())}}}));
2
+ //# sourceMappingURL=p-21b77a13.system.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["src/components/functional-page-navigator/functional-page-navigator.tsx"],"names":["FunctionalPageNavigator","exports","class_1","prototype","componentDidLoad","notSupport","this","render","h","Host"],"mappings":"gOAOaA,EAAuBC,EAAA,sCAAA,mCAClCC,EAAAC,UAAAC,iBAAA,WACEC,EAAW,0BAA2BC,OAGxCJ,EAAAC,UAAAI,OAAA,WACE,OACEC,EAACC,EAAI,gBAPyB","sourcesContent":["import { Component, ComponentInterface, h, Host } from '@stencil/core'\n\nimport { notSupport } from '../../utils'\n\n@Component({\n tag: 'taro-functional-page-navigator-core'\n})\nexport class FunctionalPageNavigator implements ComponentInterface {\n componentDidLoad () {\n notSupport('FunctionalPageNavigator', this)\n }\n\n render () {\n return (\n <Host />\n )\n }\n}\n"]}
@@ -0,0 +1,2 @@
1
+ import{r as t,c as s,h as e,g as i}from"./p-5bfefd19.js";const h="taro-switch-core{display:inline-block;width:52px;height:32px}taro-switch-core .weui-switch{display:block;width:100%;height:100%}";const c=class{constructor(e){t(this,e);this.onChange=s(this,"change",7);this.switchChange=t=>{t.stopPropagation();const s=t.target.checked;this.isChecked=s;this.onChange.emit({value:s})};this.type="switch";this.checked=false;this.color="#04BE02";this.name=undefined;this.disabled=false;this.nativeProps={};this.isChecked=undefined;this.isWillLoadCalled=false}function(t,s){if(!this.isWillLoadCalled)return;if(t!==s)this.isChecked=t}componentWillLoad(){this.isWillLoadCalled=true;this.isChecked=this.checked}componentDidLoad(){Object.defineProperty(this.el,"value",{get:()=>this.isChecked,configurable:true})}render(){const{type:t,color:s,isChecked:i,name:h,disabled:c,nativeProps:o}=this;const n=i?{borderColor:s||"04BE02",backgroundColor:s||"04BE02"}:{};return e("input",Object.assign({type:"checkbox",class:`weui-${t}`,style:n,checked:i,name:h,disabled:c,onChange:this.switchChange},o))}get el(){return i(this)}static get watchers(){return{checked:["function"]}}};c.style=h;export{c as taro_switch_core};
2
+ //# sourceMappingURL=p-2243a376.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["src/components/switch/style/index.scss?tag=taro-switch-core","src/components/switch/switch.tsx"],"names":["indexCss","Switch","this","switchChange","e","stopPropagation","value","target","checked","isChecked","onChange","emit","[object Object]","newVal","oldVal","isWillLoadCalled","Object","defineProperty","el","get","configurable","type","color","name","disabled","nativeProps","style","borderColor","backgroundColor","h","assign","class"],"mappings":"yDAAA,MAAMA,EAAW,yICMJC,EAAM,gEAoCjBC,KAAAC,aAAeC,IACbA,EAAEC,kBACF,MAAMC,EAAQF,EAAEG,OAAOC,QACvBN,KAAKO,UAAYH,EACjBJ,KAAKQ,SAASC,KAAK,CACjBL,MAAAA,eAxCW,sBACG,iBACF,4CAEG,uBACG,kDAGM,MAK5BM,SAAUC,EAAiBC,GACzB,IAAKZ,KAAKa,iBAAkB,OAC5B,GAAIF,IAAWC,EAAQZ,KAAKO,UAAYI,EAQ1CD,oBACEV,KAAKa,iBAAmB,KACxBb,KAAKO,UAAYP,KAAKM,QAGxBI,mBACEI,OAAOC,eAAef,KAAKgB,GAAI,QAAS,CACtCC,IAAK,IAAMjB,KAAKO,UAChBW,aAAc,OAalBR,SACE,MAAMS,KACJA,EAAIC,MACJA,EAAKb,UACLA,EAASc,KACTA,EAAIC,SACJA,EAAQC,YACRA,GACEvB,KAEJ,MAAMwB,EAAQjB,EACV,CACAkB,YAAaL,GAAS,SACtBM,gBAAiBN,GAAS,UAE1B,GAEJ,OACEO,EAAA,QAAAb,OAAAc,OAAA,CACET,KAAK,WACLU,MAAO,QAAQV,IACfK,MAAOA,EACPlB,QAASC,EACTc,KAAMA,EACNC,SAAUA,EACVd,SAAUR,KAAKC,cACXsB","sourcesContent":["taro-switch-core {\n display: inline-block;\n width: 52px;\n height: 32px;\n\n .weui-switch {\n display: block;\n width: 100%;\n height: 100%;\n }\n}\n","import { Component, h, ComponentInterface, Prop, State, Event, EventEmitter, Watch, Element } from '@stencil/core'\n\n@Component({\n tag: 'taro-switch-core',\n styleUrl: './style/index.scss'\n})\nexport class Switch implements ComponentInterface {\n @Prop() type = 'switch'\n @Prop() checked = false\n @Prop() color = '#04BE02'\n @Prop() name: string\n @Prop() disabled = false\n @Prop() nativeProps = {}\n\n @State() isChecked: boolean\n @State() isWillLoadCalled = false\n\n @Element() el: HTMLElement\n\n @Watch('checked')\n function (newVal: boolean, oldVal: boolean) {\n if (!this.isWillLoadCalled) return\n if (newVal !== oldVal) this.isChecked = newVal\n }\n\n @Event({\n eventName: 'change'\n })\n onChange: EventEmitter\n\n componentWillLoad () {\n this.isWillLoadCalled = true\n this.isChecked = this.checked\n }\n\n componentDidLoad () {\n Object.defineProperty(this.el, 'value', {\n get: () => this.isChecked,\n configurable: true\n })\n }\n\n switchChange = e => {\n e.stopPropagation()\n const value = e.target.checked\n this.isChecked = value\n this.onChange.emit({\n value\n })\n }\n\n render () {\n const {\n type,\n color,\n isChecked,\n name,\n disabled,\n nativeProps\n } = this\n\n const style = isChecked\n ? {\n borderColor: color || '04BE02',\n backgroundColor: color || '04BE02'\n }\n : {}\n\n return (\n <input\n type='checkbox'\n class={`weui-${type}`}\n style={style}\n checked={isChecked}\n name={name}\n disabled={disabled}\n onChange={this.switchChange}\n {...nativeProps}\n />\n )\n }\n}\n"]}
@@ -0,0 +1,2 @@
1
+ import{r as t,c as s,h as i,H as o,g as l}from"./p-5bfefd19.js";import{c as r}from"./p-76724e58.js";import{d as e}from"./p-5746d7ce.js";const 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 h(t,s,i){if(t===s||typeof t!=="number"){return}const o=s-t;const l=500;const r=Date.now();const e=s>=t;function c(t,s,i,o){return i*t/o+s}function h(){t=c(Date.now()-r,t,o,l);if(e&&t>=s||!e&&s>=t){i(s);return}i(t);requestAnimationFrame(h)}h()}const n=class{constructor(i){t(this,i);this.onScroll=s(this,"scroll",3);this.onScrollToUpper=s(this,"scrolltoupper",3);this.onScrollToLower=s(this,"scrolltolower",3);this.upperAndLower=e((()=>{const{offsetWidth:t,offsetHeight:s,scrollLeft:i,scrollTop:o,scrollHeight:l,scrollWidth:r}=this.el;const e=Number(this.lowerThreshold);const c=Number(this.upperThreshold);if(!isNaN(e)&&(this.scrollY&&s+o+e>=l||this.scrollX&&t+i+e>=r)){this.onScrollToLower.emit({direction:this.scrollX?"right":this.scrollY?"bottom":""})}if(!isNaN(c)&&(this.scrollY&&o<=c||this.scrollX&&i<=c)){this.onScrollToUpper.emit({direction:this.scrollX?"left":this.scrollY?"top":""})}}),200);this.scrollX=false;this.scrollY=false;this.upperThreshold=50;this.lowerThreshold=50;this.mpScrollTop=undefined;this.mpScrollLeft=undefined;this.mpScrollIntoView=undefined;this.scrollWithAnimation=false}watchScrollLeft(t){const s=Number(t);if(this.scrollX&&!isNaN(s)&&s!==this._scrollLeft){if(this.scrollWithAnimation){h(this._scrollLeft,s,(t=>this.el.scrollLeft=t))}else{this.el.scrollLeft=s}this._scrollLeft=s}}watchScrollTop(t){const s=Number(t);if(this.scrollY&&!isNaN(s)&&s!==this._scrollTop){if(this.scrollWithAnimation){h(this._scrollTop,s,(t=>this.el.scrollTop=t))}else{this.el.scrollTop=s}this._scrollTop=s}}watchScrollIntoView(t){var s;if(typeof t==="string"&&t){(s=document.querySelector(`#${t}`))===null||s===void 0?void 0:s.scrollIntoView({behavior:"smooth",block:"center",inline:"start"})}}handleScroll(t){if(t instanceof CustomEvent)return;const{scrollLeft:s,scrollTop:i,scrollHeight:o,scrollWidth:l}=this.el;this._scrollLeft=s;this._scrollTop=i;this.upperAndLower();this.onScroll.emit({scrollLeft:s,scrollTop:i,scrollHeight:o,scrollWidth:l});t.cancelBubble=true}componentDidLoad(){const{scrollY:t,scrollX:s,scrollWithAnimation:i}=this;const o=Number(this.mpScrollTop);const l=Number(this.mpScrollLeft);if(t&&!isNaN(o)){if(i){h(0,o,(t=>this.el.scrollTop=t))}else{this.el.scrollTop=o}this._scrollTop=o}if(s&&!isNaN(l)){if(i){h(0,l,(t=>this.el.scrollLeft=t))}else{this.el.scrollLeft=l}this._scrollLeft=l}}render(){const{scrollX:t,scrollY:s}=this;const l=r({"taro-scroll-view__scroll-x":t,"taro-scroll-view__scroll-y":s});return i(o,{class:l},i("slot",null))}get el(){return l(this)}static get watchers(){return{mpScrollLeft:["watchScrollLeft"],mpScrollTop:["watchScrollTop"],mpScrollIntoView:["watchScrollIntoView"]}}};n.style=c;export{n as taro_scroll_view_core};
2
+ //# sourceMappingURL=p-22f9f9fa.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["src/components/scroll-view/style/index.scss?tag=taro-scroll-view-core","src/components/scroll-view/scroll-view.tsx"],"names":["indexCss","easeOutScroll","from","to","callback","change","dur","sTime","Date","now","isLarger","linear","t","b","c","d","step","requestAnimationFrame","ScrollView","this","upperAndLower","debounce","offsetWidth","offsetHeight","scrollLeft","scrollTop","scrollHeight","scrollWidth","el","lowerThreshold","Number","upperThreshold","isNaN","scrollY","scrollX","onScrollToLower","emit","direction","onScrollToUpper","[object Object]","newVal","_scrollLeft","scrollWithAnimation","pos","_scrollTop","_a","document","querySelector","scrollIntoView","behavior","block","inline","e","CustomEvent","onScroll","cancelBubble","mpScrollTop","mpScrollLeft","cls","classNames","taro-scroll-view__scroll-x","taro-scroll-view__scroll-y","h","Host","class"],"mappings":"wIAAA,MAAMA,EAAW,wQCKjB,SAASC,EAAeC,EAAcC,EAAYC,GAChD,GAAIF,IAASC,UAAaD,IAAS,SAAU,CAC3C,OAGF,MAAMG,EAASF,EAAKD,EACpB,MAAMI,EAAM,IACZ,MAAMC,EAAQC,KAAKC,MACnB,MAAMC,EAAWP,GAAMD,EAEvB,SAASS,EAAQC,EAAWC,EAAWC,EAAWC,GAChD,OAAOD,EAAIF,EAAIG,EAAIF,EAGrB,SAASG,IACPd,EAAOS,EAAOH,KAAKC,MAAQF,EAAOL,EAAMG,EAAQC,GAChD,GAAKI,GAAYR,GAAQC,IAASO,GAAYP,GAAMD,EAAO,CACzDE,EAASD,GACT,OAEFC,EAASF,GACTe,sBAAsBD,GAGxBA,UAOWE,EAAU,8JAmIrBC,KAAAC,cAAgBC,GAAS,KACvB,MAAMC,YACJA,EAAWC,aACXA,EAAYC,WACZA,EAAUC,UACVA,EAASC,aACTA,EAAYC,YACZA,GACER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IA,aAAaC,YAAa,OAE9B,MAAM7B,WACJA,EAAUC,UACVA,EAASC,aACTA,EAAYC,YACZA,GACER,KAAKS,GACTT,KAAKsB,YAAcjB,EACnBL,KAAKyB,WAAanB,EAElBN,KAAKC,gBAELD,KAAKmC,SAASlB,KAAK,CACjBZ,WAAAA,EACAC,UAAAA,EACAC,aAAAA,EACAC,YAAAA,IAEFyB,EAAEG,aAAe,KAGnBhB,mBACE,MAAMN,QACJA,EAAOC,QACPA,EAAOQ,oBACPA,GACEvB,KAEJ,MAAMM,EAAYK,OAAOX,KAAKqC,aAC9B,MAAMhC,EAAaM,OAAOX,KAAKsC,cAE/B,GAAIxB,IAAYD,MAAMP,GAAY,CAChC,GAAIiB,EAAqB,CACvBzC,EAAc,EAAGwB,GAAWkB,GAAQxB,KAAKS,GAAGH,UAAYkB,QACnD,CACLxB,KAAKS,GAAGH,UAAYA,EAEtBN,KAAKyB,WAAanB,EAGpB,GAAIS,IAAYF,MAAMR,GAAa,CACjC,GAAIkB,EAAqB,CACvBzC,EAAc,EAAGuB,GAAYmB,GAAQxB,KAAKS,GAAGJ,WAAamB,QACrD,CACLxB,KAAKS,GAAGJ,WAAaA,EAEvBL,KAAKsB,YAAcjB,GAsCvBe,SACE,MAAML,QACJA,EAAOD,QACPA,GACEd,KAEJ,MAAMuC,EAAMC,EAAW,CACrBC,6BAA8B1B,EAC9B2B,6BAA8B5B,IAEhC,OACE6B,EAACC,EAAI,CAACC,MAAON,GACXI,EAAA,OAAA","sourcesContent":["taro-scroll-view-core {\n display: block;\n width: 100%;\n -webkit-overflow-scrolling: auto;\n\n &::-webkit-scrollbar {\n display: none;\n }\n}\n\n.taro-scroll-view {\n &__scroll-x {\n overflow-x: scroll;\n overflow-y: hidden;\n }\n\n &__scroll-y {\n overflow-x: hidden;\n overflow-y: scroll;\n }\n}\n","import { Component, h, ComponentInterface, Prop, Event, EventEmitter, Watch, Element, Host, Listen } from '@stencil/core'\nimport classNames from 'classnames'\n\nimport { debounce } from '../../utils'\n\nfunction easeOutScroll (from: number, to: number, callback) {\n if (from === to || typeof from !== 'number') {\n return\n }\n\n const change = to - from\n const dur = 500\n const sTime = Date.now()\n const isLarger = to >= from\n\n function linear (t: number, b: number, c: number, d: number): number {\n return c * t / d + b\n }\n\n function step () {\n from = linear(Date.now() - sTime, from, change, dur)\n if ((isLarger && from >= to) || (!isLarger && to >= from)) {\n callback(to)\n return\n }\n callback(from)\n requestAnimationFrame(step)\n }\n\n step()\n}\n\n@Component({\n tag: 'taro-scroll-view-core',\n styleUrl: './style/index.scss'\n})\nexport class ScrollView implements ComponentInterface {\n private _scrollLeft: number\n private _scrollTop: number\n\n @Element() el: HTMLElement\n\n @Prop() scrollX = false\n @Prop() scrollY = false\n @Prop() upperThreshold: number | string = 50\n @Prop() lowerThreshold: number | string = 50\n @Prop({ attribute: 'scroll-top', reflect: true }) mpScrollTop: number | string\n @Prop({ attribute: 'scroll-left', reflect: true }) mpScrollLeft: number | string\n @Prop({ attribute: 'scroll-into-view', reflect: true }) mpScrollIntoView: string\n @Prop() scrollWithAnimation = false\n\n @Event({\n eventName: 'scroll',\n bubbles: false\n })\n onScroll: EventEmitter\n\n @Event({\n eventName: 'scrolltoupper',\n bubbles: false\n })\n onScrollToUpper: EventEmitter\n\n @Event({\n eventName: 'scrolltolower',\n bubbles: false\n })\n onScrollToLower: EventEmitter\n\n @Watch('mpScrollLeft')\n watchScrollLeft (newVal) {\n const scrollLeft = Number(newVal)\n if (\n this.scrollX &&\n !isNaN(scrollLeft) &&\n scrollLeft !== this._scrollLeft\n ) {\n if (this.scrollWithAnimation) {\n easeOutScroll(this._scrollLeft, scrollLeft, pos => (this.el.scrollLeft = pos))\n } else {\n this.el.scrollLeft = scrollLeft\n }\n this._scrollLeft = scrollLeft\n }\n }\n\n @Watch('mpScrollTop')\n watchScrollTop (newVal) {\n const scrollTop = Number(newVal)\n if (\n this.scrollY &&\n !isNaN(scrollTop) &&\n scrollTop !== this._scrollTop\n ) {\n if (this.scrollWithAnimation) {\n easeOutScroll(this._scrollTop, scrollTop, pos => (this.el.scrollTop = pos))\n } else {\n this.el.scrollTop = scrollTop\n }\n this._scrollTop = scrollTop\n }\n }\n\n @Watch('mpScrollIntoView')\n watchScrollIntoView (newVal) {\n if (typeof newVal === 'string' && newVal) {\n document.querySelector(`#${newVal}`)?.scrollIntoView({\n behavior: 'smooth',\n block: 'center',\n inline: 'start'\n })\n }\n }\n\n @Listen('scroll', { capture: true })\n handleScroll (e: Event) {\n if (e instanceof CustomEvent) return\n\n const {\n scrollLeft,\n scrollTop,\n scrollHeight,\n scrollWidth\n } = this.el\n this._scrollLeft = scrollLeft\n this._scrollTop = scrollTop\n\n this.upperAndLower()\n\n this.onScroll.emit({\n scrollLeft,\n scrollTop,\n scrollHeight,\n scrollWidth\n })\n e.cancelBubble = true\n }\n\n componentDidLoad () {\n const {\n scrollY,\n scrollX,\n scrollWithAnimation\n } = this\n\n const scrollTop = Number(this.mpScrollTop)\n const scrollLeft = Number(this.mpScrollLeft)\n\n if (scrollY && !isNaN(scrollTop)) {\n if (scrollWithAnimation) {\n easeOutScroll(0, scrollTop, pos => (this.el.scrollTop = pos))\n } else {\n this.el.scrollTop = scrollTop\n }\n this._scrollTop = scrollTop\n }\n\n if (scrollX && !isNaN(scrollLeft)) {\n if (scrollWithAnimation) {\n easeOutScroll(0, scrollLeft, pos => (this.el.scrollLeft = pos))\n } else {\n this.el.scrollLeft = scrollLeft\n }\n this._scrollLeft = scrollLeft\n }\n }\n\n upperAndLower = debounce(() => {\n const {\n offsetWidth,\n offsetHeight,\n scrollLeft,\n scrollTop,\n scrollHeight,\n scrollWidth\n } = this.el\n\n const lowerThreshold = Number(this.lowerThreshold)\n const upperThreshold = Number(this.upperThreshold)\n\n if (\n !isNaN(lowerThreshold) &&\n ((this.scrollY && offsetHeight + scrollTop + lowerThreshold >= scrollHeight) ||\n (this.scrollX && offsetWidth + scrollLeft + lowerThreshold >= scrollWidth))\n ) {\n this.onScrollToLower.emit({\n direction: this.scrollX ? 'right' : (this.scrollY ? 'bottom' : '')\n })\n }\n\n if (\n !isNaN(upperThreshold) &&\n ((this.scrollY && scrollTop <= upperThreshold) ||\n (this.scrollX && scrollLeft <= upperThreshold))\n ) {\n this.onScrollToUpper.emit({\n direction: this.scrollX ? 'left' : (this.scrollY ? 'top' : '')\n })\n }\n }, 200)\n\n render () {\n const {\n scrollX,\n scrollY\n } = this\n\n const cls = classNames({\n 'taro-scroll-view__scroll-x': scrollX,\n 'taro-scroll-view__scroll-y': scrollY\n })\n return (\n <Host class={cls}>\n <slot />\n </Host>\n )\n }\n}\n"]}
@@ -0,0 +1,2 @@
1
+ import{r as s,h as o,H as r}from"./p-5bfefd19.js";const t=class{constructor(o){s(this,o);this.percent=0;this.showInfo=false;this.borderRadius=0;this.fontSize=16;this.strokeWidth=6;this.activeColor="#09BB07";this.backgroundColor="#EBEBEB";this.active=false}render(){const{percent:s,showInfo:t,borderRadius:e,fontSize:i,strokeWidth:n,activeColor:a,backgroundColor:c,active:h}=this;const l=s>100?100:s<0?0:s;const d={height:n+"px",backgroundColor:c};const p=h?"width 1s ease-in-out":"none";const u={width:`${l}%`,transition:p,WebkitTransition:p,backgroundColor:a,borderRadius:e?`${e}px`:"0px"};return o(r,{class:"weui-progress"},o("div",{class:"weui-progress__bar",style:d},o("div",{class:"weui-progress__inner-bar",style:u})),t&&o("div",{class:"weui-progress__opr",style:{"font-size":`${i}px`}},o("span",null,l,"%")))}};export{t as taro_progress_core};
2
+ //# sourceMappingURL=p-29f04296.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["src/components/progress/progress.tsx"],"names":["Progress","[object Object]","percent","showInfo","borderRadius","fontSize","strokeWidth","activeColor","backgroundColor","active","this","pgPercent","pgHeight","height","transition","pgWidth","width","WebkitTransition","h","Host","class","style","font-size"],"mappings":"wDAKaA,EAAQ,4CACD,gBACC,wBACqB,gBACJ,oBACG,mBACjB,+BACI,sBACT,MAEjBC,SACE,MAAMC,QACJA,EAAOC,SACPA,EAAQC,aACRA,EAAYC,SACZA,EAAQC,YACRA,EAAWC,YACXA,EAAWC,gBACXA,EAAeC,OACfA,GACEC,KAEJ,MAAMC,EAAYT,EAAU,IAAM,IAAMA,EAAU,EAAI,EAAIA,EAC1D,MAAMU,EAAW,CACfC,OAAQP,EAAc,KACtBE,gBAAAA,GAEF,MAAMM,EAAaL,EAAS,uBAAyB,OACrD,MAAMM,EAAU,CACdC,MAAO,GAAGL,KACVG,WAAAA,EACAG,iBAAkBH,EAClBN,gBAAiBD,EACjBH,aAAcA,EAAe,GAAGA,MAAmB,OAGrD,OACEc,EAACC,EAAI,CAACC,MAAM,iBACVF,EAAA,MAAA,CAAKE,MAAM,qBAAqBC,MAAOT,GACrCM,EAAA,MAAA,CAAKE,MAAM,2BAA2BC,MAAON,KAG9CZ,GACCe,EAAA,MAAA,CAAKE,MAAM,qBAAqBC,MAAO,CAAEC,YAAa,GAAGjB,QACvDa,EAAA,OAAA,KAAOP,EAAS","sourcesContent":["import { Component, h, ComponentInterface, Prop, Host } from '@stencil/core'\n\n@Component({\n tag: 'taro-progress-core'\n})\nexport class Progress implements ComponentInterface {\n @Prop() percent = 0\n @Prop() showInfo = false\n @Prop() borderRadius: number | string = 0\n @Prop() fontSize: number | string = 16\n @Prop() strokeWidth: number | string = 6\n @Prop() activeColor = '#09BB07'\n @Prop() backgroundColor = '#EBEBEB'\n @Prop() active = false\n\n render () {\n const {\n percent,\n showInfo,\n borderRadius,\n fontSize,\n strokeWidth,\n activeColor,\n backgroundColor,\n active\n } = this\n\n const pgPercent = percent > 100 ? 100 : percent < 0 ? 0 : percent\n const pgHeight = {\n height: strokeWidth + 'px',\n backgroundColor\n }\n const transition = active ? 'width 1s ease-in-out' : 'none'\n const pgWidth = {\n width: `${pgPercent}%`,\n transition,\n WebkitTransition: transition,\n backgroundColor: activeColor,\n borderRadius: borderRadius ? `${borderRadius}px` : '0px'\n }\n\n return (\n <Host class='weui-progress'>\n <div class='weui-progress__bar' style={pgHeight}>\n <div class='weui-progress__inner-bar' style={pgWidth} />\n </div>\n\n {showInfo && (\n <div class='weui-progress__opr' style={{ 'font-size': `${fontSize}px` }}>\n <span>{pgPercent}%</span>\n </div>\n )}\n </Host>\n )\n }\n}\n"]}
@@ -1 +1,2 @@
1
- System.register(["./p-44cbb351.system.js","./p-15e45ed6.system.js","@tarojs/taro"],(function(t){"use strict";var e,n,r,o;return{setters:[function(t){e=t.r;n=t.h;r=t.H},function(t){o=t.n},function(){}],execute:function(){var s=t("taro_share_element_core",function(){function t(t){e(this,t)}t.prototype.componentDidLoad=function(){o("ShareElement",this)};t.prototype.render=function(){return n(r,null)};return t}())}}}));
1
+ System.register(["./p-8a8f286f.system.js","./p-15e45ed6.system.js","@tarojs/taro"],(function(t){"use strict";var e,n,r,o;return{setters:[function(t){e=t.r;n=t.h;r=t.H},function(t){o=t.n},function(){}],execute:function(){var s=t("taro_share_element_core",function(){function t(t){e(this,t)}t.prototype.componentDidLoad=function(){o("ShareElement",this)};t.prototype.render=function(){return n(r,null)};return t}())}}}));
2
+ //# sourceMappingURL=p-301a8b85.system.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["src/components/share-element/share-element.tsx"],"names":["ShareElement","exports","class_1","prototype","componentDidLoad","notSupport","this","render","h","Host"],"mappings":"gOAOaA,EAAYC,EAAA,0BAAA,mCACvBC,EAAAC,UAAAC,iBAAA,WACEC,EAAW,eAAgBC,OAG7BJ,EAAAC,UAAAI,OAAA,WACE,OACEC,EAACC,EAAI,gBAPc","sourcesContent":["import { Component, ComponentInterface, h, Host } from '@stencil/core'\n\nimport { notSupport } from '../../utils'\n\n@Component({\n tag: 'taro-share-element-core'\n})\nexport class ShareElement implements ComponentInterface {\n componentDidLoad () {\n notSupport('ShareElement', this)\n }\n\n render () {\n return (\n <Host />\n )\n }\n}\n"]}
@@ -1 +1,2 @@
1
- System.register([],(function(){"use strict";return{execute:function(){(function(){if(typeof window!=="object"){return}if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype){if(!("isIntersecting"in window.IntersectionObserverEntry.prototype)){Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}})}return}var t=window.document;function e(t){this.time=t.time;this.target=t.target;this.rootBounds=t.rootBounds;this.boundingClientRect=t.boundingClientRect;this.intersectionRect=t.intersectionRect||a();this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect;var n=e.width*e.height;var r=this.intersectionRect;var i=r.width*r.height;if(n){this.intersectionRatio=Number((i/n).toFixed(4))}else{this.intersectionRatio=this.isIntersecting?1:0}}function n(t,e){var n=e||{};if(typeof t!="function"){throw new Error("callback must be a function")}if(n.root&&n.root.nodeType!=1){throw new Error("root must be an Element")}this._checkForIntersections=i(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT);this._callback=t;this._observationTargets=[];this._queuedEntries=[];this._rootMarginValues=this._parseRootMargin(n.rootMargin);this.thresholds=this._initThresholds(n.threshold);this.root=n.root||null;this.rootMargin=this._rootMarginValues.map((function(t){return t.value+t.unit})).join(" ")}n.prototype.THROTTLE_TIMEOUT=100;n.prototype.POLL_INTERVAL=null;n.prototype.USE_MUTATION_OBSERVER=true;n.prototype.observe=function(t){var e=this._observationTargets.some((function(e){return e.element==t}));if(e){return}if(!(t&&t.nodeType==1)){throw new Error("target must be an Element")}this._registerInstance();this._observationTargets.push({element:t,entry:null});this._monitorIntersections();this._checkForIntersections()};n.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter((function(e){return e.element!=t}));if(!this._observationTargets.length){this._unmonitorIntersections();this._unregisterInstance()}};n.prototype.disconnect=function(){this._observationTargets=[];this._unmonitorIntersections();this._unregisterInstance()};n.prototype.takeRecords=function(){var t=this._queuedEntries.slice();this._queuedEntries=[];return t};n.prototype._initThresholds=function(t){var e=t||[0];if(!Array.isArray(e))e=[e];return e.sort().filter((function(t,e,n){if(typeof t!="number"||isNaN(t)||t<0||t>1){throw new Error("threshold must be a number between 0 and 1 inclusively")}return t!==n[e-1]}))};n.prototype._parseRootMargin=function(t){var e=t||"0px";var n=e.split(/\s+/).map((function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e){throw new Error("rootMargin must be specified in pixels or percent")}return{value:parseFloat(e[1]),unit:e[2]}}));n[1]=n[1]||n[0];n[2]=n[2]||n[0];n[3]=n[3]||n[1];return n};n.prototype._monitorIntersections=function(){if(!this._monitoringIntersections){this._monitoringIntersections=true;if(this.POLL_INTERVAL){this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL)}else{o(window,"resize",this._checkForIntersections,true);o(t,"scroll",this._checkForIntersections,true);if(this.USE_MUTATION_OBSERVER&&"MutationObserver"in window){this._domObserver=new MutationObserver(this._checkForIntersections);this._domObserver.observe(t,{attributes:true,childList:true,characterData:true,subtree:true})}}}};n.prototype._unmonitorIntersections=function(){if(this._monitoringIntersections){this._monitoringIntersections=false;clearInterval(this._monitoringInterval);this._monitoringInterval=null;s(window,"resize",this._checkForIntersections,true);s(t,"scroll",this._checkForIntersections,true);if(this._domObserver){this._domObserver.disconnect();this._domObserver=null}}};n.prototype._checkForIntersections=function(){var t=this._rootIsInDom();var n=t?this._getRootRect():a();this._observationTargets.forEach((function(i){var o=i.element;var s=c(o);var h=this._rootContainsTarget(o);var a=i.entry;var u=t&&h&&this._computeTargetAndRootIntersection(o,n);var f=i.entry=new e({time:r(),target:o,boundingClientRect:s,rootBounds:n,intersectionRect:u});if(!a){this._queuedEntries.push(f)}else if(t&&h){if(this._hasCrossedThreshold(a,f)){this._queuedEntries.push(f)}}else{if(a&&a.isIntersecting){this._queuedEntries.push(f)}}}),this);if(this._queuedEntries.length){this._callback(this.takeRecords(),this)}};n.prototype._computeTargetAndRootIntersection=function(e,n){if(window.getComputedStyle(e).display=="none")return;var r=c(e);var i=r;var o=f(e);var s=false;while(!s){var a=null;var u=o.nodeType==1?window.getComputedStyle(o):{};if(u.display=="none")return;if(o==this.root||o==t){s=true;a=n}else{if(o!=t.body&&o!=t.documentElement&&u.overflow!="visible"){a=c(o)}}if(a){i=h(a,i);if(!i)break}o=f(o)}return i};n.prototype._getRootRect=function(){var e;if(this.root){e=c(this.root)}else{var n=t.documentElement;var r=t.body;e={top:0,left:0,right:n.clientWidth||r.clientWidth,width:n.clientWidth||r.clientWidth,bottom:n.clientHeight||r.clientHeight,height:n.clientHeight||r.clientHeight}}return this._expandRectByRootMargin(e)};n.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map((function(e,n){return e.unit=="px"?e.value:e.value*(n%2?t.width:t.height)/100}));var n={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};n.width=n.right-n.left;n.height=n.bottom-n.top;return n};n.prototype._hasCrossedThreshold=function(t,e){var n=t&&t.isIntersecting?t.intersectionRatio||0:-1;var r=e.isIntersecting?e.intersectionRatio||0:-1;if(n===r)return;for(var i=0;i<this.thresholds.length;i++){var o=this.thresholds[i];if(o==n||o==r||o<n!==o<r){return true}}};n.prototype._rootIsInDom=function(){return!this.root||u(t,this.root)};n.prototype._rootContainsTarget=function(e){return u(this.root||t,e)};n.prototype._registerInstance=function(){};n.prototype._unregisterInstance=function(){};function r(){return window.performance&&performance.now&&performance.now()}function i(t,e){var n=null;return function(){if(!n){n=setTimeout((function(){t();n=null}),e)}}}function o(t,e,n,r){if(typeof t.addEventListener=="function"){t.addEventListener(e,n,r||false)}else if(typeof t.attachEvent=="function"){t.attachEvent("on"+e,n)}}function s(t,e,n,r){if(typeof t.removeEventListener=="function"){t.removeEventListener(e,n,r||false)}else if(typeof t.detatchEvent=="function"){t.detatchEvent("on"+e,n)}}function h(t,e){var n=Math.max(t.top,e.top);var r=Math.min(t.bottom,e.bottom);var i=Math.max(t.left,e.left);var o=Math.min(t.right,e.right);var s=o-i;var h=r-n;return s>=0&&h>=0&&{top:n,bottom:r,left:i,right:o,width:s,height:h}}function c(t){var e;try{e=t.getBoundingClientRect()}catch(t){}if(!e)return a();if(!(e.width&&e.height)){e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}}return e}function a(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function u(t,e){var n=e;while(n){if(n==t)return true;n=f(n)}return false}function f(t){var e=t.parentNode;if(e&&e.nodeType==11&&e.host){return e.host}if(e&&e.assignedSlot){return e.assignedSlot.parentNode}return e}window.IntersectionObserver=n;window.IntersectionObserverEntry=e})()}}}));
1
+ System.register([],(function(){"use strict";return{execute:function(){(function(){if(typeof window!=="object"){return}if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype){if(!("isIntersecting"in window.IntersectionObserverEntry.prototype)){Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}})}return}var t=window.document;function e(t){this.time=t.time;this.target=t.target;this.rootBounds=t.rootBounds;this.boundingClientRect=t.boundingClientRect;this.intersectionRect=t.intersectionRect||a();this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect;var n=e.width*e.height;var r=this.intersectionRect;var i=r.width*r.height;if(n){this.intersectionRatio=Number((i/n).toFixed(4))}else{this.intersectionRatio=this.isIntersecting?1:0}}function n(t,e){var n=e||{};if(typeof t!="function"){throw new Error("callback must be a function")}if(n.root&&n.root.nodeType!=1){throw new Error("root must be an Element")}this._checkForIntersections=i(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT);this._callback=t;this._observationTargets=[];this._queuedEntries=[];this._rootMarginValues=this._parseRootMargin(n.rootMargin);this.thresholds=this._initThresholds(n.threshold);this.root=n.root||null;this.rootMargin=this._rootMarginValues.map((function(t){return t.value+t.unit})).join(" ")}n.prototype.THROTTLE_TIMEOUT=100;n.prototype.POLL_INTERVAL=null;n.prototype.USE_MUTATION_OBSERVER=true;n.prototype.observe=function(t){var e=this._observationTargets.some((function(e){return e.element==t}));if(e){return}if(!(t&&t.nodeType==1)){throw new Error("target must be an Element")}this._registerInstance();this._observationTargets.push({element:t,entry:null});this._monitorIntersections();this._checkForIntersections()};n.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter((function(e){return e.element!=t}));if(!this._observationTargets.length){this._unmonitorIntersections();this._unregisterInstance()}};n.prototype.disconnect=function(){this._observationTargets=[];this._unmonitorIntersections();this._unregisterInstance()};n.prototype.takeRecords=function(){var t=this._queuedEntries.slice();this._queuedEntries=[];return t};n.prototype._initThresholds=function(t){var e=t||[0];if(!Array.isArray(e))e=[e];return e.sort().filter((function(t,e,n){if(typeof t!="number"||isNaN(t)||t<0||t>1){throw new Error("threshold must be a number between 0 and 1 inclusively")}return t!==n[e-1]}))};n.prototype._parseRootMargin=function(t){var e=t||"0px";var n=e.split(/\s+/).map((function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e){throw new Error("rootMargin must be specified in pixels or percent")}return{value:parseFloat(e[1]),unit:e[2]}}));n[1]=n[1]||n[0];n[2]=n[2]||n[0];n[3]=n[3]||n[1];return n};n.prototype._monitorIntersections=function(){if(!this._monitoringIntersections){this._monitoringIntersections=true;if(this.POLL_INTERVAL){this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL)}else{o(window,"resize",this._checkForIntersections,true);o(t,"scroll",this._checkForIntersections,true);if(this.USE_MUTATION_OBSERVER&&"MutationObserver"in window){this._domObserver=new MutationObserver(this._checkForIntersections);this._domObserver.observe(t,{attributes:true,childList:true,characterData:true,subtree:true})}}}};n.prototype._unmonitorIntersections=function(){if(this._monitoringIntersections){this._monitoringIntersections=false;clearInterval(this._monitoringInterval);this._monitoringInterval=null;s(window,"resize",this._checkForIntersections,true);s(t,"scroll",this._checkForIntersections,true);if(this._domObserver){this._domObserver.disconnect();this._domObserver=null}}};n.prototype._checkForIntersections=function(){var t=this._rootIsInDom();var n=t?this._getRootRect():a();this._observationTargets.forEach((function(i){var o=i.element;var s=c(o);var h=this._rootContainsTarget(o);var a=i.entry;var u=t&&h&&this._computeTargetAndRootIntersection(o,n);var f=i.entry=new e({time:r(),target:o,boundingClientRect:s,rootBounds:n,intersectionRect:u});if(!a){this._queuedEntries.push(f)}else if(t&&h){if(this._hasCrossedThreshold(a,f)){this._queuedEntries.push(f)}}else{if(a&&a.isIntersecting){this._queuedEntries.push(f)}}}),this);if(this._queuedEntries.length){this._callback(this.takeRecords(),this)}};n.prototype._computeTargetAndRootIntersection=function(e,n){if(window.getComputedStyle(e).display=="none")return;var r=c(e);var i=r;var o=f(e);var s=false;while(!s){var a=null;var u=o.nodeType==1?window.getComputedStyle(o):{};if(u.display=="none")return;if(o==this.root||o==t){s=true;a=n}else{if(o!=t.body&&o!=t.documentElement&&u.overflow!="visible"){a=c(o)}}if(a){i=h(a,i);if(!i)break}o=f(o)}return i};n.prototype._getRootRect=function(){var e;if(this.root){e=c(this.root)}else{var n=t.documentElement;var r=t.body;e={top:0,left:0,right:n.clientWidth||r.clientWidth,width:n.clientWidth||r.clientWidth,bottom:n.clientHeight||r.clientHeight,height:n.clientHeight||r.clientHeight}}return this._expandRectByRootMargin(e)};n.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map((function(e,n){return e.unit=="px"?e.value:e.value*(n%2?t.width:t.height)/100}));var n={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};n.width=n.right-n.left;n.height=n.bottom-n.top;return n};n.prototype._hasCrossedThreshold=function(t,e){var n=t&&t.isIntersecting?t.intersectionRatio||0:-1;var r=e.isIntersecting?e.intersectionRatio||0:-1;if(n===r)return;for(var i=0;i<this.thresholds.length;i++){var o=this.thresholds[i];if(o==n||o==r||o<n!==o<r){return true}}};n.prototype._rootIsInDom=function(){return!this.root||u(t,this.root)};n.prototype._rootContainsTarget=function(e){return u(this.root||t,e)};n.prototype._registerInstance=function(){};n.prototype._unregisterInstance=function(){};function r(){return window.performance&&performance.now&&performance.now()}function i(t,e){var n=null;return function(){if(!n){n=setTimeout((function(){t();n=null}),e)}}}function o(t,e,n,r){if(typeof t.addEventListener=="function"){t.addEventListener(e,n,r||false)}else if(typeof t.attachEvent=="function"){t.attachEvent("on"+e,n)}}function s(t,e,n,r){if(typeof t.removeEventListener=="function"){t.removeEventListener(e,n,r||false)}else if(typeof t.detatchEvent=="function"){t.detatchEvent("on"+e,n)}}function h(t,e){var n=Math.max(t.top,e.top);var r=Math.min(t.bottom,e.bottom);var i=Math.max(t.left,e.left);var o=Math.min(t.right,e.right);var s=o-i;var h=r-n;return s>=0&&h>=0&&{top:n,bottom:r,left:i,right:o,width:s,height:h}}function c(t){var e;try{e=t.getBoundingClientRect()}catch(t){}if(!e)return a();if(!(e.width&&e.height)){e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}}return e}function a(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function u(t,e){var n=e;while(n){if(n==t)return true;n=f(n)}return false}function f(t){var e=t.parentNode;if(e&&e.nodeType==11&&e.host){return e.host}if(e&&e.assignedSlot){return e.assignedSlot.parentNode}return e}window.IntersectionObserver=n;window.IntersectionObserverEntry=e})()}}}));
2
+ //# sourceMappingURL=p-3b1d2d37.system.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../node_modules/.pnpm/registry.npmjs.org+intersection-observer@0.7.0/node_modules/intersection-observer/intersection-observer.js"],"names":["window","IntersectionObserverEntry","prototype","Object","defineProperty","get","this","intersectionRatio","document","entry","time","target","rootBounds","boundingClientRect","intersectionRect","getEmptyRect","isIntersecting","targetRect","targetArea","width","height","intersectionArea","Number","toFixed","IntersectionObserver","callback","opt_options","options","Error","root","nodeType","_checkForIntersections","throttle","bind","THROTTLE_TIMEOUT","_callback","_observationTargets","_queuedEntries","_rootMarginValues","_parseRootMargin","rootMargin","thresholds","_initThresholds","threshold","map","margin","value","unit","join","POLL_INTERVAL","USE_MUTATION_OBSERVER","observe","isTargetAlreadyObserved","some","item","element","_registerInstance","push","_monitorIntersections","unobserve","filter","length","_unmonitorIntersections","_unregisterInstance","disconnect","takeRecords","records","slice","opt_threshold","Array","isArray","sort","t","i","a","isNaN","opt_rootMargin","marginString","margins","split","parts","exec","parseFloat","_monitoringIntersections","_monitoringInterval","setInterval","addEvent","_domObserver","MutationObserver","attributes","childList","characterData","subtree","clearInterval","removeEvent","rootIsInDom","_rootIsInDom","rootRect","_getRootRect","forEach","getBoundingClientRect","rootContainsTarget","_rootContainsTarget","oldEntry","_computeTargetAndRootIntersection","newEntry","now","_hasCrossedThreshold","getComputedStyle","display","parent","getParentNode","atRoot","parentRect","parentComputedStyle","body","documentElement","overflow","computeRectIntersection","html","top","left","right","clientWidth","bottom","clientHeight","_expandRectByRootMargin","rect","newRect","oldRatio","newRatio","containsDeep","performance","fn","timeout","timer","setTimeout","node","event","opt_useCapture","addEventListener","attachEvent","removeEventListener","detatchEvent","rect1","rect2","Math","max","min","el","err","child","parentNode","host","assignedSlot"],"mappings":"uEAQC,WAID,UAAWA,SAAW,SAAU,CAC9B,OAKF,GAAI,yBAA0BA,QAC1B,8BAA+BA,QAC/B,sBAAuBA,OAAOC,0BAA0BC,UAAW,CAIrE,KAAM,mBAAoBF,OAAOC,0BAA0BC,WAAY,CACrEC,OAAOC,eAAeJ,OAAOC,0BAA0BC,UACrD,iBAAkB,CAClBG,IAAK,WACH,OAAOC,KAAKC,kBAAoB,KAItC,OAOF,IAAIC,EAAWR,OAAOQ,SAkBtB,SAASP,EAA0BQ,GACjCH,KAAKI,KAAOD,EAAMC,KAClBJ,KAAKK,OAASF,EAAME,OACpBL,KAAKM,WAAaH,EAAMG,WACxBN,KAAKO,mBAAqBJ,EAAMI,mBAChCP,KAAKQ,iBAAmBL,EAAMK,kBAAoBC,IAClDT,KAAKU,iBAAmBP,EAAMK,iBAG9B,IAAIG,EAAaX,KAAKO,mBACtB,IAAIK,EAAaD,EAAWE,MAAQF,EAAWG,OAC/C,IAAIN,EAAmBR,KAAKQ,iBAC5B,IAAIO,EAAmB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AAO,CACLP,IAAKO,EAAKP,IACVE,MAAOK,EAAKL,MACZE,OAAQG,EAAKH,OACbH,KAAMM,EAAKN,KACXtG,MAAO4G,EAAKL,MAAQK,EAAKN,KACzBrG,OAAQ2G,EAAKH,OAASG,EAAKP,KAG/B,OAAOO,EAST,SAAShH,IACP,MAAO,CACLyG,IAAK,EACLI,OAAQ,EACRH,KAAM,EACNC,MAAO,EACPvG,MAAO,EACPC,OAAQ,GAWZ,SAAS+G,EAAarB,EAAQyC,GAC5B,IAAId,EAAOc,EACX,MAAOd,EAAM,CACX,GAAIA,GAAQ3B,EAAQ,OAAO,KAE3B2B,EAAO1B,EAAc0B,GAEvB,OAAO,MAUT,SAAS1B,EAAc0B,GACrB,IAAI3B,EAAS2B,EAAKe,WAElB,GAAI1C,GAAUA,EAAOhF,UAAY,IAAMgF,EAAO2C,KAAM,CAElD,OAAO3C,EAAO2C,KAGhB,GAAI3C,GAAUA,EAAO4C,aAAc,CAEjC,OAAO5C,EAAO4C,aAAaF,WAG7B,OAAO1C,EAKT9G,OAAOwB,qBAAuBA,EAC9BxB,OAAOC,0BAA4BA,GA1tBnC","sourcesContent":["/**\n * Copyright 2016 Google Inc. All Rights Reserved.\n *\n * Licensed under the W3C SOFTWARE AND DOCUMENT NOTICE AND LICENSE.\n *\n * https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document\n *\n */\n(function() {\n'use strict';\n\n// Exit early if we're not running in a browser.\nif (typeof window !== 'object') {\n return;\n}\n\n// Exit early if all IntersectionObserver and IntersectionObserverEntry\n// features are natively supported.\nif ('IntersectionObserver' in window &&\n 'IntersectionObserverEntry' in window &&\n 'intersectionRatio' in window.IntersectionObserverEntry.prototype) {\n\n // Minimal polyfill for Edge 15's lack of `isIntersecting`\n // See: https://github.com/w3c/IntersectionObserver/issues/211\n if (!('isIntersecting' in window.IntersectionObserverEntry.prototype)) {\n Object.defineProperty(window.IntersectionObserverEntry.prototype,\n 'isIntersecting', {\n get: function () {\n return this.intersectionRatio > 0;\n }\n });\n }\n return;\n}\n\n\n/**\n * A local reference to the document.\n */\nvar document = window.document;\n\n\n/**\n * An IntersectionObserver registry. This registry exists to hold a strong\n * reference to IntersectionObserver instances currently observing a target\n * element. Without this registry, instances without another reference may be\n * garbage collected.\n */\nvar registry = [];\n\n\n/**\n * Creates the global IntersectionObserverEntry constructor.\n * https://w3c.github.io/IntersectionObserver/#intersection-observer-entry\n * @param {Object} entry A dictionary of instance properties.\n * @constructor\n */\nfunction IntersectionObserverEntry(entry) {\n this.time = entry.time;\n this.target = entry.target;\n this.rootBounds = entry.rootBounds;\n this.boundingClientRect = entry.boundingClientRect;\n this.intersectionRect = entry.intersectionRect || getEmptyRect();\n this.isIntersecting = !!entry.intersectionRect;\n\n // Calculates the intersection ratio.\n var targetRect = this.boundingClientRect;\n var targetArea = targetRect.width * targetRect.height;\n var intersectionRect = this.intersectionRect;\n var intersectionArea = intersectionRect.width * intersectionRect.height;\n\n // Sets intersection ratio.\n if (targetArea) {\n // Round the intersection ratio to avoid floating point math issues:\n // https://github.com/w3c/IntersectionObserver/issues/324\n this.intersectionRatio = Number((intersectionArea / targetArea).toFixed(4));\n } else {\n // If area is zero and is intersecting, sets to 1, otherwise to 0\n this.intersectionRatio = this.isIntersecting ? 1 : 0;\n }\n}\n\n\n/**\n * Creates the global IntersectionObserver constructor.\n * https://w3c.github.io/IntersectionObserver/#intersection-observer-interface\n * @param {Function} callback The function to be invoked after intersection\n * changes have queued. The function is not invoked if the queue has\n * been emptied by calling the `takeRecords` method.\n * @param {Object=} opt_options Optional configuration options.\n * @constructor\n */\nfunction IntersectionObserver(callback, opt_options) {\n\n var options = opt_options || {};\n\n if (typeof callback != 'function') {\n throw new Error('callback must be a function');\n }\n\n if (options.root && options.root.nodeType != 1) {\n throw new Error('root must be an Element');\n }\n\n // Binds and throttles `this._checkForIntersections`.\n this._checkForIntersections = throttle(\n this._checkForIntersections.bind(this), this.THROTTLE_TIMEOUT);\n\n // Private properties.\n this._callback = callback;\n this._observationTargets = [];\n this._queuedEntries = [];\n this._rootMarginValues = this._parseRootMargin(options.rootMargin);\n\n // Public properties.\n this.thresholds = this._initThresholds(options.threshold);\n this.root = options.root || null;\n this.rootMargin = this._rootMarginValues.map(function(margin) {\n return margin.value + margin.unit;\n }).join(' ');\n}\n\n\n/**\n * The minimum interval within which the document will be checked for\n * intersection changes.\n */\nIntersectionObserver.prototype.THROTTLE_TIMEOUT = 100;\n\n\n/**\n * The frequency in which the polyfill polls for intersection changes.\n * this can be updated on a per instance basis and must be set prior to\n * calling `observe` on the first target.\n */\nIntersectionObserver.prototype.POLL_INTERVAL = null;\n\n/**\n * Use a mutation observer on the root element\n * to detect intersection changes.\n */\nIntersectionObserver.prototype.USE_MUTATION_OBSERVER = true;\n\n\n/**\n * Starts observing a target element for intersection changes based on\n * the thresholds values.\n * @param {Element} target The DOM element to observe.\n */\nIntersectionObserver.prototype.observe = function(target) {\n var isTargetAlreadyObserved = this._observationTargets.some(function(item) {\n return item.element == target;\n });\n\n if (isTargetAlreadyObserved) {\n return;\n }\n\n if (!(target && target.nodeType == 1)) {\n throw new Error('target must be an Element');\n }\n\n this._registerInstance();\n this._observationTargets.push({element: target, entry: null});\n this._monitorIntersections();\n this._checkForIntersections();\n};\n\n\n/**\n * Stops observing a target element for intersection changes.\n * @param {Element} target The DOM element to observe.\n */\nIntersectionObserver.prototype.unobserve = function(target) {\n this._observationTargets =\n this._observationTargets.filter(function(item) {\n\n return item.element != target;\n });\n if (!this._observationTargets.length) {\n this._unmonitorIntersections();\n this._unregisterInstance();\n }\n};\n\n\n/**\n * Stops observing all target elements for intersection changes.\n */\nIntersectionObserver.prototype.disconnect = function() {\n this._observationTargets = [];\n this._unmonitorIntersections();\n this._unregisterInstance();\n};\n\n\n/**\n * Returns any queue entries that have not yet been reported to the\n * callback and clears the queue. This can be used in conjunction with the\n * callback to obtain the absolute most up-to-date intersection information.\n * @return {Array} The currently queued entries.\n */\nIntersectionObserver.prototype.takeRecords = function() {\n var records = this._queuedEntries.slice();\n this._queuedEntries = [];\n return records;\n};\n\n\n/**\n * Accepts the threshold value from the user configuration object and\n * returns a sorted array of unique threshold values. If a value is not\n * between 0 and 1 and error is thrown.\n * @private\n * @param {Array|number=} opt_threshold An optional threshold value or\n * a list of threshold values, defaulting to [0].\n * @return {Array} A sorted list of unique and valid threshold values.\n */\nIntersectionObserver.prototype._initThresholds = function(opt_threshold) {\n var threshold = opt_threshold || [0];\n if (!Array.isArray(threshold)) threshold = [threshold];\n\n return threshold.sort().filter(function(t, i, a) {\n if (typeof t != 'number' || isNaN(t) || t < 0 || t > 1) {\n throw new Error('threshold must be a number between 0 and 1 inclusively');\n }\n return t !== a[i - 1];\n });\n};\n\n\n/**\n * Accepts the rootMargin value from the user configuration object\n * and returns an array of the four margin values as an object containing\n * the value and unit properties. If any of the values are not properly\n * formatted or use a unit other than px or %, and error is thrown.\n * @private\n * @param {string=} opt_rootMargin An optional rootMargin value,\n * defaulting to '0px'.\n * @return {Array<Object>} An array of margin objects with the keys\n * value and unit.\n */\nIntersectionObserver.prototype._parseRootMargin = function(opt_rootMargin) {\n var marginString = opt_rootMargin || '0px';\n var margins = marginString.split(/\\s+/).map(function(margin) {\n var parts = /^(-?\\d*\\.?\\d+)(px|%)$/.exec(margin);\n if (!parts) {\n throw new Error('rootMargin must be specified in pixels or percent');\n }\n return {value: parseFloat(parts[1]), unit: parts[2]};\n });\n\n // Handles shorthand.\n margins[1] = margins[1] || margins[0];\n margins[2] = margins[2] || margins[0];\n margins[3] = margins[3] || margins[1];\n\n return margins;\n};\n\n\n/**\n * Starts polling for intersection changes if the polling is not already\n * happening, and if the page's visibility state is visible.\n * @private\n */\nIntersectionObserver.prototype._monitorIntersections = function() {\n if (!this._monitoringIntersections) {\n this._monitoringIntersections = true;\n\n // If a poll interval is set, use polling instead of listening to\n // resize and scroll events or DOM mutations.\n if (this.POLL_INTERVAL) {\n this._monitoringInterval = setInterval(\n this._checkForIntersections, this.POLL_INTERVAL);\n }\n else {\n addEvent(window, 'resize', this._checkForIntersections, true);\n addEvent(document, 'scroll', this._checkForIntersections, true);\n\n if (this.USE_MUTATION_OBSERVER && 'MutationObserver' in window) {\n this._domObserver = new MutationObserver(this._checkForIntersections);\n this._domObserver.observe(document, {\n attributes: true,\n childList: true,\n characterData: true,\n subtree: true\n });\n }\n }\n }\n};\n\n\n/**\n * Stops polling for intersection changes.\n * @private\n */\nIntersectionObserver.prototype._unmonitorIntersections = function() {\n if (this._monitoringIntersections) {\n this._monitoringIntersections = false;\n\n clearInterval(this._monitoringInterval);\n this._monitoringInterval = null;\n\n removeEvent(window, 'resize', this._checkForIntersections, true);\n removeEvent(document, 'scroll', this._checkForIntersections, true);\n\n if (this._domObserver) {\n this._domObserver.disconnect();\n this._domObserver = null;\n }\n }\n};\n\n\n/**\n * Scans each observation target for intersection changes and adds them\n * to the internal entries queue. If new entries are found, it\n * schedules the callback to be invoked.\n * @private\n */\nIntersectionObserver.prototype._checkForIntersections = function() {\n var rootIsInDom = this._rootIsInDom();\n var rootRect = rootIsInDom ? this._getRootRect() : getEmptyRect();\n\n this._observationTargets.forEach(function(item) {\n var target = item.element;\n var targetRect = getBoundingClientRect(target);\n var rootContainsTarget = this._rootContainsTarget(target);\n var oldEntry = item.entry;\n var intersectionRect = rootIsInDom && rootContainsTarget &&\n this._computeTargetAndRootIntersection(target, rootRect);\n\n var newEntry = item.entry = new IntersectionObserverEntry({\n time: now(),\n target: target,\n boundingClientRect: targetRect,\n rootBounds: rootRect,\n intersectionRect: intersectionRect\n });\n\n if (!oldEntry) {\n this._queuedEntries.push(newEntry);\n } else if (rootIsInDom && rootContainsTarget) {\n // If the new entry intersection ratio has crossed any of the\n // thresholds, add a new entry.\n if (this._hasCrossedThreshold(oldEntry, newEntry)) {\n this._queuedEntries.push(newEntry);\n }\n } else {\n // If the root is not in the DOM or target is not contained within\n // root but the previous entry for this target had an intersection,\n // add a new record indicating removal.\n if (oldEntry && oldEntry.isIntersecting) {\n this._queuedEntries.push(newEntry);\n }\n }\n }, this);\n\n if (this._queuedEntries.length) {\n this._callback(this.takeRecords(), this);\n }\n};\n\n\n/**\n * Accepts a target and root rect computes the intersection between then\n * following the algorithm in the spec.\n * TODO(philipwalton): at this time clip-path is not considered.\n * https://w3c.github.io/IntersectionObserver/#calculate-intersection-rect-algo\n * @param {Element} target The target DOM element\n * @param {Object} rootRect The bounding rect of the root after being\n * expanded by the rootMargin value.\n * @return {?Object} The final intersection rect object or undefined if no\n * intersection is found.\n * @private\n */\nIntersectionObserver.prototype._computeTargetAndRootIntersection =\n function(target, rootRect) {\n\n // If the element isn't displayed, an intersection can't happen.\n if (window.getComputedStyle(target).display == 'none') return;\n\n var targetRect = getBoundingClientRect(target);\n var intersectionRect = targetRect;\n var parent = getParentNode(target);\n var atRoot = false;\n\n while (!atRoot) {\n var parentRect = null;\n var parentComputedStyle = parent.nodeType == 1 ?\n window.getComputedStyle(parent) : {};\n\n // If the parent isn't displayed, an intersection can't happen.\n if (parentComputedStyle.display == 'none') return;\n\n if (parent == this.root || parent == document) {\n atRoot = true;\n parentRect = rootRect;\n } else {\n // If the element has a non-visible overflow, and it's not the <body>\n // or <html> element, update the intersection rect.\n // Note: <body> and <html> cannot be clipped to a rect that's not also\n // the document rect, so no need to compute a new intersection.\n if (parent != document.body &&\n parent != document.documentElement &&\n parentComputedStyle.overflow != 'visible') {\n parentRect = getBoundingClientRect(parent);\n }\n }\n\n // If either of the above conditionals set a new parentRect,\n // calculate new intersection data.\n if (parentRect) {\n intersectionRect = computeRectIntersection(parentRect, intersectionRect);\n\n if (!intersectionRect) break;\n }\n parent = getParentNode(parent);\n }\n return intersectionRect;\n};\n\n\n/**\n * Returns the root rect after being expanded by the rootMargin value.\n * @return {Object} The expanded root rect.\n * @private\n */\nIntersectionObserver.prototype._getRootRect = function() {\n var rootRect;\n if (this.root) {\n rootRect = getBoundingClientRect(this.root);\n } else {\n // Use <html>/<body> instead of window since scroll bars affect size.\n var html = document.documentElement;\n var body = document.body;\n rootRect = {\n top: 0,\n left: 0,\n right: html.clientWidth || body.clientWidth,\n width: html.clientWidth || body.clientWidth,\n bottom: html.clientHeight || body.clientHeight,\n height: html.clientHeight || body.clientHeight\n };\n }\n return this._expandRectByRootMargin(rootRect);\n};\n\n\n/**\n * Accepts a rect and expands it by the rootMargin value.\n * @param {Object} rect The rect object to expand.\n * @return {Object} The expanded rect.\n * @private\n */\nIntersectionObserver.prototype._expandRectByRootMargin = function(rect) {\n var margins = this._rootMarginValues.map(function(margin, i) {\n return margin.unit == 'px' ? margin.value :\n margin.value * (i % 2 ? rect.width : rect.height) / 100;\n });\n var newRect = {\n top: rect.top - margins[0],\n right: rect.right + margins[1],\n bottom: rect.bottom + margins[2],\n left: rect.left - margins[3]\n };\n newRect.width = newRect.right - newRect.left;\n newRect.height = newRect.bottom - newRect.top;\n\n return newRect;\n};\n\n\n/**\n * Accepts an old and new entry and returns true if at least one of the\n * threshold values has been crossed.\n * @param {?IntersectionObserverEntry} oldEntry The previous entry for a\n * particular target element or null if no previous entry exists.\n * @param {IntersectionObserverEntry} newEntry The current entry for a\n * particular target element.\n * @return {boolean} Returns true if a any threshold has been crossed.\n * @private\n */\nIntersectionObserver.prototype._hasCrossedThreshold =\n function(oldEntry, newEntry) {\n\n // To make comparing easier, an entry that has a ratio of 0\n // but does not actually intersect is given a value of -1\n var oldRatio = oldEntry && oldEntry.isIntersecting ?\n oldEntry.intersectionRatio || 0 : -1;\n var newRatio = newEntry.isIntersecting ?\n newEntry.intersectionRatio || 0 : -1;\n\n // Ignore unchanged ratios\n if (oldRatio === newRatio) return;\n\n for (var i = 0; i < this.thresholds.length; i++) {\n var threshold = this.thresholds[i];\n\n // Return true if an entry matches a threshold or if the new ratio\n // and the old ratio are on the opposite sides of a threshold.\n if (threshold == oldRatio || threshold == newRatio ||\n threshold < oldRatio !== threshold < newRatio) {\n return true;\n }\n }\n};\n\n\n/**\n * Returns whether or not the root element is an element and is in the DOM.\n * @return {boolean} True if the root element is an element and is in the DOM.\n * @private\n */\nIntersectionObserver.prototype._rootIsInDom = function() {\n return !this.root || containsDeep(document, this.root);\n};\n\n\n/**\n * Returns whether or not the target element is a child of root.\n * @param {Element} target The target element to check.\n * @return {boolean} True if the target element is a child of root.\n * @private\n */\nIntersectionObserver.prototype._rootContainsTarget = function(target) {\n return containsDeep(this.root || document, target);\n};\n\n\n/**\n * Adds the instance to the global IntersectionObserver registry if it isn't\n * already present.\n * @private\n */\nIntersectionObserver.prototype._registerInstance = function() {\n if (registry.indexOf(this) < 0) {\n registry.push(this);\n }\n};\n\n\n/**\n * Removes the instance from the global IntersectionObserver registry.\n * @private\n */\nIntersectionObserver.prototype._unregisterInstance = function() {\n var index = registry.indexOf(this);\n if (index != -1) registry.splice(index, 1);\n};\n\n\n/**\n * Returns the result of the performance.now() method or null in browsers\n * that don't support the API.\n * @return {number} The elapsed time since the page was requested.\n */\nfunction now() {\n return window.performance && performance.now && performance.now();\n}\n\n\n/**\n * Throttles a function and delays its execution, so it's only called at most\n * once within a given time period.\n * @param {Function} fn The function to throttle.\n * @param {number} timeout The amount of time that must pass before the\n * function can be called again.\n * @return {Function} The throttled function.\n */\nfunction throttle(fn, timeout) {\n var timer = null;\n return function () {\n if (!timer) {\n timer = setTimeout(function() {\n fn();\n timer = null;\n }, timeout);\n }\n };\n}\n\n\n/**\n * Adds an event handler to a DOM node ensuring cross-browser compatibility.\n * @param {Node} node The DOM node to add the event handler to.\n * @param {string} event The event name.\n * @param {Function} fn The event handler to add.\n * @param {boolean} opt_useCapture Optionally adds the even to the capture\n * phase. Note: this only works in modern browsers.\n */\nfunction addEvent(node, event, fn, opt_useCapture) {\n if (typeof node.addEventListener == 'function') {\n node.addEventListener(event, fn, opt_useCapture || false);\n }\n else if (typeof node.attachEvent == 'function') {\n node.attachEvent('on' + event, fn);\n }\n}\n\n\n/**\n * Removes a previously added event handler from a DOM node.\n * @param {Node} node The DOM node to remove the event handler from.\n * @param {string} event The event name.\n * @param {Function} fn The event handler to remove.\n * @param {boolean} opt_useCapture If the event handler was added with this\n * flag set to true, it should be set to true here in order to remove it.\n */\nfunction removeEvent(node, event, fn, opt_useCapture) {\n if (typeof node.removeEventListener == 'function') {\n node.removeEventListener(event, fn, opt_useCapture || false);\n }\n else if (typeof node.detatchEvent == 'function') {\n node.detatchEvent('on' + event, fn);\n }\n}\n\n\n/**\n * Returns the intersection between two rect objects.\n * @param {Object} rect1 The first rect.\n * @param {Object} rect2 The second rect.\n * @return {?Object} The intersection rect or undefined if no intersection\n * is found.\n */\nfunction computeRectIntersection(rect1, rect2) {\n var top = Math.max(rect1.top, rect2.top);\n var bottom = Math.min(rect1.bottom, rect2.bottom);\n var left = Math.max(rect1.left, rect2.left);\n var right = Math.min(rect1.right, rect2.right);\n var width = right - left;\n var height = bottom - top;\n\n return (width >= 0 && height >= 0) && {\n top: top,\n bottom: bottom,\n left: left,\n right: right,\n width: width,\n height: height\n };\n}\n\n\n/**\n * Shims the native getBoundingClientRect for compatibility with older IE.\n * @param {Element} el The element whose bounding rect to get.\n * @return {Object} The (possibly shimmed) rect of the element.\n */\nfunction getBoundingClientRect(el) {\n var rect;\n\n try {\n rect = el.getBoundingClientRect();\n } catch (err) {\n // Ignore Windows 7 IE11 \"Unspecified error\"\n // https://github.com/w3c/IntersectionObserver/pull/205\n }\n\n if (!rect) return getEmptyRect();\n\n // Older IE\n if (!(rect.width && rect.height)) {\n rect = {\n top: rect.top,\n right: rect.right,\n bottom: rect.bottom,\n left: rect.left,\n width: rect.right - rect.left,\n height: rect.bottom - rect.top\n };\n }\n return rect;\n}\n\n\n/**\n * Returns an empty rect object. An empty rect is returned when an element\n * is not in the DOM.\n * @return {Object} The empty rect.\n */\nfunction getEmptyRect() {\n return {\n top: 0,\n bottom: 0,\n left: 0,\n right: 0,\n width: 0,\n height: 0\n };\n}\n\n/**\n * Checks to see if a parent element contains a child element (including inside\n * shadow DOM).\n * @param {Node} parent The parent element.\n * @param {Node} child The child element.\n * @return {boolean} True if the parent node contains the child node.\n */\nfunction containsDeep(parent, child) {\n var node = child;\n while (node) {\n if (node == parent) return true;\n\n node = getParentNode(node);\n }\n return false;\n}\n\n\n/**\n * Gets the parent node of an element or its host element if the parent node\n * is a shadow root.\n * @param {Node} node The node whose parent to get.\n * @return {Node|null} The parent node or null if no parent exists.\n */\nfunction getParentNode(node) {\n var parent = node.parentNode;\n\n if (parent && parent.nodeType == 11 && parent.host) {\n // If the parent is a shadow root, return the host element.\n return parent.host;\n }\n\n if (parent && parent.assignedSlot) {\n // If the parent is distributed in a <slot>, return the parent of a slot.\n return parent.assignedSlot.parentNode;\n }\n\n return parent;\n}\n\n\n// Exposes the constructors globally.\nwindow.IntersectionObserver = IntersectionObserver;\nwindow.IntersectionObserverEntry = IntersectionObserverEntry;\n\n}());\n"]}
@@ -0,0 +1,2 @@
1
+ import{r as o,h as r,H as t}from"./p-5bfefd19.js";import{n as a}from"./p-6a96da58.js";import"@tarojs/taro";const s=class{constructor(r){o(this,r)}componentDidLoad(){a("RootPortal",this)}render(){return r(t,null)}};export{s as taro_root_portal_core};
2
+ //# sourceMappingURL=p-3b9a1125.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["src/components/root-portal/root-portal.tsx"],"names":["RootPortal","[object Object]","notSupport","this","h","Host"],"mappings":"iHAOaA,EAAU,+BACrBC,mBACEC,EAAW,aAAcC,MAG3BF,SACE,OACEG,EAACC,EAAI","sourcesContent":["import { Component, ComponentInterface, h, Host } from '@stencil/core'\n\nimport { notSupport } from '../../utils'\n\n@Component({\n tag: 'taro-root-portal-core'\n})\nexport class RootPortal implements ComponentInterface {\n componentDidLoad () {\n notSupport('RootPortal', this)\n }\n\n render () {\n return (\n <Host />\n )\n }\n}\n"]}
@@ -0,0 +1,2 @@
1
+ import{r as s,c as e,h as t,H as a}from"./p-5bfefd19.js";import i from"@tarojs/taro";import{c as r}from"./p-76724e58.js";const o=".navigator-hover{background:#efefef}";const c=class{constructor(t){s(this,t);this.onSuccess=e(this,"cuccess",7);this.onFail=e(this,"fail",7);this.onComplete=e(this,"Complete",7);this.hoverClass=undefined;this.url=undefined;this.openType="navigate";this.isHover=false;this.delta=0}onClick(){const{openType:s,onSuccess:e,onFail:t,onComplete:a}=this;let r=Promise.resolve();switch(s){case"navigate":r=i.navigateTo({url:this.url});break;case"redirect":r=i.redirectTo({url:this.url});break;case"switchTab":r=i.switchTab({url:this.url});break;case"reLaunch":r=i.reLaunch({url:this.url});break;case"navigateBack":r=i.navigateBack({delta:this.delta});break;case"exit":r=Promise.reject(new Error('navigator:fail 暂不支持"openType: exit"'));break}if(r){r.then((s=>{e.emit(s)})).catch((s=>{t.emit(s)})).finally((()=>{a.emit()}))}}render(){const{isHover:s,hoverClass:e}=this;return t(a,{class:r({[e]:s})})}};c.style=o;export{c as taro_navigator_core};
2
+ //# sourceMappingURL=p-3c256e0e.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["src/components/navigator/style/index.scss?tag=taro-navigator-core","src/components/navigator/navigator.tsx"],"names":["indexCss","Navigator","[object Object]","openType","onSuccess","onFail","onComplete","this","promise","Promise","resolve","Taro","navigateTo","url","redirectTo","switchTab","reLaunch","navigateBack","delta","reject","Error","then","res","emit","catch","finally","isHover","hoverClass","h","Host","class","classNames"],"mappings":"yHAAA,MAAMA,EAAW,6CC+BJC,EAAS,+LAGD,wBACD,iBACF,EAehBC,UACE,MAAMC,SAAEA,EAAQC,UAAEA,EAASC,OAAEA,EAAMC,WAAEA,GAAeC,KACpD,IAAIC,EAAwBC,QAAQC,UACpC,OAAQP,GACN,IAAK,WACHK,EAAUG,EAAKC,WAAW,CACxBC,IAAKN,KAAKM,MAEZ,MACF,IAAK,WACHL,EAAUG,EAAKG,WAAW,CACxBD,IAAKN,KAAKM,MAEZ,MACF,IAAK,YACHL,EAAUG,EAAKI,UAAU,CACvBF,IAAKN,KAAKM,MAEZ,MACF,IAAK,WACHL,EAAUG,EAAKK,SAAS,CACtBH,IAAKN,KAAKM,MAEZ,MACF,IAAK,eACHL,EAAUG,EAAKM,aAAa,CAC1BC,MAAOX,KAAKW,QAEd,MACF,IAAK,OACHV,EAAUC,QAAQU,OAAO,IAAIC,MAAM,wCACnC,MAEJ,GAAIZ,EAAS,CACXA,EAAQa,MAAKC,IACXlB,EAAUmB,KAAKD,MACdE,OAAMF,IACPjB,EAAOkB,KAAKD,MACXG,SAAQ,KACTnB,EAAWiB,WAKjBrB,SACE,MAAMwB,QAAEA,EAAOC,WAAEA,GAAepB,KAEhC,OACEqB,EAACC,EAAI,CACHC,MAAOC,EAAW,CAChB7B,CAACyB,GAAaD","sourcesContent":[".navigator-hover {\r\n background: #efefef;\r\n}\r\n","import { Component, Prop, h, ComponentInterface, Host, Listen, Event, EventEmitter } from '@stencil/core'\nimport Taro from '@tarojs/taro'\nimport classNames from 'classnames'\n\n/**\n * Navigator组件参数\n * @typedef NavigatorProps\n * @property {String} appId 当target=\"miniProgram\"时有效,要打开的小程序 appId\n * @property {String} ariaLabel 无障碍访问,(属性)元素的额外描述\n * @property {Number} delta 当 openType 为 'navigateBack' 时有效,表示回退的层数\n * @property {Object} extraData 当target=\"miniProgram\"时有效,需要传递给目标小程序的数据,目标小程序可在 App.onLaunch(),App.onShow() 中获取到这份数据。详情\n * @property {String} [openType=navigate] 跳转方式\n * @property {String} path 当target=\"miniProgram\"时有效,打开的页面路径,如果为空则打开首页\n * @property {String} [target=self] 在哪个目标上发生跳转,默认当前小程序,可选值self/miniProgram\n * @property {String} url 当前小程序内的跳转链接\n * @property {version} [version=release] 当target=\"miniProgram\"时有效,要打开的小程序版本,有效值 develop(开发版),trial(体验版),release(正式版),仅在当前小程序为开发版或体验版时此参数有效;如果当前小程序是 *式版,则打开的小程序必定是正式版。\n * @property {String} onFail 当target=\"miniProgram\"时有效,跳转小程序失败\n * @property {String} onComplete 当target=\"miniProgram\"时有效,跳转小程序完成\n * @property {String} onSuccess 当target=\"miniProgram\"时有效,跳转小程序成功\n */\n\n/**\n * TODO: 参数还需要进一步细化对齐\n * Navigator组件\n * https://developers.weixin.qq.com/miniprogram/dev/component/navigator.html\n **/\n\n@Component({\n tag: 'taro-navigator-core',\n styleUrl: './style/index.scss'\n})\nexport class Navigator implements ComponentInterface {\n @Prop() hoverClass: string\n @Prop() url: string\n @Prop() openType = 'navigate'\n @Prop() isHover = false\n @Prop() delta = 0\n\n @Event({\n eventName: 'cuccess'\n }) onSuccess: EventEmitter\n\n @Event({\n eventName: 'fail'\n }) onFail: EventEmitter\n\n @Event({\n eventName: 'Complete'\n }) onComplete: EventEmitter\n\n @Listen('click')\n onClick () {\n const { openType, onSuccess, onFail, onComplete } = this\n let promise: Promise<any> = Promise.resolve()\n switch (openType) {\n case 'navigate':\n promise = Taro.navigateTo({\n url: this.url\n })\n break\n case 'redirect':\n promise = Taro.redirectTo({\n url: this.url\n })\n break\n case 'switchTab':\n promise = Taro.switchTab({\n url: this.url\n })\n break\n case 'reLaunch':\n promise = Taro.reLaunch({\n url: this.url\n })\n break\n case 'navigateBack':\n promise = Taro.navigateBack({\n delta: this.delta\n })\n break\n case 'exit':\n promise = Promise.reject(new Error('navigator:fail 暂不支持\"openType: exit\"'))\n break\n }\n if (promise) {\n promise.then(res => {\n onSuccess.emit(res)\n }).catch(res => {\n onFail.emit(res)\n }).finally(() => {\n onComplete.emit()\n })\n }\n }\n\n render () {\n const { isHover, hoverClass } = this\n\n return (\n <Host\n class={classNames({\n [hoverClass]: isHover\n })}\n />\n )\n }\n}\n"]}
@@ -0,0 +1,2 @@
1
+ import{r as o,h as r,H as t}from"./p-5bfefd19.js";import{n as s}from"./p-6a96da58.js";import"@tarojs/taro";const a=class{constructor(r){o(this,r)}componentDidLoad(){s("AdCustom",this)}render(){return r(t,null)}};export{a as taro_ad_custom_core};
2
+ //# sourceMappingURL=p-3e6b29c6.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["src/components/ad-custom/ad-custom.tsx"],"names":["AdCustom","[object Object]","notSupport","this","h","Host"],"mappings":"iHAOaA,EAAQ,+BACnBC,mBACEC,EAAW,WAAYC,MAGzBF,SACE,OACEG,EAACC,EAAI","sourcesContent":["import { Component, ComponentInterface, h, Host } from '@stencil/core'\n\nimport { notSupport } from '../../utils'\n\n@Component({\n tag: 'taro-ad-custom-core'\n})\nexport class AdCustom implements ComponentInterface {\n componentDidLoad () {\n notSupport('AdCustom', this)\n }\n\n render () {\n return (\n <Host />\n )\n }\n}\n"]}
@@ -1 +1,2 @@
1
- System.register(["./p-44cbb351.system.js"],(function(t){"use strict";var r,e,n;return{setters:[function(t){r=t.r;e=t.h;n=t.H}],execute:function(){var u=t("taro_custom_wrapper_core",function(){function t(t){r(this,t)}t.prototype.render=function(){return e(n,null)};return t}())}}}));
1
+ System.register(["./p-8a8f286f.system.js"],(function(t){"use strict";var r,e,n;return{setters:[function(t){r=t.r;e=t.h;n=t.H}],execute:function(){var u=t("taro_custom_wrapper_core",function(){function t(t){r(this,t)}t.prototype.render=function(){return e(n,null)};return t}())}}}));
2
+ //# sourceMappingURL=p-439a3349.system.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["src/components/custom-wrapper/custom-wrapper.tsx"],"names":["CustomWrapper","exports","class_1","prototype","render","h","Host"],"mappings":"sJAKaA,EAAaC,EAAA,2BAAA,mCACxBC,EAAAC,UAAAC,OAAA,WACE,OACEC,EAACC,EAAI,gBAHe","sourcesContent":["import { Component, h, Host, ComponentInterface } from '@stencil/core'\n\n@Component({\n tag: 'taro-custom-wrapper-core'\n})\nexport class CustomWrapper implements ComponentInterface {\n render () {\n return (\n <Host />\n )\n }\n}\n"]}
@@ -0,0 +1,2 @@
1
+ System.register(["./p-8a8f286f.system.js","./p-61f225ef.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;width:auto;height:auto;font-size:0}.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;left:50%;top: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-heightfix{height:100%}.taro-img__mode-top{width:100%}.taro-img__mode-bottom{position:absolute;bottom:0;width:100%}.taro-img__mode-left{height:100%}.taro-img__mode-right{position:absolute;right:0;height:100%}.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.src=undefined;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(t){this.onError.emit(t)};t.prototype.render=function(){var t;var i=this;var o=this,e=o.src,n=o.mode,h=n===void 0?"scaleToFill":n,m=o.lazyLoad,d=m===void 0?false:m,g=o.aspectFillMode,l=g===void 0?"width":g,c=o.imageOnLoad,f=o.imageOnError,p=o.nativeProps;var _=s({"taro-img__widthfix":h==="widthFix"});var u=s("taro-img__mode-".concat(h.toLowerCase().replace(/\s/g,"")),(t={},t["taro-img__mode-aspectfill--".concat(l)]=h==="aspectFill",t));return r(a,{class:_},d?r("img",Object.assign({ref:function(t){return i.imgRef=t},class:u,onLoad:c.bind(this),onError:f.bind(this)},p)):r("img",Object.assign({ref:function(t){return i.imgRef=t},class:u,src:e,onLoad:c.bind(this),onError:f.bind(this)},p)))};return t}());h.style=n}}}));
2
+ //# sourceMappingURL=p-447386b2.system.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["src/components/image/style/index.scss?tag=taro-image-core","src/components/image/image.tsx"],"names":["indexCss","module","import","Image","exports","class_1","prototype","componentDidLoad","_this","this","lazyLoad","lazyImg","IntersectionObserver","entries","length","isIntersecting","unobserve","imgRef","src","rootMargin","observe","imageOnLoad","_a","width","height","naturalWidth","naturalHeight","onLoad","emit","aspectFillMode","imageOnError","e","onError","render","_b","_c","mode","_d","_e","nativeProps","cls","classNames","taro-img__widthfix","imgCls","concat","toLowerCase","replace","h","Host","class","Object","assign","ref","img","bind"],"mappings":"0MAAA,IAAMA,EAAW,o8BCGjBC,EAAAC,OAAO,8BAsBMC,EAAKC,EAAA,kBAAA,4HAEK,4BACF,uBACG,uBAEI,QAY1BC,EAAAC,UAAAC,iBAAA,WAAA,IAAAC,EAAAC,KACE,IAAKA,KAAKC,SAAU,OAEpB,IAAMC,EAAU,IAAIC,sBAAqB,SAAAC,GAEvC,GAAIA,EAAQA,EAAQC,OAAS,GAAGC,eAAgB,CAC9CJ,EAAQK,UAAUR,EAAKS,QACvBT,EAAKS,OAAOC,IAAMV,EAAKU,OAExB,CACDC,WAAY,cAGdR,EAAQS,QAAQX,KAAKQ,SAGvBZ,EAAAC,UAAAe,YAAA,WACQ,IAAAC,EAKFb,KAAKQ,OAJPM,EAAKD,EAAAC,MACLC,EAAMF,EAAAE,OACNC,EAAYH,EAAAG,aACZC,EAAaJ,EAAAI,cAGfjB,KAAKkB,OAAOC,KAAK,CACfL,MAAKA,EACLC,OAAMA,IAGRf,KAAKoB,eAAiBJ,EAAeC,EAAgB,QAAU,UAGjErB,EAAAC,UAAAwB,aAAA,SAAcC,GACZtB,KAAKuB,QAAQJ,KAAKG,IAGpB1B,EAAAC,UAAA2B,OAAA,iBAAA,IAAAzB,EAAAC,KACQ,IAAAyB,EAQFzB,KAPFS,EAAGgB,EAAAhB,IACHiB,EAAAD,EAAAE,KAAAA,EAAID,SAAA,EAAG,cAAaA,EACpBE,EAAAH,EAAAxB,SAAAA,EAAQ2B,SAAA,EAAG,MAAKA,EAChBC,EAAAJ,EAAAL,eAAAA,EAAcS,SAAA,EAAG,QAAOA,EACxBjB,EAAWa,EAAAb,YACXS,EAAYI,EAAAJ,aACZS,EAAWL,EAAAK,YAGb,IAAMC,EAAMC,EAAW,CACrBC,qBAAsBN,IAAS,aAEjC,IAAMO,EAASF,EACb,kBAAAG,OAAkBR,EAAKS,cAAcC,QAAQ,MAAO,MAAKxB,EAAA,GAEvDA,EAAC,8BAAAsB,OAA8Bf,IAAmBO,IAAS,iBAI/D,OACEW,EAACC,EAAI,CAACC,MAAOT,GACV9B,EACCqC,EAAA,MAAAG,OAAAC,OAAA,CACEC,IAAK,SAAAC,GAAG,OAAK7C,EAAKS,OAASoC,GAC3BJ,MAAON,EACPhB,OAAQN,EAAYiC,KAAK7C,MACzBuB,QAASF,EAAawB,KAAK7C,OACvB8B,IAGNQ,EAAA,MAAAG,OAAAC,OAAA,CACEC,IAAK,SAAAC,GAAG,OAAK7C,EAAKS,OAASoC,GAC3BJ,MAAON,EACPzB,IAAKA,EACLS,OAAQN,EAAYiC,KAAK7C,MACzBuB,QAASF,EAAawB,KAAK7C,OACvB8B,eA5FE","sourcesContent":["img[src=\"\"] {\n opacity: 0;\n}\n\ntaro-image-core {\n display: inline-block;\n overflow: hidden;\n position: relative;\n width: auto;\n height: auto;\n font-size: 0;\n}\n\n.taro-img {\n &.taro-img__widthfix {\n height: 100%;\n }\n\n &__mode {\n &-scaletofill {\n width: 100%;\n height: 100%;\n }\n\n &-aspectfit {\n max-width: 100%;\n max-height: 100%;\n }\n\n &-aspectfill {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n\n &--width {\n min-width: 100%;\n height: 100%;\n }\n\n &--height {\n width: 100%;\n min-height: 100%;\n }\n }\n\n &-widthfix {\n width: 100%;\n }\n\n &-heightfix {\n height: 100%;\n }\n\n &-top {\n width: 100%;\n }\n\n &-bottom {\n position: absolute;\n bottom: 0;\n width: 100%;\n }\n\n &-left {\n height: 100%;\n }\n\n &-right {\n position: absolute;\n right: 0;\n height: 100%;\n }\n\n // &-topleft {\n // }\n\n &-topright {\n position: absolute;\n right: 0;\n }\n\n &-bottomleft {\n position: absolute;\n bottom: 0;\n }\n\n &-bottomright {\n position: absolute;\n right: 0;\n bottom: 0;\n }\n }\n}\n","import { Component, Prop, h, ComponentInterface, Host, State, Event, EventEmitter } from '@stencil/core'\nimport classNames from 'classnames'\n\nimport('intersection-observer')\n\nexport type Mode =\n 'scaleToFill'\n | 'aspectFit'\n | 'aspectFill'\n | 'widthFix'\n | 'heightFix'\n | 'top'\n | 'bottom'\n | 'center'\n | 'left'\n | 'right'\n | 'top left'\n | 'top right'\n | 'bottom left'\n | 'bottom right'\n\n@Component({\n tag: 'taro-image-core',\n styleUrl: './style/index.scss'\n})\nexport class Image implements ComponentInterface {\n @Prop() src: string\n @Prop() mode: Mode = 'scaleToFill'\n @Prop() lazyLoad = false\n @Prop() nativeProps = {}\n\n @State() aspectFillMode = 'width'\n\n @Event({\n eventName: 'load'\n }) onLoad: EventEmitter\n\n @Event({\n eventName: 'error'\n }) onError: EventEmitter\n\n private imgRef: HTMLImageElement\n\n componentDidLoad () {\n if (!this.lazyLoad) return\n\n const lazyImg = new IntersectionObserver(entries => {\n // 异步 api 关系\n if (entries[entries.length - 1].isIntersecting) {\n lazyImg.unobserve(this.imgRef)\n this.imgRef.src = this.src\n }\n }, {\n rootMargin: '300px 0px'\n })\n\n lazyImg.observe(this.imgRef)\n }\n\n imageOnLoad () {\n const {\n width,\n height,\n naturalWidth,\n naturalHeight\n } = this.imgRef\n\n this.onLoad.emit({\n width,\n height\n })\n\n this.aspectFillMode = naturalWidth > naturalHeight ? 'width' : 'height'\n }\n\n imageOnError (e: Event) {\n this.onError.emit(e)\n }\n\n render () {\n const {\n src,\n mode = 'scaleToFill',\n lazyLoad = false,\n aspectFillMode = 'width',\n imageOnLoad,\n imageOnError,\n nativeProps\n } = this\n\n const cls = classNames({\n 'taro-img__widthfix': mode === 'widthFix'\n })\n const imgCls = classNames(\n `taro-img__mode-${mode.toLowerCase().replace(/\\s/g, '')}`,\n {\n [`taro-img__mode-aspectfill--${aspectFillMode}`]: mode === 'aspectFill'\n }\n )\n\n return (\n <Host class={cls}>\n {lazyLoad ? (\n <img\n ref={img => (this.imgRef = img!)}\n class={imgCls}\n onLoad={imageOnLoad.bind(this)}\n onError={imageOnError.bind(this)}\n {...nativeProps}\n />\n ) : (\n <img\n ref={img => (this.imgRef = img!)}\n class={imgCls}\n src={src}\n onLoad={imageOnLoad.bind(this)}\n onError={imageOnError.bind(this)}\n {...nativeProps}\n />\n )}\n </Host>\n )\n }\n}\n"]}
@@ -1 +1,2 @@
1
- System.register(["./p-44cbb351.system.js","./p-15e45ed6.system.js","@tarojs/taro"],(function(t){"use strict";var e,n,r,o;return{setters:[function(t){e=t.r;n=t.h;r=t.H},function(t){o=t.n},function(){}],execute:function(){var i=t("taro_live_player_core",function(){function t(t){e(this,t)}t.prototype.componentDidLoad=function(){o("LivePlayer",this)};t.prototype.render=function(){return n(r,null)};return t}())}}}));
1
+ System.register(["./p-8a8f286f.system.js","./p-15e45ed6.system.js","@tarojs/taro"],(function(t){"use strict";var e,n,r,o;return{setters:[function(t){e=t.r;n=t.h;r=t.H},function(t){o=t.n},function(){}],execute:function(){var i=t("taro_live_player_core",function(){function t(t){e(this,t)}t.prototype.componentDidLoad=function(){o("LivePlayer",this)};t.prototype.render=function(){return n(r,null)};return t}())}}}));
2
+ //# sourceMappingURL=p-45b6ea0c.system.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["src/components/live-player/live-player.tsx"],"names":["LivePlayer","exports","class_1","prototype","componentDidLoad","notSupport","this","render","h","Host"],"mappings":"gOAOaA,EAAUC,EAAA,wBAAA,mCACrBC,EAAAC,UAAAC,iBAAA,WACEC,EAAW,aAAcC,OAG3BJ,EAAAC,UAAAI,OAAA,WACE,OACEC,EAACC,EAAI,gBAPY","sourcesContent":["import { Component, ComponentInterface, h, Host } from '@stencil/core'\n\nimport { notSupport } from '../../utils'\n\n@Component({\n tag: 'taro-live-player-core'\n})\nexport class LivePlayer implements ComponentInterface {\n componentDidLoad () {\n notSupport('LivePlayer', this)\n }\n\n render () {\n return (\n <Host />\n )\n }\n}\n"]}
@@ -0,0 +1,2 @@
1
+ var __spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var a=0,o=t.length,n;a<o;a++){if(n||!(a in t)){if(!n)n=Array.prototype.slice.call(t,0,a);n[a]=t[a]}}return e.concat(n||Array.prototype.slice.call(t))};System.register(["./p-8a8f286f.system.js","@tarojs/taro","./p-61f225ef.system.js"],(function(e){"use strict";var t,r,a,o,n,i,s;return{setters:[function(e){t=e.h;r=e.r;a=e.c;o=e.H;n=e.g},function(e){i=e.default},function(e){s=e.c}],execute:function(){var l=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 d=function(e){if(e===void 0){e=""}return e.charAt(0)==="/"?e:"/"+e};var b=function(e,t){if(e===void 0){e=""}if(t===void 0){t=""}return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)||e===t};var h=function(e,t){if(e===void 0){e=""}if(t===void 0){t=""}return b(e,t)?e.substring(t.length):e};var c=function(e,t){if(e===void 0){e=""}if(t===void 0){t=""}return e.includes(t)?e.substring(0,e.length-t.length):e};function f(e){return e.charAt(0)==="/"}function u(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 v(e,t){if(t===undefined)t="";var r=e&&e.split("/")||[];var a=t&&t.split("/")||[];var o=e&&f(e);var n=t&&f(t);var i=o||n;if(e&&f(e)){a=r}else if(r.length){a.pop();a=a.concat(r)}if(!a.length)return"/";var s;if(a.length){var l=a[a.length-1];s=l==="."||l===".."||l===""}else{s=false}var d=0;for(var b=a.length;b>=0;b--){var h=a[b];if(h==="."){u(a,b)}else if(h===".."){u(a,b);d++}else if(d){u(a,b);d--}}if(!i)for(;d--;d)a.unshift("..");if(i&&a[0]!==""&&(!a[0]||!f(a[0])))a.unshift("");var c=a.join("/");if(s&&c.substr(-1)!=="/")c+="/";return c}var g=function(e){var r=e.index,a=e.isSelected,o=a===void 0?false:a,n=e.textColor,i=e.iconPath,l=e.badgeText,d=e.showRedDot,b=d===void 0?false:d,h=e.text,c=e.onSelect;var f=s("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:i,alt:"",class:"weui-tabbar__icon"}),!!l&&t("span",{class:"weui-badge taro-tabbar-badge",style:u},l),b&&t("span",{class:"weui-badge weui-badge_dot",style:v})),t("p",{class:"weui-tabbar__label",style:{color:n}},h))};var p="html,body{height:100%}#app{height:100%}.taro-tabbar__border-white::before{border-top-color:#fff !important}.taro-tabbar__container{display:-ms-flexbox;display:flex;overflow:hidden;-ms-flex-direction:column;flex-direction:column;height:100%}.taro-tabbar__panel{overflow:auto;position:relative;-ms-flex:1;flex:1;-webkit-overflow-scrolling:auto}.taro-tabbar__tabbar{position:relative;width:100%;height:50px;-webkit-transition:bottom 0.2s, top 0.2s;transition:bottom 0.2s, top 0.2s}.taro-tabbar__tabbar-top{top:0}.taro-tabbar__tabbar-bottom{bottom:0;margin-bottom:constant(safe-area-inset-bottom);margin-bottom:env(safe-area-inset-bottom)}.taro-tabbar__tabbar-hide{display:none}.taro-tabbar__tabbar-slideout{top:-52px;-ms-flex:0 0;flex:0 0}.taro-tabbar__panel+.taro-tabbar__tabbar-slideout{top:auto;bottom:-52px}";var _=0;var m=1;var T=2;var B="taro-tabbar__tabbar";var H="taro-tabbar__tabbar-hide";var y="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.getOriginUrl=function(e){var r=t.customRoutes.filter((function(t){var r=t[1];var a=l(r).path;var o=l(e).path;return a===o}));return c(r.length?r[0][0]:e,".html")};this.getSelectedIndex=function(e){var r=-1;t.list.forEach((function(t,a){var o=t.pagePath;var n=l(e).path;var i=l(o).path;if(n===i){r=a}}));return r};this.switchTab=function(e){t.selectedIndex=e;i.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=v(r,n);var s=t.getSelectedIndex(i);if(s>-1){t.switchTab(s);a({errMsg:"switchTab:ok"})}else{o({errMsg:'switchTab:fail page "'.concat(i,'" is not found')})}};this.routerChangeHandler=function(e){var r;var a=(r=e===null||e===void 0?void 0:e.toLocation)===null||r===void 0?void 0:r.path;var o;if(typeof a==="string"){var n=t.conf.basename||"/";o=h(d(a||t.homePage),n)||"/"}else{o=t.getCurrentUrl()}t.selectedIndex=t.getSelectedIndex(t.getOriginUrl(o))};this.setTabBarBadgeHandler=function(e){var r=e.index,a=e.text,o=e.successHandler,n=e.errorHandler;var i=__spreadArray([],t.list,true);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,true);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,true);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,true);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:m;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,true);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};this.conf=undefined;this.list=undefined;this.borderStyle=undefined;this.backgroundColor=undefined;this.color=undefined;this.selectedColor=undefined;this.selectedIndex=-1;this.status=_;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=d(this.conf.homePage);var s=function(e){var t;var r=n[e];e=d(e);if(typeof r==="string"){b.customRoutes.push([e,d(r)])}else if((r===null||r===void 0?void 0:r.length)>0){(t=b.customRoutes).push.apply(t,r.map((function(t){return[e,d(t)]})))}};var b=this;for(var f in n){s(f)}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=d(h(r,t));return decodeURI(n==="/"?this.homePage:n)};e.prototype.bindEvent=function(){i.eventCenter.on("__taroRouterChange",this.routerChangeHandler);i.eventCenter.on("__taroSwitchTab",this.switchTabHandler);i.eventCenter.on("__taroSetTabBarBadge",this.setTabBarBadgeHandler);i.eventCenter.on("__taroRemoveTabBarBadge",this.removeTabBarBadgeHandler);i.eventCenter.on("__taroShowTabBarRedDotHandler",this.showTabBarRedDotHandler);i.eventCenter.on("__taroHideTabBarRedDotHandler",this.hideTabBarRedDotHandler);i.eventCenter.on("__taroShowTabBar",this.showTabBarHandler);i.eventCenter.on("__taroHideTabBar",this.hideTabBarHandler);i.eventCenter.on("__taroSetTabBarStyle",this.setTabBarStyleHandler);i.eventCenter.on("__taroSetTabBarItem",this.setTabBarItemHandler)};e.prototype.removeEvent=function(){i.eventCenter.off("__taroRouterChange",this.routerChangeHandler);i.eventCenter.off("__taroSwitchTab",this.switchTabHandler);i.eventCenter.off("__taroSetTabBarBadge",this.setTabBarBadgeHandler);i.eventCenter.off("__taroRemoveTabBarBadge",this.removeTabBarBadgeHandler);i.eventCenter.off("__taroShowTabBarRedDotHandler",this.showTabBarRedDotHandler);i.eventCenter.off("__taroHideTabBarRedDotHandler",this.hideTabBarRedDotHandler);i.eventCenter.off("__taroShowTabBar",this.showTabBarHandler);i.eventCenter.off("__taroHideTabBar",this.hideTabBarHandler);i.eventCenter.off("__taroSetTabBarStyle",this.setTabBarStyleHandler);i.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,i=n===void 0?"bottom":n;var l=this.status;var d=s("weui-tabbar",(e={},e["taro-tabbar__border-".concat(this.borderStyle||"black")]=true,e));var b=this.selectedIndex===-1||l===m;var h=l===T;return t(o,{class:s(B,"".concat(B,"-").concat(i),(r={},r[H]=b,r[y]=h,r))},t("div",{class:d,style:{backgroundColor:this.backgroundColor||"",height:"inherit"}},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(g,{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=p}}}));
2
+ //# sourceMappingURL=p-49a6cae4.system.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["src/utils/url.ts","../taro-router/dist/utils/index.js","../../node_modules/.pnpm/registry.npmjs.org+resolve-pathname@3.0.0/node_modules/resolve-pathname/esm/resolve-pathname.js","src/components/tabbar/tabbar-item.tsx","src/components/tabbar/style/index.scss?tag=taro-tabbar","src/components/tabbar/tabbar.tsx"],"names":["splitUrl","_url","url","pos","res","path","query","fragment","indexOf","substring","addLeadingSlash","charAt","hasBasename","prefix","RegExp","test","stripBasename","length","stripSuffix","suffix","includes","isAbsolute","pathname","spliceOne","list","index","i","k","n","pop","resolvePathname","to","from","undefined","toParts","split","fromParts","isToAbs","isFromAbs","mustEndAbs","concat","hasTrailingSlash","last","up","part","unshift","result","join","substr","TabbarItem","_b","_c","isSelected","textColor","iconPath","badgeText","_d","showRedDot","text","onSelect","className","classNames","weui-bar__item_on","badgeStyle","position","top","right","dotStyle","onClick","h","key","href","class","style","display","src","alt","color","indexCss","STATUS_SHOW","STATUS_HIDE","STATUS_SLIDEOUT","basicTabBarClassName","hideTabBarClassName","hideTabBarWithAnimationClassName","Tabbar","exports","class_1","hostRef","_this","this","homePage","customRoutes","tabbarPos","getOriginUrl","customRoute","filter","customUrl","pathA","pathB","getSelectedIndex","foundIndex","forEach","idx","pagePath","switchTab","selectedIndex","Taro","switchTabHandler","successHandler","errorHandler","currentUrl","getCurrentUrl","nextTab","errMsg","routerChangeHandler","options","_a","toLocation","currentPage","routerBasename","conf","basename","setTabBarBadgeHandler","__spreadArray","removeTabBarBadgeHandler","showTabBarRedDotHandler","hideTabBarRedDotHandler","showTabBarHandler","status","hideTabBarHandler","animation","setTabBarStyleHandler","selectedColor","backgroundColor","borderStyle","setTabBarItemHandler","selectedIconPath","Object","prototype","toString","call","Error","this_1","push","apply","map","p","item","routerMode","mode","window","location","hashIndex","processedUrl","decodeURI","bindEvent","eventCenter","on","removeEvent","off","componentDidLoad","tabbar","nextElementSibling","disconnectedCallback","render","containerCls","shouldHideTabBar","shouldSlideout","Host","height","bind"],"mappings":"4eAsDO,IAAMA,EAAW,SAAAC,GACtB,IAAIC,EAAMD,GAAQ,GAClB,IAAIE,EACJ,IAAMC,EAAM,CACVC,KAAM,KACNC,MAAO,KACPC,SAAU,MAGZJ,EAAMD,EAAIM,QAAQ,KAClB,GAAIL,GAAO,EAAG,CACZC,EAAIG,SAAWL,EAAIO,UAAUN,EAAM,GACnCD,EAAMA,EAAIO,UAAU,EAAGN,GAGzBA,EAAMD,EAAIM,QAAQ,KAClB,GAAIL,GAAO,EAAG,CACZC,EAAIE,MAAQJ,EAAIO,UAAUN,EAAM,GAChCD,EAAMA,EAAIO,UAAU,EAAGN,GAGzBC,EAAIC,KAAOH,EAEX,OAAOE,GC3EF,I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e,UAAY,SAE1D,IAAMgC,EAAmB7E,KAAKgB,iBAAmB,GAAKuB,IAAWjD,EACjE,IAAMwF,EAAiBvC,IAAWhD,EAElC,OACEZ,EAACoG,EAAI,CACHjG,MAAOX,EACLqB,EACA,GAAA1C,OAAG0C,EAAoB,KAAA1C,OAAIqD,IAAW1C,EAAA,GACpCA,EAACgC,GAAsBoF,EACvBpH,EAACiC,GAAmCoF,OAExCnG,EAAA,MAAA,CACEG,MAAO8F,EACP7F,MAAO,CACL6D,gBAAiB5C,KAAK4C,iBAAmB,GACzCoC,OAAQ,YAGThF,KAAKlE,KAAK0H,KAAI,SAACE,EAAM3H,GACpB,IAAM2B,EAAaqC,EAAKiB,gBAAkBjF,EAC1C,IAAI4B,EACJ,IAAIC,EACJ,GAAIF,EAAY,CACdC,EAAYoC,EAAK4C,eAAiB,GAClC/E,EAAW8F,EAAKX,qBACX,CACLpF,EAAYoC,EAAKZ,OAAS,GAC1BvB,EAAW8F,EAAK9F,SAElB,OACEe,EAACpB,EAAU,CACTxB,MAAOA,EACPkC,SAAU8B,EAAKgB,UAAUkE,KAAKlF,GAC9BrC,WAAYA,EACZC,UAAWA,EACXC,SAAUA,EACVI,KAAM0F,EAAK1F,KACXH,UAAW6F,EAAK7F,UAChBE,WAAY2F,EAAK3F,4IAzUd","sourcesContent":["export const normalizePath = url => {\n let _isRelative\n let _leadingParents = ''\n let _parent, _pos\n\n // handle relative paths\n if (url.charAt(0) !== '/') {\n _isRelative = true\n url = '/' + url\n }\n\n // handle relative files (as opposed to directories)\n if (url.substring(-3) === '/..' || url.slice(-2) === '/.') {\n url += '/'\n }\n\n // resolve simples\n url = url.replace(/(\\/(\\.\\/)+)|(\\/\\.$)/g, '/').replace(/\\/{2,}/g, '/')\n\n // remember leading parents\n if (_isRelative) {\n _leadingParents = url.substring(1).match(/^(\\.\\.\\/)+/) || ''\n if (_leadingParents) {\n _leadingParents = _leadingParents[0]\n }\n }\n\n // resolve parents\n while (true) {\n _parent = url.search(/\\/\\.\\.(\\/|$)/)\n if (_parent === -1) {\n // no more ../ to resolve\n break\n } else if (_parent === 0) {\n // top level cannot be relative, skip it\n url = url.substring(3)\n continue\n }\n\n _pos = url.substring(0, _parent).lastIndexOf('/')\n if (_pos === -1) {\n _pos = _parent\n }\n url = url.substring(0, _pos) + url.substring(_parent + 3)\n }\n\n // revert to relative\n if (_isRelative) {\n url = _leadingParents + url.substring(1)\n }\n\n return url\n}\n\nexport const splitUrl = _url => {\n let url = _url || ''\n let pos\n const res = {\n path: null,\n query: null,\n fragment: null\n }\n\n pos = url.indexOf('#')\n if (pos > -1) {\n res.fragment = url.substring(pos + 1)\n url = url.substring(0, pos)\n }\n\n pos = url.indexOf('?')\n if (pos > -1) {\n res.query = url.substring(pos + 1)\n url = url.substring(0, pos)\n }\n\n res.path = url\n\n return res\n}\n","// export const removeLeadingSlash = (str = '') => str.replace(/^\\.?\\//, '')\n// export const removeTrailingSearch = (str = '') => str.replace(/\\?[\\s\\S]*$/, '')\nexport const addLeadingSlash = (url = '') => (url.charAt(0) === '/' ? url : '/' + url);\nexport const hasBasename = (path = '', prefix = '') => new RegExp('^' + prefix + '(\\\\/|\\\\?|#|$)', 'i').test(path) || path === prefix;\nexport const stripBasename = (path = '', prefix = '') => hasBasename(path, prefix) ? path.substring(prefix.length) : path;\nexport const stripTrailing = (str = '') => str.replace(/[?#][\\s\\S]*$/, '');\nexport const stripSuffix = (path = '', suffix = '') => path.includes(suffix) ? path.substring(0, path.length - suffix.length) : path;\nclass RoutesAlias {\n constructor() {\n this.conf = [];\n this.getConfig = (url = '') => {\n const customRoute = this.conf.filter((arr) => {\n return arr.includes(url);\n });\n return customRoute[0];\n };\n this.getOrigin = (url = '') => {\n var _a;\n return ((_a = this.getConfig(url)) === null || _a === void 0 ? void 0 : _a[0]) || url;\n };\n this.getAlias = (url = '') => {\n var _a;\n return ((_a = this.getConfig(url)) === null || _a === void 0 ? void 0 : _a[1]) || url;\n };\n this.getAll = (url = '') => {\n return this.conf\n .filter((arr) => arr.includes(url))\n .reduceRight((p, a) => {\n p.unshift(a[1]);\n return p;\n }, []);\n };\n }\n set(customRoutes = {}) {\n for (let key in customRoutes) {\n const path = customRoutes[key];\n key = addLeadingSlash(key);\n if (typeof path === 'string') {\n this.conf.push([key, addLeadingSlash(path)]);\n }\n else if ((path === null || path === void 0 ? void 0 : path.length) > 0) {\n this.conf.push(...path.map(p => [key, addLeadingSlash(p)]));\n }\n }\n }\n}\nexport const routesAlias = new RoutesAlias();\n","function isAbsolute(pathname) {\n return pathname.charAt(0) === '/';\n}\n\n// About 1.5x faster than the two-arg version of Array#splice()\nfunction spliceOne(list, index) {\n for (var i = index, k = i + 1, n = list.length; k < n; i += 1, k += 1) {\n list[i] = list[k];\n }\n\n list.pop();\n}\n\n// This implementation is based heavily on node's url.parse\nfunction resolvePathname(to, from) {\n if (from === undefined) from = '';\n\n var toParts = (to && to.split('/')) || [];\n var fromParts = (from && from.split('/')) || [];\n\n var isToAbs = to && isAbsolute(to);\n var isFromAbs = from && isAbsolute(from);\n var mustEndAbs = isToAbs || isFromAbs;\n\n if (to && isAbsolute(to)) {\n // to is absolute\n fromParts = toParts;\n } else if (toParts.length) {\n // to is relative, drop the filename\n fromParts.pop();\n fromParts = fromParts.concat(toParts);\n }\n\n if (!fromParts.length) return '/';\n\n var hasTrailingSlash;\n if (fromParts.length) {\n var last = fromParts[fromParts.length - 1];\n hasTrailingSlash = last === '.' || last === '..' || last === '';\n } else {\n hasTrailingSlash = false;\n }\n\n var up = 0;\n for (var i = fromParts.length; i >= 0; i--) {\n var part = fromParts[i];\n\n if (part === '.') {\n spliceOne(fromParts, i);\n } else if (part === '..') {\n spliceOne(fromParts, i);\n up++;\n } else if (up) {\n spliceOne(fromParts, i);\n up--;\n }\n }\n\n if (!mustEndAbs) for (; up--; up) fromParts.unshift('..');\n\n if (\n mustEndAbs &&\n fromParts[0] !== '' &&\n (!fromParts[0] || !isAbsolute(fromParts[0]))\n )\n fromParts.unshift('');\n\n var result = fromParts.join('/');\n\n if (hasTrailingSlash && result.substr(-1) !== '/') result += '/';\n\n return result;\n}\n\nexport default resolvePathname;\n","import classNames from 'classnames'\nimport { FunctionalComponent, h } from '@stencil/core'\n\ntype TabbarItemProps = {\n index: number\n isSelected?: boolean\n textColor?: string\n badgeText?: string\n iconPath: string\n showRedDot?: boolean\n text?: string\n onSelect: (index: number) => void\n}\n\nexport const TabbarItem: FunctionalComponent<TabbarItemProps> = ({\n index,\n isSelected = false,\n textColor,\n iconPath,\n badgeText,\n showRedDot = false,\n text,\n onSelect\n}) => {\n const className = classNames('weui-tabbar__item', {\n 'weui-bar__item_on': isSelected\n })\n const badgeStyle = {\n position: 'absolute',\n top: '-2px',\n right: '-13px'\n }\n const dotStyle = {\n position: 'absolute',\n top: '0',\n right: '-6px'\n }\n\n function onClick () {\n onSelect(index)\n }\n\n return (\n <a key={index} href='javascript:;' class={className} onClick={onClick}>\n <span style={{ display: 'inline-block', position: 'relative' }}>\n <img src={iconPath} alt='' class='weui-tabbar__icon' />\n {!!badgeText && (\n <span\n class='weui-badge taro-tabbar-badge'\n style={badgeStyle}>\n {badgeText}\n </span>\n )}\n {showRedDot && (\n <span\n class='weui-badge weui-badge_dot'\n style={dotStyle}\n />\n )}\n </span>\n <p class='weui-tabbar__label' style={{ color: textColor }}>\n {text}\n </p>\n </a>\n )\n}\n","html,\nbody {\n height: 100%;\n}\n\n#app {\n height: 100%;\n}\n\n.taro-tabbar {\n &__border {\n &-white {\n &::before {\n border-top-color: #fff !important;\n }\n }\n }\n\n &__container {\n display: flex;\n overflow: hidden;\n flex-direction: column;\n height: 100%;\n }\n\n &__panel {\n overflow: auto;\n position: relative;\n flex: 1;\n -webkit-overflow-scrolling: auto;\n }\n\n &__tabbar {\n position: relative;\n width: 100%;\n height: 50px;\n transition: bottom 0.2s, top 0.2s;\n\n &-top {\n top: 0;\n }\n\n &-bottom {\n bottom: 0;\n margin-bottom: constant(safe-area-inset-bottom);\n margin-bottom: env(safe-area-inset-bottom);\n }\n\n &-hide {\n display: none;\n }\n\n &-slideout {\n top: -52px;\n flex: 0 0;\n }\n }\n\n &__panel + &__tabbar-slideout {\n top: auto;\n bottom: -52px;\n }\n}\n","import { Component, Prop, h, ComponentInterface, Host, State, Event, EventEmitter, Element } from '@stencil/core'\nimport Taro from '@tarojs/taro'\nimport { addLeadingSlash, stripBasename, stripSuffix } from '@tarojs/router/dist/utils'\nimport { IH5RouterConfig } from '@tarojs/taro/types/compile'\nimport classNames from 'classnames'\nimport resolvePathname from 'resolve-pathname'\n\nimport { splitUrl } from '../../utils'\nimport { TabbarItem } from './tabbar-item'\n\nconst STATUS_SHOW = 0\nconst STATUS_HIDE = 1\nconst STATUS_SLIDEOUT = 2\n\nconst basicTabBarClassName = 'taro-tabbar__tabbar'\nconst hideTabBarClassName = 'taro-tabbar__tabbar-hide'\nconst hideTabBarWithAnimationClassName = 'taro-tabbar__tabbar-slideout'\n\ninterface RouterHandler {\n index: string\n text: string\n url: string\n successHandler: Function\n errorHandler: Function\n animation?: boolean\n}\n\nexport interface Conf {\n color: string\n selectedColor: string\n backgroundColor: string\n borderStyle?: 'black' | 'white'\n list: TabbarList[]\n position?: 'bottom' | 'top'\n custom: boolean\n customRoutes: Record<string, string | string[]>\n mode: IH5RouterConfig['mode']\n basename: string\n homePage: string\n currentPagename: string\n}\n\ninterface TabbarList {\n pagePath: string\n text: string\n iconPath?: string\n selectedIconPath?: string\n badgeText?: string\n showRedDot?: boolean\n}\n\n@Component({\n tag: 'taro-tabbar',\n styleUrl: './style/index.scss'\n})\nexport class Tabbar implements ComponentInterface {\n private homePage = ''\n\n private customRoutes: Array<string[]> = []\n\n private tabbarPos: 'top' | 'bottom' = 'bottom'\n\n @Prop() conf: Conf\n\n @State() list: TabbarList[]\n\n @State() borderStyle: Conf['borderStyle']\n\n @State() backgroundColor: Conf['backgroundColor']\n\n @State() color: Conf['color']\n\n @State() selectedColor: Conf['selectedColor']\n\n @State() selectedIndex = -1\n\n @State() status: 0 | 1 | 2 = STATUS_SHOW\n\n @Event({\n eventName: 'longpress'\n }) onLongPress: EventEmitter\n\n @Element() tabbar: HTMLDivElement\n\n constructor () {\n const list = this.conf.list\n const customRoutes = this.conf.customRoutes\n if (\n Object.prototype.toString.call(list) !== '[object Array]' ||\n list.length < 2 ||\n list.length > 5\n ) {\n throw new Error('tabBar 配置错误')\n }\n\n this.homePage = addLeadingSlash(this.conf.homePage)\n for (let key in customRoutes) {\n const path = customRoutes[key]\n key = addLeadingSlash(key)\n if (typeof path === 'string') {\n this.customRoutes.push([key, addLeadingSlash(path)])\n } else if (path?.length > 0) {\n this.customRoutes.push(...path.map(p => [key, addLeadingSlash(p)]))\n }\n }\n\n list.forEach(item => {\n if (item.pagePath.indexOf('/') !== 0) {\n item.pagePath = '/' + item.pagePath\n }\n })\n\n this.list = list\n this.borderStyle = this.conf.borderStyle\n this.backgroundColor = this.conf.backgroundColor\n this.color = this.conf.color\n this.selectedColor = this.conf.selectedColor\n }\n\n getCurrentUrl () {\n const routerMode = this.conf.mode\n const routerBasename = this.conf.basename || '/'\n let url\n if (routerMode === 'hash') {\n const href = window.location.href\n const hashIndex = href.indexOf('#')\n url = hashIndex === -1\n ? ''\n : href.substring(hashIndex + 1)\n } else {\n url = location.pathname\n }\n const processedUrl = addLeadingSlash(stripBasename(url, routerBasename))\n return decodeURI(processedUrl === '/' ? this.homePage : processedUrl)\n }\n\n getOriginUrl = (url: string) => {\n const customRoute = this.customRoutes.filter(([, customUrl]) => {\n const pathA = splitUrl(customUrl).path\n const pathB = splitUrl(url).path\n return pathA === pathB\n })\n return stripSuffix(customRoute.length ? customRoute[0][0] : url, '.html')\n }\n\n getSelectedIndex = (url: string) => {\n let foundIndex = -1\n this.list.forEach(({ pagePath }, idx) => {\n const pathA = splitUrl(url).path\n const pathB = splitUrl(pagePath).path\n if (pathA === pathB) {\n foundIndex = idx\n }\n })\n return foundIndex\n }\n\n switchTab = (index: number) => {\n this.selectedIndex = index\n Taro.switchTab({\n url: this.list[index].pagePath\n })\n }\n\n switchTabHandler = ({ url, successHandler, errorHandler }: RouterHandler) => {\n const currentUrl = this.getOriginUrl(this.getCurrentUrl() || this.homePage)\n const nextTab = resolvePathname(url, currentUrl)\n const foundIndex = this.getSelectedIndex(nextTab)\n\n if (foundIndex > -1) {\n this.switchTab(foundIndex)\n successHandler({\n errMsg: 'switchTab:ok'\n })\n } else {\n errorHandler({\n errMsg: `switchTab:fail page \"${nextTab}\" is not found`\n })\n }\n }\n\n routerChangeHandler = (options?) => {\n const to = options?.toLocation?.path\n let currentPage\n\n if (typeof to === 'string') {\n const routerBasename = this.conf.basename || '/'\n currentPage = stripBasename(addLeadingSlash(to || this.homePage), routerBasename) || '/'\n } else {\n currentPage = this.getCurrentUrl()\n }\n\n this.selectedIndex = this.getSelectedIndex(this.getOriginUrl(currentPage))\n }\n\n setTabBarBadgeHandler = ({ index, text, successHandler, errorHandler }: RouterHandler) => {\n const list = [...this.list]\n if (index in list) {\n list[index].showRedDot = false\n list[index].badgeText = text\n successHandler({\n errMsg: 'setTabBarBadge:ok'\n })\n } else {\n errorHandler({\n errMsg: 'setTabBarBadge:fail tabbar item not found'\n })\n }\n\n this.list = list\n }\n\n removeTabBarBadgeHandler = ({ index, successHandler, errorHandler }: RouterHandler) => {\n const list = [...this.list]\n if (index in list) {\n list[index].badgeText = null\n list[index].badgeText = null\n successHandler({\n errMsg: 'removeTabBarBadge:ok'\n })\n } else {\n errorHandler({\n errMsg: 'removeTabBarBadge:fail tabbar item not found'\n })\n }\n\n this.list = list\n }\n\n showTabBarRedDotHandler = ({ index, successHandler, errorHandler }: RouterHandler) => {\n const list = [...this.list]\n if (index in list) {\n list[index].badgeText = null\n list[index].showRedDot = true\n successHandler({\n errMsg: 'showTabBarRedDot:ok'\n })\n } else {\n errorHandler({\n errMsg: 'showTabBarRedDot:fail tabbar item not found'\n })\n }\n\n this.list = list\n }\n\n hideTabBarRedDotHandler = ({ index, successHandler, errorHandler }: RouterHandler) => {\n const list = [...this.list]\n if (index in list) {\n list[index].showRedDot = false\n successHandler({\n errMsg: 'hideTabBarRedDot:ok'\n })\n } else {\n errorHandler({\n errMsg: 'hideTabBarRedDot:fail tabbar item not found'\n })\n }\n\n this.list = list\n }\n\n showTabBarHandler = ({ successHandler }) => {\n this.status = STATUS_SHOW\n successHandler({\n errMsg: 'showTabBar:ok'\n })\n }\n\n hideTabBarHandler = ({ animation, successHandler }) => {\n this.status = animation ? STATUS_SLIDEOUT : STATUS_HIDE\n successHandler({\n errMsg: 'hideTabBar:ok'\n })\n }\n\n setTabBarStyleHandler = ({ color, selectedColor, backgroundColor, borderStyle, successHandler }) => {\n if (backgroundColor) this.backgroundColor = backgroundColor\n if (borderStyle) this.borderStyle = borderStyle\n if (color) this.color = color\n if (selectedColor) this.selectedColor = selectedColor\n successHandler({\n errMsg: 'setTabBarStyle:ok'\n })\n }\n\n setTabBarItemHandler = ({ index, iconPath, selectedIconPath, text, successHandler, errorHandler }) => {\n const list = [...this.list]\n if (index in list) {\n if (iconPath) list[index].iconPath = iconPath\n if (selectedIconPath) list[index].selectedIconPath = selectedIconPath\n if (text) list[index].text = text\n successHandler({\n errMsg: 'setTabBarItem:ok'\n })\n } else {\n errorHandler({\n errMsg: 'setTabBarItem:fail tabbar item not found'\n })\n }\n\n this.list = list\n }\n\n bindEvent () {\n Taro.eventCenter.on('__taroRouterChange', this.routerChangeHandler)\n Taro.eventCenter.on('__taroSwitchTab', this.switchTabHandler)\n Taro.eventCenter.on('__taroSetTabBarBadge', this.setTabBarBadgeHandler)\n Taro.eventCenter.on('__taroRemoveTabBarBadge', this.removeTabBarBadgeHandler)\n Taro.eventCenter.on('__taroShowTabBarRedDotHandler', this.showTabBarRedDotHandler)\n Taro.eventCenter.on('__taroHideTabBarRedDotHandler', this.hideTabBarRedDotHandler)\n Taro.eventCenter.on('__taroShowTabBar', this.showTabBarHandler)\n Taro.eventCenter.on('__taroHideTabBar', this.hideTabBarHandler)\n Taro.eventCenter.on('__taroSetTabBarStyle', this.setTabBarStyleHandler)\n Taro.eventCenter.on('__taroSetTabBarItem', this.setTabBarItemHandler)\n }\n\n removeEvent () {\n Taro.eventCenter.off('__taroRouterChange', this.routerChangeHandler)\n Taro.eventCenter.off('__taroSwitchTab', this.switchTabHandler)\n Taro.eventCenter.off('__taroSetTabBarBadge', this.setTabBarBadgeHandler)\n Taro.eventCenter.off('__taroRemoveTabBarBadge', this.removeTabBarBadgeHandler)\n Taro.eventCenter.off('__taroShowTabBarRedDotHandler', this.showTabBarRedDotHandler)\n Taro.eventCenter.off('__taroHideTabBarRedDotHandler', this.hideTabBarRedDotHandler)\n Taro.eventCenter.off('__taroShowTabBar', this.showTabBarHandler)\n Taro.eventCenter.off('__taroHideTabBar', this.hideTabBarHandler)\n Taro.eventCenter.off('__taroSetTabBarStyle', this.setTabBarStyleHandler)\n Taro.eventCenter.off('__taroSetTabBarItem', this.setTabBarItemHandler)\n }\n\n componentDidLoad () {\n this.tabbarPos = this.tabbar.nextElementSibling ? 'top' : 'bottom'\n this.bindEvent()\n this.routerChangeHandler()\n }\n\n disconnectedCallback () {\n this.removeEvent()\n }\n\n render () {\n const { tabbarPos = 'bottom' } = this\n const status = this.status\n const containerCls = classNames('weui-tabbar', {\n [`taro-tabbar__border-${this.borderStyle || 'black'}`]: true\n })\n const shouldHideTabBar = this.selectedIndex === -1 || status === STATUS_HIDE\n const shouldSlideout = status === STATUS_SLIDEOUT\n\n return (\n <Host\n class={classNames(\n basicTabBarClassName,\n `${basicTabBarClassName}-${tabbarPos}`, {\n [hideTabBarClassName]: shouldHideTabBar,\n [hideTabBarWithAnimationClassName]: shouldSlideout\n })} >\n <div\n class={containerCls}\n style={{\n backgroundColor: this.backgroundColor || '',\n height: 'inherit'\n }}\n >\n {this.list.map((item, index) => {\n const isSelected = this.selectedIndex === index\n let textColor\n let iconPath\n if (isSelected) {\n textColor = this.selectedColor || ''\n iconPath = item.selectedIconPath\n } else {\n textColor = this.color || ''\n iconPath = item.iconPath\n }\n return (\n <TabbarItem\n index={index}\n onSelect={this.switchTab.bind(this)}\n isSelected={isSelected}\n textColor={textColor}\n iconPath={iconPath}\n text={item.text}\n badgeText={item.badgeText}\n showRedDot={item.showRedDot}\n />\n )\n })}\n </div>\n </Host>\n )\n }\n}\n"]}
@@ -0,0 +1,2 @@
1
+ import{r,h as o,H as t}from"./p-5bfefd19.js";import{n as s}from"./p-6a96da58.js";import"@tarojs/taro";const a=class{constructor(o){r(this,o)}componentDidLoad(){s("Ad",this)}render(){return o(t,null)}};export{a as taro_ad_core};
2
+ //# sourceMappingURL=p-4b05e003.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["src/components/ad/ad.tsx"],"names":["Ad","[object Object]","notSupport","this","h","Host"],"mappings":"4GAOaA,EAAE,+BACbC,mBACEC,EAAW,KAAMC,MAGnBF,SACE,OACEG,EAACC,EAAI","sourcesContent":["import { Component, ComponentInterface, h, Host } from '@stencil/core'\n\nimport { notSupport } from '../../utils'\n\n@Component({\n tag: 'taro-ad-core'\n})\nexport class Ad implements ComponentInterface {\n componentDidLoad () {\n notSupport('Ad', this)\n }\n\n render () {\n return (\n <Host />\n )\n }\n}\n"]}
@@ -1 +1,2 @@
1
- System.register(["./p-44cbb351.system.js"],(function(r){"use strict";var e,t,n;return{setters:[function(r){e=r.r;t=r.h;n=r.H}],execute:function(){var i=r("taro_rich_text_core",function(){function r(r){var n=this;e(this,r);this.renderNode=function(r){if("type"in r&&r.type==="text"){var e=(r.text||"").replace(/&nbsp;/g," ");return e}else if("name"in r&&r.name){var i=r.name,u=r.attrs,a=r.children;var o={};var f=[];if(u&&typeof u==="object"){var c=function(r){var e=u[r];if(r==="style"&&typeof e==="string"){var t=e.split(";").map((function(r){return r.trim()})).filter((function(r){return r}));var n={};t.forEach((function(r){if(!r)return;var e=/(.+): *(.+)/g.exec(r);if(!e)return;var t=e[1],i=e[2];var u=t.replace(/-([a-z])/g,(function(){var r=[];for(var e=0;e<arguments.length;e++){r[e]=arguments[e]}return r[1].toUpperCase()}));n[u]=i}));if(Object.keys(n).length){o.style=n}return"continue"}o[r]=e};for(var s in u){c(s)}}if(a&&a.length){f=a.map((function(r){return n.renderNode(r)}))}return t(i,o,f)}return null}}r.prototype.render=function(){var r=this,e=r.nodes,i=r.renderNode;if(Array.isArray(e)){return t(n,null,e.map((function(r){return i(r)})))}else{return t(n,{innerHTML:e})}};return r}())}}}));
1
+ System.register(["./p-8a8f286f.system.js"],(function(r){"use strict";var e,t,n;return{setters:[function(r){e=r.r;t=r.h;n=r.H}],execute:function(){var i=r("taro_rich_text_core",function(){function r(r){var n=this;e(this,r);this.renderNode=function(r){if("type"in r&&r.type==="text"){var e=(r.text||"").replace(/&nbsp;/g," ");return e}else if("name"in r&&r.name){var i=r.name,u=r.attrs,a=r.children;var f={};var o=[];if(u&&typeof u==="object"){var s=function(r){var e=u[r];if(r==="style"&&typeof e==="string"){var t=e.split(";").map((function(r){return r.trim()})).filter((function(r){return r}));var n={};t.forEach((function(r){if(!r)return;var e=/(.+): *(.+)/g.exec(r);if(!e)return;var t=e[1],i=e[2];var u=t.replace(/-([a-z])/g,(function(){var r=[];for(var e=0;e<arguments.length;e++){r[e]=arguments[e]}return r[1].toUpperCase()}));n[u]=i}));if(Object.keys(n).length){f.style=n}return"continue"}f[r]=e};for(var c in u){s(c)}}if(a&&a.length){o=a.map((function(r){return n.renderNode(r)}))}return t(i,f,o)}return null};this.nodes=undefined}r.prototype.render=function(){var r=this,e=r.nodes,i=r.renderNode;if(Array.isArray(e)){return t(n,null,e.map((function(r){return i(r)})))}else{return t(n,{innerHTML:e})}};return r}())}}}));
2
+ //# sourceMappingURL=p-4b27df71.system.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["src/components/rich-text/rich-text.tsx"],"names":["RichText","exports","this","renderNode","node","type","content","text","replace","name","attrs","children","attributes","childList","key","val","styles","split","map","item","trim","filter","styleObj_1","forEach","res","exec","value","styleName","args","_i","arguments","length","toUpperCase","Object","keys","style","_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C,GAG7B,OAAO,2BAGTyB,EAAAC,UAAAC,OAAA,WACQ,IAAAC,EAAwBvC,KAAtBwC,EAAKD,EAAAC,MAAEvC,EAAUsC,EAAAtC,WAEzB,GAAIwC,MAAMC,QAAQF,GAAQ,CACxB,OACEL,EAACQ,EAAI,KACFH,EAAMxB,KAAI,SAAAd,GAAQ,OAAAD,EAAWC,WAG7B,CACL,OAAOiC,EAACQ,EAAI,CAACC,UAAWJ,eAzET","sourcesContent":["import { Component, h, ComponentInterface, Prop, Host } from '@stencil/core'\n\ninterface Attributes {\n [propName: string]: string | {\n [propName: string]: string\n }\n}\n\ninterface NodeType {\n name: string\n attrs?: Attributes\n children?: ElementType[]\n}\n\ninterface TextType {\n type: 'text'\n text: string\n}\n\ntype ElementType = NodeType | TextType\n\ntype StringType = string\n\nexport type Nodes = ElementType[] | StringType\n\n@Component({\n tag: 'taro-rich-text-core'\n})\nexport class RichText implements ComponentInterface {\n @Prop() nodes: Nodes\n\n renderNode = (node: ElementType) => {\n if ('type' in node && node.type === 'text') {\n // nonsupport Html Entries\n const content = (node.text || '').replace(/&nbsp;/g, '\\u00A0')\n return content\n } else if ('name' in node && node.name) {\n const {\n name,\n attrs,\n children\n } = node\n const attributes: Attributes = {}\n let childList: any[] = []\n\n if (attrs && typeof attrs === 'object') {\n for (const key in attrs) {\n const val = attrs[key]\n if (key === 'style' && typeof val === 'string') {\n // stencil JSX style props only support object\n const styles = val\n .split(';')\n .map(item => item.trim())\n .filter(item => item)\n\n const styleObj: {\n [propName: string]: string\n } = {}\n\n styles.forEach(item => {\n if (!item) return\n\n const res = /(.+): *(.+)/g.exec(item)\n if (!res) return\n\n const [, name, value] = res\n const styleName = name.replace(/-([a-z])/g, (...args) => args[1].toUpperCase())\n styleObj[styleName] = value\n })\n\n if (Object.keys(styleObj).length) {\n attributes.style = styleObj\n }\n\n continue\n }\n attributes[key] = val\n }\n }\n\n if (children && children.length) {\n childList = children.map(node => this.renderNode(node))\n }\n\n // @ts-ignore\n return h(name, attributes, childList)\n }\n\n return null\n }\n\n render () {\n const { nodes, renderNode } = this\n\n if (Array.isArray(nodes)) {\n return (\n <Host>\n {nodes.map(node => renderNode(node))}\n </Host>\n )\n } else {\n return <Host innerHTML={nodes} />\n }\n }\n}\n"]}
@@ -0,0 +1,2 @@
1
+ import{r as t,h as i,H as e,g as s,c as o}from"./p-5bfefd19.js";import{c as n}from"./p-76724e58.js";import{t as r}from"./p-5746d7ce.js";const a=t=>{if(!t)return"";const i=Math.round(t%60);const e=Math.round((t-i)/60);return`${e<10?`0${e}`:e}:${i<10?`0${i}`:i}`};const h=(t,i)=>Math.sqrt(Math.pow(t,2)+Math.pow(i,2));const l=t=>Math.max(-1,Math.min(t,1));let d="default";const c=function(){let t;const i=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]];var e=["webkitEnterFullscreen","webkitExitFullscreen","webkitCurrentFullScreenElement","webkitSupportsFullscreen","fullscreenchange","fullscreenerror"];let s=0;const o=i.length;const n={};for(;s<o;s++){t=i[s];if(t&&t[1]in document){for(s=0;s<t.length;s++){n[i[0][s]]=t[s]}return n}}if(!n[i[0][0]]){d="iOS";for(s=0;s<e.length;s++){n[i[0][s]]=e[s]}}return n}();const A=t=>/\.(m3u8)($|\?)/i.test(t);const u=class{constructor(i){t(this,i);this.visible=false;this.isDraggingProgressBall=false;this.percentage=0;this.progressDimensions={left:0,width:0};this.calcPercentage=t=>{let i=t-this.progressDimensions.left;i=Math.max(i,0);i=Math.min(i,this.progressDimensions.width);return i/this.progressDimensions.width};this.onDragProgressBallStart=()=>{this.isDraggingProgressBall=true;this.hideControlsTimer&&clearTimeout(this.hideControlsTimer)};this.onClickProgress=t=>{t.stopPropagation();const i=this.calcPercentage(t.pageX);this.seekFunc(i*this.duration);this.toggleVisibility(true)};this.controls=undefined;this.currentTime=undefined;this.duration=undefined;this.isPlaying=undefined;this.pauseFunc=undefined;this.playFunc=undefined;this.seekFunc=undefined;this.showPlayBtn=undefined;this.showProgress=undefined}onDocumentTouchMove(t){if(!this.isDraggingProgressBall)return;const i=t.touches[0].pageX;this.percentage=this.calcPercentage(i);this.setProgressBall(this.percentage);this.setCurrentTime(this.percentage*this.duration)}onDocumentTouchEnd(){if(!this.isDraggingProgressBall)return;this.isDraggingProgressBall=false;this.seekFunc(this.percentage*this.duration);this.toggleVisibility(true)}async setProgressBall(t){if(this.progressBallRef){this.progressBallRef.style.left=`${t*100}%`}}async toggleVisibility(t){const i=t===undefined?!this.visible:t;if(i){this.hideControlsTimer&&clearTimeout(this.hideControlsTimer);if(this.isPlaying){this.hideControlsTimer=setTimeout((()=>{this.toggleVisibility(false)}),2e3)}this.el.style.visibility="visible"}else{this.el.style.visibility="hidden"}this.visible=!!i}async getIsDraggingProgressBall(){return this.isDraggingProgressBall}async setCurrentTime(t){this.currentTimeRef.innerHTML=a(t)}render(){const{controls:t,currentTime:s,duration:o,isPlaying:n,pauseFunc:r,playFunc:h,showPlayBtn:l,showProgress:d}=this;const c=a(o);let A;if(!l){A=null}else if(n){A=i("div",{class:"taro-video-control-button taro-video-control-button-pause",onClick:r})}else{A=i("div",{class:"taro-video-control-button taro-video-control-button-play",onClick:h})}return i(e,{class:"taro-video-bar taro-video-bar-full"},t&&i("div",{class:"taro-video-controls"},A,d&&i("div",{class:"taro-video-current-time",ref:t=>this.currentTimeRef=t},a(s)),d&&i("div",{class:"taro-video-progress-container",onClick:this.onClickProgress},i("div",{class:"taro-video-progress",ref:t=>{if(!t)return;const i=t.getBoundingClientRect();this.progressDimensions.left=i.left;this.progressDimensions.width=i.width}},i("div",{class:"taro-video-progress-buffered",style:{width:"100%"}}),i("div",{class:"taro-video-ball",ref:t=>this.progressBallRef=t,onTouchStart:this.onDragProgressBallStart,style:{left:`${c?this.currentTime/o*100:0}%`}},i("div",{class:"taro-video-inner"})))),d&&i("div",{class:"taro-video-duration"},c)),i("slot",null))}get el(){return s(this)}};const g='.taro-video{display:inline-block;overflow:hidden;position:relative;width:100%;height:225px;line-height:0}.taro-video[hidden]{display:none}.taro-video-container{display:inline-block;position:absolute;left:0;top:0;width:100%;height:100%;background-color:#000;-o-object-position:inherit;object-position:inherit}.taro-video-container.taro-video-type-fullscreen{position:fixed;left:0;right:0;top:0;bottom:0;z-index:999}.taro-video-container.taro-video-type-fullscreen.taro-video-type-rotate-left{-webkit-transform:translate(-50%, -50%) rotate(-90deg);transform:translate(-50%, -50%) rotate(-90deg)}.taro-video-container.taro-video-type-fullscreen.taro-video-type-rotate-right{-webkit-transform:translate(-50%, -50%) rotate(90deg);transform:translate(-50%, -50%) rotate(90deg)}.taro-video-video{width:100%;height:100%;-o-object-position:inherit;object-position:inherit}.taro-video-cover{display:-ms-flexbox;display:flex;position:absolute;left:0;top:0;bottom:0;z-index:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;width:100%;background-color:rgba(1, 1, 1, 0.5);-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-pack:center;-webkit-box-align:center}.taro-video-cover-play-button{width:40px;height:40px;background-repeat:no-repeat;background-position:50% 50%;background-size:50%}.taro-video-cover-duration{margin-top:10px;line-height:1;font-size:16px;color:#fff}.taro-video-bar{display:-ms-flexbox;display:flex;visibility:hidden;overflow:hidden;position:absolute;right:0;bottom:0;z-index:1;-ms-flex-align:center;align-items:center;padding:0 10px;height:44px;background-color:rgba(0, 0, 0, 0.5);-webkit-box-align:center}.taro-video-bar.taro-video-bar-full{left:0}.taro-video-controls{display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;margin:0 8.5px}.taro-video-control-button{-webkit-box-sizing:content-box;box-sizing:content-box;margin-left:-8.5px;padding:14.5px 12.5px;width:13px;height:15px}.taro-video-control-button::after{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:50% 50%;background-size:100%;content:""}.taro-video-control-button.taro-video-control-button-play::after,.taro-video-cover-play-button{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAeCAYAAAAy2w7YAAAAAXNSR0IArs4c6QAAAWhJREFUSA1j+P///0cgBoHjQGzCQCsAtgJB/AMy5wCxGNXtQ9iBwvoA5BUCMQvVLEQxHpNzDSjkRhXLMM3GKrIeKKpEkYVYjcUu+AMo3ALE3GRZiN1MvKKPgbIRJFuG10j8koeA0gZEW4jfLIKyf4EqpgOxMEELCRpFnIJ3QGU5QMyM00LizCFa1SWgSkeslhFtBGkKVwGVy6FYSJp+klR/A6quB2JOkIWMIK0oNlOf8xBoZDE9LAI7nYn6HsBq4l96WHQEaLUpAyiOaASeAM2NgvuPBpaACt82IEYtfKls0UagecpwXyAzqGTRdaA57sjmYrAptAjUsCkGYlYMg9EFyLQI1IiZB8Ti6Obh5JNh0QmgHlOcBuKSIMGi50C18UDMiMssvOJEWPQLqKYbiHnxGkRIkoBF24DyaoTMIEoeh0W3geI+RBlArCI0iz4D+RVAzEasfqLVAQ19AcSg5LoYiKWI1kiiQgCMBLnEEcfDSgAAAABJRU5ErkJggg==")}.taro-video-control-button.taro-video-control-button-pause::after{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAgCAYAAAAffCjxAAAAAXNSR0IArs4c6QAAAFlJREFUSA3tksEKACAIQ7X//5zq98wOgQayum8QaGweHhMzG/6OujzKAymn+0LMqivu1XznWmX8/echTIyMyAgTwA72iIwwAexgj8gIE8CO3aMRbDPMaEy5BRGaKcZv8YxRAAAAAElFTkSuQmCC")}.taro-video-current-time,.taro-video-duration{margin-top:15px;margin-bottom:14.5px;height:14.5px;line-height:14.5px;font-size:12px;color:#cbcbcb}.taro-video-progress-container{position:relative;-ms-flex-positive:2;flex-grow:2;-webkit-box-flex:2}.taro-video-progress{position:relative;margin:21px 12px;height:2px;background-color:rgba(255, 255, 255, 0.4)}.taro-video-progress-buffered{position:absolute;left:0;top:0;width:0;height:100%;background-color:rgba(255, 255, 255, 0.8);-webkit-transition:width 0.1s;transition:width 0.1s}.taro-video-ball{position:absolute;left:0;top:-21px;-webkit-box-sizing:content-box;box-sizing:content-box;margin-left:-22px;padding:14px;width:16px;height:16px}.taro-video-inner{border-radius:50%;width:100%;height:100%;background-color:#fff}.taro-video-danmu-button{margin:0 8.5px;padding:2px 10px;border:1px solid #fff;border-radius:5px;line-height:1;font-size:13px;color:#fff;white-space:nowrap}.taro-video-danmu-button.taro-video-danmu-button-active{border-color:#48c23d;color:#48c23d}.taro-video-fullscreen,.taro-video-mute{-webkit-box-sizing:content-box;box-sizing:content-box;padding:8.5px;width:17px;height:17px;background-repeat:no-repeat;background-position:50% 50%;background-size:50%}.taro-video-fullscreen{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAhUlEQVRYR+2WSwrAMAhEnZO3PfmULLooGEFTiIXJ2s/kRY2wzQeb85sE9CRA8jSzY1YfAFzhJBnU1AVgxH2dSiArCnD9QgGzRNnOech48SRABHoSyFb5in3PSbhyo6yvCPQkEM3u7BsPe/0FIvBfAh/vhKmVbO9SWun1qk/PSVi9TcVPBG6R1YIhgWwNpQAAAABJRU5ErkJggg==")}.taro-video-fullscreen.taro-video-type-fullscreen{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAABPUlEQVRYR+2Xu0pDURBF1/ZLxNcHKNiIlfhA7C0UBSEE8RNEBNFPUEQEEbGxFiSSSrCwEHsf5E/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+IDw/eHBhY2tldCBlbmQ9InIiPz5PmxYVAAACLklEQVRYhc2XP2sVQRRHz40hKoqaQgVBCy1EozFlGiVFxMLGh4piYWEh+hkEP4YKAVFEEFTyughaCH6DqIVpAhYWEgIxoJE8cywyi5tNHu/tJmvyg2WZO3dmzt47/zZUtoJ6Nhsg09YDiYhKDzACTAFNYH9lEpUq80TdrT5wpV5n/ZV9KoGoo+pXV2uyKkipOaLuUceAt8DhUvQd1FsCYhR4ChzaSIBMHSOi7lOfsByFWiCgEBH1GHAF2JlMPcBt4GC3HUYEaj9wF3gVEVPtfNVTwAXgWX7CDKq/1piAZTSZBmim8qJ6sQ3EgDqb/L7kU3MH2NHtl3dQX3r3Ak21UYAYAj4A/cl0JB+RF+uMRj4iQ+p8zt7KYFLdXKHuRi0gacBhV6a6pd5bA6KRNagFJPU9qv5u47toLmW1HnoR8Q5oAK1CVQu4FBHj/wUkaXsb+4pzpVaQFPqXrN7Be4Fx9VztIOr1BLEtmX4A94E/qdwHTKjDWYM6lu81dSlnn3V570BtuLxaMs2rZ/IgYxsBovaoPwsQA4VoFWEm8ql5DiysNyURsQTMpOIMcDYiPhd8xoGr/FtNC2G6FKXD6ihwGdiVHMoeeh8jYlA9ANwE3kTEp3bO6vE03qOONzR1r/q4RGrquaFFxFxE3ALOA9+6jExpdb180y55AhirhaRTatq0GXEzL8+ZIuI9cBJ4WKiartJf9nWV/mty7UfUafW7erpqRGI9EBuprffvu9n6C1KOmsqwI5A1AAAAAElFTkSuQmCC")}.taro-video-danmu{overflow:visible;position:absolute;left:0;top:0;bottom:0;margin-top:14px;margin-bottom:44px;width:100%;line-height:14px;font-size:14px}.taro-video-danmu-item{position:absolute;left:100%;line-height:1;color:#fff;white-space:nowrap;-webkit-transform:translateX(0);transform:translateX(0);-webkit-transition-property:left, -webkit-transform;transition-property:left, -webkit-transform;transition-property:left, transform;transition-property:left, transform, -webkit-transform;-webkit-transition-duration:3s;transition-duration:3s;-webkit-transition-timing-function:linear;transition-timing-function:linear}.taro-video-toast{display:block;visibility:hidden;position:absolute;left:50%;top:50%;border-radius:5px;background-color:rgba(255, 255, 255, 0.8);pointer-events:none;color:#000;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}.taro-video-toast.taro-video-toast-volume{display:block;width:100px;height:100px}.taro-video-toast-volume .taro-video-toast-title{display:block;margin-top:10px;width:100%;line-height:16px;text-align:center;font-size:12px}.taro-video-toast-volume .taro-video-toast-icon{display:block;margin-left:25%;width:50%;height:50%;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAFhklEQVR4Xu2aeaxfQxTHP1VBES0NIQitWtpaaxeCUkQtaYVa0tiClAq1ExIiQTVppaWxt8RWSa2tWkJQRGgtQaSIpUKEpG0ssbbk28yV2+mZO/e9e3vvu/e98897mZnfzPl+75mZs0wvurn06ub46SGgxwLqZaA3sB/wO/A+8G/V6tS5BU4BJgJbO9DvAMOB36okoQ4CNgAeBEYbQK8Bbm4zAdsBc4EdAyA/APZoKwHHAA8DG2UA/AnYrG0ErAVcD1yXA9gfQJ8c40obsqbPgH7AY8CROTVuFQFD3X7fJid4DWsNAWOAGZ0w58YTsDZwKzChA189PbTRBGwKzAYO6iT4srbAMHfTfAksjulS1iG4JzAH2Dy2YKS/qAVcCdzi1vgZOBZ4PWvNGAG6wgYCW0IwctzNmf06BcEXtYABwOeA4otEfgEOdnGGqV6IAAUopwM6zDYuAVjeKYpYwCjgCWOhH513+b2lhE+Avrj89NPyalzyuCIE6EN9BfQ1dHoPOAD40+9LE6D/5aoqSqtLsgiQC60DTiHzfGCFoaSsQAexZdlTgEuyCDgLuK8u5G7dEAHyKN8CBrtxLwDHAX8Z+l4N3GS0L3db4aN0X5opmc+2XZQAfb2LPd2eciG1lUSRJZ9qYHkZONwiYAjwSc3gs24BXWWWfzEVuMjQez13HljX8v7A28lvEgsInaBVcxLaAvr6sgJLtBWeNTrOB+4w2p8DRvoEnAPcXTVaY70QAbrbXw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nQQkOJTAUJZGIav19q9MvKvN1RUIWKMAY5P3EBBjqO393d4C/gMVHwRQlpx21QAAAABJRU5ErkJggg==");background-repeat:no-repeat;background-position:50% 50%;background-size:50%;fill:#000}.taro-video-toast-volume .taro-video-toast-value{margin-left:10px;margin-top:5px;width:80px;height:5px}.taro-video-toast-volume .taro-video-toast-value>.taro-video-toast-value-content{overflow:hidden}.taro-video-toast-volume-grids{width:80px;height:5px}.taro-video-toast-volume-grids-item{float:left;width:7.1px;height:5px;background-color:#000}.taro-video-toast-volume-grids-item:not(:first-child){margin-left:1px}.taro-video-toast.taro-video-toast-progress{padding:6px;background-color:rgba(0, 0, 0, 0.8);line-height:18px;font-size:14px;color:#fff}';const b=class{constructor(i){t(this,i);this.onPlay=o(this,"play",7);this.onPause=o(this,"pause",7);this.onEnded=o(this,"ended",7);this.onTimeUpdate=o(this,"timeupdate",7);this.onError=o(this,"error",7);this.onFullScreenChange=o(this,"fullscreenchange",7);this.onProgress=o(this,"progress",7);this.onLoadedMetaData=o(this,"loadedmetadata",7);this.currentTime=0;this.isDraggingProgress=false;this.gestureType="none";this.analyzeGesture=t=>{var i;const e={type:"none"};const s=t.touches[0].screenX;const o=t.touches[0].screenY;const n=s-this.lastTouchScreenX;const r=o-this.lastTouchScreenY;const a=this.isFullScreen?this.vslideGestureInFullscreen:this.vslideGesture;if(this.gestureType==="none"){const t=h(n,r);if(t<10)return e;if(Math.abs(r)>=Math.abs(n)){if(a){this.gestureType="adjustVolume";this.lastVolume=this.videoRef.volume}else{return e}}else if(Math.abs(r)<Math.abs(n)){if(this.enableProgressGesture){this.gestureType="adjustProgress";this.lastPercentage=this.currentTime/((i=this.duration)!==null&&i!==void 0?i:this._duration)}else{return e}}}e.type=this.gestureType;e.dataX=l(n/200);e.dataY=l(r/200);return e};this.loadNativePlayer=()=>{var t,i;if(this.videoRef){this.videoRef.src=this.src;(i=(t=this.videoRef).load)===null||i===void 0?void 0:i.call(t)}};this.init=()=>{const{src:t,videoRef:i}=this;if(A(t)){import("./p-d5234e7e.js").then((function(t){return t.h})).then((e=>{const s=e.default;this.HLS=s;if(s.isSupported()){if(this.hls){this.hls.destroy()}this.hls=new s;this.hls.loadSource(t);this.hls.attachMedia(i);this.hls.on(s.Events.MANIFEST_PARSED,(()=>{this.autoplay&&this.play()}));this.hls.on(s.Events.ERROR,((t,i)=>{this.handleError(i)}))}else if(i.canPlayType("application/vnd.apple.mpegurl")){this.loadNativePlayer()}else{console.error("该浏览器不支持 HLS 播放")}}))}else{this.loadNativePlayer()}};this.handlePlay=()=>{this.isPlaying=true;this.isFirst=false;this.controlsRef.toggleVisibility(true);this.onPlay.emit()};this.handlePause=()=>{this.isPlaying=false;this.controlsRef.toggleVisibility(true);this.onPause.emit()};this.handleEnded=()=>{this.isFirst=true;this.pause();this.controlsRef.toggleVisibility();this.onEnded.emit()};this.handleTimeUpdate=r((async t=>{var i,e;this.currentTime=this.videoRef.currentTime;const s=this.duration||this._duration;const o=await this.controlsRef.getIsDraggingProgressBall();if(this.controls&&this.showProgress){if(!o&&!this.isDraggingProgress){this.controlsRef.setProgressBall(this.currentTime/s);this.controlsRef.setCurrentTime(this.currentTime)}}this.danmuRef.tick(this.currentTime);this.onTimeUpdate.emit({duration:(i=t.target)===null||i===void 0?void 0:i.duration,currentTime:(e=t.target)===null||e===void 0?void 0:e.currentTime});if(this.duration){if(this.currentTime>=this.duration){this.seek(0);this.handleEnded()}}}),250);this.handleError=t=>{var i,e;if(this.hls){switch(t.type){case this.HLS.ErrorTypes.NETWORK_ERROR:this.onError.emit({errMsg:t.response});this.hls.startLoad();break;case this.HLS.ErrorTypes.MEDIA_ERROR:this.onError.emit({errMsg:t.reason||"媒体错误,请重试"});this.hls.recoverMediaError();break}}else{this.onError.emit({errMsg:(e=(i=t.target)===null||i===void 0?void 0:i.error)===null||e===void 0?void 0:e.message})}};this.handleDurationChange=()=>{this._duration=this.videoRef.duration};this.handleProgress=()=>{this.onProgress.emit()};this.handleLoadedMetaData=t=>{const i=t.target;this.onLoadedMetaData.emit({width:i.videoWidth,height:i.videoHeight,duration:i.duration})};this._play=()=>this.videoRef.play();this._pause=()=>this.videoRef.pause();this._stop=()=>{this.videoRef.pause();this._seek(0)};this._seek=t=>{this.videoRef.currentTime=t};this.onTouchStartContainer=t=>{this.lastTouchScreenX=t.touches[0].screenX;this.lastTouchScreenY=t.touches[0].screenY};this.onClickContainer=()=>{if(this.enablePlayGesture){const t=Date.now();if(t-this.lastClickedTime<300){this.isPlaying?this.pause():this.play()}this.lastClickedTime=t}this.controlsRef.toggleVisibility()};this.onClickFullScreenBtn=t=>{t.stopPropagation();this.toggleFullScreen()};this.handleFullScreenChange=t=>{const i=(new Date).getTime();if(!t.detail&&this.isFullScreen&&!document[c.fullscreenElement]&&i-this.fullScreenTimestamp>100){this.toggleFullScreen(false)}};this.toggleFullScreen=(t=!this.isFullScreen)=>{this.isFullScreen=t;this.controlsRef.toggleVisibility(true);this.fullScreenTimestamp=(new Date).getTime();this.onFullScreenChange.emit({fullScreen:this.isFullScreen,direction:"vertical"});if(this.isFullScreen&&!document[c.fullscreenElement]){setTimeout((()=>{this.videoRef[c.requestFullscreen]({navigationUI:"auto"})}),0)}};this.toggleMute=t=>{t.stopPropagation();this.videoRef.muted=!this.isMute;this.controlsRef.toggleVisibility(true);this.isMute=!this.isMute};this.toggleDanmu=t=>{t.stopPropagation();this.controlsRef.toggleVisibility(true);this._enableDanmu=!this._enableDanmu};this.src=undefined;this.duration=undefined;this.controls=true;this.autoplay=false;this.loop=false;this.muted=false;this.initialTime=0;this.poster=undefined;this.objectFit="contain";this.showProgress=true;this.showFullscreenBtn=true;this.showPlayBtn=true;this.showCenterPlayBtn=true;this.showMuteBtn=false;this.danmuList=undefined;this.danmuBtn=false;this.enableDanmu=false;this.enablePlayGesture=false;this.enableProgressGesture=true;this.vslideGesture=false;this.vslideGestureInFullscreen=true;this.nativeProps={};this._duration=undefined;this._enableDanmu=false;this.isPlaying=false;this.isFirst=true;this.isFullScreen=false;this.fullScreenTimestamp=(new Date).getTime();this.isMute=false}componentWillLoad(){this._enableDanmu=this.enableDanmu}componentDidLoad(){var t,i;this.init();if(this.initialTime){this.videoRef.currentTime=this.initialTime}(i=(t=this.danmuRef).sendDanmu)===null||i===void 0?void 0:i.call(t,this.danmuList);if(document.addEventListener){document.addEventListener(c.fullscreenchange,this.handleFullScreenChange)}if(this.videoRef&&d==="iOS"){this.videoRef.addEventListener("webkitendfullscreen",this.handleFullScreenChange)}}componentDidRender(){}disconnectedCallback(){if(document.removeEventListener){document.removeEventListener(c.fullscreenchange,this.handleFullScreenChange)}if(this.videoRef&&d==="iOS"){this.videoRef.removeEventListener("webkitendfullscreen",this.handleFullScreenChange)}}watchEnableDanmu(t){this._enableDanmu=t}watchSrc(){this.init()}async onDocumentTouchMove(t){if(this.lastTouchScreenX===undefined||this.lastTouchScreenY===undefined)return;if(await this.controlsRef.getIsDraggingProgressBall())return;const i=this.analyzeGesture(t);if(i.type==="adjustVolume"){this.toastVolumeRef.style.visibility="visible";const t=Math.max(Math.min(this.lastVolume-i.dataY,1),0);this.videoRef.volume=t;this.toastVolumeBarRef.style.width=`${t*100}%`}else if(i.type==="adjustProgress"){this.isDraggingProgress=true;this.nextPercentage=Math.max(Math.min(this.lastPercentage+(i.dataX||0),1),0);if(this.controls&&this.showProgress){this.controlsRef.setProgressBall(this.nextPercentage);this.controlsRef.toggleVisibility(true)}const t=this.duration||this._duration;this.toastProgressTitleRef.innerHTML=`${a(this.nextPercentage*t)} / ${a(t)}`;this.toastProgressRef.style.visibility="visible"}}onDocumentTouchEnd(){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}async play(){this._play()}async pause(){this._pause()}async stop(){this._stop()}async seek(t){this._seek(t)}async requestFullScreen(){this.toggleFullScreen(true)}async exitFullScreen(){this.toggleFullScreen(false)}render(){const{controls:t,autoplay:s,loop:o,muted:r,poster:h,objectFit:l,isFirst:d,isMute:c,isFullScreen:A,showCenterPlayBtn:u,isPlaying:g,_enableDanmu:b,showMuteBtn:p,danmuBtn:v,showFullscreenBtn:m,nativeProps:f}=this;const w=this.duration||this._duration;const E=a(w);return i(e,{class:n("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":l},ref:t=>{if(t){this.videoRef=t}},autoplay:s,loop:o,muted:r,poster:t?h: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},f),"暂时不支持播放该视频"),i("taro-video-danmu",{ref:t=>{if(t){this.danmuRef=t}},enable:b}),d&&u&&!g&&i("div",{class:"taro-video-cover"},i("div",{class:"taro-video-cover-play-button",onClick:()=>this.play()}),i("p",{class:"taro-video-cover-duration"},E)),i("taro-video-control",{ref:t=>{if(t){this.controlsRef=t}},controls:t,currentTime:this.currentTime,duration:w,isPlaying:this.isPlaying,pauseFunc:this._pause,playFunc:this._play,seekFunc:this._seek,showPlayBtn:this.showPlayBtn,showProgress:this.showProgress},p&&i("div",{class:n("taro-video-mute",{"taro-video-type-mute":c}),onClick:this.toggleMute}),v&&i("div",{class:n("taro-video-danmu-button",{"taro-video-danmu-button-active":b}),onClick:this.toggleDanmu},"弹幕"),m&&i("div",{class:n("taro-video-fullscreen",{"taro-video-type-fullscreen":A}),onClick:this.onClickFullScreenBtn})),i("div",{class:"taro-video-toast taro-video-toast-volume",ref:t=>{if(t){this.toastVolumeRef=t}}},i("div",{class:"taro-video-toast-title"},"音量"),i("div",{class:"taro-video-toast-icon"}),i("div",{class:"taro-video-toast-value"},i("div",{class:"taro-video-toast-value-content",ref:t=>{if(t){this.toastVolumeBarRef=t}}},i("div",{class:"taro-video-toast-volume-grids"},Array(10).fill(1).map((()=>i("div",{class:"taro-video-toast-volume-grids-item"}))))))),i("div",{class:"taro-video-toast taro-video-toast-progress",ref:t=>{if(t){this.toastProgressRef=t}}},i("div",{class:"taro-video-toast-title",ref:t=>{if(t){this.toastProgressTitleRef=t}}})))}get el(){return s(this)}static get watchers(){return{enableDanmu:["watchEnableDanmu"],src:["watchSrc"]}}};b.style=g;const p=class{constructor(i){t(this,i);this.list=[];this.danmuElList=[];this.currentTime=0;this.enable=false;this.danmuList=[]}ensureProperties(t){const i=Object.assign({},t);if(!("time"in t)){i.time=this.currentTime}i.key=Math.random();i.bottom=`${Math.random()*90+5}%`;return i}async sendDanmu(t=[]){if(Array.isArray(t)){this.list=[...this.list,...t.map((t=>this.ensureProperties(t)))]}else{const i=t;this.list=[...this.list,Object.assign({},this.ensureProperties(i))]}}async tick(t){this.currentTime=t;if(!this.enable)return;const i=this.list;const e=i.filter((({time:i})=>t-i<4&&t>i));let s=false;const o=this.danmuList;if(e.length!==o.length){s=true}else{s=e.some((({key:t})=>o.every((i=>t!==i.key))))}if(s){this.danmuList=e}}componentDidUpdate(){requestAnimationFrame((()=>{setTimeout((()=>{const t=this.danmuElList.splice(0);t.forEach((t=>{t.style.left="0";t.style.webkitTransform="translateX(-100%)";t.style.transform="translateX(-100%)"}))}))}))}render(){if(!this.enable)return"";return i(e,{class:"taro-video-danmu"},this.danmuList.map((({text:t,color:e,bottom:s,key:o})=>i("p",{class:"taro-video-danmu-item",key:o,style:{color:e,bottom:s},ref:t=>{if(t){this.danmuElList.push(t)}}},t))))}};export{u as taro_video_control,b as taro_video_core,p as taro_video_danmu};
2
+ //# sourceMappingURL=p-4b71c926.entry.js.map