@validol4ik/uikit 0.7.10 → 0.8.2

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.
@@ -1,6 +1,6 @@
1
- import { computed as u, h as i, getCurrentInstance as z, ref as y, watch as k, onMounted as _, defineComponent as j, createBlock as E, openBlock as m, unref as h, normalizeClass as g, withCtx as q, renderSlot as M, createElementBlock as v, createCommentVNode as p, Fragment as F, createTextVNode as G, toDisplayString as N } from "vue";
2
- import { S as c, c as A, h as L, y as I, z as T, Q as W, B as S, w as U, C as X, _ as Y } from "./index-B4esBocL.js";
3
- import { d as Z, u as J, Q as K } from "./QMenu-D0sQuVZY.js";
1
+ import { computed as u, h as i, getCurrentInstance as z, ref as D, watch as k, onMounted as j, defineComponent as E, createBlock as F, openBlock as B, unref as h, normalizeClass as v, withCtx as q, renderSlot as M, createElementBlock as p, createCommentVNode as S, Fragment as _, createTextVNode as G, toDisplayString as N } from "vue";
2
+ import { S as c, c as A, h as L, y as I, z as T, Q as U, B as y, w as W, C as X, _ as Y } from "./index-CwbTrrYj.js";
3
+ import { d as Z, u as J, Q as K } from "./QMenu-9n9dOK87.js";
4
4
  const x = {
5
5
  [c.SM]: "3px 9px",
6
6
  [c.MD]: "5px 12px",
@@ -21,16 +21,16 @@ const x = {
21
21
  },
22
22
  setup(e, { slots: l }) {
23
23
  const t = u(() => {
24
- const s = ["unelevated", "outline", "flat", "rounded", "square", "push", "stretch", "glossy"].filter((a) => e[a] === !0).map((a) => `q-btn-group--${a}`).join(" ");
25
- return `q-btn-group row no-wrap${s.length !== 0 ? " " + s : ""}` + (e.spread === !0 ? " q-btn-group--spread" : " inline");
24
+ const d = ["unelevated", "outline", "flat", "rounded", "square", "push", "stretch", "glossy"].filter((a) => e[a] === !0).map((a) => `q-btn-group--${a}`).join(" ");
25
+ return `q-btn-group row no-wrap${d.length !== 0 ? " " + d : ""}` + (e.spread === !0 ? " q-btn-group--spread" : " inline");
26
26
  });
27
27
  return () => i("div", { class: t.value }, L(l.default));
28
28
  }
29
29
  }), ne = Object.keys(I);
30
30
  function oe(e) {
31
31
  return ne.reduce((l, t) => {
32
- const s = e[t];
33
- return s !== void 0 && (l[t] = s), l;
32
+ const d = e[t];
33
+ return d !== void 0 && (l[t] = d), l;
34
34
  }, {});
35
35
  }
