cy-element-ui 1.0.3 → 1.0.5

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 (416) hide show
  1. package/README.md +163 -59
  2. package/lib/alert.js +211 -203
  3. package/lib/aside.js +29 -29
  4. package/lib/autocomplete.js +4615 -483
  5. package/lib/avatar.js +152 -126
  6. package/lib/backtop.js +117 -125
  7. package/lib/badge.js +128 -134
  8. package/lib/breadcrumb-item.js +146 -122
  9. package/lib/breadcrumb.js +97 -96
  10. package/lib/button-group.js +68 -65
  11. package/lib/button.js +67 -87
  12. package/lib/calendar.js +2475 -603
  13. package/lib/card.js +101 -100
  14. package/lib/carousel-item.js +854 -210
  15. package/lib/carousel.js +575 -408
  16. package/lib/cascader-panel.js +3546 -1153
  17. package/lib/cascader.js +7376 -970
  18. package/lib/checkbox-button.js +337 -290
  19. package/lib/checkbox-group.js +176 -105
  20. package/lib/checkbox.js +240 -220
  21. package/lib/col.js +113 -68
  22. package/lib/collapse-item.js +1228 -225
  23. package/lib/collapse.js +163 -123
  24. package/lib/color-picker.js +5223 -1251
  25. package/lib/container.js +98 -88
  26. package/lib/date-picker.js +8396 -3945
  27. package/lib/descriptions-item.js +53 -32
  28. package/lib/descriptions.js +697 -334
  29. package/lib/dialog.js +1725 -247
  30. package/lib/directives/mousewheel.js +14 -20
  31. package/lib/directives/repeat-click.js +27 -30
  32. package/lib/divider.js +38 -45
  33. package/lib/drawer.js +1032 -238
  34. package/lib/dropdown-item.js +159 -111
  35. package/lib/dropdown-menu.js +2445 -117
  36. package/lib/dropdown.js +1675 -366
  37. package/lib/element-ui.common.js +49110 -39985
  38. package/lib/empty.js +1084 -203
  39. package/lib/fileUpload.js +3900 -0
  40. package/lib/footer.js +29 -29
  41. package/lib/form-item.js +1236 -467
  42. package/lib/form.js +326 -258
  43. package/lib/header.js +80 -80
  44. package/lib/icon.js +71 -68
  45. package/lib/image.js +2389 -743
  46. package/lib/index.js +1 -1
  47. package/lib/infinite-scroll.js +814 -150
  48. package/lib/input-number.js +2181 -444
  49. package/lib/input.js +1197 -517
  50. package/lib/link.js +117 -135
  51. package/lib/loading.js +1130 -363
  52. package/lib/locale/format.js +38 -49
  53. package/lib/locale/index.js +38 -52
  54. package/lib/locale/lang/af-ZA.js +130 -123
  55. package/lib/locale/lang/ar.js +123 -122
  56. package/lib/locale/lang/az.js +122 -121
  57. package/lib/locale/lang/bg.js +133 -123
  58. package/lib/locale/lang/bn.js +121 -121
  59. package/lib/locale/lang/ca.js +123 -122
  60. package/lib/locale/lang/cs-CZ.js +127 -125
  61. package/lib/locale/lang/da.js +124 -122
  62. package/lib/locale/lang/de.js +126 -124
  63. package/lib/locale/lang/ee.js +125 -123
  64. package/lib/locale/lang/el.js +125 -123
  65. package/lib/locale/lang/en.js +127 -123
  66. package/lib/locale/lang/eo.js +125 -123
  67. package/lib/locale/lang/es.js +123 -122
  68. package/lib/locale/lang/eu.js +128 -123
  69. package/lib/locale/lang/fa.js +125 -123
  70. package/lib/locale/lang/fi.js +125 -123
  71. package/lib/locale/lang/fr.js +125 -122
  72. package/lib/locale/lang/he.js +130 -123
  73. package/lib/locale/lang/hr.js +128 -123
  74. package/lib/locale/lang/hu.js +124 -122
  75. package/lib/locale/lang/hy-AM.js +125 -123
  76. package/lib/locale/lang/id.js +124 -123
  77. package/lib/locale/lang/is.js +124 -123
  78. package/lib/locale/lang/it.js +123 -122
  79. package/lib/locale/lang/ja.js +125 -123
  80. package/lib/locale/lang/kg.js +125 -123
  81. package/lib/locale/lang/km.js +124 -123
  82. package/lib/locale/lang/ko.js +125 -123
  83. package/lib/locale/lang/ku.js +125 -123
  84. package/lib/locale/lang/kz.js +125 -123
  85. package/lib/locale/lang/lo-LA.js +121 -121
  86. package/lib/locale/lang/lt.js +125 -123
  87. package/lib/locale/lang/lv.js +125 -123
  88. package/lib/locale/lang/mn.js +125 -123
  89. package/lib/locale/lang/ms.js +123 -122
  90. package/lib/locale/lang/nb-NO.js +123 -122
  91. package/lib/locale/lang/nl.js +125 -123
  92. package/lib/locale/lang/pl.js +125 -123
  93. package/lib/locale/lang/pt-br.js +124 -123
  94. package/lib/locale/lang/pt.js +133 -123
  95. package/lib/locale/lang/ro.js +125 -123
  96. package/lib/locale/lang/ru-RU.js +124 -123
  97. package/lib/locale/lang/si.js +127 -123
  98. package/lib/locale/lang/sk.js +126 -125
  99. package/lib/locale/lang/sl.js +125 -123
  100. package/lib/locale/lang/sr-Latn.js +124 -123
  101. package/lib/locale/lang/sr.js +128 -123
  102. package/lib/locale/lang/sv-SE.js +128 -123
  103. package/lib/locale/lang/sw.js +127 -123
  104. package/lib/locale/lang/ta.js +130 -122
  105. package/lib/locale/lang/th.js +127 -123
  106. package/lib/locale/lang/tk.js +129 -123
  107. package/lib/locale/lang/tr-TR.js +125 -123
  108. package/lib/locale/lang/ua.js +124 -123
  109. package/lib/locale/lang/ug-CN.js +124 -123
  110. package/lib/locale/lang/uz-UZ.js +124 -123
  111. package/lib/locale/lang/vi.js +124 -123
  112. package/lib/locale/lang/zh-CN.js +124 -123
  113. package/lib/locale/lang/zh-TW.js +128 -123
  114. package/lib/main.js +23 -21
  115. package/lib/menu-item-group.js +105 -111
  116. package/lib/menu-item.js +3558 -253
  117. package/lib/menu.js +1680 -528
  118. package/lib/message-box.js +3427 -684
  119. package/lib/message.js +1677 -229
  120. package/lib/mixins/emitter.js +28 -30
  121. package/lib/mixins/focus.js +10 -11
  122. package/lib/mixins/locale.js +12 -14
  123. package/lib/mixins/migrating.js +38 -45
  124. package/lib/notification.js +1707 -269
  125. package/lib/option-group.js +190 -139
  126. package/lib/option.js +949 -196
  127. package/lib/page-header.js +964 -42
  128. package/lib/pagination.js +6947 -641
  129. package/lib/popconfirm.js +3951 -223
  130. package/lib/popover.js +3247 -369
  131. package/lib/progress.js +254 -244
  132. package/lib/radio-button.js +259 -226
  133. package/lib/radio-group.js +249 -186
  134. package/lib/radio.js +263 -253
  135. package/lib/rate.js +1399 -420
  136. package/lib/result.js +183 -227
  137. package/lib/row.js +58 -41
  138. package/lib/scrollbar.js +1331 -278
  139. package/lib/select.js +5816 -1428
  140. package/lib/skeleton-item.js +133 -145
  141. package/lib/skeleton.js +82 -91
  142. package/lib/slider.js +5157 -702
  143. package/lib/spinner.js +113 -101
  144. package/lib/statistic.js +10205 -254
  145. package/lib/step.js +274 -311
  146. package/lib/steps.js +854 -117
  147. package/lib/subTitle.js +292 -0
  148. package/lib/submenu.js +2867 -429
  149. package/lib/switch.js +1051 -291
  150. package/lib/tab-pane.js +125 -135
  151. package/lib/tabDialog.js +2658 -0
  152. package/lib/table-column.js +1975 -751
  153. package/lib/table.js +8019 -3979
  154. package/lib/tabs.js +1455 -605
  155. package/lib/tag.js +73 -68
  156. package/lib/theme-chalk/src/index.scss +3 -0
  157. package/lib/time-picker.js +6821 -1944
  158. package/lib/time-select.js +6297 -1186
  159. package/lib/timeline-item.js +43 -84
  160. package/lib/timeline.js +43 -39
  161. package/lib/tooltip.js +3185 -287
  162. package/lib/transfer.js +2943 -625
  163. package/lib/transitions/collapse-transition.js +69 -87
  164. package/lib/tree.js +3312 -1791
  165. package/lib/treeSelect.js +4436 -0
  166. package/lib/umd/locale/af-ZA.js +145 -138
  167. package/lib/umd/locale/ar.js +138 -137
  168. package/lib/umd/locale/az.js +139 -137
  169. package/lib/umd/locale/bg.js +148 -138
  170. package/lib/umd/locale/bn.js +138 -137
  171. package/lib/umd/locale/ca.js +138 -137
  172. package/lib/umd/locale/cs-CZ.js +142 -140
  173. package/lib/umd/locale/da.js +139 -137
  174. package/lib/umd/locale/de.js +141 -139
  175. package/lib/umd/locale/ee.js +140 -138
  176. package/lib/umd/locale/el.js +140 -138
  177. package/lib/umd/locale/en.js +142 -138
  178. package/lib/umd/locale/eo.js +140 -138
  179. package/lib/umd/locale/es.js +138 -137
  180. package/lib/umd/locale/eu.js +143 -138
  181. package/lib/umd/locale/fa.js +140 -138
  182. package/lib/umd/locale/fi.js +140 -138
  183. package/lib/umd/locale/fr.js +140 -137
  184. package/lib/umd/locale/he.js +145 -138
  185. package/lib/umd/locale/hr.js +143 -138
  186. package/lib/umd/locale/hu.js +139 -137
  187. package/lib/umd/locale/hy-AM.js +140 -138
  188. package/lib/umd/locale/id.js +139 -138
  189. package/lib/umd/locale/is.js +139 -138
  190. package/lib/umd/locale/it.js +138 -137
  191. package/lib/umd/locale/ja.js +140 -138
  192. package/lib/umd/locale/kg.js +140 -138
  193. package/lib/umd/locale/km.js +139 -138
  194. package/lib/umd/locale/ko.js +140 -138
  195. package/lib/umd/locale/ku.js +140 -138
  196. package/lib/umd/locale/kz.js +140 -138
  197. package/lib/umd/locale/lo-LA.js +138 -137
  198. package/lib/umd/locale/lt.js +140 -138
  199. package/lib/umd/locale/lv.js +140 -138
  200. package/lib/umd/locale/mn.js +140 -138
  201. package/lib/umd/locale/ms.js +138 -137
  202. package/lib/umd/locale/nb-NO.js +138 -137
  203. package/lib/umd/locale/nl.js +140 -138
  204. package/lib/umd/locale/pl.js +140 -138
  205. package/lib/umd/locale/pt-br.js +139 -138
  206. package/lib/umd/locale/pt.js +148 -138
  207. package/lib/umd/locale/ro.js +140 -138
  208. package/lib/umd/locale/ru-RU.js +139 -138
  209. package/lib/umd/locale/si.js +142 -138
  210. package/lib/umd/locale/sk.js +141 -140
  211. package/lib/umd/locale/sl.js +140 -138
  212. package/lib/umd/locale/sr-Latn.js +139 -138
  213. package/lib/umd/locale/sr.js +143 -138
  214. package/lib/umd/locale/sv-SE.js +143 -138
  215. package/lib/umd/locale/sw.js +142 -138
  216. package/lib/umd/locale/ta.js +145 -137
  217. package/lib/umd/locale/th.js +142 -138
  218. package/lib/umd/locale/tk.js +144 -138
  219. package/lib/umd/locale/tr-TR.js +140 -138
  220. package/lib/umd/locale/ua.js +139 -138
  221. package/lib/umd/locale/ug-CN.js +139 -138
  222. package/lib/umd/locale/uz-UZ.js +139 -138
  223. package/lib/umd/locale/vi.js +139 -138
  224. package/lib/umd/locale/zh-CN.js +139 -138
  225. package/lib/umd/locale/zh-TW.js +143 -138
  226. package/lib/upload.js +2377 -987
  227. package/lib/utils/after-leave.js +36 -33
  228. package/lib/utils/aria-dialog.js +55 -73
  229. package/lib/utils/aria-utils.js +67 -76
  230. package/lib/utils/clickoutside.js +52 -60
  231. package/lib/utils/date-util.js +198 -241
  232. package/lib/utils/date.js +6 -368
  233. package/lib/utils/date_source.js +349 -0
  234. package/lib/utils/dom.js +167 -183
  235. package/lib/utils/lodash.js +13 -9421
  236. package/lib/utils/lodash_source.js +9421 -0
  237. package/lib/utils/menu/aria-menubar.js +13 -18
  238. package/lib/utils/menu/aria-menuitem.js +43 -54
  239. package/lib/utils/menu/aria-submenu.js +50 -59
  240. package/lib/utils/merge.js +15 -17
  241. package/lib/utils/popper.js +1141 -1170
  242. package/lib/utils/popup/index.js +186 -230
  243. package/lib/utils/popup/popup-manager.js +159 -191
  244. package/lib/utils/resize-event.js +29 -44
  245. package/lib/utils/scroll-into-view.js +25 -33
  246. package/lib/utils/scrollbar-width.js +25 -36
  247. package/lib/utils/shared.js +3 -3
  248. package/lib/utils/types.js +19 -32
  249. package/lib/utils/util.js +187 -221
  250. package/lib/utils/vdom.js +5 -9
  251. package/lib/utils/vue-popper.js +166 -188
  252. package/package.json +20 -19
  253. package/packages/alert/src/main.vue +63 -63
  254. package/packages/aside/src/main.vue +9 -9
  255. package/packages/autocomplete/src/autocomplete-suggestions.vue +46 -46
  256. package/packages/autocomplete/src/autocomplete.vue +198 -198
  257. package/packages/avatar/src/main.vue +5 -5
  258. package/packages/backtop/src/main.vue +3 -3
  259. package/packages/badge/src/main.vue +1 -1
  260. package/packages/breadcrumb/src/breadcrumb-item.vue +26 -26
  261. package/packages/breadcrumb/src/breadcrumb.vue +22 -22
  262. package/packages/button/src/button-group.vue +3 -3
  263. package/packages/button/src/button.vue +44 -44
  264. package/packages/calendar/src/date-table.vue +3 -3
  265. package/packages/calendar/src/main.vue +7 -7
  266. package/packages/card/src/main.vue +9 -9
  267. package/packages/carousel/src/item.vue +98 -98
  268. package/packages/carousel/src/main.vue +2 -2
  269. package/packages/cascader/src/cascader.vue +4 -4
  270. package/packages/cascader-panel/src/cascader-menu.vue +4 -4
  271. package/packages/cascader-panel/src/cascader-node.vue +232 -232
  272. package/packages/cascader-panel/src/cascader-panel.vue +3 -3
  273. package/packages/cascader-panel/src/node.js +2 -3
  274. package/packages/cascader-panel/src/store.js +0 -1
  275. package/packages/checkbox/src/checkbox-button.vue +139 -139
  276. package/packages/checkbox/src/checkbox-group.vue +33 -33
  277. package/packages/checkbox/src/checkbox.vue +140 -140
  278. package/packages/col/src/col.js +5 -5
  279. package/packages/collapse/src/collapse-item.vue +55 -55
  280. package/packages/collapse/src/collapse.vue +54 -54
  281. package/packages/color-picker/src/color.js +4 -4
  282. package/packages/color-picker/src/components/alpha-slider.vue +100 -100
  283. package/packages/color-picker/src/components/hue-slider.vue +91 -91
  284. package/packages/color-picker/src/components/picker-dropdown.vue +64 -64
  285. package/packages/color-picker/src/components/predefine.vue +43 -43
  286. package/packages/color-picker/src/components/sv-panel.vue +70 -70
  287. package/packages/color-picker/src/main.vue +141 -141
  288. package/packages/container/src/main.vue +20 -20
  289. package/packages/date-picker/src/basic/date-table.vue +360 -360
  290. package/packages/date-picker/src/basic/month-table.vue +222 -223
  291. package/packages/date-picker/src/basic/time-spinner.vue +174 -174
  292. package/packages/date-picker/src/basic/year-table.vue +91 -91
  293. package/packages/date-picker/src/panel/date-range.vue +415 -415
  294. package/packages/date-picker/src/panel/date.vue +423 -423
  295. package/packages/date-picker/src/panel/month-range.vue +177 -177
  296. package/packages/date-picker/src/panel/time-range.vue +173 -173
  297. package/packages/date-picker/src/panel/time-select.vue +131 -131
  298. package/packages/date-picker/src/panel/time.vue +131 -131
  299. package/packages/date-picker/src/picker.vue +7 -7
  300. package/packages/descriptions/src/descriptions-row.js +3 -3
  301. package/packages/descriptions/src/index.js +1 -1
  302. package/packages/dialog/src/component.vue +155 -155
  303. package/packages/divider/src/main.vue +1 -1
  304. package/packages/drawer/src/main.vue +2 -2
  305. package/packages/dropdown/src/dropdown-item.vue +15 -15
  306. package/packages/dropdown/src/dropdown-menu.vue +47 -47
  307. package/packages/dropdown/src/dropdown.vue +260 -260
  308. package/packages/empty/src/index.vue +1 -1
  309. package/packages/fileUpload/index.js +8 -0
  310. package/packages/fileUpload/src/main.vue +430 -0
  311. package/packages/footer/src/main.vue +9 -9
  312. package/packages/form/src/form-item.vue +245 -245
  313. package/packages/form/src/form.vue +154 -154
  314. package/packages/header/src/main.vue +9 -9
  315. package/packages/icon/src/icon.vue +6 -6
  316. package/packages/image/src/image-viewer.vue +9 -9
  317. package/packages/image/src/main.vue +206 -206
  318. package/packages/infinite-scroll/src/main.js +1 -2
  319. package/packages/input/src/calcTextareaHeight.js +2 -2
  320. package/packages/input/src/input.vue +311 -311
  321. package/packages/input-number/src/input-number.vue +205 -205
  322. package/packages/loading/src/loading.vue +19 -19
  323. package/packages/main/src/main.vue +4 -4
  324. package/packages/menu/src/menu-item-group.vue +27 -27
  325. package/packages/menu/src/menu-item.vue +69 -69
  326. package/packages/menu/src/menu.vue +284 -284
  327. package/packages/menu/src/submenu.vue +308 -309
  328. package/packages/message/src/main.js +1 -1
  329. package/packages/message/src/main.vue +72 -72
  330. package/packages/message-box/src/main.vue +216 -216
  331. package/packages/notification/src/main.js +1 -1
  332. package/packages/notification/src/main.vue +93 -93
  333. package/packages/pagination/src/pager.vue +99 -99
  334. package/packages/popconfirm/src/main.vue +28 -28
  335. package/packages/popover/src/main.vue +6 -6
  336. package/packages/progress/src/progress.vue +174 -174
  337. package/packages/radio/src/radio-button.vue +64 -64
  338. package/packages/radio/src/radio-group.vue +88 -88
  339. package/packages/radio/src/radio.vue +74 -74
  340. package/packages/rate/src/main.vue +270 -270
  341. package/packages/row/src/row.js +3 -3
  342. package/packages/scrollbar/src/main.js +2 -2
  343. package/packages/scrollbar/src/util.js +1 -1
  344. package/packages/select/src/option-group.vue +46 -46
  345. package/packages/select/src/option.vue +122 -122
  346. package/packages/select/src/select-dropdown.vue +49 -49
  347. package/packages/select/src/select.vue +676 -676
  348. package/packages/skeleton/src/item.vue +12 -12
  349. package/packages/slider/src/button.vue +191 -191
  350. package/packages/slider/src/main.vue +314 -314
  351. package/packages/spinner/src/spinner.vue +16 -16
  352. package/packages/statistic/src/main.vue +5 -6
  353. package/packages/steps/src/step.vue +2 -2
  354. package/packages/steps/src/steps.vue +4 -4
  355. package/packages/subTitle/index.js +8 -0
  356. package/packages/subTitle/src/main.vue +33 -0
  357. package/packages/switch/src/component.vue +123 -123
  358. package/packages/tabDialog/index.js +23 -0
  359. package/packages/tabDialog/src/dialog/drag.js +63 -0
  360. package/packages/tabDialog/src/dialog/dragHeight.js +34 -0
  361. package/packages/tabDialog/src/dialog/dragWidth.js +30 -0
  362. package/packages/tabDialog/src/main.vue +277 -0
  363. package/packages/table/src/filter-panel.vue +128 -128
  364. package/packages/table/src/store/index.js +1 -1
  365. package/packages/table/src/table-body.js +2 -2
  366. package/packages/table/src/table-column.js +1 -1
  367. package/packages/table/src/table-header.js +1 -1
  368. package/packages/table/src/table-layout.js +1 -1
  369. package/packages/table/src/table.vue +416 -416
  370. package/packages/tabs/src/tab-bar.vue +43 -43
  371. package/packages/tabs/src/tab-nav.vue +250 -250
  372. package/packages/tabs/src/tab-pane.vue +34 -34
  373. package/packages/tabs/src/tabs.vue +165 -165
  374. package/packages/tag/src/tag.vue +52 -52
  375. package/packages/theme-chalk/src/index.scss +3 -0
  376. package/packages/theme-cy/lib/element.css +1 -0
  377. package/packages/theme-cy/lib/fileUpload.css +1 -0
  378. package/packages/theme-cy/lib/index.css +1 -1
  379. package/packages/theme-cy/lib/subTitle.css +1 -0
  380. package/packages/theme-cy/lib/tabDialog.css +1 -0
  381. package/packages/theme-cy/lib/treeselect.css +1 -1
  382. package/packages/theme-cy/src/element.scss +45 -0
  383. package/packages/theme-cy/src/fileUpload.scss +30 -0
  384. package/packages/theme-cy/src/index.scss +4 -0
  385. package/packages/theme-cy/src/subTitle.scss +26 -0
  386. package/packages/theme-cy/src/tabDialog.scss +43 -0
  387. package/packages/theme-cy/src/treeselect.scss +20 -14
  388. package/packages/timeline/src/item.vue +24 -24
  389. package/packages/timeline/src/main.vue +27 -27
  390. package/packages/tooltip/src/main.js +1 -1
  391. package/packages/transfer/src/main.vue +169 -169
  392. package/packages/transfer/src/transfer-panel.vue +164 -164
  393. package/packages/tree/src/tree-node.vue +169 -169
  394. package/packages/tree/src/tree.vue +408 -408
  395. package/packages/treeSelect/index.js +8 -0
  396. package/packages/{treeselect → treeSelect}/src/main.vue +19 -19
  397. package/packages/upload/src/ajax.js +3 -3
  398. package/packages/upload/src/upload-dragger.vue +50 -50
  399. package/packages/upload/src/upload-list.vue +33 -33
  400. package/packages/upload/src/upload.vue +1 -1
  401. package/src/index.js +13 -5
  402. package/src/locale/format.js +0 -1
  403. package/src/mixins/migrating.js +2 -2
  404. package/src/utils/date.js +2 -368
  405. package/src/utils/date_source.js +368 -0
  406. package/src/utils/lodash.js +9 -18075
  407. package/src/utils/lodash_source.js +18075 -0
  408. package/src/utils/types.js +1 -1
  409. package/types/element-ui.d.ts +16 -3
  410. package/types/fileUpload.d.ts +5 -0
  411. package/types/subTitle.d.ts +5 -0
  412. package/types/tabDialog.d.ts +5 -0
  413. package/types/treeSelect.d.ts +5 -0
  414. package/lib/treeselect.js +0 -682
  415. package/packages/treeselect/index.js +0 -8
  416. package/types/treeselect.d.ts +0 -5
