@cling-se/widget 1.0.0-beta.1 → 1.0.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (241) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.internal.md +82 -0
  3. package/README.md +14 -40
  4. package/README.public.md +14 -0
  5. package/dist/AddClientCallout-DRcy9Dqb.js +101 -0
  6. package/dist/AnswerModal-Dc3cgkap.js +3291 -0
  7. package/dist/AttachmentItem-Bef5zdHr.js +171 -0
  8. package/dist/BaseUpload--paElAyr.js +2472 -0
  9. package/dist/BlockMedia-DbVE3vsb.js +103 -0
  10. package/dist/CCallout-81NkOge7.js +104 -0
  11. package/dist/{CCurrencyDropdown-qH-3m2eP.js → CCurrencyDropdown-M3hi1VVi.js} +91 -49
  12. package/dist/CDropdownItem-DvaU14-V.js +749 -0
  13. package/dist/CFormField.vue_vue_type_script_setup_true_lang-B4s_Zfsp.js +292 -0
  14. package/dist/{CPhoneFormat-CfQayFxw.js → CPhoneFormat-BBQ_UIc_.js} +13 -21
  15. package/dist/CPhoneInput-Dw_LJDgc.js +207 -0
  16. package/dist/CPriceInput-BfWZZv0f.js +140 -0
  17. package/dist/CSelect-B1AAIFbK.js +98 -0
  18. package/dist/CSkeleton.vue_vue_type_script_setup_true_lang-D56L_PYT.js +51 -0
  19. package/dist/ClientAutocomplete-D5veIKyZ.js +532 -0
  20. package/dist/ClientModal-D8_TPzkv.js +1181 -0
  21. package/dist/ColorPicker-C0OahiVg.js +1408 -0
  22. package/dist/CompanyModal-CjzwQU4B.js +250 -0
  23. package/dist/ContentWrapper-DrmiaFOz.js +265 -0
  24. package/dist/CoverBlockSettings-C9DWvA-C.js +861 -0
  25. package/dist/DocAnswer-BEsvAMEp.js +33 -0
  26. package/dist/DocDetails--LO0-S5d.js +448 -0
  27. package/dist/DocForm-D6_tGw06.js +6748 -0
  28. package/dist/DocFormSend-CdFL6rOD.js +171 -0
  29. package/dist/DocLinks-CIQFUh7c.js +36 -0
  30. package/dist/DocModalBase-DtPJK9sp.js +29 -0
  31. package/dist/DocPrint-qX88Ue2I.js +399 -0
  32. package/dist/DocReceipt-BbXoCmpz.js +341 -0
  33. package/dist/DocSendReminder-DZqOkd63.js +181 -0
  34. package/dist/DocTextEditor-Cw-Skmd4.js +19413 -0
  35. package/dist/DocTimeline-CdbSOVD1.js +537 -0
  36. package/dist/DocumentClient-DtTv7gkF.js +90 -0
  37. package/dist/DocumentLayout-BRfEjoYq.js +1368 -0
  38. package/dist/DocumentLogotype-CUNzyewq.js +162 -0
  39. package/dist/DocumentVoided-CgDt-JFI.js +33 -0
  40. package/dist/EmbedInput-rPvTnpXn.js +157 -0
  41. package/dist/EmbedSettings-BtmFxYGB.js +103 -0
  42. package/dist/ErrorCallout-B6YrdUsG.js +34 -0
  43. package/dist/FilePreviewModal-BfIqIIbb.js +202 -0
  44. package/dist/Flag-CE3K7-8a.js +41 -0
  45. package/dist/HeaderSettings-5QR7MmVf.js +720 -0
  46. package/dist/ImageSelectModal-E3hGi8ty.js +119 -0
  47. package/dist/ImageUploadWrapper-BaexFAAh.js +1585 -0
  48. package/dist/Index--gv5fH24.js +201 -0
  49. package/dist/{Index-D4XgxmbD.js → Index-B3ycPjAI.js} +10 -18
  50. package/dist/Index-B7ECpXAa.js +28 -0
  51. package/dist/Index-BIXfUsHH.js +52 -0
  52. package/dist/Index-BM658CCq.js +93 -0
  53. package/dist/{Index--qPMWUMT.js → Index-B_DCM_bL.js} +48 -61
  54. package/dist/Index-BcMATT2_.js +47 -0
  55. package/dist/Index-BpWFU3Td.js +68 -0
  56. package/dist/Index-BulSI5iO.js +38 -0
  57. package/dist/Index-CHInIRw5.js +228 -0
  58. package/dist/Index-COYqsxs9.js +25 -0
  59. package/dist/Index-CSGk060H.js +1098 -0
  60. package/dist/Index-CV2O2fWT.js +21 -0
  61. package/dist/{Index-Bu0MGrj6.js → Index-CXqdBSZ3.js} +313 -206
  62. package/dist/Index-CavttI66.js +126 -0
  63. package/dist/Index-CbZ65-O3.js +629 -0
  64. package/dist/Index-CqrTij2j.js +70 -0
  65. package/dist/Index-CrsGxDWC.js +16 -0
  66. package/dist/Index-CxY5Ii6K.js +49 -0
  67. package/dist/Index-D7Z2w9cd.js +163 -0
  68. package/dist/Index-D7ixmzBH.js +76 -0
  69. package/dist/Index-D7pzv-AR.js +74 -0
  70. package/dist/Index-D9keESQi.js +159 -0
  71. package/dist/Index-Dd6ueeUc.js +136 -0
  72. package/dist/{Index-DIOiMm9f.js → Index-DexIUz3R.js} +10 -18
  73. package/dist/Index-Dnmt6W0u.js +140 -0
  74. package/dist/Index-DtcV6rl1.js +4 -0
  75. package/dist/Index-DuDVafLn.js +3452 -0
  76. package/dist/Index-L913X8Ly.js +102 -0
  77. package/dist/Index-Mdn0niR_.js +28 -0
  78. package/dist/Index-_ellB2fs.js +363 -0
  79. package/dist/{Index-DcQbh-z2.js → Index-baSB5tPv.js} +9 -17
  80. package/dist/Index-bgKndj-l.js +39 -0
  81. package/dist/Index-lNYXAFUH.js +87 -0
  82. package/dist/Index.vue_vue_type_script_lang-DLogex2i.js +671 -0
  83. package/dist/InputToggleRow-BCvMVbW-.js +99 -0
  84. package/dist/ManualPopover-BzBvSl_x.js +57 -0
  85. package/dist/MediaWrapper-_LPau2Ks.js +18 -0
  86. package/dist/{NotBindingText-CNV2Wmdx.js → NotBindingText-DgcOjUmQ.js} +13 -17
  87. package/dist/PackageGroup-1X3jUipj.js +1058 -0
  88. package/dist/PdfTerms-Bf4TlzP5.js +34 -0
  89. package/dist/PdfViewer-BdhwFfc6.js +392 -0
  90. package/dist/PlainHtml.vue_vue_type_script_setup_true_lang-BgsfquR_.js +17 -0
  91. package/dist/PriceHeader-DyC8xssf.js +488 -0
  92. package/dist/SearchApi-C__orGkO.js +137 -0
  93. package/dist/SendForm-Be8uiuaJ.js +7031 -0
  94. package/dist/Setup-DbXs2Zar.js +47 -0
  95. package/dist/{SmartList-Qgu0rMrI.js → SmartList-BmmtZoZ0.js} +16 -24
  96. package/dist/Sortable.vue_vue_type_script_setup_true_lang-D0mloJIN.js +1303 -0
  97. package/dist/{TermsSettings-CE3h_xkm.js → TermsSettings-DsN6v5yj.js} +169 -49
  98. package/dist/ThemeColorRow-BL6p09pN.js +108 -0
  99. package/dist/ToggleBinding-B-tVioQ9.js +44 -0
  100. package/dist/UploadModal-BnA1xLMy.js +134 -0
  101. package/dist/VideoPlayerInput-D38S1IDH.js +135 -0
  102. package/dist/VideoPlayerSettings-B5iXoj5E.js +78 -0
  103. package/dist/VideoSelectModal-BNCoMFKU.js +217 -0
  104. package/dist/{anime.es-BrPTThYb.js → anime.es-gdcpA-eY.js} +1 -2
  105. package/dist/{color-TdtKxwVa.js → color-HetJPhlA.js} +1 -2
  106. package/dist/{debounce-C1AuSpOZ.js → debounce-CBRJalZI.js} +7 -7
  107. package/dist/dom-CkTGWrfu.js +69 -0
  108. package/dist/{focusDrawerMixin-Be6BAK8-.js → focusDrawerMixin-T94b2Y6F.js} +1 -1
  109. package/dist/{formDrawerState-DRbg5rVI.js → formDrawerState-jssoGOce.js} +2 -2
  110. package/dist/helpers-Vo_6Zz3M.js +44 -0
  111. package/dist/index-8g2jwLJx.js +513 -0
  112. package/dist/index-B0udVHyo.js +125 -0
  113. package/dist/index-D63IJVsJ.js +3525 -0
  114. package/dist/index-DCYCN_FR.js +508 -0
  115. package/dist/index-FRHGChx1.js +149 -0
  116. package/dist/index-HXiq8Yxs.js +270 -0
  117. package/dist/index-jOufDnZ8.js +188 -0
  118. package/dist/index.es.js +2 -5
  119. package/dist/index.umd.js +306 -1505
  120. package/dist/{main-WKzC-Dnu.js → main-C4OdoeS2.js} +36750 -37369
  121. package/dist/mapFormMixin-v-nbaWcx.js +1544 -0
  122. package/dist/omit-GuxX6Zt-.js +31 -0
  123. package/dist/{publicSenderState-BujjYsZZ.js → publicSenderState-C-7OMKKW.js} +4 -4
  124. package/dist/regions-BdZt9Srn.js +1250 -0
  125. package/dist/splitpanes-DChJiJ8d.js +342 -0
  126. package/dist/style.css +1 -4
  127. package/dist/template-m1V22cUt.js +1493 -0
  128. package/dist/{throttle-CWPJmFid.js → throttle-WWMDZKby.js} +2 -2
  129. package/dist/tippy.esm-Dz-faEsS.js +1994 -0
  130. package/dist/useTermsModal-C_eLdGLi.js +87 -0
  131. package/dist/{utils-CA_Zy6u1.js → utils-vnvZGRwQ.js} +8 -11
  132. package/dist/validation-C-dQpENM.js +40 -0
  133. package/package.json +25 -31
  134. package/.eslintrc.cjs +0 -4
  135. package/dist/AddClientCallout-BWnvyBcK.js +0 -46
  136. package/dist/AnswerModal-CLGRdSnK.js +0 -3874
  137. package/dist/AttachmentItem-BPS0-wyc.js +0 -78
  138. package/dist/BaseDatePicker-BbmV_GdD.js +0 -3183
  139. package/dist/BaseUpload-9gPgI7r6.js +0 -1977
  140. package/dist/BlockMedia-DkPFWiYL.js +0 -76
  141. package/dist/CCallout-T26jwUby.js +0 -59
  142. package/dist/CDropdownItem-BE8BAMD1.js +0 -636
  143. package/dist/CField.vue_vue_type_style_index_0_lang-l0sNRNKZ.js +0 -1
  144. package/dist/CFormField-DECEfoVq.js +0 -241
  145. package/dist/CPriceInput-C4SOB-P5.js +0 -112
  146. package/dist/CTabs.vue_vue_type_style_index_0_scoped_e02a6440_lang-l0sNRNKZ.js +0 -1
  147. package/dist/ClientAutocomplete-DSebA1Mx.js +0 -78
  148. package/dist/ClientModal-BXFYvYCF.js +0 -625
  149. package/dist/ColorPicker-CZ_bJabP.js +0 -2879
  150. package/dist/CompanyModal-CDr3t28n.js +0 -141
  151. package/dist/ContentWrapper-BwmMoe4W.js +0 -183
  152. package/dist/CoverBlockSettings-_F11-DGc.js +0 -275
  153. package/dist/DocAnswer-BR59xzkT.js +0 -36
  154. package/dist/DocDetails-D1qbCbps.js +0 -259
  155. package/dist/DocForm-DBc2a7z5.js +0 -7272
  156. package/dist/DocFormSend-Casix-yG.js +0 -144
  157. package/dist/DocLinks-DGTaewyX.js +0 -38
  158. package/dist/DocModalBase-BbS_qvSv.js +0 -28
  159. package/dist/DocPrint-0PqX3mbJ.js +0 -240
  160. package/dist/DocReceipt-CU3VD5pt.js +0 -210
  161. package/dist/DocSendReminder-CuycBspr.js +0 -137
  162. package/dist/DocTextEditor-CntS2Bd-.js +0 -17180
  163. package/dist/DocTimeline-DJuv3yBe.js +0 -481
  164. package/dist/DocumentClient-C25XXzz6.js +0 -136
  165. package/dist/DocumentLayout-B7afHRMr.js +0 -4909
  166. package/dist/DocumentLogotype-sqI51wvM.js +0 -87
  167. package/dist/DocumentVoided-TahdTSMn.js +0 -25
  168. package/dist/EmbedInput-BY-wHSfc.js +0 -113
  169. package/dist/EmbedSettings-8pfjk4NP.js +0 -72
  170. package/dist/ErrorCallout-Dsr8PNsU.js +0 -28
  171. package/dist/FilePreviewModal-CcEinEFg.js +0 -81
  172. package/dist/Flag-PJKrghi9.js +0 -114
  173. package/dist/HeaderSettings-BqczIOsG.js +0 -392
  174. package/dist/ImageSelectModal-Cd-HhKnH.js +0 -84
  175. package/dist/ImageUploadWrapper-Dv43rGdb.js +0 -1604
  176. package/dist/Index-6b5VBKE-.js +0 -107
  177. package/dist/Index-B4pRJnbw.js +0 -84
  178. package/dist/Index-B69f8qgZ.js +0 -62
  179. package/dist/Index-B79YN9RO.js +0 -25
  180. package/dist/Index-BBrlPoe8.js +0 -58
  181. package/dist/Index-BXfWJCuq.js +0 -52
  182. package/dist/Index-Bd76vb37.js +0 -55
  183. package/dist/Index-BmbtQO5F.js +0 -150
  184. package/dist/Index-ByV_kJaH.js +0 -77
  185. package/dist/Index-CDV5rhWS.js +0 -49
  186. package/dist/Index-CIx4OOK-.js +0 -144
  187. package/dist/Index-CL1OWLt6.js +0 -223
  188. package/dist/Index-Caow0eZu.js +0 -31
  189. package/dist/Index-Cd3-3PEK.js +0 -2402
  190. package/dist/Index-CdpZBEKU.js +0 -98
  191. package/dist/Index-CmU3Sys-.js +0 -754
  192. package/dist/Index-CtRtgnpm.js +0 -32
  193. package/dist/Index-Cukkr33D.js +0 -140
  194. package/dist/Index-Cuqw0ios.js +0 -57
  195. package/dist/Index-Czm_WdqC.js +0 -25
  196. package/dist/Index-DNdYXHgr.js +0 -33
  197. package/dist/Index-DcuBxutp.js +0 -642
  198. package/dist/Index-DpWNWiyY.js +0 -291
  199. package/dist/Index-DzS1rZdF.js +0 -24
  200. package/dist/Index-N6s5pZxv.js +0 -26
  201. package/dist/Index-g_DNu4mt.js +0 -69
  202. package/dist/Index-mJ8F41GY.js +0 -154
  203. package/dist/Index-q7W9KA8m.js +0 -21
  204. package/dist/Index-rtzblZp4.js +0 -70
  205. package/dist/InputToggleRow-CZjxsDOQ.js +0 -57
  206. package/dist/ManualPopover-CZrWiT-P.js +0 -58
  207. package/dist/MediaWrapper-D37qK4KR.js +0 -23
  208. package/dist/PackageGroup-Heo_s8ct.js +0 -699
  209. package/dist/PdfTerms-AB9tXAtU.js +0 -36
  210. package/dist/PdfViewer-CIVkvOBr.js +0 -373
  211. package/dist/PlainHtml-CPmIebjY.js +0 -20
  212. package/dist/PriceHeader-DhDAruwX.js +0 -339
  213. package/dist/SearchApi-BMgdaI4s.js +0 -161
  214. package/dist/Setup-VIaIV9uT.js +0 -50
  215. package/dist/ThemeColorRow-DYJNgk6S.js +0 -67
  216. package/dist/ToggleBinding-CuwCeYpO.js +0 -38
  217. package/dist/UploadModal-BITcxG-J.js +0 -95
  218. package/dist/VideoPlayerInput-8szEX_8L.js +0 -93
  219. package/dist/VideoPlayerSettings-BIPytm6w.js +0 -61
  220. package/dist/VideoSelectModal-B-Pe34nb.js +0 -100
  221. package/dist/answerDocumentMixin-W7vE1Gp4.js +0 -51
  222. package/dist/formComponentsInstall-Bm3VMOh6.js +0 -2507
  223. package/dist/formValidationMixin-COkY8COk.js +0 -49
  224. package/dist/index-BFvjENMH.js +0 -81
  225. package/dist/index-BV2nGWay.js +0 -492
  226. package/dist/index-BgJ05dYc.js +0 -165
  227. package/dist/index-CMPAXxzs.js +0 -347
  228. package/dist/index-DNDjI5uI.js +0 -3916
  229. package/dist/index-aoff9oUi.js +0 -102
  230. package/dist/mapFormMixin-QbevCwJK.js +0 -72
  231. package/dist/omit-CTp9CXoU.js +0 -31
  232. package/dist/splitpanes-BHUVsCZF.js +0 -382
  233. package/dist/tinycolor-kTl0yxzz.js +0 -633
  234. package/dist/tippy.esm-sS5koDSU.js +0 -1799
  235. package/dist/vuedraggable.umd-BA3ZDRAp.js +0 -3161
  236. package/dist/vuex.esm-DKGl8mcw.js +0 -467
  237. package/public/favicon.ico +0 -0
  238. package/tsconfig.json +0 -26
  239. package/tsconfig.node.json +0 -10
  240. package/tsconfig.paths.json +0 -17
  241. package/vite.config.ts +0 -60
