@tarojs/components 4.0.1-alpha.0 → 4.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (617) hide show
  1. package/LICENSE +8 -8
  2. package/README.md +1 -1
  3. package/dist/cjs/{index-b873e40f.js → index-f6805218.js} +27 -45
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/taro-ad-core.cjs.entry.js +1 -1
  6. package/dist/cjs/taro-ad-custom-core.cjs.entry.js +1 -1
  7. package/dist/cjs/taro-animation-video-core.cjs.entry.js +1 -1
  8. package/dist/cjs/taro-animation-view-core.cjs.entry.js +1 -1
  9. package/dist/cjs/taro-ar-camera-core.cjs.entry.js +1 -1
  10. package/dist/cjs/taro-audio-core.cjs.entry.js +1 -1
  11. package/dist/cjs/taro-aweme-data-core.cjs.entry.js +1 -1
  12. package/dist/cjs/taro-block-core.cjs.entry.js +1 -1
  13. package/dist/cjs/taro-button-core.cjs.entry.js +2 -2
  14. package/dist/cjs/taro-camera-core.cjs.entry.js +1 -1
  15. package/dist/cjs/taro-canvas-core.cjs.entry.js +1 -1
  16. package/dist/cjs/taro-channel-live-core.cjs.entry.js +1 -1
  17. package/dist/cjs/taro-channel-video-core.cjs.entry.js +1 -1
  18. package/dist/cjs/taro-checkbox-core_2.cjs.entry.js +1 -1
  19. package/dist/cjs/taro-comment-detail-core.cjs.entry.js +1 -1
  20. package/dist/cjs/taro-comment-list-core.cjs.entry.js +1 -1
  21. package/dist/cjs/taro-components.cjs.js +1 -1
  22. package/dist/cjs/taro-contact-button-core.cjs.entry.js +1 -1
  23. package/dist/cjs/taro-cover-image-core.cjs.entry.js +1 -1
  24. package/dist/cjs/taro-cover-view-core.cjs.entry.js +2 -2
  25. package/dist/cjs/taro-custom-wrapper-core.cjs.entry.js +1 -1
  26. package/dist/cjs/taro-draggable-sheet-core.cjs.entry.js +1 -1
  27. package/dist/cjs/taro-editor-core.cjs.entry.js +1 -1
  28. package/dist/cjs/taro-follow-swan-core.cjs.entry.js +1 -1
  29. package/dist/cjs/taro-form-core.cjs.entry.js +1 -1
  30. package/dist/cjs/taro-functional-page-navigator-core.cjs.entry.js +1 -1
  31. package/dist/cjs/taro-grid-builder-core.cjs.entry.js +1 -1
  32. package/dist/cjs/taro-grid-view-core.cjs.entry.js +1 -1
  33. package/dist/cjs/taro-icon-core.cjs.entry.js +2 -2
  34. package/dist/cjs/taro-image-core.cjs.entry.js +3 -3
  35. package/dist/cjs/taro-inline-payment-panel-core.cjs.entry.js +1 -1
  36. package/dist/cjs/taro-input-core.cjs.entry.js +2 -2
  37. package/dist/cjs/taro-keyboard-accessory-core.cjs.entry.js +1 -1
  38. package/dist/cjs/taro-label-core.cjs.entry.js +1 -1
  39. package/dist/cjs/taro-lifestyle-core.cjs.entry.js +1 -1
  40. package/dist/cjs/taro-like-core.cjs.entry.js +1 -1
  41. package/dist/cjs/taro-list-builder-core.cjs.entry.js +1 -1
  42. package/dist/cjs/taro-list-view-core.cjs.entry.js +1 -1
  43. package/dist/cjs/taro-live-player-core.cjs.entry.js +1 -1
  44. package/dist/cjs/taro-live-pusher-core.cjs.entry.js +1 -1
  45. package/dist/cjs/taro-login-core.cjs.entry.js +1 -1
  46. package/dist/cjs/taro-lottie-core.cjs.entry.js +1 -1
  47. package/dist/cjs/taro-map-core.cjs.entry.js +1 -1
  48. package/dist/cjs/taro-match-media-core.cjs.entry.js +1 -1
  49. package/dist/cjs/taro-movable-area-core_2.cjs.entry.js +1 -1
  50. package/dist/cjs/taro-native-slot-core.cjs.entry.js +1 -1
  51. package/dist/cjs/taro-navigation-bar-core.cjs.entry.js +1 -1
  52. package/dist/cjs/taro-navigator-core.cjs.entry.js +2 -2
  53. package/dist/cjs/taro-nested-scroll-body-core.cjs.entry.js +1 -1
  54. package/dist/cjs/taro-nested-scroll-header-core.cjs.entry.js +1 -1
  55. package/dist/cjs/taro-official-account-core.cjs.entry.js +1 -1
  56. package/dist/cjs/taro-open-container-core.cjs.entry.js +1 -1
  57. package/dist/cjs/taro-open-data-core.cjs.entry.js +1 -1
  58. package/dist/cjs/taro-page-container-core.cjs.entry.js +1 -1
  59. package/dist/cjs/taro-page-meta-core.cjs.entry.js +1 -1
  60. package/dist/cjs/taro-picker-core_2.cjs.entry.js +2 -2
  61. package/dist/cjs/taro-picker-view-column-core_2.cjs.entry.js +2 -2
  62. package/dist/cjs/taro-progress-core.cjs.entry.js +1 -1
  63. package/dist/cjs/taro-pull-to-refresh-core.cjs.entry.js +2 -2
  64. package/dist/cjs/taro-radio-core_2.cjs.entry.js +1 -1
  65. package/dist/cjs/taro-rich-text-core.cjs.entry.js +1 -1
  66. package/dist/cjs/taro-root-portal-core.cjs.entry.js +1 -1
  67. package/dist/cjs/taro-rtc-room-core.cjs.entry.js +1 -1
  68. package/dist/cjs/taro-rtc-room-item-core.cjs.entry.js +1 -1
  69. package/dist/cjs/taro-scroll-view-core.cjs.entry.js +2 -2
  70. package/dist/cjs/taro-share-element-core.cjs.entry.js +1 -1
  71. package/dist/cjs/taro-slider-core.cjs.entry.js +1 -1
  72. package/dist/cjs/taro-slot-core.cjs.entry.js +1 -1
  73. package/dist/cjs/taro-snapshot-core.cjs.entry.js +1 -1
  74. package/dist/cjs/taro-span-core.cjs.entry.js +1 -1
  75. package/dist/cjs/taro-sticky-header-core.cjs.entry.js +1 -1
  76. package/dist/cjs/taro-sticky-section-core.cjs.entry.js +1 -1
  77. package/dist/cjs/taro-swiper-core_2.cjs.entry.js +2 -2
  78. package/dist/cjs/taro-switch-core.cjs.entry.js +1 -1
  79. package/dist/cjs/taro-tab-item-core.cjs.entry.js +1 -1
  80. package/dist/cjs/taro-tabbar.cjs.entry.js +3 -3
  81. package/dist/cjs/taro-tabs-core.cjs.entry.js +1 -1
  82. package/dist/cjs/taro-text-core.cjs.entry.js +1 -1
  83. package/dist/cjs/taro-textarea-core.cjs.entry.js +1 -1
  84. package/dist/cjs/taro-video-control_3.cjs.entry.js +2 -2
  85. package/dist/cjs/taro-view-core.cjs.entry.js +3 -3
  86. package/dist/cjs/taro-voip-room-core.cjs.entry.js +1 -1
  87. package/dist/cjs/taro-web-view-core.cjs.entry.js +1 -1
  88. package/dist/collection/components/image/style/index.css +1 -1
  89. package/dist/collection/components/input/style/index.css +1 -1
  90. package/dist/collection/components/tabbar/style/index.css +1 -1
  91. package/dist/collection/components/tabbar/tabbar-item.js +1 -1
  92. package/dist/collection/components/tabbar/tabbar.js +4 -4
  93. package/dist/collection/components/view/style/index.css +1 -1
  94. package/dist/components/index2.js +27 -45
  95. package/dist/components/taro-image-core.js +1 -1
  96. package/dist/components/taro-input-core.js +1 -1
  97. package/dist/components/taro-tabbar.js +1 -1
  98. package/dist/components/taro-view-core.js +1 -1
  99. package/dist/esm/{index-b9522531.js → index-c3e4004b.js} +27 -45
  100. package/dist/esm/loader.js +2 -2
  101. package/dist/esm/taro-ad-core.entry.js +1 -1
  102. package/dist/esm/taro-ad-custom-core.entry.js +1 -1
  103. package/dist/esm/taro-animation-video-core.entry.js +1 -1
  104. package/dist/esm/taro-animation-view-core.entry.js +1 -1
  105. package/dist/esm/taro-ar-camera-core.entry.js +1 -1
  106. package/dist/esm/taro-audio-core.entry.js +1 -1
  107. package/dist/esm/taro-aweme-data-core.entry.js +1 -1
  108. package/dist/esm/taro-block-core.entry.js +1 -1
  109. package/dist/esm/taro-button-core.entry.js +2 -2
  110. package/dist/esm/taro-camera-core.entry.js +1 -1
  111. package/dist/esm/taro-canvas-core.entry.js +1 -1
  112. package/dist/esm/taro-channel-live-core.entry.js +1 -1
  113. package/dist/esm/taro-channel-video-core.entry.js +1 -1
  114. package/dist/esm/taro-checkbox-core_2.entry.js +1 -1
  115. package/dist/esm/taro-comment-detail-core.entry.js +1 -1
  116. package/dist/esm/taro-comment-list-core.entry.js +1 -1
  117. package/dist/esm/taro-components.js +2 -2
  118. package/dist/esm/taro-contact-button-core.entry.js +1 -1
  119. package/dist/esm/taro-cover-image-core.entry.js +1 -1
  120. package/dist/esm/taro-cover-view-core.entry.js +2 -2
  121. package/dist/esm/taro-custom-wrapper-core.entry.js +1 -1
  122. package/dist/esm/taro-draggable-sheet-core.entry.js +1 -1
  123. package/dist/esm/taro-editor-core.entry.js +1 -1
  124. package/dist/esm/taro-follow-swan-core.entry.js +1 -1
  125. package/dist/esm/taro-form-core.entry.js +1 -1
  126. package/dist/esm/taro-functional-page-navigator-core.entry.js +1 -1
  127. package/dist/esm/taro-grid-builder-core.entry.js +1 -1
  128. package/dist/esm/taro-grid-view-core.entry.js +1 -1
  129. package/dist/esm/taro-icon-core.entry.js +2 -2
  130. package/dist/esm/taro-image-core.entry.js +3 -3
  131. package/dist/esm/taro-inline-payment-panel-core.entry.js +1 -1
  132. package/dist/esm/taro-input-core.entry.js +2 -2
  133. package/dist/esm/taro-keyboard-accessory-core.entry.js +1 -1
  134. package/dist/esm/taro-label-core.entry.js +1 -1
  135. package/dist/esm/taro-lifestyle-core.entry.js +1 -1
  136. package/dist/esm/taro-like-core.entry.js +1 -1
  137. package/dist/esm/taro-list-builder-core.entry.js +1 -1
  138. package/dist/esm/taro-list-view-core.entry.js +1 -1
  139. package/dist/esm/taro-live-player-core.entry.js +1 -1
  140. package/dist/esm/taro-live-pusher-core.entry.js +1 -1
  141. package/dist/esm/taro-login-core.entry.js +1 -1
  142. package/dist/esm/taro-lottie-core.entry.js +1 -1
  143. package/dist/esm/taro-map-core.entry.js +1 -1
  144. package/dist/esm/taro-match-media-core.entry.js +1 -1
  145. package/dist/esm/taro-movable-area-core_2.entry.js +1 -1
  146. package/dist/esm/taro-native-slot-core.entry.js +1 -1
  147. package/dist/esm/taro-navigation-bar-core.entry.js +1 -1
  148. package/dist/esm/taro-navigator-core.entry.js +2 -2
  149. package/dist/esm/taro-nested-scroll-body-core.entry.js +1 -1
  150. package/dist/esm/taro-nested-scroll-header-core.entry.js +1 -1
  151. package/dist/esm/taro-official-account-core.entry.js +1 -1
  152. package/dist/esm/taro-open-container-core.entry.js +1 -1
  153. package/dist/esm/taro-open-data-core.entry.js +1 -1
  154. package/dist/esm/taro-page-container-core.entry.js +1 -1
  155. package/dist/esm/taro-page-meta-core.entry.js +1 -1
  156. package/dist/esm/taro-picker-core_2.entry.js +2 -2
  157. package/dist/esm/taro-picker-view-column-core_2.entry.js +2 -2
  158. package/dist/esm/taro-progress-core.entry.js +1 -1
  159. package/dist/esm/taro-pull-to-refresh-core.entry.js +2 -2
  160. package/dist/esm/taro-radio-core_2.entry.js +1 -1
  161. package/dist/esm/taro-rich-text-core.entry.js +1 -1
  162. package/dist/esm/taro-root-portal-core.entry.js +1 -1
  163. package/dist/esm/taro-rtc-room-core.entry.js +1 -1
  164. package/dist/esm/taro-rtc-room-item-core.entry.js +1 -1
  165. package/dist/esm/taro-scroll-view-core.entry.js +2 -2
  166. package/dist/esm/taro-share-element-core.entry.js +1 -1
  167. package/dist/esm/taro-slider-core.entry.js +1 -1
  168. package/dist/esm/taro-slot-core.entry.js +1 -1
  169. package/dist/esm/taro-snapshot-core.entry.js +1 -1
  170. package/dist/esm/taro-span-core.entry.js +1 -1
  171. package/dist/esm/taro-sticky-header-core.entry.js +1 -1
  172. package/dist/esm/taro-sticky-section-core.entry.js +1 -1
  173. package/dist/esm/taro-swiper-core_2.entry.js +2 -2
  174. package/dist/esm/taro-switch-core.entry.js +1 -1
  175. package/dist/esm/taro-tab-item-core.entry.js +1 -1
  176. package/dist/esm/taro-tabbar.entry.js +3 -3
  177. package/dist/esm/taro-tabs-core.entry.js +1 -1
  178. package/dist/esm/taro-text-core.entry.js +1 -1
  179. package/dist/esm/taro-textarea-core.entry.js +1 -1
  180. package/dist/esm/taro-video-control_3.entry.js +2 -2
  181. package/dist/esm/taro-view-core.entry.js +3 -3
  182. package/dist/esm/taro-voip-room-core.entry.js +1 -1
  183. package/dist/esm/taro-web-view-core.entry.js +1 -1
  184. package/dist/esm-es5/index-c3e4004b.js +7 -0
  185. package/dist/esm-es5/loader.js +1 -1
  186. package/dist/esm-es5/taro-ad-core.entry.js +1 -1
  187. package/dist/esm-es5/taro-ad-custom-core.entry.js +1 -1
  188. package/dist/esm-es5/taro-animation-video-core.entry.js +1 -1
  189. package/dist/esm-es5/taro-animation-view-core.entry.js +1 -1
  190. package/dist/esm-es5/taro-ar-camera-core.entry.js +1 -1
  191. package/dist/esm-es5/taro-audio-core.entry.js +1 -1
  192. package/dist/esm-es5/taro-aweme-data-core.entry.js +1 -1
  193. package/dist/esm-es5/taro-block-core.entry.js +1 -1
  194. package/dist/esm-es5/taro-button-core.entry.js +1 -1
  195. package/dist/esm-es5/taro-camera-core.entry.js +1 -1
  196. package/dist/esm-es5/taro-canvas-core.entry.js +1 -1
  197. package/dist/esm-es5/taro-channel-live-core.entry.js +1 -1
  198. package/dist/esm-es5/taro-channel-video-core.entry.js +1 -1
  199. package/dist/esm-es5/taro-checkbox-core_2.entry.js +1 -1
  200. package/dist/esm-es5/taro-comment-detail-core.entry.js +1 -1
  201. package/dist/esm-es5/taro-comment-list-core.entry.js +1 -1
  202. package/dist/esm-es5/taro-components.js +1 -1
  203. package/dist/esm-es5/taro-contact-button-core.entry.js +1 -1
  204. package/dist/esm-es5/taro-cover-image-core.entry.js +1 -1
  205. package/dist/esm-es5/taro-cover-view-core.entry.js +1 -1
  206. package/dist/esm-es5/taro-custom-wrapper-core.entry.js +1 -1
  207. package/dist/esm-es5/taro-draggable-sheet-core.entry.js +1 -1
  208. package/dist/esm-es5/taro-editor-core.entry.js +1 -1
  209. package/dist/esm-es5/taro-follow-swan-core.entry.js +1 -1
  210. package/dist/esm-es5/taro-form-core.entry.js +1 -1
  211. package/dist/esm-es5/taro-functional-page-navigator-core.entry.js +1 -1
  212. package/dist/esm-es5/taro-grid-builder-core.entry.js +1 -1
  213. package/dist/esm-es5/taro-grid-view-core.entry.js +1 -1
  214. package/dist/esm-es5/taro-icon-core.entry.js +1 -1
  215. package/dist/esm-es5/taro-image-core.entry.js +1 -1
  216. package/dist/esm-es5/taro-inline-payment-panel-core.entry.js +1 -1
  217. package/dist/esm-es5/taro-input-core.entry.js +1 -1
  218. package/dist/esm-es5/taro-keyboard-accessory-core.entry.js +1 -1
  219. package/dist/esm-es5/taro-label-core.entry.js +1 -1
  220. package/dist/esm-es5/taro-lifestyle-core.entry.js +1 -1
  221. package/dist/esm-es5/taro-like-core.entry.js +1 -1
  222. package/dist/esm-es5/taro-list-builder-core.entry.js +1 -1
  223. package/dist/esm-es5/taro-list-view-core.entry.js +1 -1
  224. package/dist/esm-es5/taro-live-player-core.entry.js +1 -1
  225. package/dist/esm-es5/taro-live-pusher-core.entry.js +1 -1
  226. package/dist/esm-es5/taro-login-core.entry.js +1 -1
  227. package/dist/esm-es5/taro-lottie-core.entry.js +1 -1
  228. package/dist/esm-es5/taro-map-core.entry.js +1 -1
  229. package/dist/esm-es5/taro-match-media-core.entry.js +1 -1
  230. package/dist/esm-es5/taro-movable-area-core_2.entry.js +1 -1
  231. package/dist/esm-es5/taro-native-slot-core.entry.js +1 -1
  232. package/dist/esm-es5/taro-navigation-bar-core.entry.js +1 -1
  233. package/dist/esm-es5/taro-navigator-core.entry.js +1 -1
  234. package/dist/esm-es5/taro-nested-scroll-body-core.entry.js +1 -1
  235. package/dist/esm-es5/taro-nested-scroll-header-core.entry.js +1 -1
  236. package/dist/esm-es5/taro-official-account-core.entry.js +1 -1
  237. package/dist/esm-es5/taro-open-container-core.entry.js +1 -1
  238. package/dist/esm-es5/taro-open-data-core.entry.js +1 -1
  239. package/dist/esm-es5/taro-page-container-core.entry.js +1 -1
  240. package/dist/esm-es5/taro-page-meta-core.entry.js +1 -1
  241. package/dist/esm-es5/taro-picker-core_2.entry.js +1 -1
  242. package/dist/esm-es5/taro-picker-view-column-core_2.entry.js +1 -1
  243. package/dist/esm-es5/taro-progress-core.entry.js +1 -1
  244. package/dist/esm-es5/taro-pull-to-refresh-core.entry.js +1 -1
  245. package/dist/esm-es5/taro-radio-core_2.entry.js +1 -1
  246. package/dist/esm-es5/taro-rich-text-core.entry.js +1 -1
  247. package/dist/esm-es5/taro-root-portal-core.entry.js +1 -1
  248. package/dist/esm-es5/taro-rtc-room-core.entry.js +1 -1
  249. package/dist/esm-es5/taro-rtc-room-item-core.entry.js +1 -1
  250. package/dist/esm-es5/taro-scroll-view-core.entry.js +1 -1
  251. package/dist/esm-es5/taro-share-element-core.entry.js +1 -1
  252. package/dist/esm-es5/taro-slider-core.entry.js +1 -1
  253. package/dist/esm-es5/taro-slot-core.entry.js +1 -1
  254. package/dist/esm-es5/taro-snapshot-core.entry.js +1 -1
  255. package/dist/esm-es5/taro-span-core.entry.js +1 -1
  256. package/dist/esm-es5/taro-sticky-header-core.entry.js +1 -1
  257. package/dist/esm-es5/taro-sticky-section-core.entry.js +1 -1
  258. package/dist/esm-es5/taro-swiper-core_2.entry.js +1 -1
  259. package/dist/esm-es5/taro-switch-core.entry.js +1 -1
  260. package/dist/esm-es5/taro-tab-item-core.entry.js +1 -1
  261. package/dist/esm-es5/taro-tabbar.entry.js +1 -1
  262. package/dist/esm-es5/taro-tabs-core.entry.js +1 -1
  263. package/dist/esm-es5/taro-text-core.entry.js +1 -1
  264. package/dist/esm-es5/taro-textarea-core.entry.js +1 -1
  265. package/dist/esm-es5/taro-video-control_3.entry.js +1 -1
  266. package/dist/esm-es5/taro-view-core.entry.js +1 -1
  267. package/dist/esm-es5/taro-voip-room-core.entry.js +1 -1
  268. package/dist/esm-es5/taro-web-view-core.entry.js +1 -1
  269. package/dist/hydrate/index.js +31 -49
  270. package/dist/taro-components/{p-06adeb65.system.entry.js → p-0044961f.system.entry.js} +1 -1
  271. package/dist/taro-components/{p-f43f26cf.entry.js → p-0132e803.entry.js} +1 -1
  272. package/dist/taro-components/{p-fa31b2de.system.entry.js → p-019124ae.system.entry.js} +1 -1
  273. package/dist/taro-components/{p-5884c108.system.entry.js → p-04f97133.system.entry.js} +1 -1
  274. package/dist/taro-components/{p-75ded8a0.system.entry.js → p-069ae782.system.entry.js} +1 -1
  275. package/dist/taro-components/{p-68197378.entry.js → p-0d8a0733.entry.js} +1 -1
  276. package/dist/taro-components/{p-03dc0283.entry.js → p-0f95be56.entry.js} +1 -1
  277. package/dist/taro-components/{p-6cc0bcb9.entry.js → p-0fe4660a.entry.js} +1 -1
  278. package/dist/taro-components/{p-a96f8f60.system.entry.js → p-1087c51a.system.entry.js} +1 -1
  279. package/dist/taro-components/{p-e5ef41f2.system.entry.js → p-111fadd7.system.entry.js} +1 -1
  280. package/dist/taro-components/{p-8179438b.system.entry.js → p-11c0dc59.system.entry.js} +1 -1
  281. package/dist/taro-components/{p-32c0f326.entry.js → p-12b967fd.entry.js} +1 -1
  282. package/dist/taro-components/{p-dc25fa81.entry.js → p-13bf0192.entry.js} +1 -1
  283. package/dist/taro-components/{p-f8f2461f.entry.js → p-13e80cf7.entry.js} +1 -1
  284. package/dist/taro-components/{p-f5f3a111.entry.js → p-15c1ce79.entry.js} +1 -1
  285. package/dist/taro-components/{p-292470e5.entry.js → p-16705ca9.entry.js} +1 -1
  286. package/dist/taro-components/{p-07ae6678.system.entry.js → p-194ace03.system.entry.js} +1 -1
  287. package/dist/taro-components/{p-12582166.entry.js → p-19b04eb7.entry.js} +1 -1
  288. package/dist/taro-components/{p-d2203687.system.entry.js → p-19b993d8.system.entry.js} +1 -1
  289. package/dist/taro-components/{p-204996e7.entry.js → p-1acf7537.entry.js} +1 -1
  290. package/dist/taro-components/{p-156e9634.system.entry.js → p-1d102ddb.system.entry.js} +1 -1
  291. package/dist/taro-components/p-25636983.entry.js +1 -0
  292. package/dist/taro-components/{p-402c7f93.entry.js → p-28bc8a48.entry.js} +1 -1
  293. package/dist/taro-components/{p-c95d2b90.entry.js → p-2d382d0e.entry.js} +1 -1
  294. package/dist/taro-components/{p-2d537212.entry.js → p-2ebc3182.entry.js} +1 -1
  295. package/dist/taro-components/p-2ec68968.system.js +7 -0
  296. package/dist/taro-components/p-2f8ebd28.system.entry.js +1 -0
  297. package/dist/taro-components/{p-b1f80b6b.entry.js → p-317c4cad.entry.js} +1 -1
  298. package/dist/taro-components/p-33980e67.entry.js +1 -0
  299. package/dist/taro-components/{p-5c98f478.entry.js → p-342a2594.entry.js} +1 -1
  300. package/dist/taro-components/{p-0a64f78c.system.entry.js → p-3430d520.system.entry.js} +1 -1
  301. package/dist/taro-components/{p-9b6b17c4.system.entry.js → p-34ba9330.system.entry.js} +1 -1
  302. package/dist/taro-components/{p-9e359fff.system.entry.js → p-36ea0ac1.system.entry.js} +1 -1
  303. package/dist/taro-components/{p-0ff5a55b.entry.js → p-370cc947.entry.js} +1 -1
  304. package/dist/taro-components/p-378b504c.entry.js +1 -0
  305. package/dist/taro-components/{p-2649c7ae.entry.js → p-37bc198d.entry.js} +1 -1
  306. package/dist/taro-components/{p-f168fffc.entry.js → p-39b3e34d.entry.js} +1 -1
  307. package/dist/taro-components/{p-c0c567e5.system.entry.js → p-3a0a05fd.system.entry.js} +1 -1
  308. package/dist/taro-components/{p-855619b6.system.entry.js → p-3a3d40de.system.entry.js} +1 -1
  309. package/dist/taro-components/{p-84998109.entry.js → p-3d423adc.entry.js} +1 -1
  310. package/dist/taro-components/p-3e4b5391.system.entry.js +1 -0
  311. package/dist/taro-components/{p-57b77f17.system.entry.js → p-3eedb8d7.system.entry.js} +1 -1
  312. package/dist/taro-components/{p-17e72555.entry.js → p-43932446.entry.js} +1 -1
  313. package/dist/taro-components/{p-6ba08ce0.system.entry.js → p-4621b303.system.entry.js} +1 -1
  314. package/dist/taro-components/{p-17938fa0.system.entry.js → p-46ccb393.system.entry.js} +1 -1
  315. package/dist/taro-components/{p-7163d09e.system.js → p-477f8fbd.system.js} +1 -1
  316. package/dist/taro-components/{p-46a66c43.entry.js → p-4824cc94.entry.js} +1 -1
  317. package/dist/taro-components/{p-ac2be5f3.entry.js → p-48a84765.entry.js} +1 -1
  318. package/dist/taro-components/{p-bb67318d.entry.js → p-49e9b2ff.entry.js} +1 -1
  319. package/dist/taro-components/{p-425d1d69.entry.js → p-4a748c0d.entry.js} +1 -1
  320. package/dist/taro-components/{p-a9ca8247.system.entry.js → p-4b5f75b9.system.entry.js} +1 -1
  321. package/dist/taro-components/p-4c30ea10.entry.js +1 -0
  322. package/dist/taro-components/{p-55e12654.entry.js → p-4e63d3bd.entry.js} +1 -1
  323. package/dist/taro-components/{p-93a2b2e9.entry.js → p-4fcb258a.entry.js} +1 -1
  324. package/dist/taro-components/{p-dedf50a9.entry.js → p-4ffae31c.entry.js} +1 -1
  325. package/dist/taro-components/{p-c7836e2b.entry.js → p-50b21f94.entry.js} +1 -1
  326. package/dist/taro-components/{p-dcf5747c.system.entry.js → p-5186ab96.system.entry.js} +1 -1
  327. package/dist/taro-components/p-518a9b73.entry.js +1 -0
  328. package/dist/taro-components/p-52ad5213.system.entry.js +1 -0
  329. package/dist/taro-components/{p-5b9aa4b0.system.entry.js → p-55934653.system.entry.js} +1 -1
  330. package/dist/taro-components/{p-c7d8c076.system.entry.js → p-55e54f2a.system.entry.js} +1 -1
  331. package/dist/taro-components/{p-ded98693.system.entry.js → p-562eace8.system.entry.js} +1 -1
  332. package/dist/taro-components/{p-7e054ae7.system.entry.js → p-5a78fbdf.system.entry.js} +1 -1
  333. package/dist/taro-components/{p-be055537.entry.js → p-5b4de079.entry.js} +1 -1
  334. package/dist/taro-components/{p-5c156db3.system.entry.js → p-5b86e66b.system.entry.js} +1 -1
  335. package/dist/taro-components/{p-1eea2828.entry.js → p-5bfdb5f3.entry.js} +1 -1
  336. package/dist/taro-components/{p-cae6c5d0.system.entry.js → p-5c0f97d3.system.entry.js} +1 -1
  337. package/dist/taro-components/{p-d5603857.entry.js → p-5dbabb65.entry.js} +1 -1
  338. package/dist/taro-components/{p-ccbaba23.entry.js → p-5f4c6ca5.entry.js} +1 -1
  339. package/dist/taro-components/{p-4979e93c.system.entry.js → p-618ee593.system.entry.js} +1 -1
  340. package/dist/taro-components/{p-02d4d104.entry.js → p-62df5526.entry.js} +1 -1
  341. package/dist/taro-components/{p-6654374e.system.entry.js → p-66029061.system.entry.js} +1 -1
  342. package/dist/taro-components/{p-d05eb105.system.entry.js → p-69e70cd5.system.entry.js} +1 -1
  343. package/dist/taro-components/{p-6b83388c.system.entry.js → p-6c06b440.system.entry.js} +1 -1
  344. package/dist/taro-components/p-6dd357b9.entry.js +1 -0
  345. package/dist/taro-components/{p-c677414d.system.entry.js → p-6f1034a6.system.entry.js} +1 -1
  346. package/dist/taro-components/{p-e681d764.entry.js → p-6f3187bc.entry.js} +1 -1
  347. package/dist/taro-components/{p-56552c9e.entry.js → p-6f8926e3.entry.js} +1 -1
  348. package/dist/taro-components/{p-b087ad2a.system.entry.js → p-6ffc9bda.system.entry.js} +1 -1
  349. package/dist/taro-components/p-751d42cb.entry.js +1 -0
  350. package/dist/taro-components/{p-3a180dc7.entry.js → p-756aa971.entry.js} +1 -1
  351. package/dist/taro-components/{p-ff772345.entry.js → p-76c0f443.entry.js} +1 -1
  352. package/dist/taro-components/p-77e030e9.system.entry.js +1 -0
  353. package/dist/taro-components/{p-02465454.system.entry.js → p-7b3ce3af.system.entry.js} +1 -1
  354. package/dist/taro-components/{p-57911e2c.system.entry.js → p-7b80637e.system.entry.js} +1 -1
  355. package/dist/taro-components/{p-07f27474.entry.js → p-7bc6aa36.entry.js} +1 -1
  356. package/dist/taro-components/{p-d973d536.entry.js → p-7e3f0837.entry.js} +1 -1
  357. package/dist/taro-components/{p-047e4bfe.entry.js → p-7f3d9184.entry.js} +1 -1
  358. package/dist/taro-components/{p-35dec732.entry.js → p-80228985.entry.js} +1 -1
  359. package/dist/taro-components/{p-cafbb3d9.system.entry.js → p-80fa706c.system.entry.js} +1 -1
  360. package/dist/taro-components/{p-61a325d2.system.entry.js → p-829157b1.system.entry.js} +1 -1
  361. package/dist/taro-components/{p-dc08715a.entry.js → p-82c5b9d3.entry.js} +1 -1
  362. package/dist/taro-components/{p-d73b3a94.system.entry.js → p-82d52f00.system.entry.js} +1 -1
  363. package/dist/taro-components/{p-2f177716.entry.js → p-87b0d22f.entry.js} +1 -1
  364. package/dist/taro-components/{p-e2e7bc16.entry.js → p-895982a4.entry.js} +1 -1
  365. package/dist/taro-components/{p-937a6c36.entry.js → p-8a6e93ed.entry.js} +1 -1
  366. package/dist/taro-components/{p-0f480c38.system.entry.js → p-8b7e37c9.system.entry.js} +1 -1
  367. package/dist/taro-components/{p-c8cd6e16.entry.js → p-8bde1f48.entry.js} +1 -1
  368. package/dist/taro-components/{p-938f9036.system.entry.js → p-90ee19f8.system.entry.js} +1 -1
  369. package/dist/taro-components/{p-97b09fb4.system.entry.js → p-923aa1c8.system.entry.js} +1 -1
  370. package/dist/taro-components/{p-bd57edcd.entry.js → p-92b7b545.entry.js} +1 -1
  371. package/dist/taro-components/{p-fbf13159.system.entry.js → p-93b39a89.system.entry.js} +1 -1
  372. package/dist/taro-components/{p-3b36196b.system.entry.js → p-970a4199.system.entry.js} +1 -1
  373. package/dist/taro-components/{p-ba5e7ec4.system.entry.js → p-97177863.system.entry.js} +1 -1
  374. package/dist/taro-components/{p-b4577a12.system.entry.js → p-99440bcc.system.entry.js} +1 -1
  375. package/dist/taro-components/p-9f1b0ae1.entry.js +1 -0
  376. package/dist/taro-components/{p-6282bdee.system.entry.js → p-9f3e0019.system.entry.js} +1 -1
  377. package/dist/taro-components/{p-f034a433.entry.js → p-a2f848cc.entry.js} +1 -1
  378. package/dist/taro-components/{p-280795f2.entry.js → p-a6790f39.entry.js} +1 -1
  379. package/dist/taro-components/{p-083c3147.system.entry.js → p-a997cf7c.system.entry.js} +1 -1
  380. package/dist/taro-components/{p-6664a2ca.system.entry.js → p-aa11b00c.system.entry.js} +1 -1
  381. package/dist/taro-components/{p-feb89474.system.entry.js → p-adee7f1b.system.entry.js} +1 -1
  382. package/dist/taro-components/{p-38b29261.entry.js → p-ae99551a.entry.js} +1 -1
  383. package/dist/taro-components/{p-27041d86.system.entry.js → p-aed23034.system.entry.js} +1 -1
  384. package/dist/taro-components/{p-ac714300.system.entry.js → p-b0f12e64.system.entry.js} +1 -1
  385. package/dist/taro-components/{p-e853a2c8.system.entry.js → p-b259a558.system.entry.js} +1 -1
  386. package/dist/taro-components/{p-d9884371.entry.js → p-b3129dec.entry.js} +1 -1
  387. package/dist/taro-components/{p-9f53e26c.system.entry.js → p-b3419d7f.system.entry.js} +1 -1
  388. package/dist/taro-components/{p-18c039ef.entry.js → p-b4047b11.entry.js} +1 -1
  389. package/dist/taro-components/{p-ebb1ae64.entry.js → p-b43fa9b0.entry.js} +1 -1
  390. package/dist/taro-components/{p-e1cce2f1.entry.js → p-b4707cdd.entry.js} +1 -1
  391. package/dist/taro-components/{p-0fc790c0.system.entry.js → p-b655e854.system.entry.js} +1 -1
  392. package/dist/taro-components/{p-ac9fb309.system.entry.js → p-b66dfc82.system.entry.js} +1 -1
  393. package/dist/taro-components/{p-c056d527.system.entry.js → p-ba241824.system.entry.js} +1 -1
  394. package/dist/taro-components/{p-7ebd4310.entry.js → p-baea6a63.entry.js} +1 -1
  395. package/dist/taro-components/{p-be1701b2.entry.js → p-c0f16127.entry.js} +1 -1
  396. package/dist/taro-components/{p-3bfe9260.entry.js → p-c253be9f.entry.js} +1 -1
  397. package/dist/taro-components/{p-56a82bf3.entry.js → p-c58627f4.entry.js} +1 -1
  398. package/dist/taro-components/{p-ca6a5916.system.entry.js → p-c863ac7f.system.entry.js} +1 -1
  399. package/dist/taro-components/{p-443e31ab.system.entry.js → p-cc993977.system.entry.js} +1 -1
  400. package/dist/taro-components/{p-a25aca16.system.entry.js → p-cee51d71.system.entry.js} +1 -1
  401. package/dist/taro-components/{p-91ee1f8a.system.entry.js → p-d12b6a84.system.entry.js} +1 -1
  402. package/dist/taro-components/{p-a50c6736.entry.js → p-d184903b.entry.js} +1 -1
  403. package/dist/taro-components/{p-26eb2f3f.entry.js → p-d29a59cd.entry.js} +1 -1
  404. package/dist/taro-components/p-d6bd1a5b.entry.js +1 -0
  405. package/dist/taro-components/{p-77e82dfa.entry.js → p-da4c4cad.entry.js} +1 -1
  406. package/dist/taro-components/{p-3cf08137.entry.js → p-dc366f18.entry.js} +1 -1
  407. package/dist/taro-components/{p-79cad66b.entry.js → p-dde26531.entry.js} +1 -1
  408. package/dist/taro-components/{p-ddf75d6a.system.entry.js → p-de1d495a.system.entry.js} +1 -1
  409. package/dist/taro-components/p-de951a46.js +7 -0
  410. package/dist/taro-components/{p-4523b1c7.entry.js → p-e23769c4.entry.js} +1 -1
  411. package/dist/taro-components/{p-50849470.system.entry.js → p-e2694a79.system.entry.js} +1 -1
  412. package/dist/taro-components/{p-8b0c9d3f.entry.js → p-e2a22cd1.entry.js} +1 -1
  413. package/dist/taro-components/{p-1bd4da3b.system.entry.js → p-e41ed824.system.entry.js} +1 -1
  414. package/dist/taro-components/{p-ebad862a.system.entry.js → p-e5a80896.system.entry.js} +1 -1
  415. package/dist/taro-components/{p-75b4c1fc.system.entry.js → p-e5b43c80.system.entry.js} +1 -1
  416. package/dist/taro-components/{p-17b9f865.system.entry.js → p-e6a2f1bd.system.entry.js} +1 -1
  417. package/dist/taro-components/{p-078cb65e.entry.js → p-ead6e57b.entry.js} +1 -1
  418. package/dist/taro-components/{p-d87a68f6.entry.js → p-ebbbdde5.entry.js} +1 -1
  419. package/dist/taro-components/{p-ba11ef7d.entry.js → p-ec00e517.entry.js} +1 -1
  420. package/dist/taro-components/p-ec0d8c41.system.entry.js +1 -0
  421. package/dist/taro-components/p-ed081b3d.entry.js +1 -0
  422. package/dist/taro-components/{p-4ac48df1.system.entry.js → p-eda34d91.system.entry.js} +1 -1
  423. package/dist/taro-components/{p-df7c6216.system.entry.js → p-ee9d6467.system.entry.js} +1 -1
  424. package/dist/taro-components/{p-27d372b4.system.entry.js → p-f0056aca.system.entry.js} +1 -1
  425. package/dist/taro-components/{p-1c37143a.system.entry.js → p-f470ce9f.system.entry.js} +1 -1
  426. package/dist/taro-components/{p-c3dc7072.entry.js → p-f662c928.entry.js} +1 -1
  427. package/dist/taro-components/{p-e3d825d1.system.entry.js → p-f6743078.system.entry.js} +1 -1
  428. package/dist/taro-components/{p-fe5eefdc.system.entry.js → p-f7198b67.system.entry.js} +1 -1
  429. package/dist/taro-components/{p-4fad4beb.system.entry.js → p-f782ee74.system.entry.js} +1 -1
  430. package/dist/taro-components/{p-7ca2d075.system.entry.js → p-f94c0445.system.entry.js} +1 -1
  431. package/dist/taro-components/p-f9a13a5c.entry.js +1 -0
  432. package/dist/taro-components/{p-c71d5745.system.entry.js → p-fa9dbb6f.system.entry.js} +1 -1
  433. package/dist/taro-components/{p-65d11e99.system.entry.js → p-fbb789a4.system.entry.js} +1 -1
  434. package/dist/taro-components/{p-3293c5d9.system.entry.js → p-fe1dd94f.system.entry.js} +1 -1
  435. package/dist/taro-components/{p-b4c7bb48.entry.js → p-fe8ee676.entry.js} +1 -1
  436. package/dist/taro-components/{p-47790dc0.system.entry.js → p-ffaac078.system.entry.js} +1 -1
  437. package/dist/taro-components/taro-components.css +1 -1
  438. package/dist/taro-components/taro-components.esm.js +1 -1
  439. package/dist/taro-components/taro-components.js +1 -1
  440. package/dist/types/components/tabbar/tabbar-item.d.ts +4 -4
  441. package/dist/types/components/tabbar/tabbar.d.ts +15 -16
  442. package/dist/types/components.d.ts +3 -2
  443. package/lib/react/component-lib/index.d.ts +53 -53
  444. package/lib/react/component-lib/input.d.ts +1 -1
  445. package/lib/react/component-lib/input.js.map +1 -1
  446. package/lib/react/component-lib/reactify-wc.d.ts +1 -1
  447. package/lib/react/component-lib/reactify-wc.js.map +1 -1
  448. package/lib/react/components.d.ts +92 -92
  449. package/lib/react/components.js +0 -2
  450. package/lib/react/components.js.map +1 -1
  451. package/lib/react/helper.d.ts +2 -4
  452. package/lib/react/helper.js.map +1 -1
  453. package/lib/react/index.d.ts +1 -1
  454. package/lib/{solid/solid-component-lib/interfaces.d.ts → react/interfaces-f526f1a2.d.ts} +5 -4
  455. package/lib/react/react-component-lib/createComponent.d.ts +3 -3
  456. package/lib/react/react-component-lib/createComponent.js +1 -1
  457. package/lib/react/react-component-lib/createComponent.js.map +1 -1
  458. package/lib/react/react-component-lib/createOverlayComponent.d.ts +5 -5
  459. package/lib/react/react-component-lib/createOverlayComponent.js +1 -1
  460. package/lib/react/react-component-lib/createOverlayComponent.js.map +1 -1
  461. package/lib/react/react-component-lib/index.d.ts +2 -2
  462. package/lib/react/react-component-lib/utils/attachProps.d.ts +6 -6
  463. package/lib/react/react-component-lib/utils/attachProps.js.map +1 -1
  464. package/lib/react/react-component-lib/utils/case.d.ts +3 -2
  465. package/lib/react/react-component-lib/utils/index.d.ts +10 -9
  466. package/lib/react/react-component-lib/utils/index.js.map +1 -1
  467. package/lib/vue2/component-lib/components.d.ts +111 -0
  468. package/lib/vue2/component-lib/components.js +74 -0
  469. package/lib/vue2/component-lib/components.js.map +1 -0
  470. package/lib/vue2/component-lib/createComponent.d.ts +14 -0
  471. package/lib/vue2/component-lib/createComponent.js +23 -0
  472. package/lib/vue2/component-lib/createComponent.js.map +1 -0
  473. package/lib/vue2/component-lib/createFormsComponent.d.ts +22 -0
  474. package/lib/vue2/component-lib/createFormsComponent.js +53 -0
  475. package/lib/vue2/component-lib/createFormsComponent.js.map +1 -0
  476. package/lib/vue2/component-lib/icon.d.ts +16 -0
  477. package/lib/vue2/component-lib/icon.js +23 -0
  478. package/lib/vue2/component-lib/icon.js.map +1 -0
  479. package/lib/vue2/component-lib/image.d.ts +16 -0
  480. package/lib/vue2/component-lib/image.js +24 -0
  481. package/lib/vue2/component-lib/image.js.map +1 -0
  482. package/lib/vue2/component-lib/index.d.ts +1 -0
  483. package/lib/vue2/component-lib/index.js +25 -0
  484. package/lib/vue2/component-lib/index.js.map +1 -0
  485. package/lib/vue2/component-lib/mixins/listeners.d.ts +6 -0
  486. package/lib/vue2/component-lib/mixins/listeners.js +14 -0
  487. package/lib/vue2/component-lib/mixins/listeners.js.map +1 -0
  488. package/lib/vue2/component-lib/mixins/refs.d.ts +5 -0
  489. package/lib/vue2/component-lib/mixins/refs.js +53 -0
  490. package/lib/vue2/component-lib/mixins/refs.js.map +1 -0
  491. package/lib/vue2/component-lib/picker.d.ts +25 -0
  492. package/lib/vue2/component-lib/picker.js +41 -0
  493. package/lib/vue2/component-lib/picker.js.map +1 -0
  494. package/lib/vue2/component-lib/scroll-view.d.ts +17 -0
  495. package/lib/vue2/component-lib/scroll-view.js +35 -0
  496. package/lib/vue2/component-lib/scroll-view.js.map +1 -0
  497. package/lib/vue2/component-lib/text.d.ts +16 -0
  498. package/lib/vue2/component-lib/text.js +24 -0
  499. package/lib/vue2/component-lib/text.js.map +1 -0
  500. package/lib/vue2/components-loader.d.ts +2 -0
  501. package/lib/vue2/components-loader.js +21 -0
  502. package/lib/vue2/components-loader.js.map +1 -0
  503. package/lib/vue2/components.d.ts +408 -0
  504. package/lib/vue2/components.js +633 -0
  505. package/lib/vue2/components.js.map +1 -0
  506. package/lib/vue2/index.d.ts +1 -0
  507. package/lib/vue2/node_modules/.pnpm/registry.npmjs.org_vue-fragment@1.6.0_vue@2.7.14/node_modules/vue-fragment/dist/vue-fragment.esm.js +4 -0
  508. package/lib/vue2/node_modules/.pnpm/registry.npmjs.org_vue-fragment@1.6.0_vue@2.7.14/node_modules/vue-fragment/dist/vue-fragment.esm.js.map +1 -0
  509. package/lib/vue2/vue-component-lib/utils.d.ts +10 -0
  510. package/lib/vue2/vue-component-lib/utils.js +51 -0
  511. package/lib/vue2/vue-component-lib/utils.js.map +1 -0
  512. package/lib/vue3/component-lib/createComponent.d.ts +2 -1
  513. package/lib/vue3/component-lib/createFormsComponent.d.ts +2 -1
  514. package/lib/vue3/component-lib/createFormsComponent.js.map +1 -1
  515. package/lib/vue3/component-lib/forwardRef.d.ts +2 -1
  516. package/lib/vue3/component-lib/icon.d.ts +1 -1
  517. package/lib/vue3/component-lib/image.d.ts +1 -1
  518. package/lib/vue3/component-lib/index.d.ts +53 -52
  519. package/lib/vue3/component-lib/scroll-view.d.ts +1 -1
  520. package/lib/vue3/component-lib/scroll-view.js.map +1 -1
  521. package/lib/vue3/component-lib/text.d.ts +1 -1
  522. package/lib/vue3/components-loader.d.ts +2 -1
  523. package/lib/vue3/components-loader.js.map +1 -1
  524. package/lib/vue3/components.d.ts +92 -93
  525. package/lib/vue3/components.js +0 -2
  526. package/lib/vue3/components.js.map +1 -1
  527. package/lib/vue3/index.d.ts +1 -1
  528. package/lib/vue3/vue-component-lib/utils.d.ts +3 -2
  529. package/lib/vue3/vue-component-lib/utils.js.map +1 -1
  530. package/package.json +24 -29
  531. package/types/Button.d.ts +5 -5
  532. package/types/Camera.d.ts +1 -1
  533. package/types/Checkbox.d.ts +5 -5
  534. package/types/CoverImage.d.ts +1 -1
  535. package/types/Form.d.ts +2 -2
  536. package/types/Icon.d.ts +3 -3
  537. package/types/Image.d.ts +2 -3
  538. package/types/Input.d.ts +15 -15
  539. package/types/Label.d.ts +1 -1
  540. package/types/ListView.d.ts +1 -1
  541. package/types/NavigationBar.d.ts +4 -4
  542. package/types/Navigator.d.ts +1 -1
  543. package/types/PageMeta.d.ts +7 -7
  544. package/types/Picker.d.ts +20 -20
  545. package/types/PickerView.d.ts +1 -1
  546. package/types/PickerViewColumn.d.ts +1 -1
  547. package/types/Progress.d.ts +1 -1
  548. package/types/Radio.d.ts +5 -5
  549. package/types/RadioGroup.d.ts +1 -1
  550. package/types/ScrollView.d.ts +5 -5
  551. package/types/Slider.d.ts +14 -14
  552. package/types/Slot.d.ts +1 -1
  553. package/types/StickyHeader.d.ts +1 -1
  554. package/types/StickySection.d.ts +1 -1
  555. package/types/Swiper.d.ts +9 -9
  556. package/types/SwiperItem.d.ts +1 -1
  557. package/types/Switch.d.ts +5 -5
  558. package/types/Text.d.ts +2 -2
  559. package/types/Textarea.d.ts +7 -7
  560. package/types/Video.d.ts +16 -16
  561. package/types/common.d.ts +2 -7
  562. package/dist/esm-es5/index-b9522531.js +0 -7
  563. package/dist/taro-components/p-0f2c1ecc.entry.js +0 -1
  564. package/dist/taro-components/p-160d710a.js +0 -7
  565. package/dist/taro-components/p-43367dd1.entry.js +0 -1
  566. package/dist/taro-components/p-443b9a72.system.js +0 -7
  567. package/dist/taro-components/p-4a8b4d58.system.entry.js +0 -1
  568. package/dist/taro-components/p-53e62840.system.entry.js +0 -1
  569. package/dist/taro-components/p-5f23dc41.system.entry.js +0 -1
  570. package/dist/taro-components/p-6989c232.entry.js +0 -1
  571. package/dist/taro-components/p-7e692c70.entry.js +0 -1
  572. package/dist/taro-components/p-7fdbcf4d.entry.js +0 -1
  573. package/dist/taro-components/p-93b02321.entry.js +0 -1
  574. package/dist/taro-components/p-9571836f.entry.js +0 -1
  575. package/dist/taro-components/p-aabac550.entry.js +0 -1
  576. package/dist/taro-components/p-ab0e0366.system.entry.js +0 -1
  577. package/dist/taro-components/p-acb113bd.entry.js +0 -1
  578. package/dist/taro-components/p-f367a754.entry.js +0 -1
  579. package/dist/taro-components/p-f9935901.system.entry.js +0 -1
  580. package/dist/taro-components/p-fab63183.entry.js +0 -1
  581. package/global.css +0 -1
  582. package/lib/react/node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.18.0_tslib@2.6.2_typescript@5.4.5/node_modules/tslib/tslib.es6.js +0 -373
  583. package/lib/react/node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.18.0_tslib@2.6.2_typescript@5.4.5/node_modules/tslib/tslib.es6.js.map +0 -1
  584. package/lib/react/react-component-lib/interfaces.d.ts +0 -33
  585. package/lib/react/react-component-lib/utils/dev.d.ts +0 -6
  586. package/lib/solid/component-lib/index.d.ts +0 -53
  587. package/lib/solid/component-lib/index.js +0 -69
  588. package/lib/solid/component-lib/index.js.map +0 -1
  589. package/lib/solid/components.d.ts +0 -92
  590. package/lib/solid/components.js +0 -102
  591. package/lib/solid/components.js.map +0 -1
  592. package/lib/solid/helper.d.ts +0 -3
  593. package/lib/solid/helper.js +0 -7
  594. package/lib/solid/helper.js.map +0 -1
  595. package/lib/solid/index.d.ts +0 -1
  596. package/lib/solid/solid-component-lib/createComponent.d.ts +0 -10
  597. package/lib/solid/solid-component-lib/createComponent.js +0 -67
  598. package/lib/solid/solid-component-lib/createComponent.js.map +0 -1
  599. package/lib/solid/solid-component-lib/index.d.ts +0 -1
  600. package/lib/solid/solid-component-lib/index.js +0 -2
  601. package/lib/solid/solid-component-lib/index.js.map +0 -1
  602. package/lib/solid/solid-component-lib/utils/case.d.ts +0 -3
  603. package/lib/solid/solid-component-lib/utils/case.js +0 -6
  604. package/lib/solid/solid-component-lib/utils/case.js.map +0 -1
  605. package/lib/solid/solid-component-lib/utils/element.d.ts +0 -6
  606. package/lib/solid/solid-component-lib/utils/element.js +0 -48
  607. package/lib/solid/solid-component-lib/utils/element.js.map +0 -1
  608. package/lib/solid/solid-component-lib/utils/index.d.ts +0 -2
  609. package/lib/solid/solid-component-lib/utils/index.js +0 -3
  610. package/lib/solid/solid-component-lib/utils/index.js.map +0 -1
  611. /package/dist/cjs/{index-09efe07d.js → index-5b029707.js} +0 -0
  612. /package/dist/esm/{index-9924aee9.js → index-ab3c86da.js} +0 -0
  613. /package/dist/esm-es5/{index-9924aee9.js → index-ab3c86da.js} +0 -0
  614. /package/dist/taro-components/{p-75d01c60.system.js → p-2b70c348.system.js} +0 -0
  615. /package/dist/taro-components/{p-e62a1287.js → p-dd7a128d.js} +0 -0
  616. /package/lib/{solid → vue2}/index.js +0 -0
  617. /package/lib/{solid → vue2}/index.js.map +0 -0
