django-handyhelpers 0.3.20__py3-none-any.whl → 0.3.35__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (571) hide show
  1. {django_handyhelpers-0.3.20.dist-info → django_handyhelpers-0.3.35.dist-info}/METADATA +16 -6
  2. {django_handyhelpers-0.3.20.dist-info → django_handyhelpers-0.3.35.dist-info}/RECORD +562 -75
  3. {django_handyhelpers-0.3.20.dist-info → django_handyhelpers-0.3.35.dist-info}/WHEEL +1 -1
  4. handyhelpers/__init__.py +6 -6
  5. handyhelpers/forms.py +9 -1
  6. handyhelpers/mixins/form_mixins.py +61 -0
  7. handyhelpers/mixins/model_mixins.py +21 -0
  8. handyhelpers/mixins/serializer_mixins.py +35 -0
  9. handyhelpers/mixins/view_mixins.py +5 -2
  10. handyhelpers/serializers.py +23 -3
  11. handyhelpers/static/handyhelpers/css/table_sortable.css +17 -0
  12. handyhelpers/static/handyhelpers/js/sidebar.js +8 -4
  13. handyhelpers/static/handyhelpers/js/table_sortable.js +119 -0
  14. handyhelpers/static/node_modules/.bin/acorn +4 -0
  15. handyhelpers/static/node_modules/.bin/css-b64-images +13 -0
  16. handyhelpers/static/node_modules/.bin/esbuild +0 -0
  17. handyhelpers/static/node_modules/.bin/html-minifier-terser +308 -0
  18. handyhelpers/static/node_modules/.bin/minify +98 -0
  19. handyhelpers/static/node_modules/.bin/terser +21 -0
  20. handyhelpers/static/node_modules/.bin/uglifyjs +624 -0
  21. handyhelpers/static/node_modules/.package-lock.json +750 -0
  22. handyhelpers/static/node_modules/@esbuild/linux-x64/README.md +3 -0
  23. handyhelpers/static/node_modules/@esbuild/linux-x64/bin/esbuild +0 -0
  24. handyhelpers/static/node_modules/@esbuild/linux-x64/package.json +20 -0
  25. handyhelpers/static/node_modules/@jridgewell/gen-mapping/LICENSE +19 -0
  26. handyhelpers/static/node_modules/@jridgewell/gen-mapping/README.md +227 -0
  27. handyhelpers/static/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs +230 -0
  28. handyhelpers/static/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs.map +1 -0
  29. handyhelpers/static/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js +246 -0
  30. handyhelpers/static/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js.map +1 -0
  31. handyhelpers/static/node_modules/@jridgewell/gen-mapping/dist/types/gen-mapping.d.ts +88 -0
  32. handyhelpers/static/node_modules/@jridgewell/gen-mapping/dist/types/sourcemap-segment.d.ts +12 -0
  33. handyhelpers/static/node_modules/@jridgewell/gen-mapping/dist/types/types.d.ts +36 -0
  34. handyhelpers/static/node_modules/@jridgewell/gen-mapping/package.json +76 -0
  35. handyhelpers/static/node_modules/@jridgewell/resolve-uri/LICENSE +19 -0
  36. handyhelpers/static/node_modules/@jridgewell/resolve-uri/README.md +40 -0
  37. handyhelpers/static/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs +232 -0
  38. handyhelpers/static/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs.map +1 -0
  39. handyhelpers/static/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js +240 -0
  40. handyhelpers/static/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js.map +1 -0
  41. handyhelpers/static/node_modules/@jridgewell/resolve-uri/dist/types/resolve-uri.d.ts +4 -0
  42. handyhelpers/static/node_modules/@jridgewell/resolve-uri/package.json +69 -0
  43. handyhelpers/static/node_modules/@jridgewell/set-array/LICENSE +19 -0
  44. handyhelpers/static/node_modules/@jridgewell/set-array/README.md +37 -0
  45. handyhelpers/static/node_modules/@jridgewell/set-array/dist/set-array.mjs +69 -0
  46. handyhelpers/static/node_modules/@jridgewell/set-array/dist/set-array.mjs.map +1 -0
  47. handyhelpers/static/node_modules/@jridgewell/set-array/dist/set-array.umd.js +83 -0
  48. handyhelpers/static/node_modules/@jridgewell/set-array/dist/set-array.umd.js.map +1 -0
  49. handyhelpers/static/node_modules/@jridgewell/set-array/dist/types/set-array.d.ts +32 -0
  50. handyhelpers/static/node_modules/@jridgewell/set-array/package.json +65 -0
  51. handyhelpers/static/node_modules/@jridgewell/source-map/LICENSE +19 -0
  52. handyhelpers/static/node_modules/@jridgewell/source-map/README.md +184 -0
  53. handyhelpers/static/node_modules/@jridgewell/source-map/dist/source-map.cjs +95 -0
  54. handyhelpers/static/node_modules/@jridgewell/source-map/dist/source-map.cjs.map +1 -0
  55. handyhelpers/static/node_modules/@jridgewell/source-map/dist/source-map.mjs +90 -0
  56. handyhelpers/static/node_modules/@jridgewell/source-map/dist/source-map.mjs.map +1 -0
  57. handyhelpers/static/node_modules/@jridgewell/source-map/dist/source-map.umd.js +1242 -0
  58. handyhelpers/static/node_modules/@jridgewell/source-map/dist/source-map.umd.js.map +1 -0
  59. handyhelpers/static/node_modules/@jridgewell/source-map/dist/types/source-map.d.ts +35 -0
  60. handyhelpers/static/node_modules/@jridgewell/source-map/package.json +71 -0
  61. handyhelpers/static/node_modules/@jridgewell/sourcemap-codec/LICENSE +21 -0
  62. handyhelpers/static/node_modules/@jridgewell/sourcemap-codec/README.md +264 -0
  63. handyhelpers/static/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs +424 -0
  64. handyhelpers/static/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map +1 -0
  65. handyhelpers/static/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js +439 -0
  66. handyhelpers/static/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js.map +1 -0
  67. handyhelpers/static/node_modules/@jridgewell/sourcemap-codec/dist/types/scopes.d.ts +49 -0
  68. handyhelpers/static/node_modules/@jridgewell/sourcemap-codec/dist/types/sourcemap-codec.d.ts +8 -0
  69. handyhelpers/static/node_modules/@jridgewell/sourcemap-codec/dist/types/strings.d.ts +15 -0
  70. handyhelpers/static/node_modules/@jridgewell/sourcemap-codec/dist/types/vlq.d.ts +6 -0
  71. handyhelpers/static/node_modules/@jridgewell/sourcemap-codec/package.json +75 -0
  72. handyhelpers/static/node_modules/@jridgewell/trace-mapping/LICENSE +19 -0
  73. handyhelpers/static/node_modules/@jridgewell/trace-mapping/README.md +257 -0
  74. handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs +580 -0
  75. handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs.map +1 -0
  76. handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js +600 -0
  77. handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js.map +1 -0
  78. handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/types/any-map.d.ts +8 -0
  79. handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/types/binary-search.d.ts +32 -0
  80. handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/types/by-source.d.ts +7 -0
  81. handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/types/resolve.d.ts +1 -0
  82. handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/types/sort.d.ts +2 -0
  83. handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/types/sourcemap-segment.d.ts +16 -0
  84. handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/types/strip-filename.d.ts +4 -0
  85. handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/types/trace-mapping.d.ts +79 -0
  86. handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/types/types.d.ts +99 -0
  87. handyhelpers/static/node_modules/@jridgewell/trace-mapping/package.json +77 -0
  88. handyhelpers/static/node_modules/@popperjs/core/dist/cjs/enums.js +1 -1
  89. handyhelpers/static/node_modules/@popperjs/core/dist/cjs/popper-base.js +12 -170
  90. handyhelpers/static/node_modules/@popperjs/core/dist/cjs/popper-base.js.map +1 -1
  91. handyhelpers/static/node_modules/@popperjs/core/dist/cjs/popper-lite.js +14 -184
  92. handyhelpers/static/node_modules/@popperjs/core/dist/cjs/popper-lite.js.map +1 -1
  93. handyhelpers/static/node_modules/@popperjs/core/dist/cjs/popper.js +14 -197
  94. handyhelpers/static/node_modules/@popperjs/core/dist/cjs/popper.js.map +1 -1
  95. handyhelpers/static/node_modules/@popperjs/core/dist/esm/createPopper.js +6 -66
  96. handyhelpers/static/node_modules/@popperjs/core/dist/esm/modifiers/arrow.js +1 -12
  97. handyhelpers/static/node_modules/@popperjs/core/dist/esm/modifiers/computeStyles.js +2 -14
  98. handyhelpers/static/node_modules/@popperjs/core/dist/esm/utils/computeAutoPlacement.js +0 -4
  99. handyhelpers/static/node_modules/@popperjs/core/dist/esm/utils/userAgent.js +1 -1
  100. handyhelpers/static/node_modules/@popperjs/core/dist/umd/enums.js +1 -1
  101. handyhelpers/static/node_modules/@popperjs/core/dist/umd/enums.min.js +1 -1
  102. handyhelpers/static/node_modules/@popperjs/core/dist/umd/popper-base.js +12 -170
  103. handyhelpers/static/node_modules/@popperjs/core/dist/umd/popper-base.js.map +1 -1
  104. handyhelpers/static/node_modules/@popperjs/core/dist/umd/popper-base.min.js +2 -2
  105. handyhelpers/static/node_modules/@popperjs/core/dist/umd/popper-base.min.js.map +1 -1
  106. handyhelpers/static/node_modules/@popperjs/core/dist/umd/popper-lite.js +14 -184
  107. handyhelpers/static/node_modules/@popperjs/core/dist/umd/popper-lite.js.map +1 -1
  108. handyhelpers/static/node_modules/@popperjs/core/dist/umd/popper-lite.min.js +2 -2
  109. handyhelpers/static/node_modules/@popperjs/core/dist/umd/popper-lite.min.js.map +1 -1
  110. handyhelpers/static/node_modules/@popperjs/core/dist/umd/popper.js +14 -197
  111. handyhelpers/static/node_modules/@popperjs/core/dist/umd/popper.js.map +1 -1
  112. handyhelpers/static/node_modules/@popperjs/core/dist/umd/popper.min.js +2 -2
  113. handyhelpers/static/node_modules/@popperjs/core/dist/umd/popper.min.js.map +1 -1
  114. handyhelpers/static/node_modules/@popperjs/core/lib/createPopper.js +6 -66
  115. handyhelpers/static/node_modules/@popperjs/core/lib/createPopper.js.flow +2 -80
  116. handyhelpers/static/node_modules/@popperjs/core/lib/modifiers/arrow.js +1 -12
  117. handyhelpers/static/node_modules/@popperjs/core/lib/modifiers/arrow.js.flow +0 -22
  118. handyhelpers/static/node_modules/@popperjs/core/lib/modifiers/computeStyles.js +2 -14
  119. handyhelpers/static/node_modules/@popperjs/core/lib/modifiers/computeStyles.js.flow +3 -33
  120. handyhelpers/static/node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js +0 -4
  121. handyhelpers/static/node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js.flow +0 -12
  122. handyhelpers/static/node_modules/@popperjs/core/lib/utils/userAgent.js +1 -1
  123. handyhelpers/static/node_modules/@popperjs/core/lib/utils/userAgent.js.flow +1 -1
  124. handyhelpers/static/node_modules/@popperjs/core/package.json +1 -1
  125. handyhelpers/static/node_modules/@putout/minify/LICENSE +21 -0
  126. handyhelpers/static/node_modules/@putout/minify/README.md +110 -0
  127. handyhelpers/static/node_modules/@putout/minify/bundle/minify.min.js +52 -0
  128. handyhelpers/static/node_modules/@putout/minify/package.json +112 -0
  129. handyhelpers/static/node_modules/@swc/core/Visitor.d.ts +218 -0
  130. handyhelpers/static/node_modules/@swc/core/Visitor.js +1407 -0
  131. handyhelpers/static/node_modules/@swc/core/binding.d.ts +56 -0
  132. handyhelpers/static/node_modules/@swc/core/binding.js +351 -0
  133. handyhelpers/static/node_modules/@swc/core/index.d.ts +118 -0
  134. handyhelpers/static/node_modules/@swc/core/index.js +439 -0
  135. handyhelpers/static/node_modules/@swc/core/package.json +114 -0
  136. handyhelpers/static/node_modules/@swc/core/postinstall.js +148 -0
  137. handyhelpers/static/node_modules/@swc/core/spack.d.ts +51 -0
  138. handyhelpers/static/node_modules/@swc/core/spack.js +87 -0
  139. handyhelpers/static/node_modules/@swc/core/util.d.ts +1 -0
  140. handyhelpers/static/node_modules/@swc/core/util.js +104 -0
  141. handyhelpers/static/node_modules/@swc/core-linux-x64-gnu/README.md +3 -0
  142. handyhelpers/static/node_modules/@swc/core-linux-x64-gnu/package.json +45 -0
  143. handyhelpers/static/node_modules/@swc/core-linux-x64-gnu/swc.linux-x64-gnu.node +0 -0
  144. handyhelpers/static/node_modules/@swc/counter/CHANGELOG.md +7 -0
  145. handyhelpers/static/node_modules/@swc/counter/README.md +7 -0
  146. handyhelpers/static/node_modules/@swc/counter/index.js +1 -0
  147. handyhelpers/static/node_modules/@swc/counter/package.json +27 -0
  148. handyhelpers/static/node_modules/@swc/types/LICENSE +201 -0
  149. handyhelpers/static/node_modules/@swc/types/README.md +4 -0
  150. handyhelpers/static/node_modules/@swc/types/assumptions.d.ts +92 -0
  151. handyhelpers/static/node_modules/@swc/types/assumptions.js +2 -0
  152. handyhelpers/static/node_modules/@swc/types/index.d.ts +1977 -0
  153. handyhelpers/static/node_modules/@swc/types/index.js +2 -0
  154. handyhelpers/static/node_modules/@swc/types/package.json +39 -0
  155. handyhelpers/static/node_modules/acorn/CHANGELOG.md +928 -0
  156. handyhelpers/static/node_modules/acorn/LICENSE +21 -0
  157. handyhelpers/static/node_modules/acorn/README.md +282 -0
  158. handyhelpers/static/node_modules/acorn/bin/acorn +4 -0
  159. handyhelpers/static/node_modules/acorn/dist/acorn.d.mts +866 -0
  160. handyhelpers/static/node_modules/acorn/dist/acorn.d.ts +866 -0
  161. handyhelpers/static/node_modules/acorn/dist/acorn.js +6174 -0
  162. handyhelpers/static/node_modules/acorn/dist/acorn.mjs +6145 -0
  163. handyhelpers/static/node_modules/acorn/dist/bin.js +90 -0
  164. handyhelpers/static/node_modules/acorn/package.json +50 -0
  165. handyhelpers/static/node_modules/buffer-from/LICENSE +21 -0
  166. handyhelpers/static/node_modules/buffer-from/index.js +72 -0
  167. handyhelpers/static/node_modules/buffer-from/package.json +19 -0
  168. handyhelpers/static/node_modules/buffer-from/readme.md +69 -0
  169. handyhelpers/static/node_modules/camel-case/LICENSE +21 -0
  170. handyhelpers/static/node_modules/camel-case/README.md +47 -0
  171. handyhelpers/static/node_modules/camel-case/dist/index.d.ts +5 -0
  172. handyhelpers/static/node_modules/camel-case/dist/index.js +23 -0
  173. handyhelpers/static/node_modules/camel-case/dist/index.js.map +1 -0
  174. handyhelpers/static/node_modules/camel-case/dist/index.spec.d.ts +1 -0
  175. handyhelpers/static/node_modules/camel-case/dist/index.spec.js +26 -0
  176. handyhelpers/static/node_modules/camel-case/dist/index.spec.js.map +1 -0
  177. handyhelpers/static/node_modules/camel-case/dist.es2015/index.d.ts +5 -0
  178. handyhelpers/static/node_modules/camel-case/dist.es2015/index.js +17 -0
  179. handyhelpers/static/node_modules/camel-case/dist.es2015/index.js.map +1 -0
  180. handyhelpers/static/node_modules/camel-case/dist.es2015/index.spec.d.ts +1 -0
  181. handyhelpers/static/node_modules/camel-case/dist.es2015/index.spec.js +24 -0
  182. handyhelpers/static/node_modules/camel-case/dist.es2015/index.spec.js.map +1 -0
  183. handyhelpers/static/node_modules/camel-case/package.json +89 -0
  184. handyhelpers/static/node_modules/clean-css/History.md +1504 -0
  185. handyhelpers/static/node_modules/clean-css/LICENSE +19 -0
  186. handyhelpers/static/node_modules/clean-css/README.md +987 -0
  187. handyhelpers/static/node_modules/clean-css/index.js +1 -0
  188. handyhelpers/static/node_modules/clean-css/package.json +48 -0
  189. handyhelpers/static/node_modules/commander/LICENSE +22 -0
  190. handyhelpers/static/node_modules/commander/Readme.md +1134 -0
  191. handyhelpers/static/node_modules/commander/esm.mjs +16 -0
  192. handyhelpers/static/node_modules/commander/index.js +27 -0
  193. handyhelpers/static/node_modules/commander/package-support.json +16 -0
  194. handyhelpers/static/node_modules/commander/package.json +80 -0
  195. handyhelpers/static/node_modules/commander/typings/index.d.ts +889 -0
  196. handyhelpers/static/node_modules/css-b64-images/.npmignore +15 -0
  197. handyhelpers/static/node_modules/css-b64-images/.travis.yml +5 -0
  198. handyhelpers/static/node_modules/css-b64-images/README.md +78 -0
  199. handyhelpers/static/node_modules/css-b64-images/bin/css-b64-images +13 -0
  200. handyhelpers/static/node_modules/css-b64-images/draft.png +0 -0
  201. handyhelpers/static/node_modules/css-b64-images/draft.xcf +0 -0
  202. handyhelpers/static/node_modules/css-b64-images/package.json +30 -0
  203. handyhelpers/static/node_modules/css-b64-images/test/css-b64-images-test.js +38 -0
  204. handyhelpers/static/node_modules/css-b64-images/test/fixture/css/style.css +52 -0
  205. handyhelpers/static/node_modules/css-b64-images/test/fixture/fonts/callunasansregular-webfont.eot +0 -0
  206. handyhelpers/static/node_modules/css-b64-images/test/fixture/fonts/callunasansregular-webfont.svg +248 -0
  207. handyhelpers/static/node_modules/css-b64-images/test/fixture/fonts/callunasansregular-webfont.ttf +0 -0
  208. handyhelpers/static/node_modules/css-b64-images/test/fixture/fonts/callunasansregular-webfont.woff +0 -0
  209. handyhelpers/static/node_modules/css-b64-images/test/fixture/fonts/maven_pro_medium-webfont.eot +0 -0
  210. handyhelpers/static/node_modules/css-b64-images/test/fixture/fonts/maven_pro_medium-webfont.svg +245 -0
  211. handyhelpers/static/node_modules/css-b64-images/test/fixture/fonts/maven_pro_medium-webfont.ttf +0 -0
  212. handyhelpers/static/node_modules/css-b64-images/test/fixture/fonts/maven_pro_medium-webfont.woff +0 -0
  213. handyhelpers/static/node_modules/css-b64-images/test/fixture/img/background-pattern.gif +0 -0
  214. handyhelpers/static/node_modules/css-b64-images/test/fixture/img/dots.svg +6 -0
  215. handyhelpers/static/node_modules/css-b64-images/test/fixture/img/mixit-banner.png +0 -0
  216. handyhelpers/static/node_modules/debug/LICENSE +20 -0
  217. handyhelpers/static/node_modules/debug/README.md +481 -0
  218. handyhelpers/static/node_modules/debug/package.json +65 -0
  219. handyhelpers/static/node_modules/debug/src/browser.js +272 -0
  220. handyhelpers/static/node_modules/debug/src/common.js +292 -0
  221. handyhelpers/static/node_modules/debug/src/index.js +10 -0
  222. handyhelpers/static/node_modules/debug/src/node.js +263 -0
  223. handyhelpers/static/node_modules/dot-case/LICENSE +21 -0
  224. handyhelpers/static/node_modules/dot-case/README.md +37 -0
  225. handyhelpers/static/node_modules/dot-case/dist/index.d.ts +3 -0
  226. handyhelpers/static/node_modules/dot-case/dist/index.js +11 -0
  227. handyhelpers/static/node_modules/dot-case/dist/index.js.map +1 -0
  228. handyhelpers/static/node_modules/dot-case/dist/index.spec.d.ts +1 -0
  229. handyhelpers/static/node_modules/dot-case/dist/index.spec.js +26 -0
  230. handyhelpers/static/node_modules/dot-case/dist/index.spec.js.map +1 -0
  231. handyhelpers/static/node_modules/dot-case/dist.es2015/index.d.ts +3 -0
  232. handyhelpers/static/node_modules/dot-case/dist.es2015/index.js +7 -0
  233. handyhelpers/static/node_modules/dot-case/dist.es2015/index.js.map +1 -0
  234. handyhelpers/static/node_modules/dot-case/dist.es2015/index.spec.d.ts +1 -0
  235. handyhelpers/static/node_modules/dot-case/dist.es2015/index.spec.js +24 -0
  236. handyhelpers/static/node_modules/dot-case/dist.es2015/index.spec.js.map +1 -0
  237. handyhelpers/static/node_modules/dot-case/package.json +89 -0
  238. handyhelpers/static/node_modules/entities/LICENSE +11 -0
  239. handyhelpers/static/node_modules/entities/package.json +90 -0
  240. handyhelpers/static/node_modules/entities/readme.md +122 -0
  241. handyhelpers/static/node_modules/esbuild/LICENSE.md +21 -0
  242. handyhelpers/static/node_modules/esbuild/README.md +3 -0
  243. handyhelpers/static/node_modules/esbuild/bin/esbuild +0 -0
  244. handyhelpers/static/node_modules/esbuild/install.js +286 -0
  245. handyhelpers/static/node_modules/esbuild/package.json +47 -0
  246. handyhelpers/static/node_modules/find-up/index.d.ts +247 -0
  247. handyhelpers/static/node_modules/find-up/index.js +107 -0
  248. handyhelpers/static/node_modules/find-up/license +9 -0
  249. handyhelpers/static/node_modules/find-up/package.json +61 -0
  250. handyhelpers/static/node_modules/find-up/readme.md +160 -0
  251. handyhelpers/static/node_modules/fun-effects/LICENSE +674 -0
  252. handyhelpers/static/node_modules/fun-effects/README.md +10 -0
  253. handyhelpers/static/node_modules/fun-effects/dist/css/background_icons.min.css +1 -0
  254. handyhelpers/static/node_modules/fun-effects/dist/css/blur_group.min.css +1 -0
  255. handyhelpers/static/node_modules/fun-effects/dist/css/fades.min.css +1 -0
  256. handyhelpers/static/node_modules/fun-effects/dist/css/marquee.min.css +1 -0
  257. handyhelpers/static/node_modules/fun-effects/dist/css/scroller.min.css +1 -0
  258. handyhelpers/static/node_modules/fun-effects/dist/index.js +15 -0
  259. handyhelpers/static/node_modules/fun-effects/dist/js/background_icons.min.js +1 -0
  260. handyhelpers/static/node_modules/fun-effects/dist/js/marquee.min.js +1 -0
  261. handyhelpers/static/node_modules/fun-effects/dist/js/scroller.min.js +1 -0
  262. handyhelpers/static/node_modules/fun-effects/package.json +39 -0
  263. handyhelpers/static/node_modules/fun-effects/src/css/background_icons.css +39 -0
  264. handyhelpers/static/node_modules/fun-effects/src/css/blur_group.css +22 -0
  265. handyhelpers/static/node_modules/fun-effects/src/css/fades.css +94 -0
  266. handyhelpers/static/node_modules/fun-effects/src/css/marquee.css +45 -0
  267. handyhelpers/static/node_modules/fun-effects/src/css/scroller.css +144 -0
  268. handyhelpers/static/node_modules/fun-effects/src/index.js +15 -0
  269. handyhelpers/static/node_modules/fun-effects/src/js/background_icons.js +101 -0
  270. handyhelpers/static/node_modules/fun-effects/src/js/marquee.js +81 -0
  271. handyhelpers/static/node_modules/fun-effects/src/js/scroller.js +37 -0
  272. handyhelpers/static/node_modules/html-minifier-terser/LICENSE +22 -0
  273. handyhelpers/static/node_modules/html-minifier-terser/README.md +168 -0
  274. handyhelpers/static/node_modules/html-minifier-terser/cli.js +308 -0
  275. handyhelpers/static/node_modules/html-minifier-terser/dist/htmlminifier.cjs +1857 -0
  276. handyhelpers/static/node_modules/html-minifier-terser/dist/htmlminifier.esm.bundle.js +57509 -0
  277. handyhelpers/static/node_modules/html-minifier-terser/dist/htmlminifier.umd.bundle.js +57520 -0
  278. handyhelpers/static/node_modules/html-minifier-terser/dist/htmlminifier.umd.bundle.min.js +9 -0
  279. handyhelpers/static/node_modules/html-minifier-terser/package.json +105 -0
  280. handyhelpers/static/node_modules/html-minifier-terser/src/htmlminifier.js +1366 -0
  281. handyhelpers/static/node_modules/html-minifier-terser/src/htmlparser.js +565 -0
  282. handyhelpers/static/node_modules/html-minifier-terser/src/tokenchain.js +68 -0
  283. handyhelpers/static/node_modules/html-minifier-terser/src/utils.js +11 -0
  284. handyhelpers/static/node_modules/jju/LICENSE +21 -0
  285. handyhelpers/static/node_modules/jju/Makefile +20 -0
  286. handyhelpers/static/node_modules/jju/README.md +249 -0
  287. handyhelpers/static/node_modules/jju/index.js +32 -0
  288. handyhelpers/static/node_modules/jju/package.json +34 -0
  289. handyhelpers/static/node_modules/jju/package.yaml +36 -0
  290. handyhelpers/static/node_modules/locate-path/index.d.ts +92 -0
  291. handyhelpers/static/node_modules/locate-path/index.js +77 -0
  292. handyhelpers/static/node_modules/locate-path/license +9 -0
  293. handyhelpers/static/node_modules/locate-path/package.json +48 -0
  294. handyhelpers/static/node_modules/locate-path/readme.md +123 -0
  295. handyhelpers/static/node_modules/lower-case/LICENSE +21 -0
  296. handyhelpers/static/node_modules/lower-case/README.md +35 -0
  297. handyhelpers/static/node_modules/lower-case/dist/index.d.ts +8 -0
  298. handyhelpers/static/node_modules/lower-case/dist/index.js +53 -0
  299. handyhelpers/static/node_modules/lower-case/dist/index.js.map +1 -0
  300. handyhelpers/static/node_modules/lower-case/dist/index.spec.d.ts +1 -0
  301. handyhelpers/static/node_modules/lower-case/dist/index.spec.js +36 -0
  302. handyhelpers/static/node_modules/lower-case/dist/index.spec.js.map +1 -0
  303. handyhelpers/static/node_modules/lower-case/dist.es2015/index.d.ts +8 -0
  304. handyhelpers/static/node_modules/lower-case/dist.es2015/index.js +48 -0
  305. handyhelpers/static/node_modules/lower-case/dist.es2015/index.js.map +1 -0
  306. handyhelpers/static/node_modules/lower-case/dist.es2015/index.spec.d.ts +1 -0
  307. handyhelpers/static/node_modules/lower-case/dist.es2015/index.spec.js +34 -0
  308. handyhelpers/static/node_modules/lower-case/dist.es2015/index.spec.js.map +1 -0
  309. handyhelpers/static/node_modules/lower-case/package.json +87 -0
  310. handyhelpers/static/node_modules/minify/ChangeLog +1307 -0
  311. handyhelpers/static/node_modules/minify/LICENSE +22 -0
  312. handyhelpers/static/node_modules/minify/README.md +177 -0
  313. handyhelpers/static/node_modules/minify/bin/minify.js +98 -0
  314. handyhelpers/static/node_modules/minify/deno.json +5 -0
  315. handyhelpers/static/node_modules/minify/help.json +8 -0
  316. handyhelpers/static/node_modules/minify/package.json +65 -0
  317. handyhelpers/static/node_modules/ms/index.js +162 -0
  318. handyhelpers/static/node_modules/ms/license.md +21 -0
  319. handyhelpers/static/node_modules/ms/package.json +38 -0
  320. handyhelpers/static/node_modules/ms/readme.md +59 -0
  321. handyhelpers/static/node_modules/no-case/LICENSE +21 -0
  322. handyhelpers/static/node_modules/no-case/README.md +37 -0
  323. handyhelpers/static/node_modules/no-case/dist/index.d.ts +10 -0
  324. handyhelpers/static/node_modules/no-case/dist/index.js +35 -0
  325. handyhelpers/static/node_modules/no-case/dist/index.js.map +1 -0
  326. handyhelpers/static/node_modules/no-case/dist/index.spec.d.ts +1 -0
  327. handyhelpers/static/node_modules/no-case/dist/index.spec.js +59 -0
  328. handyhelpers/static/node_modules/no-case/dist/index.spec.js.map +1 -0
  329. handyhelpers/static/node_modules/no-case/dist.es2015/index.d.ts +10 -0
  330. handyhelpers/static/node_modules/no-case/dist.es2015/index.js +31 -0
  331. handyhelpers/static/node_modules/no-case/dist.es2015/index.js.map +1 -0
  332. handyhelpers/static/node_modules/no-case/dist.es2015/index.spec.d.ts +1 -0
  333. handyhelpers/static/node_modules/no-case/dist.es2015/index.spec.js +57 -0
  334. handyhelpers/static/node_modules/no-case/dist.es2015/index.spec.js.map +1 -0
  335. handyhelpers/static/node_modules/no-case/package.json +85 -0
  336. handyhelpers/static/node_modules/p-limit/index.d.ts +40 -0
  337. handyhelpers/static/node_modules/p-limit/index.js +68 -0
  338. handyhelpers/static/node_modules/p-limit/license +9 -0
  339. handyhelpers/static/node_modules/p-limit/package.json +54 -0
  340. handyhelpers/static/node_modules/p-limit/readme.md +99 -0
  341. handyhelpers/static/node_modules/p-locate/index.d.ts +49 -0
  342. handyhelpers/static/node_modules/p-locate/index.js +48 -0
  343. handyhelpers/static/node_modules/p-locate/license +9 -0
  344. handyhelpers/static/node_modules/p-locate/package.json +56 -0
  345. handyhelpers/static/node_modules/p-locate/readme.md +91 -0
  346. handyhelpers/static/node_modules/param-case/LICENSE +21 -0
  347. handyhelpers/static/node_modules/param-case/README.md +37 -0
  348. handyhelpers/static/node_modules/param-case/dist/index.d.ts +3 -0
  349. handyhelpers/static/node_modules/param-case/dist/index.js +11 -0
  350. handyhelpers/static/node_modules/param-case/dist/index.js.map +1 -0
  351. handyhelpers/static/node_modules/param-case/dist/index.spec.d.ts +1 -0
  352. handyhelpers/static/node_modules/param-case/dist/index.spec.js +24 -0
  353. handyhelpers/static/node_modules/param-case/dist/index.spec.js.map +1 -0
  354. handyhelpers/static/node_modules/param-case/dist.es2015/index.d.ts +3 -0
  355. handyhelpers/static/node_modules/param-case/dist.es2015/index.js +7 -0
  356. handyhelpers/static/node_modules/param-case/dist.es2015/index.js.map +1 -0
  357. handyhelpers/static/node_modules/param-case/dist.es2015/index.spec.d.ts +1 -0
  358. handyhelpers/static/node_modules/param-case/dist.es2015/index.spec.js +22 -0
  359. handyhelpers/static/node_modules/param-case/dist.es2015/index.spec.js.map +1 -0
  360. handyhelpers/static/node_modules/param-case/package.json +91 -0
  361. handyhelpers/static/node_modules/pascal-case/LICENSE +21 -0
  362. handyhelpers/static/node_modules/pascal-case/README.md +47 -0
  363. handyhelpers/static/node_modules/pascal-case/dist/index.d.ts +5 -0
  364. handyhelpers/static/node_modules/pascal-case/dist/index.js +24 -0
  365. handyhelpers/static/node_modules/pascal-case/dist/index.js.map +1 -0
  366. handyhelpers/static/node_modules/pascal-case/dist/index.spec.d.ts +1 -0
  367. handyhelpers/static/node_modules/pascal-case/dist/index.spec.js +25 -0
  368. handyhelpers/static/node_modules/pascal-case/dist/index.spec.js.map +1 -0
  369. handyhelpers/static/node_modules/pascal-case/dist.es2015/index.d.ts +5 -0
  370. handyhelpers/static/node_modules/pascal-case/dist.es2015/index.js +18 -0
  371. handyhelpers/static/node_modules/pascal-case/dist.es2015/index.js.map +1 -0
  372. handyhelpers/static/node_modules/pascal-case/dist.es2015/index.spec.d.ts +1 -0
  373. handyhelpers/static/node_modules/pascal-case/dist.es2015/index.spec.js +23 -0
  374. handyhelpers/static/node_modules/pascal-case/dist.es2015/index.spec.js.map +1 -0
  375. handyhelpers/static/node_modules/pascal-case/package.json +90 -0
  376. handyhelpers/static/node_modules/path-exists/index.d.ts +31 -0
  377. handyhelpers/static/node_modules/path-exists/index.js +19 -0
  378. handyhelpers/static/node_modules/path-exists/license +9 -0
  379. handyhelpers/static/node_modules/path-exists/package.json +41 -0
  380. handyhelpers/static/node_modules/path-exists/readme.md +52 -0
  381. handyhelpers/static/node_modules/readjson/ChangeLog +110 -0
  382. handyhelpers/static/node_modules/readjson/LICENSE +21 -0
  383. handyhelpers/static/node_modules/readjson/README.md +36 -0
  384. handyhelpers/static/node_modules/readjson/package.json +46 -0
  385. handyhelpers/static/node_modules/relateurl/README.md +159 -0
  386. handyhelpers/static/node_modules/relateurl/license +21 -0
  387. handyhelpers/static/node_modules/relateurl/package.json +46 -0
  388. handyhelpers/static/node_modules/simport/ChangeLog +77 -0
  389. handyhelpers/static/node_modules/simport/LICENSE +21 -0
  390. handyhelpers/static/node_modules/simport/README.md +81 -0
  391. handyhelpers/static/node_modules/simport/fixture/context.js +3 -0
  392. handyhelpers/static/node_modules/simport/fixture/default-frozen-function.mjs +2 -0
  393. handyhelpers/static/node_modules/simport/fixture/default-frozen-object.mjs +2 -0
  394. handyhelpers/static/node_modules/simport/package.json +65 -0
  395. handyhelpers/static/node_modules/simport/simport.js +84 -0
  396. handyhelpers/static/node_modules/simport/simport.mjs +22 -0
  397. handyhelpers/static/node_modules/source-map/CHANGELOG.md +301 -0
  398. handyhelpers/static/node_modules/source-map/LICENSE +28 -0
  399. handyhelpers/static/node_modules/source-map/README.md +742 -0
  400. handyhelpers/static/node_modules/source-map/dist/source-map.debug.js +3234 -0
  401. handyhelpers/static/node_modules/source-map/dist/source-map.js +3233 -0
  402. handyhelpers/static/node_modules/source-map/dist/source-map.min.js +2 -0
  403. handyhelpers/static/node_modules/source-map/dist/source-map.min.js.map +1 -0
  404. handyhelpers/static/node_modules/source-map/package.json +73 -0
  405. handyhelpers/static/node_modules/source-map/source-map.d.ts +98 -0
  406. handyhelpers/static/node_modules/source-map/source-map.js +8 -0
  407. handyhelpers/static/node_modules/source-map-support/LICENSE.md +21 -0
  408. handyhelpers/static/node_modules/source-map-support/README.md +284 -0
  409. handyhelpers/static/node_modules/source-map-support/browser-source-map-support.js +114 -0
  410. handyhelpers/static/node_modules/source-map-support/package.json +31 -0
  411. handyhelpers/static/node_modules/source-map-support/register-hook-require.js +1 -0
  412. handyhelpers/static/node_modules/source-map-support/register.js +1 -0
  413. handyhelpers/static/node_modules/source-map-support/source-map-support.js +625 -0
  414. handyhelpers/static/node_modules/terser/CHANGELOG.md +783 -0
  415. handyhelpers/static/node_modules/terser/LICENSE +27 -0
  416. handyhelpers/static/node_modules/terser/PATRONS.md +15 -0
  417. handyhelpers/static/node_modules/terser/README.md +1421 -0
  418. handyhelpers/static/node_modules/terser/bin/package.json +10 -0
  419. handyhelpers/static/node_modules/terser/bin/terser +21 -0
  420. handyhelpers/static/node_modules/terser/bin/uglifyjs +10 -0
  421. handyhelpers/static/node_modules/terser/dist/.gitkeep +0 -0
  422. handyhelpers/static/node_modules/terser/dist/bundle.min.js +32962 -0
  423. handyhelpers/static/node_modules/terser/dist/package.json +10 -0
  424. handyhelpers/static/node_modules/terser/main.js +27 -0
  425. handyhelpers/static/node_modules/terser/node_modules/commander/CHANGELOG.md +419 -0
  426. handyhelpers/static/node_modules/terser/node_modules/commander/LICENSE +22 -0
  427. handyhelpers/static/node_modules/terser/node_modules/commander/Readme.md +428 -0
  428. handyhelpers/static/node_modules/terser/node_modules/commander/index.js +1224 -0
  429. handyhelpers/static/node_modules/terser/node_modules/commander/package.json +38 -0
  430. handyhelpers/static/node_modules/terser/node_modules/commander/typings/index.d.ts +310 -0
  431. handyhelpers/static/node_modules/terser/package.json +153 -0
  432. handyhelpers/static/node_modules/terser/tools/domprops.js +9026 -0
  433. handyhelpers/static/node_modules/terser/tools/exit.cjs +7 -0
  434. handyhelpers/static/node_modules/terser/tools/props.html +68 -0
  435. handyhelpers/static/node_modules/terser/tools/terser.d.ts +216 -0
  436. handyhelpers/static/node_modules/tippy.js/LICENSE +21 -0
  437. handyhelpers/static/node_modules/tippy.js/README.md +63 -0
  438. handyhelpers/static/node_modules/tippy.js/animations/perspective-extreme.css +1 -0
  439. handyhelpers/static/node_modules/tippy.js/animations/perspective-subtle.css +1 -0
  440. handyhelpers/static/node_modules/tippy.js/animations/perspective.css +1 -0
  441. handyhelpers/static/node_modules/tippy.js/animations/scale-extreme.css +1 -0
  442. handyhelpers/static/node_modules/tippy.js/animations/scale-subtle.css +1 -0
  443. handyhelpers/static/node_modules/tippy.js/animations/scale.css +1 -0
  444. handyhelpers/static/node_modules/tippy.js/animations/shift-away-extreme.css +1 -0
  445. handyhelpers/static/node_modules/tippy.js/animations/shift-away-subtle.css +1 -0
  446. handyhelpers/static/node_modules/tippy.js/animations/shift-away.css +1 -0
  447. handyhelpers/static/node_modules/tippy.js/animations/shift-toward-extreme.css +1 -0
  448. handyhelpers/static/node_modules/tippy.js/animations/shift-toward-subtle.css +1 -0
  449. handyhelpers/static/node_modules/tippy.js/animations/shift-toward.css +1 -0
  450. handyhelpers/static/node_modules/tippy.js/dist/backdrop.css +1 -0
  451. handyhelpers/static/node_modules/tippy.js/dist/border.css +1 -0
  452. handyhelpers/static/node_modules/tippy.js/dist/svg-arrow.css +1 -0
  453. handyhelpers/static/node_modules/tippy.js/dist/tippy-bundle.umd.js +2516 -0
  454. handyhelpers/static/node_modules/tippy.js/dist/tippy-bundle.umd.js.map +1 -0
  455. handyhelpers/static/node_modules/tippy.js/dist/tippy-bundle.umd.min.js +2 -0
  456. handyhelpers/static/node_modules/tippy.js/dist/tippy-bundle.umd.min.js.map +1 -0
  457. handyhelpers/static/node_modules/tippy.js/dist/tippy.cjs.js +2497 -0
  458. handyhelpers/static/node_modules/tippy.js/dist/tippy.cjs.js.map +1 -0
  459. handyhelpers/static/node_modules/tippy.js/dist/tippy.css +1 -0
  460. handyhelpers/static/node_modules/tippy.js/dist/tippy.esm.js +2486 -0
  461. handyhelpers/static/node_modules/tippy.js/dist/tippy.esm.js.map +1 -0
  462. handyhelpers/static/node_modules/tippy.js/dist/tippy.umd.js +2496 -0
  463. handyhelpers/static/node_modules/tippy.js/dist/tippy.umd.js.map +1 -0
  464. handyhelpers/static/node_modules/tippy.js/dist/tippy.umd.min.js +2 -0
  465. handyhelpers/static/node_modules/tippy.js/dist/tippy.umd.min.js.map +1 -0
  466. handyhelpers/static/node_modules/tippy.js/headless/dist/tippy-headless.cjs.js +2388 -0
  467. handyhelpers/static/node_modules/tippy.js/headless/dist/tippy-headless.cjs.js.map +1 -0
  468. handyhelpers/static/node_modules/tippy.js/headless/dist/tippy-headless.esm.js +2377 -0
  469. handyhelpers/static/node_modules/tippy.js/headless/dist/tippy-headless.esm.js.map +1 -0
  470. handyhelpers/static/node_modules/tippy.js/headless/dist/tippy-headless.umd.js +2382 -0
  471. handyhelpers/static/node_modules/tippy.js/headless/dist/tippy-headless.umd.js.map +1 -0
  472. handyhelpers/static/node_modules/tippy.js/headless/dist/tippy-headless.umd.min.js +2 -0
  473. handyhelpers/static/node_modules/tippy.js/headless/dist/tippy-headless.umd.min.js.map +1 -0
  474. handyhelpers/static/node_modules/tippy.js/headless/package.json +16 -0
  475. handyhelpers/static/node_modules/tippy.js/index.d.ts +260 -0
  476. handyhelpers/static/node_modules/tippy.js/package.json +157 -0
  477. handyhelpers/static/node_modules/tippy.js/themes/light-border.css +1 -0
  478. handyhelpers/static/node_modules/tippy.js/themes/light.css +1 -0
  479. handyhelpers/static/node_modules/tippy.js/themes/material.css +1 -0
  480. handyhelpers/static/node_modules/tippy.js/themes/translucent.css +1 -0
  481. handyhelpers/static/node_modules/try-catch/ChangeLog +55 -0
  482. handyhelpers/static/node_modules/try-catch/LICENSE +21 -0
  483. handyhelpers/static/node_modules/try-catch/README.md +38 -0
  484. handyhelpers/static/node_modules/try-catch/package.json +34 -0
  485. handyhelpers/static/node_modules/try-to-catch/ChangeLog +64 -0
  486. handyhelpers/static/node_modules/try-to-catch/LICENSE +21 -0
  487. handyhelpers/static/node_modules/try-to-catch/README.md +74 -0
  488. handyhelpers/static/node_modules/try-to-catch/package.json +47 -0
  489. handyhelpers/static/node_modules/tslib/CopyrightNotice.txt +15 -0
  490. handyhelpers/static/node_modules/tslib/LICENSE.txt +12 -0
  491. handyhelpers/static/node_modules/tslib/README.md +164 -0
  492. handyhelpers/static/node_modules/tslib/SECURITY.md +41 -0
  493. handyhelpers/static/node_modules/tslib/modules/index.d.ts +38 -0
  494. handyhelpers/static/node_modules/tslib/modules/index.js +70 -0
  495. handyhelpers/static/node_modules/tslib/modules/package.json +3 -0
  496. handyhelpers/static/node_modules/tslib/package.json +47 -0
  497. handyhelpers/static/node_modules/tslib/tslib.d.ts +460 -0
  498. handyhelpers/static/node_modules/tslib/tslib.es6.html +1 -0
  499. handyhelpers/static/node_modules/tslib/tslib.es6.js +402 -0
  500. handyhelpers/static/node_modules/tslib/tslib.es6.mjs +401 -0
  501. handyhelpers/static/node_modules/tslib/tslib.html +1 -0
  502. handyhelpers/static/node_modules/tslib/tslib.js +484 -0
  503. handyhelpers/static/node_modules/uglify-js/LICENSE +29 -0
  504. handyhelpers/static/node_modules/uglify-js/README.md +1479 -0
  505. handyhelpers/static/node_modules/uglify-js/bin/uglifyjs +624 -0
  506. handyhelpers/static/node_modules/uglify-js/package.json +56 -0
  507. handyhelpers/static/node_modules/uglify-js/tools/domprops.html +456 -0
  508. handyhelpers/static/node_modules/uglify-js/tools/domprops.json +8327 -0
  509. handyhelpers/static/node_modules/uglify-js/tools/exports.js +8 -0
  510. handyhelpers/static/node_modules/uglify-js/tools/node.js +115 -0
  511. handyhelpers/static/node_modules/uglify-js/tools/tty.js +22 -0
  512. handyhelpers/static/node_modules/unicorn-magic/default.js +14 -0
  513. handyhelpers/static/node_modules/unicorn-magic/index.d.ts +29 -0
  514. handyhelpers/static/node_modules/unicorn-magic/license +9 -0
  515. handyhelpers/static/node_modules/unicorn-magic/node.js +7 -0
  516. handyhelpers/static/node_modules/unicorn-magic/package.json +49 -0
  517. handyhelpers/static/node_modules/unicorn-magic/readme.md +25 -0
  518. handyhelpers/static/node_modules/yocto-queue/index.d.ts +61 -0
  519. handyhelpers/static/node_modules/yocto-queue/index.js +78 -0
  520. handyhelpers/static/node_modules/yocto-queue/license +9 -0
  521. handyhelpers/static/node_modules/yocto-queue/package.json +48 -0
  522. handyhelpers/static/node_modules/yocto-queue/readme.md +70 -0
  523. handyhelpers/static/package.json +3 -1
  524. handyhelpers/static/yarn.lock +393 -20
  525. handyhelpers/templates/handyhelpers/generic/bs5/generic_index.html +5 -8
  526. handyhelpers/templates/handyhelpers/handyhelpers_base_bs5.htm +5 -1
  527. handyhelpers/templates/handyhelpers/handyhelpers_with_sidebar.htm +50 -3
  528. handyhelpers/templates/handyhelpers/htmx/bs5/filter_form/generic_modal_swap.htm +48 -0
  529. handyhelpers/templates/handyhelpers/htmx/bs5/form/form_wrapper.htm +48 -0
  530. handyhelpers/templates/handyhelpers/htmx/bs5/form/inline_form.htm +166 -0
  531. handyhelpers/templates/handyhelpers/htmx/bs5/form/inline_form_disabled.htm +125 -0
  532. handyhelpers/templates/handyhelpers/htmx/bs5/generic_modal_swap.htm +2 -3
  533. handyhelpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/content_title.htm +38 -0
  534. handyhelpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/controls.htm +21 -0
  535. handyhelpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/examples/card.htm +17 -0
  536. handyhelpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/examples/list.htm +11 -0
  537. handyhelpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/examples/table.htm +21 -0
  538. handyhelpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/filter_form_modal_swap.htm +48 -0
  539. handyhelpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/full.html +6 -0
  540. handyhelpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/wrapper_card.htm +7 -0
  541. handyhelpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/wrapper_list.htm +7 -0
  542. handyhelpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/wrapper_minimal.htm +7 -0
  543. handyhelpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/wrapper_table.htm +18 -0
  544. handyhelpers/templates/handyhelpers/htmx/bs5/index.htm +34 -0
  545. handyhelpers/templates/handyhelpers/report/annual_stats.html +6 -0
  546. handyhelpers/templates/handyhelpers/report/annual_stats_content.htm +43 -0
  547. handyhelpers/templates/handyhelpers/report/chartjs/annual_progress_chart.htm +1 -1
  548. handyhelpers/templates/handyhelpers/report/chartjs/annual_progress_content.htm +40 -39
  549. handyhelpers/templates/handyhelpers/report/chartjs/annual_stats.html +25 -36
  550. handyhelpers/templates/handyhelpers/report/chartjs/annual_trends_content.htm +35 -34
  551. handyhelpers/templates/handyhelpers/report/chartjs/day_count_chart.htm +1 -1
  552. handyhelpers/templates/handyhelpers/report/chartjs/month_count_chart.htm +1 -1
  553. handyhelpers/templates/handyhelpers/report/chartjs/week_count_chart.htm +1 -1
  554. handyhelpers/templates/handyhelpers/report/chartjs/year_count_chart.htm +1 -1
  555. handyhelpers/templatetags/form_tags.py +47 -0
  556. handyhelpers/templatetags/htmx_tags.py +21 -0
  557. handyhelpers/views/action.py +3 -1
  558. handyhelpers/views/calendar.py +33 -14
  559. handyhelpers/views/htmx.py +396 -4
  560. handyhelpers/views/report.py +12 -5
  561. handyhelpers/management/commands/generate_admin.py +0 -110
  562. handyhelpers/static/node_modules/@popperjs/core/dist/esm/utils/format.js +0 -9
  563. handyhelpers/static/node_modules/@popperjs/core/dist/esm/utils/validateModifiers.js +0 -81
  564. handyhelpers/static/node_modules/@popperjs/core/lib/utils/format.d.ts +0 -1
  565. handyhelpers/static/node_modules/@popperjs/core/lib/utils/format.js +0 -9
  566. handyhelpers/static/node_modules/@popperjs/core/lib/utils/format.js.flow +0 -5
  567. handyhelpers/static/node_modules/@popperjs/core/lib/utils/validateModifiers.d.ts +0 -1
  568. handyhelpers/static/node_modules/@popperjs/core/lib/utils/validateModifiers.js +0 -81
  569. handyhelpers/static/node_modules/@popperjs/core/lib/utils/validateModifiers.js.flow +0 -151
  570. {django_handyhelpers-0.3.20.dist-info → django_handyhelpers-0.3.35.dist-info}/LICENSE +0 -0
  571. {django_handyhelpers-0.3.20.dist-info → django_handyhelpers-0.3.35.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,2377 @@
1
+ /**!
2
+ * tippy.js v6.3.7
3
+ * (c) 2017-2021 atomiks
4
+ * MIT License
5
+ */
6
+ import { createPopper, applyStyles } from '@popperjs/core';
7
+
8
+ var ROUND_ARROW = '<svg width="16" height="6" xmlns="http://www.w3.org/2000/svg"><path d="M0 6s1.796-.013 4.67-3.615C5.851.9 6.93.006 8 0c1.07-.006 2.148.887 3.343 2.385C14.233 6.005 16 6 16 6H0z"></svg>';
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
+ function getChildren(popper) {
465
+ var box = popper.firstElementChild;
466
+ var boxChildren = arrayFrom(box.children);
467
+ return {
468
+ box: box,
469
+ content: boxChildren.find(function (node) {
470
+ return node.classList.contains(CONTENT_CLASS);
471
+ }),
472
+ arrow: boxChildren.find(function (node) {
473
+ return node.classList.contains(ARROW_CLASS) || node.classList.contains(SVG_ARROW_CLASS);
474
+ }),
475
+ backdrop: boxChildren.find(function (node) {
476
+ return node.classList.contains(BACKDROP_CLASS);
477
+ })
478
+ };
479
+ }
480
+
481
+ var idCounter = 1;
482
+ var mouseMoveListeners = []; // Used by `hideAll()`
483
+
484
+ var mountedInstances = [];
485
+ function createTippy(reference, passedProps) {
486
+ var props = evaluateProps(reference, Object.assign({}, defaultProps, getExtendedPassedProps(removeUndefinedProps(passedProps)))); // ===========================================================================
487
+ // 🔒 Private members
488
+ // ===========================================================================
489
+
490
+ var showTimeout;
491
+ var hideTimeout;
492
+ var scheduleHideAnimationFrame;
493
+ var isVisibleFromClick = false;
494
+ var didHideDueToDocumentMouseDown = false;
495
+ var didTouchMove = false;
496
+ var ignoreOnFirstUpdate = false;
497
+ var lastTriggerEvent;
498
+ var currentTransitionEndListener;
499
+ var onFirstUpdate;
500
+ var listeners = [];
501
+ var debouncedOnMouseMove = debounce(onMouseMove, props.interactiveDebounce);
502
+ var currentTarget; // ===========================================================================
503
+ // 🔑 Public members
504
+ // ===========================================================================
505
+
506
+ var id = idCounter++;
507
+ var popperInstance = null;
508
+ var plugins = unique(props.plugins);
509
+ var state = {
510
+ // Is the instance currently enabled?
511
+ isEnabled: true,
512
+ // Is the tippy currently showing and not transitioning out?
513
+ isVisible: false,
514
+ // Has the instance been destroyed?
515
+ isDestroyed: false,
516
+ // Is the tippy currently mounted to the DOM?
517
+ isMounted: false,
518
+ // Has the tippy finished transitioning in?
519
+ isShown: false
520
+ };
521
+ var instance = {
522
+ // properties
523
+ id: id,
524
+ reference: reference,
525
+ popper: div(),
526
+ popperInstance: popperInstance,
527
+ props: props,
528
+ state: state,
529
+ plugins: plugins,
530
+ // methods
531
+ clearDelayTimeouts: clearDelayTimeouts,
532
+ setProps: setProps,
533
+ setContent: setContent,
534
+ show: show,
535
+ hide: hide,
536
+ hideWithInteractivity: hideWithInteractivity,
537
+ enable: enable,
538
+ disable: disable,
539
+ unmount: unmount,
540
+ destroy: destroy
541
+ }; // TODO: Investigate why this early return causes a TDZ error in the tests —
542
+ // it doesn't seem to happen in the browser
543
+
544
+ /* istanbul ignore if */
545
+
546
+ if (!props.render) {
547
+ if (process.env.NODE_ENV !== "production") {
548
+ errorWhen(true, 'render() function has not been supplied.');
549
+ }
550
+
551
+ return instance;
552
+ } // ===========================================================================
553
+ // Initial mutations
554
+ // ===========================================================================
555
+
556
+
557
+ var _props$render = props.render(instance),
558
+ popper = _props$render.popper,
559
+ onUpdate = _props$render.onUpdate;
560
+
561
+ popper.setAttribute('data-tippy-root', '');
562
+ popper.id = "tippy-" + instance.id;
563
+ instance.popper = popper;
564
+ reference._tippy = instance;
565
+ popper._tippy = instance;
566
+ var pluginsHooks = plugins.map(function (plugin) {
567
+ return plugin.fn(instance);
568
+ });
569
+ var hasAriaExpanded = reference.hasAttribute('aria-expanded');
570
+ addListeners();
571
+ handleAriaExpandedAttribute();
572
+ handleStyles();
573
+ invokeHook('onCreate', [instance]);
574
+
575
+ if (props.showOnCreate) {
576
+ scheduleShow();
577
+ } // Prevent a tippy with a delay from hiding if the cursor left then returned
578
+ // before it started hiding
579
+
580
+
581
+ popper.addEventListener('mouseenter', function () {
582
+ if (instance.props.interactive && instance.state.isVisible) {
583
+ instance.clearDelayTimeouts();
584
+ }
585
+ });
586
+ popper.addEventListener('mouseleave', function () {
587
+ if (instance.props.interactive && instance.props.trigger.indexOf('mouseenter') >= 0) {
588
+ getDocument().addEventListener('mousemove', debouncedOnMouseMove);
589
+ }
590
+ });
591
+ return instance; // ===========================================================================
592
+ // 🔒 Private methods
593
+ // ===========================================================================
594
+
595
+ function getNormalizedTouchSettings() {
596
+ var touch = instance.props.touch;
597
+ return Array.isArray(touch) ? touch : [touch, 0];
598
+ }
599
+
600
+ function getIsCustomTouchBehavior() {
601
+ return getNormalizedTouchSettings()[0] === 'hold';
602
+ }
603
+
604
+ function getIsDefaultRenderFn() {
605
+ var _instance$props$rende;
606
+
607
+ // @ts-ignore
608
+ return !!((_instance$props$rende = instance.props.render) != null && _instance$props$rende.$$tippy);
609
+ }
610
+
611
+ function getCurrentTarget() {
612
+ return currentTarget || reference;
613
+ }
614
+
615
+ function getDocument() {
616
+ var parent = getCurrentTarget().parentNode;
617
+ return parent ? getOwnerDocument(parent) : document;
618
+ }
619
+
620
+ function getDefaultTemplateChildren() {
621
+ return getChildren(popper);
622
+ }
623
+
624
+ function getDelay(isShow) {
625
+ // For touch or keyboard input, force `0` delay for UX reasons
626
+ // Also if the instance is mounted but not visible (transitioning out),
627
+ // ignore delay
628
+ if (instance.state.isMounted && !instance.state.isVisible || currentInput.isTouch || lastTriggerEvent && lastTriggerEvent.type === 'focus') {
629
+ return 0;
630
+ }
631
+
632
+ return getValueAtIndexOrReturn(instance.props.delay, isShow ? 0 : 1, defaultProps.delay);
633
+ }
634
+
635
+ function handleStyles(fromHide) {
636
+ if (fromHide === void 0) {
637
+ fromHide = false;
638
+ }
639
+
640
+ popper.style.pointerEvents = instance.props.interactive && !fromHide ? '' : 'none';
641
+ popper.style.zIndex = "" + instance.props.zIndex;
642
+ }
643
+
644
+ function invokeHook(hook, args, shouldInvokePropsHook) {
645
+ if (shouldInvokePropsHook === void 0) {
646
+ shouldInvokePropsHook = true;
647
+ }
648
+
649
+ pluginsHooks.forEach(function (pluginHooks) {
650
+ if (pluginHooks[hook]) {
651
+ pluginHooks[hook].apply(pluginHooks, args);
652
+ }
653
+ });
654
+
655
+ if (shouldInvokePropsHook) {
656
+ var _instance$props;
657
+
658
+ (_instance$props = instance.props)[hook].apply(_instance$props, args);
659
+ }
660
+ }
661
+
662
+ function handleAriaContentAttribute() {
663
+ var aria = instance.props.aria;
664
+
665
+ if (!aria.content) {
666
+ return;
667
+ }
668
+
669
+ var attr = "aria-" + aria.content;
670
+ var id = popper.id;
671
+ var nodes = normalizeToArray(instance.props.triggerTarget || reference);
672
+ nodes.forEach(function (node) {
673
+ var currentValue = node.getAttribute(attr);
674
+
675
+ if (instance.state.isVisible) {
676
+ node.setAttribute(attr, currentValue ? currentValue + " " + id : id);
677
+ } else {
678
+ var nextValue = currentValue && currentValue.replace(id, '').trim();
679
+
680
+ if (nextValue) {
681
+ node.setAttribute(attr, nextValue);
682
+ } else {
683
+ node.removeAttribute(attr);
684
+ }
685
+ }
686
+ });
687
+ }
688
+
689
+ function handleAriaExpandedAttribute() {
690
+ if (hasAriaExpanded || !instance.props.aria.expanded) {
691
+ return;
692
+ }
693
+
694
+ var nodes = normalizeToArray(instance.props.triggerTarget || reference);
695
+ nodes.forEach(function (node) {
696
+ if (instance.props.interactive) {
697
+ node.setAttribute('aria-expanded', instance.state.isVisible && node === getCurrentTarget() ? 'true' : 'false');
698
+ } else {
699
+ node.removeAttribute('aria-expanded');
700
+ }
701
+ });
702
+ }
703
+
704
+ function cleanupInteractiveMouseListeners() {
705
+ getDocument().removeEventListener('mousemove', debouncedOnMouseMove);
706
+ mouseMoveListeners = mouseMoveListeners.filter(function (listener) {
707
+ return listener !== debouncedOnMouseMove;
708
+ });
709
+ }
710
+
711
+ function onDocumentPress(event) {
712
+ // Moved finger to scroll instead of an intentional tap outside
713
+ if (currentInput.isTouch) {
714
+ if (didTouchMove || event.type === 'mousedown') {
715
+ return;
716
+ }
717
+ }
718
+
719
+ var actualTarget = event.composedPath && event.composedPath()[0] || event.target; // Clicked on interactive popper
720
+
721
+ if (instance.props.interactive && actualContains(popper, actualTarget)) {
722
+ return;
723
+ } // Clicked on the event listeners target
724
+
725
+
726
+ if (normalizeToArray(instance.props.triggerTarget || reference).some(function (el) {
727
+ return actualContains(el, actualTarget);
728
+ })) {
729
+ if (currentInput.isTouch) {
730
+ return;
731
+ }
732
+
733
+ if (instance.state.isVisible && instance.props.trigger.indexOf('click') >= 0) {
734
+ return;
735
+ }
736
+ } else {
737
+ invokeHook('onClickOutside', [instance, event]);
738
+ }
739
+
740
+ if (instance.props.hideOnClick === true) {
741
+ instance.clearDelayTimeouts();
742
+ instance.hide(); // `mousedown` event is fired right before `focus` if pressing the
743
+ // currentTarget. This lets a tippy with `focus` trigger know that it
744
+ // should not show
745
+
746
+ didHideDueToDocumentMouseDown = true;
747
+ setTimeout(function () {
748
+ didHideDueToDocumentMouseDown = false;
749
+ }); // The listener gets added in `scheduleShow()`, but this may be hiding it
750
+ // before it shows, and hide()'s early bail-out behavior can prevent it
751
+ // from being cleaned up
752
+
753
+ if (!instance.state.isMounted) {
754
+ removeDocumentPress();
755
+ }
756
+ }
757
+ }
758
+
759
+ function onTouchMove() {
760
+ didTouchMove = true;
761
+ }
762
+
763
+ function onTouchStart() {
764
+ didTouchMove = false;
765
+ }
766
+
767
+ function addDocumentPress() {
768
+ var doc = getDocument();
769
+ doc.addEventListener('mousedown', onDocumentPress, true);
770
+ doc.addEventListener('touchend', onDocumentPress, TOUCH_OPTIONS);
771
+ doc.addEventListener('touchstart', onTouchStart, TOUCH_OPTIONS);
772
+ doc.addEventListener('touchmove', onTouchMove, TOUCH_OPTIONS);
773
+ }
774
+
775
+ function removeDocumentPress() {
776
+ var doc = getDocument();
777
+ doc.removeEventListener('mousedown', onDocumentPress, true);
778
+ doc.removeEventListener('touchend', onDocumentPress, TOUCH_OPTIONS);
779
+ doc.removeEventListener('touchstart', onTouchStart, TOUCH_OPTIONS);
780
+ doc.removeEventListener('touchmove', onTouchMove, TOUCH_OPTIONS);
781
+ }
782
+
783
+ function onTransitionedOut(duration, callback) {
784
+ onTransitionEnd(duration, function () {
785
+ if (!instance.state.isVisible && popper.parentNode && popper.parentNode.contains(popper)) {
786
+ callback();
787
+ }
788
+ });
789
+ }
790
+
791
+ function onTransitionedIn(duration, callback) {
792
+ onTransitionEnd(duration, callback);
793
+ }
794
+
795
+ function onTransitionEnd(duration, callback) {
796
+ var box = getDefaultTemplateChildren().box;
797
+
798
+ function listener(event) {
799
+ if (event.target === box) {
800
+ updateTransitionEndListener(box, 'remove', listener);
801
+ callback();
802
+ }
803
+ } // Make callback synchronous if duration is 0
804
+ // `transitionend` won't fire otherwise
805
+
806
+
807
+ if (duration === 0) {
808
+ return callback();
809
+ }
810
+
811
+ updateTransitionEndListener(box, 'remove', currentTransitionEndListener);
812
+ updateTransitionEndListener(box, 'add', listener);
813
+ currentTransitionEndListener = listener;
814
+ }
815
+
816
+ function on(eventType, handler, options) {
817
+ if (options === void 0) {
818
+ options = false;
819
+ }
820
+
821
+ var nodes = normalizeToArray(instance.props.triggerTarget || reference);
822
+ nodes.forEach(function (node) {
823
+ node.addEventListener(eventType, handler, options);
824
+ listeners.push({
825
+ node: node,
826
+ eventType: eventType,
827
+ handler: handler,
828
+ options: options
829
+ });
830
+ });
831
+ }
832
+
833
+ function addListeners() {
834
+ if (getIsCustomTouchBehavior()) {
835
+ on('touchstart', onTrigger, {
836
+ passive: true
837
+ });
838
+ on('touchend', onMouseLeave, {
839
+ passive: true
840
+ });
841
+ }
842
+
843
+ splitBySpaces(instance.props.trigger).forEach(function (eventType) {
844
+ if (eventType === 'manual') {
845
+ return;
846
+ }
847
+
848
+ on(eventType, onTrigger);
849
+
850
+ switch (eventType) {
851
+ case 'mouseenter':
852
+ on('mouseleave', onMouseLeave);
853
+ break;
854
+
855
+ case 'focus':
856
+ on(isIE11 ? 'focusout' : 'blur', onBlurOrFocusOut);
857
+ break;
858
+
859
+ case 'focusin':
860
+ on('focusout', onBlurOrFocusOut);
861
+ break;
862
+ }
863
+ });
864
+ }
865
+
866
+ function removeListeners() {
867
+ listeners.forEach(function (_ref) {
868
+ var node = _ref.node,
869
+ eventType = _ref.eventType,
870
+ handler = _ref.handler,
871
+ options = _ref.options;
872
+ node.removeEventListener(eventType, handler, options);
873
+ });
874
+ listeners = [];
875
+ }
876
+
877
+ function onTrigger(event) {
878
+ var _lastTriggerEvent;
879
+
880
+ var shouldScheduleClickHide = false;
881
+
882
+ if (!instance.state.isEnabled || isEventListenerStopped(event) || didHideDueToDocumentMouseDown) {
883
+ return;
884
+ }
885
+
886
+ var wasFocused = ((_lastTriggerEvent = lastTriggerEvent) == null ? void 0 : _lastTriggerEvent.type) === 'focus';
887
+ lastTriggerEvent = event;
888
+ currentTarget = event.currentTarget;
889
+ handleAriaExpandedAttribute();
890
+
891
+ if (!instance.state.isVisible && isMouseEvent(event)) {
892
+ // If scrolling, `mouseenter` events can be fired if the cursor lands
893
+ // over a new target, but `mousemove` events don't get fired. This
894
+ // causes interactive tooltips to get stuck open until the cursor is
895
+ // moved
896
+ mouseMoveListeners.forEach(function (listener) {
897
+ return listener(event);
898
+ });
899
+ } // Toggle show/hide when clicking click-triggered tooltips
900
+
901
+
902
+ if (event.type === 'click' && (instance.props.trigger.indexOf('mouseenter') < 0 || isVisibleFromClick) && instance.props.hideOnClick !== false && instance.state.isVisible) {
903
+ shouldScheduleClickHide = true;
904
+ } else {
905
+ scheduleShow(event);
906
+ }
907
+
908
+ if (event.type === 'click') {
909
+ isVisibleFromClick = !shouldScheduleClickHide;
910
+ }
911
+
912
+ if (shouldScheduleClickHide && !wasFocused) {
913
+ scheduleHide(event);
914
+ }
915
+ }
916
+
917
+ function onMouseMove(event) {
918
+ var target = event.target;
919
+ var isCursorOverReferenceOrPopper = getCurrentTarget().contains(target) || popper.contains(target);
920
+
921
+ if (event.type === 'mousemove' && isCursorOverReferenceOrPopper) {
922
+ return;
923
+ }
924
+
925
+ var popperTreeData = getNestedPopperTree().concat(popper).map(function (popper) {
926
+ var _instance$popperInsta;
927
+
928
+ var instance = popper._tippy;
929
+ var state = (_instance$popperInsta = instance.popperInstance) == null ? void 0 : _instance$popperInsta.state;
930
+
931
+ if (state) {
932
+ return {
933
+ popperRect: popper.getBoundingClientRect(),
934
+ popperState: state,
935
+ props: props
936
+ };
937
+ }
938
+
939
+ return null;
940
+ }).filter(Boolean);
941
+
942
+ if (isCursorOutsideInteractiveBorder(popperTreeData, event)) {
943
+ cleanupInteractiveMouseListeners();
944
+ scheduleHide(event);
945
+ }
946
+ }
947
+
948
+ function onMouseLeave(event) {
949
+ var shouldBail = isEventListenerStopped(event) || instance.props.trigger.indexOf('click') >= 0 && isVisibleFromClick;
950
+
951
+ if (shouldBail) {
952
+ return;
953
+ }
954
+
955
+ if (instance.props.interactive) {
956
+ instance.hideWithInteractivity(event);
957
+ return;
958
+ }
959
+
960
+ scheduleHide(event);
961
+ }
962
+
963
+ function onBlurOrFocusOut(event) {
964
+ if (instance.props.trigger.indexOf('focusin') < 0 && event.target !== getCurrentTarget()) {
965
+ return;
966
+ } // If focus was moved to within the popper
967
+
968
+
969
+ if (instance.props.interactive && event.relatedTarget && popper.contains(event.relatedTarget)) {
970
+ return;
971
+ }
972
+
973
+ scheduleHide(event);
974
+ }
975
+
976
+ function isEventListenerStopped(event) {
977
+ return currentInput.isTouch ? getIsCustomTouchBehavior() !== event.type.indexOf('touch') >= 0 : false;
978
+ }
979
+
980
+ function createPopperInstance() {
981
+ destroyPopperInstance();
982
+ var _instance$props2 = instance.props,
983
+ popperOptions = _instance$props2.popperOptions,
984
+ placement = _instance$props2.placement,
985
+ offset = _instance$props2.offset,
986
+ getReferenceClientRect = _instance$props2.getReferenceClientRect,
987
+ moveTransition = _instance$props2.moveTransition;
988
+ var arrow = getIsDefaultRenderFn() ? getChildren(popper).arrow : null;
989
+ var computedReference = getReferenceClientRect ? {
990
+ getBoundingClientRect: getReferenceClientRect,
991
+ contextElement: getReferenceClientRect.contextElement || getCurrentTarget()
992
+ } : reference;
993
+ var tippyModifier = {
994
+ name: '$$tippy',
995
+ enabled: true,
996
+ phase: 'beforeWrite',
997
+ requires: ['computeStyles'],
998
+ fn: function fn(_ref2) {
999
+ var state = _ref2.state;
1000
+
1001
+ if (getIsDefaultRenderFn()) {
1002
+ var _getDefaultTemplateCh = getDefaultTemplateChildren(),
1003
+ box = _getDefaultTemplateCh.box;
1004
+
1005
+ ['placement', 'reference-hidden', 'escaped'].forEach(function (attr) {
1006
+ if (attr === 'placement') {
1007
+ box.setAttribute('data-placement', state.placement);
1008
+ } else {
1009
+ if (state.attributes.popper["data-popper-" + attr]) {
1010
+ box.setAttribute("data-" + attr, '');
1011
+ } else {
1012
+ box.removeAttribute("data-" + attr);
1013
+ }
1014
+ }
1015
+ });
1016
+ state.attributes.popper = {};
1017
+ }
1018
+ }
1019
+ };
1020
+ var modifiers = [{
1021
+ name: 'offset',
1022
+ options: {
1023
+ offset: offset
1024
+ }
1025
+ }, {
1026
+ name: 'preventOverflow',
1027
+ options: {
1028
+ padding: {
1029
+ top: 2,
1030
+ bottom: 2,
1031
+ left: 5,
1032
+ right: 5
1033
+ }
1034
+ }
1035
+ }, {
1036
+ name: 'flip',
1037
+ options: {
1038
+ padding: 5
1039
+ }
1040
+ }, {
1041
+ name: 'computeStyles',
1042
+ options: {
1043
+ adaptive: !moveTransition
1044
+ }
1045
+ }, tippyModifier];
1046
+
1047
+ if (getIsDefaultRenderFn() && arrow) {
1048
+ modifiers.push({
1049
+ name: 'arrow',
1050
+ options: {
1051
+ element: arrow,
1052
+ padding: 3
1053
+ }
1054
+ });
1055
+ }
1056
+
1057
+ modifiers.push.apply(modifiers, (popperOptions == null ? void 0 : popperOptions.modifiers) || []);
1058
+ instance.popperInstance = createPopper(computedReference, popper, Object.assign({}, popperOptions, {
1059
+ placement: placement,
1060
+ onFirstUpdate: onFirstUpdate,
1061
+ modifiers: modifiers
1062
+ }));
1063
+ }
1064
+
1065
+ function destroyPopperInstance() {
1066
+ if (instance.popperInstance) {
1067
+ instance.popperInstance.destroy();
1068
+ instance.popperInstance = null;
1069
+ }
1070
+ }
1071
+
1072
+ function mount() {
1073
+ var appendTo = instance.props.appendTo;
1074
+ var parentNode; // By default, we'll append the popper to the triggerTargets's parentNode so
1075
+ // it's directly after the reference element so the elements inside the
1076
+ // tippy can be tabbed to
1077
+ // If there are clipping issues, the user can specify a different appendTo
1078
+ // and ensure focus management is handled correctly manually
1079
+
1080
+ var node = getCurrentTarget();
1081
+
1082
+ if (instance.props.interactive && appendTo === TIPPY_DEFAULT_APPEND_TO || appendTo === 'parent') {
1083
+ parentNode = node.parentNode;
1084
+ } else {
1085
+ parentNode = invokeWithArgsOrReturn(appendTo, [node]);
1086
+ } // The popper element needs to exist on the DOM before its position can be
1087
+ // updated as Popper needs to read its dimensions
1088
+
1089
+
1090
+ if (!parentNode.contains(popper)) {
1091
+ parentNode.appendChild(popper);
1092
+ }
1093
+
1094
+ instance.state.isMounted = true;
1095
+ createPopperInstance();
1096
+ /* istanbul ignore else */
1097
+
1098
+ if (process.env.NODE_ENV !== "production") {
1099
+ // Accessibility check
1100
+ 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(' '));
1101
+ }
1102
+ }
1103
+
1104
+ function getNestedPopperTree() {
1105
+ return arrayFrom(popper.querySelectorAll('[data-tippy-root]'));
1106
+ }
1107
+
1108
+ function scheduleShow(event) {
1109
+ instance.clearDelayTimeouts();
1110
+
1111
+ if (event) {
1112
+ invokeHook('onTrigger', [instance, event]);
1113
+ }
1114
+
1115
+ addDocumentPress();
1116
+ var delay = getDelay(true);
1117
+
1118
+ var _getNormalizedTouchSe = getNormalizedTouchSettings(),
1119
+ touchValue = _getNormalizedTouchSe[0],
1120
+ touchDelay = _getNormalizedTouchSe[1];
1121
+
1122
+ if (currentInput.isTouch && touchValue === 'hold' && touchDelay) {
1123
+ delay = touchDelay;
1124
+ }
1125
+
1126
+ if (delay) {
1127
+ showTimeout = setTimeout(function () {
1128
+ instance.show();
1129
+ }, delay);
1130
+ } else {
1131
+ instance.show();
1132
+ }
1133
+ }
1134
+
1135
+ function scheduleHide(event) {
1136
+ instance.clearDelayTimeouts();
1137
+ invokeHook('onUntrigger', [instance, event]);
1138
+
1139
+ if (!instance.state.isVisible) {
1140
+ removeDocumentPress();
1141
+ return;
1142
+ } // For interactive tippies, scheduleHide is added to a document.body handler
1143
+ // from onMouseLeave so must intercept scheduled hides from mousemove/leave
1144
+ // events when trigger contains mouseenter and click, and the tip is
1145
+ // currently shown as a result of a click.
1146
+
1147
+
1148
+ if (instance.props.trigger.indexOf('mouseenter') >= 0 && instance.props.trigger.indexOf('click') >= 0 && ['mouseleave', 'mousemove'].indexOf(event.type) >= 0 && isVisibleFromClick) {
1149
+ return;
1150
+ }
1151
+
1152
+ var delay = getDelay(false);
1153
+
1154
+ if (delay) {
1155
+ hideTimeout = setTimeout(function () {
1156
+ if (instance.state.isVisible) {
1157
+ instance.hide();
1158
+ }
1159
+ }, delay);
1160
+ } else {
1161
+ // Fixes a `transitionend` problem when it fires 1 frame too
1162
+ // late sometimes, we don't want hide() to be called.
1163
+ scheduleHideAnimationFrame = requestAnimationFrame(function () {
1164
+ instance.hide();
1165
+ });
1166
+ }
1167
+ } // ===========================================================================
1168
+ // 🔑 Public methods
1169
+ // ===========================================================================
1170
+
1171
+
1172
+ function enable() {
1173
+ instance.state.isEnabled = true;
1174
+ }
1175
+
1176
+ function disable() {
1177
+ // Disabling the instance should also hide it
1178
+ // https://github.com/atomiks/tippy.js-react/issues/106
1179
+ instance.hide();
1180
+ instance.state.isEnabled = false;
1181
+ }
1182
+
1183
+ function clearDelayTimeouts() {
1184
+ clearTimeout(showTimeout);
1185
+ clearTimeout(hideTimeout);
1186
+ cancelAnimationFrame(scheduleHideAnimationFrame);
1187
+ }
1188
+
1189
+ function setProps(partialProps) {
1190
+ /* istanbul ignore else */
1191
+ if (process.env.NODE_ENV !== "production") {
1192
+ warnWhen(instance.state.isDestroyed, createMemoryLeakWarning('setProps'));
1193
+ }
1194
+
1195
+ if (instance.state.isDestroyed) {
1196
+ return;
1197
+ }
1198
+
1199
+ invokeHook('onBeforeUpdate', [instance, partialProps]);
1200
+ removeListeners();
1201
+ var prevProps = instance.props;
1202
+ var nextProps = evaluateProps(reference, Object.assign({}, prevProps, removeUndefinedProps(partialProps), {
1203
+ ignoreAttributes: true
1204
+ }));
1205
+ instance.props = nextProps;
1206
+ addListeners();
1207
+
1208
+ if (prevProps.interactiveDebounce !== nextProps.interactiveDebounce) {
1209
+ cleanupInteractiveMouseListeners();
1210
+ debouncedOnMouseMove = debounce(onMouseMove, nextProps.interactiveDebounce);
1211
+ } // Ensure stale aria-expanded attributes are removed
1212
+
1213
+
1214
+ if (prevProps.triggerTarget && !nextProps.triggerTarget) {
1215
+ normalizeToArray(prevProps.triggerTarget).forEach(function (node) {
1216
+ node.removeAttribute('aria-expanded');
1217
+ });
1218
+ } else if (nextProps.triggerTarget) {
1219
+ reference.removeAttribute('aria-expanded');
1220
+ }
1221
+
1222
+ handleAriaExpandedAttribute();
1223
+ handleStyles();
1224
+
1225
+ if (onUpdate) {
1226
+ onUpdate(prevProps, nextProps);
1227
+ }
1228
+
1229
+ if (instance.popperInstance) {
1230
+ createPopperInstance(); // Fixes an issue with nested tippies if they are all getting re-rendered,
1231
+ // and the nested ones get re-rendered first.
1232
+ // https://github.com/atomiks/tippyjs-react/issues/177
1233
+ // TODO: find a cleaner / more efficient solution(!)
1234
+
1235
+ getNestedPopperTree().forEach(function (nestedPopper) {
1236
+ // React (and other UI libs likely) requires a rAF wrapper as it flushes
1237
+ // its work in one
1238
+ requestAnimationFrame(nestedPopper._tippy.popperInstance.forceUpdate);
1239
+ });
1240
+ }
1241
+
1242
+ invokeHook('onAfterUpdate', [instance, partialProps]);
1243
+ }
1244
+
1245
+ function setContent(content) {
1246
+ instance.setProps({
1247
+ content: content
1248
+ });
1249
+ }
1250
+
1251
+ function show() {
1252
+ /* istanbul ignore else */
1253
+ if (process.env.NODE_ENV !== "production") {
1254
+ warnWhen(instance.state.isDestroyed, createMemoryLeakWarning('show'));
1255
+ } // Early bail-out
1256
+
1257
+
1258
+ var isAlreadyVisible = instance.state.isVisible;
1259
+ var isDestroyed = instance.state.isDestroyed;
1260
+ var isDisabled = !instance.state.isEnabled;
1261
+ var isTouchAndTouchDisabled = currentInput.isTouch && !instance.props.touch;
1262
+ var duration = getValueAtIndexOrReturn(instance.props.duration, 0, defaultProps.duration);
1263
+
1264
+ if (isAlreadyVisible || isDestroyed || isDisabled || isTouchAndTouchDisabled) {
1265
+ return;
1266
+ } // Normalize `disabled` behavior across browsers.
1267
+ // Firefox allows events on disabled elements, but Chrome doesn't.
1268
+ // Using a wrapper element (i.e. <span>) is recommended.
1269
+
1270
+
1271
+ if (getCurrentTarget().hasAttribute('disabled')) {
1272
+ return;
1273
+ }
1274
+
1275
+ invokeHook('onShow', [instance], false);
1276
+
1277
+ if (instance.props.onShow(instance) === false) {
1278
+ return;
1279
+ }
1280
+
1281
+ instance.state.isVisible = true;
1282
+
1283
+ if (getIsDefaultRenderFn()) {
1284
+ popper.style.visibility = 'visible';
1285
+ }
1286
+
1287
+ handleStyles();
1288
+ addDocumentPress();
1289
+
1290
+ if (!instance.state.isMounted) {
1291
+ popper.style.transition = 'none';
1292
+ } // If flipping to the opposite side after hiding at least once, the
1293
+ // animation will use the wrong placement without resetting the duration
1294
+
1295
+
1296
+ if (getIsDefaultRenderFn()) {
1297
+ var _getDefaultTemplateCh2 = getDefaultTemplateChildren(),
1298
+ box = _getDefaultTemplateCh2.box,
1299
+ content = _getDefaultTemplateCh2.content;
1300
+
1301
+ setTransitionDuration([box, content], 0);
1302
+ }
1303
+
1304
+ onFirstUpdate = function onFirstUpdate() {
1305
+ var _instance$popperInsta2;
1306
+
1307
+ if (!instance.state.isVisible || ignoreOnFirstUpdate) {
1308
+ return;
1309
+ }
1310
+
1311
+ ignoreOnFirstUpdate = true; // reflow
1312
+
1313
+ void popper.offsetHeight;
1314
+ popper.style.transition = instance.props.moveTransition;
1315
+
1316
+ if (getIsDefaultRenderFn() && instance.props.animation) {
1317
+ var _getDefaultTemplateCh3 = getDefaultTemplateChildren(),
1318
+ _box = _getDefaultTemplateCh3.box,
1319
+ _content = _getDefaultTemplateCh3.content;
1320
+
1321
+ setTransitionDuration([_box, _content], duration);
1322
+ setVisibilityState([_box, _content], 'visible');
1323
+ }
1324
+
1325
+ handleAriaContentAttribute();
1326
+ handleAriaExpandedAttribute();
1327
+ pushIfUnique(mountedInstances, instance); // certain modifiers (e.g. `maxSize`) require a second update after the
1328
+ // popper has been positioned for the first time
1329
+
1330
+ (_instance$popperInsta2 = instance.popperInstance) == null ? void 0 : _instance$popperInsta2.forceUpdate();
1331
+ invokeHook('onMount', [instance]);
1332
+
1333
+ if (instance.props.animation && getIsDefaultRenderFn()) {
1334
+ onTransitionedIn(duration, function () {
1335
+ instance.state.isShown = true;
1336
+ invokeHook('onShown', [instance]);
1337
+ });
1338
+ }
1339
+ };
1340
+
1341
+ mount();
1342
+ }
1343
+
1344
+ function hide() {
1345
+ /* istanbul ignore else */
1346
+ if (process.env.NODE_ENV !== "production") {
1347
+ warnWhen(instance.state.isDestroyed, createMemoryLeakWarning('hide'));
1348
+ } // Early bail-out
1349
+
1350
+
1351
+ var isAlreadyHidden = !instance.state.isVisible;
1352
+ var isDestroyed = instance.state.isDestroyed;
1353
+ var isDisabled = !instance.state.isEnabled;
1354
+ var duration = getValueAtIndexOrReturn(instance.props.duration, 1, defaultProps.duration);
1355
+
1356
+ if (isAlreadyHidden || isDestroyed || isDisabled) {
1357
+ return;
1358
+ }
1359
+
1360
+ invokeHook('onHide', [instance], false);
1361
+
1362
+ if (instance.props.onHide(instance) === false) {
1363
+ return;
1364
+ }
1365
+
1366
+ instance.state.isVisible = false;
1367
+ instance.state.isShown = false;
1368
+ ignoreOnFirstUpdate = false;
1369
+ isVisibleFromClick = false;
1370
+
1371
+ if (getIsDefaultRenderFn()) {
1372
+ popper.style.visibility = 'hidden';
1373
+ }
1374
+
1375
+ cleanupInteractiveMouseListeners();
1376
+ removeDocumentPress();
1377
+ handleStyles(true);
1378
+
1379
+ if (getIsDefaultRenderFn()) {
1380
+ var _getDefaultTemplateCh4 = getDefaultTemplateChildren(),
1381
+ box = _getDefaultTemplateCh4.box,
1382
+ content = _getDefaultTemplateCh4.content;
1383
+
1384
+ if (instance.props.animation) {
1385
+ setTransitionDuration([box, content], duration);
1386
+ setVisibilityState([box, content], 'hidden');
1387
+ }
1388
+ }
1389
+
1390
+ handleAriaContentAttribute();
1391
+ handleAriaExpandedAttribute();
1392
+
1393
+ if (instance.props.animation) {
1394
+ if (getIsDefaultRenderFn()) {
1395
+ onTransitionedOut(duration, instance.unmount);
1396
+ }
1397
+ } else {
1398
+ instance.unmount();
1399
+ }
1400
+ }
1401
+
1402
+ function hideWithInteractivity(event) {
1403
+ /* istanbul ignore else */
1404
+ if (process.env.NODE_ENV !== "production") {
1405
+ warnWhen(instance.state.isDestroyed, createMemoryLeakWarning('hideWithInteractivity'));
1406
+ }
1407
+
1408
+ getDocument().addEventListener('mousemove', debouncedOnMouseMove);
1409
+ pushIfUnique(mouseMoveListeners, debouncedOnMouseMove);
1410
+ debouncedOnMouseMove(event);
1411
+ }
1412
+
1413
+ function unmount() {
1414
+ /* istanbul ignore else */
1415
+ if (process.env.NODE_ENV !== "production") {
1416
+ warnWhen(instance.state.isDestroyed, createMemoryLeakWarning('unmount'));
1417
+ }
1418
+
1419
+ if (instance.state.isVisible) {
1420
+ instance.hide();
1421
+ }
1422
+
1423
+ if (!instance.state.isMounted) {
1424
+ return;
1425
+ }
1426
+
1427
+ destroyPopperInstance(); // If a popper is not interactive, it will be appended outside the popper
1428
+ // tree by default. This seems mainly for interactive tippies, but we should
1429
+ // find a workaround if possible
1430
+
1431
+ getNestedPopperTree().forEach(function (nestedPopper) {
1432
+ nestedPopper._tippy.unmount();
1433
+ });
1434
+
1435
+ if (popper.parentNode) {
1436
+ popper.parentNode.removeChild(popper);
1437
+ }
1438
+
1439
+ mountedInstances = mountedInstances.filter(function (i) {
1440
+ return i !== instance;
1441
+ });
1442
+ instance.state.isMounted = false;
1443
+ invokeHook('onHidden', [instance]);
1444
+ }
1445
+
1446
+ function destroy() {
1447
+ /* istanbul ignore else */
1448
+ if (process.env.NODE_ENV !== "production") {
1449
+ warnWhen(instance.state.isDestroyed, createMemoryLeakWarning('destroy'));
1450
+ }
1451
+
1452
+ if (instance.state.isDestroyed) {
1453
+ return;
1454
+ }
1455
+
1456
+ instance.clearDelayTimeouts();
1457
+ instance.unmount();
1458
+ removeListeners();
1459
+ delete reference._tippy;
1460
+ instance.state.isDestroyed = true;
1461
+ invokeHook('onDestroy', [instance]);
1462
+ }
1463
+ }
1464
+
1465
+ function tippy(targets, optionalProps) {
1466
+ if (optionalProps === void 0) {
1467
+ optionalProps = {};
1468
+ }
1469
+
1470
+ var plugins = defaultProps.plugins.concat(optionalProps.plugins || []);
1471
+ /* istanbul ignore else */
1472
+
1473
+ if (process.env.NODE_ENV !== "production") {
1474
+ validateTargets(targets);
1475
+ validateProps(optionalProps, plugins);
1476
+ }
1477
+
1478
+ bindGlobalEventListeners();
1479
+ var passedProps = Object.assign({}, optionalProps, {
1480
+ plugins: plugins
1481
+ });
1482
+ var elements = getArrayOfElements(targets);
1483
+ /* istanbul ignore else */
1484
+
1485
+ if (process.env.NODE_ENV !== "production") {
1486
+ var isSingleContentElement = isElement(passedProps.content);
1487
+ var isMoreThanOneReferenceElement = elements.length > 1;
1488
+ 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(' '));
1489
+ }
1490
+
1491
+ var instances = elements.reduce(function (acc, reference) {
1492
+ var instance = reference && createTippy(reference, passedProps);
1493
+
1494
+ if (instance) {
1495
+ acc.push(instance);
1496
+ }
1497
+
1498
+ return acc;
1499
+ }, []);
1500
+ return isElement(targets) ? instances[0] : instances;
1501
+ }
1502
+
1503
+ tippy.defaultProps = defaultProps;
1504
+ tippy.setDefaultProps = setDefaultProps;
1505
+ tippy.currentInput = currentInput;
1506
+ var hideAll = function hideAll(_temp) {
1507
+ var _ref = _temp === void 0 ? {} : _temp,
1508
+ excludedReferenceOrInstance = _ref.exclude,
1509
+ duration = _ref.duration;
1510
+
1511
+ mountedInstances.forEach(function (instance) {
1512
+ var isExcluded = false;
1513
+
1514
+ if (excludedReferenceOrInstance) {
1515
+ isExcluded = isReferenceElement(excludedReferenceOrInstance) ? instance.reference === excludedReferenceOrInstance : instance.popper === excludedReferenceOrInstance.popper;
1516
+ }
1517
+
1518
+ if (!isExcluded) {
1519
+ var originalDuration = instance.props.duration;
1520
+ instance.setProps({
1521
+ duration: duration
1522
+ });
1523
+ instance.hide();
1524
+
1525
+ if (!instance.state.isDestroyed) {
1526
+ instance.setProps({
1527
+ duration: originalDuration
1528
+ });
1529
+ }
1530
+ }
1531
+ });
1532
+ };
1533
+
1534
+ // every time the popper is destroyed (i.e. a new target), removing the styles
1535
+ // and causing transitions to break for singletons when the console is open, but
1536
+ // most notably for non-transform styles being used, `gpuAcceleration: false`.
1537
+
1538
+ var applyStylesModifier = Object.assign({}, applyStyles, {
1539
+ effect: function effect(_ref) {
1540
+ var state = _ref.state;
1541
+ var initialStyles = {
1542
+ popper: {
1543
+ position: state.options.strategy,
1544
+ left: '0',
1545
+ top: '0',
1546
+ margin: '0'
1547
+ },
1548
+ arrow: {
1549
+ position: 'absolute'
1550
+ },
1551
+ reference: {}
1552
+ };
1553
+ Object.assign(state.elements.popper.style, initialStyles.popper);
1554
+ state.styles = initialStyles;
1555
+
1556
+ if (state.elements.arrow) {
1557
+ Object.assign(state.elements.arrow.style, initialStyles.arrow);
1558
+ } // intentionally return no cleanup function
1559
+ // return () => { ... }
1560
+
1561
+ }
1562
+ });
1563
+
1564
+ var createSingleton = function createSingleton(tippyInstances, optionalProps) {
1565
+ var _optionalProps$popper;
1566
+
1567
+ if (optionalProps === void 0) {
1568
+ optionalProps = {};
1569
+ }
1570
+
1571
+ /* istanbul ignore else */
1572
+ if (process.env.NODE_ENV !== "production") {
1573
+ errorWhen(!Array.isArray(tippyInstances), ['The first argument passed to createSingleton() must be an array of', 'tippy instances. The passed value was', String(tippyInstances)].join(' '));
1574
+ }
1575
+
1576
+ var individualInstances = tippyInstances;
1577
+ var references = [];
1578
+ var triggerTargets = [];
1579
+ var currentTarget;
1580
+ var overrides = optionalProps.overrides;
1581
+ var interceptSetPropsCleanups = [];
1582
+ var shownOnCreate = false;
1583
+
1584
+ function setTriggerTargets() {
1585
+ triggerTargets = individualInstances.map(function (instance) {
1586
+ return normalizeToArray(instance.props.triggerTarget || instance.reference);
1587
+ }).reduce(function (acc, item) {
1588
+ return acc.concat(item);
1589
+ }, []);
1590
+ }
1591
+
1592
+ function setReferences() {
1593
+ references = individualInstances.map(function (instance) {
1594
+ return instance.reference;
1595
+ });
1596
+ }
1597
+
1598
+ function enableInstances(isEnabled) {
1599
+ individualInstances.forEach(function (instance) {
1600
+ if (isEnabled) {
1601
+ instance.enable();
1602
+ } else {
1603
+ instance.disable();
1604
+ }
1605
+ });
1606
+ }
1607
+
1608
+ function interceptSetProps(singleton) {
1609
+ return individualInstances.map(function (instance) {
1610
+ var originalSetProps = instance.setProps;
1611
+
1612
+ instance.setProps = function (props) {
1613
+ originalSetProps(props);
1614
+
1615
+ if (instance.reference === currentTarget) {
1616
+ singleton.setProps(props);
1617
+ }
1618
+ };
1619
+
1620
+ return function () {
1621
+ instance.setProps = originalSetProps;
1622
+ };
1623
+ });
1624
+ } // have to pass singleton, as it maybe undefined on first call
1625
+
1626
+
1627
+ function prepareInstance(singleton, target) {
1628
+ var index = triggerTargets.indexOf(target); // bail-out
1629
+
1630
+ if (target === currentTarget) {
1631
+ return;
1632
+ }
1633
+
1634
+ currentTarget = target;
1635
+ var overrideProps = (overrides || []).concat('content').reduce(function (acc, prop) {
1636
+ acc[prop] = individualInstances[index].props[prop];
1637
+ return acc;
1638
+ }, {});
1639
+ singleton.setProps(Object.assign({}, overrideProps, {
1640
+ getReferenceClientRect: typeof overrideProps.getReferenceClientRect === 'function' ? overrideProps.getReferenceClientRect : function () {
1641
+ var _references$index;
1642
+
1643
+ return (_references$index = references[index]) == null ? void 0 : _references$index.getBoundingClientRect();
1644
+ }
1645
+ }));
1646
+ }
1647
+
1648
+ enableInstances(false);
1649
+ setReferences();
1650
+ setTriggerTargets();
1651
+ var plugin = {
1652
+ fn: function fn() {
1653
+ return {
1654
+ onDestroy: function onDestroy() {
1655
+ enableInstances(true);
1656
+ },
1657
+ onHidden: function onHidden() {
1658
+ currentTarget = null;
1659
+ },
1660
+ onClickOutside: function onClickOutside(instance) {
1661
+ if (instance.props.showOnCreate && !shownOnCreate) {
1662
+ shownOnCreate = true;
1663
+ currentTarget = null;
1664
+ }
1665
+ },
1666
+ onShow: function onShow(instance) {
1667
+ if (instance.props.showOnCreate && !shownOnCreate) {
1668
+ shownOnCreate = true;
1669
+ prepareInstance(instance, references[0]);
1670
+ }
1671
+ },
1672
+ onTrigger: function onTrigger(instance, event) {
1673
+ prepareInstance(instance, event.currentTarget);
1674
+ }
1675
+ };
1676
+ }
1677
+ };
1678
+ var singleton = tippy(div(), Object.assign({}, removeProperties(optionalProps, ['overrides']), {
1679
+ plugins: [plugin].concat(optionalProps.plugins || []),
1680
+ triggerTarget: triggerTargets,
1681
+ popperOptions: Object.assign({}, optionalProps.popperOptions, {
1682
+ modifiers: [].concat(((_optionalProps$popper = optionalProps.popperOptions) == null ? void 0 : _optionalProps$popper.modifiers) || [], [applyStylesModifier])
1683
+ })
1684
+ }));
1685
+ var originalShow = singleton.show;
1686
+
1687
+ singleton.show = function (target) {
1688
+ originalShow(); // first time, showOnCreate or programmatic call with no params
1689
+ // default to showing first instance
1690
+
1691
+ if (!currentTarget && target == null) {
1692
+ return prepareInstance(singleton, references[0]);
1693
+ } // triggered from event (do nothing as prepareInstance already called by onTrigger)
1694
+ // programmatic call with no params when already visible (do nothing again)
1695
+
1696
+
1697
+ if (currentTarget && target == null) {
1698
+ return;
1699
+ } // target is index of instance
1700
+
1701
+
1702
+ if (typeof target === 'number') {
1703
+ return references[target] && prepareInstance(singleton, references[target]);
1704
+ } // target is a child tippy instance
1705
+
1706
+
1707
+ if (individualInstances.indexOf(target) >= 0) {
1708
+ var ref = target.reference;
1709
+ return prepareInstance(singleton, ref);
1710
+ } // target is a ReferenceElement
1711
+
1712
+
1713
+ if (references.indexOf(target) >= 0) {
1714
+ return prepareInstance(singleton, target);
1715
+ }
1716
+ };
1717
+
1718
+ singleton.showNext = function () {
1719
+ var first = references[0];
1720
+
1721
+ if (!currentTarget) {
1722
+ return singleton.show(0);
1723
+ }
1724
+
1725
+ var index = references.indexOf(currentTarget);
1726
+ singleton.show(references[index + 1] || first);
1727
+ };
1728
+
1729
+ singleton.showPrevious = function () {
1730
+ var last = references[references.length - 1];
1731
+
1732
+ if (!currentTarget) {
1733
+ return singleton.show(last);
1734
+ }
1735
+
1736
+ var index = references.indexOf(currentTarget);
1737
+ var target = references[index - 1] || last;
1738
+ singleton.show(target);
1739
+ };
1740
+
1741
+ var originalSetProps = singleton.setProps;
1742
+
1743
+ singleton.setProps = function (props) {
1744
+ overrides = props.overrides || overrides;
1745
+ originalSetProps(props);
1746
+ };
1747
+
1748
+ singleton.setInstances = function (nextInstances) {
1749
+ enableInstances(true);
1750
+ interceptSetPropsCleanups.forEach(function (fn) {
1751
+ return fn();
1752
+ });
1753
+ individualInstances = nextInstances;
1754
+ enableInstances(false);
1755
+ setReferences();
1756
+ setTriggerTargets();
1757
+ interceptSetPropsCleanups = interceptSetProps(singleton);
1758
+ singleton.setProps({
1759
+ triggerTarget: triggerTargets
1760
+ });
1761
+ };
1762
+
1763
+ interceptSetPropsCleanups = interceptSetProps(singleton);
1764
+ return singleton;
1765
+ };
1766
+
1767
+ var BUBBLING_EVENTS_MAP = {
1768
+ mouseover: 'mouseenter',
1769
+ focusin: 'focus',
1770
+ click: 'click'
1771
+ };
1772
+ /**
1773
+ * Creates a delegate instance that controls the creation of tippy instances
1774
+ * for child elements (`target` CSS selector).
1775
+ */
1776
+
1777
+ function delegate(targets, props) {
1778
+ /* istanbul ignore else */
1779
+ if (process.env.NODE_ENV !== "production") {
1780
+ errorWhen(!(props && props.target), ['You must specity a `target` prop indicating a CSS selector string matching', 'the target elements that should receive a tippy.'].join(' '));
1781
+ }
1782
+
1783
+ var listeners = [];
1784
+ var childTippyInstances = [];
1785
+ var disabled = false;
1786
+ var target = props.target;
1787
+ var nativeProps = removeProperties(props, ['target']);
1788
+ var parentProps = Object.assign({}, nativeProps, {
1789
+ trigger: 'manual',
1790
+ touch: false
1791
+ });
1792
+ var childProps = Object.assign({
1793
+ touch: defaultProps.touch
1794
+ }, nativeProps, {
1795
+ showOnCreate: true
1796
+ });
1797
+ var returnValue = tippy(targets, parentProps);
1798
+ var normalizedReturnValue = normalizeToArray(returnValue);
1799
+
1800
+ function onTrigger(event) {
1801
+ if (!event.target || disabled) {
1802
+ return;
1803
+ }
1804
+
1805
+ var targetNode = event.target.closest(target);
1806
+
1807
+ if (!targetNode) {
1808
+ return;
1809
+ } // Get relevant trigger with fallbacks:
1810
+ // 1. Check `data-tippy-trigger` attribute on target node
1811
+ // 2. Fallback to `trigger` passed to `delegate()`
1812
+ // 3. Fallback to `defaultProps.trigger`
1813
+
1814
+
1815
+ var trigger = targetNode.getAttribute('data-tippy-trigger') || props.trigger || defaultProps.trigger; // @ts-ignore
1816
+
1817
+ if (targetNode._tippy) {
1818
+ return;
1819
+ }
1820
+
1821
+ if (event.type === 'touchstart' && typeof childProps.touch === 'boolean') {
1822
+ return;
1823
+ }
1824
+
1825
+ if (event.type !== 'touchstart' && trigger.indexOf(BUBBLING_EVENTS_MAP[event.type]) < 0) {
1826
+ return;
1827
+ }
1828
+
1829
+ var instance = tippy(targetNode, childProps);
1830
+
1831
+ if (instance) {
1832
+ childTippyInstances = childTippyInstances.concat(instance);
1833
+ }
1834
+ }
1835
+
1836
+ function on(node, eventType, handler, options) {
1837
+ if (options === void 0) {
1838
+ options = false;
1839
+ }
1840
+
1841
+ node.addEventListener(eventType, handler, options);
1842
+ listeners.push({
1843
+ node: node,
1844
+ eventType: eventType,
1845
+ handler: handler,
1846
+ options: options
1847
+ });
1848
+ }
1849
+
1850
+ function addEventListeners(instance) {
1851
+ var reference = instance.reference;
1852
+ on(reference, 'touchstart', onTrigger, TOUCH_OPTIONS);
1853
+ on(reference, 'mouseover', onTrigger);
1854
+ on(reference, 'focusin', onTrigger);
1855
+ on(reference, 'click', onTrigger);
1856
+ }
1857
+
1858
+ function removeEventListeners() {
1859
+ listeners.forEach(function (_ref) {
1860
+ var node = _ref.node,
1861
+ eventType = _ref.eventType,
1862
+ handler = _ref.handler,
1863
+ options = _ref.options;
1864
+ node.removeEventListener(eventType, handler, options);
1865
+ });
1866
+ listeners = [];
1867
+ }
1868
+
1869
+ function applyMutations(instance) {
1870
+ var originalDestroy = instance.destroy;
1871
+ var originalEnable = instance.enable;
1872
+ var originalDisable = instance.disable;
1873
+
1874
+ instance.destroy = function (shouldDestroyChildInstances) {
1875
+ if (shouldDestroyChildInstances === void 0) {
1876
+ shouldDestroyChildInstances = true;
1877
+ }
1878
+
1879
+ if (shouldDestroyChildInstances) {
1880
+ childTippyInstances.forEach(function (instance) {
1881
+ instance.destroy();
1882
+ });
1883
+ }
1884
+
1885
+ childTippyInstances = [];
1886
+ removeEventListeners();
1887
+ originalDestroy();
1888
+ };
1889
+
1890
+ instance.enable = function () {
1891
+ originalEnable();
1892
+ childTippyInstances.forEach(function (instance) {
1893
+ return instance.enable();
1894
+ });
1895
+ disabled = false;
1896
+ };
1897
+
1898
+ instance.disable = function () {
1899
+ originalDisable();
1900
+ childTippyInstances.forEach(function (instance) {
1901
+ return instance.disable();
1902
+ });
1903
+ disabled = true;
1904
+ };
1905
+
1906
+ addEventListeners(instance);
1907
+ }
1908
+
1909
+ normalizedReturnValue.forEach(applyMutations);
1910
+ return returnValue;
1911
+ }
1912
+
1913
+ var animateFill = {
1914
+ name: 'animateFill',
1915
+ defaultValue: false,
1916
+ fn: function fn(instance) {
1917
+ var _instance$props$rende;
1918
+
1919
+ // @ts-ignore
1920
+ if (!((_instance$props$rende = instance.props.render) != null && _instance$props$rende.$$tippy)) {
1921
+ if (process.env.NODE_ENV !== "production") {
1922
+ errorWhen(instance.props.animateFill, 'The `animateFill` plugin requires the default render function.');
1923
+ }
1924
+
1925
+ return {};
1926
+ }
1927
+
1928
+ var _getChildren = getChildren(instance.popper),
1929
+ box = _getChildren.box,
1930
+ content = _getChildren.content;
1931
+
1932
+ var backdrop = instance.props.animateFill ? createBackdropElement() : null;
1933
+ return {
1934
+ onCreate: function onCreate() {
1935
+ if (backdrop) {
1936
+ box.insertBefore(backdrop, box.firstElementChild);
1937
+ box.setAttribute('data-animatefill', '');
1938
+ box.style.overflow = 'hidden';
1939
+ instance.setProps({
1940
+ arrow: false,
1941
+ animation: 'shift-away'
1942
+ });
1943
+ }
1944
+ },
1945
+ onMount: function onMount() {
1946
+ if (backdrop) {
1947
+ var transitionDuration = box.style.transitionDuration;
1948
+ var duration = Number(transitionDuration.replace('ms', '')); // The content should fade in after the backdrop has mostly filled the
1949
+ // tooltip element. `clip-path` is the other alternative but is not
1950
+ // well-supported and is buggy on some devices.
1951
+
1952
+ content.style.transitionDelay = Math.round(duration / 10) + "ms";
1953
+ backdrop.style.transitionDuration = transitionDuration;
1954
+ setVisibilityState([backdrop], 'visible');
1955
+ }
1956
+ },
1957
+ onShow: function onShow() {
1958
+ if (backdrop) {
1959
+ backdrop.style.transitionDuration = '0ms';
1960
+ }
1961
+ },
1962
+ onHide: function onHide() {
1963
+ if (backdrop) {
1964
+ setVisibilityState([backdrop], 'hidden');
1965
+ }
1966
+ }
1967
+ };
1968
+ }
1969
+ };
1970
+
1971
+ function createBackdropElement() {
1972
+ var backdrop = div();
1973
+ backdrop.className = BACKDROP_CLASS;
1974
+ setVisibilityState([backdrop], 'hidden');
1975
+ return backdrop;
1976
+ }
1977
+
1978
+ var mouseCoords = {
1979
+ clientX: 0,
1980
+ clientY: 0
1981
+ };
1982
+ var activeInstances = [];
1983
+
1984
+ function storeMouseCoords(_ref) {
1985
+ var clientX = _ref.clientX,
1986
+ clientY = _ref.clientY;
1987
+ mouseCoords = {
1988
+ clientX: clientX,
1989
+ clientY: clientY
1990
+ };
1991
+ }
1992
+
1993
+ function addMouseCoordsListener(doc) {
1994
+ doc.addEventListener('mousemove', storeMouseCoords);
1995
+ }
1996
+
1997
+ function removeMouseCoordsListener(doc) {
1998
+ doc.removeEventListener('mousemove', storeMouseCoords);
1999
+ }
2000
+
2001
+ var followCursor = {
2002
+ name: 'followCursor',
2003
+ defaultValue: false,
2004
+ fn: function fn(instance) {
2005
+ var reference = instance.reference;
2006
+ var doc = getOwnerDocument(instance.props.triggerTarget || reference);
2007
+ var isInternalUpdate = false;
2008
+ var wasFocusEvent = false;
2009
+ var isUnmounted = true;
2010
+ var prevProps = instance.props;
2011
+
2012
+ function getIsInitialBehavior() {
2013
+ return instance.props.followCursor === 'initial' && instance.state.isVisible;
2014
+ }
2015
+
2016
+ function addListener() {
2017
+ doc.addEventListener('mousemove', onMouseMove);
2018
+ }
2019
+
2020
+ function removeListener() {
2021
+ doc.removeEventListener('mousemove', onMouseMove);
2022
+ }
2023
+
2024
+ function unsetGetReferenceClientRect() {
2025
+ isInternalUpdate = true;
2026
+ instance.setProps({
2027
+ getReferenceClientRect: null
2028
+ });
2029
+ isInternalUpdate = false;
2030
+ }
2031
+
2032
+ function onMouseMove(event) {
2033
+ // If the instance is interactive, avoid updating the position unless it's
2034
+ // over the reference element
2035
+ var isCursorOverReference = event.target ? reference.contains(event.target) : true;
2036
+ var followCursor = instance.props.followCursor;
2037
+ var clientX = event.clientX,
2038
+ clientY = event.clientY;
2039
+ var rect = reference.getBoundingClientRect();
2040
+ var relativeX = clientX - rect.left;
2041
+ var relativeY = clientY - rect.top;
2042
+
2043
+ if (isCursorOverReference || !instance.props.interactive) {
2044
+ instance.setProps({
2045
+ // @ts-ignore - unneeded DOMRect properties
2046
+ getReferenceClientRect: function getReferenceClientRect() {
2047
+ var rect = reference.getBoundingClientRect();
2048
+ var x = clientX;
2049
+ var y = clientY;
2050
+
2051
+ if (followCursor === 'initial') {
2052
+ x = rect.left + relativeX;
2053
+ y = rect.top + relativeY;
2054
+ }
2055
+
2056
+ var top = followCursor === 'horizontal' ? rect.top : y;
2057
+ var right = followCursor === 'vertical' ? rect.right : x;
2058
+ var bottom = followCursor === 'horizontal' ? rect.bottom : y;
2059
+ var left = followCursor === 'vertical' ? rect.left : x;
2060
+ return {
2061
+ width: right - left,
2062
+ height: bottom - top,
2063
+ top: top,
2064
+ right: right,
2065
+ bottom: bottom,
2066
+ left: left
2067
+ };
2068
+ }
2069
+ });
2070
+ }
2071
+ }
2072
+
2073
+ function create() {
2074
+ if (instance.props.followCursor) {
2075
+ activeInstances.push({
2076
+ instance: instance,
2077
+ doc: doc
2078
+ });
2079
+ addMouseCoordsListener(doc);
2080
+ }
2081
+ }
2082
+
2083
+ function destroy() {
2084
+ activeInstances = activeInstances.filter(function (data) {
2085
+ return data.instance !== instance;
2086
+ });
2087
+
2088
+ if (activeInstances.filter(function (data) {
2089
+ return data.doc === doc;
2090
+ }).length === 0) {
2091
+ removeMouseCoordsListener(doc);
2092
+ }
2093
+ }
2094
+
2095
+ return {
2096
+ onCreate: create,
2097
+ onDestroy: destroy,
2098
+ onBeforeUpdate: function onBeforeUpdate() {
2099
+ prevProps = instance.props;
2100
+ },
2101
+ onAfterUpdate: function onAfterUpdate(_, _ref2) {
2102
+ var followCursor = _ref2.followCursor;
2103
+
2104
+ if (isInternalUpdate) {
2105
+ return;
2106
+ }
2107
+
2108
+ if (followCursor !== undefined && prevProps.followCursor !== followCursor) {
2109
+ destroy();
2110
+
2111
+ if (followCursor) {
2112
+ create();
2113
+
2114
+ if (instance.state.isMounted && !wasFocusEvent && !getIsInitialBehavior()) {
2115
+ addListener();
2116
+ }
2117
+ } else {
2118
+ removeListener();
2119
+ unsetGetReferenceClientRect();
2120
+ }
2121
+ }
2122
+ },
2123
+ onMount: function onMount() {
2124
+ if (instance.props.followCursor && !wasFocusEvent) {
2125
+ if (isUnmounted) {
2126
+ onMouseMove(mouseCoords);
2127
+ isUnmounted = false;
2128
+ }
2129
+
2130
+ if (!getIsInitialBehavior()) {
2131
+ addListener();
2132
+ }
2133
+ }
2134
+ },
2135
+ onTrigger: function onTrigger(_, event) {
2136
+ if (isMouseEvent(event)) {
2137
+ mouseCoords = {
2138
+ clientX: event.clientX,
2139
+ clientY: event.clientY
2140
+ };
2141
+ }
2142
+
2143
+ wasFocusEvent = event.type === 'focus';
2144
+ },
2145
+ onHidden: function onHidden() {
2146
+ if (instance.props.followCursor) {
2147
+ unsetGetReferenceClientRect();
2148
+ removeListener();
2149
+ isUnmounted = true;
2150
+ }
2151
+ }
2152
+ };
2153
+ }
2154
+ };
2155
+
2156
+ function getProps(props, modifier) {
2157
+ var _props$popperOptions;
2158
+
2159
+ return {
2160
+ popperOptions: Object.assign({}, props.popperOptions, {
2161
+ modifiers: [].concat((((_props$popperOptions = props.popperOptions) == null ? void 0 : _props$popperOptions.modifiers) || []).filter(function (_ref) {
2162
+ var name = _ref.name;
2163
+ return name !== modifier.name;
2164
+ }), [modifier])
2165
+ })
2166
+ };
2167
+ }
2168
+
2169
+ var inlinePositioning = {
2170
+ name: 'inlinePositioning',
2171
+ defaultValue: false,
2172
+ fn: function fn(instance) {
2173
+ var reference = instance.reference;
2174
+
2175
+ function isEnabled() {
2176
+ return !!instance.props.inlinePositioning;
2177
+ }
2178
+
2179
+ var placement;
2180
+ var cursorRectIndex = -1;
2181
+ var isInternalUpdate = false;
2182
+ var triedPlacements = [];
2183
+ var modifier = {
2184
+ name: 'tippyInlinePositioning',
2185
+ enabled: true,
2186
+ phase: 'afterWrite',
2187
+ fn: function fn(_ref2) {
2188
+ var state = _ref2.state;
2189
+
2190
+ if (isEnabled()) {
2191
+ if (triedPlacements.indexOf(state.placement) !== -1) {
2192
+ triedPlacements = [];
2193
+ }
2194
+
2195
+ if (placement !== state.placement && triedPlacements.indexOf(state.placement) === -1) {
2196
+ triedPlacements.push(state.placement);
2197
+ instance.setProps({
2198
+ // @ts-ignore - unneeded DOMRect properties
2199
+ getReferenceClientRect: function getReferenceClientRect() {
2200
+ return _getReferenceClientRect(state.placement);
2201
+ }
2202
+ });
2203
+ }
2204
+
2205
+ placement = state.placement;
2206
+ }
2207
+ }
2208
+ };
2209
+
2210
+ function _getReferenceClientRect(placement) {
2211
+ return getInlineBoundingClientRect(getBasePlacement(placement), reference.getBoundingClientRect(), arrayFrom(reference.getClientRects()), cursorRectIndex);
2212
+ }
2213
+
2214
+ function setInternalProps(partialProps) {
2215
+ isInternalUpdate = true;
2216
+ instance.setProps(partialProps);
2217
+ isInternalUpdate = false;
2218
+ }
2219
+
2220
+ function addModifier() {
2221
+ if (!isInternalUpdate) {
2222
+ setInternalProps(getProps(instance.props, modifier));
2223
+ }
2224
+ }
2225
+
2226
+ return {
2227
+ onCreate: addModifier,
2228
+ onAfterUpdate: addModifier,
2229
+ onTrigger: function onTrigger(_, event) {
2230
+ if (isMouseEvent(event)) {
2231
+ var rects = arrayFrom(instance.reference.getClientRects());
2232
+ var cursorRect = rects.find(function (rect) {
2233
+ return rect.left - 2 <= event.clientX && rect.right + 2 >= event.clientX && rect.top - 2 <= event.clientY && rect.bottom + 2 >= event.clientY;
2234
+ });
2235
+ var index = rects.indexOf(cursorRect);
2236
+ cursorRectIndex = index > -1 ? index : cursorRectIndex;
2237
+ }
2238
+ },
2239
+ onHidden: function onHidden() {
2240
+ cursorRectIndex = -1;
2241
+ }
2242
+ };
2243
+ }
2244
+ };
2245
+ function getInlineBoundingClientRect(currentBasePlacement, boundingRect, clientRects, cursorRectIndex) {
2246
+ // Not an inline element, or placement is not yet known
2247
+ if (clientRects.length < 2 || currentBasePlacement === null) {
2248
+ return boundingRect;
2249
+ } // There are two rects and they are disjoined
2250
+
2251
+
2252
+ if (clientRects.length === 2 && cursorRectIndex >= 0 && clientRects[0].left > clientRects[1].right) {
2253
+ return clientRects[cursorRectIndex] || boundingRect;
2254
+ }
2255
+
2256
+ switch (currentBasePlacement) {
2257
+ case 'top':
2258
+ case 'bottom':
2259
+ {
2260
+ var firstRect = clientRects[0];
2261
+ var lastRect = clientRects[clientRects.length - 1];
2262
+ var isTop = currentBasePlacement === 'top';
2263
+ var top = firstRect.top;
2264
+ var bottom = lastRect.bottom;
2265
+ var left = isTop ? firstRect.left : lastRect.left;
2266
+ var right = isTop ? firstRect.right : lastRect.right;
2267
+ var width = right - left;
2268
+ var height = bottom - top;
2269
+ return {
2270
+ top: top,
2271
+ bottom: bottom,
2272
+ left: left,
2273
+ right: right,
2274
+ width: width,
2275
+ height: height
2276
+ };
2277
+ }
2278
+
2279
+ case 'left':
2280
+ case 'right':
2281
+ {
2282
+ var minLeft = Math.min.apply(Math, clientRects.map(function (rects) {
2283
+ return rects.left;
2284
+ }));
2285
+ var maxRight = Math.max.apply(Math, clientRects.map(function (rects) {
2286
+ return rects.right;
2287
+ }));
2288
+ var measureRects = clientRects.filter(function (rect) {
2289
+ return currentBasePlacement === 'left' ? rect.left === minLeft : rect.right === maxRight;
2290
+ });
2291
+ var _top = measureRects[0].top;
2292
+ var _bottom = measureRects[measureRects.length - 1].bottom;
2293
+ var _left = minLeft;
2294
+ var _right = maxRight;
2295
+
2296
+ var _width = _right - _left;
2297
+
2298
+ var _height = _bottom - _top;
2299
+
2300
+ return {
2301
+ top: _top,
2302
+ bottom: _bottom,
2303
+ left: _left,
2304
+ right: _right,
2305
+ width: _width,
2306
+ height: _height
2307
+ };
2308
+ }
2309
+
2310
+ default:
2311
+ {
2312
+ return boundingRect;
2313
+ }
2314
+ }
2315
+ }
2316
+
2317
+ var sticky = {
2318
+ name: 'sticky',
2319
+ defaultValue: false,
2320
+ fn: function fn(instance) {
2321
+ var reference = instance.reference,
2322
+ popper = instance.popper;
2323
+
2324
+ function getReference() {
2325
+ return instance.popperInstance ? instance.popperInstance.state.elements.reference : reference;
2326
+ }
2327
+
2328
+ function shouldCheck(value) {
2329
+ return instance.props.sticky === true || instance.props.sticky === value;
2330
+ }
2331
+
2332
+ var prevRefRect = null;
2333
+ var prevPopRect = null;
2334
+
2335
+ function updatePosition() {
2336
+ var currentRefRect = shouldCheck('reference') ? getReference().getBoundingClientRect() : null;
2337
+ var currentPopRect = shouldCheck('popper') ? popper.getBoundingClientRect() : null;
2338
+
2339
+ if (currentRefRect && areRectsDifferent(prevRefRect, currentRefRect) || currentPopRect && areRectsDifferent(prevPopRect, currentPopRect)) {
2340
+ if (instance.popperInstance) {
2341
+ instance.popperInstance.update();
2342
+ }
2343
+ }
2344
+
2345
+ prevRefRect = currentRefRect;
2346
+ prevPopRect = currentPopRect;
2347
+
2348
+ if (instance.state.isMounted) {
2349
+ requestAnimationFrame(updatePosition);
2350
+ }
2351
+ }
2352
+
2353
+ return {
2354
+ onMount: function onMount() {
2355
+ if (instance.props.sticky) {
2356
+ updatePosition();
2357
+ }
2358
+ }
2359
+ };
2360
+ }
2361
+ };
2362
+
2363
+ function areRectsDifferent(rectA, rectB) {
2364
+ if (rectA && rectB) {
2365
+ return rectA.top !== rectB.top || rectA.right !== rectB.right || rectA.bottom !== rectB.bottom || rectA.left !== rectB.left;
2366
+ }
2367
+
2368
+ return true;
2369
+ }
2370
+
2371
+ tippy.setDefaultProps({
2372
+ animation: false
2373
+ });
2374
+
2375
+ export default tippy;
2376
+ export { animateFill, createSingleton, delegate, followCursor, hideAll, inlinePositioning, ROUND_ARROW as roundArrow, sticky };
2377
+ //# sourceMappingURL=tippy-headless.esm.js.map