Files
2026-01-09 19:24:41 +00:00

212 lines
5.9 KiB
JavaScript

import {
DateAdapterSymbol,
DateOptionsSymbol,
createDate,
useDate,
useHotkey,
useMask
} from "./chunk-WGYWYQOA.js";
import {
GoToSymbol,
createGoTo,
useGoTo
} from "./chunk-NJV3GUE4.js";
import {
aliases,
mdi
} from "./chunk-KPWCGWEX.js";
import {
DisplaySymbol,
createDisplay,
useDisplay
} from "./chunk-N4LJHDYD.js";
import {
useLayout
} from "./chunk-KQXZAEJP.js";
import {
IconSymbol,
VClassIcon,
VSvgIcon
} from "./chunk-OJDZBU5D.js";
import "./chunk-XDSAO7OT.js";
import {
LocaleSymbol,
createLocale,
useLocale,
useRtl
} from "./chunk-ENTLCOCZ.js";
import "./chunk-KA77II4V.js";
import {
ThemeSymbol,
createTheme,
useTheme
} from "./chunk-3DSR7NCB.js";
import {
DefaultsSymbol,
IN_BROWSER,
createDefaults,
defineComponent,
mergeDeep,
useDefaults
} from "./chunk-LZ5T2ERG.js";
import {
effectScope,
nextTick,
reactive
} from "./chunk-2MKFL3BX.js";
// node_modules/vuetify/lib/icons.js
function genDefaults() {
return {
svg: {
component: VSvgIcon
},
class: {
component: VClassIcon
}
};
}
function createIcons(options) {
const sets = genDefaults();
const defaultSet = options?.defaultSet ?? "mdi";
if (defaultSet === "mdi" && !sets.mdi) {
sets.mdi = mdi;
}
return mergeDeep({
defaultSet,
sets,
aliases: {
...aliases,
/* eslint-disable max-len */
vuetify: ["M8.2241 14.2009L12 21L22 3H14.4459L8.2241 14.2009Z", ["M7.26303 12.4733L7.00113 12L2 3H12.5261C12.5261 3 12.5261 3 12.5261 3L7.26303 12.4733Z", 0.6]],
"vuetify-outline": "svg:M7.26 12.47 12.53 3H2L7.26 12.47ZM14.45 3 8.22 14.2 12 21 22 3H14.45ZM18.6 5 12 16.88 10.51 14.2 15.62 5ZM7.26 8.35 5.4 5H9.13L7.26 8.35Z",
"vuetify-play": ["m6.376 13.184-4.11-7.192C1.505 4.66 2.467 3 4.003 3h8.532l-.953 1.576-.006.01-.396.677c-.429.732-.214 1.507.194 2.015.404.503 1.092.878 1.869.806a3.72 3.72 0 0 1 1.005.022c.276.053.434.143.523.237.138.146.38.635-.25 2.09-.893 1.63-1.553 1.722-1.847 1.677-.213-.033-.468-.158-.756-.406a4.95 4.95 0 0 1-.8-.927c-.39-.564-1.04-.84-1.66-.846-.625-.006-1.316.27-1.693.921l-.478.826-.911 1.506Z", ["M9.093 11.552c.046-.079.144-.15.32-.148a.53.53 0 0 1 .43.207c.285.414.636.847 1.046 1.2.405.35.914.662 1.516.754 1.334.205 2.502-.698 3.48-2.495l.014-.028.013-.03c.687-1.574.774-2.852-.005-3.675-.37-.391-.861-.586-1.333-.676a5.243 5.243 0 0 0-1.447-.044c-.173.016-.393-.073-.54-.257-.145-.18-.127-.316-.082-.392l.393-.672L14.287 3h5.71c1.536 0 2.499 1.659 1.737 2.992l-7.997 13.996c-.768 1.344-2.706 1.344-3.473 0l-3.037-5.314 1.377-2.278.004-.006.004-.007.481-.831Z", 0.6]]
/* eslint-enable max-len */
}
}, options);
}
// node_modules/vuetify/lib/framework.js
function createVuetify() {
let vuetify = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
const {
blueprint,
...rest
} = vuetify;
const options = mergeDeep(blueprint, rest);
const {
aliases: aliases2 = {},
components = {},
directives = {}
} = options;
const scope = effectScope();
return scope.run(() => {
const defaults = createDefaults(options.defaults);
const display = createDisplay(options.display, options.ssr);
const theme = createTheme(options.theme);
const icons = createIcons(options.icons);
const locale = createLocale(options.locale);
const date = createDate(options.date, locale);
const goTo = createGoTo(options.goTo, locale);
function install(app) {
for (const key in directives) {
app.directive(key, directives[key]);
}
for (const key in components) {
app.component(key, components[key]);
}
for (const key in aliases2) {
app.component(key, defineComponent({
...aliases2[key],
name: key,
aliasName: aliases2[key].name
}));
}
const appScope = effectScope();
appScope.run(() => {
theme.install(app);
});
app.onUnmount(() => appScope.stop());
app.provide(DefaultsSymbol, defaults);
app.provide(DisplaySymbol, display);
app.provide(ThemeSymbol, theme);
app.provide(IconSymbol, icons);
app.provide(LocaleSymbol, locale);
app.provide(DateOptionsSymbol, date.options);
app.provide(DateAdapterSymbol, date.instance);
app.provide(GoToSymbol, goTo);
if (IN_BROWSER && options.ssr) {
if (app.$nuxt) {
app.$nuxt.hook("app:suspense:resolve", () => {
display.update();
});
} else {
const {
mount
} = app;
app.mount = function() {
const vm = mount(...arguments);
nextTick(() => display.update());
app.mount = mount;
return vm;
};
}
}
if (typeof __VUE_OPTIONS_API__ !== "boolean" || __VUE_OPTIONS_API__) {
app.mixin({
computed: {
$vuetify() {
return reactive({
defaults: inject.call(this, DefaultsSymbol),
display: inject.call(this, DisplaySymbol),
theme: inject.call(this, ThemeSymbol),
icons: inject.call(this, IconSymbol),
locale: inject.call(this, LocaleSymbol),
date: inject.call(this, DateAdapterSymbol)
});
}
}
});
}
}
function unmount() {
scope.stop();
}
return {
install,
unmount,
defaults,
display,
theme,
icons,
locale,
date,
goTo
};
});
}
var version = "3.11.6";
createVuetify.version = version;
function inject(key) {
const vm = this.$;
const provides = vm.parent?.provides ?? vm.vnode.appContext?.provides;
if (provides && key in provides) {
return provides[key];
}
}
export {
createVuetify,
useDate,
useDefaults,
useDisplay,
useGoTo,
useHotkey,
useLayout,
useLocale,
useMask,
useRtl,
useTheme,
version
};
//# sourceMappingURL=vuetify.js.map