@@ -1,1799 +0,0 @@
1
- import { F as dr } from "./DocumentLayout-B7afHRMr.js";
2
- import "./CDropdownItem-BE8BAMD1.js";
3
- import { n as vr } from "./main-WKzC-Dnu.js";
4
- import { C as mr } from "./ColorPicker-CZ_bJabP.js";
5
- import { C as hr } from "./CCurrencyDropdown-qH-3m2eP.js";
6
- const gr = {
7
- components: {
8
- ColorPicker: mr,
9
- FontPickerDropdown: dr,
10
- CCurrencyDropdown: hr,
11
- FormInputRow: () => Promise.resolve().then(() => Or)
12
- },
13
- props: {
14
- label: {
15
- type: String,
16
- default: ""
17
- },
18
- infoTooltip: {
19
- type: String,
20
- default: ""
21
- },
22
- inputs: {
23
- type: Array,
24
- required: !0
25
- }
26
- },
27
- methods: {
28
- onKeyPressNumberRestrict(e) {
29
- ["-", "+", "e", "E"].includes(e.key) && e.preventDefault();
30
- }
31
- }
32
- };
33
- var yr = function() {
34
- var t = this, r = t._self._c;
35
- return r("div", { staticStyle: { position: "relative", display: "flex", width: "100%", "flex-direction": "row", "align-items": "flex-start", "justify-content": "flex-end" } }, [r("div", { staticStyle: { flex: "1 1 40%", width: "62px", margin: "7px 5px", position: "relative", display: "flex", height: "26px", "align-items": "center" } }, [r("div", { staticStyle: { overflow: "hidden", "font-size": "13px", "font-weight": "400", "line-height": "16px", "pointer-events": "none", "text-overflow": "ellipsis", "white-space": "nowrap", "user-select": "none" } }, [t._v(" " + t._s(t.label) + " ")]), t.infoTooltip ? r("svg", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: t.infoTooltip, expression: "infoTooltip" }], staticClass: "info-tooltip", attrs: { width: "13", height: "13", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "square", "stroke-linejoin": "bevel" } }, [r("circle", { attrs: { cx: "12", cy: "12", r: "10" } }), r("line", { attrs: { x1: "12", y1: "16", x2: "12", y2: "12" } }), r("line", { attrs: { x1: "12", y1: "8", x2: "12", y2: "8" } })]) : t._e()]), r("div", { staticStyle: { flex: "1 1 60%", margin: "7px 0 7px 0", width: "1px", display: "flex" } }, [t._l(t.inputs, function(n, o) {
36
- return [n.component === "input" ? r("div", { key: o, class: { "input-wrapper": n.props.type !== "range" } }, [r("input", t._b({ class: {
37
- slider: n.props.type === "range"
38
- }, style: [
39
- n.props.type === "range" && {
40
- "--progress": `${(n.props.value - n.props.min) * 100 / (n.props.max - n.props.min)}%`
41
- }
42
- ], on: { input: function(a) {
43
- n.onInput && n.onInput(a.target.value);
44
- }, keypress: function(a) {
45
- n.props.type === "number" && t.onKeyPressNumberRestrict(a);
46
- } } }, "input", n.props, !1))]) : n.component === "inputSelect" ? r("div", { key: o + "input", staticClass: "input-wrapper" }, [r("input", t._b({ staticStyle: { "border-top-right-radius": "0", "border-bottom-right-radius": "0", "margin-right": "1px" }, on: { input: function(a) {
47
- n.props.input.onInput && n.props.input.onInput(a.target.value);
48
- }, keypress: function(a) {
49
- n.props.input.type === "number" && t.onKeyPressNumberRestrict(a);
50
- } } }, "input", n.props.input, !1)), r("div", { staticClass: "select-wrapper" }, [r("select", t._b({ staticStyle: { "border-left": "1px solid #ddd", width: "20px", "border-top-left-radius": "0", "border-bottom-left-radius": "0" }, on: { input: function(a) {
51
- n.props.select.onInput && n.props.select.onInput(a.target.value);
52
- } } }, "select", n.props.select, !1), t._l(n.props.select.options, function(a) {
53
- return r("option", { key: a.value, domProps: { value: a.value, selected: a.value === n.props.select.value } }, [t._v(" " + t._s(a.label) + " ")]);
54
- }), 0)])]) : n.component === "step" ? r("div", { key: o, staticClass: "input-wrapper" }, [r("button", { staticStyle: { width: "50%", height: "100%", display: "flex", "justify-content": "center", "align-items": "center", cursor: "pointer" }, on: { click: n.onDecrease } }, [r("CIcon", { staticStyle: { opacity: "0.85" }, attrs: { size: "15", type: "minus" } })], 1), r("div", { staticStyle: { width: "1px", height: "100%", "background-color": "hsl(0, 0%, 86%)", margin: "0 1px" } }), r("button", { staticStyle: { width: "50%", height: "100%", display: "flex", "justify-content": "center", "align-items": "center", cursor: "pointer" }, on: { click: n.onIncrease } }, [r("CIcon", { staticStyle: { opacity: "0.85" }, attrs: { size: "15", type: "plus" } })], 1)]) : n.component === "select" ? r("div", { key: o, staticClass: "input-wrapper" }, [r("select", t._b({ on: { input: function(a) {
55
- n.onInput && n.onInput(a.target.value);
56
- } } }, "select", n.props, !1), t._l(n.props.options, function(a) {
57
- return r("option", { key: a.value, domProps: { value: a.value, selected: a.value === n.props.value } }, [t._v(" " + t._s(a.label) + " ")]);
58
- }), 0)]) : n.component === "color" ? r("div", { key: o, staticClass: "input-wrapper" }, [r("CDropdown", { staticStyle: { width: "100%" }, attrs: { "menu-styling": { width: "240px" }, position: n.props.position || "is-top-right", paddingless: "", expanded: "" } }, [r("div", { staticStyle: { height: "26px", display: "flex", "align-items": "center", "flex-wrap": "nowrap", overflow: "hidden", "border-radius": "5px", "font-size": "13px", cursor: "pointer" }, attrs: { slot: "trigger" }, slot: "trigger" }, [r("div", { staticStyle: { height: "20px", width: "26px", margin: "0px 3px", "border-radius": "3px", "box-shadow": "inset 0 0 2px rgba(0, 0, 0, 0.3)" }, style: { "background-color": n.props.value } }), r("div", { staticStyle: { padding: "0 5px" } }, [t._v(t._s(n.props.value))]), n.props.value && n.props.showReset ? r("div", { staticClass: "plain-button", staticStyle: { position: "absolute", width: "24px", right: "2px", display: "grid", "place-items": "center", top: "2px", bottom: "2px", "border-radius": "4px" }, on: { click: function(a) {
59
- return a.preventDefault(), a.stopPropagation(), n.onInput("");
60
- } } }, [r("CIcon", { attrs: { type: "reset", size: "14", "stroke-width": "2.5" } })], 1) : t._e()]), r("ColorPicker", t._b({ staticStyle: { "box-shadow": "none" }, on: { input: ({ a, hex: p, hex8: c }) => n.onInput && n.onInput(a === 1 ? p : c) } }, "ColorPicker", n.props, !1))], 1)], 1) : n.component === "font" ? r("div", { key: o, staticClass: "input-wrapper" }, [r("FontPickerDropdown", t._b({ staticClass: "font-input-wrapper", on: { input: (a) => n.onInput && n.onInput(a) }, scopedSlots: t._u([{ key: "default", fn: function({ selectedFamily: a }) {
61
- return r("button", { staticClass: "truncate-text" }, [r("span", { staticStyle: { width: "90%", display: "block" } }, [t._v(" " + t._s(a) + " ")])]);
62
- } }], null, !0) }, "FontPickerDropdown", n.props, !1))], 1) : n.component === "currency" ? r("div", { key: o, staticClass: "input-wrapper" }, [r("CCurrencyDropdown", t._b({ staticClass: "currency-input-wrapper", on: { input: (a) => n.onInput && n.onInput(a) }, scopedSlots: t._u([{ key: "default", fn: function({ selectedValue: a }) {
63
- return r("button", { staticClass: "truncate-text" }, [r("span", { staticStyle: { width: "90%", display: "block" } }, [t._v(" " + t._s(a) + " ")])]);
64
- } }], null, !0) }, "CCurrencyDropdown", n.props, !1))], 1) : n.component === "switch" ? r("div", { key: o, staticClass: "input-wrapper switch" }, [r("CSwitch", t._b({ attrs: { size: "tiny", type: "secondary" }, on: { input: (a) => n.onInput && n.onInput(a) } }, "CSwitch", n.props, !1))], 1) : n.component === "popup" ? r("div", { key: o, staticClass: "input-wrapper" }, [r("CDropdown", { staticStyle: { width: "100%" }, attrs: { "menu-styling": { width: n.props.width } } }, [r("div", { staticStyle: { height: "26px", display: "flex", "align-items": "center", "flex-wrap": "nowrap", overflow: "hidden", "border-radius": "5px", "font-size": "13px", cursor: "pointer" }, attrs: { slot: "trigger" }, slot: "trigger" }, [r("div", { staticStyle: { padding: "0 5px" } }, [t._v(t._s(n.props.value))])]), r("div", t._l(n.props.popup.inputs, function(a, p) {
65
- return r("FormInputRow", { key: p, attrs: { inputs: a.inputs, label: a.label } });
66
- }), 1)])], 1) : n.component === "button" ? r("div", { key: o, staticClass: "input-wrapper" }, [r("button", { staticStyle: { width: "100%", height: "100%", display: "flex", "justify-content": "center", "align-items": "center", cursor: "pointer" }, on: { click: n.onClick } }, [t._v(" " + t._s(n.props.text) + " ")])]) : [t._v(" " + t._s(n.component) + " ")]];
67
- })], 2)]);
68
- }, br = [], wr = /* @__PURE__ */ vr(
69
- gr,
70
- yr,
71
- br,
72
- !1,
73
- null,
74
- "96de55ea"
75
- );
76
- const xr = wr.exports, Or = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
77
- __proto__: null,
78
- default: xr
79
- }, Symbol.toStringTag, { value: "Module" }));
80
- var N = "top", q = "bottom", X = "right", V = "left", mt = "auto", Ne = [N, q, X, V], Ee = "start", _e = "end", Er = "clippingParents", Wt = "viewport", Ie = "popper", Tr = "reference", Tt = /* @__PURE__ */ Ne.reduce(function(e, t) {
81
- return e.concat([t + "-" + Ee, t + "-" + _e]);
82
- }, []), Ut = /* @__PURE__ */ [].concat(Ne, [mt]).reduce(function(e, t) {
83
- return e.concat([t, t + "-" + Ee, t + "-" + _e]);
84
- }, []), Ar = "beforeRead", Cr = "read", Dr = "afterRead", Sr = "beforeMain", kr = "main", Lr = "afterMain", Rr = "beforeWrite", Pr = "write", Ir = "afterWrite", Mr = [Ar, Cr, Dr, Sr, kr, Lr, Rr, Pr, Ir];
85
- function te(e) {
86
- return e ? (e.nodeName || "").toLowerCase() : null;
87
- }
88
- function Y(e) {
89
- if (e == null)
90
- return window;
91
- if (e.toString() !== "[object Window]") {
92
- var t = e.ownerDocument;
93
- return t && t.defaultView || window;
94
- }
95
- return e;
96
- }
97
- function ge(e) {
98
- var t = Y(e).Element;
99
- return e instanceof t || e instanceof Element;
100
- }
101
- function z(e) {
102
- var t = Y(e).HTMLElement;
103
- return e instanceof t || e instanceof HTMLElement;
104
- }
105
- function ht(e) {
106
- if (typeof ShadowRoot > "u")
107
- return !1;
108
- var t = Y(e).ShadowRoot;
109
- return e instanceof t || e instanceof ShadowRoot;
110
- }
111
- function jr(e) {
112
- var t = e.state;
113
- Object.keys(t.elements).forEach(function(r) {
114
- var n = t.styles[r] || {}, o = t.attributes[r] || {}, a = t.elements[r];
115
- !z(a) || !te(a) || (Object.assign(a.style, n), Object.keys(o).forEach(function(p) {
116
- var c = o[p];
117
- c === !1 ? a.removeAttribute(p) : a.setAttribute(p, c === !0 ? "" : c);
118
- }));
119
- });
120
- }
121
- function Br(e) {
122
- var t = e.state, r = {
123
- popper: {
124
- position: t.options.strategy,
125
- left: "0",
126
- top: "0",
127
- margin: "0"
128
- },
129
- arrow: {
130
- position: "absolute"
131
- },
132
- reference: {}
133
- };
134
- return Object.assign(t.elements.popper.style, r.popper), t.styles = r, t.elements.arrow && Object.assign(t.elements.arrow.style, r.arrow), function() {
135
- Object.keys(t.elements).forEach(function(n) {
136
- var o = t.elements[n], a = t.attributes[n] || {}, p = Object.keys(t.styles.hasOwnProperty(n) ? t.styles[n] : r[n]), c = p.reduce(function(u, l) {
137
- return u[l] = "", u;
138
- }, {});
139
- !z(o) || !te(o) || (Object.assign(o.style, c), Object.keys(a).forEach(function(u) {
140
- o.removeAttribute(u);
141
- }));
142
- });
143
- };
144
- }
145
- const zt = {
146
- name: "applyStyles",
147
- enabled: !0,
148
- phase: "write",
149
- fn: jr,
150
- effect: Br,
151
- requires: ["computeStyles"]
152
- };
153
- function ee(e) {
154
- return e.split("-")[0];
155
- }
156
- var he = Math.max, tt = Math.min, Te = Math.round;
157
- function ft() {
158
- var e = navigator.userAgentData;
159
- return e != null && e.brands ? e.brands.map(function(t) {
160
- return t.brand + "/" + t.version;
161
- }).join(" ") : navigator.userAgent;
162
- }
163
- function qt() {
164
- return !/^((?!chrome|android).)*safari/i.test(ft());
165
- }
166
- function Ae(e, t, r) {
167
- t === void 0 && (t = !1), r === void 0 && (r = !1);
168
- var n = e.getBoundingClientRect(), o = 1, a = 1;
169
- t && z(e) && (o = e.offsetWidth > 0 && Te(n.width) / e.offsetWidth || 1, a = e.offsetHeight > 0 && Te(n.height) / e.offsetHeight || 1);
170
- var p = ge(e) ? Y(e) : window, c = p.visualViewport, u = !qt() && r, l = (n.left + (u && c ? c.offsetLeft : 0)) / o, f = (n.top + (u && c ? c.offsetTop : 0)) / a, b = n.width / o, x = n.height / a;
171
- return {
172
- width: b,
173
- height: x,
174
- top: f,
175
- right: l + b,
176
- bottom: f + x,
177
- left: l,
178
- x: l,
179
- y: f
180
- };
181
- }
182
- function gt(e) {
183
- var t = Ae(e), r = e.offsetWidth, n = e.offsetHeight;
184
- return Math.abs(t.width - r) <= 1 && (r = t.width), Math.abs(t.height - n) <= 1 && (n = t.height), {
185
- x: e.offsetLeft,
186
- y: e.offsetTop,
187
- width: r,
188
- height: n
189
- };
190
- }
191
- function Xt(e, t) {
192
- var r = t.getRootNode && t.getRootNode();
193
- if (e.contains(t))
194
- return !0;
195
- if (r && ht(r)) {
196
- var n = t;
197
- do {
198
- if (n && e.isSameNode(n))
199
- return !0;
200
- n = n.parentNode || n.host;
201
- } while (n);
202
- }
203
- return !1;
204
- }
205
- function ae(e) {
206
- return Y(e).getComputedStyle(e);
207
- }
208
- function _r(e) {
209
- return ["table", "td", "th"].indexOf(te(e)) >= 0;
210
- }
211
- function ce(e) {
212
- return ((ge(e) ? e.ownerDocument : (
213
- // $FlowFixMe[prop-missing]
214
- e.document
215
- )) || window.document).documentElement;
216
- }
217
- function nt(e) {
218
- return te(e) === "html" ? e : (
219
- // this is a quicker (but less type safe) way to save quite some bytes from the bundle
220
- // $FlowFixMe[incompatible-return]
221
- // $FlowFixMe[prop-missing]
222
- e.assignedSlot || // step into the shadow DOM of the parent of a slotted node
223
- e.parentNode || // DOM Element detected
224
- (ht(e) ? e.host : null) || // ShadowRoot detected
225
- // $FlowFixMe[incompatible-call]: HTMLElement is a Node
226
- ce(e)
227
- );
228
- }
229
- function At(e) {
230
- return !z(e) || // https://github.com/popperjs/popper-core/issues/837
231
- ae(e).position === "fixed" ? null : e.offsetParent;
232
- }
233
- function $r(e) {
234
- var t = /firefox/i.test(ft()), r = /Trident/i.test(ft());
235
- if (r && z(e)) {
236
- var n = ae(e);
237
- if (n.position === "fixed")
238
- return null;
239
- }
240
- var o = nt(e);
241
- for (ht(o) && (o = o.host); z(o) && ["html", "body"].indexOf(te(o)) < 0; ) {
242
- var a = ae(o);
243
- if (a.transform !== "none" || a.perspective !== "none" || a.contain === "paint" || ["transform", "perspective"].indexOf(a.willChange) !== -1 || t && a.willChange === "filter" || t && a.filter && a.filter !== "none")
244
- return o;
245
- o = o.parentNode;
246
- }
247
- return null;
248
- }
249
- function Ve(e) {
250
- for (var t = Y(e), r = At(e); r && _r(r) && ae(r).position === "static"; )
251
- r = At(r);
252
- return r && (te(r) === "html" || te(r) === "body" && ae(r).position === "static") ? t : r || $r(e) || t;
253
- }
254
- function yt(e) {
255
- return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
256
- }
257
- function Me(e, t, r) {
258
- return he(e, tt(t, r));
259
- }
260
- function Nr(e, t, r) {
261
- var n = Me(e, t, r);
262
- return n > r ? r : n;
263
- }
264
- function Yt() {
265
- return {
266
- top: 0,
267
- right: 0,
268
- bottom: 0,
269
- left: 0
270
- };
271
- }
272
- function Kt(e) {
273
- return Object.assign({}, Yt(), e);
274
- }
275
- function Gt(e, t) {
276
- return t.reduce(function(r, n) {
277
- return r[n] = e, r;
278
- }, {});
279
- }
280
- var Vr = function(t, r) {
281
- return t = typeof t == "function" ? t(Object.assign({}, r.rects, {
282
- placement: r.placement
283
- })) : t, Kt(typeof t != "number" ? t : Gt(t, Ne));
284
- };
285
- function Fr(e) {
286
- var t, r = e.state, n = e.name, o = e.options, a = r.elements.arrow, p = r.modifiersData.popperOffsets, c = ee(r.placement), u = yt(c), l = [V, X].indexOf(c) >= 0, f = l ? "height" : "width";
287
- if (!(!a || !p)) {
288
- var b = Vr(o.padding, r), x = gt(a), h = u === "y" ? N : V, O = u === "y" ? q : X, w = r.rects.reference[f] + r.rects.reference[u] - p[u] - r.rects.popper[f], d = p[u] - r.rects.reference[u], g = Ve(a), E = g ? u === "y" ? g.clientHeight || 0 : g.clientWidth || 0 : 0, T = w / 2 - d / 2, i = b[h], A = E - x[f] - b[O], m = E / 2 - x[f] / 2 + T, S = Me(i, m, A), I = u;
289
- r.modifiersData[n] = (t = {}, t[I] = S, t.centerOffset = S - m, t);
290
- }
291
- }
292
- function Hr(e) {
293
- var t = e.state, r = e.options, n = r.element, o = n === void 0 ? "[data-popper-arrow]" : n;
294
- o != null && (typeof o == "string" && (o = t.elements.popper.querySelector(o), !o) || Xt(t.elements.popper, o) && (t.elements.arrow = o));
295
- }
296
- const Wr = {
297
- name: "arrow",
298
- enabled: !0,
299
- phase: "main",
300
- fn: Fr,
301
- effect: Hr,
302
- requires: ["popperOffsets"],
303
- requiresIfExists: ["preventOverflow"]
304
- };
305
- function Ce(e) {
306
- return e.split("-")[1];
307
- }
308
- var Ur = {
309
- top: "auto",
310
- right: "auto",
311
- bottom: "auto",
312
- left: "auto"
313
- };
314
- function zr(e) {
315
- var t = e.x, r = e.y, n = window, o = n.devicePixelRatio || 1;
316
- return {
317
- x: Te(t * o) / o || 0,
318
- y: Te(r * o) / o || 0
319
- };
320
- }
321
- function Ct(e) {
322
- var t, r = e.popper, n = e.popperRect, o = e.placement, a = e.variation, p = e.offsets, c = e.position, u = e.gpuAcceleration, l = e.adaptive, f = e.roundOffsets, b = e.isFixed, x = p.x, h = x === void 0 ? 0 : x, O = p.y, w = O === void 0 ? 0 : O, d = typeof f == "function" ? f({
323
- x: h,
324
- y: w
325
- }) : {
326
- x: h,
327
- y: w
328
- };
329
- h = d.x, w = d.y;
330
- var g = p.hasOwnProperty("x"), E = p.hasOwnProperty("y"), T = V, i = N, A = window;
331
- if (l) {
332
- var m = Ve(r), S = "clientHeight", I = "clientWidth";
333
- if (m === Y(r) && (m = ce(r), ae(m).position !== "static" && c === "absolute" && (S = "scrollHeight", I = "scrollWidth")), m = m, o === N || (o === V || o === X) && a === _e) {
334
- i = q;
335
- var P = b && m === A && A.visualViewport ? A.visualViewport.height : (
336
- // $FlowFixMe[prop-missing]
337
- m[S]
338
- );
339
- w -= P - n.height, w *= u ? 1 : -1;
340
- }
341
- if (o === V || (o === N || o === q) && a === _e) {
342
- T = X;
343
- var L = b && m === A && A.visualViewport ? A.visualViewport.width : (
344
- // $FlowFixMe[prop-missing]
345
- m[I]
346
- );
347
- h -= L - n.width, h *= u ? 1 : -1;
348
- }
349
- }
350
- var M = Object.assign({
351
- position: c
352
- }, l && Ur), R = f === !0 ? zr({
353
- x: h,
354
- y: w
355
- }) : {
356
- x: h,
357
- y: w
358
- };
359
- if (h = R.x, w = R.y, u) {
360
- var k;
361
- return Object.assign({}, M, (k = {}, k[i] = E ? "0" : "", k[T] = g ? "0" : "", k.transform = (A.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + w + "px)" : "translate3d(" + h + "px, " + w + "px, 0)", k));
362
- }
363
- return Object.assign({}, M, (t = {}, t[i] = E ? w + "px" : "", t[T] = g ? h + "px" : "", t.transform = "", t));
364
- }
365
- function qr(e) {
366
- var t = e.state, r = e.options, n = r.gpuAcceleration, o = n === void 0 ? !0 : n, a = r.adaptive, p = a === void 0 ? !0 : a, c = r.roundOffsets, u = c === void 0 ? !0 : c, l = {
367
- placement: ee(t.placement),
368
- variation: Ce(t.placement),
369
- popper: t.elements.popper,
370
- popperRect: t.rects.popper,
371
- gpuAcceleration: o,
372
- isFixed: t.options.strategy === "fixed"
373
- };
374
- t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, Ct(Object.assign({}, l, {
375
- offsets: t.modifiersData.popperOffsets,
376
- position: t.options.strategy,
377
- adaptive: p,
378
- roundOffsets: u
379
- })))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, Ct(Object.assign({}, l, {
380
- offsets: t.modifiersData.arrow,
381
- position: "absolute",
382
- adaptive: !1,
383
- roundOffsets: u
384
- })))), t.attributes.popper = Object.assign({}, t.attributes.popper, {
385
- "data-popper-placement": t.placement
386
- });
387
- }
388
- const Xr = {
389
- name: "computeStyles",
390
- enabled: !0,
391
- phase: "beforeWrite",
392
- fn: qr,
393
- data: {}
394
- };
395
- var Qe = {
396
- passive: !0
397
- };
398
- function Yr(e) {
399
- var t = e.state, r = e.instance, n = e.options, o = n.scroll, a = o === void 0 ? !0 : o, p = n.resize, c = p === void 0 ? !0 : p, u = Y(t.elements.popper), l = [].concat(t.scrollParents.reference, t.scrollParents.popper);
400
- return a && l.forEach(function(f) {
401
- f.addEventListener("scroll", r.update, Qe);
402
- }), c && u.addEventListener("resize", r.update, Qe), function() {
403
- a && l.forEach(function(f) {
404
- f.removeEventListener("scroll", r.update, Qe);
405
- }), c && u.removeEventListener("resize", r.update, Qe);
406
- };
407
- }
408
- const Kr = {
409
- name: "eventListeners",
410
- enabled: !0,
411
- phase: "write",
412
- fn: function() {
413
- },
414
- effect: Yr,
415
- data: {}
416
- };
417
- var Gr = {
418
- left: "right",
419
- right: "left",
420
- bottom: "top",
421
- top: "bottom"
422
- };
423
- function et(e) {
424
- return e.replace(/left|right|bottom|top/g, function(t) {
425
- return Gr[t];
426
- });
427
- }
428
- var Jr = {
429
- start: "end",
430
- end: "start"
431
- };
432
- function Dt(e) {
433
- return e.replace(/start|end/g, function(t) {
434
- return Jr[t];
435
- });
436
- }
437
- function bt(e) {
438
- var t = Y(e), r = t.pageXOffset, n = t.pageYOffset;
439
- return {
440
- scrollLeft: r,
441
- scrollTop: n
442
- };
443
- }
444
- function wt(e) {
445
- return Ae(ce(e)).left + bt(e).scrollLeft;
446
- }
447
- function Qr(e, t) {
448
- var r = Y(e), n = ce(e), o = r.visualViewport, a = n.clientWidth, p = n.clientHeight, c = 0, u = 0;
449
- if (o) {
450
- a = o.width, p = o.height;
451
- var l = qt();
452
- (l || !l && t === "fixed") && (c = o.offsetLeft, u = o.offsetTop);
453
- }
454
- return {
455
- width: a,
456
- height: p,
457
- x: c + wt(e),
458
- y: u
459
- };
460
- }
461
- function Zr(e) {
462
- var t, r = ce(e), n = bt(e), o = (t = e.ownerDocument) == null ? void 0 : t.body, a = he(r.scrollWidth, r.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), p = he(r.scrollHeight, r.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), c = -n.scrollLeft + wt(e), u = -n.scrollTop;
463
- return ae(o || r).direction === "rtl" && (c += he(r.clientWidth, o ? o.clientWidth : 0) - a), {
464
- width: a,
465
- height: p,
466
- x: c,
467
- y: u
468
- };
469
- }
470
- function xt(e) {
471
- var t = ae(e), r = t.overflow, n = t.overflowX, o = t.overflowY;
472
- return /auto|scroll|overlay|hidden/.test(r + o + n);
473
- }
474
- function Jt(e) {
475
- return ["html", "body", "#document"].indexOf(te(e)) >= 0 ? e.ownerDocument.body : z(e) && xt(e) ? e : Jt(nt(e));
476
- }
477
- function je(e, t) {
478
- var r;
479
- t === void 0 && (t = []);
480
- var n = Jt(e), o = n === ((r = e.ownerDocument) == null ? void 0 : r.body), a = Y(n), p = o ? [a].concat(a.visualViewport || [], xt(n) ? n : []) : n, c = t.concat(p);
481
- return o ? c : (
482
- // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
483
- c.concat(je(nt(p)))
484
- );
485
- }
486
- function lt(e) {
487
- return Object.assign({}, e, {
488
- left: e.x,
489
- top: e.y,
490
- right: e.x + e.width,
491
- bottom: e.y + e.height
492
- });
493
- }
494
- function en(e, t) {
495
- var r = Ae(e, !1, t === "fixed");
496
- return r.top = r.top + e.clientTop, r.left = r.left + e.clientLeft, r.bottom = r.top + e.clientHeight, r.right = r.left + e.clientWidth, r.width = e.clientWidth, r.height = e.clientHeight, r.x = r.left, r.y = r.top, r;
497
- }
498
- function St(e, t, r) {
499
- return t === Wt ? lt(Qr(e, r)) : ge(t) ? en(t, r) : lt(Zr(ce(e)));
500
- }
501
- function tn(e) {
502
- var t = je(nt(e)), r = ["absolute", "fixed"].indexOf(ae(e).position) >= 0, n = r && z(e) ? Ve(e) : e;
503
- return ge(n) ? t.filter(function(o) {
504
- return ge(o) && Xt(o, n) && te(o) !== "body";
505
- }) : [];
506
- }
507
- function rn(e, t, r, n) {
508
- var o = t === "clippingParents" ? tn(e) : [].concat(t), a = [].concat(o, [r]), p = a[0], c = a.reduce(function(u, l) {
509
- var f = St(e, l, n);
510
- return u.top = he(f.top, u.top), u.right = tt(f.right, u.right), u.bottom = tt(f.bottom, u.bottom), u.left = he(f.left, u.left), u;
511
- }, St(e, p, n));
512
- return c.width = c.right - c.left, c.height = c.bottom - c.top, c.x = c.left, c.y = c.top, c;
513
- }
514
- function Qt(e) {
515
- var t = e.reference, r = e.element, n = e.placement, o = n ? ee(n) : null, a = n ? Ce(n) : null, p = t.x + t.width / 2 - r.width / 2, c = t.y + t.height / 2 - r.height / 2, u;
516
- switch (o) {
517
- case N:
518
- u = {
519
- x: p,
520
- y: t.y - r.height
521
- };
522
- break;
523
- case q:
524
- u = {
525
- x: p,
526
- y: t.y + t.height
527
- };
528
- break;
529
- case X:
530
- u = {
531
- x: t.x + t.width,
532
- y: c
533
- };
534
- break;
535
- case V:
536
- u = {
537
- x: t.x - r.width,
538
- y: c
539
- };
540
- break;
541
- default:
542
- u = {
543
- x: t.x,
544
- y: t.y
545
- };
546
- }
547
- var l = o ? yt(o) : null;
548
- if (l != null) {
549
- var f = l === "y" ? "height" : "width";
550
- switch (a) {
551
- case Ee:
552
- u[l] = u[l] - (t[f] / 2 - r[f] / 2);
553
- break;
554
- case _e:
555
- u[l] = u[l] + (t[f] / 2 - r[f] / 2);
556
- break;
557
- }
558
- }
559
- return u;
560
- }
561
- function $e(e, t) {
562
- t === void 0 && (t = {});
563
- var r = t, n = r.placement, o = n === void 0 ? e.placement : n, a = r.strategy, p = a === void 0 ? e.strategy : a, c = r.boundary, u = c === void 0 ? Er : c, l = r.rootBoundary, f = l === void 0 ? Wt : l, b = r.elementContext, x = b === void 0 ? Ie : b, h = r.altBoundary, O = h === void 0 ? !1 : h, w = r.padding, d = w === void 0 ? 0 : w, g = Kt(typeof d != "number" ? d : Gt(d, Ne)), E = x === Ie ? Tr : Ie, T = e.rects.popper, i = e.elements[O ? E : x], A = rn(ge(i) ? i : i.contextElement || ce(e.elements.popper), u, f, p), m = Ae(e.elements.reference), S = Qt({
564
- reference: m,
565
- element: T,
566
- strategy: "absolute",
567
- placement: o
568
- }), I = lt(Object.assign({}, T, S)), P = x === Ie ? I : m, L = {
569
- top: A.top - P.top + g.top,
570
- bottom: P.bottom - A.bottom + g.bottom,
571
- left: A.left - P.left + g.left,
572
- right: P.right - A.right + g.right
573
- }, M = e.modifiersData.offset;
574
- if (x === Ie && M) {
575
- var R = M[o];
576
- Object.keys(L).forEach(function(k) {
577
- var F = [X, q].indexOf(k) >= 0 ? 1 : -1, H = [N, q].indexOf(k) >= 0 ? "y" : "x";
578
- L[k] += R[H] * F;
579
- });
580
- }
581
- return L;
582
- }
583
- function nn(e, t) {
584
- t === void 0 && (t = {});
585
- var r = t, n = r.placement, o = r.boundary, a = r.rootBoundary, p = r.padding, c = r.flipVariations, u = r.allowedAutoPlacements, l = u === void 0 ? Ut : u, f = Ce(n), b = f ? c ? Tt : Tt.filter(function(O) {
586
- return Ce(O) === f;
587
- }) : Ne, x = b.filter(function(O) {
588
- return l.indexOf(O) >= 0;
589
- });
590
- x.length === 0 && (x = b);
591
- var h = x.reduce(function(O, w) {
592
- return O[w] = $e(e, {
593
- placement: w,
594
- boundary: o,
595
- rootBoundary: a,
596
- padding: p
597
- })[ee(w)], O;
598
- }, {});
599
- return Object.keys(h).sort(function(O, w) {
600
- return h[O] - h[w];
601
- });
602
- }
603
- function on(e) {
604
- if (ee(e) === mt)
605
- return [];
606
- var t = et(e);
607
- return [Dt(e), t, Dt(t)];
608
- }
609
- function an(e) {
610
- var t = e.state, r = e.options, n = e.name;
611
- if (!t.modifiersData[n]._skip) {
612
- for (var o = r.mainAxis, a = o === void 0 ? !0 : o, p = r.altAxis, c = p === void 0 ? !0 : p, u = r.fallbackPlacements, l = r.padding, f = r.boundary, b = r.rootBoundary, x = r.altBoundary, h = r.flipVariations, O = h === void 0 ? !0 : h, w = r.allowedAutoPlacements, d = t.options.placement, g = ee(d), E = g === d, T = u || (E || !O ? [et(d)] : on(d)), i = [d].concat(T).reduce(function(re, K) {
613
- return re.concat(ee(K) === mt ? nn(t, {
614
- placement: K,
615
- boundary: f,
616
- rootBoundary: b,
617
- padding: l,
618
- flipVariations: O,
619
- allowedAutoPlacements: w
620
- }) : K);
621
- }, []), A = t.rects.reference, m = t.rects.popper, S = /* @__PURE__ */ new Map(), I = !0, P = i[0], L = 0; L < i.length; L++) {
622
- var M = i[L], R = ee(M), k = Ce(M) === Ee, F = [N, q].indexOf(R) >= 0, H = F ? "width" : "height", B = $e(t, {
623
- placement: M,
624
- boundary: f,
625
- rootBoundary: b,
626
- altBoundary: x,
627
- padding: l
628
- }), _ = F ? k ? X : V : k ? q : N;
629
- A[H] > m[H] && (_ = et(_));
630
- var j = et(_), G = [];
631
- if (a && G.push(B[R] <= 0), c && G.push(B[_] <= 0, B[j] <= 0), G.every(function(re) {
632
- return re;
633
- })) {
634
- P = M, I = !1;
635
- break;
636
- }
637
- S.set(M, G);
638
- }
639
- if (I)
640
- for (var J = O ? 3 : 1, fe = function(K) {
641
- var ne = i.find(function(ye) {
642
- var ie = S.get(ye);
643
- if (ie)
644
- return ie.slice(0, K).every(function(be) {
645
- return be;
646
- });
647
- });
648
- if (ne)
649
- return P = ne, "break";
650
- }, Q = J; Q > 0; Q--) {
651
- var le = fe(Q);
652
- if (le === "break")
653
- break;
654
- }
655
- t.placement !== P && (t.modifiersData[n]._skip = !0, t.placement = P, t.reset = !0);
656
- }
657
- }
658
- const sn = {
659
- name: "flip",
660
- enabled: !0,
661
- phase: "main",
662
- fn: an,
663
- requiresIfExists: ["offset"],
664
- data: {
665
- _skip: !1
666
- }
667
- };
668
- function kt(e, t, r) {
669
- return r === void 0 && (r = {
670
- x: 0,
671
- y: 0
672
- }), {
673
- top: e.top - t.height - r.y,
674
- right: e.right - t.width + r.x,
675
- bottom: e.bottom - t.height + r.y,
676
- left: e.left - t.width - r.x
677
- };
678
- }
679
- function Lt(e) {
680
- return [N, X, q, V].some(function(t) {
681
- return e[t] >= 0;
682
- });
683
- }
684
- function un(e) {
685
- var t = e.state, r = e.name, n = t.rects.reference, o = t.rects.popper, a = t.modifiersData.preventOverflow, p = $e(t, {
686
- elementContext: "reference"
687
- }), c = $e(t, {
688
- altBoundary: !0
689
- }), u = kt(p, n), l = kt(c, o, a), f = Lt(u), b = Lt(l);
690
- t.modifiersData[r] = {
691
- referenceClippingOffsets: u,
692
- popperEscapeOffsets: l,
693
- isReferenceHidden: f,
694
- hasPopperEscaped: b
695
- }, t.attributes.popper = Object.assign({}, t.attributes.popper, {
696
- "data-popper-reference-hidden": f,
697
- "data-popper-escaped": b
698
- });
699
- }
700
- const pn = {
701
- name: "hide",
702
- enabled: !0,
703
- phase: "main",
704
- requiresIfExists: ["preventOverflow"],
705
- fn: un
706
- };
707
- function cn(e, t, r) {
708
- var n = ee(e), o = [V, N].indexOf(n) >= 0 ? -1 : 1, a = typeof r == "function" ? r(Object.assign({}, t, {
709
- placement: e
710
- })) : r, p = a[0], c = a[1];
711
- return p = p || 0, c = (c || 0) * o, [V, X].indexOf(n) >= 0 ? {
712
- x: c,
713
- y: p
714
- } : {
715
- x: p,
716
- y: c
717
- };
718
- }
719
- function fn(e) {
720
- var t = e.state, r = e.options, n = e.name, o = r.offset, a = o === void 0 ? [0, 0] : o, p = Ut.reduce(function(f, b) {
721
- return f[b] = cn(b, t.rects, a), f;
722
- }, {}), c = p[t.placement], u = c.x, l = c.y;
723
- t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += u, t.modifiersData.popperOffsets.y += l), t.modifiersData[n] = p;
724
- }
725
- const ln = {
726
- name: "offset",
727
- enabled: !0,
728
- phase: "main",
729
- requires: ["popperOffsets"],
730
- fn
731
- };
732
- function dn(e) {
733
- var t = e.state, r = e.name;
734
- t.modifiersData[r] = Qt({
735
- reference: t.rects.reference,
736
- element: t.rects.popper,
737
- strategy: "absolute",
738
- placement: t.placement
739
- });
740
- }
741
- const vn = {
742
- name: "popperOffsets",
743
- enabled: !0,
744
- phase: "read",
745
- fn: dn,
746
- data: {}
747
- };
748
- function mn(e) {
749
- return e === "x" ? "y" : "x";
750
- }
751
- function hn(e) {
752
- var t = e.state, r = e.options, n = e.name, o = r.mainAxis, a = o === void 0 ? !0 : o, p = r.altAxis, c = p === void 0 ? !1 : p, u = r.boundary, l = r.rootBoundary, f = r.altBoundary, b = r.padding, x = r.tether, h = x === void 0 ? !0 : x, O = r.tetherOffset, w = O === void 0 ? 0 : O, d = $e(t, {
753
- boundary: u,
754
- rootBoundary: l,
755
- padding: b,
756
- altBoundary: f
757
- }), g = ee(t.placement), E = Ce(t.placement), T = !E, i = yt(g), A = mn(i), m = t.modifiersData.popperOffsets, S = t.rects.reference, I = t.rects.popper, P = typeof w == "function" ? w(Object.assign({}, t.rects, {
758
- placement: t.placement
759
- })) : w, L = typeof P == "number" ? {
760
- mainAxis: P,
761
- altAxis: P
762
- } : Object.assign({
763
- mainAxis: 0,
764
- altAxis: 0
765
- }, P), M = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, R = {
766
- x: 0,
767
- y: 0
768
- };
769
- if (m) {
770
- if (a) {
771
- var k, F = i === "y" ? N : V, H = i === "y" ? q : X, B = i === "y" ? "height" : "width", _ = m[i], j = _ + d[F], G = _ - d[H], J = h ? -I[B] / 2 : 0, fe = E === Ee ? S[B] : I[B], Q = E === Ee ? -I[B] : -S[B], le = t.elements.arrow, re = h && le ? gt(le) : {
772
- width: 0,
773
- height: 0
774
- }, K = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Yt(), ne = K[F], ye = K[H], ie = Me(0, S[B], re[B]), be = T ? S[B] / 2 - J - ie - ne - L.mainAxis : fe - ie - ne - L.mainAxis, se = T ? -S[B] / 2 + J + ie + ye + L.mainAxis : Q + ie + ye + L.mainAxis, we = t.elements.arrow && Ve(t.elements.arrow), Fe = we ? i === "y" ? we.clientTop || 0 : we.clientLeft || 0 : 0, Se = (k = M == null ? void 0 : M[i]) != null ? k : 0, He = _ + be - Se - Fe, We = _ + se - Se, ke = Me(h ? tt(j, He) : j, _, h ? he(G, We) : G);
775
- m[i] = ke, R[i] = ke - _;
776
- }
777
- if (c) {
778
- var Le, Ue = i === "x" ? N : V, ze = i === "x" ? q : X, oe = m[A], ue = A === "y" ? "height" : "width", Re = oe + d[Ue], de = oe - d[ze], Pe = [N, V].indexOf(g) !== -1, qe = (Le = M == null ? void 0 : M[A]) != null ? Le : 0, Xe = Pe ? Re : oe - S[ue] - I[ue] - qe + L.altAxis, Ye = Pe ? oe + S[ue] + I[ue] - qe - L.altAxis : de, Ke = h && Pe ? Nr(Xe, oe, Ye) : Me(h ? Xe : Re, oe, h ? Ye : de);
779
- m[A] = Ke, R[A] = Ke - oe;
780
- }
781
- t.modifiersData[n] = R;
782
- }
783
- }
784
- const gn = {
785
- name: "preventOverflow",
786
- enabled: !0,
787
- phase: "main",
788
- fn: hn,
789
- requiresIfExists: ["offset"]
790
- };
791
- function yn(e) {
792
- return {
793
- scrollLeft: e.scrollLeft,
794
- scrollTop: e.scrollTop
795
- };
796
- }
797
- function bn(e) {
798
- return e === Y(e) || !z(e) ? bt(e) : yn(e);
799
- }
800
- function wn(e) {
801
- var t = e.getBoundingClientRect(), r = Te(t.width) / e.offsetWidth || 1, n = Te(t.height) / e.offsetHeight || 1;
802
- return r !== 1 || n !== 1;
803
- }
804
- function xn(e, t, r) {
805
- r === void 0 && (r = !1);
806
- var n = z(t), o = z(t) && wn(t), a = ce(t), p = Ae(e, o, r), c = {
807
- scrollLeft: 0,
808
- scrollTop: 0
809
- }, u = {
810
- x: 0,
811
- y: 0
812
- };
813
- return (n || !n && !r) && ((te(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
814
- xt(a)) && (c = bn(t)), z(t) ? (u = Ae(t, !0), u.x += t.clientLeft, u.y += t.clientTop) : a && (u.x = wt(a))), {
815
- x: p.left + c.scrollLeft - u.x,
816
- y: p.top + c.scrollTop - u.y,
817
- width: p.width,
818
- height: p.height
819
- };
820
- }
821
- function On(e) {
822
- var t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), n = [];
823
- e.forEach(function(a) {
824
- t.set(a.name, a);
825
- });
826
- function o(a) {
827
- r.add(a.name);
828
- var p = [].concat(a.requires || [], a.requiresIfExists || []);
829
- p.forEach(function(c) {
830
- if (!r.has(c)) {
831
- var u = t.get(c);
832
- u && o(u);
833
- }
834
- }), n.push(a);
835
- }
836
- return e.forEach(function(a) {
837
- r.has(a.name) || o(a);
838
- }), n;
839
- }
840
- function En(e) {
841
- var t = On(e);
842
- return Mr.reduce(function(r, n) {
843
- return r.concat(t.filter(function(o) {
844
- return o.phase === n;
845
- }));
846
- }, []);
847
- }
848
- function Tn(e) {
849
- var t;
850
- return function() {
851
- return t || (t = new Promise(function(r) {
852
- Promise.resolve().then(function() {
853
- t = void 0, r(e());
854
- });
855
- })), t;
856
- };
857
- }
858
- function An(e) {
859
- var t = e.reduce(function(r, n) {
860
- var o = r[n.name];
861
- return r[n.name] = o ? Object.assign({}, o, n, {
862
- options: Object.assign({}, o.options, n.options),
863
- data: Object.assign({}, o.data, n.data)
864
- }) : n, r;
865
- }, {});
866
- return Object.keys(t).map(function(r) {
867
- return t[r];
868
- });
869
- }
870
- var Rt = {
871
- placement: "bottom",
872
- modifiers: [],
873
- strategy: "absolute"
874
- };
875
- function Pt() {
876
- for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
877
- t[r] = arguments[r];
878
- return !t.some(function(n) {
879
- return !(n && typeof n.getBoundingClientRect == "function");
880
- });
881
- }
882
- function Cn(e) {
883
- e === void 0 && (e = {});
884
- var t = e, r = t.defaultModifiers, n = r === void 0 ? [] : r, o = t.defaultOptions, a = o === void 0 ? Rt : o;
885
- return function(c, u, l) {
886
- l === void 0 && (l = a);
887
- var f = {
888
- placement: "bottom",
889
- orderedModifiers: [],
890
- options: Object.assign({}, Rt, a),
891
- modifiersData: {},
892
- elements: {
893
- reference: c,
894
- popper: u
895
- },
896
- attributes: {},
897
- styles: {}
898
- }, b = [], x = !1, h = {
899
- state: f,
900
- setOptions: function(g) {
901
- var E = typeof g == "function" ? g(f.options) : g;
902
- w(), f.options = Object.assign({}, a, f.options, E), f.scrollParents = {
903
- reference: ge(c) ? je(c) : c.contextElement ? je(c.contextElement) : [],
904
- popper: je(u)
905
- };
906
- var T = En(An([].concat(n, f.options.modifiers)));
907
- return f.orderedModifiers = T.filter(function(i) {
908
- return i.enabled;
909
- }), O(), h.update();
910
- },
911
- // Sync update – it will always be executed, even if not necessary. This
912
- // is useful for low frequency updates where sync behavior simplifies the
913
- // logic.
914
- // For high frequency updates (e.g. `resize` and `scroll` events), always
915
- // prefer the async Popper#update method
916
- forceUpdate: function() {
917
- if (!x) {
918
- var g = f.elements, E = g.reference, T = g.popper;
919
- if (Pt(E, T)) {
920
- f.rects = {
921
- reference: xn(E, Ve(T), f.options.strategy === "fixed"),
922
- popper: gt(T)
923
- }, f.reset = !1, f.placement = f.options.placement, f.orderedModifiers.forEach(function(L) {
924
- return f.modifiersData[L.name] = Object.assign({}, L.data);
925
- });
926
- for (var i = 0; i < f.orderedModifiers.length; i++) {
927
- if (f.reset === !0) {
928
- f.reset = !1, i = -1;
929
- continue;
930
- }
931
- var A = f.orderedModifiers[i], m = A.fn, S = A.options, I = S === void 0 ? {} : S, P = A.name;
932
- typeof m == "function" && (f = m({
933
- state: f,
934
- options: I,
935
- name: P,
936
- instance: h
937
- }) || f);
938
- }
939
- }
940
- }
941
- },
942
- // Async and optimistically optimized update – it will not be executed if
943
- // not necessary (debounced to run at most once-per-tick)
944
- update: Tn(function() {
945
- return new Promise(function(d) {
946
- h.forceUpdate(), d(f);
947
- });
948
- }),
949
- destroy: function() {
950
- w(), x = !0;
951
- }
952
- };
953
- if (!Pt(c, u))
954
- return h;
955
- h.setOptions(l).then(function(d) {
956
- !x && l.onFirstUpdate && l.onFirstUpdate(d);
957
- });
958
- function O() {
959
- f.orderedModifiers.forEach(function(d) {
960
- var g = d.name, E = d.options, T = E === void 0 ? {} : E, i = d.effect;
961
- if (typeof i == "function") {
962
- var A = i({
963
- state: f,
964
- name: g,
965
- instance: h,
966
- options: T
967
- }), m = function() {
968
- };
969
- b.push(A || m);
970
- }
971
- });
972
- }
973
- function w() {
974
- b.forEach(function(d) {
975
- return d();
976
- }), b = [];
977
- }
978
- return h;
979
- };
980
- }
981
- var Dn = [Kr, vn, Xr, zt, ln, sn, gn, Wr, pn], Sn = /* @__PURE__ */ Cn({
982
- defaultModifiers: Dn
983
- }), kn = "tippy-box", Zt = "tippy-content", Ln = "tippy-backdrop", er = "tippy-arrow", tr = "tippy-svg-arrow", pe = {
984
- passive: !0,
985
- capture: !0
986
- }, rr = function() {
987
- return document.body;
988
- };
989
- function st(e, t, r) {
990
- if (Array.isArray(e)) {
991
- var n = e[t];
992
- return n ?? (Array.isArray(r) ? r[t] : r);
993
- }
994
- return e;
995
- }
996
- function Ot(e, t) {
997
- var r = {}.toString.call(e);
998
- return r.indexOf("[object") === 0 && r.indexOf(t + "]") > -1;
999
- }
1000
- function nr(e, t) {
1001
- return typeof e == "function" ? e.apply(void 0, t) : e;
1002
- }
1003
- function It(e, t) {
1004
- if (t === 0)
1005
- return e;
1006
- var r;
1007
- return function(n) {
1008
- clearTimeout(r), r = setTimeout(function() {
1009
- e(n);
1010
- }, t);
1011
- };
1012
- }
1013
- function Rn(e, t) {
1014
- var r = Object.assign({}, e);
1015
- return t.forEach(function(n) {
1016
- delete r[n];
1017
- }), r;
1018
- }
1019
- function Pn(e) {
1020
- return e.split(/\s+/).filter(Boolean);
1021
- }
1022
- function me(e) {
1023
- return [].concat(e);
1024
- }
1025
- function Mt(e, t) {
1026
- e.indexOf(t) === -1 && e.push(t);
1027
- }
1028
- function In(e) {
1029
- return e.filter(function(t, r) {
1030
- return e.indexOf(t) === r;
1031
- });
1032
- }
1033
- function Mn(e) {
1034
- return e.split("-")[0];
1035
- }
1036
- function rt(e) {
1037
- return [].slice.call(e);
1038
- }
1039
- function jt(e) {
1040
- return Object.keys(e).reduce(function(t, r) {
1041
- return e[r] !== void 0 && (t[r] = e[r]), t;
1042
- }, {});
1043
- }
1044
- function Be() {
1045
- return document.createElement("div");
1046
- }
1047
- function it(e) {
1048
- return ["Element", "Fragment"].some(function(t) {
1049
- return Ot(e, t);
1050
- });
1051
- }
1052
- function jn(e) {
1053
- return Ot(e, "NodeList");
1054
- }
1055
- function Bn(e) {
1056
- return Ot(e, "MouseEvent");
1057
- }
1058
- function _n(e) {
1059
- return !!(e && e._tippy && e._tippy.reference === e);
1060
- }
1061
- function $n(e) {
1062
- return it(e) ? [e] : jn(e) ? rt(e) : Array.isArray(e) ? e : rt(document.querySelectorAll(e));
1063
- }
1064
- function ut(e, t) {
1065
- e.forEach(function(r) {
1066
- r && (r.style.transitionDuration = t + "ms");
1067
- });
1068
- }
1069
- function Bt(e, t) {
1070
- e.forEach(function(r) {
1071
- r && r.setAttribute("data-state", t);
1072
- });
1073
- }
1074
- function Nn(e) {
1075
- var t, r = me(e), n = r[0];
1076
- return n != null && (t = n.ownerDocument) != null && t.body ? n.ownerDocument : document;
1077
- }
1078
- function Vn(e, t) {
1079
- var r = t.clientX, n = t.clientY;
1080
- return e.every(function(o) {
1081
- var a = o.popperRect, p = o.popperState, c = o.props, u = c.interactiveBorder, l = Mn(p.placement), f = p.modifiersData.offset;
1082
- if (!f)
1083
- return !0;
1084
- var b = l === "bottom" ? f.top.y : 0, x = l === "top" ? f.bottom.y : 0, h = l === "right" ? f.left.x : 0, O = l === "left" ? f.right.x : 0, w = a.top - n + b > u, d = n - a.bottom - x > u, g = a.left - r + h > u, E = r - a.right - O > u;
1085
- return w || d || g || E;
1086
- });
1087
- }
1088
- function pt(e, t, r) {
1089
- var n = t + "EventListener";
1090
- ["transitionend", "webkitTransitionEnd"].forEach(function(o) {
1091
- e[n](o, r);
1092
- });
1093
- }
1094
- function _t(e, t) {
1095
- for (var r = t; r; ) {
1096
- var n;
1097
- if (e.contains(r))
1098
- return !0;
1099
- r = r.getRootNode == null || (n = r.getRootNode()) == null ? void 0 : n.host;
1100
- }
1101
- return !1;
1102
- }
1103
- var Z = {
1104
- isTouch: !1
1105
- }, $t = 0;
1106
- function Fn() {
1107
- Z.isTouch || (Z.isTouch = !0, window.performance && document.addEventListener("mousemove", ir));
1108
- }
1109
- function ir() {
1110
- var e = performance.now();
1111
- e - $t < 20 && (Z.isTouch = !1, document.removeEventListener("mousemove", ir)), $t = e;
1112
- }
1113
- function Hn() {
1114
- var e = document.activeElement;
1115
- if (_n(e)) {
1116
- var t = e._tippy;
1117
- e.blur && !t.state.isVisible && e.blur();
1118
- }
1119
- }
1120
- function Wn() {
1121
- document.addEventListener("touchstart", Fn, pe), window.addEventListener("blur", Hn);
1122
- }
1123
- var Un = typeof window < "u" && typeof document < "u", zn = Un ? (
1124
- // @ts-ignore
1125
- !!window.msCrypto
1126
- ) : !1, qn = {
1127
- animateFill: !1,
1128
- followCursor: !1,
1129
- inlinePositioning: !1,
1130
- sticky: !1
1131
- }, Xn = {
1132
- allowHTML: !1,
1133
- animation: "fade",
1134
- arrow: !0,
1135
- content: "",
1136
- inertia: !1,
1137
- maxWidth: 350,
1138
- role: "tooltip",
1139
- theme: "",
1140
- zIndex: 9999
1141
- }, W = Object.assign({
1142
- appendTo: rr,
1143
- aria: {
1144
- content: "auto",
1145
- expanded: "auto"
1146
- },
1147
- delay: 0,
1148
- duration: [300, 250],
1149
- getReferenceClientRect: null,
1150
- hideOnClick: !0,
1151
- ignoreAttributes: !1,
1152
- interactive: !1,
1153
- interactiveBorder: 2,
1154
- interactiveDebounce: 0,
1155
- moveTransition: "",
1156
- offset: [0, 10],
1157
- onAfterUpdate: function() {
1158
- },
1159
- onBeforeUpdate: function() {
1160
- },
1161
- onCreate: function() {
1162
- },
1163
- onDestroy: function() {
1164
- },
1165
- onHidden: function() {
1166
- },
1167
- onHide: function() {
1168
- },
1169
- onMount: function() {
1170
- },
1171
- onShow: function() {
1172
- },
1173
- onShown: function() {
1174
- },
1175
- onTrigger: function() {
1176
- },
1177
- onUntrigger: function() {
1178
- },
1179
- onClickOutside: function() {
1180
- },
1181
- placement: "top",
1182
- plugins: [],
1183
- popperOptions: {},
1184
- render: null,
1185
- showOnCreate: !1,
1186
- touch: !0,
1187
- trigger: "mouseenter focus",
1188
- triggerTarget: null
1189
- }, qn, Xn), Yn = Object.keys(W), Kn = function(t) {
1190
- var r = Object.keys(t);
1191
- r.forEach(function(n) {
1192
- W[n] = t[n];
1193
- });
1194
- };
1195
- function or(e) {
1196
- var t = e.plugins || [], r = t.reduce(function(n, o) {
1197
- var a = o.name, p = o.defaultValue;
1198
- if (a) {
1199
- var c;
1200
- n[a] = e[a] !== void 0 ? e[a] : (c = W[a]) != null ? c : p;
1201
- }
1202
- return n;
1203
- }, {});
1204
- return Object.assign({}, e, r);
1205
- }
1206
- function Gn(e, t) {
1207
- var r = t ? Object.keys(or(Object.assign({}, W, {
1208
- plugins: t
1209
- }))) : Yn, n = r.reduce(function(o, a) {
1210
- var p = (e.getAttribute("data-tippy-" + a) || "").trim();
1211
- if (!p)
1212
- return o;
1213
- if (a === "content")
1214
- o[a] = p;
1215
- else
1216
- try {
1217
- o[a] = JSON.parse(p);
1218
- } catch {
1219
- o[a] = p;
1220
- }
1221
- return o;
1222
- }, {});
1223
- return n;
1224
- }
1225
- function Nt(e, t) {
1226
- var r = Object.assign({}, t, {
1227
- content: nr(t.content, [e])
1228
- }, t.ignoreAttributes ? {} : Gn(e, t.plugins));
1229
- return r.aria = Object.assign({}, W.aria, r.aria), r.aria = {
1230
- expanded: r.aria.expanded === "auto" ? t.interactive : r.aria.expanded,
1231
- content: r.aria.content === "auto" ? t.interactive ? null : "describedby" : r.aria.content
1232
- }, r;
1233
- }
1234
- var Jn = function() {
1235
- return "innerHTML";
1236
- };
1237
- function dt(e, t) {
1238
- e[Jn()] = t;
1239
- }
1240
- function Vt(e) {
1241
- var t = Be();
1242
- return e === !0 ? t.className = er : (t.className = tr, it(e) ? t.appendChild(e) : dt(t, e)), t;
1243
- }
1244
- function Ft(e, t) {
1245
- it(t.content) ? (dt(e, ""), e.appendChild(t.content)) : typeof t.content != "function" && (t.allowHTML ? dt(e, t.content) : e.textContent = t.content);
1246
- }
1247
- function vt(e) {
1248
- var t = e.firstElementChild, r = rt(t.children);
1249
- return {
1250
- box: t,
1251
- content: r.find(function(n) {
1252
- return n.classList.contains(Zt);
1253
- }),
1254
- arrow: r.find(function(n) {
1255
- return n.classList.contains(er) || n.classList.contains(tr);
1256
- }),
1257
- backdrop: r.find(function(n) {
1258
- return n.classList.contains(Ln);
1259
- })
1260
- };
1261
- }
1262
- function ar(e) {
1263
- var t = Be(), r = Be();
1264
- r.className = kn, r.setAttribute("data-state", "hidden"), r.setAttribute("tabindex", "-1");
1265
- var n = Be();
1266
- n.className = Zt, n.setAttribute("data-state", "hidden"), Ft(n, e.props), t.appendChild(r), r.appendChild(n), o(e.props, e.props);
1267
- function o(a, p) {
1268
- var c = vt(t), u = c.box, l = c.content, f = c.arrow;
1269
- p.theme ? u.setAttribute("data-theme", p.theme) : u.removeAttribute("data-theme"), typeof p.animation == "string" ? u.setAttribute("data-animation", p.animation) : u.removeAttribute("data-animation"), p.inertia ? u.setAttribute("data-inertia", "") : u.removeAttribute("data-inertia"), u.style.maxWidth = typeof p.maxWidth == "number" ? p.maxWidth + "px" : p.maxWidth, p.role ? u.setAttribute("role", p.role) : u.removeAttribute("role"), (a.content !== p.content || a.allowHTML !== p.allowHTML) && Ft(l, e.props), p.arrow ? f ? a.arrow !== p.arrow && (u.removeChild(f), u.appendChild(Vt(p.arrow))) : u.appendChild(Vt(p.arrow)) : f && u.removeChild(f);
1270
- }
1271
- return {
1272
- popper: t,
1273
- onUpdate: o
1274
- };
1275
- }
1276
- ar.$$tippy = !0;
1277
- var Qn = 1, Ze = [], ct = [];
1278
- function Zn(e, t) {
1279
- var r = Nt(e, Object.assign({}, W, or(jt(t)))), n, o, a, p = !1, c = !1, u = !1, l = !1, f, b, x, h = [], O = It(He, r.interactiveDebounce), w, d = Qn++, g = null, E = In(r.plugins), T = {
1280
- // Is the instance currently enabled?
1281
- isEnabled: !0,
1282
- // Is the tippy currently showing and not transitioning out?
1283
- isVisible: !1,
1284
- // Has the instance been destroyed?
1285
- isDestroyed: !1,
1286
- // Is the tippy currently mounted to the DOM?
1287
- isMounted: !1,
1288
- // Has the tippy finished transitioning in?
1289
- isShown: !1
1290
- }, i = {
1291
- // properties
1292
- id: d,
1293
- reference: e,
1294
- popper: Be(),
1295
- popperInstance: g,
1296
- props: r,
1297
- state: T,
1298
- plugins: E,
1299
- // methods
1300
- clearDelayTimeouts: Xe,
1301
- setProps: Ye,
1302
- setContent: Ke,
1303
- show: sr,
1304
- hide: ur,
1305
- hideWithInteractivity: pr,
1306
- enable: Pe,
1307
- disable: qe,
1308
- unmount: cr,
1309
- destroy: fr
1310
- };
1311
- if (!r.render)
1312
- return i;
1313
- var A = r.render(i), m = A.popper, S = A.onUpdate;
1314
- m.setAttribute("data-tippy-root", ""), m.id = "tippy-" + i.id, i.popper = m, e._tippy = i, m._tippy = i;
1315
- var I = E.map(function(s) {
1316
- return s.fn(i);
1317
- }), P = e.hasAttribute("aria-expanded");
1318
- return we(), J(), _(), j("onCreate", [i]), r.showOnCreate && Re(), m.addEventListener("mouseenter", function() {
1319
- i.props.interactive && i.state.isVisible && i.clearDelayTimeouts();
1320
- }), m.addEventListener("mouseleave", function() {
1321
- i.props.interactive && i.props.trigger.indexOf("mouseenter") >= 0 && F().addEventListener("mousemove", O);
1322
- }), i;
1323
- function L() {
1324
- var s = i.props.touch;
1325
- return Array.isArray(s) ? s : [s, 0];
1326
- }
1327
- function M() {
1328
- return L()[0] === "hold";
1329
- }
1330
- function R() {
1331
- var s;
1332
- return !!((s = i.props.render) != null && s.$$tippy);
1333
- }
1334
- function k() {
1335
- return w || e;
1336
- }
1337
- function F() {
1338
- var s = k().parentNode;
1339
- return s ? Nn(s) : document;
1340
- }
1341
- function H() {
1342
- return vt(m);
1343
- }
1344
- function B(s) {
1345
- return i.state.isMounted && !i.state.isVisible || Z.isTouch || f && f.type === "focus" ? 0 : st(i.props.delay, s ? 0 : 1, W.delay);
1346
- }
1347
- function _(s) {
1348
- s === void 0 && (s = !1), m.style.pointerEvents = i.props.interactive && !s ? "" : "none", m.style.zIndex = "" + i.props.zIndex;
1349
- }
1350
- function j(s, v, y) {
1351
- if (y === void 0 && (y = !0), I.forEach(function(C) {
1352
- C[s] && C[s].apply(C, v);
1353
- }), y) {
1354
- var D;
1355
- (D = i.props)[s].apply(D, v);
1356
- }
1357
- }
1358
- function G() {
1359
- var s = i.props.aria;
1360
- if (s.content) {
1361
- var v = "aria-" + s.content, y = m.id, D = me(i.props.triggerTarget || e);
1362
- D.forEach(function(C) {
1363
- var $ = C.getAttribute(v);
1364
- if (i.state.isVisible)
1365
- C.setAttribute(v, $ ? $ + " " + y : y);
1366
- else {
1367
- var U = $ && $.replace(y, "").trim();
1368
- U ? C.setAttribute(v, U) : C.removeAttribute(v);
1369
- }
1370
- });
1371
- }
1372
- }
1373
- function J() {
1374
- if (!(P || !i.props.aria.expanded)) {
1375
- var s = me(i.props.triggerTarget || e);
1376
- s.forEach(function(v) {
1377
- i.props.interactive ? v.setAttribute("aria-expanded", i.state.isVisible && v === k() ? "true" : "false") : v.removeAttribute("aria-expanded");
1378
- });
1379
- }
1380
- }
1381
- function fe() {
1382
- F().removeEventListener("mousemove", O), Ze = Ze.filter(function(s) {
1383
- return s !== O;
1384
- });
1385
- }
1386
- function Q(s) {
1387
- if (!(Z.isTouch && (u || s.type === "mousedown"))) {
1388
- var v = s.composedPath && s.composedPath()[0] || s.target;
1389
- if (!(i.props.interactive && _t(m, v))) {
1390
- if (me(i.props.triggerTarget || e).some(function(y) {
1391
- return _t(y, v);
1392
- })) {
1393
- if (Z.isTouch || i.state.isVisible && i.props.trigger.indexOf("click") >= 0)
1394
- return;
1395
- } else
1396
- j("onClickOutside", [i, s]);
1397
- i.props.hideOnClick === !0 && (i.clearDelayTimeouts(), i.hide(), c = !0, setTimeout(function() {
1398
- c = !1;
1399
- }), i.state.isMounted || ne());
1400
- }
1401
- }
1402
- }
1403
- function le() {
1404
- u = !0;
1405
- }
1406
- function re() {
1407
- u = !1;
1408
- }
1409
- function K() {
1410
- var s = F();
1411
- s.addEventListener("mousedown", Q, !0), s.addEventListener("touchend", Q, pe), s.addEventListener("touchstart", re, pe), s.addEventListener("touchmove", le, pe);
1412
- }
1413
- function ne() {
1414
- var s = F();
1415
- s.removeEventListener("mousedown", Q, !0), s.removeEventListener("touchend", Q, pe), s.removeEventListener("touchstart", re, pe), s.removeEventListener("touchmove", le, pe);
1416
- }
1417
- function ye(s, v) {
1418
- be(s, function() {
1419
- !i.state.isVisible && m.parentNode && m.parentNode.contains(m) && v();
1420
- });
1421
- }
1422
- function ie(s, v) {
1423
- be(s, v);
1424
- }
1425
- function be(s, v) {
1426
- var y = H().box;
1427
- function D(C) {
1428
- C.target === y && (pt(y, "remove", D), v());
1429
- }
1430
- if (s === 0)
1431
- return v();
1432
- pt(y, "remove", b), pt(y, "add", D), b = D;
1433
- }
1434
- function se(s, v, y) {
1435
- y === void 0 && (y = !1);
1436
- var D = me(i.props.triggerTarget || e);
1437
- D.forEach(function(C) {
1438
- C.addEventListener(s, v, y), h.push({
1439
- node: C,
1440
- eventType: s,
1441
- handler: v,
1442
- options: y
1443
- });
1444
- });
1445
- }
1446
- function we() {
1447
- M() && (se("touchstart", Se, {
1448
- passive: !0
1449
- }), se("touchend", We, {
1450
- passive: !0
1451
- })), Pn(i.props.trigger).forEach(function(s) {
1452
- if (s !== "manual")
1453
- switch (se(s, Se), s) {
1454
- case "mouseenter":
1455
- se("mouseleave", We);
1456
- break;
1457
- case "focus":
1458
- se(zn ? "focusout" : "blur", ke);
1459
- break;
1460
- case "focusin":
1461
- se("focusout", ke);
1462
- break;
1463
- }
1464
- });
1465
- }
1466
- function Fe() {
1467
- h.forEach(function(s) {
1468
- var v = s.node, y = s.eventType, D = s.handler, C = s.options;
1469
- v.removeEventListener(y, D, C);
1470
- }), h = [];
1471
- }
1472
- function Se(s) {
1473
- var v, y = !1;
1474
- if (!(!i.state.isEnabled || Le(s) || c)) {
1475
- var D = ((v = f) == null ? void 0 : v.type) === "focus";
1476
- f = s, w = s.currentTarget, J(), !i.state.isVisible && Bn(s) && Ze.forEach(function(C) {
1477
- return C(s);
1478
- }), s.type === "click" && (i.props.trigger.indexOf("mouseenter") < 0 || p) && i.props.hideOnClick !== !1 && i.state.isVisible ? y = !0 : Re(s), s.type === "click" && (p = !y), y && !D && de(s);
1479
- }
1480
- }
1481
- function He(s) {
1482
- var v = s.target, y = k().contains(v) || m.contains(v);
1483
- if (!(s.type === "mousemove" && y)) {
1484
- var D = ue().concat(m).map(function(C) {
1485
- var $, U = C._tippy, xe = ($ = U.popperInstance) == null ? void 0 : $.state;
1486
- return xe ? {
1487
- popperRect: C.getBoundingClientRect(),
1488
- popperState: xe,
1489
- props: r
1490
- } : null;
1491
- }).filter(Boolean);
1492
- Vn(D, s) && (fe(), de(s));
1493
- }
1494
- }
1495
- function We(s) {
1496
- var v = Le(s) || i.props.trigger.indexOf("click") >= 0 && p;
1497
- if (!v) {
1498
- if (i.props.interactive) {
1499
- i.hideWithInteractivity(s);
1500
- return;
1501
- }
1502
- de(s);
1503
- }
1504
- }
1505
- function ke(s) {
1506
- i.props.trigger.indexOf("focusin") < 0 && s.target !== k() || i.props.interactive && s.relatedTarget && m.contains(s.relatedTarget) || de(s);
1507
- }
1508
- function Le(s) {
1509
- return Z.isTouch ? M() !== s.type.indexOf("touch") >= 0 : !1;
1510
- }
1511
- function Ue() {
1512
- ze();
1513
- var s = i.props, v = s.popperOptions, y = s.placement, D = s.offset, C = s.getReferenceClientRect, $ = s.moveTransition, U = R() ? vt(m).arrow : null, xe = C ? {
1514
- getBoundingClientRect: C,
1515
- contextElement: C.contextElement || k()
1516
- } : e, Et = {
1517
- name: "$$tippy",
1518
- enabled: !0,
1519
- phase: "beforeWrite",
1520
- requires: ["computeStyles"],
1521
- fn: function(Ge) {
1522
- var Oe = Ge.state;
1523
- if (R()) {
1524
- var lr = H(), at = lr.box;
1525
- ["placement", "reference-hidden", "escaped"].forEach(function(Je) {
1526
- Je === "placement" ? at.setAttribute("data-placement", Oe.placement) : Oe.attributes.popper["data-popper-" + Je] ? at.setAttribute("data-" + Je, "") : at.removeAttribute("data-" + Je);
1527
- }), Oe.attributes.popper = {};
1528
- }
1529
- }
1530
- }, ve = [{
1531
- name: "offset",
1532
- options: {
1533
- offset: D
1534
- }
1535
- }, {
1536
- name: "preventOverflow",
1537
- options: {
1538
- padding: {
1539
- top: 2,
1540
- bottom: 2,
1541
- left: 5,
1542
- right: 5
1543
- }
1544
- }
1545
- }, {
1546
- name: "flip",
1547
- options: {
1548
- padding: 5
1549
- }
1550
- }, {
1551
- name: "computeStyles",
1552
- options: {
1553
- adaptive: !$
1554
- }
1555
- }, Et];
1556
- R() && U && ve.push({
1557
- name: "arrow",
1558
- options: {
1559
- element: U,
1560
- padding: 3
1561
- }
1562
- }), ve.push.apply(ve, (v == null ? void 0 : v.modifiers) || []), i.popperInstance = Sn(xe, m, Object.assign({}, v, {
1563
- placement: y,
1564
- onFirstUpdate: x,
1565
- modifiers: ve
1566
- }));
1567
- }
1568
- function ze() {
1569
- i.popperInstance && (i.popperInstance.destroy(), i.popperInstance = null);
1570
- }
1571
- function oe() {
1572
- var s = i.props.appendTo, v, y = k();
1573
- i.props.interactive && s === rr || s === "parent" ? v = y.parentNode : v = nr(s, [y]), v.contains(m) || v.appendChild(m), i.state.isMounted = !0, Ue();
1574
- }
1575
- function ue() {
1576
- return rt(m.querySelectorAll("[data-tippy-root]"));
1577
- }
1578
- function Re(s) {
1579
- i.clearDelayTimeouts(), s && j("onTrigger", [i, s]), K();
1580
- var v = B(!0), y = L(), D = y[0], C = y[1];
1581
- Z.isTouch && D === "hold" && C && (v = C), v ? n = setTimeout(function() {
1582
- i.show();
1583
- }, v) : i.show();
1584
- }
1585
- function de(s) {
1586
- if (i.clearDelayTimeouts(), j("onUntrigger", [i, s]), !i.state.isVisible) {
1587
- ne();
1588
- return;
1589
- }
1590
- if (!(i.props.trigger.indexOf("mouseenter") >= 0 && i.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(s.type) >= 0 && p)) {
1591
- var v = B(!1);
1592
- v ? o = setTimeout(function() {
1593
- i.state.isVisible && i.hide();
1594
- }, v) : a = requestAnimationFrame(function() {
1595
- i.hide();
1596
- });
1597
- }
1598
- }
1599
- function Pe() {
1600
- i.state.isEnabled = !0;
1601
- }
1602
- function qe() {
1603
- i.hide(), i.state.isEnabled = !1;
1604
- }
1605
- function Xe() {
1606
- clearTimeout(n), clearTimeout(o), cancelAnimationFrame(a);
1607
- }
1608
- function Ye(s) {
1609
- if (!i.state.isDestroyed) {
1610
- j("onBeforeUpdate", [i, s]), Fe();
1611
- var v = i.props, y = Nt(e, Object.assign({}, v, jt(s), {
1612
- ignoreAttributes: !0
1613
- }));
1614
- i.props = y, we(), v.interactiveDebounce !== y.interactiveDebounce && (fe(), O = It(He, y.interactiveDebounce)), v.triggerTarget && !y.triggerTarget ? me(v.triggerTarget).forEach(function(D) {
1615
- D.removeAttribute("aria-expanded");
1616
- }) : y.triggerTarget && e.removeAttribute("aria-expanded"), J(), _(), S && S(v, y), i.popperInstance && (Ue(), ue().forEach(function(D) {
1617
- requestAnimationFrame(D._tippy.popperInstance.forceUpdate);
1618
- })), j("onAfterUpdate", [i, s]);
1619
- }
1620
- }
1621
- function Ke(s) {
1622
- i.setProps({
1623
- content: s
1624
- });
1625
- }
1626
- function sr() {
1627
- var s = i.state.isVisible, v = i.state.isDestroyed, y = !i.state.isEnabled, D = Z.isTouch && !i.props.touch, C = st(i.props.duration, 0, W.duration);
1628
- if (!(s || v || y || D) && !k().hasAttribute("disabled") && (j("onShow", [i], !1), i.props.onShow(i) !== !1)) {
1629
- if (i.state.isVisible = !0, R() && (m.style.visibility = "visible"), _(), K(), i.state.isMounted || (m.style.transition = "none"), R()) {
1630
- var $ = H(), U = $.box, xe = $.content;
1631
- ut([U, xe], 0);
1632
- }
1633
- x = function() {
1634
- var ve;
1635
- if (!(!i.state.isVisible || l)) {
1636
- if (l = !0, m.offsetHeight, m.style.transition = i.props.moveTransition, R() && i.props.animation) {
1637
- var ot = H(), Ge = ot.box, Oe = ot.content;
1638
- ut([Ge, Oe], C), Bt([Ge, Oe], "visible");
1639
- }
1640
- G(), J(), Mt(ct, i), (ve = i.popperInstance) == null || ve.forceUpdate(), j("onMount", [i]), i.props.animation && R() && ie(C, function() {
1641
- i.state.isShown = !0, j("onShown", [i]);
1642
- });
1643
- }
1644
- }, oe();
1645
- }
1646
- }
1647
- function ur() {
1648
- var s = !i.state.isVisible, v = i.state.isDestroyed, y = !i.state.isEnabled, D = st(i.props.duration, 1, W.duration);
1649
- if (!(s || v || y) && (j("onHide", [i], !1), i.props.onHide(i) !== !1)) {
1650
- if (i.state.isVisible = !1, i.state.isShown = !1, l = !1, p = !1, R() && (m.style.visibility = "hidden"), fe(), ne(), _(!0), R()) {
1651
- var C = H(), $ = C.box, U = C.content;
1652
- i.props.animation && (ut([$, U], D), Bt([$, U], "hidden"));
1653
- }
1654
- G(), J(), i.props.animation ? R() && ye(D, i.unmount) : i.unmount();
1655
- }
1656
- }
1657
- function pr(s) {
1658
- F().addEventListener("mousemove", O), Mt(Ze, O), O(s);
1659
- }
1660
- function cr() {
1661
- i.state.isVisible && i.hide(), i.state.isMounted && (ze(), ue().forEach(function(s) {
1662
- s._tippy.unmount();
1663
- }), m.parentNode && m.parentNode.removeChild(m), ct = ct.filter(function(s) {
1664
- return s !== i;
1665
- }), i.state.isMounted = !1, j("onHidden", [i]));
1666
- }
1667
- function fr() {
1668
- i.state.isDestroyed || (i.clearDelayTimeouts(), i.unmount(), Fe(), delete e._tippy, i.state.isDestroyed = !0, j("onDestroy", [i]));
1669
- }
1670
- }
1671
- function De(e, t) {
1672
- t === void 0 && (t = {});
1673
- var r = W.plugins.concat(t.plugins || []);
1674
- Wn();
1675
- var n = Object.assign({}, t, {
1676
- plugins: r
1677
- }), o = $n(e), a = o.reduce(function(p, c) {
1678
- var u = c && Zn(c, n);
1679
- return u && p.push(u), p;
1680
- }, []);
1681
- return it(e) ? a[0] : a;
1682
- }
1683
- De.defaultProps = W;
1684
- De.setDefaultProps = Kn;
1685
- De.currentInput = Z;
1686
- Object.assign({}, zt, {
1687
- effect: function(t) {
1688
- var r = t.state, n = {
1689
- popper: {
1690
- position: r.options.strategy,
1691
- left: "0",
1692
- top: "0",
1693
- margin: "0"
1694
- },
1695
- arrow: {
1696
- position: "absolute"
1697
- },
1698
- reference: {}
1699
- };
1700
- Object.assign(r.elements.popper.style, n.popper), r.styles = n, r.elements.arrow && Object.assign(r.elements.arrow.style, n.arrow);
1701
- }
1702
- });
1703
- var ei = {
1704
- mouseover: "mouseenter",
1705
- focusin: "focus",
1706
- click: "click"
1707
- };
1708
- function ai(e, t) {
1709
- var r = [], n = [], o = !1, a = t.target, p = Rn(t, ["target"]), c = Object.assign({}, p, {
1710
- trigger: "manual",
1711
- touch: !1
1712
- }), u = Object.assign({
1713
- touch: W.touch
1714
- }, p, {
1715
- showOnCreate: !0
1716
- }), l = De(e, c), f = me(l);
1717
- function b(d) {
1718
- if (!(!d.target || o)) {
1719
- var g = d.target.closest(a);
1720
- if (g) {
1721
- var E = g.getAttribute("data-tippy-trigger") || t.trigger || W.trigger;
1722
- if (!g._tippy && !(d.type === "touchstart" && typeof u.touch == "boolean") && !(d.type !== "touchstart" && E.indexOf(ei[d.type]) < 0)) {
1723
- var T = De(g, u);
1724
- T && (n = n.concat(T));
1725
- }
1726
- }
1727
- }
1728
- }
1729
- function x(d, g, E, T) {
1730
- T === void 0 && (T = !1), d.addEventListener(g, E, T), r.push({
1731
- node: d,
1732
- eventType: g,
1733
- handler: E,
1734
- options: T
1735
- });
1736
- }
1737
- function h(d) {
1738
- var g = d.reference;
1739
- x(g, "touchstart", b, pe), x(g, "mouseover", b), x(g, "focusin", b), x(g, "click", b);
1740
- }
1741
- function O() {
1742
- r.forEach(function(d) {
1743
- var g = d.node, E = d.eventType, T = d.handler, i = d.options;
1744
- g.removeEventListener(E, T, i);
1745
- }), r = [];
1746
- }
1747
- function w(d) {
1748
- var g = d.destroy, E = d.enable, T = d.disable;
1749
- d.destroy = function(i) {
1750
- i === void 0 && (i = !0), i && n.forEach(function(A) {
1751
- A.destroy();
1752
- }), n = [], O(), g();
1753
- }, d.enable = function() {
1754
- E(), n.forEach(function(i) {
1755
- return i.enable();
1756
- }), o = !1;
1757
- }, d.disable = function() {
1758
- T(), n.forEach(function(i) {
1759
- return i.disable();
1760
- }), o = !0;
1761
- }, h(d);
1762
- }
1763
- return f.forEach(w), l;
1764
- }
1765
- var si = {
1766
- name: "sticky",
1767
- defaultValue: !1,
1768
- fn: function(t) {
1769
- var r = t.reference, n = t.popper;
1770
- function o() {
1771
- return t.popperInstance ? t.popperInstance.state.elements.reference : r;
1772
- }
1773
- function a(l) {
1774
- return t.props.sticky === !0 || t.props.sticky === l;
1775
- }
1776
- var p = null, c = null;
1777
- function u() {
1778
- var l = a("reference") ? o().getBoundingClientRect() : null, f = a("popper") ? n.getBoundingClientRect() : null;
1779
- (l && Ht(p, l) || f && Ht(c, f)) && t.popperInstance && t.popperInstance.update(), p = l, c = f, t.state.isMounted && requestAnimationFrame(u);
1780
- }
1781
- return {
1782
- onMount: function() {
1783
- t.props.sticky && u();
1784
- }
1785
- };
1786
- }
1787
- };
1788
- function Ht(e, t) {
1789
- return e && t ? e.top !== t.top || e.right !== t.right || e.bottom !== t.bottom || e.left !== t.left : !0;
1790
- }
1791
- De.setDefaultProps({
1792
- render: ar
1793
- });
1794
- export {
1795
- xr as F,
1796
- ai as d,
1797
- si as s,
1798
- De as t
1799
- };