@@ -1 +1 @@
1
- import{r as registerInstance,c as createEvent,h}from"./index-9924aee9.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
+ import{r as registerInstance,c as createEvent,h}from"./index-ab3c86da.js";var indexCss="taro-cover-image-core{width:320px;height:240px;overflow:hidden}";var CoverImage=function(){function r(r){registerInstance(this,r);this.onLoad=createEvent(this,"load",7);this.onError=createEvent(this,"error",7);this.src=undefined;this.nativeProps={}}r.prototype.imageOnLoad=function(){var r=this.imgRef,e=r.width,t=r.height;this.onLoad.emit({width:e,height:t})};r.prototype.imageOnError=function(r){this.onError.emit(r)};r.prototype.render=function(){var r=this;var e=this,t=e.src,i=e.imageOnLoad,o=e.imageOnError,n=e.nativeProps;return h("img",Object.assign({ref:function(e){return r.imgRef=e},src:t,onLoad:i.bind(this),onError:o.bind(this)},n))};return r}();CoverImage.style=indexCss;export{CoverImage as taro_cover_image_core};
@@ -1 +1 @@
1
- import{r as registerInstance,c as createEvent,h,H as Host}from"./index-9924aee9.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
+ import{r as registerInstance,c as createEvent,h,H as Host}from"./index-ab3c86da.js";import{c as classnames}from"./index-c3e4004b.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 +1 @@
1
- import{r as registerInstance,h,H as Host}from"./index-9924aee9.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
+ import{r as registerInstance,h,H as Host}from"./index-ab3c86da.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 +1 @@
1
- import{r as registerInstance,h,H as Host}from"./index-9924aee9.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
+ import{r as registerInstance,h,H as Host}from"./index-ab3c86da.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 +1 @@
1
- import{r as registerInstance,h,H as Host}from"./index-9924aee9.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
+ import{r as registerInstance,h,H as Host}from"./index-ab3c86da.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 +1 @@
1
- import{r as registerInstance,h,H as Host}from"./index-9924aee9.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
+ import{r as registerInstance,h,H as Host}from"./index-ab3c86da.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 +1 @@
1
- import{r as registerInstance,c as createEvent,h,g as getElement}from"./index-9924aee9.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
+ import{r as registerInstance,c as createEvent,h,g as getElement}from"./index-ab3c86da.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 +1 @@
1
- import{r as registerInstance,h,H as Host}from"./index-9924aee9.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
+ import{r as registerInstance,h,H as Host}from"./index-ab3c86da.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 +1 @@
1
- import{r as registerInstance,h,H as Host}from"./index-9924aee9.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
+ import{r as registerInstance,h,H as Host}from"./index-ab3c86da.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 +1 @@
1
- import{r as registerInstance,h,H as Host}from"./index-9924aee9.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
+ import{r as registerInstance,h,H as Host}from"./index-ab3c86da.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 +1 @@
1
- import{r as registerInstance,h,H as Host}from"./index-9924aee9.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
+ import{r as registerInstance,h,H as Host}from"./index-ab3c86da.js";import{c as classnames}from"./index-c3e4004b.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 +1 @@
1
- import{r as registerInstance,c as createEvent,h,H as Host}from"./index-9924aee9.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
+ import{r as registerInstance,c as createEvent,h,H as Host}from"./index-ab3c86da.js";import{c as classnames}from"./index-c3e4004b.js";var indexCss='img[src=""]{opacity:0}taro-image-core{width:auto;height:auto;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 f=classnames({"taro-img__widthfix":c==="widthFix"});var p=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:f},e?h("img",Object.assign({ref:function(t){return i.imgRef=t},class:p,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 +1 @@
1
- import{r as registerInstance,h,H as Host}from"./index-9924aee9.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
+ import{r as registerInstance,h,H as Host}from"./index-ab3c86da.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 +1 @@
1
- import{__awaiter,__generator}from"tslib";import{r as registerInstance,c as createEvent,h,g as getElement}from"./index-9924aee9.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
+ import{__awaiter,__generator}from"tslib";import{r as registerInstance,c as createEvent,h,g as getElement}from"./index-ab3c86da.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}input{text-overflow:clip;text-align:inherit;white-space:nowrap;height:1.4rem;display:block;overflow:hidden}";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 r=e.target.value;var u=getTrueType(i,a,s);t.onInputExcuted=true;if(u==="number"&&r&&o>-1&&o<=r.length){r=r.substring(0,o);e.target.value=r}t.value=r;t.onInput.emit({value:r,cursor:r.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,r=t.disabled,u=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:r,maxlength:u,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 +1 @@
1
- import{r as registerInstance,h,H as Host}from"./index-9924aee9.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
+ import{r as registerInstance,h,H as Host}from"./index-ab3c86da.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 +1 @@
1
- import{r as registerInstance,h}from"./index-9924aee9.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
+ import{r as registerInstance,h}from"./index-ab3c86da.js";var Label=function(){function r(r){registerInstance(this,r);this.for=undefined}r.prototype.render=function(){return h("label",{htmlFor:this.for},h("slot",null))};return r}();export{Label as taro_label_core};
@@ -1 +1 @@
1
- import{r as registerInstance,h,H as Host}from"./index-9924aee9.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
+ import{r as registerInstance,h,H as Host}from"./index-ab3c86da.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 +1 @@
1
- import{r as registerInstance,h,H as Host}from"./index-9924aee9.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
+ import{r as registerInstance,h,H as Host}from"./index-ab3c86da.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 +1 @@
1
- import{r as registerInstance,h,H as Host}from"./index-9924aee9.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
+ import{r as registerInstance,h,H as Host}from"./index-ab3c86da.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 +1 @@
1
- import{r as registerInstance,h,H as Host}from"./index-9924aee9.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
+ import{r as registerInstance,h,H as Host}from"./index-ab3c86da.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 +1 @@
1
- import{r as registerInstance,h,H as Host}from"./index-9924aee9.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
+ import{r as registerInstance,h,H as Host}from"./index-ab3c86da.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 +1 @@
1
- import{r as registerInstance,h,H as Host}from"./index-9924aee9.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
+ import{r as registerInstance,h,H as Host}from"./index-ab3c86da.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 +1 @@
1
- import{r as registerInstance,h,H as Host}from"./index-9924aee9.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
+ import{r as registerInstance,h,H as Host}from"./index-ab3c86da.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 +1 @@
1
- import{r as registerInstance,h,H as Host}from"./index-9924aee9.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
+ import{r as registerInstance,h,H as Host}from"./index-ab3c86da.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 +1 @@
1
- import{__awaiter,__generator}from"tslib";import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-9924aee9.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
+ import{__awaiter,__generator}from"tslib";import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-ab3c86da.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 +1 @@
1
- import{r as registerInstance,h,H as Host}from"./index-9924aee9.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
+ import{r as registerInstance,h,H as Host}from"./index-ab3c86da.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 +1 @@
1
- import{__awaiter,__generator}from"tslib";import{r as registerInstance,h,g as getElement,H as Host,c as createEvent}from"./index-9924aee9.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
+ import{__awaiter,__generator}from"tslib";import{r as registerInstance,h,g as getElement,H as Host,c as createEvent}from"./index-ab3c86da.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 +1 @@
1
- import{r as registerInstance,h,H as Host}from"./index-9924aee9.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
+ import{r as registerInstance,h,H as Host}from"./index-ab3c86da.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 +1 @@
1
- import{r as registerInstance,h,H as Host}from"./index-9924aee9.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
+ import{r as registerInstance,h,H as Host}from"./index-ab3c86da.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 +1 @@
1
- import{r as registerInstance,c as createEvent,h,H as Host}from"./index-9924aee9.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
+ import{r as registerInstance,c as createEvent,h,H as Host}from"./index-ab3c86da.js";import Taro from"@tarojs/taro";import{c as classnames}from"./index-c3e4004b.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 +1 @@
1
- import{r as registerInstance,h,H as Host}from"./index-9924aee9.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
+ import{r as registerInstance,h,H as Host}from"./index-ab3c86da.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 +1 @@
1
- import{r as registerInstance,h,H as Host}from"./index-9924aee9.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
+ import{r as registerInstance,h,H as Host}from"./index-ab3c86da.js";import{n as notSupport}from"./helper-8a85bb65.js";import"@tarojs/taro";var NestedScrollHeader=function(){function r(r){registerInstance(this,r)}r.prototype.componentDidLoad=function(){notSupport("NestedScrollHeader",this)};r.prototype.render=function(){return h(Host,null)};return r}();export{NestedScrollHeader as taro_nested_scroll_header_core};
@@ -1 +1 @@
1
- import{r as registerInstance,h,H as Host}from"./index-9924aee9.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
+ import{r as registerInstance,h,H as Host}from"./index-ab3c86da.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 +1 @@
1
- import{r as registerInstance,h,H as Host}from"./index-9924aee9.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
+ import{r as registerInstance,h,H as Host}from"./index-ab3c86da.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 +1 @@
1
- import{r as registerInstance,h,H as Host}from"./index-9924aee9.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
+ import{r as registerInstance,h,H as Host}from"./index-ab3c86da.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 +1 @@
1
- import{r as registerInstance,h,H as Host}from"./index-9924aee9.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
+ import{r as registerInstance,h,H as Host}from"./index-ab3c86da.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 +1 @@
1
- import{r as registerInstance,h,H as Host}from"./index-9924aee9.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
+ import{r as registerInstance,h,H as Host}from"./index-ab3c86da.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};