added downloding file

This commit is contained in:
2026-03-03 20:40:54 +03:30
parent a85df4984a
commit c3389fa077
307 changed files with 1866 additions and 1824 deletions
@@ -9,7 +9,7 @@ import { q as useElementSize, u as useRouter$1, a as useConfigStore, b as useUse
import { B as BasicIconOld } from './BasicIconOld-Booq7UXp.mjs';
import { _ as _export_sfc } from './_plugin-vue_export-helper-1tPrXgE0.mjs';
import { _ as _sfc_main$3 } from './like-D4L8S2C_.mjs';
import { b as _sfc_main$7, a as _sfc_main$5, e as _sfc_main$6 } from './moreOptionProduct-CexaIM-i.mjs';
import { b as _sfc_main$7, a as _sfc_main$5, e as _sfc_main$6 } from './moreOptionProduct-C93aAhOp.mjs';
import { ContentLoader } from 'vue-content-loader';
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
@@ -21,7 +21,7 @@ import { g as getMergedStatus, a as getStatusClassNames } from './index-BTlbWWOl
import { a as slideDownOut, b as slideUpOut, c as slideDownIn, d as slideUpIn, i as initSlideMotion } from './shallowequal-CJsWvZb3.mjs';
import { _ as __nuxt_component_1 } from './FormItem-Uo-Qw9vC.mjs';
import { _ as __nuxt_component_1$1 } from './index-l8e9lvT3.mjs';
import { _ as _sfc_main$8, b as _sfc_main$7$1, a as _sfc_main$5$1, e as _sfc_main$6$1, C as CommentAddEdit } from './moreOptionProduct-CexaIM-i.mjs';
import { _ as _sfc_main$8, b as _sfc_main$7$1, a as _sfc_main$5$1, e as _sfc_main$6$1, C as CommentAddEdit } from './moreOptionProduct-C93aAhOp.mjs';
import { _ as _sfc_main$9 } from './like-D4L8S2C_.mjs';
import { u as useAsyncData } from './asyncData-DVPmuEBB.mjs';
import { B as Badge } from './index-CY26U1sZ.mjs';
@@ -71,7 +71,7 @@ import 'moment-jalaali';
import 'date-fns';
import 'date-fns/locale';
import 'vue-content-loader';
import './product-CMP8dkW4.mjs';
import './product-qwehvGHt.mjs';
import 'perfect-debounce';
import './isNumeric-BvXfUD6Q.mjs';
File diff suppressed because one or more lines are too long
@@ -1,6 +1,6 @@
import { defineComponent, useSSRContext } from 'vue';
import { ssrRenderComponent } from 'vue/server-renderer';
import { _ as _sfc_main$1 } from './index-BNjxpfBc.mjs';
import { _ as _sfc_main$1 } from './index-BW_QI7YA.mjs';
import { aM as useRoute$1, aY as useRouteStore } from './server.mjs';
import './CropperModal-Bf6YuAAD.mjs';
import './BasicButton-7YIRCRg8.mjs';
@@ -15,7 +15,7 @@ import 'vue-advanced-cropper';
import './close_light-DbrEdRZI.mjs';
import '@capacitor/camera';
import '@capacitor/core';
import './product-CMP8dkW4.mjs';
import './product-qwehvGHt.mjs';
import 'pinia';
import 'lodash-es';
import './post_loading-CMOcYm9B.mjs';
@@ -2,7 +2,7 @@ import { defineComponent, ref, mergeProps, unref, withCtx, createTextVNode, toDi
import { ssrRenderAttrs, ssrRenderComponent, ssrInterpolate, ssrRenderList, ssrRenderAttr } from 'vue/server-renderer';
import { Swiper, SwiperSlide } from 'swiper/vue';
import { EffectCoverflow, Pagination } from 'swiper/modules';
import { m as mediaFilesUrl } from './product-CMP8dkW4.mjs';
import { m as mediaFilesUrl } from './product-qwehvGHt.mjs';
import { B as BasicIconOld } from './BasicIconOld-Booq7UXp.mjs';
import { a as useConfigStore, u as useRouter$1 } from './server.mjs';
import { B as BaseDatePicker, a as BaseDatePickerJalali } from './BaseDatePicker-D3_e-ycp.mjs';
@@ -37,7 +37,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
icon: unref(config).isRTL ? "vuesax-linear:arrow-right" : "vuesax-linear:arrow-left",
onClick: ($event) => unref(router).back()
}, null, _parent));
_push(`<div font-semibold>${ssrInterpolate(unref(config).useString("newStory"))}</div></div><div class="text-primary text-sm">`);
_push(`<div font-semibold>${ssrInterpolate(unref(config).useString("newStory"))}</div></div><div class="text-primary text-sm cursor-pointer">`);
_push(ssrRenderComponent(_component_a_spin, { spinning: loading.value }, {
default: withCtx((_, _push2, _parent2, _scopeId) => {
if (_push2) {
@@ -5,7 +5,7 @@ import { _ as _imports_0 } from './close_light-DbrEdRZI.mjs';
import { Camera } from '@capacitor/camera';
import { Capacitor } from '@capacitor/core';
import { u as useRouter$1, a as useConfigStore, aS as useRoute, aY as useRouteStore, d as api$1 } from './server.mjs';
import { m as mediaFilesUrl, p as previewImg, o as original, l as loading, d as findEdit, r as resetFormFields, e as handleProductCropped, u as useProductStore, i as items, g as previewImgPos, j as originalFile } from './product-CMP8dkW4.mjs';
import { m as mediaFilesUrl, p as previewImg, o as original, l as loading, d as findEdit, r as resetFormFields, e as handleProductCropped, u as useProductStore, i as items, g as previewImgPos, j as originalFile } from './product-qwehvGHt.mjs';
import { i as img_gif } from './post_loading-CMOcYm9B.mjs';
import { B as BasicIconOld } from './BasicIconOld-Booq7UXp.mjs';
import { S as Spin } from './index-CO_xVqO1.mjs';
@@ -210,7 +210,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
_push(ssrRenderComponent(_component_a_spin, { spinning: unref(loading) }, {
default: withCtx((_, _push2, _parent2, _scopeId) => {
if (_push2) {
_push2(`<div class="w-full h-full bg-black text-white"${_scopeId}><div class="flex sticky top-0 w-full p-4 gap-8 justify-between items-center"${_scopeId}><div class="flex gap-8 items-center"${_scopeId}><img${ssrRenderAttr("src", _imports_0)}${ssrRenderAttr("alt", unref(config).appName.en)} class="w-4"${_scopeId}><div class="font-semibold text-lg"${_scopeId}>${ssrInterpolate(unref(findEdit)(unref(route).name) ? unref(config).useString("editProduct") : unref(config).useString("newProduct"))}</div></div><div class="text-primary text-sm"${_scopeId}>${ssrInterpolate(unref(config).useString("next"))}</div></div><div class="sm:flex gap-10"${_scopeId}><div class="sticky bg-black top-60px z-1"${_scopeId}><div class="aspect-square flex items-center justify-center sm:w-30vw"${_scopeId}>`);
_push2(`<div class="w-full h-full bg-black text-white"${_scopeId}><div class="flex sticky top-0 w-full p-4 gap-8 justify-between items-center"${_scopeId}><div class="flex gap-8 items-center"${_scopeId}><img${ssrRenderAttr("src", _imports_0)}${ssrRenderAttr("alt", unref(config).appName.en)} class="cursor-pointer w-4"${_scopeId}><div class="font-semibold text-lg"${_scopeId}>${ssrInterpolate(unref(findEdit)(unref(route).name) ? unref(config).useString("editProduct") : unref(config).useString("newProduct"))}</div></div><div class="text-primary text-sm cursor-pointer"${_scopeId}>${ssrInterpolate(unref(config).useString("next"))}</div></div><div class="sm:flex gap-10"${_scopeId}><div class="sticky bg-black top-60px z-1"${_scopeId}><div class="aspect-square flex items-center justify-center sm:w-30vw"${_scopeId}>`);
if (unref(previewImg)) {
_push2(`<div class="relative w-full"${_scopeId}><img${ssrRenderAttrs(_temp0 = mergeProps({
alt: unref(config).appName.en,
@@ -270,13 +270,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
createVNode("img", {
src: _imports_0,
alt: unref(config).appName.en,
class: "w-4",
class: "cursor-pointer w-4",
onClick: onBackPage
}, null, 8, ["alt"]),
createVNode("div", { class: "font-semibold text-lg" }, toDisplayString(unref(findEdit)(unref(route).name) ? unref(config).useString("editProduct") : unref(config).useString("newProduct")), 1)
]),
createVNode("div", {
class: "text-primary text-sm",
class: "text-primary text-sm cursor-pointer",
onClick: goNextPage
}, toDisplayString(unref(config).useString("next")), 1)
]),
@@ -3,7 +3,7 @@ import { defineComponent, ref, watch, unref, withCtx, createTextVNode, toDisplay
import { ssrRenderAttr, ssrInterpolate, ssrRenderComponent, ssrRenderList } from 'vue/server-renderer';
import { _ as _imports_0 } from './close_light-DbrEdRZI.mjs';
import { u as useRouter$1, a as useConfigStore } from './server.mjs';
import { m as mediaFilesUrl, p as previewImg, h as handleCropped } from './product-CMP8dkW4.mjs';
import { m as mediaFilesUrl, p as previewImg, h as handleCropped } from './product-qwehvGHt.mjs';
import { B as BasicIconOld } from './BasicIconOld-Booq7UXp.mjs';
import { _ as __nuxt_component_1, a as __nuxt_component_2 } from './RadioButton-CE-ccpG2.mjs';
@@ -30,7 +30,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
const _component_a_radio_group = __nuxt_component_1;
const _component_a_radio_button = __nuxt_component_2;
const _component_CropperModal = __nuxt_component_3;
_push(`<!--[--><div class="w-full h-screen bg-black text-white"><div class="flex w-full p-4 gap-8 justify-between items-center"><div class="flex gap-8 items-center"><img${ssrRenderAttr("src", _imports_0)}${ssrRenderAttr("alt", unref(config).appName.en)} class="w-4"><div class="font-semibold text-lg">${ssrInterpolate(unref(config).useString("newStory"))}</div></div><div class="text-primary text-sm">${ssrInterpolate(unref(config).useString("next"))}</div></div><div class="w-full flex items-center justify-center relative">`);
_push(`<!--[--><div class="w-full h-screen bg-black text-white"><div class="flex w-full p-4 gap-8 justify-between items-center"><div class="flex gap-8 items-center"><img${ssrRenderAttr("src", _imports_0)}${ssrRenderAttr("alt", unref(config).appName.en)} class="cursor-pointer w-4"><div class="font-semibold text-lg">${ssrInterpolate(unref(config).useString("newStory"))}</div></div><div class="text-primary text-sm">${ssrInterpolate(unref(config).useString("next"))}</div></div><div class="w-full flex items-center justify-center relative">`);
if (unref(previewImg)) {
_push(`<img${ssrRenderAttr("src", unref(previewImg))}${ssrRenderAttr("alt", unref(config).appName.en)} class="w-full aspect-square object-contain">`);
} else if (unref(mediaFilesUrl).length === 0) {
@@ -1,6 +1,6 @@
import { defineComponent, useSSRContext } from 'vue';
import { ssrRenderComponent } from 'vue/server-renderer';
import { _ as _sfc_main$1 } from './index-Dr8Kut82.mjs';
import { _ as _sfc_main$1 } from './index-D-cPPZxB.mjs';
import './server.mjs';
import '../nitro/nitro.mjs';
import 'node:http';
@@ -1,9 +1,9 @@
import { u as useRouter$1, a as useConfigStore, b as useUserStore, m as useIntersectionObserver, _ as __nuxt_component_0, n as getToken, d as api$1 } from './server.mjs';
import { defineComponent, computed, ref, withAsyncContext, provide, mergeProps, unref, useSSRContext } from 'vue';
import { ssrRenderAttrs, ssrRenderClass, ssrRenderComponent, ssrInterpolate, ssrRenderList, ssrRenderStyle } from 'vue/server-renderer';
import { P as Post, _ as _sfc_main$1 } from './PostCardSkeleton-DuukMIH_.mjs';
import { P as Post, _ as _sfc_main$1 } from './PostCardSkeleton-Bf-WUNfS.mjs';
import { u as useUserPostStore } from './userPostsStore-zgAQCVWR.mjs';
import { C as CommentAddEdit, _ as _sfc_main$2, d as deletePostLike, c as createPostLike } from './moreOptionProduct-CexaIM-i.mjs';
import { C as CommentAddEdit, _ as _sfc_main$2, d as deletePostLike, c as createPostLike } from './moreOptionProduct-C93aAhOp.mjs';
import { d as deleteSave, c as createSave } from './save-3yOnAiJS.mjs';
import { u as useAsyncData } from './asyncData-DVPmuEBB.mjs';
@@ -2,10 +2,10 @@ import { defineComponent, computed, mergeProps, unref, ref, watch, withAsyncCont
import { ssrRenderComponent, ssrRenderAttrs, ssrInterpolate, ssrRenderClass, ssrRenderList, ssrRenderStyle } from 'vue/server-renderer';
import { a as useConfigStore, u as useRouter$1, b as useUserStore, o as useCartStore, p as usePriceStore, _ as __nuxt_component_0$1, m as useIntersectionObserver, n as getToken, d as api$1 } from './server.mjs';
import { L as Logo } from './Logo-CS_PsVSS.mjs';
import { a as _sfc_main$5, C as CommentAddEdit, _ as _sfc_main$8, d as deletePostLike, c as createPostLike } from './moreOptionProduct-CexaIM-i.mjs';
import { P as Post, _ as _sfc_main$7 } from './PostCardSkeleton-DuukMIH_.mjs';
import { a as _sfc_main$5, C as CommentAddEdit, _ as _sfc_main$8, d as deletePostLike, c as createPostLike } from './moreOptionProduct-C93aAhOp.mjs';
import { P as Post, _ as _sfc_main$7 } from './PostCardSkeleton-Bf-WUNfS.mjs';
import { d as deleteSave, c as createSave } from './save-3yOnAiJS.mjs';
import { u as useProductStore } from './product-CMP8dkW4.mjs';
import { u as useProductStore } from './product-qwehvGHt.mjs';
import { u as useMediaStore } from './media-Cj7oyS0P.mjs';
import { u as useAsyncData } from './asyncData-DVPmuEBB.mjs';
import { storeToRefs } from 'pinia';
@@ -1,6 +1,6 @@
import { defineComponent, useSSRContext } from 'vue';
import { ssrRenderComponent } from 'vue/server-renderer';
import { _ as _sfc_main$1 } from './index-Dr8Kut82.mjs';
import { _ as _sfc_main$1 } from './index-D-cPPZxB.mjs';
import './server.mjs';
import '../nitro/nitro.mjs';
import 'node:http';
@@ -1,8 +1,8 @@
import { defineComponent, useSSRContext } from 'vue';
import { ssrRenderComponent } from 'vue/server-renderer';
import { _ as _sfc_main$1 } from './index-B8Xh3cyY.mjs';
import { _ as _sfc_main$1 } from './index-JrRLwQMm.mjs';
import { aM as useRoute$1, aY as useRouteStore } from './server.mjs';
import './product-CMP8dkW4.mjs';
import './product-qwehvGHt.mjs';
import 'pinia';
import 'lodash-es';
import '../nitro/nitro.mjs';
@@ -1,7 +1,7 @@
import { a as useConfigStore, aS as useRoute, aX as useRouter, _ as __nuxt_component_0 } from './server.mjs';
import { defineComponent, ref, computed, watch, nextTick, shallowRef, useSSRContext } from 'vue';
import { defineComponent, ref, reactive, computed, watch, nextTick, useSSRContext } from 'vue';
import { ssrRenderComponent } from 'vue/server-renderer';
import { f as formFields, s as selectedFeatures, a as setItems, i as items, v as variants, b as updateMyAttrs, c as myAttributes, u as useProductStore } from './product-CMP8dkW4.mjs';
import { f as formFields, s as selectedFeatures, a as setItems, i as items, v as variants, b as updateMyAttrs, c as myAttributes, u as useProductStore } from './product-qwehvGHt.mjs';
import { differenceBy, cloneDeep } from 'lodash-es';
const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -10,7 +10,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
emits: ["update:visible", "update:isEdit", "success"],
setup(__props, { emit: __emit }) {
useConfigStore();
ref("1");
const collections = ref(null);
ref(false);
ref(false);
@@ -19,6 +18,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
const loading = ref(false);
const dragKey = ref(0);
let selectedFeaturesLength = 0;
reactive({
height: "40px",
lineHeight: "40px"
});
const childCollections = ref(null);
computed(() => {
const parentId = parentCollectionId.value;
@@ -41,7 +44,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
computed(() => formFields.collection_id === 1 || formFields.collection_id === 2 || parentCollectionId.value == 1 || parentCollectionId.value == 2);
computed({
get() {
if (formFields?.collections?.parent_id == formFields.collections.id)
if (formFields?.collections?.parent_id == formFields.collections?.id)
return void 0;
return formFields?.collections?.parent_id ? formFields?.collections.id : void 0;
},
@@ -57,7 +60,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
try {
loading.value = true;
await setItems(new_features);
selectedFeaturesLength = selectedFeatures.value.length;
if (new_features[new_features.length - 1] != null) selectedFeaturesLength = selectedFeatures.value.length;
dragKey.value++;
} catch (e) {
console.error(e);
@@ -69,7 +72,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
selectedFeaturesLength = selectedFeatures.value.length;
const index = items.value.findIndex((x) => deletedObject[0] === x.id);
if (index !== -1) {
variants.value.forEach((val) => {
variants.value?.forEach((val) => {
val.attribute_values[index] = null;
});
items.value.splice(index, 1);
@@ -80,6 +83,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
watch(
items,
(newValue) => {
console.log("**********************");
updateMyAttrs(items.value);
},
{ deep: true }
@@ -89,8 +93,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
}, { deep: true });
watch(() => formFields.variants?.map((v) => v?.attribute_values), () => {
nextTick(() => {
if (formRef.value && formFields.variants?.length > 0 && myAttributes.value?.length > 0) {
formFields.variants.forEach((variant, variantIndex) => {
if (formRef.value && (formFields.variants?.length ?? 0) > 0 && myAttributes.value?.length > 0) {
formFields.variants?.forEach((variant, variantIndex) => {
if (!variant) return;
const attrValues = variant.attribute_values || {};
myAttributes.value.forEach((attr, attrIndex) => {
@@ -115,17 +119,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
const formRef = ref();
ref(["0"]);
cloneDeep(formFields);
ref(null);
ref([]);
ref(false);
ref([{ field: "athlete", rowDrag: true }, { field: "country" }]);
shallowRef();
ref([]);
ref({
width: 170,
filter: true
});
ref(null);
return (_ctx, _push, _parent, _attrs) => {
const _component_ClientOnly = __nuxt_component_0;
_push(ssrRenderComponent(_component_ClientOnly, _attrs, {}, _parent));
@@ -1,6 +1,6 @@
import { defineComponent, useSSRContext } from 'vue';
import { ssrRenderComponent } from 'vue/server-renderer';
import { _ as _sfc_main$1 } from './index-Fhir6ge5.mjs';
import { _ as _sfc_main$1 } from './index-CxFgEAx2.mjs';
import './server.mjs';
import '../nitro/nitro.mjs';
import 'node:http';
@@ -26,7 +26,7 @@ import 'stylis';
import 'vue-types';
import '@ant-design/icons-vue';
import 'unhead/utils';
import './PostCardSkeleton-DuukMIH_.mjs';
import './PostCardSkeleton-Bf-WUNfS.mjs';
import './empty_user-DSxcM_ac.mjs';
import './useDateTime-iTLoRLEX.mjs';
import 'moment';
@@ -40,7 +40,7 @@ import './post_loading-CMOcYm9B.mjs';
import './BasicIconOld-Booq7UXp.mjs';
import './_plugin-vue_export-helper-1tPrXgE0.mjs';
import './like-D4L8S2C_.mjs';
import './moreOptionProduct-CexaIM-i.mjs';
import './moreOptionProduct-C93aAhOp.mjs';
import './index-zsqPNrGJ.mjs';
import '@vueuse/gesture';
import '@headlessui/vue';
@@ -62,7 +62,7 @@ import './index-BTlbWWOl.mjs';
import 'lodash-es/isPlainObject.js';
import 'resize-observer-polyfill';
import 'vue-content-loader';
import './product-CMP8dkW4.mjs';
import './product-qwehvGHt.mjs';
import './userPostsStore-zgAQCVWR.mjs';
import './media-CiMHc-Ka.mjs';
import './save-3yOnAiJS.mjs';
@@ -1,6 +1,6 @@
import { defineComponent, useSSRContext } from 'vue';
import { ssrRenderComponent } from 'vue/server-renderer';
import { _ as _sfc_main$1 } from './index-B8Xh3cyY.mjs';
import { _ as _sfc_main$1 } from './index-JrRLwQMm.mjs';
import './server.mjs';
import '../nitro/nitro.mjs';
import 'node:http';
@@ -26,7 +26,7 @@ import 'stylis';
import 'vue-types';
import '@ant-design/icons-vue';
import 'unhead/utils';
import './product-CMP8dkW4.mjs';
import './product-qwehvGHt.mjs';
const _sfc_main = /* @__PURE__ */ defineComponent({
__name: "infProduct",
@@ -1,9 +1,9 @@
import { defineComponent, useSSRContext } from 'vue';
import { ssrRenderComponent } from 'vue/server-renderer';
import { _ as _sfc_main$1 } from './index-2wWjnsqI.mjs';
import { _ as _sfc_main$1 } from './index-BFTmE8bX.mjs';
import 'swiper/vue';
import 'swiper/modules';
import './product-CMP8dkW4.mjs';
import './product-qwehvGHt.mjs';
import 'pinia';
import './server.mjs';
import '../nitro/nitro.mjs';
@@ -1,9 +1,9 @@
import { defineComponent, useSSRContext } from 'vue';
import { ssrRenderComponent } from 'vue/server-renderer';
import { _ as _sfc_main$1 } from './index-2wWjnsqI.mjs';
import { _ as _sfc_main$1 } from './index-BFTmE8bX.mjs';
import 'swiper/vue';
import 'swiper/modules';
import './product-CMP8dkW4.mjs';
import './product-qwehvGHt.mjs';
import 'pinia';
import './server.mjs';
import '../nitro/nitro.mjs';
@@ -1,6 +1,6 @@
import { defineComponent, useSSRContext } from 'vue';
import { ssrRenderComponent } from 'vue/server-renderer';
import { _ as _sfc_main$1 } from './index-BNjxpfBc.mjs';
import { _ as _sfc_main$1 } from './index-BW_QI7YA.mjs';
import './CropperModal-Bf6YuAAD.mjs';
import './BasicButton-7YIRCRg8.mjs';
import '@ant-design/icons-vue';
@@ -36,7 +36,7 @@ import 'vue-advanced-cropper';
import './close_light-DbrEdRZI.mjs';
import '@capacitor/camera';
import '@capacitor/core';
import './product-CMP8dkW4.mjs';
import './product-qwehvGHt.mjs';
import './post_loading-CMOcYm9B.mjs';
import './RadioButton-CE-ccpG2.mjs';
import './FormItemContext-DTpHAXaY.mjs';
@@ -1,6 +1,6 @@
import { defineComponent, useSSRContext } from 'vue';
import { ssrRenderComponent } from 'vue/server-renderer';
import { _ as _sfc_main$1 } from './index-Bx09Pcrt.mjs';
import { _ as _sfc_main$1 } from './index-BuXrrnuw.mjs';
import './CropperModal-Bf6YuAAD.mjs';
import './BasicButton-7YIRCRg8.mjs';
import '@ant-design/icons-vue';
@@ -34,7 +34,7 @@ import './index-CO_xVqO1.mjs';
import 'throttle-debounce';
import 'vue-advanced-cropper';
import './close_light-DbrEdRZI.mjs';
import './product-CMP8dkW4.mjs';
import './product-qwehvGHt.mjs';
import './RadioButton-CE-ccpG2.mjs';
import './FormItemContext-DTpHAXaY.mjs';
import './Checkbox-BqbMrYFp.mjs';
@@ -1,6 +1,6 @@
import { defineComponent, useSSRContext } from 'vue';
import { ssrRenderComponent } from 'vue/server-renderer';
import { _ as _sfc_main$1 } from './index-Bx09Pcrt.mjs';
import { _ as _sfc_main$1 } from './index-BuXrrnuw.mjs';
import './CropperModal-Bf6YuAAD.mjs';
import './BasicButton-7YIRCRg8.mjs';
import '@ant-design/icons-vue';
@@ -34,7 +34,7 @@ import './index-CO_xVqO1.mjs';
import 'throttle-debounce';
import 'vue-advanced-cropper';
import './close_light-DbrEdRZI.mjs';
import './product-CMP8dkW4.mjs';
import './product-qwehvGHt.mjs';
import './RadioButton-CE-ccpG2.mjs';
import './FormItemContext-DTpHAXaY.mjs';
import './Checkbox-BqbMrYFp.mjs';
@@ -18,7 +18,7 @@ import { e as empty_user } from './empty_user-DSxcM_ac.mjs';
import { _ as _sfc_main$8 } from './like-D4L8S2C_.mjs';
import { _ as _export_sfc } from './_plugin-vue_export-helper-1tPrXgE0.mjs';
import { ContentLoader } from 'vue-content-loader';
import { u as useProductStore } from './product-CMP8dkW4.mjs';
import { u as useProductStore } from './product-qwehvGHt.mjs';
const genBaseStyle = (token) => {
const {
@@ -1,6 +1,6 @@
import { defineComponent, useSSRContext } from 'vue';
import { ssrRenderComponent } from 'vue/server-renderer';
import { _ as _sfc_main$1 } from './index-Fhir6ge5.mjs';
import { _ as _sfc_main$1 } from './index-CxFgEAx2.mjs';
import './server.mjs';
import '../nitro/nitro.mjs';
import 'node:http';
@@ -26,7 +26,7 @@ import 'stylis';
import 'vue-types';
import '@ant-design/icons-vue';
import 'unhead/utils';
import './PostCardSkeleton-DuukMIH_.mjs';
import './PostCardSkeleton-Bf-WUNfS.mjs';
import './empty_user-DSxcM_ac.mjs';
import './useDateTime-iTLoRLEX.mjs';
import 'moment';
@@ -40,7 +40,7 @@ import './post_loading-CMOcYm9B.mjs';
import './BasicIconOld-Booq7UXp.mjs';
import './_plugin-vue_export-helper-1tPrXgE0.mjs';
import './like-D4L8S2C_.mjs';
import './moreOptionProduct-CexaIM-i.mjs';
import './moreOptionProduct-C93aAhOp.mjs';
import './index-zsqPNrGJ.mjs';
import '@vueuse/gesture';
import '@headlessui/vue';
@@ -62,7 +62,7 @@ import './index-BTlbWWOl.mjs';
import 'lodash-es/isPlainObject.js';
import 'resize-observer-polyfill';
import 'vue-content-loader';
import './product-CMP8dkW4.mjs';
import './product-qwehvGHt.mjs';
import './userPostsStore-zgAQCVWR.mjs';
import './media-CiMHc-Ka.mjs';
import './save-3yOnAiJS.mjs';
@@ -129,12 +129,15 @@ const previewImg = ref();
const previewImgPos = ref();
const loading = ref(false);
const priceType = ref(1);
ref(false);
let temp = [];
const defaultVariant = ref();
const myAttributeValue = ref([]);
const myAttributes = ref([]);
const mediaFilesUrl = ref([]);
const original = ref({ url: void 0, index: 0 });
ref([]);
ref([]);
const originalFile = ref();
ref();
const items = ref([]);
@@ -153,6 +156,7 @@ const formFields = reactive(
sell_type: "numeric",
original_image: void 0,
product_attributes: [],
upload_files: [],
files: [],
price_type: "manual",
auto_calculate: false,
@@ -437,13 +441,15 @@ async function setItems(new_features) {
if (new_features[new_features.length - 1] != null)
featureTemp = await getOneFeature(new_features[new_features.length - 1]);
let feature;
feature = featureTemp[0];
Object.assign(feature, {
new_feature: [],
show_in_product: false,
show_in_variable: false
});
items.value.push(feature);
feature = featureTemp ? featureTemp[0] : null;
if (feature) {
Object.assign(feature, {
new_feature: [],
show_in_product: false,
show_in_variable: false
});
items.value.push(feature);
}
}
const findEdit = (val) => {
return val.split("-")[0] === "edit";
@@ -498,6 +504,7 @@ const useProductStore = defineStore("product", () => {
tempFormFields.count = tempFormFields.count ? parseInt(tempFormFields.count) : void 0;
tempFormFields.discount = tempFormFields.discount ? parseInt(tempFormFields.discount) : void 0;
tempFormFields.box_size = parseInt(tempFormFields.box_size);
tempFormFields.upload_files = formFields2.upload_files;
tempFormFields.variants?.forEach((val) => {
val.discount = val.discount ? parseInt(val.discount) : void 0;
});
+46 -14
View File
@@ -3667,12 +3667,12 @@ const _routes = [
{
name: __nuxt_page_meta$F?.name,
path: "/posts",
component: () => import('./posts-W6HnS4zP.mjs'),
component: () => import('./posts-jlgPUitL.mjs'),
children: [
{
name: "posts",
path: "",
component: () => import('./index-D8uDyAtN.mjs')
component: () => import('./index-oH6nKNY5.mjs')
}
]
},
@@ -3715,7 +3715,7 @@ const _routes = [
{
name: "home",
path: "/home",
component: () => import('./index-Jx6FzOg6.mjs')
component: () => import('./index-DDskoxMF.mjs')
},
{
name: "user",
@@ -3836,7 +3836,7 @@ const _routes = [
path: "/add/product",
meta: __nuxt_page_meta$l || {},
redirect: { "name": "add-product-inputProduct" },
component: () => import('./index-DM__n8Kw.mjs')
component: () => import('./index-DsBLrT_a.mjs')
},
{
name: "search-main",
@@ -3847,7 +3847,7 @@ const _routes = [
name: "add-story-infStory",
path: "/add/story/infStory",
meta: __nuxt_page_meta$k || {},
component: () => import('./infStory-BrPV8HgL.mjs')
component: () => import('./infStory-D1wk6_VX.mjs')
},
{
name: "user-store_request",
@@ -3864,13 +3864,13 @@ const _routes = [
{
name: "product_detail-id",
path: "/product_detail/:id()",
component: () => import('./_id_-DBHlWCuT.mjs')
component: () => import('./_id_-DN6hcMFk.mjs')
},
{
name: "add-story-inputStory",
path: "/add/story/inputStory",
meta: __nuxt_page_meta$h || {},
component: () => import('./inputStory-CZK2Vh3z.mjs')
component: () => import('./inputStory-CtazlfeZ.mjs')
},
{
name: "user-statistics_list",
@@ -3914,7 +3914,7 @@ const _routes = [
name: "add-product-infProduct",
path: "/add/product/infProduct",
meta: __nuxt_page_meta$a || {},
component: () => import('./infProduct-BgJA8nci.mjs')
component: () => import('./infProduct-Bd_PgchT.mjs')
},
{
name: "message-detail_message",
@@ -3933,25 +3933,25 @@ const _routes = [
name: "edit-product-id",
path: "/edit/product/:id()",
meta: __nuxt_page_meta$7 || {},
component: () => import('./index-B29qGH5j.mjs')
component: () => import('./index-C6w3WPPw.mjs')
},
{
name: "add-product-inputProduct",
path: "/add/product/inputProduct",
meta: __nuxt_page_meta$6 || {},
component: () => import('./inputProduct-wrB0TQE0.mjs')
component: () => import('./inputProduct-DkUhMFU0.mjs')
},
{
name: "edit-story-id-infStory",
path: "/edit/story/:id()/infStory",
meta: __nuxt_page_meta$5 || {},
component: () => import('./infStory-C_8rLelt.mjs')
component: () => import('./infStory-I2VbhMm6.mjs')
},
{
name: "edit-story-id-inputStory",
path: "/edit/story/:id()/inputStory",
meta: __nuxt_page_meta$4 || {},
component: () => import('./inputStory-B0fR_u3u.mjs')
component: () => import('./inputStory-BVlZXB9A.mjs')
},
{
name: "add-product-excel-infProductExcel",
@@ -3963,7 +3963,7 @@ const _routes = [
name: "edit-product-id-infProduct",
path: "/edit/product/:id()/infProduct",
meta: __nuxt_page_meta$2 || {},
component: () => import('./index-Bb_eA9Iv.mjs')
component: () => import('./index-DwBxpumr.mjs')
},
{
name: "add-product-excel-inputProductExcel",
@@ -3975,7 +3975,7 @@ const _routes = [
name: "edit-product-id-inputProduct",
path: "/edit/product/:id()/inputProduct",
meta: __nuxt_page_meta || {},
component: () => import('./index-BpWASEav.mjs')
component: () => import('./index-BCHzjXaB.mjs')
}
];
const _wrapInTransition = (props, children) => {
@@ -13491,6 +13491,10 @@ const strings = (val) => {
"fa": "در حال به‌روزرسانی...",
"en": "Updating..."
},
download: {
"fa": "دانلود",
"en": "Download"
},
welcomePleaseInputPhone: {
"fa": "لطفا برای ورود یا ثبت نام شماره موبایل خود را وارد کنید.",
"en": "Please input your phone for login or register."
@@ -13990,10 +13994,30 @@ const strings = (val) => {
"fa": `نشان دادن در صفحه محصول`,
"en": `Show in product page`
},
uploadDescription: {
"fa": `شما میتوانید یک فایل با حداکثر حجم 50 مگابایت در این قسمت آپلود کنید. اگر میخواهید فایل های بیشتری آپلود انتخاب کنید، لطفا ابتدا آنها را در سرویس های دیگر آپلود کنید و لینک فایل ها را پس از زدن بر روی دکمه لینک جدید، در ورودی های زیر وارد کنید.`,
"en": `You can upload only 50 Mb file. If you want to upload more than one file, please upload them into other services, then click on new link button and input your links.`
},
showInVariants: {
"fa": `نشان دادن در متغیر ها`,
"en": `Show in variants`
},
addLink: {
"fa": `افزودن لینک`,
"en": `add link`
},
pleaseFillPreviousInput: {
"fa": `لطفا ورودی قبلی را پر کنید`,
"en": `Please fill previous input`
},
pleaseInputLink: {
"fa": `لطفا لینک را وارد کنید`,
"en": `Please input link`
},
clickForChoosingFile: {
"fa": `برای انتخاب فابل کلیک کنید`,
"en": `Click for choosing file`
},
variants: {
"fa": `متغیر ها`,
"en": `Variants`
@@ -14034,6 +14058,14 @@ const strings = (val) => {
"fa": `محصول`,
"en": `PRODUCT `
},
sellType: {
"fa": `نوع فروش`,
"en": `Sell type `
},
downloadableFile: {
"fa": `فایل دانلودی`,
"en": `Downloadable file`
},
newProduct: {
"fa": `محصول جدید`,
"en": `New product `
File diff suppressed because it is too large Load Diff