cy-element-ui 1.0.4 → 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 (415) hide show
  1. package/README.md +22 -13
  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-cy/lib/element.css +1 -0
  376. package/packages/theme-cy/lib/fileUpload.css +1 -0
  377. package/packages/theme-cy/lib/index.css +1 -1
  378. package/packages/theme-cy/lib/subTitle.css +1 -0
  379. package/packages/theme-cy/lib/tabDialog.css +1 -0
  380. package/packages/theme-cy/lib/treeselect.css +1 -1
  381. package/packages/theme-cy/src/element.scss +45 -0
  382. package/packages/theme-cy/src/fileUpload.scss +30 -0
  383. package/packages/theme-cy/src/index.scss +4 -0
  384. package/packages/theme-cy/src/subTitle.scss +26 -0
  385. package/packages/theme-cy/src/tabDialog.scss +43 -0
  386. package/packages/theme-cy/src/treeselect.scss +20 -14
  387. package/packages/timeline/src/item.vue +24 -24
  388. package/packages/timeline/src/main.vue +27 -27
  389. package/packages/tooltip/src/main.js +1 -1
  390. package/packages/transfer/src/main.vue +169 -169
  391. package/packages/transfer/src/transfer-panel.vue +164 -164
  392. package/packages/tree/src/tree-node.vue +169 -169
  393. package/packages/tree/src/tree.vue +408 -408
  394. package/packages/treeSelect/index.js +8 -0
  395. package/packages/{treeselect → treeSelect}/src/main.vue +19 -19
  396. package/packages/upload/src/ajax.js +3 -3
  397. package/packages/upload/src/upload-dragger.vue +50 -50
  398. package/packages/upload/src/upload-list.vue +33 -33
  399. package/packages/upload/src/upload.vue +1 -1
  400. package/src/index.js +13 -5
  401. package/src/locale/format.js +0 -1
  402. package/src/mixins/migrating.js +2 -2
  403. package/src/utils/date.js +2 -368
  404. package/src/utils/date_source.js +368 -0
  405. package/src/utils/lodash.js +9 -18075
  406. package/src/utils/lodash_source.js +18075 -0
  407. package/src/utils/types.js +1 -1
  408. package/types/element-ui.d.ts +16 -3
  409. package/types/fileUpload.d.ts +5 -0
  410. package/types/subTitle.d.ts +5 -0
  411. package/types/tabDialog.d.ts +5 -0
  412. package/types/treeSelect.d.ts +5 -0
  413. package/lib/treeselect.js +0 -682
  414. package/packages/treeselect/index.js +0 -8
  415. package/types/treeselect.d.ts +0 -5