package/lib/popconfirm.js CHANGED
@@ -82,128 +82,3920 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 128);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 208);
86
86
  /******/ })
87
87
  /************************************************************************/
88
- /******/ ({
88
+ /******/ ([
89
+ /* 0 */
90
+ /***/ (function(module, exports) {
91
+
92
+ module.exports = require("vue");
93
+
94
+ /***/ }),
95
+ /* 1 */
96
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
97
+
98
+ "use strict";
99
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return on; });
100
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return off; });
101
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return once; });
102
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return hasClass; });
103
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addClass; });
104
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return removeClass; });
105
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getStyle; });
106
+ /* unused harmony export setStyle */
107
+ /* unused harmony export isScroll */
108
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getScrollContainer; });
109
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isInContainer; });
110
+ /* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(18);
111
+ /* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_0__);
112
+ /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(53);
113
+ /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_1__);
114
+ /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6);
115
+ /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_2__);
116
+ /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3);
117
+ /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__);
118
+ /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7);
119
+ /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_4__);
120
+ /* harmony import */ var core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(16);
121
+ /* harmony import */ var core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_5__);
122
+ /* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(12);
123
+ /* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_6__);
124
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(0);
125
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_7__);
126
+
127
+
128
+
129
+
130
+
131
+
132
+
133
+ /* istanbul ignore next */
134
+
135
+
136
+ var isServer = vue__WEBPACK_IMPORTED_MODULE_7___default.a.prototype.$isServer;
137
+ var SPECIAL_CHARS_REGEXP = /([\:\-\_]+(.))/g;
138
+ var MOZ_HACK_REGEXP = /^moz([A-Z])/;
139
+ var ieVersion = isServer ? 0 : Number(document.documentMode);
140
+
141
+ /* istanbul ignore next */
142
+ var trim = function trim(string) {
143
+ return (string || '').replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g, '');
144
+ };
145
+ /* istanbul ignore next */
146
+ var camelCase = function camelCase(name) {
147
+ return name.replace(SPECIAL_CHARS_REGEXP, function (_, separator, letter, offset) {
148
+ return offset ? letter.toUpperCase() : letter;
149
+ }).replace(MOZ_HACK_REGEXP, 'Moz$1');
150
+ };
151
+
152
+ /* istanbul ignore next */
153
+ var on = function () {
154
+ if (!isServer && document.addEventListener) {
155
+ return function (element, event, handler) {
156
+ if (element && event && handler) {
157
+ element.addEventListener(event, handler, false);
158
+ }
159
+ };
160
+ } else {
161
+ return function (element, event, handler) {
162
+ if (element && event && handler) {
163
+ element.attachEvent('on' + event, handler);
164
+ }
165
+ };
166
+ }
167
+ }();
168
+
169
+ /* istanbul ignore next */
170
+ var off = function () {
171
+ if (!isServer && document.removeEventListener) {
172
+ return function (element, event, handler) {
173
+ if (element && event) {
174
+ element.removeEventListener(event, handler, false);
175
+ }
176
+ };
177
+ } else {
178
+ return function (element, event, handler) {
179
+ if (element && event) {
180
+ element.detachEvent('on' + event, handler);
181
+ }
182
+ };
183
+ }
184
+ }();
185
+
186
+ /* istanbul ignore next */
187
+ var once = function once(el, event, fn) {
188
+ var _listener = function listener() {
189
+ if (fn) {
190
+ fn.apply(this, arguments);
191
+ }
192
+ off(el, event, _listener);
193
+ };
194
+ on(el, event, _listener);
195
+ };
196
+
197
+ /* istanbul ignore next */
198
+ function hasClass(el, cls) {
199
+ if (!el || !cls) return false;
200
+ if (cls.indexOf(' ') !== -1) throw new Error('className should not contain space.');
201
+ if (el.classList) {
202
+ return el.classList.contains(cls);
203
+ } else {
204
+ return (' ' + el.className + ' ').indexOf(' ' + cls + ' ') > -1;
205
+ }
206
+ }
207
+ ;
208
+
209
+ /* istanbul ignore next */
210
+ function addClass(el, cls) {
211
+ if (!el) return;
212
+ var curClass = el.className;
213
+ var classes = (cls || '').split(' ');
214
+ for (var i = 0, j = classes.length; i < j; i++) {
215
+ var clsName = classes[i];
216
+ if (!clsName) continue;
217
+ if (el.classList) {
218
+ el.classList.add(clsName);
219
+ } else if (!hasClass(el, clsName)) {
220
+ curClass += ' ' + clsName;
221
+ }
222
+ }
223
+ if (!el.classList) {
224
+ el.setAttribute('class', curClass);
225
+ }
226
+ }
227
+ ;
228
+
229
+ /* istanbul ignore next */
230
+ function removeClass(el, cls) {
231
+ if (!el || !cls) return;
232
+ var classes = cls.split(' ');
233
+ var curClass = ' ' + el.className + ' ';
234
+ for (var i = 0, j = classes.length; i < j; i++) {
235
+ var clsName = classes[i];
236
+ if (!clsName) continue;
237
+ if (el.classList) {
238
+ el.classList.remove(clsName);
239
+ } else if (hasClass(el, clsName)) {
240
+ curClass = curClass.replace(' ' + clsName + ' ', ' ');
241
+ }
242
+ }
243
+ if (!el.classList) {
244
+ el.setAttribute('class', trim(curClass));
245
+ }
246
+ }
247
+ ;
248
+
249
+ /* istanbul ignore next */
250
+ var getStyle = ieVersion < 9 ? function (element, styleName) {
251
+ if (isServer) return;
252
+ if (!element || !styleName) return null;
253
+ styleName = camelCase(styleName);
254
+ if (styleName === 'float') {
255
+ styleName = 'styleFloat';
256
+ }
257
+ try {
258
+ switch (styleName) {
259
+ case 'opacity':
260
+ try {
261
+ return element.filters.item('alpha').opacity / 100;
262
+ } catch (e) {
263
+ return 1.0;
264
+ }
265
+ default:
266
+ return element.style[styleName] || element.currentStyle ? element.currentStyle[styleName] : null;
267
+ }
268
+ } catch (e) {
269
+ return element.style[styleName];
270
+ }
271
+ } : function (element, styleName) {
272
+ if (isServer) return;
273
+ if (!element || !styleName) return null;
274
+ styleName = camelCase(styleName);
275
+ if (styleName === 'float') {
276
+ styleName = 'cssFloat';
277
+ }
278
+ try {
279
+ var computed = document.defaultView.getComputedStyle(element, '');
280
+ return element.style[styleName] || computed ? computed[styleName] : null;
281
+ } catch (e) {
282
+ return element.style[styleName];
283
+ }
284
+ };
285
+
286
+ /* istanbul ignore next */
287
+ function setStyle(element, styleName, value) {
288
+ if (!element || !styleName) return;
289
+ if (typeof styleName === 'object') {
290
+ for (var prop in styleName) {
291
+ if (styleName.hasOwnProperty(prop)) {
292
+ setStyle(element, prop, styleName[prop]);
293
+ }
294
+ }
295
+ } else {
296
+ styleName = camelCase(styleName);
297
+ if (styleName === 'opacity' && ieVersion < 9) {
298
+ element.style.filter = isNaN(value) ? '' : 'alpha(opacity=' + value * 100 + ')';
299
+ } else {
300
+ element.style[styleName] = value;
301
+ }
302
+ }
303
+ }
304
+ ;
305
+ var isScroll = function isScroll(el, vertical) {
306
+ if (isServer) return;
307
+ var determinedDirection = vertical !== null && vertical !== undefined;
308
+ var overflow = determinedDirection ? vertical ? getStyle(el, 'overflow-y') : getStyle(el, 'overflow-x') : getStyle(el, 'overflow');
309
+ return overflow.match(/(scroll|auto|overlay)/);
310
+ };
311
+ var getScrollContainer = function getScrollContainer(el, vertical) {
312
+ if (isServer) return;
313
+ var parent = el;
314
+ while (parent) {
315
+ if ([window, document, document.documentElement].includes(parent)) {
316
+ return window;
317
+ }
318
+ if (isScroll(parent, vertical)) {
319
+ return parent;
320
+ }
321
+ parent = parent.parentNode;
322
+ }
323
+ return parent;
324
+ };
325
+ var isInContainer = function isInContainer(el, container) {
326
+ if (isServer || !el || !container) return false;
327
+ var elRect = el.getBoundingClientRect();
328
+ var containerRect;
329
+ if ([window, document, document.documentElement, null, undefined].includes(container)) {
330
+ containerRect = {
331
+ top: 0,
332
+ right: window.innerWidth,
333
+ bottom: window.innerHeight,
334
+ left: 0
335
+ };
336
+ } else {
337
+ containerRect = container.getBoundingClientRect();
338
+ }
339
+ return elRect.top < containerRect.bottom && elRect.bottom > containerRect.top && elRect.right > containerRect.left && elRect.left < containerRect.right;
340
+ };
341
+
342
+ /***/ }),
343
+ /* 2 */
344
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
345
+
346
+ "use strict";
347
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
348
+ /* globals __VUE_SSR_CONTEXT__ */
349
+
350
+ // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
351
+ // This module is a runtime utility for cleaner component module output and will
352
+ // be included in the final webpack user bundle.
353
+
354
+ function normalizeComponent(
355
+ scriptExports,
356
+ render,
357
+ staticRenderFns,
358
+ functionalTemplate,
359
+ injectStyles,
360
+ scopeId,
361
+ moduleIdentifier /* server only */,
362
+ shadowMode /* vue-cli only */
363
+ ) {
364
+ // Vue.extend constructor export interop
365
+ var options =
366
+ typeof scriptExports === 'function' ? scriptExports.options : scriptExports
367
+
368
+ // render functions
369
+ if (render) {
370
+ options.render = render
371
+ options.staticRenderFns = staticRenderFns
372
+ options._compiled = true
373
+ }
374
+
375
+ // functional template
376
+ if (functionalTemplate) {
377
+ options.functional = true
378
+ }
379
+
380
+ // scopedId
381
+ if (scopeId) {
382
+ options._scopeId = 'data-v-' + scopeId
383
+ }
384
+
385
+ var hook
386
+ if (moduleIdentifier) {
387
+ // server build
388
+ hook = function (context) {
389
+ // 2.3 injection
390
+ context =
391
+ context || // cached call
392
+ (this.$vnode && this.$vnode.ssrContext) || // stateful
393
+ (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
394
+ // 2.2 with runInNewContext: true
395
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
396
+ context = __VUE_SSR_CONTEXT__
397
+ }
398
+ // inject component styles
399
+ if (injectStyles) {
400
+ injectStyles.call(this, context)
401
+ }
402
+ // register component module identifier for async chunk inferrence
403
+ if (context && context._registeredComponents) {
404
+ context._registeredComponents.add(moduleIdentifier)
405
+ }
406
+ }
407
+ // used by ssr in case component is cached and beforeCreate
408
+ // never gets called
409
+ options._ssrRegister = hook
410
+ } else if (injectStyles) {
411
+ hook = shadowMode
412
+ ? function () {
413
+ injectStyles.call(
414
+ this,
415
+ (options.functional ? this.parent : this).$root.$options.shadowRoot
416
+ )
417
+ }
418
+ : injectStyles
419
+ }
420
+
421
+ if (hook) {
422
+ if (options.functional) {
423
+ // for template-only hot-reload because in that case the render fn doesn't
424
+ // go through the normalizer
425
+ options._injectStyles = hook
426
+ // register for functional component in vue file
427
+ var originalRender = options.render
428
+ options.render = function renderWithStyleInjection(h, context) {
429
+ hook.call(context)
430
+ return originalRender(h, context)
431
+ }
432
+ } else {
433
+ // inject component registration as beforeCreate hook
434
+ var existing = options.beforeCreate
435
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
436
+ }
437
+ }
438
+
439
+ return {
440
+ exports: scriptExports,
441
+ options: options
442
+ }
443
+ }
444
+
445
+
446
+ /***/ }),
447
+ /* 3 */
448
+ /***/ (function(module, exports) {
449
+
450
+ module.exports = require("core-js/modules/es.object.to-string.js");
451
+
452
+ /***/ }),
453
+ /* 4 */
454
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
455
+
456
+ "use strict";
457
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return noop; });
458
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return hasOwn; });
459
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return toObject; });
460
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return getValueByPath; });
461
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return getPropByPath; });
462
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return generateId; });
463
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return valueEquals; });
464
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return escapeRegexpString; });
465
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return arrayFindIndex; });
466
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return arrayFind; });
467
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return coerceTruthyValueToArray; });
468
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return isIE; });
469
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return isEdge; });
470
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return isFirefox; });
471
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return autoprefixer; });
472
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return kebabCase; });
473
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return capitalize; });
474
+ /* unused harmony export looseEqual */
475
+ /* unused harmony export arrayEquals */
476
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return isEqual; });
477
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return isEmpty; });
478
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return rafThrottle; });
479
+ /* unused harmony export objToArray */
480
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return isMac; });
481
+ /* harmony import */ var core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(13);
482
+ /* harmony import */ var core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_0__);
483
+ /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
484
+ /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_1__);
485
+ /* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(17);
486
+ /* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_2__);
487
+ /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3);
488
+ /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__);
489
+ /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7);
490
+ /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_4__);
491
+ /* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(11);
492
+ /* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_5__);
493
+ /* harmony import */ var core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(16);
494
+ /* harmony import */ var core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_6__);
495
+ /* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(12);
496
+ /* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_7__);
497
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(0);
498
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_8__);
499
+ /* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(8);
500
+
501
+
502
+
503
+
504
+
505
+
506
+
507
+
508
+
509
+
510
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
511
+ function noop() {}
512
+ ;
513
+ function hasOwn(obj, key) {
514
+ return hasOwnProperty.call(obj, key);
515
+ }
516
+ ;
517
+ function extend(to, _from) {
518
+ for (var key in _from) {
519
+ to[key] = _from[key];
520
+ }
521
+ return to;
522
+ }
523
+ ;
524
+ function toObject(arr) {
525
+ var res = {};
526
+ for (var i = 0; i < arr.length; i++) {
527
+ if (arr[i]) {
528
+ extend(res, arr[i]);
529
+ }
530
+ }
531
+ return res;
532
+ }
533
+ ;
534
+ var getValueByPath = function getValueByPath(object, prop) {
535
+ prop = prop || '';
536
+ var paths = prop.split('.');
537
+ var current = object;
538
+ var result = null;
539
+ for (var i = 0, j = paths.length; i < j; i++) {
540
+ var path = paths[i];
541
+ if (!current) break;
542
+ if (i === j - 1) {
543
+ result = current[path];
544
+ break;
545
+ }
546
+ current = current[path];
547
+ }
548
+ return result;
549
+ };
550
+ function getPropByPath(obj, path, strict) {
551
+ var tempObj = obj;
552
+ path = path.replace(/\[(\w+)\]/g, '.$1');
553
+ path = path.replace(/^\./, '');
554
+ var keyArr = path.split('.');
555
+ var i = 0;
556
+ for (var len = keyArr.length; i < len - 1; ++i) {
557
+ if (!tempObj && !strict) break;
558
+ var key = keyArr[i];
559
+ if (key in tempObj) {
560
+ tempObj = tempObj[key];
561
+ } else {
562
+ if (strict) {
563
+ throw new Error('please transfer a valid prop path to form item!');
564
+ }
565
+ break;
566
+ }
567
+ }
568
+ return {
569
+ o: tempObj,
570
+ k: keyArr[i],
571
+ v: tempObj ? tempObj[keyArr[i]] : null
572
+ };
573
+ }
574
+ ;
575
+ var generateId = function generateId() {
576
+ return Math.floor(Math.random() * 10000);
577
+ };
578
+ var valueEquals = function valueEquals(a, b) {
579
+ // see: https://stackoverflow.com/questions/3115982/how-to-check-if-two-arrays-are-equal-with-javascript
580
+ if (a === b) return true;
581
+ if (!(a instanceof Array)) return false;
582
+ if (!(b instanceof Array)) return false;
583
+ if (a.length !== b.length) return false;
584
+ for (var i = 0; i !== a.length; ++i) {
585
+ if (a[i] !== b[i]) return false;
586
+ }
587
+ return true;
588
+ };
589
+ var escapeRegexpString = function escapeRegexpString(value) {
590
+ if (value === void 0) {
591
+ value = '';
592
+ }
593
+ return String(value).replace(/[|\\{}()[\]^$+*?.]/g, '\\$&');
594
+ };
595
+
596
+ // TODO: use native Array.find, Array.findIndex when IE support is dropped
597
+ var arrayFindIndex = function arrayFindIndex(arr, pred) {
598
+ for (var i = 0; i !== arr.length; ++i) {
599
+ if (pred(arr[i])) {
600
+ return i;
601
+ }
602
+ }
603
+ return -1;
604
+ };
605
+ var arrayFind = function arrayFind(arr, pred) {
606
+ var idx = arrayFindIndex(arr, pred);
607
+ return idx !== -1 ? arr[idx] : undefined;
608
+ };
609
+
610
+ // coerce truthy value to array
611
+ var coerceTruthyValueToArray = function coerceTruthyValueToArray(val) {
612
+ if (Array.isArray(val)) {
613
+ return val;
614
+ } else if (val) {
615
+ return [val];
616
+ } else {
617
+ return [];
618
+ }
619
+ };
620
+ var isIE = function isIE() {
621
+ return !vue__WEBPACK_IMPORTED_MODULE_8___default.a.prototype.$isServer && !isNaN(Number(document.documentMode));
622
+ };
623
+ var isEdge = function isEdge() {
624
+ return !vue__WEBPACK_IMPORTED_MODULE_8___default.a.prototype.$isServer && navigator.userAgent.indexOf('Edge') > -1;
625
+ };
626
+ var isFirefox = function isFirefox() {
627
+ return !vue__WEBPACK_IMPORTED_MODULE_8___default.a.prototype.$isServer && !!window.navigator.userAgent.match(/firefox/i);
628
+ };
629
+ var autoprefixer = function autoprefixer(style) {
630
+ if (typeof style !== 'object') return style;
631
+ var rules = ['transform', 'transition', 'animation'];
632
+ var prefixes = ['ms-', 'webkit-'];
633
+ rules.forEach(function (rule) {
634
+ var value = style[rule];
635
+ if (rule && value) {
636
+ prefixes.forEach(function (prefix) {
637
+ style[prefix + rule] = value;
638
+ });
639
+ }
640
+ });
641
+ return style;
642
+ };
643
+ var kebabCase = function kebabCase(str) {
644
+ var hyphenateRE = /([^-])([A-Z])/g;
645
+ return str.replace(hyphenateRE, '$1-$2').replace(hyphenateRE, '$1-$2').toLowerCase();
646
+ };
647
+ var capitalize = function capitalize(str) {
648
+ if (!Object(_types__WEBPACK_IMPORTED_MODULE_9__[/* isString */ "e"])(str)) return str;
649
+ return str.charAt(0).toUpperCase() + str.slice(1);
650
+ };
651
+ var looseEqual = function looseEqual(a, b) {
652
+ var isObjectA = Object(_types__WEBPACK_IMPORTED_MODULE_9__[/* isObject */ "d"])(a);
653
+ var isObjectB = Object(_types__WEBPACK_IMPORTED_MODULE_9__[/* isObject */ "d"])(b);
654
+ if (isObjectA && isObjectB) {
655
+ return JSON.stringify(a) === JSON.stringify(b);
656
+ } else if (!isObjectA && !isObjectB) {
657
+ return String(a) === String(b);
658
+ } else {
659
+ return false;
660
+ }
661
+ };
662
+ var arrayEquals = function arrayEquals(arrayA, arrayB) {
663
+ arrayA = arrayA || [];
664
+ arrayB = arrayB || [];
665
+ if (arrayA.length !== arrayB.length) {
666
+ return false;
667
+ }
668
+ for (var i = 0; i < arrayA.length; i++) {
669
+ if (!looseEqual(arrayA[i], arrayB[i])) {
670
+ return false;
671
+ }
672
+ }
673
+ return true;
674
+ };
675
+ var isEqual = function isEqual(value1, value2) {
676
+ if (Array.isArray(value1) && Array.isArray(value2)) {
677
+ return arrayEquals(value1, value2);
678
+ }
679
+ return looseEqual(value1, value2);
680
+ };
681
+ var isEmpty = function isEmpty(val) {
682
+ // null or undefined
683
+ if (val == null) return true;
684
+ if (typeof val === 'boolean') return false;
685
+ if (typeof val === 'number') return !val;
686
+ if (val instanceof Error) return val.message === '';
687
+ switch (Object.prototype.toString.call(val)) {
688
+ // String or Array
689
+ case '[object String]':
690
+ case '[object Array]':
691
+ return !val.length;
692
+
693
+ // Map or Set or File
694
+ case '[object File]':
695
+ case '[object Map]':
696
+ case '[object Set]':
697
+ {
698
+ return !val.size;
699
+ }
700
+ // Plain Object
701
+ case '[object Object]':
702
+ {
703
+ return !Object.keys(val).length;
704
+ }
705
+ }
706
+ return false;
707
+ };
708
+ function rafThrottle(fn) {
709
+ var locked = false;
710
+ return function () {
711
+ var _this = this;
712
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
713
+ args[_key] = arguments[_key];
714
+ }
715
+ if (locked) return;
716
+ locked = true;
717
+ window.requestAnimationFrame(function (_) {
718
+ fn.apply(_this, args);
719
+ locked = false;
720
+ });
721
+ };
722
+ }
723
+ function objToArray(obj) {
724
+ if (Array.isArray(obj)) {
725
+ return obj;
726
+ }
727
+ return isEmpty(obj) ? [] : [obj];
728
+ }
729
+ var isMac = function isMac() {
730
+ return !vue__WEBPACK_IMPORTED_MODULE_8___default.a.prototype.$isServer && /macintosh|mac os x/i.test(navigator.userAgent);
731
+ };
732
+
733
+ /***/ }),
734
+ /* 5 */
735
+ /***/ (function(module, exports) {
736
+
737
+ module.exports = require("core-js/modules/es.function.name.js");
738
+
739
+ /***/ }),
740
+ /* 6 */
741
+ /***/ (function(module, exports) {
742
+
743
+ module.exports = require("core-js/modules/es.number.constructor.js");
744
+
745
+ /***/ }),
746
+ /* 7 */
747
+ /***/ (function(module, exports) {
748
+
749
+ module.exports = require("core-js/modules/es.regexp.exec.js");
750
+
751
+ /***/ }),
752
+ /* 8 */
753
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
754
+
755
+ "use strict";
756
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isString; });
757
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return isObject; });
758
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return isHtmlElement; });
759
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return isFunction; });
760
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return isUndefined; });
761
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isDefined; });
762
+ /* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(19);
763
+ /* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_0__);
764
+ /* harmony import */ var core_js_modules_es_array_buffer_constructor_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(25);
765
+ /* harmony import */ var core_js_modules_es_array_buffer_constructor_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_buffer_constructor_js__WEBPACK_IMPORTED_MODULE_1__);
766
+ /* harmony import */ var core_js_modules_es_array_buffer_slice_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(26);
767
+ /* harmony import */ var core_js_modules_es_array_buffer_slice_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_buffer_slice_js__WEBPACK_IMPORTED_MODULE_2__);
768
+ /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3);
769
+ /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__);
770
+ /* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(11);
771
+ /* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_4__);
772
+ /* harmony import */ var core_js_modules_es_typed_array_int8_array_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(27);
773
+ /* harmony import */ var core_js_modules_es_typed_array_int8_array_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_int8_array_js__WEBPACK_IMPORTED_MODULE_5__);
774
+ /* harmony import */ var core_js_modules_es_typed_array_copy_within_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(28);
775
+ /* harmony import */ var core_js_modules_es_typed_array_copy_within_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_copy_within_js__WEBPACK_IMPORTED_MODULE_6__);
776
+ /* harmony import */ var core_js_modules_es_typed_array_every_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(29);
777
+ /* harmony import */ var core_js_modules_es_typed_array_every_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_every_js__WEBPACK_IMPORTED_MODULE_7__);
778
+ /* harmony import */ var core_js_modules_es_typed_array_fill_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(30);
779
+ /* harmony import */ var core_js_modules_es_typed_array_fill_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_fill_js__WEBPACK_IMPORTED_MODULE_8__);
780
+ /* harmony import */ var core_js_modules_es_typed_array_filter_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(31);
781
+ /* harmony import */ var core_js_modules_es_typed_array_filter_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_filter_js__WEBPACK_IMPORTED_MODULE_9__);
782
+ /* harmony import */ var core_js_modules_es_typed_array_find_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(32);
783
+ /* harmony import */ var core_js_modules_es_typed_array_find_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_find_js__WEBPACK_IMPORTED_MODULE_10__);
784
+ /* harmony import */ var core_js_modules_es_typed_array_find_index_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(33);
785
+ /* harmony import */ var core_js_modules_es_typed_array_find_index_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_find_index_js__WEBPACK_IMPORTED_MODULE_11__);
786
+ /* harmony import */ var core_js_modules_es_typed_array_for_each_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(34);
787
+ /* harmony import */ var core_js_modules_es_typed_array_for_each_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_for_each_js__WEBPACK_IMPORTED_MODULE_12__);
788
+ /* harmony import */ var core_js_modules_es_typed_array_includes_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(35);
789
+ /* harmony import */ var core_js_modules_es_typed_array_includes_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_includes_js__WEBPACK_IMPORTED_MODULE_13__);
790
+ /* harmony import */ var core_js_modules_es_typed_array_index_of_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(36);
791
+ /* harmony import */ var core_js_modules_es_typed_array_index_of_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_index_of_js__WEBPACK_IMPORTED_MODULE_14__);
792
+ /* harmony import */ var core_js_modules_es_typed_array_iterator_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(37);
793
+ /* harmony import */ var core_js_modules_es_typed_array_iterator_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_iterator_js__WEBPACK_IMPORTED_MODULE_15__);
794
+ /* harmony import */ var core_js_modules_es_typed_array_join_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(38);
795
+ /* harmony import */ var core_js_modules_es_typed_array_join_js__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_join_js__WEBPACK_IMPORTED_MODULE_16__);
796
+ /* harmony import */ var core_js_modules_es_typed_array_last_index_of_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(39);
797
+ /* harmony import */ var core_js_modules_es_typed_array_last_index_of_js__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_last_index_of_js__WEBPACK_IMPORTED_MODULE_17__);
798
+ /* harmony import */ var core_js_modules_es_typed_array_map_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(40);
799
+ /* harmony import */ var core_js_modules_es_typed_array_map_js__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_map_js__WEBPACK_IMPORTED_MODULE_18__);
800
+ /* harmony import */ var core_js_modules_es_typed_array_reduce_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(41);
801
+ /* harmony import */ var core_js_modules_es_typed_array_reduce_js__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_reduce_js__WEBPACK_IMPORTED_MODULE_19__);
802
+ /* harmony import */ var core_js_modules_es_typed_array_reduce_right_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(42);
803
+ /* harmony import */ var core_js_modules_es_typed_array_reduce_right_js__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_reduce_right_js__WEBPACK_IMPORTED_MODULE_20__);
804
+ /* harmony import */ var core_js_modules_es_typed_array_reverse_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(43);
805
+ /* harmony import */ var core_js_modules_es_typed_array_reverse_js__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_reverse_js__WEBPACK_IMPORTED_MODULE_21__);
806
+ /* harmony import */ var core_js_modules_es_typed_array_set_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(44);
807
+ /* harmony import */ var core_js_modules_es_typed_array_set_js__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_set_js__WEBPACK_IMPORTED_MODULE_22__);
808
+ /* harmony import */ var core_js_modules_es_typed_array_slice_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(45);
809
+ /* harmony import */ var core_js_modules_es_typed_array_slice_js__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_slice_js__WEBPACK_IMPORTED_MODULE_23__);
810
+ /* harmony import */ var core_js_modules_es_typed_array_some_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(46);
811
+ /* harmony import */ var core_js_modules_es_typed_array_some_js__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_some_js__WEBPACK_IMPORTED_MODULE_24__);
812
+ /* harmony import */ var core_js_modules_es_typed_array_sort_js__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(47);
813
+ /* harmony import */ var core_js_modules_es_typed_array_sort_js__WEBPACK_IMPORTED_MODULE_25___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_sort_js__WEBPACK_IMPORTED_MODULE_25__);
814
+ /* harmony import */ var core_js_modules_es_typed_array_subarray_js__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(48);
815
+ /* harmony import */ var core_js_modules_es_typed_array_subarray_js__WEBPACK_IMPORTED_MODULE_26___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_subarray_js__WEBPACK_IMPORTED_MODULE_26__);
816
+ /* harmony import */ var core_js_modules_es_typed_array_to_locale_string_js__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(49);
817
+ /* harmony import */ var core_js_modules_es_typed_array_to_locale_string_js__WEBPACK_IMPORTED_MODULE_27___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_to_locale_string_js__WEBPACK_IMPORTED_MODULE_27__);
818
+ /* harmony import */ var core_js_modules_es_typed_array_to_string_js__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(50);
819
+ /* harmony import */ var core_js_modules_es_typed_array_to_string_js__WEBPACK_IMPORTED_MODULE_28___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_to_string_js__WEBPACK_IMPORTED_MODULE_28__);
820
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(0);
821
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_29___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_29__);
822
+
823
+
824
+
825
+
826
+
827
+
828
+
829
+
830
+
831
+
832
+
833
+
834
+
835
+
836
+
837
+
838
+
839
+
840
+
841
+
842
+
843
+
844
+
845
+
846
+
847
+
848
+
849
+
850
+
851
+
852
+ function isString(obj) {
853
+ return Object.prototype.toString.call(obj) === '[object String]';
854
+ }
855
+ function isObject(obj) {
856
+ return Object.prototype.toString.call(obj) === '[object Object]';
857
+ }
858
+ function isHtmlElement(node) {
859
+ return node && node.nodeType === Node.ELEMENT_NODE;
860
+ }
861
+
862
+ /**
863
+ * - Inspired:
864
+ * https://github.com/jashkenas/underscore/blob/master/modules/isFunction.js
865
+ */
866
+ var isFunction = function isFunction(functionToCheck) {
867
+ var getType = {};
868
+ return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
869
+ };
870
+ if ( true && typeof Int8Array !== 'object' && (vue__WEBPACK_IMPORTED_MODULE_29___default.a.prototype.$isServer || typeof document.childNodes !== 'function')) {
871
+ isFunction = function isFunction(obj) {
872
+ return typeof obj === 'function' || false;
873
+ };
874
+ }
875
+
876
+ var isUndefined = function isUndefined(val) {
877
+ return val === void 0;
878
+ };
879
+ var isDefined = function isDefined(val) {
880
+ return val !== undefined && val !== null;
881
+ };
882
+
883
+ /***/ }),
884
+ /* 9 */,
885
+ /* 10 */
886
+ /***/ (function(module, exports) {
887
+
888
+ module.exports = require("core-js/modules/web.dom-collections.for-each.js");
889
+
890
+ /***/ }),
891
+ /* 11 */
892
+ /***/ (function(module, exports) {
893
+
894
+ module.exports = require("core-js/modules/es.regexp.to-string.js");
895
+
896
+ /***/ }),
897
+ /* 12 */
898
+ /***/ (function(module, exports) {
899
+
900
+ module.exports = require("core-js/modules/es.string.replace.js");
901
+
902
+ /***/ }),
903
+ /* 13 */
904
+ /***/ (function(module, exports) {
905
+
906
+ module.exports = require("core-js/modules/es.array.slice.js");
907
+
908
+ /***/ }),
909
+ /* 14 */,
910
+ /* 15 */
911
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
912
+
913
+ "use strict";
914
+ /* harmony default export */ __webpack_exports__["a"] = (function (target) {
915
+ for (var i = 1, j = arguments.length; i < j; i++) {
916
+ var source = arguments[i] || {};
917
+ for (var prop in source) {
918
+ if (source.hasOwnProperty(prop)) {
919
+ var value = source[prop];
920
+ if (value !== undefined) {
921
+ target[prop] = value;
922
+ }
923
+ }
924
+ }
925
+ }
926
+ return target;
927
+ });
928
+ ;
929
+
930
+ /***/ }),
931
+ /* 16 */
932
+ /***/ (function(module, exports) {
933
+
934
+ module.exports = require("core-js/modules/es.string.match.js");
935
+
936
+ /***/ }),
937
+ /* 17 */
938
+ /***/ (function(module, exports) {
939
+
940
+ module.exports = require("core-js/modules/es.object.keys.js");
941
+
942
+ /***/ }),
943
+ /* 18 */
944
+ /***/ (function(module, exports) {
945
+
946
+ module.exports = require("core-js/modules/es.array.filter.js");
947
+
948
+ /***/ }),
949
+ /* 19 */
950
+ /***/ (function(module, exports) {
951
+
952
+ module.exports = require("core-js/modules/es.array.iterator.js");
953
+
954
+ /***/ }),
955
+ /* 20 */
956
+ /***/ (function(module, exports) {
957
+
958
+ module.exports = require("core-js/modules/es.array.map.js");
959
+
960
+ /***/ }),
961
+ /* 21 */,
962
+ /* 22 */
963
+ /***/ (function(module, exports) {
964
+
965
+ module.exports = require("core-js/modules/es.array.splice.js");
966
+
967
+ /***/ }),
968
+ /* 23 */
969
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
970
+
971
+ "use strict";
972
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
973
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
974
+
975
+ var scrollBarWidth;
976
+ /* harmony default export */ __webpack_exports__["a"] = (function () {
977
+ if (vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer) return 0;
978
+ if (scrollBarWidth !== undefined) return scrollBarWidth;
979
+ var outer = document.createElement('div');
980
+ outer.className = 'el-scrollbar__wrap';
981
+ outer.style.visibility = 'hidden';
982
+ outer.style.width = '100px';
983
+ outer.style.position = 'absolute';
984
+ outer.style.top = '-9999px';
985
+ document.body.appendChild(outer);
986
+ var widthNoScroll = outer.offsetWidth;
987
+ outer.style.overflow = 'scroll';
988
+ var inner = document.createElement('div');
989
+ inner.style.width = '100%';
990
+ outer.appendChild(inner);
991
+ var widthWithScroll = inner.offsetWidth;
992
+ outer.parentNode.removeChild(outer);
993
+ scrollBarWidth = widthNoScroll - widthWithScroll;
994
+ return scrollBarWidth;
995
+ });
996
+ ;
997
+
998
+ /***/ }),
999
+ /* 24 */
1000
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1001
+
1002
+ "use strict";
1003
+
1004
+ // EXPORTS
1005
+ __webpack_require__.d(__webpack_exports__, "a", function() { return /* reexport */ popup_manager; });
1006
+
1007
+ // EXTERNAL MODULE: external "core-js/modules/es.number.constructor.js"
1008
+ var es_number_constructor_js_ = __webpack_require__(6);
1009
+
1010
+ // EXTERNAL MODULE: external "vue"
1011
+ var external_vue_ = __webpack_require__(0);
1012
+ var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
1013
+
1014
+ // EXTERNAL MODULE: ./src/utils/merge.js
1015
+ var merge = __webpack_require__(15);
1016
+
1017
+ // EXTERNAL MODULE: external "core-js/modules/es.array.splice.js"
1018
+ var es_array_splice_js_ = __webpack_require__(22);
1019
+
1020
+ // EXTERNAL MODULE: external "core-js/modules/es.object.to-string.js"
1021
+ var es_object_to_string_js_ = __webpack_require__(3);
1022
+
1023
+ // EXTERNAL MODULE: external "core-js/modules/es.regexp.exec.js"
1024
+ var es_regexp_exec_js_ = __webpack_require__(7);
1025
+
1026
+ // EXTERNAL MODULE: external "core-js/modules/es.string.split.js"
1027
+ var es_string_split_js_ = __webpack_require__(59);
1028
+
1029
+ // EXTERNAL MODULE: external "core-js/modules/es.string.trim.js"
1030
+ var es_string_trim_js_ = __webpack_require__(55);
1031
+
1032
+ // EXTERNAL MODULE: external "core-js/modules/web.dom-collections.for-each.js"
1033
+ var web_dom_collections_for_each_js_ = __webpack_require__(10);
1034
+
1035
+ // EXTERNAL MODULE: ./src/utils/dom.js
1036
+ var utils_dom = __webpack_require__(1);
1037
+
1038
+ // CONCATENATED MODULE: ./src/utils/popup/popup-manager.js
1039
+
1040
+
1041
+
1042
+
1043
+
1044
+
1045
+
1046
+
1047
+ var hasModal = false;
1048
+ var hasInitZIndex = false;
1049
+ var popup_manager_zIndex;
1050
+ var popup_manager_getModal = function getModal() {
1051
+ if (external_vue_default.a.prototype.$isServer) return;
1052
+ var modalDom = PopupManager.modalDom;
1053
+ if (modalDom) {
1054
+ hasModal = true;
1055
+ } else {
1056
+ hasModal = false;
1057
+ modalDom = document.createElement('div');
1058
+ PopupManager.modalDom = modalDom;
1059
+ modalDom.addEventListener('touchmove', function (event) {
1060
+ event.preventDefault();
1061
+ event.stopPropagation();
1062
+ });
1063
+ modalDom.addEventListener('click', function () {
1064
+ PopupManager.doOnModalClick && PopupManager.doOnModalClick();
1065
+ });
1066
+ }
1067
+ return modalDom;
1068
+ };
1069
+ var instances = {};
1070
+ var PopupManager = {
1071
+ modalFade: true,
1072
+ getInstance: function getInstance(id) {
1073
+ return instances[id];
1074
+ },
1075
+ register: function register(id, instance) {
1076
+ if (id && instance) {
1077
+ instances[id] = instance;
1078
+ }
1079
+ },
1080
+ deregister: function deregister(id) {
1081
+ if (id) {
1082
+ instances[id] = null;
1083
+ delete instances[id];
1084
+ }
1085
+ },
1086
+ nextZIndex: function nextZIndex() {
1087
+ return PopupManager.zIndex++;
1088
+ },
1089
+ modalStack: [],
1090
+ doOnModalClick: function doOnModalClick() {
1091
+ var topItem = PopupManager.modalStack[PopupManager.modalStack.length - 1];
1092
+ if (!topItem) return;
1093
+ var instance = PopupManager.getInstance(topItem.id);
1094
+ if (instance && instance.closeOnClickModal) {
1095
+ instance.close();
1096
+ }
1097
+ },
1098
+ openModal: function openModal(id, zIndex, dom, modalClass, modalFade) {
1099
+ if (external_vue_default.a.prototype.$isServer) return;
1100
+ if (!id || zIndex === undefined) return;
1101
+ this.modalFade = modalFade;
1102
+ var modalStack = this.modalStack;
1103
+ for (var i = 0, j = modalStack.length; i < j; i++) {
1104
+ var item = modalStack[i];
1105
+ if (item.id === id) {
1106
+ return;
1107
+ }
1108
+ }
1109
+ var modalDom = popup_manager_getModal();
1110
+ Object(utils_dom["a" /* addClass */])(modalDom, 'v-modal');
1111
+ if (this.modalFade && !hasModal) {
1112
+ Object(utils_dom["a" /* addClass */])(modalDom, 'v-modal-enter');
1113
+ }
1114
+ if (modalClass) {
1115
+ var classArr = modalClass.trim().split(/\s+/);
1116
+ classArr.forEach(function (item) {
1117
+ return Object(utils_dom["a" /* addClass */])(modalDom, item);
1118
+ });
1119
+ }
1120
+ setTimeout(function () {
1121
+ Object(utils_dom["i" /* removeClass */])(modalDom, 'v-modal-enter');
1122
+ }, 200);
1123
+ if (dom && dom.parentNode && dom.parentNode.nodeType !== 11) {
1124
+ dom.parentNode.appendChild(modalDom);
1125
+ } else {
1126
+ document.body.appendChild(modalDom);
1127
+ }
1128
+ if (zIndex) {
1129
+ modalDom.style.zIndex = zIndex;
1130
+ }
1131
+ modalDom.tabIndex = 0;
1132
+ modalDom.style.display = '';
1133
+ this.modalStack.push({
1134
+ id: id,
1135
+ zIndex: zIndex,
1136
+ modalClass: modalClass
1137
+ });
1138
+ },
1139
+ closeModal: function closeModal(id) {
1140
+ var modalStack = this.modalStack;
1141
+ var modalDom = popup_manager_getModal();
1142
+ if (modalStack.length > 0) {
1143
+ var topItem = modalStack[modalStack.length - 1];
1144
+ if (topItem.id === id) {
1145
+ if (topItem.modalClass) {
1146
+ var classArr = topItem.modalClass.trim().split(/\s+/);
1147
+ classArr.forEach(function (item) {
1148
+ return Object(utils_dom["i" /* removeClass */])(modalDom, item);
1149
+ });
1150
+ }
1151
+ modalStack.pop();
1152
+ if (modalStack.length > 0) {
1153
+ modalDom.style.zIndex = modalStack[modalStack.length - 1].zIndex;
1154
+ }
1155
+ } else {
1156
+ for (var i = modalStack.length - 1; i >= 0; i--) {
1157
+ if (modalStack[i].id === id) {
1158
+ modalStack.splice(i, 1);
1159
+ break;
1160
+ }
1161
+ }
1162
+ }
1163
+ }
1164
+ if (modalStack.length === 0) {
1165
+ if (this.modalFade) {
1166
+ Object(utils_dom["a" /* addClass */])(modalDom, 'v-modal-leave');
1167
+ }
1168
+ setTimeout(function () {
1169
+ if (modalStack.length === 0) {
1170
+ if (modalDom.parentNode) modalDom.parentNode.removeChild(modalDom);
1171
+ modalDom.style.display = 'none';
1172
+ PopupManager.modalDom = undefined;
1173
+ }
1174
+ Object(utils_dom["i" /* removeClass */])(modalDom, 'v-modal-leave');
1175
+ }, 200);
1176
+ }
1177
+ }
1178
+ };
1179
+ Object.defineProperty(PopupManager, 'zIndex', {
1180
+ configurable: true,
1181
+ get: function get() {
1182
+ if (!hasInitZIndex) {
1183
+ popup_manager_zIndex = popup_manager_zIndex || (external_vue_default.a.prototype.$ELEMENT || {}).zIndex || 2000;
1184
+ hasInitZIndex = true;
1185
+ }
1186
+ return popup_manager_zIndex;
1187
+ },
1188
+ set: function set(value) {
1189
+ popup_manager_zIndex = value;
1190
+ }
1191
+ });
1192
+ var popup_manager_getTopPopup = function getTopPopup() {
1193
+ if (external_vue_default.a.prototype.$isServer) return;
1194
+ if (PopupManager.modalStack.length > 0) {
1195
+ var topPopup = PopupManager.modalStack[PopupManager.modalStack.length - 1];
1196
+ if (!topPopup) return;
1197
+ var instance = PopupManager.getInstance(topPopup.id);
1198
+ return instance;
1199
+ }
1200
+ };
1201
+ if (!external_vue_default.a.prototype.$isServer) {
1202
+ // handle `esc` key when the popup is shown
1203
+ window.addEventListener('keydown', function (event) {
1204
+ if (event.keyCode === 27) {
1205
+ var topPopup = popup_manager_getTopPopup();
1206
+ if (topPopup && topPopup.closeOnPressEscape) {
1207
+ topPopup.handleClose ? topPopup.handleClose() : topPopup.handleAction ? topPopup.handleAction('cancel') : topPopup.close();
1208
+ }
1209
+ }
1210
+ });
1211
+ }
1212
+ /* harmony default export */ var popup_manager = (PopupManager);
1213
+ // EXTERNAL MODULE: ./src/utils/scrollbar-width.js
1214
+ var scrollbar_width = __webpack_require__(23);
1215
+
1216
+ // CONCATENATED MODULE: ./src/utils/popup/index.js
1217
+
1218
+
1219
+
1220
+
1221
+
1222
+
1223
+ var idSeed = 1;
1224
+ var scrollBarWidth;
1225
+ /* harmony default export */ var popup = __webpack_exports__["b"] = ({
1226
+ props: {
1227
+ visible: {
1228
+ type: Boolean,
1229
+ default: false
1230
+ },
1231
+ openDelay: {},
1232
+ closeDelay: {},
1233
+ zIndex: {},
1234
+ modal: {
1235
+ type: Boolean,
1236
+ default: false
1237
+ },
1238
+ modalFade: {
1239
+ type: Boolean,
1240
+ default: true
1241
+ },
1242
+ modalClass: {},
1243
+ modalAppendToBody: {
1244
+ type: Boolean,
1245
+ default: false
1246
+ },
1247
+ lockScroll: {
1248
+ type: Boolean,
1249
+ default: true
1250
+ },
1251
+ closeOnPressEscape: {
1252
+ type: Boolean,
1253
+ default: false
1254
+ },
1255
+ closeOnClickModal: {
1256
+ type: Boolean,
1257
+ default: false
1258
+ }
1259
+ },
1260
+ beforeMount: function beforeMount() {
1261
+ this._popupId = 'popup-' + idSeed++;
1262
+ popup_manager.register(this._popupId, this);
1263
+ },
1264
+ beforeDestroy: function beforeDestroy() {
1265
+ popup_manager.deregister(this._popupId);
1266
+ popup_manager.closeModal(this._popupId);
1267
+ this.restoreBodyStyle();
1268
+ },
1269
+ data: function data() {
1270
+ return {
1271
+ opened: false,
1272
+ bodyPaddingRight: null,
1273
+ computedBodyPaddingRight: 0,
1274
+ withoutHiddenClass: true,
1275
+ rendered: false
1276
+ };
1277
+ },
1278
+ watch: {
1279
+ visible: function visible(val) {
1280
+ var _this = this;
1281
+ if (val) {
1282
+ if (this._opening) return;
1283
+ if (!this.rendered) {
1284
+ this.rendered = true;
1285
+ external_vue_default.a.nextTick(function () {
1286
+ _this.open();
1287
+ });
1288
+ } else {
1289
+ this.open();
1290
+ }
1291
+ } else {
1292
+ this.close();
1293
+ }
1294
+ }
1295
+ },
1296
+ methods: {
1297
+ open: function open(options) {
1298
+ var _this2 = this;
1299
+ if (!this.rendered) {
1300
+ this.rendered = true;
1301
+ }
1302
+ var props = Object(merge["a" /* default */])({}, this.$props || this, options);
1303
+ if (this._closeTimer) {
1304
+ clearTimeout(this._closeTimer);
1305
+ this._closeTimer = null;
1306
+ }
1307
+ clearTimeout(this._openTimer);
1308
+ var openDelay = Number(props.openDelay);
1309
+ if (openDelay > 0) {
1310
+ this._openTimer = setTimeout(function () {
1311
+ _this2._openTimer = null;
1312
+ _this2.doOpen(props);
1313
+ }, openDelay);
1314
+ } else {
1315
+ this.doOpen(props);
1316
+ }
1317
+ },
1318
+ doOpen: function doOpen(props) {
1319
+ if (this.$isServer) return;
1320
+ if (this.willOpen && !this.willOpen()) return;
1321
+ if (this.opened) return;
1322
+ this._opening = true;
1323
+ var dom = this.$el;
1324
+ var modal = props.modal;
1325
+ var zIndex = props.zIndex;
1326
+ if (zIndex) {
1327
+ popup_manager.zIndex = zIndex;
1328
+ }
1329
+ if (modal) {
1330
+ if (this._closing) {
1331
+ popup_manager.closeModal(this._popupId);
1332
+ this._closing = false;
1333
+ }
1334
+ popup_manager.openModal(this._popupId, popup_manager.nextZIndex(), this.modalAppendToBody ? undefined : dom, props.modalClass, props.modalFade);
1335
+ if (props.lockScroll) {
1336
+ this.withoutHiddenClass = !Object(utils_dom["d" /* hasClass */])(document.body, 'el-popup-parent--hidden');
1337
+ if (this.withoutHiddenClass) {
1338
+ this.bodyPaddingRight = document.body.style.paddingRight;
1339
+ this.computedBodyPaddingRight = parseInt(Object(utils_dom["c" /* getStyle */])(document.body, 'paddingRight'), 10);
1340
+ }
1341
+ scrollBarWidth = Object(scrollbar_width["a" /* default */])();
1342
+ var bodyHasOverflow = document.documentElement.clientHeight < document.body.scrollHeight;
1343
+ var bodyOverflowY = Object(utils_dom["c" /* getStyle */])(document.body, 'overflowY');
1344
+ if (scrollBarWidth > 0 && (bodyHasOverflow || bodyOverflowY === 'scroll') && this.withoutHiddenClass) {
1345
+ document.body.style.paddingRight = this.computedBodyPaddingRight + scrollBarWidth + 'px';
1346
+ }
1347
+ Object(utils_dom["a" /* addClass */])(document.body, 'el-popup-parent--hidden');
1348
+ }
1349
+ }
1350
+ if (getComputedStyle(dom).position === 'static') {
1351
+ dom.style.position = 'absolute';
1352
+ }
1353
+ dom.style.zIndex = popup_manager.nextZIndex();
1354
+ this.opened = true;
1355
+ this.onOpen && this.onOpen();
1356
+ this.doAfterOpen();
1357
+ },
1358
+ doAfterOpen: function doAfterOpen() {
1359
+ this._opening = false;
1360
+ },
1361
+ close: function close() {
1362
+ var _this3 = this;
1363
+ if (this.willClose && !this.willClose()) return;
1364
+ if (this._openTimer !== null) {
1365
+ clearTimeout(this._openTimer);
1366
+ this._openTimer = null;
1367
+ }
1368
+ clearTimeout(this._closeTimer);
1369
+ var closeDelay = Number(this.closeDelay);
1370
+ if (closeDelay > 0) {
1371
+ this._closeTimer = setTimeout(function () {
1372
+ _this3._closeTimer = null;
1373
+ _this3.doClose();
1374
+ }, closeDelay);
1375
+ } else {
1376
+ this.doClose();
1377
+ }
1378
+ },
1379
+ doClose: function doClose() {
1380
+ this._closing = true;
1381
+ this.onClose && this.onClose();
1382
+ if (this.lockScroll) {
1383
+ setTimeout(this.restoreBodyStyle, 200);
1384
+ }
1385
+ this.opened = false;
1386
+ this.doAfterClose();
1387
+ },
1388
+ doAfterClose: function doAfterClose() {
1389
+ popup_manager.closeModal(this._popupId);
1390
+ this._closing = false;
1391
+ },
1392
+ restoreBodyStyle: function restoreBodyStyle() {
1393
+ if (this.modal && this.withoutHiddenClass) {
1394
+ document.body.style.paddingRight = this.bodyPaddingRight;
1395
+ Object(utils_dom["i" /* removeClass */])(document.body, 'el-popup-parent--hidden');
1396
+ }
1397
+ this.withoutHiddenClass = true;
1398
+ }
1399
+ }
1400
+ });
1401
+
1402
+
1403
+ /***/ }),
1404
+ /* 25 */
1405
+ /***/ (function(module, exports) {
1406
+
1407
+ module.exports = require("core-js/modules/es.array-buffer.constructor.js");
1408
+
1409
+ /***/ }),
1410
+ /* 26 */
1411
+ /***/ (function(module, exports) {
1412
+
1413
+ module.exports = require("core-js/modules/es.array-buffer.slice.js");
1414
+
1415
+ /***/ }),
1416
+ /* 27 */
1417
+ /***/ (function(module, exports) {
1418
+
1419
+ module.exports = require("core-js/modules/es.typed-array.int8-array.js");
1420
+
1421
+ /***/ }),
1422
+ /* 28 */
1423
+ /***/ (function(module, exports) {
1424
+
1425
+ module.exports = require("core-js/modules/es.typed-array.copy-within.js");
1426
+
1427
+ /***/ }),
1428
+ /* 29 */
1429
+ /***/ (function(module, exports) {
1430
+
1431
+ module.exports = require("core-js/modules/es.typed-array.every.js");
1432
+
1433
+ /***/ }),
1434
+ /* 30 */
1435
+ /***/ (function(module, exports) {
1436
+
1437
+ module.exports = require("core-js/modules/es.typed-array.fill.js");
1438
+
1439
+ /***/ }),
1440
+ /* 31 */
1441
+ /***/ (function(module, exports) {
1442
+
1443
+ module.exports = require("core-js/modules/es.typed-array.filter.js");
1444
+
1445
+ /***/ }),
1446
+ /* 32 */
1447
+ /***/ (function(module, exports) {
1448
+
1449
+ module.exports = require("core-js/modules/es.typed-array.find.js");
1450
+
1451
+ /***/ }),
1452
+ /* 33 */
1453
+ /***/ (function(module, exports) {
1454
+
1455
+ module.exports = require("core-js/modules/es.typed-array.find-index.js");
1456
+
1457
+ /***/ }),
1458
+ /* 34 */
1459
+ /***/ (function(module, exports) {
1460
+
1461
+ module.exports = require("core-js/modules/es.typed-array.for-each.js");
1462
+
1463
+ /***/ }),
1464
+ /* 35 */
1465
+ /***/ (function(module, exports) {
1466
+
1467
+ module.exports = require("core-js/modules/es.typed-array.includes.js");
1468
+
1469
+ /***/ }),
1470
+ /* 36 */
1471
+ /***/ (function(module, exports) {
1472
+
1473
+ module.exports = require("core-js/modules/es.typed-array.index-of.js");
1474
+
1475
+ /***/ }),
1476
+ /* 37 */
1477
+ /***/ (function(module, exports) {
1478
+
1479
+ module.exports = require("core-js/modules/es.typed-array.iterator.js");
1480
+
1481
+ /***/ }),
1482
+ /* 38 */
1483
+ /***/ (function(module, exports) {
1484
+
1485
+ module.exports = require("core-js/modules/es.typed-array.join.js");
1486
+
1487
+ /***/ }),
1488
+ /* 39 */
1489
+ /***/ (function(module, exports) {
1490
+
1491
+ module.exports = require("core-js/modules/es.typed-array.last-index-of.js");
1492
+
1493
+ /***/ }),
1494
+ /* 40 */
1495
+ /***/ (function(module, exports) {
1496
+
1497
+ module.exports = require("core-js/modules/es.typed-array.map.js");
1498
+
1499
+ /***/ }),
1500
+ /* 41 */
1501
+ /***/ (function(module, exports) {
1502
+
1503
+ module.exports = require("core-js/modules/es.typed-array.reduce.js");
1504
+
1505
+ /***/ }),
1506
+ /* 42 */
1507
+ /***/ (function(module, exports) {
1508
+
1509
+ module.exports = require("core-js/modules/es.typed-array.reduce-right.js");
1510
+
1511
+ /***/ }),
1512
+ /* 43 */
1513
+ /***/ (function(module, exports) {
1514
+
1515
+ module.exports = require("core-js/modules/es.typed-array.reverse.js");
1516
+
1517
+ /***/ }),
1518
+ /* 44 */
1519
+ /***/ (function(module, exports) {
1520
+
1521
+ module.exports = require("core-js/modules/es.typed-array.set.js");
1522
+
1523
+ /***/ }),
1524
+ /* 45 */
1525
+ /***/ (function(module, exports) {
1526
+
1527
+ module.exports = require("core-js/modules/es.typed-array.slice.js");
1528
+
1529
+ /***/ }),
1530
+ /* 46 */
1531
+ /***/ (function(module, exports) {
1532
+
1533
+ module.exports = require("core-js/modules/es.typed-array.some.js");
1534
+
1535
+ /***/ }),
1536
+ /* 47 */
1537
+ /***/ (function(module, exports) {
1538
+
1539
+ module.exports = require("core-js/modules/es.typed-array.sort.js");
1540
+
1541
+ /***/ }),
1542
+ /* 48 */
1543
+ /***/ (function(module, exports) {
1544
+
1545
+ module.exports = require("core-js/modules/es.typed-array.subarray.js");
1546
+
1547
+ /***/ }),
1548
+ /* 49 */
1549
+ /***/ (function(module, exports) {
1550
+
1551
+ module.exports = require("core-js/modules/es.typed-array.to-locale-string.js");
1552
+
1553
+ /***/ }),
1554
+ /* 50 */
1555
+ /***/ (function(module, exports) {
1556
+
1557
+ module.exports = require("core-js/modules/es.typed-array.to-string.js");
1558
+
1559
+ /***/ }),
1560
+ /* 51 */
1561
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1562
+
1563
+ "use strict";
1564
+ /* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5);
1565
+ /* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_0__);
1566
+ /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
1567
+ /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_1__);
1568
+ /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
1569
+ /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_2__);
1570
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(0);
1571
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_3__);
1572
+ /* harmony import */ var _popup__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(24);
1573
+
1574
+
1575
+
1576
+
1577
+
1578
+ var PopperJS = vue__WEBPACK_IMPORTED_MODULE_3___default.a.prototype.$isServer ? function () {} : __webpack_require__(73);
1579
+ var stop = function stop(e) {
1580
+ return e.stopPropagation();
1581
+ };
1582
+
1583
+ /**
1584
+ * @param {HTMLElement} [reference=$refs.reference] - The reference element used to position the popper.
1585
+ * @param {HTMLElement} [popper=$refs.popper] - The HTML element used as popper, or a configuration used to generate the popper.
1586
+ * @param {String} [placement=button] - Placement of the popper accepted values: top(-start, -end), right(-start, -end), bottom(-start, -end), left(-start, -end)
1587
+ * @param {Number} [offset=0] - Amount of pixels the popper will be shifted (can be negative).
1588
+ * @param {Boolean} [visible=false] Visibility of the popup element.
1589
+ * @param {Boolean} [visible-arrow=false] Visibility of the arrow, no style.
1590
+ */
1591
+ /* harmony default export */ __webpack_exports__["a"] = ({
1592
+ props: {
1593
+ transformOrigin: {
1594
+ type: [Boolean, String],
1595
+ default: true
1596
+ },
1597
+ placement: {
1598
+ type: String,
1599
+ default: 'bottom'
1600
+ },
1601
+ boundariesPadding: {
1602
+ type: Number,
1603
+ default: 5
1604
+ },
1605
+ reference: {},
1606
+ popper: {},
1607
+ offset: {
1608
+ default: 0
1609
+ },
1610
+ value: Boolean,
1611
+ visibleArrow: Boolean,
1612
+ arrowOffset: {
1613
+ type: Number,
1614
+ default: 35
1615
+ },
1616
+ appendToBody: {
1617
+ type: Boolean,
1618
+ default: true
1619
+ },
1620
+ popperOptions: {
1621
+ type: Object,
1622
+ default: function _default() {
1623
+ return {
1624
+ gpuAcceleration: false
1625
+ };
1626
+ }
1627
+ }
1628
+ },
1629
+ data: function data() {
1630
+ return {
1631
+ showPopper: false,
1632
+ currentPlacement: ''
1633
+ };
1634
+ },
1635
+ watch: {
1636
+ value: {
1637
+ immediate: true,
1638
+ handler: function handler(val) {
1639
+ this.showPopper = val;
1640
+ this.$emit('input', val);
1641
+ }
1642
+ },
1643
+ showPopper: function showPopper(val) {
1644
+ if (this.disabled) return;
1645
+ val ? this.updatePopper() : this.destroyPopper();
1646
+ this.$emit('input', val);
1647
+ }
1648
+ },
1649
+ methods: {
1650
+ createPopper: function createPopper() {
1651
+ var _this = this;
1652
+ if (this.$isServer) return;
1653
+ this.currentPlacement = this.currentPlacement || this.placement;
1654
+ if (!/^(top|bottom|left|right)(-start|-end)?$/g.test(this.currentPlacement)) {
1655
+ return;
1656
+ }
1657
+ var options = this.popperOptions;
1658
+ var popper = this.popperElm = this.popperElm || this.popper || this.$refs.popper;
1659
+ var reference = this.referenceElm = this.referenceElm || this.reference || this.$refs.reference;
1660
+ if (!reference && this.$slots.reference && this.$slots.reference[0]) {
1661
+ reference = this.referenceElm = this.$slots.reference[0].elm;
1662
+ }
1663
+ if (!popper || !reference) return;
1664
+ if (this.visibleArrow) this.appendArrow(popper);
1665
+ if (this.appendToBody) document.body.appendChild(this.popperElm);
1666
+ if (this.popperJS && this.popperJS.destroy) {
1667
+ this.popperJS.destroy();
1668
+ }
1669
+ options.placement = this.currentPlacement;
1670
+ options.offset = this.offset;
1671
+ options.arrowOffset = this.arrowOffset;
1672
+ this.popperJS = new PopperJS(reference, popper, options);
1673
+ this.popperJS.onCreate(function (_) {
1674
+ _this.$emit('created', _this);
1675
+ _this.resetTransformOrigin();
1676
+ _this.$nextTick(_this.updatePopper);
1677
+ });
1678
+ if (typeof options.onUpdate === 'function') {
1679
+ this.popperJS.onUpdate(options.onUpdate);
1680
+ }
1681
+ this.popperJS._popper.style.zIndex = _popup__WEBPACK_IMPORTED_MODULE_4__[/* PopupManager */ "a"].nextZIndex();
1682
+ this.popperElm.addEventListener('click', stop);
1683
+ },
1684
+ updatePopper: function updatePopper() {
1685
+ var popperJS = this.popperJS;
1686
+ if (popperJS) {
1687
+ popperJS.update();
1688
+ if (popperJS._popper) {
1689
+ popperJS._popper.style.zIndex = _popup__WEBPACK_IMPORTED_MODULE_4__[/* PopupManager */ "a"].nextZIndex();
1690
+ }
1691
+ } else {
1692
+ this.createPopper();
1693
+ }
1694
+ },
1695
+ doDestroy: function doDestroy(forceDestroy) {
1696
+ /* istanbul ignore if */
1697
+ if (!this.popperJS || this.showPopper && !forceDestroy) return;
1698
+ this.popperJS.destroy();
1699
+ this.popperJS = null;
1700
+ },
1701
+ destroyPopper: function destroyPopper() {
1702
+ if (this.popperJS) {
1703
+ this.resetTransformOrigin();
1704
+ }
1705
+ },
1706
+ resetTransformOrigin: function resetTransformOrigin() {
1707
+ if (!this.transformOrigin) return;
1708
+ var placementMap = {
1709
+ top: 'bottom',
1710
+ bottom: 'top',
1711
+ left: 'right',
1712
+ right: 'left'
1713
+ };
1714
+ var placement = this.popperJS._popper.getAttribute('x-placement').split('-')[0];
1715
+ var origin = placementMap[placement];
1716
+ this.popperJS._popper.style.transformOrigin = typeof this.transformOrigin === 'string' ? this.transformOrigin : ['top', 'bottom'].indexOf(placement) > -1 ? "center " + origin : origin + " center";
1717
+ },
1718
+ appendArrow: function appendArrow(element) {
1719
+ var hash;
1720
+ if (this.appended) {
1721
+ return;
1722
+ }
1723
+ this.appended = true;
1724
+ for (var item in element.attributes) {
1725
+ if (/^_v-/.test(element.attributes[item].name)) {
1726
+ hash = element.attributes[item].name;
1727
+ break;
1728
+ }
1729
+ }
1730
+ var arrow = document.createElement('div');
1731
+ if (hash) {
1732
+ arrow.setAttribute(hash, '');
1733
+ }
1734
+ arrow.setAttribute('x-arrow', '');
1735
+ arrow.className = 'popper__arrow';
1736
+ element.appendChild(arrow);
1737
+ }
1738
+ },
1739
+ beforeDestroy: function beforeDestroy() {
1740
+ this.doDestroy(true);
1741
+ if (this.popperElm && this.popperElm.parentNode === document.body) {
1742
+ this.popperElm.removeEventListener('click', stop);
1743
+ document.body.removeChild(this.popperElm);
1744
+ }
1745
+ },
1746
+ // call destroy in keep-alive mode
1747
+ deactivated: function deactivated() {
1748
+ this.$options.beforeDestroy[0].call(this);
1749
+ }
1750
+ });
1751
+
1752
+ /***/ }),
1753
+ /* 52 */
1754
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1755
+
1756
+ "use strict";
1757
+
1758
+ // EXPORTS
1759
+ __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ t; });
1760
+
1761
+ // UNUSED EXPORTS: use, i18n
1762
+
1763
+ // EXTERNAL MODULE: external "core-js/modules/es.object.get-prototype-of.js"
1764
+ var es_object_get_prototype_of_js_ = __webpack_require__(68);
1765
+
1766
+ // CONCATENATED MODULE: ./src/locale/lang/zh-CN.js
1767
+ /* harmony default export */ var zh_CN = ({
1768
+ el: {
1769
+ colorpicker: {
1770
+ confirm: '确定',
1771
+ clear: '清空'
1772
+ },
1773
+ datepicker: {
1774
+ now: '此刻',
1775
+ today: '今天',
1776
+ cancel: '取消',
1777
+ clear: '清空',
1778
+ confirm: '确定',
1779
+ selectDate: '选择日期',
1780
+ selectTime: '选择时间',
1781
+ startDate: '开始日期',
1782
+ startTime: '开始时间',
1783
+ endDate: '结束日期',
1784
+ endTime: '结束时间',
1785
+ prevYear: '前一年',
1786
+ nextYear: '后一年',
1787
+ prevMonth: '上个月',
1788
+ nextMonth: '下个月',
1789
+ year: '年',
1790
+ month1: '1 月',
1791
+ month2: '2 月',
1792
+ month3: '3 月',
1793
+ month4: '4 月',
1794
+ month5: '5 月',
1795
+ month6: '6 月',
1796
+ month7: '7 月',
1797
+ month8: '8 月',
1798
+ month9: '9 月',
1799
+ month10: '10 月',
1800
+ month11: '11 月',
1801
+ month12: '12 月',
1802
+ // week: '周次',
1803
+ weeks: {
1804
+ sun: '日',
1805
+ mon: '一',
1806
+ tue: '二',
1807
+ wed: '三',
1808
+ thu: '四',
1809
+ fri: '五',
1810
+ sat: '六'
1811
+ },
1812
+ months: {
1813
+ jan: '一月',
1814
+ feb: '二月',
1815
+ mar: '三月',
1816
+ apr: '四月',
1817
+ may: '五月',
1818
+ jun: '六月',
1819
+ jul: '七月',
1820
+ aug: '八月',
1821
+ sep: '九月',
1822
+ oct: '十月',
1823
+ nov: '十一月',
1824
+ dec: '十二月'
1825
+ }
1826
+ },
1827
+ select: {
1828
+ loading: '加载中',
1829
+ noMatch: '无匹配数据',
1830
+ noData: '无数据',
1831
+ placeholder: '请选择'
1832
+ },
1833
+ cascader: {
1834
+ noMatch: '无匹配数据',
1835
+ loading: '加载中',
1836
+ placeholder: '请选择',
1837
+ noData: '暂无数据'
1838
+ },
1839
+ pagination: {
1840
+ goto: '前往',
1841
+ pagesize: '条/页',
1842
+ total: '共 {total} 条',
1843
+ pageClassifier: '页'
1844
+ },
1845
+ messagebox: {
1846
+ title: '提示',
1847
+ confirm: '确定',
1848
+ cancel: '取消',
1849
+ error: '输入的数据不合法!'
1850
+ },
1851
+ upload: {
1852
+ deleteTip: '按 delete 键可删除',
1853
+ delete: '删除',
1854
+ preview: '查看图片',
1855
+ continue: '继续上传'
1856
+ },
1857
+ table: {
1858
+ emptyText: '暂无数据',
1859
+ confirmFilter: '筛选',
1860
+ resetFilter: '重置',
1861
+ clearFilter: '全部',
1862
+ sumText: '合计'
1863
+ },
1864
+ tree: {
1865
+ emptyText: '暂无数据'
1866
+ },
1867
+ transfer: {
1868
+ noMatch: '无匹配数据',
1869
+ noData: '无数据',
1870
+ titles: ['列表 1', '列表 2'],
1871
+ filterPlaceholder: '请输入搜索内容',
1872
+ noCheckedFormat: '共 {total} 项',
1873
+ hasCheckedFormat: '已选 {checked}/{total} 项'
1874
+ },
1875
+ image: {
1876
+ error: '加载失败'
1877
+ },
1878
+ pageHeader: {
1879
+ title: '返回'
1880
+ },
1881
+ popconfirm: {
1882
+ confirmButtonText: '确定',
1883
+ cancelButtonText: '取消'
1884
+ },
1885
+ empty: {
1886
+ description: '暂无数据'
1887
+ }
1888
+ }
1889
+ });
1890
+ // EXTERNAL MODULE: external "vue"
1891
+ var external_vue_ = __webpack_require__(0);
1892
+ var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
1893
+
1894
+ // EXTERNAL MODULE: external "deepmerge"
1895
+ var external_deepmerge_ = __webpack_require__(58);
1896
+ var external_deepmerge_default = /*#__PURE__*/__webpack_require__.n(external_deepmerge_);
1897
+
1898
+ // EXTERNAL MODULE: external "core-js/modules/es.regexp.exec.js"
1899
+ var es_regexp_exec_js_ = __webpack_require__(7);
1900
+
1901
+ // EXTERNAL MODULE: external "core-js/modules/es.string.replace.js"
1902
+ var es_string_replace_js_ = __webpack_require__(12);
1903
+
1904
+ // EXTERNAL MODULE: ./src/utils/util.js
1905
+ var util = __webpack_require__(4);
1906
+
1907
+ // CONCATENATED MODULE: ./src/locale/format.js
1908
+
1909
+
1910
+
1911
+ var RE_NARGS = /(%|)\{([0-9a-zA-Z_]+)\}/g;
1912
+ /**
1913
+ * String format template
1914
+ * - Inspired:
1915
+ * https://github.com/Matt-Esch/string-template/index.js
1916
+ */
1917
+ /* harmony default export */ var format = (function (Vue) {
1918
+ /**
1919
+ * template
1920
+ *
1921
+ * @param {String} string
1922
+ * @param {Array} ...args
1923
+ * @return {String}
1924
+ */
1925
+
1926
+ function template(string) {
1927
+ for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
1928
+ args[_key - 1] = arguments[_key];
1929
+ }
1930
+ if (args.length === 1 && typeof args[0] === 'object') {
1931
+ args = args[0];
1932
+ }
1933
+ if (!args || !args.hasOwnProperty) {
1934
+ args = {};
1935
+ }
1936
+ return string.replace(RE_NARGS, function (match, prefix, i, index) {
1937
+ var result;
1938
+ if (string[index - 1] === '{' && string[index + match.length] === '}') {
1939
+ return i;
1940
+ } else {
1941
+ result = Object(util["j" /* hasOwn */])(args, i) ? args[i] : null;
1942
+ if (result === null || result === undefined) {
1943
+ return '';
1944
+ }
1945
+ return result;
1946
+ }
1947
+ });
1948
+ }
1949
+ return template;
1950
+ });
1951
+ // CONCATENATED MODULE: ./src/locale/index.js
89
1952
 
