@validol4ik/uikit 0.6.7 → 0.6.8

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.
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),l=require("./index-BEJxpQtP.cjs"),w=require("./QMenu-B07m1rKE.cjs"),y=["ul","ol"],D=l.createComponent({name:"QList",props:{...l.useDarkProps,bordered:Boolean,dense:Boolean,separator:Boolean,padding:Boolean,tag:{type:String,default:"div"}},setup(e,{slots:d}){const o=n.getCurrentInstance(),s=l.useDark(e,o.proxy.$q),r=n.computed(()=>y.includes(e.tag)?null:"list"),i=n.computed(()=>"q-list"+(e.bordered===!0?" q-list--bordered":"")+(e.dense===!0?" q-list--dense":"")+(e.separator===!0?" q-list--separator":"")+(s.value===!0?" q-list--dark":"")+(e.padding===!0?" q-list--padding":""));return()=>n.h(e.tag,{class:i.value,role:r.value},l.hSlot(d.default))}}),M={[l.SIZES.SM]:"3px 9px",[l.SIZES.MD]:"5px 12px",[l.SIZES.LG]:"9px 20px"},I=l.createComponent({name:"QBtnGroup",props:{unelevated:Boolean,outline:Boolean,flat:Boolean,rounded:Boolean,square:Boolean,push:Boolean,stretch:Boolean,glossy:Boolean,spread:Boolean},setup(e,{slots:d}){const o=n.computed(()=>{const s=["unelevated","outline","flat","rounded","square","push","stretch","glossy"].filter(r=>e[r]===!0).map(r=>`q-btn-group--${r}`).join(" ");return`q-btn-group row no-wrap${s.length!==0?" "+s:""}`+(e.spread===!0?" q-btn-group--spread":" inline")});return()=>n.h("div",{class:o.value},l.hSlot(d.default))}}),A=Object.keys(l.nonRoundBtnProps);function E(e){return A.reduce((d,o)=>{const s=e[o];return s!==void 0&&(d[o]=s),d},{})}const L=l.createComponent({name:"QBtnDropdown",props:{...l.nonRoundBtnProps,...w.useTransitionProps,modelValue:Boolean,split:Boolean,dropdownIcon:String,contentClass:[Array,String,Object],contentStyle:[Array,String,Object],cover:Boolean,persistent:Boolean,noEscDismiss:Boolean,noRouteDismiss:Boolean,autoClose:Boolean,noRefocus:Boolean,noFocus:Boolean,menuAnchor:{type:String,default:"bottom end"},menuSelf:{type:String,default:"top end"},menuOffset:Array,disableMainBtn:Boolean,disableDropdown:Boolean,noIconAnimation:Boolean,toggleAriaLabel:String},emits:["update:modelValue","click","beforeShow","show","beforeHide","hide"],setup(e,{slots:d,emit:o}){const{proxy:s}=n.getCurrentInstance(),r=n.ref(e.modelValue),i=n.ref(null),c=w.useId(),f=n.computed(()=>{const t={"aria-expanded":r.value===!0?"true":"false","aria-haspopup":"true","aria-controls":c.value,"aria-label":e.toggleAriaLabel||s.$q.lang.label[r.value===!0?"collapse":"expand"](e.label)};return(e.disable===!0||e.split===!1&&e.disableMainBtn===!0||e.disableDropdown===!0)&&(t["aria-disabled"]="true"),t}),a=n.computed(()=>"q-btn-dropdown__arrow"+(r.value===!0&&e.noIconAnimation===!1?" rotate-180":"")+(e.split===!1?" q-btn-dropdown__arrow-container":"")),m=n.computed(()=>l.getBtnDesignAttr(e)),B=n.computed(()=>E(e));n.watch(()=>e.modelValue,t=>{var u;(u=i.value)==null||u[t?"show":"hide"]()}),n.watch(()=>e.split,b);function g(t){r.value=!0,o("beforeShow",t)}function S(t){o("show",t),o("update:modelValue",!0)}function p(t){r.value=!1,o("beforeHide",t)}function v(t){o("hide",t),o("update:modelValue",!1)}function C(t){o("click",t)}function k(t){l.stop(t),b(),o("click",t)}function q(t){var u;(u=i.value)==null||u.toggle(t)}function h(t){var u;(u=i.value)==null||u.show(t)}function b(t){var u;(u=i.value)==null||u.hide(t)}return Object.assign(s,{show:h,hide:b,toggle:q}),n.onMounted(()=>{e.modelValue===!0&&h()}),()=>{const t=[n.h(l.QIcon,{class:a.value,name:e.dropdownIcon||s.$q.iconSet.arrow.dropdown})];return e.disableDropdown!==!0&&t.push(n.h(w.QMenu,{ref:i,id:c.value,class:e.contentClass,style:e.contentStyle,cover:e.cover,fit:!0,persistent:e.persistent,noEscDismiss:e.noEscDismiss,noRouteDismiss:e.noRouteDismiss,autoClose:e.autoClose,noFocus:e.noFocus,noRefocus:e.noRefocus,anchor:e.menuAnchor,self:e.menuSelf,offset:e.menuOffset,separateClosePopup:!0,transitionShow:e.transitionShow,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,onBeforeShow:g,onShow:S,onBeforeHide:p,onHide:v},d.default)),e.split===!1?n.h(l.QBtn,{class:"q-btn-dropdown q-btn-dropdown--simple",...B.value,...f.value,disable:e.disable===!0||e.disableMainBtn===!0,noWrap:!0,round:!1,onClick:C},{default:()=>l.hSlot(d.label,[]).concat(t),loading:d.loading}):n.h(I,{class:"q-btn-dropdown q-btn-dropdown--split no-wrap q-btn-item",rounded:e.rounded,square:e.square,...m.value,glossy:e.glossy,stretch:e.stretch},()=>[n.h(l.QBtn,{class:"q-btn-dropdown--current",...B.value,disable:e.disable===!0||e.disableMainBtn===!0,noWrap:!0,round:!1,onClick:k},{default:d.label,loading:d.loading}),n.h(l.QBtn,{class:"q-btn-dropdown__arrow-container q-anchor--skip",...f.value,...m.value,disable:e.disable===!0||e.disableDropdown===!0,rounded:e.rounded,color:e.color,textColor:e.textColor,dense:e.dense,size:e.size,padding:e.padding,ripple:e.ripple},()=>t)])}}}),z=n.defineComponent({__name:"DropdownButton",props:{size:{default:l.SIZES.MD},transparent:{type:Boolean},flat:{type:Boolean},rounded:{type:Boolean},color:{default:l.COLORS.PRIMARY},iconLeft:{},iconMiddle:{},hideDropIcon:{type:Boolean},disabled:{type:Boolean},loading:{type:Boolean},ariaLabel:{},label:{},menuClass:{},menuOffset:{},menuAnchor:{},menuSelf:{}},emits:["menuShown","menuHidden"],setup(e,{emit:d}){const o=e,s=d,r=n.ref(!1),i=n.computed(()=>["dropdown-btn",{"dropdown-btn_default":!o.transparent&&!o.flat,"dropdown-btn_trans":o.transparent,"dropdown-btn_flat":o.flat,"dropdown-btn_rounded":o.rounded,"dropdown-btn_sm":o.size===l.SIZES.SM,"dropdown-btn_md":o.size===l.SIZES.MD,"dropdown-btn_lg":o.size===l.SIZES.LG,"dropdown-btn_icon-left":o.iconLeft,"dropdown-btn_icon-middle":o.iconMiddle},`dropdown-btn_${o.color}`]),c=()=>{r.value=!0,s("menuShown")},f=()=>{r.value=!1,s("menuHidden")};return(a,m)=>(n.openBlock(),n.createBlock(n.unref(L),{"no-caps":"",unelevated:"",class:n.normalizeClass(i.value),padding:n.unref(M)[a.size||n.unref(l.SIZES).MD],loading:a.loading,disable:a.disabled||void 0,"aria-label":a.ariaLabel,"menu-offset":a.menuOffset,"menu-anchor":a.menuAnchor,"menu-self":a.menuSelf,onBeforeShow:c,onBeforeHide:f},{label:n.withCtx(()=>[a.iconLeft||a.iconMiddle?(n.openBlock(),n.createElementBlock("i",{key:0,class:n.normalizeClass(["icon-kl",a.iconLeft?"icon-kl_left":"icon-kl_middle",`icon-kl-${a.iconLeft||a.iconMiddle}`,a.transparent||a.flat?`text-${a.color}`:"text-secondary"])},null,2)):n.createCommentVNode("",!0),a.label?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString(a.label),1)],64)):n.createCommentVNode("",!0),a.hideDropIcon?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("i",{key:2,class:n.normalizeClass(["icon-kl","icon-kl-arrow-down",{"icon-kl-arrow-down_rotated":r.value},a.transparent?`text-${a.color}`:"text-secondary"])},null,2))]),default:n.withCtx(()=>[n.createVNode(D,{class:n.normalizeClass(["dropdown-btn-menu",`dropdown-btn-menu_${a.size} ${a.menuClass?a.menuClass:""}`])},{default:n.withCtx(()=>[n.renderSlot(a.$slots,"default",{},void 0,!0)]),_:3},8,["class"])]),_:3},8,["class","padding","loading","disable","aria-label","menu-offset","menu-anchor","menu-self"]))}}),Q=l._export_sfc(z,[["__scopeId","data-v-66c28b87"]]);exports.default=Q;
@@ -1,10 +1,10 @@
1
- import { getCurrentInstance as L, computed as u, h as s, ref as q, watch as A, onMounted as P, defineComponent as E, createBlock as j, openBlock as b, unref as h, normalizeClass as m, withCtx as v, createVNode as F, renderSlot as G, createElementBlock as S, createCommentVNode as y, Fragment as N, createTextVNode as T, toDisplayString as W } from "vue";
2
- import { c as k, a as U, b as Y, h as C, S as r, w as I, x as Z, Q as J, y as D, v as K, C as X, _ as p } from "./index-DqEqQq1H.js";
3
- import { d as _, u as ee, Q as ne } from "./QMenu-CrIbSuC4.js";
4
- const oe = ["ul", "ol"], te = k({
1
+ import { getCurrentInstance as L, computed as c, h as i, ref as D, watch as A, onMounted as P, defineComponent as _, createBlock as E, openBlock as m, unref as h, normalizeClass as w, withCtx as v, createVNode as j, renderSlot as F, createElementBlock as p, createCommentVNode as S, Fragment as G, createTextVNode as N, toDisplayString as T } from "vue";
2
+ import { c as q, a as W, b as U, h as k, S as u, w as I, x as Y, Q as Z, y, v as J, C as K, _ as X } from "./index-B0t4qh6b.js";
3
+ import { d as x, u as ee, Q as ne } from "./QMenu-TwM_-QHE.js";
4
+ const oe = ["ul", "ol"], te = q({
5
5
  name: "QList",
6
6
  props: {
7
- ...U,
7
+ ...W,
8
8
  bordered: Boolean,
9
9
  dense: Boolean,
10
10
  separator: Boolean,
@@ -14,19 +14,19 @@ const oe = ["ul", "ol"], te = k({
14
14
  default: "div"
15
15
  }
16
16
  },
17
- setup(e, { slots: a }) {
18
- const n = L(), l = Y(e, n.proxy.$q), t = u(
17
+ setup(e, { slots: l }) {
18
+ const n = L(), s = U(e, n.proxy.$q), a = c(
19
19
  () => oe.includes(e.tag) ? null : "list"
20
- ), i = u(
21
- () => "q-list" + (e.bordered === !0 ? " q-list--bordered" : "") + (e.dense === !0 ? " q-list--dense" : "") + (e.separator === !0 ? " q-list--separator" : "") + (l.value === !0 ? " q-list--dark" : "") + (e.padding === !0 ? " q-list--padding" : "")
20
+ ), d = c(
21
+ () => "q-list" + (e.bordered === !0 ? " q-list--bordered" : "") + (e.dense === !0 ? " q-list--dense" : "") + (e.separator === !0 ? " q-list--separator" : "") + (s.value === !0 ? " q-list--dark" : "") + (e.padding === !0 ? " q-list--padding" : "")
22
22
  );
23
- return () => s(e.tag, { class: i.value, role: t.value }, C(a.default));
23
+ return () => i(e.tag, { class: d.value, role: a.value }, k(l.default));
24
24
  }
25
25
  }), ae = {
26
- [r.SM]: "3px 9px",
27
- [r.MD]: "5px 12px",
28
- [r.LG]: "9px 20px"
29
- }, le = k({
26
+ [u.SM]: "3px 9px",
27
+ [u.MD]: "5px 12px",
28
+ [u.LG]: "9px 20px"
29
+ }, le = q({
30
30
  name: "QBtnGroup",
31
31
  props: {
32
32
  unelevated: Boolean,
@@ -39,25 +39,25 @@ const oe = ["ul", "ol"], te = k({
39
39
  glossy: Boolean,
40
40
  spread: Boolean
41
41
  },
42
- setup(e, { slots: a }) {
43
- const n = u(() => {
44
- const l = ["unelevated", "outline", "flat", "rounded", "square", "push", "stretch", "glossy"].filter((t) => e[t] === !0).map((t) => `q-btn-group--${t}`).join(" ");
45
- return `q-btn-group row no-wrap${l.length !== 0 ? " " + l : ""}` + (e.spread === !0 ? " q-btn-group--spread" : " inline");
42
+ setup(e, { slots: l }) {
43
+ const n = c(() => {
44
+ const s = ["unelevated", "outline", "flat", "rounded", "square", "push", "stretch", "glossy"].filter((a) => e[a] === !0).map((a) => `q-btn-group--${a}`).join(" ");
45
+ return `q-btn-group row no-wrap${s.length !== 0 ? " " + s : ""}` + (e.spread === !0 ? " q-btn-group--spread" : " inline");
46
46
  });
47
- return () => s("div", { class: n.value }, C(a.default));
47
+ return () => i("div", { class: n.value }, k(l.default));
48
48
  }
49
- }), de = Object.keys(I);
50
- function ie(e) {
51
- return de.reduce((a, n) => {
52
- const l = e[n];
53
- return l !== void 0 && (a[n] = l), a;
49
+ }), se = Object.keys(I);
50
+ function re(e) {
51
+ return se.reduce((l, n) => {
52
+ const s = e[n];
53
+ return s !== void 0 && (l[n] = s), l;
54
54
  }, {});
55
55
  }
56
- const se = k({
56
+ const de = q({
57
57
  name: "QBtnDropdown",
58
58
  props: {
59
59
  ...I,
60
- ..._,
60
+ ...x,
61
61
  modelValue: Boolean,
62
62
  split: Boolean,
63
63
  dropdownIcon: String,
@@ -85,30 +85,30 @@ const se = k({
85
85
  toggleAriaLabel: String
86
86
  },
87
87
  emits: ["update:modelValue", "click", "beforeShow", "show", "beforeHide", "hide"],
88
- setup(e, { slots: a, emit: n }) {
89
- const { proxy: l } = L(), t = q(e.modelValue), i = q(null), c = ee(), f = u(() => {
88
+ setup(e, { slots: l, emit: n }) {
89
+ const { proxy: s } = L(), a = D(e.modelValue), d = D(null), f = ee(), b = c(() => {
90
90
  const o = {
91
- "aria-expanded": t.value === !0 ? "true" : "false",
91
+ "aria-expanded": a.value === !0 ? "true" : "false",
92
92
  "aria-haspopup": "true",
93
- "aria-controls": c.value,
94
- "aria-label": e.toggleAriaLabel || l.$q.lang.label[t.value === !0 ? "collapse" : "expand"](e.label)
93
+ "aria-controls": f.value,
94
+ "aria-label": e.toggleAriaLabel || s.$q.lang.label[a.value === !0 ? "collapse" : "expand"](e.label)
95
95
  };
96
96
  return (e.disable === !0 || e.split === !1 && e.disableMainBtn === !0 || e.disableDropdown === !0) && (o["aria-disabled"] = "true"), o;
97
- }), w = u(
98
- () => "q-btn-dropdown__arrow" + (t.value === !0 && e.noIconAnimation === !1 ? " rotate-180" : "") + (e.split === !1 ? " q-btn-dropdown__arrow-container" : "")
99
- ), g = u(() => Z(e)), x = u(() => ie(e));
97
+ }), t = c(
98
+ () => "q-btn-dropdown__arrow" + (a.value === !0 && e.noIconAnimation === !1 ? " rotate-180" : "") + (e.split === !1 ? " q-btn-dropdown__arrow-container" : "")
99
+ ), g = c(() => Y(e)), C = c(() => re(e));
100
100
  A(() => e.modelValue, (o) => {
101
- var d;
102
- (d = i.value) == null || d[o ? "show" : "hide"]();
101
+ var r;
102
+ (r = d.value) == null || r[o ? "show" : "hide"]();
103
103
  }), A(() => e.split, B);
104
104
  function $(o) {
105
- t.value = !0, n("beforeShow", o);
105
+ a.value = !0, n("beforeShow", o);
106
106
  }
107
107
  function Q(o) {
108
108
  n("show", o), n("update:modelValue", !0);
109
109
  }
110
110
  function R(o) {
111
- t.value = !1, n("beforeHide", o);
111
+ a.value = !1, n("beforeHide", o);
112
112
  }
113
113
  function H(o) {
114
114
  n("hide", o), n("update:modelValue", !1);
@@ -117,21 +117,21 @@ const se = k({
117
117
  n("click", o);
118
118
  }
119
119
  function V(o) {
120
- K(o), B(), n("click", o);
120
+ J(o), B(), n("click", o);
121
121
  }
122
122
  function z(o) {
123
- var d;
124
- (d = i.value) == null || d.toggle(o);
123
+ var r;
124
+ (r = d.value) == null || r.toggle(o);
125
125
  }
126
126
  function M(o) {
127
- var d;
128
- (d = i.value) == null || d.show(o);
127
+ var r;
128
+ (r = d.value) == null || r.show(o);
129
129
  }
130
130
  function B(o) {
131
- var d;
132
- (d = i.value) == null || d.hide(o);
131
+ var r;
132
+ (r = d.value) == null || r.hide(o);
133
133
  }
134
- return Object.assign(l, {
134
+ return Object.assign(s, {
135
135
  show: M,
136
136
  hide: B,
137
137
  toggle: z
@@ -139,15 +139,15 @@ const se = k({
139
139
  e.modelValue === !0 && M();
140
140
  }), () => {
141
141
  const o = [
142
- s(J, {
143
- class: w.value,
144
- name: e.dropdownIcon || l.$q.iconSet.arrow.dropdown
142
+ i(Z, {
143
+ class: t.value,
144
+ name: e.dropdownIcon || s.$q.iconSet.arrow.dropdown
145
145
  })
146
146
  ];
147
147
  return e.disableDropdown !== !0 && o.push(
148
- s(ne, {
149
- ref: i,
150
- id: c.value,
148
+ i(ne, {
149
+ ref: d,
150
+ id: f.value,
151
151
  class: e.contentClass,
152
152
  style: e.contentStyle,
153
153
  cover: e.cover,
@@ -169,19 +169,19 @@ const se = k({
169
169
  onShow: Q,
170
170
  onBeforeHide: R,
171
171
  onHide: H
172
- }, a.default)
173
- ), e.split === !1 ? s(D, {
172
+ }, l.default)
173
+ ), e.split === !1 ? i(y, {
174
174
  class: "q-btn-dropdown q-btn-dropdown--simple",
175
- ...x.value,
176
- ...f.value,
175
+ ...C.value,
176
+ ...b.value,
177
177
  disable: e.disable === !0 || e.disableMainBtn === !0,
178
178
  noWrap: !0,
179
179
  round: !1,
180
180
  onClick: O
181
181
  }, {
182
- default: () => C(a.label, []).concat(o),
183
- loading: a.loading
184
- }) : s(le, {
182
+ default: () => k(l.label, []).concat(o),
183
+ loading: l.loading
184
+ }) : i(le, {
185
185
  class: "q-btn-dropdown q-btn-dropdown--split no-wrap q-btn-item",
186
186
  rounded: e.rounded,
187
187
  square: e.square,
@@ -189,20 +189,20 @@ const se = k({
189
189
  glossy: e.glossy,
190
190
  stretch: e.stretch
191
191
  }, () => [
192
- s(D, {
192
+ i(y, {
193
193
  class: "q-btn-dropdown--current",
194
- ...x.value,
194
+ ...C.value,
195
195
  disable: e.disable === !0 || e.disableMainBtn === !0,
196
196
  noWrap: !0,
197
197
  round: !1,
198
198
  onClick: V
199
199
  }, {
200
- default: a.label,
201
- loading: a.loading
200
+ default: l.label,
201
+ loading: l.loading
202
202
  }),
203
- s(D, {
203
+ i(y, {
204
204
  class: "q-btn-dropdown__arrow-container q-anchor--skip",
205
- ...f.value,
205
+ ...b.value,
206
206
  ...g.value,
207
207
  disable: e.disable === !0 || e.disableDropdown === !0,
208
208
  rounded: e.rounded,
@@ -216,14 +216,14 @@ const se = k({
216
216
  ]);
217
217
  };
218
218
  }
219
- }), re = /* @__PURE__ */ E({
219
+ }), ie = /* @__PURE__ */ _({
220
220
  __name: "DropdownButton",
221
221
  props: {
222
- size: { default: r.MD },
222
+ size: { default: u.MD },
223
223
  transparent: { type: Boolean },
224
224
  flat: { type: Boolean },
225
225
  rounded: { type: Boolean },
226
- color: { default: X.PRIMARY },
226
+ color: { default: K.PRIMARY },
227
227
  iconLeft: {},
228
228
  iconMiddle: {},
229
229
  hideDropIcon: { type: Boolean },
@@ -237,69 +237,69 @@ const se = k({
237
237
  menuSelf: {}
238
238
  },
239
239
  emits: ["menuShown", "menuHidden"],
240
- setup(e, { emit: a }) {
241
- const n = e, l = a, t = q(!1), i = u(() => [
240
+ setup(e, { emit: l }) {
241
+ const n = e, s = l, a = D(!1), d = c(() => [
242
242
  "dropdown-btn",
243
243
  {
244
244
  "dropdown-btn_default": !n.transparent && !n.flat,
245
245
  "dropdown-btn_trans": n.transparent,
246
246
  "dropdown-btn_flat": n.flat,
247
247
  "dropdown-btn_rounded": n.rounded,
248
- "dropdown-btn_sm": n.size === r.SM,
249
- "dropdown-btn_md": n.size === r.MD,
250
- "dropdown-btn_lg": n.size === r.LG,
248
+ "dropdown-btn_sm": n.size === u.SM,
249
+ "dropdown-btn_md": n.size === u.MD,
250
+ "dropdown-btn_lg": n.size === u.LG,
251
251
  "dropdown-btn_icon-left": n.iconLeft,
252
252
  "dropdown-btn_icon-middle": n.iconMiddle
253
253
  },
254
254
  `dropdown-btn_${n.color}`
255
- ]), c = () => {
256
- t.value = !0, l("menuShown");
257
- }, f = () => {
258
- t.value = !1, l("menuHidden");
255
+ ]), f = () => {
256
+ a.value = !0, s("menuShown");
257
+ }, b = () => {
258
+ a.value = !1, s("menuHidden");
259
259
  };
260
- return (w, g) => (b(), j(h(se), {
260
+ return (t, g) => (m(), E(h(de), {
261
261
  "no-caps": "",
262
262
  unelevated: "",
263
- class: m(i.value),
264
- padding: h(ae)[e.size || h(r).MD],
265
- loading: e.loading,
266
- disable: e.disabled || void 0,
267
- "aria-label": e.ariaLabel,
268
- "menu-offset": e.menuOffset,
269
- "menu-anchor": e.menuAnchor,
270
- "menu-self": e.menuSelf,
271
- onBeforeShow: c,
272
- onBeforeHide: f
263
+ class: w(d.value),
264
+ padding: h(ae)[t.size || h(u).MD],
265
+ loading: t.loading,
266
+ disable: t.disabled || void 0,
267
+ "aria-label": t.ariaLabel,
268
+ "menu-offset": t.menuOffset,
269
+ "menu-anchor": t.menuAnchor,
270
+ "menu-self": t.menuSelf,
271
+ onBeforeShow: f,
272
+ onBeforeHide: b
273
273
  }, {
274
274
  label: v(() => [
275
- e.iconLeft || e.iconMiddle ? (b(), S("i", {
275
+ t.iconLeft || t.iconMiddle ? (m(), p("i", {
276
276
  key: 0,
277
- class: m([
277
+ class: w([
278
278
  "icon-kl",
279
- e.iconLeft ? "icon-kl_left" : "icon-kl_middle",
280
- `icon-kl-${e.iconLeft || e.iconMiddle}`,
281
- e.transparent || e.flat ? `text-${e.color}` : "text-secondary"
279
+ t.iconLeft ? "icon-kl_left" : "icon-kl_middle",
280
+ `icon-kl-${t.iconLeft || t.iconMiddle}`,
281
+ t.transparent || t.flat ? `text-${t.color}` : "text-secondary"
282
282
  ])
283
- }, null, 2)) : y("", !0),
284
- e.label ? (b(), S(N, { key: 1 }, [
285
- T(W(e.label), 1)
286
- ], 64)) : y("", !0),
287
- e.hideDropIcon ? y("", !0) : (b(), S("i", {
283
+ }, null, 2)) : S("", !0),
284
+ t.label ? (m(), p(G, { key: 1 }, [
285
+ N(T(t.label), 1)
286
+ ], 64)) : S("", !0),
287
+ t.hideDropIcon ? S("", !0) : (m(), p("i", {
288
288
  key: 2,
289
- class: m([
289
+ class: w([
290
290
  "icon-kl",
291
291
  "icon-kl-arrow-down",
292
- { "icon-kl-arrow-down_rotated": t.value },
293
- e.transparent ? `text-${e.color}` : "text-secondary"
292
+ { "icon-kl-arrow-down_rotated": a.value },
293
+ t.transparent ? `text-${t.color}` : "text-secondary"
294
294
  ])
295
295
  }, null, 2))
296
296
  ]),
297
297
  default: v(() => [
298
- F(te, {
299
- class: m(["dropdown-btn-menu", `dropdown-btn-menu_${e.size} ${e.menuClass ? e.menuClass : ""}`])
298
+ j(te, {
299
+ class: w(["dropdown-btn-menu", `dropdown-btn-menu_${t.size} ${t.menuClass ? t.menuClass : ""}`])
300
300
  }, {
301
301
  default: v(() => [
302
- G(w.$slots, "default", {}, void 0, !0)
302
+ F(t.$slots, "default", {}, void 0, !0)
303
303
  ]),
304
304
  _: 3
305
305
  }, 8, ["class"])
@@ -307,7 +307,7 @@ const se = k({
307
307
  _: 3
308
308
  }, 8, ["class", "padding", "loading", "disable", "aria-label", "menu-offset", "menu-anchor", "menu-self"]));
309
309
  }
310
- }), be = /* @__PURE__ */ p(re, [["__scopeId", "data-v-66c28b87"]]);
310
+ }), be = /* @__PURE__ */ X(ie, [["__scopeId", "data-v-66c28b87"]]);
311
311
  export {
312
312
  be as default
313
313
  };
@@ -1 +1 @@
1
- "use strict";const u=require("vue"),B=require("./focusout-DzWGke-4.cjs"),g=require("./index-CDsBnBqp.cjs");let _,R=0;const b=new Array(256);for(let e=0;e<256;e++)b[e]=(e+256).toString(16).substring(1);const De=(()=>{const e=typeof crypto<"u"?crypto:typeof window<"u"?window.crypto||window.msCrypto:void 0;if(e!==void 0){if(e.randomBytes!==void 0)return e.randomBytes;if(e.getRandomValues!==void 0)return t=>{const o=new Uint8Array(t);return e.getRandomValues(o),o}}return t=>{const o=[];for(let n=t;n>0;n--)o.push(Math.floor(Math.random()*256));return o}})(),le=4096;function j(){(_===void 0||R+16>le)&&(R=0,_=De(le));const e=Array.prototype.slice.call(_,R,R+=16);return e[6]=e[6]&15|64,e[8]=e[8]&63|128,b[e[0]]+b[e[1]]+b[e[2]]+b[e[3]]+"-"+b[e[4]]+b[e[5]]+"-"+b[e[6]]+b[e[7]]+"-"+b[e[8]]+b[e[9]]+"-"+b[e[10]]+b[e[11]]+b[e[12]]+b[e[13]]+b[e[14]]+b[e[15]]}function Re(e){return e??null}function ie(e,t){return e??(t===!0?`f_${j()}`:null)}function Ie({getValue:e,required:t=!0}={}){if(B.isRuntimeSsrPreHydration.value===!0){const o=e!==void 0?u.ref(Re(e())):u.ref(null);return t===!0&&o.value===null&&u.onMounted(()=>{o.value=`f_${j()}`}),e!==void 0&&u.watch(e,n=>{o.value=ie(n,t)}),o}return e!==void 0?u.computed(()=>ie(e(),t)):u.ref(`f_${j()}`)}let k=[],D=[];function he(e){D=D.filter(t=>t!==e)}function ze(e){he(e),D.push(e)}function ue(e){he(e),D.length===0&&k.length!==0&&(k[k.length-1](),k=[])}function ve(e){D.length===0?e():k.push(e)}function Oe(e){k=k.filter(t=>t!==e)}function Ve(){if(window.getSelection!==void 0){const e=window.getSelection();e.empty!==void 0?e.empty():e.removeAllRanges!==void 0&&(e.removeAllRanges(),B.Platform.is.mobile!==!0&&e.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}const Ke={target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},Qe={...Ke,contextMenu:Boolean};function Ue({showing:e,avoidEmit:t,configureAnchorEl:o}){const{props:n,proxy:l,emit:m}=u.getCurrentInstance(),i=u.ref(null);let a=null;function h(r){return i.value===null?!1:r===void 0||r.touches===void 0||r.touches.length<=1}const d={};o===void 0&&(Object.assign(d,{hide(r){l.hide(r)},toggle(r){l.toggle(r),r.qAnchorHandled=!0},toggleKey(r){g.isKeyCode(r,13)===!0&&d.toggle(r)},contextClick(r){l.hide(r),g.prevent(r),u.nextTick(()=>{l.show(r),r.qAnchorHandled=!0})},prevent:g.prevent,mobileTouch(r){if(d.mobileCleanup(r),h(r)!==!0)return;l.hide(r),i.value.classList.add("non-selectable");const f=r.target;g.addEvt(d,"anchor",[[f,"touchmove","mobileCleanup","passive"],[f,"touchend","mobileCleanup","passive"],[f,"touchcancel","mobileCleanup","passive"],[i.value,"contextmenu","prevent","notPassive"]]),a=setTimeout(()=>{a=null,l.show(r),r.qAnchorHandled=!0},300)},mobileCleanup(r){i.value.classList.remove("non-selectable"),a!==null&&(clearTimeout(a),a=null),e.value===!0&&r!==void 0&&Ve()}}),o=function(r=n.contextMenu){if(n.noParentEvent===!0||i.value===null)return;let f;r===!0?l.$q.platform.is.mobile===!0?f=[[i.value,"touchstart","mobileTouch","passive"]]:f=[[i.value,"mousedown","hide","passive"],[i.value,"contextmenu","contextClick","notPassive"]]:f=[[i.value,"click","toggle","passive"],[i.value,"keyup","toggleKey","passive"]],g.addEvt(d,"anchor",f)});function c(){g.cleanEvt(d,"anchor")}function w(r){for(i.value=r;i.value.classList.contains("q-anchor--skip");)i.value=i.value.parentNode;o()}function y(){if(n.target===!1||n.target===""||l.$el.parentNode===null)i.value=null;else if(n.target===!0)w(l.$el.parentNode);else{let r=n.target;if(typeof n.target=="string")try{r=document.querySelector(n.target)}catch{r=void 0}r!=null?(i.value=r.$el||r,o()):(i.value=null,console.error(`Anchor: target "${n.target}" not found`))}}return u.watch(()=>n.contextMenu,r=>{i.value!==null&&(c(),o(r))}),u.watch(()=>n.target,()=>{i.value!==null&&c(),y()}),u.watch(()=>n.noParentEvent,r=>{i.value!==null&&(r===!0?c():o())}),u.onMounted(()=>{y(),t!==!0&&n.modelValue===!0&&i.value===null&&m("update:modelValue",!1)}),u.onBeforeUnmount(()=>{a!==null&&clearTimeout(a),c()}),{anchorEl:i,canShow:h,anchorEvents:d}}function _e(e,t){const o=u.ref(null);let n;function l(a,h){const d=`${h!==void 0?"add":"remove"}EventListener`,c=h!==void 0?h:n;a!==window&&a[d]("scroll",c,g.listenOpts.passive),window[d]("scroll",c,g.listenOpts.passive),n=h}function m(){o.value!==null&&(l(o.value),o.value=null)}const i=u.watch(()=>e.noParentEvent,()=>{o.value!==null&&(m(),t())});return u.onBeforeUnmount(i),{localScrollTarget:o,unconfigureScrollTarget:m,changeScrollEvent:l}}const ge={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},pe=["beforeShow","show","beforeHide","hide"];function we({showing:e,canShow:t,hideOnRouteChange:o,handleShow:n,handleHide:l,processOnMount:m}){const i=u.getCurrentInstance(),{props:a,emit:h,proxy:d}=i;let c;function w(v){e.value===!0?f(v):y(v)}function y(v){if(a.disable===!0||(v==null?void 0:v.qAnchorHandled)===!0||t!==void 0&&t(v)!==!0)return;const p=a["onUpdate:modelValue"]!==void 0;p===!0&&(h("update:modelValue",!0),c=v,u.nextTick(()=>{c===v&&(c=void 0)})),(a.modelValue===null||p===!1)&&r(v)}function r(v){e.value!==!0&&(e.value=!0,h("beforeShow",v),n!==void 0?n(v):h("show",v))}function f(v){if(a.disable===!0)return;const p=a["onUpdate:modelValue"]!==void 0;p===!0&&(h("update:modelValue",!1),c=v,u.nextTick(()=>{c===v&&(c=void 0)})),(a.modelValue===null||p===!1)&&H(v)}function H(v){e.value!==!1&&(e.value=!1,h("beforeHide",v),l!==void 0?l(v):h("hide",v))}function C(v){a.disable===!0&&v===!0?a["onUpdate:modelValue"]!==void 0&&h("update:modelValue",!1):v===!0!==e.value&&(v===!0?r:H)(c)}u.watch(()=>a.modelValue,C),o!==void 0&&g.vmHasRouter(i)===!0&&u.watch(()=>d.$route.fullPath,()=>{o.value===!0&&e.value===!0&&f()}),u.onMounted(()=>{C(a.modelValue)});const M={show:y,hide:f,toggle:w};return Object.assign(d,M),M}const re={};let Ne=1,je=document.body;function Ge(e,t){const o=document.createElement("div");if(o.id=t!==void 0?`q-portal--${t}--${Ne++}`:e,re.globalNodes!==void 0){const n=re.globalNodes.class;n!==void 0&&(o.className=n)}return je.appendChild(o),o}function Xe(e){e.remove()}const A=[];function Ye(e,t){do{if(e.$options.name==="QMenu"){if(e.hide(t),e.$props.separateClosePopup===!0)return g.getParentProxy(e)}else if(e.__qPortal===!0){const o=g.getParentProxy(e);return(o==null?void 0:o.$options.name)==="QPopupProxy"?(e.hide(t),o):e}e=g.getParentProxy(e)}while(e!=null)}const Ze=g.createComponent({name:"QPortal",setup(e,{slots:t}){return()=>t.default()}});function Je(e){for(e=e.parent;e!=null;){if(e.type.name==="QGlobalDialog")return!0;if(e.type.name==="QDialog"||e.type.name==="QMenu")return!1;e=e.parent}return!1}function ye(e,t,o,n){const l=u.ref(!1),m=u.ref(!1);let i=null;const a={},h=n==="dialog"&&Je(e);function d(w){if(w===!0){ue(a),m.value=!0;return}m.value=!1,l.value===!1&&(h===!1&&i===null&&(i=Ge(!1,n)),l.value=!0,A.push(e.proxy),ze(a))}function c(w){if(m.value=!1,w!==!0)return;ue(a),l.value=!1;const y=A.indexOf(e.proxy);y!==-1&&A.splice(y,1),i!==null&&(Xe(i),i=null)}return u.onUnmounted(()=>{c(!0)}),e.proxy.__qPortal=!0,B.injectProp(e.proxy,"contentEl",()=>t.value),{showPortal:d,hidePortal:c,portalIsActive:l,portalIsAccessible:m,renderPortal:()=>h===!0?o():l.value===!0?[u.h(u.Teleport,{to:i},u.h(Ze,o))]:void 0}}const xe={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function be(e,t=()=>{},o=()=>{}){return{transitionProps:u.computed(()=>{const n=`q-transition--${e.transitionShow||t()}`,l=`q-transition--${e.transitionHide||o()}`;return{appear:!0,enterFromClass:`${n}-enter-from`,enterActiveClass:`${n}-enter-active`,enterToClass:`${n}-enter-to`,leaveFromClass:`${l}-leave-from`,leaveActiveClass:`${l}-leave-active`,leaveToClass:`${l}-leave-to`}}),transitionStyle:u.computed(()=>`--q-transition-duration: ${e.transitionDuration}ms`)}}function Ee(){let e;const t=u.getCurrentInstance();function o(){e=void 0}return u.onDeactivated(o),u.onBeforeUnmount(o),{removeTick:o,registerTick(n){e=n,u.nextTick(()=>{e===n&&(g.vmIsDestroyed(t)===!1&&e(),e=void 0)})}}}function Te(){let e=null;const t=u.getCurrentInstance();function o(){e!==null&&(clearTimeout(e),e=null)}return u.onDeactivated(o),u.onBeforeUnmount(o),{removeTimeout:o,registerTimeout(n,l){o(),g.vmIsDestroyed(t)===!1&&(e=setTimeout(()=>{e=null,n()},l))}}}const et=[Element,String],tt=[null,document,document.body,document.scrollingElement,document.documentElement];function ot(e,t){let o=g.getElement(t);if(o===void 0){if(e==null)return window;o=e.closest(".scroll,.scroll-y,.overflow-auto")}return tt.includes(o)?window:o}function nt(e){return e===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:e.scrollTop}function lt(e){return e===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:e.scrollLeft}let I;function it(){if(I!==void 0)return I;const e=document.createElement("p"),t=document.createElement("div");g.css(e,{width:"100%",height:"200px"}),g.css(t,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),t.appendChild(e),document.body.appendChild(t);const o=e.offsetWidth;t.style.overflow="scroll";let n=e.offsetWidth;return o===n&&(n=t.clientWidth),t.remove(),I=o-n,I}function ut(e,t=!0){return!e||e.nodeType!==Node.ELEMENT_NODE?!1:t?e.scrollHeight>e.clientHeight&&(e.classList.contains("scroll")||e.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(e)["overflow-y"])):e.scrollWidth>e.clientWidth&&(e.classList.contains("scroll")||e.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(e)["overflow-x"]))}const W=[];let $;function rt(e){$=e.keyCode===27}function at(){$===!0&&($=!1)}function st(e){$===!0&&($=!1,g.isKeyCode(e,27)===!0&&W[W.length-1](e))}function Ce(e){window[e]("keydown",rt),window[e]("blur",at),window[e]("keyup",st),$=!1}function Pe(e){B.client.is.desktop===!0&&(W.push(e),W.length===1&&Ce("addEventListener"))}function G(e){const t=W.indexOf(e);t!==-1&&(W.splice(t,1),W.length===0&&Ce("removeEventListener"))}const{notPassiveCapture:z}=g.listenOpts,q=[];function O(e){const t=e.target;if(t===void 0||t.nodeType===8||t.classList.contains("no-pointer-events")===!0)return;let o=A.length-1;for(;o>=0;){const n=A[o].$;if(n.type.name==="QTooltip"){o--;continue}if(n.type.name!=="QDialog")break;if(n.props.seamless!==!0)return;o--}for(let n=q.length-1;n>=0;n--){const l=q[n];if((l.anchorEl.value===null||l.anchorEl.value.contains(t)===!1)&&(t===document.body||l.innerRef.value!==null&&l.innerRef.value.contains(t)===!1))e.qClickOutside=!0,l.onClickOutside(e);else return}}function ct(e){q.push(e),q.length===1&&(document.addEventListener("mousedown",O,z),document.addEventListener("touchstart",O,z))}function ae(e){const t=q.findIndex(o=>o===e);t!==-1&&(q.splice(t,1),q.length===0&&(document.removeEventListener("mousedown",O,z),document.removeEventListener("touchstart",O,z)))}let se,ce;function de(e){const t=e.split(" ");return t.length!==2?!1:["top","center","bottom"].includes(t[0])!==!0?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):["left","middle","right","start","end"].includes(t[1])!==!0?(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1):!0}function dt(e){return e?!(e.length!==2||typeof e[0]!="number"||typeof e[1]!="number"):!0}const X={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(e=>{X[`${e}#ltr`]=e,X[`${e}#rtl`]=e});function fe(e,t){const o=e.split(" ");return{vertical:o[0],horizontal:X[`${o[1]}#${t===!0?"rtl":"ltr"}`]}}function ft(e,t){let{top:o,left:n,right:l,bottom:m,width:i,height:a}=e.getBoundingClientRect();return t!==void 0&&(o-=t[1],n-=t[0],m+=t[1],l+=t[0],i+=t[0],a+=t[1]),{top:o,bottom:m,height:a,left:n,right:l,width:i,middle:n+(l-n)/2,center:o+(m-o)/2}}function mt(e,t,o){let{top:n,left:l}=e.getBoundingClientRect();return n+=t.top,l+=t.left,o!==void 0&&(n+=o[1],l+=o[0]),{top:n,bottom:n+1,height:1,left:l,right:l+1,width:1,middle:l,center:n}}function ht(e,t){return{top:0,center:t/2,bottom:t,left:0,middle:e/2,right:e}}function me(e,t,o,n){return{top:e[o.vertical]-t[n.vertical],left:e[o.horizontal]-t[n.horizontal]}}function Se(e,t=0){if(e.targetEl===null||e.anchorEl===null||t>5)return;if(e.targetEl.offsetHeight===0||e.targetEl.offsetWidth===0){setTimeout(()=>{Se(e,t+1)},10);return}const{targetEl:o,offset:n,anchorEl:l,anchorOrigin:m,selfOrigin:i,absoluteOffset:a,fit:h,cover:d,maxHeight:c,maxWidth:w}=e;if(B.client.is.ios===!0&&window.visualViewport!==void 0){const F=document.body.style,{offsetLeft:E,offsetTop:T}=window.visualViewport;E!==se&&(F.setProperty("--q-pe-left",E+"px"),se=E),T!==ce&&(F.setProperty("--q-pe-top",T+"px"),ce=T)}const{scrollLeft:y,scrollTop:r}=o,f=a===void 0?ft(l,d===!0?[0,0]:n):mt(l,a,n);Object.assign(o.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:w,maxHeight:c,visibility:"visible"});const{offsetWidth:H,offsetHeight:C}=o,{elWidth:M,elHeight:v}=h===!0||d===!0?{elWidth:Math.max(f.width,H),elHeight:d===!0?Math.max(f.height,C):C}:{elWidth:H,elHeight:C};let p={maxWidth:w,maxHeight:c};(h===!0||d===!0)&&(p.minWidth=f.width+"px",d===!0&&(p.minHeight=f.height+"px")),Object.assign(o.style,p);const P=ht(M,v);let x=me(f,P,m,i);if(a===void 0||n===void 0)N(x,f,P,m,i);else{const{top:F,left:E}=x;N(x,f,P,m,i);let T=!1;if(x.top!==F){T=!0;const S=2*n[1];f.center=f.top-=S,f.bottom-=S+2}if(x.left!==E){T=!0;const S=2*n[0];f.middle=f.left-=S,f.right-=S+2}T===!0&&(x=me(f,P,m,i),N(x,f,P,m,i))}p={top:x.top+"px",left:x.left+"px"},x.maxHeight!==void 0&&(p.maxHeight=x.maxHeight+"px",f.height>x.maxHeight&&(p.minHeight=p.maxHeight)),x.maxWidth!==void 0&&(p.maxWidth=x.maxWidth+"px",f.width>x.maxWidth&&(p.minWidth=p.maxWidth)),Object.assign(o.style,p),o.scrollTop!==r&&(o.scrollTop=r),o.scrollLeft!==y&&(o.scrollLeft=y)}function N(e,t,o,n,l){const m=o.bottom,i=o.right,a=it(),h=window.innerHeight-a,d=document.body.clientWidth;if(e.top<0||e.top+m>h)if(l.vertical==="center")e.top=t[n.vertical]>h/2?Math.max(0,h-m):0,e.maxHeight=Math.min(m,h);else if(t[n.vertical]>h/2){const c=Math.min(h,n.vertical==="center"?t.center:n.vertical===l.vertical?t.bottom:t.top);e.maxHeight=Math.min(m,c),e.top=Math.max(0,c-m)}else e.top=Math.max(0,n.vertical==="center"?t.center:n.vertical===l.vertical?t.top:t.bottom),e.maxHeight=Math.min(m,h-e.top);if(e.left<0||e.left+i>d)if(e.maxWidth=Math.min(i,d),l.horizontal==="middle")e.left=t[n.horizontal]>d/2?Math.max(0,d-i):0;else if(t[n.horizontal]>d/2){const c=Math.min(d,n.horizontal==="middle"?t.middle:n.horizontal===l.horizontal?t.right:t.left);e.maxWidth=Math.min(i,c),e.left=Math.max(0,c-e.maxWidth)}else e.left=Math.max(0,n.horizontal==="middle"?t.middle:n.horizontal===l.horizontal?t.left:t.right),e.maxWidth=Math.min(i,d-e.left)}const vt=g.createComponent({name:"QMenu",inheritAttrs:!1,props:{...Qe,...ge,...g.useDarkProps,...xe,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noEscDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:de},self:{type:String,validator:de},offset:{type:Array,validator:dt},scrollTarget:et,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...pe,"click","escapeKey"],setup(e,{slots:t,emit:o,attrs:n}){let l=null,m,i,a;const h=u.getCurrentInstance(),{proxy:d}=h,{$q:c}=d,w=u.ref(null),y=u.ref(!1),r=u.computed(()=>e.persistent!==!0&&e.noRouteDismiss!==!0),f=g.useDark(e,c),{registerTick:H,removeTick:C}=Ee(),{registerTimeout:M}=Te(),{transitionProps:v,transitionStyle:p}=be(e),{localScrollTarget:P,changeScrollEvent:x,unconfigureScrollTarget:F}=_e(e,oe),{anchorEl:E,canShow:T}=Ue({showing:y}),{hide:S}=we({showing:y,canShow:T,handleShow:qe,handleHide:Be,hideOnRouteChange:r,processOnMount:!0}),{showPortal:Y,hidePortal:Z,renderPortal:He}=ye(h,w,$e,"menu"),V={anchorEl:E,innerRef:w,onClickOutside(s){if(e.persistent!==!0&&y.value===!0)return S(s),(s.type==="touchstart"||s.target.classList.contains("q-dialog__backdrop"))&&g.stopAndPrevent(s),!0}},J=u.computed(()=>fe(e.anchor||(e.cover===!0?"center middle":"bottom start"),c.lang.rtl)),Me=u.computed(()=>e.cover===!0?J.value:fe(e.self||"top start",c.lang.rtl)),ke=u.computed(()=>(e.square===!0?" q-menu--square":"")+(f.value===!0?" q-menu--dark q-dark":"")),We=u.computed(()=>e.autoClose===!0?{onClick:Fe}:{}),ee=u.computed(()=>y.value===!0&&e.persistent!==!0);u.watch(ee,s=>{s===!0?(Pe(Q),ct(V)):(G(Q),ae(V))});function K(){ve(()=>{let s=w.value;s&&s.contains(document.activeElement)!==!0&&(s=s.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||s.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||s.querySelector("[autofocus], [data-autofocus]")||s,s.focus({preventScroll:!0}))})}function qe(s){if(l=e.noRefocus===!1?document.activeElement:null,B.addFocusout(ne),Y(),oe(),m=void 0,s!==void 0&&(e.touchPosition||e.contextMenu)){const U=g.position(s);if(U.left!==void 0){const{top:Le,left:Ae}=E.value.getBoundingClientRect();m={left:U.left-Ae,top:U.top-Le}}}i===void 0&&(i=u.watch(()=>c.screen.width+"|"+c.screen.height+"|"+e.self+"|"+e.anchor+"|"+c.lang.rtl,L)),e.noFocus!==!0&&document.activeElement.blur(),H(()=>{L(),e.noFocus!==!0&&K()}),M(()=>{c.platform.is.ios===!0&&(a=e.autoClose,w.value.click()),L(),Y(!0),o("show",s)},e.transitionDuration)}function Be(s){C(),Z(),te(!0),l!==null&&(s===void 0||s.qClickOutside!==!0)&&((((s==null?void 0:s.type.indexOf("key"))===0?l.closest('[tabindex]:not([tabindex^="-"])'):void 0)||l).focus(),l=null),M(()=>{Z(!0),o("hide",s)},e.transitionDuration)}function te(s){m=void 0,i!==void 0&&(i(),i=void 0),(s===!0||y.value===!0)&&(B.removeFocusout(ne),F(),ae(V),G(Q)),s!==!0&&(l=null)}function oe(){(E.value!==null||e.scrollTarget!==void 0)&&(P.value=ot(E.value,e.scrollTarget),x(P.value,L))}function Fe(s){a!==!0?(Ye(d,s),o("click",s)):a=!1}function ne(s){ee.value===!0&&e.noFocus!==!0&&g.childHasFocus(w.value,s.target)!==!0&&K()}function Q(s){e.noEscDismiss!==!0&&(o("escapeKey"),S(s))}function L(){Se({targetEl:w.value,offset:e.offset,anchorEl:E.value,anchorOrigin:J.value,selfOrigin:Me.value,absoluteOffset:m,fit:e.fit,cover:e.cover,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function $e(){return u.h(u.Transition,v.value,()=>y.value===!0?u.h("div",{role:"menu",...n,ref:w,tabindex:-1,class:["q-menu q-position-engine scroll"+ke.value,n.class],style:[n.style,p.value],...We.value},g.hSlot(t.default)):null)}return u.onBeforeUnmount(te),Object.assign(d,{focus:K,updatePosition:L}),He}});exports.QMenu=vt;exports.addEscapeKey=Pe;exports.addFocusFn=ve;exports.getHorizontalScrollPosition=lt;exports.getVerticalScrollPosition=nt;exports.hasScrollbar=ut;exports.removeEscapeKey=G;exports.removeFocusFn=Oe;exports.useId=Ie;exports.useModelToggle=we;exports.useModelToggleEmits=pe;exports.useModelToggleProps=ge;exports.usePortal=ye;exports.useTick=Ee;exports.useTimeout=Te;exports.useTransition=be;exports.useTransitionProps=xe;
1
+ "use strict";const u=require("vue"),B=require("./focusout-DzWGke-4.cjs"),g=require("./index-BEJxpQtP.cjs");let _,R=0;const b=new Array(256);for(let e=0;e<256;e++)b[e]=(e+256).toString(16).substring(1);const De=(()=>{const e=typeof crypto<"u"?crypto:typeof window<"u"?window.crypto||window.msCrypto:void 0;if(e!==void 0){if(e.randomBytes!==void 0)return e.randomBytes;if(e.getRandomValues!==void 0)return t=>{const o=new Uint8Array(t);return e.getRandomValues(o),o}}return t=>{const o=[];for(let n=t;n>0;n--)o.push(Math.floor(Math.random()*256));return o}})(),le=4096;function j(){(_===void 0||R+16>le)&&(R=0,_=De(le));const e=Array.prototype.slice.call(_,R,R+=16);return e[6]=e[6]&15|64,e[8]=e[8]&63|128,b[e[0]]+b[e[1]]+b[e[2]]+b[e[3]]+"-"+b[e[4]]+b[e[5]]+"-"+b[e[6]]+b[e[7]]+"-"+b[e[8]]+b[e[9]]+"-"+b[e[10]]+b[e[11]]+b[e[12]]+b[e[13]]+b[e[14]]+b[e[15]]}function Re(e){return e??null}function ie(e,t){return e??(t===!0?`f_${j()}`:null)}function Ie({getValue:e,required:t=!0}={}){if(B.isRuntimeSsrPreHydration.value===!0){const o=e!==void 0?u.ref(Re(e())):u.ref(null);return t===!0&&o.value===null&&u.onMounted(()=>{o.value=`f_${j()}`}),e!==void 0&&u.watch(e,n=>{o.value=ie(n,t)}),o}return e!==void 0?u.computed(()=>ie(e(),t)):u.ref(`f_${j()}`)}let k=[],D=[];function he(e){D=D.filter(t=>t!==e)}function ze(e){he(e),D.push(e)}function ue(e){he(e),D.length===0&&k.length!==0&&(k[k.length-1](),k=[])}function ve(e){D.length===0?e():k.push(e)}function Oe(e){k=k.filter(t=>t!==e)}function Ve(){if(window.getSelection!==void 0){const e=window.getSelection();e.empty!==void 0?e.empty():e.removeAllRanges!==void 0&&(e.removeAllRanges(),B.Platform.is.mobile!==!0&&e.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}const Ke={target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},Qe={...Ke,contextMenu:Boolean};function Ue({showing:e,avoidEmit:t,configureAnchorEl:o}){const{props:n,proxy:l,emit:m}=u.getCurrentInstance(),i=u.ref(null);let a=null;function h(r){return i.value===null?!1:r===void 0||r.touches===void 0||r.touches.length<=1}const d={};o===void 0&&(Object.assign(d,{hide(r){l.hide(r)},toggle(r){l.toggle(r),r.qAnchorHandled=!0},toggleKey(r){g.isKeyCode(r,13)===!0&&d.toggle(r)},contextClick(r){l.hide(r),g.prevent(r),u.nextTick(()=>{l.show(r),r.qAnchorHandled=!0})},prevent:g.prevent,mobileTouch(r){if(d.mobileCleanup(r),h(r)!==!0)return;l.hide(r),i.value.classList.add("non-selectable");const f=r.target;g.addEvt(d,"anchor",[[f,"touchmove","mobileCleanup","passive"],[f,"touchend","mobileCleanup","passive"],[f,"touchcancel","mobileCleanup","passive"],[i.value,"contextmenu","prevent","notPassive"]]),a=setTimeout(()=>{a=null,l.show(r),r.qAnchorHandled=!0},300)},mobileCleanup(r){i.value.classList.remove("non-selectable"),a!==null&&(clearTimeout(a),a=null),e.value===!0&&r!==void 0&&Ve()}}),o=function(r=n.contextMenu){if(n.noParentEvent===!0||i.value===null)return;let f;r===!0?l.$q.platform.is.mobile===!0?f=[[i.value,"touchstart","mobileTouch","passive"]]:f=[[i.value,"mousedown","hide","passive"],[i.value,"contextmenu","contextClick","notPassive"]]:f=[[i.value,"click","toggle","passive"],[i.value,"keyup","toggleKey","passive"]],g.addEvt(d,"anchor",f)});function c(){g.cleanEvt(d,"anchor")}function w(r){for(i.value=r;i.value.classList.contains("q-anchor--skip");)i.value=i.value.parentNode;o()}function y(){if(n.target===!1||n.target===""||l.$el.parentNode===null)i.value=null;else if(n.target===!0)w(l.$el.parentNode);else{let r=n.target;if(typeof n.target=="string")try{r=document.querySelector(n.target)}catch{r=void 0}r!=null?(i.value=r.$el||r,o()):(i.value=null,console.error(`Anchor: target "${n.target}" not found`))}}return u.watch(()=>n.contextMenu,r=>{i.value!==null&&(c(),o(r))}),u.watch(()=>n.target,()=>{i.value!==null&&c(),y()}),u.watch(()=>n.noParentEvent,r=>{i.value!==null&&(r===!0?c():o())}),u.onMounted(()=>{y(),t!==!0&&n.modelValue===!0&&i.value===null&&m("update:modelValue",!1)}),u.onBeforeUnmount(()=>{a!==null&&clearTimeout(a),c()}),{anchorEl:i,canShow:h,anchorEvents:d}}function _e(e,t){const o=u.ref(null);let n;function l(a,h){const d=`${h!==void 0?"add":"remove"}EventListener`,c=h!==void 0?h:n;a!==window&&a[d]("scroll",c,g.listenOpts.passive),window[d]("scroll",c,g.listenOpts.passive),n=h}function m(){o.value!==null&&(l(o.value),o.value=null)}const i=u.watch(()=>e.noParentEvent,()=>{o.value!==null&&(m(),t())});return u.onBeforeUnmount(i),{localScrollTarget:o,unconfigureScrollTarget:m,changeScrollEvent:l}}const ge={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},pe=["beforeShow","show","beforeHide","hide"];function we({showing:e,canShow:t,hideOnRouteChange:o,handleShow:n,handleHide:l,processOnMount:m}){const i=u.getCurrentInstance(),{props:a,emit:h,proxy:d}=i;let c;function w(v){e.value===!0?f(v):y(v)}function y(v){if(a.disable===!0||(v==null?void 0:v.qAnchorHandled)===!0||t!==void 0&&t(v)!==!0)return;const p=a["onUpdate:modelValue"]!==void 0;p===!0&&(h("update:modelValue",!0),c=v,u.nextTick(()=>{c===v&&(c=void 0)})),(a.modelValue===null||p===!1)&&r(v)}function r(v){e.value!==!0&&(e.value=!0,h("beforeShow",v),n!==void 0?n(v):h("show",v))}function f(v){if(a.disable===!0)return;const p=a["onUpdate:modelValue"]!==void 0;p===!0&&(h("update:modelValue",!1),c=v,u.nextTick(()=>{c===v&&(c=void 0)})),(a.modelValue===null||p===!1)&&H(v)}function H(v){e.value!==!1&&(e.value=!1,h("beforeHide",v),l!==void 0?l(v):h("hide",v))}function C(v){a.disable===!0&&v===!0?a["onUpdate:modelValue"]!==void 0&&h("update:modelValue",!1):v===!0!==e.value&&(v===!0?r:H)(c)}u.watch(()=>a.modelValue,C),o!==void 0&&g.vmHasRouter(i)===!0&&u.watch(()=>d.$route.fullPath,()=>{o.value===!0&&e.value===!0&&f()}),u.onMounted(()=>{C(a.modelValue)});const M={show:y,hide:f,toggle:w};return Object.assign(d,M),M}const re={};let Ne=1,je=document.body;function Ge(e,t){const o=document.createElement("div");if(o.id=t!==void 0?`q-portal--${t}--${Ne++}`:e,re.globalNodes!==void 0){const n=re.globalNodes.class;n!==void 0&&(o.className=n)}return je.appendChild(o),o}function Xe(e){e.remove()}const A=[];function Ye(e,t){do{if(e.$options.name==="QMenu"){if(e.hide(t),e.$props.separateClosePopup===!0)return g.getParentProxy(e)}else if(e.__qPortal===!0){const o=g.getParentProxy(e);return(o==null?void 0:o.$options.name)==="QPopupProxy"?(e.hide(t),o):e}e=g.getParentProxy(e)}while(e!=null)}const Ze=g.createComponent({name:"QPortal",setup(e,{slots:t}){return()=>t.default()}});function Je(e){for(e=e.parent;e!=null;){if(e.type.name==="QGlobalDialog")return!0;if(e.type.name==="QDialog"||e.type.name==="QMenu")return!1;e=e.parent}return!1}function ye(e,t,o,n){const l=u.ref(!1),m=u.ref(!1);let i=null;const a={},h=n==="dialog"&&Je(e);function d(w){if(w===!0){ue(a),m.value=!0;return}m.value=!1,l.value===!1&&(h===!1&&i===null&&(i=Ge(!1,n)),l.value=!0,A.push(e.proxy),ze(a))}function c(w){if(m.value=!1,w!==!0)return;ue(a),l.value=!1;const y=A.indexOf(e.proxy);y!==-1&&A.splice(y,1),i!==null&&(Xe(i),i=null)}return u.onUnmounted(()=>{c(!0)}),e.proxy.__qPortal=!0,B.injectProp(e.proxy,"contentEl",()=>t.value),{showPortal:d,hidePortal:c,portalIsActive:l,portalIsAccessible:m,renderPortal:()=>h===!0?o():l.value===!0?[u.h(u.Teleport,{to:i},u.h(Ze,o))]:void 0}}const xe={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function be(e,t=()=>{},o=()=>{}){return{transitionProps:u.computed(()=>{const n=`q-transition--${e.transitionShow||t()}`,l=`q-transition--${e.transitionHide||o()}`;return{appear:!0,enterFromClass:`${n}-enter-from`,enterActiveClass:`${n}-enter-active`,enterToClass:`${n}-enter-to`,leaveFromClass:`${l}-leave-from`,leaveActiveClass:`${l}-leave-active`,leaveToClass:`${l}-leave-to`}}),transitionStyle:u.computed(()=>`--q-transition-duration: ${e.transitionDuration}ms`)}}function Ee(){let e;const t=u.getCurrentInstance();function o(){e=void 0}return u.onDeactivated(o),u.onBeforeUnmount(o),{removeTick:o,registerTick(n){e=n,u.nextTick(()=>{e===n&&(g.vmIsDestroyed(t)===!1&&e(),e=void 0)})}}}function Te(){let e=null;const t=u.getCurrentInstance();function o(){e!==null&&(clearTimeout(e),e=null)}return u.onDeactivated(o),u.onBeforeUnmount(o),{removeTimeout:o,registerTimeout(n,l){o(),g.vmIsDestroyed(t)===!1&&(e=setTimeout(()=>{e=null,n()},l))}}}const et=[Element,String],tt=[null,document,document.body,document.scrollingElement,document.documentElement];function ot(e,t){let o=g.getElement(t);if(o===void 0){if(e==null)return window;o=e.closest(".scroll,.scroll-y,.overflow-auto")}return tt.includes(o)?window:o}function nt(e){return e===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:e.scrollTop}function lt(e){return e===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:e.scrollLeft}let I;function it(){if(I!==void 0)return I;const e=document.createElement("p"),t=document.createElement("div");g.css(e,{width:"100%",height:"200px"}),g.css(t,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),t.appendChild(e),document.body.appendChild(t);const o=e.offsetWidth;t.style.overflow="scroll";let n=e.offsetWidth;return o===n&&(n=t.clientWidth),t.remove(),I=o-n,I}function ut(e,t=!0){return!e||e.nodeType!==Node.ELEMENT_NODE?!1:t?e.scrollHeight>e.clientHeight&&(e.classList.contains("scroll")||e.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(e)["overflow-y"])):e.scrollWidth>e.clientWidth&&(e.classList.contains("scroll")||e.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(e)["overflow-x"]))}const W=[];let $;function rt(e){$=e.keyCode===27}function at(){$===!0&&($=!1)}function st(e){$===!0&&($=!1,g.isKeyCode(e,27)===!0&&W[W.length-1](e))}function Ce(e){window[e]("keydown",rt),window[e]("blur",at),window[e]("keyup",st),$=!1}function Pe(e){B.client.is.desktop===!0&&(W.push(e),W.length===1&&Ce("addEventListener"))}function G(e){const t=W.indexOf(e);t!==-1&&(W.splice(t,1),W.length===0&&Ce("removeEventListener"))}const{notPassiveCapture:z}=g.listenOpts,q=[];function O(e){const t=e.target;if(t===void 0||t.nodeType===8||t.classList.contains("no-pointer-events")===!0)return;let o=A.length-1;for(;o>=0;){const n=A[o].$;if(n.type.name==="QTooltip"){o--;continue}if(n.type.name!=="QDialog")break;if(n.props.seamless!==!0)return;o--}for(let n=q.length-1;n>=0;n--){const l=q[n];if((l.anchorEl.value===null||l.anchorEl.value.contains(t)===!1)&&(t===document.body||l.innerRef.value!==null&&l.innerRef.value.contains(t)===!1))e.qClickOutside=!0,l.onClickOutside(e);else return}}function ct(e){q.push(e),q.length===1&&(document.addEventListener("mousedown",O,z),document.addEventListener("touchstart",O,z))}function ae(e){const t=q.findIndex(o=>o===e);t!==-1&&(q.splice(t,1),q.length===0&&(document.removeEventListener("mousedown",O,z),document.removeEventListener("touchstart",O,z)))}let se,ce;function de(e){const t=e.split(" ");return t.length!==2?!1:["top","center","bottom"].includes(t[0])!==!0?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):["left","middle","right","start","end"].includes(t[1])!==!0?(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1):!0}function dt(e){return e?!(e.length!==2||typeof e[0]!="number"||typeof e[1]!="number"):!0}const X={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(e=>{X[`${e}#ltr`]=e,X[`${e}#rtl`]=e});function fe(e,t){const o=e.split(" ");return{vertical:o[0],horizontal:X[`${o[1]}#${t===!0?"rtl":"ltr"}`]}}function ft(e,t){let{top:o,left:n,right:l,bottom:m,width:i,height:a}=e.getBoundingClientRect();return t!==void 0&&(o-=t[1],n-=t[0],m+=t[1],l+=t[0],i+=t[0],a+=t[1]),{top:o,bottom:m,height:a,left:n,right:l,width:i,middle:n+(l-n)/2,center:o+(m-o)/2}}function mt(e,t,o){let{top:n,left:l}=e.getBoundingClientRect();return n+=t.top,l+=t.left,o!==void 0&&(n+=o[1],l+=o[0]),{top:n,bottom:n+1,height:1,left:l,right:l+1,width:1,middle:l,center:n}}function ht(e,t){return{top:0,center:t/2,bottom:t,left:0,middle:e/2,right:e}}function me(e,t,o,n){return{top:e[o.vertical]-t[n.vertical],left:e[o.horizontal]-t[n.horizontal]}}function Se(e,t=0){if(e.targetEl===null||e.anchorEl===null||t>5)return;if(e.targetEl.offsetHeight===0||e.targetEl.offsetWidth===0){setTimeout(()=>{Se(e,t+1)},10);return}const{targetEl:o,offset:n,anchorEl:l,anchorOrigin:m,selfOrigin:i,absoluteOffset:a,fit:h,cover:d,maxHeight:c,maxWidth:w}=e;if(B.client.is.ios===!0&&window.visualViewport!==void 0){const F=document.body.style,{offsetLeft:E,offsetTop:T}=window.visualViewport;E!==se&&(F.setProperty("--q-pe-left",E+"px"),se=E),T!==ce&&(F.setProperty("--q-pe-top",T+"px"),ce=T)}const{scrollLeft:y,scrollTop:r}=o,f=a===void 0?ft(l,d===!0?[0,0]:n):mt(l,a,n);Object.assign(o.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:w,maxHeight:c,visibility:"visible"});const{offsetWidth:H,offsetHeight:C}=o,{elWidth:M,elHeight:v}=h===!0||d===!0?{elWidth:Math.max(f.width,H),elHeight:d===!0?Math.max(f.height,C):C}:{elWidth:H,elHeight:C};let p={maxWidth:w,maxHeight:c};(h===!0||d===!0)&&(p.minWidth=f.width+"px",d===!0&&(p.minHeight=f.height+"px")),Object.assign(o.style,p);const P=ht(M,v);let x=me(f,P,m,i);if(a===void 0||n===void 0)N(x,f,P,m,i);else{const{top:F,left:E}=x;N(x,f,P,m,i);let T=!1;if(x.top!==F){T=!0;const S=2*n[1];f.center=f.top-=S,f.bottom-=S+2}if(x.left!==E){T=!0;const S=2*n[0];f.middle=f.left-=S,f.right-=S+2}T===!0&&(x=me(f,P,m,i),N(x,f,P,m,i))}p={top:x.top+"px",left:x.left+"px"},x.maxHeight!==void 0&&(p.maxHeight=x.maxHeight+"px",f.height>x.maxHeight&&(p.minHeight=p.maxHeight)),x.maxWidth!==void 0&&(p.maxWidth=x.maxWidth+"px",f.width>x.maxWidth&&(p.minWidth=p.maxWidth)),Object.assign(o.style,p),o.scrollTop!==r&&(o.scrollTop=r),o.scrollLeft!==y&&(o.scrollLeft=y)}function N(e,t,o,n,l){const m=o.bottom,i=o.right,a=it(),h=window.innerHeight-a,d=document.body.clientWidth;if(e.top<0||e.top+m>h)if(l.vertical==="center")e.top=t[n.vertical]>h/2?Math.max(0,h-m):0,e.maxHeight=Math.min(m,h);else if(t[n.vertical]>h/2){const c=Math.min(h,n.vertical==="center"?t.center:n.vertical===l.vertical?t.bottom:t.top);e.maxHeight=Math.min(m,c),e.top=Math.max(0,c-m)}else e.top=Math.max(0,n.vertical==="center"?t.center:n.vertical===l.vertical?t.top:t.bottom),e.maxHeight=Math.min(m,h-e.top);if(e.left<0||e.left+i>d)if(e.maxWidth=Math.min(i,d),l.horizontal==="middle")e.left=t[n.horizontal]>d/2?Math.max(0,d-i):0;else if(t[n.horizontal]>d/2){const c=Math.min(d,n.horizontal==="middle"?t.middle:n.horizontal===l.horizontal?t.right:t.left);e.maxWidth=Math.min(i,c),e.left=Math.max(0,c-e.maxWidth)}else e.left=Math.max(0,n.horizontal==="middle"?t.middle:n.horizontal===l.horizontal?t.left:t.right),e.maxWidth=Math.min(i,d-e.left)}const vt=g.createComponent({name:"QMenu",inheritAttrs:!1,props:{...Qe,...ge,...g.useDarkProps,...xe,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noEscDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:de},self:{type:String,validator:de},offset:{type:Array,validator:dt},scrollTarget:et,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...pe,"click","escapeKey"],setup(e,{slots:t,emit:o,attrs:n}){let l=null,m,i,a;const h=u.getCurrentInstance(),{proxy:d}=h,{$q:c}=d,w=u.ref(null),y=u.ref(!1),r=u.computed(()=>e.persistent!==!0&&e.noRouteDismiss!==!0),f=g.useDark(e,c),{registerTick:H,removeTick:C}=Ee(),{registerTimeout:M}=Te(),{transitionProps:v,transitionStyle:p}=be(e),{localScrollTarget:P,changeScrollEvent:x,unconfigureScrollTarget:F}=_e(e,oe),{anchorEl:E,canShow:T}=Ue({showing:y}),{hide:S}=we({showing:y,canShow:T,handleShow:qe,handleHide:Be,hideOnRouteChange:r,processOnMount:!0}),{showPortal:Y,hidePortal:Z,renderPortal:He}=ye(h,w,$e,"menu"),V={anchorEl:E,innerRef:w,onClickOutside(s){if(e.persistent!==!0&&y.value===!0)return S(s),(s.type==="touchstart"||s.target.classList.contains("q-dialog__backdrop"))&&g.stopAndPrevent(s),!0}},J=u.computed(()=>fe(e.anchor||(e.cover===!0?"center middle":"bottom start"),c.lang.rtl)),Me=u.computed(()=>e.cover===!0?J.value:fe(e.self||"top start",c.lang.rtl)),ke=u.computed(()=>(e.square===!0?" q-menu--square":"")+(f.value===!0?" q-menu--dark q-dark":"")),We=u.computed(()=>e.autoClose===!0?{onClick:Fe}:{}),ee=u.computed(()=>y.value===!0&&e.persistent!==!0);u.watch(ee,s=>{s===!0?(Pe(Q),ct(V)):(G(Q),ae(V))});function K(){ve(()=>{let s=w.value;s&&s.contains(document.activeElement)!==!0&&(s=s.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||s.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||s.querySelector("[autofocus], [data-autofocus]")||s,s.focus({preventScroll:!0}))})}function qe(s){if(l=e.noRefocus===!1?document.activeElement:null,B.addFocusout(ne),Y(),oe(),m=void 0,s!==void 0&&(e.touchPosition||e.contextMenu)){const U=g.position(s);if(U.left!==void 0){const{top:Le,left:Ae}=E.value.getBoundingClientRect();m={left:U.left-Ae,top:U.top-Le}}}i===void 0&&(i=u.watch(()=>c.screen.width+"|"+c.screen.height+"|"+e.self+"|"+e.anchor+"|"+c.lang.rtl,L)),e.noFocus!==!0&&document.activeElement.blur(),H(()=>{L(),e.noFocus!==!0&&K()}),M(()=>{c.platform.is.ios===!0&&(a=e.autoClose,w.value.click()),L(),Y(!0),o("show",s)},e.transitionDuration)}function Be(s){C(),Z(),te(!0),l!==null&&(s===void 0||s.qClickOutside!==!0)&&((((s==null?void 0:s.type.indexOf("key"))===0?l.closest('[tabindex]:not([tabindex^="-"])'):void 0)||l).focus(),l=null),M(()=>{Z(!0),o("hide",s)},e.transitionDuration)}function te(s){m=void 0,i!==void 0&&(i(),i=void 0),(s===!0||y.value===!0)&&(B.removeFocusout(ne),F(),ae(V),G(Q)),s!==!0&&(l=null)}function oe(){(E.value!==null||e.scrollTarget!==void 0)&&(P.value=ot(E.value,e.scrollTarget),x(P.value,L))}function Fe(s){a!==!0?(Ye(d,s),o("click",s)):a=!1}function ne(s){ee.value===!0&&e.noFocus!==!0&&g.childHasFocus(w.value,s.target)!==!0&&K()}function Q(s){e.noEscDismiss!==!0&&(o("escapeKey"),S(s))}function L(){Se({targetEl:w.value,offset:e.offset,anchorEl:E.value,anchorOrigin:J.value,selfOrigin:Me.value,absoluteOffset:m,fit:e.fit,cover:e.cover,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function $e(){return u.h(u.Transition,v.value,()=>y.value===!0?u.h("div",{role:"menu",...n,ref:w,tabindex:-1,class:["q-menu q-position-engine scroll"+ke.value,n.class],style:[n.style,p.value],...We.value},g.hSlot(t.default)):null)}return u.onBeforeUnmount(te),Object.assign(d,{focus:K,updatePosition:L}),He}});exports.QMenu=vt;exports.addEscapeKey=Pe;exports.addFocusFn=ve;exports.getHorizontalScrollPosition=lt;exports.getVerticalScrollPosition=nt;exports.hasScrollbar=ut;exports.removeEscapeKey=G;exports.removeFocusFn=Oe;exports.useId=Ie;exports.useModelToggle=we;exports.useModelToggleEmits=pe;exports.useModelToggleProps=ge;exports.usePortal=ye;exports.useTick=Ee;exports.useTimeout=Te;exports.useTransition=be;exports.useTransitionProps=xe;
@@ -1,6 +1,6 @@
1
1
  import { ref as T, onMounted as oe, watch as S, computed as E, getCurrentInstance as R, nextTick as I, onBeforeUnmount as z, onUnmounted as Ie, h as Q, Teleport as Qe, onDeactivated as Se, Transition as _e } from "vue";
2
2
  import { i as Ne, P as Ke, b as je, c as Ce, r as Ue, a as Ge } from "./focusout-DjvPXP_b.js";
3
- import { p as ce, z as de, i as Pe, B as Xe, n as J, D as Ye, E as X, c as He, F as ke, G as Ze, H as fe, a as Je, b as et, I as tt, h as ot, q as nt, s as lt } from "./index-DqEqQq1H.js";
3
+ import { p as ce, z as de, i as Pe, B as Xe, n as J, D as Ye, E as X, c as He, F as ke, G as Ze, H as fe, a as Je, b as et, I as tt, h as ot, q as nt, s as lt } from "./index-B0t4qh6b.js";
4
4
  let Y, V = 0;
5
5
  const y = new Array(256);
6
6
  for (let e = 0; e < 256; e++)