@cling-se/widget 0.17.2 → 0.18.0

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