import { VOverlay, makeVOverlayProps } from "./chunk-TS6Y6OVT.js"; import { useScopeId } from "./chunk-BVUPSGRF.js"; import { forwardRefs } from "./chunk-GUNW7S2L.js"; import { useProxiedModel } from "./chunk-KA77II4V.js"; import { genericComponent, keys, omit, propsFactory, useRender } from "./chunk-LZ5T2ERG.js"; import { computed, createVNode, mergeProps, ref, toRef, useId } from "./chunk-2MKFL3BX.js"; // node_modules/vuetify/lib/directives/resize/index.js function mounted(el, binding) { const handler = binding.value; const options = { passive: !binding.modifiers?.active }; window.addEventListener("resize", handler, options); el._onResize = Object(el._onResize); el._onResize[binding.instance.$.uid] = { handler, options }; if (!binding.modifiers?.quiet) { handler(); } } function unmounted(el, binding) { if (!el._onResize?.[binding.instance.$.uid]) return; const { handler, options } = el._onResize[binding.instance.$.uid]; window.removeEventListener("resize", handler, options); delete el._onResize[binding.instance.$.uid]; } var Resize = { mounted, unmounted }; var resize_default = Resize; // node_modules/vuetify/lib/directives/touch/index.js var handleGesture = (wrapper) => { const { touchstartX, touchendX, touchstartY, touchendY } = wrapper; const dirRatio = 0.5; const minDistance = 16; wrapper.offsetX = touchendX - touchstartX; wrapper.offsetY = touchendY - touchstartY; if (Math.abs(wrapper.offsetY) < dirRatio * Math.abs(wrapper.offsetX)) { wrapper.left && touchendX < touchstartX - minDistance && wrapper.left(wrapper); wrapper.right && touchendX > touchstartX + minDistance && wrapper.right(wrapper); } if (Math.abs(wrapper.offsetX) < dirRatio * Math.abs(wrapper.offsetY)) { wrapper.up && touchendY < touchstartY - minDistance && wrapper.up(wrapper); wrapper.down && touchendY > touchstartY + minDistance && wrapper.down(wrapper); } }; function touchstart(event, wrapper) { const touch = event.changedTouches[0]; wrapper.touchstartX = touch.clientX; wrapper.touchstartY = touch.clientY; wrapper.start?.({ originalEvent: event, ...wrapper }); } function touchend(event, wrapper) { const touch = event.changedTouches[0]; wrapper.touchendX = touch.clientX; wrapper.touchendY = touch.clientY; wrapper.end?.({ originalEvent: event, ...wrapper }); handleGesture(wrapper); } function touchmove(event, wrapper) { const touch = event.changedTouches[0]; wrapper.touchmoveX = touch.clientX; wrapper.touchmoveY = touch.clientY; wrapper.move?.({ originalEvent: event, ...wrapper }); } function createHandlers() { let value = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; const wrapper = { touchstartX: 0, touchstartY: 0, touchendX: 0, touchendY: 0, touchmoveX: 0, touchmoveY: 0, offsetX: 0, offsetY: 0, left: value.left, right: value.right, up: value.up, down: value.down, start: value.start, move: value.move, end: value.end }; return { touchstart: (e) => touchstart(e, wrapper), touchend: (e) => touchend(e, wrapper), touchmove: (e) => touchmove(e, wrapper) }; } function mounted2(el, binding) { const value = binding.value; const target = value?.parent ? el.parentElement : el; const options = value?.options ?? { passive: true }; const uid = binding.instance?.$.uid; if (!target || uid === void 0) return; const handlers = createHandlers(binding.value); target._touchHandlers = target._touchHandlers ?? /* @__PURE__ */ Object.create(null); target._touchHandlers[uid] = handlers; keys(handlers).forEach((eventName) => { target.addEventListener(eventName, handlers[eventName], options); }); } function unmounted2(el, binding) { const target = binding.value?.parent ? el.parentElement : el; const uid = binding.instance?.$.uid; if (!target?._touchHandlers || uid === void 0) return; const handlers = target._touchHandlers[uid]; keys(handlers).forEach((eventName) => { target.removeEventListener(eventName, handlers[eventName]); }); delete target._touchHandlers[uid]; } var Touch = { mounted: mounted2, unmounted: unmounted2 }; var touch_default = Touch; // node_modules/vuetify/lib/components/VTooltip/VTooltip.js import "/home/david/Documents/vscode/personal_development/ServerManagerWebApp/frontend/node_modules/vuetify/lib/components/VTooltip/VTooltip.css"; var makeVTooltipProps = propsFactory({ id: String, interactive: Boolean, text: String, ...omit(makeVOverlayProps({ closeOnBack: false, location: "end", locationStrategy: "connected", eager: true, minWidth: 0, offset: 10, openOnClick: false, openOnHover: true, origin: "auto", scrim: false, scrollStrategy: "reposition", transition: null }), ["absolute", "retainFocus", "captureFocus", "disableInitialFocus"]) }, "VTooltip"); var VTooltip = genericComponent()({ name: "VTooltip", props: makeVTooltipProps(), emits: { "update:modelValue": (value) => true }, setup(props, _ref) { let { slots } = _ref; const isActive = useProxiedModel(props, "modelValue"); const { scopeId } = useScopeId(); const uid = useId(); const id = toRef(() => props.id || `v-tooltip-${uid}`); const overlay = ref(); const location = computed(() => { return props.location.split(" ").length > 1 ? props.location : props.location + " center"; }); const origin = computed(() => { return props.origin === "auto" || props.origin === "overlap" || props.origin.split(" ").length > 1 || props.location.split(" ").length > 1 ? props.origin : props.origin + " center"; }); const transition = toRef(() => { if (props.transition != null) return props.transition; return isActive.value ? "scale-transition" : "fade-transition"; }); const activatorProps = computed(() => mergeProps({ "aria-describedby": id.value }, props.activatorProps)); useRender(() => { const overlayProps = VOverlay.filterProps(props); return createVNode(VOverlay, mergeProps({ "ref": overlay, "class": ["v-tooltip", { "v-tooltip--interactive": props.interactive }, props.class], "style": props.style, "id": id.value }, overlayProps, { "modelValue": isActive.value, "onUpdate:modelValue": ($event) => isActive.value = $event, "transition": transition.value, "absolute": true, "location": location.value, "origin": origin.value, "role": "tooltip", "activatorProps": activatorProps.value, "_disableGlobalStack": true }, scopeId), { activator: slots.activator, default: function() { for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } return slots.default?.(...args) ?? props.text; } }); }); return forwardRefs({}, overlay); } }); export { Resize, resize_default, Touch, touch_default, VTooltip }; //# sourceMappingURL=chunk-6VKWM6MN.js.map