90
- /***/ 0:
1953
+
1954
+
1955
+
1956
+
1957
+ var locale_format = format(external_vue_default.a);
1958
+ var lang = zh_CN;
1959
+ var merged = false;
1960
+ var locale_i18nHandler = function i18nHandler() {
1961
+ var vuei18n = Object.getPrototypeOf(this || external_vue_default.a).$t;
1962
+ if (typeof vuei18n === 'function' && !!external_vue_default.a.locale) {
1963
+ if (!merged) {
1964
+ merged = true;
1965
+ external_vue_default.a.locale(external_vue_default.a.config.lang, external_deepmerge_default()(lang, external_vue_default.a.locale(external_vue_default.a.config.lang) || {}, {
1966
+ clone: true
1967
+ }));
1968
+ }
1969
+ return vuei18n.apply(this, arguments);
1970
+ }
1971
+ };
1972
+ var t = function t(path, options) {
1973
+ var value = locale_i18nHandler.apply(this, arguments);
1974
+ if (value !== null && value !== undefined) return value;
1975
+ var array = path.split('.');
1976
+ var current = lang;
1977
+ for (var i = 0, j = array.length; i < j; i++) {
1978
+ var property = array[i];
1979
+ value = current[property];
1980
+ if (i === j - 1) return locale_format(value, options);
1981
+ if (!value) return '';
1982
+ current = value;
1983
+ }
1984
+ return '';
1985
+ };
1986
+ var use = function use(l) {
1987
+ lang = l || lang;
1988
+ };
1989
+ var i18n = function i18n(fn) {
1990
+ locale_i18nHandler = fn || locale_i18nHandler;
1991
+ };
1992
+ /* harmony default export */ var locale = ({
1993
+ use: use,
1994
+ t: t,
1995
+ i18n: i18n
1996
+ });
1997
+
1998
+ /***/ }),
1999
+ /* 53 */
2000
+ /***/ (function(module, exports) {
2001
+
2002
+ module.exports = require("core-js/modules/es.array.includes.js");
2003
+
2004
+ /***/ }),
2005
+ /* 54 */,
2006
+ /* 55 */
2007
+ /***/ (function(module, exports) {
2008
+
2009
+ module.exports = require("core-js/modules/es.string.trim.js");
2010
+
2011
+ /***/ }),
2012
+ /* 56 */,
2013
+ /* 57 */,
2014
+ /* 58 */
2015
+ /***/ (function(module, exports) {
2016
+
2017
+ module.exports = require("deepmerge");
2018
+
2019
+ /***/ }),
2020
+ /* 59 */
2021
+ /***/ (function(module, exports) {
2022
+
2023
+ module.exports = require("core-js/modules/es.string.split.js");
2024
+
2025
+ /***/ }),
2026
+ /* 60 */
2027
+ /***/ (function(module, exports) {
2028
+
2029
+ module.exports = require("core-js/modules/es.object.assign.js");
2030
+
2031
+ /***/ }),
2032
+ /* 61 */,
2033
+ /* 62 */,
2034
+ /* 63 */,
2035
+ /* 64 */,
2036
+ /* 65 */,
2037
+ /* 66 */
2038
+ /***/ (function(module, exports) {
2039
+
2040
+ /* WEBPACK VAR INJECTION */(function(__webpack_amd_options__) {/* globals __webpack_amd_options__ */
2041
+ module.exports = __webpack_amd_options__;
2042
+
2043
+ /* WEBPACK VAR INJECTION */}.call(this, {}))
2044
+
2045
+ /***/ }),
2046
+ /* 67 */
2047
+ /***/ (function(module, exports) {
2048
+
2049
+ module.exports = function(originalModule) {
2050
+ if (!originalModule.webpackPolyfill) {
2051
+ var module = Object.create(originalModule);
2052
+ // module.parent = undefined by default
2053
+ if (!module.children) module.children = [];
2054
+ Object.defineProperty(module, "loaded", {
2055
+ enumerable: true,
2056
+ get: function() {
2057
+ return module.l;
2058
+ }
2059
+ });
2060
+ Object.defineProperty(module, "id", {
2061
+ enumerable: true,
2062
+ get: function() {
2063
+ return module.i;
2064
+ }
2065
+ });
2066
+ Object.defineProperty(module, "exports", {
2067
+ enumerable: true
2068
+ });
2069
+ module.webpackPolyfill = 1;
2070
+ }
2071
+ return module;
2072
+ };
2073
+
2074
+
2075
+ /***/ }),
2076
+ /* 68 */
2077
+ /***/ (function(module, exports) {
2078
+
2079
+ module.exports = require("core-js/modules/es.object.get-prototype-of.js");
2080
+
2081
+ /***/ }),
2082
+ /* 69 */,
2083
+ /* 70 */,
2084
+ /* 71 */,
2085
+ /* 72 */,
2086
+ /* 73 */
2087
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
2088
+
2089
+ "use strict";
2090
+ __webpack_require__.r(__webpack_exports__);
2091
+ /* WEBPACK VAR INJECTION */(function(module) {/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(18);
2092
+ /* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_0__);
2093
+ /* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(20);
2094
+ /* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_1__);
2095
+ /* harmony import */ var core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(13);
2096
+ /* harmony import */ var core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_2__);
2097
+ /* harmony import */ var core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(60);
2098
+ /* harmony import */ var core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_3__);
2099
+ /* harmony import */ var core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(74);
2100
+ /* harmony import */ var core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_4__);
2101
+ /* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(17);
2102
+ /* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_5__);
2103
+ /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(3);
2104
+ /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_6__);
2105
+ /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(7);
2106
+ /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_7__);
2107
+ /* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(11);
2108
+ /* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_8__);
2109
+ /* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(12);
2110
+ /* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_9__);
2111
+ /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(10);
2112
+ /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_10__);
2113
+
2114
+
2115
+
2116
+
2117
+
2118
+
2119
+
2120
+
2121
+
2122
+
2123
+
2124
+ /**
2125
+ * @fileOverview Kickass library to create and place poppers near their reference elements.
2126
+ * @version {{version}}
2127
+ * @license
2128
+ * Copyright (c) 2016 Federico Zivolo and contributors
2129
+ *
2130
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
2131
+ * of this software and associated documentation files (the "Software"), to deal
2132
+ * in the Software without restriction, including without limitation the rights
2133
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
2134
+ * copies of the Software, and to permit persons to whom the Software is
2135
+ * furnished to do so, subject to the following conditions:
2136
+ *
2137
+ * The above copyright notice and this permission notice shall be included in all
2138
+ * copies or substantial portions of the Software.
2139
+ *
2140
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2141
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2142
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2143
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2144
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2145
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2146
+ * SOFTWARE.
2147
+ */
2148
+
2149
+ //
2150
+ // Cross module loader
2151
+ // Supported: Node, AMD, Browser globals
2152
+ //
2153
+ ;
2154
+ (function (root, factory) {
2155
+ if (typeof define === 'function' && __webpack_require__(66)) {
2156
+ // AMD. Register as an anonymous module.
2157
+ define(factory);
2158
+ } else if ( true && module.exports) {
2159
+ // Node. Does not work with strict CommonJS, but
2160
+ // only CommonJS-like environments that support module.exports,
2161
+ // like Node.
2162
+ module.exports = factory();
2163
+ } else {
2164
+ // Browser globals (root is window)
2165
+ root.Popper = factory();
2166
+ }
2167
+ })(undefined, function () {
2168
+ 'use strict';
2169
+
2170
+ var root = window;
2171
+
2172
+ // default options
2173
+ var DEFAULTS = {
2174
+ // placement of the popper
2175
+ placement: 'bottom',
2176
+ gpuAcceleration: true,
2177
+ // shift popper from its origin by the given amount of pixels (can be negative)
2178
+ offset: 0,
2179
+ // the element which will act as boundary of the popper
2180
+ boundariesElement: 'viewport',
2181
+ // amount of pixel used to define a minimum distance between the boundaries and the popper
2182
+ boundariesPadding: 5,
2183
+ // popper will try to prevent overflow following this order,
2184
+ // by default, then, it could overflow on the left and on top of the boundariesElement
2185
+ preventOverflowOrder: ['left', 'right', 'top', 'bottom'],
2186
+ // the behavior used by flip to change the placement of the popper
2187
+ flipBehavior: 'flip',
2188
+ arrowElement: '[x-arrow]',
2189
+ arrowOffset: 0,
2190
+ // list of functions used to modify the offsets before they are applied to the popper
2191
+ modifiers: ['shift', 'offset', 'preventOverflow', 'keepTogether', 'arrow', 'flip', 'applyStyle'],
2192
+ modifiersIgnored: [],
2193
+ forceAbsolute: false
2194
+ };
2195
+
2196
+ /**
2197
+ * Create a new Popper.js instance
2198
+ * @constructor Popper
2199
+ * @param {HTMLElement} reference - The reference element used to position the popper
2200
+ * @param {HTMLElement|Object} popper
2201
+ * The HTML element used as popper, or a configuration used to generate the popper.
2202
+ * @param {String} [popper.tagName='div'] The tag name of the generated popper.
2203
+ * @param {Array} [popper.classNames=['popper']] Array of classes to apply to the generated popper.
2204
+ * @param {Array} [popper.attributes] Array of attributes to apply, specify `attr:value` to assign a value to it.
2205
+ * @param {HTMLElement|String} [popper.parent=window.document.body] The parent element, given as HTMLElement or as query string.
2206
+ * @param {String} [popper.content=''] The content of the popper, it can be text, html, or node; if it is not text, set `contentType` to `html` or `node`.
2207
+ * @param {String} [popper.contentType='text'] If `html`, the `content` will be parsed as HTML. If `node`, it will be appended as-is.
2208
+ * @param {String} [popper.arrowTagName='div'] Same as `popper.tagName` but for the arrow element.
2209
+ * @param {Array} [popper.arrowClassNames='popper__arrow'] Same as `popper.classNames` but for the arrow element.
2210
+ * @param {String} [popper.arrowAttributes=['x-arrow']] Same as `popper.attributes` but for the arrow element.
2211
+ * @param {Object} options
2212
+ * @param {String} [options.placement=bottom]
2213
+ * Placement of the popper accepted values: `top(-start, -end), right(-start, -end), bottom(-start, -right),
2214
+ * left(-start, -end)`
2215
+ *
2216
+ * @param {HTMLElement|String} [options.arrowElement='[x-arrow]']
2217
+ * The DOM Node used as arrow for the popper, or a CSS selector used to get the DOM node. It must be child of
2218
+ * its parent Popper. Popper.js will apply to the given element the style required to align the arrow with its
2219
+ * reference element.
2220
+ * By default, it will look for a child node of the popper with the `x-arrow` attribute.
2221
+ *
2222
+ * @param {Boolean} [options.gpuAcceleration=true]
2223
+ * When this property is set to true, the popper position will be applied using CSS3 translate3d, allowing the
2224
+ * browser to use the GPU to accelerate the rendering.
2225
+ * If set to false, the popper will be placed using `top` and `left` properties, not using the GPU.
2226
+ *
2227
+ * @param {Number} [options.offset=0]
2228
+ * Amount of pixels the popper will be shifted (can be negative).
2229
+ *
2230
+ * @param {String|Element} [options.boundariesElement='viewport']
2231
+ * The element which will define the boundaries of the popper position, the popper will never be placed outside
2232
+ * of the defined boundaries (except if `keepTogether` is enabled)
2233
+ *
2234
+ * @param {Number} [options.boundariesPadding=5]
2235
+ * Additional padding for the boundaries
2236
+ *
2237
+ * @param {Array} [options.preventOverflowOrder=['left', 'right', 'top', 'bottom']]
2238
+ * Order used when Popper.js tries to avoid overflows from the boundaries, they will be checked in order,
2239
+ * this means that the last ones will never overflow
2240
+ *
2241
+ * @param {String|Array} [options.flipBehavior='flip']
2242
+ * The behavior used by the `flip` modifier to change the placement of the popper when the latter is trying to
2243
+ * overlap its reference element. Defining `flip` as value, the placement will be flipped on
2244
+ * its axis (`right - left`, `top - bottom`).
2245
+ * You can even pass an array of placements (eg: `['right', 'left', 'top']` ) to manually specify
2246
+ * how alter the placement when a flip is needed. (eg. in the above example, it would first flip from right to left,
2247
+ * then, if even in its new placement, the popper is overlapping its reference element, it will be moved to top)
2248
+ *
2249
+ * @param {Array} [options.modifiers=[ 'shift', 'offset', 'preventOverflow', 'keepTogether', 'arrow', 'flip', 'applyStyle']]
2250
+ * List of functions used to modify the data before they are applied to the popper, add your custom functions
2251
+ * to this array to edit the offsets and placement.
2252
+ * The function should reflect the @params and @returns of preventOverflow
2253
+ *
2254
+ * @param {Array} [options.modifiersIgnored=[]]
2255
+ * Put here any built-in modifier name you want to exclude from the modifiers list
2256
+ * The function should reflect the @params and @returns of preventOverflow
2257
+ *
2258
+ * @param {Boolean} [options.removeOnDestroy=false]
2259
+ * Set to true if you want to automatically remove the popper when you call the `destroy` method.
2260
+ */
2261
+ function Popper(reference, popper, options) {
2262
+ this._reference = reference.jquery ? reference[0] : reference;
2263
+ this.state = {};
2264
+
2265
+ // if the popper variable is a configuration object, parse it to generate an HTMLElement
2266
+ // generate a default popper if is not defined
2267
+ var isNotDefined = typeof popper === 'undefined' || popper === null;
2268
+ var isConfig = popper && Object.prototype.toString.call(popper) === '[object Object]';
2269
+ if (isNotDefined || isConfig) {
2270
+ this._popper = this.parse(isConfig ? popper : {});
2271
+ }
2272
+ // otherwise, use the given HTMLElement as popper
2273
+ else {
2274
+ this._popper = popper.jquery ? popper[0] : popper;
2275
+ }
2276
+
2277
+ // with {} we create a new object with the options inside it
2278
+ this._options = Object.assign({}, DEFAULTS, options);
2279
+
2280
+ // refactoring modifiers' list
2281
+ this._options.modifiers = this._options.modifiers.map(function (modifier) {
2282
+ // remove ignored modifiers
2283
+ if (this._options.modifiersIgnored.indexOf(modifier) !== -1) return;
2284
+
2285
+ // set the x-placement attribute before everything else because it could be used to add margins to the popper
2286
+ // margins needs to be calculated to get the correct popper offsets
2287
+ if (modifier === 'applyStyle') {
2288
+ this._popper.setAttribute('x-placement', this._options.placement);
2289
+ }
2290
+
2291
+ // return predefined modifier identified by string or keep the custom one
2292
+ return this.modifiers[modifier] || modifier;
2293
+ }.bind(this));
2294
+
2295
+ // make sure to apply the popper position before any computation
2296
+ this.state.position = this._getPosition(this._popper, this._reference);
2297
+ setStyle(this._popper, {
2298
+ position: this.state.position,
2299
+ top: 0
2300
+ });
2301
+
2302
+ // fire the first update to position the popper in the right place
2303
+ this.update();
2304
+
2305
+ // setup event listeners, they will take care of update the position in specific situations
2306
+ this._setupEventListeners();
2307
+ return this;
2308
+ }
2309
+
2310
+ //
2311
+ // Methods
2312
+ //
2313
+ /**
2314
+ * Destroy the popper
2315
+ * @method
2316
+ * @memberof Popper
2317
+ */
2318
+ Popper.prototype.destroy = function () {
2319
+ this._popper.removeAttribute('x-placement');
2320
+ this._popper.style.left = '';
2321
+ this._popper.style.position = '';
2322
+ this._popper.style.top = '';
2323
+ this._popper.style[getSupportedPropertyName('transform')] = '';
2324
+ this._removeEventListeners();
2325
+
2326
+ // remove the popper if user explicity asked for the deletion on destroy
2327
+ if (this._options.removeOnDestroy) {
2328
+ this._popper.remove();
2329
+ }
2330
+ return this;
2331
+ };
2332
+
2333
+ /**
2334
+ * Updates the position of the popper, computing the new offsets and applying the new style
2335
+ * @method
2336
+ * @memberof Popper
2337
+ */
2338
+ Popper.prototype.update = function () {
2339
+ var data = {
2340
+ instance: this,
2341
+ styles: {}
2342
+ };
2343
+
2344
+ // store placement inside the data object, modifiers will be able to edit `placement` if needed
2345
+ // and refer to _originalPlacement to know the original value
2346
+ data.placement = this._options.placement;
2347
+ data._originalPlacement = this._options.placement;
2348
+
2349
+ // compute the popper and reference offsets and put them inside data.offsets
2350
+ data.offsets = this._getOffsets(this._popper, this._reference, data.placement);
2351
+
2352
+ // get boundaries
2353
+ data.boundaries = this._getBoundaries(data, this._options.boundariesPadding, this._options.boundariesElement);
2354
+ data = this.runModifiers(data, this._options.modifiers);
2355
+ if (typeof this.state.updateCallback === 'function') {
2356
+ this.state.updateCallback(data);
2357
+ }
2358
+ };
2359
+
2360
+ /**
2361
+ * If a function is passed, it will be executed after the initialization of popper with as first argument the Popper instance.
2362
+ * @method
2363
+ * @memberof Popper
2364
+ * @param {Function} callback
2365
+ */
2366
+ Popper.prototype.onCreate = function (callback) {
2367
+ // the createCallbacks return as first argument the popper instance
2368
+ callback(this);
2369
+ return this;
2370
+ };
2371
+
2372
+ /**
2373
+ * If a function is passed, it will be executed after each update of popper with as first argument the set of coordinates and informations
2374
+ * used to style popper and its arrow.
2375
+ * NOTE: it doesn't get fired on the first call of the `Popper.update()` method inside the `Popper` constructor!
2376
+ * @method
2377
+ * @memberof Popper
2378
+ * @param {Function} callback
2379
+ */
2380
+ Popper.prototype.onUpdate = function (callback) {
2381
+ this.state.updateCallback = callback;
2382
+ return this;
2383
+ };
2384
+
2385
+ /**
2386
+ * Helper used to generate poppers from a configuration file
2387
+ * @method
2388
+ * @memberof Popper
2389
+ * @param config {Object} configuration
2390
+ * @returns {HTMLElement} popper
2391
+ */
2392
+ Popper.prototype.parse = function (config) {
2393
+ var defaultConfig = {
2394
+ tagName: 'div',
2395
+ classNames: ['popper'],
2396
+ attributes: [],
2397
+ parent: root.document.body,
2398
+ content: '',
2399
+ contentType: 'text',
2400
+ arrowTagName: 'div',
2401
+ arrowClassNames: ['popper__arrow'],
2402
+ arrowAttributes: ['x-arrow']
2403
+ };
2404
+ config = Object.assign({}, defaultConfig, config);
2405
+ var d = root.document;
2406
+ var popper = d.createElement(config.tagName);
2407
+ addClassNames(popper, config.classNames);
2408
+ addAttributes(popper, config.attributes);
2409
+ if (config.contentType === 'node') {
2410
+ popper.appendChild(config.content.jquery ? config.content[0] : config.content);
2411
+ } else if (config.contentType === 'html') {
2412
+ popper.innerHTML = config.content;
2413
+ } else {
2414
+ popper.textContent = config.content;
2415
+ }
2416
+ if (config.arrowTagName) {
2417
+ var arrow = d.createElement(config.arrowTagName);
2418
+ addClassNames(arrow, config.arrowClassNames);
2419
+ addAttributes(arrow, config.arrowAttributes);
2420
+ popper.appendChild(arrow);
2421
+ }
2422
+ var parent = config.parent.jquery ? config.parent[0] : config.parent;
2423
+
2424
+ // if the given parent is a string, use it to match an element
2425
+ // if more than one element is matched, the first one will be used as parent
2426
+ // if no elements are matched, the script will throw an error
2427
+ if (typeof parent === 'string') {
2428
+ parent = d.querySelectorAll(config.parent);
2429
+ if (parent.length > 1) {
2430
+ console.warn('WARNING: the given `parent` query(' + config.parent + ') matched more than one element, the first one will be used');
2431
+ }
2432
+ if (parent.length === 0) {
2433
+ throw 'ERROR: the given `parent` doesn\'t exists!';
2434
+ }
2435
+ parent = parent[0];
2436
+ }
2437
+ // if the given parent is a DOM nodes list or an array of nodes with more than one element,
2438
+ // the first one will be used as parent
2439
+ if (parent.length > 1 && parent instanceof Element === false) {
2440
+ console.warn('WARNING: you have passed as parent a list of elements, the first one will be used');
2441
+ parent = parent[0];
2442
+ }
2443
+
2444
+ // append the generated popper to its parent
2445
+ parent.appendChild(popper);
2446
+ return popper;
2447
+
2448
+ /**
2449
+ * Adds class names to the given element
2450
+ * @function
2451
+ * @ignore
2452
+ * @param {HTMLElement} target
2453
+ * @param {Array} classes
2454
+ */
2455
+ function addClassNames(element, classNames) {
2456
+ classNames.forEach(function (className) {
2457
+ element.classList.add(className);
2458
+ });
2459
+ }
2460
+
2461
+ /**
2462
+ * Adds attributes to the given element
2463
+ * @function
2464
+ * @ignore
2465
+ * @param {HTMLElement} target
2466
+ * @param {Array} attributes
2467
+ * @example
2468
+ * addAttributes(element, [ 'data-info:foobar' ]);
2469
+ */
2470
+ function addAttributes(element, attributes) {
2471
+ attributes.forEach(function (attribute) {
2472
+ element.setAttribute(attribute.split(':')[0], attribute.split(':')[1] || '');
2473
+ });
2474
+ }
2475
+ };
2476
+
2477
+ /**
2478
+ * Helper used to get the position which will be applied to the popper
2479
+ * @method
2480
+ * @memberof Popper
2481
+ * @param config {HTMLElement} popper element
2482
+ * @param reference {HTMLElement} reference element
2483
+ * @returns {String} position
2484
+ */
2485
+ Popper.prototype._getPosition = function (popper, reference) {
2486
+ var container = getOffsetParent(reference);
2487
+ if (this._options.forceAbsolute) {
2488
+ return 'absolute';
2489
+ }
2490
+
2491
+ // Decide if the popper will be fixed
2492
+ // If the reference element is inside a fixed context, the popper will be fixed as well to allow them to scroll together
2493
+ var isParentFixed = isFixed(reference, container);
2494
+ return isParentFixed ? 'fixed' : 'absolute';
2495
+ };
2496
+
2497
+ /**
2498
+ * Get offsets to the popper
2499
+ * @method
2500
+ * @memberof Popper
2501
+ * @access private
2502
+ * @param {Element} popper - the popper element
2503
+ * @param {Element} reference - the reference element (the popper will be relative to this)
2504
+ * @returns {Object} An object containing the offsets which will be applied to the popper
2505
+ */
2506
+ Popper.prototype._getOffsets = function (popper, reference, placement) {
2507
+ placement = placement.split('-')[0];
2508
+ var popperOffsets = {};
2509
+ popperOffsets.position = this.state.position;
2510
+ var isParentFixed = popperOffsets.position === 'fixed';
2511
+
2512
+ //
2513
+ // Get reference element position
2514
+ //
2515
+ var referenceOffsets = getOffsetRectRelativeToCustomParent(reference, getOffsetParent(popper), isParentFixed);
2516
+
2517
+ //
2518
+ // Get popper sizes
2519
+ //
2520
+ var popperRect = getOuterSizes(popper);
2521
+
2522
+ //
2523
+ // Compute offsets of popper
2524
+ //
2525
+
2526
+ // depending by the popper placement we have to compute its offsets slightly differently
2527
+ if (['right', 'left'].indexOf(placement) !== -1) {
2528
+ popperOffsets.top = referenceOffsets.top + referenceOffsets.height / 2 - popperRect.height / 2;
2529
+ if (placement === 'left') {
2530
+ popperOffsets.left = referenceOffsets.left - popperRect.width;
2531
+ } else {
2532
+ popperOffsets.left = referenceOffsets.right;
2533
+ }
2534
+ } else {
2535
+ popperOffsets.left = referenceOffsets.left + referenceOffsets.width / 2 - popperRect.width / 2;
2536
+ if (placement === 'top') {
2537
+ popperOffsets.top = referenceOffsets.top - popperRect.height;
2538
+ } else {
2539
+ popperOffsets.top = referenceOffsets.bottom;
2540
+ }
2541
+ }
2542
+
2543
+ // Add width and height to our offsets object
2544
+ popperOffsets.width = popperRect.width;
2545
+ popperOffsets.height = popperRect.height;
2546
+ return {
2547
+ popper: popperOffsets,
2548
+ reference: referenceOffsets
2549
+ };
2550
+ };
2551
+
2552
+ /**
2553
+ * Setup needed event listeners used to update the popper position
2554
+ * @method
2555
+ * @memberof Popper
2556
+ * @access private
2557
+ */
2558
+ Popper.prototype._setupEventListeners = function () {
2559
+ // NOTE: 1 DOM access here
2560
+ this.state.updateBound = this.update.bind(this);
2561
+ root.addEventListener('resize', this.state.updateBound);
2562
+ // if the boundariesElement is window we don't need to listen for the scroll event
2563
+ if (this._options.boundariesElement !== 'window') {
2564
+ var target = getScrollParent(this._reference);
2565
+ // here it could be both `body` or `documentElement` thanks to Firefox, we then check both
2566
+ if (target === root.document.body || target === root.document.documentElement) {
2567
+ target = root;
2568
+ }
2569
+ target.addEventListener('scroll', this.state.updateBound);
2570
+ this.state.scrollTarget = target;
2571
+ }
2572
+ };
2573
+
2574
+ /**
2575
+ * Remove event listeners used to update the popper position
2576
+ * @method
2577
+ * @memberof Popper
2578
+ * @access private
2579
+ */
2580
+ Popper.prototype._removeEventListeners = function () {
2581
+ // NOTE: 1 DOM access here
2582
+ root.removeEventListener('resize', this.state.updateBound);
2583
+ if (this._options.boundariesElement !== 'window' && this.state.scrollTarget) {
2584
+ this.state.scrollTarget.removeEventListener('scroll', this.state.updateBound);
2585
+ this.state.scrollTarget = null;
2586
+ }
2587
+ this.state.updateBound = null;
2588
+ };
2589
+
2590
+ /**
2591
+ * Computed the boundaries limits and return them
2592
+ * @method
2593
+ * @memberof Popper
2594
+ * @access private
2595
+ * @param {Object} data - Object containing the property "offsets" generated by `_getOffsets`
2596
+ * @param {Number} padding - Boundaries padding
2597
+ * @param {Element} boundariesElement - Element used to define the boundaries
2598
+ * @returns {Object} Coordinates of the boundaries
2599
+ */
2600
+ Popper.prototype._getBoundaries = function (data, padding, boundariesElement) {
2601
+ // NOTE: 1 DOM access here
2602
+ var boundaries = {};
2603
+ var width, height;
2604
+ if (boundariesElement === 'window') {
2605
+ var body = root.document.body,
2606
+ html = root.document.documentElement;
2607
+ height = Math.max(body.scrollHeight, body.offsetHeight, html.clientHeight, html.scrollHeight, html.offsetHeight);
2608
+ width = Math.max(body.scrollWidth, body.offsetWidth, html.clientWidth, html.scrollWidth, html.offsetWidth);
2609
+ boundaries = {
2610
+ top: 0,
2611
+ right: width,
2612
+ bottom: height,
2613
+ left: 0
2614
+ };
2615
+ } else if (boundariesElement === 'viewport') {
2616
+ var offsetParent = getOffsetParent(this._popper);
2617
+ var scrollParent = getScrollParent(this._popper);
2618
+ var offsetParentRect = getOffsetRect(offsetParent);
2619
+
2620
+ // Thanks the fucking native API, `document.body.scrollTop` & `document.documentElement.scrollTop`
2621
+ var getScrollTopValue = function getScrollTopValue(element) {
2622
+ return element == document.body ? Math.max(document.documentElement.scrollTop, document.body.scrollTop) : element.scrollTop;
2623
+ };
2624
+ var getScrollLeftValue = function getScrollLeftValue(element) {
2625
+ return element == document.body ? Math.max(document.documentElement.scrollLeft, document.body.scrollLeft) : element.scrollLeft;
2626
+ };
2627
+
2628
+ // if the popper is fixed we don't have to substract scrolling from the boundaries
2629
+ var scrollTop = data.offsets.popper.position === 'fixed' ? 0 : getScrollTopValue(scrollParent);
2630
+ var scrollLeft = data.offsets.popper.position === 'fixed' ? 0 : getScrollLeftValue(scrollParent);
2631
+ boundaries = {
2632
+ top: 0 - (offsetParentRect.top - scrollTop),
2633
+ right: root.document.documentElement.clientWidth - (offsetParentRect.left - scrollLeft),
2634
+ bottom: root.document.documentElement.clientHeight - (offsetParentRect.top - scrollTop),
2635
+ left: 0 - (offsetParentRect.left - scrollLeft)
2636
+ };
2637
+ } else {
2638
+ if (getOffsetParent(this._popper) === boundariesElement) {
2639
+ boundaries = {
2640
+ top: 0,
2641
+ left: 0,
2642
+ right: boundariesElement.clientWidth,
2643
+ bottom: boundariesElement.clientHeight
2644
+ };
2645
+ } else {
2646
+ boundaries = getOffsetRect(boundariesElement);
2647
+ }
2648
+ }
2649
+ boundaries.left += padding;
2650
+ boundaries.right -= padding;
2651
+ boundaries.top = boundaries.top + padding;
2652
+ boundaries.bottom = boundaries.bottom - padding;
2653
+ return boundaries;
2654
+ };
2655
+
2656
+ /**
2657
+ * Loop trough the list of modifiers and run them in order, each of them will then edit the data object
2658
+ * @method
2659
+ * @memberof Popper
2660
+ * @access public
2661
+ * @param {Object} data
2662
+ * @param {Array} modifiers
2663
+ * @param {Function} ends
2664
+ */
2665
+ Popper.prototype.runModifiers = function (data, modifiers, ends) {
2666
+ var modifiersToRun = modifiers.slice();
2667
+ if (ends !== undefined) {
2668
+ modifiersToRun = this._options.modifiers.slice(0, getArrayKeyIndex(this._options.modifiers, ends));
2669
+ }
2670
+ modifiersToRun.forEach(function (modifier) {
2671
+ if (isFunction(modifier)) {
2672
+ data = modifier.call(this, data);
2673
+ }
2674
+ }.bind(this));
2675
+ return data;
2676
+ };
2677
+
2678
+ /**
2679
+ * Helper used to know if the given modifier depends from another one.
2680
+ * @method
2681
+ * @memberof Popper
2682
+ * @param {String} requesting - name of requesting modifier
2683
+ * @param {String} requested - name of requested modifier
2684
+ * @returns {Boolean}
2685
+ */
2686
+ Popper.prototype.isModifierRequired = function (requesting, requested) {
2687
+ var index = getArrayKeyIndex(this._options.modifiers, requesting);
2688
+ return !!this._options.modifiers.slice(0, index).filter(function (modifier) {
2689
+ return modifier === requested;
2690
+ }).length;
2691
+ };
2692
+
2693
+ //
2694
+ // Modifiers
2695
+ //
2696
+
2697
+ /**
2698
+ * Modifiers list
2699
+ * @namespace Popper.modifiers
2700
+ * @memberof Popper
2701
+ * @type {Object}
2702
+ */
2703
+ Popper.prototype.modifiers = {};
2704
+
2705
+ /**
2706
+ * Apply the computed styles to the popper element
2707
+ * @method
2708
+ * @memberof Popper.modifiers
2709
+ * @argument {Object} data - The data object generated by `update` method
2710
+ * @returns {Object} The same data object
2711
+ */
2712
+ Popper.prototype.modifiers.applyStyle = function (data) {
2713
+ // apply the final offsets to the popper
2714
+ // NOTE: 1 DOM access here
2715
+ var styles = {
2716
+ position: data.offsets.popper.position
2717
+ };
2718
+
2719
+ // round top and left to avoid blurry text
2720
+ var left = Math.round(data.offsets.popper.left);
2721
+ var top = Math.round(data.offsets.popper.top);
2722
+
2723
+ // if gpuAcceleration is set to true and transform is supported, we use `translate3d` to apply the position to the popper
2724
+ // we automatically use the supported prefixed version if needed
2725
+ var prefixedProperty;
2726
+ if (this._options.gpuAcceleration && (prefixedProperty = getSupportedPropertyName('transform'))) {
2727
+ styles[prefixedProperty] = 'translate3d(' + left + 'px, ' + top + 'px, 0)';
2728
+ styles.top = 0;
2729
+ styles.left = 0;
2730
+ }
2731
+ // othwerise, we use the standard `left` and `top` properties
2732
+ else {
2733
+ styles.left = left;
2734
+ styles.top = top;
2735
+ }
2736
+
2737
+ // any property present in `data.styles` will be applied to the popper,
2738
+ // in this way we can make the 3rd party modifiers add custom styles to it
2739
+ // Be aware, modifiers could override the properties defined in the previous
2740
+ // lines of this modifier!
2741
+ Object.assign(styles, data.styles);
2742
+ setStyle(this._popper, styles);
2743
+
2744
+ // set an attribute which will be useful to style the tooltip (use it to properly position its arrow)
2745
+ // NOTE: 1 DOM access here
2746
+ this._popper.setAttribute('x-placement', data.placement);
2747
+
2748
+ // if the arrow modifier is required and the arrow style has been computed, apply the arrow style
2749
+ if (this.isModifierRequired(this.modifiers.applyStyle, this.modifiers.arrow) && data.offsets.arrow) {
2750
+ setStyle(data.arrowElement, data.offsets.arrow);
2751
+ }
2752
+ return data;
2753
+ };
2754
+
2755
+ /**
2756
+ * Modifier used to shift the popper on the start or end of its reference element side
2757
+ * @method
2758
+ * @memberof Popper.modifiers
2759
+ * @argument {Object} data - The data object generated by `update` method
2760
+ * @returns {Object} The data object, properly modified
2761
+ */
2762
+ Popper.prototype.modifiers.shift = function (data) {
2763
+ var placement = data.placement;
2764
+ var basePlacement = placement.split('-')[0];
2765
+ var shiftVariation = placement.split('-')[1];
2766
+
2767
+ // if shift shiftVariation is specified, run the modifier
2768
+ if (shiftVariation) {
2769
+ var reference = data.offsets.reference;
2770
+ var popper = getPopperClientRect(data.offsets.popper);
2771
+ var shiftOffsets = {
2772
+ y: {
2773
+ start: {
2774
+ top: reference.top
2775
+ },
2776
+ end: {
2777
+ top: reference.top + reference.height - popper.height
2778
+ }
2779
+ },
2780
+ x: {
2781
+ start: {
2782
+ left: reference.left
2783
+ },
2784
+ end: {
2785
+ left: reference.left + reference.width - popper.width
2786
+ }
2787
+ }
2788
+ };
2789
+ var axis = ['bottom', 'top'].indexOf(basePlacement) !== -1 ? 'x' : 'y';
2790
+ data.offsets.popper = Object.assign(popper, shiftOffsets[axis][shiftVariation]);
2791
+ }
2792
+ return data;
2793
+ };
2794
+
2795
+ /**
2796
+ * Modifier used to make sure the popper does not overflows from it's boundaries
2797
+ * @method
2798
+ * @memberof Popper.modifiers
2799
+ * @argument {Object} data - The data object generated by `update` method
2800
+ * @returns {Object} The data object, properly modified
2801
+ */
2802
+ Popper.prototype.modifiers.preventOverflow = function (data) {
2803
+ var order = this._options.preventOverflowOrder;
2804
+ var popper = getPopperClientRect(data.offsets.popper);
2805
+ var check = {
2806
+ left: function left() {
2807
+ var left = popper.left;
2808
+ if (popper.left < data.boundaries.left) {
2809
+ left = Math.max(popper.left, data.boundaries.left);
2810
+ }
2811
+ return {
2812
+ left: left
2813
+ };
2814
+ },
2815
+ right: function right() {
2816
+ var left = popper.left;
2817
+ if (popper.right > data.boundaries.right) {
2818
+ left = Math.min(popper.left, data.boundaries.right - popper.width);
2819
+ }
2820
+ return {
2821
+ left: left
2822
+ };
2823
+ },
2824
+ top: function top() {
2825
+ var top = popper.top;
2826
+ if (popper.top < data.boundaries.top) {
2827
+ top = Math.max(popper.top, data.boundaries.top);
2828
+ }
2829
+ return {
2830
+ top: top
2831
+ };
2832
+ },
2833
+ bottom: function bottom() {
2834
+ var top = popper.top;
2835
+ if (popper.bottom > data.boundaries.bottom) {
2836
+ top = Math.min(popper.top, data.boundaries.bottom - popper.height);
2837
+ }
2838
+ return {
2839
+ top: top
2840
+ };
2841
+ }
2842
+ };
2843
+ order.forEach(function (direction) {
2844
+ data.offsets.popper = Object.assign(popper, check[direction]());
2845
+ });
2846
+ return data;
2847
+ };
2848
+
2849
+ /**
2850
+ * Modifier used to make sure the popper is always near its reference
2851
+ * @method
2852
+ * @memberof Popper.modifiers
2853
+ * @argument {Object} data - The data object generated by _update method
2854
+ * @returns {Object} The data object, properly modified
2855
+ */
2856
+ Popper.prototype.modifiers.keepTogether = function (data) {
2857
+ var popper = getPopperClientRect(data.offsets.popper);
2858
+ var reference = data.offsets.reference;
2859
+ var f = Math.floor;
2860
+ if (popper.right < f(reference.left)) {
2861
+ data.offsets.popper.left = f(reference.left) - popper.width;
2862
+ }
2863
+ if (popper.left > f(reference.right)) {
2864
+ data.offsets.popper.left = f(reference.right);
2865
+ }
2866
+ if (popper.bottom < f(reference.top)) {
2867
+ data.offsets.popper.top = f(reference.top) - popper.height;
2868
+ }
2869
+ if (popper.top > f(reference.bottom)) {
2870
+ data.offsets.popper.top = f(reference.bottom);
2871
+ }
2872
+ return data;
2873
+ };
2874
+
2875
+ /**
2876
+ * Modifier used to flip the placement of the popper when the latter is starting overlapping its reference element.
2877
+ * Requires the `preventOverflow` modifier before it in order to work.
2878
+ * **NOTE:** This modifier will run all its previous modifiers everytime it tries to flip the popper!
2879
+ * @method
2880
+ * @memberof Popper.modifiers
2881
+ * @argument {Object} data - The data object generated by _update method
2882
+ * @returns {Object} The data object, properly modified
2883
+ */
2884
+ Popper.prototype.modifiers.flip = function (data) {
2885
+ // check if preventOverflow is in the list of modifiers before the flip modifier.
2886
+ // otherwise flip would not work as expected.
2887
+ if (!this.isModifierRequired(this.modifiers.flip, this.modifiers.preventOverflow)) {
2888
+ console.warn('WARNING: preventOverflow modifier is required by flip modifier in order to work, be sure to include it before flip!');
2889
+ return data;
2890
+ }
2891
+ if (data.flipped && data.placement === data._originalPlacement) {
2892
+ // seems like flip is trying to loop, probably there's not enough space on any of the flippable sides
2893
+ return data;
2894
+ }
2895
+ var placement = data.placement.split('-')[0];
2896
+ var placementOpposite = getOppositePlacement(placement);
2897
+ var variation = data.placement.split('-')[1] || '';
2898
+ var flipOrder = [];
2899
+ if (this._options.flipBehavior === 'flip') {
2900
+ flipOrder = [placement, placementOpposite];
2901
+ } else {
2902
+ flipOrder = this._options.flipBehavior;
2903
+ }
2904
+ flipOrder.forEach(function (step, index) {
2905
+ if (placement !== step || flipOrder.length === index + 1) {
2906
+ return;
2907
+ }
2908
+ placement = data.placement.split('-')[0];
2909
+ placementOpposite = getOppositePlacement(placement);
2910
+ var popperOffsets = getPopperClientRect(data.offsets.popper);
2911
+
2912
+ // this boolean is used to distinguish right and bottom from top and left
2913
+ // they need different computations to get flipped
2914
+ var a = ['right', 'bottom'].indexOf(placement) !== -1;
2915
+
2916
+ // using Math.floor because the reference offsets may contain decimals we are not going to consider here
2917
+ if (a && Math.floor(data.offsets.reference[placement]) > Math.floor(popperOffsets[placementOpposite]) || !a && Math.floor(data.offsets.reference[placement]) < Math.floor(popperOffsets[placementOpposite])) {
2918
+ // we'll use this boolean to detect any flip loop
2919
+ data.flipped = true;
2920
+ data.placement = flipOrder[index + 1];
2921
+ if (variation) {
2922
+ data.placement += '-' + variation;
2923
+ }
2924
+ data.offsets.popper = this._getOffsets(this._popper, this._reference, data.placement).popper;
2925
+ data = this.runModifiers(data, this._options.modifiers, this._flip);
2926
+ }
2927
+ }.bind(this));
2928
+ return data;
2929
+ };
2930
+
2931
+ /**
2932
+ * Modifier used to add an offset to the popper, useful if you more granularity positioning your popper.
2933
+ * The offsets will shift the popper on the side of its reference element.
2934
+ * @method
2935
+ * @memberof Popper.modifiers
2936
+ * @argument {Object} data - The data object generated by _update method
2937
+ * @returns {Object} The data object, properly modified
2938
+ */
2939
+ Popper.prototype.modifiers.offset = function (data) {
2940
+ var offset = this._options.offset;
2941
+ var popper = data.offsets.popper;
2942
+ if (data.placement.indexOf('left') !== -1) {
2943
+ popper.top -= offset;
2944
+ } else if (data.placement.indexOf('right') !== -1) {
2945
+ popper.top += offset;
2946
+ } else if (data.placement.indexOf('top') !== -1) {
2947
+ popper.left -= offset;
2948
+ } else if (data.placement.indexOf('bottom') !== -1) {
2949
+ popper.left += offset;
2950
+ }
2951
+ return data;
2952
+ };
2953
+
2954
+ /**
2955
+ * Modifier used to move the arrows on the edge of the popper to make sure them are always between the popper and the reference element
2956
+ * It will use the CSS outer size of the arrow element to know how many pixels of conjuction are needed
2957
+ * @method
2958
+ * @memberof Popper.modifiers
2959
+ * @argument {Object} data - The data object generated by _update method
2960
+ * @returns {Object} The data object, properly modified
2961
+ */
2962
+ Popper.prototype.modifiers.arrow = function (data) {
2963
+ var arrow = this._options.arrowElement;
2964
+ var arrowOffset = this._options.arrowOffset;
2965
+
2966
+ // if the arrowElement is a string, suppose it's a CSS selector
2967
+ if (typeof arrow === 'string') {
2968
+ arrow = this._popper.querySelector(arrow);
2969
+ }
2970
+
2971
+ // if arrow element is not found, don't run the modifier
2972
+ if (!arrow) {
2973
+ return data;
2974
+ }
2975
+
2976
+ // the arrow element must be child of its popper
2977
+ if (!this._popper.contains(arrow)) {
2978
+ console.warn('WARNING: `arrowElement` must be child of its popper element!');
2979
+ return data;
2980
+ }
2981
+
2982
+ // arrow depends on keepTogether in order to work
2983
+ if (!this.isModifierRequired(this.modifiers.arrow, this.modifiers.keepTogether)) {
2984
+ console.warn('WARNING: keepTogether modifier is required by arrow modifier in order to work, be sure to include it before arrow!');
2985
+ return data;
2986
+ }
2987
+ var arrowStyle = {};
2988
+ var placement = data.placement.split('-')[0];
2989
+ var popper = getPopperClientRect(data.offsets.popper);
2990
+ var reference = data.offsets.reference;
2991
+ var isVertical = ['left', 'right'].indexOf(placement) !== -1;
2992
+ var len = isVertical ? 'height' : 'width';
2993
+ var side = isVertical ? 'top' : 'left';
2994
+ var translate = isVertical ? 'translateY' : 'translateX';
2995
+ var altSide = isVertical ? 'left' : 'top';
2996
+ var opSide = isVertical ? 'bottom' : 'right';
2997
+ var arrowSize = getOuterSizes(arrow)[len];
2998
+
2999
+ //
3000
+ // extends keepTogether behavior making sure the popper and its reference have enough pixels in conjuction
3001
+ //
3002
+
3003
+ // top/left side
3004
+ if (reference[opSide] - arrowSize < popper[side]) {
3005
+ data.offsets.popper[side] -= popper[side] - (reference[opSide] - arrowSize);
3006
+ }
3007
+ // bottom/right side
3008
+ if (reference[side] + arrowSize > popper[opSide]) {
3009
+ data.offsets.popper[side] += reference[side] + arrowSize - popper[opSide];
3010
+ }
3011
+
3012
+ // compute center of the popper
3013
+ var center = reference[side] + (arrowOffset || reference[len] / 2 - arrowSize / 2);
3014
+ var sideValue = center - popper[side];
3015
+
3016
+ // prevent arrow from being placed not contiguously to its popper
3017
+ sideValue = Math.max(Math.min(popper[len] - arrowSize - 8, sideValue), 8);
3018
+ arrowStyle[side] = sideValue;
3019
+ arrowStyle[altSide] = ''; // make sure to remove any old style from the arrow
3020
+
3021
+ data.offsets.arrow = arrowStyle;
3022
+ data.arrowElement = arrow;
3023
+ return data;
3024
+ };
3025
+
3026
+ //
3027
+ // Helpers
3028
+ //
3029
+
3030
+ /**
3031
+ * Get the outer sizes of the given element (offset size + margins)
3032
+ * @function
3033
+ * @ignore
3034
+ * @argument {Element} element
3035
+ * @returns {Object} object containing width and height properties
3036
+ */
3037
+ function getOuterSizes(element) {
3038
+ // NOTE: 1 DOM access here
3039
+ var _display = element.style.display,
3040
+ _visibility = element.style.visibility;
3041
+ element.style.display = 'block';
3042
+ element.style.visibility = 'hidden';
3043
+ var calcWidthToForceRepaint = element.offsetWidth;
3044
+
3045
+ // original method
3046
+ var styles = root.getComputedStyle(element);
3047
+ var x = parseFloat(styles.marginTop) + parseFloat(styles.marginBottom);
3048
+ var y = parseFloat(styles.marginLeft) + parseFloat(styles.marginRight);
3049
+ var result = {
3050
+ width: element.offsetWidth + y,
3051
+ height: element.offsetHeight + x
3052
+ };
3053
+
3054
+ // reset element styles
3055
+ element.style.display = _display;
3056
+ element.style.visibility = _visibility;
3057
+ return result;
3058
+ }
3059
+
3060
+ /**
3061
+ * Get the opposite placement of the given one/
3062
+ * @function
3063
+ * @ignore
3064
+ * @argument {String} placement
3065
+ * @returns {String} flipped placement
3066
+ */
3067
+ function getOppositePlacement(placement) {
3068
+ var hash = {
3069
+ left: 'right',
3070
+ right: 'left',
3071
+ bottom: 'top',
3072
+ top: 'bottom'
3073
+ };
3074
+ return placement.replace(/left|right|bottom|top/g, function (matched) {
3075
+ return hash[matched];
3076
+ });
3077
+ }
3078
+
3079
+ /**
3080
+ * Given the popper offsets, generate an output similar to getBoundingClientRect
3081
+ * @function
3082
+ * @ignore
3083
+ * @argument {Object} popperOffsets
3084
+ * @returns {Object} ClientRect like output
3085
+ */
3086
+ function getPopperClientRect(popperOffsets) {
3087
+ var offsets = Object.assign({}, popperOffsets);
3088
+ offsets.right = offsets.left + offsets.width;
3089
+ offsets.bottom = offsets.top + offsets.height;
3090
+ return offsets;
3091
+ }
3092
+
3093
+ /**
3094
+ * Given an array and the key to find, returns its index
3095
+ * @function
3096
+ * @ignore
3097
+ * @argument {Array} arr
3098
+ * @argument keyToFind
3099
+ * @returns index or null
3100
+ */
3101
+ function getArrayKeyIndex(arr, keyToFind) {
3102
+ var i = 0,
3103
+ key;
3104
+ for (key in arr) {
3105
+ if (arr[key] === keyToFind) {
3106
+ return i;
3107
+ }
3108
+ i++;
3109
+ }
3110
+ return null;
3111
+ }
3112
+
3113
+ /**
3114
+ * Get CSS computed property of the given element
3115
+ * @function
3116
+ * @ignore
3117
+ * @argument {Eement} element
3118
+ * @argument {String} property
3119
+ */
3120
+ function getStyleComputedProperty(element, property) {
3121
+ // NOTE: 1 DOM access here
3122
+ var css = root.getComputedStyle(element, null);
3123
+ return css[property];
3124
+ }
3125
+
3126
+ /**
3127
+ * Returns the offset parent of the given element
3128
+ * @function
3129
+ * @ignore
3130
+ * @argument {Element} element
3131
+ * @returns {Element} offset parent
3132
+ */
3133
+ function getOffsetParent(element) {
3134
+ // NOTE: 1 DOM access here
3135
+ var offsetParent = element.offsetParent;
3136
+ return offsetParent === root.document.body || !offsetParent ? root.document.documentElement : offsetParent;
3137
+ }
3138
+
3139
+ /**
3140
+ * Returns the scrolling parent of the given element
3141
+ * @function
3142
+ * @ignore
3143
+ * @argument {Element} element
3144
+ * @returns {Element} offset parent
3145
+ */
3146
+ function getScrollParent(element) {
3147
+ var parent = element.parentNode;
3148
+ if (!parent) {
3149
+ return element;
3150
+ }
3151
+ if (parent === root.document) {
3152
+ // Firefox puts the scrollTOp value on `documentElement` instead of `body`, we then check which of them is
3153
+ // greater than 0 and return the proper element
3154
+ if (root.document.body.scrollTop || root.document.body.scrollLeft) {
3155
+ return root.document.body;
3156
+ } else {
3157
+ return root.document.documentElement;
3158
+ }
3159
+ }
3160
+
3161
+ // Firefox want us to check `-x` and `-y` variations as well
3162
+ if (['scroll', 'auto'].indexOf(getStyleComputedProperty(parent, 'overflow')) !== -1 || ['scroll', 'auto'].indexOf(getStyleComputedProperty(parent, 'overflow-x')) !== -1 || ['scroll', 'auto'].indexOf(getStyleComputedProperty(parent, 'overflow-y')) !== -1) {
3163
+ // If the detected scrollParent is body, we perform an additional check on its parentNode
3164
+ // in this way we'll get body if the browser is Chrome-ish, or documentElement otherwise
3165
+ // fixes issue #65
3166
+ return parent;
3167
+ }
3168
+ return getScrollParent(element.parentNode);
3169
+ }
3170
+
3171
+ /**
3172
+ * Check if the given element is fixed or is inside a fixed parent
3173
+ * @function
3174
+ * @ignore
3175
+ * @argument {Element} element
3176
+ * @argument {Element} customContainer
3177
+ * @returns {Boolean} answer to "isFixed?"
3178
+ */
3179
+ function isFixed(element) {
3180
+ if (element === root.document.body) {
3181
+ return false;
3182
+ }
3183
+ if (getStyleComputedProperty(element, 'position') === 'fixed') {
3184
+ return true;
3185
+ }
3186
+ return element.parentNode ? isFixed(element.parentNode) : element;
3187
+ }
3188
+
3189
+ /**
3190
+ * Set the style to the given popper
3191
+ * @function
3192
+ * @ignore
3193
+ * @argument {Element} element - Element to apply the style to
3194
+ * @argument {Object} styles - Object with a list of properties and values which will be applied to the element
3195
+ */
3196
+ function setStyle(element, styles) {
3197
+ function is_numeric(n) {
3198
+ return n !== '' && !isNaN(parseFloat(n)) && isFinite(n);
3199
+ }
3200
+ Object.keys(styles).forEach(function (prop) {
3201
+ var unit = '';
3202
+ // add unit if the value is numeric and is one of the following
3203
+ if (['width', 'height', 'top', 'right', 'bottom', 'left'].indexOf(prop) !== -1 && is_numeric(styles[prop])) {
3204
+ unit = 'px';
3205
+ }
3206
+ element.style[prop] = styles[prop] + unit;
3207
+ });
3208
+ }
3209
+
3210
+ /**
3211
+ * Check if the given variable is a function
3212
+ * @function
3213
+ * @ignore
3214
+ * @argument {*} functionToCheck - variable to check
3215
+ * @returns {Boolean} answer to: is a function?
3216
+ */
3217
+ function isFunction(functionToCheck) {
3218
+ var getType = {};
3219
+ return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
3220
+ }
3221
+
3222
+ /**
3223
+ * Get the position of the given element, relative to its offset parent
3224
+ * @function
3225
+ * @ignore
3226
+ * @param {Element} element
3227
+ * @return {Object} position - Coordinates of the element and its `scrollTop`
3228
+ */
3229
+ function getOffsetRect(element) {
3230
+ var elementRect = {
3231
+ width: element.offsetWidth,
3232
+ height: element.offsetHeight,
3233
+ left: element.offsetLeft,
3234
+ top: element.offsetTop
3235
+ };
3236
+ elementRect.right = elementRect.left + elementRect.width;
3237
+ elementRect.bottom = elementRect.top + elementRect.height;
3238
+
3239
+ // position
3240
+ return elementRect;
3241
+ }
3242
+
3243
+ /**
3244
+ * Get bounding client rect of given element
3245
+ * @function
3246
+ * @ignore
3247
+ * @param {HTMLElement} element
3248
+ * @return {Object} client rect
3249
+ */
3250
+ function getBoundingClientRect(element) {
3251
+ var rect = element.getBoundingClientRect();
3252
+
3253
+ // whether the IE version is lower than 11
3254
+ var isIE = navigator.userAgent.indexOf("MSIE") != -1;
3255
+
3256
+ // fix ie document bounding top always 0 bug
3257
+ var rectTop = isIE && element.tagName === 'HTML' ? -element.scrollTop : rect.top;
3258
+ return {
3259
+ left: rect.left,
3260
+ top: rectTop,
3261
+ right: rect.right,
3262
+ bottom: rect.bottom,
3263
+ width: rect.right - rect.left,
3264
+ height: rect.bottom - rectTop
3265
+ };
3266
+ }
3267
+
3268
+ /**
3269
+ * Given an element and one of its parents, return the offset
3270
+ * @function
3271
+ * @ignore
3272
+ * @param {HTMLElement} element
3273
+ * @param {HTMLElement} parent
3274
+ * @return {Object} rect
3275
+ */
3276
+ function getOffsetRectRelativeToCustomParent(element, parent, fixed) {
3277
+ var elementRect = getBoundingClientRect(element);
3278
+ var parentRect = getBoundingClientRect(parent);
3279
+ if (fixed) {
3280
+ var scrollParent = getScrollParent(parent);
3281
+ parentRect.top += scrollParent.scrollTop;
3282
+ parentRect.bottom += scrollParent.scrollTop;
3283
+ parentRect.left += scrollParent.scrollLeft;
3284
+ parentRect.right += scrollParent.scrollLeft;
3285
+ }
3286
+ var rect = {
3287
+ top: elementRect.top - parentRect.top,
3288
+ left: elementRect.left - parentRect.left,
3289
+ bottom: elementRect.top - parentRect.top + elementRect.height,
3290
+ right: elementRect.left - parentRect.left + elementRect.width,
3291
+ width: elementRect.width,
3292
+ height: elementRect.height
3293
+ };
3294
+ return rect;
3295
+ }
3296
+
3297
+ /**
3298
+ * Get the prefixed supported property name
3299
+ * @function
3300
+ * @ignore
3301
+ * @argument {String} property (camelCase)
3302
+ * @returns {String} prefixed property (camelCase)
3303
+ */
3304
+ function getSupportedPropertyName(property) {
3305
+ var prefixes = ['', 'ms', 'webkit', 'moz', 'o'];
3306
+ for (var i = 0; i < prefixes.length; i++) {
3307
+ var toCheck = prefixes[i] ? prefixes[i] + property.charAt(0).toUpperCase() + property.slice(1) : property;
3308
+ if (typeof root.document.body.style[toCheck] !== 'undefined') {
3309
+ return toCheck;
3310
+ }
3311
+ }
3312
+ return null;
3313
+ }
3314
+
3315
+ /**
3316
+ * The Object.assign() method is used to copy the values of all enumerable own properties from one or more source
3317
+ * objects to a target object. It will return the target object.
3318
+ * This polyfill doesn't support symbol properties, since ES5 doesn't have symbols anyway
3319
+ * Source: https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Object/assign
3320
+ * @function
3321
+ * @ignore
3322
+ */
3323
+ if (!Object.assign) {
3324
+ Object.defineProperty(Object, 'assign', {
3325
+ enumerable: false,
3326
+ configurable: true,
3327
+ writable: true,
3328
+ value: function value(target) {
3329
+ if (target === undefined || target === null) {
3330
+ throw new TypeError('Cannot convert first argument to object');
3331
+ }
3332
+ var to = Object(target);
3333
+ for (var i = 1; i < arguments.length; i++) {
3334
+ var nextSource = arguments[i];
3335
+ if (nextSource === undefined || nextSource === null) {
3336
+ continue;
3337
+ }
3338
+ nextSource = Object(nextSource);
3339
+ var keysArray = Object.keys(nextSource);
3340
+ for (var nextIndex = 0, len = keysArray.length; nextIndex < len; nextIndex++) {
3341
+ var nextKey = keysArray[nextIndex];
3342
+ var desc = Object.getOwnPropertyDescriptor(nextSource, nextKey);
3343
+ if (desc !== undefined && desc.enumerable) {
3344
+ to[nextKey] = nextSource[nextKey];
3345
+ }
3346
+ }
3347
+ }
3348
+ return to;
3349
+ }
3350
+ });
3351
+ }
3352
+ return Popper;
3353
+ });
3354
+ /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(67)(module)))
3355
+
3356
+ /***/ }),
3357
+ /* 74 */
3358
+ /***/ (function(module, exports) {
3359
+
3360
+ module.exports = require("core-js/modules/es.object.get-own-property-descriptor.js");
3361
+
3362
+ /***/ }),
3363
+ /* 75 */,
3364
+ /* 76 */,
3365
+ /* 77 */,
3366
+ /* 78 */,
3367
+ /* 79 */,
3368
+ /* 80 */
91
3369
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
3370
 
