881 lines
41 KiB
JavaScript
881 lines
41 KiB
JavaScript
import { defineComponent, computed, withAsyncContext, unref, mergeProps, ref, reactive, withCtx, createVNode, watch, resolveDirective, createBlock, openBlock, toDisplayString, createTextVNode, useSSRContext } from 'vue';
|
|
import { ssrRenderComponent, ssrRenderAttrs, ssrRenderAttr, ssrInterpolate, ssrRenderList, ssrGetDirectiveProps, ssrRenderStyle, ssrRenderSlot } from 'vue/server-renderer';
|
|
import { u as useRouter$1, a as useConfigStore, b as useUserStore, af as getOneUser, f as loading, B as useElementSize$1, t as useCartStore, o as useIntersectionObserver, E as APP_TYPE, G as Badge, D as reactiveProjectName, p as getToken, H as __nuxt_component_1$6, C as getSupabaseStorageUrl, ag as __nuxt_component_2$1, ac as __nuxt_component_4, ah as Tabs, ai as __nuxt_component_2$2 } from './server.mjs';
|
|
import { _ as _imports_0, a as _imports_1 } from './cart-DMkYna66.mjs';
|
|
import { _ as _sfc_main$6, a as _imports_2, b as _imports_3, c as _sfc_main$5$1, H as Highlights } from './Highlights-pA6PmInz.mjs';
|
|
import { B as BasicIconOld } from './BasicIconOld-93vAWohq.mjs';
|
|
import numbro from 'numbro';
|
|
import { B as BasicButton } from './BasicButton-B9iMRxfW.mjs';
|
|
import { U as UserProfilePic } from './UserProfilePic-CmaGJi8K.mjs';
|
|
import { l as loadGray, S as SquarePostSkeleton } from './gray-BT6NR-_-.mjs';
|
|
import { u as useMediaStore } from './media-Dtpy2u-E.mjs';
|
|
import { _ as _sfc_main$7 } from './FullScreenStories-Cx3_gsUr.mjs';
|
|
import { u as useUserPostStore } from './userPostsStore-Bdw9FITb.mjs';
|
|
import { u as useAsyncData } from './asyncData-BzPAimvL.mjs';
|
|
import { _ as _export_sfc } from './_plugin-vue_export-helper-1tPrXgE0.mjs';
|
|
import { _ as _sfc_main$8 } from './OrdersList-CNyVI5-3.mjs';
|
|
import { _ as _sfc_main$9 } from './SavedList-Dl_4NAPh.mjs';
|
|
import { u as usePrice } from './usePrice-B-5-jXKQ.mjs';
|
|
import { t as toJalali } from './useDateTime-D8RCoGwW.mjs';
|
|
import { ContentLoader } from 'vue-content-loader';
|
|
import '../_/nitro.mjs';
|
|
import 'node:http';
|
|
import 'node:https';
|
|
import 'node:events';
|
|
import 'node:buffer';
|
|
import 'node:fs';
|
|
import 'node:url';
|
|
import 'consola';
|
|
import 'ipx';
|
|
import 'node:path';
|
|
import 'node:crypto';
|
|
import 'pinia';
|
|
import '@supabase/supabase-js';
|
|
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 'lodash-es';
|
|
import 'axios';
|
|
import '@ant-design/icons-vue';
|
|
import 'resize-observer-polyfill';
|
|
import 'dom-align';
|
|
import 'lodash-es/uniq.js';
|
|
import 'lodash-es/pick.js';
|
|
import 'lodash-es/isPlainObject.js';
|
|
import 'lodash-es/debounce.js';
|
|
import 'lodash-es/cloneDeep.js';
|
|
import 'async-validator';
|
|
import 'lodash-es/find.js';
|
|
import 'lodash-es/isEqual.js';
|
|
import 'compute-scroll-into-view';
|
|
import 'lodash-es/intersection.js';
|
|
import 'lodash-es/omit.js';
|
|
import 'lodash-es/isNumber.js';
|
|
import 'throttle-debounce';
|
|
import 'lodash-es/fromPairs.js';
|
|
import 'lodash-es/partition.js';
|
|
import '../routes/renderer.mjs';
|
|
import 'vue-bundle-renderer/runtime';
|
|
import 'unhead/server';
|
|
import 'devalue';
|
|
import 'unhead/utils';
|
|
import './media-c-l6vPxp.mjs';
|
|
import 'swiper/vue';
|
|
import './empty_user-BaUNCdgf.mjs';
|
|
import './post_loading-BiySI7bp.mjs';
|
|
import './index-CM92jef_.mjs';
|
|
import '@vueuse/gesture';
|
|
import '@headlessui/vue';
|
|
import 'framesync';
|
|
import 'popmotion';
|
|
import 'style-value-types';
|
|
import './BasicInput-DvVrG0oq.mjs';
|
|
import './like-BhIOg3YL.mjs';
|
|
import 'swiper/modules';
|
|
import './save-L0b3Qt6m.mjs';
|
|
import 'moment';
|
|
import 'moment-timezone';
|
|
import 'moment-jalaali';
|
|
import 'date-fns';
|
|
import 'date-fns/locale';
|
|
|
|
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
__name: "MenuItem",
|
|
__ssrInlineRender: true,
|
|
props: {
|
|
title: {},
|
|
icon: {},
|
|
hasRightArrow: { type: Boolean }
|
|
},
|
|
setup(__props) {
|
|
const config = useConfigStore();
|
|
return (_ctx, _push, _parent, _attrs) => {
|
|
_push(`<div${ssrRenderAttrs(mergeProps({ class: "flex items-center justify-between" }, _attrs))}><div class="flex gap-2 items-center">`);
|
|
if (_ctx.icon) {
|
|
_push(ssrRenderComponent(BasicIconOld, { icon: _ctx.icon }, null, _parent));
|
|
} else {
|
|
_push(`<!---->`);
|
|
}
|
|
_push(`<div class="text-sm">${ssrInterpolate(_ctx.title)}</div></div><div class="flex items-center">`);
|
|
ssrRenderSlot(_ctx.$slots, "extra", {}, null, _push, _parent);
|
|
if (_ctx.hasRightArrow) {
|
|
_push(ssrRenderComponent(BasicIconOld, {
|
|
key: unref(config).isRTL,
|
|
icon: unref(config).isRTL ? "vuesax-linear:arrow-left-1" : "vuesax-linear:arrow-right-1",
|
|
size: "20"
|
|
}, null, _parent));
|
|
} else {
|
|
_push(`<!---->`);
|
|
}
|
|
_push(`</div></div>`);
|
|
};
|
|
}
|
|
});
|
|
const _sfc_setup$5 = _sfc_main$5.setup;
|
|
_sfc_main$5.setup = (props, ctx) => {
|
|
const ssrContext = useSSRContext();
|
|
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("components/MenuItem.vue");
|
|
return _sfc_setup$5 ? _sfc_setup$5(props, ctx) : void 0;
|
|
};
|
|
const MenuItem = Object.assign(_sfc_main$5, { __name: "MenuItem" });
|
|
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
__name: "Seller",
|
|
__ssrInlineRender: true,
|
|
props: {
|
|
user: {},
|
|
userId: {}
|
|
},
|
|
async setup(__props) {
|
|
let __temp, __restore;
|
|
const router = useRouter$1();
|
|
const props = __props;
|
|
const settingMenu = ref(false);
|
|
ref(false);
|
|
ref(false);
|
|
const visibleAdd = ref(false);
|
|
const config = useConfigStore();
|
|
const userPost = useUserPostStore();
|
|
const cartStore = useCartStore();
|
|
ref([]);
|
|
const formatNumber = (num) => {
|
|
if (num < 9999) return num;
|
|
return numbro(num).format({
|
|
average: true,
|
|
// Converts 11230 -> 11.2K, 1000000 -> 1M
|
|
mantissa: 1
|
|
// Number of decimal places
|
|
});
|
|
};
|
|
const videoThumbnails = ref({});
|
|
const isMain = computed(() => router.currentRoute.value.query.isMain);
|
|
const mediaStore = useMediaStore();
|
|
computed(() => config.sellerConfig?.store);
|
|
const userStore = useUserStore();
|
|
const userStory = computed(() => {
|
|
return mediaStore.users.find((x) => x.id === props.user?.id);
|
|
});
|
|
const selectedStoryId = ref(null);
|
|
const observer = ref();
|
|
useIntersectionObserver(observer, async ([{ isIntersecting }]) => {
|
|
if (isIntersecting && !userPost.loading && !userPost.endPage) {
|
|
setTimeout(async () => {
|
|
const nextPage = userPost.currentPage + 1;
|
|
const data2 = await userPost.loadPosts(props.userId, nextPage);
|
|
userPost.loadStateNextPage(data2);
|
|
}, 100);
|
|
}
|
|
});
|
|
const { data } = ([__temp, __restore] = withAsyncContext(async () => useAsyncData("productProfSeller", async () => {
|
|
userPost.reset();
|
|
return await userPost.loadPosts(props.userId, 1);
|
|
})), __temp = await __temp, __restore(), __temp);
|
|
watch(data, () => {
|
|
if (data) {
|
|
userPost.loadStateNextPage(data.value);
|
|
}
|
|
});
|
|
return (_ctx, _push, _parent, _attrs) => {
|
|
const _component_a_badge = Badge;
|
|
const _component_a_popover = __nuxt_component_1$6;
|
|
const _component_a_drawer = __nuxt_component_2$1;
|
|
const _component_a_divider = __nuxt_component_4;
|
|
const _directive_lazy = resolveDirective("lazy");
|
|
let _temp0;
|
|
_push(`<!--[--><div data-v-bc507dd1><div class="absolute top-0 w-inherit right-0 left-0" data-v-bc507dd1><div class="flex justify-between w-full p-4" data-v-bc507dd1><div class="flex items-center gap-4" data-v-bc507dd1>`);
|
|
if (!isMain.value) {
|
|
_push(ssrRenderComponent(BasicIconOld, {
|
|
icon: !unref(config).isRTL ? "vuesax-linear:arrow-left" : "vuesax-linear:arrow-right",
|
|
onClick: ($event) => unref(router).back()
|
|
}, null, _parent));
|
|
} else {
|
|
_push(`<!---->`);
|
|
}
|
|
_push(`<div class="font-semibold text-xl" data-v-bc507dd1>${ssrInterpolate(_ctx.user?.username)}</div></div><div class="flex items-center gap5" data-v-bc507dd1>`);
|
|
if ((!unref(config).isSeller && ("APP_TYPE" in _ctx ? _ctx.APP_TYPE : unref(APP_TYPE)) === "single" || ("APP_TYPE" in _ctx ? _ctx.APP_TYPE : unref(APP_TYPE)) === "multi") && isMain.value) {
|
|
_push(ssrRenderComponent(_component_a_badge, {
|
|
count: unref(cartStore).count,
|
|
dir: "ltr",
|
|
class: "mt1"
|
|
}, {
|
|
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
if (_push2) {
|
|
_push2(`<div data-v-bc507dd1${_scopeId}>`);
|
|
if (unref(config).isNightStore) {
|
|
_push2(`<img${ssrRenderAttr("src", _imports_0)} class="w-1.8rem -mt1" alt="" data-v-bc507dd1${_scopeId}>`);
|
|
} else {
|
|
_push2(`<img${ssrRenderAttr("src", _imports_1)}${ssrRenderAttr("alt", unref(reactiveProjectName))} class="w-1.8rem -mt1" data-v-bc507dd1${_scopeId}>`);
|
|
}
|
|
_push2(`</div>`);
|
|
} else {
|
|
return [
|
|
createVNode("div", {
|
|
onClick: ($event) => unref(router).push({ name: "cart" })
|
|
}, [
|
|
unref(config).isNightStore ? (openBlock(), createBlock("img", {
|
|
key: 0,
|
|
src: _imports_0,
|
|
class: "w-1.8rem -mt1",
|
|
alt: ""
|
|
})) : (openBlock(), createBlock("img", {
|
|
key: 1,
|
|
src: _imports_1,
|
|
alt: unref(reactiveProjectName),
|
|
class: "w-1.8rem -mt1"
|
|
}, null, 8, ["alt"]))
|
|
], 8, ["onClick"])
|
|
];
|
|
}
|
|
}),
|
|
_: 1
|
|
}, _parent));
|
|
} else {
|
|
_push(`<!---->`);
|
|
}
|
|
if (unref(getToken)() && unref(config).isSeller) {
|
|
_push(ssrRenderComponent(_component_a_popover, {
|
|
open: visibleAdd.value,
|
|
"onUpdate:open": ($event) => visibleAdd.value = $event,
|
|
trigger: "click"
|
|
}, {
|
|
content: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
if (_push2) {
|
|
_push2(`<div data-v-bc507dd1${_scopeId}><div class="flex items-center gap-2" data-v-bc507dd1${_scopeId}><img${ssrRenderAttr("src", _imports_2)} class="w-1rem" alt="" data-v-bc507dd1${_scopeId}><div data-v-bc507dd1${_scopeId}>${ssrInterpolate(unref(config).useString("product"))}</div></div><div class="flex items-center gap-2 mt-2" data-v-bc507dd1${_scopeId}><img${ssrRenderAttr("src", _imports_3)} class="w-1rem" alt="" data-v-bc507dd1${_scopeId}><div data-v-bc507dd1${_scopeId}>${ssrInterpolate(unref(config).useString("story"))}</div></div></div>`);
|
|
} else {
|
|
return [
|
|
createVNode("div", null, [
|
|
createVNode("div", {
|
|
class: "flex items-center gap-2",
|
|
onClick: ($event) => unref(router).push({ name: "add-product" })
|
|
}, [
|
|
createVNode("img", {
|
|
src: _imports_2,
|
|
class: "w-1rem",
|
|
alt: ""
|
|
}),
|
|
createVNode("div", null, toDisplayString(unref(config).useString("product")), 1)
|
|
], 8, ["onClick"]),
|
|
createVNode("div", {
|
|
class: "flex items-center gap-2 mt-2",
|
|
onClick: ($event) => unref(router).push({ name: "add-story" })
|
|
}, [
|
|
createVNode("img", {
|
|
src: _imports_3,
|
|
class: "w-1rem",
|
|
alt: ""
|
|
}),
|
|
createVNode("div", null, toDisplayString(unref(config).useString("story")), 1)
|
|
], 8, ["onClick"])
|
|
])
|
|
];
|
|
}
|
|
}),
|
|
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
if (_push2) {
|
|
_push2(ssrRenderComponent(_sfc_main$6, { class: "w-1.4rem" }, null, _parent2, _scopeId));
|
|
} else {
|
|
return [
|
|
createVNode(_sfc_main$6, { class: "w-1.4rem" })
|
|
];
|
|
}
|
|
}),
|
|
_: 1
|
|
}, _parent));
|
|
} else {
|
|
_push(`<!---->`);
|
|
}
|
|
if (_ctx.user?.id === unref(userStore).user?.id) {
|
|
_push(ssrRenderComponent(_sfc_main$5$1, {
|
|
class: "w-1.3rem",
|
|
onClick: ($event) => unref(router).push({ name: "user-setting" })
|
|
}, null, _parent));
|
|
} else {
|
|
_push(`<!---->`);
|
|
}
|
|
_push(`</div></div><div class="h-90vh overflow-y-auto pb-5vh" data-v-bc507dd1><div class="px4" data-v-bc507dd1><div class="flex" data-v-bc507dd1>`);
|
|
_push(ssrRenderComponent(UserProfilePic, {
|
|
src: _ctx.user?.avatar,
|
|
onClick: ($event) => userStory.value?.stories?.length !== 0 ? selectedStoryId.value = _ctx.user?.id : "",
|
|
"just-show-profile": userStory.value?.stories?.length === 0 || !userStory.value?.stories,
|
|
seenStory: !userStory.value?.stories?.length || userStory.value?.stories?.every((item) => item.storyviews.find((_item) => _item.user_id === unref(userStore).user?.id || _item.user_id === "me")),
|
|
showAdd: unref(config).isSeller
|
|
}, null, _parent));
|
|
_push(`<div class="p3 text-sm" data-v-bc507dd1><div class="flex mt2 gap-2" data-v-bc507dd1><div class="" data-v-bc507dd1><div class="font-semibold" data-v-bc507dd1>${ssrInterpolate(formatNumber(_ctx.user?.stats?.buy_total_order_count ?? 0))}</div><div data-v-bc507dd1>${ssrInterpolate(unref(config).useString("products"))}</div></div>`);
|
|
if (_ctx.user?.id === unref(userStore).user?.id) {
|
|
_push(`<div class="" data-v-bc507dd1><div class="font-semibold" data-v-bc507dd1>${ssrInterpolate(formatNumber(_ctx.user?.stats?.total_customer ?? 0))}</div><div data-v-bc507dd1>${ssrInterpolate(unref(config).useString("customers"))}</div></div>`);
|
|
} else {
|
|
_push(`<!---->`);
|
|
}
|
|
_push(`<div class="" data-v-bc507dd1><div class="font-semibold" data-v-bc507dd1>${ssrInterpolate(formatNumber(_ctx.user?.id === unref(userStore).user?.id ? _ctx.user?.stats?.sell_total_order_count ?? 0 : _ctx.user?.stats?.buy_total_order_count ?? 0))}</div><div data-v-bc507dd1>${ssrInterpolate(unref(config).isSeller ? unref(config).useString("orders") : unref(config).useString("yourOrders"))}</div></div></div></div></div><div class="mt-5 font-300 whitespace-pre-line" data-v-bc507dd1>${ssrInterpolate(_ctx.user?.bio)}</div>`);
|
|
if (_ctx.user?.website) {
|
|
_push(`<a${ssrRenderAttr("href", "https://" + _ctx.user?.website)} target="_blank" data-v-bc507dd1><div class="flex items-center text-xs gap-1 text-primary" data-v-bc507dd1>`);
|
|
_push(ssrRenderComponent(BasicIconOld, {
|
|
icon: "vuesax-linear:link-1",
|
|
class: "text-primary",
|
|
size: "20"
|
|
}, null, _parent));
|
|
_push(` ${ssrInterpolate(_ctx.user?.website)}</div></a>`);
|
|
} else {
|
|
_push(`<!---->`);
|
|
}
|
|
if (unref(getToken)() && unref(userStore).user?.id === unref(router).currentRoute.value.params.id) {
|
|
_push(`<div class="flex items-center gap-2 mt-2" data-v-bc507dd1>`);
|
|
_push(ssrRenderComponent(BasicButton, {
|
|
size: "small",
|
|
block: "",
|
|
class: ["!h-unset !rounded-lg", unref(config).isNightStore ? "border-white text-white bg-black" : "border-black text-black"],
|
|
onClick: ($event) => unref(router).push({ name: "user-edit" })
|
|
}, {
|
|
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
if (_push2) {
|
|
_push2(`${ssrInterpolate(unref(config).useString("editProfile"))}`);
|
|
} else {
|
|
return [
|
|
createTextVNode(toDisplayString(unref(config).useString("editProfile")), 1)
|
|
];
|
|
}
|
|
}),
|
|
_: 1
|
|
}, _parent));
|
|
_push(ssrRenderComponent(BasicButton, {
|
|
size: "small",
|
|
block: "",
|
|
class: ["!h-unset !rounded-lg", unref(config).isNightStore ? "border-white text-white bg-black" : "border-black text-black"]
|
|
}, {
|
|
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
if (_push2) {
|
|
_push2(`${ssrInterpolate(unref(config).useString("shareStore"))}`);
|
|
} else {
|
|
return [
|
|
createTextVNode(toDisplayString(unref(config).useString("shareStore")), 1)
|
|
];
|
|
}
|
|
}),
|
|
_: 1
|
|
}, _parent));
|
|
_push(`</div>`);
|
|
} else {
|
|
_push(`<!---->`);
|
|
}
|
|
_push(`<div class="mt-4 flex" data-v-bc507dd1>`);
|
|
_push(ssrRenderComponent(Highlights, { "current-user": _ctx.user }, null, _parent));
|
|
_push(`</div></div><div class="w-full grid grid-cols-3 mt-2 gap-2px" data-v-bc507dd1><!--[-->`);
|
|
ssrRenderList(unref(userPost).posts, (post, i) => {
|
|
_push(`<div class="w-full aspect-square relative" data-v-bc507dd1>`);
|
|
if (post.files?.length) {
|
|
_push(`<!--[-->`);
|
|
if (post.files[0].type === "image") {
|
|
_push(`<img${ssrRenderAttrs(_temp0 = mergeProps({
|
|
class: "w-full h-full object-cover",
|
|
alt: "Post Image"
|
|
}, ssrGetDirectiveProps(_ctx, _directive_lazy, { src: unref(getSupabaseStorageUrl)(post.files[0].url), loading: unref(loadGray), error: unref(loadGray) })))} data-v-bc507dd1>${"textContent" in _temp0 ? ssrInterpolate(_temp0.textContent) : _temp0.innerHTML ?? ""}`);
|
|
} else if (post.files[0].type === "video") {
|
|
_push(`<div class="relative w-full h-full" data-v-bc507dd1><video${ssrRenderAttr("src", post.files[0].url)} class="hidden" data-v-bc507dd1></video><img${ssrRenderAttr("src", videoThumbnails.value[post.files[0].url])} class="w-full h-full object-cover" alt="Video Thumbnail" data-v-bc507dd1><div class="absolute inset-0 flex items-center justify-center bg-black bg-opacity-30" data-v-bc507dd1><svg class="w-12 h-12 text-white" fill="currentColor" viewBox="0 0 24 24" data-v-bc507dd1><path d="M8 5v14l11-7z" data-v-bc507dd1></path></svg></div></div>`);
|
|
} else {
|
|
_push(`<!---->`);
|
|
}
|
|
_push(`<!--]-->`);
|
|
} else {
|
|
_push(`<!---->`);
|
|
}
|
|
_push(`</div>`);
|
|
});
|
|
_push(`<!--]--></div><div style="${ssrRenderStyle(!unref(userPost).loading ? null : { display: "none" })}" class="w-full opacity-0 relative" data-v-bc507dd1> load </div>`);
|
|
if (unref(userPost).loading) {
|
|
_push(ssrRenderComponent(SquarePostSkeleton, null, null, _parent));
|
|
} else {
|
|
_push(`<!---->`);
|
|
}
|
|
_push(`</div></div>`);
|
|
_push(ssrRenderComponent(_component_a_drawer, {
|
|
width: 300,
|
|
title: unref(config).useString("setting"),
|
|
placement: "right",
|
|
open: settingMenu.value,
|
|
onClose: ($event) => settingMenu.value = false
|
|
}, {
|
|
extra: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
if (_push2) {
|
|
_push2(ssrRenderComponent(BasicIconOld, {
|
|
icon: "vuesax-linear:setting",
|
|
onClick: ($event) => unref(router).push({ name: "setting" })
|
|
}, null, _parent2, _scopeId));
|
|
} else {
|
|
return [
|
|
createVNode(BasicIconOld, {
|
|
icon: "vuesax-linear:setting",
|
|
onClick: ($event) => unref(router).push({ name: "setting" })
|
|
}, null, 8, ["onClick"])
|
|
];
|
|
}
|
|
}),
|
|
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
if (_push2) {
|
|
_push2(`<div data-v-bc507dd1${_scopeId}>`);
|
|
_push2(ssrRenderComponent(MenuItem, {
|
|
title: unref(config).useString("brands"),
|
|
onClick: ($event) => unref(router).push({ name: "user-brands" }),
|
|
icon: "vuesax-linear:medal"
|
|
}, null, _parent2, _scopeId));
|
|
_push2(ssrRenderComponent(_component_a_divider, { class: "my-2" }, null, _parent2, _scopeId));
|
|
_push2(ssrRenderComponent(MenuItem, {
|
|
title: unref(config).useString("categories"),
|
|
onClick: ($event) => unref(router).push({ name: "user-categories" }),
|
|
icon: "vuesax-linear:category-2"
|
|
}, null, _parent2, _scopeId));
|
|
_push2(ssrRenderComponent(_component_a_divider, { class: "my-2" }, null, _parent2, _scopeId));
|
|
_push2(ssrRenderComponent(MenuItem, {
|
|
title: unref(config).useString("attributes"),
|
|
onClick: ($event) => unref(router).push({ name: "user-attributes" }),
|
|
icon: "vuesax-linear:data-2"
|
|
}, null, _parent2, _scopeId));
|
|
_push2(ssrRenderComponent(_component_a_divider, { class: "my-2" }, null, _parent2, _scopeId));
|
|
_push2(ssrRenderComponent(MenuItem, {
|
|
class: "text-red-6",
|
|
title: unref(config).useString("logout"),
|
|
icon: "vuesax-linear:logout",
|
|
onClick: unref(userStore).confirmLogout
|
|
}, null, _parent2, _scopeId));
|
|
_push2(`</div>`);
|
|
} else {
|
|
return [
|
|
createVNode("div", null, [
|
|
createVNode(MenuItem, {
|
|
title: unref(config).useString("brands"),
|
|
onClick: ($event) => unref(router).push({ name: "user-brands" }),
|
|
icon: "vuesax-linear:medal"
|
|
}, null, 8, ["title", "onClick"]),
|
|
createVNode(_component_a_divider, { class: "my-2" }),
|
|
createVNode(MenuItem, {
|
|
title: unref(config).useString("categories"),
|
|
onClick: ($event) => unref(router).push({ name: "user-categories" }),
|
|
icon: "vuesax-linear:category-2"
|
|
}, null, 8, ["title", "onClick"]),
|
|
createVNode(_component_a_divider, { class: "my-2" }),
|
|
createVNode(MenuItem, {
|
|
title: unref(config).useString("attributes"),
|
|
onClick: ($event) => unref(router).push({ name: "user-attributes" }),
|
|
icon: "vuesax-linear:data-2"
|
|
}, null, 8, ["title", "onClick"]),
|
|
createVNode(_component_a_divider, { class: "my-2" }),
|
|
createVNode(MenuItem, {
|
|
class: "text-red-6",
|
|
title: unref(config).useString("logout"),
|
|
icon: "vuesax-linear:logout",
|
|
onClick: unref(userStore).confirmLogout
|
|
}, null, 8, ["title", "onClick"])
|
|
])
|
|
];
|
|
}
|
|
}),
|
|
_: 1
|
|
}, _parent));
|
|
_push(`</div>`);
|
|
if (selectedStoryId.value) {
|
|
_push(ssrRenderComponent(_sfc_main$7, {
|
|
id: selectedStoryId.value,
|
|
"onUpdate:id": ($event) => selectedStoryId.value = $event,
|
|
specifyId: ""
|
|
}, null, _parent));
|
|
} else {
|
|
_push(`<!---->`);
|
|
}
|
|
_push(`<!--]-->`);
|
|
};
|
|
}
|
|
});
|
|
const _sfc_setup$4 = _sfc_main$4.setup;
|
|
_sfc_main$4.setup = (props, ctx) => {
|
|
const ssrContext = useSSRContext();
|
|
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("views/base/pages/userProf/components/Seller.vue");
|
|
return _sfc_setup$4 ? _sfc_setup$4(props, ctx) : void 0;
|
|
};
|
|
const Seller = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-bc507dd1"]]);
|
|
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
__name: "Customer",
|
|
__ssrInlineRender: true,
|
|
props: {
|
|
user: {}
|
|
},
|
|
setup(__props) {
|
|
const router = useRouter$1();
|
|
const activeKey = ref("orders");
|
|
const config = useConfigStore();
|
|
const formatNumber = (num) => {
|
|
if (num < 9999) return num;
|
|
return numbro(num).format({
|
|
average: true,
|
|
// Converts 11230 -> 11.2K, 1000000 -> 1M
|
|
mantissa: 1
|
|
// Number of decimal places
|
|
});
|
|
};
|
|
return (_ctx, _push, _parent, _attrs) => {
|
|
const _component_ATabs = Tabs;
|
|
const _component_ATabPane = __nuxt_component_2$2;
|
|
_push(`<div${ssrRenderAttrs(_attrs)} data-v-097c9901><div class="absolute top-0 w-inherit right-0 left-0" data-v-097c9901><div class="flex justify-between w-full p-4" data-v-097c9901><div class="flex items-center gap-4" data-v-097c9901>`);
|
|
_push(ssrRenderComponent(BasicIconOld, {
|
|
icon: !unref(config).isRTL ? "vuesax-linear:arrow-left" : "vuesax-linear:arrow-right",
|
|
onClick: ($event) => unref(router).back()
|
|
}, null, _parent));
|
|
_push(`<div class="font-semibold text-lg" data-v-097c9901>${ssrInterpolate(_ctx.user?.name)}</div></div><div class="flex gap-24px items-center" data-v-097c9901></div></div><div class="h-90vh overflow-y-auto" data-v-097c9901><div class="px4" data-v-097c9901><div class="flex" data-v-097c9901>`);
|
|
_push(ssrRenderComponent(UserProfilePic, {
|
|
src: _ctx.user?.avatar,
|
|
"just-show-profile": ""
|
|
}, null, _parent));
|
|
_push(`<div class="p3 text-sm" data-v-097c9901><div class="flex mt2 gap-4" data-v-097c9901><div class="w-4rem" data-v-097c9901><div class="font-semibold" data-v-097c9901>${ssrInterpolate(formatNumber(_ctx.user?.stats?.buy_total_order_count ?? 0))}</div><div data-v-097c9901>${ssrInterpolate(unref(config).useString("orders"))}</div></div><div class="w-10rem" data-v-097c9901><div class="font-semibold flex" data-v-097c9901>${ssrInterpolate(unref(usePrice)(_ctx.user?.stats?.buy_total_order_sum ?? 0))}</div><div data-v-097c9901>${ssrInterpolate(unref(config).useString("totalAmountPurchased"))}</div></div></div></div></div><div class="grid grid-cols-3 mt-3" data-v-097c9901><div class="" data-v-097c9901><div class="text-sm" data-v-097c9901>${ssrInterpolate(unref(config).useString("phone"))}:</div><div class="text-xs font-semibold" data-v-097c9901>${ssrInterpolate(_ctx.user?.phone ?? "_")}</div></div><div class="" data-v-097c9901><div class="text-sm" data-v-097c9901>${ssrInterpolate(unref(config).useString("birthdate"))}:</div><div class="text-xs font-semibold" data-v-097c9901>${ssrInterpolate(unref(toJalali)(_ctx.user?.birthday ?? "_"))}</div></div><div class="" data-v-097c9901><div class="text-sm" data-v-097c9901>${ssrInterpolate(unref(config).useString("email"))}:</div><div class="text-xs font-semibold" data-v-097c9901>${ssrInterpolate(_ctx.user?.email ?? "_")}</div></div></div><div class="mt-4 flex" data-v-097c9901></div></div>`);
|
|
if (unref(config).isSeller) {
|
|
_push(`<div data-v-097c9901>`);
|
|
_push(ssrRenderComponent(_component_ATabs, {
|
|
activeKey: activeKey.value,
|
|
"onUpdate:activeKey": ($event) => activeKey.value = $event,
|
|
centered: "",
|
|
class: "instaTab"
|
|
}, {
|
|
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
if (_push2) {
|
|
_push2(ssrRenderComponent(_component_ATabPane, {
|
|
class: "!w-full",
|
|
key: "orders",
|
|
tab: unref(config).useString("orders")
|
|
}, {
|
|
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
if (_push3) {
|
|
_push3(`<div class="h-63vh pb-10vh overflow-y-auto px-3" data-v-097c9901${_scopeId2}>`);
|
|
_push3(ssrRenderComponent(_sfc_main$8, null, null, _parent3, _scopeId2));
|
|
_push3(`</div>`);
|
|
} else {
|
|
return [
|
|
createVNode("div", { class: "h-63vh pb-10vh overflow-y-auto px-3" }, [
|
|
createVNode(_sfc_main$8)
|
|
])
|
|
];
|
|
}
|
|
}),
|
|
_: 1
|
|
}, _parent2, _scopeId));
|
|
_push2(ssrRenderComponent(_component_ATabPane, {
|
|
class: "!w-full",
|
|
key: "saved",
|
|
tab: unref(config).useString("saved")
|
|
}, {
|
|
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
if (_push3) {
|
|
_push3(`<div class="h-63vh pb-10vh overflow-y-auto px-3" data-v-097c9901${_scopeId2}>`);
|
|
_push3(ssrRenderComponent(_sfc_main$9, null, null, _parent3, _scopeId2));
|
|
_push3(`</div>`);
|
|
} else {
|
|
return [
|
|
createVNode("div", { class: "h-63vh pb-10vh overflow-y-auto px-3" }, [
|
|
createVNode(_sfc_main$9)
|
|
])
|
|
];
|
|
}
|
|
}),
|
|
_: 1
|
|
}, _parent2, _scopeId));
|
|
} else {
|
|
return [
|
|
createVNode(_component_ATabPane, {
|
|
class: "!w-full",
|
|
key: "orders",
|
|
tab: unref(config).useString("orders")
|
|
}, {
|
|
default: withCtx(() => [
|
|
createVNode("div", { class: "h-63vh pb-10vh overflow-y-auto px-3" }, [
|
|
createVNode(_sfc_main$8)
|
|
])
|
|
]),
|
|
_: 1
|
|
}, 8, ["tab"]),
|
|
createVNode(_component_ATabPane, {
|
|
class: "!w-full",
|
|
key: "saved",
|
|
tab: unref(config).useString("saved")
|
|
}, {
|
|
default: withCtx(() => [
|
|
createVNode("div", { class: "h-63vh pb-10vh overflow-y-auto px-3" }, [
|
|
createVNode(_sfc_main$9)
|
|
])
|
|
]),
|
|
_: 1
|
|
}, 8, ["tab"])
|
|
];
|
|
}
|
|
}),
|
|
_: 1
|
|
}, _parent));
|
|
_push(`</div>`);
|
|
} else {
|
|
_push(`<!---->`);
|
|
}
|
|
_push(`</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("views/base/pages/userProf/components/Customer.vue");
|
|
return _sfc_setup$3 ? _sfc_setup$3(props, ctx) : void 0;
|
|
};
|
|
const Customer = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-097c9901"]]);
|
|
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
__name: "ProfileSkeleton",
|
|
__ssrInlineRender: true,
|
|
setup(__props) {
|
|
const isLoaded = ref(false);
|
|
const skeletonRatio = ref(null);
|
|
const skeletonSize = reactive(
|
|
useElementSize$1(skeletonRatio, { width: 0, height: 0 }, { box: "border-box" })
|
|
);
|
|
return (_ctx, _push, _parent, _attrs) => {
|
|
if (isLoaded.value) {
|
|
_push(`<div${ssrRenderAttrs(mergeProps({
|
|
ref_key: "skeletonRatio",
|
|
ref: skeletonRatio,
|
|
class: "h-fit"
|
|
}, _attrs))}>`);
|
|
_push(ssrRenderComponent(unref(ContentLoader), {
|
|
width: skeletonSize.width,
|
|
height: "760"
|
|
}, {
|
|
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
if (_push2) {
|
|
_push2(`<rect x="0" y="0" rx="0" ry="0"${ssrRenderAttr("width", skeletonSize.width)} height="40"${_scopeId}></rect><circle cx="60" cy="90" r="40"${_scopeId}></circle><rect x="120" y="90" rx="3" ry="3" width="70" height="30"${_scopeId}></rect><rect x="220" y="90" rx="3" ry="3" width="70" height="30"${_scopeId}></rect><rect x="320" y="90" rx="3" ry="3" width="70" height="30"${_scopeId}></rect><rect x="10" y="160" rx="3" ry="3" width="70" height="10"${_scopeId}></rect><rect x="10" y="180" rx="3" ry="3" width="200" height="10"${_scopeId}></rect><rect x="10" y="200" rx="3" ry="3" width="400" height="10"${_scopeId}></rect><rect x="10" y="220" rx="3" ry="3" width="400" height="10"${_scopeId}></rect><rect x="10" y="250" rx="3" ry="3"${ssrRenderAttr("width", skeletonSize.width / 2 - 15)} height="30"${_scopeId}></rect><rect${ssrRenderAttr("x", skeletonSize.width / 2 + 5)} y="250" rx="3" ry="3"${ssrRenderAttr("width", skeletonSize.width / 2 - 15)} height="30"${_scopeId}></rect><rect x="0" y="310" rx="3" ry="3"${ssrRenderAttr("width", skeletonSize.width / 3 - 2)}${ssrRenderAttr("height", skeletonSize.width / 3 - 2)}${_scopeId}></rect><rect${ssrRenderAttr("x", skeletonSize.width / 3)} y="310" rx="3" ry="3"${ssrRenderAttr("width", skeletonSize.width / 3 - 2)}${ssrRenderAttr("height", skeletonSize.width / 3 - 2)}${_scopeId}></rect><rect${ssrRenderAttr("x", 2 * skeletonSize.width / 3)} y="310" rx="3" ry="3"${ssrRenderAttr("width", skeletonSize.width / 3 - 2)}${ssrRenderAttr("height", skeletonSize.width / 3 - 2)}${_scopeId}></rect><rect x="0"${ssrRenderAttr("y", 311 + skeletonSize.width / 3)} rx="3" ry="3"${ssrRenderAttr("width", skeletonSize.width / 3 - 2)}${ssrRenderAttr("height", skeletonSize.width / 3 - 2)}${_scopeId}></rect><rect${ssrRenderAttr("x", skeletonSize.width / 3)}${ssrRenderAttr("y", 311 + skeletonSize.width / 3)} rx="3" ry="3"${ssrRenderAttr("width", skeletonSize.width / 3 - 2)}${ssrRenderAttr("height", skeletonSize.width / 3 - 2)}${_scopeId}></rect><rect${ssrRenderAttr("x", 2 * skeletonSize.width / 3)}${ssrRenderAttr("y", 311 + skeletonSize.width / 3)} rx="3" ry="3"${ssrRenderAttr("width", skeletonSize.width / 3 - 2)}${ssrRenderAttr("height", skeletonSize.width / 3 - 2)}${_scopeId}></rect><rect x="0"${ssrRenderAttr("y", 312 + 2 * skeletonSize.width / 3)} rx="3" ry="3"${ssrRenderAttr("width", skeletonSize.width / 3 - 2)}${ssrRenderAttr("height", skeletonSize.width / 3 - 2)}${_scopeId}></rect><rect${ssrRenderAttr("x", skeletonSize.width / 3)}${ssrRenderAttr("y", 312 + 2 * skeletonSize.width / 3)} rx="3" ry="3"${ssrRenderAttr("width", skeletonSize.width / 3 - 2)}${ssrRenderAttr("height", skeletonSize.width / 3 - 2)}${_scopeId}></rect><rect${ssrRenderAttr("x", 2 * skeletonSize.width / 3)}${ssrRenderAttr("y", 312 + 2 * skeletonSize.width / 3)} rx="3" ry="3"${ssrRenderAttr("width", skeletonSize.width / 3 - 2)}${ssrRenderAttr("height", skeletonSize.width / 3 - 2)}${_scopeId}></rect>`);
|
|
} else {
|
|
return [
|
|
createVNode("rect", {
|
|
x: "0",
|
|
y: "0",
|
|
rx: "0",
|
|
ry: "0",
|
|
width: skeletonSize.width,
|
|
height: "40"
|
|
}, null, 8, ["width"]),
|
|
createVNode("circle", {
|
|
cx: "60",
|
|
cy: "90",
|
|
r: "40"
|
|
}),
|
|
createVNode("rect", {
|
|
x: "120",
|
|
y: "90",
|
|
rx: "3",
|
|
ry: "3",
|
|
width: "70",
|
|
height: "30"
|
|
}),
|
|
createVNode("rect", {
|
|
x: "220",
|
|
y: "90",
|
|
rx: "3",
|
|
ry: "3",
|
|
width: "70",
|
|
height: "30"
|
|
}),
|
|
createVNode("rect", {
|
|
x: "320",
|
|
y: "90",
|
|
rx: "3",
|
|
ry: "3",
|
|
width: "70",
|
|
height: "30"
|
|
}),
|
|
createVNode("rect", {
|
|
x: "10",
|
|
y: "160",
|
|
rx: "3",
|
|
ry: "3",
|
|
width: "70",
|
|
height: "10"
|
|
}),
|
|
createVNode("rect", {
|
|
x: "10",
|
|
y: "180",
|
|
rx: "3",
|
|
ry: "3",
|
|
width: "200",
|
|
height: "10"
|
|
}),
|
|
createVNode("rect", {
|
|
x: "10",
|
|
y: "200",
|
|
rx: "3",
|
|
ry: "3",
|
|
width: "400",
|
|
height: "10"
|
|
}),
|
|
createVNode("rect", {
|
|
x: "10",
|
|
y: "220",
|
|
rx: "3",
|
|
ry: "3",
|
|
width: "400",
|
|
height: "10"
|
|
}),
|
|
createVNode("rect", {
|
|
x: "10",
|
|
y: "250",
|
|
rx: "3",
|
|
ry: "3",
|
|
width: skeletonSize.width / 2 - 15,
|
|
height: "30"
|
|
}, null, 8, ["width"]),
|
|
createVNode("rect", {
|
|
x: skeletonSize.width / 2 + 5,
|
|
y: "250",
|
|
rx: "3",
|
|
ry: "3",
|
|
width: skeletonSize.width / 2 - 15,
|
|
height: "30"
|
|
}, null, 8, ["x", "width"]),
|
|
createVNode("rect", {
|
|
x: "0",
|
|
y: "310",
|
|
rx: "3",
|
|
ry: "3",
|
|
width: skeletonSize.width / 3 - 2,
|
|
height: skeletonSize.width / 3 - 2
|
|
}, null, 8, ["width", "height"]),
|
|
createVNode("rect", {
|
|
x: skeletonSize.width / 3,
|
|
y: "310",
|
|
rx: "3",
|
|
ry: "3",
|
|
width: skeletonSize.width / 3 - 2,
|
|
height: skeletonSize.width / 3 - 2
|
|
}, null, 8, ["x", "width", "height"]),
|
|
createVNode("rect", {
|
|
x: 2 * skeletonSize.width / 3,
|
|
y: "310",
|
|
rx: "3",
|
|
ry: "3",
|
|
width: skeletonSize.width / 3 - 2,
|
|
height: skeletonSize.width / 3 - 2
|
|
}, null, 8, ["x", "width", "height"]),
|
|
createVNode("rect", {
|
|
x: "0",
|
|
y: 311 + skeletonSize.width / 3,
|
|
rx: "3",
|
|
ry: "3",
|
|
width: skeletonSize.width / 3 - 2,
|
|
height: skeletonSize.width / 3 - 2
|
|
}, null, 8, ["y", "width", "height"]),
|
|
createVNode("rect", {
|
|
x: skeletonSize.width / 3,
|
|
y: 311 + skeletonSize.width / 3,
|
|
rx: "3",
|
|
ry: "3",
|
|
width: skeletonSize.width / 3 - 2,
|
|
height: skeletonSize.width / 3 - 2
|
|
}, null, 8, ["x", "y", "width", "height"]),
|
|
createVNode("rect", {
|
|
x: 2 * skeletonSize.width / 3,
|
|
y: 311 + skeletonSize.width / 3,
|
|
rx: "3",
|
|
ry: "3",
|
|
width: skeletonSize.width / 3 - 2,
|
|
height: skeletonSize.width / 3 - 2
|
|
}, null, 8, ["x", "y", "width", "height"]),
|
|
createVNode("rect", {
|
|
x: "0",
|
|
y: 312 + 2 * skeletonSize.width / 3,
|
|
rx: "3",
|
|
ry: "3",
|
|
width: skeletonSize.width / 3 - 2,
|
|
height: skeletonSize.width / 3 - 2
|
|
}, null, 8, ["y", "width", "height"]),
|
|
createVNode("rect", {
|
|
x: skeletonSize.width / 3,
|
|
y: 312 + 2 * skeletonSize.width / 3,
|
|
rx: "3",
|
|
ry: "3",
|
|
width: skeletonSize.width / 3 - 2,
|
|
height: skeletonSize.width / 3 - 2
|
|
}, null, 8, ["x", "y", "width", "height"]),
|
|
createVNode("rect", {
|
|
x: 2 * skeletonSize.width / 3,
|
|
y: 312 + 2 * skeletonSize.width / 3,
|
|
rx: "3",
|
|
ry: "3",
|
|
width: skeletonSize.width / 3 - 2,
|
|
height: skeletonSize.width / 3 - 2
|
|
}, null, 8, ["x", "y", "width", "height"])
|
|
];
|
|
}
|
|
}),
|
|
_: 1
|
|
}, _parent));
|
|
_push(`</div>`);
|
|
} else {
|
|
_push(`<!---->`);
|
|
}
|
|
};
|
|
}
|
|
});
|
|
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/pages/userProf/components/ProfileSkeleton.vue");
|
|
return _sfc_setup$2 ? _sfc_setup$2(props, ctx) : void 0;
|
|
};
|
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
__name: "index",
|
|
__ssrInlineRender: true,
|
|
async setup(__props) {
|
|
let __temp, __restore;
|
|
const router = useRouter$1();
|
|
useConfigStore();
|
|
const profileId = computed(() => router.currentRoute.value.params.id);
|
|
const userStore = useUserStore();
|
|
computed(() => router.currentRoute.value.query.isMain);
|
|
const { data: user, error } = ([__temp, __restore] = withAsyncContext(() => useAsyncData(
|
|
"user-profile",
|
|
() => getOneUser(profileId.value ?? 0)
|
|
)), __temp = await __temp, __restore(), __temp);
|
|
return (_ctx, _push, _parent, _attrs) => {
|
|
if (unref(user) && !unref(loading)) {
|
|
_push(`<!--[-->`);
|
|
if (unref(user)?.type === "store" && !unref(userStore)?.user?.main || unref(router).currentRoute.value.query.isMain) {
|
|
_push(ssrRenderComponent(Seller, {
|
|
user: unref(user),
|
|
userId: profileId.value
|
|
}, null, _parent));
|
|
} else {
|
|
_push(ssrRenderComponent(Customer, { user: unref(user) }, null, _parent));
|
|
}
|
|
_push(`<!--]-->`);
|
|
} else {
|
|
_push(ssrRenderComponent(_sfc_main$2, mergeProps({ class: "w-full h-90vh" }, _attrs), null, _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("views/base/pages/userProf/index.vue");
|
|
return _sfc_setup$1 ? _sfc_setup$1(props, ctx) : void 0;
|
|
};
|
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
__name: "[id]",
|
|
__ssrInlineRender: true,
|
|
setup(__props) {
|
|
return (_ctx, _push, _parent, _attrs) => {
|
|
_push(ssrRenderComponent(_sfc_main$1, _attrs, null, _parent));
|
|
};
|
|
}
|
|
});
|
|
const _sfc_setup = _sfc_main.setup;
|
|
_sfc_main.setup = (props, ctx) => {
|
|
const ssrContext = useSSRContext();
|
|
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("pages/user_detail/[id].vue");
|
|
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
|
};
|
|
|
|
export { _sfc_main as default };
|
|
//# sourceMappingURL=_id_-CoZlxEqF.mjs.map
|