221 lines
11 KiB
JavaScript
221 lines
11 KiB
JavaScript
import { _ as __nuxt_component_0$2 } from './Logo1-BE8ssPEj.mjs';
|
|
import { defineComponent, ref, watch, unref, computed, resolveDirective, mergeProps, useSSRContext } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
|
import { ssrRenderAttrs, ssrRenderComponent, ssrRenderSlot, ssrRenderClass, ssrInterpolate } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/server-renderer/index.mjs';
|
|
import { u as useRouter$1, aY as useWindowSize, aZ as useBreakpoints, ar as useNuxtApp, a as useConfigStore, b as useUserStore, a_ as useHead, a$ as breakpointsTailwind, o as useCartStore, _ as __nuxt_component_0$1, b0 as useRuntimeConfig, b1 as useScrollLock } from './server.mjs';
|
|
import { u as useChatStore } from './chatStore-BzcgLXi3.mjs';
|
|
import { _ as _export_sfc } from './_plugin-vue_export-helper-1tPrXgE0.mjs';
|
|
import { get } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/lodash-es/lodash.js';
|
|
import 'node:http';
|
|
import 'node:https';
|
|
import '../nitro/nitro.mjs';
|
|
import 'node:events';
|
|
import 'node:buffer';
|
|
import 'node:fs';
|
|
import 'node:path';
|
|
import 'node:crypto';
|
|
import 'node:url';
|
|
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/consola/dist/index.mjs';
|
|
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/ipx/dist/index.mjs';
|
|
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/pinia/dist/pinia.prod.cjs';
|
|
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@supabase/supabase-js/dist/main/index.js';
|
|
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/axios/index.js';
|
|
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@babel/runtime/helpers/esm/extends.js';
|
|
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@babel/runtime/helpers/esm/objectSpread2.js';
|
|
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@ant-design/colors/dist/index.js';
|
|
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@ctrl/tinycolor/dist/public_api.js';
|
|
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/stylis/index.js';
|
|
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue-types/dist/vue-types.js';
|
|
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@ant-design/icons-vue/lib/index.js';
|
|
import '../routes/renderer.mjs';
|
|
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue-bundle-renderer/dist/runtime.mjs';
|
|
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@nuxt/nitro-server/node_modules/vue/server-renderer/index.mjs';
|
|
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/unhead/dist/server.mjs';
|
|
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/devalue/index.js';
|
|
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/unhead/dist/utils.mjs';
|
|
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@unhead/vue/node_modules/vue/index.mjs';
|
|
|
|
const name = "nuxt-app";
|
|
const version = "1.0.0";
|
|
const type = "module";
|
|
const scripts = { "predev": "node scripts/fetch-pwa-icons.mjs dev", "prebuild": "node scripts/fetch-pwa-icons.mjs prod", "prepreview": "node scripts/fetch-pwa-icons.mjs prod", "build": "nuxt build --dotenv .env.production", "dev": "nuxt dev --dotenv .env.development", "generate": "nuxt generate", "preview": "nuxt preview", "postinstall": "nuxt prepare" };
|
|
const dependencies = { "@ant-design-vue/nuxt": "^1.4.6", "@capacitor/android": "^7.4.3", "@capacitor/camera": "^7.0.1", "@capacitor/core": "^7.4.3", "@headlessui/vue": "^1.7.23", "@lottiefiles/dotlottie-vue": "^0.6.3", "@nuxt/image": "1.10.0", "@nuxtjs/eslint-module": "^4.1.0", "@nuxtjs/sitemap": "^7.5.0", "@pinia/nuxt": "^0.11.2", "@supabase/supabase-js": "^2.49.8", "@types/lodash-es": "^4.17.12", "@vite-pwa/nuxt": "1.0.4", "@vueup/vue-quill": "^1.2.0", "@vueuse/components": "^13.9.0", "@vueuse/core": "^13.9.0", "@vueuse/gesture": "^2.0.0", "@vueuse/motion": "^3.0.3", "@vueuse/nuxt": "13.2.0", "@vueuse/router": "^13.3.0", "ant-design-vue": "4.1.2", "axios": "^1.9.0", "date-fns": "^4.1.0", "dayjalali": "^1.0.1", "dayjs": "1.11.13", "dayjs-nuxt": "2.1.11", "jalali-dayjs": "^0.0.1", "lodash": "^4.17.21", "lodash-es": "^4.17.21", "moment": "2.30.1", "moment-jalaali": "0.10.4", "numbro": "^2.5.0", "nuxt": "^4.2.2", "pinia": "^3.0.3", "swiper": "^11.2.8", "unocss": "^66.1.2", "vue": "^3.5.14", "vue-advanced-cropper": "^2.8.9", "vue-content-loader": "^2.0.1", "vue-router": "^4.5.1", "vue3-lazyload": "^0.3.8", "vue3-otp-input": "^0.5.30", "xlsx": "^0.18.5" };
|
|
const packageManager = "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e";
|
|
const devDependencies = { "@capacitor/cli": "^7.4.3", "@unocss/nuxt": "^66.1.2", "@vant/nuxt": "^1.0.6", "dotenv": "^17.2.3", "less": "^4.3.0", "sass": "npm:sass-embedded@^1.83.0", "vant": "^4.9.19", "vite-plugin-pwa": "^1.0.0" };
|
|
const overrides = { "sass-embedded": "1.83.0" };
|
|
const pkg = {
|
|
name,
|
|
"private": true,
|
|
version,
|
|
type,
|
|
scripts,
|
|
dependencies,
|
|
packageManager,
|
|
devDependencies,
|
|
overrides
|
|
};
|
|
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
__name: "splash",
|
|
__ssrInlineRender: true,
|
|
props: {
|
|
version: {}
|
|
},
|
|
setup(__props) {
|
|
const logoSrc = computed(
|
|
() => config.isNightStore ? config.useLogo("logo_mini.png") : config.useLogo("logo_mini.png")
|
|
);
|
|
const config = useConfigStore();
|
|
const showFallback = ref(false);
|
|
watch(logoSrc, () => {
|
|
showFallback.value = false;
|
|
});
|
|
return (_ctx, _push, _parent, _attrs) => {
|
|
const _component_Logo1 = __nuxt_component_0$2;
|
|
_push(`<div${ssrRenderAttrs(mergeProps({
|
|
class: ["flex flex-col h-screen items-center justify-center w-full fixed md:w-425px z-100000 top-0", unref(config).isNightStore ? "bg-black" : "bg-white"]
|
|
}, _attrs))}><div class="w-full h-full flex justify-center items-center">`);
|
|
_push(ssrRenderComponent(_component_Logo1, { class: "inline m-auto w-5rem" }, null, _parent));
|
|
_push(`</div><div class="text-center absolute bottom-2 w-full"><div class="${ssrRenderClass(unref(config).isNightStore ? "text-white" : "text_black")}">${ssrInterpolate(unref(config).useString("version"))}</div><div class="${ssrRenderClass([unref(config).isNightStore ? "text-white" : "text_black", "text-xs"])}">${ssrInterpolate(__props.version)}</div></div></div>`);
|
|
};
|
|
}
|
|
});
|
|
const _sfc_setup$3 = _sfc_main$3.setup;
|
|
_sfc_main$3.setup = (props, ctx) => {
|
|
const ssrContext = useSSRContext();
|
|
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("components/splash.vue");
|
|
return _sfc_setup$3 ? _sfc_setup$3(props, ctx) : void 0;
|
|
};
|
|
const __nuxt_component_0 = Object.assign(_sfc_main$3, { __name: "Splash" });
|
|
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
__name: "index",
|
|
__ssrInlineRender: true,
|
|
setup(__props) {
|
|
useConfigStore();
|
|
useUserStore();
|
|
const router = useRouter$1();
|
|
useCartStore();
|
|
computed(() => {
|
|
return router.currentRoute.value.name;
|
|
});
|
|
ref(false);
|
|
return (_ctx, _push, _parent, _attrs) => {
|
|
const _component_ClientOnly = __nuxt_component_0$1;
|
|
resolveDirective("lazy");
|
|
_push(ssrRenderComponent(_component_ClientOnly, _attrs, {}, _parent));
|
|
};
|
|
}
|
|
});
|
|
const _sfc_setup$2 = _sfc_main$2.setup;
|
|
_sfc_main$2.setup = (props, ctx) => {
|
|
const ssrContext = useSSRContext();
|
|
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("views/base/index.vue");
|
|
return _sfc_setup$2 ? _sfc_setup$2(props, ctx) : void 0;
|
|
};
|
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
__name: "index",
|
|
__ssrInlineRender: true,
|
|
props: {
|
|
iconSrc: {},
|
|
appName: { default: "" },
|
|
forceShow: { type: Boolean, default: false },
|
|
nonSafariMode: { default: "block" },
|
|
zIndex: { default: 4e3 }
|
|
},
|
|
setup(__props) {
|
|
const props = __props;
|
|
const open = ref(false);
|
|
ref(false);
|
|
ref(false);
|
|
ref(false);
|
|
ref(true);
|
|
computed(() => {
|
|
if (props.appName) return props.appName;
|
|
try {
|
|
const pub = useRuntimeConfig().public;
|
|
return pub.APP_NAME_FA || pub.APP_NAME_EN || "App";
|
|
} catch {
|
|
return "App";
|
|
}
|
|
});
|
|
const lock = useScrollLock(null);
|
|
watch(open, (v) => {
|
|
if (lock) lock.value = v;
|
|
});
|
|
return (_ctx, _push, _parent, _attrs) => {
|
|
const _component_ClientOnly = __nuxt_component_0$1;
|
|
_push(ssrRenderComponent(_component_ClientOnly, _attrs, {}, _parent));
|
|
};
|
|
}
|
|
});
|
|
const _sfc_setup$1 = _sfc_main$1.setup;
|
|
_sfc_main$1.setup = (props, ctx) => {
|
|
const ssrContext = useSSRContext();
|
|
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("components/IosInstallPrompt/index.vue");
|
|
return _sfc_setup$1 ? _sfc_setup$1(props, ctx) : void 0;
|
|
};
|
|
const Index = /* @__PURE__ */ Object.assign(_export_sfc(_sfc_main$1, [["__scopeId", "data-v-5b7dc7e2"]]), { __name: "IosInstallPrompt" });
|
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
__name: "default",
|
|
__ssrInlineRender: true,
|
|
setup(__props) {
|
|
const router = useRouter$1();
|
|
const { width } = useWindowSize();
|
|
const breakpoints = useBreakpoints(breakpointsTailwind);
|
|
const isSM = breakpoints.smaller("sm");
|
|
const showMobileNavigationMenu = ref(false);
|
|
const showSplash = ref(true);
|
|
const nuxtApp = useNuxtApp();
|
|
const config = useConfigStore();
|
|
useUserStore();
|
|
useChatStore();
|
|
watch([width, isSM], () => {
|
|
checkFooterHeader();
|
|
});
|
|
function checkFooterHeader() {
|
|
showMobileNavigationMenu.value = !!get(router.currentRoute.value, "meta.showMobileNavigationMenu", true);
|
|
}
|
|
nuxtApp.hook("page:finish", () => {
|
|
checkFooterHeader();
|
|
});
|
|
useHead({
|
|
title: config.appName.en
|
|
});
|
|
return (_ctx, _push, _parent, _attrs) => {
|
|
const _component_Splash = __nuxt_component_0;
|
|
_push(`<div${ssrRenderAttrs(_attrs)}>`);
|
|
if (showSplash.value) {
|
|
_push(ssrRenderComponent(_component_Splash, {
|
|
version: unref(pkg).version
|
|
}, null, _parent));
|
|
} else {
|
|
_push(`<!---->`);
|
|
}
|
|
ssrRenderSlot(_ctx.$slots, "default", {}, null, _push, _parent);
|
|
_push(`<div>`);
|
|
_push(ssrRenderComponent(Index, {
|
|
iconSrc: unref(config).useLogo("pwa-icon-192.png"),
|
|
storageKey: "ios-install-guide-v1",
|
|
zIndex: 3e3,
|
|
"non-safari-mode": "hint"
|
|
}, null, _parent));
|
|
_push(`</div>`);
|
|
if (showMobileNavigationMenu.value) {
|
|
_push(ssrRenderComponent(_sfc_main$2, {
|
|
class: "!md:w-425px",
|
|
style: { "width": "-webkit-fill-available" }
|
|
}, null, _parent));
|
|
} else {
|
|
_push(`<!---->`);
|
|
}
|
|
_push(`</div>`);
|
|
};
|
|
}
|
|
});
|
|
const _sfc_setup = _sfc_main.setup;
|
|
_sfc_main.setup = (props, ctx) => {
|
|
const ssrContext = useSSRContext();
|
|
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("layouts/default.vue");
|
|
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
|
};
|
|
|
|
export { _sfc_main as default };
|