@@ -0,0 +1,4436 @@
1
+ module.exports =
2
+ /******/ (function(modules) { // webpackBootstrap
3
+ /******/ // The module cache
4
+ /******/ var installedModules = {};
5
+ /******/
6
+ /******/ // The require function
7
+ /******/ function __webpack_require__(moduleId) {
8
+ /******/
9
+ /******/ // Check if module is in cache
10
+ /******/ if(installedModules[moduleId]) {
11
+ /******/ return installedModules[moduleId].exports;
12
+ /******/ }
13
+ /******/ // Create a new module (and put it into the cache)
14
+ /******/ var module = installedModules[moduleId] = {
15
+ /******/ i: moduleId,
16
+ /******/ l: false,
17
+ /******/ exports: {}
18
+ /******/ };
19
+ /******/
20
+ /******/ // Execute the module function
21
+ /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
22
+ /******/
23
+ /******/ // Flag the module as loaded
24
+ /******/ module.l = true;
25
+ /******/
26
+ /******/ // Return the exports of the module
27
+ /******/ return module.exports;
28
+ /******/ }
29
+ /******/
30
+ /******/
31
+ /******/ // expose the modules object (__webpack_modules__)
32
+ /******/ __webpack_require__.m = modules;
33
+ /******/
34
+ /******/ // expose the module cache
35
+ /******/ __webpack_require__.c = installedModules;
36
+ /******/
37
+ /******/ // define getter function for harmony exports
38
+ /******/ __webpack_require__.d = function(exports, name, getter) {
39
+ /******/ if(!__webpack_require__.o(exports, name)) {
40
+ /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
41
+ /******/ }
42
+ /******/ };
43
+ /******/
44
+ /******/ // define __esModule on exports
45
+ /******/ __webpack_require__.r = function(exports) {
46
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
47
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
48
+ /******/ }
49
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
50
+ /******/ };
51
+ /******/
52
+ /******/ // create a fake namespace object
53
+ /******/ // mode & 1: value is a module id, require it
54
+ /******/ // mode & 2: merge all properties of value into the ns
55
+ /******/ // mode & 4: return value when already ns object
56
+ /******/ // mode & 8|1: behave like require
57
+ /******/ __webpack_require__.t = function(value, mode) {
58
+ /******/ if(mode & 1) value = __webpack_require__(value);
59
+ /******/ if(mode & 8) return value;
60
+ /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
61
+ /******/ var ns = Object.create(null);
62
+ /******/ __webpack_require__.r(ns);
63
+ /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
64
+ /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
65
+ /******/ return ns;
66
+ /******/ };
67
+ /******/
68
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
69
+ /******/ __webpack_require__.n = function(module) {
70
+ /******/ var getter = module && module.__esModule ?
71
+ /******/ function getDefault() { return module['default']; } :
72
+ /******/ function getModuleExports() { return module; };
73
+ /******/ __webpack_require__.d(getter, 'a', getter);
74
+ /******/ return getter;
75
+ /******/ };
76
+ /******/
77
+ /******/ // Object.prototype.hasOwnProperty.call
78
+ /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
79
+ /******/
80
+ /******/ // __webpack_public_path__
81
+ /******/ __webpack_require__.p = "/dist/";
82
+ /******/
83
+ /******/
84
+ /******/ // Load entry module and return exports
85
+ /******/ return __webpack_require__(__webpack_require__.s = 210);
86
+ /******/ })
87
+ /************************************************************************/
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
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
911
+
912
+ "use strict";
913
+ /* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(21);
914
+ /* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0__);
915
+ /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3);
916
+ /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_1__);
917
+ /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(10);
918
+ /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_2__);
919
+
920
+
921
+
922
+ function _broadcast(componentName, eventName, params) {
923
+ this.$children.forEach(function (child) {
924
+ var name = child.$options.componentName;
925
+ if (name === componentName) {
926
+ child.$emit.apply(child, [eventName].concat(params));
927
+ } else {
928
+ _broadcast.apply(child, [componentName, eventName].concat([params]));
929
+ }
930
+ });
931
+ }
932
+ /* harmony default export */ __webpack_exports__["a"] = ({
933
+ methods: {
934
+ dispatch: function dispatch(componentName, eventName, params) {
935
+ var parent = this.$parent || this.$root;
936
+ var name = parent.$options.componentName;
937
+ while (parent && (!name || name !== componentName)) {
938
+ parent = parent.$parent;
939
+ if (parent) {
940
+ name = parent.$options.componentName;
941
+ }
942
+ }
943
+ if (parent) {
944
+ parent.$emit.apply(parent, [eventName].concat(params));
945
+ }
946
+ },
947
+ broadcast: function broadcast(componentName, eventName, params) {
948
+ _broadcast.call(this, componentName, eventName, params);
949
+ }
950
+ }
951
+ });
952
+
953
+ /***/ }),
954
+ /* 15 */
955
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
956
+
957
+ "use strict";
958
+ /* harmony default export */ __webpack_exports__["a"] = (function (target) {
959
+ for (var i = 1, j = arguments.length; i < j; i++) {
960
+ var source = arguments[i] || {};
961
+ for (var prop in source) {
962
+ if (source.hasOwnProperty(prop)) {
963
+ var value = source[prop];
964
+ if (value !== undefined) {
965
+ target[prop] = value;
966
+ }
967
+ }
968
+ }
969
+ }
970
+ return target;
971
+ });
972
+ ;
973
+
974
+ /***/ }),
975
+ /* 16 */
976
+ /***/ (function(module, exports) {
977
+
978
+ module.exports = require("core-js/modules/es.string.match.js");
979
+
980
+ /***/ }),
981
+ /* 17 */
982
+ /***/ (function(module, exports) {
983
+
984
+ module.exports = require("core-js/modules/es.object.keys.js");
985
+
986
+ /***/ }),
987
+ /* 18 */
988
+ /***/ (function(module, exports) {
989
+
990
+ module.exports = require("core-js/modules/es.array.filter.js");
991
+
992
+ /***/ }),
993
+ /* 19 */
994
+ /***/ (function(module, exports) {
995
+
996
+ module.exports = require("core-js/modules/es.array.iterator.js");
997
+
998
+ /***/ }),
999
+ /* 20 */
1000
+ /***/ (function(module, exports) {
1001
+
1002
+ module.exports = require("core-js/modules/es.array.map.js");
1003
+
1004
+ /***/ }),
1005
+ /* 21 */
1006
+ /***/ (function(module, exports) {
1007
+
1008
+ module.exports = require("core-js/modules/es.array.concat.js");
1009
+
1010
+ /***/ }),
1011
+ /* 22 */
1012
+ /***/ (function(module, exports) {
1013
+
1014
+ module.exports = require("core-js/modules/es.array.splice.js");
1015
+
1016
+ /***/ }),
1017
+ /* 23 */
1018
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1019
+
1020
+ "use strict";
1021
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
1022
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
1023
+
1024
+ var scrollBarWidth;
1025
+ /* harmony default export */ __webpack_exports__["a"] = (function () {
1026
+ if (vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer) return 0;
1027
+ if (scrollBarWidth !== undefined) return scrollBarWidth;
1028
+ var outer = document.createElement('div');
1029
+ outer.className = 'el-scrollbar__wrap';
1030
+ outer.style.visibility = 'hidden';
1031
+ outer.style.width = '100px';
1032
+ outer.style.position = 'absolute';
1033
+ outer.style.top = '-9999px';
1034
+ document.body.appendChild(outer);
1035
+ var widthNoScroll = outer.offsetWidth;
1036
+ outer.style.overflow = 'scroll';
1037
+ var inner = document.createElement('div');
1038
+ inner.style.width = '100%';
1039
+ outer.appendChild(inner);
1040
+ var widthWithScroll = inner.offsetWidth;
1041
+ outer.parentNode.removeChild(outer);
1042
+ scrollBarWidth = widthNoScroll - widthWithScroll;
1043
+ return scrollBarWidth;
1044
+ });
1045
+ ;
1046
+
1047
+ /***/ }),
1048
+ /* 24 */
1049
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1050
+
1051
+ "use strict";
1052
+
1053
+ // EXPORTS
1054
+ __webpack_require__.d(__webpack_exports__, "a", function() { return /* reexport */ popup_manager; });
1055
+
1056
+ // EXTERNAL MODULE: external "core-js/modules/es.number.constructor.js"
1057
+ var es_number_constructor_js_ = __webpack_require__(6);
1058
+
1059
+ // EXTERNAL MODULE: external "vue"
1060
+ var external_vue_ = __webpack_require__(0);
1061
+ var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
1062
+
1063
+ // EXTERNAL MODULE: ./src/utils/merge.js
1064
+ var merge = __webpack_require__(15);
1065
+
1066
+ // EXTERNAL MODULE: external "core-js/modules/es.array.splice.js"
1067
+ var es_array_splice_js_ = __webpack_require__(22);
1068
+
1069
+ // EXTERNAL MODULE: external "core-js/modules/es.object.to-string.js"
1070
+ var es_object_to_string_js_ = __webpack_require__(3);
1071
+
1072
+ // EXTERNAL MODULE: external "core-js/modules/es.regexp.exec.js"
1073
+ var es_regexp_exec_js_ = __webpack_require__(7);
1074
+
1075
+ // EXTERNAL MODULE: external "core-js/modules/es.string.split.js"
1076
+ var es_string_split_js_ = __webpack_require__(59);
1077
+
1078
+ // EXTERNAL MODULE: external "core-js/modules/es.string.trim.js"
1079
+ var es_string_trim_js_ = __webpack_require__(55);
1080
+
1081
+ // EXTERNAL MODULE: external "core-js/modules/web.dom-collections.for-each.js"
1082
+ var web_dom_collections_for_each_js_ = __webpack_require__(10);
1083
+
1084
+ // EXTERNAL MODULE: ./src/utils/dom.js
1085
+ var utils_dom = __webpack_require__(1);
1086
+
1087
+ // CONCATENATED MODULE: ./src/utils/popup/popup-manager.js
1088
+
1089
+
1090
+
1091
+
1092
+
1093
+
1094
+
1095
+
1096
+ var hasModal = false;
1097
+ var hasInitZIndex = false;
1098
+ var popup_manager_zIndex;
1099
+ var popup_manager_getModal = function getModal() {
1100
+ if (external_vue_default.a.prototype.$isServer) return;
1101
+ var modalDom = PopupManager.modalDom;
1102
+ if (modalDom) {
1103
+ hasModal = true;
1104
+ } else {
1105
+ hasModal = false;
1106
+ modalDom = document.createElement('div');
1107
+ PopupManager.modalDom = modalDom;
1108
+ modalDom.addEventListener('touchmove', function (event) {
1109
+ event.preventDefault();
1110
+ event.stopPropagation();
1111
+ });
1112
+ modalDom.addEventListener('click', function () {
1113
+ PopupManager.doOnModalClick && PopupManager.doOnModalClick();
1114
+ });
1115
+ }
1116
+ return modalDom;
1117
+ };
1118
+ var instances = {};
1119
+ var PopupManager = {
1120
+ modalFade: true,
1121
+ getInstance: function getInstance(id) {
1122
+ return instances[id];
1123
+ },
1124
+ register: function register(id, instance) {
1125
+ if (id && instance) {
1126
+ instances[id] = instance;
1127
+ }
1128
+ },
1129
+ deregister: function deregister(id) {
1130
+ if (id) {
1131
+ instances[id] = null;
1132
+ delete instances[id];
1133
+ }
1134
+ },
1135
+ nextZIndex: function nextZIndex() {
1136
+ return PopupManager.zIndex++;
1137
+ },
1138
+ modalStack: [],
1139
+ doOnModalClick: function doOnModalClick() {
1140
+ var topItem = PopupManager.modalStack[PopupManager.modalStack.length - 1];
1141
+ if (!topItem) return;
1142
+ var instance = PopupManager.getInstance(topItem.id);
1143
+ if (instance && instance.closeOnClickModal) {
1144
+ instance.close();
1145
+ }
1146
+ },
1147
+ openModal: function openModal(id, zIndex, dom, modalClass, modalFade) {
1148
+ if (external_vue_default.a.prototype.$isServer) return;
1149
+ if (!id || zIndex === undefined) return;
1150
+ this.modalFade = modalFade;
1151
+ var modalStack = this.modalStack;
1152
+ for (var i = 0, j = modalStack.length; i < j; i++) {
1153
+ var item = modalStack[i];
1154
+ if (item.id === id) {
1155
+ return;
1156
+ }
1157
+ }
1158
+ var modalDom = popup_manager_getModal();
1159
+ Object(utils_dom["a" /* addClass */])(modalDom, 'v-modal');
1160
+ if (this.modalFade && !hasModal) {
1161
+ Object(utils_dom["a" /* addClass */])(modalDom, 'v-modal-enter');
1162
+ }
1163
+ if (modalClass) {
1164
+ var classArr = modalClass.trim().split(/\s+/);
1165
+ classArr.forEach(function (item) {
1166
+ return Object(utils_dom["a" /* addClass */])(modalDom, item);
1167
+ });
1168
+ }
1169
+ setTimeout(function () {
1170
+ Object(utils_dom["i" /* removeClass */])(modalDom, 'v-modal-enter');
1171
+ }, 200);
1172
+ if (dom && dom.parentNode && dom.parentNode.nodeType !== 11) {
1173
+ dom.parentNode.appendChild(modalDom);
1174
+ } else {
1175
+ document.body.appendChild(modalDom);
1176
+ }
1177
+ if (zIndex) {
1178
+ modalDom.style.zIndex = zIndex;
1179
+ }
1180
+ modalDom.tabIndex = 0;
1181
+ modalDom.style.display = '';
1182
+ this.modalStack.push({
1183
+ id: id,
1184
+ zIndex: zIndex,
1185
+ modalClass: modalClass
1186
+ });
1187
+ },
1188
+ closeModal: function closeModal(id) {
1189
+ var modalStack = this.modalStack;
1190
+ var modalDom = popup_manager_getModal();
1191
+ if (modalStack.length > 0) {
1192
+ var topItem = modalStack[modalStack.length - 1];
1193
+ if (topItem.id === id) {
1194
+ if (topItem.modalClass) {
1195
+ var classArr = topItem.modalClass.trim().split(/\s+/);
1196
+ classArr.forEach(function (item) {
1197
+ return Object(utils_dom["i" /* removeClass */])(modalDom, item);
1198
+ });
1199
+ }
1200
+ modalStack.pop();
1201
+ if (modalStack.length > 0) {
1202
+ modalDom.style.zIndex = modalStack[modalStack.length - 1].zIndex;
1203
+ }
1204
+ } else {
1205
+ for (var i = modalStack.length - 1; i >= 0; i--) {
1206
+ if (modalStack[i].id === id) {
1207
+ modalStack.splice(i, 1);
1208
+ break;
1209
+ }
1210
+ }
1211
+ }
1212
+ }
1213
+ if (modalStack.length === 0) {
1214
+ if (this.modalFade) {
1215
+ Object(utils_dom["a" /* addClass */])(modalDom, 'v-modal-leave');
1216
+ }
1217
+ setTimeout(function () {
1218
+ if (modalStack.length === 0) {
1219
+ if (modalDom.parentNode) modalDom.parentNode.removeChild(modalDom);
1220
+ modalDom.style.display = 'none';
1221
+ PopupManager.modalDom = undefined;
1222
+ }
1223
+ Object(utils_dom["i" /* removeClass */])(modalDom, 'v-modal-leave');
1224
+ }, 200);
1225
+ }
1226
+ }
1227
+ };
1228
+ Object.defineProperty(PopupManager, 'zIndex', {
1229
+ configurable: true,
1230
+ get: function get() {
1231
+ if (!hasInitZIndex) {
1232
+ popup_manager_zIndex = popup_manager_zIndex || (external_vue_default.a.prototype.$ELEMENT || {}).zIndex || 2000;
1233
+ hasInitZIndex = true;
1234
+ }
1235
+ return popup_manager_zIndex;
1236
+ },
1237
+ set: function set(value) {
1238
+ popup_manager_zIndex = value;
1239
+ }
1240
+ });
1241
+ var popup_manager_getTopPopup = function getTopPopup() {
1242
+ if (external_vue_default.a.prototype.$isServer) return;
1243
+ if (PopupManager.modalStack.length > 0) {
1244
+ var topPopup = PopupManager.modalStack[PopupManager.modalStack.length - 1];
1245
+ if (!topPopup) return;
1246
+ var instance = PopupManager.getInstance(topPopup.id);
1247
+ return instance;
1248
+ }
1249
+ };
1250
+ if (!external_vue_default.a.prototype.$isServer) {
1251
+ // handle `esc` key when the popup is shown
1252
+ window.addEventListener('keydown', function (event) {
1253
+ if (event.keyCode === 27) {
1254
+ var topPopup = popup_manager_getTopPopup();
1255
+ if (topPopup && topPopup.closeOnPressEscape) {
1256
+ topPopup.handleClose ? topPopup.handleClose() : topPopup.handleAction ? topPopup.handleAction('cancel') : topPopup.close();
1257
+ }
1258
+ }
1259
+ });
1260
+ }
1261
+ /* harmony default export */ var popup_manager = (PopupManager);
1262
+ // EXTERNAL MODULE: ./src/utils/scrollbar-width.js
1263
+ var scrollbar_width = __webpack_require__(23);
1264
+
1265
+ // CONCATENATED MODULE: ./src/utils/popup/index.js
1266
+
1267
+
1268
+
1269
+
1270
+
1271
+
1272
+ var idSeed = 1;
1273
+ var scrollBarWidth;
1274
+ /* harmony default export */ var popup = __webpack_exports__["b"] = ({
1275
+ props: {
1276
+ visible: {
1277
+ type: Boolean,
1278
+ default: false
1279
+ },
1280
+ openDelay: {},
1281
+ closeDelay: {},
1282
+ zIndex: {},
1283
+ modal: {
1284
+ type: Boolean,
1285
+ default: false
1286
+ },
1287
+ modalFade: {
1288
+ type: Boolean,
1289
+ default: true
1290
+ },
1291
+ modalClass: {},
1292
+ modalAppendToBody: {
1293
+ type: Boolean,
1294
+ default: false
1295
+ },
1296
+ lockScroll: {
1297
+ type: Boolean,
1298
+ default: true
1299
+ },
1300
+ closeOnPressEscape: {
1301
+ type: Boolean,
1302
+ default: false
1303
+ },
1304
+ closeOnClickModal: {
1305
+ type: Boolean,
1306
+ default: false
1307
+ }
1308
+ },
1309
+ beforeMount: function beforeMount() {
1310
+ this._popupId = 'popup-' + idSeed++;
1311
+ popup_manager.register(this._popupId, this);
1312
+ },
1313
+ beforeDestroy: function beforeDestroy() {
1314
+ popup_manager.deregister(this._popupId);
1315
+ popup_manager.closeModal(this._popupId);
1316
+ this.restoreBodyStyle();
1317
+ },
1318
+ data: function data() {
1319
+ return {
1320
+ opened: false,
1321
+ bodyPaddingRight: null,
1322
+ computedBodyPaddingRight: 0,
1323
+ withoutHiddenClass: true,
1324
+ rendered: false
1325
+ };
1326
+ },
1327
+ watch: {
1328
+ visible: function visible(val) {
1329
+ var _this = this;
1330
+ if (val) {
1331
+ if (this._opening) return;
1332
+ if (!this.rendered) {
1333
+ this.rendered = true;
1334
+ external_vue_default.a.nextTick(function () {
1335
+ _this.open();
1336
+ });
1337
+ } else {
1338
+ this.open();
1339
+ }
1340
+ } else {
1341
+ this.close();
1342
+ }
1343
+ }
1344
+ },
1345
+ methods: {
1346
+ open: function open(options) {
1347
+ var _this2 = this;
1348
+ if (!this.rendered) {
1349
+ this.rendered = true;
1350
+ }
1351
+ var props = Object(merge["a" /* default */])({}, this.$props || this, options);
1352
+ if (this._closeTimer) {
1353
+ clearTimeout(this._closeTimer);
1354
+ this._closeTimer = null;
1355
+ }
1356
+ clearTimeout(this._openTimer);
1357
+ var openDelay = Number(props.openDelay);
1358
+ if (openDelay > 0) {
1359
+ this._openTimer = setTimeout(function () {
1360
+ _this2._openTimer = null;
1361
+ _this2.doOpen(props);
1362
+ }, openDelay);
1363
+ } else {
1364
+ this.doOpen(props);
1365
+ }
1366
+ },
1367
+ doOpen: function doOpen(props) {
1368
+ if (this.$isServer) return;
1369
+ if (this.willOpen && !this.willOpen()) return;
1370
+ if (this.opened) return;
1371
+ this._opening = true;
1372
+ var dom = this.$el;
1373
+ var modal = props.modal;
1374
+ var zIndex = props.zIndex;
1375
+ if (zIndex) {
1376
+ popup_manager.zIndex = zIndex;
1377
+ }
1378
+ if (modal) {
1379
+ if (this._closing) {
1380
+ popup_manager.closeModal(this._popupId);
1381
+ this._closing = false;
1382
+ }
1383
+ popup_manager.openModal(this._popupId, popup_manager.nextZIndex(), this.modalAppendToBody ? undefined : dom, props.modalClass, props.modalFade);
1384
+ if (props.lockScroll) {
1385
+ this.withoutHiddenClass = !Object(utils_dom["d" /* hasClass */])(document.body, 'el-popup-parent--hidden');
1386
+ if (this.withoutHiddenClass) {
1387
+ this.bodyPaddingRight = document.body.style.paddingRight;
1388
+ this.computedBodyPaddingRight = parseInt(Object(utils_dom["c" /* getStyle */])(document.body, 'paddingRight'), 10);
1389
+ }
1390
+ scrollBarWidth = Object(scrollbar_width["a" /* default */])();
1391
+ var bodyHasOverflow = document.documentElement.clientHeight < document.body.scrollHeight;
1392
+ var bodyOverflowY = Object(utils_dom["c" /* getStyle */])(document.body, 'overflowY');
1393
+ if (scrollBarWidth > 0 && (bodyHasOverflow || bodyOverflowY === 'scroll') && this.withoutHiddenClass) {
1394
+ document.body.style.paddingRight = this.computedBodyPaddingRight + scrollBarWidth + 'px';
1395
+ }
1396
+ Object(utils_dom["a" /* addClass */])(document.body, 'el-popup-parent--hidden');
1397
+ }
1398
+ }
1399
+ if (getComputedStyle(dom).position === 'static') {
1400
+ dom.style.position = 'absolute';
1401
+ }
1402
+ dom.style.zIndex = popup_manager.nextZIndex();
1403
+ this.opened = true;
1404
+ this.onOpen && this.onOpen();
1405
+ this.doAfterOpen();
1406
+ },
1407
+ doAfterOpen: function doAfterOpen() {
1408
+ this._opening = false;
1409
+ },
1410
+ close: function close() {
1411
+ var _this3 = this;
1412
+ if (this.willClose && !this.willClose()) return;
1413
+ if (this._openTimer !== null) {
1414
+ clearTimeout(this._openTimer);
1415
+ this._openTimer = null;
1416
+ }
1417
+ clearTimeout(this._closeTimer);
1418
+ var closeDelay = Number(this.closeDelay);
1419
+ if (closeDelay > 0) {
1420
+ this._closeTimer = setTimeout(function () {
1421
+ _this3._closeTimer = null;
1422
+ _this3.doClose();
1423
+ }, closeDelay);
1424
+ } else {
1425
+ this.doClose();
1426
+ }
1427
+ },
1428
+ doClose: function doClose() {
1429
+ this._closing = true;
1430
+ this.onClose && this.onClose();
1431
+ if (this.lockScroll) {
1432
+ setTimeout(this.restoreBodyStyle, 200);
1433
+ }
1434
+ this.opened = false;
1435
+ this.doAfterClose();
1436
+ },
1437
+ doAfterClose: function doAfterClose() {
1438
+ popup_manager.closeModal(this._popupId);
1439
+ this._closing = false;
1440
+ },
1441
+ restoreBodyStyle: function restoreBodyStyle() {
1442
+ if (this.modal && this.withoutHiddenClass) {
1443
+ document.body.style.paddingRight = this.bodyPaddingRight;
1444
+ Object(utils_dom["i" /* removeClass */])(document.body, 'el-popup-parent--hidden');
1445
+ }
1446
+ this.withoutHiddenClass = true;
1447
+ }
1448
+ }
1449
+ });
1450
+
1451
+
1452
+ /***/ }),
1453
+ /* 25 */
1454
+ /***/ (function(module, exports) {
1455
+
1456
+ module.exports = require("core-js/modules/es.array-buffer.constructor.js");
1457
+
1458
+ /***/ }),
1459
+ /* 26 */
1460
+ /***/ (function(module, exports) {
1461
+
1462
+ module.exports = require("core-js/modules/es.array-buffer.slice.js");
1463
+
1464
+ /***/ }),
1465
+ /* 27 */
1466
+ /***/ (function(module, exports) {
1467
+
1468
+ module.exports = require("core-js/modules/es.typed-array.int8-array.js");
1469
+
1470
+ /***/ }),
1471
+ /* 28 */
1472
+ /***/ (function(module, exports) {
1473
+
1474
+ module.exports = require("core-js/modules/es.typed-array.copy-within.js");
1475
+
1476
+ /***/ }),
1477
+ /* 29 */
1478
+ /***/ (function(module, exports) {
1479
+
1480
+ module.exports = require("core-js/modules/es.typed-array.every.js");
1481
+
1482
+ /***/ }),
1483
+ /* 30 */
1484
+ /***/ (function(module, exports) {
1485
+
1486
+ module.exports = require("core-js/modules/es.typed-array.fill.js");
1487
+
1488
+ /***/ }),
1489
+ /* 31 */
1490
+ /***/ (function(module, exports) {
1491
+
1492
+ module.exports = require("core-js/modules/es.typed-array.filter.js");
1493
+
1494
+ /***/ }),
1495
+ /* 32 */
1496
+ /***/ (function(module, exports) {
1497
+
1498
+ module.exports = require("core-js/modules/es.typed-array.find.js");
1499
+
1500
+ /***/ }),
1501
+ /* 33 */
1502
+ /***/ (function(module, exports) {
1503
+
1504
+ module.exports = require("core-js/modules/es.typed-array.find-index.js");
1505
+
1506
+ /***/ }),
1507
+ /* 34 */
1508
+ /***/ (function(module, exports) {
1509
+
1510
+ module.exports = require("core-js/modules/es.typed-array.for-each.js");
1511
+
1512
+ /***/ }),
1513
+ /* 35 */
1514
+ /***/ (function(module, exports) {
1515
+
1516
+ module.exports = require("core-js/modules/es.typed-array.includes.js");
1517
+
1518
+ /***/ }),
1519
+ /* 36 */
1520
+ /***/ (function(module, exports) {
1521
+
1522
+ module.exports = require("core-js/modules/es.typed-array.index-of.js");
1523
+
1524
+ /***/ }),
1525
+ /* 37 */
1526
+ /***/ (function(module, exports) {
1527
+
1528
+ module.exports = require("core-js/modules/es.typed-array.iterator.js");
1529
+
1530
+ /***/ }),
1531
+ /* 38 */
1532
+ /***/ (function(module, exports) {
1533
+
1534
+ module.exports = require("core-js/modules/es.typed-array.join.js");
1535
+
1536
+ /***/ }),
1537
+ /* 39 */
1538
+ /***/ (function(module, exports) {
1539
+
1540
+ module.exports = require("core-js/modules/es.typed-array.last-index-of.js");
1541
+
1542
+ /***/ }),
1543
+ /* 40 */
1544
+ /***/ (function(module, exports) {
1545
+
1546
+ module.exports = require("core-js/modules/es.typed-array.map.js");
1547
+
1548
+ /***/ }),
1549
+ /* 41 */
1550
+ /***/ (function(module, exports) {
1551
+
1552
+ module.exports = require("core-js/modules/es.typed-array.reduce.js");
1553
+
1554
+ /***/ }),
1555
+ /* 42 */
1556
+ /***/ (function(module, exports) {
1557
+
1558
+ module.exports = require("core-js/modules/es.typed-array.reduce-right.js");
1559
+
1560
+ /***/ }),
1561
+ /* 43 */
1562
+ /***/ (function(module, exports) {
1563
+
1564
+ module.exports = require("core-js/modules/es.typed-array.reverse.js");
1565
+
1566
+ /***/ }),
1567
+ /* 44 */
1568
+ /***/ (function(module, exports) {
1569
+
1570
+ module.exports = require("core-js/modules/es.typed-array.set.js");
1571
+
1572
+ /***/ }),
1573
+ /* 45 */
1574
+ /***/ (function(module, exports) {
1575
+
1576
+ module.exports = require("core-js/modules/es.typed-array.slice.js");
1577
+
1578
+ /***/ }),
1579
+ /* 46 */
1580
+ /***/ (function(module, exports) {
1581
+
1582
+ module.exports = require("core-js/modules/es.typed-array.some.js");
1583
+
1584
+ /***/ }),
1585
+ /* 47 */
1586
+ /***/ (function(module, exports) {
1587
+
1588
+ module.exports = require("core-js/modules/es.typed-array.sort.js");
1589
+
1590
+ /***/ }),
1591
+ /* 48 */
1592
+ /***/ (function(module, exports) {
1593
+
1594
+ module.exports = require("core-js/modules/es.typed-array.subarray.js");
1595
+
1596
+ /***/ }),
1597
+ /* 49 */
1598
+ /***/ (function(module, exports) {
1599
+
1600
+ module.exports = require("core-js/modules/es.typed-array.to-locale-string.js");
1601
+
1602
+ /***/ }),
1603
+ /* 50 */
1604
+ /***/ (function(module, exports) {
1605
+
1606
+ module.exports = require("core-js/modules/es.typed-array.to-string.js");
1607
+
1608
+ /***/ }),
1609
+ /* 51 */
1610
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1611
+
1612
+ "use strict";
1613
+ /* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5);
1614
+ /* 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__);
1615
+ /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
1616
+ /* 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__);
1617
+ /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
1618
+ /* 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__);
1619
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(0);
1620
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_3__);
1621
+ /* harmony import */ var _popup__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(24);
1622
+
1623
+
1624
+
1625
+
1626
+
1627
+ var PopperJS = vue__WEBPACK_IMPORTED_MODULE_3___default.a.prototype.$isServer ? function () {} : __webpack_require__(73);
1628
+ var stop = function stop(e) {
1629
+ return e.stopPropagation();
1630
+ };
1631
+
1632
+ /**
1633
+ * @param {HTMLElement} [reference=$refs.reference] - The reference element used to position the popper.
1634
+ * @param {HTMLElement} [popper=$refs.popper] - The HTML element used as popper, or a configuration used to generate the popper.
1635
+ * @param {String} [placement=button] - Placement of the popper accepted values: top(-start, -end), right(-start, -end), bottom(-start, -end), left(-start, -end)
1636
+ * @param {Number} [offset=0] - Amount of pixels the popper will be shifted (can be negative).
1637
+ * @param {Boolean} [visible=false] Visibility of the popup element.
1638
+ * @param {Boolean} [visible-arrow=false] Visibility of the arrow, no style.
1639
+ */
1640
+ /* harmony default export */ __webpack_exports__["a"] = ({
1641
+ props: {
1642
+ transformOrigin: {
1643
+ type: [Boolean, String],
1644
+ default: true
1645
+ },
1646
+ placement: {
1647
+ type: String,
1648
+ default: 'bottom'
1649
+ },
1650
+ boundariesPadding: {
1651
+ type: Number,
1652
+ default: 5
1653
+ },
1654
+ reference: {},
1655
+ popper: {},
1656
+ offset: {
1657
+ default: 0
1658
+ },
1659
+ value: Boolean,
1660
+ visibleArrow: Boolean,
1661
+ arrowOffset: {
1662
+ type: Number,
1663
+ default: 35
1664
+ },
1665
+ appendToBody: {
1666
+ type: Boolean,
1667
+ default: true
1668
+ },
1669
+ popperOptions: {
1670
+ type: Object,
1671
+ default: function _default() {
1672
+ return {
1673
+ gpuAcceleration: false
1674
+ };
1675
+ }
1676
+ }
1677
+ },
1678
+ data: function data() {
1679
+ return {
1680
+ showPopper: false,
1681
+ currentPlacement: ''
1682
+ };
1683
+ },
1684
+ watch: {
1685
+ value: {
1686
+ immediate: true,
1687
+ handler: function handler(val) {
1688
+ this.showPopper = val;
1689
+ this.$emit('input', val);
1690
+ }
1691
+ },
1692
+ showPopper: function showPopper(val) {
1693
+ if (this.disabled) return;
1694
+ val ? this.updatePopper() : this.destroyPopper();
1695
+ this.$emit('input', val);
1696
+ }
1697
+ },
1698
+ methods: {
1699
+ createPopper: function createPopper() {
1700
+ var _this = this;
1701
+ if (this.$isServer) return;
1702
+ this.currentPlacement = this.currentPlacement || this.placement;
1703
+ if (!/^(top|bottom|left|right)(-start|-end)?$/g.test(this.currentPlacement)) {
1704
+ return;
1705
+ }
1706
+ var options = this.popperOptions;
1707
+ var popper = this.popperElm = this.popperElm || this.popper || this.$refs.popper;
1708
+ var reference = this.referenceElm = this.referenceElm || this.reference || this.$refs.reference;
1709
+ if (!reference && this.$slots.reference && this.$slots.reference[0]) {
1710
+ reference = this.referenceElm = this.$slots.reference[0].elm;
1711
+ }
1712
+ if (!popper || !reference) return;
1713
+ if (this.visibleArrow) this.appendArrow(popper);
1714
+ if (this.appendToBody) document.body.appendChild(this.popperElm);
1715
+ if (this.popperJS && this.popperJS.destroy) {
1716
+ this.popperJS.destroy();
1717
+ }
1718
+ options.placement = this.currentPlacement;
1719
+ options.offset = this.offset;
1720
+ options.arrowOffset = this.arrowOffset;
1721
+ this.popperJS = new PopperJS(reference, popper, options);
1722
+ this.popperJS.onCreate(function (_) {
1723
+ _this.$emit('created', _this);
1724
+ _this.resetTransformOrigin();
1725
+ _this.$nextTick(_this.updatePopper);
1726
+ });
1727
+ if (typeof options.onUpdate === 'function') {
1728
+ this.popperJS.onUpdate(options.onUpdate);
1729
+ }
1730
+ this.popperJS._popper.style.zIndex = _popup__WEBPACK_IMPORTED_MODULE_4__[/* PopupManager */ "a"].nextZIndex();
1731
+ this.popperElm.addEventListener('click', stop);
1732
+ },
1733
+ updatePopper: function updatePopper() {
1734
+ var popperJS = this.popperJS;
1735
+ if (popperJS) {
1736
+ popperJS.update();
1737
+ if (popperJS._popper) {
1738
+ popperJS._popper.style.zIndex = _popup__WEBPACK_IMPORTED_MODULE_4__[/* PopupManager */ "a"].nextZIndex();
1739
+ }
1740
+ } else {
1741
+ this.createPopper();
1742
+ }
1743
+ },
1744
+ doDestroy: function doDestroy(forceDestroy) {
1745
+ /* istanbul ignore if */
1746
+ if (!this.popperJS || this.showPopper && !forceDestroy) return;
1747
+ this.popperJS.destroy();
1748
+ this.popperJS = null;
1749
+ },
1750
+ destroyPopper: function destroyPopper() {
1751
+ if (this.popperJS) {
1752
+ this.resetTransformOrigin();
1753
+ }
1754
+ },
1755
+ resetTransformOrigin: function resetTransformOrigin() {
1756
+ if (!this.transformOrigin) return;
1757
+ var placementMap = {
1758
+ top: 'bottom',
1759
+ bottom: 'top',
1760
+ left: 'right',
1761
+ right: 'left'
1762
+ };
1763
+ var placement = this.popperJS._popper.getAttribute('x-placement').split('-')[0];
1764
+ var origin = placementMap[placement];
1765
+ this.popperJS._popper.style.transformOrigin = typeof this.transformOrigin === 'string' ? this.transformOrigin : ['top', 'bottom'].indexOf(placement) > -1 ? "center " + origin : origin + " center";
1766
+ },
1767
+ appendArrow: function appendArrow(element) {
1768
+ var hash;
1769
+ if (this.appended) {
1770
+ return;
1771
+ }
1772
+ this.appended = true;
1773
+ for (var item in element.attributes) {
1774
+ if (/^_v-/.test(element.attributes[item].name)) {
1775
+ hash = element.attributes[item].name;
1776
+ break;
1777
+ }
1778
+ }
1779
+ var arrow = document.createElement('div');
1780
+ if (hash) {
1781
+ arrow.setAttribute(hash, '');
1782
+ }
1783
+ arrow.setAttribute('x-arrow', '');
1784
+ arrow.className = 'popper__arrow';
1785
+ element.appendChild(arrow);
1786
+ }
1787
+ },
1788
+ beforeDestroy: function beforeDestroy() {
1789
+ this.doDestroy(true);
1790
+ if (this.popperElm && this.popperElm.parentNode === document.body) {
1791
+ this.popperElm.removeEventListener('click', stop);
1792
+ document.body.removeChild(this.popperElm);
1793
+ }
1794
+ },
1795
+ // call destroy in keep-alive mode
1796
+ deactivated: function deactivated() {
1797
+ this.$options.beforeDestroy[0].call(this);
1798
+ }
1799
+ });
1800
+
1801
+ /***/ }),
1802
+ /* 52 */,
1803
+ /* 53 */
1804
+ /***/ (function(module, exports) {
1805
+
1806
+ module.exports = require("core-js/modules/es.array.includes.js");
1807
+
1808
+ /***/ }),
1809
+ /* 54 */,
1810
+ /* 55 */
1811
+ /***/ (function(module, exports) {
1812
+
1813
+ module.exports = require("core-js/modules/es.string.trim.js");
1814
+
1815
+ /***/ }),
1816
+ /* 56 */,
1817
+ /* 57 */,
1818
+ /* 58 */,
1819
+ /* 59 */
1820
+ /***/ (function(module, exports) {
1821
+
1822
+ module.exports = require("core-js/modules/es.string.split.js");
1823
+
1824
+ /***/ }),
1825
+ /* 60 */
1826
+ /***/ (function(module, exports) {
1827
+
1828
+ module.exports = require("core-js/modules/es.object.assign.js");
1829
+
1830
+ /***/ }),
1831
+ /* 61 */,
1832
+ /* 62 */,
1833
+ /* 63 */,
1834
+ /* 64 */,
1835
+ /* 65 */,
1836
+ /* 66 */
1837
+ /***/ (function(module, exports) {
1838
+
1839
+ /* WEBPACK VAR INJECTION */(function(__webpack_amd_options__) {/* globals __webpack_amd_options__ */
1840
+ module.exports = __webpack_amd_options__;
1841
+
1842
+ /* WEBPACK VAR INJECTION */}.call(this, {}))
1843
+
1844
+ /***/ }),
1845
+ /* 67 */
1846
+ /***/ (function(module, exports) {
1847
+
1848
+ module.exports = function(originalModule) {
1849
+ if (!originalModule.webpackPolyfill) {
1850
+ var module = Object.create(originalModule);
1851
+ // module.parent = undefined by default
1852
+ if (!module.children) module.children = [];
1853
+ Object.defineProperty(module, "loaded", {
1854
+ enumerable: true,
1855
+ get: function() {
1856
+ return module.l;
1857
+ }
1858
+ });
1859
+ Object.defineProperty(module, "id", {
1860
+ enumerable: true,
1861
+ get: function() {
1862
+ return module.i;
1863
+ }
1864
+ });
1865
+ Object.defineProperty(module, "exports", {
1866
+ enumerable: true
1867
+ });
1868
+ module.webpackPolyfill = 1;
1869
+ }
1870
+ return module;
1871
+ };
1872
+
1873
+
1874
+ /***/ }),
1875
+ /* 68 */,
1876
+ /* 69 */,
1877
+ /* 70 */,
1878
+ /* 71 */,
1879
+ /* 72 */,
1880
+ /* 73 */
1881
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1882
+
1883
+ "use strict";
1884
+ __webpack_require__.r(__webpack_exports__);
1885
+ /* WEBPACK VAR INJECTION */(function(module) {/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(18);
1886
+ /* 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__);
1887
+ /* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(20);
1888
+ /* 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__);
1889
+ /* harmony import */ var core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(13);
1890
+ /* 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__);
1891
+ /* harmony import */ var core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(60);
1892
+ /* 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__);
1893
+ /* harmony import */ var core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(74);
1894
+ /* 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__);
1895
+ /* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(17);
1896
+ /* 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__);
1897
+ /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(3);
1898
+ /* 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__);
1899
+ /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(7);
1900
+ /* 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__);
1901
+ /* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(11);
1902
+ /* 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__);
1903
+ /* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(12);
1904
+ /* 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__);
1905
+ /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(10);
1906
+ /* 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__);
1907
+
1908
+
1909
+
1910
+
1911
+
1912
+
1913
+
1914
+
1915
+
1916
+
1917
+
1918
+ /**
1919
+ * @fileOverview Kickass library to create and place poppers near their reference elements.
1920
+ * @version {{version}}
1921
+ * @license
1922
+ * Copyright (c) 2016 Federico Zivolo and contributors
1923
+ *
1924
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
1925
+ * of this software and associated documentation files (the "Software"), to deal
1926
+ * in the Software without restriction, including without limitation the rights
1927
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1928
+ * copies of the Software, and to permit persons to whom the Software is
1929
+ * furnished to do so, subject to the following conditions:
1930
+ *
1931
+ * The above copyright notice and this permission notice shall be included in all
1932
+ * copies or substantial portions of the Software.
1933
+ *
1934
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1935
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1936
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1937
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1938
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1939
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1940
+ * SOFTWARE.
1941
+ */
1942
+
1943
+ //
1944
+ // Cross module loader
1945
+ // Supported: Node, AMD, Browser globals
1946
+ //
1947
+ ;
1948
+ (function (root, factory) {
1949
+ if (typeof define === 'function' && __webpack_require__(66)) {
1950
+ // AMD. Register as an anonymous module.
1951
+ define(factory);
1952
+ } else if ( true && module.exports) {
1953
+ // Node. Does not work with strict CommonJS, but
1954
+ // only CommonJS-like environments that support module.exports,
1955
+ // like Node.
1956
+ module.exports = factory();
1957
+ } else {
1958
+ // Browser globals (root is window)
1959
+ root.Popper = factory();
1960
+ }
1961
+ })(undefined, function () {
1962
+ 'use strict';
1963
+
1964
+ var root = window;
1965
+
1966
+ // default options
1967
+ var DEFAULTS = {
1968
+ // placement of the popper
1969
+ placement: 'bottom',
1970
+ gpuAcceleration: true,
1971
+ // shift popper from its origin by the given amount of pixels (can be negative)
1972
+ offset: 0,
1973
+ // the element which will act as boundary of the popper
1974
+ boundariesElement: 'viewport',
1975
+ // amount of pixel used to define a minimum distance between the boundaries and the popper
1976
+ boundariesPadding: 5,
1977
+ // popper will try to prevent overflow following this order,
1978
+ // by default, then, it could overflow on the left and on top of the boundariesElement
1979
+ preventOverflowOrder: ['left', 'right', 'top', 'bottom'],
1980
+ // the behavior used by flip to change the placement of the popper
1981
+ flipBehavior: 'flip',
1982
+ arrowElement: '[x-arrow]',
1983
+ arrowOffset: 0,
1984
+ // list of functions used to modify the offsets before they are applied to the popper
1985
+ modifiers: ['shift', 'offset', 'preventOverflow', 'keepTogether', 'arrow', 'flip', 'applyStyle'],
1986
+ modifiersIgnored: [],
1987
+ forceAbsolute: false
1988
+ };
1989
+
1990
+ /**
1991
+ * Create a new Popper.js instance
1992
+ * @constructor Popper
1993
+ * @param {HTMLElement} reference - The reference element used to position the popper
1994
+ * @param {HTMLElement|Object} popper
1995
+ * The HTML element used as popper, or a configuration used to generate the popper.
1996
+ * @param {String} [popper.tagName='div'] The tag name of the generated popper.
1997
+ * @param {Array} [popper.classNames=['popper']] Array of classes to apply to the generated popper.
1998
+ * @param {Array} [popper.attributes] Array of attributes to apply, specify `attr:value` to assign a value to it.
1999
+ * @param {HTMLElement|String} [popper.parent=window.document.body] The parent element, given as HTMLElement or as query string.
2000
+ * @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`.
2001
+ * @param {String} [popper.contentType='text'] If `html`, the `content` will be parsed as HTML. If `node`, it will be appended as-is.
2002
+ * @param {String} [popper.arrowTagName='div'] Same as `popper.tagName` but for the arrow element.
2003
+ * @param {Array} [popper.arrowClassNames='popper__arrow'] Same as `popper.classNames` but for the arrow element.
2004
+ * @param {String} [popper.arrowAttributes=['x-arrow']] Same as `popper.attributes` but for the arrow element.
2005
+ * @param {Object} options
2006
+ * @param {String} [options.placement=bottom]
2007
+ * Placement of the popper accepted values: `top(-start, -end), right(-start, -end), bottom(-start, -right),
2008
+ * left(-start, -end)`
2009
+ *
2010
+ * @param {HTMLElement|String} [options.arrowElement='[x-arrow]']
2011
+ * The DOM Node used as arrow for the popper, or a CSS selector used to get the DOM node. It must be child of
2012
+ * its parent Popper. Popper.js will apply to the given element the style required to align the arrow with its
2013
+ * reference element.
2014
+ * By default, it will look for a child node of the popper with the `x-arrow` attribute.
2015
+ *
2016
+ * @param {Boolean} [options.gpuAcceleration=true]
2017
+ * When this property is set to true, the popper position will be applied using CSS3 translate3d, allowing the
2018
+ * browser to use the GPU to accelerate the rendering.
2019
+ * If set to false, the popper will be placed using `top` and `left` properties, not using the GPU.
2020
+ *
2021
+ * @param {Number} [options.offset=0]
2022
+ * Amount of pixels the popper will be shifted (can be negative).
2023
+ *
2024
+ * @param {String|Element} [options.boundariesElement='viewport']
2025
+ * The element which will define the boundaries of the popper position, the popper will never be placed outside
2026
+ * of the defined boundaries (except if `keepTogether` is enabled)
2027
+ *
2028
+ * @param {Number} [options.boundariesPadding=5]
2029
+ * Additional padding for the boundaries
2030
+ *
2031
+ * @param {Array} [options.preventOverflowOrder=['left', 'right', 'top', 'bottom']]
2032
+ * Order used when Popper.js tries to avoid overflows from the boundaries, they will be checked in order,
2033
+ * this means that the last ones will never overflow
2034
+ *
2035
+ * @param {String|Array} [options.flipBehavior='flip']
2036
+ * The behavior used by the `flip` modifier to change the placement of the popper when the latter is trying to
2037
+ * overlap its reference element. Defining `flip` as value, the placement will be flipped on
2038
+ * its axis (`right - left`, `top - bottom`).
2039
+ * You can even pass an array of placements (eg: `['right', 'left', 'top']` ) to manually specify
2040
+ * how alter the placement when a flip is needed. (eg. in the above example, it would first flip from right to left,
2041
+ * then, if even in its new placement, the popper is overlapping its reference element, it will be moved to top)
2042
+ *
2043
+ * @param {Array} [options.modifiers=[ 'shift', 'offset', 'preventOverflow', 'keepTogether', 'arrow', 'flip', 'applyStyle']]
2044
+ * List of functions used to modify the data before they are applied to the popper, add your custom functions
2045
+ * to this array to edit the offsets and placement.
2046
+ * The function should reflect the @params and @returns of preventOverflow
2047
+ *
2048
+ * @param {Array} [options.modifiersIgnored=[]]
2049
+ * Put here any built-in modifier name you want to exclude from the modifiers list
2050
+ * The function should reflect the @params and @returns of preventOverflow
2051
+ *
2052
+ * @param {Boolean} [options.removeOnDestroy=false]
2053
+ * Set to true if you want to automatically remove the popper when you call the `destroy` method.
2054
+ */
2055
+ function Popper(reference, popper, options) {
2056
+ this._reference = reference.jquery ? reference[0] : reference;
2057
+ this.state = {};
2058
+
2059
+ // if the popper variable is a configuration object, parse it to generate an HTMLElement
2060
+ // generate a default popper if is not defined
2061
+ var isNotDefined = typeof popper === 'undefined' || popper === null;
2062
+ var isConfig = popper && Object.prototype.toString.call(popper) === '[object Object]';
2063
+ if (isNotDefined || isConfig) {
2064
+ this._popper = this.parse(isConfig ? popper : {});
2065
+ }
2066
+ // otherwise, use the given HTMLElement as popper
2067
+ else {
2068
+ this._popper = popper.jquery ? popper[0] : popper;
2069
+ }
2070
+
2071
+ // with {} we create a new object with the options inside it
2072
+ this._options = Object.assign({}, DEFAULTS, options);
2073
+
2074
+ // refactoring modifiers' list
2075
+ this._options.modifiers = this._options.modifiers.map(function (modifier) {
2076
+ // remove ignored modifiers
2077
+ if (this._options.modifiersIgnored.indexOf(modifier) !== -1) return;
2078
+
2079
+ // set the x-placement attribute before everything else because it could be used to add margins to the popper
2080
+ // margins needs to be calculated to get the correct popper offsets
2081
+ if (modifier === 'applyStyle') {
2082
+ this._popper.setAttribute('x-placement', this._options.placement);
2083
+ }
2084
+
2085
+ // return predefined modifier identified by string or keep the custom one
2086
+ return this.modifiers[modifier] || modifier;
2087
+ }.bind(this));
2088
+
2089
+ // make sure to apply the popper position before any computation
2090
+ this.state.position = this._getPosition(this._popper, this._reference);
2091
+ setStyle(this._popper, {
2092
+ position: this.state.position,
2093
+ top: 0
2094
+ });
2095
+
2096
+ // fire the first update to position the popper in the right place
2097
+ this.update();
2098
+
2099
+ // setup event listeners, they will take care of update the position in specific situations
2100
+ this._setupEventListeners();
2101
+ return this;
2102
+ }
2103
+
2104
+ //
2105
+ // Methods
2106
+ //
2107
+ /**
2108
+ * Destroy the popper
2109
+ * @method
2110
+ * @memberof Popper
2111
+ */
2112
+ Popper.prototype.destroy = function () {
2113
+ this._popper.removeAttribute('x-placement');
2114
+ this._popper.style.left = '';
2115
+ this._popper.style.position = '';
2116
+ this._popper.style.top = '';
2117
+ this._popper.style[getSupportedPropertyName('transform')] = '';
2118
+ this._removeEventListeners();
2119
+
2120
+ // remove the popper if user explicity asked for the deletion on destroy
2121
+ if (this._options.removeOnDestroy) {
2122
+ this._popper.remove();
2123
+ }
2124
+ return this;
2125
+ };
2126
+
2127
+ /**
2128
+ * Updates the position of the popper, computing the new offsets and applying the new style
2129
+ * @method
2130
+ * @memberof Popper
2131
+ */
2132
+ Popper.prototype.update = function () {
2133
+ var data = {
2134
+ instance: this,
2135
+ styles: {}
2136
+ };
2137
+
2138
+ // store placement inside the data object, modifiers will be able to edit `placement` if needed
2139
+ // and refer to _originalPlacement to know the original value
2140
+ data.placement = this._options.placement;
2141
+ data._originalPlacement = this._options.placement;
2142
+
2143
+ // compute the popper and reference offsets and put them inside data.offsets
2144
+ data.offsets = this._getOffsets(this._popper, this._reference, data.placement);
2145
+
2146
+ // get boundaries
2147
+ data.boundaries = this._getBoundaries(data, this._options.boundariesPadding, this._options.boundariesElement);
2148
+ data = this.runModifiers(data, this._options.modifiers);
2149
+ if (typeof this.state.updateCallback === 'function') {
2150
+ this.state.updateCallback(data);
2151
+ }
2152
+ };
2153
+
2154
+ /**
2155
+ * If a function is passed, it will be executed after the initialization of popper with as first argument the Popper instance.
2156
+ * @method
2157
+ * @memberof Popper
2158
+ * @param {Function} callback
2159
+ */
2160
+ Popper.prototype.onCreate = function (callback) {
2161
+ // the createCallbacks return as first argument the popper instance
2162
+ callback(this);
2163
+ return this;
2164
+ };
2165
+
2166
+ /**
2167
+ * If a function is passed, it will be executed after each update of popper with as first argument the set of coordinates and informations
2168
+ * used to style popper and its arrow.
2169
+ * NOTE: it doesn't get fired on the first call of the `Popper.update()` method inside the `Popper` constructor!
2170
+ * @method
2171
+ * @memberof Popper
2172
+ * @param {Function} callback
2173
+ */
2174
+ Popper.prototype.onUpdate = function (callback) {
2175
+ this.state.updateCallback = callback;
2176
+ return this;
2177
+ };
2178
+
2179
+ /**
2180
+ * Helper used to generate poppers from a configuration file
2181
+ * @method
2182
+ * @memberof Popper
2183
+ * @param config {Object} configuration
2184
+ * @returns {HTMLElement} popper
2185
+ */
2186
+ Popper.prototype.parse = function (config) {
2187
+ var defaultConfig = {
2188
+ tagName: 'div',
2189
+ classNames: ['popper'],
2190
+ attributes: [],
2191
+ parent: root.document.body,
2192
+ content: '',
2193
+ contentType: 'text',
2194
+ arrowTagName: 'div',
2195
+ arrowClassNames: ['popper__arrow'],
2196
+ arrowAttributes: ['x-arrow']
2197
+ };
2198
+ config = Object.assign({}, defaultConfig, config);
2199
+ var d = root.document;
2200
+ var popper = d.createElement(config.tagName);
2201
+ addClassNames(popper, config.classNames);
2202
+ addAttributes(popper, config.attributes);
2203
+ if (config.contentType === 'node') {
2204
+ popper.appendChild(config.content.jquery ? config.content[0] : config.content);
2205
+ } else if (config.contentType === 'html') {
2206
+ popper.innerHTML = config.content;
2207
+ } else {
2208
+ popper.textContent = config.content;
2209
+ }
2210
+ if (config.arrowTagName) {
2211
+ var arrow = d.createElement(config.arrowTagName);
2212
+ addClassNames(arrow, config.arrowClassNames);
2213
+ addAttributes(arrow, config.arrowAttributes);
2214
+ popper.appendChild(arrow);
2215
+ }
2216
+ var parent = config.parent.jquery ? config.parent[0] : config.parent;
2217
+
2218
+ // if the given parent is a string, use it to match an element
2219
+ // if more than one element is matched, the first one will be used as parent
2220
+ // if no elements are matched, the script will throw an error
2221
+ if (typeof parent === 'string') {
2222
+ parent = d.querySelectorAll(config.parent);
2223
+ if (parent.length > 1) {
2224
+ console.warn('WARNING: the given `parent` query(' + config.parent + ') matched more than one element, the first one will be used');
2225
+ }
2226
+ if (parent.length === 0) {
2227
+ throw 'ERROR: the given `parent` doesn\'t exists!';
2228
+ }
2229
+ parent = parent[0];
2230
+ }
2231
+ // if the given parent is a DOM nodes list or an array of nodes with more than one element,
2232
+ // the first one will be used as parent
2233
+ if (parent.length > 1 && parent instanceof Element === false) {
2234
+ console.warn('WARNING: you have passed as parent a list of elements, the first one will be used');
2235
+ parent = parent[0];
2236
+ }
2237
+
2238
+ // append the generated popper to its parent
2239
+ parent.appendChild(popper);
2240
+ return popper;
2241
+
2242
+ /**
2243
+ * Adds class names to the given element
2244
+ * @function
2245
+ * @ignore
2246
+ * @param {HTMLElement} target
2247
+ * @param {Array} classes
2248
+ */
2249
+ function addClassNames(element, classNames) {
2250
+ classNames.forEach(function (className) {
2251
+ element.classList.add(className);
2252
+ });
2253
+ }
2254
+
2255
+ /**
2256
+ * Adds attributes to the given element
2257
+ * @function
2258
+ * @ignore
2259
+ * @param {HTMLElement} target
2260
+ * @param {Array} attributes
2261
+ * @example
2262
+ * addAttributes(element, [ 'data-info:foobar' ]);
2263
+ */
2264
+ function addAttributes(element, attributes) {
2265
+ attributes.forEach(function (attribute) {
2266
+ element.setAttribute(attribute.split(':')[0], attribute.split(':')[1] || '');
2267
+ });
2268
+ }
2269
+ };
2270
+
2271
+ /**
2272
+ * Helper used to get the position which will be applied to the popper
2273
+ * @method
2274
+ * @memberof Popper
2275
+ * @param config {HTMLElement} popper element
2276
+ * @param reference {HTMLElement} reference element
2277
+ * @returns {String} position
2278
+ */
2279
+ Popper.prototype._getPosition = function (popper, reference) {
2280
+ var container = getOffsetParent(reference);
2281
+ if (this._options.forceAbsolute) {
2282
+ return 'absolute';
2283
+ }
2284
+
2285
+ // Decide if the popper will be fixed
2286
+ // If the reference element is inside a fixed context, the popper will be fixed as well to allow them to scroll together
2287
+ var isParentFixed = isFixed(reference, container);
2288
+ return isParentFixed ? 'fixed' : 'absolute';
2289
+ };
2290
+
2291
+ /**
2292
+ * Get offsets to the popper
2293
+ * @method
2294
+ * @memberof Popper
2295
+ * @access private
2296
+ * @param {Element} popper - the popper element
2297
+ * @param {Element} reference - the reference element (the popper will be relative to this)
2298
+ * @returns {Object} An object containing the offsets which will be applied to the popper
2299
+ */
2300
+ Popper.prototype._getOffsets = function (popper, reference, placement) {
2301
+ placement = placement.split('-')[0];
2302
+ var popperOffsets = {};
2303
+ popperOffsets.position = this.state.position;
2304
+ var isParentFixed = popperOffsets.position === 'fixed';
2305
+
2306
+ //
2307
+ // Get reference element position
2308
+ //
2309
+ var referenceOffsets = getOffsetRectRelativeToCustomParent(reference, getOffsetParent(popper), isParentFixed);
2310
+
2311
+ //
2312
+ // Get popper sizes
2313
+ //
2314
+ var popperRect = getOuterSizes(popper);
2315
+
2316
+ //
2317
+ // Compute offsets of popper
2318
+ //
2319
+
2320
+ // depending by the popper placement we have to compute its offsets slightly differently
2321
+ if (['right', 'left'].indexOf(placement) !== -1) {
2322
+ popperOffsets.top = referenceOffsets.top + referenceOffsets.height / 2 - popperRect.height / 2;
2323
+ if (placement === 'left') {
2324
+ popperOffsets.left = referenceOffsets.left - popperRect.width;
2325
+ } else {
2326
+ popperOffsets.left = referenceOffsets.right;
2327
+ }
2328
+ } else {
2329
+ popperOffsets.left = referenceOffsets.left + referenceOffsets.width / 2 - popperRect.width / 2;
2330
+ if (placement === 'top') {
2331
+ popperOffsets.top = referenceOffsets.top - popperRect.height;
2332
+ } else {
2333
+ popperOffsets.top = referenceOffsets.bottom;
2334
+ }
2335
+ }
2336
+
2337
+ // Add width and height to our offsets object
2338
+ popperOffsets.width = popperRect.width;
2339
+ popperOffsets.height = popperRect.height;
2340
+ return {
2341
+ popper: popperOffsets,
2342
+ reference: referenceOffsets
2343
+ };
2344
+ };
2345
+
2346
+ /**
2347
+ * Setup needed event listeners used to update the popper position
2348
+ * @method
2349
+ * @memberof Popper
2350
+ * @access private
2351
+ */
2352
+ Popper.prototype._setupEventListeners = function () {
2353
+ // NOTE: 1 DOM access here
2354
+ this.state.updateBound = this.update.bind(this);
2355
+ root.addEventListener('resize', this.state.updateBound);
2356
+ // if the boundariesElement is window we don't need to listen for the scroll event
2357
+ if (this._options.boundariesElement !== 'window') {
2358
+ var target = getScrollParent(this._reference);
2359
+ // here it could be both `body` or `documentElement` thanks to Firefox, we then check both
2360
+ if (target === root.document.body || target === root.document.documentElement) {
2361
+ target = root;
2362
+ }
2363
+ target.addEventListener('scroll', this.state.updateBound);
2364
+ this.state.scrollTarget = target;
2365
+ }
2366
+ };
2367
+
2368
+ /**
2369
+ * Remove event listeners used to update the popper position
2370
+ * @method
2371
+ * @memberof Popper
2372
+ * @access private
2373
+ */
2374
+ Popper.prototype._removeEventListeners = function () {
2375
+ // NOTE: 1 DOM access here
2376
+ root.removeEventListener('resize', this.state.updateBound);
2377
+ if (this._options.boundariesElement !== 'window' && this.state.scrollTarget) {
2378
+ this.state.scrollTarget.removeEventListener('scroll', this.state.updateBound);
2379
+ this.state.scrollTarget = null;
2380
+ }
2381
+ this.state.updateBound = null;
2382
+ };
2383
+
2384
+ /**
2385
+ * Computed the boundaries limits and return them
2386
+ * @method
2387
+ * @memberof Popper
2388
+ * @access private
2389
+ * @param {Object} data - Object containing the property "offsets" generated by `_getOffsets`
2390
+ * @param {Number} padding - Boundaries padding
2391
+ * @param {Element} boundariesElement - Element used to define the boundaries
2392
+ * @returns {Object} Coordinates of the boundaries
2393
+ */
2394
+ Popper.prototype._getBoundaries = function (data, padding, boundariesElement) {
2395
+ // NOTE: 1 DOM access here
2396
+ var boundaries = {};
2397
+ var width, height;
2398
+ if (boundariesElement === 'window') {
2399
+ var body = root.document.body,
2400
+ html = root.document.documentElement;
2401
+ height = Math.max(body.scrollHeight, body.offsetHeight, html.clientHeight, html.scrollHeight, html.offsetHeight);
2402
+ width = Math.max(body.scrollWidth, body.offsetWidth, html.clientWidth, html.scrollWidth, html.offsetWidth);
2403
+ boundaries = {
2404
+ top: 0,
2405
+ right: width,
2406
+ bottom: height,
2407
+ left: 0
2408
+ };
2409
+ } else if (boundariesElement === 'viewport') {
2410
+ var offsetParent = getOffsetParent(this._popper);
2411
+ var scrollParent = getScrollParent(this._popper);
2412
+ var offsetParentRect = getOffsetRect(offsetParent);
2413
+
2414
+ // Thanks the fucking native API, `document.body.scrollTop` & `document.documentElement.scrollTop`
2415
+ var getScrollTopValue = function getScrollTopValue(element) {
2416
+ return element == document.body ? Math.max(document.documentElement.scrollTop, document.body.scrollTop) : element.scrollTop;
2417
+ };
2418
+ var getScrollLeftValue = function getScrollLeftValue(element) {
2419
+ return element == document.body ? Math.max(document.documentElement.scrollLeft, document.body.scrollLeft) : element.scrollLeft;
2420
+ };
2421
+
2422
+ // if the popper is fixed we don't have to substract scrolling from the boundaries
2423
+ var scrollTop = data.offsets.popper.position === 'fixed' ? 0 : getScrollTopValue(scrollParent);
2424
+ var scrollLeft = data.offsets.popper.position === 'fixed' ? 0 : getScrollLeftValue(scrollParent);
2425
+ boundaries = {
2426
+ top: 0 - (offsetParentRect.top - scrollTop),
2427
+ right: root.document.documentElement.clientWidth - (offsetParentRect.left - scrollLeft),
2428
+ bottom: root.document.documentElement.clientHeight - (offsetParentRect.top - scrollTop),
2429
+ left: 0 - (offsetParentRect.left - scrollLeft)
2430
+ };
2431
+ } else {
2432
+ if (getOffsetParent(this._popper) === boundariesElement) {
2433
+ boundaries = {
2434
+ top: 0,
2435
+ left: 0,
2436
+ right: boundariesElement.clientWidth,
2437
+ bottom: boundariesElement.clientHeight
2438
+ };
2439
+ } else {
2440
+ boundaries = getOffsetRect(boundariesElement);
2441
+ }
2442
+ }
2443
+ boundaries.left += padding;
2444
+ boundaries.right -= padding;
2445
+ boundaries.top = boundaries.top + padding;
2446
+ boundaries.bottom = boundaries.bottom - padding;
2447
+ return boundaries;
2448
+ };
2449
+
2450
+ /**
2451
+ * Loop trough the list of modifiers and run them in order, each of them will then edit the data object
2452
+ * @method
2453
+ * @memberof Popper
2454
+ * @access public
2455
+ * @param {Object} data
2456
+ * @param {Array} modifiers
2457
+ * @param {Function} ends
2458
+ */
2459
+ Popper.prototype.runModifiers = function (data, modifiers, ends) {
2460
+ var modifiersToRun = modifiers.slice();
2461
+ if (ends !== undefined) {
2462
+ modifiersToRun = this._options.modifiers.slice(0, getArrayKeyIndex(this._options.modifiers, ends));
2463
+ }
2464
+ modifiersToRun.forEach(function (modifier) {
2465
+ if (isFunction(modifier)) {
2466
+ data = modifier.call(this, data);
2467
+ }
2468
+ }.bind(this));
2469
+ return data;
2470
+ };
2471
+
2472
+ /**
2473
+ * Helper used to know if the given modifier depends from another one.
2474
+ * @method
2475
+ * @memberof Popper
2476
+ * @param {String} requesting - name of requesting modifier
2477
+ * @param {String} requested - name of requested modifier
2478
+ * @returns {Boolean}
2479
+ */
2480
+ Popper.prototype.isModifierRequired = function (requesting, requested) {
2481
+ var index = getArrayKeyIndex(this._options.modifiers, requesting);
2482
+ return !!this._options.modifiers.slice(0, index).filter(function (modifier) {
2483
+ return modifier === requested;
2484
+ }).length;
2485
+ };
2486
+
2487
+ //
2488
+ // Modifiers
2489
+ //
2490
+
2491
+ /**
2492
+ * Modifiers list
2493
+ * @namespace Popper.modifiers
2494
+ * @memberof Popper
2495
+ * @type {Object}
2496
+ */
2497
+ Popper.prototype.modifiers = {};
2498
+
2499
+ /**
2500
+ * Apply the computed styles to the popper element
2501
+ * @method
2502
+ * @memberof Popper.modifiers
2503
+ * @argument {Object} data - The data object generated by `update` method
2504
+ * @returns {Object} The same data object
2505
+ */
2506
+ Popper.prototype.modifiers.applyStyle = function (data) {
2507
+ // apply the final offsets to the popper
2508
+ // NOTE: 1 DOM access here
2509
+ var styles = {
2510
+ position: data.offsets.popper.position
2511
+ };
2512
+
2513
+ // round top and left to avoid blurry text
2514
+ var left = Math.round(data.offsets.popper.left);
2515
+ var top = Math.round(data.offsets.popper.top);
2516
+
2517
+ // if gpuAcceleration is set to true and transform is supported, we use `translate3d` to apply the position to the popper
2518
+ // we automatically use the supported prefixed version if needed
2519
+ var prefixedProperty;
2520
+ if (this._options.gpuAcceleration && (prefixedProperty = getSupportedPropertyName('transform'))) {
2521
+ styles[prefixedProperty] = 'translate3d(' + left + 'px, ' + top + 'px, 0)';
2522
+ styles.top = 0;
2523
+ styles.left = 0;
2524
+ }
2525
+ // othwerise, we use the standard `left` and `top` properties
2526
+ else {
2527
+ styles.left = left;
2528
+ styles.top = top;
2529
+ }
2530
+
2531
+ // any property present in `data.styles` will be applied to the popper,
2532
+ // in this way we can make the 3rd party modifiers add custom styles to it
2533
+ // Be aware, modifiers could override the properties defined in the previous
2534
+ // lines of this modifier!
2535
+ Object.assign(styles, data.styles);
2536
+ setStyle(this._popper, styles);
2537
+
2538
+ // set an attribute which will be useful to style the tooltip (use it to properly position its arrow)
2539
+ // NOTE: 1 DOM access here
2540
+ this._popper.setAttribute('x-placement', data.placement);
2541
+
2542
+ // if the arrow modifier is required and the arrow style has been computed, apply the arrow style
2543
+ if (this.isModifierRequired(this.modifiers.applyStyle, this.modifiers.arrow) && data.offsets.arrow) {
2544
+ setStyle(data.arrowElement, data.offsets.arrow);
2545
+ }
2546
+ return data;
2547
+ };
2548
+
2549
+ /**
2550
+ * Modifier used to shift the popper on the start or end of its reference element side
2551
+ * @method
2552
+ * @memberof Popper.modifiers
2553
+ * @argument {Object} data - The data object generated by `update` method
2554
+ * @returns {Object} The data object, properly modified
2555
+ */
2556
+ Popper.prototype.modifiers.shift = function (data) {
2557
+ var placement = data.placement;
2558
+ var basePlacement = placement.split('-')[0];
2559
+ var shiftVariation = placement.split('-')[1];
2560
+
2561
+ // if shift shiftVariation is specified, run the modifier
2562
+ if (shiftVariation) {
2563
+ var reference = data.offsets.reference;
2564
+ var popper = getPopperClientRect(data.offsets.popper);
2565
+ var shiftOffsets = {
2566
+ y: {
2567
+ start: {
2568
+ top: reference.top
2569
+ },
2570
+ end: {
2571
+ top: reference.top + reference.height - popper.height
2572
+ }
2573
+ },
2574
+ x: {
2575
+ start: {
2576
+ left: reference.left
2577
+ },
2578
+ end: {
2579
+ left: reference.left + reference.width - popper.width
2580
+ }
2581
+ }
2582
+ };
2583
+ var axis = ['bottom', 'top'].indexOf(basePlacement) !== -1 ? 'x' : 'y';
2584
+ data.offsets.popper = Object.assign(popper, shiftOffsets[axis][shiftVariation]);
2585
+ }
2586
+ return data;
2587
+ };
2588
+
2589
+ /**
2590
+ * Modifier used to make sure the popper does not overflows from it's boundaries
2591
+ * @method
2592
+ * @memberof Popper.modifiers
2593
+ * @argument {Object} data - The data object generated by `update` method
2594
+ * @returns {Object} The data object, properly modified
2595
+ */
2596
+ Popper.prototype.modifiers.preventOverflow = function (data) {
2597
+ var order = this._options.preventOverflowOrder;
2598
+ var popper = getPopperClientRect(data.offsets.popper);
2599
+ var check = {
2600
+ left: function left() {
2601
+ var left = popper.left;
2602
+ if (popper.left < data.boundaries.left) {
2603
+ left = Math.max(popper.left, data.boundaries.left);
2604
+ }
2605
+ return {
2606
+ left: left
2607
+ };
2608
+ },
2609
+ right: function right() {
2610
+ var left = popper.left;
2611
+ if (popper.right > data.boundaries.right) {
2612
+ left = Math.min(popper.left, data.boundaries.right - popper.width);
2613
+ }
2614
+ return {
2615
+ left: left
2616
+ };
2617
+ },
2618
+ top: function top() {
2619
+ var top = popper.top;
2620
+ if (popper.top < data.boundaries.top) {
2621
+ top = Math.max(popper.top, data.boundaries.top);
2622
+ }
2623
+ return {
2624
+ top: top
2625
+ };
2626
+ },
2627
+ bottom: function bottom() {
2628
+ var top = popper.top;
2629
+ if (popper.bottom > data.boundaries.bottom) {
2630
+ top = Math.min(popper.top, data.boundaries.bottom - popper.height);
2631
+ }
2632
+ return {
2633
+ top: top
2634
+ };
2635
+ }
2636
+ };
2637
+ order.forEach(function (direction) {
2638
+ data.offsets.popper = Object.assign(popper, check[direction]());
2639
+ });
2640
+ return data;
2641
+ };
2642
+
2643
+ /**
2644
+ * Modifier used to make sure the popper is always near its reference
2645
+ * @method
2646
+ * @memberof Popper.modifiers
2647
+ * @argument {Object} data - The data object generated by _update method
2648
+ * @returns {Object} The data object, properly modified
2649
+ */
2650
+ Popper.prototype.modifiers.keepTogether = function (data) {
2651
+ var popper = getPopperClientRect(data.offsets.popper);
2652
+ var reference = data.offsets.reference;
2653
+ var f = Math.floor;
2654
+ if (popper.right < f(reference.left)) {
2655
+ data.offsets.popper.left = f(reference.left) - popper.width;
2656
+ }
2657
+ if (popper.left > f(reference.right)) {
2658
+ data.offsets.popper.left = f(reference.right);
2659
+ }
2660
+ if (popper.bottom < f(reference.top)) {
2661
+ data.offsets.popper.top = f(reference.top) - popper.height;
2662
+ }
2663
+ if (popper.top > f(reference.bottom)) {
2664
+ data.offsets.popper.top = f(reference.bottom);
2665
+ }
2666
+ return data;
2667
+ };
2668
+
2669
+ /**
2670
+ * Modifier used to flip the placement of the popper when the latter is starting overlapping its reference element.
2671
+ * Requires the `preventOverflow` modifier before it in order to work.
2672
+ * **NOTE:** This modifier will run all its previous modifiers everytime it tries to flip the popper!
2673
+ * @method
2674
+ * @memberof Popper.modifiers
2675
+ * @argument {Object} data - The data object generated by _update method
2676
+ * @returns {Object} The data object, properly modified
2677
+ */
2678
+ Popper.prototype.modifiers.flip = function (data) {
2679
+ // check if preventOverflow is in the list of modifiers before the flip modifier.
2680
+ // otherwise flip would not work as expected.
2681
+ if (!this.isModifierRequired(this.modifiers.flip, this.modifiers.preventOverflow)) {
2682
+ console.warn('WARNING: preventOverflow modifier is required by flip modifier in order to work, be sure to include it before flip!');
2683
+ return data;
2684
+ }
2685
+ if (data.flipped && data.placement === data._originalPlacement) {
2686
+ // seems like flip is trying to loop, probably there's not enough space on any of the flippable sides
2687
+ return data;
2688
+ }
2689
+ var placement = data.placement.split('-')[0];
2690
+ var placementOpposite = getOppositePlacement(placement);
2691
+ var variation = data.placement.split('-')[1] || '';
2692
+ var flipOrder = [];
2693
+ if (this._options.flipBehavior === 'flip') {
2694
+ flipOrder = [placement, placementOpposite];
2695
+ } else {
2696
+ flipOrder = this._options.flipBehavior;
2697
+ }
2698
+ flipOrder.forEach(function (step, index) {
2699
+ if (placement !== step || flipOrder.length === index + 1) {
2700
+ return;
2701
+ }
2702
+ placement = data.placement.split('-')[0];
2703
+ placementOpposite = getOppositePlacement(placement);
2704
+ var popperOffsets = getPopperClientRect(data.offsets.popper);
2705
+
2706
+ // this boolean is used to distinguish right and bottom from top and left
2707
+ // they need different computations to get flipped
2708
+ var a = ['right', 'bottom'].indexOf(placement) !== -1;
2709
+
2710
+ // using Math.floor because the reference offsets may contain decimals we are not going to consider here
2711
+ if (a && Math.floor(data.offsets.reference[placement]) > Math.floor(popperOffsets[placementOpposite]) || !a && Math.floor(data.offsets.reference[placement]) < Math.floor(popperOffsets[placementOpposite])) {
2712
+ // we'll use this boolean to detect any flip loop
2713
+ data.flipped = true;
2714
+ data.placement = flipOrder[index + 1];
2715
+ if (variation) {
2716
+ data.placement += '-' + variation;
2717
+ }
2718
+ data.offsets.popper = this._getOffsets(this._popper, this._reference, data.placement).popper;
2719
+ data = this.runModifiers(data, this._options.modifiers, this._flip);
2720
+ }
2721
+ }.bind(this));
2722
+ return data;
2723
+ };
2724
+
2725
+ /**
2726
+ * Modifier used to add an offset to the popper, useful if you more granularity positioning your popper.
2727
+ * The offsets will shift the popper on the side of its reference element.
2728
+ * @method
2729
+ * @memberof Popper.modifiers
2730
+ * @argument {Object} data - The data object generated by _update method
2731
+ * @returns {Object} The data object, properly modified
2732
+ */
2733
+ Popper.prototype.modifiers.offset = function (data) {
2734
+ var offset = this._options.offset;
2735
+ var popper = data.offsets.popper;
2736
+ if (data.placement.indexOf('left') !== -1) {
2737
+ popper.top -= offset;
2738
+ } else if (data.placement.indexOf('right') !== -1) {
2739
+ popper.top += offset;
2740
+ } else if (data.placement.indexOf('top') !== -1) {
2741
+ popper.left -= offset;
2742
+ } else if (data.placement.indexOf('bottom') !== -1) {
2743
+ popper.left += offset;
2744
+ }
2745
+ return data;
2746
+ };
2747
+
2748
+ /**
2749
+ * 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
2750
+ * It will use the CSS outer size of the arrow element to know how many pixels of conjuction are needed
2751
+ * @method
2752
+ * @memberof Popper.modifiers
2753
+ * @argument {Object} data - The data object generated by _update method
2754
+ * @returns {Object} The data object, properly modified
2755
+ */
2756
+ Popper.prototype.modifiers.arrow = function (data) {
2757
+ var arrow = this._options.arrowElement;
2758
+ var arrowOffset = this._options.arrowOffset;
2759
+
2760
+ // if the arrowElement is a string, suppose it's a CSS selector
2761
+ if (typeof arrow === 'string') {
2762
+ arrow = this._popper.querySelector(arrow);
2763
+ }
2764
+
2765
+ // if arrow element is not found, don't run the modifier
2766
+ if (!arrow) {
2767
+ return data;
2768
+ }
2769
+
2770
+ // the arrow element must be child of its popper
2771
+ if (!this._popper.contains(arrow)) {
2772
+ console.warn('WARNING: `arrowElement` must be child of its popper element!');
2773
+ return data;
2774
+ }
2775
+
2776
+ // arrow depends on keepTogether in order to work
2777
+ if (!this.isModifierRequired(this.modifiers.arrow, this.modifiers.keepTogether)) {
2778
+ console.warn('WARNING: keepTogether modifier is required by arrow modifier in order to work, be sure to include it before arrow!');
2779
+ return data;
2780
+ }
2781
+ var arrowStyle = {};
2782
+ var placement = data.placement.split('-')[0];
2783
+ var popper = getPopperClientRect(data.offsets.popper);
2784
+ var reference = data.offsets.reference;
2785
+ var isVertical = ['left', 'right'].indexOf(placement) !== -1;
2786
+ var len = isVertical ? 'height' : 'width';
2787
+ var side = isVertical ? 'top' : 'left';
2788
+ var translate = isVertical ? 'translateY' : 'translateX';
2789
+ var altSide = isVertical ? 'left' : 'top';
2790
+ var opSide = isVertical ? 'bottom' : 'right';
2791
+ var arrowSize = getOuterSizes(arrow)[len];
2792
+
2793
+ //
2794
+ // extends keepTogether behavior making sure the popper and its reference have enough pixels in conjuction
2795
+ //
2796
+
2797
+ // top/left side
2798
+ if (reference[opSide] - arrowSize < popper[side]) {
2799
+ data.offsets.popper[side] -= popper[side] - (reference[opSide] - arrowSize);
2800
+ }
2801
+ // bottom/right side
2802
+ if (reference[side] + arrowSize > popper[opSide]) {
2803
+ data.offsets.popper[side] += reference[side] + arrowSize - popper[opSide];
2804
+ }
2805
+
2806
+ // compute center of the popper
2807
+ var center = reference[side] + (arrowOffset || reference[len] / 2 - arrowSize / 2);
2808
+ var sideValue = center - popper[side];
2809
+
2810
+ // prevent arrow from being placed not contiguously to its popper
2811
+ sideValue = Math.max(Math.min(popper[len] - arrowSize - 8, sideValue), 8);
2812
+ arrowStyle[side] = sideValue;
2813
+ arrowStyle[altSide] = ''; // make sure to remove any old style from the arrow
2814
+
2815
+ data.offsets.arrow = arrowStyle;
2816
+ data.arrowElement = arrow;
2817
+ return data;
2818
+ };
2819
+
2820
+ //
2821
+ // Helpers
2822
+ //
2823
+
2824
+ /**
2825
+ * Get the outer sizes of the given element (offset size + margins)
2826
+ * @function
2827
+ * @ignore
2828
+ * @argument {Element} element
2829
+ * @returns {Object} object containing width and height properties
2830
+ */
2831
+ function getOuterSizes(element) {
2832
+ // NOTE: 1 DOM access here
2833
+ var _display = element.style.display,
2834
+ _visibility = element.style.visibility;
2835
+ element.style.display = 'block';
2836
+ element.style.visibility = 'hidden';
2837
+ var calcWidthToForceRepaint = element.offsetWidth;
2838
+
2839
+ // original method
2840
+ var styles = root.getComputedStyle(element);
2841
+ var x = parseFloat(styles.marginTop) + parseFloat(styles.marginBottom);
2842
+ var y = parseFloat(styles.marginLeft) + parseFloat(styles.marginRight);
2843
+ var result = {
2844
+ width: element.offsetWidth + y,
2845
+ height: element.offsetHeight + x
2846
+ };
2847
+
2848
+ // reset element styles
2849
+ element.style.display = _display;
2850
+ element.style.visibility = _visibility;
2851
+ return result;
2852
+ }
2853
+
2854
+ /**
2855
+ * Get the opposite placement of the given one/
2856
+ * @function
2857
+ * @ignore
2858
+ * @argument {String} placement
2859
+ * @returns {String} flipped placement
2860
+ */
2861
+ function getOppositePlacement(placement) {
2862
+ var hash = {
2863
+ left: 'right',
2864
+ right: 'left',
2865
+ bottom: 'top',
2866
+ top: 'bottom'
2867
+ };
2868
+ return placement.replace(/left|right|bottom|top/g, function (matched) {
2869
+ return hash[matched];
2870
+ });
2871
+ }
2872
+
2873
+ /**
2874
+ * Given the popper offsets, generate an output similar to getBoundingClientRect
2875
+ * @function
2876
+ * @ignore
2877
+ * @argument {Object} popperOffsets
2878
+ * @returns {Object} ClientRect like output
2879
+ */
2880
+ function getPopperClientRect(popperOffsets) {
2881
+ var offsets = Object.assign({}, popperOffsets);
2882
+ offsets.right = offsets.left + offsets.width;
2883
+ offsets.bottom = offsets.top + offsets.height;
2884
+ return offsets;
2885
+ }
2886
+
2887
+ /**
2888
+ * Given an array and the key to find, returns its index
2889
+ * @function
2890
+ * @ignore
2891
+ * @argument {Array} arr
2892
+ * @argument keyToFind
2893
+ * @returns index or null
2894
+ */
2895
+ function getArrayKeyIndex(arr, keyToFind) {
2896
+ var i = 0,
2897
+ key;
2898
+ for (key in arr) {
2899
+ if (arr[key] === keyToFind) {
2900
+ return i;
2901
+ }
2902
+ i++;
2903
+ }
2904
+ return null;
2905
+ }
2906
+
2907
+ /**
2908
+ * Get CSS computed property of the given element
2909
+ * @function
2910
+ * @ignore
2911
+ * @argument {Eement} element
2912
+ * @argument {String} property
2913
+ */
2914
+ function getStyleComputedProperty(element, property) {
2915
+ // NOTE: 1 DOM access here
2916
+ var css = root.getComputedStyle(element, null);
2917
+ return css[property];
2918
+ }
2919
+
2920
+ /**
2921
+ * Returns the offset parent of the given element
2922
+ * @function
2923
+ * @ignore
2924
+ * @argument {Element} element
2925
+ * @returns {Element} offset parent
2926
+ */
2927
+ function getOffsetParent(element) {
2928
+ // NOTE: 1 DOM access here
2929
+ var offsetParent = element.offsetParent;
2930
+ return offsetParent === root.document.body || !offsetParent ? root.document.documentElement : offsetParent;
2931
+ }
2932
+
2933
+ /**
2934
+ * Returns the scrolling parent of the given element
2935
+ * @function
2936
+ * @ignore
2937
+ * @argument {Element} element
2938
+ * @returns {Element} offset parent
2939
+ */
2940
+ function getScrollParent(element) {
2941
+ var parent = element.parentNode;
2942
+ if (!parent) {
2943
+ return element;
2944
+ }
2945
+ if (parent === root.document) {
2946
+ // Firefox puts the scrollTOp value on `documentElement` instead of `body`, we then check which of them is
2947
+ // greater than 0 and return the proper element
2948
+ if (root.document.body.scrollTop || root.document.body.scrollLeft) {
2949
+ return root.document.body;
2950
+ } else {
2951
+ return root.document.documentElement;
2952
+ }
2953
+ }
2954
+
2955
+ // Firefox want us to check `-x` and `-y` variations as well
2956
+ if (['scroll', 'auto'].indexOf(getStyleComputedProperty(parent, 'overflow')) !== -1 || ['scroll', 'auto'].indexOf(getStyleComputedProperty(parent, 'overflow-x')) !== -1 || ['scroll', 'auto'].indexOf(getStyleComputedProperty(parent, 'overflow-y')) !== -1) {
2957
+ // If the detected scrollParent is body, we perform an additional check on its parentNode
2958
+ // in this way we'll get body if the browser is Chrome-ish, or documentElement otherwise
2959
+ // fixes issue #65
2960
+ return parent;
2961
+ }
2962
+ return getScrollParent(element.parentNode);
2963
+ }
2964
+
2965
+ /**
2966
+ * Check if the given element is fixed or is inside a fixed parent
2967
+ * @function
2968
+ * @ignore
2969
+ * @argument {Element} element
2970
+ * @argument {Element} customContainer
2971
+ * @returns {Boolean} answer to "isFixed?"
2972
+ */
2973
+ function isFixed(element) {
2974
+ if (element === root.document.body) {
2975
+ return false;
2976
+ }
2977
+ if (getStyleComputedProperty(element, 'position') === 'fixed') {
2978
+ return true;
2979
+ }
2980
+ return element.parentNode ? isFixed(element.parentNode) : element;
2981
+ }
2982
+
2983
+ /**
2984
+ * Set the style to the given popper
2985
+ * @function
2986
+ * @ignore
2987
+ * @argument {Element} element - Element to apply the style to
2988
+ * @argument {Object} styles - Object with a list of properties and values which will be applied to the element
2989
+ */
2990
+ function setStyle(element, styles) {
2991
+ function is_numeric(n) {
2992
+ return n !== '' && !isNaN(parseFloat(n)) && isFinite(n);
2993
+ }
2994
+ Object.keys(styles).forEach(function (prop) {
2995
+ var unit = '';
2996
+ // add unit if the value is numeric and is one of the following
2997
+ if (['width', 'height', 'top', 'right', 'bottom', 'left'].indexOf(prop) !== -1 && is_numeric(styles[prop])) {
2998
+ unit = 'px';
2999
+ }
3000
+ element.style[prop] = styles[prop] + unit;
3001
+ });
3002
+ }
3003
+
3004
+ /**
3005
+ * Check if the given variable is a function
3006
+ * @function
3007
+ * @ignore
3008
+ * @argument {*} functionToCheck - variable to check
3009
+ * @returns {Boolean} answer to: is a function?
3010
+ */
3011
+ function isFunction(functionToCheck) {
3012
+ var getType = {};
3013
+ return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
3014
+ }
3015
+
3016
+ /**
3017
+ * Get the position of the given element, relative to its offset parent
3018
+ * @function
3019
+ * @ignore
3020
+ * @param {Element} element
3021
+ * @return {Object} position - Coordinates of the element and its `scrollTop`
3022
+ */
3023
+ function getOffsetRect(element) {
3024
+ var elementRect = {
3025
+ width: element.offsetWidth,
3026
+ height: element.offsetHeight,
3027
+ left: element.offsetLeft,
3028
+ top: element.offsetTop
3029
+ };
3030
+ elementRect.right = elementRect.left + elementRect.width;
3031
+ elementRect.bottom = elementRect.top + elementRect.height;
3032
+
3033
+ // position
3034
+ return elementRect;
3035
+ }
3036
+
3037
+ /**
3038
+ * Get bounding client rect of given element
3039
+ * @function
3040
+ * @ignore
3041
+ * @param {HTMLElement} element
3042
+ * @return {Object} client rect
3043
+ */
3044
+ function getBoundingClientRect(element) {
3045
+ var rect = element.getBoundingClientRect();
3046
+
3047
+ // whether the IE version is lower than 11
3048
+ var isIE = navigator.userAgent.indexOf("MSIE") != -1;
3049
+
3050
+ // fix ie document bounding top always 0 bug
3051
+ var rectTop = isIE && element.tagName === 'HTML' ? -element.scrollTop : rect.top;
3052
+ return {
3053
+ left: rect.left,
3054
+ top: rectTop,
3055
+ right: rect.right,
3056
+ bottom: rect.bottom,
3057
+ width: rect.right - rect.left,
3058
+ height: rect.bottom - rectTop
3059
+ };
3060
+ }
3061
+
3062
+ /**
3063
+ * Given an element and one of its parents, return the offset
3064
+ * @function
3065
+ * @ignore
3066
+ * @param {HTMLElement} element
3067
+ * @param {HTMLElement} parent
3068
+ * @return {Object} rect
3069
+ */
3070
+ function getOffsetRectRelativeToCustomParent(element, parent, fixed) {
3071
+ var elementRect = getBoundingClientRect(element);
3072
+ var parentRect = getBoundingClientRect(parent);
3073
+ if (fixed) {
3074
+ var scrollParent = getScrollParent(parent);
3075
+ parentRect.top += scrollParent.scrollTop;
3076
+ parentRect.bottom += scrollParent.scrollTop;
3077
+ parentRect.left += scrollParent.scrollLeft;
3078
+ parentRect.right += scrollParent.scrollLeft;
3079
+ }
3080
+ var rect = {
3081
+ top: elementRect.top - parentRect.top,
3082
+ left: elementRect.left - parentRect.left,
3083
+ bottom: elementRect.top - parentRect.top + elementRect.height,
3084
+ right: elementRect.left - parentRect.left + elementRect.width,
3085
+ width: elementRect.width,
3086
+ height: elementRect.height
3087
+ };
3088
+ return rect;
3089
+ }
3090
+
3091
+ /**
3092
+ * Get the prefixed supported property name
3093
+ * @function
3094
+ * @ignore
3095
+ * @argument {String} property (camelCase)
3096
+ * @returns {String} prefixed property (camelCase)
3097
+ */
3098
+ function getSupportedPropertyName(property) {
3099
+ var prefixes = ['', 'ms', 'webkit', 'moz', 'o'];
3100
+ for (var i = 0; i < prefixes.length; i++) {
3101
+ var toCheck = prefixes[i] ? prefixes[i] + property.charAt(0).toUpperCase() + property.slice(1) : property;
3102
+ if (typeof root.document.body.style[toCheck] !== 'undefined') {
3103
+ return toCheck;
3104
+ }
3105
+ }
3106
+ return null;
3107
+ }
3108
+
3109
+ /**
3110
+ * The Object.assign() method is used to copy the values of all enumerable own properties from one or more source
3111
+ * objects to a target object. It will return the target object.
3112
+ * This polyfill doesn't support symbol properties, since ES5 doesn't have symbols anyway
3113
+ * Source: https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Object/assign
3114
+ * @function
3115
+ * @ignore
3116
+ */
3117
+ if (!Object.assign) {
3118
+ Object.defineProperty(Object, 'assign', {
3119
+ enumerable: false,
3120
+ configurable: true,
3121
+ writable: true,
3122
+ value: function value(target) {
3123
+ if (target === undefined || target === null) {
3124
+ throw new TypeError('Cannot convert first argument to object');
3125
+ }
3126
+ var to = Object(target);
3127
+ for (var i = 1; i < arguments.length; i++) {
3128
+ var nextSource = arguments[i];
3129
+ if (nextSource === undefined || nextSource === null) {
3130
+ continue;
3131
+ }
3132
+ nextSource = Object(nextSource);
3133
+ var keysArray = Object.keys(nextSource);
3134
+ for (var nextIndex = 0, len = keysArray.length; nextIndex < len; nextIndex++) {
3135
+ var nextKey = keysArray[nextIndex];
3136
+ var desc = Object.getOwnPropertyDescriptor(nextSource, nextKey);
3137
+ if (desc !== undefined && desc.enumerable) {
3138
+ to[nextKey] = nextSource[nextKey];
3139
+ }
3140
+ }
3141
+ }
3142
+ return to;
3143
+ }
3144
+ });
3145
+ }
3146
+ return Popper;
3147
+ });
3148
+ /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(67)(module)))
3149
+
3150
+ /***/ }),
3151
+ /* 74 */
3152
+ /***/ (function(module, exports) {
3153
+
3154
+ module.exports = require("core-js/modules/es.object.get-own-property-descriptor.js");
3155
+
3156
+ /***/ }),
3157
+ /* 75 */,
3158
+ /* 76 */,
3159
+ /* 77 */
3160
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
3161
+
3162
+ "use strict";
3163
+ // ESM COMPAT FLAG
3164
+ __webpack_require__.r(__webpack_exports__);
3165
+
3166
+ // EXTERNAL MODULE: external "core-js/modules/es.function.name.js"
3167
+ var es_function_name_js_ = __webpack_require__(5);
3168
+
3169
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./packages/checkbox/src/checkbox.vue?vue&type=template&id=5fbea7a2
3170
+ var render = function render() {
3171
+ var _vm = this,
3172
+ _c = _vm._self._c
3173
+ return _c(
3174
+ "label",
3175
+ {
3176
+ staticClass: "el-checkbox",
3177
+ class: [
3178
+ _vm.border && _vm.checkboxSize
3179
+ ? "el-checkbox--" + _vm.checkboxSize
3180
+ : "",
3181
+ { "is-disabled": _vm.isDisabled },
3182
+ { "is-bordered": _vm.border },
3183
+ { "is-checked": _vm.isChecked },
3184
+ ],
3185
+ attrs: { id: _vm.id },
3186
+ },
3187
+ [
3188
+ _c(
3189
+ "span",
3190
+ {
3191
+ staticClass: "el-checkbox__input",
3192
+ class: {
3193
+ "is-disabled": _vm.isDisabled,
3194
+ "is-checked": _vm.isChecked,
3195
+ "is-indeterminate": _vm.indeterminate,
3196
+ "is-focus": _vm.focus,
3197
+ },
3198
+ attrs: {
3199
+ tabindex: _vm.indeterminate ? 0 : false,
3200
+ role: _vm.indeterminate ? "checkbox" : false,
3201
+ "aria-checked": _vm.indeterminate ? "mixed" : false,
3202
+ },
3203
+ },
3204
+ [
3205
+ _c("span", { staticClass: "el-checkbox__inner" }),
3206
+ _vm.trueLabel || _vm.falseLabel
3207
+ ? _c("input", {
3208
+ directives: [
3209
+ {
3210
+ name: "model",
3211
+ rawName: "v-model",
3212
+ value: _vm.model,
3213
+ expression: "model",
3214
+ },
3215
+ ],
3216
+ staticClass: "el-checkbox__original",
3217
+ attrs: {
3218
+ type: "checkbox",
3219
+ "aria-hidden": _vm.indeterminate ? "true" : "false",
3220
+ name: _vm.name,
3221
+ disabled: _vm.isDisabled,
3222
+ "true-value": _vm.trueLabel,
3223
+ "false-value": _vm.falseLabel,
3224
+ },
3225
+ domProps: {
3226
+ checked: Array.isArray(_vm.model)
3227
+ ? _vm._i(_vm.model, null) > -1
3228
+ : _vm._q(_vm.model, _vm.trueLabel),
3229
+ },
3230
+ on: {
3231
+ change: [
3232
+ function ($event) {
3233
+ var $$a = _vm.model,
3234
+ $$el = $event.target,
3235
+ $$c = $$el.checked ? _vm.trueLabel : _vm.falseLabel
3236
+ if (Array.isArray($$a)) {
3237
+ var $$v = null,
3238
+ $$i = _vm._i($$a, $$v)
3239
+ if ($$el.checked) {
3240
+ $$i < 0 && (_vm.model = $$a.concat([$$v]))
3241
+ } else {
3242
+ $$i > -1 &&
3243
+ (_vm.model = $$a
3244
+ .slice(0, $$i)
3245
+ .concat($$a.slice($$i + 1)))
3246
+ }
3247
+ } else {
3248
+ _vm.model = $$c
3249
+ }
3250
+ },
3251
+ _vm.handleChange,
3252
+ ],
3253
+ focus: function ($event) {
3254
+ _vm.focus = true
3255
+ },
3256
+ blur: function ($event) {
3257
+ _vm.focus = false
3258
+ },
3259
+ },
3260
+ })
3261
+ : _c("input", {
3262
+ directives: [
3263
+ {
3264
+ name: "model",
3265
+ rawName: "v-model",
3266
+ value: _vm.model,
3267
+ expression: "model",
3268
+ },
3269
+ ],
3270
+ staticClass: "el-checkbox__original",
3271
+ attrs: {
3272
+ type: "checkbox",
3273
+ "aria-hidden": _vm.indeterminate ? "true" : "false",
3274
+ disabled: _vm.isDisabled,
3275
+ name: _vm.name,
3276
+ },
3277
+ domProps: {
3278
+ value: _vm.label,
3279
+ checked: Array.isArray(_vm.model)
3280
+ ? _vm._i(_vm.model, _vm.label) > -1
3281
+ : _vm.model,
3282
+ },
3283
+ on: {
3284
+ change: [
3285
+ function ($event) {
3286
+ var $$a = _vm.model,
3287
+ $$el = $event.target,
3288
+ $$c = $$el.checked ? true : false
3289
+ if (Array.isArray($$a)) {
3290
+ var $$v = _vm.label,
3291
+ $$i = _vm._i($$a, $$v)
3292
+ if ($$el.checked) {
3293
+ $$i < 0 && (_vm.model = $$a.concat([$$v]))
3294
+ } else {
3295
+ $$i > -1 &&
3296
+ (_vm.model = $$a
3297
+ .slice(0, $$i)
3298
+ .concat($$a.slice($$i + 1)))
3299
+ }
3300
+ } else {
3301
+ _vm.model = $$c
3302
+ }
3303
+ },
3304
+ _vm.handleChange,
3305
+ ],
3306
+ focus: function ($event) {
3307
+ _vm.focus = true
3308
+ },
3309
+ blur: function ($event) {
3310
+ _vm.focus = false
3311
+ },
3312
+ },
3313
+ }),
3314
+ ]
3315
+ ),
3316
+ _vm.$slots.default || _vm.label
3317
+ ? _c(
3318
+ "span",
3319
+ { staticClass: "el-checkbox__label" },
3320
+ [
3321
+ _vm._t("default"),
3322
+ !_vm.$slots.default ? [_vm._v(_vm._s(_vm.label))] : _vm._e(),
3323
+ ],
3324
+ 2
3325
+ )
3326
+ : _vm._e(),
3327
+ ]
3328
+ )
3329
+ }
3330
+ var staticRenderFns = []
3331
+ render._withStripped = true
3332
+
3333
+
3334
+ // CONCATENATED MODULE: ./packages/checkbox/src/checkbox.vue?vue&type=template&id=5fbea7a2
3335
+
3336
+ // EXTERNAL MODULE: external "core-js/modules/es.number.constructor.js"
3337
+ var es_number_constructor_js_ = __webpack_require__(6);
3338
+
3339
+ // EXTERNAL MODULE: external "core-js/modules/es.object.to-string.js"
3340
+ var es_object_to_string_js_ = __webpack_require__(3);
3341
+
3342
+ // EXTERNAL MODULE: external "core-js/modules/es.regexp.to-string.js"
3343
+ var es_regexp_to_string_js_ = __webpack_require__(11);
3344
+
3345
+ // EXTERNAL MODULE: ./src/mixins/emitter.js
3346
+ var emitter = __webpack_require__(14);
3347
+
3348
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/checkbox/src/checkbox.vue?vue&type=script&lang=js
3349
+
3350
+
3351
+
3352
+
3353
+ /* harmony default export */ var checkboxvue_type_script_lang_js = ({
3354
+ name: 'ElCheckbox',
3355
+ mixins: [emitter["a" /* default */]],
3356
+ inject: {
3357
+ elForm: {
3358
+ default: ''
3359
+ },
3360
+ elFormItem: {
3361
+ default: ''
3362
+ }
3363
+ },
3364
+ componentName: 'ElCheckbox',
3365
+ data: function data() {
3366
+ return {
3367
+ selfModel: false,
3368
+ focus: false,
3369
+ isLimitExceeded: false
3370
+ };
3371
+ },
3372
+ computed: {
3373
+ model: {
3374
+ get: function get() {
3375
+ return this.isGroup ? this.store : this.value !== undefined ? this.value : this.selfModel;
3376
+ },
3377
+ set: function set(val) {
3378
+ if (this.isGroup) {
3379
+ this.isLimitExceeded = false;
3380
+ this._checkboxGroup.min !== undefined && val.length < this._checkboxGroup.min && (this.isLimitExceeded = true);
3381
+ this._checkboxGroup.max !== undefined && val.length > this._checkboxGroup.max && (this.isLimitExceeded = true);
3382
+ this.isLimitExceeded === false && this.dispatch('ElCheckboxGroup', 'input', [val]);
3383
+ } else {
3384
+ this.$emit('input', val);
3385
+ this.selfModel = val;
3386
+ }
3387
+ }
3388
+ },
3389
+ isChecked: function isChecked() {
3390
+ if ({}.toString.call(this.model) === '[object Boolean]') {
3391
+ return this.model;
3392
+ } else if (Array.isArray(this.model)) {
3393
+ return this.model.indexOf(this.label) > -1;
3394
+ } else if (this.model !== null && this.model !== undefined) {
3395
+ return this.model === this.trueLabel;
3396
+ }
3397
+ },
3398
+ isGroup: function isGroup() {
3399
+ var parent = this.$parent;
3400
+ while (parent) {
3401
+ if (parent.$options.componentName !== 'ElCheckboxGroup') {
3402
+ parent = parent.$parent;
3403
+ } else {
3404
+ this._checkboxGroup = parent;
3405
+ return true;
3406
+ }
3407
+ }
3408
+ return false;
3409
+ },
3410
+ store: function store() {
3411
+ return this._checkboxGroup ? this._checkboxGroup.value : this.value;
3412
+ },
3413
+ /* used to make the isDisabled judgment under max/min props */isLimitDisabled: function isLimitDisabled() {
3414
+ var _this$_checkboxGroup = this._checkboxGroup,
3415
+ max = _this$_checkboxGroup.max,
3416
+ min = _this$_checkboxGroup.min;
3417
+ return !!(max || min) && this.model.length >= max && !this.isChecked || this.model.length <= min && this.isChecked;
3418
+ },
3419
+ isDisabled: function isDisabled() {
3420
+ return this.isGroup ? this._checkboxGroup.disabled || this.disabled || (this.elForm || {}).disabled || this.isLimitDisabled : this.disabled || (this.elForm || {}).disabled;
3421
+ },
3422
+ _elFormItemSize: function _elFormItemSize() {
3423
+ return (this.elFormItem || {}).elFormItemSize;
3424
+ },
3425
+ checkboxSize: function checkboxSize() {
3426
+ var temCheckboxSize = this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
3427
+ return this.isGroup ? this._checkboxGroup.checkboxGroupSize || temCheckboxSize : temCheckboxSize;
3428
+ }
3429
+ },
3430
+ props: {
3431
+ value: {},
3432
+ label: {},
3433
+ indeterminate: Boolean,
3434
+ disabled: Boolean,
3435
+ checked: Boolean,
3436
+ name: String,
3437
+ trueLabel: [String, Number],
3438
+ falseLabel: [String, Number],
3439
+ id: String,
3440
+ /* 当indeterminate为真时,为controls提供相关连的checkbox的id,表明元素间的控制关系*/
3441
+ controls: String,
3442
+ /* 当indeterminate为真时,为controls提供相关连的checkbox的id,表明元素间的控制关系*/
3443
+ border: Boolean,
3444
+ size: String
3445
+ },
3446
+ methods: {
3447
+ addToStore: function addToStore() {
3448
+ if (Array.isArray(this.model) && this.model.indexOf(this.label) === -1) {
3449
+ this.model.push(this.label);
3450
+ } else {
3451
+ this.model = this.trueLabel || true;
3452
+ }
3453
+ },
3454
+ handleChange: function handleChange(ev) {
3455
+ var _this = this;
3456
+ if (this.isLimitExceeded) return;
3457
+ var value;
3458
+ if (ev.target.checked) {
3459
+ value = this.trueLabel === undefined ? true : this.trueLabel;
3460
+ } else {
3461
+ value = this.falseLabel === undefined ? false : this.falseLabel;
3462
+ }
3463
+ this.$emit('change', value, ev);
3464
+ this.$nextTick(function () {
3465
+ if (_this.isGroup) {
3466
+ _this.dispatch('ElCheckboxGroup', 'change', [_this._checkboxGroup.value]);
3467
+ }
3468
+ });
3469
+ }
3470
+ },
3471
+ created: function created() {
3472
+ this.checked && this.addToStore();
3473
+ },
3474
+ mounted: function mounted() {
3475
+ // 为indeterminate元素 添加aria-controls 属性
3476
+ if (this.indeterminate) {
3477
+ this.$el.setAttribute('aria-controls', this.controls);
3478
+ }
3479
+ },
3480
+ watch: {
3481
+ value: function value(_value) {
3482
+ this.dispatch('ElFormItem', 'el.form.change', _value);
3483
+ }
3484
+ }
3485
+ });
3486
+ // CONCATENATED MODULE: ./packages/checkbox/src/checkbox.vue?vue&type=script&lang=js
3487
+ /* harmony default export */ var src_checkboxvue_type_script_lang_js = (checkboxvue_type_script_lang_js);
3488
+ // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
3489
+ var componentNormalizer = __webpack_require__(2);
3490
+
3491
+ // CONCATENATED MODULE: ./packages/checkbox/src/checkbox.vue
3492
+
3493
+
3494
+
3495
+
3496
+
3497
+ /* normalize component */
3498
+
3499
+ var component = Object(componentNormalizer["a" /* default */])(
3500
+ src_checkboxvue_type_script_lang_js,
3501
+ render,
3502
+ staticRenderFns,
3503
+ false,
3504
+ null,
3505
+ null,
3506
+ null
3507
+
3508
+ )
3509
+
3510
+ /* harmony default export */ var src_checkbox = (component.exports);
3511
+ // CONCATENATED MODULE: ./packages/checkbox/index.js
3512
+
3513
+
3514
+
3515
+ /* istanbul ignore next */
3516
+ src_checkbox.install = function (Vue) {
3517
+ Vue.component(src_checkbox.name, src_checkbox);
3518
+ };
3519
+ /* harmony default export */ var packages_checkbox = __webpack_exports__["default"] = (src_checkbox);
3520
+
3521
+ /***/ }),
3522
+ /* 78 */,
3523
+ /* 79 */,
3524
+ /* 80 */,
3525
+ /* 81 */,
3526
+ /* 82 */,
3527
+ /* 83 */,
3528
+ /* 84 */,
3529
+ /* 85 */,
3530
+ /* 86 */,
3531
+ /* 87 */,
3532
+ /* 88 */,
3533
+ /* 89 */,
3534
+ /* 90 */,
3535
+ /* 91 */,
3536
+ /* 92 */,
3537
+ /* 93 */,
3538
+ /* 94 */,
3539
+ /* 95 */,
3540
+ /* 96 */,
3541
+ /* 97 */,
3542
+ /* 98 */,
3543
+ /* 99 */,
3544
+ /* 100 */,
3545
+ /* 101 */,
3546
+ /* 102 */,
3547
+ /* 103 */,
3548
+ /* 104 */,
3549
+ /* 105 */
3550
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
3551
+
3552
+ "use strict";
3553
+ // ESM COMPAT FLAG
3554
+ __webpack_require__.r(__webpack_exports__);
3555
+
3556
+ // EXTERNAL MODULE: external "core-js/modules/es.function.name.js"
3557
+ var es_function_name_js_ = __webpack_require__(5);
3558
+
3559
+ // 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
3560
+ var render = function render() {
3561
+ var _vm = this,
3562
+ _c = _vm._self._c
3563
+ return _c(
3564
+ "span",
3565
+ [
3566
+ _c(
3567
+ "transition",
3568
+ {
3569
+ attrs: { name: _vm.transition },
3570
+ on: {
3571
+ "after-enter": _vm.handleAfterEnter,
3572
+ "after-leave": _vm.handleAfterLeave,
3573
+ },
3574
+ },
3575
+ [
3576
+ _c(
3577
+ "div",
3578
+ {
3579
+ directives: [
3580
+ {
3581
+ name: "show",
3582
+ rawName: "v-show",
3583
+ value: !_vm.disabled && _vm.showPopper,
3584
+ expression: "!disabled && showPopper",
3585
+ },
3586
+ ],
3587
+ ref: "popper",
3588
+ staticClass: "el-popover el-popper",
3589
+ class: [_vm.popperClass, _vm.content && "el-popover--plain"],
3590
+ style: { width: _vm.width + "px" },
3591
+ attrs: {
3592
+ role: "tooltip",
3593
+ id: _vm.tooltipId,
3594
+ "aria-hidden":
3595
+ _vm.disabled || !_vm.showPopper ? "true" : "false",
3596
+ },
3597
+ },
3598
+ [
3599
+ _vm.title
3600
+ ? _c("div", {
3601
+ staticClass: "el-popover__title",
3602
+ domProps: { textContent: _vm._s(_vm.title) },
3603
+ })
3604
+ : _vm._e(),
3605
+ _vm._t("default", function () {
3606
+ return [_vm._v(_vm._s(_vm.content))]
3607
+ }),
3608
+ ],
3609
+ 2
3610
+ ),
3611
+ ]
3612
+ ),
3613
+ _c(
3614
+ "span",
3615
+ { ref: "wrapper", staticClass: "el-popover__reference-wrapper" },
3616
+ [_vm._t("reference")],
3617
+ 2
3618
+ ),
3619
+ ],
3620
+ 1
3621
+ )
3622
+ }
3623
+ var staticRenderFns = []
3624
+ render._withStripped = true
3625
+
3626
+
3627
+ // CONCATENATED MODULE: ./packages/popover/src/main.vue?vue&type=template&id=777878ff
3628
+
3629
+ // EXTERNAL MODULE: external "core-js/modules/es.number.constructor.js"
3630
+ var es_number_constructor_js_ = __webpack_require__(6);
3631
+
3632
+ // EXTERNAL MODULE: ./src/utils/vue-popper.js
3633
+ var vue_popper = __webpack_require__(51);
3634
+
3635
+ // EXTERNAL MODULE: ./src/utils/dom.js
3636
+ var dom = __webpack_require__(1);
3637
+
3638
+ // EXTERNAL MODULE: ./src/utils/util.js
3639
+ var util = __webpack_require__(4);
3640
+
3641
+ // 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
3642
+
3643
+
3644
+
3645
+
3646
+
3647
+ /* harmony default export */ var mainvue_type_script_lang_js = ({
3648
+ name: 'ElPopover',
3649
+ mixins: [vue_popper["a" /* default */]],
3650
+ props: {
3651
+ trigger: {
3652
+ type: String,
3653
+ default: 'click',
3654
+ validator: function validator(value) {
3655
+ return ['click', 'focus', 'hover', 'manual'].indexOf(value) > -1;
3656
+ }
3657
+ },
3658
+ openDelay: {
3659
+ type: Number,
3660
+ default: 0
3661
+ },
3662
+ closeDelay: {
3663
+ type: Number,
3664
+ default: 200
3665
+ },
3666
+ title: String,
3667
+ disabled: Boolean,
3668
+ content: String,
3669
+ reference: {},
3670
+ popperClass: String,
3671
+ width: {},
3672
+ visibleArrow: {
3673
+ default: true
3674
+ },
3675
+ arrowOffset: {
3676
+ type: Number,
3677
+ default: 0
3678
+ },
3679
+ transition: {
3680
+ type: String,
3681
+ default: 'fade-in-linear'
3682
+ },
3683
+ tabindex: {
3684
+ type: Number,
3685
+ default: 0
3686
+ }
3687
+ },
3688
+ computed: {
3689
+ tooltipId: function tooltipId() {
3690
+ return "el-popover-" + Object(util["g" /* generateId */])();
3691
+ }
3692
+ },
3693
+ watch: {
3694
+ showPopper: function showPopper(val) {
3695
+ if (this.disabled) {
3696
+ return;
3697
+ }
3698
+ val ? this.$emit('show') : this.$emit('hide');
3699
+ }
3700
+ },
3701
+ mounted: function mounted() {
3702
+ var _this = this;
3703
+ var reference = this.referenceElm = this.reference || this.$refs.reference;
3704
+ var popper = this.popper || this.$refs.popper;
3705
+ if (!reference && this.$refs.wrapper && this.$refs.wrapper.children) {
3706
+ reference = this.referenceElm = this.$refs.wrapper.children[0];
3707
+ }
3708
+ // 可访问性
3709
+ if (reference) {
3710
+ Object(dom["a" /* addClass */])(reference, 'el-popover__reference');
3711
+ reference.setAttribute('aria-describedby', this.tooltipId);
3712
+ reference.setAttribute('tabindex', this.tabindex); // tab序列
3713
+ popper.setAttribute('tabindex', 0);
3714
+ if (this.trigger !== 'click') {
3715
+ Object(dom["g" /* on */])(reference, 'focusin', function () {
3716
+ _this.handleFocus();
3717
+ var instance = reference.__vue__;
3718
+ if (instance && typeof instance.focus === 'function') {
3719
+ instance.focus();
3720
+ }
3721
+ });
3722
+ Object(dom["g" /* on */])(popper, 'focusin', this.handleFocus);
3723
+ Object(dom["g" /* on */])(reference, 'focusout', this.handleBlur);
3724
+ Object(dom["g" /* on */])(popper, 'focusout', this.handleBlur);
3725
+ }
3726
+ Object(dom["g" /* on */])(reference, 'keydown', this.handleKeydown);
3727
+ Object(dom["g" /* on */])(reference, 'click', this.handleClick);
3728
+ }
3729
+ if (this.trigger === 'click') {
3730
+ Object(dom["g" /* on */])(reference, 'click', this.doToggle);
3731
+ Object(dom["g" /* on */])(document, 'click', this.handleDocumentClick);
3732
+ } else if (this.trigger === 'hover') {
3733
+ Object(dom["g" /* on */])(reference, 'mouseenter', this.handleMouseEnter);
3734
+ Object(dom["g" /* on */])(popper, 'mouseenter', this.handleMouseEnter);
3735
+ Object(dom["g" /* on */])(reference, 'mouseleave', this.handleMouseLeave);
3736
+ Object(dom["g" /* on */])(popper, 'mouseleave', this.handleMouseLeave);
3737
+ } else if (this.trigger === 'focus') {
3738
+ if (this.tabindex < 0) {
3739
+ console.warn('[Element Warn][Popover]a negative taindex means that the element cannot be focused by tab key');
3740
+ }
3741
+ if (reference.querySelector('input, textarea')) {
3742
+ Object(dom["g" /* on */])(reference, 'focusin', this.doShow);
3743
+ Object(dom["g" /* on */])(reference, 'focusout', this.doClose);
3744
+ } else {
3745
+ Object(dom["g" /* on */])(reference, 'mousedown', this.doShow);
3746
+ Object(dom["g" /* on */])(reference, 'mouseup', this.doClose);
3747
+ }
3748
+ }
3749
+ },
3750
+ beforeDestroy: function beforeDestroy() {
3751
+ this.cleanup();
3752
+ },
3753
+ deactivated: function deactivated() {
3754
+ this.cleanup();
3755
+ },
3756
+ methods: {
3757
+ doToggle: function doToggle() {
3758
+ this.showPopper = !this.showPopper;
3759
+ },
3760
+ doShow: function doShow() {
3761
+ this.showPopper = true;
3762
+ },
3763
+ doClose: function doClose() {
3764
+ this.showPopper = false;
3765
+ },
3766
+ handleFocus: function handleFocus() {
3767
+ Object(dom["a" /* addClass */])(this.referenceElm, 'focusing');
3768
+ if (this.trigger === 'click' || this.trigger === 'focus') this.showPopper = true;
3769
+ },
3770
+ handleClick: function handleClick() {
3771
+ Object(dom["i" /* removeClass */])(this.referenceElm, 'focusing');
3772
+ },
3773
+ handleBlur: function handleBlur() {
3774
+ Object(dom["i" /* removeClass */])(this.referenceElm, 'focusing');
3775
+ if (this.trigger === 'click' || this.trigger === 'focus') this.showPopper = false;
3776
+ },
3777
+ handleMouseEnter: function handleMouseEnter() {
3778
+ var _this2 = this;
3779
+ clearTimeout(this._timer);
3780
+ if (this.openDelay) {
3781
+ this._timer = setTimeout(function () {
3782
+ _this2.showPopper = true;
3783
+ }, this.openDelay);
3784
+ } else {
3785
+ this.showPopper = true;
3786
+ }
3787
+ },
3788
+ handleKeydown: function handleKeydown(ev) {
3789
+ if (ev.keyCode === 27 && this.trigger !== 'manual') {
3790
+ // esc
3791
+ this.doClose();
3792
+ }
3793
+ },
3794
+ handleMouseLeave: function handleMouseLeave() {
3795
+ var _this3 = this;
3796
+ clearTimeout(this._timer);
3797
+ if (this.closeDelay) {
3798
+ this._timer = setTimeout(function () {
3799
+ _this3.showPopper = false;
3800
+ }, this.closeDelay);
3801
+ } else {
3802
+ this.showPopper = false;
3803
+ }
3804
+ },
3805
+ handleDocumentClick: function handleDocumentClick(e) {
3806
+ var reference = this.reference || this.$refs.reference;
3807
+ var popper = this.popper || this.$refs.popper;
3808
+ if (!reference && this.$refs.wrapper && this.$refs.wrapper.children) {
3809
+ reference = this.referenceElm = this.$refs.wrapper.children[0];
3810
+ }
3811
+ if (!this.$el || !reference || this.$el.contains(e.target) || reference.contains(e.target) || !popper || popper.contains(e.target)) return;
3812
+ this.showPopper = false;
3813
+ },
3814
+ handleAfterEnter: function handleAfterEnter() {
3815
+ this.$emit('after-enter');
3816
+ },
3817
+ handleAfterLeave: function handleAfterLeave() {
3818
+ this.$emit('after-leave');
3819
+ this.doDestroy();
3820
+ },
3821
+ cleanup: function cleanup() {
3822
+ if (this.openDelay || this.closeDelay) {
3823
+ clearTimeout(this._timer);
3824
+ }
3825
+ }
3826
+ },
3827
+ destroyed: function destroyed() {
3828
+ var reference = this.reference;
3829
+ Object(dom["f" /* off */])(reference, 'click', this.doToggle);
3830
+ Object(dom["f" /* off */])(reference, 'mouseup', this.doClose);
3831
+ Object(dom["f" /* off */])(reference, 'mousedown', this.doShow);
3832
+ Object(dom["f" /* off */])(reference, 'focusin', this.doShow);
3833
+ Object(dom["f" /* off */])(reference, 'focusout', this.doClose);
3834
+ Object(dom["f" /* off */])(reference, 'mousedown', this.doShow);
3835
+ Object(dom["f" /* off */])(reference, 'mouseup', this.doClose);
3836
+ Object(dom["f" /* off */])(reference, 'mouseleave', this.handleMouseLeave);
3837
+ Object(dom["f" /* off */])(reference, 'mouseenter', this.handleMouseEnter);
3838
+ Object(dom["f" /* off */])(document, 'click', this.handleDocumentClick);
3839
+ }
3840
+ });
3841
+ // CONCATENATED MODULE: ./packages/popover/src/main.vue?vue&type=script&lang=js
3842
+ /* harmony default export */ var src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
3843
+ // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
3844
+ var componentNormalizer = __webpack_require__(2);
3845
+
3846
+ // CONCATENATED MODULE: ./packages/popover/src/main.vue
3847
+
3848
+
3849
+
3850
+
3851
+
3852
+ /* normalize component */
3853
+
3854
+ var component = Object(componentNormalizer["a" /* default */])(
3855
+ src_mainvue_type_script_lang_js,
3856
+ render,
3857
+ staticRenderFns,
3858
+ false,
3859
+ null,
3860
+ null,
3861
+ null
3862
+
3863
+ )
3864
+
3865
+ /* harmony default export */ var main = (component.exports);
3866
+ // CONCATENATED MODULE: ./packages/popover/src/directive.js
3867
+ var getReference = function getReference(el, binding, vnode) {
3868
+ var _ref = binding.expression ? binding.value : binding.arg;
3869
+ var popper = vnode.context.$refs[_ref];
3870
+ if (popper) {
3871
+ if (Array.isArray(popper)) {
3872
+ popper[0].$refs.reference = el;
3873
+ } else {
3874
+ popper.$refs.reference = el;
3875
+ }
3876
+ }
3877
+ };
3878
+ /* harmony default export */ var directive = ({
3879
+ bind: function bind(el, binding, vnode) {
3880
+ getReference(el, binding, vnode);
3881
+ },
3882
+ inserted: function inserted(el, binding, vnode) {
3883
+ getReference(el, binding, vnode);
3884
+ }
3885
+ });
3886
+ // EXTERNAL MODULE: external "vue"
3887
+ var external_vue_ = __webpack_require__(0);
3888
+ var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
3889
+
3890
+ // CONCATENATED MODULE: ./packages/popover/index.js
3891
+
3892
+
3893
+
3894
+
3895
+ external_vue_default.a.directive('popover', directive);
3896
+
3897
+ /* istanbul ignore next */
3898
+ main.install = function (Vue) {
3899
+ Vue.directive('popover', directive);
3900
+ Vue.component(main.name, main);
3901
+ };
3902
+ main.directive = directive;
3903
+ /* harmony default export */ var popover = __webpack_exports__["default"] = (main);
3904
+
3905
+ /***/ }),
3906
+ /* 106 */,
3907
+ /* 107 */,
3908
+ /* 108 */,
3909
+ /* 109 */,
3910
+ /* 110 */,
3911
+ /* 111 */,
3912
+ /* 112 */,
3913
+ /* 113 */,
3914
+ /* 114 */,
3915
+ /* 115 */,
3916
+ /* 116 */,
3917
+ /* 117 */,
3918
+ /* 118 */,
3919
+ /* 119 */,
3920
+ /* 120 */,
3921
+ /* 121 */,
3922
+ /* 122 */,
3923
+ /* 123 */,
3924
+ /* 124 */,
3925
+ /* 125 */,
3926
+ /* 126 */,
3927
+ /* 127 */,
3928
+ /* 128 */,
3929
+ /* 129 */,
3930
+ /* 130 */,
3931
+ /* 131 */,
3932
+ /* 132 */,
3933
+ /* 133 */,
3934
+ /* 134 */,
3935
+ /* 135 */,
3936
+ /* 136 */,
3937
+ /* 137 */,
3938
+ /* 138 */,
3939
+ /* 139 */,
3940
+ /* 140 */,
3941
+ /* 141 */,
3942
+ /* 142 */,
3943
+ /* 143 */,
3944
+ /* 144 */,
3945
+ /* 145 */,
3946
+ /* 146 */,
3947
+ /* 147 */,
3948
+ /* 148 */,
3949
+ /* 149 */,
3950
+ /* 150 */,
3951
+ /* 151 */,
3952
+ /* 152 */,
3953
+ /* 153 */,
3954
+ /* 154 */,
3955
+ /* 155 */,
3956
+ /* 156 */,
3957
+ /* 157 */,
3958
+ /* 158 */,
3959
+ /* 159 */,
3960
+ /* 160 */,
3961
+ /* 161 */,
3962
+ /* 162 */,
3963
+ /* 163 */,
3964
+ /* 164 */,
3965
+ /* 165 */,
3966
+ /* 166 */,
3967
+ /* 167 */,
3968
+ /* 168 */,
3969
+ /* 169 */,
3970
+ /* 170 */,
3971
+ /* 171 */,
3972
+ /* 172 */,
3973
+ /* 173 */,
3974
+ /* 174 */,
3975
+ /* 175 */,
3976
+ /* 176 */,
3977
+ /* 177 */,
3978
+ /* 178 */,
3979
+ /* 179 */,
3980
+ /* 180 */,
3981
+ /* 181 */,
3982
+ /* 182 */,
3983
+ /* 183 */,
3984
+ /* 184 */,
3985
+ /* 185 */,
3986
+ /* 186 */,
3987
+ /* 187 */,
3988
+ /* 188 */,
3989
+ /* 189 */,
3990
+ /* 190 */,
3991
+ /* 191 */,
3992
+ /* 192 */,
3993
+ /* 193 */,
3994
+ /* 194 */,
3995
+ /* 195 */,
3996
+ /* 196 */,
3997
+ /* 197 */,
3998
+ /* 198 */,
3999
+ /* 199 */,
4000
+ /* 200 */,
4001
+ /* 201 */,
4002
+ /* 202 */,
4003
+ /* 203 */,
4004
+ /* 204 */,
4005
+ /* 205 */,
4006
+ /* 206 */,
4007
+ /* 207 */,
4008
+ /* 208 */,
4009
+ /* 209 */,
4010
+ /* 210 */
4011
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
4012
+
4013
+ "use strict";
4014
+ // ESM COMPAT FLAG
4015
+ __webpack_require__.r(__webpack_exports__);
4016
+
4017
+ // EXTERNAL MODULE: external "core-js/modules/es.function.name.js"
4018
+ var es_function_name_js_ = __webpack_require__(5);
4019
+
4020
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./packages/treeSelect/src/main.vue?vue&type=template&id=b079e5c2
4021
+ var render = function render() {
4022
+ var _vm = this,
4023
+ _c = _vm._self._c
4024
+ return _c(
4025
+ "div",
4026
+ { staticClass: "cy-tree-select" },
4027
+ [
4028
+ _c(
4029
+ "el-popover",
4030
+ {
4031
+ attrs: {
4032
+ placement: "bottom-start",
4033
+ width: "300",
4034
+ trigger: "click",
4035
+ "popper-class": _vm.popperClass,
4036
+ },
4037
+ on: {
4038
+ show: function ($event) {
4039
+ _vm.popoverOpen = true
4040
+ },
4041
+ hide: function ($event) {
4042
+ _vm.popoverOpen = false
4043
+ },
4044
+ },
4045
+ model: {
4046
+ value: _vm.popoverOpen,
4047
+ callback: function ($$v) {
4048
+ _vm.popoverOpen = $$v
4049
+ },
4050
+ expression: "popoverOpen",
4051
+ },
4052
+ },
4053
+ [
4054
+ _c("div", { staticClass: "cy-tree-select-select-con" }, [
4055
+ _vm.showCheckStrictly
4056
+ ? _c(
4057
+ "div",
4058
+ { staticClass: "cy-tree-select-select-con-t" },
4059
+ [
4060
+ _c(
4061
+ "el-checkbox",
4062
+ {
4063
+ model: {
4064
+ value: _vm.isCheckStrictly,
4065
+ callback: function ($$v) {
4066
+ _vm.isCheckStrictly = $$v
4067
+ },
4068
+ expression: "isCheckStrictly",
4069
+ },
4070
+ },
4071
+ [_vm._v("父子节点联动")]
4072
+ ),
4073
+ ],
4074
+ 1
4075
+ )
4076
+ : _vm._e(),
4077
+ _c(
4078
+ "div",
4079
+ { staticClass: "cy-tree-select-select-con-c" },
4080
+ [
4081
+ _c("el-tree", {
4082
+ ref: "tree",
4083
+ attrs: {
4084
+ data: _vm.treeOptions,
4085
+ "show-checkbox": _vm.multiple,
4086
+ "node-key": _vm.defaultOptions.id,
4087
+ "check-strictly": !_vm.isCheckStrictly,
4088
+ props: _vm.defaultOptions,
4089
+ "expand-on-click-node": false,
4090
+ "default-expand-all": _vm.defaultExpandAll,
4091
+ },
4092
+ on: { check: _vm.treeCheck, "node-click": _vm.treeClick },
4093
+ }),
4094
+ ],
4095
+ 1
4096
+ ),
4097
+ ]),
4098
+ _c(
4099
+ "div",
4100
+ {
4101
+ staticClass: "cy-tree-select-select",
4102
+ class: _vm.size,
4103
+ style: _vm.vStyle,
4104
+ attrs: { slot: "reference" },
4105
+ slot: "reference",
4106
+ },
4107
+ [
4108
+ _c("div", { staticClass: "cy-tree-select-select-v" }, [
4109
+ _vm.checkedArr.length < 1
4110
+ ? _c(
4111
+ "span",
4112
+ { staticClass: "cy-tree-select-select-v-placeholder" },
4113
+ [_vm._v(_vm._s(_vm.placeholder))]
4114
+ )
4115
+ : _c("span", [
4116
+ _vm._v(
4117
+ _vm._s(
4118
+ _vm.checkedArr
4119
+ .map((item) => item[_vm.defaultOptions.label])
4120
+ .join()
4121
+ )
4122
+ ),
4123
+ ]),
4124
+ ]),
4125
+ _c(
4126
+ "div",
4127
+ {
4128
+ staticClass: "cy-tree-select-select-v-icon",
4129
+ on: {
4130
+ mouseenter: function ($event) {
4131
+ _vm.isClearIcon = true
4132
+ },
4133
+ mouseleave: function ($event) {
4134
+ _vm.isClearIcon = false
4135
+ },
4136
+ },
4137
+ },
4138
+ [
4139
+ _vm.isClearIcon && _vm.clearable
4140
+ ? _c("i", {
4141
+ staticClass: "el-icon-circle-close",
4142
+ on: {
4143
+ click: function ($event) {
4144
+ $event.stopPropagation()
4145
+ return _vm.handleClear.apply(null, arguments)
4146
+ },
4147
+ },
4148
+ })
4149
+ : _c("i", {
4150
+ staticClass:
4151
+ "el-icon-arrow-down cy-tree-select-select-v-arrow",
4152
+ class: {
4153
+ "cy-tree-select-select-v-arrow-show": _vm.popoverOpen,
4154
+ },
4155
+ }),
4156
+ ]
4157
+ ),
4158
+ ]
4159
+ ),
4160
+ ]
4161
+ ),
4162
+ ],
4163
+ 1
4164
+ )
4165
+ }
4166
+ var staticRenderFns = []
4167
+ render._withStripped = true
4168
+
4169
+
4170
+ // CONCATENATED MODULE: ./packages/treeSelect/src/main.vue?vue&type=template&id=b079e5c2
4171
+
4172
+ // EXTERNAL MODULE: external "core-js/modules/es.array.filter.js"
4173
+ var es_array_filter_js_ = __webpack_require__(18);
4174
+
4175
+ // EXTERNAL MODULE: external "core-js/modules/es.array.map.js"
4176
+ var es_array_map_js_ = __webpack_require__(20);
4177
+
4178
+ // EXTERNAL MODULE: external "core-js/modules/es.number.constructor.js"
4179
+ var es_number_constructor_js_ = __webpack_require__(6);
4180
+
4181
+ // EXTERNAL MODULE: external "core-js/modules/es.object.keys.js"
4182
+ var es_object_keys_js_ = __webpack_require__(17);
4183
+
4184
+ // EXTERNAL MODULE: external "core-js/modules/es.object.to-string.js"
4185
+ var es_object_to_string_js_ = __webpack_require__(3);
4186
+
4187
+ // EXTERNAL MODULE: external "core-js/modules/web.dom-collections.for-each.js"
4188
+ var web_dom_collections_for_each_js_ = __webpack_require__(10);
4189
+
4190
+ // EXTERNAL MODULE: ./packages/checkbox/index.js + 5 modules
4191
+ var packages_checkbox = __webpack_require__(77);
4192
+
4193
+ // EXTERNAL MODULE: ./packages/popover/index.js + 6 modules
4194
+ var popover = __webpack_require__(105);
4195
+
4196
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/treeSelect/src/main.vue?vue&type=script&lang=js
4197
+
4198
+
4199
+
4200
+
4201
+
4202
+
4203
+
4204
+
4205
+ /* harmony default export */ var mainvue_type_script_lang_js = ({
4206
+ name: 'CyTreeSelect',
4207
+ mixins: [packages_checkbox["default"], popover["default"]],
4208
+ model: {
4209
+ prop: 'value',
4210
+ event: 'change'
4211
+ },
4212
+ props: {
4213
+ value: {
4214
+ type: [String, Number, Array],
4215
+ default: ''
4216
+ },
4217
+ options: {
4218
+ type: Array,
4219
+ default: []
4220
+ },
4221
+ placeholder: {
4222
+ type: String,
4223
+ default: ''
4224
+ },
4225
+ // 尺寸
4226
+ size: {
4227
+ type: String
4228
+ },
4229
+ // 是否显示 父子节点是否联动 多选框
4230
+ showCheckStrictly: {
4231
+ type: Boolean,
4232
+ default: true
4233
+ },
4234
+ // 父子节点是否联动
4235
+ checkStrictly: {
4236
+ type: Boolean,
4237
+ default: true
4238
+ },
4239
+ // 是否显示清空按钮
4240
+ clearable: {
4241
+ type: Boolean,
4242
+ default: false
4243
+ },
4244
+ // 是否多选
4245
+ multiple: {
4246
+ type: Boolean,
4247
+ default: false
4248
+ },
4249
+ // 默认数据参数选项
4250
+ defaultOptions: {
4251
+ type: Object,
4252
+ default: function _default() {
4253
+ return {
4254
+ children: 'children',
4255
+ label: 'label',
4256
+ id: 'id'
4257
+ };
4258
+ }
4259
+ },
4260
+ // 显示的文本框样式
4261
+ vStyle: {
4262
+ type: [Array, String, Object],
4263
+ default: ''
4264
+ },
4265
+ // 树数据区域外层popover的class
4266
+ popperClass: {
4267
+ type: String,
4268
+ default: ''
4269
+ },
4270
+ // 是否默认展开所有节点
4271
+ defaultExpandAll: {
4272
+ type: Boolean,
4273
+ default: false
4274
+ }
4275
+ },
4276
+ data: function data() {
4277
+ return {
4278
+ isCheckStrictly: true,
4279
+ // 父子节点是否联动
4280
+ popoverOpen: false,
4281
+ // 显示状态
4282
+ isClearIcon: false,
4283
+ // 清空按钮显示状态
4284
+
4285
+ treeOptions: [],
4286
+ // 部门树列表
4287
+ treeArr: [] // 部门列表
4288
+ };
4289
+ },
4290
+ computed: {
4291
+ // 当前选中的数组
4292
+ checkedArr: function checkedArr() {
4293
+ var _this = this;
4294
+ if (this.multiple) {
4295
+ var arr = [];
4296
+ this.value && this.value.forEach(function (id) {
4297
+ var cItem = _this.treeArr.filter(function (tItem) {
4298
+ return tItem[_this.defaultOptions.id] === id;
4299
+ })[0];
4300
+ if (cItem) arr.push(cItem);
4301
+ });
4302
+ return arr;
4303
+ } else {
4304
+ var cItem = this.treeArr.filter(function (tItem) {
4305
+ return tItem[_this.defaultOptions.id] === Number(_this.value);
4306
+ })[0];
4307
+ return cItem ? [cItem] : [];
4308
+ }
4309
+ }
4310
+ },
4311
+ watch: {
4312
+ checkStrictly: {
4313
+ immediate: true,
4314
+ handler: function handler() {
4315
+ this.isCheckStrictly = this.checkStrictly;
4316
+ }
4317
+ },
4318
+ value: {
4319
+ immediate: true,
4320
+ deep: true,
4321
+ handler: function handler() {
4322
+ var _this2 = this;
4323
+ this.$nextTick(function () {
4324
+ _this2.init();
4325
+ });
4326
+ }
4327
+ },
4328
+ options: {
4329
+ deep: true,
4330
+ immediate: true,
4331
+ handler: function handler() {
4332
+ this.treeOptions = this.options;
4333
+ this.treeArr = this.turnFormatTreeData([], this.treeOptions, 0);
4334
+ }
4335
+ }
4336
+ },
4337
+ created: function created() {},
4338
+ methods: {
4339
+ init: function init() {
4340
+ var _this3 = this;
4341
+ // 初始化是根据value,设置已选中项
4342
+ var arr = [];
4343
+ if (this.multiple) {
4344
+ arr = this.value ? this.value : [];
4345
+ } else {
4346
+ arr = this.value ? [this.value] : [];
4347
+ }
4348
+ this.$nextTick(function () {
4349
+ _this3.$refs.tree.setCheckedKeys(arr);
4350
+ });
4351
+ },
4352
+ /**
4353
+ * 树复选框点击
4354
+ */
4355
+ treeCheck: function treeCheck(value, _ref) {
4356
+ var _this4 = this;
4357
+ var checkedKeys = _ref.checkedKeys,
4358
+ checkedNodes = _ref.checkedNodes;
4359
+ var arr = [];
4360
+ arr = checkedNodes;
4361
+ var idArr = arr.map(function (item) {
4362
+ return item[_this4.defaultOptions.id];
4363
+ });
4364
+ // 返回id数组
4365
+ this.$emit('change', this.multiple ? idArr : idArr[0], this.multiple ? arr : arr[0]);
4366
+ },
4367
+ /**
4368
+ * 树节点点击
4369
+ */
4370
+ treeClick: function treeClick(value, node, event) {
4371
+ if (this.multiple) return;
4372
+ this.$emit('change', value.id, value);
4373
+ this.popoverOpen = false;
4374
+ },
4375
+ /**
4376
+ * 清空
4377
+ */
4378
+ handleClear: function handleClear() {
4379
+ this.$emit('change', this.multiple ? [] : '', this.multiple ? [] : null);
4380
+ this.$refs.tree.setCheckedKeys([]);
4381
+ },
4382
+ /**
4383
+ * 部门树 格式化为 单例数组
4384
+ */
4385
+ turnFormatTreeData: function turnFormatTreeData(arr, data, pId) {
4386
+ var _this5 = this;
4387
+ data.forEach(function (item) {
4388
+ var cItem = JSON.parse(JSON.stringify(item));
4389
+ delete cItem[_this5.defaultOptions.children];
4390
+ cItem.pId = pId;
4391
+ arr.push(cItem);
4392
+ if (item[_this5.defaultOptions.children] && item[_this5.defaultOptions.children].length > 0) {
4393
+ _this5.turnFormatTreeData(arr, item[_this5.defaultOptions.children], item[_this5.defaultOptions.id]);
4394
+ }
4395
+ });
4396
+ return arr;
4397
+ }
4398
+ }
4399
+ });
4400
+ // CONCATENATED MODULE: ./packages/treeSelect/src/main.vue?vue&type=script&lang=js
4401
+ /* harmony default export */ var src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
4402
+ // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
4403
+ var componentNormalizer = __webpack_require__(2);
4404
+
4405
+ // CONCATENATED MODULE: ./packages/treeSelect/src/main.vue
4406
+
4407
+
4408
+
4409
+
4410
+
4411
+ /* normalize component */
4412
+
4413
+ var component = Object(componentNormalizer["a" /* default */])(
4414
+ src_mainvue_type_script_lang_js,
4415
+ render,
4416
+ staticRenderFns,
4417
+ false,
4418
+ null,
4419
+ null,
4420
+ null
4421
+
4422
+ )
4423
+
4424
+ /* harmony default export */ var main = (component.exports);
4425
+ // CONCATENATED MODULE: ./packages/treeSelect/index.js
4426
+
4427
+
4428
+
4429
+ /* istanbul ignore next */
4430
+ main.install = function (Vue) {
4431
+ Vue.component(main.name, main);
4432
+ };
4433
+ /* harmony default export */ var treeSelect = __webpack_exports__["default"] = (main);
4434
+
4435
+ /***/ })
4436
+ /******/ ]);