fix build

This commit is contained in:
2026-02-23 12:50:59 +03:30
parent a616adfe68
commit a85df4984a
4976 changed files with 407273 additions and 17834 deletions
+56 -57
View File
@@ -1,19 +1,18 @@
import process from 'node:process';globalThis._importMeta_=globalThis._importMeta_||{url:"file:///_entry.js",env:process.env};import { inject, ref, h, getCurrentInstance, nextTick, reactive, defineComponent, createVNode, computed, unref, shallowRef, watch, watchEffect as watchEffect$1, provide, cloneVNode, createElementBlock, Fragment, toValue as toValue$1, isVNode, Comment, Text, getCurrentScope, onScopeDispose, hasInjectionContext as hasInjectionContext$1, Transition, toRef as toRef$1, readonly, customRef, isRef as isRef$1, TransitionGroup, render, Teleport, withDirectives, vShow, defineAsyncComponent, shallowReactive, Suspense, useSSRContext, createApp, triggerRef, mergeProps, withCtx, onErrorCaptured, onServerPrefetch, resolveDynamicComponent, effectScope, isReadonly, toRaw, isShallow, isReactive } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
import process from 'node:process';globalThis._importMeta_=globalThis._importMeta_||{url:"file:///_entry.js",env:process.env};import { inject, ref, h, getCurrentInstance, nextTick, reactive, defineComponent, createVNode, isRef, toValue, hasInjectionContext, watchEffect, onBeforeUnmount, onDeactivated, onActivated, computed, unref, shallowRef, watch, provide, cloneVNode, createElementBlock, Fragment, isVNode, Comment, Text, getCurrentScope, onScopeDispose, Transition, toRef as toRef$1, readonly, customRef, TransitionGroup, render, Teleport, withDirectives, vShow, defineAsyncComponent, shallowReactive, Suspense, useSSRContext, createApp, triggerRef, mergeProps, withCtx, onErrorCaptured, onServerPrefetch, resolveDynamicComponent, effectScope, isReadonly, toRaw, isShallow, isReactive } from 'vue';
import { t as createError$1, z as parseURL$1, A as encodePath$1, B as decodePath, h as hasProtocol, C as isScriptProtocol, j as joinURL, D as withQuery, E as sanitizeStatusCode, F as getContext, G as klona, g as getRequestHeader, v as destr, H as isEqual, I as setCookie, J as getCookie, K as deleteCookie, $ as $fetch, L as baseURL, M as createHooks, f as defu, N as executeAsync, O as getRequestHeaders } from '../nitro/nitro.mjs';
import { defineStore, setActivePinia, createPinia, shouldHydrate } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/pinia/dist/pinia.prod.cjs';
import { createClient } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@supabase/supabase-js/dist/index.mjs';
import mainAxios from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/axios/index.js';
import { isEmpty, get, cloneDeep } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/lodash-es/lodash.js';
import _extends from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@babel/runtime/helpers/esm/extends.js';
import _objectSpread$d from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@babel/runtime/helpers/esm/objectSpread2.js';
import { generate as generate$1, blue as blue$1 } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@ant-design/colors/dist/index.js';
import { TinyColor } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@ctrl/tinycolor/dist/public_api.js';
import { serialize, compile, stringify } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/stylis/index.js';
import { createTypes } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue-types/dist/vue-types.js';
import { ExclamationCircleOutlined as ExclamationCircleOutlined$2 } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@ant-design/icons-vue/lib/index.js';
import { ssrRenderAttrs, ssrRenderTeleport, ssrInterpolate, ssrRenderAttr, ssrRenderStyle, ssrRenderComponent, ssrRenderSuspense, ssrRenderVNode } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/server-renderer/index.mjs';
import { walkResolver } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/unhead/dist/utils.mjs';
import { isRef, toValue, hasInjectionContext, inject as inject$1, ref as ref$1, watchEffect, getCurrentInstance as getCurrentInstance$1, onBeforeUnmount, onDeactivated, onActivated } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/nuxt/node_modules/vue/index.mjs';
import { defineStore, setActivePinia, createPinia, shouldHydrate } from 'pinia';
import { createClient } from '@supabase/supabase-js';
import mainAxios from 'axios';
import { isEmpty, get, cloneDeep } from 'lodash-es';
import _extends from '@babel/runtime/helpers/esm/extends';
import _objectSpread$d from '@babel/runtime/helpers/esm/objectSpread2';
import { generate as generate$1, blue as blue$1 } from '@ant-design/colors';
import { TinyColor } from '@ctrl/tinycolor';
import { serialize, compile, stringify } from 'stylis';
import { createTypes } from 'vue-types';
import { ExclamationCircleOutlined as ExclamationCircleOutlined$2 } from '@ant-design/icons-vue';
import { ssrRenderAttrs, ssrRenderTeleport, ssrInterpolate, ssrRenderAttr, ssrRenderStyle, ssrRenderComponent, ssrRenderSuspense, ssrRenderVNode } from 'vue/server-renderer';
import { walkResolver } from 'unhead/utils';
/* eslint-disable */
// Inspired by https://github.com/garycourt/murmurhash-js
@@ -1585,7 +1584,7 @@ const headSymbol = "usehead";
// @__NO_SIDE_EFFECTS__
function injectHead$1() {
if (hasInjectionContext()) {
const instance = inject$1(headSymbol);
const instance = inject(headSymbol);
if (instance) {
return instance;
}
@@ -1597,7 +1596,7 @@ function useHead$1(input, options = {}) {
return head.ssr ? head.push(input || {}, options) : clientUseHead(head, input, options);
}
function clientUseHead(head, input, options = {}) {
const deactivated = ref$1(false);
const deactivated = ref(false);
let entry;
watchEffect(() => {
const i = deactivated.value ? {} : walkResolver(input, VueResolver);
@@ -1607,7 +1606,7 @@ function clientUseHead(head, input, options = {}) {
entry = head.push(i, options);
}
});
const vm = getCurrentInstance$1();
const vm = getCurrentInstance();
if (vm) {
onBeforeUnmount(() => {
entry.dispose();
@@ -1823,7 +1822,7 @@ function callWithNuxt(nuxt, setup, args) {
}
function tryUseNuxtApp(id) {
let nuxtAppInstance;
if (hasInjectionContext$1()) {
if (hasInjectionContext()) {
nuxtAppInstance = getCurrentInstance()?.appContext.app.$nuxt;
}
nuxtAppInstance ||= getNuxtAppCtx(id).tryUse();
@@ -1852,7 +1851,7 @@ const useRouter$1 = () => {
return useNuxtApp()?.$router;
};
const useRoute$1 = () => {
if (hasInjectionContext$1()) {
if (hasInjectionContext()) {
return inject(PageRouteSymbol, useNuxtApp()._route);
}
return useNuxtApp()._route;
@@ -1989,7 +1988,7 @@ const createError = (error) => {
function injectHead(nuxtApp) {
const nuxt = nuxtApp || useNuxtApp();
return nuxt.ssrContext?.head || nuxt.runWithContext(() => {
if (hasInjectionContext$1()) {
if (hasInjectionContext()) {
const head = inject(headSymbol);
if (!head) {
throw new Error("[nuxt] [unhead] Missing Unhead instance.");
@@ -3830,7 +3829,7 @@ const _routes = [
{
name: "user_detail-id",
path: "/user_detail/:id()",
component: () => import('./_id_-C06DBkBb.mjs')
component: () => import('./_id_-CxQ7_ZdL.mjs')
},
{
name: "add-product",
@@ -3865,7 +3864,7 @@ const _routes = [
{
name: "product_detail-id",
path: "/product_detail/:id()",
component: () => import('./_id_-C8n8IxqJ.mjs')
component: () => import('./_id_-DBHlWCuT.mjs')
},
{
name: "add-story-inputStory",
@@ -4101,7 +4100,7 @@ const injectLocal = /* @__NO_SIDE_EFFECTS__ */ (...args) => {
var _a;
const key2 = args[0];
const instance = (_a = getCurrentInstance()) == null ? void 0 : _a.proxy;
if (instance == null && !hasInjectionContext$1())
if (instance == null && !hasInjectionContext())
throw new Error("injectLocal must be called in setup");
if (instance && localProvidedStateMap.has(instance) && key2 in localProvidedStateMap.get(instance))
return localProvidedStateMap.get(instance)[key2];
@@ -4141,8 +4140,8 @@ function debounceFilter(ms, options = {}) {
};
let lastInvoker;
const filter = (invoke2) => {
const duration = toValue$1(ms);
const maxDuration = toValue$1(options.maxWait);
const duration = toValue(ms);
const maxDuration = toValue(options.maxWait);
if (timer)
_clearTimeout(timer);
if (duration <= 0 || maxDuration !== void 0 && maxDuration <= 0) {
@@ -4247,7 +4246,7 @@ function watchImmediate(source, cb, options) {
const defaultWindow = void 0;
function unrefElement(elRef) {
var _a;
const plain = toValue$1(elRef);
const plain = toValue(elRef);
return (_a = plain == null ? void 0 : plain.$el) != null ? _a : plain;
}
function useEventListener(...args) {
@@ -4261,7 +4260,7 @@ function useEventListener(...args) {
return () => el.removeEventListener(event, listener, options);
};
const firstParamTargets = computed(() => {
const test = toArray(toValue$1(args[0])).filter((e) => e != null);
const test = toArray(toValue(args[0])).filter((e) => e != null);
return test.every((e) => typeof e !== "string") ? test : void 0;
});
const stopWatch = watchImmediate(
@@ -4269,10 +4268,10 @@ function useEventListener(...args) {
var _a, _b;
return [
(_b = (_a = firstParamTargets.value) == null ? void 0 : _a.map((e) => unrefElement(e))) != null ? _b : [defaultWindow].filter((e) => e != null),
toArray(toValue$1(firstParamTargets.value ? args[1] : args[0])),
toArray(toValue(firstParamTargets.value ? args[1] : args[0])),
toArray(unref(firstParamTargets.value ? args[2] : args[1])),
// @ts-expect-error - TypeScript gets the correct types, but somehow still complains
toValue$1(firstParamTargets.value ? args[3] : args[2])
toValue(firstParamTargets.value ? args[3] : args[2])
];
},
([raw_targets, raw_events, raw_listeners, raw_options]) => {
@@ -4304,7 +4303,7 @@ function onClickOutside(target, handler, options = {}) {
}
let shouldListen = true;
const shouldIgnore = (event) => {
return toValue$1(ignore).some((target2) => {
return toValue(ignore).some((target2) => {
if (typeof target2 === "string") {
return Array.from(window2.document.querySelectorAll(target2)).some((el) => el === event.target || event.composedPath().includes(el));
} else {
@@ -4314,11 +4313,11 @@ function onClickOutside(target, handler, options = {}) {
});
};
function hasMultipleRoots(target2) {
const vm = toValue$1(target2);
const vm = toValue(target2);
return vm && vm.$.subTree.shapeFlag === 16;
}
function checkMultipleRoots(target2, event) {
const vm = toValue$1(target2);
const vm = toValue(target2);
const children = vm.$.subTree && vm.$.subTree.children;
if (children == null || !Array.isArray(children))
return false;
@@ -4490,7 +4489,7 @@ function onLongPress(target, handler, options) {
const ssrWidthSymbol = /* @__PURE__ */ Symbol("vueuse-ssr-width");
// @__NO_SIDE_EFFECTS__
function useSSRWidth() {
const ssrWidth = hasInjectionContext$1() ? /* @__PURE__ */ injectLocal(ssrWidthSymbol, null) : null;
const ssrWidth = hasInjectionContext() ? /* @__PURE__ */ injectLocal(ssrWidthSymbol, null) : null;
return typeof ssrWidth === "number" ? ssrWidth : void 0;
}
function useMediaQuery(query, options = {}) {
@@ -4502,10 +4501,10 @@ function useMediaQuery(query, options = {}) {
const handler = (event) => {
matches.value = event.matches;
};
watchEffect$1(() => {
watchEffect(() => {
if (ssrSupport.value) {
ssrSupport.value = !isSupported.value;
const queryStrings = toValue$1(query).split(",");
const queryStrings = toValue(query).split(",");
matches.value = queryStrings.some((queryString) => {
const not = queryString.includes("not all");
const minWidth = queryString.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);
@@ -4523,7 +4522,7 @@ function useMediaQuery(query, options = {}) {
}
if (!isSupported.value)
return;
mediaQuery.value = window2.matchMedia(toValue$1(query));
mediaQuery.value = window2.matchMedia(toValue(query));
matches.value = mediaQuery.value.matches;
});
useEventListener(mediaQuery, "change", handler, { passive: true });
@@ -4539,7 +4538,7 @@ const breakpointsTailwind = {
// @__NO_SIDE_EFFECTS__
function useBreakpoints(breakpoints, options = {}) {
function getValue2(k, delta) {
let v = toValue$1(breakpoints[toValue$1(k)]);
let v = toValue(breakpoints[toValue(k)]);
if (delta != null)
v = increaseWithUnit(v, delta);
if (typeof v === "number")
@@ -4627,7 +4626,7 @@ function useResizeObserver(target, callback, options = {}) {
}
};
const targets = computed(() => {
const _targets = toValue$1(target);
const _targets = toValue(target);
return Array.isArray(_targets) ? _targets.map((el) => unrefElement(el)) : [unrefElement(_targets)];
});
const stopWatch = watch(
@@ -4720,7 +4719,7 @@ function useIntersectionObserver(target, callback, options = {}) {
} = options;
const isSupported = /* @__PURE__ */ useSupported(() => window2 && "IntersectionObserver" in window2);
const targets = computed(() => {
const _target = toValue$1(target);
const _target = toValue(target);
return toArray(_target).map(unrefElement).filter(notNullish);
});
let cleanup = noop$2;
@@ -4780,7 +4779,7 @@ function useScrollLock(element, initialState = false) {
const isLocked = shallowRef(initialState);
let initialOverflow = "";
watch(toRef(element), (el) => {
const target = resolveElement(toValue$1(el));
const target = resolveElement(toValue(el));
if (target) {
const ele = target;
if (!elInitialOverflow.get(ele))
@@ -4796,14 +4795,14 @@ function useScrollLock(element, initialState = false) {
immediate: true
});
const lock = () => {
const el = resolveElement(toValue$1(element));
const el = resolveElement(toValue(element));
if (!el || isLocked.value)
return;
el.style.overflow = "hidden";
isLocked.value = true;
};
const unlock = () => {
const el = resolveElement(toValue$1(element));
const el = resolveElement(toValue(element));
if (!el || !isLocked.value)
return;
el.style.overflow = initialOverflow;
@@ -5804,7 +5803,7 @@ function useClientCache(prefix, keyPath, cacheFn, onCacheRemove) {
const styleContext = useStyleInject();
const fullPathStr = shallowRef("");
const res = shallowRef();
watchEffect$1(() => {
watchEffect(() => {
fullPathStr.value = [prefix, ...keyPath.value].join("%");
});
const clearCache = (pathStr) => {
@@ -7662,7 +7661,7 @@ const Portal$1 = defineComponent({
});
function useScrollLocker(lock) {
computed(() => !!lock && !!lock.value);
watchEffect$1((onClear) => {
watchEffect((onClear) => {
{
return;
}
@@ -7950,7 +7949,7 @@ function createContext(defaultValue) {
const useProvide = (props, newProps) => {
const mergedProps = reactive({});
provide(contextKey, mergedProps);
watchEffect$1(() => {
watchEffect(() => {
_extends(mergedProps, props, newProps || {});
});
return mergedProps;
@@ -9325,7 +9324,7 @@ const Button = defineComponent({
}
return child;
};
watchEffect$1(() => {
watchEffect(() => {
devWarning(!(props.ghost && isUnBorderedButtonType(props.type)), "Button", "`link` or `text` button can't be a `ghost` button.");
});
const focus = () => {
@@ -11446,7 +11445,7 @@ function getGlobalIconPrefixCls() {
}
const globalConfigBySet = reactive({});
const globalConfigForApi = reactive({});
watchEffect$1(() => {
watchEffect(() => {
_extends(globalConfigForApi, globalConfigBySet);
globalConfigForApi.prefixCls = getGlobalPrefixCls();
globalConfigForApi.iconPrefixCls = getGlobalIconPrefixCls();
@@ -11466,7 +11465,7 @@ const setGlobalConfig = (params) => {
if (stopWatchEffect) {
stopWatchEffect();
}
stopWatchEffect = watchEffect$1(() => {
stopWatchEffect = watchEffect(() => {
_extends(globalConfigBySet, reactive(params));
_extends(globalConfigForApi, reactive(params));
});
@@ -11660,7 +11659,7 @@ const ConfigProvider = defineComponent({
default: () => [childNode]
});
};
watchEffect$1(() => {
watchEffect(() => {
if (direction.value) {
api$1.config({
rtl: direction.value === "rtl"
@@ -12074,7 +12073,7 @@ const Dialog = defineComponent({
}, {
flush: "post"
});
watchEffect$1(() => {
watchEffect(() => {
var _a, _b;
(_a = props.scrollLocker) === null || _a === void 0 ? void 0 : _a.unLock();
if (animatedVisible.value) {
@@ -13222,7 +13221,7 @@ function useModal() {
const configRef = shallowRef(unref(config));
const updateConfig = shallowRef({});
watch(() => config, (val) => {
updateAction(_extends(_extends({}, isRef$1(val) ? val.value : val), updateConfig.value));
updateAction(_extends(_extends({}, isRef(val) ? val.value : val), updateConfig.value));
});
const destroyAction = function() {
open.value = false;
@@ -15521,7 +15520,7 @@ function useState(...args) {
const state = toRef$1(nuxtApp.payload.state, key2);
if (state.value === void 0 && init) {
const initialValue = init();
if (isRef$1(initialValue)) {
if (isRef(initialValue)) {
nuxtApp.payload.state[key2] = initialValue;
return initialValue;
}
@@ -17274,11 +17273,11 @@ const init_config_LL47CEFmgpdYE9Cs_saNIOj0KSQjq_8az7e6qB2y3Ko = /* @__PURE__ */
});
const reducers = [
["NuxtError", (data) => isNuxtError(data) && data.toJSON()],
["EmptyShallowRef", (data) => isRef$1(data) && isShallow(data) && !data.value && (typeof data.value === "bigint" ? "0n" : JSON.stringify(data.value) || "_")],
["EmptyRef", (data) => isRef$1(data) && !data.value && (typeof data.value === "bigint" ? "0n" : JSON.stringify(data.value) || "_")],
["ShallowRef", (data) => isRef$1(data) && isShallow(data) && data.value],
["EmptyShallowRef", (data) => isRef(data) && isShallow(data) && !data.value && (typeof data.value === "bigint" ? "0n" : JSON.stringify(data.value) || "_")],
["EmptyRef", (data) => isRef(data) && !data.value && (typeof data.value === "bigint" ? "0n" : JSON.stringify(data.value) || "_")],
["ShallowRef", (data) => isRef(data) && isShallow(data) && data.value],
["ShallowReactive", (data) => isReactive(data) && isShallow(data) && toRaw(data)],
["Ref", (data) => isRef$1(data) && data.value],
["Ref", (data) => isRef(data) && data.value],
["Reactive", (data) => isReactive(data) && toRaw(data)]
];
const revive_payload_server_MVtmlZaQpj6ApFmshWfUWl5PehCebzaBf2NuRMiIbms = /* @__PURE__ */ defineNuxtPlugin({