@tarojs/components 4.0.8-alpha.1 → 4.0.8-alpha.2

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 (298) hide show
  1. package/dist/cjs/taro-button-core.cjs.entry.js +1 -1
  2. package/dist/cjs/taro-checkbox-core_2.cjs.entry.js +1 -1
  3. package/dist/cjs/taro-image-core.cjs.entry.js +1 -1
  4. package/dist/cjs/taro-picker-core_2.cjs.entry.js +1 -1
  5. package/dist/cjs/taro-picker-view-column-core_2.cjs.entry.js +2 -2
  6. package/dist/cjs/taro-progress-core.cjs.entry.js +1 -1
  7. package/dist/cjs/taro-pull-to-refresh-core.cjs.entry.js +1 -1
  8. package/dist/cjs/taro-rich-text-core.cjs.entry.js +1 -1
  9. package/dist/cjs/taro-scroll-view-core.cjs.entry.js +1 -1
  10. package/dist/cjs/taro-slider-core.cjs.entry.js +1 -1
  11. package/dist/cjs/taro-swiper-core_2.cjs.entry.js +2 -2
  12. package/dist/cjs/taro-switch-core.cjs.entry.js +1 -1
  13. package/dist/cjs/taro-tabbar.cjs.entry.js +1 -1
  14. package/dist/cjs/taro-text-core.cjs.entry.js +1 -1
  15. package/dist/cjs/taro-textarea-core.cjs.entry.js +1 -1
  16. package/dist/cjs/taro-video-control_3.cjs.entry.js +1 -1
  17. package/dist/collection/components/scroll-view/style/index.css +1 -1
  18. package/dist/collection/components/swiper/style/index.css +3 -3
  19. package/dist/collection/components/swiper/swiper.js +1 -1
  20. package/dist/components/taro-button-core.js +1 -1
  21. package/dist/components/taro-checkbox-core.js +1 -1
  22. package/dist/components/taro-image-core.js +1 -1
  23. package/dist/components/taro-picker-core.js +1 -1
  24. package/dist/components/taro-picker-view-column-core.js +1 -1
  25. package/dist/components/taro-picker-view-core.js +1 -1
  26. package/dist/components/taro-progress-core.js +1 -1
  27. package/dist/components/taro-pull-to-refresh-core.js +1 -1
  28. package/dist/components/taro-rich-text-core.js +1 -1
  29. package/dist/components/taro-scroll-view-core.js +1 -1
  30. package/dist/components/taro-slider-core.js +1 -1
  31. package/dist/components/taro-swiper-core.js +2 -2
  32. package/dist/components/taro-switch-core.js +1 -1
  33. package/dist/components/taro-tabbar.js +1 -1
  34. package/dist/components/taro-text-core.js +1 -1
  35. package/dist/components/taro-textarea-core.js +1 -1
  36. package/dist/components/taro-video-core.js +1 -1
  37. package/dist/esm/taro-button-core.entry.js +1 -1
  38. package/dist/esm/taro-checkbox-core_2.entry.js +1 -1
  39. package/dist/esm/taro-image-core.entry.js +1 -1
  40. package/dist/esm/taro-picker-core_2.entry.js +1 -1
  41. package/dist/esm/taro-picker-view-column-core_2.entry.js +2 -2
  42. package/dist/esm/taro-progress-core.entry.js +1 -1
  43. package/dist/esm/taro-pull-to-refresh-core.entry.js +1 -1
  44. package/dist/esm/taro-rich-text-core.entry.js +1 -1
  45. package/dist/esm/taro-scroll-view-core.entry.js +1 -1
  46. package/dist/esm/taro-slider-core.entry.js +1 -1
  47. package/dist/esm/taro-swiper-core_2.entry.js +2 -2
  48. package/dist/esm/taro-switch-core.entry.js +1 -1
  49. package/dist/esm/taro-tabbar.entry.js +1 -1
  50. package/dist/esm/taro-text-core.entry.js +1 -1
  51. package/dist/esm/taro-textarea-core.entry.js +1 -1
  52. package/dist/esm/taro-video-control_3.entry.js +1 -1
  53. package/dist/hydrate/index.js +18 -18
  54. package/dist/index.js +1 -1
  55. package/dist/taro-components/p-1e8dbd9e.entry.js +1 -0
  56. package/dist/taro-components/p-3d03e025.entry.js +1 -0
  57. package/dist/taro-components/p-53b36223.entry.js +1 -0
  58. package/dist/taro-components/{p-f26ddbc9.entry.js → p-56e989e8.entry.js} +1 -1
  59. package/dist/taro-components/p-804ec7f1.entry.js +1 -0
  60. package/dist/taro-components/p-80f79dfe.entry.js +1 -0
  61. package/dist/taro-components/{p-6f43d1a1.entry.js → p-8ea8d571.entry.js} +1 -1
  62. package/dist/taro-components/{p-177ab579.entry.js → p-9c25a0c5.entry.js} +1 -1
  63. package/dist/taro-components/{p-eb7aa8ad.entry.js → p-9fb68380.entry.js} +1 -1
  64. package/dist/taro-components/p-b04264e3.entry.js +1 -0
  65. package/dist/taro-components/p-be68a34c.entry.js +1 -0
  66. package/dist/taro-components/p-c5da6b7d.entry.js +1 -0
  67. package/dist/taro-components/p-cf9be5c3.entry.js +1 -0
  68. package/dist/taro-components/{p-310f27ae.entry.js → p-d4d8d99c.entry.js} +1 -1
  69. package/dist/taro-components/p-f42701f0.entry.js +1 -0
  70. package/dist/taro-components/p-f537332c.entry.js +1 -0
  71. package/dist/taro-components/taro-components.esm.js +1 -1
  72. package/loader/index.js +1 -1
  73. package/package.json +7 -7
  74. package/types/DraggableSheet.d.ts +1 -1
  75. package/types/Image.d.ts +1 -1
  76. package/types/Input.d.ts +5 -5
  77. package/types/RichText.d.ts +1 -1
  78. package/types/ScrollView.d.ts +4 -4
  79. package/types/ShareElement.d.ts +2 -2
  80. package/types/Swiper.d.ts +15 -15
  81. package/types/Text.d.ts +1 -1
  82. package/types/Textarea.d.ts +5 -5
  83. package/types/gesture/DoubleTapGestureHandler.d.ts +23 -4
  84. package/types/gesture/ForcePressGestureHandler.d.ts +23 -4
  85. package/types/gesture/HorizontalDragGestureHandler.d.ts +23 -4
  86. package/types/gesture/LongPressGestureHandler.d.ts +23 -4
  87. package/types/gesture/PanGestureHandler.d.ts +23 -4
  88. package/types/gesture/ScaleGestureHandler.d.ts +23 -4
  89. package/types/gesture/TapGestureHandler.d.ts +23 -4
  90. package/types/gesture/VerticalDragGestureHandler.d.ts +23 -4
  91. package/dist/esm-es5/helper-8a85bb65.js +0 -1
  92. package/dist/esm-es5/index-5e431bb8.js +0 -2
  93. package/dist/esm-es5/index-a00a7418.js +0 -1
  94. package/dist/esm-es5/index-b9522531.js +0 -7
  95. package/dist/esm-es5/index.js +0 -0
  96. package/dist/esm-es5/loader.js +0 -1
  97. package/dist/esm-es5/taro-ad-core.entry.js +0 -1
  98. package/dist/esm-es5/taro-ad-custom-core.entry.js +0 -1
  99. package/dist/esm-es5/taro-animation-video-core.entry.js +0 -1
  100. package/dist/esm-es5/taro-animation-view-core.entry.js +0 -1
  101. package/dist/esm-es5/taro-ar-camera-core.entry.js +0 -1
  102. package/dist/esm-es5/taro-audio-core.entry.js +0 -1
  103. package/dist/esm-es5/taro-aweme-data-core.entry.js +0 -1
  104. package/dist/esm-es5/taro-block-core.entry.js +0 -1
  105. package/dist/esm-es5/taro-button-core.entry.js +0 -1
  106. package/dist/esm-es5/taro-camera-core.entry.js +0 -1
  107. package/dist/esm-es5/taro-canvas-core.entry.js +0 -1
  108. package/dist/esm-es5/taro-channel-live-core.entry.js +0 -1
  109. package/dist/esm-es5/taro-channel-video-core.entry.js +0 -1
  110. package/dist/esm-es5/taro-checkbox-core_2.entry.js +0 -1
  111. package/dist/esm-es5/taro-comment-detail-core.entry.js +0 -1
  112. package/dist/esm-es5/taro-comment-list-core.entry.js +0 -1
  113. package/dist/esm-es5/taro-components.js +0 -1
  114. package/dist/esm-es5/taro-contact-button-core.entry.js +0 -1
  115. package/dist/esm-es5/taro-cover-image-core.entry.js +0 -1
  116. package/dist/esm-es5/taro-cover-view-core.entry.js +0 -1
  117. package/dist/esm-es5/taro-custom-wrapper-core.entry.js +0 -1
  118. package/dist/esm-es5/taro-double-tap-gesture-handler-core.entry.js +0 -1
  119. package/dist/esm-es5/taro-draggable-sheet-core.entry.js +0 -1
  120. package/dist/esm-es5/taro-editor-core.entry.js +0 -1
  121. package/dist/esm-es5/taro-follow-swan-core.entry.js +0 -1
  122. package/dist/esm-es5/taro-force-press-gesture-handler-core.entry.js +0 -1
  123. package/dist/esm-es5/taro-form-core.entry.js +0 -1
  124. package/dist/esm-es5/taro-functional-page-navigator-core.entry.js +0 -1
  125. package/dist/esm-es5/taro-grid-builder-core.entry.js +0 -1
  126. package/dist/esm-es5/taro-grid-view-core.entry.js +0 -1
  127. package/dist/esm-es5/taro-horizontal-drag-gesture-handler-core.entry.js +0 -1
  128. package/dist/esm-es5/taro-icon-core.entry.js +0 -1
  129. package/dist/esm-es5/taro-image-core.entry.js +0 -1
  130. package/dist/esm-es5/taro-inline-payment-panel-core.entry.js +0 -1
  131. package/dist/esm-es5/taro-input-core.entry.js +0 -1
  132. package/dist/esm-es5/taro-keyboard-accessory-core.entry.js +0 -1
  133. package/dist/esm-es5/taro-label-core.entry.js +0 -1
  134. package/dist/esm-es5/taro-lifestyle-core.entry.js +0 -1
  135. package/dist/esm-es5/taro-like-core.entry.js +0 -1
  136. package/dist/esm-es5/taro-list-builder-core.entry.js +0 -1
  137. package/dist/esm-es5/taro-list-view-core.entry.js +0 -1
  138. package/dist/esm-es5/taro-live-player-core.entry.js +0 -1
  139. package/dist/esm-es5/taro-live-pusher-core.entry.js +0 -1
  140. package/dist/esm-es5/taro-login-core.entry.js +0 -1
  141. package/dist/esm-es5/taro-long-press-gesture-handler-core.entry.js +0 -1
  142. package/dist/esm-es5/taro-lottie-core.entry.js +0 -1
  143. package/dist/esm-es5/taro-map-core.entry.js +0 -1
  144. package/dist/esm-es5/taro-match-media-core.entry.js +0 -1
  145. package/dist/esm-es5/taro-movable-area-core_2.entry.js +0 -1
  146. package/dist/esm-es5/taro-native-slot-core.entry.js +0 -1
  147. package/dist/esm-es5/taro-navigation-bar-core.entry.js +0 -1
  148. package/dist/esm-es5/taro-navigator-core.entry.js +0 -1
  149. package/dist/esm-es5/taro-nested-scroll-body-core.entry.js +0 -1
  150. package/dist/esm-es5/taro-nested-scroll-header-core.entry.js +0 -1
  151. package/dist/esm-es5/taro-official-account-core.entry.js +0 -1
  152. package/dist/esm-es5/taro-open-container-core.entry.js +0 -1
  153. package/dist/esm-es5/taro-open-data-core.entry.js +0 -1
  154. package/dist/esm-es5/taro-page-container-core.entry.js +0 -1
  155. package/dist/esm-es5/taro-page-meta-core.entry.js +0 -1
  156. package/dist/esm-es5/taro-pan-gesture-handler-core.entry.js +0 -1
  157. package/dist/esm-es5/taro-picker-core_2.entry.js +0 -1
  158. package/dist/esm-es5/taro-picker-view-column-core_2.entry.js +0 -1
  159. package/dist/esm-es5/taro-progress-core.entry.js +0 -1
  160. package/dist/esm-es5/taro-pull-to-refresh-core.entry.js +0 -1
  161. package/dist/esm-es5/taro-radio-core_2.entry.js +0 -1
  162. package/dist/esm-es5/taro-rich-text-core.entry.js +0 -1
  163. package/dist/esm-es5/taro-root-portal-core.entry.js +0 -1
  164. package/dist/esm-es5/taro-rtc-room-core.entry.js +0 -1
  165. package/dist/esm-es5/taro-rtc-room-item-core.entry.js +0 -1
  166. package/dist/esm-es5/taro-scale-gesture-handler-core.entry.js +0 -1
  167. package/dist/esm-es5/taro-script-core.entry.js +0 -1
  168. package/dist/esm-es5/taro-scroll-view-core.entry.js +0 -1
  169. package/dist/esm-es5/taro-share-element-core.entry.js +0 -1
  170. package/dist/esm-es5/taro-slider-core.entry.js +0 -1
  171. package/dist/esm-es5/taro-slot-core.entry.js +0 -1
  172. package/dist/esm-es5/taro-snapshot-core.entry.js +0 -1
  173. package/dist/esm-es5/taro-span-core.entry.js +0 -1
  174. package/dist/esm-es5/taro-sticky-header-core.entry.js +0 -1
  175. package/dist/esm-es5/taro-sticky-section-core.entry.js +0 -1
  176. package/dist/esm-es5/taro-swiper-core_2.entry.js +0 -1
  177. package/dist/esm-es5/taro-switch-core.entry.js +0 -1
  178. package/dist/esm-es5/taro-tab-item-core.entry.js +0 -1
  179. package/dist/esm-es5/taro-tabbar.entry.js +0 -1
  180. package/dist/esm-es5/taro-tabs-core.entry.js +0 -1
  181. package/dist/esm-es5/taro-tap-gesture-handler-core.entry.js +0 -1
  182. package/dist/esm-es5/taro-text-core.entry.js +0 -1
  183. package/dist/esm-es5/taro-textarea-core.entry.js +0 -1
  184. package/dist/esm-es5/taro-vertical-drag-gesture-handler-core.entry.js +0 -1
  185. package/dist/esm-es5/taro-video-control_3.entry.js +0 -1
  186. package/dist/esm-es5/taro-view-core.entry.js +0 -1
  187. package/dist/esm-es5/taro-voip-room-core.entry.js +0 -1
  188. package/dist/esm-es5/taro-web-view-core.entry.js +0 -1
  189. package/dist/taro-components/p-010faa87.system.js +0 -1
  190. package/dist/taro-components/p-03a0a6f3.system.entry.js +0 -1
  191. package/dist/taro-components/p-055777d4.system.entry.js +0 -1
  192. package/dist/taro-components/p-08f31efb.system.entry.js +0 -1
  193. package/dist/taro-components/p-0b9fa602.system.entry.js +0 -1
  194. package/dist/taro-components/p-0c3bf536.system.entry.js +0 -1
  195. package/dist/taro-components/p-0cbc06a0.system.entry.js +0 -1
  196. package/dist/taro-components/p-0e77f1af.system.entry.js +0 -1
  197. package/dist/taro-components/p-0e8c1988.system.entry.js +0 -1
  198. package/dist/taro-components/p-1331d6e6.entry.js +0 -1
  199. package/dist/taro-components/p-13773464.entry.js +0 -1
  200. package/dist/taro-components/p-14e9f2fd.system.entry.js +0 -1
  201. package/dist/taro-components/p-1565cc2e.system.entry.js +0 -1
  202. package/dist/taro-components/p-200ba6f2.system.entry.js +0 -1
  203. package/dist/taro-components/p-2053531e.system.entry.js +0 -1
  204. package/dist/taro-components/p-2210c50a.system.entry.js +0 -1
  205. package/dist/taro-components/p-24a12aac.system.entry.js +0 -1
  206. package/dist/taro-components/p-274753ad.system.entry.js +0 -1
  207. package/dist/taro-components/p-2d2c8354.system.entry.js +0 -1
  208. package/dist/taro-components/p-336b5b6c.system.entry.js +0 -1
  209. package/dist/taro-components/p-34aee4d3.system.entry.js +0 -1
  210. package/dist/taro-components/p-34b51434.system.entry.js +0 -1
  211. package/dist/taro-components/p-39dd80dd.entry.js +0 -1
  212. package/dist/taro-components/p-3dc40ce0.entry.js +0 -1
  213. package/dist/taro-components/p-3ee0dda1.system.entry.js +0 -1
  214. package/dist/taro-components/p-443b9a72.system.js +0 -7
  215. package/dist/taro-components/p-4446fe5f.system.entry.js +0 -1
  216. package/dist/taro-components/p-45ce1c8b.system.entry.js +0 -1
  217. package/dist/taro-components/p-48395cab.system.entry.js +0 -1
  218. package/dist/taro-components/p-48887552.entry.js +0 -1
  219. package/dist/taro-components/p-498d940e.system.entry.js +0 -1
  220. package/dist/taro-components/p-49bd1791.system.entry.js +0 -1
  221. package/dist/taro-components/p-4dddb4a4.system.entry.js +0 -1
  222. package/dist/taro-components/p-4f62b74a.system.entry.js +0 -1
  223. package/dist/taro-components/p-50ea2036.system.js +0 -1
  224. package/dist/taro-components/p-52ab123f.system.entry.js +0 -1
  225. package/dist/taro-components/p-58a44067.system.entry.js +0 -1
  226. package/dist/taro-components/p-5c3d432f.system.entry.js +0 -1
  227. package/dist/taro-components/p-5ff5a099.system.entry.js +0 -1
  228. package/dist/taro-components/p-60869da5.system.entry.js +0 -1
  229. package/dist/taro-components/p-636c9e22.system.entry.js +0 -1
  230. package/dist/taro-components/p-6ef0579d.system.entry.js +0 -1
  231. package/dist/taro-components/p-6f25b319.system.entry.js +0 -1
  232. package/dist/taro-components/p-720c96ae.system.entry.js +0 -1
  233. package/dist/taro-components/p-731de0f1.system.entry.js +0 -1
  234. package/dist/taro-components/p-7625b781.system.entry.js +0 -1
  235. package/dist/taro-components/p-7677dcb3.system.entry.js +0 -1
  236. package/dist/taro-components/p-76eedcd8.system.entry.js +0 -1
  237. package/dist/taro-components/p-7a860d44.system.entry.js +0 -1
  238. package/dist/taro-components/p-7e486065.system.entry.js +0 -1
  239. package/dist/taro-components/p-7f067654.system.entry.js +0 -1
  240. package/dist/taro-components/p-86b09ede.system.entry.js +0 -1
  241. package/dist/taro-components/p-88de70df.system.js +0 -2
  242. package/dist/taro-components/p-8c3b906c.system.js +0 -1
  243. package/dist/taro-components/p-8f7c9757.system.entry.js +0 -1
  244. package/dist/taro-components/p-920663c3.system.entry.js +0 -1
  245. package/dist/taro-components/p-920e9e08.system.entry.js +0 -1
  246. package/dist/taro-components/p-93329865.system.entry.js +0 -1
  247. package/dist/taro-components/p-9cf98daf.entry.js +0 -1
  248. package/dist/taro-components/p-9d815ff0.system.entry.js +0 -1
  249. package/dist/taro-components/p-a263b21b.system.entry.js +0 -1
  250. package/dist/taro-components/p-a3948a42.system.entry.js +0 -1
  251. package/dist/taro-components/p-a39bfe0d.system.entry.js +0 -1
  252. package/dist/taro-components/p-a57123fa.system.entry.js +0 -1
  253. package/dist/taro-components/p-a6258172.system.entry.js +0 -1
  254. package/dist/taro-components/p-ac808059.system.entry.js +0 -1
  255. package/dist/taro-components/p-ac8ef7e3.system.entry.js +0 -1
  256. package/dist/taro-components/p-acb1944c.system.entry.js +0 -1
  257. package/dist/taro-components/p-aecf9c49.system.entry.js +0 -1
  258. package/dist/taro-components/p-b197f269.entry.js +0 -1
  259. package/dist/taro-components/p-b4d3d0bf.system.entry.js +0 -1
  260. package/dist/taro-components/p-b9e52b27.system.entry.js +0 -1
  261. package/dist/taro-components/p-baba6d35.system.entry.js +0 -1
  262. package/dist/taro-components/p-bb3a760a.system.entry.js +0 -1
  263. package/dist/taro-components/p-bc4dbbfb.entry.js +0 -1
  264. package/dist/taro-components/p-bd2bb986.entry.js +0 -1
  265. package/dist/taro-components/p-bd7d7771.entry.js +0 -1
  266. package/dist/taro-components/p-c089b757.system.entry.js +0 -1
  267. package/dist/taro-components/p-c5d34e1c.system.entry.js +0 -1
  268. package/dist/taro-components/p-c6258ca4.system.entry.js +0 -1
  269. package/dist/taro-components/p-c6bf856c.system.entry.js +0 -1
  270. package/dist/taro-components/p-c7d84f5f.system.entry.js +0 -1
  271. package/dist/taro-components/p-c984e3bd.system.entry.js +0 -1
  272. package/dist/taro-components/p-cb55d5a3.system.entry.js +0 -1
  273. package/dist/taro-components/p-cc02c5b6.system.entry.js +0 -1
  274. package/dist/taro-components/p-ce63e336.system.entry.js +0 -1
  275. package/dist/taro-components/p-d04b19f1.system.entry.js +0 -1
  276. package/dist/taro-components/p-d2b08d6c.system.entry.js +0 -1
  277. package/dist/taro-components/p-d3573732.system.entry.js +0 -1
  278. package/dist/taro-components/p-d482a085.system.entry.js +0 -1
  279. package/dist/taro-components/p-d6bd3fa0.system.entry.js +0 -1
  280. package/dist/taro-components/p-d952367b.system.entry.js +0 -1
  281. package/dist/taro-components/p-d9b9319b.system.js +0 -1
  282. package/dist/taro-components/p-da5ac143.system.entry.js +0 -1
  283. package/dist/taro-components/p-deaafb30.system.entry.js +0 -1
  284. package/dist/taro-components/p-df082aca.system.entry.js +0 -1
  285. package/dist/taro-components/p-e5f31143.system.entry.js +0 -1
  286. package/dist/taro-components/p-eb385fbc.system.entry.js +0 -1
  287. package/dist/taro-components/p-ede005c7.system.entry.js +0 -1
  288. package/dist/taro-components/p-ee2e9a0f.system.entry.js +0 -1
  289. package/dist/taro-components/p-f0694b9f.system.entry.js +0 -1
  290. package/dist/taro-components/p-f1597269.system.entry.js +0 -1
  291. package/dist/taro-components/p-f17b4179.system.entry.js +0 -1
  292. package/dist/taro-components/p-f490ca1e.system.entry.js +0 -1
  293. package/dist/taro-components/p-f6d29525.entry.js +0 -1
  294. package/dist/taro-components/p-fb23fdb8.system.entry.js +0 -1
  295. package/dist/taro-components/p-fc124d0d.system.entry.js +0 -1
  296. package/dist/taro-components/p-fe3e2fdb.system.entry.js +0 -1
  297. package/dist/taro-components/taro-components.js +0 -131
  298. package/types/gesture/common.d.ts +0 -26