36
36
  const te = A({
@@ -66,67 +66,67 @@ const te = A({
66
66
  },
67
67
  emits: ["update:modelValue", "click", "beforeShow", "show", "beforeHide", "hide"],
68
68
  setup(e, { slots: l, emit: t }) {
69
- const { proxy: s } = z(), a = y(e.modelValue), d = y(null), f = J(), b = u(() => {
69
+ const { proxy: d } = z(), a = D(e.modelValue), r = D(null), f = J(), m = u(() => {
70
70
  const n = {
71
71
  "aria-expanded": a.value === !0 ? "true" : "false",
72
72
  "aria-haspopup": "true",
73
73
  "aria-controls": f.value,
74
- "aria-label": e.toggleAriaLabel || s.$q.lang.label[a.value === !0 ? "collapse" : "expand"](e.label)
74
+ "aria-label": e.toggleAriaLabel || d.$q.lang.label[a.value === !0 ? "collapse" : "expand"](e.label)
75
75
  };
76
76
  return (e.disable === !0 || e.split === !1 && e.disableMainBtn === !0 || e.disableDropdown === !0) && (n["aria-disabled"] = "true"), n;
77
77
  }), o = u(
78
78
  () => "q-btn-dropdown__arrow" + (a.value === !0 && e.noIconAnimation === !1 ? " rotate-180" : "") + (e.split === !1 ? " q-btn-dropdown__arrow-container" : "")
79
- ), w = u(() => T(e)), D = u(() => oe(e));
79
+ ), b = u(() => T(e)), w = u(() => oe(e));
80
80
  k(() => e.modelValue, (n) => {
81
- var r;
82
- (r = d.value) == null || r[n ? "show" : "hide"]();
83
- }), k(() => e.split, B);
84
- function R(n) {
81
+ var s;
82
+ (s = r.value) == null || s[n ? "show" : "hide"]();
83
+ }), k(() => e.split, g);
84
+ function V(n) {
85
85
  a.value = !0, t("beforeShow", n);
86
86
  }
87
- function $(n) {
87
+ function R(n) {
88
88
  t("show", n), t("update:modelValue", !0);
89
89
  }
90
- function H(n) {
90
+ function $(n) {
91
91
  a.value = !1, t("beforeHide", n);
92
92
  }
93
- function O(n) {
93
+ function H(n) {
94
94
  t("hide", n), t("update:modelValue", !1);
95
95
  }
96
- function Q(n) {
96
+ function O(n) {
97
97
  t("click", n);
98
98
  }
99
- function V(n) {
100
- U(n), B(), t("click", n);
99
+ function Q(n) {
100
+ W(n), g(), t("click", n);
101
101
  }
102
102
  function P(n) {
103
- var r;
104
- (r = d.value) == null || r.toggle(n);
103
+ var s;
104
+ (s = r.value) == null || s.toggle(n);
105
105
  }
106
106
  function C(n) {
107
- var r;
108
- (r = d.value) == null || r.show(n);
107
+ var s;
108
+ (s = r.value) == null || s.show(n);
109
109
  }
110
- function B(n) {
111
- var r;
112
- (r = d.value) == null || r.hide(n);
110
+ function g(n) {
111
+ var s;
112
+ (s = r.value) == null || s.hide(n);
113
113
  }
114
- return Object.assign(s, {
114
+ return Object.assign(d, {
115
115
  show: C,
116
- hide: B,
116
+ hide: g,
117
117
  toggle: P
118
- }), _(() => {
118
+ }), j(() => {
119
119
  e.modelValue === !0 && C();
120
120
  }), () => {
121
121
  const n = [
122
- i(W, {
122
+ i(U, {
123
123
  class: o.value,
124
- name: e.dropdownIcon || s.$q.iconSet.arrow.dropdown
124
+ name: e.dropdownIcon || d.$q.iconSet.arrow.dropdown
125
125
  })
126
126
  ];
127
127
  return e.disableDropdown !== !0 && n.push(
128
128
  i(K, {
129
- ref: d,
129
+ ref: r,
130
130
  id: f.value,
131
131
  class: e.contentClass,
132
132
  style: e.contentStyle,
@@ -145,19 +145,19 @@ const te = A({
145
145
  transitionShow: e.transitionShow,
146
146
  transitionHide: e.transitionHide,
147
147
  transitionDuration: e.transitionDuration,
148
- onBeforeShow: R,
149
- onShow: $,
150
- onBeforeHide: H,
151
- onHide: O
148
+ onBeforeShow: V,
149
+ onShow: R,
150
+ onBeforeHide: $,
151
+ onHide: H
152
152
  }, l.default)
153
- ), e.split === !1 ? i(S, {
153
+ ), e.split === !1 ? i(y, {
154
154
  class: "q-btn-dropdown q-btn-dropdown--simple",
155
- ...D.value,
156
- ...b.value,
155
+ ...w.value,
156
+ ...m.value,
157
157
  disable: e.disable === !0 || e.disableMainBtn === !0,
158
158
  noWrap: !0,
159
159
  round: !1,
160
- onClick: Q
160
+ onClick: O
161
161
  }, {
162
162
  default: () => L(l.label, []).concat(n),
163
163
  loading: l.loading
@@ -165,25 +165,25 @@ const te = A({
165
165
  class: "q-btn-dropdown q-btn-dropdown--split no-wrap q-btn-item",
166
166
  rounded: e.rounded,
167
167
  square: e.square,
168
- ...w.value,
168
+ ...b.value,
169
169
  glossy: e.glossy,
170
170
  stretch: e.stretch
171
171
  }, () => [
172
- i(S, {
172
+ i(y, {
173
173
  class: "q-btn-dropdown--current",
174
- ...D.value,
174
+ ...w.value,
175
175
  disable: e.disable === !0 || e.disableMainBtn === !0,
176
176
  noWrap: !0,
177
177
  round: !1,
178
- onClick: V
178
+ onClick: Q
179
179
  }, {
180
180
  default: l.label,
181
181
  loading: l.loading
182
182
  }),
183
- i(S, {
183
+ i(y, {
184
184
  class: "q-btn-dropdown__arrow-container q-anchor--skip",
185
+ ...m.value,
185
186
  ...b.value,
186
- ...w.value,
187
187
  disable: e.disable === !0 || e.disableDropdown === !0,
188
188
  rounded: e.rounded,
189
189
  color: e.color,
@@ -196,7 +196,7 @@ const te = A({
196
196
  ]);
197
197
  };
198
198
  }
199
- }), ae = /* @__PURE__ */ j({
199
+ }), ae = /* @__PURE__ */ E({
200
200
  __name: "DropdownButton",
201
201
  props: {
202
202
  size: { default: c.MD },
@@ -218,7 +218,7 @@ const te = A({
218
218
  },
219
219
  emits: ["menuShown", "menuHidden"],
220
220
  setup(e, { emit: l }) {
221
- const t = e, s = l, a = y(!1), d = u(() => [
221
+ const t = e, d = l, a = D(!1), r = u(() => [
222
222
  "dropdown-btn",
223
223
  {
224
224
  "dropdown-btn_default": !t.transparent && !t.flat,
@@ -231,14 +231,16 @@ const te = A({
231
231
  `dropdown-btn_${t.size}`,
232
232
  `dropdown-btn_${t.color}`
233
233
  ]), f = () => {
234
- a.value = !0, s("menuShown");
235
- }, b = () => {
236
- a.value = !1, s("menuHidden");
234
+ a.value = !0, d("menuShown");
235
+ }, m = () => {
236
+ a.value = !1, d("menuHidden");
237
237
  };
238
- return (o, w) => (m(), E(h(te), {
238
+ return (o, b) => (B(), F(h(te), {
239
239
  "no-caps": "",
240
240
  unelevated: "",
241
- class: g(d.value),
241
+ modelValue: a.value,
242
+ "onUpdate:modelValue": b[0] || (b[0] = (w) => a.value = w),
243
+ class: v(r.value),
242
244
  padding: h(x)[o.size || h(c).MD],
243
245
  loading: o.loading,
244
246
  disable: o.disabled || void 0,
@@ -248,24 +250,24 @@ const te = A({
248
250
  "menu-self": o.menuSelf,
249
251
  "content-class": ["glass-menu dropdown-menu", o.menuClass],
250
252
  onBeforeShow: f,
251
- onBeforeHide: b
253
+ onBeforeHide: m
252
254
  }, {
253
255
  label: q(() => [
254
- o.iconLeft || o.iconMiddle ? (m(), v("i", {
256
+ o.iconLeft || o.iconMiddle ? (B(), p("i", {
255
257
  key: 0,
256
- class: g([
258
+ class: v([
257
259
  "icon-kl",
258
260
  o.iconLeft ? "icon-kl_left" : "icon-kl_middle",
259
261
  `icon-kl-${o.iconLeft || o.iconMiddle}`,
260
262
  o.transparent || o.flat ? `text-${o.color}` : "text-secondary"
261
263
  ])
262
- }, null, 2)) : p("", !0),
263
- o.label ? (m(), v(F, { key: 1 }, [
264
+ }, null, 2)) : S("", !0),
265
+ o.label ? (B(), p(_, { key: 1 }, [
264
266
  G(N(o.label), 1)
265
- ], 64)) : p("", !0),
266
- o.hideDropIcon ? p("", !0) : (m(), v("i", {
267
+ ], 64)) : S("", !0),
268
+ o.hideDropIcon ? S("", !0) : (B(), p("i", {
267
269
  key: 2,
268
- class: g([
270
+ class: v([
269
271
  "icon-kl",
270
272
  "icon-kl-arrow-down",
271
273
  { "icon-kl-arrow-down_rotated": a.value },
@@ -276,14 +278,14 @@ const te = A({
276
278
  default: q(() => [
277
279
  M(o.$slots, "default", {}, void 0, !0),
278
280
  M(o.$slots, "options", {
279
- hideMenu: b,
281
+ hideMenu: m,
280
282
  showMenu: f
281
283
  }, void 0, !0)
282
284
  ]),
283
285
  _: 3
284
- }, 8, ["class", "padding", "loading", "disable", "aria-label", "menu-offset", "menu-anchor", "menu-self", "content-class"]));
286
+ }, 8, ["modelValue", "class", "padding", "loading", "disable", "aria-label", "menu-offset", "menu-anchor", "menu-self", "content-class"]));
285
287
  }
286
- }), de = /* @__PURE__ */ Y(ae, [["__scopeId", "data-v-f9fc47d1"]]);
288
+ }), re = /* @__PURE__ */ Y(ae, [["__scopeId", "data-v-78a1ed6d"]]);
287
289
  export {
288
- de as default
290
+ re as default
289
291
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),l=require("./index-CbRV0UFS.cjs"),w=require("./QMenu-CjgKlmio.cjs"),D={[l.SIZES.SM]:"3px 9px",[l.SIZES.MD]:"5px 12px",[l.SIZES.LG]:"6px 15px",[l.SIZES.XL]:"9px 20px"},q=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 a=n.computed(()=>{const u=["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${u.length!==0?" "+u:""}`+(e.spread===!0?" q-btn-group--spread":" inline")});return()=>n.h("div",{class:a.value},l.hSlot(d.default))}}),M=Object.keys(l.nonRoundBtnProps);function I(e){return M.reduce((d,a)=>{const u=e[a];return u!==void 0&&(d[a]=u),d},{})}const A=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:a}){const{proxy:u}=n.getCurrentInstance(),r=n.ref(e.modelValue),s=n.ref(null),c=w.useId(),f=n.computed(()=>{const o={"aria-expanded":r.value===!0?"true":"false","aria-haspopup":"true","aria-controls":c.value,"aria-label":e.toggleAriaLabel||u.$q.lang.label[r.value===!0?"collapse":"expand"](e.label)};return(e.disable===!0||e.split===!1&&e.disableMainBtn===!0||e.disableDropdown===!0)&&(o["aria-disabled"]="true"),o}),t=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(()=>I(e));n.watch(()=>e.modelValue,o=>{var i;(i=s.value)==null||i[o?"show":"hide"]()}),n.watch(()=>e.split,b);function g(o){r.value=!0,a("beforeShow",o)}function S(o){a("show",o),a("update:modelValue",!0)}function p(o){r.value=!1,a("beforeHide",o)}function v(o){a("hide",o),a("update:modelValue",!1)}function C(o){a("click",o)}function y(o){l.stop(o),b(),a("click",o)}function k(o){var i;(i=s.value)==null||i.toggle(o)}function h(o){var i;(i=s.value)==null||i.show(o)}function b(o){var i;(i=s.value)==null||i.hide(o)}return Object.assign(u,{show:h,hide:b,toggle:k}),n.onMounted(()=>{e.modelValue===!0&&h()}),()=>{const o=[n.h(l.QIcon,{class:t.value,name:e.dropdownIcon||u.$q.iconSet.arrow.dropdown})];return e.disableDropdown!==!0&&o.push(n.h(w.QMenu,{ref:s,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(o),loading:d.loading}):n.h(q,{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:y},{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},()=>o)])}}}),L=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:{},menuOffset:{},menuAnchor:{},menuSelf:{},menuClass:{}},emits:["menuShown","menuHidden"],setup(e,{emit:d}){const a=e,u=d,r=n.ref(!1),s=n.computed(()=>["dropdown-btn",{"dropdown-btn_default":!a.transparent&&!a.flat,"dropdown-btn_trans":a.transparent,"dropdown-btn_flat":a.flat,"dropdown-btn_rounded":a.rounded,"dropdown-btn_icon-left":a.iconLeft,"dropdown-btn_icon-middle":a.iconMiddle},`dropdown-btn_${a.size}`,`dropdown-btn_${a.color}`]),c=()=>{r.value=!0,u("menuShown")},f=()=>{r.value=!1,u("menuHidden")};return(t,m)=>(n.openBlock(),n.createBlock(n.unref(A),{"no-caps":"",unelevated:"",class:n.normalizeClass(s.value),padding:n.unref(D)[t.size||n.unref(l.SIZES).MD],loading:t.loading,disable:t.disabled||void 0,"aria-label":t.ariaLabel,"menu-offset":t.menuOffset,"menu-anchor":t.menuAnchor,"menu-self":t.menuSelf,"content-class":["glass-menu dropdown-menu",t.menuClass],onBeforeShow:c,onBeforeHide:f},{label:n.withCtx(()=>[t.iconLeft||t.iconMiddle?(n.openBlock(),n.createElementBlock("i",{key:0,class:n.normalizeClass(["icon-kl",t.iconLeft?"icon-kl_left":"icon-kl_middle",`icon-kl-${t.iconLeft||t.iconMiddle}`,t.transparent||t.flat?`text-${t.color}`:"text-secondary"])},null,2)):n.createCommentVNode("",!0),t.label?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString(t.label),1)],64)):n.createCommentVNode("",!0),t.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},t.transparent?`text-${t.color}`:"text-secondary"])},null,2))]),default:n.withCtx(()=>[n.renderSlot(t.$slots,"default",{},void 0,!0),n.renderSlot(t.$slots,"options",{hideMenu:f,showMenu:c},void 0,!0)]),_:3},8,["class","padding","loading","disable","aria-label","menu-offset","menu-anchor","menu-self","content-class"]))}}),E=l._export_sfc(L,[["__scopeId","data-v-f9fc47d1"]]);exports.default=E;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),l=require("./index-ykcXpiRU.cjs"),B=require("./QMenu-nASi_-iL.cjs"),D={[l.SIZES.SM]:"3px 9px",[l.SIZES.MD]:"5px 12px",[l.SIZES.LG]:"6px 15px",[l.SIZES.XL]:"9px 20px"},q=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 a=n.computed(()=>{const u=["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${u.length!==0?" "+u:""}`+(e.spread===!0?" q-btn-group--spread":" inline")});return()=>n.h("div",{class:a.value},l.hSlot(d.default))}}),M=Object.keys(l.nonRoundBtnProps);function I(e){return M.reduce((d,a)=>{const u=e[a];return u!==void 0&&(d[a]=u),d},{})}const A=l.createComponent({name:"QBtnDropdown",props:{...l.nonRoundBtnProps,...B.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:a}){const{proxy:u}=n.getCurrentInstance(),r=n.ref(e.modelValue),s=n.ref(null),c=B.useId(),f=n.computed(()=>{const o={"aria-expanded":r.value===!0?"true":"false","aria-haspopup":"true","aria-controls":c.value,"aria-label":e.toggleAriaLabel||u.$q.lang.label[r.value===!0?"collapse":"expand"](e.label)};return(e.disable===!0||e.split===!1&&e.disableMainBtn===!0||e.disableDropdown===!0)&&(o["aria-disabled"]="true"),o}),t=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(()=>I(e));n.watch(()=>e.modelValue,o=>{var i;(i=s.value)==null||i[o?"show":"hide"]()}),n.watch(()=>e.split,w);function g(o){r.value=!0,a("beforeShow",o)}function S(o){a("show",o),a("update:modelValue",!0)}function p(o){r.value=!1,a("beforeHide",o)}function v(o){a("hide",o),a("update:modelValue",!1)}function C(o){a("click",o)}function y(o){l.stop(o),w(),a("click",o)}function k(o){var i;(i=s.value)==null||i.toggle(o)}function h(o){var i;(i=s.value)==null||i.show(o)}function w(o){var i;(i=s.value)==null||i.hide(o)}return Object.assign(u,{show:h,hide:w,toggle:k}),n.onMounted(()=>{e.modelValue===!0&&h()}),()=>{const o=[n.h(l.QIcon,{class:t.value,name:e.dropdownIcon||u.$q.iconSet.arrow.dropdown})];return e.disableDropdown!==!0&&o.push(n.h(B.QMenu,{ref:s,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(o),loading:d.loading}):n.h(q,{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:y},{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},()=>o)])}}}),V=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:{},menuOffset:{},menuAnchor:{},menuSelf:{},menuClass:{}},emits:["menuShown","menuHidden"],setup(e,{emit:d}){const a=e,u=d,r=n.ref(!1),s=n.computed(()=>["dropdown-btn",{"dropdown-btn_default":!a.transparent&&!a.flat,"dropdown-btn_trans":a.transparent,"dropdown-btn_flat":a.flat,"dropdown-btn_rounded":a.rounded,"dropdown-btn_icon-left":a.iconLeft,"dropdown-btn_icon-middle":a.iconMiddle},`dropdown-btn_${a.size}`,`dropdown-btn_${a.color}`]),c=()=>{r.value=!0,u("menuShown")},f=()=>{r.value=!1,u("menuHidden")};return(t,m)=>(n.openBlock(),n.createBlock(n.unref(A),{"no-caps":"",unelevated:"",modelValue:r.value,"onUpdate:modelValue":m[0]||(m[0]=b=>r.value=b),class:n.normalizeClass(s.value),padding:n.unref(D)[t.size||n.unref(l.SIZES).MD],loading:t.loading,disable:t.disabled||void 0,"aria-label":t.ariaLabel,"menu-offset":t.menuOffset,"menu-anchor":t.menuAnchor,"menu-self":t.menuSelf,"content-class":["glass-menu dropdown-menu",t.menuClass],onBeforeShow:c,onBeforeHide:f},{label:n.withCtx(()=>[t.iconLeft||t.iconMiddle?(n.openBlock(),n.createElementBlock("i",{key:0,class:n.normalizeClass(["icon-kl",t.iconLeft?"icon-kl_left":"icon-kl_middle",`icon-kl-${t.iconLeft||t.iconMiddle}`,t.transparent||t.flat?`text-${t.color}`:"text-secondary"])},null,2)):n.createCommentVNode("",!0),t.label?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString(t.label),1)],64)):n.createCommentVNode("",!0),t.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},t.transparent?`text-${t.color}`:"text-secondary"])},null,2))]),default:n.withCtx(()=>[n.renderSlot(t.$slots,"default",{},void 0,!0),n.renderSlot(t.$slots,"options",{hideMenu:f,showMenu:c},void 0,!0)]),_:3},8,["modelValue","class","padding","loading","disable","aria-label","menu-offset","menu-anchor","menu-self","content-class"]))}}),L=l._export_sfc(V,[["__scopeId","data-v-78a1ed6d"]]);exports.default=L;
@@ -1,6 +1,6 @@
1
1
  import { ref as T, onMounted as te, watch as S, computed as E, getCurrentInstance as R, nextTick as I, onBeforeUnmount as z, onUnmounted as Oe, h as K, Teleport as Ie, onDeactivated as Te, Transition as Ke } from "vue";
2
2
  import { i as Ne, P as Qe, b as _e, c as Se, r as je, a as Ue } from "./focusout-DjvPXP_b.js";
3
- import { p as se, D as ce, k as Ce, E as Ge, m as J, F as Xe, c as He, G as B, H as ke, I as Ye, J as de, u as Je, a as Ze, K as et, L as tt, h as ot, o as nt, s as lt } from "./index-B4esBocL.js";
3
+ import { p as se, D as ce, k as Ce, E as Ge, m as J, F as Xe, c as He, G as B, H as ke, I as Ye, J as de, u as Je, a as Ze, K as et, L as tt, h as ot, o as nt, s as lt } from "./index-CwbTrrYj.js";
4
4
  let X, V = 0;
5
5
  const w = new Array(256);
6
6
  for (let e = 0; e < 256; e++)
@@ -1 +1 @@
1
- "use strict";const r=require("vue"),L=require("./focusout-DzWGke-4.cjs"),g=require("./index-CbRV0UFS.cjs");let N,D=0;const b=new Array(256);for(let e=0;e<256;e++)b[e]=(e+256).toString(16).substring(1);const Ae=(()=>{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}})(),ne=4096;function _(){(N===void 0||D+16>ne)&&(D=0,N=Ae(ne));const e=Array.prototype.slice.call(N,D,D+=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 De(e){return e??null}function le(e,t){return e??(t===!0?`f_${_()}`:null)}function Re({getValue:e,required:t=!0}={}){if(L.isRuntimeSsrPreHydration.value===!0){const o=e!==void 0?r.ref(De(e())):r.ref(null);return t===!0&&o.value===null&&r.onMounted(()=>{o.value=`f_${_()}`}),e!==void 0&&r.watch(e,n=>{o.value=le(n,t)}),o}return e!==void 0?r.computed(()=>le(e(),t)):r.ref(`f_${_()}`)}let k=[],A=[];function me(e){A=A.filter(t=>t!==e)}function Ie(e){me(e),A.push(e)}function ie(e){me(e),A.length===0&&k.length!==0&&(k[k.length-1](),k=[])}function he(e){A.length===0?e():k.push(e)}function ze(e){k=k.filter(t=>t!==e)}function Oe(){if(window.getSelection!==void 0){const e=window.getSelection();e.empty!==void 0?e.empty():e.removeAllRanges!==void 0&&(e.removeAllRanges(),L.Platform.is.mobile!==!0&&e.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}const Ve={target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},Ke={...Ve,contextMenu:Boolean};function Ue({showing:e,avoidEmit:t,configureAnchorEl:o}){const{props:n,proxy:l,emit:m}=r.getCurrentInstance(),i=r.ref(null);let a=null;function h(u){return i.value===null?!1:u===void 0||u.touches===void 0||u.touches.length<=1}const d={};o===void 0&&(Object.assign(d,{hide(u){l.hide(u)},toggle(u){l.toggle(u),u.qAnchorHandled=!0},toggleKey(u){g.isKeyCode(u,13)===!0&&d.toggle(u)},contextClick(u){l.hide(u),g.prevent(u),r.nextTick(()=>{l.show(u),u.qAnchorHandled=!0})},prevent:g.prevent,mobileTouch(u){if(d.mobileCleanup(u),h(u)!==!0)return;l.hide(u),i.value.classList.add("non-selectable");const f=u.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(u),u.qAnchorHandled=!0},300)},mobileCleanup(u){i.value.classList.remove("non-selectable"),a!==null&&(clearTimeout(a),a=null),e.value===!0&&u!==void 0&&Oe()}}),o=function(u=n.contextMenu){if(n.noParentEvent===!0||i.value===null)return;let f;u===!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 y(u){for(i.value=u;i.value.classList.contains("q-anchor--skip");)i.value=i.value.parentNode;o()}function w(){if(n.target===!1||n.target===""||l.$el.parentNode===null)i.value=null;else if(n.target===!0)y(l.$el.parentNode);else{let u=n.target;if(typeof n.target=="string")try{u=document.querySelector(n.target)}catch{u=void 0}u!=null?(i.value=u.$el||u,o()):(i.value=null,console.error(`Anchor: target "${n.target}" not found`))}}return r.watch(()=>n.contextMenu,u=>{i.value!==null&&(c(),o(u))}),r.watch(()=>n.target,()=>{i.value!==null&&c(),w()}),r.watch(()=>n.noParentEvent,u=>{i.value!==null&&(u===!0?c():o())}),r.onMounted(()=>{w(),t!==!0&&n.modelValue===!0&&i.value===null&&m("update:modelValue",!1)}),r.onBeforeUnmount(()=>{a!==null&&clearTimeout(a),c()}),{anchorEl:i,canShow:h,anchorEvents:d}}function Ne(e,t){const o=r.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=r.watch(()=>e.noParentEvent,()=>{o.value!==null&&(m(),t())});return r.onBeforeUnmount(i),{localScrollTarget:o,unconfigureScrollTarget:m,changeScrollEvent:l}}const ve={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},ge=["beforeShow","show","beforeHide","hide"];function pe({showing:e,canShow:t,hideOnRouteChange:o,handleShow:n,handleHide:l,processOnMount:m}){const i=r.getCurrentInstance(),{props:a,emit:h,proxy:d}=i;let c;function y(v){e.value===!0?f(v):w(v)}function w(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,r.nextTick(()=>{c===v&&(c=void 0)})),(a.modelValue===null||p===!1)&&u(v)}function u(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,r.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?u:H)(c)}r.watch(()=>a.modelValue,C),o!==void 0&&g.vmHasRouter(i)===!0&&r.watch(()=>d.$route.fullPath,()=>{o.value===!0&&e.value===!0&&f()}),r.onMounted(()=>{C(a.modelValue)});const M={show:w,hide:f,toggle:y};return Object.assign(d,M),M}const re={};let Qe=1,_e=document.body;function je(e,t){const o=document.createElement("div");if(o.id=t!==void 0?`q-portal--${t}--${Qe++}`:e,re.globalNodes!==void 0){const n=re.globalNodes.class;n!==void 0&&(o.className=n)}return _e.appendChild(o),o}function Ge(e){e.remove()}const Xe=g.createComponent({name:"QPortal",setup(e,{slots:t}){return()=>t.default()}});function Ye(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=r.ref(!1),m=r.ref(!1);let i=null;const a={},h=n==="dialog"&&Ye(e);function d(y){if(y===!0){ie(a),m.value=!0;return}m.value=!1,l.value===!1&&(h===!1&&i===null&&(i=je(!1,n)),l.value=!0,g.portalProxyList.push(e.proxy),Ie(a))}function c(y){if(m.value=!1,y!==!0)return;ie(a),l.value=!1;const w=g.portalProxyList.indexOf(e.proxy);w!==-1&&g.portalProxyList.splice(w,1),i!==null&&(Ge(i),i=null)}return r.onUnmounted(()=>{c(!0)}),e.proxy.__qPortal=!0,L.injectProp(e.proxy,"contentEl",()=>t.value),{showPortal:d,hidePortal:c,portalIsActive:l,portalIsAccessible:m,renderPortal:()=>h===!0?o():l.value===!0?[r.h(r.Teleport,{to:i},r.h(Xe,o))]:void 0}}const we={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function xe(e,t=()=>{},o=()=>{}){return{transitionProps:r.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:r.computed(()=>`--q-transition-duration: ${e.transitionDuration}ms`)}}function be(){let e;const t=r.getCurrentInstance();function o(){e=void 0}return r.onDeactivated(o),r.onBeforeUnmount(o),{removeTick:o,registerTick(n){e=n,r.nextTick(()=>{e===n&&(g.vmIsDestroyed(t)===!1&&e(),e=void 0)})}}}function Ee(){let e=null;const t=r.getCurrentInstance();function o(){e!==null&&(clearTimeout(e),e=null)}return r.onDeactivated(o),r.onBeforeUnmount(o),{removeTimeout:o,registerTimeout(n,l){o(),g.vmIsDestroyed(t)===!1&&(e=setTimeout(()=>{e=null,n()},l))}}}const Ze=[Element,String],Je=[null,document,document.body,document.scrollingElement,document.documentElement];function et(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 Je.includes(o)?window:o}function tt(e){return e===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:e.scrollTop}function ot(e){return e===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:e.scrollLeft}let R;function nt(){if(R!==void 0)return R;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(),R=o-n,R}function lt(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 F;function it(e){F=e.keyCode===27}function rt(){F===!0&&(F=!1)}function ut(e){F===!0&&(F=!1,g.isKeyCode(e,27)===!0&&W[W.length-1](e))}function Te(e){window[e]("keydown",it),window[e]("blur",rt),window[e]("keyup",ut),F=!1}function Ce(e){L.client.is.desktop===!0&&(W.push(e),W.length===1&&Te("addEventListener"))}function j(e){const t=W.indexOf(e);t!==-1&&(W.splice(t,1),W.length===0&&Te("removeEventListener"))}const{notPassiveCapture:I}=g.listenOpts,q=[];function z(e){const t=e.target;if(t===void 0||t.nodeType===8||t.classList.contains("no-pointer-events")===!0)return;let o=g.portalProxyList.length-1;for(;o>=0;){const n=g.portalProxyList[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 at(e){q.push(e),q.length===1&&(document.addEventListener("mousedown",z,I),document.addEventListener("touchstart",z,I))}function ue(e){const t=q.findIndex(o=>o===e);t!==-1&&(q.splice(t,1),q.length===0&&(document.removeEventListener("mousedown",z,I),document.removeEventListener("touchstart",z,I)))}let ae,se;function ce(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 st(e){return e?!(e.length!==2||typeof e[0]!="number"||typeof e[1]!="number"):!0}const G={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(e=>{G[`${e}#ltr`]=e,G[`${e}#rtl`]=e});function de(e,t){const o=e.split(" ");return{vertical:o[0],horizontal:G[`${o[1]}#${t===!0?"rtl":"ltr"}`]}}function ct(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 dt(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 ft(e,t){return{top:0,center:t/2,bottom:t,left:0,middle:e/2,right:e}}function fe(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:y}=e;if(L.client.is.ios===!0&&window.visualViewport!==void 0){const B=document.body.style,{offsetLeft:E,offsetTop:T}=window.visualViewport;E!==ae&&(B.setProperty("--q-pe-left",E+"px"),ae=E),T!==se&&(B.setProperty("--q-pe-top",T+"px"),se=T)}const{scrollLeft:w,scrollTop:u}=o,f=a===void 0?ct(l,d===!0?[0,0]:n):dt(l,a,n);Object.assign(o.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:y,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:y,maxHeight:c};(h===!0||d===!0)&&(p.minWidth=f.width+"px",d===!0&&(p.minHeight=f.height+"px")),Object.assign(o.style,p);const S=ft(M,v);let x=fe(f,S,m,i);if(a===void 0||n===void 0)Q(x,f,S,m,i);else{const{top:B,left:E}=x;Q(x,f,S,m,i);let T=!1;if(x.top!==B){T=!0;const P=2*n[1];f.center=f.top-=P,f.bottom-=P+2}if(x.left!==E){T=!0;const P=2*n[0];f.middle=f.left-=P,f.right-=P+2}T===!0&&(x=fe(f,S,m,i),Q(x,f,S,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!==u&&(o.scrollTop=u),o.scrollLeft!==w&&(o.scrollLeft=w)}function Q(e,t,o,n,l){const m=o.bottom,i=o.right,a=nt(),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 mt=g.createComponent({name:"QMenu",inheritAttrs:!1,props:{...Ke,...ve,...g.useDarkProps,...we,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noEscDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:ce},self:{type:String,validator:ce},offset:{type:Array,validator:st},scrollTarget:Ze,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...ge,"click","escapeKey"],setup(e,{slots:t,emit:o,attrs:n}){let l=null,m,i,a;const h=r.getCurrentInstance(),{proxy:d}=h,{$q:c}=d,y=r.ref(null),w=r.ref(!1),u=r.computed(()=>e.persistent!==!0&&e.noRouteDismiss!==!0),f=g.useDark(e,c),{registerTick:H,removeTick:C}=be(),{registerTimeout:M}=Ee(),{transitionProps:v,transitionStyle:p}=xe(e),{localScrollTarget:S,changeScrollEvent:x,unconfigureScrollTarget:B}=Ne(e,te),{anchorEl:E,canShow:T}=Ue({showing:w}),{hide:P}=pe({showing:w,canShow:T,handleShow:We,handleHide:qe,hideOnRouteChange:u,processOnMount:!0}),{showPortal:X,hidePortal:Y,renderPortal:Pe}=ye(h,y,Be,"menu"),O={anchorEl:E,innerRef:y,onClickOutside(s){if(e.persistent!==!0&&w.value===!0)return P(s),(s.type==="touchstart"||s.target.classList.contains("q-dialog__backdrop"))&&g.stopAndPrevent(s),!0}},Z=r.computed(()=>de(e.anchor||(e.cover===!0?"center middle":"bottom start"),c.lang.rtl)),He=r.computed(()=>e.cover===!0?Z.value:de(e.self||"top start",c.lang.rtl)),Me=r.computed(()=>(e.square===!0?" q-menu--square":"")+(f.value===!0?" q-menu--dark q-dark":"")),ke=r.computed(()=>e.autoClose===!0?{onClick:Le}:{}),J=r.computed(()=>w.value===!0&&e.persistent!==!0);r.watch(J,s=>{s===!0?(Ce(K),at(O)):(j(K),ue(O))});function V(){he(()=>{let s=y.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 We(s){if(l=e.noRefocus===!1?document.activeElement:null,L.addFocusout(oe),X(),te(),m=void 0,s!==void 0&&(e.touchPosition||e.contextMenu)){const U=g.position(s);if(U.left!==void 0){const{top:Fe,left:$e}=E.value.getBoundingClientRect();m={left:U.left-$e,top:U.top-Fe}}}i===void 0&&(i=r.watch(()=>c.screen.width+"|"+c.screen.height+"|"+e.self+"|"+e.anchor+"|"+c.lang.rtl,$)),e.noFocus!==!0&&document.activeElement.blur(),H(()=>{$(),e.noFocus!==!0&&V()}),M(()=>{c.platform.is.ios===!0&&(a=e.autoClose,y.value.click()),$(),X(!0),o("show",s)},e.transitionDuration)}function qe(s){C(),Y(),ee(!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(()=>{Y(!0),o("hide",s)},e.transitionDuration)}function ee(s){m=void 0,i!==void 0&&(i(),i=void 0),(s===!0||w.value===!0)&&(L.removeFocusout(oe),B(),ue(O),j(K)),s!==!0&&(l=null)}function te(){(E.value!==null||e.scrollTarget!==void 0)&&(S.value=et(E.value,e.scrollTarget),x(S.value,$))}function Le(s){a!==!0?(g.closePortalMenus(d,s),o("click",s)):a=!1}function oe(s){J.value===!0&&e.noFocus!==!0&&g.childHasFocus(y.value,s.target)!==!0&&V()}function K(s){e.noEscDismiss!==!0&&(o("escapeKey"),P(s))}function $(){Se({targetEl:y.value,offset:e.offset,anchorEl:E.value,anchorOrigin:Z.value,selfOrigin:He.value,absoluteOffset:m,fit:e.fit,cover:e.cover,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function Be(){return r.h(r.Transition,v.value,()=>w.value===!0?r.h("div",{role:"menu",...n,ref:y,tabindex:-1,class:["q-menu q-position-engine scroll"+Me.value,n.class],style:[n.style,p.value],...ke.value},g.hSlot(t.default)):null)}return r.onBeforeUnmount(ee),Object.assign(d,{focus:V,updatePosition:$}),Pe}});exports.QMenu=mt;exports.addEscapeKey=Ce;exports.addFocusFn=he;exports.getHorizontalScrollPosition=ot;exports.getVerticalScrollPosition=tt;exports.hasScrollbar=lt;exports.removeEscapeKey=j;exports.removeFocusFn=ze;exports.useId=Re;exports.useModelToggle=pe;exports.useModelToggleEmits=ge;exports.useModelToggleProps=ve;exports.usePortal=ye;exports.useTick=be;exports.useTimeout=Ee;exports.useTransition=xe;exports.useTransitionProps=we;
1
+ "use strict";const r=require("vue"),L=require("./focusout-DzWGke-4.cjs"),g=require("./index-ykcXpiRU.cjs");let N,D=0;const b=new Array(256);for(let e=0;e<256;e++)b[e]=(e+256).toString(16).substring(1);const Ae=(()=>{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}})(),ne=4096;function _(){(N===void 0||D+16>ne)&&(D=0,N=Ae(ne));const e=Array.prototype.slice.call(N,D,D+=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 De(e){return e??null}function le(e,t){return e??(t===!0?`f_${_()}`:null)}function Re({getValue:e,required:t=!0}={}){if(L.isRuntimeSsrPreHydration.value===!0){const o=e!==void 0?r.ref(De(e())):r.ref(null);return t===!0&&o.value===null&&r.onMounted(()=>{o.value=`f_${_()}`}),e!==void 0&&r.watch(e,n=>{o.value=le(n,t)}),o}return e!==void 0?r.computed(()=>le(e(),t)):r.ref(`f_${_()}`)}let k=[],A=[];function me(e){A=A.filter(t=>t!==e)}function Ie(e){me(e),A.push(e)}function ie(e){me(e),A.length===0&&k.length!==0&&(k[k.length-1](),k=[])}function he(e){A.length===0?e():k.push(e)}function ze(e){k=k.filter(t=>t!==e)}function Oe(){if(window.getSelection!==void 0){const e=window.getSelection();e.empty!==void 0?e.empty():e.removeAllRanges!==void 0&&(e.removeAllRanges(),L.Platform.is.mobile!==!0&&e.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}const Ve={target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},Ke={...Ve,contextMenu:Boolean};function Ue({showing:e,avoidEmit:t,configureAnchorEl:o}){const{props:n,proxy:l,emit:m}=r.getCurrentInstance(),i=r.ref(null);let a=null;function h(u){return i.value===null?!1:u===void 0||u.touches===void 0||u.touches.length<=1}const d={};o===void 0&&(Object.assign(d,{hide(u){l.hide(u)},toggle(u){l.toggle(u),u.qAnchorHandled=!0},toggleKey(u){g.isKeyCode(u,13)===!0&&d.toggle(u)},contextClick(u){l.hide(u),g.prevent(u),r.nextTick(()=>{l.show(u),u.qAnchorHandled=!0})},prevent:g.prevent,mobileTouch(u){if(d.mobileCleanup(u),h(u)!==!0)return;l.hide(u),i.value.classList.add("non-selectable");const f=u.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(u),u.qAnchorHandled=!0},300)},mobileCleanup(u){i.value.classList.remove("non-selectable"),a!==null&&(clearTimeout(a),a=null),e.value===!0&&u!==void 0&&Oe()}}),o=function(u=n.contextMenu){if(n.noParentEvent===!0||i.value===null)return;let f;u===!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 y(u){for(i.value=u;i.value.classList.contains("q-anchor--skip");)i.value=i.value.parentNode;o()}function w(){if(n.target===!1||n.target===""||l.$el.parentNode===null)i.value=null;else if(n.target===!0)y(l.$el.parentNode);else{let u=n.target;if(typeof n.target=="string")try{u=document.querySelector(n.target)}catch{u=void 0}u!=null?(i.value=u.$el||u,o()):(i.value=null,console.error(`Anchor: target "${n.target}" not found`))}}return r.watch(()=>n.contextMenu,u=>{i.value!==null&&(c(),o(u))}),r.watch(()=>n.target,()=>{i.value!==null&&c(),w()}),r.watch(()=>n.noParentEvent,u=>{i.value!==null&&(u===!0?c():o())}),r.onMounted(()=>{w(),t!==!0&&n.modelValue===!0&&i.value===null&&m("update:modelValue",!1)}),r.onBeforeUnmount(()=>{a!==null&&clearTimeout(a),c()}),{anchorEl:i,canShow:h,anchorEvents:d}}function Ne(e,t){const o=r.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=r.watch(()=>e.noParentEvent,()=>{o.value!==null&&(m(),t())});return r.onBeforeUnmount(i),{localScrollTarget:o,unconfigureScrollTarget:m,changeScrollEvent:l}}const ve={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},ge=["beforeShow","show","beforeHide","hide"];function pe({showing:e,canShow:t,hideOnRouteChange:o,handleShow:n,handleHide:l,processOnMount:m}){const i=r.getCurrentInstance(),{props:a,emit:h,proxy:d}=i;let c;function y(v){e.value===!0?f(v):w(v)}function w(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,r.nextTick(()=>{c===v&&(c=void 0)})),(a.modelValue===null||p===!1)&&u(v)}function u(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,r.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?u:H)(c)}r.watch(()=>a.modelValue,C),o!==void 0&&g.vmHasRouter(i)===!0&&r.watch(()=>d.$route.fullPath,()=>{o.value===!0&&e.value===!0&&f()}),r.onMounted(()=>{C(a.modelValue)});const M={show:w,hide:f,toggle:y};return Object.assign(d,M),M}const re={};let Qe=1,_e=document.body;function je(e,t){const o=document.createElement("div");if(o.id=t!==void 0?`q-portal--${t}--${Qe++}`:e,re.globalNodes!==void 0){const n=re.globalNodes.class;n!==void 0&&(o.className=n)}return _e.appendChild(o),o}function Ge(e){e.remove()}const Xe=g.createComponent({name:"QPortal",setup(e,{slots:t}){return()=>t.default()}});function Ye(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=r.ref(!1),m=r.ref(!1);let i=null;const a={},h=n==="dialog"&&Ye(e);function d(y){if(y===!0){ie(a),m.value=!0;return}m.value=!1,l.value===!1&&(h===!1&&i===null&&(i=je(!1,n)),l.value=!0,g.portalProxyList.push(e.proxy),Ie(a))}function c(y){if(m.value=!1,y!==!0)return;ie(a),l.value=!1;const w=g.portalProxyList.indexOf(e.proxy);w!==-1&&g.portalProxyList.splice(w,1),i!==null&&(Ge(i),i=null)}return r.onUnmounted(()=>{c(!0)}),e.proxy.__qPortal=!0,L.injectProp(e.proxy,"contentEl",()=>t.value),{showPortal:d,hidePortal:c,portalIsActive:l,portalIsAccessible:m,renderPortal:()=>h===!0?o():l.value===!0?[r.h(r.Teleport,{to:i},r.h(Xe,o))]:void 0}}const we={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function xe(e,t=()=>{},o=()=>{}){return{transitionProps:r.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:r.computed(()=>`--q-transition-duration: ${e.transitionDuration}ms`)}}function be(){let e;const t=r.getCurrentInstance();function o(){e=void 0}return r.onDeactivated(o),r.onBeforeUnmount(o),{removeTick:o,registerTick(n){e=n,r.nextTick(()=>{e===n&&(g.vmIsDestroyed(t)===!1&&e(),e=void 0)})}}}function Ee(){let e=null;const t=r.getCurrentInstance();function o(){e!==null&&(clearTimeout(e),e=null)}return r.onDeactivated(o),r.onBeforeUnmount(o),{removeTimeout:o,registerTimeout(n,l){o(),g.vmIsDestroyed(t)===!1&&(e=setTimeout(()=>{e=null,n()},l))}}}const Ze=[Element,String],Je=[null,document,document.body,document.scrollingElement,document.documentElement];function et(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 Je.includes(o)?window:o}function tt(e){return e===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:e.scrollTop}function ot(e){return e===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:e.scrollLeft}let R;function nt(){if(R!==void 0)return R;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(),R=o-n,R}function lt(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 F;function it(e){F=e.keyCode===27}function rt(){F===!0&&(F=!1)}function ut(e){F===!0&&(F=!1,g.isKeyCode(e,27)===!0&&W[W.length-1](e))}function Te(e){window[e]("keydown",it),window[e]("blur",rt),window[e]("keyup",ut),F=!1}function Ce(e){L.client.is.desktop===!0&&(W.push(e),W.length===1&&Te("addEventListener"))}function j(e){const t=W.indexOf(e);t!==-1&&(W.splice(t,1),W.length===0&&Te("removeEventListener"))}const{notPassiveCapture:I}=g.listenOpts,q=[];function z(e){const t=e.target;if(t===void 0||t.nodeType===8||t.classList.contains("no-pointer-events")===!0)return;let o=g.portalProxyList.length-1;for(;o>=0;){const n=g.portalProxyList[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 at(e){q.push(e),q.length===1&&(document.addEventListener("mousedown",z,I),document.addEventListener("touchstart",z,I))}function ue(e){const t=q.findIndex(o=>o===e);t!==-1&&(q.splice(t,1),q.length===0&&(document.removeEventListener("mousedown",z,I),document.removeEventListener("touchstart",z,I)))}let ae,se;function ce(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 st(e){return e?!(e.length!==2||typeof e[0]!="number"||typeof e[1]!="number"):!0}const G={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(e=>{G[`${e}#ltr`]=e,G[`${e}#rtl`]=e});function de(e,t){const o=e.split(" ");return{vertical:o[0],horizontal:G[`${o[1]}#${t===!0?"rtl":"ltr"}`]}}function ct(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 dt(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 ft(e,t){return{top:0,center:t/2,bottom:t,left:0,middle:e/2,right:e}}function fe(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:y}=e;if(L.client.is.ios===!0&&window.visualViewport!==void 0){const B=document.body.style,{offsetLeft:E,offsetTop:T}=window.visualViewport;E!==ae&&(B.setProperty("--q-pe-left",E+"px"),ae=E),T!==se&&(B.setProperty("--q-pe-top",T+"px"),se=T)}const{scrollLeft:w,scrollTop:u}=o,f=a===void 0?ct(l,d===!0?[0,0]:n):dt(l,a,n);Object.assign(o.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:y,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:y,maxHeight:c};(h===!0||d===!0)&&(p.minWidth=f.width+"px",d===!0&&(p.minHeight=f.height+"px")),Object.assign(o.style,p);const S=ft(M,v);let x=fe(f,S,m,i);if(a===void 0||n===void 0)Q(x,f,S,m,i);else{const{top:B,left:E}=x;Q(x,f,S,m,i);let T=!1;if(x.top!==B){T=!0;const P=2*n[1];f.center=f.top-=P,f.bottom-=P+2}if(x.left!==E){T=!0;const P=2*n[0];f.middle=f.left-=P,f.right-=P+2}T===!0&&(x=fe(f,S,m,i),Q(x,f,S,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!==u&&(o.scrollTop=u),o.scrollLeft!==w&&(o.scrollLeft=w)}function Q(e,t,o,n,l){const m=o.bottom,i=o.right,a=nt(),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 mt=g.createComponent({name:"QMenu",inheritAttrs:!1,props:{...Ke,...ve,...g.useDarkProps,...we,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noEscDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:ce},self:{type:String,validator:ce},offset:{type:Array,validator:st},scrollTarget:Ze,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...ge,"click","escapeKey"],setup(e,{slots:t,emit:o,attrs:n}){let l=null,m,i,a;const h=r.getCurrentInstance(),{proxy:d}=h,{$q:c}=d,y=r.ref(null),w=r.ref(!1),u=r.computed(()=>e.persistent!==!0&&e.noRouteDismiss!==!0),f=g.useDark(e,c),{registerTick:H,removeTick:C}=be(),{registerTimeout:M}=Ee(),{transitionProps:v,transitionStyle:p}=xe(e),{localScrollTarget:S,changeScrollEvent:x,unconfigureScrollTarget:B}=Ne(e,te),{anchorEl:E,canShow:T}=Ue({showing:w}),{hide:P}=pe({showing:w,canShow:T,handleShow:We,handleHide:qe,hideOnRouteChange:u,processOnMount:!0}),{showPortal:X,hidePortal:Y,renderPortal:Pe}=ye(h,y,Be,"menu"),O={anchorEl:E,innerRef:y,onClickOutside(s){if(e.persistent!==!0&&w.value===!0)return P(s),(s.type==="touchstart"||s.target.classList.contains("q-dialog__backdrop"))&&g.stopAndPrevent(s),!0}},Z=r.computed(()=>de(e.anchor||(e.cover===!0?"center middle":"bottom start"),c.lang.rtl)),He=r.computed(()=>e.cover===!0?Z.value:de(e.self||"top start",c.lang.rtl)),Me=r.computed(()=>(e.square===!0?" q-menu--square":"")+(f.value===!0?" q-menu--dark q-dark":"")),ke=r.computed(()=>e.autoClose===!0?{onClick:Le}:{}),J=r.computed(()=>w.value===!0&&e.persistent!==!0);r.watch(J,s=>{s===!0?(Ce(K),at(O)):(j(K),ue(O))});function V(){he(()=>{let s=y.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 We(s){if(l=e.noRefocus===!1?document.activeElement:null,L.addFocusout(oe),X(),te(),m=void 0,s!==void 0&&(e.touchPosition||e.contextMenu)){const U=g.position(s);if(U.left!==void 0){const{top:Fe,left:$e}=E.value.getBoundingClientRect();m={left:U.left-$e,top:U.top-Fe}}}i===void 0&&(i=r.watch(()=>c.screen.width+"|"+c.screen.height+"|"+e.self+"|"+e.anchor+"|"+c.lang.rtl,$)),e.noFocus!==!0&&document.activeElement.blur(),H(()=>{$(),e.noFocus!==!0&&V()}),M(()=>{c.platform.is.ios===!0&&(a=e.autoClose,y.value.click()),$(),X(!0),o("show",s)},e.transitionDuration)}function qe(s){C(),Y(),ee(!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(()=>{Y(!0),o("hide",s)},e.transitionDuration)}function ee(s){m=void 0,i!==void 0&&(i(),i=void 0),(s===!0||w.value===!0)&&(L.removeFocusout(oe),B(),ue(O),j(K)),s!==!0&&(l=null)}function te(){(E.value!==null||e.scrollTarget!==void 0)&&(S.value=et(E.value,e.scrollTarget),x(S.value,$))}function Le(s){a!==!0?(g.closePortalMenus(d,s),o("click",s)):a=!1}function oe(s){J.value===!0&&e.noFocus!==!0&&g.childHasFocus(y.value,s.target)!==!0&&V()}function K(s){e.noEscDismiss!==!0&&(o("escapeKey"),P(s))}function $(){Se({targetEl:y.value,offset:e.offset,anchorEl:E.value,anchorOrigin:Z.value,selfOrigin:He.value,absoluteOffset:m,fit:e.fit,cover:e.cover,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function Be(){return r.h(r.Transition,v.value,()=>w.value===!0?r.h("div",{role:"menu",...n,ref:y,tabindex:-1,class:["q-menu q-position-engine scroll"+Me.value,n.class],style:[n.style,p.value],...ke.value},g.hSlot(t.default)):null)}return r.onBeforeUnmount(ee),Object.assign(d,{focus:V,updatePosition:$}),Pe}});exports.QMenu=mt;exports.addEscapeKey=Ce;exports.addFocusFn=he;exports.getHorizontalScrollPosition=ot;exports.getVerticalScrollPosition=tt;exports.hasScrollbar=lt;exports.removeEscapeKey=j;exports.removeFocusFn=ze;exports.useId=Re;exports.useModelToggle=pe;exports.useModelToggleEmits=ge;exports.useModelToggleProps=ve;exports.usePortal=ye;exports.useTick=be;exports.useTimeout=Ee;exports.useTransition=xe;exports.useTransitionProps=we;
@@ -1609,11 +1609,11 @@ const dn = te({
1609
1609
  ], 2));
1610
1610
  }
1611
1611
  }), zn = /* @__PURE__ */ G(kn, [["__scopeId", "data-v-ff56abdf"]]), On = ge(
1612
- () => import("./AppButtonCopy-DD7r5RW-.js")
1612
+ () => import("./AppButtonCopy-DMOe7-vG.js")
1613
1613
  ), jn = ge(
1614
- () => import("./AppSelect-C77b9lc7.js")
1614
+ () => import("./AppSelect-TyQqVl8p.js")
1615
1615
  ), Dn = ge(
1616
- () => import("./DropdownButton-CLFfWb2S.js")
1616
+ () => import("./DropdownButton-BJhOYK6t.js")
1617
1617
  );
1618
1618
  export {
1619
1619
  Mn as A,