@vc-shell/framework 1.1.44 → 1.1.46

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 (453) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/core/plugins/modularity/loader.ts +150 -74
  3. package/core/services/app-bar-mobile-buttons-service.ts +1 -1
  4. package/dist/core/plugins/modularity/loader.d.ts.map +1 -1
  5. package/dist/core/services/app-bar-mobile-buttons-service.d.ts +1 -1
  6. package/dist/core/services/app-bar-mobile-buttons-service.d.ts.map +1 -1
  7. package/dist/framework.js +33355 -295
  8. package/dist/index.css +1 -9
  9. package/dist/index.d.ts +0 -4
  10. package/dist/index.d.ts.map +1 -1
  11. package/dist/locales/de.json +0 -84
  12. package/dist/locales/en.json +0 -84
  13. package/dist/shared/components/blade-navigation/components/vc-blade-navigation/_internal/vc-mobile-back-button.vue.d.ts.map +1 -1
  14. package/dist/shared/components/blade-navigation/components/vc-blade-view/vc-blade-view.d.ts +1 -1
  15. package/dist/shared/components/blade-navigation/components/vc-blade-view/vc-blade-view.d.ts.map +1 -1
  16. package/dist/shared/components/blade-navigation/composables/useBladeNavigation/internal/bladeRouteResolver.d.ts.map +1 -1
  17. package/dist/shared/components/change-password-button/change-password-button.vue.d.ts.map +1 -1
  18. package/dist/shared/components/logout-button/logout-button.vue.d.ts.map +1 -1
  19. package/dist/shared/components/settings-menu-item/settings-menu-item.vue.d.ts.map +1 -1
  20. package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts +2 -2
  21. package/dist/shared/modules/dynamic/pages/dynamic-blade-list.vue.d.ts +6 -6
  22. package/dist/shared/modules/dynamic/pages/dynamic-blade-list.vue.d.ts.map +1 -1
  23. package/dist/tsconfig.tsbuildinfo +1 -1
  24. package/dist/ui/components/atoms/vc-hint/vc-hint.vue.d.ts.map +1 -1
  25. package/dist/ui/components/atoms/vc-icon/icons/MenuBurgerIcon.vue.d.ts.map +1 -1
  26. package/dist/ui/components/atoms/vc-icon/icons/index.d.ts +0 -26
  27. package/dist/ui/components/atoms/vc-icon/icons/index.d.ts.map +1 -1
  28. package/dist/ui/components/atoms/vc-icon/vc-bootstrap-icon.vue.d.ts.map +1 -1
  29. package/dist/ui/components/atoms/vc-icon/vc-fontawesome-icon.vue.d.ts.map +1 -1
  30. package/dist/ui/components/atoms/vc-icon/vc-icon.vue.d.ts.map +1 -1
  31. package/dist/ui/components/atoms/vc-icon/vc-lucide-icon.vue.d.ts +0 -5
  32. package/dist/ui/components/atoms/vc-icon/vc-lucide-icon.vue.d.ts.map +1 -1
  33. package/dist/ui/components/atoms/vc-icon/vc-material-icon.vue.d.ts +0 -20
  34. package/dist/ui/components/atoms/vc-icon/vc-material-icon.vue.d.ts.map +1 -1
  35. package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue.d.ts.map +1 -1
  36. package/dist/ui/components/molecules/vc-editor/_internal/vc-editor-button.vue.d.ts +36 -0
  37. package/dist/ui/components/molecules/vc-editor/_internal/vc-editor-button.vue.d.ts.map +1 -0
  38. package/dist/ui/components/molecules/vc-editor/_internal/vc-editor-toolbar.vue.d.ts +17 -0
  39. package/dist/ui/components/molecules/vc-editor/_internal/vc-editor-toolbar.vue.d.ts.map +1 -0
  40. package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts +16 -2381
  41. package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts.map +1 -1
  42. package/dist/ui/components/molecules/vc-form/vc-form.vue.d.ts.map +1 -1
  43. package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts +1 -1
  44. package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts.map +1 -1
  45. package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts +1 -1
  46. package/dist/ui/components/molecules/vc-pagination/vc-pagination.vue.d.ts.map +1 -1
  47. package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/MenuSidebar.vue.d.ts.map +1 -1
  48. package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue.d.ts.map +1 -1
  49. package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/_internal/vc-app-menu-link.vue.d.ts.map +1 -1
  50. package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts.map +1 -1
  51. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-header/vc-blade-header.vue.d.ts.map +1 -1
  52. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-widget-container/_internal/vc-widget-container-desktop.vue.d.ts.map +1 -1
  53. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-widget-container/_internal/vc-widget-container-mobile.vue.d.ts.map +1 -1
  54. package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts.map +1 -1
  55. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts +2 -2
  56. package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts +2 -2
  57. package/dist/ui/components/organisms/vc-table/_internal/vc-table-filter/vc-table-filter.vue.d.ts.map +1 -1
  58. package/dist/ui/components/organisms/vc-table/_internal/vc-table-header/vc-table-header.vue.d.ts.map +1 -1
  59. package/dist/vendor-boolbase-Cp9L0GAZ.js +25 -0
  60. package/dist/vendor-cheerio-HN9zIPZn.js +3135 -0
  61. package/dist/vendor-cheerio-select-5Ry0HvBq.js +306 -0
  62. package/dist/vendor-core-js-l0sNRNKZ.js +1 -0
  63. package/dist/vendor-css-select-DRIZ9kfZ.js +966 -0
  64. package/dist/vendor-css-what-DuPJ1HEF.js +448 -0
  65. package/dist/vendor-cypress-signalr-mock-BKdBJpdt.js +778 -0
  66. package/dist/vendor-date-fns-515YWkk-.js +6724 -0
  67. package/dist/vendor-dom-serializer-nQMsqjYW.js +286 -0
  68. package/dist/vendor-dom7-CJLPMwy5.js +941 -0
  69. package/dist/vendor-domelementtype-CjSzQey5.js +53 -0
  70. package/dist/vendor-domhandler-9z8cS16a.js +484 -0
  71. package/dist/vendor-dompurify-CRFzu7ib.js +1336 -0
  72. package/dist/vendor-domutils-Bc-Opz-v.js +981 -0
  73. package/dist/vendor-entities-Bfsx4xOQ.js +636 -0
  74. package/dist/vendor-floating-ui-core-wV8u8QP4.js +511 -0
  75. package/dist/vendor-floating-ui-dom-DDnRPs17.js +706 -0
  76. package/dist/vendor-floating-ui-utils-OMIFy1QU.js +296 -0
  77. package/dist/vendor-floating-ui-vue-D-tCDAMm.js +167 -0
  78. package/dist/vendor-fontsource-plus-jakarta-sans.css +1 -0
  79. package/dist/vendor-headlessui-vue-CY9FRgTb.js +83 -0
  80. package/dist/vendor-htmlparser2-B1dhFPOs.js +1426 -0
  81. package/dist/vendor-iconify-vue-DfRGgyNu.js +1840 -0
  82. package/dist/vendor-intlify-core-base-BuknsFQe.js +1876 -0
  83. package/dist/vendor-intlify-message-compiler-CuOQDWx1.js +1508 -0
  84. package/dist/vendor-intlify-shared-Cz4YRMuC.js +241 -0
  85. package/dist/vendor-iso-639-1-BJCk9DvE.js +819 -0
  86. package/dist/vendor-linkify-it-CKUf4vsc.js +830 -0
  87. package/dist/vendor-linkifyjs-BfyGgbCh.js +1756 -0
  88. package/dist/vendor-lodash-es-BySUOlwf.js +18333 -0
  89. package/dist/vendor-markdown-it-D-apazHa.js +6000 -0
  90. package/dist/vendor-markdown-it-task-lists-rxMVH6Ku.js +131 -0
  91. package/dist/vendor-mdurl-BNh2CCgT.js +537 -0
  92. package/dist/vendor-microsoft-applicationinsights-analytics-js-kG3lLg8X.js +1275 -0
  93. package/dist/vendor-microsoft-applicationinsights-cfgsync-js-C0uQkiQq.js +591 -0
  94. package/dist/vendor-microsoft-applicationinsights-channel-js-Dyd_PXA3.js +2153 -0
  95. package/dist/vendor-microsoft-applicationinsights-common-CfmP1_Qr.js +2470 -0
  96. package/dist/vendor-microsoft-applicationinsights-core-js-Cq4YSEvZ.js +6589 -0
  97. package/dist/vendor-microsoft-applicationinsights-dependencies-js-C56OBFr4.js +1510 -0
  98. package/dist/vendor-microsoft-applicationinsights-properties-js-CBJTBawx.js +761 -0
  99. package/dist/vendor-microsoft-applicationinsights-shims-CX8sJgar.js +70 -0
  100. package/dist/vendor-microsoft-applicationinsights-web-pim2ri-g.js +667 -0
  101. package/dist/vendor-microsoft-dynamicproto-js-CFBBUu9p.js +520 -0
  102. package/dist/vendor-microsoft-signalr-dUnlRsGm.js +3339 -0
  103. package/dist/vendor-moment-Mki5YqAR.js +5679 -0
  104. package/dist/vendor-nevware21-ts-async-CLMApQ9E.js +395 -0
  105. package/dist/vendor-nevware21-ts-utils-e8v8Jty3.js +1160 -0
  106. package/dist/vendor-normalize-css.css +1 -0
  107. package/dist/vendor-nth-check-Bx8TxtJt.js +157 -0
  108. package/dist/vendor-orderedmap-dGG6uMFJ.js +137 -0
  109. package/dist/vendor-parse5-Bt2NhSzR.js +8432 -0
  110. package/dist/vendor-parse5-htmlparser2-tree-adapter-BUUtKzf8.js +216 -0
  111. package/dist/vendor-popperjs-core-Cr2byIky.js +1790 -0
  112. package/dist/vendor-prettier-B4PaeWRQ.js +98 -0
  113. package/dist/vendor-prosemirror-commands-BH9lWGpW.js +561 -0
  114. package/dist/vendor-prosemirror-dropcursor-CeyPcxrA.js +146 -0
  115. package/dist/vendor-prosemirror-gapcursor-U8UoUJII.js +236 -0
  116. package/dist/vendor-prosemirror-history-BDaJkvNx.js +414 -0
  117. package/dist/vendor-prosemirror-keymap-BbWvIWmH.js +128 -0
  118. package/dist/vendor-prosemirror-markdown-gB0PXBbz.js +866 -0
  119. package/dist/vendor-prosemirror-model-BZu3WVcD.js +3463 -0
  120. package/dist/vendor-prosemirror-schema-list-Bl9NpKA7.js +158 -0
  121. package/dist/vendor-prosemirror-state-BvL9Pxph.js +1003 -0
  122. package/dist/vendor-prosemirror-tables-17qAnviK.js +2159 -0
  123. package/dist/vendor-prosemirror-transform-CE9VV3qg.js +2156 -0
  124. package/dist/vendor-prosemirror-view-CU2WTHT7.js +5811 -0
  125. package/dist/vendor-punycode-js-iAs5RxMf.js +441 -0
  126. package/dist/vendor-rope-sequence-BdXDKoGt.js +207 -0
  127. package/dist/vendor-semver-CVLMK-S4.js +2702 -0
  128. package/dist/vendor-ssr-window-s6OpKa3O.js +150 -0
  129. package/dist/vendor-swiper-CdiyNHVt.js +5679 -0
  130. package/dist/vendor-swiper.css +1 -0
  131. package/dist/vendor-tanstack-virtual-core-l0sNRNKZ.js +1 -0
  132. package/dist/vendor-tanstack-vue-virtual-l0sNRNKZ.js +1 -0
  133. package/dist/vendor-tippy-js-DWFe2TfK.js +1647 -0
  134. package/dist/vendor-tiptap-core-NfwGfaQk.js +4910 -0
  135. package/dist/vendor-tiptap-extension-blockquote-jmWBTtsI.js +57 -0
  136. package/dist/vendor-tiptap-extension-bold-p5frh4ak.js +97 -0
  137. package/dist/vendor-tiptap-extension-bubble-menu-KUhZSfrs.js +218 -0
  138. package/dist/vendor-tiptap-extension-bullet-list-COmZRoSB.js +73 -0
  139. package/dist/vendor-tiptap-extension-code-block-DyTARZss.js +221 -0
  140. package/dist/vendor-tiptap-extension-code-jVv6CXpX.js +75 -0
  141. package/dist/vendor-tiptap-extension-document-DssuotYs.js +13 -0
  142. package/dist/vendor-tiptap-extension-dropcursor-BoO0Qv91.js +26 -0
  143. package/dist/vendor-tiptap-extension-floating-menu-CrO8CN5w.js +165 -0
  144. package/dist/vendor-tiptap-extension-gapcursor-KpsWEoMD.js +30 -0
  145. package/dist/vendor-tiptap-extension-hard-break-ldOzhSvf.js +68 -0
  146. package/dist/vendor-tiptap-extension-heading-CKz2llX0.js +77 -0
  147. package/dist/vendor-tiptap-extension-history-DeKZ2VQ9.js +48 -0
  148. package/dist/vendor-tiptap-extension-horizontal-rule-CAjWRyDS.js +92 -0
  149. package/dist/vendor-tiptap-extension-image-ZagcEYuk.js +76 -0
  150. package/dist/vendor-tiptap-extension-italic-CM4xdznY.js +96 -0
  151. package/dist/vendor-tiptap-extension-link-Z-AMC4Ri.js +414 -0
  152. package/dist/vendor-tiptap-extension-list-item-BJi5QpXc.js +37 -0
  153. package/dist/vendor-tiptap-extension-ordered-list-C_TMrfBE.js +97 -0
  154. package/dist/vendor-tiptap-extension-paragraph-CQw0E0Au.js +39 -0
  155. package/dist/vendor-tiptap-extension-placeholder-BBNVKfa_.js +66 -0
  156. package/dist/vendor-tiptap-extension-strike-DUyMYX1Z.js +79 -0
  157. package/dist/vendor-tiptap-extension-table-cell-CoDIMPA5.js +47 -0
  158. package/dist/vendor-tiptap-extension-table-header-DvbGHnmw.js +47 -0
  159. package/dist/vendor-tiptap-extension-table-row-D1uqN5Aj.js +26 -0
  160. package/dist/vendor-tiptap-extension-table-tKS4MOM4.js +354 -0
  161. package/dist/vendor-tiptap-extension-text-DtRBhKB2.js +12 -0
  162. package/dist/vendor-tiptap-extension-underline-DqaSFp_P.js +50 -0
  163. package/dist/vendor-tiptap-markdown-7-PCADTU.js +1017 -0
  164. package/dist/vendor-tiptap-pm-l0sNRNKZ.js +1 -0
  165. package/dist/vendor-tiptap-starter-kit-CDSV_Zuu.js +88 -0
  166. package/dist/vendor-tiptap-vue-3-DZg2fjq_.js +268 -0
  167. package/dist/vendor-truncate-html-3qQY0Djo.js +196 -0
  168. package/dist/vendor-uc-micro-jjt6LQ65.js +23 -0
  169. package/dist/vendor-vee-validate-i18n-v_gHjRmD.js +154 -0
  170. package/dist/vendor-vee-validate-rules-DzV3VY3N.js +536 -0
  171. package/dist/vendor-vue-currency-input-DGAkEFBO.js +545 -0
  172. package/dist/vendor-vue-demi-l0sNRNKZ.js +1 -0
  173. package/dist/vendor-vue-devtools-api-DXYR8qBG.js +169 -0
  174. package/dist/vendor-vue-i18n-Co752uk3.js +1897 -0
  175. package/dist/vendor-vue3-application-insights-CYWFCr_J.js +119 -0
  176. package/dist/vendor-vue3-touch-events-BJEAiSa3.js +416 -0
  177. package/dist/vendor-vuepic-vue-datepicker-BSWXRSiu.js +5019 -0
  178. package/dist/vendor-vuepic-vue-datepicker.css +1 -0
  179. package/dist/vendor-vueuse-components-l1bL12mE.js +339 -0
  180. package/dist/vendor-vueuse-core-DGcJOmwG.js +7743 -0
  181. package/dist/vendor-vueuse-shared-_mOXsFuM.js +1568 -0
  182. package/dist/vendor-w3c-keyname-BOm2dtJm.js +121 -0
  183. package/package.json +22 -11
  184. package/shared/components/blade-navigation/components/vc-blade-navigation/_internal/vc-mobile-back-button.vue +3 -3
  185. package/shared/components/blade-navigation/components/vc-blade-view/vc-blade-view.ts +2 -1
  186. package/shared/components/blade-navigation/composables/useBladeNavigation/internal/bladeRouteResolver.ts +1 -0
  187. package/shared/components/change-password-button/change-password-button.vue +1 -2
  188. package/shared/components/logout-button/logout-button.vue +1 -2
  189. package/shared/components/notifications/components/notification-container/index.ts +1 -1
  190. package/shared/components/notifications/core/notification.ts +1 -1
  191. package/shared/components/settings-menu-item/settings-menu-item.vue +1 -0
  192. package/shared/components/sidebar/sidebar.vue +2 -2
  193. package/shared/modules/dynamic/pages/dynamic-blade-list.vue +2 -1
  194. package/ui/components/atoms/vc-hint/vc-hint.vue +2 -0
  195. package/ui/components/atoms/vc-icon/composables/use-icon.ts +1 -1
  196. package/ui/components/atoms/vc-icon/icons/MenuBurgerIcon.vue +18 -14
  197. package/ui/components/atoms/vc-icon/icons/index.ts +1 -27
  198. package/ui/components/atoms/vc-icon/vc-bootstrap-icon.vue +7 -11
  199. package/ui/components/atoms/vc-icon/vc-fontawesome-icon.vue +37 -31
  200. package/ui/components/atoms/vc-icon/vc-icon-examples.vue +1 -1
  201. package/ui/components/atoms/vc-icon/vc-icon.stories.ts +4 -5
  202. package/ui/components/atoms/vc-icon/vc-icon.vue +43 -186
  203. package/ui/components/atoms/vc-icon/vc-lucide-icon.vue +22 -70
  204. package/ui/components/atoms/vc-icon/vc-material-icon.vue +28 -59
  205. package/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue +2 -3
  206. package/ui/components/molecules/vc-editor/_internal/vc-editor-button.vue +103 -0
  207. package/ui/components/molecules/vc-editor/_internal/vc-editor-toolbar.vue +252 -0
  208. package/ui/components/molecules/vc-editor/vc-editor.stories.ts +1 -4
  209. package/ui/components/molecules/vc-editor/vc-editor.vue +666 -360
  210. package/ui/components/molecules/vc-form/vc-form.vue +7 -5
  211. package/ui/components/molecules/vc-input/vc-input.vue +1 -1
  212. package/ui/components/molecules/vc-pagination/vc-pagination.vue +4 -17
  213. package/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/AppBarMobileActions.vue +1 -1
  214. package/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/MenuSidebar.vue +1 -3
  215. package/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue +1 -4
  216. package/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/_internal/vc-app-menu-link.vue +1 -3
  217. package/ui/components/organisms/vc-app/vc-app.backupsb.ts +214 -214
  218. package/ui/components/organisms/vc-app/vc-app.vue +3 -5
  219. package/ui/components/organisms/vc-blade/_internal/vc-blade-header/vc-blade-header.vue +3 -10
  220. package/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/mobile/vc-blade-toolbar-mobile.vue +1 -1
  221. package/ui/components/organisms/vc-blade/_internal/vc-blade-widget-container/_internal/vc-widget-container-desktop.vue +2 -2
  222. package/ui/components/organisms/vc-blade/_internal/vc-blade-widget-container/_internal/vc-widget-container-mobile.vue +2 -2
  223. package/ui/components/organisms/vc-blade/vc-blade.vue +4 -5
  224. package/ui/components/organisms/vc-table/_internal/vc-table-filter/vc-table-filter.vue +1 -3
  225. package/ui/components/organisms/vc-table/_internal/vc-table-header/vc-table-header.vue +1 -2
  226. package/ui/components/organisms/vc-table/composables/useTableState.ts +5 -5
  227. package/dist/apl-B2DGVGxc.js +0 -76
  228. package/dist/asciiarmor-2LVJmxlE.js +0 -34
  229. package/dist/asn1-jKiBa2Ya.js +0 -95
  230. package/dist/asterisk-DS281yxp.js +0 -271
  231. package/dist/brainfuck-C_p9pTT8.js +0 -34
  232. package/dist/clike-DGTaUp48.js +0 -620
  233. package/dist/clojure-CCKyeQKf.js +0 -800
  234. package/dist/cmake-CuaCgAKt.js +0 -28
  235. package/dist/cobol-BlTKFDRj.js +0 -72
  236. package/dist/coffeescript-BVCvwO8I.js +0 -179
  237. package/dist/commonlisp-D_kxz07b.js +0 -75
  238. package/dist/crystal-D309uH6_.js +0 -217
  239. package/dist/css-BkF-NPzE.js +0 -1553
  240. package/dist/cypher-BMq4Fwjl.js +0 -68
  241. package/dist/d-BZcgY6La.js +0 -127
  242. package/dist/diff-Cg9d_RX2.js +0 -18
  243. package/dist/dockerfile-DIy8NleC.js +0 -194
  244. package/dist/dtd-CtLokQ-U.js +0 -84
  245. package/dist/dylan-QYeExnWK.js +0 -234
  246. package/dist/ebnf-DUPDuY4r.js +0 -78
  247. package/dist/ecl-CiXN-g_D.js +0 -121
  248. package/dist/eiffel-yQhjl4T1.js +0 -110
  249. package/dist/elm-CNT9vbN0.js +0 -108
  250. package/dist/erlang-CFOYdy9e.js +0 -487
  251. package/dist/factor-DDOC7X6P.js +0 -65
  252. package/dist/fcl-CPC2WYrI.js +0 -103
  253. package/dist/forth-BmxRyE9S.js +0 -60
  254. package/dist/fortran-9bvPyrOW.js +0 -442
  255. package/dist/gas-cpmYfFX2.js +0 -183
  256. package/dist/gherkin-CJuwpceU.js +0 -34
  257. package/dist/groovy-DZeT_VM-.js +0 -146
  258. package/dist/haskell-Bvt3Qq1t.js +0 -375
  259. package/dist/haxe-70NVW1pR.js +0 -359
  260. package/dist/http-D9LttvKF.js +0 -44
  261. package/dist/idl-B6TRFYjl.js +0 -947
  262. package/dist/index-4DWvmoYg.js +0 -71
  263. package/dist/index-52o7mJaX.js +0 -156
  264. package/dist/index-B0KatioT.js +0 -98
  265. package/dist/index-BP3W8zuk.js +0 -268
  266. package/dist/index-BykT5L1A.js +0 -148134
  267. package/dist/index-CfXo9hsG.js +0 -75
  268. package/dist/index-Ch37pBUt.js +0 -308
  269. package/dist/index-D2KGkAYT.js +0 -93
  270. package/dist/index-D83zQom_.js +0 -58
  271. package/dist/index-DuQrVLbu.js +0 -134
  272. package/dist/index-_fdMid5h.js +0 -288
  273. package/dist/index-a1wO-owY.js +0 -545
  274. package/dist/index-crMpNSFe.js +0 -611
  275. package/dist/index-dmBRpHHY.js +0 -137
  276. package/dist/index-kBdB14Fz.js +0 -341
  277. package/dist/index-uBhy41le.js +0 -249
  278. package/dist/index-zZrijNsr.js +0 -299
  279. package/dist/javascript-C2yteZeJ.js +0 -691
  280. package/dist/jinja2-DnB6dQmV.js +0 -154
  281. package/dist/julia-DpvXAuO6.js +0 -241
  282. package/dist/livescript-CanGTf8u.js +0 -272
  283. package/dist/lua-XplVlWi_.js +0 -217
  284. package/dist/mathematica-jaRHnSxC.js +0 -35
  285. package/dist/mbox-BctzC1hL.js +0 -76
  286. package/dist/mirc-CFBPAOaF.js +0 -72
  287. package/dist/mllike-BSnXJBGA.js +0 -272
  288. package/dist/modelica-vUgVs--1.js +0 -93
  289. package/dist/mscgen-Cpl0NYLN.js +0 -104
  290. package/dist/mumps-CQoS1kWX.js +0 -25
  291. package/dist/nginx-zDPm3Z74.js +0 -89
  292. package/dist/nsis-fePjrhq7.js +0 -62
  293. package/dist/ntriples-CsNjv2QF.js +0 -79
  294. package/dist/octave-C8PmmSRH.js +0 -143
  295. package/dist/oz-Ce8aN8oE.js +0 -151
  296. package/dist/pascal-De0D6mP7.js +0 -77
  297. package/dist/perl-B4bSCe1C.js +0 -915
  298. package/dist/pig-D24Z8EXi.js +0 -54
  299. package/dist/powershell-DkYVfTzP.js +0 -249
  300. package/dist/properties-Dn9wna3M.js +0 -26
  301. package/dist/protobuf-BPIjwpzm.js +0 -49
  302. package/dist/pug-CwAQJzGR.js +0 -248
  303. package/dist/puppet-nyd4dhjf.js +0 -45
  304. package/dist/python-BkR3uSy8.js +0 -313
  305. package/dist/q-DXjKs-tC.js +0 -83
  306. package/dist/r-LKEuhEGI.js +0 -104
  307. package/dist/rpm-IznJm2Xc.js +0 -57
  308. package/dist/ruby-CcYfvIk6.js +0 -228
  309. package/dist/sas-7E8yHoCW.js +0 -105
  310. package/dist/scheme-DjibxsNh.js +0 -124
  311. package/dist/shared/modules/dynamic/components/fields/storybook/common/args.d.ts +0 -113
  312. package/dist/shared/modules/dynamic/components/fields/storybook/common/args.d.ts.map +0 -1
  313. package/dist/shared/modules/dynamic/components/fields/storybook/common/templates.d.ts +0 -3
  314. package/dist/shared/modules/dynamic/components/fields/storybook/common/templates.d.ts.map +0 -1
  315. package/dist/shared/modules/dynamic/components/fields/storybook/pages/DynamicRender.d.ts +0 -102
  316. package/dist/shared/modules/dynamic/components/fields/storybook/pages/DynamicRender.d.ts.map +0 -1
  317. package/dist/shared/modules/dynamic/components/fields/storybook/utils/sourceHighlighter.d.ts +0 -4
  318. package/dist/shared/modules/dynamic/components/fields/storybook/utils/sourceHighlighter.d.ts.map +0 -1
  319. package/dist/shared/modules/dynamic/components/fields/storybook/utils/sourceTransform.d.ts +0 -3
  320. package/dist/shared/modules/dynamic/components/fields/storybook/utils/sourceTransform.d.ts.map +0 -1
  321. package/dist/shell-C0C2sNA_.js +0 -182
  322. package/dist/sieve-Bwz7vjP5.js +0 -72
  323. package/dist/simple-mode-B0dvCdAA.js +0 -89
  324. package/dist/smalltalk-Bhddl2pB.js +0 -48
  325. package/dist/solr-BNlsLglM.js +0 -41
  326. package/dist/sparql-FarWu_Gb.js +0 -197
  327. package/dist/spreadsheet-C-cy4P5N.js +0 -49
  328. package/dist/sql-CfG5lQ3l.js +0 -282
  329. package/dist/stex-Du4h4KAU.js +0 -129
  330. package/dist/stylus-CAdqWld3.js +0 -250
  331. package/dist/swift-DSxqR9R6.js +0 -230
  332. package/dist/tcl-xfoLljhY.js +0 -81
  333. package/dist/textile-D1AWE-pc.js +0 -295
  334. package/dist/tiddlywiki-5wqsXtSk.js +0 -155
  335. package/dist/tiki-__Kn3CeS.js +0 -181
  336. package/dist/toml-BHiuTcfn.js +0 -49
  337. package/dist/troff-D2UO-fKf.js +0 -35
  338. package/dist/ttcn-Bsa4sfRm.js +0 -123
  339. package/dist/ttcn-cfg-Bac_acMi.js +0 -88
  340. package/dist/turtle-xwJUxoPV.js +0 -80
  341. package/dist/ui/components/atoms/vc-icon/icons/AppWindowIcon.vue.d.ts +0 -7
  342. package/dist/ui/components/atoms/vc-icon/icons/AppWindowIcon.vue.d.ts.map +0 -1
  343. package/dist/ui/components/atoms/vc-icon/icons/ArrowLeftIcon.vue.d.ts +0 -7
  344. package/dist/ui/components/atoms/vc-icon/icons/ArrowLeftIcon.vue.d.ts.map +0 -1
  345. package/dist/ui/components/atoms/vc-icon/icons/ArrowRightIcon.vue.d.ts +0 -7
  346. package/dist/ui/components/atoms/vc-icon/icons/ArrowRightIcon.vue.d.ts.map +0 -1
  347. package/dist/ui/components/atoms/vc-icon/icons/BellIcon.vue.d.ts +0 -7
  348. package/dist/ui/components/atoms/vc-icon/icons/BellIcon.vue.d.ts.map +0 -1
  349. package/dist/ui/components/atoms/vc-icon/icons/ChevronDownIcon.vue.d.ts +0 -7
  350. package/dist/ui/components/atoms/vc-icon/icons/ChevronDownIcon.vue.d.ts.map +0 -1
  351. package/dist/ui/components/atoms/vc-icon/icons/ChevronLeftIcon.vue.d.ts +0 -7
  352. package/dist/ui/components/atoms/vc-icon/icons/ChevronLeftIcon.vue.d.ts.map +0 -1
  353. package/dist/ui/components/atoms/vc-icon/icons/ChevronRightIcon.vue.d.ts +0 -7
  354. package/dist/ui/components/atoms/vc-icon/icons/ChevronRightIcon.vue.d.ts.map +0 -1
  355. package/dist/ui/components/atoms/vc-icon/icons/ChevronUpIcon.vue.d.ts +0 -7
  356. package/dist/ui/components/atoms/vc-icon/icons/ChevronUpIcon.vue.d.ts.map +0 -1
  357. package/dist/ui/components/atoms/vc-icon/icons/CircleDotsIcon.vue.d.ts +0 -7
  358. package/dist/ui/components/atoms/vc-icon/icons/CircleDotsIcon.vue.d.ts.map +0 -1
  359. package/dist/ui/components/atoms/vc-icon/icons/CrossSignIcon.vue.d.ts +0 -7
  360. package/dist/ui/components/atoms/vc-icon/icons/CrossSignIcon.vue.d.ts.map +0 -1
  361. package/dist/ui/components/atoms/vc-icon/icons/DoubleArrowLeftIcon.vue.d.ts +0 -7
  362. package/dist/ui/components/atoms/vc-icon/icons/DoubleArrowLeftIcon.vue.d.ts.map +0 -1
  363. package/dist/ui/components/atoms/vc-icon/icons/DoubleArrowRightIcon.vue.d.ts +0 -7
  364. package/dist/ui/components/atoms/vc-icon/icons/DoubleArrowRightIcon.vue.d.ts.map +0 -1
  365. package/dist/ui/components/atoms/vc-icon/icons/FulfillmentCentersIcon.vue.d.ts +0 -7
  366. package/dist/ui/components/atoms/vc-icon/icons/FulfillmentCentersIcon.vue.d.ts.map +0 -1
  367. package/dist/ui/components/atoms/vc-icon/icons/GridDotsIcon.vue.d.ts +0 -7
  368. package/dist/ui/components/atoms/vc-icon/icons/GridDotsIcon.vue.d.ts.map +0 -1
  369. package/dist/ui/components/atoms/vc-icon/icons/LogoutIcon.vue.d.ts +0 -7
  370. package/dist/ui/components/atoms/vc-icon/icons/LogoutIcon.vue.d.ts.map +0 -1
  371. package/dist/ui/components/atoms/vc-icon/icons/MinusSignIcon.vue.d.ts +0 -7
  372. package/dist/ui/components/atoms/vc-icon/icons/MinusSignIcon.vue.d.ts.map +0 -1
  373. package/dist/ui/components/atoms/vc-icon/icons/OffersIcon.vue.d.ts +0 -7
  374. package/dist/ui/components/atoms/vc-icon/icons/OffersIcon.vue.d.ts.map +0 -1
  375. package/dist/ui/components/atoms/vc-icon/icons/OrdersIcon.vue.d.ts +0 -7
  376. package/dist/ui/components/atoms/vc-icon/icons/OrdersIcon.vue.d.ts.map +0 -1
  377. package/dist/ui/components/atoms/vc-icon/icons/PeopleIcon.vue.d.ts +0 -7
  378. package/dist/ui/components/atoms/vc-icon/icons/PeopleIcon.vue.d.ts.map +0 -1
  379. package/dist/ui/components/atoms/vc-icon/icons/PlusSignIcon.vue.d.ts +0 -7
  380. package/dist/ui/components/atoms/vc-icon/icons/PlusSignIcon.vue.d.ts.map +0 -1
  381. package/dist/ui/components/atoms/vc-icon/icons/ProductsIcon.vue.d.ts +0 -7
  382. package/dist/ui/components/atoms/vc-icon/icons/ProductsIcon.vue.d.ts.map +0 -1
  383. package/dist/ui/components/atoms/vc-icon/icons/ProfileIcon.vue.d.ts +0 -7
  384. package/dist/ui/components/atoms/vc-icon/icons/ProfileIcon.vue.d.ts.map +0 -1
  385. package/dist/ui/components/atoms/vc-icon/icons/SearchIcon.vue.d.ts +0 -7
  386. package/dist/ui/components/atoms/vc-icon/icons/SearchIcon.vue.d.ts.map +0 -1
  387. package/dist/ui/components/atoms/vc-icon/icons/SettingsBoltIcon.vue.d.ts +0 -7
  388. package/dist/ui/components/atoms/vc-icon/icons/SettingsBoltIcon.vue.d.ts.map +0 -1
  389. package/dist/ui/components/atoms/vc-icon/icons/ShoppingCardIcon.vue.d.ts +0 -7
  390. package/dist/ui/components/atoms/vc-icon/icons/ShoppingCardIcon.vue.d.ts.map +0 -1
  391. package/dist/ui/components/atoms/vc-icon/icons/VendorSwitchIcon.vue.d.ts +0 -7
  392. package/dist/ui/components/atoms/vc-icon/icons/VendorSwitchIcon.vue.d.ts.map +0 -1
  393. package/dist/ui/components/atoms/vc-icon/icons/VertDotsIcon.vue.d.ts +0 -7
  394. package/dist/ui/components/atoms/vc-icon/icons/VertDotsIcon.vue.d.ts.map +0 -1
  395. package/dist/vb-c2kQGd6-.js +0 -74
  396. package/dist/vbscript-1f_Dhg5H.js +0 -324
  397. package/dist/velocity-DJd0pTTC.js +0 -96
  398. package/dist/verilog-CiS1jyi5.js +0 -262
  399. package/dist/vhdl-T9HkrbI2.js +0 -106
  400. package/dist/webidl-CjfDENEo.js +0 -155
  401. package/dist/xquery-BUQdORAS.js +0 -422
  402. package/dist/yacas-C0absKBh.js +0 -73
  403. package/dist/z80-Pki2zAjW.js +0 -61
  404. package/shared/modules/dynamic/components/fields/storybook/Button.stories.ts +0 -186
  405. package/shared/modules/dynamic/components/fields/storybook/Card.stories.ts +0 -175
  406. package/shared/modules/dynamic/components/fields/storybook/Checkbox.stories.ts +0 -185
  407. package/shared/modules/dynamic/components/fields/storybook/ContentField.stories.ts +0 -245
  408. package/shared/modules/dynamic/components/fields/storybook/EditorField.stories.ts +0 -192
  409. package/shared/modules/dynamic/components/fields/storybook/Fieldset.stories.ts +0 -347
  410. package/shared/modules/dynamic/components/fields/storybook/GalleryField.stories.ts +0 -239
  411. package/shared/modules/dynamic/components/fields/storybook/ImageField.stories.ts +0 -186
  412. package/shared/modules/dynamic/components/fields/storybook/InputCurrency.stories.ts +0 -281
  413. package/shared/modules/dynamic/components/fields/storybook/InputField.stories.ts +0 -312
  414. package/shared/modules/dynamic/components/fields/storybook/MultivalueField.stories.ts +0 -361
  415. package/shared/modules/dynamic/components/fields/storybook/RadioButtonGroup.stories.ts +0 -224
  416. package/shared/modules/dynamic/components/fields/storybook/RatingField.stories.ts +0 -131
  417. package/shared/modules/dynamic/components/fields/storybook/SelectField.stories.ts +0 -666
  418. package/shared/modules/dynamic/components/fields/storybook/StatusField.stories.ts +0 -202
  419. package/shared/modules/dynamic/components/fields/storybook/SwitchField.stories.ts +0 -178
  420. package/shared/modules/dynamic/components/fields/storybook/TextareaField.stories.ts +0 -203
  421. package/shared/modules/dynamic/components/fields/storybook/VideoField.stories.ts +0 -92
  422. package/shared/modules/dynamic/components/fields/storybook/common/args.ts +0 -130
  423. package/shared/modules/dynamic/components/fields/storybook/common/templates.ts +0 -8
  424. package/shared/modules/dynamic/components/fields/storybook/pages/DynamicRender.ts +0 -54
  425. package/shared/modules/dynamic/components/fields/storybook/utils/sourceHighlighter.ts +0 -16
  426. package/shared/modules/dynamic/components/fields/storybook/utils/sourceTransform.ts +0 -41
  427. package/ui/components/atoms/vc-icon/icons/AppWindowIcon.vue +0 -15
  428. package/ui/components/atoms/vc-icon/icons/ArrowLeftIcon.vue +0 -20
  429. package/ui/components/atoms/vc-icon/icons/ArrowRightIcon.vue +0 -13
  430. package/ui/components/atoms/vc-icon/icons/BellIcon.vue +0 -14
  431. package/ui/components/atoms/vc-icon/icons/ChevronDownIcon.vue +0 -13
  432. package/ui/components/atoms/vc-icon/icons/ChevronLeftIcon.vue +0 -13
  433. package/ui/components/atoms/vc-icon/icons/ChevronRightIcon.vue +0 -13
  434. package/ui/components/atoms/vc-icon/icons/ChevronUpIcon.vue +0 -13
  435. package/ui/components/atoms/vc-icon/icons/CircleDotsIcon.vue +0 -16
  436. package/ui/components/atoms/vc-icon/icons/CrossSignIcon.vue +0 -20
  437. package/ui/components/atoms/vc-icon/icons/DoubleArrowLeftIcon.vue +0 -14
  438. package/ui/components/atoms/vc-icon/icons/DoubleArrowRightIcon.vue +0 -14
  439. package/ui/components/atoms/vc-icon/icons/FulfillmentCentersIcon.vue +0 -27
  440. package/ui/components/atoms/vc-icon/icons/GridDotsIcon.vue +0 -22
  441. package/ui/components/atoms/vc-icon/icons/LogoutIcon.vue +0 -13
  442. package/ui/components/atoms/vc-icon/icons/MinusSignIcon.vue +0 -14
  443. package/ui/components/atoms/vc-icon/icons/OffersIcon.vue +0 -23
  444. package/ui/components/atoms/vc-icon/icons/OrdersIcon.vue +0 -19
  445. package/ui/components/atoms/vc-icon/icons/PeopleIcon.vue +0 -21
  446. package/ui/components/atoms/vc-icon/icons/PlusSignIcon.vue +0 -20
  447. package/ui/components/atoms/vc-icon/icons/ProductsIcon.vue +0 -23
  448. package/ui/components/atoms/vc-icon/icons/ProfileIcon.vue +0 -18
  449. package/ui/components/atoms/vc-icon/icons/SearchIcon.vue +0 -14
  450. package/ui/components/atoms/vc-icon/icons/SettingsBoltIcon.vue +0 -21
  451. package/ui/components/atoms/vc-icon/icons/ShoppingCardIcon.vue +0 -16
  452. package/ui/components/atoms/vc-icon/icons/VendorSwitchIcon.vue +0 -26
  453. package/ui/components/atoms/vc-icon/icons/VertDotsIcon.vue +0 -19