@@ -1 +0,0 @@
1
- import{r as registerInstance,c as createEvent,h}from"./index-5e431bb8.js";var indexCss="taro-cover-image-core{width:320px;height:240px;overflow:hidden}";var CoverImage=function(){function e(e){registerInstance(this,e);this.onLoad=createEvent(this,"load",7);this.onError=createEvent(this,"error",7);this.src=undefined;this.nativeProps={}}e.prototype.imageOnLoad=function(){var e=this.imgRef,r=e.width,t=e.height;this.onLoad.emit({width:r,height:t})};e.prototype.imageOnError=function(e){this.onError.emit(e)};e.prototype.render=function(){var e=this;var r=this,t=r.src,i=r.imageOnLoad,o=r.imageOnError,n=r.nativeProps;return h("img",Object.assign({ref:function(r){return e.imgRef=r},src:t,onLoad:i.bind(this),onError:o.bind(this)},n))};return e}();CoverImage.style=indexCss;export{CoverImage as taro_cover_image_core};
@@ -1 +0,0 @@
1
- import{r as registerInstance,c as createEvent,h,H as Host}from"./index-5e431bb8.js";import{c as classnames}from"./index-b9522531.js";var coverViewCss="taro-cover-view-core{display:block}";var CoverView=function(){function t(t){registerInstance(this,t);this.onLongPress=createEvent(this,"longpress",7);this.startTime=0;this.animation=undefined;this.hoverClass=undefined;this.hoverStartTime=50;this.hoverStayTime=400;this.hover=false;this.touch=false}t.prototype.onTouchStart=function(){var t=this;if(this.hoverClass){this.touch=true;setTimeout((function(){if(t.touch){t.hover=true}}),this.hoverStartTime)}this.timeoutEvent=setTimeout((function(){t.onLongPress.emit()}),350);this.startTime=Date.now()};t.prototype.onTouchMove=function(){clearTimeout(this.timeoutEvent)};t.prototype.onTouchEnd=function(){var t=this;var e=Date.now()-this.startTime;if(e<350){clearTimeout(this.timeoutEvent)}if(this.hoverClass){this.touch=false;setTimeout((function(){if(!t.touch){t.hover=false}}),this.hoverStayTime)}};t.prototype.render=function(){var t;var e=classnames((t={},t["".concat(this.hoverClass)]=this.hover,t));var i={};if(!!this.animation){i["animation"]=this.animation;i["data-animation"]=this.animation}return h(Host,Object.assign({class:e},i),h("slot",null))};return t}();CoverView.style=coverViewCss;export{CoverView as taro_cover_view_core};
@@ -1 +0,0 @@
1
- import{r as registerInstance,h,H as Host}from"./index-5e431bb8.js";var CustomWrapper=function(){function r(r){registerInstance(this,r)}r.prototype.render=function(){return h(Host,null)};return r}();export{CustomWrapper as taro_custom_wrapper_core};
@@ -1 +0,0 @@
1
- import{r as registerInstance,h,H as Host}from"./index-5e431bb8.js";import{n as notSupport}from"./helper-8a85bb65.js";import"@tarojs/taro";var DoubleTapGestureHandler=function(){function e(e){registerInstance(this,e)}e.prototype.componentDidLoad=function(){notSupport("DoubleTapGestureHandler",this)};e.prototype.render=function(){return h(Host,null)};return e}();export{DoubleTapGestureHandler as taro_double_tap_gesture_handler_core};
@@ -1 +0,0 @@
1
- import{r as registerInstance,h,H as Host}from"./index-5e431bb8.js";import{n as notSupport}from"./helper-8a85bb65.js";import"@tarojs/taro";var DraggableSheet=function(){function t(t){registerInstance(this,t)}t.prototype.componentDidLoad=function(){notSupport("DraggableSheet",this)};t.prototype.render=function(){return h(Host,null)};return t}();export{DraggableSheet as taro_draggable_sheet_core};
@@ -1 +0,0 @@
1
- import{r as registerInstance,h,H as Host}from"./index-5e431bb8.js";import{n as notSupport}from"./helper-8a85bb65.js";import"@tarojs/taro";var Editor=function(){function t(t){registerInstance(this,t)}t.prototype.componentDidLoad=function(){notSupport("Editor",this)};t.prototype.render=function(){return h(Host,null)};return t}();export{Editor as taro_editor_core};
@@ -1 +0,0 @@
1
- import{r as registerInstance,h,H as Host}from"./index-5e431bb8.js";import{n as notSupport}from"./helper-8a85bb65.js";import"@tarojs/taro";var FollowSwan=function(){function o(o){registerInstance(this,o)}o.prototype.componentDidLoad=function(){notSupport("FollowSwan",this)};o.prototype.render=function(){return h(Host,null)};return o}();export{FollowSwan as taro_follow_swan_core};
@@ -1 +0,0 @@
1
- import{r as registerInstance,h,H as Host}from"./index-5e431bb8.js";import{n as notSupport}from"./helper-8a85bb65.js";import"@tarojs/taro";var ForcePressGestureHandler=function(){function r(r){registerInstance(this,r)}r.prototype.componentDidLoad=function(){notSupport("ForcePressGestureHandler",this)};r.prototype.render=function(){return h(Host,null)};return r}();export{ForcePressGestureHandler as taro_force_press_gesture_handler_core};
@@ -1 +0,0 @@
1
- import{r as registerInstance,c as createEvent,h,g as getElement}from"./index-5e431bb8.js";var __classPrivateFieldSet=undefined&&undefined.__classPrivateFieldSet||function(e,t,r,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(e,r):n?n.value=r:t.set(e,r),r};var __classPrivateFieldGet=undefined&&undefined.__classPrivateFieldGet||function(e,t,r,i){if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?i:r==="a"?i.call(e):i?i.value:t.get(e)};var _Form_value;var Form=function(){function e(e){registerInstance(this,e);this.onSubmit=createEvent(this,"submit",7);_Form_value.set(this,{})}e.prototype.onButtonSubmit=function(e){e.stopPropagation();__classPrivateFieldSet(this,_Form_value,this.getFormValue(),"f");this.onSubmit.emit({value:__classPrivateFieldGet(this,_Form_value,"f")})};e.prototype.onButtonReset=function(e){e.stopPropagation();this.form.reset()};e.prototype.componentDidLoad=function(){var e=this;__classPrivateFieldSet(this,_Form_value,this.getFormValue(),"f");Object.defineProperty(this.el,"value",{get:function(){return __classPrivateFieldGet(e,_Form_value,"f")},configurable:true})};e.prototype.componentDidRender=function(){var e=this;if(!this.originalAppendChild){this.originalAppendChild=this.el.appendChild;this.originalInsertBefore=this.el.insertBefore;this.originalReplaceChild=this.el.replaceChild;this.originalRemoveChild=this.el.removeChild}if(!this.form){this.el.appendChild=this.originalAppendChild;this.el.insertBefore=this.originalInsertBefore;this.el.replaceChild=this.originalReplaceChild;this.el.removeChild=this.originalRemoveChild;return}this.el.appendChild=function(t){return e.form.appendChild(t)};this.el.insertBefore=function(t,r){return e.form.insertBefore(t,r)};this.el.replaceChild=function(t,r){return e.form.replaceChild(t,r)};this.el.removeChild=function(t){return e.form.removeChild(t)}};e.prototype.getFormValue=function(){var e=this.el;var t=[];var r=e.getElementsByTagName("input");for(var i=0;i<r.length;i++){t.push(r[i])}var n={};var a={};t.forEach((function(e){if(typeof e.name!=="string")return;if(e.className.indexOf("weui-switch")!==-1){n[e.name]=e.checked;return}if(e.type==="radio"){if(e.checked){a[e.name]=true;n[e.name]=e.value}else{if(!a[e.name]){n[e.name]=""}}return}if(e.type==="checkbox"){if(e.checked){if(a[e.name]){n[e.name].push(e.value)}else{a[e.name]=true;n[e.name]=[e.value]}}else{if(!a[e.name]){n[e.name]=[]}}return}n[e.name]=e.value}));var o=e.getElementsByTagName("textarea");var l=[];for(var s=0;s<o.length;s++){l.push(o[s])}l.forEach((function(e){if(typeof e.name!=="string")return;n[e.name]=e.value}));return n};e.prototype.render=function(){var e=this;return h("form",{ref:function(t){e.form=t}},h("slot",null))};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();_Form_value=new WeakMap;export{Form as taro_form_core};
@@ -1 +0,0 @@
1
- import{r as registerInstance,h,H as Host}from"./index-5e431bb8.js";import{n as notSupport}from"./helper-8a85bb65.js";import"@tarojs/taro";var FunctionalPageNavigator=function(){function t(t){registerInstance(this,t)}t.prototype.componentDidLoad=function(){notSupport("FunctionalPageNavigator",this)};t.prototype.render=function(){return h(Host,null)};return t}();export{FunctionalPageNavigator as taro_functional_page_navigator_core};
@@ -1 +0,0 @@
1
- import{r as registerInstance,h,H as Host}from"./index-5e431bb8.js";import{n as notSupport}from"./helper-8a85bb65.js";import"@tarojs/taro";var GridBuilder=function(){function r(r){registerInstance(this,r)}r.prototype.componentDidLoad=function(){notSupport("GridBuilder",this)};r.prototype.render=function(){return h(Host,null)};return r}();export{GridBuilder as taro_grid_builder_core};
@@ -1 +0,0 @@
1
- import{r as registerInstance,h,H as Host}from"./index-5e431bb8.js";import{n as notSupport}from"./helper-8a85bb65.js";import"@tarojs/taro";var GridView=function(){function r(r){registerInstance(this,r)}r.prototype.componentDidLoad=function(){notSupport("GridView",this)};r.prototype.render=function(){return h(Host,null)};return r}();export{GridView as taro_grid_view_core};
@@ -1 +0,0 @@
1
- import{r as registerInstance,h,H as Host}from"./index-5e431bb8.js";import{n as notSupport}from"./helper-8a85bb65.js";import"@tarojs/taro";var HorizontalDragGestureHandler=function(){function r(r){registerInstance(this,r)}r.prototype.componentDidLoad=function(){notSupport("HorizontalDragGestureHandler",this)};r.prototype.render=function(){return h(Host,null)};return r}();export{HorizontalDragGestureHandler as taro_horizontal_drag_gesture_handler_core};
@@ -1 +0,0 @@
1
- import{r as registerInstance,h,H as Host}from"./index-5e431bb8.js";import{c as classnames}from"./index-b9522531.js";var indexCss='.weui-icon-circle:before{content:""}.weui-icon-download:before{content:""}.weui-icon-info:before{content:""}.weui-icon-safe-success:before{content:""}.weui-icon-safe-warn:before{content:""}.weui-icon-success:before{content:""}.weui-icon-success-circle:before{content:""}.weui-icon-success-no-circle:before{content:""}.weui-icon-waiting:before{content:""}.weui-icon-waiting-circle:before{content:""}.weui-icon-warn:before{content:""}.weui-icon-info-circle:before{content:""}.weui-icon-cancel:before{content:""}.weui-icon-search:before{content:""}.weui-icon-clear:before{content:""}.weui-icon-back:before{content:""}.weui-icon-delete:before{content:""}.weui-icon-success{color:#09bb07;font-size:23px}.weui-icon-waiting{color:#10aeff;font-size:23px}.weui-icon-warn{color:#f43530;font-size:23px}.weui-icon-info{color:#10aeff;font-size:23px}.weui-icon-success-circle,.weui-icon-success-no-circle{color:#09bb07;font-size:23px}.weui-icon-waiting-circle{color:#10aeff;font-size:23px}.weui-icon-circle{color:#c9c9c9;font-size:23px}.weui-icon-download,.weui-icon-info-circle{color:#09bb07;font-size:23px}.weui-icon-safe-success{color:#09bb07}.weui-icon-safe-warn{color:#ffbe00}.weui-icon-cancel{color:#f43530;font-size:22px}.weui-icon-search,.weui-icon-clear{color:#b2b2b2;font-size:14px}.weui-icon-delete.weui-icon_gallery-delete{color:#fff;font-size:22px}.weui-icon_msg{font-size:93px}.weui-icon_msg.weui-icon-warn{color:#f76260}.weui-icon_msg-primary{font-size:93px}.weui-icon_msg-primary.weui-icon-warn{color:#ffbe00}';var Icon=function(){function e(e){registerInstance(this,e);this.type=undefined;this.size="23";this.color=undefined}e.prototype.render=function(){var e;var o=this,c=o.type,i=o.size,n=o.color;var r=c===null||c===void 0?void 0:c.replace(/_/g,"-");var t=classnames((e={},e["weui-icon-".concat(r)]=true,e));var s={"font-size":"".concat(i,"px"),color:n};return h(Host,{class:t,style:s})};return e}();Icon.style=indexCss;export{Icon as taro_icon_core};
@@ -1 +0,0 @@
1
- import{r as registerInstance,c as createEvent,h,H as Host}from"./index-5e431bb8.js";import{c as classnames}from"./index-b9522531.js";var indexCss='img[src=""]{opacity:0}taro-image-core{width:320px;height:240px;font-size:0;display:inline-block;position:relative;overflow:hidden}.taro-img.taro-img__widthfix{height:100%}.taro-img__mode-scaletofill{width:100%;height:100%}.taro-img__mode-aspectfit{max-width:100%;max-height:100%}.taro-img__mode-aspectfill{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.taro-img__mode-aspectfill--width{min-width:100%;height:100%}.taro-img__mode-aspectfill--height{width:100%;min-height:100%}.taro-img__mode-widthfix{width:100%}.taro-img__mode-heightfix{height:100%}.taro-img__mode-top{width:100%}.taro-img__mode-bottom{width:100%;position:absolute;bottom:0}.taro-img__mode-left{height:100%}.taro-img__mode-right{height:100%;position:absolute;right:0}.taro-img__mode-topright{position:absolute;right:0}.taro-img__mode-bottomleft{position:absolute;bottom:0}.taro-img__mode-bottomright{position:absolute;bottom:0;right:0}';var Image=function(){function t(t){registerInstance(this,t);this.onLoad=createEvent(this,"load",7);this.onError=createEvent(this,"error",7);this.src=undefined;this.mode="scaleToFill";this.lazyLoad=false;this.nativeProps={};this.aspectFillMode="width";this.didLoad=false}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.didLoad=true}}),{rootMargin:"300px 0px"});i.observe(this.imgRef)};t.prototype.imageOnLoad=function(){var t=this.imgRef,i=t.width,o=t.height,e=t.naturalWidth,a=t.naturalHeight;this.onLoad.emit({width:i,height:o});this.aspectFillMode=e>a?"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,a=o.lazyLoad,r=a===void 0?false:a,s=o.aspectFillMode,n=s===void 0?"width":s,d=o.imageOnLoad,m=o.imageOnError,g=o.nativeProps,l=o.didLoad;var c=this.mode||"scaleToFill";var p=classnames({"taro-img__widthfix":c==="widthFix"});var f=classnames("taro-img__mode-".concat(c.toLowerCase().replace(/\s/g,"")),(t={},t["taro-img__mode-aspectfill--".concat(n)]=c==="aspectFill",t));return h(Host,{class:p},e?h("img",Object.assign({ref:function(t){return i.imgRef=t},class:f,src:r&&!l?undefined:e,onLoad:d.bind(this),onError:m.bind(this)},g)):"")};return t}();Image.style=indexCss;export{Image as taro_image_core};
@@ -1 +0,0 @@
1
- import{r as registerInstance,h,H as Host}from"./index-5e431bb8.js";import{n as notSupport}from"./helper-8a85bb65.js";import"@tarojs/taro";var InlinePaymentPanel=function(){function n(n){registerInstance(this,n)}n.prototype.componentDidLoad=function(){notSupport("InlinePaymentPanel",this)};n.prototype.render=function(){return h(Host,null)};return n}();export{InlinePaymentPanel as taro_inline_payment_panel_core};
@@ -1 +0,0 @@
1
- import{__awaiter,__generator}from"tslib";import{r as registerInstance,c as createEvent,h,g as getElement}from"./index-5e431bb8.js";var indexCss=".weui-input{-webkit-appearance:none;font-size:inherit;color:inherit;background-color:transparent;border:0;outline:0;width:100%;height:1.47059em;line-height:1.47059}.weui-input::-webkit-outer-spin-button,.weui-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}taro-input-core{display:block}";function getTrueType(e,t,n){if(t==="search")e="search";if(n)e="password";if(typeof e==="undefined"){return"text"}if(!e){throw new Error("unexpected type")}if(e==="digit")e="number";return e}function fixControlledValue(e){return e!==null&&e!==void 0?e:""}var Input=function(){function e(e){var t=this;registerInstance(this,e);this.onInput=createEvent(this,"input",7);this.onPaste=createEvent(this,"paste",7);this.onFocus=createEvent(this,"focus",7);this.onBlur=createEvent(this,"blur",7);this.onConfirm=createEvent(this,"confirm",7);this.onChange=createEvent(this,"change",7);this.onKeyDown=createEvent(this,"keydown",7);this.isOnComposition=false;this.isOnPaste=false;this.onInputExcuted=false;this.handleInput=function(e){e.stopPropagation();var n=t,i=n.type,o=n.maxlength,a=n.confirmType,s=n.password;if(!t.isOnComposition&&!t.onInputExcuted){var u=e.target.value;var r=getTrueType(i,a,s);t.onInputExcuted=true;if(r==="number"&&u&&o>-1&&o<=u.length){u=u.substring(0,o);e.target.value=u}t.value=u;t.onInput.emit({value:u,cursor:u.length});t.onInputExcuted=false}};this.handlePaste=function(e){e.stopPropagation();t.isOnPaste=true;t.onPaste.emit({value:e.target.value})};this.handleFocus=function(e){e.stopPropagation();t.onInputExcuted=false;t.onFocus.emit({value:e.target.value})};this.handleBlur=function(e){e.stopPropagation();t.onBlur.emit({value:e.target.value})};this.handleChange=function(e){e.stopPropagation();t.onChange.emit({value:e.target.value});if(t.isOnPaste){t.isOnPaste=false;t.value=e.target.value;t.onInput.emit({value:e.target.value,cursor:e.target.value.length})}};this.handleKeyDown=function(e){e.stopPropagation();var n=e.target.value;var i=e.keyCode||e.code;t.onInputExcuted=false;t.onKeyDown.emit({value:n,cursor:n.length,keyCode:i});i===13&&t.onConfirm.emit({value:n})};this.handleComposition=function(e){e.stopPropagation();if(!(e.target instanceof HTMLInputElement))return;if(e.type==="compositionend"){t.isOnComposition=false;t.value=e.target.value;t.onInput.emit({value:e.target.value,cursor:e.target.value.length})}else{t.isOnComposition=true}};this.handleBeforeInput=function(e){if(!e.data)return;var n=e.data&&/[0-9]/.test(e.data);if(t.type==="number"&&!n){e.preventDefault()}if(t.type==="digit"&&!n){if(e.data!=="."||e.data==="."&&e.target.value.indexOf(".")>-1){e.preventDefault()}}};this.value="";this.type=undefined;this.password=false;this.placeholder=undefined;this.disabled=false;this.maxlength=140;this.autoFocus=false;this.confirmType="done";this.name=undefined;this.nativeProps={}}e.prototype.focus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.inputRef.focus();return[2]}))}))};e.prototype.watchAutoFocus=function(e,t){var n;if(!t&&e){(n=this.inputRef)===null||n===void 0?void 0:n.focus()}};e.prototype.watchValue=function(e){var t=fixControlledValue(e);if(this.inputRef.value!==t){this.inputRef.value=t}};e.prototype.componentDidLoad=function(){var e=this;var t,n,i,o,a;if(this.type==="file"){this.fileListener=function(){e.onInput.emit()};(t=this.inputRef)===null||t===void 0?void 0:t.addEventListener("change",this.fileListener)}else{(n=this.inputRef)===null||n===void 0?void 0:n.addEventListener("compositionstart",this.handleComposition);(i=this.inputRef)===null||i===void 0?void 0:i.addEventListener("compositionend",this.handleComposition);(o=this.inputRef)===null||o===void 0?void 0:o.addEventListener("beforeinput",this.handleBeforeInput);(a=this.inputRef)===null||a===void 0?void 0:a.addEventListener("textInput",this.handleBeforeInput)}};e.prototype.disconnectedCallback=function(){var e,t,n,i,o;if(this.type==="file"){(e=this.inputRef)===null||e===void 0?void 0:e.removeEventListener("change",this.fileListener)}else{(t=this.inputRef)===null||t===void 0?void 0:t.removeEventListener("compositionstart",this.handleComposition);(n=this.inputRef)===null||n===void 0?void 0:n.removeEventListener("compositionend",this.handleComposition);(i=this.inputRef)===null||i===void 0?void 0:i.removeEventListener("beforeinput",this.handleBeforeInput);(o=this.inputRef)===null||o===void 0?void 0:o.removeEventListener("textInput",this.handleBeforeInput)}};e.prototype.render=function(){var e=this;var t=this,n=t.value,i=t.type,o=t.password,a=t.placeholder,s=t.autoFocus,u=t.disabled,r=t.maxlength,l=t.confirmType,p=t.name,d=t.nativeProps;return h("input",Object.assign({ref:function(t){e.inputRef=t;if(s&&t)t.focus()},class:"weui-input",type:getTrueType(i,l,o),placeholder:a,autoFocus:s,disabled:u,maxlength:r,name:p,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onChange:this.handleChange,onKeyDown:this.handleKeyDown,onPaste:this.handlePaste,onCompositionStart:this.handleComposition,onCompositionEnd:this.handleComposition},d,{value:fixControlledValue(n)}))};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{autoFocus:["watchAutoFocus"],value:["watchValue"]}},enumerable:false,configurable:true});return e}();Input.style=indexCss;export{Input as taro_input_core};
@@ -1 +0,0 @@
1
- import{r as registerInstance,h,H as Host}from"./index-5e431bb8.js";import{n as notSupport}from"./helper-8a85bb65.js";import"@tarojs/taro";var KeyboardAccessory=function(){function o(o){registerInstance(this,o)}o.prototype.componentDidLoad=function(){notSupport("KeyboardAccessory",this)};o.prototype.render=function(){return h(Host,null)};return o}();export{KeyboardAccessory as taro_keyboard_accessory_core};
@@ -1 +0,0 @@
1
- import{r as registerInstance,h}from"./index-5e431bb8.js";var Label=function(){function e(e){registerInstance(this,e);this.for=undefined}e.prototype.render=function(){return h("label",{htmlFor:this.for},h("slot",null))};return e}();export{Label as taro_label_core};
@@ -1 +0,0 @@
1
- import{r as registerInstance,h,H as Host}from"./index-5e431bb8.js";import{n as notSupport}from"./helper-8a85bb65.js";import"@tarojs/taro";var Lifestyle=function(){function t(t){registerInstance(this,t)}t.prototype.componentDidLoad=function(){notSupport("Lifestyle",this)};t.prototype.render=function(){return h(Host,null)};return t}();export{Lifestyle as taro_lifestyle_core};
@@ -1 +0,0 @@
1
- import{r as registerInstance,h,H as Host}from"./index-5e431bb8.js";import{n as notSupport}from"./helper-8a85bb65.js";import"@tarojs/taro";var Like=function(){function t(t){registerInstance(this,t)}t.prototype.componentDidLoad=function(){notSupport("Like",this)};t.prototype.render=function(){return h(Host,null)};return t}();export{Like as taro_like_core};
@@ -1 +0,0 @@
1
- import{r as registerInstance,h,H as Host}from"./index-5e431bb8.js";import{n as notSupport}from"./helper-8a85bb65.js";import"@tarojs/taro";var ListBuilder=function(){function t(t){registerInstance(this,t)}t.prototype.componentDidLoad=function(){notSupport("ListBuilder",this)};t.prototype.render=function(){return h(Host,null)};return t}();export{ListBuilder as taro_list_builder_core};
@@ -1 +0,0 @@
1
- import{r as registerInstance,h,H as Host}from"./index-5e431bb8.js";import{n as notSupport}from"./helper-8a85bb65.js";import"@tarojs/taro";var ListView=function(){function t(t){registerInstance(this,t)}t.prototype.componentDidLoad=function(){notSupport("ListView",this)};t.prototype.render=function(){return h(Host,null)};return t}();export{ListView as taro_list_view_core};
@@ -1 +0,0 @@
1
- import{r as registerInstance,h,H as Host}from"./index-5e431bb8.js";import{n as notSupport}from"./helper-8a85bb65.js";import"@tarojs/taro";var LivePlayer=function(){function r(r){registerInstance(this,r)}r.prototype.componentDidLoad=function(){notSupport("LivePlayer",this)};r.prototype.render=function(){return h(Host,null)};return r}();export{LivePlayer as taro_live_player_core};
@@ -1 +0,0 @@
1
- import{r as registerInstance,h,H as Host}from"./index-5e431bb8.js";import{n as notSupport}from"./helper-8a85bb65.js";import"@tarojs/taro";var LivePusher=function(){function r(r){registerInstance(this,r)}r.prototype.componentDidLoad=function(){notSupport("LivePusher",this)};r.prototype.render=function(){return h(Host,null)};return r}();export{LivePusher as taro_live_pusher_core};
@@ -1 +0,0 @@
1
- import{r as registerInstance,h,H as Host}from"./index-5e431bb8.js";import{n as notSupport}from"./helper-8a85bb65.js";import"@tarojs/taro";var Login=function(){function o(o){registerInstance(this,o)}o.prototype.componentDidLoad=function(){notSupport("Login",this)};o.prototype.render=function(){return h(Host,null)};return o}();export{Login as taro_login_core};
@@ -1 +0,0 @@
1
- import{r as registerInstance,h,H as Host}from"./index-5e431bb8.js";import{n as notSupport}from"./helper-8a85bb65.js";import"@tarojs/taro";var LongPressGestureHandler=function(){function r(r){registerInstance(this,r)}r.prototype.componentDidLoad=function(){notSupport("LongPressGestureHandler",this)};r.prototype.render=function(){return h(Host,null)};return r}();export{LongPressGestureHandler as taro_long_press_gesture_handler_core};
@@ -1 +0,0 @@
1
- import{r as registerInstance,h,H as Host}from"./index-5e431bb8.js";import{n as notSupport}from"./helper-8a85bb65.js";import"@tarojs/taro";var Lottie=function(){function t(t){registerInstance(this,t)}t.prototype.componentDidLoad=function(){notSupport("Lottie",this)};t.prototype.render=function(){return h(Host,null)};return t}();export{Lottie as taro_lottie_core};
@@ -1 +0,0 @@
1
- import{__awaiter,__generator}from"tslib";import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-5e431bb8.js";import Hammer from"hammerjs";var mapCss=".BMap_cpyCtrl,.anchorBL img,.BMap_bubble_buttons{display:none}";var Map=function(){function t(t){var e=this;registerInstance(this,t);this.onTap=createEvent(this,"tap",7);this.currentRotation=0;this._getCenterLocation=function(t){e.map.getOverlays().forEach((function(t){if(t instanceof BMapGL.Marker&&t.isCenterMarker){e.map.removeOverlay(t)}}));t.iconPath="https://img0.baidu.com/it/u=2604176863,3349829508&fm=253&fmt=auto&app=138&f=PNG?w=243&h=243";var a=new BMapGL.Icon(t.iconPath,new BMapGL.Size(20,30));var o=[e.longitude,e.latitude];var i=new BMapGL.Marker(new BMapGL.Point(e.longitude,e.latitude),{icon:a});i.isCenterMarker=true;e.map.addOverlay(i);return o};this._setLocMarkerIcon=function(t){var a=new BMapGL.Icon(t.iconPath,new BMapGL.Size(20,30));var o=new BMapGL.Point(116.404,39.915);var i=new BMapGL.Marker(o,{icon:a});e.map.addOverlay(i)};this._translateMarker=function(t){var a=t.destination.latitude;var o=t.destination.longitude;if(a<-80&&a>=-90){a=t.destination.latitude+10}var i=new BMapGL.Point(o,a);var n={flagId:true,flagCoordinate:true};var r={errMsg:"animationEnd:ok"};var l=e.map.getOverlays();var s=l.find((function(e){return e instanceof BMapGL.Marker&&e.id===t.markerId}));if(!s){console.error('Marker "'.concat(t.markerId,'" not found.'));n.flagId=false;return n}if(a>90||a<-90||o>180||o<-180||isNaN(a)||isNaN(o)){n.flagCoordinate=false;return n}var d=s.getPosition();var u={lng:(i.lng-d.lng)/(t.duration/16),lat:(i.lat-d.lat)/(t.duration/16)};var c=s.getRotation();var p=t.rotate;if(!e.currentRotation){e.currentRotation=p}else{e.currentRotation+=p}var h=(e.currentRotation-c)/(t.duration/16);var v=d;var f=c;if(!t.moveWithRotate&&t.autoRotate){var m=0;var g=setInterval((function(){v=new BMapGL.Point(v.lng+u.lng,v.lat+u.lat);s.setPosition(v);m++;if(m>=t.duration/16){clearInterval(g);var e=0;var a=setInterval((function(){f+=h;s.setRotation(f);e++;if(e>=t.duration/16){clearInterval(a);t===null||t===void 0?void 0:t.animationEnd(r)}}),16)}}),16)}else if(t.moveWithRotate&&t.autoRotate){var b=0;var w=setInterval((function(){v=new BMapGL.Point(v.lng+u.lng,v.lat+u.lat);s.setPosition(v);f+=h;s.setRotation(f);b++;if(b>=t.duration/16){clearInterval(w);t===null||t===void 0?void 0:t.animationEnd(r)}}),16)}else if(t.moveWithRotate&&!t.autoRotate){var y=0;var M=setInterval((function(){v=new BMapGL.Point(v.lng+u.lng,v.lat+u.lat);s.setPosition(v);y++;if(y>=t.duration/16){clearInterval(M);t===null||t===void 0?void 0:t.animationEnd(r)}}),16)}return n};this._includePoints=function(t){var a=t.points.map((function(t){return new BMapGL.Point(t.longitude,t.latitude)}));var o=e.map.getZoom();var i=e.map.getCenter();var n=e.map.getViewport(a);e.map.centerAndZoom(n.center,n.zoom);var r=e.map.getBounds();var l=true;for(var s=0;s<a.length;s++){if(!r.containsPoint(a[s])){e.map.centerAndZoom(i,o);l=false;break}}return l};this._getRegion=function(){var t=e.map.getBounds();var a=t.getSouthWest();var o=t.getNorthEast();return{southwest:{lat:a.lat,lng:a.lng},northeast:{lat:o.lat,lng:o.lng}}};this._getRotate=function(){var t=e.rotate;if(t<0||t>360){t=0}return t};this._getSkew=function(){var t=e.skew;if(t<0||t>40){t=0}return t};this._getScale=function(){var t=e.scale;return t};this._setCenterOffset=function(t){var a=t.offset,o=a[0],i=a[1];var n=e.map.getSize();var r=Math.max(.25*n.width,Math.min(.75*n.width,o*n.width));var l=Math.max(.25*n.height,Math.min(.75*n.height,i*n.height));var s=new BMapGL.Pixel(r,l);var d=e.map.pixelToPoint(s);e.map.panTo(d)};this._addMarkers=function(t){if(t.clear){e.map.clearOverlays(e.markers)}t.markers.forEach((function(a){var o,i,n,r,l,s,d,u,c,p,h,v,f,m;if(a.latitude&&a.longitude&&a.iconPath){var g=new BMapGL.Point(a.longitude,a.latitude);var b=new BMapGL.Marker(g,{enableClicking:true});e.map.addOverlay(b);b.id=a.id;b.alpha=a.alpha;if(a.zIndex){b.setZIndex(a.zIndex)}if(a.width&&a.height&&a.iconPath){var w=new BMapGL.Icon(a.iconPath,new BMapGL.Size(a.width,a.height));b.setIcon(w)}else if(a.iconPath){var y=new Image;y.src=a.iconPath;y.style.opacity=String(a.alpha);y.onload=function(){var t=new BMapGL.Size(y.width,y.height);var e=new BMapGL.Icon(y.src,t);e.imageOffset=new BMapGL.Size(0,0,a.alpha||1);b.setIcon(e)}}else{console.error("没有找到iconPath图片路径");return}var M=a.rotate?a.rotate:0;if(M){b.setRotation(M)}if(a.anchor){var x=((i=(o=a.anchor)===null||o===void 0?void 0:o.x)!==null&&i!==void 0?i:0)*(a.width||0);var B=((r=(n=a.anchor)===null||n===void 0?void 0:n.y)!==null&&r!==void 0?r:0)*(a.height||0);b.setOffset(new BMapGL.Size(x,B))}if(!a.callout&&a.title){var L=new Hammer(e.mapRef);L.on("tap",(function(a){var o=a.center;var i=o.x;var n=o.y;var r=15;t.markers.forEach((function(t){var a=document.getElementsByClassName("bmap-container")[0];var o=a.getBoundingClientRect();var l=o.left;var s=o.top;var d=new BMapGL.Point(t.longitude,t.latitude);var u=e.map.pointToPixel(d);var c=u.x+l;var p=u.y+s;var h=Math.sqrt(Math.pow(i-c,2)+Math.pow(n-p,2));if(h<r&&t.id===b.id){var v='<div style="text-align:center">'.concat(t.title,"</div>");var f=new BMapGL.InfoWindow(v);e.map.openInfoWindow(f,g)}}))}))}if(a.callout){var x=((l=a.callout)===null||l===void 0?void 0:l.anchorX)?(s=a.callout)===null||s===void 0?void 0:s.anchorX:0;var B=((d=a.callout)===null||d===void 0?void 0:d.anchorY)?(u=a.callout)===null||u===void 0?void 0:u.anchorY:0;var _=new BMapGL.InfoWindow('<div style="\n padding: '.concat((c=a.callout)===null||c===void 0?void 0:c.padding,"px;\n color:").concat((p=a.callout)===null||p===void 0?void 0:p.color,";\n text-align:").concat((h=a.callout)===null||h===void 0?void 0:h.textAlign,';"\n >\n <p style="font-size:').concat((v=a.callout)===null||v===void 0?void 0:v.fontSize,'px">').concat(((f=a.callout)===null||f===void 0?void 0:f.content)||"","</p>\n </div>"),{width:200,height:100,offset:new BMapGL.Size(x-24,B-20)});b.callout=_;e.map.addOverlay(b);if(((m=a.callout)===null||m===void 0?void 0:m.display)==="ALWAYS"){b.callout.disableCloseOnClick();var P=b.getPosition();b.callout.addEventListener("open",(function(){var t,e,o,i;console.log(b.callout);var n=document.querySelector(".BMap_bubble_pop");if(n){var r=n.querySelector(".triangle");if(!r){r=document.createElement("div");r.className="triangle";n.appendChild(r)}var l=document.querySelector(".BMap_bubble_pop>img");if(l){l.setAttribute("style","position: absolute;transform: translate(-50%, 0); top: ".concat(P.lat-100,"px; left: ").concat(P.lng-20,"px;display:none"))}var s=(t=a.callout)===null||t===void 0?void 0:t.bgColor;var d=((e=a.callout)===null||e===void 0?void 0:e.borderWidth)||5;var u=(o=a.callout)===null||o===void 0?void 0:o.borderColor;var c=(i=a.callout)===null||i===void 0?void 0:i.borderRadius;d=Math.min(d,15);r.setAttribute("style","width:0;height:0;border-left:".concat(d,"px solid transparent;border-right:").concat(d,"px solid transparent;border-top:").concat(d,"px solid ").concat(u,";position:absolute;left:83px;bottom:-").concat(2*d,"px"));n.setAttribute("style","background-color:".concat(s,";top:").concat(P.lat-120,"px; left:").concat(P.lng-100,"px;position: absolute;border: ").concat(d,"px solid ").concat(u,";border-radius:").concat(c,"px; "))}}));e.map.openInfoWindow(b.callout,g)}else{var L=new Hammer(e.mapRef);L.on("tap",(function(a){var o=a.center;var i=o.x;var n=o.y;var r=15;t.markers.forEach((function(t){var a=document.getElementsByClassName("bmap-container")[0];var o=a.getBoundingClientRect();var l=o.left;var s=o.top;var d=new BMapGL.Point(t.longitude,t.latitude);var u=e.map.pointToPixel(d);var c=u.x+l;var p=u.y+s;var h=Math.sqrt(Math.pow(i-c,2)+Math.pow(n-p,2));if(h<r&&t.id===b.id){var v=b.getPosition();b.callout.addEventListener("open",(function(){var e,a,o,i;console.log(b.callout);var n=document.querySelector(".BMap_bubble_pop");if(n){var r=n.querySelector(".triangle");if(!r){r=document.createElement("div");r.className="triangle";n.appendChild(r)}var l=document.querySelector(".BMap_bubble_pop>img");if(l){l.setAttribute("style","position: absolute;transform: translate(-50%, 0); top: ".concat(v.lat-100,"px; left: ").concat(v.lng-20,"px;display:none"))}var s=(e=t.callout)===null||e===void 0?void 0:e.bgColor;var d=((a=t.callout)===null||a===void 0?void 0:a.borderWidth)||5;var u=(o=t.callout)===null||o===void 0?void 0:o.borderColor;var c=(i=t.callout)===null||i===void 0?void 0:i.borderRadius;d=Math.min(d,15);r.setAttribute("style","width:0;height:0;border-left:".concat(d,"px solid transparent;border-right:").concat(d,"px solid transparent;border-top:").concat(d,"px solid ").concat(u,";position:absolute;left:83px;bottom:-").concat(2*d,"px"));n.setAttribute("style","background-color:".concat(s,";top:").concat(v.lat-120,"px; left:").concat(v.lng-100,"px;position: absolute;border: ").concat(d,"px solid ").concat(u,";border-radius:").concat(c,"px; "))}}));e.map.openInfoWindow(b.callout,g)}else{b.callout.enableCloseOnClick()}}))}))}}if(a.label){var G=a.label.content||"";var C={position:g,offset:new BMapGL.Size(a.label.anchorX||0,a.label.anchorY||0)};var S=new BMapGL.Label(G,C);S.setStyle({color:a.label.color,fontSize:a.label.fontSize+"px",borderWidth:a.label.borderWidth+"px",borderColor:a.label.borderColor,borderRadius:a.label.borderRadius+"px",background:a.label.bgColor,padding:a.label.padding+"px"});b.setLabel(S)}}}))};this._removeMarkers=function(t){var a=e.map.getOverlays();var o={};t.markerIds.forEach((function(t){var i=a.find((function(e){return e instanceof BMapGL.Marker&&String(e.id)===t}));o=i;e.map.removeOverlay(i)}));return o};this._moveAlong=function(t){var a=t.path;var o=t.markerId;var i=t.duration;var n=t.autoRotate;var r=e.map.getOverlays().find((function(t){return t instanceof BMapGL.Marker&&t.id===o}));var l=a.map((function(t){return new BMapGL.Point(t.longitude,t.latitude)}));var s={flagId:true,flagCoordinate:true};if(!r){console.error('Marker "'.concat(o,'" not found.'));s.flagId=false;return s}for(var d=0;d<l.length;d++){var u=l[d];if(u.lat<-80&&u.lat>=-90){u.lat+=10}if(u.lng<-180||u.lng>180||u.lat<-90||u.lat>90||isNaN(u.lng)||isNaN(u.lat)){s.flagCoordinate=false;return s}}if(s.flagId&&s.flagCoordinate){var c=performance.now();var p=function(t){var a=t-c;var o=Math.min(a/i,1);var s=e.getPointOnPath(l,o);r.setPosition(s);if(n&&o<1){var d=e.getPointOnPath(l,Math.min(o+.01,1));var u=e.calculateRotation(s,d);r.setRotation(u)}if(o<1){requestAnimationFrame(p)}else{r.setPosition(l[l.length-1]);r.setRotation(0)}};requestAnimationFrame(p)}return s};this.getPointOnPath=function(t,a){var o=e.calculateTotalLength(t);var i=o*a;var n=0;for(var r=0;r<t.length-1;r++){var l=e.map.getDistance(t[r],t[r+1]);if(n+l>=i){var s=(i-n)/l;var d=t[r+1].lng-t[r].lng;var u=t[r+1].lat-t[r].lat;var c=t[r].lng+d*s;var p=t[r].lat+u*s;return new BMapGL.Point(c,p)}n+=l}return t[t.length-1]};this.calculateTotalLength=function(t){var a=0;for(var o=0;o<t.length-1;o++){a+=e.map.getDistance(t[o],t[o+1])}return a};this.calculateRotation=function(t,e){var a=e.lng-t.lng;var o=e.lat-t.lat;var i=Math.atan2(o,a)*(180/Math.PI);i=90-i;return i};this._addGroundOverlay=function(t){var a=t.src,o=t.opacity,i=t.bounds,n=t.visible,r=t.id,l=t.zIndex;var s=true;if(i.southwest.longitude>=i.northeast.longitude||i.southwest.latitude>=i.northeast.latitude){s=false;return}if(i.southwest.latitude>90||i.southwest.latitude<-90||i.southwest.longitude>180||i.southwest.longitude<-180||isNaN(i.southwest.latitude)||isNaN(i.southwest.longitude)){s=false;return}if(i.northeast.latitude>90||i.northeast.latitude<-90||i.northeast.longitude>180||i.northeast.longitude<-180||isNaN(i.northeast.latitude)||isNaN(i.northeast.longitude)){s=false;return}var d=new BMapGL.Bounds(new BMapGL.Point(i.southwest.longitude,i.southwest.latitude),new BMapGL.Point(i.northeast.longitude,i.northeast.latitude));function u(t,e,a,o,i,n,r){this._bounds=t;this._imageUrl=e;this._map=a;this._visible=o;this._opacity=i;this._zIndex=n;this._id=r}u.prototype=new BMapGL.Overlay;u.prototype.initialize=function(t){var e=this;if(document.getElementById(this._id)){var a=document.getElementById(this._id);a===null||a===void 0?void 0:a.remove()}this._map=t;if(!this._div){var o=document.createElement("div");o.id=this._id;o.style.position="absolute";o.style.border="none";o.style.zIndex=this._zIndex;var i=document.createElement("img");i.src=this._imageUrl;var n=this._opacity<0?"1":this._opacity;i.style.opacity=n;o.appendChild(i);this._div=o}t.addEventListener("zoomend",(function(){var a=t.pointToOverlayPixel(e._bounds.getSouthWest());var o=t.pointToOverlayPixel(e._bounds.getNorthEast());var i=o.x-a.x;var n=a.y-o.y;e._div.style.width=i+"px";e._div.style.height=n+"px";var r=e._div.querySelector("img");r.style.width=i+"px";r.style.height=n+"px"}));t.getPanes().labelPane.appendChild(this._div);return this._div};u.prototype.draw=function(){var e={lat:t.bounds.northeast.latitude,lng:t.bounds.southwest.longitude};var a=this._map.pointToOverlayPixel(e);this._div.style.left=a.x+"px";this._div.style.top=a.y+"px";var o=this._map.getBounds();var i=this._map.pointToPixel(o.getSouthWest());var n=this._map.pointToPixel(o.getNorthEast());var r=n.x-i.x;var l=n.y-i.y;var s=this._map.getZoom();var d=r*Math.pow(2,18-s);var u=l*Math.pow(2,18-s);this._div.style.width=d+"px";this._div.style.height=u+"px";this._div.style.display=this._visible?"block":"none";var c=this._opacity<0?"1":this._opacity;this._div.getElementsByTagName("img")[0].style.opacity=c};var c=new u(d,a,e.map,n,o,l,r);e.map.addOverlay(c);var p=e.map.getOverlays().sort((function(t,e){return t._zIndex-e._zIndex}));e.groundOverlay=c;p.forEach((function(t){return t.draw()}));var h=e.map.getZoom();if(h<20){e.map.setZoom(h+1);e.map.setZoom(h)}else{e.map.setZoom(h-1);e.map.setZoom(h)}return s};this._updateGroundOverlay=function(t){var a=t.src,o=t.opacity,i=t.bounds,n=t.visible,r=t.id,l=t.zIndex;var s;var d=true;var u=true;var c={};var p=e.map.getOverlays();var h=p.find((function(t){return t._id===r}));if(!h){d=false;c={flagId:d,flagCoordinate:u};s=Object.assign({},c);return s}if(i.southwest.longitude>=i.northeast.longitude||i.southwest.latitude>=i.northeast.latitude){u=false;c={flagId:d,flagCoordinate:u};s=Object.assign({},c)}if(i.southwest.latitude>90||i.southwest.latitude<-90||i.southwest.longitude>180||i.southwest.longitude<-180||isNaN(i.southwest.latitude)||isNaN(i.southwest.longitude)){u=false;c={flagId:d,flagCoordinate:u};s=Object.assign({},c)}if(i.northeast.latitude>90||i.northeast.latitude<-90||i.northeast.longitude>180||i.northeast.longitude<-180||isNaN(i.northeast.latitude)||isNaN(i.northeast.longitude)){u=false;c={flagId:d,flagCoordinate:u};s=Object.assign({},c)}if(d&&u){var v=new BMapGL.Bounds(new BMapGL.Point(i.southwest.longitude,i.southwest.latitude),new BMapGL.Point(i.northeast.longitude,i.northeast.latitude));var f=e.map.getZoom();if(h){var m=document.getElementById(r);if(m){var g=m.querySelector("img");if(g){var b=o<0?"1":o;m.style.opacity=b;g.style.display=n?"block":"none";m.style.zIndex=l;var w=new Image;w.onload=function(){g.src=a;var t=v.getNorthEast().lng-v.getSouthWest().lng;var o=e.map.getSize().width;var i=o/Math.pow(2,18-f)*t;var n=w.naturalHeight/w.naturalWidth;var r=i*n;g.style.width="".concat(i,"px");g.style.height="".concat(r,"px");h._bounds=v;h.draw();e.map.panTo(e.map.getCenter());h.draw()};w.src=a}}}else{console.error("未找到id为".concat(r,"的元素"))}c={flagId:d,flagCoordinate:u};s=Object.assign({},c);return s}else{return s}};this._removeGroundOverlay=function(t){var a=e.map.getOverlays();var o="";var i=a.find((function(e){return e._id===t.id}));o=i;if(i){e.map.removeOverlay(i)}return o};this._setBoundary=function(t){var a=t.northeast.latitude;var o=t.southwest.latitude;var i=true;if(t.northeast.latitude<=-80&&t.northeast.latitude>=-90){a=t.northeast.latitude+10}if(t.southwest.latitude<=-80&&t.southwest.latitude>=-90){o=t.southwest.latitude+10}if(t.northeast.latitude<-90||t.northeast.latitude>90||t.northeast.longitude<-180||t.northeast.longitude>180||isNaN(t.northeast.latitude)||isNaN(t.northeast.longitude)||t.northeast.longitude<t.southwest.longitude||t.northeast.latitude<t.southwest.latitude){i=false;return}if(t.southwest.latitude<-90||t.southwest.latitude>90||t.southwest.longitude<-180||t.southwest.longitude>180||isNaN(t.southwest.latitude)||isNaN(t.southwest.longitude)){i=false;return}var n=new BMapGL.Point(t.northeast.longitude,a);var r=new BMapGL.Point(t.southwest.longitude,o);var l=new BMapGL.Bounds(r,n);var s=e.map.getViewport([n,r]);e.map.centerAndZoom(new BMapGL.Point(s.center.lng,s.center.lat),s.zoom+2);e.map.addOverlay(new BMapGL.Polygon([new BMapGL.Point(l.sw.lng,l.sw.lat),new BMapGL.Point(l.sw.lng,l.ne.lat),new BMapGL.Point(l.ne.lng,l.ne.lat),new BMapGL.Point(l.ne.lng,l.sw.lat)],{fillOpacity:0}));BMapGLLib.AreaRestriction.setBounds(e.map,l);return i};this.latitude=undefined;this.longitude=undefined;this.scale=undefined;this.minScale=undefined;this.maxScale=undefined;this.markers=undefined;this.polyline=undefined;this.circles=undefined;this.polygons=undefined;this.subkey=undefined;this.layerStyle=undefined;this.rotate=undefined;this.skew=undefined;this.showCompass=undefined;this.showScale=undefined;this.enableOverlooking=undefined;this.enableZoom=undefined;this.enableScroll=undefined;this.enableRotate=undefined;this.enableSatellite=undefined;this.enableTraffic=undefined;this.enableBuilding=undefined;this.enableAutoMaxOverlooking=undefined;this.enable3D=undefined;this.width="100%";this.height="100%"}t.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,a,o,i,i,n,r,l,s,d,u,c,p,h,v,f,m,g,b,w,y;var M=this;return __generator(this,(function(x){switch(x.label){case 0:return[4,this.loadMapScript()];case 1:x.sent();return[4,this.LoadBmapLibScript()];case 2:x.sent();if(this.mapRef){this.mapRef.addEventListener("touchmove",(function(t){if(t.cancelable){t.preventDefault()}}));this.map=new BMapGL.Map(this.mapRef);this.map.removeControl(this.map.getMapType());if(this.latitude<-90||this.latitude>90||this.longitude<-180||this.longitude>180||isNaN(this.latitude)||isNaN(this.longitude)){console.error("请正确设置中心经纬度");return[2]}t=isNaN(this.scale)?16:this.scale;e=isNaN(this.minScale)?3:this.minScale;a=isNaN(this.maxScale)?16:this.maxScale;o=new BMapGL.Point(this.longitude,this.latitude);if(e<3||e>20){e=3;this.map.setMinZoom(3)}else{this.map.setMinZoom(e)}if(a>20||a<3){a=20;this.map.setMaxZoom(20)}else{this.map.setMaxZoom(a)}if(e>a){e=3;this.map.setMinZoom(3);a=20;this.map.setMaxZoom(20)}if(e<=16&&a>=16){if(t>=e&&t<=a){this.map.centerAndZoom(o,t)}else{t=16;this.map.centerAndZoom(o,t)}}else{if(t>=e&&t<=a){this.map.centerAndZoom(o,t)}else if(t<e){t=e;this.map.centerAndZoom(o,e)}else{t=a;this.map.centerAndZoom(o,a)}}if(Array.isArray(this.markers)){this.addMarkers(this.markers)}if(Array.isArray(this.polyline)){this.polyline.forEach((function(t){if(t.points){var e=t.points.map((function(t){return new BMapGL.Point(t.longitude,t.latitude)}));var a=new BMapGL.Polyline(e,{strokeColor:t.color,strokeWeight:t.width,strokeStyle:t.dottedLine?"dashed":"solid",strokeOpacity:1});M.map.addOverlay(a)}}))}if(Array.isArray(this.circles)){this.circles.forEach((function(t){if(t.latitude&&t.longitude&&t.radius){var e=new BMapGL.Point(t.longitude,t.latitude);var a=new BMapGL.Circle(e,t.radius,{strokeColor:t.color,fillColor:t.fillColor,strokeWeight:t.strokeWidth});M.map.addOverlay(a)}}))}if(Array.isArray(this.polygons)){this.polygons.forEach((function(t){var e=t.points.map((function(t){return new BMapGL.Point(t.longitude,t.latitude)}));var a=new BMapGL.Polygon(e,{strokeColor:t.strokeColor,fillColor:t.fillColor,strokeWeight:t.strokeWidth});M.map.addOverlay(a)}))}if(this.layerStyle===0){i=this.layerStyle;if(i){this.map.setMapStyleV2({styleId:this.subkey})}}else{i=this.layerStyle?this.layerStyle:1;if(i===1){this.map.setMapStyleV2({styleId:this.subkey})}}n=this.enable3D===true?this.enable3D:false;r=this.enableOverlooking===true?this.enableOverlooking:false;l=this.enableAutoMaxOverlooking===true?this.enableAutoMaxOverlooking:false;s=this.skew?this.skew:0;if(n===true){if(r===true){if(l===true){this.map.setTilt(75)}else{this.map.setTilt(45)}}else if(s>=0&&s<=40){this.map.setTilt(s)}else{this.map.setTilt(0)}}else{this.map.setTilt(0)}d=this.showCompass===true?this.showCompass:false;if(d===true){u=new BMapGL.NavigationControl3D({anchor:BMAP_ANCHOR_TOP_RIGHT,type:3});this.map.addControl(u)}c=this.showScale===true?this.showScale:false;if(c===true){p=new BMapGL.ScaleControl({anchor:BMAP_ANCHOR_BOTTOM_RIGHT});this.map.addControl(p)}h=this.enableZoom===false?this.enableZoom:true;if(h===true){this.map.enableScrollWheelZoom(this.enableZoom)}if(this.enableZoom===true&&this.mapRef){this.map.enablePinchToZoom()}else{this.map.disablePinchToZoom()}v=this.enableScroll===false?this.enableScroll:true;if(v===true){this.map.enableDragging()}else{this.map.disableDragging()}f=this.rotate?this.rotate:0;if(f>=0&&this.rotate<=360){this.map.setHeading(this.rotate)}else{this.map.setHeading(0)}if(this.enableRotate===true){this.map.enableRotateGestures()}m=this.enableSatellite===true?this.enableSatellite:false;if(m===true&&this.mapRef){g=new BMapGL.MapTypeControl({mapTypes:[BMAP_NORMAL_MAP,BMAP_SATELLITE_MAP]});this.map.addControl(g)}b=this.enableTraffic===true?this.enableTraffic:false;if(b===true&&this.mapRef){this.map.setTrafficOn()}w=this.enableBuilding===false?this.enableBuilding:true;if(w===false){this.map.setDisplayOptions({building:false})}}if(this.map){y=new Hammer(this.mapRef);y.on("tap",(function(t){var e=M.map.pixelToPoint({x:t.center.x,y:t.center.y});M.onTap.emit({longitude:e.lng,latitude:e.lat})}))}return[2]}}))}))};t.prototype.disconnectedCallback=function(){if(this.map){this.map.destroy()}};t.prototype.addMarkers=function(t){var e=this;var a=[];t.forEach((function(t){var o,i,n,r,l,s,d,u,c,p,h,v,f,m;if(a.includes(t.id)){console.error("请输入不同的marker的id");return}a.push(t.id);if(t.latitude&&t.longitude&&t.iconPath&&t.id){if(t.latitude<-90||t.latitude>90||t.longitude<-180||t.longitude>180){console.error("请正确设置marker的经纬度");return}var g=new BMapGL.Point(t.longitude,t.latitude);var b=new BMapGL.Marker(g,{enableClicking:true});b.id=t.id;b.alpha=t.alpha;if(t.zIndex){b.setZIndex(t.zIndex)}if(t.width&&t.height){var w=document.createElement("canvas");w.width=t.width*2;w.height=t.height*2;var y=w.getContext("2d");var M=new Image;M.crossOrigin="Anonymous";M.src=t.iconPath;M.onload=function(){y.drawImage(M,0,0,t.width*2,t.height*2);var e=new BMapGL.Icon(w.toDataURL(),new BMapGL.Size(t.width,t.height),{anchor:new BMapGL.Size(0,0)});b.setIcon(e)}}else{var x=new Image;x.src=t.iconPath;x.style.opacity=String(t.alpha);x.onload=function(){var e=new BMapGL.Size(x.width,x.height);var a=new BMapGL.Icon(x.src,e);a.imageOffset=new BMapGL.Size(0,0,t.alpha||1);b.setIcon(a)}}var B=t.rotate?t.rotate:0;if(B>=0&&B<=360){b.setRotation(B)}var L=(i=(o=t.anchor)===null||o===void 0?void 0:o.x)!==null&&i!==void 0?i:.5;var _=(r=(n=t.anchor)===null||n===void 0?void 0:n.y)!==null&&r!==void 0?r:1;if(L>=0&&L<=1&&_>=0&&_<=1){var P=-L*(t.width||0);var G=-_*(t.height||0);b.setOffset(new BMapGL.Size(P,G))}else{var P=-.5*(t.width||0);var G=-1*(t.height||0);b.setOffset(new BMapGL.Size(P,G))}if(!t.callout&&t.title){var C=new Hammer(e.mapRef);C.on("tap",(function(t){var a=t.center;var o=a.x;var i=a.y;var n=15;e.markers.forEach((function(t){var a=document.getElementsByClassName("bmap-container")[0];var r=a.getBoundingClientRect();var l=r.left;var s=r.top;var d=new BMapGL.Point(t.longitude,t.latitude);var u=e.map.pointToPixel(d);var c=u.x+l;var p=u.y+s;var h=Math.sqrt(Math.pow(o-c,2)+Math.pow(i-p,2));if(h<n&&t.id===b.id){var v='<div style="text-align:center">'.concat(t.title,"</div>");var f=new BMapGL.InfoWindow(v);e.map.openInfoWindow(f,g)}}))}))}if(t.callout){var P=((l=t.callout)===null||l===void 0?void 0:l.anchorX)?(s=t.callout)===null||s===void 0?void 0:s.anchorX:0;var G=((d=t.callout)===null||d===void 0?void 0:d.anchorY)?(u=t.callout)===null||u===void 0?void 0:u.anchorY:0;var S=new BMapGL.InfoWindow('<div style="\n padding: '.concat((c=t.callout)===null||c===void 0?void 0:c.padding,"px;\n color:").concat((p=t.callout)===null||p===void 0?void 0:p.color,";\n text-align:").concat((h=t.callout)===null||h===void 0?void 0:h.textAlign,';"\n >\n <p style="font-size:').concat((v=t.callout)===null||v===void 0?void 0:v.fontSize,'px">').concat(((f=t.callout)===null||f===void 0?void 0:f.content)||"","</p>\n </div>"),{width:200,height:100,offset:new BMapGL.Size(P-24,G-20)});b.callout=S;e.map.addOverlay(b);if(((m=t.callout)===null||m===void 0?void 0:m.display)==="ALWAYS"){b.callout.disableCloseOnClick();var k=b.getPosition();b.callout.addEventListener("open",(function(){var e,a,o,i;var n=document.querySelector(".BMap_bubble_pop");if(n){var r=n.querySelector(".triangle");if(!r){r=document.createElement("div");r.className="triangle";n.appendChild(r)}var l=document.querySelector(".BMap_bubble_pop>img");if(l){l.setAttribute("style","position: absolute;transform: translate(-50%, 0); top: ".concat(k.lat-100,"px; left: ").concat(k.lng-20,"px;display:none"))}var s=(e=t.callout)===null||e===void 0?void 0:e.bgColor;var d=((a=t.callout)===null||a===void 0?void 0:a.borderWidth)||5;var u=(o=t.callout)===null||o===void 0?void 0:o.borderColor;var c=(i=t.callout)===null||i===void 0?void 0:i.borderRadius;d=Math.min(d,15);r.setAttribute("style","width:0;height:0;borderLeft:".concat(d,"px solid transparent;borderRight:").concat(d,"px solid transparent;borderTop:").concat(d,"px solid ").concat(u,";position:absolute;left:83px;bottom:-").concat(2*d,"px"));n.setAttribute("style","background-color:".concat(s,";top:").concat(k.lat-120,"px; left:").concat(k.lng-100,"px;position: absolute;border: ").concat(d,"px solid ").concat(u,";border-radius:").concat(c,"px; "))}}));e.map.openInfoWindow(b.callout,g)}else{var C=new Hammer(e.mapRef);C.on("tap",(function(t){var a=t.center;var o=a.x;var i=a.y;var n=15;e.markers.forEach((function(t){var a=document.getElementsByClassName("bmap-container")[0];var r=a.getBoundingClientRect();var l=r.left;var s=r.top;var d=new BMapGL.Point(t.longitude,t.latitude);var u=e.map.pointToPixel(d);var c=u.x+l;var p=u.y+s;var h=Math.sqrt(Math.pow(o-c,2)+Math.pow(i-p,2));if(h<n&&t.id===b.id){var v=b.getPosition();b.callout.addEventListener("open",(function(){var e,a,o,i;var n=document.querySelector(".BMap_bubble_pop");if(n){var r=n.querySelector(".triangle");if(!r){r=document.createElement("div");r.className="triangle";n.appendChild(r)}var l=document.querySelector(".BMap_bubble_pop>img");if(l){l.setAttribute("style","position: absolute;transform: translate(-50%, 0); top: ".concat(v.lat-100,"px; left: ").concat(v.lng-20,"px;display:none"))}var s=(e=t.callout)===null||e===void 0?void 0:e.bgColor;var d=((a=t.callout)===null||a===void 0?void 0:a.borderWidth)||5;var u=(o=t.callout)===null||o===void 0?void 0:o.borderColor;var c=(i=t.callout)===null||i===void 0?void 0:i.borderRadius;d=Math.min(d,15);r.setAttribute("style","width:0;height:0;border-left:".concat(d,"px solid transparent;border-right:").concat(d,"px solid transparent;border-top:").concat(d,"px solid ").concat(u,";position:absolute;left:83px;bottom:-").concat(2*d,"px"));n.setAttribute("style","background-color:".concat(s,";top:").concat(v.lat-120,"px; left:").concat(v.lng-100,"px;position: absolute;border: ").concat(d,"px solid ").concat(u,";border-radius:").concat(c,"px; "))}}));e.map.openInfoWindow(b.callout,g)}else{b.callout.enableCloseOnClick()}}))}))}}if(t.label){var I=t.label.content||"";var O={position:g,offset:new BMapGL.Size(t.label.anchorX||0,t.label.anchorY||0)};var N=new BMapGL.Label(I,O);var R=t.label.borderColor?t.label.borderColor:"white";N.setStyle({color:t.label.color,fontSize:t.label.fontSize+"px",borderWidth:t.label.borderWidth+"px",borderColor:R,borderRadius:t.label.borderRadius+"px",background:t.label.bgColor,padding:t.label.padding+"px"});b.setLabel(N)}e.map.addOverlay(b)}else{console.error("请检查marker经纬度和marker自定义图标路径和id值")}}))};t.prototype.loadMapScript=function(){return new Promise((function(t,e){var a=document.createElement("script");a.src="https://api.map.baidu.com/getscript?v=3.0&type=webgl&ak=Mb1FLBD3gfnY6bup4v6zEWh6MXwsZ9eo";a.defer=true;a.onload=function(){return t()};a.onerror=e;a.type="text/javascript";document.head.appendChild(a)}))};t.prototype.LoadBmapLibScript=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,new Promise((function(t,e){var a=document.createElement("script");a.src="//mapopen.bj.bcebos.com/github/BMapGLLib/AreaRestriction/src/AreaRestriction.min.js";a.defer=true;a.type="text/javascript";a.onload=function(){t()};a.onerror=e;document.head.appendChild(a)}))]}))}))};t.prototype.render=function(){var t=this;return h(Host,null,h("div",{id:"mapContainer",ref:function(e){if(e){t.mapRef=e}},style:{width:this.width,height:this.height}}))};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();Map.style=mapCss;export{Map as taro_map_core};
@@ -1 +0,0 @@
1
- import{r as registerInstance,h,H as Host}from"./index-5e431bb8.js";import{n as notSupport}from"./helper-8a85bb65.js";import"@tarojs/taro";var MatchMedia=function(){function t(t){registerInstance(this,t)}t.prototype.componentDidLoad=function(){notSupport("MatchMedia",this)};t.prototype.render=function(){return h(Host,null)};return t}();export{MatchMedia as taro_match_media_core};
@@ -1 +0,0 @@
1
- import{__awaiter,__generator}from"tslib";import{r as registerInstance,h,g as getElement,H as Host,c as createEvent}from"./index-5e431bb8.js";import{i as isElement}from"./index-a00a7418.js";var areaCss="taro-movable-area-core{width:10px;height:10px;display:block;position:relative}";var MovableArea=function(){function e(e){var t=this;registerInstance(this,e);this.views=[];this.scaleLength=0;this.viewsChanged=function(){t.views=[];var e=t.element.querySelectorAll("taro-movable-view-core");Array.from(e).forEach((function(e){t.views.push(e)}));t.updateArea()};this.handleTouchStart=function(e){var a=e.touches;if(!a||a.length<=1){return}var i={width:a[1].pageX-a[0].pageX,height:a[1].pageY-a[0].pageY};t.scaleLength=Math.sqrt(i.width*i.width+i.height*i.height);if(t.scaleArea){return}var n=function(e,t){var a=function(e,t){if(!(e=e.parentNode)){return false}return(!isElement(e)||e!==document.body)&&(e===t||e===t.element||e.element===t||a(e,t))};for(var i=0;i<t.length;i++){var n=t[i];if(e===n["element"]||a(e,n)){return n}}};var r=n(a[0].target,t.views);var s=n(a[1].target,t.views);t.scaleTarget=r&&r===s?r:undefined};this.handleTouchMove=function(e){var a=e.touches;if(!a||a.length<=1){return}e.preventDefault();var i={width:a[1].pageX-a[0].pageX,height:a[1].pageY-a[0].pageY};if(t.scaleLength>0){t.updateScale(Math.sqrt(i.width*i.width+i.height*i.height)/t.scaleLength)}};this.handleTouchEnd=function(e){var a,i;if(e.touches&&e.touches.length||!e.changedTouches){return}t.scaleLength=0;if(t.scaleArea){t.views.forEach((function(e){var t;(t=e["endScale"])===null||t===void 0?void 0:t.call(e)}))}else{(i=(a=t.scaleTarget)===null||a===void 0?void 0:a["endScale"])===null||i===void 0?void 0:i.call(a)}t.scaleTarget=undefined};this.updateScale=function(e){var a,i;if(!e||e===1){return}if(t.scaleArea){t.views.forEach((function(t){var a;(a=t["setScale"])===null||a===void 0?void 0:a.call(t,e)}))}else{(i=(a=t.scaleTarget)===null||a===void 0?void 0:a["setScale"])===null||i===void 0?void 0:i.call(a,e)}};this.updateArea=function(){var e=window.getComputedStyle(t.element);var a=t.element.getBoundingClientRect();var i=["Left","Right"].map((function(t){return parseFloat(e["border"+t+"Width"])+parseFloat(e["padding"+t])}));var n=["Top","Bottom"].map((function(t){return parseFloat(e["border"+t+"Width"])+parseFloat(e["padding"+t])}));t.views.forEach((function(e){var r;(r=e["setParent"])===null||r===void 0?void 0:r.call(e,{element:t.element,area:{height:a.height-n[0]-n[1],width:a.width-i[0]-i[1]}})}))};this.scaleArea=undefined}e.prototype.connectedCallback=function(){var e=this;this.observer=new MutationObserver((function(t){t.forEach((function(t){var a,i;if(t.attributeName==="class"||t.attributeName==="style"){var n=e.element.offsetWidth;var r=e.element.offsetHeight;if(n!==((a=e.offset)===null||a===void 0?void 0:a.width)||r!==((i=e.offset)===null||i===void 0?void 0:i.height)){e.updateArea()}e.offset={width:n,height:r}}}))}));this.observer.observe(this.element,{attributes:true})};e.prototype.disconnectedCallback=function(){var e;(e=this.observer)===null||e===void 0?void 0:e.disconnect()};e.prototype.componentDidLoad=function(){this.viewsChanged()};e.prototype.render=function(){return h(Host,{onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEnd})};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();MovableArea.style=areaCss;var viewCss="taro-movable-view-core{width:10px;height:10px;display:inline-block;position:absolute;top:0;left:0}";var MovableView=function(){function e(e){var t=this;registerInstance(this,e);this.onChange=createEvent(this,"change",7);this.onScale=createEvent(this,"scale",7);this.onHTouchMove=createEvent(this,"htouchmove",7);this.onVTouchMove=createEvent(this,"vtouchmove",7);this.translateX=0;this.translateY=0;this.origin={x:0,y:0};this.area={width:0,height:0};this.originScale=1;this.currentScale=1;this.width=0;this.height=0;this.minX=0;this.minY=0;this.maxX=0;this.maxY=0;this.baseX=0;this.baseY=0;this.offset={x:0,y:0};this.scaleOffset={x:0,y:0};this.getLimitXY=function(e,a){var i=false;e>t.maxX?(e=t.maxX,i=true):e<t.minX&&(e=t.minX,i=true);a>t.maxY?(a=t.maxY,i=true):a<t.minY&&(a=t.minY,i=true);return{x:e,y:a,outOfBounds:i}};this.animationTo=function(e,a,i,n,r,s,o){if(t.animation){t.setTransform(e,a,i,n,r,s);o===null||o===void 0?void 0:o()}else{t.setTransform(e,a,i,n,r,s)}};this.setTransform=function(e,a,i,n,r,s){e=Number(e.toFixed(1));a=Number(a.toFixed(1));i=Number((i!==null&&i!==void 0?i:t.currentScale).toFixed(3));if(!t.outOfBounds){var o=t.getLimitXY(e,a);e=o.x;a=o.y}var c=function(e,t){return+((1e3*e-1e3*t)/1e3).toFixed(1)};var l=c(e,t.scaleOffset.x);var h=c(a,t.scaleOffset.y);if(t.translateX!==e||t.translateY!==a){!r&&t.onChange.emit({x:l,y:h,source:n})}if(i!==t.currentScale){s&&t.onScale.emit({scale:i,x:l,y:h})}var u="translateX(".concat(e,"px) translateY(").concat(a,"px) translateZ(0px) scale(").concat(i,")");t.element.style.transform=u;t.element.style.webkitTransform=u;t.translateX=e;t.translateY=a;t.currentScale=i};this.updateOffset=function(){var e=function(t,a){if(t===a||!t.offsetParent){return{left:0,top:0}}var i=e(t.offsetParent,a);return{left:t.offsetLeft+i.left,top:t.offsetTop+i.top}};if(!t.parent){return}var a=e(t.element,t.parent);t.offset.x=a.left;t.offset.y=a.top};this.updateScaleOffset=function(e){if(e===void 0){e=t.currentScale}var a=t.element.getBoundingClientRect();t.height=a.height/t.currentScale;t.width=a.width/t.currentScale;t.scaleOffset.x=(t.width*e-t.width)/2;t.scaleOffset.y=(t.height*e-t.height)/2};this.updateBoundary=function(){var e=0-t.offset.x+t.scaleOffset.x;var a=t.area.width-t.width-t.offset.x-t.scaleOffset.x;t.minX=Math.min(e,a);t.maxX=Math.max(e,a);var i=0-t.offset.y+t.scaleOffset.y;var n=t.area.height-t.height-t.offset.y-t.scaleOffset.y;t.minY=Math.min(i,n);t.maxY=Math.max(i,n)};this.updateScale=function(e,a,i){if(!t.scale){return}var n=t.adjustScale(e);t.updateScaleOffset(n);t.updateBoundary();var r=t.getLimitXY(t.translateX,t.translateY),s=r.x,o=r.y;if(a){t.animationTo(s,o,n,"",true,true,i)}else if(!t.updating){t.updating=true;requestAnimationFrame((function(){t.setTransform(s,o,n,"",true,true);t.updating=false}))}};this.setOriginScale=function(e){t.originScale=e};this.adjustScale=function(e){return Math.min(10,t.scaleMax,Math.max(.5,t.scaleMin,e))};this.handleTouchStart=function(e){var a=e.touches;if(t.disabled||a.length>1||!t.element){return}var i=a[0];t.touching=true;t.firstMoveFireEvent=false;t.origin.x=i.screenX;t.origin.y=i.screenY;t.baseX=t.translateX;t.baseY=t.translateY;t.element.style.willChange="transform"};this.handleTouchMove=function(e){var a=e.touches;if(t.disabled||!t.element||t.scaling||!t.touching||a.length>1){return}if(t.direction!=="horizontal"){e.preventDefault()}var i=a[0];var n=i.screenX-t.origin.x;var r=i.screenY-t.origin.y;t.setTransform(t.xMove?n+t.baseX:0,t.yMove?r+t.baseY:0);if(!t.firstMoveFireEvent){t.firstMoveFireEvent=true;var s=Math.abs(n)>Math.abs(r)?t.onHTouchMove:t.onVTouchMove;s.emit({originalEvent:e,bubbles:false,capturePhase:false,composed:true,extraFields:{touches:e.touches||{},changedTouches:e.changedTouches||{}}})}};this.handleTouchEnd=function(e){var a=e.changedTouches[0];if(t.disabled||!t.touching||!a){return}t.touching=false;var i=a.screenX-t.origin.x;var n=a.screenY-t.origin.y;t.setTransform(t.xMove?i+t.baseX:0,t.yMove?n+t.baseY:0)};this.x=0;this.y=0;this.direction="none";this.outOfBounds=false;this.inertia=false;this.friction=2;this.damping=20;this.disabled=false;this.scale=false;this.scaleMin=.5;this.scaleMax=10;this.scaleValue=1;this.animation=true}e.prototype.watchX=function(e){this.setTransform(parseFloat("".concat(e||0)),this.translateY)};e.prototype.watchY=function(e){this.setTransform(this.translateX,parseFloat("".concat(e||0)))};e.prototype.watchScaleMinOrMax=function(){if(!this.scale)return false;this.updateScale(this.currentScale,true);this.setOriginScale(this.currentScale)};e.prototype.watchScaleValue=function(e){if(!this.scale){return false}this.updateScale(e,true);this.setOriginScale(e);return e};e.prototype.setParent=function(e){var t=e.element,a=e.area;return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(i){e=this.scale?this.scaleValue:1;this.area=a;this.parent=t;this.updateOffset();this.updateScaleOffset(e);this.updateBoundary();this.setTransform(Number(this.x)+this.scaleOffset.x,Number(this.y)+this.scaleOffset.y,e,"",true);this.setOriginScale(e);return[2]}))}))};e.prototype.endScale=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.scaling=false;this.setOriginScale(this.currentScale);return[2]}))}))};e.prototype.setScale=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(!this.scale){return[2]}this.scaling=true;this.updateScale(e*this.originScale);return[2]}))}))};e.prototype.connectedCallback=function(){var e=this;this.observer=new MutationObserver((function(t){t.forEach((function(t){var a=t.attributeName;if(a&&["class","style"].includes(a)){var i=t.oldValue;var n=t.target.getAttribute(a);if(i===n){return}var r=function(e){return e===null||e===void 0?void 0:e.split(";").filter((function(e){return!["transform","will-change"].find((function(t){return e.trim().startsWith(t)}))})).join(";")};if(a==="style"&&r(n)===r(i)){return}e.updateOffset();e.updateScaleOffset();e.updateBoundary();e.setTransform(e.translateX,e.translateY)}}))}));this.observer.observe(this.element,{attributes:true,attributeOldValue:true})};e.prototype.disconnectedCallback=function(){var e;(e=this.observer)===null||e===void 0?void 0:e.disconnect()};e.prototype.componentDidLoad=function(){this.element.style.transformOrigin="center";this.xMove=["horizontal","all"].includes(this.direction);this.yMove=["vertical","all"].includes(this.direction);if(this.friction<=0){this.friction=2}if(this.x||this.y){var e=parseFloat("".concat(this.x||0));var t=parseFloat("".concat(this.y||0));this.setTransform(e,t)}};e.prototype.render=function(){return h(Host,{onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEnd})};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{x:["watchX"],y:["watchY"],scaleMin:["watchScaleMinOrMax"],scaleMax:["watchScaleMinOrMax"],scaleValue:["watchScaleValue"]}},enumerable:false,configurable:true});return e}();MovableView.style=viewCss;export{MovableArea as taro_movable_area_core,MovableView as taro_movable_view_core};
@@ -1 +0,0 @@
1
- import{r as registerInstance,h,H as Host}from"./index-5e431bb8.js";import{n as notSupport}from"./helper-8a85bb65.js";import"@tarojs/taro";var NativeSlot=function(){function t(t){registerInstance(this,t)}t.prototype.componentDidLoad=function(){notSupport("NativeSlot",this)};t.prototype.render=function(){return h(Host,null)};return t}();export{NativeSlot as taro_native_slot_core};
@@ -1 +0,0 @@
1
- import{r as registerInstance,h,H as Host}from"./index-5e431bb8.js";import{n as notSupport}from"./helper-8a85bb65.js";import"@tarojs/taro";var NavigationBar=function(){function t(t){registerInstance(this,t)}t.prototype.componentDidLoad=function(){notSupport("NavigationBar",this)};t.prototype.render=function(){return h(Host,null)};return t}();export{NavigationBar as taro_navigation_bar_core};
@@ -1 +0,0 @@
1
- import{r as registerInstance,c as createEvent,h,H as Host}from"./index-5e431bb8.js";import Taro from"@tarojs/taro";import{c as classnames}from"./index-b9522531.js";var indexCss=".navigator-hover{background:#efefef}";var Navigator=function(){function e(e){registerInstance(this,e);this.onSuccess=createEvent(this,"cuccess",7);this.onFail=createEvent(this,"fail",7);this.onComplete=createEvent(this,"complete",7);this.hoverClass=undefined;this.url=undefined;this.openType="navigate";this.isHover=false;this.delta=0}e.prototype.onClick=function(){var e=this,a=e.openType,t=e.onSuccess,r=e.onFail,s=e.onComplete;var i=Promise.resolve();switch(a){case"navigate":i=Taro.navigateTo({url:this.url});break;case"redirect":i=Taro.redirectTo({url:this.url});break;case"switchTab":i=Taro.switchTab({url:this.url});break;case"reLaunch":i=Taro.reLaunch({url:this.url});break;case"navigateBack":i=Taro.navigateBack({delta:this.delta});break;case"exit":i=Promise.reject(new Error('navigator:fail 暂不支持"openType: exit"'));break}if(i){i.then((function(e){t.emit(e)})).catch((function(e){r.emit(e)})).finally((function(){s.emit()}))}};e.prototype.render=function(){var e;var a=this,t=a.isHover,r=a.hoverClass;return h(Host,{class:classnames((e={},e[r]=t,e))})};return e}();Navigator.style=indexCss;export{Navigator as taro_navigator_core};
@@ -1 +0,0 @@
1
- import{r as registerInstance,h,H as Host}from"./index-5e431bb8.js";import{n as notSupport}from"./helper-8a85bb65.js";import"@tarojs/taro";var NestedScrollBody=function(){function o(o){registerInstance(this,o)}o.prototype.componentDidLoad=function(){notSupport("NestedScrollBody",this)};o.prototype.render=function(){return h(Host,null)};return o}();export{NestedScrollBody as taro_nested_scroll_body_core};
@@ -1 +0,0 @@
1
- import{r as registerInstance,h,H as Host}from"./index-5e431bb8.js";import{n as notSupport}from"./helper-8a85bb65.js";import"@tarojs/taro";var NestedScrollHeader=function(){function e(e){registerInstance(this,e)}e.prototype.componentDidLoad=function(){notSupport("NestedScrollHeader",this)};e.prototype.render=function(){return h(Host,null)};return e}();export{NestedScrollHeader as taro_nested_scroll_header_core};
@@ -1 +0,0 @@
1
- import{r as registerInstance,h,H as Host}from"./index-5e431bb8.js";import{n as notSupport}from"./helper-8a85bb65.js";import"@tarojs/taro";var OfficialAccount=function(){function t(t){registerInstance(this,t)}t.prototype.componentDidLoad=function(){notSupport("OfficialAccount",this)};t.prototype.render=function(){return h(Host,null)};return t}();export{OfficialAccount as taro_official_account_core};
@@ -1 +0,0 @@
1
- import{r as registerInstance,h,H as Host}from"./index-5e431bb8.js";import{n as notSupport}from"./helper-8a85bb65.js";import"@tarojs/taro";var OpenContainer=function(){function n(n){registerInstance(this,n)}n.prototype.componentDidLoad=function(){notSupport("OpenContainer",this)};n.prototype.render=function(){return h(Host,null)};return n}();export{OpenContainer as taro_open_container_core};
@@ -1 +0,0 @@
1
- import{r as registerInstance,h,H as Host}from"./index-5e431bb8.js";import{n as notSupport}from"./helper-8a85bb65.js";import"@tarojs/taro";var OpenData=function(){function t(t){registerInstance(this,t)}t.prototype.componentDidLoad=function(){notSupport("OpenData",this)};t.prototype.render=function(){return h(Host,null)};return t}();export{OpenData as taro_open_data_core};
@@ -1 +0,0 @@
1
- import{r as registerInstance,h,H as Host}from"./index-5e431bb8.js";import{n as notSupport}from"./helper-8a85bb65.js";import"@tarojs/taro";var PageContainer=function(){function t(t){registerInstance(this,t)}t.prototype.componentDidLoad=function(){notSupport("PageContainer",this)};t.prototype.render=function(){return h(Host,null)};return t}();export{PageContainer as taro_page_container_core};
@@ -1 +0,0 @@
1
- import{r as registerInstance,h,H as Host}from"./index-5e431bb8.js";import{n as notSupport}from"./helper-8a85bb65.js";import"@tarojs/taro";var PageMeta=function(){function t(t){registerInstance(this,t)}t.prototype.componentDidLoad=function(){notSupport("PageMeta",this)};t.prototype.render=function(){return h(Host,null)};return t}();export{PageMeta as taro_page_meta_core};
@@ -1 +0,0 @@
1
- import{r as registerInstance,h,H as Host}from"./index-5e431bb8.js";import{n as notSupport}from"./helper-8a85bb65.js";import"@tarojs/taro";var PanGestureHandler=function(){function r(r){registerInstance(this,r)}r.prototype.componentDidLoad=function(){notSupport("PanGestureHandler",this)};r.prototype.render=function(){return h(Host,null)};return r}();export{PanGestureHandler as taro_pan_gesture_handler_core};
@@ -1 +0,0 @@
1
- import{__awaiter,__generator,__spreadArray}from"tslib";import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-5e431bb8.js";import{c as classnames}from"./index-b9522531.js";function getTimeRange(e,t){var i=[];for(var a=e;a<=t;a++){i.push("".concat(a<10?"0":"").concat(a))}return i}var hoursRange=__spreadArray(__spreadArray(["20","21","22","23"],getTimeRange(0,23),true),["00","01","02","03"],false);var minutesRange=__spreadArray(__spreadArray(["56","57","58","59"],getTimeRange(0,59),true),["00","01","02","03"],false);function verifyValue(e,t){if(!isNaN(+e)&&e>=0&&e<t.length)return true;return false}function verifyTime(e){if(!/^\d{1,2}:\d{1,2}$/.test(e))return false;var t=e.split(":").map((function(e){return+e}));if(t[0]<0||t[0]>23)return false;if(t[1]<0||t[1]>59)return false;return true}function compareTime(e,t){var i=e.split(":").map((function(e){return+e}));var a=t.split(":").map((function(e){return+e}));if(i[0]<a[0])return true;if(i[0]===a[0]&&i[1]<=a[1])return true;return false}function verifyDate(e){if(!e)return false;var t=new Date(e.replace(/-/g,"/"));return isNaN(t.getMonth())?false:t}function getMaxDay(e,t){if(t===4||t===6||t===9||t===11)return 30;if(t===2){if(e%4===0&&e%100!==0||e%400===0)return 29;else return 28}return 31}function formatValue(e){var t;if(Array.isArray(e)){t=e.map((function(e){return String(e)}))}else{t=e}return t}function getDateRange(e,t){var i=[];for(var a=e;a<=t;a++){i.push(a)}return i}function getYearRange(e,t){return getDateRange(e,t)}function getMonthRange(e,t,i){var a=1;var r=12;if(e.getFullYear()===i){a=e.getMonth()+1}if(t.getFullYear()===i){r=t.getMonth()+1}return getDateRange(a,r)}function getDayRange(e,t,i,a){var r=1;var n=getMaxDay(i,a);if(e.getFullYear()===i&&e.getMonth()+1===a){r=e.getDate()}if(t.getFullYear()===i&&t.getMonth()+1===a){n=t.getDate()}return getDateRange(r,n)}var TOP=102;var LINE_HEIGHT=34;var MASK_HEIGHT=LINE_HEIGHT*7;var indexCss='.weui-mask{z-index:1000;background:rgba(0,0,0,.6);position:fixed;inset:0}.weui-mask_transparent{z-index:1000;position:fixed;inset:0}@-webkit-keyframes weuiSlideUp{0%{-webkit-transform:translateY(100%);transform:translateY(100%)}to{-webkit-transform:translate(0,0);transform:translate(0,0)}}@keyframes weuiSlideUp{0%{-webkit-transform:translateY(100%);transform:translateY(100%)}to{-webkit-transform:translate(0,0);transform:translate(0,0)}}.weui-animate-slide-up{-webkit-animation:.3s forwards weuiSlideUp;animation:.3s forwards weuiSlideUp}@-webkit-keyframes weuiSlideDown{0%{-webkit-transform:translate(0,0);transform:translate(0,0)}to{-webkit-transform:translateY(100%);transform:translateY(100%)}}@keyframes weuiSlideDown{0%{-webkit-transform:translate(0,0);transform:translate(0,0)}to{-webkit-transform:translateY(100%);transform:translateY(100%)}}.weui-animate-slide-down{-webkit-animation:.3s forwards weuiSlideDown;animation:.3s forwards weuiSlideDown}@-webkit-keyframes weuiFadeIn{0%{opacity:0}to{opacity:1}}@keyframes weuiFadeIn{0%{opacity:0}to{opacity:1}}.weui-animate-fade-in{-webkit-animation:.3s forwards weuiFadeIn;animation:.3s forwards weuiFadeIn}@-webkit-keyframes weuiFadeOut{0%{opacity:1}to{opacity:0}}@keyframes weuiFadeOut{0%{opacity:1}to{opacity:0}}.weui-animate-fade-out{-webkit-animation:.3s forwards weuiFadeOut;animation:.3s forwards weuiFadeOut}.weui-picker{-webkit-box-sizing:border-box;box-sizing:border-box;z-index:5000;background-color:var(--weui-BG-2);padding-left:0;padding-left:constant(safe-area-inset-left);padding-left:env(safe-area-inset-left);padding-right:0;padding-right:constant(safe-area-inset-right);padding-right:env(safe-area-inset-right);-webkit-backface-visibility:hidden;backface-visibility:hidden;width:100%;-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s, -webkit-transform .3s;position:fixed;bottom:0;left:0;-webkit-transform:translateY(100%);transform:translateY(100%)}.weui-picker__hd{text-align:center;background-color:#fff;padding:9px 15px;font-size:17px;display:-ms-flexbox;display:flex;position:relative}.weui-picker__hd:after{content:" ";color:#e5e5e5;-webkit-transform-origin:0 100%;transform-origin:0 100%;border-bottom:1px solid #e5e5e5;height:1px;position:absolute;bottom:0;left:0;right:0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.weui-picker__action{color:#1aad19;-ms-flex:1;flex:1;display:block}.weui-picker__action:first-child{text-align:left;color:#888}.weui-picker__action:last-child{text-align:right}.weui-picker__bd{background-color:#fff;height:238px;display:-ms-flexbox;display:flex;position:relative;overflow:hidden}.weui-picker__group{-ms-flex:1;flex:1;height:100%;position:relative}.weui-picker__mask{z-index:3;background-color:transparent;background-image:-webkit-gradient(linear,left top, left bottom,from(rgba(255,255,255,.95)),to(rgba(255,255,255,.6))),-webkit-gradient(linear,left top, left bottom,from(rgba(255,255,255,.6)),to(rgba(255,255,255,.95)));background-image:linear-gradient(rgba(255,255,255,.95),rgba(255,255,255,.6)),linear-gradient(rgba(255,255,255,.6),rgba(255,255,255,.95));background-position:top,bottom;background-repeat:no-repeat;background-size:100% 102px;background-attachment:scroll,scroll;background-origin:padding-box,padding-box;background-clip:border-box,border-box;width:100%;height:100%;margin:0 auto;position:absolute;top:0;left:0;-webkit-transform:translateZ(0);transform:translateZ(0)}.weui-picker__indicator{z-index:3;width:100%;height:34px;position:absolute;top:102px;left:0}.weui-picker__indicator:before{content:" ";color:#e5e5e5;-webkit-transform-origin:0 0;transform-origin:0 0;border-top:1px solid #e5e5e5;height:1px;position:absolute;top:0;left:0;right:0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.weui-picker__indicator:after{content:" ";color:#e5e5e5;-webkit-transform-origin:0 100%;transform-origin:0 100%;border-bottom:1px solid #e5e5e5;height:1px;position:absolute;bottom:0;left:0;right:0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.weui-picker__content{width:100%;position:absolute;top:0;left:0}.weui-picker__item{text-align:center;color:#000;text-overflow:ellipsis;white-space:nowrap;height:34px;padding:0;line-height:34px;overflow:hidden}.weui-picker__item_disabled{color:#999}.weui-picker,.weui-picker__hd{font-size:12px}';var Picker=function(){function e(e){var t=this;registerInstance(this,e);this.onChange=createEvent(this,"change",7);this.onColumnChange=createEvent(this,"columnchange",7);this.onCancel=createEvent(this,"cancel",7);this.index=[];this.showPicker=function(){if(t.disabled)return;t.height=t.getHeightByIndex();t.hidden=false};this.getHeightByIndex=function(){var e=t.index.map((function(e){var i=0;if(t.mode==="time"){i=LINE_HEIGHT*4}return TOP-LINE_HEIGHT*e-i}));return e};this.hidePicker=function(){t.fadeOut=true;setTimeout((function(){t.hidden=true;t.fadeOut=false}),350)};this.handleChange=function(){t.hidePicker();t.index=t.height.map((function(e){return(TOP-e)/LINE_HEIGHT}));var e=t.index.length&&t.mode!=="selector"?t.index:t.index[0];if(t.mode==="time"){var i=[hoursRange.slice(),minutesRange.slice()];var a=t.index.map((function(e,t){return i[t][e]}));t.index=a.map((function(e){return parseInt(e)}));e=a.join(":")}if(t.mode==="date"){var r=t.pickerDate,n=r._start,o=r._end,s=r._updateValue;var u=s[0];var h=s[1];var l=getYearRange(n.getFullYear(),o.getFullYear());var d=getMonthRange(n,o,u);var c=getDayRange(n,o,u,h);var f=l[t.index[0]];var p=d[t.index[1]];var g=c[t.index[2]];if(t.fields==="year"){e=[f]}else if(t.fields==="month"){e=[f,p]}else{e=[f,p,g]}e=e.map((function(e){return e<10?"0".concat(e):e})).join("-")}t.value=e;t.pickerValue=t.value;t.onChange.emit({value:e})};this.handleColumnChange=function(e){var i=e.detail,a=i.columnId,r=i.height;t.onColumnChange.emit({column:Number(a),value:(TOP-r)/LINE_HEIGHT})};this.handleCancel=function(){t.hidePicker();t.onCancel.emit()};this.updateHeight=function(e,i,a){if(a===void 0){a=false}var r=__spreadArray([],t.height,true);r[i]=e;t.height=r;if(a){var n=t,o=n.start,s=n.end;if(!verifyTime(o))o="00:00";if(!verifyTime(s))s="23:59";if(!compareTime(o,s))return;var u=[hoursRange.slice(),minutesRange.slice()];var h=t.height.map((function(e){return(TOP-e)/LINE_HEIGHT}));var l=h.map((function(e,t){return u[t][e]})).join(":");if(!compareTime(o,l)){var d=o.split(":").map((function(e){return TOP-LINE_HEIGHT*(+e+4)}));requestAnimationFrame((function(){return t.height=d}))}else if(!compareTime(l,s)){var c=s.split(":").map((function(e){return TOP-LINE_HEIGHT*(+e+4)}));requestAnimationFrame((function(){return t.height=c}))}}};this.updateDay=function(e,i){var a=t.pickerDate,r=a._start,n=a._end,o=a._updateValue;o[i]=e;var s=o[0];var u=o[1];var h=o[2];if(i===0){var l=getMonthRange(r,n,s);var d=l[l.length-1];var c=l[0];if(u>d)o[1]=d;if(u<c)o[1]=c;var f=l.indexOf(o[1]);var p=TOP-LINE_HEIGHT*f;t.updateDay(o[1],1);t.updateHeight(p,"1")}else if(i===1){var g=getDayRange(r,n,s,u);var d=g[g.length-1];var c=g[0];if(h>d)o[2]=d;if(h<c)o[2]=c;var f=g.indexOf(o[2]);var p=TOP-LINE_HEIGHT*f;t.updateDay(o[2],2);t.updateHeight(p,"2")}};this.getSelector=function(){return h("taro-picker-group",{range:t.range,rangeKey:t.rangeKey,height:t.height[0],updateHeight:t.updateHeight,columnId:"0"})};this.getMultiSelector=function(){return t.range.map((function(e,i){return h("taro-picker-group",{range:e,rangeKey:t.rangeKey,height:t.height[i],updateHeight:t.updateHeight,onColumnChange:t.handleColumnChange,columnId:String(i)})}))};this.getTimeSelector=function(){var e=hoursRange.slice();var i=minutesRange.slice();return[h("taro-picker-group",{mode:"time",range:e,height:t.height[0],updateHeight:t.updateHeight,columnId:"0"}),h("taro-picker-group",{mode:"time",range:i,height:t.height[1],updateHeight:t.updateHeight,columnId:"1"})]};this.getDateSelector=function(){var e=t,i=e.fields,a=e.height;var r=t.pickerDate,n=r._start,o=r._end,s=r._updateValue;var u=s[0];var l=s[1];var d=getYearRange(n.getFullYear(),o.getFullYear()).map((function(e){return"".concat(e,"年")}));var c=getMonthRange(n,o,u).map((function(e){return"".concat(e<10?"0".concat(e):e,"月")}));var f=getDayRange(n,o,u,l).map((function(e){return"".concat(e<10?"0".concat(e):e,"日")}));var p=[h("taro-picker-group",{mode:"date",range:d,height:a[0],updateDay:t.updateDay,updateHeight:t.updateHeight,columnId:"0"})];if(i==="month"||i==="day"){p.push(h("taro-picker-group",{mode:"date",range:c,height:a[1],updateDay:t.updateDay,updateHeight:t.updateHeight,columnId:"1"}))}if(i==="day"){p.push(h("taro-picker-group",{mode:"date",range:f,height:a[2],updateDay:t.updateDay,updateHeight:t.updateHeight,columnId:"2"}))}return p};this.mode="selector";this.disabled=false;this.range=[];this.rangeKey=undefined;this.value=undefined;this.start="";this.end="";this.fields="day";this.name="";this.textProps={};this.pickerValue=[];this.height=[];this.hidden=true;this.fadeOut=false;this.isWillLoadCalled=false}e.prototype.componentWillLoad=function(){this.isWillLoadCalled=true;this.handleProps()};e.prototype.componentDidLoad=function(){if(this.overlay){document.body.appendChild(this.overlay)}};e.prototype.disconnectedCallback=function(){var e;if(this.overlay){(e=this.overlay.parentNode)===null||e===void 0?void 0:e.removeChild(this.overlay)}};e.prototype.onPropsChange=function(){if(!this.isWillLoadCalled)return;this.handleProps()};e.prototype.handleProps=function(){var e=this;var t=this,i=t.mode,a=t.start,r=t.end;if(i==="selector"){var n=this.value;this.index=[verifyValue(n,this.range)?Math.floor(n):0]}else if(i==="multiSelector"){var o=this.value;this.index=[];this.range.forEach((function(t,i){var a=o===null||o===void 0?void 0:o[i];var r=verifyValue(a,t)?Math.floor(a):0;e.index.push(r)}))}else if(i==="time"){var n=this.value;if(!verifyTime(n)){console.warn("time picker value illegal");n="0:0"}var s=n.split(":").map((function(e){return+e}));this.index=s}else if(i==="date"){var n=this.value;var u=verifyDate(n)||new Date((new Date).setHours(0,0,0,0));var h=verifyDate(a)||new Date("1970/01/01");var l=verifyDate(r)||new Date("2999/01/01");if(!(h<=l)){throw new Error("Picker start time must be less than end time.")}if(!(u>=h&&u<=l)){u=h}var d=u.getFullYear();var c=u.getMonth()+1;var f=u.getDate();var p=getYearRange(h.getFullYear(),l.getFullYear());var g=getMonthRange(h,l,d);var m=getDayRange(h,l,d,c);this.index=[p.indexOf(d),g.indexOf(c),m.indexOf(f)];if(!this.pickerDate||this.pickerDate._value.getTime()!==u.getTime()||this.pickerDate._start.getTime()!==h.getTime()||this.pickerDate._end.getTime()!==l.getTime()){this.pickerDate={_value:u,_start:h,_end:l,_updateValue:[d,c,f]}}}else{throw new Error('Picker not support "'.concat(i,'" mode.'))}this.height=this.getHeightByIndex();this.pickerValue=this.value;if(i==="date"){var v=this.pickerValue;if(this.fields==="month"){this.pickerValue=v.split("-").slice(0,2).join("-")}else if(this.fields==="year"){this.pickerValue=v.split("-")[0]}}};e.prototype.render=function(){var e=this;var t,i;var a=this,r=a.name,n=a.mode,o=a.fadeOut,s=a.hidden;var u;switch(n){case"multiSelector":u=this.getMultiSelector();break;case"time":u=this.getTimeSelector();break;case"date":u=this.getDateSelector();break;default:u=this.getSelector()}var l=classnames("weui-mask","weui-animate-fade-in",{"weui-animate-fade-out":o});var d=classnames("weui-picker","weui-animate-slide-up",{"weui-animate-slide-down":o});var c=s?{display:"none"}:{};return h(Host,null,h("div",{onClick:this.showPicker},h("slot",null),h("input",{type:"hidden",name:r,value:formatValue(this.pickerValue)})),h("div",{class:"weui-picker__overlay",style:c,ref:function(t){e.overlay=t}},h("div",{class:l,onClick:this.handleCancel}),h("div",{class:d},h("div",{class:"weui-picker__hd"},h("div",{class:"weui-picker__action",onClick:this.handleCancel},(t=this.textProps.cancelText)!==null&&t!==void 0?t:"取消"),h("div",{class:"weui-picker__action",onClick:this.handleChange},(i=this.textProps.okText)!==null&&i!==void 0?i:"确定")),h("div",{class:"weui-picker__bd"},u),h("input",{type:"hidden",name:r,value:formatValue(this.pickerValue)}))))};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{mode:["onPropsChange"],value:["onPropsChange"],range:["onPropsChange"],start:["onPropsChange"],end:["onPropsChange"]}},enumerable:false,configurable:true});return e}();Picker.style=indexCss;var TaroPickerGroup=function(){function e(e){registerInstance(this,e);this.onColumnChange=createEvent(this,"columnChange",7);this.mode=undefined;this.range=[];this.rangeKey=undefined;this.height=undefined;this.columnId=undefined;this.updateHeight=undefined;this.updateDay=undefined;this.startY=undefined;this.preY=undefined;this.hadMove=undefined;this.touchEnd=undefined;this.isMove=undefined}e.prototype.getPosition=function(){var e=this.touchEnd?.3:0;var t="translate3d(0, ".concat(this.height,"px, 0)");var i="transform ".concat(e,"s");return{transform:t,"-webkit-transform":t,transition:i,"-webkit-transition":i}};e.prototype.formulaUnlimitedScroll=function(e,t,i){var a=this;var r=this,n=r.height,o=r.updateHeight,s=r.columnId;var u=i==="up"?1:-1;this.touchEnd=false;o(-e*u*LINE_HEIGHT+n,s);requestAnimationFrame((function(){a.touchEnd=true;var i=Math.round(t/-LINE_HEIGHT)+e*u;var r=TOP-LINE_HEIGHT*i;o(r,s,true)}))};e.prototype.handleMoveStart=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.startY=e;this.preY=e;this.hadMove=false;return[2]}))}))};e.prototype.handleMoving=function(e){return __awaiter(this,void 0,void 0,(function(){var t,i,a;return __generator(this,(function(r){t=e;i=t-this.preY;this.preY=t;this.touchEnd=false;if(Math.abs(t-this.startY)>10)this.hadMove=true;a=this.height+i;if(this.mode==="time"){if(this.columnId==="0"){if(a>TOP-LINE_HEIGHT*3){a=TOP-LINE_HEIGHT*27+i}if(a<TOP-LINE_HEIGHT*28){a=TOP-LINE_HEIGHT*4+i}}else if(this.columnId==="1"){if(a>TOP-LINE_HEIGHT*3){a=TOP-LINE_HEIGHT*63+i}if(a<TOP-LINE_HEIGHT*64){a=TOP-LINE_HEIGHT*4+i}}}this.updateHeight(a,this.columnId);return[2]}))}))};e.prototype.handleMoveEnd=function(e){return __awaiter(this,void 0,void 0,(function(){var t,i,a,r,n,o,s,u,h,l,d,c,f,p;return __generator(this,(function(g){t=this,i=t.mode,a=t.range,r=t.height,n=t.updateHeight,o=t.columnId;s=0;u=-LINE_HEIGHT*(a.length-1);h=e;this.touchEnd=true;if(!this.hadMove){d=window.innerHeight;c=d-MASK_HEIGHT/2;l=r-TOP-(h-c);if(i==="time"){if(o==="0"){if(l>-LINE_HEIGHT*2.5){return[2,this.formulaUnlimitedScroll(24,l,"up")]}if(l<-LINE_HEIGHT*28.5){return[2,this.formulaUnlimitedScroll(24,l,"down")]}}else if(o==="1"){if(l>-LINE_HEIGHT*2.5){return[2,this.formulaUnlimitedScroll(60,l,"up")]}if(l<-LINE_HEIGHT*64.5){return[2,this.formulaUnlimitedScroll(60,l,"down")]}}}}else{l=r-TOP}if(l>s)l=0;if(l<u)l=u;f=Math.round(l/-LINE_HEIGHT);p=TOP-LINE_HEIGHT*f;if(this.mode==="date"&&typeof this.updateDay==="function"){if(this.columnId==="0"){this.updateDay(+this.range[f].replace(/[^0-9]/gi,""),0)}if(this.columnId==="1"){this.updateDay(+this.range[f].replace(/[^0-9]/gi,""),1)}if(this.columnId==="2"){this.updateDay(+this.range[f].replace(/[^0-9]/gi,""),2)}}n(p,o,i==="time");this.onColumnChange.emit({columnId:o,height:p});return[2]}))}))};e.prototype.onMouseDown=function(e){this.isMove=true;this.handleMoveStart(e.clientY)};e.prototype.onMouseMove=function(e){if(!this.isMove)return;this.handleMoving(e.clientY)};e.prototype.onMouseMoveEnd=function(e){if(!this.isMove)return;this.isMove=false;this.handleMoveEnd(e.clientY)};e.prototype.onTouchStart=function(e){this.handleMoveStart(e.changedTouches[0].clientY)};e.prototype.onTouchMove=function(e){this.handleMoving(e.changedTouches[0].clientY)};e.prototype.onTouchEnd=function(e){this.handleMoveEnd(e.changedTouches[0].clientY)};e.prototype.render=function(){var e=this,t=e.range,i=e.rangeKey;var a=t.map((function(e){var t=i?e[i]:e;return h("div",{class:"weui-picker__item"},t)}));return h(Host,{class:"weui-picker__group"},h("div",{class:"weui-picker__mask"}),h("div",{class:"weui-picker__indicator"}),h("div",{class:"weui-picker__content",style:this.getPosition()},a))};return e}();export{Picker as taro_picker_core,TaroPickerGroup as taro_picker_group};
@@ -1 +0,0 @@
1
- import{r as registerInstance,c as createEvent,h,g as getElement,H as Host}from"./index-5e431bb8.js";import{d as debounce}from"./index-a00a7418.js";import{c as classnames}from"./index-b9522531.js";function convertStyle(e){if(e){var t=/([\w-]*)\s*:\s*([^;]*)/g;var i={};var n=void 0;while(n=t.exec(e))i["".concat(n[1])]=n[2].trim();return i}}var columnCss=".taro-picker-view-column-container{text-align:center;-ms-flex-direction:column;flex-direction:column;-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;position:relative;overflow:hidden scroll}.taro-picker-view-column-container::-webkit-scrollbar{display:none}";var PickerViewColumn=function(){function e(e){var t=this;registerInstance(this,e);this.onChange=createEvent(this,"onselect",7);this.onSelectStart=createEvent(this,"onselectstart",7);this.onSelectEnd=createEvent(this,"onselectend",7);this.handleSelected=debounce((function(){var e=t.el.childNodes;var i=0;var n="0";for(var o in e){var r=e[o];var a=r.offsetHeight;if(i+a/2>t.el.scrollTop){n=o;break}i+=a}t.el.scrollTo({top:i,behavior:"smooth"});t.onChange.emit({curIndex:t.col,selectedIndex:n});t.onSelectEnd.emit()}),500);this.col=undefined;this.initialPosition="0";this.paddingVertical=0;this.isInit=false}e.prototype.onTouchStart=function(){this.onSelectStart.emit()};e.prototype.onTouchEnd=function(){this.handleSelected()};e.prototype.componentDidLoad=function(){this.handleChange()};e.prototype.componentDidUpdate=function(){this.handleChange()};e.prototype.handleChange=function(){var e=this.el.childNodes;var t=0;var i=0;for(var n in e){var o=e[n];if(this.initialPosition===n||!o||typeof o.offsetHeight!=="number"){break}i+=o.offsetHeight;t++}this.el.scrollTo({top:i});if(t>=e.length){this.onChange.emit({curIndex:this.col,selectedIndex:t-1})}};e.prototype.render=function(){var e=this.paddingVertical,t=e===void 0?0:e;return h(Host,{class:"taro-picker-view-column-container",style:{"padding-top":"".concat(t,"px"),"padding-bottom":"".concat(t,"px")}})};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();PickerViewColumn.style=columnCss;var indexCss=".taro-picker-view-container{display:-ms-flexbox;display:flex;position:relative}.taro-picker-view-mask-container{pointer-events:none;-ms-flex-direction:column;flex-direction:column;display:-ms-flexbox;display:flex;position:absolute;inset:0}.taro-picker-view-mask-indicator{border-top:1px solid #ddd;border-bottom:1px solid #ddd;height:50px;display:-ms-flexbox;display:flex}.taro-picker-view-mask-top{background-image:-webkit-gradient(linear,left top, left bottom,from(rgba(255,255,255,.95)),to(rgba(255,255,255,.6)));background-image:linear-gradient(rgba(255,255,255,.95),rgba(255,255,255,.6));-ms-flex:1;flex:1}.taro-picker-view-mask-bottom{background:-webkit-gradient(linear,left top, left bottom,from(rgba(255,255,255,.6)),to(rgba(255,255,255,.95)));background:linear-gradient(rgba(255,255,255,.6),rgba(255,255,255,.95));-ms-flex:1;flex:1}";var PickerView=function(){function e(e){registerInstance(this,e);this.onChange=createEvent(this,"change",7);this.onPickStart=createEvent(this,"pickstart",7);this.onPickEnd=createEvent(this,"pickend",7);this.indicatorStyle=undefined;this.indicatorClass=undefined;this.value=undefined;this.maskStyle=undefined;this.maskClass=undefined}e.prototype.onPropsChange=function(){this.handleValueChange()};e.prototype.onSelect=function(e){e.stopPropagation();if(e.target.tagName!=="TARO-PICKER-VIEW-COLUMN-CORE")return;var t=+e.detail.curIndex;var i=+e.detail.selectedIndex;this.value[t]=i;this.onChange.emit({value:this.value})};e.prototype.onSelectStart=function(e){e.stopPropagation();if(e.target.tagName!=="TARO-PICKER-VIEW-COLUMN-CORE")return;this.onPickStart.emit()};e.prototype.onPickerColEnd=function(e){e.stopPropagation();if(e.target.tagName!=="TARO-PICKER-VIEW-COLUMN-CORE")return;this.onPickEnd.emit()};e.prototype.componentDidLoad=function(){this.handleValueChange()};e.prototype.handleValueChange=function(){var e=this;var t=this.el.querySelectorAll("taro-picker-view-column-core");t.forEach((function(t,i){var n;t.setAttribute("col","".concat(i));var o=0;if(!!e.value&&e.value.length>i){o=e.value[i]}var r=e.el.getBoundingClientRect().height;var a=((n=e.indicator)===null||n===void 0?void 0:n.offsetHeight)||0;var s=(r-a)/2;t.setAttribute("initial-position","".concat(o));t.setAttribute("padding-vertical","".concat(s))}))};e.prototype.componentDidRender=function(){var e=this;this.el.childNodes.forEach((function(t){var i=t;if("TARO-PICKER-VIEW-COLUMN-CORE"!==i.tagName&&i.className!=="taro-picker-view-mask-container"){e.el.removeChild(t)}}))};e.prototype.render=function(){var e=this;var t=classnames("taro-picker-view-mask-indicator",this.indicatorClass);var i=classnames("taro-picker-view-mask-top",this.maskClass);var n=classnames("taro-picker-view-mask-bottom",this.maskClass);var o=convertStyle(this.indicatorStyle);var r=convertStyle(this.maskStyle);var a=convertStyle(this.maskStyle);return h(Host,{class:"taro-picker-view-container"},h("slot",null),h("div",{class:"taro-picker-view-mask-container"},h("div",{class:i,style:r}),h("div",{class:t,style:o,ref:function(t){return e.indicator=t}}),h("div",{class:n,style:a})))};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{value:["onPropsChange"]}},enumerable:false,configurable:true});return e}();PickerView.style=indexCss;export{PickerViewColumn as taro_picker_view_column_core,PickerView as taro_picker_view_core};
@@ -1 +0,0 @@
1
- import{r as registerInstance,h,H as Host}from"./index-5e431bb8.js";var indexCss=".weui-progress{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex}.weui-progress__bar{background-color:#ebebeb;-ms-flex:1;flex:1;height:3px}.weui-progress__inner-bar{background-color:#09bb07;width:0;height:100%}.weui-progress__opr{margin-left:15px;font-size:0;display:block}";var Progress=function(){function r(r){registerInstance(this,r);this.percent=0;this.showInfo=false;this.borderRadius=0;this.fontSize=16;this.strokeWidth=6;this.activeColor="#09BB07";this.backgroundColor="#EBEBEB";this.active=false}r.prototype.render=function(){var r=this,e=r.percent,s=r.showInfo,o=r.borderRadius,i=r.fontSize,t=r.strokeWidth,n=r.activeColor,a=r.backgroundColor,c=r.active;var l=e>100?100:e<0?0:e;var d={height:t+"px",backgroundColor:a};var p=c?"width 1s ease-in-out":"none";var g={width:"".concat(l,"%"),transition:p,WebkitTransition:p,backgroundColor:n,borderRadius:o?"".concat(o,"px"):"0px"};return h(Host,{class:"weui-progress"},h("div",{class:"weui-progress__bar",style:d},h("div",{class:"weui-progress__inner-bar",style:g})),s&&h("div",{class:"weui-progress__opr",style:{"font-size":"".concat(i,"px")}},h("span",null,l,"%")))};return r}();Progress.style=indexCss;export{Progress as taro_progress_core};
@@ -1 +0,0 @@
1
- import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-5e431bb8.js";import Taro from"@tarojs/taro";import{c as classnames}from"./index-b9522531.js";var indexCss=".rmc-pull-to-refresh-content{-webkit-transform-origin:0 0;transform-origin:0 0}.rmc-pull-to-refresh-content-wrapper{min-height:100%}.rmc-pull-to-refresh-transition{-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s, -webkit-transform .3s}@-webkit-keyframes rmc-pull-to-refresh-indicator{50%{opacity:.2}to{opacity:1}}@keyframes rmc-pull-to-refresh-indicator{50%{opacity:.2}to{opacity:1}}.rmc-pull-to-refresh-indicator{text-align:center;height:30px;line-height:10px}.rmc-pull-to-refresh-indicator>div{background-color:gray;border-radius:100%;width:6px;height:6px;margin:3px;-webkit-animation:.5s linear infinite both rmc-pull-to-refresh-indicator;animation:.5s linear infinite both rmc-pull-to-refresh-indicator;display:inline-block}.rmc-pull-to-refresh-indicator>div:nth-child(0){-webkit-animation-delay:-.1s!important;animation-delay:-.1s!important}.rmc-pull-to-refresh-indicator>div:first-child{-webkit-animation-delay:-.2s!important;animation-delay:-.2s!important}.rmc-pull-to-refresh-indicator>div:nth-child(2){-webkit-animation-delay:-.3s!important;animation-delay:-.3s!important}.rmc-pull-to-refresh-down .rmc-pull-to-refresh-indicator{margin-top:-25px}";function setTransform(e,t){e.transform=t;e.webkitTransform=t;e.MozTransform=t}var isWebView=typeof navigator!=="undefined"&&/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(navigator.userAgent);var INDICATOR={activate:"release",deactivate:"pull",release:"loading",finish:"finish"};var supportsPassive=false;try{var opts=Object.defineProperty({},"passive",{get:function(){supportsPassive=true}});window.addEventListener("cancel",(function(){return{}}),opts)}catch(e){}var willPreventDefault=supportsPassive?{passive:false}:false;var PullToRefresh=function(){function e(e){var t=this;registerInstance(this,e);this.onRefresh=createEvent(this,"refresh",7);this._ScreenY=0;this._startScreenY=0;this._lastScreenY=0;this._isMounted=false;this.triggerPullDownRefresh=function(e){if(!t.dragOnEdge&&t._isMounted){if(e){t._lastScreenY=t.distanceToRefresh+1;t.currSt="release";t.setContentStyle(t._lastScreenY)}else{t.currSt="finish";t.reset()}}};this.init=function(){var e=t.scrollContainer;var r=t.el.querySelector(".rmc-pull-to-refresh-content");t.el.appendChild=r===null||r===void 0?void 0:r.appendChild.bind(r);t.el.insertBefore=r===null||r===void 0?void 0:r.insertBefore.bind(r);t.el.replaceChild=r===null||r===void 0?void 0:r.replaceChild.bind(r);t.el.removeChild=r===null||r===void 0?void 0:r.removeChild.bind(r);t._to={touchstart:t.onTouchStart.bind(t,e),touchmove:t.onTouchMove.bind(t,e),touchend:t.onTouchEnd.bind(t,e),touchcancel:t.onTouchEnd.bind(t,e)};Object.keys(t._to).forEach((function(r){e.addEventListener(r,t._to[r],willPreventDefault)}))};this.destroy=function(){if(!t._to)return;var e=t.scrollContainer;Object.keys(t._to).forEach((function(r){e.removeEventListener(r,t._to[r])}))};this.onTouchStart=function(e,r){t._ScreenY=t._startScreenY=r.touches[0].screenY;t._lastScreenY=t._lastScreenY||0};this.isEdge=function(e){var r=t.scrollContainer;if(r&&r===document.body){var n=document.scrollingElement?document.scrollingElement:document.body;return n.scrollTop<=0}return e.scrollTop<=0};this.damp=function(e){if(Math.abs(t._lastScreenY)>t.damping){return 0}var r=Math.abs(t._ScreenY-t._startScreenY)/window.screen.height;e*=(1-r)*.6;return e};this.onTouchMove=function(e,r){var n=r.touches[0].screenY;if(t._startScreenY>n){return}if(t.isEdge(e)){if(!t.dragOnEdge){t._ScreenY=t._startScreenY=r.touches[0].screenY;t.dragOnEdge=true}if(r.cancelable){r.preventDefault()}var i=Math.round(n-t._ScreenY);t._ScreenY=n;t._lastScreenY+=t.damp(i);t.setContentStyle(t._lastScreenY);if(Math.abs(t._lastScreenY)<t.distanceToRefresh){if(t.currSt!=="deactivate"){t.currSt="deactivate"}}else{if(t.currSt==="deactivate"){t.currSt="activate"}}if(isWebView&&r.changedTouches[0].clientY<0){t.onTouchEnd()}}};this.onTouchEnd=function(){if(t.dragOnEdge){t.dragOnEdge=false}if(t.currSt==="activate"){t.currSt="release";t.onRefresh.emit(t);t._lastScreenY=t.distanceToRefresh+1;t.setContentStyle(t._lastScreenY)}else if(t.currSt==="release"){t._lastScreenY=t.distanceToRefresh+1;t.setContentStyle(t._lastScreenY)}else{t.reset()}};this.reset=function(){t._lastScreenY=0;t.setContentStyle(0)};this.setContentStyle=function(e){if(t.contentRef){if(e){setTransform(t.contentRef.style,"translate3d(0px,".concat(e,"px,0)"))}else{setTransform(t.contentRef.style,"")}}};this.prefixCls="rmc-pull-to-refresh";this.distanceToRefresh=50;this.damping=100;this.indicator=INDICATOR;this.currSt="deactivate";this.dragOnEdge=false}Object.defineProperty(e.prototype,"scrollContainer",{get:function(){return this.el.parentElement||this.el.closest(".taro_page_stationed")||document.querySelector(".taro_page_stationed")||document.querySelector(".taro_page")||document.querySelector(".taro_router")||document.querySelector(".taro-tabbar__panel")||document.body},enumerable:false,configurable:true});e.prototype.statusChange=function(){var e,t,r,n;var i=this.scrollContainer;switch(this.currSt){case"release":(t=(e=i===null||i===void 0?void 0:i.__page)===null||e===void 0?void 0:e.onPullDownRefresh)===null||t===void 0?void 0:t.call(e);break;case"deactivate":(n=(r=i===null||i===void 0?void 0:i.__page)===null||r===void 0?void 0:r.onPullIntercept)===null||n===void 0?void 0:n.call(r)}};e.prototype.disconnectedCallback=function(){this.destroy()};e.prototype.componentDidLoad=function(){var e=this;this.init();this._isMounted=true;Taro.eventCenter.on("__taroStartPullDownRefresh",(function(t){var r=t.successHandler,n=t.errorHandler;try{e.triggerPullDownRefresh(true);r({errMsg:"startPullDownRefresh: ok"})}catch(e){n({errMsg:"startPullDownRefresh: fail"})}}));Taro.eventCenter.on("__taroStopPullDownRefresh",(function(t){var r=t.successHandler,n=t.errorHandler;setTimeout((function(){try{e.triggerPullDownRefresh(false);r({errMsg:"stopPullDownRefresh: ok"})}catch(e){n({errMsg:"stopPullDownRefresh: fail"})}}),0)}))};e.prototype.render=function(){var e=this;var t=function(t){var r=e,n=r.currSt,i=r.dragOnEdge,o=r.prefixCls;var s=classnames(t,!i&&"".concat(o,"-transition"));var a=n==="activate"||n==="release";return h("div",{class:"".concat(o,"-content-wrapper")},h("div",{class:s,ref:function(t){e.contentRef=t}},a&&h("div",{class:"".concat(o,"-indicator")},h("div",null),h("div",null),h("div",null)),h("slot",null)))};if(this.scrollContainer){return t("".concat(this.prefixCls,"-content ").concat(this.prefixCls,"-down"))}return h(Host,{class:classnames(this.prefixCls,"".concat(this.prefixCls,"-down"))},t("".concat(this.prefixCls,"-content")))};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{currSt:["statusChange"]}},enumerable:false,configurable:true});return e}();PullToRefresh.style=indexCss;export{PullToRefresh as taro_pull_to_refresh_core};
@@ -1 +0,0 @@
1
- import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-5e431bb8.js";var Radio=function(){function e(e){var t=this;registerInstance(this,e);this.onChange=createEvent(this,"radiochange",7);this.handleClick=function(e){e.stopPropagation();if(t.disabled)return;if(!t.checked)t.checked=true};this.name=undefined;this.value="";this.id=undefined;this.checked=false;this.disabled=false;this.nativeProps={};this.isWillLoadCalled=false}e.prototype.watchChecked=function(e){if(!this.isWillLoadCalled)return;e&&this.onChange.emit({value:this.value})};e.prototype.watchId=function(e){if(!this.isWillLoadCalled)return;if(e)this.inputEl.setAttribute("id",e)};e.prototype.componentDidRender=function(){this.id&&this.el.removeAttribute("id")};e.prototype.componentWillLoad=function(){this.isWillLoadCalled=true};e.prototype.render=function(){var e=this;var t=this,i=t.checked,r=t.name,a=t.value,o=t.disabled,n=t.nativeProps;return h(Host,{className:"weui-cells_checkbox",onClick:this.handleClick},h("input",Object.assign({ref:function(t){if(!t)return;e.inputEl=t;if(e.id)t.setAttribute("id",e.id)},type:"radio",name:r,value:a,class:"weui-check",checked:i,disabled:o,onChange:function(e){return e.stopPropagation()}},n)),h("i",{class:"weui-icon-checked"}),h("slot",null))};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{checked:["watchChecked"],id:["watchId"]}},enumerable:false,configurable:true});return e}();var __classPrivateFieldSet=undefined&&undefined.__classPrivateFieldSet||function(e,t,i,r,a){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?a.call(e,i):a?a.value=i:t.set(e,i),i};var __classPrivateFieldGet=undefined&&undefined.__classPrivateFieldGet||function(e,t,i,r){if(i==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return i==="m"?r:i==="a"?r.call(e):r?r.value:t.get(e)};var _RadioGroup_value;var RadioGroup=function(){function e(e){registerInstance(this,e);this.onChange=createEvent(this,"change",7);this.uniqueName=Date.now().toString(36);_RadioGroup_value.set(this,void 0);this.name=undefined}e.prototype.function=function(e){e.stopPropagation();if(e.target.tagName!=="TARO-RADIO-CORE")return;var t=e.target;if(t.checked){var i=this.el.querySelectorAll("taro-radio-core");i.forEach((function(e){if(e!==t){e.checked=false}}));__classPrivateFieldSet(this,_RadioGroup_value,e.detail.value,"f");this.onChange.emit({value:__classPrivateFieldGet(this,_RadioGroup_value,"f")})}};e.prototype.componentDidLoad=function(){var e=this;var t=this.el.querySelectorAll("taro-radio-core");t.forEach((function(t){t.setAttribute("name",e.name||e.uniqueName)}));Object.defineProperty(this.el,"value",{get:function(){if(!__classPrivateFieldGet(e,_RadioGroup_value,"f")){var t=e.el.querySelectorAll("taro-radio-core");__classPrivateFieldSet(e,_RadioGroup_value,e.getValues(t),"f")}return __classPrivateFieldGet(e,_RadioGroup_value,"f")},configurable:true})};e.prototype.getValues=function(e){var t="";Array.from(e).forEach((function(e){var i=e.querySelector("input");if(i===null||i===void 0?void 0:i.checked){t=i.value||""}}));return t};e.prototype.render=function(){return h(Host,{class:"weui-cells_radiogroup"})};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();_RadioGroup_value=new WeakMap;export{Radio as taro_radio_core,RadioGroup as taro_radio_group_core};
@@ -1 +0,0 @@
1
- import{r as registerInstance,h,H as Host}from"./index-5e431bb8.js";var indexCss="taro-rich-text-core{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}taro-rich-text-core[selectable=true],taro-rich-text-core[user-select=true]{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text;display:block}taro-rich-text-core[space]{white-space:pre-wrap}taro-rich-text-core[space=ensp]{word-spacing:.5em}taro-rich-text-core[space=nbsp]{word-spacing:1em}";var RichText=function(){function e(e){var t=this;registerInstance(this,e);this.renderNode=function(e){if("type"in e&&e.type==="text"){var r=(e.text||"").replace(/&nbsp;/g," ");return r}else if("name"in e&&e.name){var n=e.name,s=e.attrs,i=e.children;var c={};var a=[];if(s&&typeof s==="object"){var o=function(e){var t=s[e];if(e==="style"&&typeof t==="string"){var r=t.split(";").map((function(e){return e.trim()})).filter((function(e){return e}));var n={};r.forEach((function(e){if(!e)return;var t=/(.+): *(.+)/g.exec(e);if(!t)return;var r=t[1],s=t[2];var i=r.replace(/-([a-z])/g,(function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return e[1].toUpperCase()}));n[i]=s}));if(Object.keys(n).length){c.style=n}return"continue"}c[e]=t};for(var u in s){o(u)}}if(i&&i.length){a=i.map((function(e){return t.renderNode(e)}))}return h(n,c,a)}return null};this.nodes=undefined;this.selectable=false;this.userSelect=false;this.space=undefined}e.prototype.render=function(){var e=this,t=e.nodes,r=e.renderNode;if(Array.isArray(t)){return h(Host,null,t.map((function(e){return r(e)})))}else{return h(Host,{innerHTML:t})}};return e}();RichText.style=indexCss;export{RichText as taro_rich_text_core};
@@ -1 +0,0 @@
1
- import{r as registerInstance,h,H as Host}from"./index-5e431bb8.js";import{n as notSupport}from"./helper-8a85bb65.js";import"@tarojs/taro";var RootPortal=function(){function o(o){registerInstance(this,o)}o.prototype.componentDidLoad=function(){notSupport("RootPortal",this)};o.prototype.render=function(){return h(Host,null)};return o}();export{RootPortal as taro_root_portal_core};
@@ -1 +0,0 @@
1
- import{r as registerInstance,h,H as Host}from"./index-5e431bb8.js";import{n as notSupport}from"./helper-8a85bb65.js";import"@tarojs/taro";var RtcRoom=function(){function o(o){registerInstance(this,o)}o.prototype.componentDidLoad=function(){notSupport("RtcRoom",this)};o.prototype.render=function(){return h(Host,null)};return o}();export{RtcRoom as taro_rtc_room_core};
@@ -1 +0,0 @@
1
- import{r as registerInstance,h,H as Host}from"./index-5e431bb8.js";import{n as notSupport}from"./helper-8a85bb65.js";import"@tarojs/taro";var RtcRoomItem=function(){function t(t){registerInstance(this,t)}t.prototype.componentDidLoad=function(){notSupport("RtcRoomItem",this)};t.prototype.render=function(){return h(Host,null)};return t}();export{RtcRoomItem as taro_rtc_room_item_core};
@@ -1 +0,0 @@
1
- import{r as registerInstance,h,H as Host}from"./index-5e431bb8.js";import{n as notSupport}from"./helper-8a85bb65.js";import"@tarojs/taro";var ScaleGestureHandler=function(){function e(e){registerInstance(this,e)}e.prototype.componentDidLoad=function(){notSupport("ScaleGestureHandler",this)};e.prototype.render=function(){return h(Host,null)};return e}();export{ScaleGestureHandler as taro_scale_gesture_handler_core};
@@ -1 +0,0 @@
1
- import{r as registerInstance,h,H as Host}from"./index-5e431bb8.js";import{n as notSupport}from"./helper-8a85bb65.js";import"@tarojs/taro";var Script=function(){function t(t){registerInstance(this,t)}t.prototype.componentDidLoad=function(){notSupport("Script",this)};t.prototype.render=function(){return h(Host,null)};return t}();export{Script as taro_script_core};
@@ -1 +0,0 @@
1
- import{__awaiter,__generator}from"tslib";import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-5e431bb8.js";import{c as classnames}from"./index-b9522531.js";import{d as debounce}from"./index-a00a7418.js";import{h as handleStencilNodes}from"./helper-8a85bb65.js";import"@tarojs/taro";var indexCss="taro-scroll-view-core{-webkit-overflow-scrolling:auto;width:100%;display:block}taro-scroll-view-core::-webkit-scrollbar{display:none}.taro-scroll-view__scroll-x{overflow:scroll hidden}.taro-scroll-view__scroll-y{overflow:hidden scroll}";function easeOutScroll(o,t,e,r){if(e===void 0){e=500}if(o===t||typeof o!=="number"){return}var l=t-o;var i=Date.now();var s=t>=o;function n(o,t,e,r){return e*o/r+t}function c(){o=n(Date.now()-i,o,l,e);if(s&&o>=t||!s&&t>=o){r(t);return}r(o);requestAnimationFrame(c)}c()}var ScrollView=function(){function o(o){var t=this;registerInstance(this,o);this.onScroll=createEvent(this,"scroll",3);this.onScrollToUpper=createEvent(this,"scrolltoupper",3);this.onScrollToLower=createEvent(this,"scrolltolower",3);this._scrollLeft=0;this._scrollTop=0;this.upperAndLower=debounce((function(){var o=t.el,e=o.offsetWidth,r=o.offsetHeight,l=o.scrollLeft,i=o.scrollTop,s=o.scrollHeight,n=o.scrollWidth;var c=Number(t.lowerThreshold);var a=Number(t.upperThreshold);if(!isNaN(c)&&(t.scrollY&&r+i+c>=s||t.scrollX&&e+l+c>=n)){t.onScrollToLower.emit({direction:t.scrollX?"right":t.scrollY?"bottom":""})}if(!isNaN(a)&&(t.scrollY&&i<=a||t.scrollX&&l<=a)){t.onScrollToUpper.emit({direction:t.scrollX?"left":t.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.mpScrollIntoViewAlignment=undefined;this.animated=false}o.prototype.watchScrollLeft=function(o){var t=Number(o);var e=this.animated;this.mpScrollToMethod({left:t,animated:e})};o.prototype.watchScrollTop=function(o){var t=Number(o);var e=this.animated;this.mpScrollToMethod({top:t,animated:e})};o.prototype.watchScrollIntoView=function(o){this.mpScrollIntoViewMethod(o)};o.prototype.handleScroll=function(o){var t;if(o instanceof CustomEvent)return;o.stopPropagation();(t=o.stopImmediatePropagation)===null||t===void 0?void 0:t.call(o);var e=this.el,r=e.scrollLeft,l=e.scrollTop,i=e.scrollHeight,s=e.scrollWidth;this._scrollLeft=r;this._scrollTop=l;this.upperAndLower();this.onScroll.emit({scrollLeft:r,scrollTop:l,scrollHeight:i,scrollWidth:s})};o.prototype.handleTouchMove=function(o){if(o instanceof CustomEvent)return;o.stopPropagation()};o.prototype.mpScrollToMethod=function(o){return __awaiter(this,void 0,void 0,(function(){var t,e,r,l,i;var s=this;return __generator(this,(function(n){t=o.top,e=o.left,r=o.duration,l=o.animated,i=l===void 0?false:l;if(this.scrollY&&typeof t==="number"&&!isNaN(t)&&t!==this._scrollTop){if(i){easeOutScroll(this._scrollTop,t,r,(function(o){return s.el.scrollTop=o}))}else{this.el.scrollTop=t}this._scrollTop=t}if(this.scrollX&&typeof e==="number"&&!isNaN(e)&&e!==this._scrollLeft){if(i){easeOutScroll(this._scrollLeft,e,r,(function(o){return s.el.scrollLeft=o}))}else{this.el.scrollLeft=e}this._scrollLeft=e}return[2]}))}))};o.prototype.mpScrollIntoViewMethod=function(o){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){if(typeof o==="string"&&o){(t=document.querySelector("#".concat(o)))===null||t===void 0?void 0:t.scrollIntoView({behavior:this.animated?"smooth":"auto",block:this.scrollY?this.mpScrollIntoViewAlignment||"center":"center",inline:this.scrollX?this.mpScrollIntoViewAlignment||"start":"start"})}return[2]}))}))};o.prototype.componentDidLoad=function(){var o=Number(this.mpScrollTop);var t=Number(this.mpScrollLeft);var e=this.animated;this.mpScrollToMethod({top:o,left:t,animated:e})};o.prototype.componentDidRender=function(){handleStencilNodes(this.el)};o.prototype.render=function(){var o=this,t=o.scrollX,e=o.scrollY;var r=classnames({"taro-scroll-view__scroll-x":t,"taro-scroll-view__scroll-y":e});return h(Host,{class:r},h("slot",null))};Object.defineProperty(o.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(o,"watchers",{get:function(){return{mpScrollLeft:["watchScrollLeft"],mpScrollTop:["watchScrollTop"],mpScrollIntoView:["watchScrollIntoView"]}},enumerable:false,configurable:true});return o}();ScrollView.style=indexCss;export{ScrollView as taro_scroll_view_core};
@@ -1 +0,0 @@
1
- import{r as registerInstance,h,H as Host}from"./index-5e431bb8.js";import{n as notSupport}from"./helper-8a85bb65.js";import"@tarojs/taro";var ShareElement=function(){function t(t){registerInstance(this,t)}t.prototype.componentDidLoad=function(){notSupport("ShareElement",this)};t.prototype.render=function(){return h(Host,null)};return t}();export{ShareElement as taro_share_element_core};
@@ -1 +0,0 @@
1
- import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-5e431bb8.js";var indexCss=".weui-slider{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding:15px 18px}.weui-slider__inner{background-color:#e9e9e9;height:2px;position:relative}.weui-slider__track{background-color:#1aad19;width:0;height:2px}.weui-slider__handler{background-color:#fff;border-radius:50%;width:28px;height:28px;margin-top:-14px;margin-left:-14px;position:absolute;top:50%;left:0;-webkit-box-shadow:0 0 4px rgba(0,0,0,.2);box-shadow:0 0 4px rgba(0,0,0,.2)}.weui-slider-box{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex}.weui-slider-box .weui-slider{-ms-flex:1;flex:1}.weui-slider-box__value{color:#888;text-align:center;min-width:24px;margin-left:.5em;font-size:14px}";var Slider=function(){function e(e){var t=this;registerInstance(this,e);this.onChange=createEvent(this,"change",7);this.onChanging=createEvent(this,"changing",7);this.handleTouchStart=function(e){if(t.touching||t.disabled)return;t.touching=true;t.touchId=e.targetTouches[0].identifier;t.totalWidth=t.sliderInsRef.clientWidth||1;t.ogX=e.targetTouches[0].pageX;t.ogPercent=t.percent};this.handleTouchMove=function(e){var i=t,a=i.disabled,n=i.touching,r=i.touchId,o=i.totalWidth,l=i.max,s=i.min,h=i.ogX,d=i.ogPercent;if(!n||a)return;if(e.targetTouches[0].identifier!==r)return;e.preventDefault();var u=e.targetTouches[0].pageX;var c=u-h;var f=c/o*100+d;f=t.handleValueUpdate(f,0,100);var p=s+f*.01*(l-s);t.updateByStep(p);t.onChanging.emit({detail:e.detail,value:t.value})};this.handleTouchEnd=function(e){var i=t,a=i.disabled,n=i.touching;if(!n||a)return;if(t.percent!==t.ogPercent){t.onChange.emit({detail:e.detail,value:t.value})}t.touching=false;t.touchId=null;t.ogX=0;t.ogPercent=0};this.handleValueUpdate=function(e,i,a){if(i===void 0){i=t.min}if(a===void 0){a=t.max}e=isNaN(e)?0:e;return Math.max(i,Math.min(e,a))};this.min=0;this.max=100;this.step=1;this.disabled=false;this.value=0;this.activeColor="#1aad19";this.backgroundColor="#e9e9e9";this.blockSize=28;this.blockColor="#ffffff";this.showValue=false;this.name="";this.totalWidth=1;this.touching=false;this.ogX=0;this.touchId=null;this.percent=0;this.ogPercent=undefined;this.isWillLoadCalled=false}e.prototype.function=function(e){if(!this.isWillLoadCalled)return;var t=this,i=t.max,a=t.min;if(e!==null){var n=this.handleValueUpdate(e,a,i);this.updateByStep(n)}};e.prototype.componentDidLoad=function(){this.handler.addEventListener("touchstart",this.handleTouchStart);this.handler.addEventListener("touchmove",this.handleTouchMove);this.handler.addEventListener("touchend",this.handleTouchEnd)};e.prototype.componentWillLoad=function(){this.isWillLoadCalled=true;var e=this,t=e.value,i=e.max,a=e.min;var n=this.handleValueUpdate(t,a,i);this.updateByStep(n)};e.prototype.updateByStep=function(e){var t=this,i=t.max,a=t.min,n=t.step;var r=Math.floor((i-a)/n);for(var o=0;o<=r;o++){var l=a+n*o;var s=o===r?null:a+n*(o+1);if(e===l)break;if(!s&&e>l){e=l}if(s&&e>l&&e<s){if(e-l<n/2){e=l}else{e=s}break}}var h=(e-a)/(i-a)*100;this.value=e;this.percent=h};e.prototype.render=function(){var e=this;var t=this,i=t.showValue,a=t.backgroundColor,n=t.activeColor,r=t.blockColor,o=t.name,l=t.percent,s=t.value;var d=this.blockSize;var u={backgroundColor:a};var c=l>100?100:l;var f={width:"".concat(c,"%"),backgroundColor:n};if(d<12){d=12}if(d>28){d=28}var p={left:"".concat(c,"%"),width:"".concat(d,"px"),height:"".concat(d,"px"),backgroundColor:r,marginTop:"-".concat(Math.floor(d/2),"px"),marginLeft:"-".concat(Math.floor(d/2),"px")};return h(Host,{class:"weui-slider-box"},h("div",{class:"weui-slider"},h("div",{class:"weui-slider__inner",style:u,ref:function(t){return e.sliderInsRef=t}},h("div",{style:f,class:"weui-slider__track"}),h("div",{class:"weui-slider__handler",ref:function(t){if(t)e.handler=t},style:p}),h("input",{type:"hidden",name:o,value:s}))),i&&h("div",{class:"weui-slider-box__value"},s))};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{value:["function"]}},enumerable:false,configurable:true});return e}();Slider.style=indexCss;export{Slider as taro_slider_core};
@@ -1 +0,0 @@
1
- import{r as registerInstance,h,H as Host}from"./index-5e431bb8.js";import{n as notSupport}from"./helper-8a85bb65.js";import"@tarojs/taro";var Slot=function(){function t(t){registerInstance(this,t)}t.prototype.componentDidLoad=function(){notSupport("Slot",this)};t.prototype.render=function(){return h(Host,null)};return t}();export{Slot as taro_slot_core};
@@ -1 +0,0 @@
1
- import{r as registerInstance,h,H as Host}from"./index-5e431bb8.js";import{n as notSupport}from"./helper-8a85bb65.js";import"@tarojs/taro";var Snapshot=function(){function t(t){registerInstance(this,t)}t.prototype.componentDidLoad=function(){notSupport("Snapshot",this)};t.prototype.render=function(){return h(Host,null)};return t}();export{Snapshot as taro_snapshot_core};
@@ -1 +0,0 @@
1
- import{r as registerInstance,h,H as Host}from"./index-5e431bb8.js";import{n as notSupport}from"./helper-8a85bb65.js";import"@tarojs/taro";var Span=function(){function t(t){registerInstance(this,t)}t.prototype.componentDidLoad=function(){notSupport("Span",this)};t.prototype.render=function(){return h(Host,null)};return t}();export{Span as taro_span_core};
@@ -1 +0,0 @@
1
- import{r as registerInstance,h,H as Host}from"./index-5e431bb8.js";import{n as notSupport}from"./helper-8a85bb65.js";import"@tarojs/taro";var StickyHeader=function(){function t(t){registerInstance(this,t)}t.prototype.componentDidLoad=function(){notSupport("StickyHeader",this)};t.prototype.render=function(){return h(Host,null)};return t}();export{StickyHeader as taro_sticky_header_core};
@@ -1 +0,0 @@
1
- import{r as registerInstance,h,H as Host}from"./index-5e431bb8.js";import{n as notSupport}from"./helper-8a85bb65.js";import"@tarojs/taro";var StickySection=function(){function t(t){registerInstance(this,t)}t.prototype.componentDidLoad=function(){notSupport("StickySection",this)};t.prototype.render=function(){return h(Host,null)};return t}();export{StickySection as taro_sticky_section_core};