93
3371
  "use strict";
94
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
95
- /* globals __VUE_SSR_CONTEXT__ */
3372
+ // ESM COMPAT FLAG
3373
+ __webpack_require__.r(__webpack_exports__);
96
3374
 
97
- // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
98
- // This module is a runtime utility for cleaner component module output and will
99
- // be included in the final webpack user bundle.
3375
+ // EXTERNAL MODULE: external "core-js/modules/es.function.name.js"
3376
+ var es_function_name_js_ = __webpack_require__(5);
100
3377
 
101
- function normalizeComponent(
102
- scriptExports,
3378
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./packages/button/src/button.vue?vue&type=template&id=595a2866
3379
+ var render = function render() {
3380
+ var _vm = this,
3381
+ _c = _vm._self._c
3382
+ return _c(
3383
+ "button",
3384
+ {
3385
+ staticClass: "el-button",
3386
+ class: [
3387
+ _vm.type ? "el-button--" + _vm.type : "",
3388
+ _vm.buttonSize ? "el-button--" + _vm.buttonSize : "",
3389
+ {
3390
+ "is-disabled": _vm.buttonDisabled,
3391
+ "is-loading": _vm.loading,
3392
+ "is-plain": _vm.plain,
3393
+ "is-round": _vm.round,
3394
+ "is-circle": _vm.circle,
3395
+ },
3396
+ ],
3397
+ attrs: {
3398
+ disabled: _vm.buttonDisabled || _vm.loading,
3399
+ autofocus: _vm.autofocus,
3400
+ type: _vm.nativeType,
3401
+ },
3402
+ on: { click: _vm.handleClick },
3403
+ },
3404
+ [
3405
+ _vm.loading ? _c("i", { staticClass: "el-icon-loading" }) : _vm._e(),
3406
+ _vm.icon && !_vm.loading ? _c("i", { class: _vm.icon }) : _vm._e(),
3407
+ _vm.$slots.default ? _c("span", [_vm._t("default")], 2) : _vm._e(),
3408
+ ]
3409
+ )
3410
+ }
3411
+ var staticRenderFns = []
3412
+ render._withStripped = true
3413
+
3414
+
3415
+ // CONCATENATED MODULE: ./packages/button/src/button.vue?vue&type=template&id=595a2866
3416
+
3417
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/button/src/button.vue?vue&type=script&lang=js
3418
+ /* harmony default export */ var buttonvue_type_script_lang_js = ({
3419
+ name: 'ElButton',
3420
+ inject: {
3421
+ elForm: {
3422
+ default: ''
3423
+ },
3424
+ elFormItem: {
3425
+ default: ''
3426
+ }
3427
+ },
3428
+ props: {
3429
+ type: {
3430
+ type: String,
3431
+ default: 'default'
3432
+ },
3433
+ size: String,
3434
+ icon: {
3435
+ type: String,
3436
+ default: ''
3437
+ },
3438
+ nativeType: {
3439
+ type: String,
3440
+ default: 'button'
3441
+ },
3442
+ loading: Boolean,
3443
+ disabled: Boolean,
3444
+ plain: Boolean,
3445
+ autofocus: Boolean,
3446
+ round: Boolean,
3447
+ circle: Boolean
3448
+ },
3449
+ computed: {
3450
+ _elFormItemSize: function _elFormItemSize() {
3451
+ return (this.elFormItem || {}).elFormItemSize;
3452
+ },
3453
+ buttonSize: function buttonSize() {
3454
+ return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
3455
+ },
3456
+ buttonDisabled: function buttonDisabled() {
3457
+ return this.$options.propsData.hasOwnProperty('disabled') ? this.disabled : (this.elForm || {}).disabled;
3458
+ }
3459
+ },
3460
+ methods: {
3461
+ handleClick: function handleClick(evt) {
3462
+ this.$emit('click', evt);
3463
+ }
3464
+ }
3465
+ });
3466
+ // CONCATENATED MODULE: ./packages/button/src/button.vue?vue&type=script&lang=js
3467
+ /* harmony default export */ var src_buttonvue_type_script_lang_js = (buttonvue_type_script_lang_js);
3468
+ // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
3469
+ var componentNormalizer = __webpack_require__(2);
3470
+
3471
+ // CONCATENATED MODULE: ./packages/button/src/button.vue
3472
+
3473
+
3474
+
3475
+
3476
+
3477
+ /* normalize component */
3478
+
3479
+ var component = Object(componentNormalizer["a" /* default */])(
3480
+ src_buttonvue_type_script_lang_js,
103
3481
  render,
104
3482
  staticRenderFns,
105
- functionalTemplate,
106
- injectStyles,
107
- scopeId,
108
- moduleIdentifier /* server only */,
109
- shadowMode /* vue-cli only */
110
- ) {
111
- // Vue.extend constructor export interop
112
- var options =
113
- typeof scriptExports === 'function' ? scriptExports.options : scriptExports
3483
+ false,
3484
+ null,
3485
+ null,
3486
+ null
3487
+
3488
+ )
114
3489
 
115
- // render functions
116
- if (render) {
117
- options.render = render
118
- options.staticRenderFns = staticRenderFns
119
- options._compiled = true
120
- }
3490
+ /* harmony default export */ var src_button = (component.exports);
3491
+ // CONCATENATED MODULE: ./packages/button/index.js
121
3492
 
122
- // functional template
123
- if (functionalTemplate) {
124
- options.functional = true
125
- }
126
3493
 
127
- // scopedId
128
- if (scopeId) {
129
- options._scopeId = 'data-v-' + scopeId
130
- }
131
3494
 
132
- var hook
133
- if (moduleIdentifier) {
134
- // server build
135
- hook = function (context) {
136
- // 2.3 injection
137
- context =
138
- context || // cached call
139
- (this.$vnode && this.$vnode.ssrContext) || // stateful
140
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
141
- // 2.2 with runInNewContext: true
142
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
143
- context = __VUE_SSR_CONTEXT__
3495
+ /* istanbul ignore next */
3496
+ src_button.install = function (Vue) {
3497
+ Vue.component(src_button.name, src_button);
3498
+ };
3499
+ /* harmony default export */ var packages_button = __webpack_exports__["default"] = (src_button);
3500
+
3501
+ /***/ }),
3502
+ /* 81 */,
3503
+ /* 82 */,
3504
+ /* 83 */,
3505
+ /* 84 */,
3506
+ /* 85 */,
3507
+ /* 86 */,
3508
+ /* 87 */,
3509
+ /* 88 */,
3510
+ /* 89 */,
3511
+ /* 90 */,
3512
+ /* 91 */,
3513
+ /* 92 */,
3514
+ /* 93 */,
3515
+ /* 94 */,
3516
+ /* 95 */,
3517
+ /* 96 */,
3518
+ /* 97 */,
3519
+ /* 98 */,
3520
+ /* 99 */,
3521
+ /* 100 */,
3522
+ /* 101 */,
3523
+ /* 102 */,
3524
+ /* 103 */,
3525
+ /* 104 */,
3526
+ /* 105 */
3527
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
3528
+
3529
+ "use strict";
3530
+ // ESM COMPAT FLAG
3531
+ __webpack_require__.r(__webpack_exports__);
3532
+
3533
+ // EXTERNAL MODULE: external "core-js/modules/es.function.name.js"
3534
+ var es_function_name_js_ = __webpack_require__(5);
3535
+
3536
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./packages/popover/src/main.vue?vue&type=template&id=777878ff
3537
+ var render = function render() {
3538
+ var _vm = this,
3539
+ _c = _vm._self._c
3540
+ return _c(
3541
+ "span",
3542
+ [
3543
+ _c(
3544
+ "transition",
3545
+ {
3546
+ attrs: { name: _vm.transition },
3547
+ on: {
3548
+ "after-enter": _vm.handleAfterEnter,
3549
+ "after-leave": _vm.handleAfterLeave,
3550
+ },
3551
+ },
3552
+ [
3553
+ _c(
3554
+ "div",
3555
+ {
3556
+ directives: [
3557
+ {
3558
+ name: "show",
3559
+ rawName: "v-show",
3560
+ value: !_vm.disabled && _vm.showPopper,
3561
+ expression: "!disabled && showPopper",
3562
+ },
3563
+ ],
3564
+ ref: "popper",
3565
+ staticClass: "el-popover el-popper",
3566
+ class: [_vm.popperClass, _vm.content && "el-popover--plain"],
3567
+ style: { width: _vm.width + "px" },
3568
+ attrs: {
3569
+ role: "tooltip",
3570
+ id: _vm.tooltipId,
3571
+ "aria-hidden":
3572
+ _vm.disabled || !_vm.showPopper ? "true" : "false",
3573
+ },
3574
+ },
3575
+ [
3576
+ _vm.title
3577
+ ? _c("div", {
3578
+ staticClass: "el-popover__title",
3579
+ domProps: { textContent: _vm._s(_vm.title) },
3580
+ })
3581
+ : _vm._e(),
3582
+ _vm._t("default", function () {
3583
+ return [_vm._v(_vm._s(_vm.content))]
3584
+ }),
3585
+ ],
3586
+ 2
3587
+ ),
3588
+ ]
3589
+ ),
3590
+ _c(
3591
+ "span",
3592
+ { ref: "wrapper", staticClass: "el-popover__reference-wrapper" },
3593
+ [_vm._t("reference")],
3594
+ 2
3595
+ ),
3596
+ ],
3597
+ 1
3598
+ )
3599
+ }
3600
+ var staticRenderFns = []
3601
+ render._withStripped = true
3602
+
3603
+
3604
+ // CONCATENATED MODULE: ./packages/popover/src/main.vue?vue&type=template&id=777878ff
3605
+
3606
+ // EXTERNAL MODULE: external "core-js/modules/es.number.constructor.js"
3607
+ var es_number_constructor_js_ = __webpack_require__(6);
3608
+
3609
+ // EXTERNAL MODULE: ./src/utils/vue-popper.js
3610
+ var vue_popper = __webpack_require__(51);
3611
+
3612
+ // EXTERNAL MODULE: ./src/utils/dom.js
3613
+ var dom = __webpack_require__(1);
3614
+
3615
+ // EXTERNAL MODULE: ./src/utils/util.js
3616
+ var util = __webpack_require__(4);
3617
+
3618
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/popover/src/main.vue?vue&type=script&lang=js
3619
+
3620
+
3621
+
3622
+
3623
+
3624
+ /* harmony default export */ var mainvue_type_script_lang_js = ({
3625
+ name: 'ElPopover',
3626
+ mixins: [vue_popper["a" /* default */]],
3627
+ props: {
3628
+ trigger: {
3629
+ type: String,
3630
+ default: 'click',
3631
+ validator: function validator(value) {
3632
+ return ['click', 'focus', 'hover', 'manual'].indexOf(value) > -1;
144
3633
  }
145
- // inject component styles
146
- if (injectStyles) {
147
- injectStyles.call(this, context)
3634
+ },
3635
+ openDelay: {
3636
+ type: Number,
3637
+ default: 0
3638
+ },
3639
+ closeDelay: {
3640
+ type: Number,
3641
+ default: 200
3642
+ },
3643
+ title: String,
3644
+ disabled: Boolean,
3645
+ content: String,
3646
+ reference: {},
3647
+ popperClass: String,
3648
+ width: {},
3649
+ visibleArrow: {
3650
+ default: true
3651
+ },
3652
+ arrowOffset: {
3653
+ type: Number,
3654
+ default: 0
3655
+ },
3656
+ transition: {
3657
+ type: String,
3658
+ default: 'fade-in-linear'
3659
+ },
3660
+ tabindex: {
3661
+ type: Number,
3662
+ default: 0
3663
+ }
3664
+ },
3665
+ computed: {
3666
+ tooltipId: function tooltipId() {
3667
+ return "el-popover-" + Object(util["g" /* generateId */])();
3668
+ }
3669
+ },
3670
+ watch: {
3671
+ showPopper: function showPopper(val) {
3672
+ if (this.disabled) {
3673
+ return;
148
3674
  }
149
- // register component module identifier for async chunk inferrence
150
- if (context && context._registeredComponents) {
151
- context._registeredComponents.add(moduleIdentifier)
3675
+ val ? this.$emit('show') : this.$emit('hide');
3676
+ }
3677
+ },
3678
+ mounted: function mounted() {
3679
+ var _this = this;
3680
+ var reference = this.referenceElm = this.reference || this.$refs.reference;
3681
+ var popper = this.popper || this.$refs.popper;
3682
+ if (!reference && this.$refs.wrapper && this.$refs.wrapper.children) {
3683
+ reference = this.referenceElm = this.$refs.wrapper.children[0];
3684
+ }
3685
+ // 可访问性
3686
+ if (reference) {
3687
+ Object(dom["a" /* addClass */])(reference, 'el-popover__reference');
3688
+ reference.setAttribute('aria-describedby', this.tooltipId);
3689
+ reference.setAttribute('tabindex', this.tabindex); // tab序列
3690
+ popper.setAttribute('tabindex', 0);
3691
+ if (this.trigger !== 'click') {
3692
+ Object(dom["g" /* on */])(reference, 'focusin', function () {
3693
+ _this.handleFocus();
3694
+ var instance = reference.__vue__;
3695
+ if (instance && typeof instance.focus === 'function') {
3696
+ instance.focus();
3697
+ }
3698
+ });
3699
+ Object(dom["g" /* on */])(popper, 'focusin', this.handleFocus);
3700
+ Object(dom["g" /* on */])(reference, 'focusout', this.handleBlur);
3701
+ Object(dom["g" /* on */])(popper, 'focusout', this.handleBlur);
152
3702
  }
3703
+ Object(dom["g" /* on */])(reference, 'keydown', this.handleKeydown);
3704
+ Object(dom["g" /* on */])(reference, 'click', this.handleClick);
153
3705
  }
154
- // used by ssr in case component is cached and beforeCreate
155
- // never gets called
156
- options._ssrRegister = hook
157
- } else if (injectStyles) {
158
- hook = shadowMode
159
- ? function () {
160
- injectStyles.call(
161
- this,
162
- (options.functional ? this.parent : this).$root.$options.shadowRoot
163
- )
164
- }
165
- : injectStyles
3706
+ if (this.trigger === 'click') {
3707
+ Object(dom["g" /* on */])(reference, 'click', this.doToggle);
3708
+ Object(dom["g" /* on */])(document, 'click', this.handleDocumentClick);
3709
+ } else if (this.trigger === 'hover') {
3710
+ Object(dom["g" /* on */])(reference, 'mouseenter', this.handleMouseEnter);
3711
+ Object(dom["g" /* on */])(popper, 'mouseenter', this.handleMouseEnter);
3712
+ Object(dom["g" /* on */])(reference, 'mouseleave', this.handleMouseLeave);
3713
+ Object(dom["g" /* on */])(popper, 'mouseleave', this.handleMouseLeave);
3714
+ } else if (this.trigger === 'focus') {
3715
+ if (this.tabindex < 0) {
3716
+ console.warn('[Element Warn][Popover]a negative taindex means that the element cannot be focused by tab key');
3717
+ }
3718
+ if (reference.querySelector('input, textarea')) {
3719
+ Object(dom["g" /* on */])(reference, 'focusin', this.doShow);
3720
+ Object(dom["g" /* on */])(reference, 'focusout', this.doClose);
3721
+ } else {
3722
+ Object(dom["g" /* on */])(reference, 'mousedown', this.doShow);
3723
+ Object(dom["g" /* on */])(reference, 'mouseup', this.doClose);
3724
+ }
3725
+ }
3726
+ },
3727
+ beforeDestroy: function beforeDestroy() {
3728
+ this.cleanup();
3729
+ },
3730
+ deactivated: function deactivated() {
3731
+ this.cleanup();
3732
+ },
3733
+ methods: {
3734
+ doToggle: function doToggle() {
3735
+ this.showPopper = !this.showPopper;
3736
+ },
3737
+ doShow: function doShow() {
3738
+ this.showPopper = true;
3739
+ },
3740
+ doClose: function doClose() {
3741
+ this.showPopper = false;
3742
+ },
3743
+ handleFocus: function handleFocus() {
3744
+ Object(dom["a" /* addClass */])(this.referenceElm, 'focusing');
3745
+ if (this.trigger === 'click' || this.trigger === 'focus') this.showPopper = true;
3746
+ },
3747
+ handleClick: function handleClick() {
3748
+ Object(dom["i" /* removeClass */])(this.referenceElm, 'focusing');
3749
+ },
3750
+ handleBlur: function handleBlur() {
3751
+ Object(dom["i" /* removeClass */])(this.referenceElm, 'focusing');
3752
+ if (this.trigger === 'click' || this.trigger === 'focus') this.showPopper = false;
3753
+ },
3754
+ handleMouseEnter: function handleMouseEnter() {
3755
+ var _this2 = this;
3756
+ clearTimeout(this._timer);
3757
+ if (this.openDelay) {
3758
+ this._timer = setTimeout(function () {
3759
+ _this2.showPopper = true;
3760
+ }, this.openDelay);
3761
+ } else {
3762
+ this.showPopper = true;
3763
+ }
3764
+ },
3765
+ handleKeydown: function handleKeydown(ev) {
3766
+ if (ev.keyCode === 27 && this.trigger !== 'manual') {
3767
+ // esc
3768
+ this.doClose();
3769
+ }
3770
+ },
3771
+ handleMouseLeave: function handleMouseLeave() {
3772
+ var _this3 = this;
3773
+ clearTimeout(this._timer);
3774
+ if (this.closeDelay) {
3775
+ this._timer = setTimeout(function () {
3776
+ _this3.showPopper = false;
3777
+ }, this.closeDelay);
3778
+ } else {
3779
+ this.showPopper = false;
3780
+ }
3781
+ },
3782
+ handleDocumentClick: function handleDocumentClick(e) {
3783
+ var reference = this.reference || this.$refs.reference;
3784
+ var popper = this.popper || this.$refs.popper;
3785
+ if (!reference && this.$refs.wrapper && this.$refs.wrapper.children) {
3786
+ reference = this.referenceElm = this.$refs.wrapper.children[0];
3787
+ }
3788
+ if (!this.$el || !reference || this.$el.contains(e.target) || reference.contains(e.target) || !popper || popper.contains(e.target)) return;
3789
+ this.showPopper = false;
3790
+ },
3791
+ handleAfterEnter: function handleAfterEnter() {
3792
+ this.$emit('after-enter');
3793
+ },
3794
+ handleAfterLeave: function handleAfterLeave() {
3795
+ this.$emit('after-leave');
3796
+ this.doDestroy();
3797
+ },
3798
+ cleanup: function cleanup() {
3799
+ if (this.openDelay || this.closeDelay) {
3800
+ clearTimeout(this._timer);
3801
+ }
3802
+ }
3803
+ },
3804
+ destroyed: function destroyed() {
3805
+ var reference = this.reference;
3806
+ Object(dom["f" /* off */])(reference, 'click', this.doToggle);
3807
+ Object(dom["f" /* off */])(reference, 'mouseup', this.doClose);
3808
+ Object(dom["f" /* off */])(reference, 'mousedown', this.doShow);
3809
+ Object(dom["f" /* off */])(reference, 'focusin', this.doShow);
3810
+ Object(dom["f" /* off */])(reference, 'focusout', this.doClose);
3811
+ Object(dom["f" /* off */])(reference, 'mousedown', this.doShow);
3812
+ Object(dom["f" /* off */])(reference, 'mouseup', this.doClose);
3813
+ Object(dom["f" /* off */])(reference, 'mouseleave', this.handleMouseLeave);
3814
+ Object(dom["f" /* off */])(reference, 'mouseenter', this.handleMouseEnter);
3815
+ Object(dom["f" /* off */])(document, 'click', this.handleDocumentClick);
166
3816
  }
3817
+ });
3818
+ // CONCATENATED MODULE: ./packages/popover/src/main.vue?vue&type=script&lang=js
3819
+ /* harmony default export */ var src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
3820
+ // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
3821
+ var componentNormalizer = __webpack_require__(2);
167
3822
 
168
- if (hook) {
169
- if (options.functional) {
170
- // for template-only hot-reload because in that case the render fn doesn't
171
- // go through the normalizer
172
- options._injectStyles = hook
173
- // register for functional component in vue file
174
- var originalRender = options.render
175
- options.render = function renderWithStyleInjection(h, context) {
176
- hook.call(context)
177
- return originalRender(h, context)
178
- }
3823
+ // CONCATENATED MODULE: ./packages/popover/src/main.vue
3824
+
3825
+
3826
+
3827
+
3828
+
3829
+ /* normalize component */
3830
+
3831
+ var component = Object(componentNormalizer["a" /* default */])(
3832
+ src_mainvue_type_script_lang_js,
3833
+ render,
3834
+ staticRenderFns,
3835
+ false,
3836
+ null,
3837
+ null,
3838
+ null
3839
+
3840
+ )
3841
+
3842
+ /* harmony default export */ var main = (component.exports);
3843
+ // CONCATENATED MODULE: ./packages/popover/src/directive.js
3844
+ var getReference = function getReference(el, binding, vnode) {
3845
+ var _ref = binding.expression ? binding.value : binding.arg;
3846
+ var popper = vnode.context.$refs[_ref];
3847
+ if (popper) {
3848
+ if (Array.isArray(popper)) {
3849
+ popper[0].$refs.reference = el;
179
3850
  } else {
180
- // inject component registration as beforeCreate hook
181
- var existing = options.beforeCreate
182
- options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
3851
+ popper.$refs.reference = el;
183
3852
  }
184
3853
  }
185
-
186
- return {
187
- exports: scriptExports,
188
- options: options
3854
+ };
3855
+ /* harmony default export */ var directive = ({
3856
+ bind: function bind(el, binding, vnode) {
3857
+ getReference(el, binding, vnode);
3858
+ },
3859
+ inserted: function inserted(el, binding, vnode) {
3860
+ getReference(el, binding, vnode);
189
3861
  }
190
- }
3862
+ });
3863
+ // EXTERNAL MODULE: external "vue"
3864
+ var external_vue_ = __webpack_require__(0);
3865
+ var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
191
3866
 
3867
+ // CONCATENATED MODULE: ./packages/popover/index.js
192
3868
 
193
- /***/ }),
194
3869
 
195
- /***/ 128:
3870
+
3871
+
3872
+ external_vue_default.a.directive('popover', directive);
3873
+
3874
+ /* istanbul ignore next */
3875
+ main.install = function (Vue) {
3876
+ Vue.directive('popover', directive);
3877
+ Vue.component(main.name, main);
3878
+ };
3879
+ main.directive = directive;
3880
+ /* harmony default export */ var popover = __webpack_exports__["default"] = (main);
3881
+
3882
+ /***/ }),
3883
+ /* 106 */,
3884
+ /* 107 */,
3885
+ /* 108 */,
3886
+ /* 109 */,
3887
+ /* 110 */,
3888
+ /* 111 */,
3889
+ /* 112 */,
3890
+ /* 113 */,
3891
+ /* 114 */,
3892
+ /* 115 */,
3893
+ /* 116 */,
3894
+ /* 117 */,
3895
+ /* 118 */,
3896
+ /* 119 */,
3897
+ /* 120 */,
3898
+ /* 121 */,
3899
+ /* 122 */,
3900
+ /* 123 */,
3901
+ /* 124 */,
3902
+ /* 125 */,
3903
+ /* 126 */,
3904
+ /* 127 */,
3905
+ /* 128 */,
3906
+ /* 129 */,
3907
+ /* 130 */,
3908
+ /* 131 */,
3909
+ /* 132 */,
3910
+ /* 133 */,
3911
+ /* 134 */,
3912
+ /* 135 */,
3913
+ /* 136 */,
3914
+ /* 137 */,
3915
+ /* 138 */,
3916
+ /* 139 */,
3917
+ /* 140 */,
3918
+ /* 141 */,
3919
+ /* 142 */,
3920
+ /* 143 */,
3921
+ /* 144 */,
3922
+ /* 145 */,
3923
+ /* 146 */,
3924
+ /* 147 */,
3925
+ /* 148 */,
3926
+ /* 149 */,
3927
+ /* 150 */,
3928
+ /* 151 */,
3929
+ /* 152 */,
3930
+ /* 153 */,
3931
+ /* 154 */,
3932
+ /* 155 */,
3933
+ /* 156 */,
3934
+ /* 157 */,
3935
+ /* 158 */,
3936
+ /* 159 */,
3937
+ /* 160 */,
3938
+ /* 161 */,
3939
+ /* 162 */,
3940
+ /* 163 */,
3941
+ /* 164 */,
3942
+ /* 165 */,
3943
+ /* 166 */,
3944
+ /* 167 */,
3945
+ /* 168 */,
3946
+ /* 169 */,
3947
+ /* 170 */,
3948
+ /* 171 */,
3949
+ /* 172 */,
3950
+ /* 173 */,
3951
+ /* 174 */,
3952
+ /* 175 */,
3953
+ /* 176 */,
3954
+ /* 177 */,
3955
+ /* 178 */,
3956
+ /* 179 */,
3957
+ /* 180 */,
3958
+ /* 181 */,
3959
+ /* 182 */,
3960
+ /* 183 */,
3961
+ /* 184 */,
3962
+ /* 185 */,
3963
+ /* 186 */,
3964
+ /* 187 */,
3965
+ /* 188 */,
3966
+ /* 189 */,
3967
+ /* 190 */,
3968
+ /* 191 */,
3969
+ /* 192 */,
3970
+ /* 193 */,
3971
+ /* 194 */,
3972
+ /* 195 */,
3973
+ /* 196 */,
3974
+ /* 197 */,
3975
+ /* 198 */,
3976
+ /* 199 */,
3977
+ /* 200 */,
3978
+ /* 201 */,
3979
+ /* 202 */,
3980
+ /* 203 */,
3981
+ /* 204 */,
3982
+ /* 205 */,
3983
+ /* 206 */,
3984
+ /* 207 */,
3985
+ /* 208 */
196
3986
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
197
3987
 
198
3988
  "use strict";
199
3989
  // ESM COMPAT FLAG
200
3990
  __webpack_require__.r(__webpack_exports__);
201
3991
 
202
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/popconfirm/src/main.vue?vue&type=template&id=a82c867c
203
- var render = function () {
204
- var _vm = this
205
- var _h = _vm.$createElement
206
- var _c = _vm._self._c || _h
3992
+ // EXTERNAL MODULE: external "core-js/modules/es.function.name.js"
3993
+ var es_function_name_js_ = __webpack_require__(5);
3994
+
3995
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./packages/popconfirm/src/main.vue?vue&type=template&id=32a45376
3996
+ var render = function render() {
3997
+ var _vm = this,
3998
+ _c = _vm._self._c
207
3999
  return _c(
208
4000
  "el-popover",
209
4001
  _vm._b(
@@ -278,128 +4070,86 @@ var staticRenderFns = []
278
4070
  render._withStripped = true
279
4071
 
280
4072
 
281
- // CONCATENATED MODULE: ./packages/popconfirm/src/main.vue?vue&type=template&id=a82c867c
4073
+ // CONCATENATED MODULE: ./packages/popconfirm/src/main.vue?vue&type=template&id=32a45376
282
4074
 
283
- // EXTERNAL MODULE: external "element-ui/lib/popover"
284
- var popover_ = __webpack_require__(42);
285
- var popover_default = /*#__PURE__*/__webpack_require__.n(popover_);
4075
+ // EXTERNAL MODULE: ./packages/popover/index.js + 6 modules
4076
+ var popover = __webpack_require__(105);
286
4077
 
287
- // EXTERNAL MODULE: external "element-ui/lib/button"
288
- var button_ = __webpack_require__(15);
289
- var button_default = /*#__PURE__*/__webpack_require__.n(button_);
4078
+ // EXTERNAL MODULE: ./packages/button/index.js + 5 modules
4079
+ var packages_button = __webpack_require__(80);
290
4080
 
291
- // EXTERNAL MODULE: external "element-ui/lib/locale"
292
- var locale_ = __webpack_require__(20);
4081
+ // EXTERNAL MODULE: ./src/locale/index.js + 2 modules
4082
+ var locale = __webpack_require__(52);
293
4083
 
294
4084
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/popconfirm/src/main.vue?vue&type=script&lang=js
295
- //
296
- //
297
- //
298
- //
299
- //
300
- //
301
- //
302
- //
303
- //
304
- //
305
- //
306
- //
307
- //
308
- //
309
- //
310
- //
311
- //
312
- //
313
- //
314
- //
315
- //
316
- //
317
- //
318
- //
319
- //
320
- //
321
- //
322
- //
323
- //
324
- //
325
- //
326
- //
327
- //
328
- //
329
- //
330
- //
331
- //
332
-
333
-
334
4085
 
335
4086
 
336
4087
 
337
4088
  /* harmony default export */ var mainvue_type_script_lang_js = ({
338
- name: 'ElPopconfirm',
339
- props: {
340
- title: {
341
- type: String
342
- },
343
- confirmButtonText: {
344
- type: String
345
- },
346
- cancelButtonText: {
347
- type: String
348
- },
349
- confirmButtonType: {
350
- type: String,
351
- default: 'primary'
352
- },
353
- cancelButtonType: {
354
- type: String,
355
- default: 'text'
356
- },
357
- icon: {
358
- type: String,
359
- default: 'el-icon-question'
360
- },
361
- iconColor: {
362
- type: String,
363
- default: '#f90'
364
- },
365
- hideIcon: {
366
- type: Boolean,
367
- default: false
368
- }
369
- },
370
- components: {
371
- ElPopover: popover_default.a,
372
- ElButton: button_default.a
373
- },
374
- data: function data() {
375
- return {
376
- visible: false
377
- };
378
- },
379
-
380
- computed: {
381
- displayConfirmButtonText: function displayConfirmButtonText() {
382
- return this.confirmButtonText || Object(locale_["t"])('el.popconfirm.confirmButtonText');
383
- },
384
- displayCancelButtonText: function displayCancelButtonText() {
385
- return this.cancelButtonText || Object(locale_["t"])('el.popconfirm.cancelButtonText');
386
- }
387
- },
388
- methods: {
389
- confirm: function confirm() {
390
- this.visible = false;
391
- this.$emit('confirm');
392
- },
393
- cancel: function cancel() {
394
- this.visible = false;
395
- this.$emit('cancel');
396
- }
397
- }
4089
+ name: 'ElPopconfirm',
4090
+ props: {
4091
+ title: {
4092
+ type: String
4093
+ },
4094
+ confirmButtonText: {
4095
+ type: String
4096
+ },
4097
+ cancelButtonText: {
4098
+ type: String
4099
+ },
4100
+ confirmButtonType: {
4101
+ type: String,
4102
+ default: 'primary'
4103
+ },
4104
+ cancelButtonType: {
4105
+ type: String,
4106
+ default: 'text'
4107
+ },
4108
+ icon: {
4109
+ type: String,
4110
+ default: 'el-icon-question'
4111
+ },
4112
+ iconColor: {
4113
+ type: String,
4114
+ default: '#f90'
4115
+ },
4116
+ hideIcon: {
4117
+ type: Boolean,
4118
+ default: false
4119
+ }
4120
+ },
4121
+ components: {
4122
+ ElPopover: popover["default"],
4123
+ ElButton: packages_button["default"]
4124
+ },
4125
+ data: function data() {
4126
+ return {
4127
+ visible: false
4128
+ };
4129
+ },
4130
+ computed: {
4131
+ displayConfirmButtonText: function displayConfirmButtonText() {
4132
+ return this.confirmButtonText || Object(locale["a" /* t */])('el.popconfirm.confirmButtonText');
4133
+ },
4134
+ displayCancelButtonText: function displayCancelButtonText() {
4135
+ return this.cancelButtonText || Object(locale["a" /* t */])('el.popconfirm.cancelButtonText');
4136
+ }
4137
+ },
4138
+ methods: {
4139
+ confirm: function confirm() {
4140
+ this.visible = false;
4141
+ this.$emit('confirm');
4142
+ },
4143
+ cancel: function cancel() {
4144
+ this.visible = false;
4145
+ this.$emit('cancel');
4146
+ }
4147
+ }
398
4148
  });
399
4149
  // CONCATENATED MODULE: ./packages/popconfirm/src/main.vue?vue&type=script&lang=js
400
4150
  /* harmony default export */ var src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
401
4151
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
402
- var componentNormalizer = __webpack_require__(0);
4152
+ var componentNormalizer = __webpack_require__(2);
403
4153
 
404
4154
  // CONCATENATED MODULE: ./packages/popconfirm/src/main.vue
405
4155
 
@@ -424,34 +4174,12 @@ var component = Object(componentNormalizer["a" /* default */])(
424
4174
  // CONCATENATED MODULE: ./packages/popconfirm/index.js
425
4175
 
426
4176
 
4177
+
427
4178
  /* istanbul ignore next */
428
4179
  main.install = function (Vue) {
429
- Vue.component(main.name, main);
4180
+ Vue.component(main.name, main);
430
4181
  };
431
-
432
4182
  /* harmony default export */ var popconfirm = __webpack_exports__["default"] = (main);
433
4183
 
434
- /***/ }),
435
-
436
- /***/ 15:
437
- /***/ (function(module, exports) {
438
-
439
- module.exports = require("element-ui/lib/button");
440
-
441
- /***/ }),
442
-
443
- /***/ 20:
444
- /***/ (function(module, exports) {
445
-
446
- module.exports = require("element-ui/lib/locale");
447
-
448
- /***/ }),
449
-
450
- /***/ 42:
451
- /***/ (function(module, exports) {
452
-
453
- module.exports = require("element-ui/lib/popover");
454
-
455
4184
  /***/ })
456
-
457
- /******/ });
4185
+ /******/ ]);