@@ -0,0 +1,1647 @@
1
+ import { c as createPopper, a as applyStyles } from './vendor-popperjs-core-Cr2byIky.js';
2
+
3
+ /**!
4
+ * tippy.js v6.3.7
5
+ * (c) 2017-2021 atomiks
6
+ * MIT License
7
+ */
8
+ var BOX_CLASS = "tippy-box";
9
+ var CONTENT_CLASS = "tippy-content";
10
+ var BACKDROP_CLASS = "tippy-backdrop";
11
+ var ARROW_CLASS = "tippy-arrow";
12
+ var SVG_ARROW_CLASS = "tippy-svg-arrow";
13
+ var TOUCH_OPTIONS = {
14
+ passive: true,
15
+ capture: true
16
+ };
17
+ var TIPPY_DEFAULT_APPEND_TO = function TIPPY_DEFAULT_APPEND_TO() {
18
+ return document.body;
19
+ };
20
+
21
+ function hasOwnProperty(obj, key) {
22
+ return {}.hasOwnProperty.call(obj, key);
23
+ }
24
+ function getValueAtIndexOrReturn(value, index, defaultValue) {
25
+ if (Array.isArray(value)) {
26
+ var v = value[index];
27
+ return v == null ? Array.isArray(defaultValue) ? defaultValue[index] : defaultValue : v;
28
+ }
29
+
30
+ return value;
31
+ }
32
+ function isType(value, type) {
33
+ var str = {}.toString.call(value);
34
+ return str.indexOf('[object') === 0 && str.indexOf(type + "]") > -1;
35
+ }
36
+ function invokeWithArgsOrReturn(value, args) {
37
+ return typeof value === 'function' ? value.apply(void 0, args) : value;
38
+ }
39
+ function debounce(fn, ms) {
40
+ // Avoid wrapping in `setTimeout` if ms is 0 anyway
41
+ if (ms === 0) {
42
+ return fn;
43
+ }
44
+
45
+ var timeout;
46
+ return function (arg) {
47
+ clearTimeout(timeout);
48
+ timeout = setTimeout(function () {
49
+ fn(arg);
50
+ }, ms);
51
+ };
52
+ }
53
+ function removeProperties(obj, keys) {
54
+ var clone = Object.assign({}, obj);
55
+ keys.forEach(function (key) {
56
+ delete clone[key];
57
+ });
58
+ return clone;
59
+ }
60
+ function splitBySpaces(value) {
61
+ return value.split(/\s+/).filter(Boolean);
62
+ }
63
+ function normalizeToArray(value) {
64
+ return [].concat(value);
65
+ }
66
+ function pushIfUnique(arr, value) {
67
+ if (arr.indexOf(value) === -1) {
68
+ arr.push(value);
69
+ }
70
+ }
71
+ function unique(arr) {
72
+ return arr.filter(function (item, index) {
73
+ return arr.indexOf(item) === index;
74
+ });
75
+ }
76
+ function getBasePlacement(placement) {
77
+ return placement.split('-')[0];
78
+ }
79
+ function arrayFrom(value) {
80
+ return [].slice.call(value);
81
+ }
82
+ function removeUndefinedProps(obj) {
83
+ return Object.keys(obj).reduce(function (acc, key) {
84
+ if (obj[key] !== undefined) {
85
+ acc[key] = obj[key];
86
+ }
87
+
88
+ return acc;
89
+ }, {});
90
+ }
91
+
92
+ function div() {
93
+ return document.createElement('div');
94
+ }
95
+ function isElement(value) {
96
+ return ['Element', 'Fragment'].some(function (type) {
97
+ return isType(value, type);
98
+ });
99
+ }
100
+ function isNodeList(value) {
101
+ return isType(value, 'NodeList');
102
+ }
103
+ function isMouseEvent(value) {
104
+ return isType(value, 'MouseEvent');
105
+ }
106
+ function isReferenceElement(value) {
107
+ return !!(value && value._tippy && value._tippy.reference === value);
108
+ }
109
+ function getArrayOfElements(value) {
110
+ if (isElement(value)) {
111
+ return [value];
112
+ }
113
+
114
+ if (isNodeList(value)) {
115
+ return arrayFrom(value);
116
+ }
117
+
118
+ if (Array.isArray(value)) {
119
+ return value;
120
+ }
121
+
122
+ return arrayFrom(document.querySelectorAll(value));
123
+ }
124
+ function setTransitionDuration(els, value) {
125
+ els.forEach(function (el) {
126
+ if (el) {
127
+ el.style.transitionDuration = value + "ms";
128
+ }
129
+ });
130
+ }
131
+ function setVisibilityState(els, state) {
132
+ els.forEach(function (el) {
133
+ if (el) {
134
+ el.setAttribute('data-state', state);
135
+ }
136
+ });
137
+ }
138
+ function getOwnerDocument(elementOrElements) {
139
+ var _element$ownerDocumen;
140
+
141
+ var _normalizeToArray = normalizeToArray(elementOrElements),
142
+ element = _normalizeToArray[0]; // Elements created via a <template> have an ownerDocument with no reference to the body
143
+
144
+
145
+ return element != null && (_element$ownerDocumen = element.ownerDocument) != null && _element$ownerDocumen.body ? element.ownerDocument : document;
146
+ }
147
+ function isCursorOutsideInteractiveBorder(popperTreeData, event) {
148
+ var clientX = event.clientX,
149
+ clientY = event.clientY;
150
+ return popperTreeData.every(function (_ref) {
151
+ var popperRect = _ref.popperRect,
152
+ popperState = _ref.popperState,
153
+ props = _ref.props;
154
+ var interactiveBorder = props.interactiveBorder;
155
+ var basePlacement = getBasePlacement(popperState.placement);
156
+ var offsetData = popperState.modifiersData.offset;
157
+
158
+ if (!offsetData) {
159
+ return true;
160
+ }
161
+
162
+ var topDistance = basePlacement === 'bottom' ? offsetData.top.y : 0;
163
+ var bottomDistance = basePlacement === 'top' ? offsetData.bottom.y : 0;
164
+ var leftDistance = basePlacement === 'right' ? offsetData.left.x : 0;
165
+ var rightDistance = basePlacement === 'left' ? offsetData.right.x : 0;
166
+ var exceedsTop = popperRect.top - clientY + topDistance > interactiveBorder;
167
+ var exceedsBottom = clientY - popperRect.bottom - bottomDistance > interactiveBorder;
168
+ var exceedsLeft = popperRect.left - clientX + leftDistance > interactiveBorder;
169
+ var exceedsRight = clientX - popperRect.right - rightDistance > interactiveBorder;
170
+ return exceedsTop || exceedsBottom || exceedsLeft || exceedsRight;
171
+ });
172
+ }
173
+ function updateTransitionEndListener(box, action, listener) {
174
+ var method = action + "EventListener"; // some browsers apparently support `transition` (unprefixed) but only fire
175
+ // `webkitTransitionEnd`...
176
+
177
+ ['transitionend', 'webkitTransitionEnd'].forEach(function (event) {
178
+ box[method](event, listener);
179
+ });
180
+ }
181
+ /**
182
+ * Compared to xxx.contains, this function works for dom structures with shadow
183
+ * dom
184
+ */
185
+
186
+ function actualContains(parent, child) {
187
+ var target = child;
188
+
189
+ while (target) {
190
+ var _target$getRootNode;
191
+
192
+ if (parent.contains(target)) {
193
+ return true;
194
+ }
195
+
196
+ target = target.getRootNode == null ? void 0 : (_target$getRootNode = target.getRootNode()) == null ? void 0 : _target$getRootNode.host;
197
+ }
198
+
199
+ return false;
200
+ }
201
+
202
+ var currentInput = {
203
+ isTouch: false
204
+ };
205
+ var lastMouseMoveTime = 0;
206
+ /**
207
+ * When a `touchstart` event is fired, it's assumed the user is using touch
208
+ * input. We'll bind a `mousemove` event listener to listen for mouse input in
209
+ * the future. This way, the `isTouch` property is fully dynamic and will handle
210
+ * hybrid devices that use a mix of touch + mouse input.
211
+ */
212
+
213
+ function onDocumentTouchStart() {
214
+ if (currentInput.isTouch) {
215
+ return;
216
+ }
217
+
218
+ currentInput.isTouch = true;
219
+
220
+ if (window.performance) {
221
+ document.addEventListener('mousemove', onDocumentMouseMove);
222
+ }
223
+ }
224
+ /**
225
+ * When two `mousemove` event are fired consecutively within 20ms, it's assumed
226
+ * the user is using mouse input again. `mousemove` can fire on touch devices as
227
+ * well, but very rarely that quickly.
228
+ */
229
+
230
+ function onDocumentMouseMove() {
231
+ var now = performance.now();
232
+
233
+ if (now - lastMouseMoveTime < 20) {
234
+ currentInput.isTouch = false;
235
+ document.removeEventListener('mousemove', onDocumentMouseMove);
236
+ }
237
+
238
+ lastMouseMoveTime = now;
239
+ }
240
+ /**
241
+ * When an element is in focus and has a tippy, leaving the tab/window and
242
+ * returning causes it to show again. For mouse users this is unexpected, but
243
+ * for keyboard use it makes sense.
244
+ * TODO: find a better technique to solve this problem
245
+ */
246
+
247
+ function onWindowBlur() {
248
+ var activeElement = document.activeElement;
249
+
250
+ if (isReferenceElement(activeElement)) {
251
+ var instance = activeElement._tippy;
252
+
253
+ if (activeElement.blur && !instance.state.isVisible) {
254
+ activeElement.blur();
255
+ }
256
+ }
257
+ }
258
+ function bindGlobalEventListeners() {
259
+ document.addEventListener('touchstart', onDocumentTouchStart, TOUCH_OPTIONS);
260
+ window.addEventListener('blur', onWindowBlur);
261
+ }
262
+
263
+ var isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined';
264
+ var isIE11 = isBrowser ? // @ts-ignore
265
+ !!window.msCrypto : false;
266
+
267
+ function createMemoryLeakWarning(method) {
268
+ var txt = method === 'destroy' ? 'n already-' : ' ';
269
+ return [method + "() was called on a" + txt + "destroyed instance. This is a no-op but", 'indicates a potential memory leak.'].join(' ');
270
+ }
271
+ function clean(value) {
272
+ var spacesAndTabs = /[ \t]{2,}/g;
273
+ var lineStartWithSpaces = /^[ \t]*/gm;
274
+ return value.replace(spacesAndTabs, ' ').replace(lineStartWithSpaces, '').trim();
275
+ }
276
+
277
+ function getDevMessage(message) {
278
+ return clean("\n %ctippy.js\n\n %c" + clean(message) + "\n\n %c\uD83D\uDC77\u200D This is a development-only message. It will be removed in production.\n ");
279
+ }
280
+
281
+ function getFormattedMessage(message) {
282
+ return [getDevMessage(message), // title
283
+ 'color: #00C584; font-size: 1.3em; font-weight: bold;', // message
284
+ 'line-height: 1.5', // footer
285
+ 'color: #a6a095;'];
286
+ } // Assume warnings and errors never have the same message
287
+
288
+ var visitedMessages;
289
+
290
+ if (process.env.NODE_ENV !== "production") {
291
+ resetVisitedMessages();
292
+ }
293
+
294
+ function resetVisitedMessages() {
295
+ visitedMessages = new Set();
296
+ }
297
+ function warnWhen(condition, message) {
298
+ if (condition && !visitedMessages.has(message)) {
299
+ var _console;
300
+
301
+ visitedMessages.add(message);
302
+
303
+ (_console = console).warn.apply(_console, getFormattedMessage(message));
304
+ }
305
+ }
306
+ function errorWhen(condition, message) {
307
+ if (condition && !visitedMessages.has(message)) {
308
+ var _console2;
309
+
310
+ visitedMessages.add(message);
311
+
312
+ (_console2 = console).error.apply(_console2, getFormattedMessage(message));
313
+ }
314
+ }
315
+ function validateTargets(targets) {
316
+ var didPassFalsyValue = !targets;
317
+ var didPassPlainObject = Object.prototype.toString.call(targets) === '[object Object]' && !targets.addEventListener;
318
+ errorWhen(didPassFalsyValue, ['tippy() was passed', '`' + String(targets) + '`', 'as its targets (first) argument. Valid types are: String, Element,', 'Element[], or NodeList.'].join(' '));
319
+ errorWhen(didPassPlainObject, ['tippy() was passed a plain object which is not supported as an argument', 'for virtual positioning. Use props.getReferenceClientRect instead.'].join(' '));
320
+ }
321
+
322
+ var pluginProps = {
323
+ animateFill: false,
324
+ followCursor: false,
325
+ inlinePositioning: false,
326
+ sticky: false
327
+ };
328
+ var renderProps = {
329
+ allowHTML: false,
330
+ animation: 'fade',
331
+ arrow: true,
332
+ content: '',
333
+ inertia: false,
334
+ maxWidth: 350,
335
+ role: 'tooltip',
336
+ theme: '',
337
+ zIndex: 9999
338
+ };
339
+ var defaultProps = Object.assign({
340
+ appendTo: TIPPY_DEFAULT_APPEND_TO,
341
+ aria: {
342
+ content: 'auto',
343
+ expanded: 'auto'
344
+ },
345
+ delay: 0,
346
+ duration: [300, 250],
347
+ getReferenceClientRect: null,
348
+ hideOnClick: true,
349
+ ignoreAttributes: false,
350
+ interactive: false,
351
+ interactiveBorder: 2,
352
+ interactiveDebounce: 0,
353
+ moveTransition: '',
354
+ offset: [0, 10],
355
+ onAfterUpdate: function onAfterUpdate() {},
356
+ onBeforeUpdate: function onBeforeUpdate() {},
357
+ onCreate: function onCreate() {},
358
+ onDestroy: function onDestroy() {},
359
+ onHidden: function onHidden() {},
360
+ onHide: function onHide() {},
361
+ onMount: function onMount() {},
362
+ onShow: function onShow() {},
363
+ onShown: function onShown() {},
364
+ onTrigger: function onTrigger() {},
365
+ onUntrigger: function onUntrigger() {},
366
+ onClickOutside: function onClickOutside() {},
367
+ placement: 'top',
368
+ plugins: [],
369
+ popperOptions: {},
370
+ render: null,
371
+ showOnCreate: false,
372
+ touch: true,
373
+ trigger: 'mouseenter focus',
374
+ triggerTarget: null
375
+ }, pluginProps, renderProps);
376
+ var defaultKeys = Object.keys(defaultProps);
377
+ var setDefaultProps = function setDefaultProps(partialProps) {
378
+ /* istanbul ignore else */
379
+ if (process.env.NODE_ENV !== "production") {
380
+ validateProps(partialProps, []);
381
+ }
382
+
383
+ var keys = Object.keys(partialProps);
384
+ keys.forEach(function (key) {
385
+ defaultProps[key] = partialProps[key];
386
+ });
387
+ };
388
+ function getExtendedPassedProps(passedProps) {
389
+ var plugins = passedProps.plugins || [];
390
+ var pluginProps = plugins.reduce(function (acc, plugin) {
391
+ var name = plugin.name,
392
+ defaultValue = plugin.defaultValue;
393
+
394
+ if (name) {
395
+ var _name;
396
+
397
+ acc[name] = passedProps[name] !== undefined ? passedProps[name] : (_name = defaultProps[name]) != null ? _name : defaultValue;
398
+ }
399
+
400
+ return acc;
401
+ }, {});
402
+ return Object.assign({}, passedProps, pluginProps);
403
+ }
404
+ function getDataAttributeProps(reference, plugins) {
405
+ var propKeys = plugins ? Object.keys(getExtendedPassedProps(Object.assign({}, defaultProps, {
406
+ plugins: plugins
407
+ }))) : defaultKeys;
408
+ var props = propKeys.reduce(function (acc, key) {
409
+ var valueAsString = (reference.getAttribute("data-tippy-" + key) || '').trim();
410
+
411
+ if (!valueAsString) {
412
+ return acc;
413
+ }
414
+
415
+ if (key === 'content') {
416
+ acc[key] = valueAsString;
417
+ } else {
418
+ try {
419
+ acc[key] = JSON.parse(valueAsString);
420
+ } catch (e) {
421
+ acc[key] = valueAsString;
422
+ }
423
+ }
424
+
425
+ return acc;
426
+ }, {});
427
+ return props;
428
+ }
429
+ function evaluateProps(reference, props) {
430
+ var out = Object.assign({}, props, {
431
+ content: invokeWithArgsOrReturn(props.content, [reference])
432
+ }, props.ignoreAttributes ? {} : getDataAttributeProps(reference, props.plugins));
433
+ out.aria = Object.assign({}, defaultProps.aria, out.aria);
434
+ out.aria = {
435
+ expanded: out.aria.expanded === 'auto' ? props.interactive : out.aria.expanded,
436
+ content: out.aria.content === 'auto' ? props.interactive ? null : 'describedby' : out.aria.content
437
+ };
438
+ return out;
439
+ }
440
+ function validateProps(partialProps, plugins) {
441
+ if (partialProps === void 0) {
442
+ partialProps = {};
443
+ }
444
+
445
+ if (plugins === void 0) {
446
+ plugins = [];
447
+ }
448
+
449
+ var keys = Object.keys(partialProps);
450
+ keys.forEach(function (prop) {
451
+ var nonPluginProps = removeProperties(defaultProps, Object.keys(pluginProps));
452
+ var didPassUnknownProp = !hasOwnProperty(nonPluginProps, prop); // Check if the prop exists in `plugins`
453
+
454
+ if (didPassUnknownProp) {
455
+ didPassUnknownProp = plugins.filter(function (plugin) {
456
+ return plugin.name === prop;
457
+ }).length === 0;
458
+ }
459
+
460
+ warnWhen(didPassUnknownProp, ["`" + prop + "`", "is not a valid prop. You may have spelled it incorrectly, or if it's", 'a plugin, forgot to pass it in an array as props.plugins.', '\n\n', 'All props: https://atomiks.github.io/tippyjs/v6/all-props/\n', 'Plugins: https://atomiks.github.io/tippyjs/v6/plugins/'].join(' '));
461
+ });
462
+ }
463
+
464
+ var innerHTML = function innerHTML() {
465
+ return 'innerHTML';
466
+ };
467
+
468
+ function dangerouslySetInnerHTML(element, html) {
469
+ element[innerHTML()] = html;
470
+ }
471
+
472
+ function createArrowElement(value) {
473
+ var arrow = div();
474
+
475
+ if (value === true) {
476
+ arrow.className = ARROW_CLASS;
477
+ } else {
478
+ arrow.className = SVG_ARROW_CLASS;
479
+
480
+ if (isElement(value)) {
481
+ arrow.appendChild(value);
482
+ } else {
483
+ dangerouslySetInnerHTML(arrow, value);
484
+ }
485
+ }
486
+
487
+ return arrow;
488
+ }
489
+
490
+ function setContent(content, props) {
491
+ if (isElement(props.content)) {
492
+ dangerouslySetInnerHTML(content, '');
493
+ content.appendChild(props.content);
494
+ } else if (typeof props.content !== 'function') {
495
+ if (props.allowHTML) {
496
+ dangerouslySetInnerHTML(content, props.content);
497
+ } else {
498
+ content.textContent = props.content;
499
+ }
500
+ }
501
+ }
502
+ function getChildren(popper) {
503
+ var box = popper.firstElementChild;
504
+ var boxChildren = arrayFrom(box.children);
505
+ return {
506
+ box: box,
507
+ content: boxChildren.find(function (node) {
508
+ return node.classList.contains(CONTENT_CLASS);
509
+ }),
510
+ arrow: boxChildren.find(function (node) {
511
+ return node.classList.contains(ARROW_CLASS) || node.classList.contains(SVG_ARROW_CLASS);
512
+ }),
513
+ backdrop: boxChildren.find(function (node) {
514
+ return node.classList.contains(BACKDROP_CLASS);
515
+ })
516
+ };
517
+ }
518
+ function render(instance) {
519
+ var popper = div();
520
+ var box = div();
521
+ box.className = BOX_CLASS;
522
+ box.setAttribute('data-state', 'hidden');
523
+ box.setAttribute('tabindex', '-1');
524
+ var content = div();
525
+ content.className = CONTENT_CLASS;
526
+ content.setAttribute('data-state', 'hidden');
527
+ setContent(content, instance.props);
528
+ popper.appendChild(box);
529
+ box.appendChild(content);
530
+ onUpdate(instance.props, instance.props);
531
+
532
+ function onUpdate(prevProps, nextProps) {
533
+ var _getChildren = getChildren(popper),
534
+ box = _getChildren.box,
535
+ content = _getChildren.content,
536
+ arrow = _getChildren.arrow;
537
+
538
+ if (nextProps.theme) {
539
+ box.setAttribute('data-theme', nextProps.theme);
540
+ } else {
541
+ box.removeAttribute('data-theme');
542
+ }
543
+
544
+ if (typeof nextProps.animation === 'string') {
545
+ box.setAttribute('data-animation', nextProps.animation);
546
+ } else {
547
+ box.removeAttribute('data-animation');
548
+ }
549
+
550
+ if (nextProps.inertia) {
551
+ box.setAttribute('data-inertia', '');
552
+ } else {
553
+ box.removeAttribute('data-inertia');
554
+ }
555
+
556
+ box.style.maxWidth = typeof nextProps.maxWidth === 'number' ? nextProps.maxWidth + "px" : nextProps.maxWidth;
557
+
558
+ if (nextProps.role) {
559
+ box.setAttribute('role', nextProps.role);
560
+ } else {
561
+ box.removeAttribute('role');
562
+ }
563
+
564
+ if (prevProps.content !== nextProps.content || prevProps.allowHTML !== nextProps.allowHTML) {
565
+ setContent(content, instance.props);
566
+ }
567
+
568
+ if (nextProps.arrow) {
569
+ if (!arrow) {
570
+ box.appendChild(createArrowElement(nextProps.arrow));
571
+ } else if (prevProps.arrow !== nextProps.arrow) {
572
+ box.removeChild(arrow);
573
+ box.appendChild(createArrowElement(nextProps.arrow));
574
+ }
575
+ } else if (arrow) {
576
+ box.removeChild(arrow);
577
+ }
578
+ }
579
+
580
+ return {
581
+ popper: popper,
582
+ onUpdate: onUpdate
583
+ };
584
+ } // Runtime check to identify if the render function is the default one; this
585
+ // way we can apply default CSS transitions logic and it can be tree-shaken away
586
+
587
+ render.$$tippy = true;
588
+
589
+ var idCounter = 1;
590
+ var mouseMoveListeners = []; // Used by `hideAll()`
591
+
592
+ var mountedInstances = [];
593
+ function createTippy(reference, passedProps) {
594
+ var props = evaluateProps(reference, Object.assign({}, defaultProps, getExtendedPassedProps(removeUndefinedProps(passedProps)))); // ===========================================================================
595
+ // 🔒 Private members
596
+ // ===========================================================================
597
+
598
+ var showTimeout;
599
+ var hideTimeout;
600
+ var scheduleHideAnimationFrame;
601
+ var isVisibleFromClick = false;
602
+ var didHideDueToDocumentMouseDown = false;
603
+ var didTouchMove = false;
604
+ var ignoreOnFirstUpdate = false;
605
+ var lastTriggerEvent;
606
+ var currentTransitionEndListener;
607
+ var onFirstUpdate;
608
+ var listeners = [];
609
+ var debouncedOnMouseMove = debounce(onMouseMove, props.interactiveDebounce);
610
+ var currentTarget; // ===========================================================================
611
+ // 🔑 Public members
612
+ // ===========================================================================
613
+
614
+ var id = idCounter++;
615
+ var popperInstance = null;
616
+ var plugins = unique(props.plugins);
617
+ var state = {
618
+ // Is the instance currently enabled?
619
+ isEnabled: true,
620
+ // Is the tippy currently showing and not transitioning out?
621
+ isVisible: false,
622
+ // Has the instance been destroyed?
623
+ isDestroyed: false,
624
+ // Is the tippy currently mounted to the DOM?
625
+ isMounted: false,
626
+ // Has the tippy finished transitioning in?
627
+ isShown: false
628
+ };
629
+ var instance = {
630
+ // properties
631
+ id: id,
632
+ reference: reference,
633
+ popper: div(),
634
+ popperInstance: popperInstance,
635
+ props: props,
636
+ state: state,
637
+ plugins: plugins,
638
+ // methods
639
+ clearDelayTimeouts: clearDelayTimeouts,
640
+ setProps: setProps,
641
+ setContent: setContent,
642
+ show: show,
643
+ hide: hide,
644
+ hideWithInteractivity: hideWithInteractivity,
645
+ enable: enable,
646
+ disable: disable,
647
+ unmount: unmount,
648
+ destroy: destroy
649
+ }; // TODO: Investigate why this early return causes a TDZ error in the tests —
650
+ // it doesn't seem to happen in the browser
651
+
652
+ /* istanbul ignore if */
653
+
654
+ if (!props.render) {
655
+ if (process.env.NODE_ENV !== "production") {
656
+ errorWhen(true, 'render() function has not been supplied.');
657
+ }
658
+
659
+ return instance;
660
+ } // ===========================================================================
661
+ // Initial mutations
662
+ // ===========================================================================
663
+
664
+
665
+ var _props$render = props.render(instance),
666
+ popper = _props$render.popper,
667
+ onUpdate = _props$render.onUpdate;
668
+
669
+ popper.setAttribute('data-tippy-root', '');
670
+ popper.id = "tippy-" + instance.id;
671
+ instance.popper = popper;
672
+ reference._tippy = instance;
673
+ popper._tippy = instance;
674
+ var pluginsHooks = plugins.map(function (plugin) {
675
+ return plugin.fn(instance);
676
+ });
677
+ var hasAriaExpanded = reference.hasAttribute('aria-expanded');
678
+ addListeners();
679
+ handleAriaExpandedAttribute();
680
+ handleStyles();
681
+ invokeHook('onCreate', [instance]);
682
+
683
+ if (props.showOnCreate) {
684
+ scheduleShow();
685
+ } // Prevent a tippy with a delay from hiding if the cursor left then returned
686
+ // before it started hiding
687
+
688
+
689
+ popper.addEventListener('mouseenter', function () {
690
+ if (instance.props.interactive && instance.state.isVisible) {
691
+ instance.clearDelayTimeouts();
692
+ }
693
+ });
694
+ popper.addEventListener('mouseleave', function () {
695
+ if (instance.props.interactive && instance.props.trigger.indexOf('mouseenter') >= 0) {
696
+ getDocument().addEventListener('mousemove', debouncedOnMouseMove);
697
+ }
698
+ });
699
+ return instance; // ===========================================================================
700
+ // 🔒 Private methods
701
+ // ===========================================================================
702
+
703
+ function getNormalizedTouchSettings() {
704
+ var touch = instance.props.touch;
705
+ return Array.isArray(touch) ? touch : [touch, 0];
706
+ }
707
+
708
+ function getIsCustomTouchBehavior() {
709
+ return getNormalizedTouchSettings()[0] === 'hold';
710
+ }
711
+
712
+ function getIsDefaultRenderFn() {
713
+ var _instance$props$rende;
714
+
715
+ // @ts-ignore
716
+ return !!((_instance$props$rende = instance.props.render) != null && _instance$props$rende.$$tippy);
717
+ }
718
+
719
+ function getCurrentTarget() {
720
+ return currentTarget || reference;
721
+ }
722
+
723
+ function getDocument() {
724
+ var parent = getCurrentTarget().parentNode;
725
+ return parent ? getOwnerDocument(parent) : document;
726
+ }
727
+
728
+ function getDefaultTemplateChildren() {
729
+ return getChildren(popper);
730
+ }
731
+
732
+ function getDelay(isShow) {
733
+ // For touch or keyboard input, force `0` delay for UX reasons
734
+ // Also if the instance is mounted but not visible (transitioning out),
735
+ // ignore delay
736
+ if (instance.state.isMounted && !instance.state.isVisible || currentInput.isTouch || lastTriggerEvent && lastTriggerEvent.type === 'focus') {
737
+ return 0;
738
+ }
739
+
740
+ return getValueAtIndexOrReturn(instance.props.delay, isShow ? 0 : 1, defaultProps.delay);
741
+ }
742
+
743
+ function handleStyles(fromHide) {
744
+ if (fromHide === void 0) {
745
+ fromHide = false;
746
+ }
747
+
748
+ popper.style.pointerEvents = instance.props.interactive && !fromHide ? '' : 'none';
749
+ popper.style.zIndex = "" + instance.props.zIndex;
750
+ }
751
+
752
+ function invokeHook(hook, args, shouldInvokePropsHook) {
753
+ if (shouldInvokePropsHook === void 0) {
754
+ shouldInvokePropsHook = true;
755
+ }
756
+
757
+ pluginsHooks.forEach(function (pluginHooks) {
758
+ if (pluginHooks[hook]) {
759
+ pluginHooks[hook].apply(pluginHooks, args);
760
+ }
761
+ });
762
+
763
+ if (shouldInvokePropsHook) {
764
+ var _instance$props;
765
+
766
+ (_instance$props = instance.props)[hook].apply(_instance$props, args);
767
+ }
768
+ }
769
+
770
+ function handleAriaContentAttribute() {
771
+ var aria = instance.props.aria;
772
+
773
+ if (!aria.content) {
774
+ return;
775
+ }
776
+
777
+ var attr = "aria-" + aria.content;
778
+ var id = popper.id;
779
+ var nodes = normalizeToArray(instance.props.triggerTarget || reference);
780
+ nodes.forEach(function (node) {
781
+ var currentValue = node.getAttribute(attr);
782
+
783
+ if (instance.state.isVisible) {
784
+ node.setAttribute(attr, currentValue ? currentValue + " " + id : id);
785
+ } else {
786
+ var nextValue = currentValue && currentValue.replace(id, '').trim();
787
+
788
+ if (nextValue) {
789
+ node.setAttribute(attr, nextValue);
790
+ } else {
791
+ node.removeAttribute(attr);
792
+ }
793
+ }
794
+ });
795
+ }
796
+
797
+ function handleAriaExpandedAttribute() {
798
+ if (hasAriaExpanded || !instance.props.aria.expanded) {
799
+ return;
800
+ }
801
+
802
+ var nodes = normalizeToArray(instance.props.triggerTarget || reference);
803
+ nodes.forEach(function (node) {
804
+ if (instance.props.interactive) {
805
+ node.setAttribute('aria-expanded', instance.state.isVisible && node === getCurrentTarget() ? 'true' : 'false');
806
+ } else {
807
+ node.removeAttribute('aria-expanded');
808
+ }
809
+ });
810
+ }
811
+
812
+ function cleanupInteractiveMouseListeners() {
813
+ getDocument().removeEventListener('mousemove', debouncedOnMouseMove);
814
+ mouseMoveListeners = mouseMoveListeners.filter(function (listener) {
815
+ return listener !== debouncedOnMouseMove;
816
+ });
817
+ }
818
+
819
+ function onDocumentPress(event) {
820
+ // Moved finger to scroll instead of an intentional tap outside
821
+ if (currentInput.isTouch) {
822
+ if (didTouchMove || event.type === 'mousedown') {
823
+ return;
824
+ }
825
+ }
826
+
827
+ var actualTarget = event.composedPath && event.composedPath()[0] || event.target; // Clicked on interactive popper
828
+
829
+ if (instance.props.interactive && actualContains(popper, actualTarget)) {
830
+ return;
831
+ } // Clicked on the event listeners target
832
+
833
+
834
+ if (normalizeToArray(instance.props.triggerTarget || reference).some(function (el) {
835
+ return actualContains(el, actualTarget);
836
+ })) {
837
+ if (currentInput.isTouch) {
838
+ return;
839
+ }
840
+
841
+ if (instance.state.isVisible && instance.props.trigger.indexOf('click') >= 0) {
842
+ return;
843
+ }
844
+ } else {
845
+ invokeHook('onClickOutside', [instance, event]);
846
+ }
847
+
848
+ if (instance.props.hideOnClick === true) {
849
+ instance.clearDelayTimeouts();
850
+ instance.hide(); // `mousedown` event is fired right before `focus` if pressing the
851
+ // currentTarget. This lets a tippy with `focus` trigger know that it
852
+ // should not show
853
+
854
+ didHideDueToDocumentMouseDown = true;
855
+ setTimeout(function () {
856
+ didHideDueToDocumentMouseDown = false;
857
+ }); // The listener gets added in `scheduleShow()`, but this may be hiding it
858
+ // before it shows, and hide()'s early bail-out behavior can prevent it
859
+ // from being cleaned up
860
+
861
+ if (!instance.state.isMounted) {
862
+ removeDocumentPress();
863
+ }
864
+ }
865
+ }
866
+
867
+ function onTouchMove() {
868
+ didTouchMove = true;
869
+ }
870
+
871
+ function onTouchStart() {
872
+ didTouchMove = false;
873
+ }
874
+
875
+ function addDocumentPress() {
876
+ var doc = getDocument();
877
+ doc.addEventListener('mousedown', onDocumentPress, true);
878
+ doc.addEventListener('touchend', onDocumentPress, TOUCH_OPTIONS);
879
+ doc.addEventListener('touchstart', onTouchStart, TOUCH_OPTIONS);
880
+ doc.addEventListener('touchmove', onTouchMove, TOUCH_OPTIONS);
881
+ }
882
+
883
+ function removeDocumentPress() {
884
+ var doc = getDocument();
885
+ doc.removeEventListener('mousedown', onDocumentPress, true);
886
+ doc.removeEventListener('touchend', onDocumentPress, TOUCH_OPTIONS);
887
+ doc.removeEventListener('touchstart', onTouchStart, TOUCH_OPTIONS);
888
+ doc.removeEventListener('touchmove', onTouchMove, TOUCH_OPTIONS);
889
+ }
890
+
891
+ function onTransitionedOut(duration, callback) {
892
+ onTransitionEnd(duration, function () {
893
+ if (!instance.state.isVisible && popper.parentNode && popper.parentNode.contains(popper)) {
894
+ callback();
895
+ }
896
+ });
897
+ }
898
+
899
+ function onTransitionedIn(duration, callback) {
900
+ onTransitionEnd(duration, callback);
901
+ }
902
+
903
+ function onTransitionEnd(duration, callback) {
904
+ var box = getDefaultTemplateChildren().box;
905
+
906
+ function listener(event) {
907
+ if (event.target === box) {
908
+ updateTransitionEndListener(box, 'remove', listener);
909
+ callback();
910
+ }
911
+ } // Make callback synchronous if duration is 0
912
+ // `transitionend` won't fire otherwise
913
+
914
+
915
+ if (duration === 0) {
916
+ return callback();
917
+ }
918
+
919
+ updateTransitionEndListener(box, 'remove', currentTransitionEndListener);
920
+ updateTransitionEndListener(box, 'add', listener);
921
+ currentTransitionEndListener = listener;
922
+ }
923
+
924
+ function on(eventType, handler, options) {
925
+ if (options === void 0) {
926
+ options = false;
927
+ }
928
+
929
+ var nodes = normalizeToArray(instance.props.triggerTarget || reference);
930
+ nodes.forEach(function (node) {
931
+ node.addEventListener(eventType, handler, options);
932
+ listeners.push({
933
+ node: node,
934
+ eventType: eventType,
935
+ handler: handler,
936
+ options: options
937
+ });
938
+ });
939
+ }
940
+
941
+ function addListeners() {
942
+ if (getIsCustomTouchBehavior()) {
943
+ on('touchstart', onTrigger, {
944
+ passive: true
945
+ });
946
+ on('touchend', onMouseLeave, {
947
+ passive: true
948
+ });
949
+ }
950
+
951
+ splitBySpaces(instance.props.trigger).forEach(function (eventType) {
952
+ if (eventType === 'manual') {
953
+ return;
954
+ }
955
+
956
+ on(eventType, onTrigger);
957
+
958
+ switch (eventType) {
959
+ case 'mouseenter':
960
+ on('mouseleave', onMouseLeave);
961
+ break;
962
+
963
+ case 'focus':
964
+ on(isIE11 ? 'focusout' : 'blur', onBlurOrFocusOut);
965
+ break;
966
+
967
+ case 'focusin':
968
+ on('focusout', onBlurOrFocusOut);
969
+ break;
970
+ }
971
+ });
972
+ }
973
+
974
+ function removeListeners() {
975
+ listeners.forEach(function (_ref) {
976
+ var node = _ref.node,
977
+ eventType = _ref.eventType,
978
+ handler = _ref.handler,
979
+ options = _ref.options;
980
+ node.removeEventListener(eventType, handler, options);
981
+ });
982
+ listeners = [];
983
+ }
984
+
985
+ function onTrigger(event) {
986
+ var _lastTriggerEvent;
987
+
988
+ var shouldScheduleClickHide = false;
989
+
990
+ if (!instance.state.isEnabled || isEventListenerStopped(event) || didHideDueToDocumentMouseDown) {
991
+ return;
992
+ }
993
+
994
+ var wasFocused = ((_lastTriggerEvent = lastTriggerEvent) == null ? void 0 : _lastTriggerEvent.type) === 'focus';
995
+ lastTriggerEvent = event;
996
+ currentTarget = event.currentTarget;
997
+ handleAriaExpandedAttribute();
998
+
999
+ if (!instance.state.isVisible && isMouseEvent(event)) {
1000
+ // If scrolling, `mouseenter` events can be fired if the cursor lands
1001
+ // over a new target, but `mousemove` events don't get fired. This
1002
+ // causes interactive tooltips to get stuck open until the cursor is
1003
+ // moved
1004
+ mouseMoveListeners.forEach(function (listener) {
1005
+ return listener(event);
1006
+ });
1007
+ } // Toggle show/hide when clicking click-triggered tooltips
1008
+
1009
+
1010
+ if (event.type === 'click' && (instance.props.trigger.indexOf('mouseenter') < 0 || isVisibleFromClick) && instance.props.hideOnClick !== false && instance.state.isVisible) {
1011
+ shouldScheduleClickHide = true;
1012
+ } else {
1013
+ scheduleShow(event);
1014
+ }
1015
+
1016
+ if (event.type === 'click') {
1017
+ isVisibleFromClick = !shouldScheduleClickHide;
1018
+ }
1019
+
1020
+ if (shouldScheduleClickHide && !wasFocused) {
1021
+ scheduleHide(event);
1022
+ }
1023
+ }
1024
+
1025
+ function onMouseMove(event) {
1026
+ var target = event.target;
1027
+ var isCursorOverReferenceOrPopper = getCurrentTarget().contains(target) || popper.contains(target);
1028
+
1029
+ if (event.type === 'mousemove' && isCursorOverReferenceOrPopper) {
1030
+ return;
1031
+ }
1032
+
1033
+ var popperTreeData = getNestedPopperTree().concat(popper).map(function (popper) {
1034
+ var _instance$popperInsta;
1035
+
1036
+ var instance = popper._tippy;
1037
+ var state = (_instance$popperInsta = instance.popperInstance) == null ? void 0 : _instance$popperInsta.state;
1038
+
1039
+ if (state) {
1040
+ return {
1041
+ popperRect: popper.getBoundingClientRect(),
1042
+ popperState: state,
1043
+ props: props
1044
+ };
1045
+ }
1046
+
1047
+ return null;
1048
+ }).filter(Boolean);
1049
+
1050
+ if (isCursorOutsideInteractiveBorder(popperTreeData, event)) {
1051
+ cleanupInteractiveMouseListeners();
1052
+ scheduleHide(event);
1053
+ }
1054
+ }
1055
+
1056
+ function onMouseLeave(event) {
1057
+ var shouldBail = isEventListenerStopped(event) || instance.props.trigger.indexOf('click') >= 0 && isVisibleFromClick;
1058
+
1059
+ if (shouldBail) {
1060
+ return;
1061
+ }
1062
+
1063
+ if (instance.props.interactive) {
1064
+ instance.hideWithInteractivity(event);
1065
+ return;
1066
+ }
1067
+
1068
+ scheduleHide(event);
1069
+ }
1070
+
1071
+ function onBlurOrFocusOut(event) {
1072
+ if (instance.props.trigger.indexOf('focusin') < 0 && event.target !== getCurrentTarget()) {
1073
+ return;
1074
+ } // If focus was moved to within the popper
1075
+
1076
+
1077
+ if (instance.props.interactive && event.relatedTarget && popper.contains(event.relatedTarget)) {
1078
+ return;
1079
+ }
1080
+
1081
+ scheduleHide(event);
1082
+ }
1083
+
1084
+ function isEventListenerStopped(event) {
1085
+ return currentInput.isTouch ? getIsCustomTouchBehavior() !== event.type.indexOf('touch') >= 0 : false;
1086
+ }
1087
+
1088
+ function createPopperInstance() {
1089
+ destroyPopperInstance();
1090
+ var _instance$props2 = instance.props,
1091
+ popperOptions = _instance$props2.popperOptions,
1092
+ placement = _instance$props2.placement,
1093
+ offset = _instance$props2.offset,
1094
+ getReferenceClientRect = _instance$props2.getReferenceClientRect,
1095
+ moveTransition = _instance$props2.moveTransition;
1096
+ var arrow = getIsDefaultRenderFn() ? getChildren(popper).arrow : null;
1097
+ var computedReference = getReferenceClientRect ? {
1098
+ getBoundingClientRect: getReferenceClientRect,
1099
+ contextElement: getReferenceClientRect.contextElement || getCurrentTarget()
1100
+ } : reference;
1101
+ var tippyModifier = {
1102
+ name: '$$tippy',
1103
+ enabled: true,
1104
+ phase: 'beforeWrite',
1105
+ requires: ['computeStyles'],
1106
+ fn: function fn(_ref2) {
1107
+ var state = _ref2.state;
1108
+
1109
+ if (getIsDefaultRenderFn()) {
1110
+ var _getDefaultTemplateCh = getDefaultTemplateChildren(),
1111
+ box = _getDefaultTemplateCh.box;
1112
+
1113
+ ['placement', 'reference-hidden', 'escaped'].forEach(function (attr) {
1114
+ if (attr === 'placement') {
1115
+ box.setAttribute('data-placement', state.placement);
1116
+ } else {
1117
+ if (state.attributes.popper["data-popper-" + attr]) {
1118
+ box.setAttribute("data-" + attr, '');
1119
+ } else {
1120
+ box.removeAttribute("data-" + attr);
1121
+ }
1122
+ }
1123
+ });
1124
+ state.attributes.popper = {};
1125
+ }
1126
+ }
1127
+ };
1128
+ var modifiers = [{
1129
+ name: 'offset',
1130
+ options: {
1131
+ offset: offset
1132
+ }
1133
+ }, {
1134
+ name: 'preventOverflow',
1135
+ options: {
1136
+ padding: {
1137
+ top: 2,
1138
+ bottom: 2,
1139
+ left: 5,
1140
+ right: 5
1141
+ }
1142
+ }
1143
+ }, {
1144
+ name: 'flip',
1145
+ options: {
1146
+ padding: 5
1147
+ }
1148
+ }, {
1149
+ name: 'computeStyles',
1150
+ options: {
1151
+ adaptive: !moveTransition
1152
+ }
1153
+ }, tippyModifier];
1154
+
1155
+ if (getIsDefaultRenderFn() && arrow) {
1156
+ modifiers.push({
1157
+ name: 'arrow',
1158
+ options: {
1159
+ element: arrow,
1160
+ padding: 3
1161
+ }
1162
+ });
1163
+ }
1164
+
1165
+ modifiers.push.apply(modifiers, (popperOptions == null ? void 0 : popperOptions.modifiers) || []);
1166
+ instance.popperInstance = createPopper(computedReference, popper, Object.assign({}, popperOptions, {
1167
+ placement: placement,
1168
+ onFirstUpdate: onFirstUpdate,
1169
+ modifiers: modifiers
1170
+ }));
1171
+ }
1172
+
1173
+ function destroyPopperInstance() {
1174
+ if (instance.popperInstance) {
1175
+ instance.popperInstance.destroy();
1176
+ instance.popperInstance = null;
1177
+ }
1178
+ }
1179
+
1180
+ function mount() {
1181
+ var appendTo = instance.props.appendTo;
1182
+ var parentNode; // By default, we'll append the popper to the triggerTargets's parentNode so
1183
+ // it's directly after the reference element so the elements inside the
1184
+ // tippy can be tabbed to
1185
+ // If there are clipping issues, the user can specify a different appendTo
1186
+ // and ensure focus management is handled correctly manually
1187
+
1188
+ var node = getCurrentTarget();
1189
+
1190
+ if (instance.props.interactive && appendTo === TIPPY_DEFAULT_APPEND_TO || appendTo === 'parent') {
1191
+ parentNode = node.parentNode;
1192
+ } else {
1193
+ parentNode = invokeWithArgsOrReturn(appendTo, [node]);
1194
+ } // The popper element needs to exist on the DOM before its position can be
1195
+ // updated as Popper needs to read its dimensions
1196
+
1197
+
1198
+ if (!parentNode.contains(popper)) {
1199
+ parentNode.appendChild(popper);
1200
+ }
1201
+
1202
+ instance.state.isMounted = true;
1203
+ createPopperInstance();
1204
+ /* istanbul ignore else */
1205
+
1206
+ if (process.env.NODE_ENV !== "production") {
1207
+ // Accessibility check
1208
+ warnWhen(instance.props.interactive && appendTo === defaultProps.appendTo && node.nextElementSibling !== popper, ['Interactive tippy element may not be accessible via keyboard', 'navigation because it is not directly after the reference element', 'in the DOM source order.', '\n\n', 'Using a wrapper <div> or <span> tag around the reference element', 'solves this by creating a new parentNode context.', '\n\n', 'Specifying `appendTo: document.body` silences this warning, but it', 'assumes you are using a focus management solution to handle', 'keyboard navigation.', '\n\n', 'See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity'].join(' '));
1209
+ }
1210
+ }
1211
+
1212
+ function getNestedPopperTree() {
1213
+ return arrayFrom(popper.querySelectorAll('[data-tippy-root]'));
1214
+ }
1215
+
1216
+ function scheduleShow(event) {
1217
+ instance.clearDelayTimeouts();
1218
+
1219
+ if (event) {
1220
+ invokeHook('onTrigger', [instance, event]);
1221
+ }
1222
+
1223
+ addDocumentPress();
1224
+ var delay = getDelay(true);
1225
+
1226
+ var _getNormalizedTouchSe = getNormalizedTouchSettings(),
1227
+ touchValue = _getNormalizedTouchSe[0],
1228
+ touchDelay = _getNormalizedTouchSe[1];
1229
+
1230
+ if (currentInput.isTouch && touchValue === 'hold' && touchDelay) {
1231
+ delay = touchDelay;
1232
+ }
1233
+
1234
+ if (delay) {
1235
+ showTimeout = setTimeout(function () {
1236
+ instance.show();
1237
+ }, delay);
1238
+ } else {
1239
+ instance.show();
1240
+ }
1241
+ }
1242
+
1243
+ function scheduleHide(event) {
1244
+ instance.clearDelayTimeouts();
1245
+ invokeHook('onUntrigger', [instance, event]);
1246
+
1247
+ if (!instance.state.isVisible) {
1248
+ removeDocumentPress();
1249
+ return;
1250
+ } // For interactive tippies, scheduleHide is added to a document.body handler
1251
+ // from onMouseLeave so must intercept scheduled hides from mousemove/leave
1252
+ // events when trigger contains mouseenter and click, and the tip is
1253
+ // currently shown as a result of a click.
1254
+
1255
+
1256
+ if (instance.props.trigger.indexOf('mouseenter') >= 0 && instance.props.trigger.indexOf('click') >= 0 && ['mouseleave', 'mousemove'].indexOf(event.type) >= 0 && isVisibleFromClick) {
1257
+ return;
1258
+ }
1259
+
1260
+ var delay = getDelay(false);
1261
+
1262
+ if (delay) {
1263
+ hideTimeout = setTimeout(function () {
1264
+ if (instance.state.isVisible) {
1265
+ instance.hide();
1266
+ }
1267
+ }, delay);
1268
+ } else {
1269
+ // Fixes a `transitionend` problem when it fires 1 frame too
1270
+ // late sometimes, we don't want hide() to be called.
1271
+ scheduleHideAnimationFrame = requestAnimationFrame(function () {
1272
+ instance.hide();
1273
+ });
1274
+ }
1275
+ } // ===========================================================================
1276
+ // 🔑 Public methods
1277
+ // ===========================================================================
1278
+
1279
+
1280
+ function enable() {
1281
+ instance.state.isEnabled = true;
1282
+ }
1283
+
1284
+ function disable() {
1285
+ // Disabling the instance should also hide it
1286
+ // https://github.com/atomiks/tippy.js-react/issues/106
1287
+ instance.hide();
1288
+ instance.state.isEnabled = false;
1289
+ }
1290
+
1291
+ function clearDelayTimeouts() {
1292
+ clearTimeout(showTimeout);
1293
+ clearTimeout(hideTimeout);
1294
+ cancelAnimationFrame(scheduleHideAnimationFrame);
1295
+ }
1296
+
1297
+ function setProps(partialProps) {
1298
+ /* istanbul ignore else */
1299
+ if (process.env.NODE_ENV !== "production") {
1300
+ warnWhen(instance.state.isDestroyed, createMemoryLeakWarning('setProps'));
1301
+ }
1302
+
1303
+ if (instance.state.isDestroyed) {
1304
+ return;
1305
+ }
1306
+
1307
+ invokeHook('onBeforeUpdate', [instance, partialProps]);
1308
+ removeListeners();
1309
+ var prevProps = instance.props;
1310
+ var nextProps = evaluateProps(reference, Object.assign({}, prevProps, removeUndefinedProps(partialProps), {
1311
+ ignoreAttributes: true
1312
+ }));
1313
+ instance.props = nextProps;
1314
+ addListeners();
1315
+
1316
+ if (prevProps.interactiveDebounce !== nextProps.interactiveDebounce) {
1317
+ cleanupInteractiveMouseListeners();
1318
+ debouncedOnMouseMove = debounce(onMouseMove, nextProps.interactiveDebounce);
1319
+ } // Ensure stale aria-expanded attributes are removed
1320
+
1321
+
1322
+ if (prevProps.triggerTarget && !nextProps.triggerTarget) {
1323
+ normalizeToArray(prevProps.triggerTarget).forEach(function (node) {
1324
+ node.removeAttribute('aria-expanded');
1325
+ });
1326
+ } else if (nextProps.triggerTarget) {
1327
+ reference.removeAttribute('aria-expanded');
1328
+ }
1329
+
1330
+ handleAriaExpandedAttribute();
1331
+ handleStyles();
1332
+
1333
+ if (onUpdate) {
1334
+ onUpdate(prevProps, nextProps);
1335
+ }
1336
+
1337
+ if (instance.popperInstance) {
1338
+ createPopperInstance(); // Fixes an issue with nested tippies if they are all getting re-rendered,
1339
+ // and the nested ones get re-rendered first.
1340
+ // https://github.com/atomiks/tippyjs-react/issues/177
1341
+ // TODO: find a cleaner / more efficient solution(!)
1342
+
1343
+ getNestedPopperTree().forEach(function (nestedPopper) {
1344
+ // React (and other UI libs likely) requires a rAF wrapper as it flushes
1345
+ // its work in one
1346
+ requestAnimationFrame(nestedPopper._tippy.popperInstance.forceUpdate);
1347
+ });
1348
+ }
1349
+
1350
+ invokeHook('onAfterUpdate', [instance, partialProps]);
1351
+ }
1352
+
1353
+ function setContent(content) {
1354
+ instance.setProps({
1355
+ content: content
1356
+ });
1357
+ }
1358
+
1359
+ function show() {
1360
+ /* istanbul ignore else */
1361
+ if (process.env.NODE_ENV !== "production") {
1362
+ warnWhen(instance.state.isDestroyed, createMemoryLeakWarning('show'));
1363
+ } // Early bail-out
1364
+
1365
+
1366
+ var isAlreadyVisible = instance.state.isVisible;
1367
+ var isDestroyed = instance.state.isDestroyed;
1368
+ var isDisabled = !instance.state.isEnabled;
1369
+ var isTouchAndTouchDisabled = currentInput.isTouch && !instance.props.touch;
1370
+ var duration = getValueAtIndexOrReturn(instance.props.duration, 0, defaultProps.duration);
1371
+
1372
+ if (isAlreadyVisible || isDestroyed || isDisabled || isTouchAndTouchDisabled) {
1373
+ return;
1374
+ } // Normalize `disabled` behavior across browsers.
1375
+ // Firefox allows events on disabled elements, but Chrome doesn't.
1376
+ // Using a wrapper element (i.e. <span>) is recommended.
1377
+
1378
+
1379
+ if (getCurrentTarget().hasAttribute('disabled')) {
1380
+ return;
1381
+ }
1382
+
1383
+ invokeHook('onShow', [instance], false);
1384
+
1385
+ if (instance.props.onShow(instance) === false) {
1386
+ return;
1387
+ }
1388
+
1389
+ instance.state.isVisible = true;
1390
+
1391
+ if (getIsDefaultRenderFn()) {
1392
+ popper.style.visibility = 'visible';
1393
+ }
1394
+
1395
+ handleStyles();
1396
+ addDocumentPress();
1397
+
1398
+ if (!instance.state.isMounted) {
1399
+ popper.style.transition = 'none';
1400
+ } // If flipping to the opposite side after hiding at least once, the
1401
+ // animation will use the wrong placement without resetting the duration
1402
+
1403
+
1404
+ if (getIsDefaultRenderFn()) {
1405
+ var _getDefaultTemplateCh2 = getDefaultTemplateChildren(),
1406
+ box = _getDefaultTemplateCh2.box,
1407
+ content = _getDefaultTemplateCh2.content;
1408
+
1409
+ setTransitionDuration([box, content], 0);
1410
+ }
1411
+
1412
+ onFirstUpdate = function onFirstUpdate() {
1413
+ var _instance$popperInsta2;
1414
+
1415
+ if (!instance.state.isVisible || ignoreOnFirstUpdate) {
1416
+ return;
1417
+ }
1418
+
1419
+ ignoreOnFirstUpdate = true; // reflow
1420
+ popper.style.transition = instance.props.moveTransition;
1421
+
1422
+ if (getIsDefaultRenderFn() && instance.props.animation) {
1423
+ var _getDefaultTemplateCh3 = getDefaultTemplateChildren(),
1424
+ _box = _getDefaultTemplateCh3.box,
1425
+ _content = _getDefaultTemplateCh3.content;
1426
+
1427
+ setTransitionDuration([_box, _content], duration);
1428
+ setVisibilityState([_box, _content], 'visible');
1429
+ }
1430
+
1431
+ handleAriaContentAttribute();
1432
+ handleAriaExpandedAttribute();
1433
+ pushIfUnique(mountedInstances, instance); // certain modifiers (e.g. `maxSize`) require a second update after the
1434
+ // popper has been positioned for the first time
1435
+
1436
+ (_instance$popperInsta2 = instance.popperInstance) == null ? void 0 : _instance$popperInsta2.forceUpdate();
1437
+ invokeHook('onMount', [instance]);
1438
+
1439
+ if (instance.props.animation && getIsDefaultRenderFn()) {
1440
+ onTransitionedIn(duration, function () {
1441
+ instance.state.isShown = true;
1442
+ invokeHook('onShown', [instance]);
1443
+ });
1444
+ }
1445
+ };
1446
+
1447
+ mount();
1448
+ }
1449
+
1450
+ function hide() {
1451
+ /* istanbul ignore else */
1452
+ if (process.env.NODE_ENV !== "production") {
1453
+ warnWhen(instance.state.isDestroyed, createMemoryLeakWarning('hide'));
1454
+ } // Early bail-out
1455
+
1456
+
1457
+ var isAlreadyHidden = !instance.state.isVisible;
1458
+ var isDestroyed = instance.state.isDestroyed;
1459
+ var isDisabled = !instance.state.isEnabled;
1460
+ var duration = getValueAtIndexOrReturn(instance.props.duration, 1, defaultProps.duration);
1461
+
1462
+ if (isAlreadyHidden || isDestroyed || isDisabled) {
1463
+ return;
1464
+ }
1465
+
1466
+ invokeHook('onHide', [instance], false);
1467
+
1468
+ if (instance.props.onHide(instance) === false) {
1469
+ return;
1470
+ }
1471
+
1472
+ instance.state.isVisible = false;
1473
+ instance.state.isShown = false;
1474
+ ignoreOnFirstUpdate = false;
1475
+ isVisibleFromClick = false;
1476
+
1477
+ if (getIsDefaultRenderFn()) {
1478
+ popper.style.visibility = 'hidden';
1479
+ }
1480
+
1481
+ cleanupInteractiveMouseListeners();
1482
+ removeDocumentPress();
1483
+ handleStyles(true);
1484
+
1485
+ if (getIsDefaultRenderFn()) {
1486
+ var _getDefaultTemplateCh4 = getDefaultTemplateChildren(),
1487
+ box = _getDefaultTemplateCh4.box,
1488
+ content = _getDefaultTemplateCh4.content;
1489
+
1490
+ if (instance.props.animation) {
1491
+ setTransitionDuration([box, content], duration);
1492
+ setVisibilityState([box, content], 'hidden');
1493
+ }
1494
+ }
1495
+
1496
+ handleAriaContentAttribute();
1497
+ handleAriaExpandedAttribute();
1498
+
1499
+ if (instance.props.animation) {
1500
+ if (getIsDefaultRenderFn()) {
1501
+ onTransitionedOut(duration, instance.unmount);
1502
+ }
1503
+ } else {
1504
+ instance.unmount();
1505
+ }
1506
+ }
1507
+
1508
+ function hideWithInteractivity(event) {
1509
+ /* istanbul ignore else */
1510
+ if (process.env.NODE_ENV !== "production") {
1511
+ warnWhen(instance.state.isDestroyed, createMemoryLeakWarning('hideWithInteractivity'));
1512
+ }
1513
+
1514
+ getDocument().addEventListener('mousemove', debouncedOnMouseMove);
1515
+ pushIfUnique(mouseMoveListeners, debouncedOnMouseMove);
1516
+ debouncedOnMouseMove(event);
1517
+ }
1518
+
1519
+ function unmount() {
1520
+ /* istanbul ignore else */
1521
+ if (process.env.NODE_ENV !== "production") {
1522
+ warnWhen(instance.state.isDestroyed, createMemoryLeakWarning('unmount'));
1523
+ }
1524
+
1525
+ if (instance.state.isVisible) {
1526
+ instance.hide();
1527
+ }
1528
+
1529
+ if (!instance.state.isMounted) {
1530
+ return;
1531
+ }
1532
+
1533
+ destroyPopperInstance(); // If a popper is not interactive, it will be appended outside the popper
1534
+ // tree by default. This seems mainly for interactive tippies, but we should
1535
+ // find a workaround if possible
1536
+
1537
+ getNestedPopperTree().forEach(function (nestedPopper) {
1538
+ nestedPopper._tippy.unmount();
1539
+ });
1540
+
1541
+ if (popper.parentNode) {
1542
+ popper.parentNode.removeChild(popper);
1543
+ }
1544
+
1545
+ mountedInstances = mountedInstances.filter(function (i) {
1546
+ return i !== instance;
1547
+ });
1548
+ instance.state.isMounted = false;
1549
+ invokeHook('onHidden', [instance]);
1550
+ }
1551
+
1552
+ function destroy() {
1553
+ /* istanbul ignore else */
1554
+ if (process.env.NODE_ENV !== "production") {
1555
+ warnWhen(instance.state.isDestroyed, createMemoryLeakWarning('destroy'));
1556
+ }
1557
+
1558
+ if (instance.state.isDestroyed) {
1559
+ return;
1560
+ }
1561
+
1562
+ instance.clearDelayTimeouts();
1563
+ instance.unmount();
1564
+ removeListeners();
1565
+ delete reference._tippy;
1566
+ instance.state.isDestroyed = true;
1567
+ invokeHook('onDestroy', [instance]);
1568
+ }
1569
+ }
1570
+
1571
+ function tippy(targets, optionalProps) {
1572
+ if (optionalProps === void 0) {
1573
+ optionalProps = {};
1574
+ }
1575
+
1576
+ var plugins = defaultProps.plugins.concat(optionalProps.plugins || []);
1577
+ /* istanbul ignore else */
1578
+
1579
+ if (process.env.NODE_ENV !== "production") {
1580
+ validateTargets(targets);
1581
+ validateProps(optionalProps, plugins);
1582
+ }
1583
+
1584
+ bindGlobalEventListeners();
1585
+ var passedProps = Object.assign({}, optionalProps, {
1586
+ plugins: plugins
1587
+ });
1588
+ var elements = getArrayOfElements(targets);
1589
+ /* istanbul ignore else */
1590
+
1591
+ if (process.env.NODE_ENV !== "production") {
1592
+ var isSingleContentElement = isElement(passedProps.content);
1593
+ var isMoreThanOneReferenceElement = elements.length > 1;
1594
+ warnWhen(isSingleContentElement && isMoreThanOneReferenceElement, ['tippy() was passed an Element as the `content` prop, but more than', 'one tippy instance was created by this invocation. This means the', 'content element will only be appended to the last tippy instance.', '\n\n', 'Instead, pass the .innerHTML of the element, or use a function that', 'returns a cloned version of the element instead.', '\n\n', '1) content: element.innerHTML\n', '2) content: () => element.cloneNode(true)'].join(' '));
1595
+ }
1596
+
1597
+ var instances = elements.reduce(function (acc, reference) {
1598
+ var instance = reference && createTippy(reference, passedProps);
1599
+
1600
+ if (instance) {
1601
+ acc.push(instance);
1602
+ }
1603
+
1604
+ return acc;
1605
+ }, []);
1606
+ return isElement(targets) ? instances[0] : instances;
1607
+ }
1608
+
1609
+ tippy.defaultProps = defaultProps;
1610
+ tippy.setDefaultProps = setDefaultProps;
1611
+ tippy.currentInput = currentInput;
1612
+
1613
+ // every time the popper is destroyed (i.e. a new target), removing the styles
1614
+ // and causing transitions to break for singletons when the console is open, but
1615
+ // most notably for non-transform styles being used, `gpuAcceleration: false`.
1616
+
1617
+ Object.assign({}, applyStyles, {
1618
+ effect: function effect(_ref) {
1619
+ var state = _ref.state;
1620
+ var initialStyles = {
1621
+ popper: {
1622
+ position: state.options.strategy,
1623
+ left: '0',
1624
+ top: '0',
1625
+ margin: '0'
1626
+ },
1627
+ arrow: {
1628
+ position: 'absolute'
1629
+ },
1630
+ reference: {}
1631
+ };
1632
+ Object.assign(state.elements.popper.style, initialStyles.popper);
1633
+ state.styles = initialStyles;
1634
+
1635
+ if (state.elements.arrow) {
1636
+ Object.assign(state.elements.arrow.style, initialStyles.arrow);
1637
+ } // intentionally return no cleanup function
1638
+ // return () => { ... }
1639
+
1640
+ }
1641
+ });
1642
+
1643
+ tippy.setDefaultProps({
1644
+ render: render
1645
+ });
1646
+
1647
+ export { tippy as t };