import { _ as __nuxt_component_0$2 } from './Logo1-BE8ssPEj.mjs'; import { defineComponent, ref, watch, unref, computed, resolveDirective, mergeProps, useSSRContext } from 'vue'; import { ssrRenderAttrs, ssrRenderComponent, ssrRenderSlot, ssrRenderClass, ssrInterpolate } from 'vue/server-renderer'; import { u as useRouter$1, aZ as useWindowSize, as as useNuxtApp, a as useConfigStore, b as useUserStore, a_ as useHead, a$ as useBreakpoints, b0 as breakpointsTailwind, o as useCartStore, _ as __nuxt_component_0$1, b1 as useScrollLock } from './server.mjs'; import { u as useChatStore } from './chatStore-BJSpEec0.mjs'; import { _ as _export_sfc } from './_plugin-vue_export-helper-1tPrXgE0.mjs'; import { get } from 'lodash-es'; import '../nitro/nitro.mjs'; import 'node:http'; import 'node:https'; import 'node:events'; import 'node:buffer'; import 'node:fs'; import 'node:path'; import 'node:crypto'; import 'node:url'; import 'consola'; import 'fast-xml-parser'; import 'ipx'; import 'pinia'; import '@supabase/supabase-js'; import 'axios'; import '@babel/runtime/helpers/esm/extends'; import '@babel/runtime/helpers/esm/objectSpread2'; import '@ant-design/colors'; import '@ctrl/tinycolor'; import 'stylis'; import 'vue-types'; import '@ant-design/icons-vue'; import 'unhead/utils'; const name = "nuxt-app"; const version = "1.0.0"; const type = "module"; const scripts = { "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.3.0", "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 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, 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(`
`); _push(ssrRenderComponent(_component_Logo1, { class: "inline m-auto w-5rem" }, null, _parent)); _push(`
${ssrInterpolate(unref(config).useString("version"))}
${ssrInterpolate(_ctx.version)}
`); }; } }); 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 configStore = useConfigStore(); const open = ref(false); ref(false); ref(false); ref(false); ref(true); computed(() => { if (props.appName) return props.appName; try { return configStore.appName.value.fa || configStore.appName.value.en; } 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-e8df050d"]]), { __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(``); if (showSplash.value) { _push(ssrRenderComponent(_component_Splash, { version: unref(pkg).version }, null, _parent)); } else { _push(``); } ssrRenderSlot(_ctx.$slots, "default", {}, null, _push, _parent); _push(`
`); _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(`
`); if (showMobileNavigationMenu.value) { _push(ssrRenderComponent(_sfc_main$2, { class: "!md:w-425px", style: { "width": "-webkit-fill-available" } }, null, _parent)); } else { _push(``); } _push(``); }; } }); 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 };