first build
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { createVNode } from 'vue';
|
||||
import { b1 as Icon } from '../build/server.mjs';
|
||||
import { createVNode } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { b5 as Icon } from '../build/server.mjs';
|
||||
|
||||
// This icon file is generated automatically.
|
||||
var CheckOutlined$1 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" } }] }, "name": "check", "theme": "outlined" };
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { escapeHtml } from '@vue/shared';
|
||||
import { escapeHtml } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@nuxt/nitro-server/node_modules/@vue/shared/dist/shared.cjs.prod.js';
|
||||
|
||||
const _messages = { "appName": "Nuxt", "statusCode": 500, "statusMessage": "Internal server error", "description": "This page is temporarily unavailable.", "refresh": "Refresh this page" };
|
||||
const template = (messages) => {
|
||||
messages = { ..._messages, ...messages };
|
||||
return '<!DOCTYPE html><html lang="en"><head><title>' + escapeHtml(messages.statusCode) + " - " + escapeHtml(messages.statusMessage) + " | " + escapeHtml(messages.appName) + `</title><meta charset="utf-8"><meta content="width=device-width,initial-scale=1.0,minimum-scale=1.0" name="viewport"><script>!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)}).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();<\/script><style>*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1,h2{font-size:inherit;font-weight:inherit}h1,h2,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.grid{display:grid}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.max-w-520px{max-width:520px}.min-h-screen{min-height:100vh}.place-content-center{place-content:center}.overflow-hidden{overflow:hidden}.bg-white{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.px-2{padding-left:.5rem;padding-right:.5rem}.text-center{text-align:center}.text-\\[80px\\]{font-size:80px}.text-2xl{font-size:1.5rem;line-height:2rem}.text-\\[\\#020420\\]{--un-text-opacity:1;color:rgb(2 4 32/var(--un-text-opacity))}.text-\\[\\#64748B\\]{--un-text-opacity:1;color:rgb(100 116 139/var(--un-text-opacity))}.font-semibold{font-weight:600}.leading-none{line-height:1}.tracking-wide{letter-spacing:.025em}.font-sans{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.tabular-nums{--un-numeric-spacing:tabular-nums;font-variant-numeric:var(--un-ordinal) var(--un-slashed-zero) var(--un-numeric-figure) var(--un-numeric-spacing) var(--un-numeric-fraction)}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){.dark\\:bg-\\[\\#020420\\]{--un-bg-opacity:1;background-color:rgb(2 4 32/var(--un-bg-opacity))}.dark\\:text-white{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media (min-width:640px){.sm\\:text-\\[110px\\]{font-size:110px}.sm\\:text-3xl{font-size:1.875rem;line-height:2.25rem}}</style></head><body class="antialiased bg-white dark:bg-[#020420] dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-[#020420] tracking-wide"><div class="max-w-520px text-center"><h1 class="font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]">` + escapeHtml(messages.statusCode) + '</h1><h2 class="font-semibold mb-2 sm:text-3xl text-2xl">' + escapeHtml(messages.statusMessage) + '</h2><p class="mb-4 px-2 text-[#64748B] text-md">' + escapeHtml(messages.description) + "</p></div></body></html>";
|
||||
return '<!DOCTYPE html><html lang="en"><head><title>' + escapeHtml(messages.statusCode) + " - " + escapeHtml(messages.statusMessage) + " | " + escapeHtml(messages.appName) + `</title><meta charset="utf-8"><meta content="width=device-width,initial-scale=1.0,minimum-scale=1.0" name="viewport"><script>!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)}).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();<\/script><style>*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1,h2{font-size:inherit;font-weight:inherit}h1,h2,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.grid{display:grid}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.max-w-520px{max-width:520px}.min-h-screen{min-height:100vh}.place-content-center{place-content:center}.overflow-hidden{overflow:hidden}.bg-white{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.px-2{padding-left:.5rem;padding-right:.5rem}.text-center{text-align:center}.text-\\[80px\\]{font-size:80px}.text-2xl{font-size:1.5rem;line-height:2rem}.text-\\[\\#020420\\]{--un-text-opacity:1;color:rgb(2 4 32/var(--un-text-opacity))}.text-\\[\\#64748B\\]{--un-text-opacity:1;color:rgb(100 116 139/var(--un-text-opacity))}.font-semibold{font-weight:600}.leading-none{line-height:1}.tracking-wide{letter-spacing:.025em}.font-sans{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.tabular-nums{--un-numeric-spacing:tabular-nums;font-variant-numeric:var(--un-ordinal) var(--un-slashed-zero) var(--un-numeric-figure) var(--un-numeric-spacing) var(--un-numeric-fraction)}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media(prefers-color-scheme:dark){.dark\\:bg-\\[\\#020420\\]{--un-bg-opacity:1;background-color:rgb(2 4 32/var(--un-bg-opacity))}.dark\\:text-white{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media(min-width:640px){.sm\\:text-\\[110px\\]{font-size:110px}.sm\\:text-3xl{font-size:1.875rem;line-height:2.25rem}}</style></head><body class="antialiased bg-white dark:bg-[#020420] dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-[#020420] tracking-wide"><div class="max-w-520px text-center"><h1 class="font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]">` + escapeHtml(messages.statusCode) + '</h1><h2 class="font-semibold mb-2 sm:text-3xl text-2xl">' + escapeHtml(messages.statusMessage) + '</h2><p class="mb-4 px-2 text-[#64748B] text-md">' + escapeHtml(messages.description) + "</p></div></body></html>";
|
||||
};
|
||||
|
||||
export { template };
|
||||
|
||||
+72
-74
@@ -1,18 +1,72 @@
|
||||
import { createVNode, defineComponent, computed, unref, mergeProps, ref, Fragment, toRef, watch, watchEffect, shallowRef, provide, useAttrs, getCurrentScope, onScopeDispose, inject, getCurrentInstance, onMounted, nextTick, createTextVNode, useSSRContext } from 'vue';
|
||||
import { ssrRenderComponent } from 'vue/server-renderer';
|
||||
import { by as D, bz as Y, bA as W, bB as MS, bC as Q, bD as M, bE as FORMAT_DEFAULT, b1 as Icon, at as dayjs, a as useConfigStore, G as useConfigInject, bp as useCompactItemContext, H as genComponentStyleHook, b9 as useLocaleReceiver, bF as locale$1$1, L as omit, aA as CloseCircleFilled, I as classNames, J as merge, W as genCompactItemStyle, bf as useState$1, Q as Button, C as functionType, D as stringType, E as booleanType, a3 as objectType, ay as someType, F as arrayType, M as resetComponent, ar as textEllipsis, bG as warningOnce, as as KeyCode, a1 as cloneElement, bH as noteOnce } from './server.mjs';
|
||||
import _extends from '@babel/runtime/helpers/esm/extends';
|
||||
import moment from 'moment-jalaali';
|
||||
import jalaliday from 'dayjalali';
|
||||
import _objectSpread$3 from '@babel/runtime/helpers/esm/objectSpread2';
|
||||
import { T as Tag } from './index-CzRefuj3.mjs';
|
||||
import { r as roundedArrow, T as Trigger, w as wrapperRaf, h as isVisible } from './index-C9wXCwkF.mjs';
|
||||
import { createVNode, defineComponent, computed, unref, mergeProps, ref, Fragment, toRef, watch, watchEffect, shallowRef, provide, useAttrs, getCurrentScope, onScopeDispose, inject, getCurrentInstance, nextTick, createTextVNode, useSSRContext } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { ssrRenderComponent } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/server-renderer/index.mjs';
|
||||
import { b5 as Icon, bv as D, bw as Y, bx as W, by as MS, bz as Q, bA as M, bB as FORMAT_DEFAULT, au as dayjs, a as useConfigStore, C as useConfigInject, bq as useCompactItemContext, D as genComponentStyleHook, bd as useLocaleReceiver, bC as locale$1$1, H as omit, aD as CloseCircleFilled, E as classNames, F as merge, S as genCompactItemStyle, bj as useState$1, L as Button, y as functionType, z as stringType, A as booleanType, $ as objectType, aB as someType, B as arrayType, I as resetComponent, ap as textEllipsis, bD as warningOnce, aq as KeyCode, Y as cloneElement, bE as noteOnce } from './server.mjs';
|
||||
import _extends from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@babel/runtime/helpers/esm/extends.js';
|
||||
import moment from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/moment-jalaali/index.js';
|
||||
import jalaliday from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/dayjalali/dist/index.js';
|
||||
import _objectSpread$3 from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@babel/runtime/helpers/esm/objectSpread2.js';
|
||||
import { T as Tag } from './index-CAZlc_qy.mjs';
|
||||
import { r as roundedArrow, T as Trigger, w as wrapperRaf, h as isVisible } from './index-Bn4rLj9V.mjs';
|
||||
import { u as useMergedState } from './useMergedState-BZEfJ8Fl.mjs';
|
||||
import { i as initMoveMotion, u as useMemo } from './move-C58xppXd.mjs';
|
||||
import { i as initSlideMotion, b as slideUpOut, a as slideDownOut, d as slideUpIn, c as slideDownIn, s as shallowequal } from './shallowequal-BCwuz4ga.mjs';
|
||||
import { u as useInjectFormItemContext, F as FormItemInputContext } from './FormItemContext-eb0AodWH.mjs';
|
||||
import { a as getStatusClassNames, g as getMergedStatus, i as initInputToken, b as genBasicInputStyle, e as genActiveStyle, h as genHoverStyle } from './index-C8EZBqzI.mjs';
|
||||
import { TinyColor } from '@ctrl/tinycolor';
|
||||
import { i as initMoveMotion, u as useMemo } from './move-jlA6kUbh.mjs';
|
||||
import { i as initSlideMotion, b as slideUpOut, a as slideDownOut, d as slideUpIn, c as slideDownIn, s as shallowequal } from './shallowequal-BEyWmMEh.mjs';
|
||||
import { u as useInjectFormItemContext, F as FormItemInputContext } from './FormItemContext-BlKvWASA.mjs';
|
||||
import { a as getStatusClassNames, g as getMergedStatus, i as initInputToken, b as genBasicInputStyle, e as genActiveStyle, k as genHoverStyle } from './index-BGahPE0Z.mjs';
|
||||
import { TinyColor } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@ctrl/tinycolor/dist/public_api.js';
|
||||
|
||||
// This icon file is generated automatically.
|
||||
var CalendarOutlined$1 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" } }] }, "name": "calendar", "theme": "outlined" };
|
||||
|
||||
function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$2(target, key, source[key]); }); } return target; }
|
||||
|
||||
function _defineProperty$2(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var CalendarOutlined = function CalendarOutlined(props, context) {
|
||||
var p = _objectSpread$2({}, props, context.attrs);
|
||||
|
||||
return createVNode(Icon, _objectSpread$2({}, p, {
|
||||
"icon": CalendarOutlined$1
|
||||
}), null);
|
||||
};
|
||||
|
||||
CalendarOutlined.displayName = 'CalendarOutlined';
|
||||
CalendarOutlined.inheritAttrs = false;
|
||||
|
||||
// This icon file is generated automatically.
|
||||
var ClockCircleOutlined$1 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { "tag": "path", "attrs": { "d": "M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z" } }] }, "name": "clock-circle", "theme": "outlined" };
|
||||
|
||||
function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$1(target, key, source[key]); }); } return target; }
|
||||
|
||||
function _defineProperty$1(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var ClockCircleOutlined = function ClockCircleOutlined(props, context) {
|
||||
var p = _objectSpread$1({}, props, context.attrs);
|
||||
|
||||
return createVNode(Icon, _objectSpread$1({}, p, {
|
||||
"icon": ClockCircleOutlined$1
|
||||
}), null);
|
||||
};
|
||||
|
||||
ClockCircleOutlined.displayName = 'ClockCircleOutlined';
|
||||
ClockCircleOutlined.inheritAttrs = false;
|
||||
|
||||
// This icon file is generated automatically.
|
||||
var SwapRightOutlined$1 = { "icon": { "tag": "svg", "attrs": { "viewBox": "0 0 1024 1024", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z" } }] }, "name": "swap-right", "theme": "outlined" };
|
||||
|
||||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var SwapRightOutlined = function SwapRightOutlined(props, context) {
|
||||
var p = _objectSpread({}, props, context.attrs);
|
||||
|
||||
return createVNode(Icon, _objectSpread({}, p, {
|
||||
"icon": SwapRightOutlined$1
|
||||
}), null);
|
||||
};
|
||||
|
||||
SwapRightOutlined.displayName = 'SwapRightOutlined';
|
||||
SwapRightOutlined.inheritAttrs = false;
|
||||
|
||||
var hookCallback;
|
||||
|
||||
@@ -5228,60 +5282,6 @@ const customParseFormat = (function (o, C, d) {
|
||||
};
|
||||
});
|
||||
|
||||
// This icon file is generated automatically.
|
||||
var CalendarOutlined$1 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" } }] }, "name": "calendar", "theme": "outlined" };
|
||||
|
||||
function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$2(target, key, source[key]); }); } return target; }
|
||||
|
||||
function _defineProperty$2(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var CalendarOutlined = function CalendarOutlined(props, context) {
|
||||
var p = _objectSpread$2({}, props, context.attrs);
|
||||
|
||||
return createVNode(Icon, _objectSpread$2({}, p, {
|
||||
"icon": CalendarOutlined$1
|
||||
}), null);
|
||||
};
|
||||
|
||||
CalendarOutlined.displayName = 'CalendarOutlined';
|
||||
CalendarOutlined.inheritAttrs = false;
|
||||
|
||||
// This icon file is generated automatically.
|
||||
var ClockCircleOutlined$1 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { "tag": "path", "attrs": { "d": "M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z" } }] }, "name": "clock-circle", "theme": "outlined" };
|
||||
|
||||
function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$1(target, key, source[key]); }); } return target; }
|
||||
|
||||
function _defineProperty$1(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var ClockCircleOutlined = function ClockCircleOutlined(props, context) {
|
||||
var p = _objectSpread$1({}, props, context.attrs);
|
||||
|
||||
return createVNode(Icon, _objectSpread$1({}, p, {
|
||||
"icon": ClockCircleOutlined$1
|
||||
}), null);
|
||||
};
|
||||
|
||||
ClockCircleOutlined.displayName = 'ClockCircleOutlined';
|
||||
ClockCircleOutlined.inheritAttrs = false;
|
||||
|
||||
// This icon file is generated automatically.
|
||||
var SwapRightOutlined$1 = { "icon": { "tag": "svg", "attrs": { "viewBox": "0 0 1024 1024", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z" } }] }, "name": "swap-right", "theme": "outlined" };
|
||||
|
||||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var SwapRightOutlined = function SwapRightOutlined(props, context) {
|
||||
var p = _objectSpread({}, props, context.attrs);
|
||||
|
||||
return createVNode(Icon, _objectSpread({}, p, {
|
||||
"icon": SwapRightOutlined$1
|
||||
}), null);
|
||||
};
|
||||
|
||||
SwapRightOutlined.displayName = 'SwapRightOutlined';
|
||||
SwapRightOutlined.inheritAttrs = false;
|
||||
|
||||
dayjs.extend(customParseFormat);
|
||||
dayjs.extend(advancedFormat);
|
||||
dayjs.extend(weekday);
|
||||
@@ -5499,7 +5499,7 @@ function useMergeProps(props) {
|
||||
const attrs = useAttrs();
|
||||
return _extends(_extends({}, props), attrs);
|
||||
}
|
||||
const PanelContextKey = Symbol("PanelContextProps");
|
||||
const PanelContextKey = /* @__PURE__ */ Symbol("PanelContextProps");
|
||||
const useProvidePanel = (props) => {
|
||||
provide(PanelContextKey, props);
|
||||
};
|
||||
@@ -6614,7 +6614,7 @@ function useCellClassName(_ref) {
|
||||
}
|
||||
return getClassName;
|
||||
}
|
||||
const RangeContextKey = Symbol("RangeContextProps");
|
||||
const RangeContextKey = /* @__PURE__ */ Symbol("RangeContextProps");
|
||||
const useProvideRange = (props) => {
|
||||
provide(RangeContextKey, props);
|
||||
};
|
||||
@@ -7972,8 +7972,7 @@ const PresetPanel = defineComponent({
|
||||
} = _ref;
|
||||
return createVNode("li", {
|
||||
"key": index,
|
||||
"onClick": (e) => {
|
||||
e.stopPropagation();
|
||||
"onClick": () => {
|
||||
props.onClick(value);
|
||||
},
|
||||
"onMouseenter": () => {
|
||||
@@ -8736,7 +8735,7 @@ function unrefElement(elRef) {
|
||||
}
|
||||
function tryOnMounted(fn) {
|
||||
let sync = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
|
||||
if (getCurrentInstance()) onMounted(fn);
|
||||
if (getCurrentInstance()) ;
|
||||
else if (sync) fn();
|
||||
else nextTick(fn);
|
||||
}
|
||||
@@ -11637,7 +11636,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
},
|
||||
set(value) {
|
||||
const date = dayjs(value).format("YYYY-MM-DD");
|
||||
console.log(moment(date, "jYYYY/jM/jD HH:mm").format("YYYY-M-D"));
|
||||
emit("update:value", moment(date, "jYYYY/jM/jD HH:mm").format("YYYY-M-D"));
|
||||
}
|
||||
});
|
||||
+20
-20
@@ -1,10 +1,10 @@
|
||||
import { LoadingOutlined } from '@ant-design/icons-vue';
|
||||
import { Q as Button, e as loading } from './server.mjs';
|
||||
import { defineComponent, h, useSlots, computed, mergeProps, unref, withCtx, createVNode, renderSlot, createCommentVNode, createBlock, openBlock, ref, useSSRContext } from 'vue';
|
||||
import { ssrRenderComponent, ssrRenderClass, ssrRenderSlot, ssrRenderAttrs } from 'vue/server-renderer';
|
||||
import { LoadingOutlined } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@ant-design/icons-vue/lib/index.js';
|
||||
import { defineComponent, h, useSlots, computed, mergeProps, unref, withCtx, createVNode, renderSlot, createCommentVNode, createBlock, openBlock, ref, useSSRContext } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { ssrRenderComponent, ssrRenderClass, ssrRenderSlot, ssrRenderAttrs } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/server-renderer/index.mjs';
|
||||
import { b as baseButtonIconSize, u as usePrefix, i as icons } from './BasicIconOld-93vAWohq.mjs';
|
||||
import { _ as _export_sfc } from './_plugin-vue_export-helper-1tPrXgE0.mjs';
|
||||
import { S as Spin } from './index-CRte5P_X.mjs';
|
||||
import { L as Button } from './server.mjs';
|
||||
import { S as Spin } from './index-BMAjr3Fm.mjs';
|
||||
|
||||
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
||||
__name: "BasicIcon",
|
||||
@@ -78,34 +78,34 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
const _component_AButton = Button;
|
||||
const _component_ASpin = Spin;
|
||||
const _cssVars = { style: {
|
||||
":--0012da73": _loading.value
|
||||
":--v0012da73": _loading.value
|
||||
} };
|
||||
_push(ssrRenderComponent(_component_AButton, mergeProps({
|
||||
type: props.type,
|
||||
size: props.size,
|
||||
class: [unref(prefixCls), _class.value, _ctx.curve ? "!rounded-full" : ""],
|
||||
disabled: "loading" in _ctx ? _ctx.loading : unref(loading)
|
||||
class: [unref(prefixCls), _class.value, __props.curve ? "!rounded-full" : ""],
|
||||
disabled: __props.loading
|
||||
}, _attrs, _cssVars), {
|
||||
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
||||
if (_push2) {
|
||||
_push2(ssrRenderComponent(_component_ASpin, {
|
||||
spinning: "loading" in _ctx ? _ctx.loading : unref(loading),
|
||||
spinning: __props.loading,
|
||||
size: "small",
|
||||
class: "absolute",
|
||||
style: { "position-area": "center" },
|
||||
indicator: unref(indicator)
|
||||
}, null, _parent2, _scopeId));
|
||||
_push2(`<div class="${ssrRenderClass([[{ "flex-row-reverse": _ctx.suffixIcon }, ("loading" in _ctx ? _ctx.loading : unref(loading)) ? "op-30" : ""], "flex items-center gap-1 justify-center flex-row-reverse gap-2 py-1 px-2 w-full h-full transition-all text-xs"])}"${_scopeId}>`);
|
||||
_push2(`<div class="${ssrRenderClass([[{ "flex-row-reverse": __props.suffixIcon }, __props.loading ? "op-30" : ""], "flex items-center gap-1 justify-center flex-row-reverse gap-2 py-1 px-2 w-full h-full transition-all text-xs"])}"${_scopeId}>`);
|
||||
if (_ctx.$slots.default) {
|
||||
ssrRenderSlot(_ctx.$slots, "default", {}, null, _push2, _parent2, _scopeId);
|
||||
} else {
|
||||
_push2(`<!---->`);
|
||||
}
|
||||
if (_ctx.icon) {
|
||||
if (__props.icon) {
|
||||
_push2(ssrRenderComponent(BasicIcon, {
|
||||
size: _ctx.iconSize,
|
||||
icon: _ctx.icon,
|
||||
class: _ctx.iconClass
|
||||
size: __props.iconSize,
|
||||
icon: __props.icon,
|
||||
class: __props.iconClass
|
||||
}, null, _parent2, _scopeId));
|
||||
} else {
|
||||
_push2(`<!---->`);
|
||||
@@ -114,21 +114,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
} else {
|
||||
return [
|
||||
createVNode(_component_ASpin, {
|
||||
spinning: "loading" in _ctx ? _ctx.loading : unref(loading),
|
||||
spinning: __props.loading,
|
||||
size: "small",
|
||||
class: "absolute",
|
||||
style: { "position-area": "center" },
|
||||
indicator: unref(indicator)
|
||||
}, null, 8, ["spinning", "indicator"]),
|
||||
createVNode("div", {
|
||||
class: ["flex items-center gap-1 justify-center flex-row-reverse gap-2 py-1 px-2 w-full h-full transition-all text-xs", [{ "flex-row-reverse": _ctx.suffixIcon }, ("loading" in _ctx ? _ctx.loading : unref(loading)) ? "op-30" : ""]]
|
||||
class: ["flex items-center gap-1 justify-center flex-row-reverse gap-2 py-1 px-2 w-full h-full transition-all text-xs", [{ "flex-row-reverse": __props.suffixIcon }, __props.loading ? "op-30" : ""]]
|
||||
}, [
|
||||
_ctx.$slots.default ? renderSlot(_ctx.$slots, "default", { key: 0 }) : createCommentVNode("", true),
|
||||
_ctx.icon ? (openBlock(), createBlock(BasicIcon, {
|
||||
__props.icon ? (openBlock(), createBlock(BasicIcon, {
|
||||
key: 1,
|
||||
size: _ctx.iconSize,
|
||||
icon: _ctx.icon,
|
||||
class: _ctx.iconClass
|
||||
size: __props.iconSize,
|
||||
icon: __props.icon,
|
||||
class: __props.iconClass
|
||||
}, null, 8, ["size", "icon", "class"])) : createCommentVNode("", true)
|
||||
], 2)
|
||||
];
|
||||
@@ -1,5 +1,5 @@
|
||||
import { defineComponent, ref, computed, mergeProps, unref, useSSRContext } from 'vue';
|
||||
import { ssrRenderAttrs } from 'vue/server-renderer';
|
||||
import { defineComponent, ref, computed, mergeProps, unref, useSSRContext } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { ssrRenderAttrs } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/server-renderer/index.mjs';
|
||||
import { _ as _export_sfc } from './_plugin-vue_export-helper-1tPrXgE0.mjs';
|
||||
|
||||
const prefixCls = "noname";
|
||||
|
||||
+5
-5
@@ -1,8 +1,8 @@
|
||||
import { defineComponent, computed, mergeProps, unref, createSlots, withCtx, renderSlot, useSSRContext } from 'vue';
|
||||
import { ssrRenderAttrs, ssrInterpolate, ssrRenderComponent, ssrRenderSlot } from 'vue/server-renderer';
|
||||
import { u as usePrice } from './usePrice-B-5-jXKQ.mjs';
|
||||
import { defineComponent, computed, mergeProps, unref, createSlots, withCtx, renderSlot, useSSRContext } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { ssrRenderAttrs, ssrInterpolate, ssrRenderComponent, ssrRenderSlot } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/server-renderer/index.mjs';
|
||||
import { u as usePrice } from './usePrice-_QzChhgO.mjs';
|
||||
import { u as usePrefix } from './BasicIconOld-93vAWohq.mjs';
|
||||
import { _ as __nuxt_component_0, I as Input } from './index-B8JfwQ3c.mjs';
|
||||
import { _ as __nuxt_component_0, I as Input } from './index-G65aBv4F.mjs';
|
||||
|
||||
const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
__name: "BasicInput",
|
||||
@@ -47,7 +47,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
_push(`<div${ssrRenderAttrs(mergeProps({
|
||||
class: [unref(prefixCls)]
|
||||
}, _attrs))}><div>${ssrInterpolate(props.title)}</div>`);
|
||||
if (_ctx.isPassword) {
|
||||
if (__props.isPassword) {
|
||||
_push(ssrRenderComponent(_component_a_input_password, {
|
||||
value: localValue.value,
|
||||
"onUpdate:value": ($event) => localValue.value = $event,
|
||||
+4
-4
@@ -1,7 +1,7 @@
|
||||
import _objectSpread from '@babel/runtime/helpers/esm/objectSpread2';
|
||||
import _extends from '@babel/runtime/helpers/esm/extends';
|
||||
import { defineComponent, ref, watch, createVNode } from 'vue';
|
||||
import { T as initDefaultProps, I as classNames, P as PropTypes } from './server.mjs';
|
||||
import _objectSpread from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@babel/runtime/helpers/esm/objectSpread2.js';
|
||||
import _extends from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@babel/runtime/helpers/esm/extends.js';
|
||||
import { defineComponent, ref, watch, createVNode } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { O as initDefaultProps, E as classNames, P as PropTypes } from './server.mjs';
|
||||
|
||||
var __rest = function(s, e) {
|
||||
var t = {};
|
||||
@@ -0,0 +1,206 @@
|
||||
import { defineComponent, ref, computed, mergeProps, withCtx, unref, createTextVNode, toDisplayString, watch, useSSRContext } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { ssrRenderAttrs, ssrRenderComponent, ssrInterpolate } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/server-renderer/index.mjs';
|
||||
import { B as BasicButton } from './BasicButton-DhQvSD8U.mjs';
|
||||
import { a as useConfigStore, _ as __nuxt_component_0 } from './server.mjs';
|
||||
import { CircleStencil } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue-advanced-cropper/dist/index.cjs.js';
|
||||
import { _ as _export_sfc } from './_plugin-vue_export-helper-1tPrXgE0.mjs';
|
||||
|
||||
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
||||
__name: "PictureEditor",
|
||||
__ssrInlineRender: true,
|
||||
props: {
|
||||
src: {},
|
||||
aspectRatio: { default: 1 },
|
||||
initialSize: {},
|
||||
round: { type: Boolean, default: false },
|
||||
movable: { type: Boolean, default: true },
|
||||
resizable: { type: Boolean, default: true },
|
||||
outputSize: {},
|
||||
quality: { default: 0.92 },
|
||||
mime: { default: "image/jpeg" }
|
||||
},
|
||||
emits: ["onCropped"],
|
||||
setup(__props, { expose: __expose, emit: __emit }) {
|
||||
const props = __props;
|
||||
const emit = __emit;
|
||||
const cropperRef = ref(null);
|
||||
function needsCacheBust(u) {
|
||||
if (!u) return false;
|
||||
const lower = u.toLowerCase();
|
||||
return lower.startsWith("http://") || lower.startsWith("https://");
|
||||
}
|
||||
computed(() => {
|
||||
const src = props.src ?? "";
|
||||
if (!needsCacheBust(src)) return src;
|
||||
const sep = src.includes("?") ? "&" : "?";
|
||||
return `${src}${sep}cb=${Date.now()}`;
|
||||
});
|
||||
computed(() => props.round ? CircleStencil : void 0);
|
||||
computed(() => {
|
||||
if (props.initialSize == null) return void 0;
|
||||
if (typeof props.initialSize === "number") {
|
||||
return { width: props.initialSize, height: props.initialSize };
|
||||
}
|
||||
return props.initialSize;
|
||||
});
|
||||
const forceKey = ref(0);
|
||||
watch(() => [props.aspectRatio, props.round], () => {
|
||||
forceKey.value++;
|
||||
});
|
||||
function getOutputSize() {
|
||||
if (props.outputSize == null) return void 0;
|
||||
if (typeof props.outputSize === "number") {
|
||||
return { width: props.outputSize, height: props.outputSize };
|
||||
}
|
||||
return props.outputSize;
|
||||
}
|
||||
function crop() {
|
||||
const c = cropperRef.value;
|
||||
if (!c) return;
|
||||
const size = getOutputSize() ?? void 0;
|
||||
const result = c.getResult({
|
||||
size,
|
||||
mime: props.mime,
|
||||
quality: props.quality
|
||||
});
|
||||
if (result?.canvas) {
|
||||
emit("onCropped", result.canvas.toDataURL(props.mime, props.quality));
|
||||
}
|
||||
}
|
||||
function setStencilSize(width, height) {
|
||||
forceKey.value++;
|
||||
}
|
||||
__expose({ crop, setStencilSize });
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
const _component_ClientOnly = __nuxt_component_0;
|
||||
_push(`<div${ssrRenderAttrs(mergeProps({ class: "cropper-wrapper" }, _attrs))}>`);
|
||||
_push(ssrRenderComponent(_component_ClientOnly, null, {}, _parent));
|
||||
_push(`</div>`);
|
||||
};
|
||||
}
|
||||
});
|
||||
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/PictureEditor.vue");
|
||||
return _sfc_setup$1 ? _sfc_setup$1(props, ctx) : void 0;
|
||||
};
|
||||
const PictureEditor = Object.assign(_sfc_main$1, { __name: "PictureEditor" });
|
||||
const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
__name: "CropperModal",
|
||||
__ssrInlineRender: true,
|
||||
props: {
|
||||
visible: { type: Boolean },
|
||||
img: {},
|
||||
mode: {},
|
||||
fixedMovable: { type: Boolean },
|
||||
resizable: { type: Boolean },
|
||||
aspectRatio: {},
|
||||
initialSize: {},
|
||||
round: { type: Boolean },
|
||||
outputSize: {},
|
||||
mime: {},
|
||||
quality: {}
|
||||
},
|
||||
emits: ["update:visible", "cropped"],
|
||||
setup(__props, { emit: __emit }) {
|
||||
const props = __props;
|
||||
const emit = __emit;
|
||||
const config = useConfigStore();
|
||||
const cropper = ref(null);
|
||||
const open = computed({
|
||||
get: () => props.visible,
|
||||
set: (val) => emit("update:visible", val)
|
||||
});
|
||||
const aspectRatio = computed(() => props.aspectRatio ?? null);
|
||||
const initialSize = computed(() => {
|
||||
return props.mode === "fixed" ? props.initialSize ?? 340 : void 0;
|
||||
});
|
||||
const round = computed(() => props.round ?? false);
|
||||
const outputSize = computed(() => props.outputSize ?? 400);
|
||||
const mime = computed(() => props.mime ?? "image/jpeg");
|
||||
const quality = computed(() => props.quality ?? 0.92);
|
||||
const isResizable = computed(() => {
|
||||
if (typeof props.resizable === "boolean") return props.resizable;
|
||||
return (props.mode ?? "free") !== "fixed";
|
||||
});
|
||||
const isMovable = computed(() => {
|
||||
if ((props.mode ?? "free") === "fixed") {
|
||||
return props.fixedMovable;
|
||||
}
|
||||
return true;
|
||||
});
|
||||
function onCropped(val) {
|
||||
emit("cropped", val);
|
||||
open.value = false;
|
||||
}
|
||||
function handleSave() {
|
||||
cropper.value?.crop();
|
||||
}
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
if (open.value && __props.img) {
|
||||
_push(`<div${ssrRenderAttrs(mergeProps({ class: "fixed inset-0 z-1000 backdrop-blur-md bg-black/80 p-2" }, _attrs))} data-v-c7054885><div class="w-full" data-v-c7054885>`);
|
||||
_push(ssrRenderComponent(PictureEditor, {
|
||||
ref_key: "cropper",
|
||||
ref: cropper,
|
||||
class: "h-90vh absolute top-0 right-0 left-0 w-full",
|
||||
src: __props.img,
|
||||
initialSize: initialSize.value,
|
||||
round: round.value,
|
||||
resizable: isResizable.value,
|
||||
movable: isMovable.value,
|
||||
aspectRatio: aspectRatio.value,
|
||||
outputSize: outputSize.value,
|
||||
mime: mime.value,
|
||||
quality: quality.value,
|
||||
onOnCropped: onCropped
|
||||
}, null, _parent));
|
||||
_push(`</div><div class="p-2 absolute bottom-0 right-0 left-0 grid gap-2 gap-2" data-v-c7054885>`);
|
||||
_push(ssrRenderComponent(BasicButton, {
|
||||
block: "",
|
||||
onClick: handleSave,
|
||||
type: "primary"
|
||||
}, {
|
||||
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
||||
if (_push2) {
|
||||
_push2(`${ssrInterpolate(unref(config).useString("submit"))}`);
|
||||
} else {
|
||||
return [
|
||||
createTextVNode(toDisplayString(unref(config).useString("submit")), 1)
|
||||
];
|
||||
}
|
||||
}),
|
||||
_: 1
|
||||
}, _parent));
|
||||
_push(ssrRenderComponent(BasicButton, {
|
||||
block: "",
|
||||
danger: "",
|
||||
onClick: ($event) => open.value = false
|
||||
}, {
|
||||
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
||||
if (_push2) {
|
||||
_push2(`${ssrInterpolate(unref(config).useString("close"))}`);
|
||||
} else {
|
||||
return [
|
||||
createTextVNode(toDisplayString(unref(config).useString("close")), 1)
|
||||
];
|
||||
}
|
||||
}),
|
||||
_: 1
|
||||
}, _parent));
|
||||
_push(`</div></div>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
};
|
||||
}
|
||||
});
|
||||
const _sfc_setup = _sfc_main.setup;
|
||||
_sfc_main.setup = (props, ctx) => {
|
||||
const ssrContext = useSSRContext();
|
||||
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("components/CropperModal.vue");
|
||||
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
||||
};
|
||||
const __nuxt_component_3 = /* @__PURE__ */ Object.assign(_export_sfc(_sfc_main, [["__scopeId", "data-v-c7054885"]]), { __name: "CropperModal" });
|
||||
|
||||
export { __nuxt_component_3 as _ };
|
||||
+9
-9
@@ -1,9 +1,9 @@
|
||||
import { defineComponent, mergeProps, unref, withCtx, createTextVNode, toDisplayString, ref, reactive, createVNode, useSSRContext } from 'vue';
|
||||
import { ssrRenderAttrs, ssrRenderComponent, ssrInterpolate, ssrRenderAttr } from 'vue/server-renderer';
|
||||
import { U as UserProfilePic } from './UserProfilePic-BwsIUO56.mjs';
|
||||
import { B as BasicButton } from './BasicButton-QGDeiwgb.mjs';
|
||||
import { u as useRouter$1, a as useConfigStore, w as useElementSize, aO as baseConfirmWithId, aP as deleteUser } from './server.mjs';
|
||||
import { ContentLoader } from 'vue-content-loader';
|
||||
import { defineComponent, mergeProps, unref, withCtx, createTextVNode, toDisplayString, ref, reactive, createVNode, useSSRContext } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { ssrRenderAttrs, ssrRenderComponent, ssrInterpolate, ssrRenderAttr } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/server-renderer/index.mjs';
|
||||
import { U as UserProfilePic } from './UserProfilePic-DaZ03Xcl.mjs';
|
||||
import { B as BasicButton } from './BasicButton-DhQvSD8U.mjs';
|
||||
import { u as useRouter$1, a as useConfigStore, q as useElementSize, aU as baseConfirmWithId, aV as deleteUser } from './server.mjs';
|
||||
import { ContentLoader } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue-content-loader/dist/vue-content-loader.cjs.js';
|
||||
|
||||
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
||||
__name: "CustomerCard",
|
||||
@@ -24,15 +24,15 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
||||
_push(`<div${ssrRenderAttrs(mergeProps({ class: "flex justify-between items-center" }, _attrs))}><div class="flex gap-4 items-center">`);
|
||||
_push(ssrRenderComponent(UserProfilePic, {
|
||||
width: "60",
|
||||
src: _ctx.user.avatar,
|
||||
src: __props.user.avatar,
|
||||
"just-show-profile": ""
|
||||
}, null, _parent));
|
||||
_push(`<div><div class="text-sm font-400">${ssrInterpolate(_ctx.user.name)}</div><div class="text-sm text-gray">${ssrInterpolate(_ctx.user.infoText)}</div></div></div>`);
|
||||
_push(`<div><div class="text-sm font-400">${ssrInterpolate(__props.user.name)}</div><div class="text-sm text-gray">${ssrInterpolate(__props.user.infoText)}</div></div></div>`);
|
||||
if (unref(config).isSeller) {
|
||||
_push(`<div class="w-1/4 my1">`);
|
||||
_push(ssrRenderComponent(BasicButton, {
|
||||
class: "!h-7 w-full",
|
||||
onClick: ($event) => unref(router).push({ name: "user-edit-id", params: { id: _ctx.user.id } })
|
||||
onClick: ($event) => unref(router).push({ name: "user-edit-id", params: { id: __props.user.id } })
|
||||
}, {
|
||||
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
||||
if (_push2) {
|
||||
+14
-17
@@ -1,13 +1,13 @@
|
||||
import _objectSpread$1 from '@babel/runtime/helpers/esm/objectSpread2';
|
||||
import _extends from '@babel/runtime/helpers/esm/extends';
|
||||
import { createVNode, defineComponent, shallowRef, computed, watchEffect, watch, reactive, Fragment, provide, inject, nextTick, toRaw, ref, Transition, withDirectives, TransitionGroup, vShow, cloneVNode } from 'vue';
|
||||
import { b1 as Icon, H as genComponentStyleHook, P as PropTypes, b5 as warning$1, G as useConfigInject, b6 as LoadingOutlined, aA as CloseCircleFilled, b7 as ExclamationCircleFilled, aB as CheckCircleFilled, I as classNames, U as filterEmpty, J as merge, b8 as zoomIn, aq as tuple, ay as someType, b9 as useLocaleReceiver, ba as localeValues, M as resetComponent, aK as useToken, bb as getTransitionGroupProps, ag as getTransitionProps, Z as isValidElement } from './server.mjs';
|
||||
import cloneDeep from 'lodash-es/cloneDeep.js';
|
||||
import RawAsyncValidator from 'async-validator';
|
||||
import find from 'lodash-es/find.js';
|
||||
import { _ as __nuxt_component_2 } from './index-C9wXCwkF.mjs';
|
||||
import { g as genCollapseMotion, c as collapseMotion } from './collapseMotion-cQ2SGjCA.mjs';
|
||||
import { b as useProvideFormItemContext, F as FormItemInputContext } from './FormItemContext-eb0AodWH.mjs';
|
||||
import _objectSpread$1 from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@babel/runtime/helpers/esm/objectSpread2.js';
|
||||
import _extends from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@babel/runtime/helpers/esm/extends.js';
|
||||
import { createVNode, defineComponent, shallowRef, computed, watchEffect, watch, reactive, Fragment, provide, inject, nextTick, toRaw, ref, Transition, withDirectives, TransitionGroup, vShow, cloneVNode } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { b5 as Icon, D as genComponentStyleHook, P as PropTypes, b9 as warning$1, C as useConfigInject, ba as LoadingOutlined, aD as CloseCircleFilled, bb as ExclamationCircleFilled, aE as CheckCircleFilled, E as classNames, Q as filterEmpty, F as merge, bc as zoomIn, ao as tuple, aB as someType, bd as useLocaleReceiver, be as localeValues, I as resetComponent, aN as useToken, bf as getTransitionGroupProps, ac as getTransitionProps, V as isValidElement } from './server.mjs';
|
||||
import cloneDeep from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/lodash-es/cloneDeep.js';
|
||||
import RawAsyncValidator from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/async-validator/dist-node/index.js';
|
||||
import find from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/lodash-es/find.js';
|
||||
import { _ as __nuxt_component_2 } from './index-Bn4rLj9V.mjs';
|
||||
import { h as genCollapseMotion, j as collapseMotion } from './index-BGahPE0Z.mjs';
|
||||
import { b as useProvideFormItemContext, F as FormItemInputContext } from './FormItemContext-BlKvWASA.mjs';
|
||||
|
||||
// This icon file is generated automatically.
|
||||
var QuestionCircleOutlined$1 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { "tag": "path", "attrs": { "d": "M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z" } }] }, "name": "question-circle", "theme": "outlined" };
|
||||
@@ -98,7 +98,7 @@ const useFlexGapSupport = (() => {
|
||||
const flexible = shallowRef(false);
|
||||
return flexible;
|
||||
});
|
||||
const RowContextKey = Symbol("rowContextKey");
|
||||
const RowContextKey = /* @__PURE__ */ Symbol("rowContextKey");
|
||||
const useProvideRow = (state) => {
|
||||
provide(RowContextKey, state);
|
||||
};
|
||||
@@ -143,9 +143,6 @@ const genGridRowStyle = (token) => {
|
||||
"&-space-around ": {
|
||||
justifyContent: "space-around"
|
||||
},
|
||||
"&-space-evenly ": {
|
||||
justifyContent: "space-evenly"
|
||||
},
|
||||
// Align at the top
|
||||
"&-top": {
|
||||
alignItems: "flex-start"
|
||||
@@ -702,7 +699,7 @@ function finishOnFirstFailed(rulePromises) {
|
||||
});
|
||||
});
|
||||
}
|
||||
const FormContextKey = Symbol("formContextKey");
|
||||
const FormContextKey = /* @__PURE__ */ Symbol("formContextKey");
|
||||
const useProvideForm = (state) => {
|
||||
provide(FormContextKey, state);
|
||||
};
|
||||
@@ -729,7 +726,7 @@ const useInjectForm = () => {
|
||||
validateMessages: computed(() => defaultValidateMessages)
|
||||
});
|
||||
};
|
||||
const FormItemPrefixContextKey = Symbol("formItemPrefixContextKey");
|
||||
const FormItemPrefixContextKey = /* @__PURE__ */ Symbol("formItemPrefixContextKey");
|
||||
const useProvideFormItemPrefix = (state) => {
|
||||
provide(FormItemPrefixContextKey, state);
|
||||
};
|
||||
@@ -1902,7 +1899,7 @@ const __nuxt_component_1 = defineComponent({
|
||||
"class": [itemClassName.value, withHelp ? `${prefixCls.value}-item-with-help` : "", attrs.class],
|
||||
"ref": itemRef
|
||||
}, [createVNode(ARow, _objectSpread$1(_objectSpread$1({}, attrs), {}, {
|
||||
"class": `${prefixCls.value}-item-row`,
|
||||
"class": `${prefixCls.value}-row`,
|
||||
"key": "row"
|
||||
}), {
|
||||
default: () => {
|
||||
+5
-5
@@ -1,8 +1,8 @@
|
||||
import { defineComponent, computed, ref, getCurrentInstance, watch, provide, inject } from 'vue';
|
||||
import { S as createContext } from './server.mjs';
|
||||
import { computed, ref, getCurrentInstance, watch, provide, inject, defineComponent } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { N as createContext } from './server.mjs';
|
||||
|
||||
const ContextKey = Symbol("ContextProps");
|
||||
const InternalContextKey = Symbol("InternalContextProps");
|
||||
const ContextKey = /* @__PURE__ */ Symbol("ContextProps");
|
||||
const InternalContextKey = /* @__PURE__ */ Symbol("InternalContextProps");
|
||||
const useProvideFormItemContext = function(props) {
|
||||
let useValidation = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : computed(() => true);
|
||||
const formItemFields = ref(/* @__PURE__ */ new Map());
|
||||
@@ -40,7 +40,7 @@ const defaultInternalContext = {
|
||||
};
|
||||
const useInjectFormItemContext = () => {
|
||||
const internalContext = inject(InternalContextKey, defaultInternalContext);
|
||||
const formItemFieldKey = Symbol("FormItemFieldKey");
|
||||
const formItemFieldKey = /* @__PURE__ */ Symbol("FormItemFieldKey");
|
||||
const instance = getCurrentInstance();
|
||||
internalContext.addFormItemField(formItemFieldKey, instance.type);
|
||||
provide(InternalContextKey, defaultInternalContext);
|
||||
+45
-37
@@ -1,16 +1,16 @@
|
||||
import { defineComponent, ref, computed, watchEffect, watch, nextTick, resolveDirective, mergeProps, unref, withCtx, createVNode, withDirectives, createBlock, openBlock, withModifiers, Fragment, renderList, useSSRContext } from 'vue';
|
||||
import { ssrRenderAttrs, ssrRenderList, ssrRenderComponent, ssrInterpolate, ssrGetDirectiveProps, ssrRenderAttr } from 'vue/server-renderer';
|
||||
import { B as BasicInput } from './BasicInput-DrA-e4wX.mjs';
|
||||
import { u as useRouter$1, a as useConfigStore, ax as useSwipe, b as useUserStore, x as getSupabaseStorageUrl, w as useElementSize } from './server.mjs';
|
||||
import { _ as _sfc_main$2 } from './like-BhIOg3YL.mjs';
|
||||
import { defineComponent, ref, computed, watchEffect, watch, nextTick, resolveDirective, mergeProps, unref, withCtx, createVNode, withDirectives, createBlock, openBlock, withModifiers, Fragment, renderList, useSSRContext } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { ssrRenderAttrs, ssrRenderList, ssrRenderComponent, ssrInterpolate, ssrGetDirectiveProps, ssrRenderAttr } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/server-renderer/index.mjs';
|
||||
import { B as BasicInput } from './BasicInput-rlXkJMLE.mjs';
|
||||
import { u as useRouter$1, a as useConfigStore, aA as useSwipe, b as useUserStore, q as useElementSize } from './server.mjs';
|
||||
import { _ as _sfc_main$2 } from './like-B155RLSm.mjs';
|
||||
import { _ as _export_sfc } from './_plugin-vue_export-helper-1tPrXgE0.mjs';
|
||||
import { B as BasicButton } from './BasicButton-QGDeiwgb.mjs';
|
||||
import { B as BasicButton } from './BasicButton-DhQvSD8U.mjs';
|
||||
import { B as BasicIconOld } from './BasicIconOld-93vAWohq.mjs';
|
||||
import { Swiper, SwiperSlide } from 'swiper/vue';
|
||||
import { EffectCreative } from 'swiper/modules';
|
||||
import { u as useMediaStore } from './media-C3Y2QweF.mjs';
|
||||
import { e as empty_user } from './empty_user-BaUNCdgf.mjs';
|
||||
import { u as userViewStory, s as setStorySeenLocal } from './media-DD0HTZbK.mjs';
|
||||
import { Swiper, SwiperSlide } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/swiper/swiper-vue.mjs';
|
||||
import { EffectCreative } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/swiper/modules/index.mjs';
|
||||
import { u as useMediaStore } from './media-D7PFhdrG.mjs';
|
||||
import { e as empty_user } from './empty_user-DSxcM_ac.mjs';
|
||||
import { u as userViewStory, s as setStorySeenLocal } from './media-_NDkNIvH.mjs';
|
||||
|
||||
const intervalError = "[nuxt] `setInterval` should not be used on the server. Consider wrapping it with an `onNuxtReady`, `onBeforeMount` or `onMounted` lifecycle hook, or ensure you only call it in the browser by checking `false`.";
|
||||
const setInterval = () => {
|
||||
@@ -23,7 +23,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
||||
__ssrInlineRender: true,
|
||||
props: {
|
||||
percent: { type: Number, required: true },
|
||||
barHeight: { type: Number, default: 2 }
|
||||
barHeight: { type: Number, default: 2 },
|
||||
rtl: { type: Boolean, default: false }
|
||||
},
|
||||
setup(__props) {
|
||||
const el = ref(null);
|
||||
@@ -31,12 +32,15 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
||||
const props = __props;
|
||||
const containerWidth = ref(0);
|
||||
watchEffect(() => {
|
||||
if (width.value > 0) {
|
||||
containerWidth.value = width.value;
|
||||
}
|
||||
if (width.value > 0) containerWidth.value = width.value;
|
||||
});
|
||||
const key = ref(0);
|
||||
const progressWidth = computed(() => containerWidth.value * props.percent / 100);
|
||||
const progressWidth = computed(
|
||||
() => containerWidth.value * Math.min(Math.max(props.percent, 0), 100) / 100
|
||||
);
|
||||
const rtlTransform = computed(
|
||||
() => props.rtl ? `translate(${containerWidth.value},0) scale(-1,1)` : void 0
|
||||
);
|
||||
watch(progressWidth, () => {
|
||||
if (props.percent === 100 || props.percent === 0) {
|
||||
key.value++;
|
||||
@@ -47,9 +51,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
||||
ref_key: "el",
|
||||
ref: el,
|
||||
class: "progress-container"
|
||||
}, _attrs))} data-v-9bef4aaa>`);
|
||||
}, _attrs))} data-v-9b1dc5d5>`);
|
||||
if (containerWidth.value > 0) {
|
||||
_push(`<svg${ssrRenderAttr("width", containerWidth.value)}${ssrRenderAttr("height", __props.barHeight)}${ssrRenderAttr("viewBox", `0 0 ${containerWidth.value} ${__props.barHeight}`)} class="progress-bar" data-v-9bef4aaa><rect x="0" y="0"${ssrRenderAttr("width", containerWidth.value)}${ssrRenderAttr("height", __props.barHeight)} fill="rgba(255, 255, 255, 0.3)" rx="1" ry="1" data-v-9bef4aaa></rect><rect x="0" y="0"${ssrRenderAttr("width", progressWidth.value)}${ssrRenderAttr("height", __props.barHeight)} fill="white" rx="1" ry="1" class="progress-fill" data-v-9bef4aaa></rect></svg>`);
|
||||
_push(`<svg${ssrRenderAttr("width", containerWidth.value)}${ssrRenderAttr("height", __props.barHeight)}${ssrRenderAttr("viewBox", `0 0 ${containerWidth.value} ${__props.barHeight}`)} class="progress-bar" data-v-9b1dc5d5><rect x="0" y="0"${ssrRenderAttr("width", containerWidth.value)}${ssrRenderAttr("height", __props.barHeight)} fill="rgba(255,255,255,0.3)" rx="1" ry="1" data-v-9b1dc5d5></rect><g${ssrRenderAttr("transform", rtlTransform.value)} data-v-9b1dc5d5><rect x="0" y="0"${ssrRenderAttr("width", progressWidth.value)}${ssrRenderAttr("height", __props.barHeight)} fill="white" rx="1" ry="1" class="progress-fill" data-v-9b1dc5d5></rect></g></svg>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
@@ -63,7 +67,7 @@ _sfc_main$1.setup = (props, ctx) => {
|
||||
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("views/base/pages/home/components/CustomProgressBar.vue");
|
||||
return _sfc_setup$1 ? _sfc_setup$1(props, ctx) : void 0;
|
||||
};
|
||||
const CustomProgressBar = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-9bef4aaa"]]);
|
||||
const CustomProgressBar = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-9b1dc5d5"]]);
|
||||
const img_gif = "" + __buildAssetsURL("story_loading.Cuvmkir-.gif");
|
||||
const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
__name: "FullScreenStories",
|
||||
@@ -89,8 +93,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
const { direction, isSwiping } = useSwipe(target);
|
||||
const sendMessageState = ref(false);
|
||||
const userStory = computed(() => {
|
||||
console.log("mediaStore.users ===>", mediaStore.users);
|
||||
console.log("props.id ===>", props.id);
|
||||
if (props.specifyId) {
|
||||
return mediaStore.users.find((x) => x.id === props.id);
|
||||
} else {
|
||||
@@ -118,6 +120,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
for (let i = 0; i < storySlides.value; i++) {
|
||||
progress.value.push(0);
|
||||
}
|
||||
stopInterval();
|
||||
startOver();
|
||||
}
|
||||
const onSwiper = (swiper) => {
|
||||
@@ -156,28 +159,33 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
const _directive_lazy = resolveDirective("lazy");
|
||||
let _temp0, _temp1, _temp2;
|
||||
_push(`<div${ssrRenderAttrs(mergeProps({
|
||||
class: "flex full_story z-400 justify-center",
|
||||
dir: "ltr"
|
||||
}, _attrs))}><div class="relative w-full md:w-426px bg-black flex items-center pb-5rem">`);
|
||||
_push(`<div${ssrRenderAttrs(mergeProps({ class: "flex full_story z-400 justify-center" }, _attrs))}><div class="relative w-full md:w-426px bg-black flex items-center pb-5rem">`);
|
||||
if (!isPaused.value) {
|
||||
_push(`<div class="absolute w-full top-0 right-0 left-0 z-1000 blurred-gradient-bg"><div class="flex gap-2px shadow-xl"><!--[-->`);
|
||||
_push(`<div class="absolute w-full top-0 right-0 left-0 z-1000"><div class="flex gap-2px shadow-xl"><!--[-->`);
|
||||
ssrRenderList(userStory.value.stories, (story, index) => {
|
||||
_push(ssrRenderComponent(CustomProgressBar, {
|
||||
key: index,
|
||||
rtl: unref(config).isRTL,
|
||||
percent: progress.value[index]
|
||||
}, null, _parent));
|
||||
});
|
||||
_push(`<!--]--></div><div class="p-2 flex w-fit items-center gap-2 account-detail-area"><div class="relative"><img${ssrRenderAttrs(_temp0 = mergeProps({
|
||||
_push(`<!--]--></div><div class="p-2 flex w-full items-center gap-2 account-detail-area justify-between"><div class="flex items-center gap-2"><div class="relative"><img${ssrRenderAttrs(_temp0 = mergeProps({
|
||||
class: "w-2.5rem h-2.5rem rounded-full",
|
||||
alt: unref(config).appName.en
|
||||
}, ssrGetDirectiveProps(_ctx, _directive_lazy, { src: unref(getSupabaseStorageUrl)(userStory.value?.avatar), loading: unref(empty_user), error: unref(empty_user) })))}>${"textContent" in _temp0 ? ssrInterpolate(_temp0.textContent) : _temp0.innerHTML ?? ""}`);
|
||||
}, ssrGetDirectiveProps(_ctx, _directive_lazy, { src: unref(config).useDataStorage(userStory.value?.avatar), loading: unref(empty_user), error: unref(empty_user) })))}>${"textContent" in _temp0 ? ssrInterpolate(_temp0.textContent) : _temp0.innerHTML ?? ""}`);
|
||||
if (storyOwner.value) {
|
||||
_push(`<img${ssrRenderAttr("src", _imports_0)}${ssrRenderAttr("alt", unref(config).appName.en)} class="w-15px absolute right-0 bottom-0 bg-white rounded-full">`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(`</div><p class="text-white">${ssrInterpolate(userStory.value?.name)}</p></div></div>`);
|
||||
_push(`</div><div class="text-white text-xs">${ssrInterpolate(userStory.value?.name)}</div></div>`);
|
||||
_push(ssrRenderComponent(BasicIconOld, {
|
||||
icon: "vuesax-linear:add",
|
||||
class: "text-white rotate-45",
|
||||
size: "32",
|
||||
onClick: ($event) => emits("update:id", void 0)
|
||||
}, null, _parent));
|
||||
_push(`</div></div>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
@@ -249,7 +257,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
}, {
|
||||
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
||||
if (_push2) {
|
||||
if (!_ctx.specifyId) {
|
||||
if (!__props.specifyId) {
|
||||
_push2(`<!--[-->`);
|
||||
ssrRenderList(unref(mediaStore).users, (story, i) => {
|
||||
_push2(ssrRenderComponent(unref(SwiperSlide), {
|
||||
@@ -263,7 +271,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
class: "w-full bg-black select-none pointer-events-none",
|
||||
key: i,
|
||||
draggable: "false"
|
||||
}, ssrGetDirectiveProps(_ctx, _directive_lazy, { src: unref(getSupabaseStorageUrl)(story.stories[playingSlide.value]?.url), loading: unref(img_gif), error: unref(img_gif) })))}${_scopeId2}>${"textContent" in _temp1 ? ssrInterpolate(_temp1.textContent) : _temp1.innerHTML ?? ""}`);
|
||||
}, ssrGetDirectiveProps(_ctx, _directive_lazy, { src: unref(config).useDataStorage(story.stories[playingSlide.value]?.url), loading: unref(img_gif), error: unref(img_gif) })))}${_scopeId2}>${"textContent" in _temp1 ? ssrInterpolate(_temp1.textContent) : _temp1.innerHTML ?? ""}`);
|
||||
} else {
|
||||
return [
|
||||
withDirectives((openBlock(), createBlock("img", {
|
||||
@@ -274,7 +282,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
}, ["prevent"]),
|
||||
draggable: "false"
|
||||
}, null, 40, ["alt", "onContextmenu"])), [
|
||||
[_directive_lazy, { src: unref(getSupabaseStorageUrl)(story.stories[playingSlide.value]?.url), loading: unref(img_gif), error: unref(img_gif) }]
|
||||
[_directive_lazy, { src: unref(config).useDataStorage(story.stories[playingSlide.value]?.url), loading: unref(img_gif), error: unref(img_gif) }]
|
||||
])
|
||||
];
|
||||
}
|
||||
@@ -291,7 +299,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
alt: unref(config).appName.en,
|
||||
class: "w-full bg-black select-none pointer-events-none",
|
||||
key: _ctx.i
|
||||
}, ssrGetDirectiveProps(_ctx, _directive_lazy, { src: unref(getSupabaseStorageUrl)(userStory.value.stories[playingSlide.value]?.url), loading: unref(img_gif), error: unref(img_gif) })))}${_scopeId2}>${"textContent" in _temp2 ? ssrInterpolate(_temp2.textContent) : _temp2.innerHTML ?? ""}`);
|
||||
}, ssrGetDirectiveProps(_ctx, _directive_lazy, { src: unref(config).useDataStorage(userStory.value.stories[playingSlide.value]?.url), loading: unref(img_gif), error: unref(img_gif) })))}${_scopeId2}>${"textContent" in _temp2 ? ssrInterpolate(_temp2.textContent) : _temp2.innerHTML ?? ""}`);
|
||||
} else {
|
||||
return [
|
||||
withDirectives((openBlock(), createBlock("img", {
|
||||
@@ -299,7 +307,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
class: "w-full bg-black select-none pointer-events-none",
|
||||
key: _ctx.i
|
||||
}, null, 8, ["alt"])), [
|
||||
[_directive_lazy, { src: unref(getSupabaseStorageUrl)(userStory.value.stories[playingSlide.value]?.url), loading: unref(img_gif), error: unref(img_gif) }]
|
||||
[_directive_lazy, { src: unref(config).useDataStorage(userStory.value.stories[playingSlide.value]?.url), loading: unref(img_gif), error: unref(img_gif) }]
|
||||
])
|
||||
];
|
||||
}
|
||||
@@ -309,7 +317,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
}
|
||||
} else {
|
||||
return [
|
||||
!_ctx.specifyId ? (openBlock(true), createBlock(Fragment, { key: 0 }, renderList(unref(mediaStore).users, (story, i) => {
|
||||
!__props.specifyId ? (openBlock(true), createBlock(Fragment, { key: 0 }, renderList(unref(mediaStore).users, (story, i) => {
|
||||
return openBlock(), createBlock(unref(SwiperSlide), {
|
||||
key: i,
|
||||
class: "self-center"
|
||||
@@ -323,7 +331,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
}, ["prevent"]),
|
||||
draggable: "false"
|
||||
}, null, 40, ["alt", "onContextmenu"])), [
|
||||
[_directive_lazy, { src: unref(getSupabaseStorageUrl)(story.stories[playingSlide.value]?.url), loading: unref(img_gif), error: unref(img_gif) }]
|
||||
[_directive_lazy, { src: unref(config).useDataStorage(story.stories[playingSlide.value]?.url), loading: unref(img_gif), error: unref(img_gif) }]
|
||||
])
|
||||
]),
|
||||
_: 2
|
||||
@@ -338,7 +346,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
class: "w-full bg-black select-none pointer-events-none",
|
||||
key: _ctx.i
|
||||
}, null, 8, ["alt"])), [
|
||||
[_directive_lazy, { src: unref(getSupabaseStorageUrl)(userStory.value.stories[playingSlide.value]?.url), loading: unref(img_gif), error: unref(img_gif) }]
|
||||
[_directive_lazy, { src: unref(config).useDataStorage(userStory.value.stories[playingSlide.value]?.url), loading: unref(img_gif), error: unref(img_gif) }]
|
||||
])
|
||||
]),
|
||||
_: 1
|
||||
+375
-65
@@ -1,14 +1,23 @@
|
||||
import _objectSpread$1 from '@babel/runtime/helpers/esm/objectSpread2';
|
||||
import _extends from '@babel/runtime/helpers/esm/extends';
|
||||
import { createVNode, defineComponent, ref, watch, computed, watchEffect, provide, shallowRef, inject, Fragment, toRefs } from 'vue';
|
||||
import { w as wrapperRaf, T as Trigger } from './index-C9wXCwkF.mjs';
|
||||
import { b1 as Icon, T as initDefaultProps, ae as flattenChildren, L as omit, P as PropTypes, Z as isValidElement, be as camelize, az as devWarning, G as useConfigInject, H as genComponentStyleHook, bf as useState$1, aj as CloseOutlined, I as classNames, F as arrayType, C as functionType, a3 as objectType, D as stringType, E as booleanType, ay as someType, J as merge, bg as toPx, a1 as cloneElement, M as resetComponent, ar as textEllipsis, bh as genFocusStyle, as as KeyCode, bi as skipFlattenKey } from './server.mjs';
|
||||
import { u as useProvideOverride, E as EllipsisOutlined, M as Menu, _ as __nuxt_component_1 } from './index-Depu8Jil.mjs';
|
||||
import { R as ResizeObserver } from './index-B8JfwQ3c.mjs';
|
||||
import _objectSpread$1 from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@babel/runtime/helpers/esm/objectSpread2.js';
|
||||
import _extends from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@babel/runtime/helpers/esm/extends.js';
|
||||
import { createVNode, defineComponent, ref, watch, computed, mergeProps, unref, watchEffect, provide, shallowRef, nextTick, resolveDirective, withCtx, withDirectives, createBlock, openBlock, Fragment, renderList, inject, toRefs, useSSRContext } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { w as wrapperRaf, T as Trigger } from './index-Bn4rLj9V.mjs';
|
||||
import { b5 as Icon, O as initDefaultProps, aa as flattenChildren, H as omit, P as PropTypes, aW as useRouter, aR as useRoute, a as useConfigStore, b as useUserStore, V as isValidElement, bi as camelize, aC as devWarning, C as useConfigInject, D as genComponentStyleHook, bj as useState$1, af as CloseOutlined, E as classNames, B as arrayType, y as functionType, $ as objectType, z as stringType, A as booleanType, aB as someType, F as merge, bk as toPx, Y as cloneElement, u as useRouter$1, aA as useSwipe, I as resetComponent, ap as textEllipsis, bl as genFocusStyle, aq as KeyCode, bm as skipFlattenKey } from './server.mjs';
|
||||
import { u as useProvideOverride, E as EllipsisOutlined, M as Menu, _ as __nuxt_component_1$1 } from './index-D-yl9XJT.mjs';
|
||||
import { R as ResizeObserver } from './index-G65aBv4F.mjs';
|
||||
import { u as useRefs } from './useRefs-BHKrVg4I.mjs';
|
||||
import pick from 'lodash-es/pick.js';
|
||||
import pick from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/lodash-es/pick.js';
|
||||
import { u as useMergedState } from './useMergedState-BZEfJ8Fl.mjs';
|
||||
import { i as initSlideMotion } from './shallowequal-BCwuz4ga.mjs';
|
||||
import { i as initSlideMotion } from './shallowequal-BEyWmMEh.mjs';
|
||||
import { U as UserProfilePic } from './UserProfilePic-DaZ03Xcl.mjs';
|
||||
import { ssrRenderAttrs, ssrRenderComponent, ssrInterpolate, ssrRenderList, ssrGetDirectiveProps, ssrRenderAttr } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/server-renderer/index.mjs';
|
||||
import { B as BasicIconOld } from './BasicIconOld-93vAWohq.mjs';
|
||||
import { d as getHighlightsList } from './media-_NDkNIvH.mjs';
|
||||
import { s as setInterval$1, C as CustomProgressBar, a as _imports_0, i as img_gif } from './FullScreenStories-nkUmovER.mjs';
|
||||
import { Swiper, SwiperSlide } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/swiper/swiper-vue.mjs';
|
||||
import { u as useMediaStore } from './media-D7PFhdrG.mjs';
|
||||
import { e as empty_user } from './empty_user-DSxcM_ac.mjs';
|
||||
import { _ as _export_sfc } from './_plugin-vue_export-helper-1tPrXgE0.mjs';
|
||||
|
||||
// This icon file is generated automatically.
|
||||
var PlusOutlined$1 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" } }, { "tag": "path", "attrs": { "d": "M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" } }] }, "name": "plus", "theme": "outlined" };
|
||||
@@ -642,7 +651,7 @@ const OperationNode = defineComponent({
|
||||
default: () => [tabs.map((tab) => {
|
||||
var _a2, _b;
|
||||
const removable = editable && tab.closable !== false && !tab.disabled;
|
||||
return createVNode(__nuxt_component_1, {
|
||||
return createVNode(__nuxt_component_1$1, {
|
||||
"key": tab.key,
|
||||
"id": `${popupId.value}-${tab.key}`,
|
||||
"role": "option",
|
||||
@@ -686,7 +695,7 @@ const OperationNode = defineComponent({
|
||||
};
|
||||
}
|
||||
});
|
||||
const TabsContextKey = Symbol("tabsContextKey");
|
||||
const TabsContextKey = /* @__PURE__ */ Symbol("tabsContextKey");
|
||||
const useProvideTabs = (props) => {
|
||||
provide(TabsContextKey, props);
|
||||
};
|
||||
@@ -877,24 +886,6 @@ const tabNavListProps = () => {
|
||||
}
|
||||
};
|
||||
};
|
||||
const getTabSize = (tab, containerRect) => {
|
||||
const {
|
||||
offsetWidth,
|
||||
offsetHeight,
|
||||
offsetTop,
|
||||
offsetLeft
|
||||
} = tab;
|
||||
const {
|
||||
width,
|
||||
height,
|
||||
x,
|
||||
y
|
||||
} = tab.getBoundingClientRect();
|
||||
if (Math.abs(width - offsetWidth) < 1) {
|
||||
return [width, height, x - containerRect.x, y - containerRect.y];
|
||||
}
|
||||
return [offsetWidth, offsetHeight, offsetLeft, offsetTop];
|
||||
};
|
||||
const TabNavList = defineComponent({
|
||||
compatConfig: {
|
||||
MODE: 3
|
||||
@@ -1090,35 +1081,6 @@ const TabNavList = defineComponent({
|
||||
}
|
||||
return [visibleStart.value, visibleEnd.value] = [startIndex, endIndex];
|
||||
});
|
||||
const updateTabSizes = () => {
|
||||
setTabSizes(() => {
|
||||
var _a;
|
||||
const newSizes = /* @__PURE__ */ new Map();
|
||||
const listRect = (_a = tabListRef.value) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
|
||||
tabs.value.forEach((_ref2) => {
|
||||
let {
|
||||
key
|
||||
} = _ref2;
|
||||
const btnRef = btnRefs.value.get(key);
|
||||
const btnNode = (btnRef === null || btnRef === void 0 ? void 0 : btnRef.$el) || btnRef;
|
||||
if (btnNode) {
|
||||
const [width, height, left, top] = getTabSize(btnNode, listRect);
|
||||
newSizes.set(key, {
|
||||
width,
|
||||
height,
|
||||
left,
|
||||
top
|
||||
});
|
||||
}
|
||||
});
|
||||
return newSizes;
|
||||
});
|
||||
};
|
||||
watch(() => tabs.value.map((tab) => tab.key).join("%%"), () => {
|
||||
updateTabSizes();
|
||||
}, {
|
||||
flush: "post"
|
||||
});
|
||||
const onListHolderResize = () => {
|
||||
var _a, _b, _c, _d, _e;
|
||||
const offsetWidth = ((_a = tabsWrapperRef.value) === null || _a === void 0 ? void 0 : _a.offsetWidth) || 0;
|
||||
@@ -1134,7 +1096,25 @@ const TabNavList = defineComponent({
|
||||
const newWrapperScrollHeight = (((_e = tabListRef.value) === null || _e === void 0 ? void 0 : _e.offsetHeight) || 0) - newAddHeight;
|
||||
setWrapperScrollWidth(newWrapperScrollWidth);
|
||||
setWrapperScrollHeight(newWrapperScrollHeight);
|
||||
updateTabSizes();
|
||||
setTabSizes(() => {
|
||||
const newSizes = /* @__PURE__ */ new Map();
|
||||
tabs.value.forEach((_ref2) => {
|
||||
let {
|
||||
key
|
||||
} = _ref2;
|
||||
const btnRef = btnRefs.value.get(key);
|
||||
const btnNode = (btnRef === null || btnRef === void 0 ? void 0 : btnRef.$el) || btnRef;
|
||||
if (btnNode) {
|
||||
newSizes.set(key, {
|
||||
width: btnNode.offsetWidth,
|
||||
height: btnNode.offsetHeight,
|
||||
left: btnNode.offsetLeft,
|
||||
top: btnNode.offsetTop
|
||||
});
|
||||
}
|
||||
});
|
||||
return newSizes;
|
||||
});
|
||||
};
|
||||
const hiddenTabs = computed(() => [...tabs.value.slice(0, visibleStart.value), ...tabs.value.slice(visibleEnd.value + 1)]);
|
||||
const [inkStyle, setInkStyle] = useState$1();
|
||||
@@ -2342,7 +2322,7 @@ const InternalTabs = defineComponent({
|
||||
}, typeof animated === "object" ? animated : {});
|
||||
}
|
||||
});
|
||||
const [mobile, setMobile] = useState$1(false);
|
||||
const [mobile] = useState$1(false);
|
||||
const [mergedActiveKey, setMergedActiveKey] = useMergedState(() => {
|
||||
var _a;
|
||||
return (_a = props.tabs[0]) === null || _a === void 0 ? void 0 : _a.key;
|
||||
@@ -2360,7 +2340,7 @@ const InternalTabs = defineComponent({
|
||||
}
|
||||
setActiveIndex(newActiveIndex);
|
||||
});
|
||||
const [mergedId, setMergedId] = useMergedState(null, {
|
||||
const [mergedId] = useMergedState(null, {
|
||||
value: computed(() => props.id)
|
||||
});
|
||||
const mergedTabPosition = computed(() => {
|
||||
@@ -2527,7 +2507,7 @@ const tabPaneProps = () => ({
|
||||
}
|
||||
// closeIcon: PropTypes.any,
|
||||
});
|
||||
const __nuxt_component_2 = defineComponent({
|
||||
const __nuxt_component_1 = defineComponent({
|
||||
compatConfig: {
|
||||
MODE: 3
|
||||
},
|
||||
@@ -2588,11 +2568,341 @@ const __nuxt_component_2 = defineComponent({
|
||||
};
|
||||
}
|
||||
});
|
||||
Tabs.TabPane = __nuxt_component_2;
|
||||
Tabs.TabPane = __nuxt_component_1;
|
||||
Tabs.install = function(app) {
|
||||
app.component(Tabs.name, Tabs);
|
||||
app.component(__nuxt_component_2.name, __nuxt_component_2);
|
||||
app.component(__nuxt_component_1.name, __nuxt_component_1);
|
||||
return app;
|
||||
};
|
||||
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
||||
__name: "HighlightStories",
|
||||
__ssrInlineRender: true,
|
||||
props: {
|
||||
id: {},
|
||||
specifyId: { type: Boolean, default: false },
|
||||
stories: {},
|
||||
highlightId: {},
|
||||
cover: {},
|
||||
title: {}
|
||||
},
|
||||
emits: ["update:id", "refresh"],
|
||||
setup(__props, { emit: __emit }) {
|
||||
useRouter$1();
|
||||
ref();
|
||||
const swiperRef = ref(null);
|
||||
const indexStory = ref(0);
|
||||
const playingSlide = ref(0);
|
||||
const storySlides = ref(0);
|
||||
ref("");
|
||||
const config = useConfigStore();
|
||||
const props = __props;
|
||||
const emits = __emit;
|
||||
const progress = ref([]);
|
||||
const target = ref(null);
|
||||
const { direction, isSwiping } = useSwipe(target);
|
||||
ref(false);
|
||||
ref(false);
|
||||
ref(false);
|
||||
computed(() => {
|
||||
if (props.stories?.length) return props.stories[indexStory.value];
|
||||
});
|
||||
let interval = void 0;
|
||||
useMediaStore();
|
||||
useUserStore();
|
||||
const isPaused = ref(false);
|
||||
const swiperReady = ref(false);
|
||||
ref(false);
|
||||
watchEffect(() => {
|
||||
if (isSwiping.value && direction.value === "down") {
|
||||
emits("update:id", void 0);
|
||||
}
|
||||
});
|
||||
watch(indexStory, async (n) => {
|
||||
await indexHandle();
|
||||
});
|
||||
async function indexHandle() {
|
||||
storySlides.value = props.stories?.length;
|
||||
progress.value = [];
|
||||
await nextTick();
|
||||
if (swiperRef.value) {
|
||||
swiperRef.value.activeIndex = indexStory.value;
|
||||
}
|
||||
for (let i = 0; i < storySlides.value; i++) {
|
||||
progress.value.push(0);
|
||||
}
|
||||
stopInterval();
|
||||
startOver();
|
||||
}
|
||||
const onSwiper = (swiper) => {
|
||||
swiperRef.value = swiper;
|
||||
swiperReady.value = true;
|
||||
};
|
||||
const onSlideChange = (swiper) => {
|
||||
if (!swiperReady.value) return;
|
||||
const newIndex = swiper?.activeIndex;
|
||||
if (playingSlide.value !== newIndex) {
|
||||
playingSlide.value = newIndex;
|
||||
}
|
||||
};
|
||||
function startOver() {
|
||||
interval = setInterval$1();
|
||||
}
|
||||
function stopInterval() {
|
||||
clearInterval(interval);
|
||||
interval = void 0;
|
||||
}
|
||||
watch([playingSlide, swiperReady], ([newPlayingSlide, isReady]) => {
|
||||
if (!isReady || !swiperRef.value || !props.stories?.length) {
|
||||
return;
|
||||
}
|
||||
const safeIndex = Math.max(0, Math.min(newPlayingSlide, props.stories.length - 1));
|
||||
if (swiperRef.value.activeIndex === safeIndex) {
|
||||
return;
|
||||
}
|
||||
setTimeout(() => {
|
||||
try {
|
||||
swiperRef.value?.slideTo(safeIndex);
|
||||
} catch (error) {
|
||||
swiperReady.value = false;
|
||||
nextTick(() => swiperReady.value = true);
|
||||
}
|
||||
}, 50);
|
||||
}, { immediate: true });
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
const _directive_lazy = resolveDirective("lazy");
|
||||
let _temp0, _temp1;
|
||||
_push(`<!--[--><div class="flex full_story z-400 justify-center"><div class="relative w-full md:w-426px bg-black flex items-center">`);
|
||||
if (!isPaused.value) {
|
||||
_push(`<div class="absolute w-full top-0 right-0 left-0 z-1000"><div class="flex gap-2px shadow-xl"><!--[-->`);
|
||||
ssrRenderList(__props.stories, (story, index) => {
|
||||
_push(ssrRenderComponent(CustomProgressBar, {
|
||||
key: index,
|
||||
rtl: unref(config).isRTL,
|
||||
percent: progress.value[index]
|
||||
}, null, _parent));
|
||||
});
|
||||
_push(`<!--]--></div><div class="p-2 flex items-center gap-2 account-detail-area justify-between"><div class="flex items-center gap-2"><div class="relative"><img${ssrRenderAttrs(_temp0 = mergeProps({
|
||||
class: "w-2.5rem h-2.5rem rounded-full",
|
||||
alt: ""
|
||||
}, ssrGetDirectiveProps(_ctx, _directive_lazy, {
|
||||
src: unref(config).useDataStorage(__props.cover),
|
||||
loading: unref(empty_user),
|
||||
error: unref(empty_user)
|
||||
})))}>${"textContent" in _temp0 ? ssrInterpolate(_temp0.textContent) : _temp0.innerHTML ?? ""}`);
|
||||
if (unref(config).isSeller) {
|
||||
_push(`<img${ssrRenderAttr("src", _imports_0)} alt="" class="w-15px absolute right-0 bottom-0 bg-white rounded-full">`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(`</div><div class="text-gray-200 text-shadow text-xs">${ssrInterpolate(__props.title)}</div></div>`);
|
||||
_push(ssrRenderComponent(BasicIconOld, {
|
||||
icon: "vuesax-linear:add",
|
||||
class: "text-white rotate-45",
|
||||
size: "32",
|
||||
onClick: ($event) => emits("update:id", void 0)
|
||||
}, null, _parent));
|
||||
_push(`</div></div>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(`<div class="w-full">`);
|
||||
_push(ssrRenderComponent(unref(Swiper), {
|
||||
key: indexStory.value,
|
||||
ref_key: "swiperRef",
|
||||
ref: swiperRef,
|
||||
onSwiper,
|
||||
onSlideChange,
|
||||
initialSlide: indexStory.value,
|
||||
grabCursor: true,
|
||||
modules: [],
|
||||
speed: 0,
|
||||
noSwiping: true,
|
||||
class: "mySwiper6"
|
||||
}, {
|
||||
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
||||
if (_push2) {
|
||||
_push2(`<!--[-->`);
|
||||
ssrRenderList(__props.stories, (story, i) => {
|
||||
_push2(ssrRenderComponent(unref(SwiperSlide), {
|
||||
key: i,
|
||||
class: "self-center"
|
||||
}, {
|
||||
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
||||
if (_push3) {
|
||||
_push3(`<img${ssrRenderAttrs(_temp1 = mergeProps({
|
||||
alt: "instagram",
|
||||
class: "w-full bg-black pointer-events-none",
|
||||
key: indexStory.value
|
||||
}, ssrGetDirectiveProps(_ctx, _directive_lazy, {
|
||||
src: unref(config).useDataStorage(story?.media?.media_url),
|
||||
loading: unref(img_gif),
|
||||
error: unref(img_gif)
|
||||
})))}${_scopeId2}>${"textContent" in _temp1 ? ssrInterpolate(_temp1.textContent) : _temp1.innerHTML ?? ""}`);
|
||||
} else {
|
||||
return [
|
||||
withDirectives((openBlock(), createBlock("img", {
|
||||
alt: "instagram",
|
||||
class: "w-full bg-black pointer-events-none",
|
||||
key: indexStory.value
|
||||
})), [
|
||||
[_directive_lazy, {
|
||||
src: unref(config).useDataStorage(story?.media?.media_url),
|
||||
loading: unref(img_gif),
|
||||
error: unref(img_gif)
|
||||
}]
|
||||
])
|
||||
];
|
||||
}
|
||||
}),
|
||||
_: 2
|
||||
}, _parent2, _scopeId));
|
||||
});
|
||||
_push2(`<!--]-->`);
|
||||
} else {
|
||||
return [
|
||||
(openBlock(true), createBlock(Fragment, null, renderList(__props.stories, (story, i) => {
|
||||
return openBlock(), createBlock(unref(SwiperSlide), {
|
||||
key: i,
|
||||
class: "self-center"
|
||||
}, {
|
||||
default: withCtx(() => [
|
||||
withDirectives((openBlock(), createBlock("img", {
|
||||
alt: "instagram",
|
||||
class: "w-full bg-black pointer-events-none",
|
||||
key: indexStory.value
|
||||
})), [
|
||||
[_directive_lazy, {
|
||||
src: unref(config).useDataStorage(story?.media?.media_url),
|
||||
loading: unref(img_gif),
|
||||
error: unref(img_gif)
|
||||
}]
|
||||
])
|
||||
]),
|
||||
_: 2
|
||||
}, 1024);
|
||||
}), 128))
|
||||
];
|
||||
}
|
||||
}),
|
||||
_: 1
|
||||
}, _parent));
|
||||
_push(`</div></div></div>`);
|
||||
if (!isPaused.value) {
|
||||
_push(`<div class="absolute w-full bottom-0 right-0 left-0 z-1000 flex items-center gap8 px5 functions_area">`);
|
||||
if (unref(config).isSeller) {
|
||||
_push(`<div class="flex gap-5 items-center" dir="rtl"><div class="flex flex-col items-center gap-2 text-white functions-area basic-icon-old">`);
|
||||
_push(ssrRenderComponent(BasicIconOld, {
|
||||
icon: "vuesax-linear:trash",
|
||||
color: "red",
|
||||
size: "22",
|
||||
class: "h7"
|
||||
}, null, _parent));
|
||||
_push(`<div class="text-xs text-red-6">${ssrInterpolate(unref(config).useString("delete"))}</div></div></div>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
if (unref(config).isSeller) {
|
||||
_push(`<div class="flex gap-5 items-center" dir="rtl"><div class="flex flex-col items-center gap-2 text-white functions-area basic-icon-old">`);
|
||||
_push(ssrRenderComponent(BasicIconOld, {
|
||||
icon: "vuesax-linear:edit-2",
|
||||
size: "22",
|
||||
class: "h6"
|
||||
}, null, _parent));
|
||||
_push(`<div class="text-xs">${ssrInterpolate(unref(config).useString("edit"))}</div></div></div>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(`</div>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(`<!--]-->`);
|
||||
};
|
||||
}
|
||||
});
|
||||
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/HighlightStories.vue");
|
||||
return _sfc_setup$1 ? _sfc_setup$1(props, ctx) : void 0;
|
||||
};
|
||||
const HighlightStories = Object.assign(_sfc_main$1, { __name: "HighlightStories" });
|
||||
const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
__name: "Highlights",
|
||||
__ssrInlineRender: true,
|
||||
props: {
|
||||
currentUser: {}
|
||||
},
|
||||
setup(__props) {
|
||||
const highlights = ref([]);
|
||||
useRouter();
|
||||
const route = useRoute();
|
||||
const selectedStoryId = ref(null);
|
||||
const highlightId = ref(null);
|
||||
const highlightTitle = ref(null);
|
||||
const highlightCover = ref(null);
|
||||
ref(null);
|
||||
const stories = ref([]);
|
||||
ref(false);
|
||||
const config = useConfigStore();
|
||||
const { user } = useUserStore();
|
||||
const props = __props;
|
||||
const highlightsUser = async () => {
|
||||
try {
|
||||
const data = await getHighlightsList(route?.params?.id || config?.sellerConfig?.store.id, { page: 1, limit: 40 });
|
||||
highlights.value = data;
|
||||
} catch (e) {
|
||||
console.log(e);
|
||||
}
|
||||
};
|
||||
function updateHighlight() {
|
||||
highlightsUser();
|
||||
selectedStoryId.value = null;
|
||||
}
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
const _component_UserProfilePic = UserProfilePic;
|
||||
_push(`<div${ssrRenderAttrs(mergeProps({ class: "stories-container -ms4" }, _attrs))} data-v-4a8cdaa9><div class="scroll-wrapper ps-3" data-v-4a8cdaa9>`);
|
||||
if (unref(user)?.id === props.currentUser?.id) {
|
||||
_push(`<div class="me-2" data-v-4a8cdaa9><div class="border-gray-600 border-1 border-solid w-70px h-70px rounded-full flex items-center justify-center" data-v-4a8cdaa9>`);
|
||||
_push(ssrRenderComponent(BasicIconOld, { icon: "vuesax-linear:add" }, null, _parent));
|
||||
_push(`</div><div class="text-center text-xs mt-7px" data-v-4a8cdaa9>${ssrInterpolate(unref(config).useString("new"))}</div></div>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(`<!--[-->`);
|
||||
ssrRenderList(highlights.value, (highlight) => {
|
||||
_push(`<div class="story" data-v-4a8cdaa9><div class="text-center" data-v-4a8cdaa9>`);
|
||||
_push(ssrRenderComponent(_component_UserProfilePic, {
|
||||
src: highlight?.cover_media_url,
|
||||
"seen-story": true,
|
||||
width: "75"
|
||||
}, null, _parent));
|
||||
_push(`</div><div class="w-full text-center text-xs truncate" data-v-4a8cdaa9>${ssrInterpolate(highlight?.title)}</div></div>`);
|
||||
});
|
||||
_push(`<!--]--></div>`);
|
||||
if (selectedStoryId.value) {
|
||||
_push(ssrRenderComponent(HighlightStories, {
|
||||
id: selectedStoryId.value,
|
||||
"onUpdate:id": ($event) => selectedStoryId.value = $event,
|
||||
highlightId: highlightId.value,
|
||||
title: highlightTitle.value,
|
||||
cover: highlightCover.value,
|
||||
stories: stories.value,
|
||||
onRefresh: updateHighlight
|
||||
}, 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("components/Highlights.vue");
|
||||
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
||||
};
|
||||
const Highlights = /* @__PURE__ */ Object.assign(_export_sfc(_sfc_main, [["__scopeId", "data-v-4a8cdaa9"]]), { __name: "Highlights" });
|
||||
|
||||
export { Tabs as T, __nuxt_component_2 as _ };
|
||||
export { Highlights as H, Tabs as T, __nuxt_component_1 as _ };
|
||||
@@ -1,821 +0,0 @@
|
||||
import _objectSpread from '@babel/runtime/helpers/esm/objectSpread2';
|
||||
import _extends from '@babel/runtime/helpers/esm/extends';
|
||||
import { defineComponent, unref, mergeProps, ref, computed, createVNode, Fragment, watchEffect, watch, nextTick, resolveDirective, withCtx, withDirectives, createBlock, openBlock, renderList, useSSRContext, renderSlot } from 'vue';
|
||||
import { _ as __nuxt_component_2, t as tooltipDefaultProps, b as abstractTooltipProps, c as getArrowStyle, P as PresetColors } from './index-C9wXCwkF.mjs';
|
||||
import { Y as withInstall, a as useConfigStore, T as initDefaultProps, aC as warning, G as useConfigInject, H as genComponentStyleHook, I as classNames, L as omit, a0 as getTransitionName, aD as useRouter, aE as useRoute, b as useUserStore, J as merge, a4 as initZoomMotion, U as filterEmpty, ap as anyType, M as resetComponent, u as useRouter$1, ax as useSwipe, x as getSupabaseStorageUrl, aF as api } from './server.mjs';
|
||||
import { ssrRenderAttrs, ssrRenderComponent, ssrInterpolate, ssrRenderList, ssrGetDirectiveProps, ssrRenderAttr, ssrRenderClass, ssrIncludeBooleanAttr, ssrLooseContain, ssrRenderSlot } from 'vue/server-renderer';
|
||||
import { U as UserProfilePic } from './UserProfilePic-BwsIUO56.mjs';
|
||||
import { B as BasicIconOld } from './BasicIconOld-93vAWohq.mjs';
|
||||
import { d as getHighlightsList, e as getUserStories } from './media-DD0HTZbK.mjs';
|
||||
import { s as setInterval, C as CustomProgressBar, a as _imports_0$2, i as img_gif } from './FullScreenStories-BF2ht6tI.mjs';
|
||||
import { Swiper, SwiperSlide } from 'swiper/vue';
|
||||
import { u as useMediaStore } from './media-C3Y2QweF.mjs';
|
||||
import { e as empty_user } from './empty_user-BaUNCdgf.mjs';
|
||||
import { i as img_gif$1 } from './post_loading-BiySI7bp.mjs';
|
||||
import { B as BasicSheet } from './index-6Q0zJ0BK.mjs';
|
||||
import { cloneDeep } from 'lodash-es';
|
||||
import { _ as _export_sfc } from './_plugin-vue_export-helper-1tPrXgE0.mjs';
|
||||
|
||||
const genBaseStyle = (token) => {
|
||||
const {
|
||||
componentCls,
|
||||
popoverBg,
|
||||
popoverColor,
|
||||
width,
|
||||
fontWeightStrong,
|
||||
popoverPadding,
|
||||
boxShadowSecondary,
|
||||
colorTextHeading,
|
||||
borderRadiusLG: borderRadius,
|
||||
zIndexPopup,
|
||||
marginXS,
|
||||
colorBgElevated
|
||||
} = token;
|
||||
return [
|
||||
{
|
||||
[componentCls]: _extends(_extends({}, resetComponent(token)), {
|
||||
position: "absolute",
|
||||
top: 0,
|
||||
// use `left` to fix https://github.com/ant-design/ant-design/issues/39195
|
||||
left: {
|
||||
_skip_check_: true,
|
||||
value: 0
|
||||
},
|
||||
zIndex: zIndexPopup,
|
||||
fontWeight: "normal",
|
||||
whiteSpace: "normal",
|
||||
textAlign: "start",
|
||||
cursor: "auto",
|
||||
userSelect: "text",
|
||||
"--antd-arrow-background-color": colorBgElevated,
|
||||
"&-rtl": {
|
||||
direction: "rtl"
|
||||
},
|
||||
"&-hidden": {
|
||||
display: "none"
|
||||
},
|
||||
[`${componentCls}-content`]: {
|
||||
position: "relative"
|
||||
},
|
||||
[`${componentCls}-inner`]: {
|
||||
backgroundColor: popoverBg,
|
||||
backgroundClip: "padding-box",
|
||||
borderRadius,
|
||||
boxShadow: boxShadowSecondary,
|
||||
padding: popoverPadding
|
||||
},
|
||||
[`${componentCls}-title`]: {
|
||||
minWidth: width,
|
||||
marginBottom: marginXS,
|
||||
color: colorTextHeading,
|
||||
fontWeight: fontWeightStrong
|
||||
},
|
||||
[`${componentCls}-inner-content`]: {
|
||||
color: popoverColor
|
||||
}
|
||||
})
|
||||
},
|
||||
// Arrow Style
|
||||
getArrowStyle(token, {
|
||||
colorBg: "var(--antd-arrow-background-color)"
|
||||
}),
|
||||
// Pure Render
|
||||
{
|
||||
[`${componentCls}-pure`]: {
|
||||
position: "relative",
|
||||
maxWidth: "none",
|
||||
[`${componentCls}-content`]: {
|
||||
display: "inline-block"
|
||||
}
|
||||
}
|
||||
}
|
||||
];
|
||||
};
|
||||
const genColorStyle = (token) => {
|
||||
const {
|
||||
componentCls
|
||||
} = token;
|
||||
return {
|
||||
[componentCls]: PresetColors.map((colorKey) => {
|
||||
const lightColor = token[`${colorKey}-6`];
|
||||
return {
|
||||
[`&${componentCls}-${colorKey}`]: {
|
||||
"--antd-arrow-background-color": lightColor,
|
||||
[`${componentCls}-inner`]: {
|
||||
backgroundColor: lightColor
|
||||
},
|
||||
[`${componentCls}-arrow`]: {
|
||||
background: "transparent"
|
||||
}
|
||||
}
|
||||
};
|
||||
})
|
||||
};
|
||||
};
|
||||
const genWireframeStyle = (token) => {
|
||||
const {
|
||||
componentCls,
|
||||
lineWidth,
|
||||
lineType,
|
||||
colorSplit,
|
||||
paddingSM,
|
||||
controlHeight,
|
||||
fontSize,
|
||||
lineHeight,
|
||||
padding
|
||||
} = token;
|
||||
const titlePaddingBlockDist = controlHeight - Math.round(fontSize * lineHeight);
|
||||
const popoverTitlePaddingBlockTop = titlePaddingBlockDist / 2;
|
||||
const popoverTitlePaddingBlockBottom = titlePaddingBlockDist / 2 - lineWidth;
|
||||
const popoverPaddingHorizontal = padding;
|
||||
return {
|
||||
[componentCls]: {
|
||||
[`${componentCls}-inner`]: {
|
||||
padding: 0
|
||||
},
|
||||
[`${componentCls}-title`]: {
|
||||
margin: 0,
|
||||
padding: `${popoverTitlePaddingBlockTop}px ${popoverPaddingHorizontal}px ${popoverTitlePaddingBlockBottom}px`,
|
||||
borderBottom: `${lineWidth}px ${lineType} ${colorSplit}`
|
||||
},
|
||||
[`${componentCls}-inner-content`]: {
|
||||
padding: `${paddingSM}px ${popoverPaddingHorizontal}px`
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
const useStyle = genComponentStyleHook("Popover", (token) => {
|
||||
const {
|
||||
colorBgElevated,
|
||||
colorText,
|
||||
wireframe
|
||||
} = token;
|
||||
const popoverToken = merge(token, {
|
||||
popoverBg: colorBgElevated,
|
||||
popoverColor: colorText,
|
||||
popoverPadding: 12
|
||||
// Fixed Value
|
||||
});
|
||||
return [genBaseStyle(popoverToken), genColorStyle(popoverToken), wireframe && genWireframeStyle(popoverToken), initZoomMotion(popoverToken, "zoom-big")];
|
||||
}, (_ref) => {
|
||||
let {
|
||||
zIndexPopupBase
|
||||
} = _ref;
|
||||
return {
|
||||
zIndexPopup: zIndexPopupBase + 30,
|
||||
width: 177
|
||||
};
|
||||
});
|
||||
const popoverProps = () => _extends(_extends({}, abstractTooltipProps()), {
|
||||
content: anyType(),
|
||||
title: anyType()
|
||||
});
|
||||
const Popover = defineComponent({
|
||||
compatConfig: {
|
||||
MODE: 3
|
||||
},
|
||||
name: "APopover",
|
||||
inheritAttrs: false,
|
||||
props: initDefaultProps(popoverProps(), _extends(_extends({}, tooltipDefaultProps()), {
|
||||
trigger: "hover",
|
||||
placement: "top",
|
||||
mouseEnterDelay: 0.1,
|
||||
mouseLeaveDelay: 0.1
|
||||
})),
|
||||
setup(props, _ref) {
|
||||
let {
|
||||
expose,
|
||||
slots,
|
||||
attrs
|
||||
} = _ref;
|
||||
const tooltipRef = ref();
|
||||
warning(props.visible === void 0);
|
||||
expose({
|
||||
getPopupDomNode: () => {
|
||||
var _a, _b;
|
||||
return (_b = (_a = tooltipRef.value) === null || _a === void 0 ? void 0 : _a.getPopupDomNode) === null || _b === void 0 ? void 0 : _b.call(_a);
|
||||
}
|
||||
});
|
||||
const {
|
||||
prefixCls,
|
||||
configProvider
|
||||
} = useConfigInject("popover", props);
|
||||
const [wrapSSR, hashId] = useStyle(prefixCls);
|
||||
const rootPrefixCls = computed(() => configProvider.getPrefixCls());
|
||||
const getOverlay = () => {
|
||||
var _a, _b;
|
||||
const {
|
||||
title = filterEmpty((_a = slots.title) === null || _a === void 0 ? void 0 : _a.call(slots)),
|
||||
content = filterEmpty((_b = slots.content) === null || _b === void 0 ? void 0 : _b.call(slots))
|
||||
} = props;
|
||||
const hasTitle = !!(Array.isArray(title) ? title.length : title);
|
||||
const hasContent = !!(Array.isArray(content) ? content.length : title);
|
||||
if (!hasTitle && !hasContent) return null;
|
||||
return createVNode(Fragment, null, [hasTitle && createVNode("div", {
|
||||
"class": `${prefixCls.value}-title`
|
||||
}, [title]), createVNode("div", {
|
||||
"class": `${prefixCls.value}-inner-content`
|
||||
}, [content])]);
|
||||
};
|
||||
return () => {
|
||||
const overlayCls = classNames(props.overlayClassName, hashId.value);
|
||||
return wrapSSR(createVNode(__nuxt_component_2, _objectSpread(_objectSpread(_objectSpread({}, omit(props, ["title", "content"])), attrs), {}, {
|
||||
"prefixCls": prefixCls.value,
|
||||
"ref": tooltipRef,
|
||||
"overlayClassName": overlayCls,
|
||||
"transitionName": getTransitionName(rootPrefixCls.value, "zoom-big", props.transitionName),
|
||||
"data-popover-inject": true
|
||||
}), {
|
||||
title: getOverlay,
|
||||
default: slots.default
|
||||
}));
|
||||
};
|
||||
}
|
||||
});
|
||||
const __nuxt_component_1 = withInstall(Popover);
|
||||
const _imports_2 = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml:space='preserve'%20viewBox='0%200%2050%2050'%20id='grid'%3e%3cpath%20d='M48%202H2v46h46V2zm-2%2011h-9V4h9v9zm-20%200V4h9v9h-9zm9%202v9h-9v-9h9zm-11-2h-9V4h9v9zm0%202v9h-9v-9h9zm-11%209H4v-9h9v9zm0%202v9H4v-9h9zm2%200h9v9h-9v-9zm9%2011v9h-9v-9h9zm2%200h9v9h-9v-9zm0-2v-9h9v9h-9zm11-9h9v9h-9v-9zm0-2v-9h9v9h-9zM13%204v9H4V4h9zM4%2037h9v9H4v-9zm33%209v-9h9v9h-9z'/%3e%3c/svg%3e";
|
||||
const _imports_3 = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='Layer_1'%20data-name='Layer%201'%20viewBox='0%200%20122.64%20122.88'%3e%3ctitle%3estories%3c/title%3e%3cpath%20d='M104,31.15c2.31,5.65,5.11,11.94,6.52,17.55a51.83,51.83,0,0,1,1.54,15.24,50.9,50.9,0,0,1-3,15,49.87,49.87,0,0,1-7.24,13.23A49.12,49.12,0,0,1,91,102.49h0a54.85,54.85,0,0,1-4.74,3q-2.44,1.38-5,2.49a52,52,0,0,1-11.38,3.56,49.5,49.5,0,0,1-11.67.82L57,112.28l-2.76,10.28,1.89.15A60.44,60.44,0,0,0,71.05,122a63,63,0,0,0,14.51-4.42q2.94-1.3,5.83-2.93c1.87-1.06,3.75-2.25,5.62-3.55A59.59,59.59,0,0,0,119,82.48,61.68,61.68,0,0,0,120.7,46.1c-2-5.77-4.18-13.39-8.31-19.22-2.73-3.86-10.73-1.57-8.35,4.27ZM56,44.74a5.34,5.34,0,1,1,10.67,0V56.1H78a5.34,5.34,0,0,1,0,10.68H66.66V78.14a5.34,5.34,0,1,1-10.67,0V66.78H44.62a5.34,5.34,0,1,1,0-10.68H56V44.74ZM24.25,110.36a59.9,59.9,0,0,0,11.46,7l1.69.79,2.75-10.25L39,107.35a49.27,49.27,0,0,1-8.38-5.28,50.34,50.34,0,0,1-7.25-6.93l-.85-1-9.17,5.29,1.18,1.43a61.27,61.27,0,0,0,9.72,9.48ZM.57,69.53A59.49,59.49,0,0,0,4,82.67l.65,1.72,9.17-5.29-.44-1.24a49.32,49.32,0,0,1-2.4-9.72,48.75,48.75,0,0,1-.37-10l.07-1.29L.41,54.15.24,56A58.82,58.82,0,0,0,.57,69.53ZM8.38,31c-.92,1.55-1.75,3.11-2.51,4.7l-.81,1.7,10.25,2.75L15.89,39c.58-1.13,1.19-2.23,1.83-3.29s1.35-2.13,2.1-3.17a61.6,61.6,0,0,1,3.9-4.93A53.89,53.89,0,0,1,28,23.22l.93-.85-5.31-9.21-1.44,1.25a66.4,66.4,0,0,0-5.74,5.65,72.56,72.56,0,0,0-5.15,6.41c-1.05,1.48-2,3-2.92,4.5ZM50.44.78A54.27,54.27,0,0,0,40.27,3.52l-1.74.65,5.3,9.18,1.22-.43a44.39,44.39,0,0,1,15.71-2.43c1.21,0,2.48.11,3.79.26s2.51.33,3.74.58,2.55.56,3.8.93,2.5.8,3.79,1.3h0a5.24,5.24,0,1,0,3.79-9.77C78.15,3.2,76.59,2.67,75,2.2s-3.12-.84-4.65-1.15S67.28.5,65.76.33,62.63.05,61,0A55.87,55.87,0,0,0,50.44.78Z'/%3e%3c/svg%3e";
|
||||
const _imports_0$1 = "data:image/svg+xml,%3csvg%20width='23'%20height='23'%20viewBox='0%200%2023%2023'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='1.04163'%20y='1.52081'%20width='20'%20height='20'%20rx='5'%20stroke='white'%20stroke-width='2'/%3e%3cpath%20d='M11.0416%206.02081L11.0416%2017.0208'%20stroke='white'%20stroke-width='2'%20stroke-linecap='round'/%3e%3cpath%20d='M16.5416%2011.5208L5.54163%2011.5208'%20stroke='white'%20stroke-width='2'%20stroke-linecap='round'/%3e%3c/svg%3e";
|
||||
const _imports_1$1 = "data:image/svg+xml,%3csvg%20width='23'%20height='23'%20viewBox='0%200%2023%2023'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='1.04163'%20y='1.52081'%20width='20'%20height='20'%20rx='5'%20stroke='black'%20stroke-width='2'/%3e%3cpath%20d='M11.0416%206.02081L11.0416%2017.0208'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'/%3e%3cpath%20d='M16.5416%2011.5208L5.54163%2011.5208'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'/%3e%3c/svg%3e";
|
||||
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
||||
__name: "add",
|
||||
__ssrInlineRender: true,
|
||||
setup(__props) {
|
||||
const config = useConfigStore();
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
if (unref(config).isNightStore) {
|
||||
_push(`<img${ssrRenderAttrs(mergeProps({
|
||||
src: _imports_0$1,
|
||||
alt: "comment",
|
||||
"cursor-pointer": ""
|
||||
}, _attrs))}>`);
|
||||
} else {
|
||||
_push(`<img${ssrRenderAttrs(mergeProps({
|
||||
src: _imports_1$1,
|
||||
alt: "comment",
|
||||
"cursor-pointer": ""
|
||||
}, _attrs))}>`);
|
||||
}
|
||||
};
|
||||
}
|
||||
});
|
||||
const _sfc_setup$6 = _sfc_main$6.setup;
|
||||
_sfc_main$6.setup = (props, ctx) => {
|
||||
const ssrContext = useSSRContext();
|
||||
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("assets/img/icons/add.vue");
|
||||
return _sfc_setup$6 ? _sfc_setup$6(props, ctx) : void 0;
|
||||
};
|
||||
const _imports_0 = "data:image/svg+xml,%3csvg%20width='21'%20height='18'%20viewBox='0%200%2021%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M20.25%200H1.25L1.14823%200.00684662C0.782154%200.056509%200.5%200.370304%200.5%200.75C0.5%201.16421%200.835786%201.5%201.25%201.5H20.25L20.3518%201.49315C20.7178%201.44349%2021%201.1297%2021%200.75C21%200.335786%2020.6642%200%2020.25%200ZM1.25%208H20.25C20.6642%208%2021%208.33579%2021%208.75C21%209.1297%2020.7178%209.44349%2020.3518%209.49315L20.25%209.5H1.25C0.835786%209.5%200.5%209.16421%200.5%208.75C0.5%208.3703%200.782154%208.05651%201.14823%208.00685L1.25%208ZM1.25%2016H20.25C20.6642%2016%2021%2016.3358%2021%2016.75C21%2017.1297%2020.7178%2017.4435%2020.3518%2017.4932L20.25%2017.5H1.25C0.835786%2017.5%200.5%2017.1642%200.5%2016.75C0.5%2016.3703%200.782154%2016.0565%201.14823%2016.0068L1.25%2016Z'%20fill='white'/%3e%3c/svg%3e";
|
||||
const _imports_1 = "data:image/svg+xml,%3csvg%20width='21'%20height='18'%20viewBox='0%200%2021%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M20.25%200H1.25L1.14823%200.00684662C0.782154%200.056509%200.5%200.370304%200.5%200.75C0.5%201.16421%200.835786%201.5%201.25%201.5H20.25L20.3518%201.49315C20.7178%201.44349%2021%201.1297%2021%200.75C21%200.335786%2020.6642%200%2020.25%200ZM1.25%208H20.25C20.6642%208%2021%208.33579%2021%208.75C21%209.1297%2020.7178%209.44349%2020.3518%209.49315L20.25%209.5H1.25C0.835786%209.5%200.5%209.16421%200.5%208.75C0.5%208.3703%200.782154%208.05651%201.14823%208.00685L1.25%208ZM1.25%2016H20.25C20.6642%2016%2021%2016.3358%2021%2016.75C21%2017.1297%2020.7178%2017.4435%2020.3518%2017.4932L20.25%2017.5H1.25C0.835786%2017.5%200.5%2017.1642%200.5%2016.75C0.5%2016.3703%200.782154%2016.0565%201.14823%2016.0068L1.25%2016Z'%20fill='%23262626'/%3e%3c/svg%3e";
|
||||
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
||||
__name: "menu",
|
||||
__ssrInlineRender: true,
|
||||
setup(__props) {
|
||||
const config = useConfigStore();
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
if (unref(config).isNightStore) {
|
||||
_push(`<img${ssrRenderAttrs(mergeProps({
|
||||
src: _imports_0,
|
||||
alt: "comment",
|
||||
"cursor-pointer": ""
|
||||
}, _attrs))}>`);
|
||||
} else {
|
||||
_push(`<img${ssrRenderAttrs(mergeProps({
|
||||
src: _imports_1,
|
||||
alt: "comment",
|
||||
"cursor-pointer": ""
|
||||
}, _attrs))}>`);
|
||||
}
|
||||
};
|
||||
}
|
||||
});
|
||||
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("assets/img/icons/menu.vue");
|
||||
return _sfc_setup$5 ? _sfc_setup$5(props, ctx) : void 0;
|
||||
};
|
||||
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
||||
__name: "StoriesComponent",
|
||||
__ssrInlineRender: true,
|
||||
props: {
|
||||
story: {},
|
||||
selectedStory: {}
|
||||
},
|
||||
emits: ["update:selectedStory"],
|
||||
setup(__props, { emit: __emit }) {
|
||||
const props = __props;
|
||||
const emit = __emit;
|
||||
const isSelected = computed(() => props.selectedStory?.includes(props.story?.id));
|
||||
const internalSelectedStory = computed({
|
||||
get() {
|
||||
return props.selectedStory;
|
||||
},
|
||||
set(value) {
|
||||
emit("update:selectedStory", value);
|
||||
}
|
||||
});
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
const _directive_lazy = resolveDirective("lazy");
|
||||
let _temp0;
|
||||
_push(`<div${ssrRenderAttrs(mergeProps({ class: "w-full h-full aspect-[2/3] relative" }, _attrs))}><img${ssrRenderAttrs(_temp0 = mergeProps({
|
||||
class: ["w-full h-full object-cover aspect-[2/3]", isSelected.value && "bg-gray-500 opacity-50"]
|
||||
}, ssrGetDirectiveProps(_ctx, _directive_lazy, {
|
||||
src: unref(getSupabaseStorageUrl)(_ctx.story?.media_url),
|
||||
loading: unref(img_gif$1),
|
||||
error: unref(img_gif$1)
|
||||
})))}>${"textContent" in _temp0 ? ssrInterpolate(_temp0.textContent) : _temp0.innerHTML ?? ""}<input type="checkbox"${ssrRenderAttr("id", `story-${_ctx.story.id}`)}${ssrRenderAttr("value", _ctx.story)}${ssrIncludeBooleanAttr(Array.isArray(internalSelectedStory.value) ? ssrLooseContain(internalSelectedStory.value, _ctx.story) : internalSelectedStory.value) ? " checked" : ""} class="absolute opacity-0 w-full h-full peer"><label${ssrRenderAttr("for", `story-${_ctx.story.id}`)} class="absolute bottom-2 right-2 w-5 h-5 rounded border-1 border-black cursor-pointer transition-all group-hover:ring-2 group-hover:ring-blue-400 peer-checked:bg-black peer-checked:border-black"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" class="${ssrRenderClass([isSelected.value ? "peer-checked:opacity-100" : "opacity-0", "w-18px h-18px text-white bg-black transition-opacity"])}"><path d="M5 12l5 5L20 7"></path></svg></label></div>`);
|
||||
};
|
||||
}
|
||||
});
|
||||
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("components/StoriesComponent.vue");
|
||||
return _sfc_setup$4 ? _sfc_setup$4(props, ctx) : void 0;
|
||||
};
|
||||
const StoriesComponent = Object.assign(_sfc_main$4, { __name: "StoriesComponent" });
|
||||
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
||||
__name: "AddStoryToHighlightModal",
|
||||
__ssrInlineRender: true,
|
||||
props: {
|
||||
modelValue: {
|
||||
type: Boolean,
|
||||
required: true
|
||||
},
|
||||
highlightId: {
|
||||
type: String,
|
||||
required: false
|
||||
}
|
||||
},
|
||||
emits: ["update:modelValue", "close", "success"],
|
||||
setup(__props, { emit: __emit }) {
|
||||
const props = __props;
|
||||
const emit = __emit;
|
||||
const config = useConfigStore();
|
||||
const { user } = useUserStore();
|
||||
const selectedStory = ref(null);
|
||||
const stories = ref([]);
|
||||
const loading = ref(false);
|
||||
const close = (e) => {
|
||||
emit("update:modelValue", false);
|
||||
};
|
||||
watch(() => props.modelValue, (newVal) => {
|
||||
if (!newVal) {
|
||||
close();
|
||||
}
|
||||
});
|
||||
const getStories = async () => {
|
||||
try {
|
||||
loading.value = true;
|
||||
const storiesRequest = await getUserStories(user?.user_id);
|
||||
stories.value = storiesRequest?.flatMap((story) => story?.mediaitems);
|
||||
} catch (e) {
|
||||
api.error("error in fetching stories");
|
||||
} finally {
|
||||
loading.value = false;
|
||||
}
|
||||
};
|
||||
getStories();
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
if (__props.modelValue) {
|
||||
_push(`<div${ssrRenderAttrs(mergeProps({ class: "flex full_story z-400 justify-center fixed inset-0 bg-opacity-0" }, _attrs))}><div class="w-full md:w-426px bg-black pb-5rem"><div class="flex p-4 gap-8 justify-between items-center"><div class="flex gap-4 items-center">`);
|
||||
_push(ssrRenderComponent(BasicIconOld, {
|
||||
icon: !unref(config).isRTL ? "vuesax-linear:arrow-left" : "vuesax-linear:arrow-right",
|
||||
color: "white",
|
||||
onClick: close
|
||||
}, null, _parent));
|
||||
_push(`<div class="font-semibold text-white text-lg">${ssrInterpolate(unref(config).useString("selectsStory"))}</div></div><div class="${ssrRenderClass([!selectedStory.value && "cursor-not-allowed !text-gray", "text-primary text-sm fw-bold"])}"${ssrIncludeBooleanAttr(!selectedStory.value) ? " disabled" : ""}>${ssrInterpolate(unref(config).useString("done"))}</div></div><div class="w-full grid grid-cols-3 mt-2 gap-2px pb-5vh"><!--[-->`);
|
||||
ssrRenderList(stories.value, (story) => {
|
||||
_push(ssrRenderComponent(StoriesComponent, {
|
||||
key: story.id,
|
||||
story,
|
||||
selectedStory: selectedStory.value,
|
||||
"onUpdate:selectedStory": ($event) => selectedStory.value = $event
|
||||
}, null, _parent));
|
||||
});
|
||||
_push(`<!--]--></div></div></div>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
};
|
||||
}
|
||||
});
|
||||
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/AddStoryToHighlightModal.vue");
|
||||
return _sfc_setup$3 ? _sfc_setup$3(props, ctx) : void 0;
|
||||
};
|
||||
Object.assign(_sfc_main$3, { __name: "AddStoryToHighlightModal" });
|
||||
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
||||
__name: "ActionsHighlightBottomSheet",
|
||||
__ssrInlineRender: true,
|
||||
props: {
|
||||
open: { type: Boolean, default: false },
|
||||
isEdit: { type: Boolean },
|
||||
data: {}
|
||||
},
|
||||
emits: ["update:open", "update:isEdit", "success"],
|
||||
setup(__props, { emit: __emit }) {
|
||||
useConfigStore();
|
||||
const sheetRef = ref(null);
|
||||
computed(() => {
|
||||
return formFields.value.id ? "ویرایش آدرس" : "ثبت آدرس جدید";
|
||||
});
|
||||
const emits = __emit;
|
||||
const formFields = ref({
|
||||
default_address: false,
|
||||
city: "",
|
||||
province: "",
|
||||
phone: "",
|
||||
address: "",
|
||||
zip: ""
|
||||
});
|
||||
const props = __props;
|
||||
ref();
|
||||
const cloneAddress = cloneDeep(formFields.value);
|
||||
function resetAddress() {
|
||||
formFields.value = cloneDeep(cloneAddress);
|
||||
}
|
||||
const addForm = () => {
|
||||
resetAddress();
|
||||
};
|
||||
const editForm = () => {
|
||||
Object.assign(formFields.value, props.data?.payload);
|
||||
console.log(formFields.value);
|
||||
};
|
||||
watch(props, (value) => {
|
||||
if (value.open) {
|
||||
openSheet();
|
||||
} else {
|
||||
closeSheet();
|
||||
}
|
||||
if (props.isEdit) {
|
||||
editForm();
|
||||
} else {
|
||||
addForm();
|
||||
}
|
||||
});
|
||||
async function openSheet() {
|
||||
await nextTick();
|
||||
await sheetRef.value?.setOpen();
|
||||
}
|
||||
async function closeSheet() {
|
||||
await nextTick();
|
||||
await sheetRef.value?.setClose();
|
||||
emits("update:open", false);
|
||||
}
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
_push(ssrRenderComponent(BasicSheet, mergeProps({
|
||||
title: "",
|
||||
ref_key: "sheetRef",
|
||||
ref: sheetRef,
|
||||
headerCls: "",
|
||||
closeOnClickOutside: "",
|
||||
onOnClickOutside: ($event) => emits("update:open", false),
|
||||
onOnClose: ($event) => emits("update:open", false)
|
||||
}, _attrs), {
|
||||
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
||||
if (_push2) {
|
||||
_push2(`<div class="min-h-10vh overflow-y-auto px-2 mt3 pb-10"${_scopeId}>`);
|
||||
ssrRenderSlot(_ctx.$slots, "default", {}, null, _push2, _parent2, _scopeId);
|
||||
_push2(`</div>`);
|
||||
} else {
|
||||
return [
|
||||
createVNode("div", { class: "min-h-10vh overflow-y-auto px-2 mt3 pb-10" }, [
|
||||
renderSlot(_ctx.$slots, "default")
|
||||
])
|
||||
];
|
||||
}
|
||||
}),
|
||||
_: 3
|
||||
}, _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("components/ActionsHighlightBottomSheet.vue");
|
||||
return _sfc_setup$2 ? _sfc_setup$2(props, ctx) : void 0;
|
||||
};
|
||||
Object.assign(_sfc_main$2, { __name: "ActionsHighlightBottomSheet" });
|
||||
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
||||
__name: "HighlightStories",
|
||||
__ssrInlineRender: true,
|
||||
props: {
|
||||
id: {},
|
||||
specifyId: { type: Boolean, default: false },
|
||||
stories: {},
|
||||
highlightId: {},
|
||||
cover: {},
|
||||
title: {}
|
||||
},
|
||||
emits: ["update:id", "refresh"],
|
||||
setup(__props, { emit: __emit }) {
|
||||
useRouter$1();
|
||||
ref();
|
||||
const swiperRef = ref(null);
|
||||
const indexStory = ref(0);
|
||||
const playingSlide = ref(0);
|
||||
const storySlides = ref(0);
|
||||
ref("");
|
||||
const config = useConfigStore();
|
||||
const props = __props;
|
||||
const emits = __emit;
|
||||
const progress = ref([]);
|
||||
const target = ref(null);
|
||||
const { direction, isSwiping } = useSwipe(target);
|
||||
ref(false);
|
||||
ref(false);
|
||||
ref(false);
|
||||
computed(() => {
|
||||
if (props.stories?.length) return props.stories[indexStory.value];
|
||||
});
|
||||
useMediaStore();
|
||||
useUserStore();
|
||||
const isPaused = ref(false);
|
||||
const swiperReady = ref(false);
|
||||
ref(false);
|
||||
watchEffect(() => {
|
||||
if (isSwiping.value && direction.value === "down") {
|
||||
emits("update:id", void 0);
|
||||
}
|
||||
});
|
||||
watch(indexStory, async (n) => {
|
||||
await indexHandle();
|
||||
});
|
||||
async function indexHandle() {
|
||||
storySlides.value = props.stories?.length;
|
||||
progress.value = [];
|
||||
await nextTick();
|
||||
if (swiperRef.value) {
|
||||
swiperRef.value.activeIndex = indexStory.value;
|
||||
}
|
||||
for (let i = 0; i < storySlides.value; i++) {
|
||||
progress.value.push(0);
|
||||
}
|
||||
startOver();
|
||||
}
|
||||
const onSwiper = (swiper) => {
|
||||
swiperRef.value = swiper;
|
||||
swiperReady.value = true;
|
||||
};
|
||||
const onSlideChange = (swiper) => {
|
||||
if (!swiperReady.value) return;
|
||||
const newIndex = swiper?.activeIndex;
|
||||
if (playingSlide.value !== newIndex) {
|
||||
playingSlide.value = newIndex;
|
||||
}
|
||||
};
|
||||
function startOver() {
|
||||
setInterval();
|
||||
}
|
||||
watch([playingSlide, swiperReady], ([newPlayingSlide, isReady]) => {
|
||||
if (!isReady || !swiperRef.value || !props.stories?.length) {
|
||||
return;
|
||||
}
|
||||
const safeIndex = Math.max(0, Math.min(newPlayingSlide, props.stories.length - 1));
|
||||
if (swiperRef.value.activeIndex === safeIndex) {
|
||||
return;
|
||||
}
|
||||
setTimeout(() => {
|
||||
try {
|
||||
swiperRef.value?.slideTo(safeIndex);
|
||||
} catch (error) {
|
||||
swiperReady.value = false;
|
||||
nextTick(() => swiperReady.value = true);
|
||||
}
|
||||
}, 50);
|
||||
}, { immediate: true });
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
const _directive_lazy = resolveDirective("lazy");
|
||||
let _temp0, _temp1;
|
||||
_push(`<!--[--><div class="flex full_story z-400 justify-center" dir="ltr"><div class="relative w-full md:w-426px bg-black flex items-center pb-5rem">`);
|
||||
if (!isPaused.value) {
|
||||
_push(`<div class="absolute w-full top-0 right-0 left-0 z-1000 blurred-gradient-bg"><div class="flex gap-2px shadow-xl"><!--[-->`);
|
||||
ssrRenderList(_ctx.stories, (story, index) => {
|
||||
_push(ssrRenderComponent(CustomProgressBar, {
|
||||
key: index,
|
||||
percent: progress.value[index]
|
||||
}, null, _parent));
|
||||
});
|
||||
_push(`<!--]--></div><div class="p-2 flex items-center gap-2 account-detail-area"><div class="relative"><img${ssrRenderAttrs(_temp0 = mergeProps({
|
||||
class: "w-2.5rem h-2.5rem rounded-full",
|
||||
alt: ""
|
||||
}, ssrGetDirectiveProps(_ctx, _directive_lazy, {
|
||||
src: unref(getSupabaseStorageUrl)(_ctx.cover),
|
||||
loading: unref(empty_user),
|
||||
error: unref(empty_user)
|
||||
})))}>${"textContent" in _temp0 ? ssrInterpolate(_temp0.textContent) : _temp0.innerHTML ?? ""}`);
|
||||
if (unref(config).isSeller) {
|
||||
_push(`<img${ssrRenderAttr("src", _imports_0$2)} alt="" class="w-15px absolute right-0 bottom-0 bg-white rounded-full">`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(`</div><p class="text-white">${ssrInterpolate(_ctx.title)}</p></div></div>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(`<div class="w-full">`);
|
||||
_push(ssrRenderComponent(unref(Swiper), {
|
||||
key: indexStory.value,
|
||||
ref_key: "swiperRef",
|
||||
ref: swiperRef,
|
||||
onSwiper,
|
||||
onSlideChange,
|
||||
initialSlide: indexStory.value,
|
||||
grabCursor: true,
|
||||
modules: [],
|
||||
speed: 0,
|
||||
noSwiping: true,
|
||||
class: "mySwiper6"
|
||||
}, {
|
||||
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
||||
if (_push2) {
|
||||
_push2(`<!--[-->`);
|
||||
ssrRenderList(_ctx.stories, (story, i) => {
|
||||
_push2(ssrRenderComponent(unref(SwiperSlide), {
|
||||
key: i,
|
||||
class: "self-center"
|
||||
}, {
|
||||
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
||||
if (_push3) {
|
||||
_push3(`<img${ssrRenderAttrs(_temp1 = mergeProps({
|
||||
alt: "instagram",
|
||||
class: "w-full bg-black",
|
||||
key: indexStory.value
|
||||
}, ssrGetDirectiveProps(_ctx, _directive_lazy, {
|
||||
src: unref(getSupabaseStorageUrl)(story?.media?.media_url),
|
||||
loading: unref(img_gif),
|
||||
error: unref(img_gif)
|
||||
})))}${_scopeId2}>${"textContent" in _temp1 ? ssrInterpolate(_temp1.textContent) : _temp1.innerHTML ?? ""}`);
|
||||
} else {
|
||||
return [
|
||||
withDirectives((openBlock(), createBlock("img", {
|
||||
alt: "instagram",
|
||||
class: "w-full bg-black",
|
||||
key: indexStory.value
|
||||
})), [
|
||||
[_directive_lazy, {
|
||||
src: unref(getSupabaseStorageUrl)(story?.media?.media_url),
|
||||
loading: unref(img_gif),
|
||||
error: unref(img_gif)
|
||||
}]
|
||||
])
|
||||
];
|
||||
}
|
||||
}),
|
||||
_: 2
|
||||
}, _parent2, _scopeId));
|
||||
});
|
||||
_push2(`<!--]-->`);
|
||||
} else {
|
||||
return [
|
||||
(openBlock(true), createBlock(Fragment, null, renderList(_ctx.stories, (story, i) => {
|
||||
return openBlock(), createBlock(unref(SwiperSlide), {
|
||||
key: i,
|
||||
class: "self-center"
|
||||
}, {
|
||||
default: withCtx(() => [
|
||||
withDirectives((openBlock(), createBlock("img", {
|
||||
alt: "instagram",
|
||||
class: "w-full bg-black",
|
||||
key: indexStory.value
|
||||
})), [
|
||||
[_directive_lazy, {
|
||||
src: unref(getSupabaseStorageUrl)(story?.media?.media_url),
|
||||
loading: unref(img_gif),
|
||||
error: unref(img_gif)
|
||||
}]
|
||||
])
|
||||
]),
|
||||
_: 2
|
||||
}, 1024);
|
||||
}), 128))
|
||||
];
|
||||
}
|
||||
}),
|
||||
_: 1
|
||||
}, _parent));
|
||||
_push(`</div></div></div>`);
|
||||
if (!isPaused.value) {
|
||||
_push(`<div class="absolute w-full bottom-0 right-0 left-0 z-1000 flex items-center gap8 px5 functions_area">`);
|
||||
if (unref(config).isSeller) {
|
||||
_push(`<div class="flex gap-5 items-center" dir="rtl"><div class="flex flex-col items-center gap-2 text-white functions-area basic-icon-old">`);
|
||||
_push(ssrRenderComponent(BasicIconOld, {
|
||||
icon: "vuesax-linear:trash",
|
||||
color: "red",
|
||||
size: "22",
|
||||
class: "h7"
|
||||
}, null, _parent));
|
||||
_push(`<div class="text-xs text-red-6">${ssrInterpolate(unref(config).useString("delete"))}</div></div></div>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
if (unref(config).isSeller) {
|
||||
_push(`<div class="flex gap-5 items-center" dir="rtl"><div class="flex flex-col items-center gap-2 text-white functions-area basic-icon-old">`);
|
||||
_push(ssrRenderComponent(BasicIconOld, {
|
||||
icon: "vuesax-linear:edit-2",
|
||||
size: "22",
|
||||
class: "h6"
|
||||
}, null, _parent));
|
||||
_push(`<div class="text-xs">${ssrInterpolate(unref(config).useString("edit"))}</div></div></div>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(`</div>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(`<!--]-->`);
|
||||
};
|
||||
}
|
||||
});
|
||||
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/HighlightStories.vue");
|
||||
return _sfc_setup$1 ? _sfc_setup$1(props, ctx) : void 0;
|
||||
};
|
||||
const HighlightStories = Object.assign(_sfc_main$1, { __name: "HighlightStories" });
|
||||
const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
__name: "Highlights",
|
||||
__ssrInlineRender: true,
|
||||
props: {
|
||||
currentUser: {}
|
||||
},
|
||||
setup(__props) {
|
||||
const highlights = ref([]);
|
||||
useRouter();
|
||||
const route = useRoute();
|
||||
const selectedStoryId = ref(null);
|
||||
const highlightId = ref(null);
|
||||
const highlightTitle = ref(null);
|
||||
const highlightCover = ref(null);
|
||||
ref(null);
|
||||
const stories = ref([]);
|
||||
ref(false);
|
||||
const config = useConfigStore();
|
||||
const { user } = useUserStore();
|
||||
const props = __props;
|
||||
const highlightsUser = async () => {
|
||||
try {
|
||||
const data = await getHighlightsList(route?.params?.id || config?.sellerConfig?.store.id, { page: 1, limit: 40 });
|
||||
highlights.value = data;
|
||||
} catch (e) {
|
||||
console.log(e);
|
||||
}
|
||||
};
|
||||
function updateHighlight() {
|
||||
highlightsUser();
|
||||
selectedStoryId.value = null;
|
||||
}
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
const _component_UserProfilePic = UserProfilePic;
|
||||
_push(`<div${ssrRenderAttrs(mergeProps({ class: "stories-container -ms4" }, _attrs))} data-v-6e51f42f><div class="scroll-wrapper ps-3" data-v-6e51f42f>`);
|
||||
if (unref(user)?.id === props.currentUser?.id) {
|
||||
_push(`<div class="me-2" data-v-6e51f42f><div class="border-gray-600 border-1 border-solid w-70px h-70px rounded-full flex items-center justify-center" data-v-6e51f42f>`);
|
||||
_push(ssrRenderComponent(BasicIconOld, { icon: "vuesax-linear:add" }, null, _parent));
|
||||
_push(`</div><div class="text-center text-xs mt-7px" data-v-6e51f42f>${ssrInterpolate(unref(config).useString("new"))}</div></div>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(`<!--[-->`);
|
||||
ssrRenderList(highlights.value, (highlight) => {
|
||||
_push(`<div class="story" data-v-6e51f42f><div class="text-center" data-v-6e51f42f>`);
|
||||
_push(ssrRenderComponent(_component_UserProfilePic, {
|
||||
src: highlight?.cover_media_url,
|
||||
"seen-story": true,
|
||||
width: "75"
|
||||
}, null, _parent));
|
||||
_push(`</div><div class="w-full text-center text-xs truncate" data-v-6e51f42f>${ssrInterpolate(highlight?.title)}</div></div>`);
|
||||
});
|
||||
_push(`<!--]--></div>`);
|
||||
if (selectedStoryId.value) {
|
||||
_push(ssrRenderComponent(HighlightStories, {
|
||||
id: selectedStoryId.value,
|
||||
"onUpdate:id": ($event) => selectedStoryId.value = $event,
|
||||
highlightId: highlightId.value,
|
||||
title: highlightTitle.value,
|
||||
cover: highlightCover.value,
|
||||
stories: stories.value,
|
||||
onRefresh: updateHighlight
|
||||
}, 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("components/Highlights.vue");
|
||||
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
||||
};
|
||||
const Highlights = /* @__PURE__ */ Object.assign(_export_sfc(_sfc_main, [["__scopeId", "data-v-6e51f42f"]]), { __name: "Highlights" });
|
||||
|
||||
export { Highlights as H, __nuxt_component_1 as _, _sfc_main$6 as a, _imports_2 as b, _imports_3 as c, _sfc_main$5 as d };
|
||||
+8
-8
@@ -1,7 +1,7 @@
|
||||
import { defineComponent, computed, ref, mergeProps, unref, withCtx, renderSlot, useSSRContext } from 'vue';
|
||||
import { ssrRenderAttrs, ssrInterpolate, ssrRenderComponent, ssrRenderSlot } from 'vue/server-renderer';
|
||||
import { defineComponent, computed, ref, mergeProps, unref, withCtx, renderSlot, useSSRContext } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { ssrRenderAttrs, ssrInterpolate, ssrRenderComponent, ssrRenderSlot } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/server-renderer/index.mjs';
|
||||
import { a as useConfigStore } from './server.mjs';
|
||||
import { _ as __nuxt_component_1 } from './FormItem-2KfKSOCd.mjs';
|
||||
import { _ as __nuxt_component_1 } from './FormItem-CMWnBuQX.mjs';
|
||||
|
||||
const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
__name: "InstaInput",
|
||||
@@ -34,15 +34,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
const _component_a_form_item = __nuxt_component_1;
|
||||
_push(`<div${ssrRenderAttrs(mergeProps({
|
||||
class: ["border-1 border-solid rounded-xl px-2 mt-2 inputUser instaInputStyle", [{ "border-red-500": hasError.value, "h-3.6rem": !_ctx.contentHeight }]],
|
||||
style: [_ctx.height ? `height: ${_ctx.height};` : ""]
|
||||
}, _attrs))}><div class="relative"><div class="ms-2 h-5 -mb-1 text-gray-4 mt-4px text-13px">${ssrInterpolate(checkField.value ? _ctx.customLabel ? _ctx.customLabel : unref(config).useString(_ctx.label) : "")}</div>`);
|
||||
class: ["border-1 border-solid rounded-xl px-2 mt-2 inputUser instaInputStyle", [{ "border-red-500": hasError.value, "h-3.6rem": !__props.contentHeight }]],
|
||||
style: [__props.height ? `height: ${__props.height};` : ""]
|
||||
}, _attrs))}><div class="relative"><div class="ms-2 h-5 -mb-1 text-gray-4 mt-4px text-13px">${ssrInterpolate(checkField.value ? __props.customLabel ? __props.customLabel : unref(config).useString(__props.label) : "")}</div>`);
|
||||
_push(ssrRenderComponent(_component_a_form_item, {
|
||||
ref_key: "formItemRef",
|
||||
ref: formItemRef,
|
||||
class: ["inputTransition", checkField.value ? "" : "absolute w-full top-2px inputTransition"],
|
||||
rules: _ctx.rules,
|
||||
name: _ctx.name
|
||||
rules: __props.rules,
|
||||
name: __props.name
|
||||
}, {
|
||||
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
||||
if (_push2) {
|
||||
@@ -0,0 +1,38 @@
|
||||
import { defineComponent, computed, ref, watch, unref, mergeProps, useSSRContext } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { ssrRenderAttrs, ssrInterpolate } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/server-renderer/index.mjs';
|
||||
import { a as useConfigStore } from './server.mjs';
|
||||
|
||||
const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
__name: "Logo1",
|
||||
__ssrInlineRender: true,
|
||||
setup(__props) {
|
||||
const config = useConfigStore();
|
||||
const logoSrc = computed(
|
||||
() => config.isNightStore ? config.useLogo("logo_mini_white.png") : config.useLogo("logo_mini.png")
|
||||
);
|
||||
const showFallback = ref(false);
|
||||
watch(logoSrc, () => {
|
||||
showFallback.value = false;
|
||||
});
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
if (showFallback.value) {
|
||||
_push(`<span${ssrRenderAttrs(_attrs)}>${ssrInterpolate(unref(config).appName.en)}</span>`);
|
||||
} else {
|
||||
_push(`<img${ssrRenderAttrs(mergeProps({
|
||||
src: logoSrc.value,
|
||||
alt: unref(config).appName.en,
|
||||
class: "inline"
|
||||
}, _attrs))}>`);
|
||||
}
|
||||
};
|
||||
}
|
||||
});
|
||||
const _sfc_setup = _sfc_main.setup;
|
||||
_sfc_main.setup = (props, ctx) => {
|
||||
const ssrContext = useSSRContext();
|
||||
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("components/Logo1.vue");
|
||||
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
||||
};
|
||||
const __nuxt_component_0 = Object.assign(_sfc_main, { __name: "Logo1" });
|
||||
|
||||
export { __nuxt_component_0 as _ };
|
||||
+15
-15
@@ -1,13 +1,13 @@
|
||||
import { defineComponent, ref, computed, mergeProps, unref, withCtx, createTextVNode, toDisplayString, reactive, createVNode, useSSRContext } from 'vue';
|
||||
import { ssrRenderAttrs, ssrRenderList, ssrRenderComponent, ssrRenderAttr, ssrInterpolate } from 'vue/server-renderer';
|
||||
import { U as UserProfilePic } from './UserProfilePic-BwsIUO56.mjs';
|
||||
import { B as BasicButton } from './BasicButton-QGDeiwgb.mjs';
|
||||
import { u as useRouter$1, a as useConfigStore, aI as useRoute$1, w as useElementSize } from './server.mjs';
|
||||
import { u as usePrice } from './usePrice-B-5-jXKQ.mjs';
|
||||
import { defineComponent, ref, computed, mergeProps, unref, withCtx, createTextVNode, toDisplayString, reactive, createVNode, useSSRContext } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { ssrRenderAttrs, ssrRenderList, ssrRenderComponent, ssrRenderAttr, ssrInterpolate } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/server-renderer/index.mjs';
|
||||
import { U as UserProfilePic } from './UserProfilePic-DaZ03Xcl.mjs';
|
||||
import { B as BasicButton } from './BasicButton-DhQvSD8U.mjs';
|
||||
import { u as useRouter$1, a as useConfigStore, aL as useRoute$1, q as useElementSize } from './server.mjs';
|
||||
import { u as usePrice } from './usePrice-_QzChhgO.mjs';
|
||||
import { t as toJalali } from './useDateTime-D8RCoGwW.mjs';
|
||||
import { u as useMediaStore } from './media-C3Y2QweF.mjs';
|
||||
import { _ as __nuxt_component_2 } from './index-BOHfcXHM.mjs';
|
||||
import { ContentLoader } from 'vue-content-loader';
|
||||
import { u as useMediaStore } from './media-D7PFhdrG.mjs';
|
||||
import { _ as __nuxt_component_1 } from './index-DNuZTxeo.mjs';
|
||||
import { ContentLoader } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue-content-loader/dist/vue-content-loader.cjs.js';
|
||||
|
||||
const _imports_0$1 = "" + __buildAssetsURL("empty_order.g7yXtwjI.svg");
|
||||
const _imports_0 = "" + __buildAssetsURL("delivery-box-light.Cz31HXNr.svg");
|
||||
@@ -47,8 +47,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
||||
order: {}
|
||||
},
|
||||
setup(__props) {
|
||||
const router = useRouter$1();
|
||||
const props = __props;
|
||||
const router = useRouter$1();
|
||||
const config = useConfigStore();
|
||||
const address = computed(() => {
|
||||
const convert = JSON.parse(props.order.address)?.payload;
|
||||
@@ -56,12 +56,12 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
||||
});
|
||||
useMediaStore();
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
const _component_a_divider = __nuxt_component_2;
|
||||
const _component_a_divider = __nuxt_component_1;
|
||||
_push(`<div${ssrRenderAttrs(_attrs)}><div class="flex justify-between items-center mt-5"><div>`);
|
||||
if (unref(config).isSeller) {
|
||||
_push(ssrRenderComponent(UserProfilePic, {
|
||||
width: "60",
|
||||
src: _ctx.order.user?.avatar,
|
||||
src: __props.order.user?.avatar,
|
||||
"just-show-profile": ""
|
||||
}, null, _parent));
|
||||
} else {
|
||||
@@ -69,14 +69,14 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
||||
}
|
||||
_push(`</div><div class="flex-1 mx-5 gap-4">`);
|
||||
if (unref(config).isSeller) {
|
||||
_push(`<div class="text-sm font-semibold">${ssrInterpolate(_ctx.order.user?.name ?? "_")}</div>`);
|
||||
_push(`<div class="text-sm font-semibold">${ssrInterpolate(__props.order.user?.name ?? "_")}</div>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(`<div class="text-sm"><span class="text-gray-400 text-xs">${ssrInterpolate(unref(config).useString("orderNumber"))}:</span><span class="text-gray-700 ms-2 font-bold">${ssrInterpolate(_ctx.order.id)}</span></div><div class="flex items-center text-xs gap-2 mt-1"><span class="text-gray-400">${ssrInterpolate(unref(config).useString("totalPrice"))}:</span><span class="text-gray-700 font-bold">${ssrInterpolate(unref(usePrice)(_ctx.order.total_price, true))}</span></div><div class="flex items-baseline text-xs gap-2 mt-1"><span class="text-gray-400">${ssrInterpolate(unref(config).useString("date"))}:</span><span class="text-gray-700 font-bold">${ssrInterpolate(unref(toJalali)(_ctx.order.created_at))}</span></div></div><div class="flex flex-col items-end">`);
|
||||
_push(`<div class="text-sm"><span class="text-gray-400 text-xs">${ssrInterpolate(unref(config).useString("orderNumber"))}:</span><span class="text-gray-700 ms-2 font-bold">${ssrInterpolate(__props.order.id)}</span></div><div class="flex items-center text-xs gap-2 mt-1"><span class="text-gray-400">${ssrInterpolate(unref(config).useString("totalPrice"))}:</span><span class="text-gray-700 font-bold">${ssrInterpolate(unref(usePrice)(__props.order.discount_total_price, true))}</span></div><div class="flex items-baseline text-xs gap-2 mt-1"><span class="text-gray-400">${ssrInterpolate(unref(config).useString("date"))}:</span><span class="text-gray-700 font-bold">${ssrInterpolate(unref(toJalali)(__props.order.created_at))}</span></div></div><div class="flex flex-col items-end">`);
|
||||
_push(ssrRenderComponent(BasicButton, {
|
||||
class: "!h-7",
|
||||
onClick: ($event) => unref(router).push({ name: "user-order-id", params: { id: _ctx.order.id } })
|
||||
onClick: ($event) => unref(router).push({ name: "user-order-id", params: { id: __props.order.id } })
|
||||
}, {
|
||||
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
||||
if (_push2) {
|
||||
+51
-47
@@ -1,16 +1,16 @@
|
||||
import { defineComponent, ref, reactive, mergeProps, unref, withCtx, createVNode, resolveDirective, createBlock, openBlock, withDirectives, Fragment, renderList, useSSRContext } from 'vue';
|
||||
import { ssrRenderAttrs, ssrRenderComponent, ssrRenderAttr, ssrInterpolate, ssrGetDirectiveProps, ssrRenderList } from 'vue/server-renderer';
|
||||
import { w as useElementSize, u as useRouter$1, a as useConfigStore, b as useUserStore, x as getSupabaseStorageUrl } from './server.mjs';
|
||||
import { e as empty_user } from './empty_user-BaUNCdgf.mjs';
|
||||
import { defineComponent, ref, reactive, mergeProps, unref, withCtx, createVNode, resolveDirective, createBlock, openBlock, withDirectives, Fragment, renderList, useSSRContext } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { ssrRenderAttrs, ssrRenderComponent, ssrRenderAttr, ssrInterpolate, ssrGetDirectiveProps, ssrRenderList, ssrRenderClass } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/server-renderer/index.mjs';
|
||||
import { e as empty_user } from './empty_user-DSxcM_ac.mjs';
|
||||
import { f as formatTime } from './useDateTime-D8RCoGwW.mjs';
|
||||
import { Swiper, SwiperSlide } from 'swiper/vue';
|
||||
import { Pagination } from 'swiper/modules';
|
||||
import { i as img_gif } from './post_loading-BiySI7bp.mjs';
|
||||
import { Swiper, SwiperSlide } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/swiper/swiper-vue.mjs';
|
||||
import { Pagination } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/swiper/modules/index.mjs';
|
||||
import { i as img_gif } from './post_loading-CMOcYm9B.mjs';
|
||||
import { q as useElementSize, u as useRouter$1, a as useConfigStore, b as useUserStore } from './server.mjs';
|
||||
import { B as BasicIconOld } from './BasicIconOld-93vAWohq.mjs';
|
||||
import { _ as _export_sfc } from './_plugin-vue_export-helper-1tPrXgE0.mjs';
|
||||
import { _ as _sfc_main$3 } from './like-BhIOg3YL.mjs';
|
||||
import { a as _sfc_main$7, b as _sfc_main$5, e as _sfc_main$6 } from './moreOptionProduct-_dlSUx_a.mjs';
|
||||
import { ContentLoader } from 'vue-content-loader';
|
||||
import { _ as _sfc_main$3 } from './like-B155RLSm.mjs';
|
||||
import { a as _sfc_main$7, b as _sfc_main$5, e as _sfc_main$6 } from './moreOptionProduct-CCkPwsB0.mjs';
|
||||
import { ContentLoader } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue-content-loader/dist/vue-content-loader.cjs.js';
|
||||
|
||||
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
||||
__name: "Content",
|
||||
@@ -29,26 +29,28 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
const _directive_lazy = resolveDirective("lazy");
|
||||
let _temp0;
|
||||
_push(`<div${ssrRenderAttrs(mergeProps({ class: "mt-.5rem" }, _attrs))} data-v-8626c6d0>`);
|
||||
_push(`<div${ssrRenderAttrs(mergeProps({ class: "mt-.5rem" }, _attrs))} data-v-d709ac2f>`);
|
||||
_push(ssrRenderComponent(unref(Swiper), {
|
||||
pagination: true,
|
||||
modules,
|
||||
class: "postConfig !h-unset !aspect-square !m-unset"
|
||||
class: ["postConfig !m-unset", __props.media.length > 1 ? "!aspect-square !h-unset" : "!h-fit"]
|
||||
}, {
|
||||
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
||||
if (_push2) {
|
||||
_push2(`<!--[-->`);
|
||||
ssrRenderList(_ctx.media, (slide) => {
|
||||
_push2(ssrRenderComponent(unref(SwiperSlide), { class: "!w-full !h-unset !aspect-square" }, {
|
||||
ssrRenderList(__props.media, (slide) => {
|
||||
_push2(ssrRenderComponent(unref(SwiperSlide), {
|
||||
class: ["!w-full", __props.media.length > 1 ? "!aspect-square !h-unset" : "!h-fit"]
|
||||
}, {
|
||||
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
||||
if (_push3) {
|
||||
if (slide.type === "video") {
|
||||
_push3(`<div class="video-container" data-v-8626c6d0${_scopeId2}><video${ssrRenderAttr("src", unref(getSupabaseStorageUrl)(slide.url))} playsinline muted loop class="video" data-v-8626c6d0${_scopeId2}></video></div>`);
|
||||
_push3(`<div class="video-container" data-v-d709ac2f${_scopeId2}><video${ssrRenderAttr("src", unref(config).useDataStorage(slide.url))} playsinline muted loop class="video" data-v-d709ac2f${_scopeId2}></video></div>`);
|
||||
} else {
|
||||
_push3(`<div class="w-full aspect-square flex items-center" data-v-8626c6d0${_scopeId2}><img${ssrRenderAttrs(_temp0 = mergeProps({
|
||||
_push3(`<div class="${ssrRenderClass([__props.media.length > 1 ? "aspect-square" : "", "w-full flex items-center"])}" data-v-d709ac2f${_scopeId2}><img${ssrRenderAttrs(_temp0 = mergeProps({
|
||||
alt: unref(config).appName.en,
|
||||
class: "w-full"
|
||||
}, ssrGetDirectiveProps(_ctx, _directive_lazy, { src: unref(getSupabaseStorageUrl)(slide.url), loading: unref(img_gif), error: unref(img_gif) })))} data-v-8626c6d0${_scopeId2}>${"textContent" in _temp0 ? ssrInterpolate(_temp0.textContent) : _temp0.innerHTML ?? ""}</div>`);
|
||||
}, ssrGetDirectiveProps(_ctx, _directive_lazy, { src: unref(config).useDataStorage(slide.url), loading: unref(img_gif), error: unref(img_gif) })))} data-v-d709ac2f${_scopeId2}>${"textContent" in _temp0 ? ssrInterpolate(_temp0.textContent) : _temp0.innerHTML ?? ""}</div>`);
|
||||
}
|
||||
} else {
|
||||
return [
|
||||
@@ -60,7 +62,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
||||
ref_for: true,
|
||||
ref_key: "videos",
|
||||
ref: videos,
|
||||
src: unref(getSupabaseStorageUrl)(slide.url),
|
||||
src: unref(config).useDataStorage(slide.url),
|
||||
playsinline: "",
|
||||
muted: "",
|
||||
loop: "",
|
||||
@@ -68,15 +70,15 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
||||
}, null, 8, ["src"])
|
||||
])) : (openBlock(), createBlock("div", {
|
||||
key: 1,
|
||||
class: "w-full aspect-square flex items-center"
|
||||
class: ["w-full flex items-center", __props.media.length > 1 ? "aspect-square" : ""]
|
||||
}, [
|
||||
withDirectives(createVNode("img", {
|
||||
alt: unref(config).appName.en,
|
||||
class: "w-full"
|
||||
}, null, 8, ["alt"]), [
|
||||
[_directive_lazy, { src: unref(getSupabaseStorageUrl)(slide.url), loading: unref(img_gif), error: unref(img_gif) }]
|
||||
[_directive_lazy, { src: unref(config).useDataStorage(slide.url), loading: unref(img_gif), error: unref(img_gif) }]
|
||||
])
|
||||
]))
|
||||
], 2))
|
||||
];
|
||||
}
|
||||
}),
|
||||
@@ -86,8 +88,10 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
||||
_push2(`<!--]-->`);
|
||||
} else {
|
||||
return [
|
||||
(openBlock(true), createBlock(Fragment, null, renderList(_ctx.media, (slide) => {
|
||||
return openBlock(), createBlock(unref(SwiperSlide), { class: "!w-full !h-unset !aspect-square" }, {
|
||||
(openBlock(true), createBlock(Fragment, null, renderList(__props.media, (slide) => {
|
||||
return openBlock(), createBlock(unref(SwiperSlide), {
|
||||
class: ["!w-full", __props.media.length > 1 ? "!aspect-square !h-unset" : "!h-fit"]
|
||||
}, {
|
||||
default: withCtx(() => [
|
||||
slide.type === "video" ? (openBlock(), createBlock("div", {
|
||||
key: 0,
|
||||
@@ -97,7 +101,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
||||
ref_for: true,
|
||||
ref_key: "videos",
|
||||
ref: videos,
|
||||
src: unref(getSupabaseStorageUrl)(slide.url),
|
||||
src: unref(config).useDataStorage(slide.url),
|
||||
playsinline: "",
|
||||
muted: "",
|
||||
loop: "",
|
||||
@@ -105,25 +109,25 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
||||
}, null, 8, ["src"])
|
||||
])) : (openBlock(), createBlock("div", {
|
||||
key: 1,
|
||||
class: "w-full aspect-square flex items-center"
|
||||
class: ["w-full flex items-center", __props.media.length > 1 ? "aspect-square" : ""]
|
||||
}, [
|
||||
withDirectives(createVNode("img", {
|
||||
alt: unref(config).appName.en,
|
||||
class: "w-full"
|
||||
}, null, 8, ["alt"]), [
|
||||
[_directive_lazy, { src: unref(getSupabaseStorageUrl)(slide.url), loading: unref(img_gif), error: unref(img_gif) }]
|
||||
[_directive_lazy, { src: unref(config).useDataStorage(slide.url), loading: unref(img_gif), error: unref(img_gif) }]
|
||||
])
|
||||
]))
|
||||
], 2))
|
||||
]),
|
||||
_: 2
|
||||
}, 1024);
|
||||
}, 1032, ["class"]);
|
||||
}), 256))
|
||||
];
|
||||
}
|
||||
}),
|
||||
_: 1
|
||||
}, _parent));
|
||||
_push(`<div class="flex bg-[#0195f7] text-white px-3 py-3 items-center justify-between" data-v-8626c6d0><div class="font-semibold text-xs" data-v-8626c6d0>${ssrInterpolate(_ctx.name)}</div><div class="flex items-center" data-v-8626c6d0><div class="text-xs" data-v-8626c6d0>${ssrInterpolate(unref(config).useString("viewProduct"))}</div>`);
|
||||
_push(`<div class="flex bg-[#0195f7] text-white px-3 py-3 items-center justify-between" data-v-d709ac2f><div class="font-semibold text-xs" data-v-d709ac2f>${ssrInterpolate(__props.name)}</div><div class="flex items-center" data-v-d709ac2f><div class="text-xs" data-v-d709ac2f>${ssrInterpolate(unref(config).useString("viewProduct"))}</div>`);
|
||||
_push(ssrRenderComponent(BasicIconOld, {
|
||||
icon: unref(config).isRTL ? "vuesax-linear:arrow-left-1" : "vuesax-linear:arrow-right-1",
|
||||
size: "16"
|
||||
@@ -138,7 +142,7 @@ _sfc_main$2.setup = (props, ctx) => {
|
||||
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("views/base/pages/home/components/Content.vue");
|
||||
return _sfc_setup$2 ? _sfc_setup$2(props, ctx) : void 0;
|
||||
};
|
||||
const Content = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-8626c6d0"]]);
|
||||
const Content = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-d709ac2f"]]);
|
||||
const maxLength = 100;
|
||||
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
||||
__name: "Post",
|
||||
@@ -168,18 +172,18 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
||||
let _temp0;
|
||||
_push(`<div${ssrRenderAttrs(mergeProps({
|
||||
class: "w-full mb-2",
|
||||
id: "post-" + _ctx.post.id
|
||||
id: "post-" + __props.post.id
|
||||
}, _attrs))}><div class="flex px-3 items-center justify-between"><div class="flex items-center"><img${ssrRenderAttrs(_temp0 = mergeProps({
|
||||
alt: "instagram",
|
||||
class: "w-2rem h-2rem rounded-full"
|
||||
}, ssrGetDirectiveProps(_ctx, _directive_lazy, { src: unref(getSupabaseStorageUrl)(_ctx.post?.users?.avatar), loading: unref(empty_user), error: unref(empty_user) })))}>${"textContent" in _temp0 ? ssrInterpolate(_temp0.textContent) : _temp0.innerHTML ?? ""}<div class="ms-2"><div class="text-sm font-semibold">${ssrInterpolate(_ctx.post?.users?.username)}</div></div></div>`);
|
||||
if (_ctx.post?.users?.id === unref(user).user?.id) {
|
||||
}, ssrGetDirectiveProps(_ctx, _directive_lazy, { src: unref(config).useDataStorage(__props.post?.users?.avatar), loading: unref(empty_user), error: unref(empty_user) })))}>${"textContent" in _temp0 ? ssrInterpolate(_temp0.textContent) : _temp0.innerHTML ?? ""}<div class="ms-2"><div class="text-sm font-semibold">${ssrInterpolate(__props.post?.users?.username)}</div></div></div>`);
|
||||
if (__props.post?.users?.id === unref(user).user?.id) {
|
||||
_push(`<div>`);
|
||||
_push(ssrRenderComponent(BasicIconOld, {
|
||||
icon: "vuesax-linear:more",
|
||||
class: "rotate-90",
|
||||
size: "18",
|
||||
onClick: ($event) => openOption(_ctx.post.id)
|
||||
onClick: ($event) => openOption(__props.post.id)
|
||||
}, null, _parent));
|
||||
_push(`</div>`);
|
||||
} else {
|
||||
@@ -187,30 +191,30 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
||||
}
|
||||
_push(`</div>`);
|
||||
_push(ssrRenderComponent(Content, {
|
||||
media: _ctx.post?.files,
|
||||
name: _ctx.post.title_fa,
|
||||
id: _ctx.post.id,
|
||||
scrollSave: _ctx.scrollSave
|
||||
media: __props.post?.files,
|
||||
name: __props.post.title_fa,
|
||||
id: __props.post.id,
|
||||
scrollSave: __props.scrollSave
|
||||
}, null, _parent));
|
||||
_push(`<div class="p-4"><div class="flex gap-4 items-center justify-between"><div class="flex items-center gap-4"><div class="flex items-center gap-1"${ssrRenderAttr("aria-disabled", _ctx.addLikeLoading)}>`);
|
||||
_push(`<div class="p-4"><div class="flex gap-4 items-center justify-between"><div class="flex items-center gap-4"><div class="flex items-center gap-1"${ssrRenderAttr("aria-disabled", __props.addLikeLoading)}>`);
|
||||
_push(ssrRenderComponent(_sfc_main$3, {
|
||||
"is-liked": _ctx.post.likes?.some((x) => x.user_id === unref(user).user?.id)
|
||||
"is-liked": __props.post.likes?.some((x) => x.user_id === unref(user).user?.id)
|
||||
}, null, _parent));
|
||||
_push(` ${ssrInterpolate(_ctx.post?.likes?.length ?? 0)}</div><div class="flex items-center gap-1">`);
|
||||
_push(` ${ssrInterpolate(__props.post?.likes?.length ?? 0)}</div><div class="flex items-center gap-1">`);
|
||||
_push(ssrRenderComponent(_sfc_main$7, null, null, _parent));
|
||||
_push(` ${ssrInterpolate(_ctx.post?.comments?.length ?? 0)}</div><div class="flex items-center gap-1">`);
|
||||
_push(` ${ssrInterpolate(__props.post?.comments?.length ?? 0)}</div><div class="flex items-center gap-1">`);
|
||||
_push(ssrRenderComponent(_sfc_main$5, null, null, _parent));
|
||||
_push(`</div></div><div>`);
|
||||
_push(ssrRenderComponent(_sfc_main$6, {
|
||||
"is-saved": _ctx.post.saved?.some((x) => x.user_id === unref(user).user?.id)
|
||||
"is-saved": __props.post.saved?.some((x) => x.user_id === unref(user).user?.id)
|
||||
}, null, _parent));
|
||||
_push(`</div></div><div class="mt-2 text-sm"><span class="font-semibold text-sm ms1">${ssrInterpolate(_ctx.post?.users?.username)}</span><span class="ms-2 text-caption whitespace-pre-line">${ssrInterpolate(expandedPosts.value[_ctx.index] ? _ctx.post?.description : truncatedCaption(_ctx.post?.description))}</span>`);
|
||||
if (shouldShowMore(_ctx.post?.description)) {
|
||||
_push(`<span class="text-gray cursor-pointer ms-1 whitespace-pre-line">${ssrInterpolate(expandedPosts.value[_ctx.index] ? unref(config).useString("less") : unref(config).useString("more"))}</span>`);
|
||||
_push(`</div></div><div class="mt-2 text-sm"><span class="font-semibold text-sm ms1">${ssrInterpolate(__props.post?.users?.username)}</span><span class="ms-2 text-caption whitespace-pre-line">${ssrInterpolate(expandedPosts.value[__props.index] ? __props.post?.description : truncatedCaption(__props.post?.description))}</span>`);
|
||||
if (shouldShowMore(__props.post?.description)) {
|
||||
_push(`<span class="text-gray cursor-pointer ms-1 whitespace-pre-line">${ssrInterpolate(expandedPosts.value[__props.index] ? unref(config).useString("less") : unref(config).useString("more"))}</span>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(`<div class="text-xs mt-1 text-gray-500">${ssrInterpolate(unref(formatTime)(_ctx.post?.created_at))}</div></div></div></div>`);
|
||||
_push(`<div class="text-xs mt-1 text-gray-500">${ssrInterpolate(unref(formatTime)(__props.post?.created_at))}</div></div></div></div>`);
|
||||
};
|
||||
}
|
||||
});
|
||||
+96
-730
File diff suppressed because it is too large
Load Diff
+8
-8
@@ -1,18 +1,18 @@
|
||||
import _objectSpread from '@babel/runtime/helpers/esm/objectSpread2';
|
||||
import { defineComponent, ref, watch, computed, createVNode, provide, inject, nextTick } from 'vue';
|
||||
import { C as functionType, D as stringType, E as booleanType, F as arrayType, P as PropTypes, G as useConfigInject, H as genComponentStyleHook, I as classNames, J as merge, K as useInjectDisabled, L as omit, M as resetComponent, N as Keyframe, O as genFocusOutline } from './server.mjs';
|
||||
import { u as useInjectFormItemContext, F as FormItemInputContext } from './FormItemContext-eb0AodWH.mjs';
|
||||
import _extends from '@babel/runtime/helpers/esm/extends';
|
||||
import { V as VcCheckbox } from './Checkbox-DGyocinC.mjs';
|
||||
import _objectSpread from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@babel/runtime/helpers/esm/objectSpread2.js';
|
||||
import { defineComponent, ref, watch, computed, createVNode, provide, inject, nextTick } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { y as functionType, z as stringType, A as booleanType, B as arrayType, P as PropTypes, C as useConfigInject, D as genComponentStyleHook, E as classNames, F as merge, G as useInjectDisabled, H as omit, I as resetComponent, K as Keyframe, J as genFocusOutline } from './server.mjs';
|
||||
import { u as useInjectFormItemContext, F as FormItemInputContext } from './FormItemContext-BlKvWASA.mjs';
|
||||
import _extends from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@babel/runtime/helpers/esm/extends.js';
|
||||
import { V as VcCheckbox } from './Checkbox-Dl5Ja72L.mjs';
|
||||
|
||||
const radioGroupContextKey = Symbol("radioGroupContextKey");
|
||||
const radioGroupContextKey = /* @__PURE__ */ Symbol("radioGroupContextKey");
|
||||
const useProvideRadioGroupContext = (props) => {
|
||||
provide(radioGroupContextKey, props);
|
||||
};
|
||||
const useInjectRadioGroupContext = () => {
|
||||
return inject(radioGroupContextKey, void 0);
|
||||
};
|
||||
const radioOptionTypeContextKey = Symbol("radioOptionTypeContextKey");
|
||||
const radioOptionTypeContextKey = /* @__PURE__ */ Symbol("radioOptionTypeContextKey");
|
||||
const useProvideRadioOptionTypeContext = (props) => {
|
||||
provide(radioOptionTypeContextKey, props);
|
||||
};
|
||||
+10
-11
@@ -1,9 +1,9 @@
|
||||
import { l as loadGray, S as SquarePostSkeleton } from './gray-motiQBEt.mjs';
|
||||
import { u as useRouter$1, a as useConfigStore, m as useIntersectionObserver, e as loading, x as getSupabaseStorageUrl, b as useUserStore } from './server.mjs';
|
||||
import { defineComponent, ref, resolveDirective, mergeProps, unref, useSSRContext } from 'vue';
|
||||
import { ssrRenderAttrs, ssrRenderList, ssrInterpolate, ssrGetDirectiveProps, ssrRenderAttr, ssrRenderStyle, ssrRenderComponent } from 'vue/server-renderer';
|
||||
import { defineStore } from 'pinia';
|
||||
import { g as getUserSaved } from './save-Dlu8lCVD.mjs';
|
||||
import { l as loadGray, _ as __nuxt_component_0 } from './gray-Bd8mWW-o.mjs';
|
||||
import { u as useRouter$1, a as useConfigStore, m as useIntersectionObserver, e as loading, b as useUserStore } from './server.mjs';
|
||||
import { defineComponent, ref, resolveDirective, mergeProps, unref, useSSRContext } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { ssrRenderAttrs, ssrRenderList, ssrInterpolate, ssrGetDirectiveProps, ssrRenderAttr, ssrRenderStyle, ssrRenderComponent } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/server-renderer/index.mjs';
|
||||
import { defineStore } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/pinia/dist/pinia.prod.cjs';
|
||||
import { g as getUserSaved } from './save-DsCeVVYe.mjs';
|
||||
|
||||
const useSavedPostStore = defineStore("saved", () => {
|
||||
const savedPosts = ref([]);
|
||||
@@ -14,7 +14,6 @@ const useSavedPostStore = defineStore("saved", () => {
|
||||
const total = ref(0);
|
||||
const user = useUserStore();
|
||||
async function loadPosts() {
|
||||
console.log("save");
|
||||
try {
|
||||
if (!endPage.value) {
|
||||
loading.value = true;
|
||||
@@ -48,7 +47,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
__ssrInlineRender: true,
|
||||
setup(__props) {
|
||||
useRouter$1();
|
||||
useConfigStore();
|
||||
const config = useConfigStore();
|
||||
const userSavedPost = useSavedPostStore();
|
||||
const videoThumbnails = ref({});
|
||||
const observer = ref();
|
||||
@@ -60,7 +59,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
}
|
||||
});
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
const _component_SquarePostSkeleton = SquarePostSkeleton;
|
||||
const _component_SquarePostSkeleton = __nuxt_component_0;
|
||||
const _directive_lazy = resolveDirective("lazy");
|
||||
let _temp0;
|
||||
_push(`<div${ssrRenderAttrs(mergeProps({
|
||||
@@ -76,7 +75,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
_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) })))}>${"textContent" in _temp0 ? ssrInterpolate(_temp0.textContent) : _temp0.innerHTML ?? ""}`);
|
||||
}, ssrGetDirectiveProps(_ctx, _directive_lazy, { src: unref(config).useDataStorage(post.files[0].url), loading: unref(loadGray), error: unref(loadGray) })))}>${"textContent" in _temp0 ? ssrInterpolate(_temp0.textContent) : _temp0.innerHTML ?? ""}`);
|
||||
} else if (post.files[0]?.type === "video") {
|
||||
_push(`<div class="relative w-full h-full"><video${ssrRenderAttr("src", post.files[0]?.url)} class="hidden"></video><img${ssrRenderAttr("src", videoThumbnails.value[post.files[0]?.url])} class="w-full h-full object-cover" alt="Video Thumbnail"><div class="absolute inset-0 flex items-center justify-center bg-black bg-opacity-30"><svg class="w-12 h-12 text-white" fill="currentColor" viewBox="0 0 24 24"><path d="M8 5v14l11-7z"></path></svg></div></div>`);
|
||||
} else {
|
||||
@@ -88,7 +87,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
}
|
||||
_push(`</div>`);
|
||||
});
|
||||
_push(`<!--]--></div><div style="${ssrRenderStyle(!("loading" in _ctx ? _ctx.loading : unref(loading)) ? null : { display: "none" })}" class="w-full opacity-0 relative"> load </div>`);
|
||||
_push(`<!--]--></div><div class="w-full opacity-0 relative" style="${ssrRenderStyle(!("loading" in _ctx ? _ctx.loading : unref(loading)) ? null : { display: "none" })}"> load </div>`);
|
||||
if ("loading" in _ctx ? _ctx.loading : unref(loading)) {
|
||||
_push(ssrRenderComponent(_component_SquarePostSkeleton, null, null, _parent));
|
||||
} else {
|
||||
@@ -1,6 +1,6 @@
|
||||
import { a as useConfigStore, _ as __nuxt_component_0 } from './server.mjs';
|
||||
import { defineComponent, useSSRContext } from 'vue';
|
||||
import { ssrRenderComponent } from 'vue/server-renderer';
|
||||
import { defineComponent, useSSRContext } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { ssrRenderComponent } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/server-renderer/index.mjs';
|
||||
|
||||
const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
__name: "SearchButton",
|
||||
|
||||
+12
-12
@@ -1,7 +1,7 @@
|
||||
import { defineComponent, resolveDirective, mergeProps, unref, useSSRContext } from 'vue';
|
||||
import { ssrRenderAttrs, ssrInterpolate, ssrGetDirectiveProps, ssrRenderAttr, ssrRenderComponent } from 'vue/server-renderer';
|
||||
import { e as empty_user } from './empty_user-BaUNCdgf.mjs';
|
||||
import { u as useRouter$1, a as useConfigStore, x as getSupabaseStorageUrl } from './server.mjs';
|
||||
import { defineComponent, resolveDirective, mergeProps, unref, useSSRContext } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { ssrRenderAttrs, ssrInterpolate, ssrGetDirectiveProps, ssrRenderAttr, ssrRenderComponent } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/server-renderer/index.mjs';
|
||||
import { e as empty_user } from './empty_user-DSxcM_ac.mjs';
|
||||
import { u as useRouter$1, a as useConfigStore } from './server.mjs';
|
||||
import { _ as _export_sfc } from './_plugin-vue_export-helper-1tPrXgE0.mjs';
|
||||
|
||||
const _imports_0 = "data:image/svg+xml,%3csvg%20fill='white'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20width='24px'%20height='24px'%3e%3cpath%20d='M12,2C6.477,2,2,6.477,2,12s4.477,10,10,10s10-4.477,10-10S17.523,2,12,2z%20M16,13h-3v3c0,0.552-0.448,1-1,1h0%20c-0.552,0-1-0.448-1-1v-3H8c-0.552,0-1-0.448-1-1v0c0-0.552,0.448-1,1-1h3V8c0-0.552,0.448-1,1-1h0c0.552,0,1,0.448,1,1v3h3%20c0.552,0,1,0.448,1,1v0C17,12.552,16.552,13,16,13z'/%3e%3c/svg%3e";
|
||||
@@ -54,22 +54,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
_push(`<div${ssrRenderAttrs(mergeProps({
|
||||
class: "circle",
|
||||
style: { width: props.width + "px", height: props.width + "px" }
|
||||
}, _attrs))} data-v-ba3140c5><img${ssrRenderAttrs(_temp0 = mergeProps({
|
||||
}, _attrs))} data-v-c61670c3><img${ssrRenderAttrs(_temp0 = mergeProps({
|
||||
alt: "instagram",
|
||||
class: "story_img object-cover"
|
||||
}, ssrGetDirectiveProps(_ctx, _directive_lazy, { src: unref(getSupabaseStorageUrl)(props.src), loading: unref(empty_user), error: unref(empty_user) })))} data-v-ba3140c5>${"textContent" in _temp0 ? ssrInterpolate(_temp0.textContent) : _temp0.innerHTML ?? ""}`);
|
||||
if (!_ctx.justShowProfile) {
|
||||
}, ssrGetDirectiveProps(_ctx, _directive_lazy, { src: unref(config).useDataStorage(props.src), loading: unref(empty_user), error: unref(empty_user) })))} data-v-c61670c3>${"textContent" in _temp0 ? ssrInterpolate(_temp0.textContent) : _temp0.innerHTML ?? ""}`);
|
||||
if (!__props.justShowProfile) {
|
||||
_push(`<!--[-->`);
|
||||
if (_ctx.seenStory) {
|
||||
_push(`<svg viewBox="0 0 100 100" data-v-ba3140c5><defs data-v-ba3140c5><linearGradient id="gradient-id" gradientTransform="rotate(45)" data-v-ba3140c5><stop offset="0%" stop-color="lightgray" data-v-ba3140c5></stop></linearGradient></defs><circle cx="50" cy="50" r="48" fill="none" stroke="url(#gradient-id)" stroke-width="4" stroke-linecap="round" stroke-dasharray="300" stroke-dashoffset="0" data-v-ba3140c5></circle></svg>`);
|
||||
if (__props.seenStory) {
|
||||
_push(`<svg viewBox="0 0 100 100" data-v-c61670c3><defs data-v-c61670c3><linearGradient id="gradient-id" gradientTransform="rotate(45)" data-v-c61670c3><stop offset="0%" stop-color="lightgray" data-v-c61670c3></stop></linearGradient></defs><circle cx="50" cy="50" r="48" fill="none" stroke="url(#gradient-id)" stroke-width="4" stroke-linecap="round" stroke-dasharray="300" stroke-dashoffset="0" data-v-c61670c3></circle></svg>`);
|
||||
} else {
|
||||
_push(`<svg class="non-select"${ssrRenderAttr("width", `${props.width}`)}${ssrRenderAttr("height", props.width)} viewBox="0 0 100 100" data-v-ba3140c5><defs data-v-ba3140c5><linearGradient id="gradient-id" gradientTransform="rotate(45)" data-v-ba3140c5><stop offset="0%" stop-color="#f09433" data-v-ba3140c5></stop><stop offset="25%" stop-color="#e6683c" data-v-ba3140c5></stop><stop offset="50%" stop-color="#dc2743" data-v-ba3140c5></stop><stop offset="75%" stop-color="#cc2366" data-v-ba3140c5></stop><stop offset="100%" stop-color="#bc1888" data-v-ba3140c5></stop> 88/88 </linearGradient></defs><circle cx="50" cy="50" r="48" fill="none" stroke="url(#gradient-id)" stroke-width="4" stroke-linecap="round" stroke-dasharray="300" stroke-dashoffset="0" data-v-ba3140c5></circle></svg>`);
|
||||
_push(`<svg class="non-select"${ssrRenderAttr("width", `${props.width}`)}${ssrRenderAttr("height", props.width)} viewBox="0 0 100 100" data-v-c61670c3><defs data-v-c61670c3><linearGradient id="gradient-id" gradientTransform="rotate(45)" data-v-c61670c3><stop offset="0%" stop-color="#f09433" data-v-c61670c3></stop><stop offset="25%" stop-color="#e6683c" data-v-c61670c3></stop><stop offset="50%" stop-color="#dc2743" data-v-c61670c3></stop><stop offset="75%" stop-color="#cc2366" data-v-c61670c3></stop><stop offset="100%" stop-color="#bc1888" data-v-c61670c3></stop> 88/88 </linearGradient></defs><circle cx="50" cy="50" r="48" fill="none" stroke="url(#gradient-id)" stroke-width="4" stroke-linecap="round" stroke-dasharray="300" stroke-dashoffset="0" data-v-c61670c3></circle></svg>`);
|
||||
}
|
||||
_push(`<!--]-->`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
if (_ctx.showAdd) {
|
||||
if (__props.showAdd) {
|
||||
_push(ssrRenderComponent(_sfc_main$1, {
|
||||
onClick: ($event) => unref(router).push({ name: "add-story" }),
|
||||
class: ["absolute top-50px border-1 border-solid rounded-full", [unref(config).isNightStore ? "bg-black border-black" : "bg-white border-white", unref(config).isRTL ? "-left-5px" : "-right-5px"]]
|
||||
@@ -87,6 +87,6 @@ _sfc_main.setup = (props, ctx) => {
|
||||
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("components/UserProfilePic.vue");
|
||||
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
||||
};
|
||||
const UserProfilePic = /* @__PURE__ */ Object.assign(_export_sfc(_sfc_main, [["__scopeId", "data-v-ba3140c5"]]), { __name: "UserProfilePic" });
|
||||
const UserProfilePic = /* @__PURE__ */ Object.assign(_export_sfc(_sfc_main, [["__scopeId", "data-v-c61670c3"]]), { __name: "UserProfilePic" });
|
||||
|
||||
export { UserProfilePic as U };
|
||||
@@ -0,0 +1,51 @@
|
||||
import { _ as __nuxt_component_0 } from './server.mjs';
|
||||
import { defineComponent, useSSRContext } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { ssrRenderComponent } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/server-renderer/index.mjs';
|
||||
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/lodash-es/lodash.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 _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
__name: "[id]",
|
||||
__ssrInlineRender: true,
|
||||
setup(__props) {
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
const _component_ClientOnly = __nuxt_component_0;
|
||||
_push(ssrRenderComponent(_component_ClientOnly, _attrs, {}, _parent));
|
||||
};
|
||||
}
|
||||
});
|
||||
const _sfc_setup = _sfc_main.setup;
|
||||
_sfc_main.setup = (props, ctx) => {
|
||||
const ssrContext = useSSRContext();
|
||||
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("pages/highlight/edit/[id].vue");
|
||||
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
||||
};
|
||||
|
||||
export { _sfc_main as default };
|
||||
@@ -1,95 +0,0 @@
|
||||
import { defineComponent, useSSRContext } from 'vue';
|
||||
import { ssrRenderComponent } from 'vue/server-renderer';
|
||||
import { _ as _sfc_main$1 } from './index-CZUudJHp.mjs';
|
||||
import '@ant-design/icons-vue';
|
||||
import './BasicIconOld-93vAWohq.mjs';
|
||||
import './_plugin-vue_export-helper-1tPrXgE0.mjs';
|
||||
import './server.mjs';
|
||||
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 '../routes/renderer.mjs';
|
||||
import 'vue-bundle-renderer/runtime';
|
||||
import 'unhead/server';
|
||||
import 'devalue';
|
||||
import 'unhead/utils';
|
||||
import './empty_user-BaUNCdgf.mjs';
|
||||
import './inputRules-Cr4Uiro2.mjs';
|
||||
import './BasicInput-DrA-e4wX.mjs';
|
||||
import './usePrice-B-5-jXKQ.mjs';
|
||||
import './index-B8JfwQ3c.mjs';
|
||||
import './FormItemContext-eb0AodWH.mjs';
|
||||
import './index-C8EZBqzI.mjs';
|
||||
import 'lodash-es/isPlainObject.js';
|
||||
import 'resize-observer-polyfill';
|
||||
import './index-C9wXCwkF.mjs';
|
||||
import 'dom-align';
|
||||
import './BaseDatePicker-C2Rv3dvV.mjs';
|
||||
import 'moment-jalaali';
|
||||
import 'dayjalali';
|
||||
import './index-CzRefuj3.mjs';
|
||||
import './useMergedState-BZEfJ8Fl.mjs';
|
||||
import './move-C58xppXd.mjs';
|
||||
import './shallowequal-BCwuz4ga.mjs';
|
||||
import 'lodash-es/partition.js';
|
||||
import './index-CFD8lA6D.mjs';
|
||||
import '../_/CheckOutlined.mjs';
|
||||
import './useRefs-BHKrVg4I.mjs';
|
||||
import './collapseMotion-cQ2SGjCA.mjs';
|
||||
import './index-DRi0kFWe.mjs';
|
||||
import './close_light-DbrEdRZI.mjs';
|
||||
import './FormItem-2KfKSOCd.mjs';
|
||||
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/debounce.js';
|
||||
import 'lodash-es/omit.js';
|
||||
import './index-6Q0zJ0BK.mjs';
|
||||
import '@vueuse/gesture';
|
||||
import '@headlessui/vue';
|
||||
import 'framesync';
|
||||
import 'popmotion';
|
||||
import 'style-value-types';
|
||||
import './BasicButton-QGDeiwgb.mjs';
|
||||
import './index-CRte5P_X.mjs';
|
||||
import 'throttle-debounce';
|
||||
import './InstaInput-cG9pc4SD.mjs';
|
||||
|
||||
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/edit/[id].vue");
|
||||
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
||||
};
|
||||
|
||||
export { _sfc_main as default };
|
||||
@@ -0,0 +1,51 @@
|
||||
import { _ as __nuxt_component_0 } from './server.mjs';
|
||||
import { defineComponent, useSSRContext } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { ssrRenderComponent } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/server-renderer/index.mjs';
|
||||
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/lodash-es/lodash.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 _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
__name: "[id]",
|
||||
__ssrInlineRender: true,
|
||||
setup(__props) {
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
const _component_ClientOnly = __nuxt_component_0;
|
||||
_push(ssrRenderComponent(_component_ClientOnly, _attrs, {}, _parent));
|
||||
};
|
||||
}
|
||||
});
|
||||
const _sfc_setup = _sfc_main.setup;
|
||||
_sfc_main.setup = (props, ctx) => {
|
||||
const ssrContext = useSSRContext();
|
||||
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("pages/cart/[id].vue");
|
||||
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
||||
};
|
||||
|
||||
export { _sfc_main as default };
|
||||
@@ -1,49 +0,0 @@
|
||||
import { _ as __nuxt_component_0 } from './server.mjs';
|
||||
import { defineComponent, useSSRContext } from 'vue';
|
||||
import { ssrRenderComponent } from 'vue/server-renderer';
|
||||
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 '../routes/renderer.mjs';
|
||||
import 'vue-bundle-renderer/runtime';
|
||||
import 'unhead/server';
|
||||
import 'devalue';
|
||||
import 'unhead/utils';
|
||||
|
||||
const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
__name: "[id]",
|
||||
__ssrInlineRender: true,
|
||||
setup(__props) {
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
const _component_ClientOnly = __nuxt_component_0;
|
||||
_push(ssrRenderComponent(_component_ClientOnly, _attrs, {}, _parent));
|
||||
};
|
||||
}
|
||||
});
|
||||
const _sfc_setup = _sfc_main.setup;
|
||||
_sfc_main.setup = (props, ctx) => {
|
||||
const ssrContext = useSSRContext();
|
||||
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("pages/highlight/edit/[id].vue");
|
||||
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
||||
};
|
||||
|
||||
export { _sfc_main as default };
|
||||
@@ -1,49 +0,0 @@
|
||||
import { _ as __nuxt_component_0 } from './server.mjs';
|
||||
import { defineComponent, useSSRContext } from 'vue';
|
||||
import { ssrRenderComponent } from 'vue/server-renderer';
|
||||
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 '../routes/renderer.mjs';
|
||||
import 'vue-bundle-renderer/runtime';
|
||||
import 'unhead/server';
|
||||
import 'devalue';
|
||||
import 'unhead/utils';
|
||||
|
||||
const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
__name: "[id]",
|
||||
__ssrInlineRender: true,
|
||||
setup(__props) {
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
const _component_ClientOnly = __nuxt_component_0;
|
||||
_push(ssrRenderComponent(_component_ClientOnly, _attrs, {}, _parent));
|
||||
};
|
||||
}
|
||||
});
|
||||
const _sfc_setup = _sfc_main.setup;
|
||||
_sfc_main.setup = (props, ctx) => {
|
||||
const ssrContext = useSSRContext();
|
||||
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("pages/cart/[id].vue");
|
||||
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
||||
};
|
||||
|
||||
export { _sfc_main as default };
|
||||
+182
-125
@@ -1,88 +1,83 @@
|
||||
import { defineComponent, computed, withAsyncContext, unref, mergeProps, ref, reactive, withCtx, createVNode, watch, resolveDirective, createBlock, openBlock, toDisplayString, createTextVNode, shallowRef, inject, provide, nextTick, Transition, withDirectives, vShow, 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, aM as getOneUser, e as loading, w as useElementSize, o as useCartStore, m as useIntersectionObserver, n as getToken, x as getSupabaseStorageUrl, Y as withInstall, T as initDefaultProps, G as useConfigInject, H as genComponentStyleHook, az as devWarning, I as classNames, ag as getTransitionProps, a0 as getTransitionName, L as omit, aN as NoCompactStyle, P as PropTypes, a3 as objectType, J as merge, a8 as Portal, C as functionType, F as arrayType, V as getPropsSlot, as as KeyCode, aj as CloseOutlined } from './server.mjs';
|
||||
import { _ as _imports_0, a as _imports_1 } from './cart-DMkYna66.mjs';
|
||||
import { _ as __nuxt_component_1, a as _sfc_main$6, b as _imports_2, c as _imports_3, d as _sfc_main$5$1, H as Highlights } from './Highlights-DT-JM9Ya.mjs';
|
||||
import { defineComponent, computed, withAsyncContext, unref, mergeProps, ref, reactive, withCtx, createVNode, watch, resolveDirective, createBlock, openBlock, toDisplayString, createTextVNode, shallowRef, inject, provide, nextTick, Transition, withDirectives, vShow, useSSRContext } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { ssrRenderComponent, ssrRenderAttrs, ssrRenderAttr, ssrInterpolate, ssrRenderList, ssrGetDirectiveProps, ssrRenderStyle, ssrRenderSlot } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/server-renderer/index.mjs';
|
||||
import { u as useRouter$1, a as useConfigStore, b as useUserStore, e as loading, aP as getOneUser, q as useElementSize, o as useCartStore, m as useIntersectionObserver, n as getToken, U as withInstall, O as initDefaultProps, C as useConfigInject, D as genComponentStyleHook, aC as devWarning, E as classNames, ac as getTransitionProps, X as getTransitionName, H as omit, aQ as NoCompactStyle, P as PropTypes, $ as objectType, F as merge, a4 as Portal, y as functionType, B as arrayType, R as getPropsSlot, aq as KeyCode, af as CloseOutlined } from './server.mjs';
|
||||
import { _ as _imports_0$2, a as _imports_1$2 } from './cart-DMkYna66.mjs';
|
||||
import { B as BasicIconOld } from './BasicIconOld-93vAWohq.mjs';
|
||||
import numbro from 'numbro';
|
||||
import { B as BasicButton } from './BasicButton-QGDeiwgb.mjs';
|
||||
import { U as UserProfilePic } from './UserProfilePic-BwsIUO56.mjs';
|
||||
import { l as loadGray, S as SquarePostSkeleton } from './gray-motiQBEt.mjs';
|
||||
import { u as useMediaStore } from './media-C3Y2QweF.mjs';
|
||||
import { _ as _sfc_main$7 } from './FullScreenStories-BF2ht6tI.mjs';
|
||||
import { u as useUserPostStore } from './userPostsStore-gFQVmaju.mjs';
|
||||
import { u as useAsyncData } from './asyncData-DMpxHWuQ.mjs';
|
||||
import { B as Badge, i as isNumeric } from './index-DsmwGha0.mjs';
|
||||
import _objectSpread from '@babel/runtime/helpers/esm/objectSpread2';
|
||||
import _extends from '@babel/runtime/helpers/esm/extends';
|
||||
import { _ as __nuxt_component_2$1 } from './index-BOHfcXHM.mjs';
|
||||
import numbro from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/numbro/dist/numbro.min.js';
|
||||
import { B as BasicButton } from './BasicButton-DhQvSD8U.mjs';
|
||||
import { H as Highlights, T as Tabs, _ as __nuxt_component_1$2 } from './Highlights-BltqsdO_.mjs';
|
||||
import { U as UserProfilePic } from './UserProfilePic-DaZ03Xcl.mjs';
|
||||
import { l as loadGray, _ as __nuxt_component_0 } from './gray-Bd8mWW-o.mjs';
|
||||
import { u as useMediaStore } from './media-D7PFhdrG.mjs';
|
||||
import { _ as _sfc_main$8 } from './FullScreenStories-nkUmovER.mjs';
|
||||
import { u as useUserPostStore } from './userPostsStore-CAxMlK-n.mjs';
|
||||
import { u as useAsyncData } from './asyncData-Iix-4nDI.mjs';
|
||||
import { B as Badge, i as isNumeric } from './index-Dwnkcm_j.mjs';
|
||||
import _objectSpread from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@babel/runtime/helpers/esm/objectSpread2.js';
|
||||
import _extends from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@babel/runtime/helpers/esm/extends.js';
|
||||
import { _ as __nuxt_component_1 } from './index-BTMNH22J.mjs';
|
||||
import { _ as __nuxt_component_1$1 } from './index-DNuZTxeo.mjs';
|
||||
import { _ as _export_sfc } from './_plugin-vue_export-helper-1tPrXgE0.mjs';
|
||||
import { _ as _sfc_main$8 } from './OrdersList-DB0iCyN6.mjs';
|
||||
import { _ as _sfc_main$9 } from './SavedList-mdoTP2Tl.mjs';
|
||||
import { u as usePrice } from './usePrice-B-5-jXKQ.mjs';
|
||||
import { _ as _sfc_main$9 } from './OrdersList-B37Z8P86.mjs';
|
||||
import { _ as _sfc_main$a } from './SavedList-B0hZHiYG.mjs';
|
||||
import { u as usePrice } from './usePrice-_QzChhgO.mjs';
|
||||
import { t as toJalali } from './useDateTime-D8RCoGwW.mjs';
|
||||
import { T as Tabs, _ as __nuxt_component_2$2 } from './index-CgaWfZsh.mjs';
|
||||
import { ContentLoader } from 'vue-content-loader';
|
||||
import '../_/nitro.mjs';
|
||||
import { ContentLoader } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue-content-loader/dist/vue-content-loader.cjs.js';
|
||||
import 'node:http';
|
||||
import 'node:https';
|
||||
import '../nitro/nitro.mjs';
|
||||
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 '@ant-design/colors';
|
||||
import '@ctrl/tinycolor';
|
||||
import 'stylis';
|
||||
import 'vue-types';
|
||||
import 'lodash-es';
|
||||
import 'axios';
|
||||
import '@ant-design/icons-vue';
|
||||
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/lodash-es/lodash.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 'vue-bundle-renderer/runtime';
|
||||
import 'unhead/server';
|
||||
import 'devalue';
|
||||
import 'unhead/utils';
|
||||
import './index-C9wXCwkF.mjs';
|
||||
import 'dom-align';
|
||||
import './media-DD0HTZbK.mjs';
|
||||
import 'swiper/vue';
|
||||
import './empty_user-BaUNCdgf.mjs';
|
||||
import './post_loading-BiySI7bp.mjs';
|
||||
import './index-6Q0zJ0BK.mjs';
|
||||
import '@vueuse/gesture';
|
||||
import '@headlessui/vue';
|
||||
import 'framesync';
|
||||
import 'popmotion';
|
||||
import 'style-value-types';
|
||||
import './index-CRte5P_X.mjs';
|
||||
import 'throttle-debounce';
|
||||
import './BasicInput-DrA-e4wX.mjs';
|
||||
import './index-B8JfwQ3c.mjs';
|
||||
import './FormItemContext-eb0AodWH.mjs';
|
||||
import './index-C8EZBqzI.mjs';
|
||||
import 'lodash-es/isPlainObject.js';
|
||||
import 'resize-observer-polyfill';
|
||||
import './like-BhIOg3YL.mjs';
|
||||
import 'swiper/modules';
|
||||
import './save-Dlu8lCVD.mjs';
|
||||
import 'moment';
|
||||
import 'moment-timezone';
|
||||
import 'moment-jalaali';
|
||||
import 'date-fns';
|
||||
import 'date-fns/locale';
|
||||
import './index-Depu8Jil.mjs';
|
||||
import './shallowequal-BCwuz4ga.mjs';
|
||||
import 'lodash-es/uniq.js';
|
||||
import './collapseMotion-cQ2SGjCA.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';
|
||||
import './index-BMAjr3Fm.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/throttle-debounce/esm/index.js';
|
||||
import './index-Bn4rLj9V.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/dom-align/dist-node/index.js';
|
||||
import './index-D-yl9XJT.mjs';
|
||||
import './shallowequal-BEyWmMEh.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/lodash-es/uniq.js';
|
||||
import './index-G65aBv4F.mjs';
|
||||
import './FormItemContext-BlKvWASA.mjs';
|
||||
import './index-BGahPE0Z.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/lodash-es/isPlainObject.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/resize-observer-polyfill/dist/ResizeObserver.js';
|
||||
import './useRefs-BHKrVg4I.mjs';
|
||||
import 'lodash-es/pick.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/lodash-es/pick.js';
|
||||
import './useMergedState-BZEfJ8Fl.mjs';
|
||||
import './media-_NDkNIvH.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/swiper/swiper-vue.mjs';
|
||||
import './empty_user-DSxcM_ac.mjs';
|
||||
import './BasicInput-rlXkJMLE.mjs';
|
||||
import './like-B155RLSm.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/swiper/modules/index.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/perfect-debounce/dist/index.mjs';
|
||||
import './save-DsCeVVYe.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/moment/moment.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/moment-timezone/index.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/moment-jalaali/index.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/date-fns/index.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/date-fns/locale.js';
|
||||
|
||||
const props = () => ({
|
||||
prefixCls: String,
|
||||
@@ -1084,6 +1079,68 @@ const Drawer = defineComponent({
|
||||
}
|
||||
});
|
||||
const __nuxt_component_2 = withInstall(Drawer);
|
||||
const _imports_2 = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml:space='preserve'%20viewBox='0%200%2050%2050'%20id='grid'%3e%3cpath%20d='M48%202H2v46h46V2zm-2%2011h-9V4h9v9zm-20%200V4h9v9h-9zm9%202v9h-9v-9h9zm-11-2h-9V4h9v9zm0%202v9h-9v-9h9zm-11%209H4v-9h9v9zm0%202v9H4v-9h9zm2%200h9v9h-9v-9zm9%2011v9h-9v-9h9zm2%200h9v9h-9v-9zm0-2v-9h9v9h-9zm11-9h9v9h-9v-9zm0-2v-9h9v9h-9zM13%204v9H4V4h9zM4%2037h9v9H4v-9zm33%209v-9h9v9h-9z'/%3e%3c/svg%3e";
|
||||
const _imports_3 = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='Layer_1'%20data-name='Layer%201'%20viewBox='0%200%20122.64%20122.88'%3e%3ctitle%3estories%3c/title%3e%3cpath%20d='M104,31.15c2.31,5.65,5.11,11.94,6.52,17.55a51.83,51.83,0,0,1,1.54,15.24,50.9,50.9,0,0,1-3,15,49.87,49.87,0,0,1-7.24,13.23A49.12,49.12,0,0,1,91,102.49h0a54.85,54.85,0,0,1-4.74,3q-2.44,1.38-5,2.49a52,52,0,0,1-11.38,3.56,49.5,49.5,0,0,1-11.67.82L57,112.28l-2.76,10.28,1.89.15A60.44,60.44,0,0,0,71.05,122a63,63,0,0,0,14.51-4.42q2.94-1.3,5.83-2.93c1.87-1.06,3.75-2.25,5.62-3.55A59.59,59.59,0,0,0,119,82.48,61.68,61.68,0,0,0,120.7,46.1c-2-5.77-4.18-13.39-8.31-19.22-2.73-3.86-10.73-1.57-8.35,4.27ZM56,44.74a5.34,5.34,0,1,1,10.67,0V56.1H78a5.34,5.34,0,0,1,0,10.68H66.66V78.14a5.34,5.34,0,1,1-10.67,0V66.78H44.62a5.34,5.34,0,1,1,0-10.68H56V44.74ZM24.25,110.36a59.9,59.9,0,0,0,11.46,7l1.69.79,2.75-10.25L39,107.35a49.27,49.27,0,0,1-8.38-5.28,50.34,50.34,0,0,1-7.25-6.93l-.85-1-9.17,5.29,1.18,1.43a61.27,61.27,0,0,0,9.72,9.48ZM.57,69.53A59.49,59.49,0,0,0,4,82.67l.65,1.72,9.17-5.29-.44-1.24a49.32,49.32,0,0,1-2.4-9.72,48.75,48.75,0,0,1-.37-10l.07-1.29L.41,54.15.24,56A58.82,58.82,0,0,0,.57,69.53ZM8.38,31c-.92,1.55-1.75,3.11-2.51,4.7l-.81,1.7,10.25,2.75L15.89,39c.58-1.13,1.19-2.23,1.83-3.29s1.35-2.13,2.1-3.17a61.6,61.6,0,0,1,3.9-4.93A53.89,53.89,0,0,1,28,23.22l.93-.85-5.31-9.21-1.44,1.25a66.4,66.4,0,0,0-5.74,5.65,72.56,72.56,0,0,0-5.15,6.41c-1.05,1.48-2,3-2.92,4.5ZM50.44.78A54.27,54.27,0,0,0,40.27,3.52l-1.74.65,5.3,9.18,1.22-.43a44.39,44.39,0,0,1,15.71-2.43c1.21,0,2.48.11,3.79.26s2.51.33,3.74.58,2.55.56,3.8.93,2.5.8,3.79,1.3h0a5.24,5.24,0,1,0,3.79-9.77C78.15,3.2,76.59,2.67,75,2.2s-3.12-.84-4.65-1.15S67.28.5,65.76.33,62.63.05,61,0A55.87,55.87,0,0,0,50.44.78Z'/%3e%3c/svg%3e";
|
||||
const _imports_0$1 = "data:image/svg+xml,%3csvg%20width='23'%20height='23'%20viewBox='0%200%2023%2023'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='1.04163'%20y='1.52081'%20width='20'%20height='20'%20rx='5'%20stroke='white'%20stroke-width='2'/%3e%3cpath%20d='M11.0416%206.02081L11.0416%2017.0208'%20stroke='white'%20stroke-width='2'%20stroke-linecap='round'/%3e%3cpath%20d='M16.5416%2011.5208L5.54163%2011.5208'%20stroke='white'%20stroke-width='2'%20stroke-linecap='round'/%3e%3c/svg%3e";
|
||||
const _imports_1$1 = "data:image/svg+xml,%3csvg%20width='23'%20height='23'%20viewBox='0%200%2023%2023'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='1.04163'%20y='1.52081'%20width='20'%20height='20'%20rx='5'%20stroke='black'%20stroke-width='2'/%3e%3cpath%20d='M11.0416%206.02081L11.0416%2017.0208'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'/%3e%3cpath%20d='M16.5416%2011.5208L5.54163%2011.5208'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'/%3e%3c/svg%3e";
|
||||
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
||||
__name: "add",
|
||||
__ssrInlineRender: true,
|
||||
setup(__props) {
|
||||
const config = useConfigStore();
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
if (unref(config).isNightStore) {
|
||||
_push(`<img${ssrRenderAttrs(mergeProps({
|
||||
src: _imports_0$1,
|
||||
alt: "comment",
|
||||
"cursor-pointer": ""
|
||||
}, _attrs))}>`);
|
||||
} else {
|
||||
_push(`<img${ssrRenderAttrs(mergeProps({
|
||||
src: _imports_1$1,
|
||||
alt: "comment",
|
||||
"cursor-pointer": ""
|
||||
}, _attrs))}>`);
|
||||
}
|
||||
};
|
||||
}
|
||||
});
|
||||
const _sfc_setup$7 = _sfc_main$7.setup;
|
||||
_sfc_main$7.setup = (props2, ctx) => {
|
||||
const ssrContext = useSSRContext();
|
||||
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("assets/img/icons/add.vue");
|
||||
return _sfc_setup$7 ? _sfc_setup$7(props2, ctx) : void 0;
|
||||
};
|
||||
const _imports_0 = "data:image/svg+xml,%3csvg%20width='21'%20height='18'%20viewBox='0%200%2021%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M20.25%200H1.25L1.14823%200.00684662C0.782154%200.056509%200.5%200.370304%200.5%200.75C0.5%201.16421%200.835786%201.5%201.25%201.5H20.25L20.3518%201.49315C20.7178%201.44349%2021%201.1297%2021%200.75C21%200.335786%2020.6642%200%2020.25%200ZM1.25%208H20.25C20.6642%208%2021%208.33579%2021%208.75C21%209.1297%2020.7178%209.44349%2020.3518%209.49315L20.25%209.5H1.25C0.835786%209.5%200.5%209.16421%200.5%208.75C0.5%208.3703%200.782154%208.05651%201.14823%208.00685L1.25%208ZM1.25%2016H20.25C20.6642%2016%2021%2016.3358%2021%2016.75C21%2017.1297%2020.7178%2017.4435%2020.3518%2017.4932L20.25%2017.5H1.25C0.835786%2017.5%200.5%2017.1642%200.5%2016.75C0.5%2016.3703%200.782154%2016.0565%201.14823%2016.0068L1.25%2016Z'%20fill='white'/%3e%3c/svg%3e";
|
||||
const _imports_1 = "data:image/svg+xml,%3csvg%20width='21'%20height='18'%20viewBox='0%200%2021%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M20.25%200H1.25L1.14823%200.00684662C0.782154%200.056509%200.5%200.370304%200.5%200.75C0.5%201.16421%200.835786%201.5%201.25%201.5H20.25L20.3518%201.49315C20.7178%201.44349%2021%201.1297%2021%200.75C21%200.335786%2020.6642%200%2020.25%200ZM1.25%208H20.25C20.6642%208%2021%208.33579%2021%208.75C21%209.1297%2020.7178%209.44349%2020.3518%209.49315L20.25%209.5H1.25C0.835786%209.5%200.5%209.16421%200.5%208.75C0.5%208.3703%200.782154%208.05651%201.14823%208.00685L1.25%208ZM1.25%2016H20.25C20.6642%2016%2021%2016.3358%2021%2016.75C21%2017.1297%2020.7178%2017.4435%2020.3518%2017.4932L20.25%2017.5H1.25C0.835786%2017.5%200.5%2017.1642%200.5%2016.75C0.5%2016.3703%200.782154%2016.0565%201.14823%2016.0068L1.25%2016Z'%20fill='%23262626'/%3e%3c/svg%3e";
|
||||
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
||||
__name: "menu",
|
||||
__ssrInlineRender: true,
|
||||
setup(__props) {
|
||||
const config = useConfigStore();
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
if (unref(config).isNightStore) {
|
||||
_push(`<img${ssrRenderAttrs(mergeProps({
|
||||
src: _imports_0,
|
||||
alt: "comment",
|
||||
"cursor-pointer": ""
|
||||
}, _attrs))}>`);
|
||||
} else {
|
||||
_push(`<img${ssrRenderAttrs(mergeProps({
|
||||
src: _imports_1,
|
||||
alt: "comment",
|
||||
"cursor-pointer": ""
|
||||
}, _attrs))}>`);
|
||||
}
|
||||
};
|
||||
}
|
||||
});
|
||||
const _sfc_setup$6 = _sfc_main$6.setup;
|
||||
_sfc_main$6.setup = (props2, ctx) => {
|
||||
const ssrContext = useSSRContext();
|
||||
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("assets/img/icons/menu.vue");
|
||||
return _sfc_setup$6 ? _sfc_setup$6(props2, ctx) : void 0;
|
||||
};
|
||||
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
||||
__name: "MenuItem",
|
||||
__ssrInlineRender: true,
|
||||
@@ -1096,14 +1153,14 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
||||
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));
|
||||
if (__props.icon) {
|
||||
_push(ssrRenderComponent(BasicIconOld, { icon: __props.icon }, null, _parent));
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(`<div class="text-sm">${ssrInterpolate(_ctx.title)}</div></div><div class="flex items-center">`);
|
||||
_push(`<div class="text-sm">${ssrInterpolate(__props.title)}</div></div><div class="flex items-center">`);
|
||||
ssrRenderSlot(_ctx.$slots, "extra", {}, null, _push, _parent);
|
||||
if (_ctx.hasRightArrow) {
|
||||
if (__props.hasRightArrow) {
|
||||
_push(ssrRenderComponent(BasicIconOld, {
|
||||
key: unref(config).isRTL,
|
||||
icon: unref(config).isRTL ? "vuesax-linear:arrow-left-1" : "vuesax-linear:arrow-right-1",
|
||||
@@ -1183,10 +1240,10 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
||||
const _component_a_badge = Badge;
|
||||
const _component_a_popover = __nuxt_component_1;
|
||||
const _component_a_drawer = __nuxt_component_2;
|
||||
const _component_a_divider = __nuxt_component_2$1;
|
||||
const _component_a_divider = __nuxt_component_1$1;
|
||||
const _directive_lazy = resolveDirective("lazy");
|
||||
let _temp0;
|
||||
_push(`<!--[--><div data-v-05b0970a><div class="absolute top-0 w-inherit right-0 left-0" data-v-05b0970a><div class="flex justify-between w-full p-4" data-v-05b0970a><div class="flex items-center gap-4" data-v-05b0970a>`);
|
||||
_push(`<!--[--><div data-v-1d8a8afd><div class="absolute top-0 w-inherit right-0 left-0" data-v-1d8a8afd><div class="flex justify-between w-full p-4" data-v-1d8a8afd><div class="flex items-center gap-4" data-v-1d8a8afd>`);
|
||||
if (!isMain.value) {
|
||||
_push(ssrRenderComponent(BasicIconOld, {
|
||||
icon: !unref(config).isRTL ? "vuesax-linear:arrow-left" : "vuesax-linear:arrow-right",
|
||||
@@ -1195,7 +1252,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(`<div class="font-semibold text-xl" data-v-05b0970a>${ssrInterpolate(_ctx.user?.username)}</div></div><div class="flex items-center gap5" data-v-05b0970a>`);
|
||||
_push(`<div class="font-semibold text-xl" data-v-1d8a8afd>${ssrInterpolate(__props.user?.username)}</div></div><div class="flex items-center gap5" data-v-1d8a8afd>`);
|
||||
if ((!unref(config).isSeller && unref(config).APP_TYPE === "single" || unref(config).APP_TYPE === "multi") && isMain.value) {
|
||||
_push(ssrRenderComponent(_component_a_badge, {
|
||||
count: unref(cartStore).count,
|
||||
@@ -1204,11 +1261,11 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
||||
}, {
|
||||
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
||||
if (_push2) {
|
||||
_push2(`<div data-v-05b0970a${_scopeId}>`);
|
||||
_push2(`<div data-v-1d8a8afd${_scopeId}>`);
|
||||
if (unref(config).isNightStore) {
|
||||
_push2(`<img${ssrRenderAttr("src", _imports_0)} class="w-1.8rem -mt1" alt="" data-v-05b0970a${_scopeId}>`);
|
||||
_push2(`<img${ssrRenderAttr("src", _imports_0$2)} class="w-1.8rem -mt1" alt="" data-v-1d8a8afd${_scopeId}>`);
|
||||
} else {
|
||||
_push2(`<img${ssrRenderAttr("src", _imports_1)}${ssrRenderAttr("alt", unref(config).appName.en)} class="w-1.8rem -mt1" data-v-05b0970a${_scopeId}>`);
|
||||
_push2(`<img${ssrRenderAttr("src", _imports_1$2)}${ssrRenderAttr("alt", unref(config).appName.en)} class="w-1.8rem -mt1" data-v-1d8a8afd${_scopeId}>`);
|
||||
}
|
||||
_push2(`</div>`);
|
||||
} else {
|
||||
@@ -1218,12 +1275,12 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
||||
}, [
|
||||
unref(config).isNightStore ? (openBlock(), createBlock("img", {
|
||||
key: 0,
|
||||
src: _imports_0,
|
||||
src: _imports_0$2,
|
||||
class: "w-1.8rem -mt1",
|
||||
alt: ""
|
||||
})) : (openBlock(), createBlock("img", {
|
||||
key: 1,
|
||||
src: _imports_1,
|
||||
src: _imports_1$2,
|
||||
alt: unref(config).appName.en,
|
||||
class: "w-1.8rem -mt1"
|
||||
}, null, 8, ["alt"]))
|
||||
@@ -1244,7 +1301,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
||||
}, {
|
||||
content: withCtx((_, _push2, _parent2, _scopeId) => {
|
||||
if (_push2) {
|
||||
_push2(`<div data-v-05b0970a${_scopeId}><div class="flex items-center gap-2" data-v-05b0970a${_scopeId}><img${ssrRenderAttr("src", _imports_2)} class="w-1rem" alt="" data-v-05b0970a${_scopeId}><div data-v-05b0970a${_scopeId}>${ssrInterpolate(unref(config).useString("product"))}</div></div><div class="flex items-center gap-2 mt-2" data-v-05b0970a${_scopeId}><img${ssrRenderAttr("src", _imports_3)} class="w-1rem" alt="" data-v-05b0970a${_scopeId}><div data-v-05b0970a${_scopeId}>${ssrInterpolate(unref(config).useString("story"))}</div></div></div>`);
|
||||
_push2(`<div data-v-1d8a8afd${_scopeId}><div class="flex items-center gap-2" data-v-1d8a8afd${_scopeId}><img${ssrRenderAttr("src", _imports_2)} class="w-1rem" alt="" data-v-1d8a8afd${_scopeId}><div data-v-1d8a8afd${_scopeId}>${ssrInterpolate(unref(config).useString("product"))}</div></div><div class="flex items-center gap-2 mt-2" data-v-1d8a8afd${_scopeId}><img${ssrRenderAttr("src", _imports_3)} class="w-1rem" alt="" data-v-1d8a8afd${_scopeId}><div data-v-1d8a8afd${_scopeId}>${ssrInterpolate(unref(config).useString("story"))}</div></div></div>`);
|
||||
} else {
|
||||
return [
|
||||
createVNode("div", null, [
|
||||
@@ -1276,10 +1333,10 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
||||
}),
|
||||
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
||||
if (_push2) {
|
||||
_push2(ssrRenderComponent(_sfc_main$6, { class: "w-1.4rem" }, null, _parent2, _scopeId));
|
||||
_push2(ssrRenderComponent(_sfc_main$7, { class: "w-1.4rem" }, null, _parent2, _scopeId));
|
||||
} else {
|
||||
return [
|
||||
createVNode(_sfc_main$6, { class: "w-1.4rem" })
|
||||
createVNode(_sfc_main$7, { class: "w-1.4rem" })
|
||||
];
|
||||
}
|
||||
}),
|
||||
@@ -1288,46 +1345,46 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
if (_ctx.user?.id === unref(userStore).user?.id) {
|
||||
_push(ssrRenderComponent(_sfc_main$5$1, {
|
||||
if (__props.user?.id === unref(userStore).user?.id) {
|
||||
_push(ssrRenderComponent(_sfc_main$6, {
|
||||
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-05b0970a><div class="px4" data-v-05b0970a><div class="flex" data-v-05b0970a>`);
|
||||
_push(`</div></div><div class="h-90vh overflow-y-auto pb-5vh" data-v-1d8a8afd><div class="px4" data-v-1d8a8afd><div class="flex" data-v-1d8a8afd>`);
|
||||
_push(ssrRenderComponent(UserProfilePic, {
|
||||
src: _ctx.user?.avatar,
|
||||
onClick: ($event) => userStory.value?.stories?.length !== 0 ? selectedStoryId.value = _ctx.user?.id : "",
|
||||
src: __props.user?.avatar,
|
||||
onClick: ($event) => userStory.value?.stories?.length !== 0 ? selectedStoryId.value = __props.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-05b0970a><div class="flex mt2 gap-2" data-v-05b0970a><div class="" data-v-05b0970a><div class="font-semibold" data-v-05b0970a>${ssrInterpolate(formatNumber(_ctx.user?.stats?.buy_total_order_count ?? 0))}</div><div data-v-05b0970a>${ssrInterpolate(unref(config).useString("products"))}</div></div>`);
|
||||
if (_ctx.user?.id === unref(userStore).user?.id) {
|
||||
_push(`<div class="" data-v-05b0970a><div class="font-semibold" data-v-05b0970a>${ssrInterpolate(formatNumber(_ctx.user?.stats?.total_customer ?? 0))}</div><div data-v-05b0970a>${ssrInterpolate(unref(config).useString("customers"))}</div></div>`);
|
||||
_push(`<div class="p3 text-sm" data-v-1d8a8afd><div class="flex mt2 gap-2" data-v-1d8a8afd><div class="" data-v-1d8a8afd><div class="font-semibold" data-v-1d8a8afd>${ssrInterpolate(formatNumber(__props.user?.stats?.buy_total_order_count ?? 0))}</div><div data-v-1d8a8afd>${ssrInterpolate(unref(config).useString("products"))}</div></div>`);
|
||||
if (__props.user?.id === unref(userStore).user?.id) {
|
||||
_push(`<div class="" data-v-1d8a8afd><div class="font-semibold" data-v-1d8a8afd>${ssrInterpolate(formatNumber(__props.user?.stats?.total_customer ?? 0))}</div><div data-v-1d8a8afd>${ssrInterpolate(unref(config).useString("customers"))}</div></div>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(`<div class="" data-v-05b0970a><div class="font-semibold" data-v-05b0970a>${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-05b0970a>${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-05b0970a>${ssrInterpolate(_ctx.user?.bio)}</div>`);
|
||||
if (_ctx.user?.website) {
|
||||
_push(`<a${ssrRenderAttr("href", "https://" + _ctx.user?.website)} target="_blank" data-v-05b0970a><div class="flex items-center text-xs gap-1 text-primary" data-v-05b0970a>`);
|
||||
_push(`<div class="" data-v-1d8a8afd><div class="font-semibold" data-v-1d8a8afd>${ssrInterpolate(formatNumber(__props.user?.id === unref(userStore).user?.id ? __props.user?.stats?.sell_total_order_count ?? 0 : __props.user?.stats?.buy_total_order_count ?? 0))}</div><div data-v-1d8a8afd>${ssrInterpolate(unref(config).isSeller ? unref(config).useString("orders") : unref(config).useString("yourOrders"))}</div></div></div></div></div><div class="text-xs mt-5 whitespace-pre-line" data-v-1d8a8afd>${ssrInterpolate(__props.user?.bio)}</div>`);
|
||||
if (__props.user?.website) {
|
||||
_push(`<a${ssrRenderAttr("href", "https://" + __props.user?.website)} target="_blank" data-v-1d8a8afd><div class="flex items-center text-xs gap-1 text-primary" data-v-1d8a8afd>`);
|
||||
_push(ssrRenderComponent(BasicIconOld, {
|
||||
icon: "vuesax-linear:link-1",
|
||||
class: "text-primary",
|
||||
size: "20"
|
||||
}, null, _parent));
|
||||
_push(` ${ssrInterpolate(_ctx.user?.website)}</div></a>`);
|
||||
_push(` ${ssrInterpolate(__props.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-05b0970a>`);
|
||||
_push(`<div class="flex items-center gap-2 mt-2" data-v-1d8a8afd>`);
|
||||
_push(ssrRenderComponent(BasicButton, {
|
||||
size: "small",
|
||||
block: "",
|
||||
class: ["!h-unset !rounded-lg", unref(config).isNightStore ? "border-white text-white bg-black" : "border-black text-black"],
|
||||
class: ["!h-unset bg-gray-200 border-0 !py-1 !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) => {
|
||||
@@ -1344,7 +1401,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
||||
_push(ssrRenderComponent(BasicButton, {
|
||||
size: "small",
|
||||
block: "",
|
||||
class: ["!h-unset !rounded-lg", unref(config).isNightStore ? "border-white text-white bg-black" : "border-black text-black"]
|
||||
class: ["!h-unset bg-gray-200 border-0 !py-1 !rounded-lg", unref(config).isNightStore ? "border-white text-white bg-black" : "border-black text-black"]
|
||||
}, {
|
||||
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
||||
if (_push2) {
|
||||
@@ -1361,20 +1418,20 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(`<div class="mt-4 flex" data-v-05b0970a>`);
|
||||
_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-05b0970a><!--[-->`);
|
||||
_push(`<div class="mt-4 flex" data-v-1d8a8afd>`);
|
||||
_push(ssrRenderComponent(Highlights, { "current-user": __props.user }, null, _parent));
|
||||
_push(`</div></div><div class="w-full grid grid-cols-3 mt-2 gap-2px" data-v-1d8a8afd><!--[-->`);
|
||||
ssrRenderList(unref(userPost).posts, (post, i) => {
|
||||
_push(`<div class="w-full aspect-square relative" data-v-05b0970a>`);
|
||||
_push(`<div class="w-full aspect-square relative" data-v-1d8a8afd>`);
|
||||
if (post.files?.length) {
|
||||
_push(`<!--[-->`);
|
||||
if (post.files[0].type === "image") {
|
||||
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-05b0970a>${"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-05b0970a><video${ssrRenderAttr("src", post.files[0].url)} class="hidden" data-v-05b0970a></video><img${ssrRenderAttr("src", videoThumbnails.value[post.files[0].url])} class="w-full h-full object-cover" alt="Video Thumbnail" data-v-05b0970a><div class="absolute inset-0 flex items-center justify-center bg-black bg-opacity-30" data-v-05b0970a><svg class="w-12 h-12 text-white" fill="currentColor" viewBox="0 0 24 24" data-v-05b0970a><path d="M8 5v14l11-7z" data-v-05b0970a></path></svg></div></div>`);
|
||||
}, ssrGetDirectiveProps(_ctx, _directive_lazy, { src: unref(config).useDataStorage(post.files[0]?.url), loading: unref(loadGray), error: unref(loadGray) })))} data-v-1d8a8afd>${"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-1d8a8afd><video${ssrRenderAttr("src", post.files[0]?.url)} class="hidden" data-v-1d8a8afd></video><img${ssrRenderAttr("src", videoThumbnails.value[post.files[0]?.url])} class="w-full h-full object-cover" alt="Video Thumbnail" data-v-1d8a8afd><div class="absolute inset-0 flex items-center justify-center bg-black bg-opacity-30" data-v-1d8a8afd><svg class="w-12 h-12 text-white" fill="currentColor" viewBox="0 0 24 24" data-v-1d8a8afd><path d="M8 5v14l11-7z" data-v-1d8a8afd></path></svg></div></div>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
@@ -1384,9 +1441,9 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
||||
}
|
||||
_push(`</div>`);
|
||||
});
|
||||
_push(`<!--]--></div><div style="${ssrRenderStyle(!unref(userPost).loading ? null : { display: "none" })}" class="w-full opacity-0 relative" data-v-05b0970a> load </div>`);
|
||||
_push(`<!--]--></div><div class="w-full opacity-0 relative" style="${ssrRenderStyle(!unref(userPost).loading ? null : { display: "none" })}" data-v-1d8a8afd> load </div>`);
|
||||
if (unref(userPost).loading) {
|
||||
_push(ssrRenderComponent(SquarePostSkeleton, null, null, _parent));
|
||||
_push(ssrRenderComponent(__nuxt_component_0, null, null, _parent));
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
@@ -1415,7 +1472,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
||||
}),
|
||||
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
||||
if (_push2) {
|
||||
_push2(`<div data-v-05b0970a${_scopeId}>`);
|
||||
_push2(`<div data-v-1d8a8afd${_scopeId}>`);
|
||||
_push2(ssrRenderComponent(MenuItem, {
|
||||
title: unref(config).useString("brands"),
|
||||
onClick: ($event) => unref(router).push({ name: "user-brands" }),
|
||||
@@ -1476,7 +1533,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
||||
}, _parent));
|
||||
_push(`</div>`);
|
||||
if (selectedStoryId.value) {
|
||||
_push(ssrRenderComponent(_sfc_main$7, {
|
||||
_push(ssrRenderComponent(_sfc_main$8, {
|
||||
id: selectedStoryId.value,
|
||||
"onUpdate:id": ($event) => selectedStoryId.value = $event,
|
||||
specifyId: ""
|
||||
@@ -1494,7 +1551,7 @@ _sfc_main$4.setup = (props2, ctx) => {
|
||||
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("views/base/pages/userProf/components/Seller.vue");
|
||||
return _sfc_setup$4 ? _sfc_setup$4(props2, ctx) : void 0;
|
||||
};
|
||||
const Seller = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-05b0970a"]]);
|
||||
const Seller = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-1d8a8afd"]]);
|
||||
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
||||
__name: "Customer",
|
||||
__ssrInlineRender: true,
|
||||
@@ -1516,18 +1573,18 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
||||
};
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
const _component_ATabs = Tabs;
|
||||
const _component_ATabPane = __nuxt_component_2$2;
|
||||
const _component_ATabPane = __nuxt_component_1$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(`<div class="font-semibold text-lg" data-v-097c9901>${ssrInterpolate(__props.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,
|
||||
src: __props.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>`);
|
||||
_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(__props.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)(__props.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(__props.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)(__props.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(__props.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, {
|
||||
@@ -1546,12 +1603,12 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
||||
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(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$8)
|
||||
createVNode(_sfc_main$9)
|
||||
])
|
||||
];
|
||||
}
|
||||
@@ -1566,12 +1623,12 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
||||
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(ssrRenderComponent(_sfc_main$a, null, null, _parent3, _scopeId2));
|
||||
_push3(`</div>`);
|
||||
} else {
|
||||
return [
|
||||
createVNode("div", { class: "h-63vh pb-10vh overflow-y-auto px-3" }, [
|
||||
createVNode(_sfc_main$9)
|
||||
createVNode(_sfc_main$a)
|
||||
])
|
||||
];
|
||||
}
|
||||
@@ -1587,7 +1644,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
||||
}, {
|
||||
default: withCtx(() => [
|
||||
createVNode("div", { class: "h-63vh pb-10vh overflow-y-auto px-3" }, [
|
||||
createVNode(_sfc_main$8)
|
||||
createVNode(_sfc_main$9)
|
||||
])
|
||||
]),
|
||||
_: 1
|
||||
@@ -1599,7 +1656,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
||||
}, {
|
||||
default: withCtx(() => [
|
||||
createVNode("div", { class: "h-63vh pb-10vh overflow-y-auto px-3" }, [
|
||||
createVNode(_sfc_main$9)
|
||||
createVNode(_sfc_main$a)
|
||||
])
|
||||
]),
|
||||
_: 1
|
||||
+121
-89
@@ -1,78 +1,80 @@
|
||||
import { defineComponent, ref, computed, unref, resolveDirective, mergeProps, withCtx, createTextVNode, toDisplayString, createVNode, withDirectives, reactive, watch, nextTick, shallowRef, useSSRContext } from 'vue';
|
||||
import { ssrRenderComponent, ssrRenderAttrs, ssrRenderClass, ssrInterpolate, ssrGetDirectiveProps, ssrRenderList } from 'vue/server-renderer';
|
||||
import { u as useRouter$1, a as useConfigStore, b as useUserStore, x as getSupabaseStorageUrl, e as loading, aJ as useProduct, T as initDefaultProps, G as useConfigInject, H as genComponentStyleHook, aK as useToken, aj as CloseOutlined, I as classNames, L as omit, C as functionType, D as stringType, ay as someType, F as arrayType, E as booleanType, P as PropTypes, aL as withUndefined, R as myAxios, J as merge, U as filterEmpty, am as supabaseService, d as api$1, M as resetComponent, ar as textEllipsis, a1 as cloneElement } from './server.mjs';
|
||||
import { defineComponent, ref, computed, unref, resolveDirective, mergeProps, withCtx, createTextVNode, toDisplayString, createVNode, withDirectives, reactive, watch, nextTick, shallowRef, useSSRContext } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { ssrRenderComponent, ssrRenderAttrs, ssrRenderClass, ssrInterpolate, ssrGetDirectiveProps, ssrRenderList } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/server-renderer/index.mjs';
|
||||
import { u as useRouter$1, a as useConfigStore, b as useUserStore, e as loading, aM as useProduct, O as initDefaultProps, C as useConfigInject, D as genComponentStyleHook, aN as useToken, af as CloseOutlined, E as classNames, H as omit, y as functionType, z as stringType, aB as someType, B as arrayType, A as booleanType, P as PropTypes, aO as withUndefined, M as myAxios, F as merge, Q as filterEmpty, ai as supabaseService, d as api$1, I as resetComponent, ap as textEllipsis, Y as cloneElement } from './server.mjs';
|
||||
import { B as BasicIconOld } from './BasicIconOld-93vAWohq.mjs';
|
||||
import { u as usePrice } from './usePrice-B-5-jXKQ.mjs';
|
||||
import { e as empty_user } from './empty_user-BaUNCdgf.mjs';
|
||||
import { B as BasicButton } from './BasicButton-QGDeiwgb.mjs';
|
||||
import { u as usePrice } from './usePrice-_QzChhgO.mjs';
|
||||
import { e as empty_user } from './empty_user-DSxcM_ac.mjs';
|
||||
import { B as BasicButton } from './BasicButton-DhQvSD8U.mjs';
|
||||
import { p as previewImg } from './logo_preview-CJTcB_Eg.mjs';
|
||||
import { B as Badge } from './index-DsmwGha0.mjs';
|
||||
import { _ as __nuxt_component_2 } from './index-BOHfcXHM.mjs';
|
||||
import { B as Badge } from './index-Dwnkcm_j.mjs';
|
||||
import { _ as __nuxt_component_1$1 } from './index-DNuZTxeo.mjs';
|
||||
import { t as toJalali } from './useDateTime-D8RCoGwW.mjs';
|
||||
import { B as BasicSheet } from './index-6Q0zJ0BK.mjs';
|
||||
import { F as Form, _ as _sfc_main$5 } from './index-DRi0kFWe.mjs';
|
||||
import { B as BasicInput } from './BasicInput-DrA-e4wX.mjs';
|
||||
import { _ as __nuxt_component_1$1, u as useResponsiveObserver } from './FormItem-2KfKSOCd.mjs';
|
||||
import { B as BasicSheet } from './index-m5qbBl98.mjs';
|
||||
import { F as Form, _ as _sfc_main$5 } from './index-BHPit4CX.mjs';
|
||||
import { B as BasicInput } from './BasicInput-rlXkJMLE.mjs';
|
||||
import { _ as __nuxt_component_1$2, u as useResponsiveObserver } from './FormItem-CMWnBuQX.mjs';
|
||||
import { _ as _export_sfc } from './_plugin-vue_export-helper-1tPrXgE0.mjs';
|
||||
import _objectSpread from '@babel/runtime/helpers/esm/objectSpread2';
|
||||
import _extends from '@babel/runtime/helpers/esm/extends';
|
||||
import _objectSpread from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@babel/runtime/helpers/esm/objectSpread2.js';
|
||||
import _extends from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@babel/runtime/helpers/esm/extends.js';
|
||||
import { C as CheckOutlined } from '../_/CheckOutlined.mjs';
|
||||
import { _ as __nuxt_component_1$2 } from './index-CFD8lA6D.mjs';
|
||||
import { _ as __nuxt_component_2$1 } from './index-C9wXCwkF.mjs';
|
||||
import '../_/nitro.mjs';
|
||||
import { _ as __nuxt_component_2$1 } from './index-Czz3hSzg.mjs';
|
||||
import { _ as __nuxt_component_2 } from './index-Bn4rLj9V.mjs';
|
||||
import 'node:http';
|
||||
import 'node:https';
|
||||
import '../nitro/nitro.mjs';
|
||||
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 '@ant-design/colors';
|
||||
import '@ctrl/tinycolor';
|
||||
import 'stylis';
|
||||
import 'vue-types';
|
||||
import 'lodash-es';
|
||||
import 'axios';
|
||||
import '@ant-design/icons-vue';
|
||||
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/lodash-es/lodash.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 'vue-bundle-renderer/runtime';
|
||||
import 'unhead/server';
|
||||
import 'devalue';
|
||||
import 'unhead/utils';
|
||||
import './index-CRte5P_X.mjs';
|
||||
import 'throttle-debounce';
|
||||
import 'moment';
|
||||
import 'moment-timezone';
|
||||
import 'moment-jalaali';
|
||||
import 'date-fns';
|
||||
import 'date-fns/locale';
|
||||
import '@vueuse/gesture';
|
||||
import '@headlessui/vue';
|
||||
import 'framesync';
|
||||
import 'popmotion';
|
||||
import 'style-value-types';
|
||||
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';
|
||||
import './index-BMAjr3Fm.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/throttle-debounce/esm/index.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/moment/moment.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/moment-timezone/index.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/moment-jalaali/index.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/date-fns/index.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/date-fns/locale.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@vueuse/gesture/dist/index.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@headlessui/vue/dist/headlessui.esm.js';
|
||||
import './index-BWBnVq-W.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/framesync/dist/es/index.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/popmotion/dist/es/index.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/style-value-types/dist/es/index.mjs';
|
||||
import './close_light-DbrEdRZI.mjs';
|
||||
import 'lodash-es/isEqual.js';
|
||||
import 'compute-scroll-into-view';
|
||||
import 'lodash-es/cloneDeep.js';
|
||||
import 'lodash-es/intersection.js';
|
||||
import 'lodash-es/debounce.js';
|
||||
import 'lodash-es/omit.js';
|
||||
import './FormItemContext-eb0AodWH.mjs';
|
||||
import './index-B8JfwQ3c.mjs';
|
||||
import './index-C8EZBqzI.mjs';
|
||||
import 'lodash-es/isPlainObject.js';
|
||||
import 'resize-observer-polyfill';
|
||||
import 'async-validator';
|
||||
import 'lodash-es/find.js';
|
||||
import './collapseMotion-cQ2SGjCA.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/lodash-es/isEqual.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/compute-scroll-into-view/dist/index.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/lodash-es/cloneDeep.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/lodash-es/intersection.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/lodash-es/debounce.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/lodash-es/omit.js';
|
||||
import './FormItemContext-BlKvWASA.mjs';
|
||||
import './index-G65aBv4F.mjs';
|
||||
import './index-BGahPE0Z.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/lodash-es/isPlainObject.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/resize-observer-polyfill/dist/ResizeObserver.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/async-validator/dist-node/index.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/lodash-es/find.js';
|
||||
import './useRefs-BHKrVg4I.mjs';
|
||||
import 'dom-align';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/dom-align/dist-node/index.js';
|
||||
|
||||
function useBreakpoint() {
|
||||
const screens = shallowRef({});
|
||||
@@ -1416,7 +1418,7 @@ const Steps = defineComponent({
|
||||
const progressWidth = props.size === "small" ? token.value.controlHeight : token.value.controlHeightLG;
|
||||
const iconWithProgress = createVNode("div", {
|
||||
"class": `${prefixCls.value}-progress-icon`
|
||||
}, [createVNode(__nuxt_component_1$2, {
|
||||
}, [createVNode(__nuxt_component_2$1, {
|
||||
"type": "circle",
|
||||
"percent": mergedPercent.value,
|
||||
"size": progressWidth,
|
||||
@@ -1440,7 +1442,7 @@ const Steps = defineComponent({
|
||||
[`${prefixCls.value}-rtl`]: rtlDirection.value === "rtl",
|
||||
[`${prefixCls.value}-with-progress`]: mergedPercent.value !== void 0
|
||||
}, attrs.class, hashId.value);
|
||||
const itemRender = (item, stepItem) => item.description ? createVNode(__nuxt_component_2$1, {
|
||||
const itemRender = (item, stepItem) => item.description ? createVNode(__nuxt_component_2, {
|
||||
"title": item.description
|
||||
}, {
|
||||
default: () => [stepItem]
|
||||
@@ -1509,12 +1511,12 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
||||
} = useProduct(props.item.product, props.item.variant);
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
const _component_a_badge = Badge;
|
||||
const _component_a_divider = __nuxt_component_2;
|
||||
const _component_a_divider = __nuxt_component_1$1;
|
||||
const _directive_lazy = resolveDirective("lazy");
|
||||
let _temp0;
|
||||
_push(`<div${ssrRenderAttrs(_attrs)}><div class="flex">`);
|
||||
_push(ssrRenderComponent(_component_a_badge, {
|
||||
count: _ctx.item.qty
|
||||
count: __props.item.qty
|
||||
}, {
|
||||
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
||||
if (_push2) {
|
||||
@@ -1537,17 +1539,17 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
||||
}),
|
||||
_: 1
|
||||
}, _parent));
|
||||
_push(`<div class="w-full"><div class="flex items-center justify-between w-full"><div class="ps-4 pt-2 w-full"><div class="font-bold truncate text-sm">${ssrInterpolate(unref(title))}</div><div class="flex"><!--[-->`);
|
||||
ssrRenderList(_ctx.item?.variant?.attribute_values, (val, index) => {
|
||||
_push(`<div class="flex items-baseline ms1"><div>${ssrInterpolate(val.value)}</div>`);
|
||||
if (_ctx.item?.variant?.attribute_values.length - 1 !== index) {
|
||||
_push(`<div class="w-full !w-3/4"><div class="flex items-center justify-between w-full"><div class="ps-4 pt-2 w-full"><div class="font-bold truncate text-sm">${ssrInterpolate(unref(title))}</div><div class="flex"><!--[-->`);
|
||||
ssrRenderList(__props.item.variant?.variant_attribute_values, (val, index) => {
|
||||
_push(`<div class="flex items-baseline ms1"><div>${ssrInterpolate(val?.attribute_values?.value)}</div>`);
|
||||
if (__props.item?.variant?.variant_attribute_values.length - 1 !== index) {
|
||||
_push(`<div>,</div>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(`</div>`);
|
||||
});
|
||||
_push(`<!--]--></div><div class="flex w-full justify-between"><div class="flex gap-1 items-baseline text-xs mt2"><div class="font-bold">${ssrInterpolate(_ctx.item.qty)}</div><div class="text-xs">${ssrInterpolate(unref(config).useString("item2"))}</div></div><div class="flex flex-col font-bold me-3">`);
|
||||
_push(`<!--]--></div><div class="flex justify-between"><div class="flex gap-1 items-baseline text-xs mt2"><div class="font-bold">${ssrInterpolate(__props.item.qty)}</div><div class="text-xs">${ssrInterpolate(unref(config).useString("item2"))}</div></div><div class="flex flex-col font-bold me-3">`);
|
||||
if (unref(hasDiscount)) {
|
||||
_push(`<span class="font-medium text-gray-400 text-xs line-through">${ssrInterpolate(unref(usePrice)(unref(originalPrice), true, ""))}</span>`);
|
||||
} else {
|
||||
@@ -1555,14 +1557,14 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
||||
}
|
||||
_push(`<span class="text-sm">${ssrInterpolate(unref(usePrice)(unref(price), true, ""))}</span><span class="text-xs text-end">${ssrInterpolate(unref(config).priceUnit)}</span></div></div></div></div><div class="px-3">`);
|
||||
_push(ssrRenderComponent(_component_a_divider, { class: "my-2" }, null, _parent));
|
||||
_push(`</div><div class="ps-4 flex items-baseline"><div class="font-bold">${ssrInterpolate(unref(usePrice)(_ctx.item.qty * unref(price), true, ""))}</div><div class="text-sm text-end font-bold ms-1">${ssrInterpolate(unref(config).priceUnit)}</div>`);
|
||||
_push(`</div><div class="ps-4 flex items-baseline"><div class="font-bold">${ssrInterpolate(unref(usePrice)(__props.item.qty * unref(price), true, ""))}</div><div class="text-sm text-end font-bold ms-1">${ssrInterpolate(unref(config).priceUnit)}</div>`);
|
||||
if (unref(hasDiscount)) {
|
||||
_push(`<div class="font-medium text-gray-400 text-xs line-through ms-5">${ssrInterpolate(unref(usePrice)(_ctx.item.qty * unref(originalPrice)))}</div>`);
|
||||
_push(`<div class="font-medium text-gray-400 text-xs line-through ms-5">${ssrInterpolate(unref(usePrice)(__props.item.qty * unref(originalPrice)))}</div>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(`</div></div></div>`);
|
||||
if (!_ctx.isLast) {
|
||||
if (!__props.isLast) {
|
||||
_push(`<div class="py-4 mx-3"><div class="h-2px bg-gray-3"></div></div>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
@@ -1650,7 +1652,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
||||
}
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
const _component_a_form = Form;
|
||||
const _component_a_form_item = __nuxt_component_1$1;
|
||||
const _component_a_form_item = __nuxt_component_1$2;
|
||||
_push(ssrRenderComponent(BasicSheet, mergeProps({
|
||||
title: "",
|
||||
ref_key: "sheetRef",
|
||||
@@ -1662,7 +1664,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
||||
}, _attrs), {
|
||||
header: withCtx((_, _push2, _parent2, _scopeId) => {
|
||||
if (_push2) {
|
||||
_push2(`<div flex justify-center items-center flex-col p-2 data-v-29f95169${_scopeId}><div bg-gray-500 h-2px w-2.5rem data-v-29f95169${_scopeId}></div><div class="flex justify-center" data-v-29f95169${_scopeId}><div mt-3 font-semibold data-v-29f95169${_scopeId}>${ssrInterpolate(_ctx.isEdit ? unref(config).useString("editStatus") : unref(config).useString("addStatus"))}</div><div class="absolute end-0" data-v-29f95169${_scopeId}>`);
|
||||
_push2(`<div flex justify-center items-center flex-col p-2 data-v-8528a6ef${_scopeId}><div bg-gray-500 h-2px w-2.5rem data-v-8528a6ef${_scopeId}></div><div class="flex justify-center" data-v-8528a6ef${_scopeId}><div mt-3 font-semibold data-v-8528a6ef${_scopeId}>${ssrInterpolate(__props.isEdit ? unref(config).useString("editStatus") : unref(config).useString("addStatus"))}</div><div class="absolute end-0" data-v-8528a6ef${_scopeId}>`);
|
||||
_push2(ssrRenderComponent(_sfc_main$5, {
|
||||
class: "w-1rem mt-2 me-5",
|
||||
onClick: closeSheet
|
||||
@@ -1686,7 +1688,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
||||
createVNode("div", {
|
||||
"mt-3": "",
|
||||
"font-semibold": ""
|
||||
}, toDisplayString(_ctx.isEdit ? unref(config).useString("editStatus") : unref(config).useString("addStatus")), 1),
|
||||
}, toDisplayString(__props.isEdit ? unref(config).useString("editStatus") : unref(config).useString("addStatus")), 1),
|
||||
createVNode("div", { class: "absolute end-0" }, [
|
||||
createVNode(_sfc_main$5, {
|
||||
class: "w-1rem mt-2 me-5",
|
||||
@@ -1700,7 +1702,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
||||
}),
|
||||
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
||||
if (_push2) {
|
||||
_push2(`<div class="max-h-85vh overflow-y-auto px-2 mt3 pb-10" data-v-29f95169${_scopeId}>`);
|
||||
_push2(`<div class="max-h-85vh overflow-y-auto px-2 mt3 pb-10" data-v-8528a6ef${_scopeId}>`);
|
||||
_push2(ssrRenderComponent(_component_a_form, {
|
||||
model: formFields,
|
||||
ref_key: "formRef",
|
||||
@@ -1818,23 +1820,39 @@ _sfc_main$3.setup = (props, ctx) => {
|
||||
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("components/StatusAddEdit.vue");
|
||||
return _sfc_setup$3 ? _sfc_setup$3(props, ctx) : void 0;
|
||||
};
|
||||
const StatusAddEdit = /* @__PURE__ */ Object.assign(_export_sfc(_sfc_main$3, [["__scopeId", "data-v-29f95169"]]), { __name: "StatusAddEdit" });
|
||||
const StatusAddEdit = /* @__PURE__ */ Object.assign(_export_sfc(_sfc_main$3, [["__scopeId", "data-v-8528a6ef"]]), { __name: "StatusAddEdit" });
|
||||
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
||||
__name: "OrderDetail",
|
||||
__ssrInlineRender: true,
|
||||
setup(__props) {
|
||||
const router = useRouter$1();
|
||||
const userStore = useUserStore();
|
||||
const order = ref(null);
|
||||
const showMore = ref(false);
|
||||
const visible = ref(false);
|
||||
const isEdit = ref(false);
|
||||
const userStore = useUserStore();
|
||||
const data = ref({});
|
||||
const orderStatus = ref([]);
|
||||
const id = computed(() => {
|
||||
return parseInt(router.currentRoute.value.params.id);
|
||||
});
|
||||
const config = useConfigStore();
|
||||
const orderType = computed(() => {
|
||||
switch (order.value?.payment_type) {
|
||||
case "zarinpall":
|
||||
return config.useString("zarinpal");
|
||||
case "home":
|
||||
return config.useString("inpart");
|
||||
case "snappay":
|
||||
return config.useString("snappay");
|
||||
case "zibal":
|
||||
return config.useString("zibal");
|
||||
case "sepal":
|
||||
return config.useString("sepal");
|
||||
default:
|
||||
return "";
|
||||
}
|
||||
});
|
||||
const address = computed(() => {
|
||||
if (order.value) {
|
||||
const convert = order.value?.address?.payload;
|
||||
@@ -1869,19 +1887,33 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
||||
return usePrice(order.value?.total_price, true, "");
|
||||
});
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
const _component_a_divider = __nuxt_component_2;
|
||||
const _component_a_divider = __nuxt_component_1$1;
|
||||
const _component_a_steps = __nuxt_component_1;
|
||||
const _directive_lazy = resolveDirective("lazy");
|
||||
let _temp0, _temp1;
|
||||
_push(`<div${ssrRenderAttrs(mergeProps({ class: "pb-10vh" }, _attrs))}><div class="mx-3"><div class="flex items-center mb-5 mt-2 gap-3"><img${ssrRenderAttrs(_temp0 = mergeProps({
|
||||
alt: "instagram",
|
||||
class: "w-3rem aspect-square rounded-full"
|
||||
}, ssrGetDirectiveProps(_ctx, _directive_lazy, { src: unref(getSupabaseStorageUrl)(order.value?.store?.avatar ?? ""), loading: unref(empty_user), error: unref(empty_user) })))}>${"textContent" in _temp0 ? ssrInterpolate(_temp0.textContent) : _temp0.innerHTML ?? ""}<div class="h-full"><div class="font-bold">${ssrInterpolate(order.value?.store?.name ?? "")}</div><div class="text-sm text-gray-4">${ssrInterpolate(unref(config).useString("seller"))}</div></div></div></div><div class="mx-3 mt-10"><div class="flex items-center mb-5 mt-2 gap-3"><img${ssrRenderAttrs(_temp1 = mergeProps({
|
||||
alt: "instagram",
|
||||
class: "w-3rem aspect-square rounded-full"
|
||||
}, ssrGetDirectiveProps(_ctx, _directive_lazy, { src: unref(getSupabaseStorageUrl)(order.value?.user?.avatar ?? ""), loading: unref(empty_user), error: unref(empty_user) })))}>${"textContent" in _temp1 ? ssrInterpolate(_temp1.textContent) : _temp1.innerHTML ?? ""}<div class="h-full"><div class="font-bold">${ssrInterpolate(order.value?.user?.name ?? "")}</div><div class="text-sm text-gray-4">${ssrInterpolate(order.value?.user?.phone)}</div><div class="text-sm text-gray-4">${ssrInterpolate(unref(config).useString("customer"))}</div></div></div></div>`);
|
||||
_push(ssrRenderComponent(_component_a_divider, null, null, _parent));
|
||||
_push(`<div class="mx-3"><div class="font-semibold text-xl mb-5">${ssrInterpolate(unref(config).useString("orderSummery"))}</div>`);
|
||||
_push(`<div${ssrRenderAttrs(mergeProps({ class: "pb-10vh" }, _attrs))}>`);
|
||||
if (unref(config).APP_TYPE === "multi" || !unref(config).isSeller) {
|
||||
_push(`<div class="mx-3"><div class="flex items-center mb-5 mt-2 gap-3"><img${ssrRenderAttrs(_temp0 = mergeProps({
|
||||
alt: "instagram",
|
||||
class: "w-3rem aspect-square rounded-full"
|
||||
}, ssrGetDirectiveProps(_ctx, _directive_lazy, { src: unref(config).useDataStorage(order.value?.store?.avatar ?? ""), loading: unref(empty_user), error: unref(empty_user) })))}>${"textContent" in _temp0 ? ssrInterpolate(_temp0.textContent) : _temp0.innerHTML ?? ""}<div class="h-full"><div class="font-bold">${ssrInterpolate(order.value?.store?.name ?? "")}</div><div class="text-sm text-gray-4">${ssrInterpolate(unref(config).useString("seller"))}</div></div></div></div>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
if (unref(config).APP_TYPE === "multi" || unref(config).isSeller) {
|
||||
_push(`<div class="mx-3 mt-10"><div class="flex items-center mb-5 mt-2 gap-3"><img${ssrRenderAttrs(_temp1 = mergeProps({
|
||||
alt: "instagram",
|
||||
class: "w-3rem aspect-square rounded-full"
|
||||
}, ssrGetDirectiveProps(_ctx, _directive_lazy, { src: unref(config).useDataStorage(order.value?.user?.avatar ?? ""), loading: unref(empty_user), error: unref(empty_user) })))}>${"textContent" in _temp1 ? ssrInterpolate(_temp1.textContent) : _temp1.innerHTML ?? ""}<div class="h-full"><div class="font-bold">${ssrInterpolate(order.value?.user?.name ?? "")}</div><div class="text-sm text-gray-4">${ssrInterpolate(order.value?.user?.phone)}</div><div class="text-sm text-gray-4">${ssrInterpolate(unref(config).useString("customer"))}</div></div></div></div>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
if (unref(config).APP_TYPE === "multi") {
|
||||
_push(ssrRenderComponent(_component_a_divider, null, null, _parent));
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(`<div class="mx-3 mt-2"><div class="font-semibold text-xl mb-5">${ssrInterpolate(unref(config).useString("orderSummery"))}</div>`);
|
||||
if (!showMore.value) {
|
||||
_push(`<div><!--[-->`);
|
||||
ssrRenderList(order.value?.order_items?.slice(0, 3), (item, index) => {
|
||||
@@ -1955,7 +1987,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(`<div class="flex justify-between items-baseline mt-2"><div class="text-sm">${ssrInterpolate(unref(config).useString("profit"))}:</div><div class="flex gap-1 items-baseline"><div class="font-bold">${ssrInterpolate(unref(usePrice)(order.value?.total_discounts ?? 0, true, ""))}</div><div class="text-xs">${ssrInterpolate(unref(config).priceUnit)}</div></div></div></div><div class="flex flex-col items-center mt-5"><div>${ssrInterpolate(unref(config).useString("amountPaid"))}</div><div class="flex gap-1 items-baseline mt-2"><span class="font-bold text-xl">${ssrInterpolate(unref(usePrice)(order.value?.discount_total_price ?? 0, true, ""))}</span><span>${ssrInterpolate(unref(config).priceUnit)}</span></div></div></div>`);
|
||||
_push(`<div class="flex justify-between items-baseline mt-2"><div class="text-sm">${ssrInterpolate(unref(config).useString("profit"))}:</div><div class="flex gap-1 items-baseline"><div class="font-bold">${ssrInterpolate(unref(usePrice)(order.value?.total_discounts ?? 0, true, ""))}</div><div class="text-xs">${ssrInterpolate(unref(config).priceUnit)}</div></div></div><div class="flex justify-between items-baseline mt-2"><div class="text-sm">${ssrInterpolate(unref(config).useString("paymentType"))}:</div><div class="flex gap-1 items-baseline"><div class="font-bold">${ssrInterpolate(orderType.value)}</div></div></div></div><div class="flex flex-col items-center mt-5"><div>${ssrInterpolate(unref(config).useString("amountPaid"))}</div><div class="flex gap-1 items-baseline mt-2"><span class="font-bold text-xl">${ssrInterpolate(unref(usePrice)(order.value?.discount_total_price ?? 0, true, ""))}</span><span>${ssrInterpolate(unref(config).priceUnit)}</span></div></div></div>`);
|
||||
_push(ssrRenderComponent(_component_a_divider, null, null, _parent));
|
||||
_push(`<div class="mx-3"><div class="font-semibold text-xl mb-5">${ssrInterpolate(unref(config).useString("address"))}</div><div class="text-xs">${ssrInterpolate(address.value)}</div></div>`);
|
||||
_push(ssrRenderComponent(_component_a_divider, null, null, _parent));
|
||||
@@ -0,0 +1,93 @@
|
||||
import { defineComponent, useSSRContext } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { ssrRenderComponent } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/server-renderer/index.mjs';
|
||||
import { _ as _sfc_main$1 } from './index-bO_TrgvB.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@ant-design/icons-vue/lib/index.js';
|
||||
import './BasicIconOld-93vAWohq.mjs';
|
||||
import './_plugin-vue_export-helper-1tPrXgE0.mjs';
|
||||
import './server.mjs';
|
||||
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/lodash-es/lodash.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 '../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';
|
||||
import './empty_user-DSxcM_ac.mjs';
|
||||
import './inputRules-Cr4Uiro2.mjs';
|
||||
import './BasicInput-rlXkJMLE.mjs';
|
||||
import './usePrice-_QzChhgO.mjs';
|
||||
import './index-G65aBv4F.mjs';
|
||||
import './FormItemContext-BlKvWASA.mjs';
|
||||
import './index-BGahPE0Z.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/lodash-es/isPlainObject.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/resize-observer-polyfill/dist/ResizeObserver.js';
|
||||
import './index-Bn4rLj9V.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/dom-align/dist-node/index.js';
|
||||
import './BaseDatePicker-B4zD8-v-.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/moment-jalaali/index.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/dayjalali/dist/index.js';
|
||||
import './index-CAZlc_qy.mjs';
|
||||
import './useMergedState-BZEfJ8Fl.mjs';
|
||||
import './move-jlA6kUbh.mjs';
|
||||
import './shallowequal-BEyWmMEh.mjs';
|
||||
import './index-BHPit4CX.mjs';
|
||||
import './close_light-DbrEdRZI.mjs';
|
||||
import './FormItem-CMWnBuQX.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/lodash-es/cloneDeep.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/async-validator/dist-node/index.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/lodash-es/find.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/lodash-es/isEqual.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/compute-scroll-into-view/dist/index.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/lodash-es/intersection.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/lodash-es/debounce.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/lodash-es/omit.js';
|
||||
import './index-m5qbBl98.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@vueuse/gesture/dist/index.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@headlessui/vue/dist/headlessui.esm.js';
|
||||
import './index-BWBnVq-W.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/framesync/dist/es/index.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/popmotion/dist/es/index.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/style-value-types/dist/es/index.mjs';
|
||||
import './BasicButton-DhQvSD8U.mjs';
|
||||
import './index-BMAjr3Fm.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/throttle-debounce/esm/index.js';
|
||||
import './InstaInput-CLAxMFVK.mjs';
|
||||
|
||||
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/edit/[id].vue");
|
||||
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
||||
};
|
||||
|
||||
export { _sfc_main as default };
|
||||
+206
-258
@@ -1,84 +1,86 @@
|
||||
import { createVNode, defineComponent, ref, reactive, computed, withAsyncContext, resolveDirective, unref, mergeProps, withCtx, createBlock, openBlock, withDirectives, Fragment, renderList, watch, createTextVNode, toDisplayString, toRef, watchEffect, shallowRef, toRaw, provide, isRef, toRefs, nextTick, inject, cloneVNode, isVNode, useSSRContext } from 'vue';
|
||||
import { ssrRenderComponent, ssrRenderAttrs, ssrInterpolate, ssrGetDirectiveProps, ssrRenderAttr, ssrRenderList, ssrRenderClass } from 'vue/server-renderer';
|
||||
import { b1 as Icon, u as useRouter$1, a as useConfigStore, o as useCartStore, b as useUserStore, bo as getOneProduct, _ as __nuxt_component_0, x as getSupabaseStorageUrl, aJ as useProduct, T as initDefaultProps, G as useConfigInject, bp as useCompactItemContext, K as useInjectDisabled, H as genComponentStyleHook, a0 as getTransitionName, bq as getTransitionDirection, I as classNames, br as DefaultRenderEmpty, L as omit, J as merge, aA as CloseCircleFilled, b6 as LoadingOutlined, aj as CloseOutlined, bf as useState$1, C as functionType, D as stringType, E as booleanType, P as PropTypes, ay as someType, W as genCompactItemStyle, Z as isValidElement, a1 as cloneElement, M as resetComponent, bd as resetIcon, ar as textEllipsis, ae as flattenChildren, as as KeyCode, bs as pickAttrs } from './server.mjs';
|
||||
import { createVNode, defineComponent, ref, reactive, computed, withAsyncContext, resolveDirective, unref, mergeProps, withCtx, createBlock, openBlock, withDirectives, Fragment, renderList, watch, createTextVNode, toDisplayString, toRef, watchEffect, shallowRef, toRaw, provide, isRef, toRefs, nextTick, inject, cloneVNode, useSSRContext } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { ssrRenderComponent, ssrRenderAttrs, ssrInterpolate, ssrGetDirectiveProps, ssrRenderAttr, ssrRenderList, ssrRenderClass, ssrRenderStyle } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/server-renderer/index.mjs';
|
||||
import { b5 as Icon, u as useRouter$1, a as useConfigStore, o as useCartStore, b as useUserStore, bp as getOneProduct, _ as __nuxt_component_0, aM as useProduct, p as usePriceStore, O as initDefaultProps, C as useConfigInject, bq as useCompactItemContext, G as useInjectDisabled, D as genComponentStyleHook, X as getTransitionName, br as getTransitionDirection, E as classNames, bs as DefaultRenderEmpty, H as omit, F as merge, aD as CloseCircleFilled, ba as LoadingOutlined, af as CloseOutlined, bj as useState$1, y as functionType, z as stringType, A as booleanType, P as PropTypes, aB as someType, S as genCompactItemStyle, V as isValidElement, Y as cloneElement, I as resetComponent, bh as resetIcon, ap as textEllipsis, aa as flattenChildren, aq as KeyCode, bt as pickAttrs } from './server.mjs';
|
||||
import { _ as _imports_0, a as _imports_1 } from './cart-DMkYna66.mjs';
|
||||
import { B as BasicIconOld, u as usePrefix } from './BasicIconOld-93vAWohq.mjs';
|
||||
import { i as img_gif } from './post_loading-BiySI7bp.mjs';
|
||||
import { Swiper, SwiperSlide } from 'swiper/vue';
|
||||
import { Zoom, Navigation, Pagination } from 'swiper/modules';
|
||||
import { e as empty_user } from './empty_user-BaUNCdgf.mjs';
|
||||
import { cloneDeep, get } from 'lodash-es';
|
||||
import { u as usePrice } from './usePrice-B-5-jXKQ.mjs';
|
||||
import _objectSpread$1 from '@babel/runtime/helpers/esm/objectSpread2';
|
||||
import _extends from '@babel/runtime/helpers/esm/extends';
|
||||
import { _ as __nuxt_component_2$1, T as Trigger, w as wrapperRaf, s as supportsPassive } from './index-C9wXCwkF.mjs';
|
||||
import { R as ResizeObserver, B as BaseInput$1, S as SearchOutlined } from './index-B8JfwQ3c.mjs';
|
||||
import { O as Overflow } from './index-Depu8Jil.mjs';
|
||||
import { u as useMemo, i as initMoveMotion } from './move-C58xppXd.mjs';
|
||||
import { i as img_gif } from './post_loading-CMOcYm9B.mjs';
|
||||
import { Swiper, SwiperSlide } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/swiper/swiper-vue.mjs';
|
||||
import { Zoom, Navigation, Pagination } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/swiper/modules/index.mjs';
|
||||
import { e as empty_user } from './empty_user-DSxcM_ac.mjs';
|
||||
import { cloneDeep, get } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/lodash-es/lodash.js';
|
||||
import { u as usePrice } from './usePrice-_QzChhgO.mjs';
|
||||
import _objectSpread$1 from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@babel/runtime/helpers/esm/objectSpread2.js';
|
||||
import _extends from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@babel/runtime/helpers/esm/extends.js';
|
||||
import { _ as __nuxt_component_2, T as Trigger, w as wrapperRaf, s as supportsPassive } from './index-Bn4rLj9V.mjs';
|
||||
import { R as ResizeObserver, a as antInput, S as SearchOutlined } from './index-G65aBv4F.mjs';
|
||||
import { O as Overflow } from './index-D-yl9XJT.mjs';
|
||||
import { u as useMemo, i as initMoveMotion } from './move-jlA6kUbh.mjs';
|
||||
import { u as useMergedState } from './useMergedState-BZEfJ8Fl.mjs';
|
||||
import { C as CheckOutlined } from '../_/CheckOutlined.mjs';
|
||||
import { u as useInjectFormItemContext, F as FormItemInputContext } from './FormItemContext-eb0AodWH.mjs';
|
||||
import { g as getMergedStatus, a as getStatusClassNames } from './index-C8EZBqzI.mjs';
|
||||
import { i as initSlideMotion, a as slideDownOut, b as slideUpOut, c as slideDownIn, d as slideUpIn } from './shallowequal-BCwuz4ga.mjs';
|
||||
import { _ as __nuxt_component_1 } from './FormItem-2KfKSOCd.mjs';
|
||||
import { T as Tag } from './index-CzRefuj3.mjs';
|
||||
import { _ as __nuxt_component_2 } from './index-BOHfcXHM.mjs';
|
||||
import { _ as _sfc_main$7, a as _sfc_main$7$1, b as _sfc_main$5$1, e as _sfc_main$6$1, C as CommentAddEdit } from './moreOptionProduct-_dlSUx_a.mjs';
|
||||
import { _ as _sfc_main$8 } from './like-BhIOg3YL.mjs';
|
||||
import { u as useAsyncData } from './asyncData-DMpxHWuQ.mjs';
|
||||
import { B as Badge } from './index-DsmwGha0.mjs';
|
||||
import { u as useInjectFormItemContext, F as FormItemInputContext } from './FormItemContext-BlKvWASA.mjs';
|
||||
import { g as getMergedStatus, a as getStatusClassNames } from './index-BGahPE0Z.mjs';
|
||||
import { i as initSlideMotion, a as slideDownOut, b as slideUpOut, c as slideDownIn, d as slideUpIn } from './shallowequal-BEyWmMEh.mjs';
|
||||
import { B as BasicButton } from './BasicButton-DhQvSD8U.mjs';
|
||||
import { _ as __nuxt_component_1 } from './FormItem-CMWnBuQX.mjs';
|
||||
import { _ as __nuxt_component_1$1 } from './index-DNuZTxeo.mjs';
|
||||
import { _ as _sfc_main$7, a as _sfc_main$7$1, b as _sfc_main$5$1, e as _sfc_main$6$1, C as CommentAddEdit } from './moreOptionProduct-CCkPwsB0.mjs';
|
||||
import { _ as _sfc_main$8 } from './like-B155RLSm.mjs';
|
||||
import { u as useAsyncData } from './asyncData-Iix-4nDI.mjs';
|
||||
import { B as Badge } from './index-Dwnkcm_j.mjs';
|
||||
import { _ as _export_sfc } from './_plugin-vue_export-helper-1tPrXgE0.mjs';
|
||||
import '../_/nitro.mjs';
|
||||
import 'node:http';
|
||||
import 'node:https';
|
||||
import '../nitro/nitro.mjs';
|
||||
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 '@ant-design/colors';
|
||||
import '@ctrl/tinycolor';
|
||||
import 'stylis';
|
||||
import 'vue-types';
|
||||
import 'axios';
|
||||
import '@ant-design/icons-vue';
|
||||
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/@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 'vue-bundle-renderer/runtime';
|
||||
import 'unhead/server';
|
||||
import 'devalue';
|
||||
import 'unhead/utils';
|
||||
import 'dom-align';
|
||||
import 'lodash-es/isPlainObject.js';
|
||||
import 'resize-observer-polyfill';
|
||||
import 'lodash-es/uniq.js';
|
||||
import './collapseMotion-cQ2SGjCA.mjs';
|
||||
import 'lodash-es/cloneDeep.js';
|
||||
import 'async-validator';
|
||||
import 'lodash-es/find.js';
|
||||
import './index-6Q0zJ0BK.mjs';
|
||||
import '@vueuse/gesture';
|
||||
import '@headlessui/vue';
|
||||
import 'framesync';
|
||||
import 'popmotion';
|
||||
import 'style-value-types';
|
||||
import './UserProfilePic-BwsIUO56.mjs';
|
||||
import './BasicButton-QGDeiwgb.mjs';
|
||||
import './index-CRte5P_X.mjs';
|
||||
import 'throttle-debounce';
|
||||
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';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/dom-align/dist-node/index.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/lodash-es/isPlainObject.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/resize-observer-polyfill/dist/ResizeObserver.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/lodash-es/uniq.js';
|
||||
import './index-BMAjr3Fm.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/throttle-debounce/esm/index.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/lodash-es/cloneDeep.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/async-validator/dist-node/index.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/lodash-es/find.js';
|
||||
import './index-m5qbBl98.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@vueuse/gesture/dist/index.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@headlessui/vue/dist/headlessui.esm.js';
|
||||
import './index-BWBnVq-W.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/framesync/dist/es/index.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/popmotion/dist/es/index.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/style-value-types/dist/es/index.mjs';
|
||||
import './UserProfilePic-DaZ03Xcl.mjs';
|
||||
import './useDateTime-D8RCoGwW.mjs';
|
||||
import 'moment';
|
||||
import 'moment-timezone';
|
||||
import 'moment-jalaali';
|
||||
import 'date-fns';
|
||||
import 'date-fns/locale';
|
||||
import 'vue-content-loader';
|
||||
import './product-BPTplX4_.mjs';
|
||||
import './handle-DppcF3zW.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/moment/moment.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/moment-timezone/index.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/moment-jalaali/index.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/date-fns/index.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/date-fns/locale.js';
|
||||
import './index-BTMNH22J.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue-content-loader/dist/vue-content-loader.cjs.js';
|
||||
import './product-DgF2C5vR.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/perfect-debounce/dist/index.mjs';
|
||||
|
||||
// This icon file is generated automatically.
|
||||
var DownOutlined$1 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" } }] }, "name": "down", "theme": "outlined" };
|
||||
@@ -382,7 +384,7 @@ const TransBtn = (props2, _ref) => {
|
||||
if (typeof customizeIcon === "function") {
|
||||
icon = customizeIcon(customizeIconProps);
|
||||
} else {
|
||||
icon = isVNode(customizeIcon) ? cloneVNode(customizeIcon) : customizeIcon;
|
||||
icon = customizeIcon;
|
||||
}
|
||||
return createVNode("span", {
|
||||
"class": className,
|
||||
@@ -499,7 +501,7 @@ const Input = defineComponent({
|
||||
inputRef,
|
||||
attrs
|
||||
} = props2;
|
||||
let inputNode = inputElement || createVNode(BaseInput$1, null, null);
|
||||
let inputNode = inputElement || withDirectives(createVNode("input", null, null), [[antInput]]);
|
||||
const inputProps2 = inputNode.props || {};
|
||||
const {
|
||||
onKeydown: onOriginKeyDown,
|
||||
@@ -518,7 +520,6 @@ const Input = defineComponent({
|
||||
ref: inputRef,
|
||||
disabled,
|
||||
tabindex,
|
||||
lazy: false,
|
||||
autocomplete: autocomplete || "off",
|
||||
autofocus,
|
||||
class: classNames(`${prefixCls}-selection-search-input`, (_a = inputNode === null || inputNode === void 0 ? void 0 : inputNode.props) === null || _a === void 0 ? void 0 : _a.class),
|
||||
@@ -590,7 +591,7 @@ const Input = defineComponent({
|
||||
};
|
||||
}
|
||||
});
|
||||
const TreeSelectLegacyContextPropsKey = Symbol("TreeSelectLegacyContextPropsKey");
|
||||
const TreeSelectLegacyContextPropsKey = /* @__PURE__ */ Symbol("TreeSelectLegacyContextPropsKey");
|
||||
function useInjectLegacySelectContext() {
|
||||
return inject(TreeSelectLegacyContextPropsKey, {});
|
||||
}
|
||||
@@ -621,7 +622,6 @@ const props$1 = {
|
||||
autocomplete: String,
|
||||
activeDescendantId: String,
|
||||
tabindex: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
||||
compositionStatus: Boolean,
|
||||
removeIcon: PropTypes.any,
|
||||
choiceTransitionName: String,
|
||||
maxTagCount: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
||||
@@ -655,10 +655,6 @@ const SelectSelector = defineComponent({
|
||||
const selectionPrefixCls = computed(() => `${props2.prefixCls}-selection`);
|
||||
const inputValue = computed(() => props2.open || props2.mode === "tags" ? props2.searchValue : "");
|
||||
const inputEditable = computed(() => props2.mode === "tags" || props2.showSearch && (props2.open || focused.value));
|
||||
const targetValue = ref("");
|
||||
watchEffect(() => {
|
||||
targetValue.value = inputValue.value;
|
||||
});
|
||||
function defaultRenderSelector(title, content, itemDisabled, closable, onClose) {
|
||||
return createVNode("span", {
|
||||
"class": classNames(`${selectionPrefixCls.value}-item`, {
|
||||
@@ -729,13 +725,6 @@ const SelectSelector = defineComponent({
|
||||
const content = typeof maxTagPlaceholder === "function" ? maxTagPlaceholder(omittedValues) : maxTagPlaceholder;
|
||||
return defaultRenderSelector(content, content, false);
|
||||
}
|
||||
const handleInput = (e) => {
|
||||
const composing = e.target.composing;
|
||||
targetValue.value = e.target.value;
|
||||
if (!composing) {
|
||||
props2.onInputChange(e);
|
||||
}
|
||||
};
|
||||
return () => {
|
||||
const {
|
||||
id,
|
||||
@@ -749,7 +738,7 @@ const SelectSelector = defineComponent({
|
||||
autocomplete,
|
||||
activeDescendantId,
|
||||
tabindex,
|
||||
compositionStatus,
|
||||
onInputChange,
|
||||
onInputPaste,
|
||||
onInputKeyDown,
|
||||
onInputMouseDown,
|
||||
@@ -773,10 +762,10 @@ const SelectSelector = defineComponent({
|
||||
"autocomplete": autocomplete,
|
||||
"editable": inputEditable.value,
|
||||
"activeDescendantId": activeDescendantId,
|
||||
"value": targetValue.value,
|
||||
"value": inputValue.value,
|
||||
"onKeydown": onInputKeyDown,
|
||||
"onMousedown": onInputMouseDown,
|
||||
"onChange": handleInput,
|
||||
"onChange": onInputChange,
|
||||
"onPaste": onInputPaste,
|
||||
"onCompositionstart": onInputCompositionStart,
|
||||
"onCompositionend": onInputCompositionEnd,
|
||||
@@ -788,7 +777,7 @@ const SelectSelector = defineComponent({
|
||||
"ref": measureRef,
|
||||
"class": `${selectionPrefixCls.value}-search-mirror`,
|
||||
"aria-hidden": true
|
||||
}, [targetValue.value, createTextVNode(" ")])]);
|
||||
}, [inputValue.value, createTextVNode(" ")])]);
|
||||
const selectionNode = createVNode(Overflow, {
|
||||
"prefixCls": `${selectionPrefixCls.value}-overflow`,
|
||||
"data": values,
|
||||
@@ -799,7 +788,7 @@ const SelectSelector = defineComponent({
|
||||
"maxCount": props2.maxTagCount,
|
||||
"key": "overflow"
|
||||
}, null);
|
||||
return createVNode(Fragment, null, [selectionNode, !values.length && !inputValue.value && !compositionStatus && createVNode("span", {
|
||||
return createVNode(Fragment, null, [selectionNode, !values.length && !inputValue.value && createVNode("span", {
|
||||
"class": `${selectionPrefixCls.value}-placeholder`
|
||||
}, [placeholder])]);
|
||||
};
|
||||
@@ -817,10 +806,6 @@ const props = {
|
||||
searchValue: String,
|
||||
inputRef: PropTypes.any,
|
||||
placeholder: PropTypes.any,
|
||||
compositionStatus: {
|
||||
type: Boolean,
|
||||
default: void 0
|
||||
},
|
||||
disabled: {
|
||||
type: Boolean,
|
||||
default: void 0
|
||||
@@ -871,7 +856,7 @@ const SingleSelector = defineComponent({
|
||||
}, {
|
||||
immediate: true
|
||||
});
|
||||
const hasTextInput = computed(() => props2.mode !== "combobox" && !props2.open && !props2.showSearch ? false : !!inputValue.value || props2.compositionStatus);
|
||||
const hasTextInput = computed(() => props2.mode !== "combobox" && !props2.open && !props2.showSearch ? false : !!inputValue.value);
|
||||
const title = computed(() => {
|
||||
const item = props2.values[0];
|
||||
return item && (typeof item.label === "string" || typeof item.label === "number") ? item.label.toString() : void 0;
|
||||
@@ -888,13 +873,6 @@ const SingleSelector = defineComponent({
|
||||
"style": hiddenStyle
|
||||
}, [props2.placeholder]);
|
||||
};
|
||||
const handleInput = (e) => {
|
||||
const composing = e.target.composing;
|
||||
if (!composing) {
|
||||
inputChanged.value = true;
|
||||
props2.onInputChange(e);
|
||||
}
|
||||
};
|
||||
return () => {
|
||||
var _a, _b, _c, _d;
|
||||
const {
|
||||
@@ -912,6 +890,7 @@ const SingleSelector = defineComponent({
|
||||
optionLabelRender,
|
||||
onInputKeyDown,
|
||||
onInputMouseDown,
|
||||
onInputChange,
|
||||
onInputPaste,
|
||||
onInputCompositionStart,
|
||||
onInputCompositionEnd
|
||||
@@ -944,7 +923,10 @@ const SingleSelector = defineComponent({
|
||||
"value": inputValue.value,
|
||||
"onKeydown": onInputKeyDown,
|
||||
"onMousedown": onInputMouseDown,
|
||||
"onChange": handleInput,
|
||||
"onChange": (e) => {
|
||||
inputChanged.value = true;
|
||||
onInputChange(e);
|
||||
},
|
||||
"onPaste": onInputPaste,
|
||||
"onCompositionstart": onInputCompositionStart,
|
||||
"onCompositionend": onInputCompositionEnd,
|
||||
@@ -1083,7 +1065,7 @@ const Selector = defineComponent({
|
||||
expose
|
||||
} = _ref;
|
||||
const inputRef = createRef();
|
||||
const compositionStatus = ref(false);
|
||||
let compositionStatus = false;
|
||||
const [getInputMouseDown, setInputMouseDown] = useLock(0);
|
||||
const onInternalInputKeyDown = (event) => {
|
||||
const {
|
||||
@@ -1095,7 +1077,7 @@ const Selector = defineComponent({
|
||||
if (props2.onInputKeyDown) {
|
||||
props2.onInputKeyDown(event);
|
||||
}
|
||||
if (which === KeyCode.ENTER && props2.mode === "tags" && !compositionStatus.value && !props2.open) {
|
||||
if (which === KeyCode.ENTER && props2.mode === "tags" && !compositionStatus && !props2.open) {
|
||||
props2.onSearchSubmit(event.target.value);
|
||||
}
|
||||
if (isValidateOpenKey(which)) {
|
||||
@@ -1107,15 +1089,15 @@ const Selector = defineComponent({
|
||||
};
|
||||
let pastedText = null;
|
||||
const triggerOnSearch = (value) => {
|
||||
if (props2.onSearch(value, true, compositionStatus.value) !== false) {
|
||||
if (props2.onSearch(value, true, compositionStatus) !== false) {
|
||||
props2.onToggleOpen(true);
|
||||
}
|
||||
};
|
||||
const onInputCompositionStart = () => {
|
||||
compositionStatus.value = true;
|
||||
compositionStatus = true;
|
||||
};
|
||||
const onInputCompositionEnd = (e) => {
|
||||
compositionStatus.value = false;
|
||||
compositionStatus = false;
|
||||
if (props2.mode !== "combobox") {
|
||||
triggerOnSearch(e.target.value);
|
||||
}
|
||||
@@ -1187,7 +1169,6 @@ const Selector = defineComponent({
|
||||
onInputMouseDown: onInternalInputMouseDown,
|
||||
onInputChange,
|
||||
onInputPaste,
|
||||
compositionStatus: compositionStatus.value,
|
||||
onInputCompositionStart,
|
||||
onInputCompositionEnd
|
||||
};
|
||||
@@ -1219,7 +1200,7 @@ function useDelayReset() {
|
||||
};
|
||||
return [bool, delaySetBool, cancelLatest];
|
||||
}
|
||||
const BaseSelectContextKey = Symbol("BaseSelectContextKey");
|
||||
const BaseSelectContextKey = /* @__PURE__ */ Symbol("BaseSelectContextKey");
|
||||
function useProvideBaseSelectProps(props2) {
|
||||
return provide(BaseSelectContextKey, props2);
|
||||
}
|
||||
@@ -1489,13 +1470,6 @@ const BaseSelect = defineComponent({
|
||||
if (mergedOpen.value !== nextOpen && !props2.disabled) {
|
||||
setInnerOpen(nextOpen);
|
||||
props2.onDropdownVisibleChange && props2.onDropdownVisibleChange(nextOpen);
|
||||
if (!nextOpen && popupFocused.value) {
|
||||
popupFocused.value = false;
|
||||
setMockFocused(false, () => {
|
||||
focusRef.value = false;
|
||||
blurRef.value = false;
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
const tokenWithEnter = computed(() => (props2.tokenSeparators || []).some((tokenSeparator) => ["\n", "\r\n"].includes(tokenSeparator)));
|
||||
@@ -2213,9 +2187,9 @@ const ScrollBar = defineComponent({
|
||||
function useHeights(mergedData, getKey2, onItemAdd, onItemRemove) {
|
||||
const instance = /* @__PURE__ */ new Map();
|
||||
const heights = /* @__PURE__ */ new Map();
|
||||
const updatedMark = ref(Symbol("update"));
|
||||
const updatedMark = ref(/* @__PURE__ */ Symbol("update"));
|
||||
watch(mergedData, () => {
|
||||
updatedMark.value = Symbol("update");
|
||||
updatedMark.value = /* @__PURE__ */ Symbol("update");
|
||||
});
|
||||
let collectRaf = void 0;
|
||||
function cancelRaf() {
|
||||
@@ -2230,7 +2204,7 @@ function useHeights(mergedData, getKey2, onItemAdd, onItemRemove) {
|
||||
offsetHeight
|
||||
} = element;
|
||||
if (heights.get(key) !== offsetHeight) {
|
||||
updatedMark.value = Symbol("update");
|
||||
updatedMark.value = /* @__PURE__ */ Symbol("update");
|
||||
heights.set(key, element.offsetHeight);
|
||||
}
|
||||
}
|
||||
@@ -2788,7 +2762,7 @@ const List = defineComponent({
|
||||
function isPlatformMac() {
|
||||
return /(mac\sos|macintosh)/i.test((void 0).appVersion);
|
||||
}
|
||||
const SelectContextKey = Symbol("SelectContextKey");
|
||||
const SelectContextKey = /* @__PURE__ */ Symbol("SelectContextKey");
|
||||
function useProvideSelectProps(props2) {
|
||||
return provide(SelectContextKey, props2);
|
||||
}
|
||||
@@ -4758,7 +4732,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
||||
items: {},
|
||||
placeholder: {},
|
||||
allowClear: { type: Boolean, default: true },
|
||||
hasTooltip: { type: Boolean, default: true }
|
||||
hasTooltip: { type: Boolean, default: true },
|
||||
showSearch: { type: Boolean, default: true }
|
||||
},
|
||||
emits: ["update:value", "change", "update:valueText"],
|
||||
setup(__props, { emit: __emit }) {
|
||||
@@ -4797,7 +4772,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
const _component_a_select = Select;
|
||||
const _component_a_select_option = SelectOption;
|
||||
const _component_a_tooltip = __nuxt_component_2$1;
|
||||
const _component_a_tooltip = __nuxt_component_2;
|
||||
_push(`<div${ssrRenderAttrs(mergeProps({
|
||||
class: [unref(prefixCls)]
|
||||
}, _attrs))}><div>${ssrInterpolate(props2.title)}</div>`);
|
||||
@@ -4807,7 +4782,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
||||
value: localValue.value,
|
||||
"onUpdate:value": ($event) => localValue.value = $event,
|
||||
disabled: props2.disabled,
|
||||
"show-search": "",
|
||||
"show-search": __props.showSearch,
|
||||
mode: props2.mode,
|
||||
style: props2.style,
|
||||
multiple: props2.multiple,
|
||||
@@ -4928,8 +4903,10 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
||||
props: {
|
||||
inf: {}
|
||||
},
|
||||
setup(__props) {
|
||||
emits: ["variantSelected"],
|
||||
setup(__props, { emit: __emit }) {
|
||||
const props2 = __props;
|
||||
const emits = __emit;
|
||||
useRouter$1();
|
||||
const config = useConfigStore();
|
||||
const userStore = useUserStore();
|
||||
@@ -4937,28 +4914,22 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
||||
return useProduct(props2.inf, variantSelected.value);
|
||||
});
|
||||
useCartStore();
|
||||
const onlinePrices = usePriceStore();
|
||||
const tala18 = ref(onlinePrices.prices.find((x) => x?.id_key === "8-geram18")?.price);
|
||||
const silver = ref(onlinePrices.prices.find((x) => x?.id_key === "8-silver_999")?.price);
|
||||
const variantPrice = ref(0);
|
||||
const variantPriceWithDiscount = ref(0);
|
||||
const variantStock = ref(0);
|
||||
const variantSelected = ref(void 0);
|
||||
const variantAllSelected = ref(false);
|
||||
computed(() => {
|
||||
return (_product.value.priceWithDiscount.value && _product.value.price.value) <= 0 ? 0 : (100 - (_product.value.priceWithDiscount.value ?? 0) * 100 / (_product.value.price.value ?? 0)).toFixed(0);
|
||||
});
|
||||
computed(() => {
|
||||
return (variantPriceWithDiscount.value && variantPrice.value) <= 0 ? 0 : (100 - (variantPriceWithDiscount.value ?? 0) * 100 / (variantPrice.value ?? 0)).toFixed(0);
|
||||
});
|
||||
computed(() => {
|
||||
let available = false;
|
||||
if (props2.inf?.type === "variant") {
|
||||
if (variantStock.value > 0) {
|
||||
available = true;
|
||||
}
|
||||
} else {
|
||||
if (props2?.inf?.count > 0) {
|
||||
available = true;
|
||||
}
|
||||
}
|
||||
if (_product.value.isExist?.value)
|
||||
available = true;
|
||||
else if (props2.inf?.type === "variant" && variantStock.value > 0)
|
||||
available = true;
|
||||
else if ((props2?.inf?.count ?? 0) > 0)
|
||||
available = true;
|
||||
return available;
|
||||
});
|
||||
computed(() => {
|
||||
@@ -4977,10 +4948,14 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
||||
watch(variantsSelected, () => {
|
||||
handleChange();
|
||||
}, { deep: true });
|
||||
function handleReset() {
|
||||
variantsSelected.value[0].selected_variant = void 0;
|
||||
doNullValue(0);
|
||||
}
|
||||
function checkPrice() {
|
||||
let isFull = true;
|
||||
variantsSelected.value.every((x, index) => {
|
||||
if (variantsAttrsToShow.value[index].attribute_values_arr?.length != 0 && !x?.selected_variant) {
|
||||
if (variantsAttrsToShow.value[index]?.attribute_values_arr?.length != 0 && !x?.selected_variant) {
|
||||
isFull = false;
|
||||
return false;
|
||||
} else {
|
||||
@@ -4988,7 +4963,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
||||
}
|
||||
});
|
||||
if (isFull) {
|
||||
_product.value.variants.value?.forEach((x) => {
|
||||
_product.value.variants?.value?.forEach((x) => {
|
||||
let isEqual = true;
|
||||
x.variant_attribute_values?.forEach((y, index) => {
|
||||
if (!variantsSelected.value.some((val) => val.selected_variant == y.attribute_values.id)) {
|
||||
@@ -5000,6 +4975,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
||||
variantPriceWithDiscount.value = x.price_with_discount;
|
||||
variantStock.value = x.stock;
|
||||
variantSelected.value = x;
|
||||
emits("variantSelected", variantSelected.value);
|
||||
variantAllSelected.value = true;
|
||||
}
|
||||
});
|
||||
@@ -5008,6 +4984,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
||||
variantPriceWithDiscount.value = 0;
|
||||
variantStock.value = 0;
|
||||
variantSelected.value = void 0;
|
||||
emits("variantSelected", void 0);
|
||||
variantAllSelected.value = false;
|
||||
}
|
||||
}
|
||||
@@ -5017,7 +4994,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
||||
}
|
||||
function handleChange(val, index) {
|
||||
variantsAttrsToShowPrimary.value.push(variantsAttrsToShow.value);
|
||||
wholeVariantsArrayHasThisVal = cloneDeep(_product.value.variants.value);
|
||||
wholeVariantsArrayHasThisVal = cloneDeep(_product.value.variants?.value);
|
||||
variantsAttrsToShow.value.forEach((x) => {
|
||||
const itemSelected = variantsSelected.value.find((y) => y.attribute_id == x.attribute_id)?.selected_variant;
|
||||
if (itemSelected) {
|
||||
@@ -5048,19 +5025,29 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
const _component_ClientOnly = __nuxt_component_0;
|
||||
const _component_AFormItem = __nuxt_component_1;
|
||||
_push(`<div${ssrRenderAttrs(_attrs)}><div class="mx-4 mt-5"><div class="font-bold text-lg">${ssrInterpolate(_product.value.title)}</div><div class="flex justify-between items-center w-full gap-5 mt-3"><div class="flex gap-4"><div class="items-center gap-1 flex md:hidden"><div class="font-semibold text-xl">${ssrInterpolate(unref(usePrice)(_product.value.price.value ?? 0, true, ""))}</div><div>${ssrInterpolate(unref(config).priceUnit)}</div></div>`);
|
||||
if (_product.value.hasDiscount.value) {
|
||||
_push(`<div class="flex items-center gap-1"><div class="slanted-strike text-xs">${ssrInterpolate(unref(usePrice)(_product.value?.originalPrice.value ?? 0, true, ""))}</div><div class="mr-1 text-xs">${ssrInterpolate(unref(config).priceUnit)}</div><div class="mr-2 text-xs bg-primary text-white px-2 py-1px rounded">${ssrInterpolate(_product.value?.discountPercent?.value)}% </div></div>`);
|
||||
_push(`<div${ssrRenderAttrs(_attrs)}><div class="mx-4 mt-5"><div class="font-bold text-lg">${ssrInterpolate(_product.value.title)}</div><div class="flex justify-between items-center w-full gap-5 mt-3"><div class="flex gap-4"><div class="items-center gap-1 flex md:hidden"><div class="font-semibold text-xl">${ssrInterpolate(unref(usePrice)(_product.value.price?.value ?? 0, true, ""))}</div><div>${ssrInterpolate(unref(config).priceUnit)}</div></div>`);
|
||||
if (_product.value.hasDiscount?.value) {
|
||||
_push(`<div class="flex items-center gap-1"><div class="slanted-strike text-xs">${ssrInterpolate(unref(usePrice)(_product.value?.originalPrice?.value ?? 0, true, ""))}</div><div class="mr-1 text-xs">${ssrInterpolate(unref(config).priceUnit)}</div><div class="mr-2 text-xs bg-primary text-white px-2 py-1px rounded">${ssrInterpolate(_product.value?.discountPercent?.value)}% </div></div>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(`</div></div>`);
|
||||
if ((__props.inf.collection_id === 1 || __props.inf.collections?.parent_id === 1) && unref(config).APP_HAS_GOLD) {
|
||||
_push(`<div class="flex gap-2 items-baseline mt-2"><div class="text-sm">${ssrInterpolate(unref(config).useString("goldGramPrice"))}:</div><div class="flex gap-1 items-baseline"><div class="font-bold">${ssrInterpolate(unref(usePrice)(tala18.value ?? 0, true, ""))}</div><div class="text-xs">${ssrInterpolate(unref(config).priceUnit)}</div></div></div>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
if ((__props.inf.collection_id === 2 || __props.inf.collections?.parent_id === 2) && unref(config).APP_HAS_SILVER) {
|
||||
_push(`<div class="flex gap-2 items-baseline mt-2"><div class="text-sm">${ssrInterpolate(unref(config).useString("silverGramPrice"))}:</div><div class="flex gap-1 items-baseline"><div class="font-bold">${ssrInterpolate(unref(usePrice)(silver.value ?? 0, true, ""))}</div><div class="text-xs">${ssrInterpolate(unref(config).priceUnit)}</div></div></div>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(ssrRenderComponent(_component_ClientOnly, null, {}, _parent));
|
||||
if (_ctx.inf?.type === "variant" && variantsAttrsToShow.value.length > 0 && _ctx.inf.owner_id !== unref(userStore).user?.id && (unref(config).APP_TYPE === "single" && !unref(config).isSeller || unref(config).APP_TYPE === "multi")) {
|
||||
if (__props.inf?.type === "variant" && variantsAttrsToShow.value.length > 0 && __props.inf.owner_id !== unref(userStore).user?.id && (unref(config).APP_TYPE === "single" && !unref(config).isSeller || unref(config).APP_TYPE === "multi")) {
|
||||
_push(`<div class="w-full mt5"><!--[-->`);
|
||||
ssrRenderList(variantsAttrsToShow.value, (val, index) => {
|
||||
_push(`<div class="w-full">`);
|
||||
if (val.attribute_values_arr.length != 0 && (index == 0 ? true : variantsSelected.value[index - 1].selected_variant)) {
|
||||
if (val.attribute_values_arr?.length != 0 && (index == 0 ? true : !!variantsSelected.value[index - 1]?.selected_variant)) {
|
||||
_push(`<div class="flex py-1">`);
|
||||
_push(ssrRenderComponent(_component_AFormItem, {
|
||||
label: val.attribute?.name,
|
||||
@@ -5099,7 +5086,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
||||
}),
|
||||
_: 2
|
||||
}, _parent));
|
||||
_push(`<div class="relative flex-self-end mb10px"><div class="${ssrRenderClass([variantsSelected.value[index].selected_variant ? "cursor-pointer border-red" : "cursor-not-allowed border-gray-3", "border-2px border-solid border-1 rounded-e-lg p-2px bg-gray-50"])}">`);
|
||||
_push(`<div class="relative flex-self-end mb10px"><div class="${ssrRenderClass([variantsSelected.value[index]?.selected_variant ? "cursor-pointer border-red" : "cursor-not-allowed border-gray-3", "border-2px border-solid border-1 rounded-e-lg p-2px bg-gray-50"])}">`);
|
||||
_push(ssrRenderComponent(BasicIconOld, {
|
||||
icon: "vuesax-linear:add",
|
||||
color: variantsSelected.value[index]?.selected_variant ? "red" : "gray",
|
||||
@@ -5115,11 +5102,27 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
||||
}
|
||||
_push(`</div>`);
|
||||
});
|
||||
_push(`<!--]--></div>`);
|
||||
_push(`<!--]-->`);
|
||||
_push(ssrRenderComponent(BasicButton, {
|
||||
block: "",
|
||||
onClick: handleReset
|
||||
}, {
|
||||
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
||||
if (_push2) {
|
||||
_push2(`${ssrInterpolate(unref(config).useString("reset"))}`);
|
||||
} else {
|
||||
return [
|
||||
createTextVNode(toDisplayString(unref(config).useString("reset")), 1)
|
||||
];
|
||||
}
|
||||
}),
|
||||
_: 1
|
||||
}, _parent));
|
||||
_push(`</div>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
if (_ctx.inf.owner_id !== unref(userStore).user?.id) {
|
||||
if (__props.inf.owner_id !== unref(userStore).user?.id) {
|
||||
_push(`<div class="text-gray-6 mt-3 text-xs text-center px-1">${ssrInterpolate(unref(config).useString("addToCartWillPlaceYourOrderIntoCartAndYouCanCompleteOrderInCartMenu"))}</div>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
@@ -5138,94 +5141,43 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
||||
__name: "ProductDetail",
|
||||
__ssrInlineRender: true,
|
||||
props: {
|
||||
attrs: {},
|
||||
description: {},
|
||||
category: {},
|
||||
brand: {},
|
||||
weight: {},
|
||||
fee: {}
|
||||
variantSelected: {},
|
||||
inf: {}
|
||||
},
|
||||
setup(__props) {
|
||||
const props2 = __props;
|
||||
const config = useConfigStore();
|
||||
const permissionGoldSilver = computed(() => (props2.inf.collections?.id === 1 || props2.inf.collections?.parent_id === 1) && config.APP_HAS_GOLD || (props2.inf.collections?.id === 2 || props2.inf.collections?.parent_id === 2) && config.APP_HAS_SILVER);
|
||||
const _product = computed(() => {
|
||||
return useProduct(props2.inf, props2.variantSelected);
|
||||
});
|
||||
const filteredParams = computed(() => {
|
||||
return props2.attrs?.filter((x) => x.use_in_product_page) || [];
|
||||
return props2.inf.product_attributes?.filter((x) => x.use_in_product_page) || [];
|
||||
});
|
||||
const showAll = ref(false);
|
||||
const visibleParams = computed(() => {
|
||||
computed(() => {
|
||||
return showAll.value ? filteredParams.value : filteredParams.value.slice(0, 1);
|
||||
});
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
const _component_ATag = Tag;
|
||||
const _component_ClientOnly = __nuxt_component_0;
|
||||
const _component_a_divider = __nuxt_component_2;
|
||||
if (filteredParams.value?.length > 0 || _ctx.description || _ctx.weight || _ctx.fee) {
|
||||
_push(`<div${ssrRenderAttrs(mergeProps({ class: "rounded-xl md:overflow-y-auto mt-5 md:mt-0 md:flex-1 max-h-30rem md:max-h-unset mx-4" }, _attrs))}><div class="font-bold text-lg">${ssrInterpolate(unref(config).useString("aboutProduct"))}</div>`);
|
||||
if (filteredParams.value?.length > 0 || _ctx.weight || _ctx.fee || _ctx.category) {
|
||||
_push(`<!--[-->`);
|
||||
if (_ctx.category?.title) {
|
||||
_push(`<div class="flex mt-3 items-center gap-2"><div class="bg-emerald-950 w-2 h-2 rounded-full"></div><div class="flex gap-3 items-center md:text-base text-sm"><div class="text-gray-400 font-semibold text-xs">${ssrInterpolate(unref(config).useString("category"))}:</div><div class="flex mr-2 justify-center items-center gap-1 text-xs">${ssrInterpolate(_ctx.category?.title)}</div></div></div>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
if (_ctx.brand?.title) {
|
||||
_push(`<div class="flex mt-3 items-center gap-2"><div class="bg-emerald-950 w-2 h-2 rounded-full"></div><div class="flex gap-3 items-center md:text-base text-sm"><div class="text-gray-400 font-semibold text-xs">${ssrInterpolate(unref(config).useString("brands"))}:</div><div class="flex mr-2 justify-center items-center gap-1 text-xs">${ssrInterpolate(_ctx.brand?.title)}</div></div></div>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
if (_ctx.category?.id === 1 || _ctx.category?.id === 2) {
|
||||
_push(`<div class="flex mt-3 items-center gap-2"><div class="bg-emerald-950 w-2 h-2 rounded-full"></div><div class="flex gap-3 items-center md:text-base text-sm"><div class="text-gray-400 font-semibold text-xs">${ssrInterpolate(unref(config).useString("weight"))}:</div><div class="flex mr-2 justify-center items-center gap-1 text-xs">${ssrInterpolate(_ctx.weight)} ${ssrInterpolate(unref(config).useString("gram"))}</div></div></div>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
if (_ctx.category?.id === 1 || _ctx.category?.id === 2) {
|
||||
_push(`<div class="flex mt-3 items-center gap-2"><div class="bg-emerald-950 w-2 h-2 rounded-full"></div><div class="flex gap-3 items-center md:text-base text-sm"><div class="text-gray-400 font-semibold text-xs">${ssrInterpolate(unref(config).useString("percentFee"))}:</div><div class="flex mr-2 justify-center items-center gap-1 text-xs">${ssrInterpolate(_ctx.fee)} % </div></div></div>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(`<!--[-->`);
|
||||
ssrRenderList(visibleParams.value, (item, index) => {
|
||||
_push(`<div class="flex mt-3 items-center gap-2"><div class="bg-emerald-950 w-2 h-2 rounded-full"></div><div class="flex gap-3 items-center md:text-base text-sm"><div class="text-gray-400 font-semibold text-xs">${ssrInterpolate(item.attributes?.name)}:</div><div class="flex mr-2 justify-center items-center gap-1 text-xs"><!--[-->`);
|
||||
ssrRenderList(item?.attribute_values_arr, (val, i) => {
|
||||
_push(ssrRenderComponent(_component_ATag, {
|
||||
key: i,
|
||||
class: "text-gray-400 p2px"
|
||||
}, {
|
||||
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
||||
if (_push2) {
|
||||
_push2(`${ssrInterpolate(val.value)}`);
|
||||
} else {
|
||||
return [
|
||||
createTextVNode(toDisplayString(val.value), 1)
|
||||
];
|
||||
}
|
||||
}),
|
||||
_: 2
|
||||
}, _parent));
|
||||
});
|
||||
_push(`<!--]--></div></div></div>`);
|
||||
});
|
||||
_push(`<!--]-->`);
|
||||
_push(ssrRenderComponent(_component_ClientOnly, null, {}, _parent));
|
||||
_push(`<!--]-->`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
if (_ctx.description) {
|
||||
_push(`<!--[-->`);
|
||||
if (filteredParams.value?.length > 0) {
|
||||
_push(ssrRenderComponent(_component_a_divider, null, null, _parent));
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(`<div class="mt-2 text-justify text-caption whitespace-pre-line">${ssrInterpolate(_ctx.description)}</div><!--]-->`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(`</div>`);
|
||||
const _component_a_divider = __nuxt_component_1$1;
|
||||
_push(`<div${ssrRenderAttrs(mergeProps({ class: "rounded-xl md:overflow-y-auto mt-5 md:mt-0 md:flex-1 max-h-30rem md:max-h-unset mx-4" }, _attrs, {
|
||||
style: filteredParams.value?.length > 0 || __props.inf?.description || _product.value.weight || __props.inf.percent_fee ? null : { display: "none" }
|
||||
}))}><div class="font-bold text-lg">${ssrInterpolate(unref(config).useString("aboutProduct"))}</div><div style="${ssrRenderStyle(filteredParams.value?.length > 0 || _product.value.weight || __props.inf.percent_fee || __props.inf?.collections ? null : { display: "none" })}"><div class="flex mt-3 items-center gap-2" style="${ssrRenderStyle(__props.inf?.collections?.title ? null : { display: "none" })}"><div class="bg-emerald-950 w-2 h-2 rounded-full"></div><div class="flex gap-3 items-center md:text-base text-sm"><div class="text-gray-400 font-semibold text-xs">${ssrInterpolate(unref(config).useString("category"))}:</div><div class="flex mr-2 justify-center items-center gap-1 text-xs">${ssrInterpolate(__props.inf?.collections?.title)}</div></div></div><div class="flex mt-3 items-center gap-2" style="${ssrRenderStyle(__props.inf.brands?.title ? null : { display: "none" })}"><div class="bg-emerald-950 w-2 h-2 rounded-full"></div><div class="flex gap-3 items-center md:text-base text-sm"><div class="text-gray-400 font-semibold text-xs">${ssrInterpolate(unref(config).useString("brands"))}:</div><div class="flex mr-2 justify-center items-center gap-1 text-xs">${ssrInterpolate(__props.inf.brands?.title)}</div></div></div>`);
|
||||
if (permissionGoldSilver.value) {
|
||||
_push(`<div class="flex mt-3 items-center gap-2"><div class="bg-emerald-950 w-2 h-2 rounded-full"></div><div class="flex gap-3 items-center md:text-base text-sm"><div class="text-gray-400 font-semibold text-xs">${ssrInterpolate(unref(config).useString("weight"))}:</div><div class="flex mr-2 justify-center items-center gap-1 text-xs">${ssrInterpolate(_product.value.weight)} ${ssrInterpolate(unref(config).useString("gram"))}</div></div></div>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(`<div class="flex mt-3 items-center gap-2" style="${ssrRenderStyle(permissionGoldSilver.value ? null : { display: "none" })}"><div class="bg-emerald-950 w-2 h-2 rounded-full"></div><div class="flex gap-3 items-center md:text-base text-sm"><div class="text-gray-400 font-semibold text-xs">${ssrInterpolate(unref(config).useString("percentFee"))}:</div><div class="flex mr-2 justify-center items-center gap-1 text-xs">${ssrInterpolate(__props.inf?.percent_fee)} % </div></div></div>`);
|
||||
_push(ssrRenderComponent(_component_ClientOnly, null, {}, _parent));
|
||||
_push(`</div><div style="${ssrRenderStyle(__props.inf.description ? null : { display: "none" })}">`);
|
||||
if (filteredParams.value?.length > 0) {
|
||||
_push(ssrRenderComponent(_component_a_divider, null, null, _parent));
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(`<div class="mt-2 text-caption whitespace-pre-line w-60vw w-full md:text-sm">${ssrInterpolate(__props.inf.description)}</div></div></div>`);
|
||||
};
|
||||
}
|
||||
});
|
||||
@@ -5249,7 +5201,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
||||
_push(`<div${ssrRenderAttrs(mergeProps({ class: "mx-4 mt-5" }, _attrs))}><div class="font-bold text-lg">${ssrInterpolate(unref(config).useString("aboutSeller"))}</div><div class="mt-3 flex"><img${ssrRenderAttrs(_temp0 = mergeProps({
|
||||
class: "w-4rem h-4rem rounded-full border-1 border-solid border-gray",
|
||||
alt: "instagram"
|
||||
}, ssrGetDirectiveProps(_ctx, _directive_lazy, { src: unref(getSupabaseStorageUrl)(_ctx.seller?.avatar), loading: unref(empty_user), error: unref(empty_user) })))}>${"textContent" in _temp0 ? ssrInterpolate(_temp0.textContent) : _temp0.innerHTML ?? ""}<div class="ms-5 w-full"><div class="text-sm font-bold">${ssrInterpolate(_ctx.seller?.name)}</div><div class="text-gray-6 truncate text-xs w-7/8 mt-1">${ssrInterpolate(_ctx.seller?.bio)}</div><div class="text-xs text-gray-6 font-bold mt-1">${ssrInterpolate(unref(config).useString("followedByNUsers", _ctx.seller?.stats?.total_customer))}</div></div></div></div>`);
|
||||
}, ssrGetDirectiveProps(_ctx, _directive_lazy, { src: unref(config).useDataStorage(__props.seller?.avatar), loading: unref(empty_user), error: unref(empty_user) })))}>${"textContent" in _temp0 ? ssrInterpolate(_temp0.textContent) : _temp0.innerHTML ?? ""}<div class="ms-5 w-68vw md:w-18rem"><div class="text-sm font-bold w-[50%]">${ssrInterpolate(__props.seller?.name)}</div><div class="text-gray-6 truncate text-xs w-7/8 mt-1">${ssrInterpolate(__props.seller?.bio)}</div><div class="text-xs text-gray-6 font-bold mt-1 w-[50%]">${ssrInterpolate(unref(config).useString("followedByNUsers", __props.seller?.stats?.total_customer))}</div></div></div></div>`);
|
||||
};
|
||||
}
|
||||
});
|
||||
@@ -5289,7 +5241,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
_push(`<div${ssrRenderAttrs(mergeProps({ class: "flex gap-4 items-center justify-between" }, _attrs))}><div class="flex items-center gap-4"><div class="flex items-center gap-1"${ssrRenderAttr("aria-disabled", addFunctionLoading.value)}>`);
|
||||
_push(ssrRenderComponent(_sfc_main$8, {
|
||||
"is-liked": unref(post).likes?.some((x) => x.user_id === unref(user).user?.id)
|
||||
"is-liked": unref(post)?.likes?.some((x) => x.user_id === unref(user).user?.id)
|
||||
}, null, _parent));
|
||||
_push(` ${ssrInterpolate(unref(post)?.likes?.length ?? 0)}</div><div class="flex items-center gap-1">`);
|
||||
_push(ssrRenderComponent(_sfc_main$7$1, null, null, _parent));
|
||||
@@ -5297,7 +5249,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
||||
_push(ssrRenderComponent(_sfc_main$5$1, null, null, _parent));
|
||||
_push(`</div></div><div>`);
|
||||
_push(ssrRenderComponent(_sfc_main$6$1, {
|
||||
"is-saved": unref(post).saved?.some((x) => x.user_id === unref(user).user?.id)
|
||||
"is-saved": unref(post)?.saved?.some((x) => x.user_id === unref(user).user?.id)
|
||||
}, null, _parent));
|
||||
_push(`</div>`);
|
||||
_push(ssrRenderComponent(CommentAddEdit, {
|
||||
@@ -5322,6 +5274,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
||||
async setup(__props) {
|
||||
let __temp, __restore;
|
||||
const router = useRouter$1();
|
||||
const variantSelected = ref(void 0);
|
||||
const stateNextButton = ref(true);
|
||||
const statePreButton = ref(false);
|
||||
ref(false);
|
||||
@@ -5349,19 +5302,19 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
||||
const _component_a_badge = Badge;
|
||||
const _directive_lazy = resolveDirective("lazy");
|
||||
let _temp0, _temp1;
|
||||
_push(`<div${ssrRenderAttrs(_attrs)} data-v-0f0e7296><div class="absolute top-0 w-inherit right-0 left-0" data-v-0f0e7296><div class="flex justify-between items-center w-full p4" data-v-0f0e7296><div class="flex items-center gap-2" data-v-0f0e7296>`);
|
||||
_push(`<div${ssrRenderAttrs(_attrs)} data-v-db9b0834><div class="absolute top-0 w-inherit right-0 left-0" data-v-db9b0834><div class="flex justify-between items-center w-full p4" data-v-db9b0834><div class="flex items-center gap-2" data-v-db9b0834>`);
|
||||
_push(ssrRenderComponent(_component_ClientOnly, null, {}, _parent));
|
||||
if (unref(data)) {
|
||||
_push(`<div class="font-semibold flex items-center gap-3" data-v-0f0e7296><img${ssrRenderAttrs(_temp0 = mergeProps({
|
||||
_push(`<div class="font-semibold flex items-center gap-3" data-v-db9b0834><img${ssrRenderAttrs(_temp0 = mergeProps({
|
||||
alt: "instagram",
|
||||
class: "rounded-full w-2rem h-2rem"
|
||||
}, ssrGetDirectiveProps(_ctx, _directive_lazy, { src: unref(getSupabaseStorageUrl)(unref(data)?.users?.avatar), loading: unref(empty_user), error: unref(empty_user) })))} data-v-0f0e7296>${"textContent" in _temp0 ? ssrInterpolate(_temp0.textContent) : _temp0.innerHTML ?? ""} ${ssrInterpolate(unref(data)?.users?.name)}</div>`);
|
||||
}, ssrGetDirectiveProps(_ctx, _directive_lazy, { src: unref(config).useDataStorage(unref(data)?.users?.avatar), loading: unref(empty_user), error: unref(empty_user) })))} data-v-db9b0834>${"textContent" in _temp0 ? ssrInterpolate(_temp0.textContent) : _temp0.innerHTML ?? ""} ${ssrInterpolate(unref(data)?.users?.username)}</div>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(`</div>`);
|
||||
if (unref(data)) {
|
||||
_push(`<div class="flex items-center gap-8px" data-v-0f0e7296>`);
|
||||
_push(`<div class="flex items-center gap-8px" data-v-db9b0834>`);
|
||||
if (unref(config).isSeller && unref(config).APP_TYPE === "multi") {
|
||||
_push(ssrRenderComponent(_component_a_badge, {
|
||||
count: unref(cartStore).count,
|
||||
@@ -5369,11 +5322,11 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
||||
}, {
|
||||
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
||||
if (_push2) {
|
||||
_push2(`<div data-v-0f0e7296${_scopeId}>`);
|
||||
_push2(`<div data-v-db9b0834${_scopeId}>`);
|
||||
if (unref(config).isNightStore) {
|
||||
_push2(`<img${ssrRenderAttr("src", _imports_0)} class="w-1.8rem -mt1" alt="" data-v-0f0e7296${_scopeId}>`);
|
||||
_push2(`<img${ssrRenderAttr("src", _imports_0)} class="w-1.8rem -mt1" alt="" data-v-db9b0834${_scopeId}>`);
|
||||
} else {
|
||||
_push2(`<img${ssrRenderAttr("src", _imports_1)}${ssrRenderAttr("alt", unref(config).appName.en)} class="w-1.8rem -mt1" data-v-0f0e7296${_scopeId}>`);
|
||||
_push2(`<img${ssrRenderAttr("src", _imports_1)}${ssrRenderAttr("alt", unref(config).appName.en)} class="w-1.8rem -mt1" data-v-db9b0834${_scopeId}>`);
|
||||
}
|
||||
_push2(`</div>`);
|
||||
} else {
|
||||
@@ -5415,7 +5368,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(`</div><div class="h-90vh overflow-y-auto pb-10vh" data-v-0f0e7296>`);
|
||||
_push(`</div><div class="h-90vh overflow-y-auto pb-10vh" data-v-db9b0834>`);
|
||||
if (images.value) {
|
||||
_push(ssrRenderComponent(unref(Swiper), {
|
||||
class: "!flex !flex-row !gab-15 md:mt-2",
|
||||
@@ -5449,14 +5402,14 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
||||
_push2(ssrRenderComponent(unref(SwiperSlide), null, {
|
||||
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
||||
if (_push3) {
|
||||
_push3(`<div class="swiper-zoom-container" data-v-0f0e7296${_scopeId2}>`);
|
||||
_push3(`<div class="swiper-zoom-container" data-v-db9b0834${_scopeId2}>`);
|
||||
if (item.type === "video") {
|
||||
_push3(`<div class="video-container" data-v-0f0e7296${_scopeId2}><video${ssrRenderAttr("src", unref(getSupabaseStorageUrl)(item.url))} playsinline muted loop class="video" data-v-0f0e7296${_scopeId2}></video></div>`);
|
||||
_push3(`<div class="video-container" data-v-db9b0834${_scopeId2}><video${ssrRenderAttr("src", unref(config).useDataStorage(item.url))} playsinline muted loop class="video" data-v-db9b0834${_scopeId2}></video></div>`);
|
||||
} else {
|
||||
_push3(`<div class="w-full aspect-square flex items-center" data-v-0f0e7296${_scopeId2}><img${ssrRenderAttrs(_temp1 = mergeProps({
|
||||
_push3(`<div class="w-full aspect-square flex items-center" data-v-db9b0834${_scopeId2}><img${ssrRenderAttrs(_temp1 = mergeProps({
|
||||
alt: unref(config).appName.en,
|
||||
class: "w-full h-full object-contain"
|
||||
}, ssrGetDirectiveProps(_ctx, _directive_lazy, { src: unref(getSupabaseStorageUrl)(item.url), loading: unref(img_gif), error: unref(img_gif) })))} data-v-0f0e7296${_scopeId2}>${"textContent" in _temp1 ? ssrInterpolate(_temp1.textContent) : _temp1.innerHTML ?? ""}</div>`);
|
||||
}, ssrGetDirectiveProps(_ctx, _directive_lazy, { src: unref(config).useDataStorage(item.url), loading: unref(img_gif), error: unref(img_gif) })))} data-v-db9b0834${_scopeId2}>${"textContent" in _temp1 ? ssrInterpolate(_temp1.textContent) : _temp1.innerHTML ?? ""}</div>`);
|
||||
}
|
||||
_push3(`</div>`);
|
||||
} else {
|
||||
@@ -5469,7 +5422,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
||||
createVNode("video", {
|
||||
ref_for: true,
|
||||
ref: "videos",
|
||||
src: unref(getSupabaseStorageUrl)(item.url),
|
||||
src: unref(config).useDataStorage(item.url),
|
||||
playsinline: "",
|
||||
muted: "",
|
||||
loop: "",
|
||||
@@ -5483,7 +5436,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
||||
alt: unref(config).appName.en,
|
||||
class: "w-full h-full object-contain"
|
||||
}, null, 8, ["alt"]), [
|
||||
[_directive_lazy, { src: unref(getSupabaseStorageUrl)(item.url), loading: unref(img_gif), error: unref(img_gif) }]
|
||||
[_directive_lazy, { src: unref(config).useDataStorage(item.url), loading: unref(img_gif), error: unref(img_gif) }]
|
||||
])
|
||||
]))
|
||||
])
|
||||
@@ -5507,7 +5460,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
||||
createVNode("video", {
|
||||
ref_for: true,
|
||||
ref: "videos",
|
||||
src: unref(getSupabaseStorageUrl)(item.url),
|
||||
src: unref(config).useDataStorage(item.url),
|
||||
playsinline: "",
|
||||
muted: "",
|
||||
loop: "",
|
||||
@@ -5521,7 +5474,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
||||
alt: unref(config).appName.en,
|
||||
class: "w-full h-full object-contain"
|
||||
}, null, 8, ["alt"]), [
|
||||
[_directive_lazy, { src: unref(getSupabaseStorageUrl)(item.url), loading: unref(img_gif), error: unref(img_gif) }]
|
||||
[_directive_lazy, { src: unref(config).useDataStorage(item.url), loading: unref(img_gif), error: unref(img_gif) }]
|
||||
])
|
||||
]))
|
||||
])
|
||||
@@ -5537,27 +5490,22 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(`<div class="custom-pagination relative py-2 -mt-6 z-1000" data-v-0f0e7296></div>`);
|
||||
_push(`<div class="custom-pagination relative py-2 -mt-6 z-1000" data-v-db9b0834></div>`);
|
||||
_push(ssrRenderComponent(_sfc_main$2, {
|
||||
product: unref(data),
|
||||
class: "px-4"
|
||||
class: "px-4 mt-3"
|
||||
}, null, _parent));
|
||||
_push(ssrRenderComponent(_sfc_main$5, { inf: unref(data) }, null, _parent));
|
||||
_push(`<div class="${ssrRenderClass([unref(config).isNightStore ? "bg-zinc-9" : "bg-gray-100", "h-2 mt-5 w-full bg-gray-100"])}" data-v-0f0e7296></div>`);
|
||||
_push(ssrRenderComponent(_sfc_main$5, {
|
||||
inf: unref(data),
|
||||
onVariantSelected: (v) => variantSelected.value = v
|
||||
}, null, _parent));
|
||||
_push(`<div class="${ssrRenderClass([unref(config).isNightStore ? "bg-zinc-9" : "bg-gray-100", "h-2 mt-5 w-full bg-gray-100"])}" data-v-db9b0834></div>`);
|
||||
_push(ssrRenderComponent(_sfc_main$4, {
|
||||
class: "md:w-full",
|
||||
brand: unref(data)?.brands,
|
||||
category: unref(data)?.collections,
|
||||
attrs: unref(data)?.product_attributes,
|
||||
description: unref(data)?.description,
|
||||
weight: unref(data)?.weight,
|
||||
fee: unref(data)?.percent_fee
|
||||
inf: unref(data),
|
||||
"variant-selected": variantSelected.value
|
||||
}, null, _parent));
|
||||
if (unref(data)?.product_attributes?.filter((x) => x.use_in_product_page) || unref(data)?.description) {
|
||||
_push(`<div class="${ssrRenderClass([unref(config).isNightStore ? "bg-zinc-9" : "bg-gray-100", "h-2 mt-5 w-full bg-gray-100"])}" data-v-0f0e7296></div>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(`<div class="${ssrRenderClass([unref(config).isNightStore ? "bg-zinc-9" : "bg-gray-100", "h-2 mt-5 w-full bg-gray-100"])}" style="${ssrRenderStyle(unref(data)?.product_attributes?.filter((x) => x.use_in_product_page) || unref(data)?.description ? null : { display: "none" })}" data-v-db9b0834></div>`);
|
||||
_push(ssrRenderComponent(_sfc_main$3, {
|
||||
seller: unref(data).users
|
||||
}, null, _parent));
|
||||
@@ -5577,7 +5525,7 @@ _sfc_main$1.setup = (props2, ctx) => {
|
||||
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("views/base/pages/product/index.vue");
|
||||
return _sfc_setup$1 ? _sfc_setup$1(props2, ctx) : void 0;
|
||||
};
|
||||
const Index = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-0f0e7296"]]);
|
||||
const Index = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-db9b0834"]]);
|
||||
const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
__name: "[id]",
|
||||
__ssrInlineRender: true,
|
||||
@@ -0,0 +1,51 @@
|
||||
import { _ as __nuxt_component_0 } from './server.mjs';
|
||||
import { defineComponent, useSSRContext } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { ssrRenderComponent } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/server-renderer/index.mjs';
|
||||
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/lodash-es/lodash.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 _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
__name: "add",
|
||||
__ssrInlineRender: true,
|
||||
setup(__props) {
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
const _component_ClientOnly = __nuxt_component_0;
|
||||
_push(ssrRenderComponent(_component_ClientOnly, _attrs, {}, _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/add.vue");
|
||||
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
||||
};
|
||||
|
||||
export { _sfc_main as default };
|
||||
@@ -1,49 +0,0 @@
|
||||
import { _ as __nuxt_component_0 } from './server.mjs';
|
||||
import { defineComponent, useSSRContext } from 'vue';
|
||||
import { ssrRenderComponent } from 'vue/server-renderer';
|
||||
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 '../routes/renderer.mjs';
|
||||
import 'vue-bundle-renderer/runtime';
|
||||
import 'unhead/server';
|
||||
import 'devalue';
|
||||
import 'unhead/utils';
|
||||
|
||||
const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
__name: "add",
|
||||
__ssrInlineRender: true,
|
||||
setup(__props) {
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
const _component_ClientOnly = __nuxt_component_0;
|
||||
_push(ssrRenderComponent(_component_ClientOnly, _attrs, {}, _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/add.vue");
|
||||
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
||||
};
|
||||
|
||||
export { _sfc_main as default };
|
||||
@@ -0,0 +1,51 @@
|
||||
import { _ as __nuxt_component_0 } from './server.mjs';
|
||||
import { defineComponent, useSSRContext } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { ssrRenderComponent } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/server-renderer/index.mjs';
|
||||
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/lodash-es/lodash.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 _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
__name: "address",
|
||||
__ssrInlineRender: true,
|
||||
setup(__props) {
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
const _component_ClientOnly = __nuxt_component_0;
|
||||
_push(ssrRenderComponent(_component_ClientOnly, _attrs, {}, _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/address.vue");
|
||||
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
||||
};
|
||||
|
||||
export { _sfc_main as default };
|
||||
@@ -1,49 +0,0 @@
|
||||
import { _ as __nuxt_component_0 } from './server.mjs';
|
||||
import { defineComponent, useSSRContext } from 'vue';
|
||||
import { ssrRenderComponent } from 'vue/server-renderer';
|
||||
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 '../routes/renderer.mjs';
|
||||
import 'vue-bundle-renderer/runtime';
|
||||
import 'unhead/server';
|
||||
import 'devalue';
|
||||
import 'unhead/utils';
|
||||
|
||||
const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
__name: "address",
|
||||
__ssrInlineRender: true,
|
||||
setup(__props) {
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
const _component_ClientOnly = __nuxt_component_0;
|
||||
_push(ssrRenderComponent(_component_ClientOnly, _attrs, {}, _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/address.vue");
|
||||
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
||||
};
|
||||
|
||||
export { _sfc_main as default };
|
||||
+93
-78
@@ -1,61 +1,6 @@
|
||||
import { computed, toValue, getCurrentInstance, onServerPrefetch, ref, shallowRef, toRef, nextTick, unref } from 'vue';
|
||||
import { aT as useNuxtApp, a$ as asyncDataDefaults, b0 as createError } from './server.mjs';
|
||||
|
||||
const DEBOUNCE_DEFAULTS = {
|
||||
trailing: true
|
||||
};
|
||||
function debounce(fn, wait = 25, options = {}) {
|
||||
options = { ...DEBOUNCE_DEFAULTS, ...options };
|
||||
if (!Number.isFinite(wait)) {
|
||||
throw new TypeError("Expected `wait` to be a finite number");
|
||||
}
|
||||
let leadingValue;
|
||||
let timeout;
|
||||
let resolveList = [];
|
||||
let currentPromise;
|
||||
let trailingArgs;
|
||||
const applyFn = (_this, args) => {
|
||||
currentPromise = _applyPromised(fn, _this, args);
|
||||
currentPromise.finally(() => {
|
||||
currentPromise = null;
|
||||
if (options.trailing && trailingArgs && !timeout) {
|
||||
const promise = applyFn(_this, trailingArgs);
|
||||
trailingArgs = null;
|
||||
return promise;
|
||||
}
|
||||
});
|
||||
return currentPromise;
|
||||
};
|
||||
return function(...args) {
|
||||
if (currentPromise) {
|
||||
if (options.trailing) {
|
||||
trailingArgs = args;
|
||||
}
|
||||
return currentPromise;
|
||||
}
|
||||
return new Promise((resolve) => {
|
||||
const shouldCallNow = !timeout && options.leading;
|
||||
clearTimeout(timeout);
|
||||
timeout = setTimeout(() => {
|
||||
timeout = null;
|
||||
const promise = options.leading ? leadingValue : applyFn(this, args);
|
||||
for (const _resolve of resolveList) {
|
||||
_resolve(promise);
|
||||
}
|
||||
resolveList = [];
|
||||
}, wait);
|
||||
if (shouldCallNow) {
|
||||
leadingValue = applyFn(this, args);
|
||||
resolve(leadingValue);
|
||||
} else {
|
||||
resolveList.push(resolve);
|
||||
}
|
||||
});
|
||||
};
|
||||
}
|
||||
async function _applyPromised(fn, _this, args) {
|
||||
return await fn.apply(_this, args);
|
||||
}
|
||||
import { computed, toValue, getCurrentInstance, onServerPrefetch, ref, shallowRef, toRef, nextTick, unref } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { debounce } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/perfect-debounce/dist/index.mjs';
|
||||
import { ar as useNuxtApp, as as asyncDataDefaults, at as createError } from './server.mjs';
|
||||
|
||||
function useAsyncData(...args) {
|
||||
const autoKey = typeof args[args.length - 1] === "string" ? args.pop() : void 0;
|
||||
@@ -80,14 +25,17 @@ function useAsyncData(...args) {
|
||||
options.dedupe ??= "cancel";
|
||||
options._functionName || "useAsyncData";
|
||||
nuxtApp._asyncData[key.value];
|
||||
const initialFetchOptions = { cause: "initial", dedupe: options.dedupe };
|
||||
if (!nuxtApp._asyncData[key.value]?._init) {
|
||||
initialFetchOptions.cachedData = options.getCachedData(key.value, nuxtApp, { cause: "initial" });
|
||||
nuxtApp._asyncData[key.value] = createAsyncData(nuxtApp, key.value, _handler, options, initialFetchOptions.cachedData);
|
||||
function createInitialFetch() {
|
||||
const initialFetchOptions = { cause: "initial", dedupe: options.dedupe };
|
||||
if (!nuxtApp._asyncData[key.value]?._init) {
|
||||
initialFetchOptions.cachedData = options.getCachedData(key.value, nuxtApp, { cause: "initial" });
|
||||
nuxtApp._asyncData[key.value] = createAsyncData(nuxtApp, key.value, _handler, options, initialFetchOptions.cachedData);
|
||||
}
|
||||
return () => nuxtApp._asyncData[key.value].execute(initialFetchOptions);
|
||||
}
|
||||
const initialFetch = createInitialFetch();
|
||||
const asyncData = nuxtApp._asyncData[key.value];
|
||||
asyncData._deps++;
|
||||
const initialFetch = () => nuxtApp._asyncData[key.value].execute(initialFetchOptions);
|
||||
const fetchOnServer = options.server !== false && nuxtApp.payload.serverRendered;
|
||||
if (fetchOnServer && options.immediate) {
|
||||
const promise = initialFetch();
|
||||
@@ -104,9 +52,25 @@ function useAsyncData(...args) {
|
||||
pending: writableComputedRef(() => nuxtApp._asyncData[key.value]?.pending),
|
||||
status: writableComputedRef(() => nuxtApp._asyncData[key.value]?.status),
|
||||
error: writableComputedRef(() => nuxtApp._asyncData[key.value]?.error),
|
||||
refresh: (...args2) => nuxtApp._asyncData[key.value].execute(...args2),
|
||||
execute: (...args2) => nuxtApp._asyncData[key.value].execute(...args2),
|
||||
clear: () => clearNuxtDataByKey(nuxtApp, key.value)
|
||||
refresh: (...args2) => {
|
||||
if (!nuxtApp._asyncData[key.value]?._init) {
|
||||
const initialFetch2 = createInitialFetch();
|
||||
return initialFetch2();
|
||||
}
|
||||
return nuxtApp._asyncData[key.value].execute(...args2);
|
||||
},
|
||||
execute: (...args2) => asyncReturn.refresh(...args2),
|
||||
clear: () => {
|
||||
const entry = nuxtApp._asyncData[key.value];
|
||||
if (entry?._abortController) {
|
||||
try {
|
||||
entry._abortController.abort(new DOMException("AsyncData aborted by user.", "AbortError"));
|
||||
} finally {
|
||||
entry._abortController = void 0;
|
||||
}
|
||||
}
|
||||
clearNuxtDataByKey(nuxtApp, key.value);
|
||||
}
|
||||
};
|
||||
const asyncDataPromise = Promise.resolve(nuxtApp._asyncDataPromises[key.value]).then(() => asyncReturn);
|
||||
Object.assign(asyncDataPromise, asyncReturn);
|
||||
@@ -150,9 +114,6 @@ function clearNuxtDataByKey(nuxtApp, key) {
|
||||
nuxtApp._asyncData[key].status.value = "idle";
|
||||
}
|
||||
if (key in nuxtApp._asyncDataPromises) {
|
||||
if (nuxtApp._asyncDataPromises[key]) {
|
||||
nuxtApp._asyncDataPromises[key].cancelled = true;
|
||||
}
|
||||
nuxtApp._asyncDataPromises[key] = void 0;
|
||||
}
|
||||
}
|
||||
@@ -186,7 +147,6 @@ function createAsyncData(nuxtApp, key, _handler, options, initialCachedData) {
|
||||
if ((opts.dedupe ?? options.dedupe) === "defer") {
|
||||
return nuxtApp._asyncDataPromises[key];
|
||||
}
|
||||
nuxtApp._asyncDataPromises[key].cancelled = true;
|
||||
}
|
||||
{
|
||||
const cachedData = "cachedData" in opts ? opts.cachedData : options.getCachedData(key, nuxtApp, { cause: opts.cause ?? "refresh:manual" });
|
||||
@@ -197,19 +157,32 @@ function createAsyncData(nuxtApp, key, _handler, options, initialCachedData) {
|
||||
return Promise.resolve(cachedData);
|
||||
}
|
||||
}
|
||||
if (asyncData._abortController) {
|
||||
asyncData._abortController.abort(new DOMException("AsyncData request cancelled by deduplication", "AbortError"));
|
||||
}
|
||||
asyncData._abortController = new AbortController();
|
||||
asyncData.status.value = "pending";
|
||||
const cleanupController = new AbortController();
|
||||
const promise = new Promise(
|
||||
(resolve, reject) => {
|
||||
try {
|
||||
resolve(handler(nuxtApp));
|
||||
const timeout = opts.timeout ?? options.timeout;
|
||||
const mergedSignal = mergeAbortSignals([asyncData._abortController?.signal, opts?.signal], cleanupController.signal, timeout);
|
||||
if (mergedSignal.aborted) {
|
||||
const reason = mergedSignal.reason;
|
||||
reject(reason instanceof Error ? reason : new DOMException(String(reason ?? "Aborted"), "AbortError"));
|
||||
return;
|
||||
}
|
||||
mergedSignal.addEventListener("abort", () => {
|
||||
const reason = mergedSignal.reason;
|
||||
reject(reason instanceof Error ? reason : new DOMException(String(reason ?? "Aborted"), "AbortError"));
|
||||
}, { once: true, signal: cleanupController.signal });
|
||||
return Promise.resolve(handler(nuxtApp, { signal: mergedSignal })).then(resolve, reject);
|
||||
} catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
}
|
||||
).then(async (_result) => {
|
||||
if (promise.cancelled) {
|
||||
return nuxtApp._asyncDataPromises[key];
|
||||
}
|
||||
let result = _result;
|
||||
if (options.transform) {
|
||||
result = await options.transform(_result);
|
||||
@@ -222,16 +195,21 @@ function createAsyncData(nuxtApp, key, _handler, options, initialCachedData) {
|
||||
asyncData.error.value = void 0;
|
||||
asyncData.status.value = "success";
|
||||
}).catch((error) => {
|
||||
if (promise.cancelled) {
|
||||
if (nuxtApp._asyncDataPromises[key] && nuxtApp._asyncDataPromises[key] !== promise) {
|
||||
return nuxtApp._asyncDataPromises[key];
|
||||
}
|
||||
if (asyncData._abortController?.signal.aborted) {
|
||||
return nuxtApp._asyncDataPromises[key];
|
||||
}
|
||||
if (typeof DOMException !== "undefined" && error instanceof DOMException && error.name === "AbortError") {
|
||||
asyncData.status.value = "idle";
|
||||
return nuxtApp._asyncDataPromises[key];
|
||||
}
|
||||
asyncData.error.value = createError(error);
|
||||
asyncData.data.value = unref(options.default());
|
||||
asyncData.status.value = "error";
|
||||
}).finally(() => {
|
||||
if (promise.cancelled) {
|
||||
return;
|
||||
}
|
||||
cleanupController.abort();
|
||||
delete nuxtApp._asyncDataPromises[key];
|
||||
});
|
||||
nuxtApp._asyncDataPromises[key] = promise;
|
||||
@@ -268,5 +246,42 @@ const getDefaultCachedData = (key, nuxtApp, ctx) => {
|
||||
return nuxtApp.static.data[key];
|
||||
}
|
||||
};
|
||||
function mergeAbortSignals(signals, cleanupSignal, timeout) {
|
||||
const list = signals.filter((s) => !!s);
|
||||
if (typeof timeout === "number" && timeout >= 0) {
|
||||
const timeoutSignal = AbortSignal.timeout?.(timeout);
|
||||
if (timeoutSignal) {
|
||||
list.push(timeoutSignal);
|
||||
}
|
||||
}
|
||||
if (AbortSignal.any) {
|
||||
return AbortSignal.any(list);
|
||||
}
|
||||
const controller = new AbortController();
|
||||
for (const sig of list) {
|
||||
if (sig.aborted) {
|
||||
const reason = sig.reason ?? new DOMException("Aborted", "AbortError");
|
||||
try {
|
||||
controller.abort(reason);
|
||||
} catch {
|
||||
controller.abort();
|
||||
}
|
||||
return controller.signal;
|
||||
}
|
||||
}
|
||||
const onAbort = () => {
|
||||
const abortedSignal = list.find((s) => s.aborted);
|
||||
const reason = abortedSignal?.reason ?? new DOMException("Aborted", "AbortError");
|
||||
try {
|
||||
controller.abort(reason);
|
||||
} catch {
|
||||
controller.abort();
|
||||
}
|
||||
};
|
||||
for (const sig of list) {
|
||||
sig.addEventListener?.("abort", onAbort, { once: true, signal: cleanupSignal });
|
||||
}
|
||||
return controller.signal;
|
||||
}
|
||||
|
||||
export { useAsyncData as u };
|
||||
@@ -0,0 +1,51 @@
|
||||
import { _ as __nuxt_component_0 } from './server.mjs';
|
||||
import { defineComponent, useSSRContext } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { ssrRenderComponent } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/server-renderer/index.mjs';
|
||||
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/lodash-es/lodash.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 _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
__name: "attributes",
|
||||
__ssrInlineRender: true,
|
||||
setup(__props) {
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
const _component_ClientOnly = __nuxt_component_0;
|
||||
_push(ssrRenderComponent(_component_ClientOnly, _attrs, {}, _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/attributes.vue");
|
||||
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
||||
};
|
||||
|
||||
export { _sfc_main as default };
|
||||
@@ -1,49 +0,0 @@
|
||||
import { _ as __nuxt_component_0 } from './server.mjs';
|
||||
import { defineComponent, useSSRContext } from 'vue';
|
||||
import { ssrRenderComponent } from 'vue/server-renderer';
|
||||
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 '../routes/renderer.mjs';
|
||||
import 'vue-bundle-renderer/runtime';
|
||||
import 'unhead/server';
|
||||
import 'devalue';
|
||||
import 'unhead/utils';
|
||||
|
||||
const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
__name: "attributes",
|
||||
__ssrInlineRender: true,
|
||||
setup(__props) {
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
const _component_ClientOnly = __nuxt_component_0;
|
||||
_push(ssrRenderComponent(_component_ClientOnly, _attrs, {}, _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/attributes.vue");
|
||||
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
||||
};
|
||||
|
||||
export { _sfc_main as default };
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
import { defineComponent, resolveComponent, useSSRContext } from 'vue';
|
||||
import { ssrRenderComponent } from 'vue/server-renderer';
|
||||
import { defineComponent, resolveComponent, useSSRContext } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { ssrRenderComponent } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/server-renderer/index.mjs';
|
||||
|
||||
const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
__name: "auth",
|
||||
@@ -0,0 +1,51 @@
|
||||
import { _ as __nuxt_component_0 } from './server.mjs';
|
||||
import { defineComponent, useSSRContext } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { ssrRenderComponent } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/server-renderer/index.mjs';
|
||||
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/lodash-es/lodash.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 _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
__name: "brands",
|
||||
__ssrInlineRender: true,
|
||||
setup(__props) {
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
const _component_ClientOnly = __nuxt_component_0;
|
||||
_push(ssrRenderComponent(_component_ClientOnly, _attrs, {}, _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/brands.vue");
|
||||
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
||||
};
|
||||
|
||||
export { _sfc_main as default };
|
||||
@@ -1,49 +0,0 @@
|
||||
import { _ as __nuxt_component_0 } from './server.mjs';
|
||||
import { defineComponent, useSSRContext } from 'vue';
|
||||
import { ssrRenderComponent } from 'vue/server-renderer';
|
||||
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 '../routes/renderer.mjs';
|
||||
import 'vue-bundle-renderer/runtime';
|
||||
import 'unhead/server';
|
||||
import 'devalue';
|
||||
import 'unhead/utils';
|
||||
|
||||
const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
__name: "brands",
|
||||
__ssrInlineRender: true,
|
||||
setup(__props) {
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
const _component_ClientOnly = __nuxt_component_0;
|
||||
_push(ssrRenderComponent(_component_ClientOnly, _attrs, {}, _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/brands.vue");
|
||||
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
||||
};
|
||||
|
||||
export { _sfc_main as default };
|
||||
@@ -0,0 +1,51 @@
|
||||
import { _ as __nuxt_component_0 } from './server.mjs';
|
||||
import { defineComponent, useSSRContext } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { ssrRenderComponent } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/server-renderer/index.mjs';
|
||||
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/lodash-es/lodash.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 _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
__name: "categories",
|
||||
__ssrInlineRender: true,
|
||||
setup(__props) {
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
const _component_ClientOnly = __nuxt_component_0;
|
||||
_push(ssrRenderComponent(_component_ClientOnly, _attrs, {}, _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/categories.vue");
|
||||
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
||||
};
|
||||
|
||||
export { _sfc_main as default };
|
||||
@@ -1,49 +0,0 @@
|
||||
import { _ as __nuxt_component_0 } from './server.mjs';
|
||||
import { defineComponent, useSSRContext } from 'vue';
|
||||
import { ssrRenderComponent } from 'vue/server-renderer';
|
||||
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 '../routes/renderer.mjs';
|
||||
import 'vue-bundle-renderer/runtime';
|
||||
import 'unhead/server';
|
||||
import 'devalue';
|
||||
import 'unhead/utils';
|
||||
|
||||
const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
__name: "categories",
|
||||
__ssrInlineRender: true,
|
||||
setup(__props) {
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
const _component_ClientOnly = __nuxt_component_0;
|
||||
_push(ssrRenderComponent(_component_ClientOnly, _attrs, {}, _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/categories.vue");
|
||||
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
||||
};
|
||||
|
||||
export { _sfc_main as default };
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
import { defineStore } from 'pinia';
|
||||
import { ref, h } from 'vue';
|
||||
import { b as useUserStore, a as useConfigStore, u as useRouter$1, aG as fetchUserChats, s as supabase, aF as api, Q as Button, aH as fetchOneChat } from './server.mjs';
|
||||
import { defineStore } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/pinia/dist/pinia.prod.cjs';
|
||||
import { ref, h } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { b as useUserStore, a as useConfigStore, u as useRouter$1, aF as fetchUserChats, s as supabase, aG as api, L as Button, aH as fetchOneChat } from './server.mjs';
|
||||
|
||||
const useChatStore = defineStore("chat", () => {
|
||||
const userStore = useUserStore();
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@@ -1,94 +0,0 @@
|
||||
import { nextTick } from 'vue';
|
||||
|
||||
const genCollapseMotion = (token) => ({
|
||||
[token.componentCls]: {
|
||||
// For common/openAnimation
|
||||
[`${token.antCls}-motion-collapse-legacy`]: {
|
||||
overflow: "hidden",
|
||||
"&-active": {
|
||||
transition: `height ${token.motionDurationMid} ${token.motionEaseInOut},
|
||||
opacity ${token.motionDurationMid} ${token.motionEaseInOut} !important`
|
||||
}
|
||||
},
|
||||
[`${token.antCls}-motion-collapse`]: {
|
||||
overflow: "hidden",
|
||||
transition: `height ${token.motionDurationMid} ${token.motionEaseInOut},
|
||||
opacity ${token.motionDurationMid} ${token.motionEaseInOut} !important`
|
||||
}
|
||||
}
|
||||
});
|
||||
function hasClass(node, className) {
|
||||
if (node.classList) {
|
||||
return node.classList.contains(className);
|
||||
}
|
||||
const originClass = node.className;
|
||||
return ` ${originClass} `.indexOf(` ${className} `) > -1;
|
||||
}
|
||||
function addClass(node, className) {
|
||||
if (node.classList) {
|
||||
node.classList.add(className);
|
||||
} else {
|
||||
if (!hasClass(node, className)) {
|
||||
node.className = `${node.className} ${className}`;
|
||||
}
|
||||
}
|
||||
}
|
||||
function removeClass(node, className) {
|
||||
if (node.classList) {
|
||||
node.classList.remove(className);
|
||||
} else {
|
||||
if (hasClass(node, className)) {
|
||||
const originClass = node.className;
|
||||
node.className = ` ${originClass} `.replace(` ${className} `, " ");
|
||||
}
|
||||
}
|
||||
}
|
||||
const collapseMotion = function() {
|
||||
let name = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "ant-motion-collapse";
|
||||
let appear = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
|
||||
return {
|
||||
name,
|
||||
appear,
|
||||
css: true,
|
||||
onBeforeEnter: (node) => {
|
||||
node.style.height = "0px";
|
||||
node.style.opacity = "0";
|
||||
addClass(node, name);
|
||||
},
|
||||
onEnter: (node) => {
|
||||
nextTick(() => {
|
||||
node.style.height = `${node.scrollHeight}px`;
|
||||
node.style.opacity = "1";
|
||||
});
|
||||
},
|
||||
onAfterEnter: (node) => {
|
||||
if (node) {
|
||||
removeClass(node, name);
|
||||
node.style.height = null;
|
||||
node.style.opacity = null;
|
||||
}
|
||||
},
|
||||
onBeforeLeave: (node) => {
|
||||
addClass(node, name);
|
||||
node.style.height = `${node.offsetHeight}px`;
|
||||
node.style.opacity = null;
|
||||
},
|
||||
onLeave: (node) => {
|
||||
setTimeout(() => {
|
||||
node.style.height = "0px";
|
||||
node.style.opacity = "0";
|
||||
});
|
||||
},
|
||||
onAfterLeave: (node) => {
|
||||
if (node) {
|
||||
removeClass(node, name);
|
||||
if (node.style) {
|
||||
node.style.height = null;
|
||||
node.style.opacity = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
export { collapseMotion as c, genCollapseMotion as g };
|
||||
@@ -1,49 +0,0 @@
|
||||
import { _ as __nuxt_component_0 } from './server.mjs';
|
||||
import { defineComponent, useSSRContext } from 'vue';
|
||||
import { ssrRenderComponent } from 'vue/server-renderer';
|
||||
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 '../routes/renderer.mjs';
|
||||
import 'vue-bundle-renderer/runtime';
|
||||
import 'unhead/server';
|
||||
import 'devalue';
|
||||
import 'unhead/utils';
|
||||
|
||||
const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
__name: "create",
|
||||
__ssrInlineRender: true,
|
||||
setup(__props) {
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
const _component_ClientOnly = __nuxt_component_0;
|
||||
_push(ssrRenderComponent(_component_ClientOnly, _attrs, {}, _parent));
|
||||
};
|
||||
}
|
||||
});
|
||||
const _sfc_setup = _sfc_main.setup;
|
||||
_sfc_main.setup = (props, ctx) => {
|
||||
const ssrContext = useSSRContext();
|
||||
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("pages/highlight/create.vue");
|
||||
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
||||
};
|
||||
|
||||
export { _sfc_main as default };
|
||||
@@ -0,0 +1,51 @@
|
||||
import { _ as __nuxt_component_0 } from './server.mjs';
|
||||
import { defineComponent, useSSRContext } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { ssrRenderComponent } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/server-renderer/index.mjs';
|
||||
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/lodash-es/lodash.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 _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
__name: "create",
|
||||
__ssrInlineRender: true,
|
||||
setup(__props) {
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
const _component_ClientOnly = __nuxt_component_0;
|
||||
_push(ssrRenderComponent(_component_ClientOnly, _attrs, {}, _parent));
|
||||
};
|
||||
}
|
||||
});
|
||||
const _sfc_setup = _sfc_main.setup;
|
||||
_sfc_main.setup = (props, ctx) => {
|
||||
const ssrContext = useSSRContext();
|
||||
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("pages/highlight/create.vue");
|
||||
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
||||
};
|
||||
|
||||
export { _sfc_main as default };
|
||||
+38
-36
@@ -1,46 +1,48 @@
|
||||
import { createVNode, defineComponent, ref, mergeProps, unref, withCtx, computed, inject, Fragment, watch, Transition, withDirectives, vShow, reactive, nextTick, useSSRContext, provide } from 'vue';
|
||||
import { ssrRenderComponent, ssrRenderAttrs, ssrRenderList, ssrRenderAttr, ssrInterpolate } from 'vue/server-renderer';
|
||||
import { C as CustomerCard, a as CustomerCardSkeleton } from './CustomerCardSkeleton-Bqbpqnlr.mjs';
|
||||
import { b1 as Icon, b as useUserStore, a as useConfigStore, u as useRouter$1, T as initDefaultProps, G as useConfigInject, H as genComponentStyleHook, I as classNames, J as merge, bt as initFadeMotion, U as filterEmpty, C as functionType, a3 as objectType, P as PropTypes, D as stringType, M as resetComponent, al as initMotion, N as Keyframe, ag as getTransitionProps, aj as CloseOutlined, E as booleanType } from './server.mjs';
|
||||
import { createVNode, defineComponent, ref, mergeProps, unref, withCtx, computed, inject, Fragment, watch, Transition, withDirectives, vShow, reactive, nextTick, useSSRContext, provide } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { ssrRenderComponent, ssrRenderAttrs, ssrRenderList, ssrRenderAttr, ssrInterpolate } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/server-renderer/index.mjs';
|
||||
import { C as CustomerCard, a as CustomerCardSkeleton } from './CustomerCardSkeleton-Bn-AquJT.mjs';
|
||||
import { b5 as Icon, b as useUserStore, a as useConfigStore, u as useRouter$1, O as initDefaultProps, C as useConfigInject, D as genComponentStyleHook, E as classNames, F as merge, bu as initFadeMotion, Q as filterEmpty, y as functionType, $ as objectType, P as PropTypes, z as stringType, I as resetComponent, ah as initMotion, K as Keyframe, ac as getTransitionProps, af as CloseOutlined, A as booleanType } from './server.mjs';
|
||||
import { B as BasicIconOld } from './BasicIconOld-93vAWohq.mjs';
|
||||
import _objectSpread$2 from '@babel/runtime/helpers/esm/objectSpread2';
|
||||
import { _ as __nuxt_component_2, w as wrapperRaf } from './index-C9wXCwkF.mjs';
|
||||
import { B as Badge } from './index-DsmwGha0.mjs';
|
||||
import _extends from '@babel/runtime/helpers/esm/extends';
|
||||
import _objectSpread$2 from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@babel/runtime/helpers/esm/objectSpread2.js';
|
||||
import { _ as __nuxt_component_2, w as wrapperRaf } from './index-Bn4rLj9V.mjs';
|
||||
import { B as Badge } from './index-Dwnkcm_j.mjs';
|
||||
import _extends from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@babel/runtime/helpers/esm/extends.js';
|
||||
import { u as useMergedState } from './useMergedState-BZEfJ8Fl.mjs';
|
||||
import './UserProfilePic-BwsIUO56.mjs';
|
||||
import './empty_user-BaUNCdgf.mjs';
|
||||
import './UserProfilePic-DaZ03Xcl.mjs';
|
||||
import './empty_user-DSxcM_ac.mjs';
|
||||
import './_plugin-vue_export-helper-1tPrXgE0.mjs';
|
||||
import './BasicButton-QGDeiwgb.mjs';
|
||||
import '@ant-design/icons-vue';
|
||||
import './index-CRte5P_X.mjs';
|
||||
import 'throttle-debounce';
|
||||
import 'vue-content-loader';
|
||||
import '../_/nitro.mjs';
|
||||
import './BasicButton-DhQvSD8U.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@ant-design/icons-vue/lib/index.js';
|
||||
import './index-BMAjr3Fm.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/throttle-debounce/esm/index.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue-content-loader/dist/vue-content-loader.cjs.js';
|
||||
import 'node:http';
|
||||
import 'node:https';
|
||||
import '../nitro/nitro.mjs';
|
||||
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 '@ant-design/colors';
|
||||
import '@ctrl/tinycolor';
|
||||
import 'stylis';
|
||||
import 'vue-types';
|
||||
import 'lodash-es';
|
||||
import 'axios';
|
||||
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/lodash-es/lodash.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 '../routes/renderer.mjs';
|
||||
import 'vue-bundle-renderer/runtime';
|
||||
import 'unhead/server';
|
||||
import 'devalue';
|
||||
import 'unhead/utils';
|
||||
import 'dom-align';
|
||||
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';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/dom-align/dist-node/index.js';
|
||||
|
||||
// This icon file is generated automatically.
|
||||
var FileTextOutlined$1 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z" } }] }, "name": "file-text", "theme": "outlined" };
|
||||
@@ -129,8 +131,8 @@ function scrollTo(y) {
|
||||
const time = timestamp - startTime;
|
||||
const nextScrollTop = easeInOutCubic(time > duration ? duration : time, scrollTop, y, duration);
|
||||
if (isWindow(container)) {
|
||||
container.scrollTo((void 0).scrollX, nextScrollTop);
|
||||
} else if (container instanceof Document) {
|
||||
container.scrollTo((void 0).pageXOffset, nextScrollTop);
|
||||
} else if (container instanceof Document || container.constructor.name === "HTMLDocument") {
|
||||
container.documentElement.scrollTop = nextScrollTop;
|
||||
} else {
|
||||
container.scrollTop = nextScrollTop;
|
||||
@@ -151,7 +153,7 @@ const floatButtonProps = () => {
|
||||
shape: stringType("circle"),
|
||||
tooltip: PropTypes.any,
|
||||
href: String,
|
||||
target: String,
|
||||
target: functionType(),
|
||||
badge: objectType(),
|
||||
onClick: functionType()
|
||||
};
|
||||
@@ -212,7 +214,7 @@ const FloatButtonContent = defineComponent({
|
||||
};
|
||||
}
|
||||
});
|
||||
const contextKey = Symbol("floatButtonGroupContext");
|
||||
const contextKey = /* @__PURE__ */ Symbol("floatButtonGroupContext");
|
||||
const useProvideFloatButtonGroupContext = (props) => {
|
||||
provide(contextKey, props);
|
||||
return props;
|
||||
@@ -0,0 +1,220 @@
|
||||
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 };
|
||||
@@ -1,165 +0,0 @@
|
||||
import { defineComponent, ref, watch, withAsyncContext, unref, computed, resolveDirective, mergeProps, useSSRContext } from 'vue';
|
||||
import { ssrRenderAttrs, ssrRenderComponent, ssrRenderSlot, ssrRenderAttr, ssrRenderClass, ssrInterpolate } from 'vue/server-renderer';
|
||||
import { u as useRouter$1, aR as useWindowSize, aS as useBreakpoints, aT as useNuxtApp, a as useConfigStore, b as useUserStore, aU as usePriceStore, aV as useHead, aW as breakpointsTailwind, o as useCartStore, _ as __nuxt_component_0$1 } from './server.mjs';
|
||||
import { u as useChatStore } from './chatStore-kdcBQtme.mjs';
|
||||
import { u as useMediaStore } from './media-C3Y2QweF.mjs';
|
||||
import { u as useAsyncData } from './asyncData-DMpxHWuQ.mjs';
|
||||
import { get } from 'lodash-es';
|
||||
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 'axios';
|
||||
import '@ant-design/icons-vue';
|
||||
import '../routes/renderer.mjs';
|
||||
import 'vue-bundle-renderer/runtime';
|
||||
import 'unhead/server';
|
||||
import 'devalue';
|
||||
import 'unhead/utils';
|
||||
import './media-DD0HTZbK.mjs';
|
||||
|
||||
const name = "nuxt-app";
|
||||
const version = "0.0.1";
|
||||
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/camera": "^7.0.1", "@capacitor/core": "^7.2.0", "@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.3.0", "@pinia/nuxt": "^0.11.2", "@supabase/supabase-js": "^2.49.8", "@tiptap/extension-image": "^3.2.0", "@tiptap/extension-link": "^3.2.0", "@tiptap/extension-text-align": "^3.2.0", "@tiptap/extension-underline": "^3.2.0", "@tiptap/starter-kit": "^3.2.0", "@tiptap/vue-3": "^3.2.0", "@types/lodash-es": "^4.17.12", "@vite-pwa/nuxt": "1.0.4", "@vueup/vue-quill": "^1.2.0", "@vueuse/core": "^13.2.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.2.6", "axios": "^1.9.0", "date-fns": "^4.1.0", "dayjalali": "^1.0.1", "dayjs": "^1.11.13", "dayjs-nuxt": "2.1.11", "lodash": "^4.17.21", "lodash-es": "^4.17.21", "moment": "^2.30.1", "moment-jalaali": "^0.10.4", "numbro": "^2.5.0", "nuxt": "^4.0.3", "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-draggable": "^2.0.9", "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 = { "@unocss/nuxt": "^66.1.2", "@vant/nuxt": "^1.0.6", "less": "^4.3.0", "sass": "npm:sass-embedded@^1.83.0", "unplugin-auto-import": "^19.2.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 _imports_0 = "" + __buildAssetsURL("logo_1.D4wz2q5D.png");
|
||||
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
||||
__name: "splash",
|
||||
__ssrInlineRender: true,
|
||||
props: {
|
||||
version: {}
|
||||
},
|
||||
setup(__props) {
|
||||
const config = useConfigStore();
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
_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"><img${ssrRenderAttr("src", _imports_0)} alt="" class="inline m-auto w-5rem"></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(_ctx.version)}</div></div></div>`);
|
||||
};
|
||||
}
|
||||
});
|
||||
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("components/splash.vue");
|
||||
return _sfc_setup$2 ? _sfc_setup$2(props, ctx) : void 0;
|
||||
};
|
||||
const __nuxt_component_0 = Object.assign(_sfc_main$2, { __name: "Splash" });
|
||||
const _sfc_main$1 = /* @__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$1 = _sfc_main$1.setup;
|
||||
_sfc_main$1.setup = (props, ctx) => {
|
||||
const ssrContext = useSSRContext();
|
||||
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("views/base/index.vue");
|
||||
return _sfc_setup$1 ? _sfc_setup$1(props, ctx) : void 0;
|
||||
};
|
||||
const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
__name: "default",
|
||||
__ssrInlineRender: true,
|
||||
async setup(__props) {
|
||||
let __temp, __restore;
|
||||
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();
|
||||
usePriceStore();
|
||||
const mediaStore = useMediaStore();
|
||||
watch([width, isSM], () => {
|
||||
checkFooterHeader();
|
||||
});
|
||||
[__temp, __restore] = withAsyncContext(() => useAsyncData("story", () => {
|
||||
return mediaStore.getList();
|
||||
})), await __temp, __restore();
|
||||
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);
|
||||
if (showMobileNavigationMenu.value) {
|
||||
_push(ssrRenderComponent(_sfc_main$1, {
|
||||
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 };
|
||||
@@ -1,76 +0,0 @@
|
||||
import { defineComponent, ref, computed, useSSRContext } from 'vue';
|
||||
import { ssrRenderComponent } from 'vue/server-renderer';
|
||||
import { u as useRouter$1, a as useConfigStore, b as useUserStore, _ as __nuxt_component_0 } from './server.mjs';
|
||||
import { _ as _export_sfc } from './_plugin-vue_export-helper-1tPrXgE0.mjs';
|
||||
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 '../routes/renderer.mjs';
|
||||
import 'vue-bundle-renderer/runtime';
|
||||
import 'unhead/server';
|
||||
import 'devalue';
|
||||
import 'unhead/utils';
|
||||
|
||||
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
||||
__name: "index",
|
||||
__ssrInlineRender: true,
|
||||
setup(__props) {
|
||||
useRouter$1();
|
||||
const config = useConfigStore();
|
||||
const userStore = useUserStore();
|
||||
ref("");
|
||||
ref(null);
|
||||
ref(void 0);
|
||||
computed(() => config.sellerConfig?.store?.main && userStore.user.id !== config.sellerConfig?.store?.id);
|
||||
ref(false);
|
||||
ref(false);
|
||||
ref(void 0);
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
const _component_client_only = __nuxt_component_0;
|
||||
_push(ssrRenderComponent(_component_client_only, _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("views/base/pages/direct/detail/index.vue");
|
||||
return _sfc_setup$1 ? _sfc_setup$1(props, ctx) : void 0;
|
||||
};
|
||||
const Index = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-a4ea9277"]]);
|
||||
const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
__name: "detail_message",
|
||||
__ssrInlineRender: true,
|
||||
setup(__props) {
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
_push(ssrRenderComponent(Index, _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/message/detail_message.vue");
|
||||
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
||||
};
|
||||
|
||||
export { _sfc_main as default };
|
||||
@@ -0,0 +1,78 @@
|
||||
import { defineComponent, ref, computed, useSSRContext } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { ssrRenderComponent } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/server-renderer/index.mjs';
|
||||
import { u as useRouter$1, a as useConfigStore, b as useUserStore, _ as __nuxt_component_0 } from './server.mjs';
|
||||
import { _ as _export_sfc } from './_plugin-vue_export-helper-1tPrXgE0.mjs';
|
||||
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/lodash-es/lodash.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 _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
||||
__name: "index",
|
||||
__ssrInlineRender: true,
|
||||
setup(__props) {
|
||||
useRouter$1();
|
||||
const config = useConfigStore();
|
||||
const userStore = useUserStore();
|
||||
ref("");
|
||||
ref(null);
|
||||
ref(void 0);
|
||||
computed(() => config.sellerConfig?.store?.main && userStore.user.id !== config.sellerConfig?.store?.id);
|
||||
ref(false);
|
||||
ref(false);
|
||||
ref(void 0);
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
const _component_client_only = __nuxt_component_0;
|
||||
_push(ssrRenderComponent(_component_client_only, _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("views/base/pages/direct/detail/index.vue");
|
||||
return _sfc_setup$1 ? _sfc_setup$1(props, ctx) : void 0;
|
||||
};
|
||||
const Index = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-3f2e8e08"]]);
|
||||
const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
__name: "detail_message",
|
||||
__ssrInlineRender: true,
|
||||
setup(__props) {
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
_push(ssrRenderComponent(Index, _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/message/detail_message.vue");
|
||||
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
||||
};
|
||||
|
||||
export { _sfc_main as default };
|
||||
@@ -0,0 +1,51 @@
|
||||
import { _ as __nuxt_component_0 } from './server.mjs';
|
||||
import { defineComponent, useSSRContext } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { ssrRenderComponent } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/server-renderer/index.mjs';
|
||||
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/lodash-es/lodash.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 _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
__name: "discount",
|
||||
__ssrInlineRender: true,
|
||||
setup(__props) {
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
const _component_ClientOnly = __nuxt_component_0;
|
||||
_push(ssrRenderComponent(_component_ClientOnly, _attrs, {}, _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/discount.vue");
|
||||
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
||||
};
|
||||
|
||||
export { _sfc_main as default };
|
||||
@@ -1,3 +0,0 @@
|
||||
const empty_user = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAAM1BMVEXk5ueutLeqsbTn6eqpr7PJzc/j5ebf4eLZ3N2wtrnBxsjN0NLGysy6v8HT1tissra8wMNxTKO9AAAFDklEQVR4nO2d3XqDIAxAlfivoO//tEOZWzvbVTEpic252W3PF0gAIcsyRVEURVEURVEURVEURVEURVEURVEURVEURVEURflgAFL/AirAqzXO9R7XNBVcy9TbuMHmxjN6lr92cNVVLKEurVfK/zCORVvW8iUBnC02dj+Wpu0z0Y6QlaN5phcwZqjkOkK5HZyPAjkIjSO4fIdfcOwFKkJlX4zPu7Ha1tIcwR3wWxyFhRG6g4Je0YpSPDJCV8a2Sv2zd1O1x/2WMDZCwljH+clRrHfWCLGK8REMiql//2si5+DKWKcWeAGcFMzzNrXC/0TUwQ2s6+LhlcwjTMlYsUIQzPOCb7YBiyHopyLXIEKPEkI/TgeuiidK/R9FniUDOjRDpvm0RhqjMyyXNjDhCfIMYl1gGjIMIuYsnGEYRMRZOMMunaLVwpWRW008v6fYKDIzxCwVAeNSO90BJW6emelYBRF/kHpYGVaoxTDAaxOFsfP9y8hpJ4xd7gOcij7JNGQ1EYFgkPJa1jQEiYZXRaRINKxSDUW9n+FT82lSKadkiru9/4XPqSLWOekGPoY05TAvLm9orm+YWuwHoBHkZKijNBJGmeb61eL6Ff/6q7bLr7yvv3vKGhpDRjvgjGaPz+gUg6YgcvpyAR2FIZ9U6nEEyZRTovmEU32KichpGn7C17XrfyH9gK/c0CMP05HZIM2uf9sEveizKveBy9/6Qt7o89ne33D525cfcIMW6ab+TMEukQbQbu+xu7X3A9bChmWaCeAkG17bpntwXgWxHaMzGPmUaR5dQZiKqRVeUZ3047fi3nAu28h4CHxCsZAgmEH8Y27jJAhm8c+5RQzRQNVGhVFSfxOYIjp/pP7RxzjevYXVGf4eLt+BJ1vCuLuLkrgABgCGXZ2wik5uty+oBvNirI6mkzhAf4Gsb58Hcm67Jzd+KwD10BYPLL3e0MjvKrgAULnOfveF/O4N2Xb9BZom3gJes3F9X5Zze8/6Yt09b4CrqsEjUv8oFBaR2rl+6CZr2xVrp24o/WitBKuGrrpl1+bFkmK2qXTON4VpbdfLa7o7y/WdLxG7lm2Lqh2clOwTegbvc/vj2U78CwhA87Bn8G5Nk3eOb0Nsr9flz3sG78UUtue4kpv1xvjg3TMay62BMlTlP+vrOMnJsRmt/ze0jsfkPPYdAH57hK+34PeOyc8XIXu5xT2HsUkdZz+adwg8HGFfQ3K5jtDvbUiO4Di9/ywHGrL88pDizZ++oTp+an+SMX/ndymUCwmHMdO7yuOx83pUx/eEMU0AvxWndwgidAqOZ8ypCwdEfvvEo6D9HwpA8wzvmOJEqAg9ySu8g4x0Hb9hSB/BANEKJ+LbPBU0lzbAJs4xt1AoshKkUGQmiH8/jJ0gdhTTLmSegHlPE0oOdXALnqDjKYh3px//fSgSWG8UqfrrIICzYYSJXRr9BSPbpNzw7gBjKjKOYI7ReIGqQRIap5+5MdjyvuDkExvGeXSlONWZAP3/AZBwJohU7QJRGU+cTVH18ELmRPNBmibW6MT/k1b0XhdkRBvyT6SB6EYv/GvhSmRNpGngRULsAlxMCGNXp7w3FfdEbTEEDdLI9TdIKRUzUesa3I461ER8cpNT7gMRhpKmYVS9ELOgCUQsa4SsulciKiLbY+AnHD8cpuhISsnxpamI84sbDq9qYJgf8wiiOBrC7Ml7M7ZECCqKoiiKoiiKoiiKoijv5AvJxlZRyNWWLwAAAABJRU5ErkJggg==";
|
||||
|
||||
export { empty_user as e };
|
||||
@@ -0,0 +1,3 @@
|
||||
const empty_user = "" + __buildAssetsURL("empty_user.DjvjY29X.png");
|
||||
|
||||
export { empty_user as e };
|
||||
+26
-25
@@ -1,34 +1,36 @@
|
||||
import { useSSRContext, mergeProps, withCtx, createTextVNode, toDisplayString, defineComponent, shallowRef, h, resolveComponent, computed } from 'vue';
|
||||
import { a as parseQuery, h as hasProtocol, j as joinURL, w as withTrailingSlash, b as withoutTrailingSlash } from '../_/nitro.mjs';
|
||||
import { aV as useHead, u as useRouter$1, aT as useNuxtApp, aX as resolveRouteObject, aY as useRuntimeConfig, aZ as navigateTo, a_ as nuxtLinkDefaults } from './server.mjs';
|
||||
import { ssrRenderAttrs, ssrInterpolate, ssrRenderComponent } from 'vue/server-renderer';
|
||||
import { mergeProps, withCtx, createTextVNode, toDisplayString, defineComponent, shallowRef, h, resolveComponent, computed, useSSRContext } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { p as parseQuery, h as hasProtocol, j as joinURL, w as withTrailingSlash, b as withoutTrailingSlash } from '../nitro/nitro.mjs';
|
||||
import { a_ as useHead, u as useRouter$1, ar as useNuxtApp, b2 as resolveRouteObject, b0 as useRuntimeConfig, b3 as navigateTo, b4 as nuxtLinkDefaults } from './server.mjs';
|
||||
import { ssrRenderAttrs, ssrInterpolate, ssrRenderComponent } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/server-renderer/index.mjs';
|
||||
import { _ as _export_sfc } from './_plugin-vue_export-helper-1tPrXgE0.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 '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/lodash-es/lodash.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 'vue-bundle-renderer/runtime';
|
||||
import 'unhead/server';
|
||||
import 'devalue';
|
||||
import 'unhead/utils';
|
||||
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 firstNonUndefined = (...args) => args.find((arg) => arg !== void 0);
|
||||
// @__NO_SIDE_EFFECTS__
|
||||
@@ -298,7 +300,6 @@ function defineNuxtLink(options) {
|
||||
}, slots.default?.());
|
||||
};
|
||||
}
|
||||
// }) as unknown as DefineComponent<NuxtLinkProps, object, object, ComputedOptions, MethodOptions, object, object, EmitsOptions, string, object, NuxtLinkProps, object, SlotsType<NuxtLinkSlots>>
|
||||
});
|
||||
}
|
||||
const __nuxt_component_0 = /* @__PURE__ */ defineNuxtLink(nuxtLinkDefaults);
|
||||
@@ -352,7 +353,7 @@ const _sfc_main = {
|
||||
});
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
const _component_NuxtLink = __nuxt_component_0;
|
||||
_push(`<div${ssrRenderAttrs(mergeProps({ class: "antialiased bg-white dark:bg-[#020420] dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-[#020420] tracking-wide" }, _attrs))} data-v-b728498f><div class="max-w-520px text-center" data-v-b728498f><h1 class="font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]" data-v-b728498f>${ssrInterpolate(__props.statusCode)}</h1><h2 class="font-semibold mb-2 sm:text-3xl text-2xl" data-v-b728498f>${ssrInterpolate(__props.statusMessage)}</h2><p class="mb-4 px-2 text-[#64748B] text-md" data-v-b728498f>${ssrInterpolate(__props.description)}</p><div class="flex items-center justify-center w-full" data-v-b728498f>`);
|
||||
_push(`<div${ssrRenderAttrs(mergeProps({ class: "antialiased bg-white dark:bg-[#020420] dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-[#020420] tracking-wide" }, _attrs))} data-v-8c88d9ea><div class="max-w-520px text-center" data-v-8c88d9ea><h1 class="font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]" data-v-8c88d9ea>${ssrInterpolate(__props.statusCode)}</h1><h2 class="font-semibold mb-2 sm:text-3xl text-2xl" data-v-8c88d9ea>${ssrInterpolate(__props.statusMessage)}</h2><p class="mb-4 px-2 text-[#64748B] text-md" data-v-8c88d9ea>${ssrInterpolate(__props.description)}</p><div class="flex items-center justify-center w-full" data-v-8c88d9ea>`);
|
||||
_push(ssrRenderComponent(_component_NuxtLink, {
|
||||
to: "/",
|
||||
class: "font-medium hover:text-[#00DC82] text-sm underline underline-offset-3"
|
||||
@@ -378,6 +379,6 @@ _sfc_main.setup = (props, ctx) => {
|
||||
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("node_modules/nuxt/dist/app/components/error-404.vue");
|
||||
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
||||
};
|
||||
const error404 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b728498f"]]);
|
||||
const error404 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8c88d9ea"]]);
|
||||
|
||||
export { error404 as default };
|
||||
+26
-24
@@ -1,34 +1,36 @@
|
||||
import { mergeProps, useSSRContext } from 'vue';
|
||||
import { ssrRenderAttrs, ssrInterpolate } from 'vue/server-renderer';
|
||||
import { mergeProps, useSSRContext } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { ssrRenderAttrs, ssrInterpolate } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/server-renderer/index.mjs';
|
||||
import { _ as _export_sfc } from './_plugin-vue_export-helper-1tPrXgE0.mjs';
|
||||
import { aV as useHead } from './server.mjs';
|
||||
import '../_/nitro.mjs';
|
||||
import { a_ as useHead } from './server.mjs';
|
||||
import 'node:http';
|
||||
import 'node:https';
|
||||
import '../nitro/nitro.mjs';
|
||||
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 '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/lodash-es/lodash.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 'vue-bundle-renderer/runtime';
|
||||
import 'unhead/server';
|
||||
import 'devalue';
|
||||
import 'unhead/utils';
|
||||
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 _sfc_main = {
|
||||
__name: "error-500",
|
||||
@@ -71,7 +73,7 @@ const _sfc_main = {
|
||||
]
|
||||
});
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
_push(`<div${ssrRenderAttrs(mergeProps({ class: "antialiased bg-white dark:bg-[#020420] dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-[#020420] tracking-wide" }, _attrs))} data-v-70d84538><div class="max-w-520px text-center" data-v-70d84538><h1 class="font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]" data-v-70d84538>${ssrInterpolate(__props.statusCode)}</h1><h2 class="font-semibold mb-2 sm:text-3xl text-2xl" data-v-70d84538>${ssrInterpolate(__props.statusMessage)}</h2><p class="mb-4 px-2 text-[#64748B] text-md" data-v-70d84538>${ssrInterpolate(__props.description)}</p></div></div>`);
|
||||
_push(`<div${ssrRenderAttrs(mergeProps({ class: "antialiased bg-white dark:bg-[#020420] dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-[#020420] tracking-wide" }, _attrs))} data-v-c415ba6a><div class="max-w-520px text-center" data-v-c415ba6a><h1 class="font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]" data-v-c415ba6a>${ssrInterpolate(__props.statusCode)}</h1><h2 class="font-semibold mb-2 sm:text-3xl text-2xl" data-v-c415ba6a>${ssrInterpolate(__props.statusMessage)}</h2><p class="mb-4 px-2 text-[#64748B] text-md" data-v-c415ba6a>${ssrInterpolate(__props.description)}</p></div></div>`);
|
||||
};
|
||||
}
|
||||
};
|
||||
@@ -81,6 +83,6 @@ _sfc_main.setup = (props, ctx) => {
|
||||
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("node_modules/nuxt/dist/app/components/error-500.vue");
|
||||
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
||||
};
|
||||
const error500 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-70d84538"]]);
|
||||
const error500 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c415ba6a"]]);
|
||||
|
||||
export { error500 as default };
|
||||
+6
-6
@@ -1,7 +1,7 @@
|
||||
import { defineComponent, ref, reactive, computed, mergeProps, unref, withCtx, createVNode, useSSRContext } from 'vue';
|
||||
import { ssrRenderAttrs, ssrRenderComponent, ssrRenderAttr } from 'vue/server-renderer';
|
||||
import { ContentLoader } from 'vue-content-loader';
|
||||
import { w as useElementSize } from './server.mjs';
|
||||
import { defineComponent, ref, reactive, computed, mergeProps, unref, withCtx, createVNode, useSSRContext } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { ssrRenderAttrs, ssrRenderComponent, ssrRenderAttr } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/server-renderer/index.mjs';
|
||||
import { ContentLoader } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue-content-loader/dist/vue-content-loader.cjs.js';
|
||||
import { q as useElementSize } from './server.mjs';
|
||||
|
||||
const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
__name: "SquarePostSkeleton",
|
||||
@@ -143,7 +143,7 @@ _sfc_main.setup = (props, ctx) => {
|
||||
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("components/SquarePostSkeleton.vue");
|
||||
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
||||
};
|
||||
const SquarePostSkeleton = Object.assign(_sfc_main, { __name: "SquarePostSkeleton" });
|
||||
const __nuxt_component_0 = Object.assign(_sfc_main, { __name: "SquarePostSkeleton" });
|
||||
const loadGray = "" + __buildAssetsURL("gray.CKu3bSoY.jpg");
|
||||
|
||||
export { SquarePostSkeleton as S, loadGray as l };
|
||||
export { __nuxt_component_0 as _, loadGray as l };
|
||||
@@ -1,246 +0,0 @@
|
||||
import { ref, reactive, computed } from 'vue';
|
||||
import { cloneDeep } from 'lodash-es';
|
||||
import { am as supabaseService } from './server.mjs';
|
||||
|
||||
const getOneFeature = async (id) => supabaseService.fetch("attributes", "select", {
|
||||
columns: "*, attribute_values(*)",
|
||||
field: "id",
|
||||
value: id
|
||||
});
|
||||
const previewImg = ref();
|
||||
const loading = ref(false);
|
||||
const priceType = ref(1);
|
||||
let temp = [];
|
||||
const defaultVariant = ref();
|
||||
const myAttributeValue = ref([]);
|
||||
const myAttributes = ref([]);
|
||||
const mediaFilesUrl = ref([]);
|
||||
const original = ref({ url: void 0, index: 0 });
|
||||
const originalFile = ref();
|
||||
ref();
|
||||
const items = ref([]);
|
||||
const variants = ref([]);
|
||||
const selectedFeatures = ref([]);
|
||||
ref([]);
|
||||
const formFields = reactive(
|
||||
{
|
||||
title_fa: "",
|
||||
title: "",
|
||||
price: 0,
|
||||
body: "",
|
||||
is_show: true,
|
||||
is_active: true,
|
||||
box_size: 0,
|
||||
sell_type: "numeric",
|
||||
original_image: void 0,
|
||||
product_attributes: [],
|
||||
files: [],
|
||||
price_type: "manual",
|
||||
auto_calculate: false,
|
||||
sku: null,
|
||||
created_at: void 0,
|
||||
updated_at: void 0,
|
||||
deleted_at: null,
|
||||
count_order: void 0,
|
||||
count_fav: void 0,
|
||||
count_view: void 0,
|
||||
min_price: void 0,
|
||||
max_price: void 0,
|
||||
type: "simple",
|
||||
owner_id: void 0,
|
||||
users: void 0,
|
||||
saved: [],
|
||||
variants: [],
|
||||
code: void 0,
|
||||
brand_id: void 0,
|
||||
// brand: undefined,
|
||||
collection_id: void 0,
|
||||
discount: void 0,
|
||||
discount_type: void 0,
|
||||
// main_slider: false,
|
||||
// bottom_slider: false,
|
||||
id: void 0,
|
||||
count: void 0,
|
||||
display_price: void 0,
|
||||
// weight: null,
|
||||
meta: void 0,
|
||||
seo_title: void 0,
|
||||
description: void 0,
|
||||
product_type: void 0,
|
||||
weight: void 0,
|
||||
rial_fee: void 0,
|
||||
percent_fee: void 0
|
||||
}
|
||||
);
|
||||
const baseFormFields = cloneDeep(formFields);
|
||||
function resetFormFields() {
|
||||
Object.assign(formFields, baseFormFields);
|
||||
myAttributes.value = [];
|
||||
myAttributeValue.value = [];
|
||||
variants.value = [];
|
||||
priceType.value = 1;
|
||||
original.value = { url: void 0, index: 0 };
|
||||
mediaFilesUrl.value = [];
|
||||
defaultVariant.value = void 0;
|
||||
previewImg.value = void 0;
|
||||
}
|
||||
const files = computed(() => {
|
||||
let tempMedia = cloneDeep(mediaFilesUrl.value);
|
||||
tempMedia?.splice(0, 0, original.value);
|
||||
tempMedia = tempMedia?.map((value, index) => {
|
||||
return value;
|
||||
});
|
||||
console.log(tempMedia);
|
||||
return tempMedia;
|
||||
});
|
||||
function addToVariants() {
|
||||
let attrIds = [];
|
||||
let attrNames = [];
|
||||
myAttributeValue.value?.forEach((attributeValue) => {
|
||||
if (!attributeValue.valueId) ;
|
||||
attrIds.push(attributeValue.valueId);
|
||||
attrNames.push(attributeValue.valueName);
|
||||
});
|
||||
console.log(attrIds, myAttributeValue.value);
|
||||
formFields.variants?.push({
|
||||
id: void 0,
|
||||
attribute_values: [],
|
||||
attribute_values_name: [],
|
||||
price: 0,
|
||||
weight: 0,
|
||||
stock: 0,
|
||||
auto_calculate: false,
|
||||
discount_type: void 0,
|
||||
discount: void 0,
|
||||
is_default: false,
|
||||
sku: ""
|
||||
});
|
||||
console.log(variants, formFields.variants);
|
||||
}
|
||||
function updateMyAttrs(newValue, flag) {
|
||||
let tempAttributes = newValue;
|
||||
priceType.value = 1;
|
||||
myAttributes.value = [];
|
||||
myAttributeValue.value = [];
|
||||
console.log(newValue);
|
||||
console.log("why");
|
||||
let tempIndex = 0;
|
||||
let notShowInVarIndexArray = [];
|
||||
newValue?.forEach((x, index) => {
|
||||
console.log(x, index);
|
||||
if (x.show_in_variable) {
|
||||
priceType.value = 2;
|
||||
if (formFields.variants.length === 0)
|
||||
addToVariants();
|
||||
myAttributes.value.push({
|
||||
attributeId: x.id,
|
||||
name: x.name,
|
||||
values: x.new_feature,
|
||||
show: x.show_in_variable,
|
||||
valueKey: index
|
||||
});
|
||||
x.new_feature?.forEach((val, i) => {
|
||||
myAttributeValue.value.push({
|
||||
attributeName: x.name,
|
||||
attributeId: x.id,
|
||||
valueId: val.id,
|
||||
valueName: val.value,
|
||||
valueKey: tempIndex
|
||||
});
|
||||
});
|
||||
} else {
|
||||
notShowInVarIndexArray.push(index);
|
||||
variants.value?.forEach((val) => {
|
||||
console.log("val.attribute_values>", index);
|
||||
console.log(val.attribute_values);
|
||||
console.log("myAttributes.value.length " + tempAttributes.length);
|
||||
console.log("val.attribute_values.length " + val.attribute_values.length);
|
||||
if (tempAttributes.length > val.attribute_values.length && val.attribute_values[index] != null) {
|
||||
if (val.attribute_values.length != index) {
|
||||
val.attribute_values.splice(index, 0, null);
|
||||
val.attribute_values_name.splice(index, 0, null);
|
||||
} else {
|
||||
val.attribute_values = [...val.attribute_values, null];
|
||||
val.attribute_values_name = [...val.attribute_values_name, null];
|
||||
}
|
||||
}
|
||||
console.log("val.attribute_values After slice>" + index);
|
||||
console.log(val.attribute_values);
|
||||
});
|
||||
}
|
||||
tempIndex++;
|
||||
variants.value?.forEach((val, ind) => {
|
||||
if (tempAttributes.length > val.attribute_values.length && val.attribute_values[index] != null) {
|
||||
val.attribute_values = [...val.attribute_values, null];
|
||||
val.attribute_values_name = [...val.attribute_values_name, null];
|
||||
}
|
||||
});
|
||||
console.log("variants+++");
|
||||
});
|
||||
console.log("tempIndexArray");
|
||||
console.log(notShowInVarIndexArray);
|
||||
sortAttributeByValueKey(variants.value);
|
||||
if (notShowInVarIndexArray.length != 0) {
|
||||
variants.value?.forEach((val) => {
|
||||
notShowInVarIndexArray.forEach((y) => {
|
||||
val.attribute_values[y] = null;
|
||||
val.attribute_values_name[y] = null;
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
function sortAttributeByValueKey(x) {
|
||||
console.log("444444", x);
|
||||
x?.forEach((val, ind) => {
|
||||
temp = cloneDeep(val.attribute_values);
|
||||
if (myAttributes.value.length <= temp.length) {
|
||||
temp?.forEach((x2, i) => {
|
||||
myAttributeValue.value?.forEach((item, index) => {
|
||||
if (temp.find((e) => e == item?.valueId) && val.attribute_values[item.valueKey] != temp.find((e) => e == item.valueId)) {
|
||||
val.attribute_values[item.valueKey] = temp.find((e) => e == item.valueId);
|
||||
val.attribute_values_name[item.valueKey] = item.valueName;
|
||||
}
|
||||
console.log(val?.attribute_values + "AFTER CHANGE ITEM" + ind);
|
||||
});
|
||||
});
|
||||
}
|
||||
if (ind == 0) {
|
||||
defaultVariant.value = showDefaultVal(val.attribute_values_name);
|
||||
}
|
||||
if (val.is_default) {
|
||||
console.log("val.attribute_values", val.attribute_values_name);
|
||||
defaultVariant.value = showDefaultVal(val.attribute_values_name);
|
||||
console.log("defaultVariant", defaultVariant.value);
|
||||
}
|
||||
});
|
||||
}
|
||||
function showDefaultVal(val) {
|
||||
console.log(val, defaultVariant.value);
|
||||
let res = "";
|
||||
val.forEach((x, index) => {
|
||||
if (x) return res += (index !== 0 ? " - " : "") + x;
|
||||
});
|
||||
return res;
|
||||
}
|
||||
async function setItems(new_features) {
|
||||
let featureTemp;
|
||||
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
|
||||
});
|
||||
console.log("gggggggggggggggggggggggggggggggg", feature);
|
||||
items.value.push(feature);
|
||||
}
|
||||
const findEdit = (val) => {
|
||||
console.log("fsdfuygiuhguighuisdf", val);
|
||||
return val.split("-")[0] === "edit";
|
||||
};
|
||||
const firstFiles = ref([]);
|
||||
ref([]);
|
||||
|
||||
export { files as a, setItems as b, formFields as c, findEdit as d, originalFile as e, firstFiles as f, items as i, loading as l, mediaFilesUrl as m, original as o, previewImg as p, resetFormFields as r, selectedFeatures as s, updateMyAttrs as u, variants as v };
|
||||
@@ -0,0 +1,142 @@
|
||||
import { a as useConfigStore, aR as useRoute, aW as useRouter, _ as __nuxt_component_0 } from './server.mjs';
|
||||
import { defineComponent, ref, computed, watch, nextTick, shallowRef, useSSRContext } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { ssrRenderComponent } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/server-renderer/index.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-DgF2C5vR.mjs';
|
||||
import { differenceBy, cloneDeep } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/lodash-es/lodash.js';
|
||||
|
||||
const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
__name: "index",
|
||||
__ssrInlineRender: true,
|
||||
emits: ["update:visible", "update:isEdit", "success"],
|
||||
setup(__props, { emit: __emit }) {
|
||||
useConfigStore();
|
||||
ref("1");
|
||||
const collections = ref(null);
|
||||
ref(false);
|
||||
ref(false);
|
||||
useRoute();
|
||||
useRouter();
|
||||
const loading = ref(false);
|
||||
const dragKey = ref(0);
|
||||
let selectedFeaturesLength = 0;
|
||||
const childCollections = ref(null);
|
||||
computed(() => {
|
||||
const parentId = parentCollectionId.value;
|
||||
if (!parentId) return false;
|
||||
const parentCollection = collections.value?.find((c) => c.id === parentId);
|
||||
childCollections.value = parentCollection?.children;
|
||||
return parentCollection?.children?.length > 0;
|
||||
});
|
||||
const parentCollectionId = computed({
|
||||
get() {
|
||||
return formFields?.collections?.parent_id || formFields?.collections?.id;
|
||||
},
|
||||
set(newVal) {
|
||||
console.log(newVal, "cooool");
|
||||
formFields.collections.parent_id = newVal;
|
||||
formFields.collections.id = void 0;
|
||||
formFields.collection_id = newVal;
|
||||
}
|
||||
});
|
||||
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)
|
||||
return void 0;
|
||||
return formFields?.collections?.parent_id ? formFields?.collections.id : void 0;
|
||||
},
|
||||
set(newVal) {
|
||||
formFields.collections.id = newVal;
|
||||
formFields.collection_id = newVal;
|
||||
if (!formFields.collection_id)
|
||||
formFields.collection_id = formFields?.collections?.parent_id;
|
||||
}
|
||||
});
|
||||
watch(selectedFeatures, async (new_features, oldFeatures) => {
|
||||
if (new_features?.length > selectedFeaturesLength) {
|
||||
try {
|
||||
loading.value = true;
|
||||
await setItems(new_features);
|
||||
selectedFeaturesLength = selectedFeatures.value.length;
|
||||
dragKey.value++;
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
} finally {
|
||||
loading.value = false;
|
||||
}
|
||||
} else {
|
||||
const deletedObject = differenceBy(oldFeatures, new_features);
|
||||
selectedFeaturesLength = selectedFeatures.value.length;
|
||||
const index = items.value.findIndex((x) => deletedObject[0] === x.id);
|
||||
if (index !== -1) {
|
||||
variants.value.forEach((val) => {
|
||||
val.attribute_values[index] = null;
|
||||
});
|
||||
items.value.splice(index, 1);
|
||||
dragKey.value++;
|
||||
}
|
||||
}
|
||||
}, { deep: true });
|
||||
watch(
|
||||
items,
|
||||
(newValue) => {
|
||||
updateMyAttrs(items.value);
|
||||
},
|
||||
{ deep: true }
|
||||
);
|
||||
watch(() => formFields.variants, () => {
|
||||
variants.value = formFields.variants;
|
||||
}, { 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 (!variant) return;
|
||||
const attrValues = variant.attribute_values || {};
|
||||
myAttributes.value.forEach((attr, attrIndex) => {
|
||||
if (!attr?.valueKey) return;
|
||||
["variants", variantIndex, "attribute_values", attr.valueKey];
|
||||
const currentValue = attrValues[attr.valueKey];
|
||||
if (currentValue != null && currentValue !== "" && currentValue !== void 0) {
|
||||
for (let i = 0; i < attrIndex; i++) {
|
||||
const prevAttr = myAttributes.value[i];
|
||||
if (!prevAttr?.valueKey) continue;
|
||||
const prevFieldName = ["variants", variantIndex, "attribute_values", prevAttr.valueKey];
|
||||
formRef.value.validateFields([prevFieldName]).catch(() => {
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
}, { deep: true });
|
||||
useProductStore();
|
||||
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));
|
||||
};
|
||||
}
|
||||
});
|
||||
const _sfc_setup = _sfc_main.setup;
|
||||
_sfc_main.setup = (props, ctx) => {
|
||||
const ssrContext = useSSRContext();
|
||||
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("views/add/product/information/index.vue");
|
||||
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
||||
};
|
||||
|
||||
export { _sfc_main as _ };
|
||||
+110
-62
@@ -1,15 +1,15 @@
|
||||
import { defineComponent, ref, watch, resolveDirective, unref, withCtx, mergeProps, createVNode, toDisplayString, createBlock, createCommentVNode, openBlock, withDirectives, withModifiers, Fragment, renderList, createTextVNode, useSSRContext } from 'vue';
|
||||
import { ssrRenderComponent, ssrRenderAttr, ssrInterpolate, ssrRenderAttrs, ssrGetDirectiveProps, ssrRenderList } from 'vue/server-renderer';
|
||||
import { _ as __nuxt_component_3 } from './CropperModal-LZ_g4b9G.mjs';
|
||||
import { defineComponent, ref, watch, resolveDirective, unref, withCtx, mergeProps, createVNode, toDisplayString, createBlock, createCommentVNode, openBlock, withDirectives, withModifiers, Fragment, renderList, createTextVNode, useSSRContext } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { ssrRenderComponent, ssrRenderAttr, ssrInterpolate, ssrRenderAttrs, ssrGetDirectiveProps, ssrRenderList } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/server-renderer/index.mjs';
|
||||
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, aE as useRoute, 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, i as items, e as originalFile } from './handle-DppcF3zW.mjs';
|
||||
import { u as useProductStore } from './product-BPTplX4_.mjs';
|
||||
import { i as img_gif } from './post_loading-BiySI7bp.mjs';
|
||||
import { Camera } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@capacitor/camera/dist/plugin.cjs.js';
|
||||
import { Capacitor } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@capacitor/core/dist/index.cjs.js';
|
||||
import { u as useRouter$1, a as useConfigStore, aR as useRoute, aX 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-DgF2C5vR.mjs';
|
||||
import { i as img_gif } from './post_loading-CMOcYm9B.mjs';
|
||||
import { B as BasicIconOld } from './BasicIconOld-93vAWohq.mjs';
|
||||
import { S as Spin } from './index-CRte5P_X.mjs';
|
||||
import { _ as __nuxt_component_1, a as __nuxt_component_2 } from './RadioButton-C4H4Dw11.mjs';
|
||||
import { S as Spin } from './index-BMAjr3Fm.mjs';
|
||||
import { _ as __nuxt_component_1, a as __nuxt_component_2 } from './RadioButton-DTAY-M4c.mjs';
|
||||
|
||||
const maxFiles = 10;
|
||||
const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
@@ -23,17 +23,28 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
const fileInputLimited = ref(null);
|
||||
const imageSelected = ref(-2);
|
||||
const route = useRoute();
|
||||
const cropperVisible = ref(false);
|
||||
const cropping = ref();
|
||||
function onBackPage() {
|
||||
router.push({ name: "home" });
|
||||
resetFormFields();
|
||||
useProductStore().mediaFiles = [];
|
||||
items.value = [];
|
||||
}
|
||||
function openCropper() {
|
||||
cropping.value = previewImg.value;
|
||||
previewImgPos.value = mediaFilesUrl.value.findIndex((x) => x === previewImg.value);
|
||||
if (original.value.url === previewImg.value) previewImgPos.value = -2;
|
||||
cropperVisible.value = true;
|
||||
}
|
||||
watch(mediaFilesUrl, (files2) => {
|
||||
if (mediaFilesUrl.value?.length === 0) previewImg.value = "";
|
||||
else if (mediaFilesUrl.value?.length === 1) previewImg.value = mediaFilesUrl.value[0].url;
|
||||
else if (mediaFilesUrl.value?.length === 1) previewImg.value = mediaFilesUrl.value[0]?.url;
|
||||
else if (files2) {
|
||||
previewImg.value = files2[files2?.length - 1]?.url;
|
||||
console.log(imageSelected.value, files2);
|
||||
if (imageSelected.value == -2)
|
||||
previewImg.value = files2[files2?.length - 1]?.url;
|
||||
else previewImg.value = files2[imageSelected.value]?.url;
|
||||
}
|
||||
}, { deep: true });
|
||||
watch(original, (file) => {
|
||||
@@ -48,7 +59,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
router.push({ name: "add-product-infProduct" });
|
||||
} else {
|
||||
console.log(useProductStore().originalFile, useProductStore().mediaFiles);
|
||||
api$1.warn(config.useString("addAtLeastOneMedia"));
|
||||
api$1.warn(config.useString("addOriginalMedia"));
|
||||
}
|
||||
console.log(useProductStore().originalFile, useProductStore().mediaFiles);
|
||||
}
|
||||
@@ -121,7 +132,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
}, 10);
|
||||
};
|
||||
}
|
||||
console.log("dsacbnkjsdkmc,loskock,sdds", original.value);
|
||||
} catch (error) {
|
||||
console.error("Error selecting main media:", error);
|
||||
}
|
||||
@@ -162,7 +172,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
} else
|
||||
useProductStore().mediaFiles.push({ file: files2[0], index: mediaFilesUrl.value[imageSelected.value].index });
|
||||
useProductStore().mediaFiles.sort((a, b) => a.index - b.index);
|
||||
imageSelected.value = mediaFilesUrl.value.length - 1;
|
||||
}
|
||||
fileInput.value.value = "";
|
||||
fileInputLimited.value.value = "";
|
||||
@@ -189,30 +198,45 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
original.value.url = void 0;
|
||||
originalFile.value = void 0;
|
||||
};
|
||||
useRouteStore();
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
const _component_a_spin = Spin;
|
||||
const _component_a_radio_group = __nuxt_component_1;
|
||||
const _component_a_radio_button = __nuxt_component_2;
|
||||
const _component_CropperModal = __nuxt_component_3;
|
||||
const _directive_lazy = resolveDirective("lazy");
|
||||
let _temp0, _temp1, _temp2;
|
||||
_push(`<!--[-->`);
|
||||
_push(`<!--[--><div class="h-screen bg-black">`);
|
||||
_push(ssrRenderComponent(_component_a_spin, { spinning: unref(loading) }, {
|
||||
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
||||
if (_push2) {
|
||||
_push2(`<div class="w-full h-screen bg-black text-white"${_scopeId}><div class="flex 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="aspect-square flex items-center justify-center"${_scopeId}>`);
|
||||
_push2(`<div class="w-full h-full bg-black text-white"${_scopeId}><div class="sticky bg-black top-0 z-1"${_scopeId}><div class="flex 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="aspect-square flex items-center justify-center"${_scopeId}>`);
|
||||
if (unref(previewImg)) {
|
||||
_push2(`<div class="relative w-full"${_scopeId}><img${ssrRenderAttrs(_temp0 = mergeProps({
|
||||
alt: unref(config).appName.en,
|
||||
class: "w-full object-scale-down aspect-square"
|
||||
}, ssrGetDirectiveProps(_ctx, _directive_lazy, { src: unref(previewImg), loading: unref(img_gif), error: unref(img_gif) })))}${_scopeId}>${"textContent" in _temp0 ? ssrInterpolate(_temp0.textContent) : _temp0.innerHTML ?? ""}<div class="flex absolute shadow-black shadow-sm rounded-full bottom-2 mx-3"${_scopeId}><div class="flex bg-primary items-center rounded-full py-1 gap-2 px-2"${_scopeId}>`);
|
||||
_push2(ssrRenderComponent(BasicIconOld, { icon: "vuesax-linear:gallery-edit" }, null, _parent2, _scopeId));
|
||||
_push2(`<span${_scopeId}>${ssrInterpolate(unref(config).useString("edit"))}</span></div></div></div>`);
|
||||
}, ssrGetDirectiveProps(_ctx, _directive_lazy, { src: unref(previewImg), loading: unref(img_gif), error: unref(img_gif) })))}${_scopeId}>${"textContent" in _temp0 ? ssrInterpolate(_temp0.textContent) : _temp0.innerHTML ?? ""}`);
|
||||
if (unref(previewImg)) {
|
||||
_push2(`<div class="flex absolute gap-2 right-5 bottom-5"${_scopeId}><div class="flex bg-black/80 items-center rounded gap-2 p-2"${_scopeId}>`);
|
||||
_push2(ssrRenderComponent(BasicIconOld, { icon: "vuesax-linear:crop" }, null, _parent2, _scopeId));
|
||||
_push2(`</div><div class="flex bg-black/80 items-center rounded gap-2 p-2"${_scopeId}>`);
|
||||
_push2(ssrRenderComponent(BasicIconOld, { icon: "vuesax-linear:gallery-edit" }, null, _parent2, _scopeId));
|
||||
_push2(`</div></div>`);
|
||||
} else {
|
||||
_push2(`<!---->`);
|
||||
}
|
||||
if (unref(previewImg)) {
|
||||
_push2(`<div class="flex absolute left-5 bottom-0"${_scopeId}></div>`);
|
||||
} else {
|
||||
_push2(`<!---->`);
|
||||
}
|
||||
_push2(`</div>`);
|
||||
} else if (unref(mediaFilesUrl)?.length === 0) {
|
||||
_push2(`<p class="empty-state"${_scopeId}>${ssrInterpolate(unref(config).useString("tapPlusToAdd"))}</p>`);
|
||||
} else {
|
||||
_push2(`<!---->`);
|
||||
}
|
||||
_push2(`</div><div class="media-picker"${_scopeId}><div class="drop-area"${_scopeId}><div class="media-grid"${_scopeId}>`);
|
||||
_push2(`</div></div><div class="media-picker"${_scopeId}><div class="drop-area overflow-y-auto"${_scopeId}><div class="media-grid pb-16"${_scopeId}>`);
|
||||
if (unref(original).url) {
|
||||
_push2(`<div class="media-container border-1 border-solid border-primary"${_scopeId}><img${ssrRenderAttrs(_temp1 = mergeProps({ class: "media-preview" }, ssrGetDirectiveProps(_ctx, _directive_lazy, { src: unref(original).url, loading: unref(img_gif), error: unref(img_gif) })))}${_scopeId}>${"textContent" in _temp1 ? ssrInterpolate(_temp1.textContent) : _temp1.innerHTML ?? ""}<button class="remove-btn"${_scopeId}>✖</button></div>`);
|
||||
} else {
|
||||
@@ -240,55 +264,69 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
_push2(`</div></div><input type="file" accept="image/*,video/*" multiple hidden${_scopeId}><input type="file" accept="image/*,video/*" hidden${_scopeId}></div></div>`);
|
||||
} else {
|
||||
return [
|
||||
createVNode("div", { class: "w-full h-screen bg-black text-white" }, [
|
||||
createVNode("div", { class: "flex w-full p-4 gap-8 justify-between items-center" }, [
|
||||
createVNode("div", { class: "flex gap-8 items-center" }, [
|
||||
createVNode("img", {
|
||||
src: _imports_0,
|
||||
alt: unref(config).appName.en,
|
||||
class: "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",
|
||||
onClick: goNextPage
|
||||
}, toDisplayString(unref(config).useString("next")), 1)
|
||||
]),
|
||||
createVNode("div", { class: "aspect-square flex items-center justify-center" }, [
|
||||
unref(previewImg) ? (openBlock(), createBlock("div", {
|
||||
key: 0,
|
||||
class: "relative w-full"
|
||||
}, [
|
||||
withDirectives(createVNode("img", {
|
||||
alt: unref(config).appName.en,
|
||||
class: "w-full object-scale-down aspect-square"
|
||||
}, null, 8, ["alt"]), [
|
||||
[_directive_lazy, { src: unref(previewImg), loading: unref(img_gif), error: unref(img_gif) }]
|
||||
createVNode("div", { class: "w-full h-full bg-black text-white" }, [
|
||||
createVNode("div", { class: "sticky bg-black top-0 z-1" }, [
|
||||
createVNode("div", { class: "flex w-full p-4 gap-8 justify-between items-center" }, [
|
||||
createVNode("div", { class: "flex gap-8 items-center" }, [
|
||||
createVNode("img", {
|
||||
src: _imports_0,
|
||||
alt: unref(config).appName.en,
|
||||
class: "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: "flex absolute shadow-black shadow-sm rounded-full bottom-2 mx-3" }, [
|
||||
createVNode("div", {
|
||||
onClick: editImage,
|
||||
class: "flex bg-primary items-center rounded-full py-1 gap-2 px-2"
|
||||
createVNode("div", {
|
||||
class: "text-primary text-sm",
|
||||
onClick: goNextPage
|
||||
}, toDisplayString(unref(config).useString("next")), 1)
|
||||
]),
|
||||
createVNode("div", { class: "aspect-square flex items-center justify-center" }, [
|
||||
unref(previewImg) ? (openBlock(), createBlock("div", {
|
||||
key: 0,
|
||||
class: "relative w-full"
|
||||
}, [
|
||||
withDirectives(createVNode("img", {
|
||||
alt: unref(config).appName.en,
|
||||
class: "w-full object-scale-down aspect-square"
|
||||
}, null, 8, ["alt"]), [
|
||||
[_directive_lazy, { src: unref(previewImg), loading: unref(img_gif), error: unref(img_gif) }]
|
||||
]),
|
||||
unref(previewImg) ? (openBlock(), createBlock("div", {
|
||||
key: 0,
|
||||
class: "flex absolute gap-2 right-5 bottom-5"
|
||||
}, [
|
||||
createVNode(BasicIconOld, { icon: "vuesax-linear:gallery-edit" }),
|
||||
createVNode("span", null, toDisplayString(unref(config).useString("edit")), 1)
|
||||
])
|
||||
])
|
||||
])) : unref(mediaFilesUrl)?.length === 0 ? (openBlock(), createBlock("p", {
|
||||
key: 1,
|
||||
class: "empty-state"
|
||||
}, toDisplayString(unref(config).useString("tapPlusToAdd")), 1)) : createCommentVNode("", true)
|
||||
createVNode("div", {
|
||||
onClick: openCropper,
|
||||
class: "flex bg-black/80 items-center rounded gap-2 p-2"
|
||||
}, [
|
||||
createVNode(BasicIconOld, { icon: "vuesax-linear:crop" })
|
||||
]),
|
||||
createVNode("div", {
|
||||
onClick: editImage,
|
||||
class: "flex bg-black/80 items-center rounded gap-2 p-2"
|
||||
}, [
|
||||
createVNode(BasicIconOld, { icon: "vuesax-linear:gallery-edit" })
|
||||
])
|
||||
])) : createCommentVNode("", true),
|
||||
unref(previewImg) ? (openBlock(), createBlock("div", {
|
||||
key: 1,
|
||||
class: "flex absolute left-5 bottom-0"
|
||||
})) : createCommentVNode("", true)
|
||||
])) : unref(mediaFilesUrl)?.length === 0 ? (openBlock(), createBlock("p", {
|
||||
key: 1,
|
||||
class: "empty-state"
|
||||
}, toDisplayString(unref(config).useString("tapPlusToAdd")), 1)) : createCommentVNode("", true)
|
||||
])
|
||||
]),
|
||||
createVNode("div", { class: "media-picker" }, [
|
||||
createVNode("div", {
|
||||
class: "drop-area",
|
||||
class: "drop-area overflow-y-auto",
|
||||
onDragover: withModifiers(() => {
|
||||
}, ["prevent"]),
|
||||
onDrop: handleDrop
|
||||
}, [
|
||||
createVNode("div", { class: "media-grid" }, [
|
||||
createVNode("div", { class: "media-grid pb-16" }, [
|
||||
unref(original).url ? (openBlock(), createBlock("div", {
|
||||
key: 0,
|
||||
class: "media-container border-1 border-solid border-primary",
|
||||
@@ -372,7 +410,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
_: 1
|
||||
}, _parent));
|
||||
if (!unref(findEdit)(unref(route).name)) {
|
||||
_push(`<div class="absolute bottom-5 right-5 addStyle">`);
|
||||
_push(`<div class="fixed bottom-5 right-5 addStyle">`);
|
||||
_push(ssrRenderComponent(_component_a_radio_group, {
|
||||
value: type.value,
|
||||
"onUpdate:value": ($event) => type.value = $event,
|
||||
@@ -464,6 +502,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(`</div>`);
|
||||
_push(ssrRenderComponent(_component_CropperModal, {
|
||||
visible: cropperVisible.value,
|
||||
"onUpdate:visible": ($event) => cropperVisible.value = $event,
|
||||
img: unref(previewImg),
|
||||
mode: "free",
|
||||
aspectRatio: 4 / 4,
|
||||
resizable: true,
|
||||
onCropped: unref(handleProductCropped)
|
||||
}, null, _parent));
|
||||
_push(`<!--]-->`);
|
||||
};
|
||||
}
|
||||
+46
-45
@@ -1,60 +1,61 @@
|
||||
import { defineComponent, ref, reactive, mergeProps, unref, withCtx, createVNode, createBlock, openBlock, createTextVNode, toDisplayString, useSSRContext } from 'vue';
|
||||
import { ssrRenderComponent, ssrRenderAttrs, ssrInterpolate } from 'vue/server-renderer';
|
||||
import { defineComponent, ref, reactive, mergeProps, unref, withCtx, createVNode, createBlock, openBlock, createTextVNode, toDisplayString, useSSRContext } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { ssrRenderComponent, ssrRenderAttrs, ssrInterpolate } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/server-renderer/index.mjs';
|
||||
import { u as useRouter$1, a as useConfigStore, b as useUserStore, f as generateOtp, d as api$1, v as verifyOtp, c as setToken, s as supabase, i as setPassword, j as setBirthday, k as setNames } from './server.mjs';
|
||||
import OtpInput from 'vue3-otp-input';
|
||||
import { B as BasicInput } from './BasicInput-DrA-e4wX.mjs';
|
||||
import { B as BaseDatePicker, a as BaseDatePickerJalali } from './BaseDatePicker-C2Rv3dvV.mjs';
|
||||
import { B as BasicButton } from './BasicButton-QGDeiwgb.mjs';
|
||||
import OtpInput from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue3-otp-input/dist/vue3-otp-input.js';
|
||||
import { B as BasicInput } from './BasicInput-rlXkJMLE.mjs';
|
||||
import { B as BaseDatePicker, a as BaseDatePickerJalali } from './BaseDatePicker-B4zD8-v-.mjs';
|
||||
import { B as BasicButton } from './BasicButton-DhQvSD8U.mjs';
|
||||
import { B as BasicIconOld } from './BasicIconOld-93vAWohq.mjs';
|
||||
import { _ as __nuxt_component_1 } from './FormItem-2KfKSOCd.mjs';
|
||||
import '../_/nitro.mjs';
|
||||
import { _ as __nuxt_component_1 } from './FormItem-CMWnBuQX.mjs';
|
||||
import 'node:http';
|
||||
import 'node:https';
|
||||
import '../nitro/nitro.mjs';
|
||||
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 '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/lodash-es/lodash.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 'vue-bundle-renderer/runtime';
|
||||
import 'unhead/server';
|
||||
import 'devalue';
|
||||
import 'unhead/utils';
|
||||
import './usePrice-B-5-jXKQ.mjs';
|
||||
import './index-B8JfwQ3c.mjs';
|
||||
import './FormItemContext-eb0AodWH.mjs';
|
||||
import './index-C8EZBqzI.mjs';
|
||||
import 'lodash-es/isPlainObject.js';
|
||||
import 'resize-observer-polyfill';
|
||||
import './index-C9wXCwkF.mjs';
|
||||
import 'dom-align';
|
||||
import 'moment-jalaali';
|
||||
import 'dayjalali';
|
||||
import './index-CzRefuj3.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';
|
||||
import './usePrice-_QzChhgO.mjs';
|
||||
import './index-G65aBv4F.mjs';
|
||||
import './FormItemContext-BlKvWASA.mjs';
|
||||
import './index-BGahPE0Z.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/lodash-es/isPlainObject.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/resize-observer-polyfill/dist/ResizeObserver.js';
|
||||
import './index-Bn4rLj9V.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/dom-align/dist-node/index.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/moment-jalaali/index.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/dayjalali/dist/index.js';
|
||||
import './index-CAZlc_qy.mjs';
|
||||
import './useMergedState-BZEfJ8Fl.mjs';
|
||||
import './move-C58xppXd.mjs';
|
||||
import './shallowequal-BCwuz4ga.mjs';
|
||||
import './move-jlA6kUbh.mjs';
|
||||
import './shallowequal-BEyWmMEh.mjs';
|
||||
import './_plugin-vue_export-helper-1tPrXgE0.mjs';
|
||||
import './index-CRte5P_X.mjs';
|
||||
import 'throttle-debounce';
|
||||
import 'lodash-es/cloneDeep.js';
|
||||
import 'async-validator';
|
||||
import 'lodash-es/find.js';
|
||||
import './collapseMotion-cQ2SGjCA.mjs';
|
||||
import './index-BMAjr3Fm.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/throttle-debounce/esm/index.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/lodash-es/cloneDeep.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/async-validator/dist-node/index.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/lodash-es/find.js';
|
||||
|
||||
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
||||
__name: "index",
|
||||
@@ -0,0 +1,93 @@
|
||||
import { defineComponent, useSSRContext } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { ssrRenderComponent } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/server-renderer/index.mjs';
|
||||
import { _ as _sfc_main$1 } from './index-bO_TrgvB.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@ant-design/icons-vue/lib/index.js';
|
||||
import './BasicIconOld-93vAWohq.mjs';
|
||||
import './_plugin-vue_export-helper-1tPrXgE0.mjs';
|
||||
import './server.mjs';
|
||||
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/lodash-es/lodash.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 '../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';
|
||||
import './empty_user-DSxcM_ac.mjs';
|
||||
import './inputRules-Cr4Uiro2.mjs';
|
||||
import './BasicInput-rlXkJMLE.mjs';
|
||||
import './usePrice-_QzChhgO.mjs';
|
||||
import './index-G65aBv4F.mjs';
|
||||
import './FormItemContext-BlKvWASA.mjs';
|
||||
import './index-BGahPE0Z.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/lodash-es/isPlainObject.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/resize-observer-polyfill/dist/ResizeObserver.js';
|
||||
import './index-Bn4rLj9V.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/dom-align/dist-node/index.js';
|
||||
import './BaseDatePicker-B4zD8-v-.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/moment-jalaali/index.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/dayjalali/dist/index.js';
|
||||
import './index-CAZlc_qy.mjs';
|
||||
import './useMergedState-BZEfJ8Fl.mjs';
|
||||
import './move-jlA6kUbh.mjs';
|
||||
import './shallowequal-BEyWmMEh.mjs';
|
||||
import './index-BHPit4CX.mjs';
|
||||
import './close_light-DbrEdRZI.mjs';
|
||||
import './FormItem-CMWnBuQX.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/lodash-es/cloneDeep.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/async-validator/dist-node/index.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/lodash-es/find.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/lodash-es/isEqual.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/compute-scroll-into-view/dist/index.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/lodash-es/intersection.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/lodash-es/debounce.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/lodash-es/omit.js';
|
||||
import './index-m5qbBl98.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@vueuse/gesture/dist/index.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@headlessui/vue/dist/headlessui.esm.js';
|
||||
import './index-BWBnVq-W.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/framesync/dist/es/index.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/popmotion/dist/es/index.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/style-value-types/dist/es/index.mjs';
|
||||
import './BasicButton-DhQvSD8U.mjs';
|
||||
import './index-BMAjr3Fm.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/throttle-debounce/esm/index.js';
|
||||
import './InstaInput-CLAxMFVK.mjs';
|
||||
|
||||
const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
__name: "index",
|
||||
__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/edit/index.vue");
|
||||
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
||||
};
|
||||
|
||||
export { _sfc_main as default };
|
||||
+34
-22
@@ -1,12 +1,11 @@
|
||||
import { defineComponent, computed, ref, withAsyncContext, unref, useSSRContext } from 'vue';
|
||||
import { ssrRenderAttrs, ssrRenderClass, ssrRenderComponent, ssrInterpolate, ssrRenderList, ssrRenderStyle } from 'vue/server-renderer';
|
||||
import { B as BasicIconOld } from './BasicIconOld-93vAWohq.mjs';
|
||||
import { u as useRouter$1, a as useConfigStore, b as useUserStore, m as useIntersectionObserver, n as getToken, d as api$1 } from './server.mjs';
|
||||
import { P as Post, _ as _sfc_main$1 } from './PostCardSkeleton-CpE_rsE1.mjs';
|
||||
import { u as useUserPostStore } from './userPostsStore-gFQVmaju.mjs';
|
||||
import { C as CommentAddEdit, _ as _sfc_main$2, d as deletePostLike, c as createPostLike } from './moreOptionProduct-_dlSUx_a.mjs';
|
||||
import { d as deleteSave, c as createSave } from './save-Dlu8lCVD.mjs';
|
||||
import { u as useAsyncData } from './asyncData-DMpxHWuQ.mjs';
|
||||
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, unref, useSSRContext } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { ssrRenderAttrs, ssrRenderClass, ssrRenderComponent, ssrInterpolate, ssrRenderList, ssrRenderStyle } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/server-renderer/index.mjs';
|
||||
import { P as Post, _ as _sfc_main$1 } from './PostCardSkeleton-DAYpOwlx.mjs';
|
||||
import { u as useUserPostStore } from './userPostsStore-CAxMlK-n.mjs';
|
||||
import { C as CommentAddEdit, _ as _sfc_main$2, d as deletePostLike, c as createPostLike } from './moreOptionProduct-CCkPwsB0.mjs';
|
||||
import { d as deleteSave, c as createSave } from './save-DsCeVVYe.mjs';
|
||||
import { u as useAsyncData } from './asyncData-Iix-4nDI.mjs';
|
||||
|
||||
const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
__name: "index",
|
||||
@@ -21,6 +20,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
const commentVisible = ref(false);
|
||||
const optionVisible = ref(false);
|
||||
const optionPostId = ref();
|
||||
const ownerPostId = ref();
|
||||
const addLikeLoading = ref(false);
|
||||
const userPostStore = useUserPostStore();
|
||||
computed(() => router.currentRoute.value.query.target || null);
|
||||
@@ -50,17 +50,26 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
addLikeLoading.value = false;
|
||||
}
|
||||
}
|
||||
function addCommentId(id) {
|
||||
userPostStore.posts[userPostStore.posts.findIndex((x) => x.id === commentPostId.value)]?.comments.push({ id });
|
||||
}
|
||||
function deleteCommentId() {
|
||||
userPostStore.posts[userPostStore.posts.findIndex((x) => x.id === commentPostId.value)]?.comments.splice(0, 1);
|
||||
}
|
||||
const observer = ref();
|
||||
useIntersectionObserver(observer, async ([{ isIntersecting }]) => {
|
||||
if (isIntersecting && !userPostStore.loading && !userPostStore.endPage) {
|
||||
const nextPage = userPostStore.currentPage + 1;
|
||||
console.log(userPostStore.endPage, nextPage, userPostStore.currentPage);
|
||||
const data2 = await userPostStore.loadPosts(userId.value, nextPage);
|
||||
userPostStore.loadStateNextPage(data2);
|
||||
}
|
||||
});
|
||||
const { data } = ([__temp, __restore] = withAsyncContext(async () => useAsyncData("productPostMainSeller", async () => {
|
||||
return await userPostStore.loadPosts(userId.value, 1);
|
||||
if (userPostStore.posts.length === 0) {
|
||||
return await userPostStore.loadPosts(userId.value, 1);
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
})), __temp = await __temp, __restore(), __temp);
|
||||
function handleSave(isSaved, id) {
|
||||
if (getToken()) {
|
||||
@@ -85,29 +94,30 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
optionPostId.value = id;
|
||||
optionVisible.value = true;
|
||||
}
|
||||
function openComment(id) {
|
||||
function openComment(id, owner_id) {
|
||||
commentPostId.value = id;
|
||||
commentVisible.value = true;
|
||||
ownerPostId.value = owner_id;
|
||||
}
|
||||
provide("ownerPostId", ownerPostId);
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
_push(`<div${ssrRenderAttrs(_attrs)}><div class="${ssrRenderClass(["z-20 fixed w-full top-0", !unref(config).isNightStore ? "bg-header-color" : "bg-header-color-dark "])}"><div class="px-4 flex items-center justify-between"><div class="flex gap-5 py-3">`);
|
||||
_push(ssrRenderComponent(BasicIconOld, {
|
||||
icon: unref(config).isRTL ? "vuesax-linear:arrow-right" : "vuesax-linear:arrow-left",
|
||||
onClick: ($event) => unref(router).back()
|
||||
}, null, _parent));
|
||||
const _component_ClientOnly = __nuxt_component_0;
|
||||
_push(`<div${ssrRenderAttrs(_attrs)}><div class="${ssrRenderClass(["z-20 fixed w-full top-0", !unref(config).isNightStore ? "bg-header-color" : "bg-header-color-dark "])}"><div class="px-4 flex items-center justify-between"><div class="flex gap-3 py-3 items-center">`);
|
||||
_push(ssrRenderComponent(_component_ClientOnly, null, {}, _parent));
|
||||
_push(`<div class="font-semibold">${ssrInterpolate(unref(config).sellerConfig?.store?.username)}</div></div></div></div><div class="pt-15 overflow-y-auto userPostScroll h-95vh pb-3rem scrollHome"><!--[-->`);
|
||||
ssrRenderList(unref(userPostStore).posts, (post, index) => {
|
||||
_push(`<div class="tg-item" style="${ssrRenderStyle({ transitionDelay: index * 50 + "ms" })}">`);
|
||||
_push(ssrRenderComponent(Post, {
|
||||
index,
|
||||
post,
|
||||
onOpenOption: openOption,
|
||||
onOpenComment: openComment,
|
||||
onHandleLike: handleLike,
|
||||
onHandleSave: handleSave,
|
||||
index,
|
||||
post,
|
||||
key: index,
|
||||
"scroll-save": "scrollPositionSeller",
|
||||
"add-like-loading": addLikeLoading.value
|
||||
}, null, _parent));
|
||||
_push(`</div>`);
|
||||
});
|
||||
_push(`<!--]-->`);
|
||||
if (unref(userPostStore).loading) {
|
||||
@@ -115,11 +125,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(`<div style="${ssrRenderStyle(!unref(userPostStore).loading ? null : { display: "none" })}" class="w-full opacity-0 relative"> load </div></div>`);
|
||||
_push(`<div class="w-full opacity-1 relative" style="${ssrRenderStyle(!unref(userPostStore).loading ? null : { display: "none" })}"> load </div></div>`);
|
||||
_push(ssrRenderComponent(CommentAddEdit, {
|
||||
id: commentPostId.value,
|
||||
open: commentVisible.value,
|
||||
"onUpdate:open": ($event) => commentVisible.value = $event
|
||||
"onUpdate:open": ($event) => commentVisible.value = $event,
|
||||
onAddCommentId: addCommentId,
|
||||
onDeleteCommentId: deleteCommentId
|
||||
}, null, _parent));
|
||||
_push(ssrRenderComponent(_sfc_main$2, {
|
||||
id: optionPostId.value,
|
||||
+94
-3
@@ -1,5 +1,6 @@
|
||||
import { H as genComponentStyleHook, W as genCompactItemStyle, I as classNames, J as merge, M as resetComponent, X as clearFix } from './server.mjs';
|
||||
import _extends from '@babel/runtime/helpers/esm/extends';
|
||||
import { D as genComponentStyleHook, S as genCompactItemStyle, E as classNames, F as merge, I as resetComponent, T as clearFix } from './server.mjs';
|
||||
import { nextTick } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import _extends from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@babel/runtime/helpers/esm/extends.js';
|
||||
|
||||
function getStatusClassNames(prefixCls, status, hasFeedback) {
|
||||
return classNames({
|
||||
@@ -11,6 +12,96 @@ function getStatusClassNames(prefixCls, status, hasFeedback) {
|
||||
});
|
||||
}
|
||||
const getMergedStatus = (contextStatus, customStatus) => customStatus || contextStatus;
|
||||
const genCollapseMotion = (token) => ({
|
||||
[token.componentCls]: {
|
||||
// For common/openAnimation
|
||||
[`${token.antCls}-motion-collapse-legacy`]: {
|
||||
overflow: "hidden",
|
||||
"&-active": {
|
||||
transition: `height ${token.motionDurationMid} ${token.motionEaseInOut},
|
||||
opacity ${token.motionDurationMid} ${token.motionEaseInOut} !important`
|
||||
}
|
||||
},
|
||||
[`${token.antCls}-motion-collapse`]: {
|
||||
overflow: "hidden",
|
||||
transition: `height ${token.motionDurationMid} ${token.motionEaseInOut},
|
||||
opacity ${token.motionDurationMid} ${token.motionEaseInOut} !important`
|
||||
}
|
||||
}
|
||||
});
|
||||
function hasClass(node, className) {
|
||||
if (node.classList) {
|
||||
return node.classList.contains(className);
|
||||
}
|
||||
const originClass = node.className;
|
||||
return ` ${originClass} `.indexOf(` ${className} `) > -1;
|
||||
}
|
||||
function addClass(node, className) {
|
||||
if (node.classList) {
|
||||
node.classList.add(className);
|
||||
} else {
|
||||
if (!hasClass(node, className)) {
|
||||
node.className = `${node.className} ${className}`;
|
||||
}
|
||||
}
|
||||
}
|
||||
function removeClass(node, className) {
|
||||
if (node.classList) {
|
||||
node.classList.remove(className);
|
||||
} else {
|
||||
if (hasClass(node, className)) {
|
||||
const originClass = node.className;
|
||||
node.className = ` ${originClass} `.replace(` ${className} `, " ");
|
||||
}
|
||||
}
|
||||
}
|
||||
const collapseMotion = function() {
|
||||
let name = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "ant-motion-collapse";
|
||||
let appear = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
|
||||
return {
|
||||
name,
|
||||
appear,
|
||||
css: true,
|
||||
onBeforeEnter: (node) => {
|
||||
node.style.height = "0px";
|
||||
node.style.opacity = "0";
|
||||
addClass(node, name);
|
||||
},
|
||||
onEnter: (node) => {
|
||||
nextTick(() => {
|
||||
node.style.height = `${node.scrollHeight}px`;
|
||||
node.style.opacity = "1";
|
||||
});
|
||||
},
|
||||
onAfterEnter: (node) => {
|
||||
if (node) {
|
||||
removeClass(node, name);
|
||||
node.style.height = null;
|
||||
node.style.opacity = null;
|
||||
}
|
||||
},
|
||||
onBeforeLeave: (node) => {
|
||||
addClass(node, name);
|
||||
node.style.height = `${node.offsetHeight}px`;
|
||||
node.style.opacity = null;
|
||||
},
|
||||
onLeave: (node) => {
|
||||
setTimeout(() => {
|
||||
node.style.height = "0px";
|
||||
node.style.opacity = "0";
|
||||
});
|
||||
},
|
||||
onAfterLeave: (node) => {
|
||||
if (node) {
|
||||
removeClass(node, name);
|
||||
if (node.style) {
|
||||
node.style.height = null;
|
||||
node.style.opacity = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
const genPlaceholderStyle = (color) => ({
|
||||
// Firefox
|
||||
"&::-moz-placeholder": {
|
||||
@@ -796,4 +887,4 @@ const useStyle = genComponentStyleHook("Input", (token) => {
|
||||
];
|
||||
});
|
||||
|
||||
export { getStatusClassNames as a, genBasicInputStyle as b, genStatusStyle as c, genPlaceholderStyle as d, genActiveStyle as e, genDisabledStyle as f, getMergedStatus as g, genHoverStyle as h, initInputToken as i, useStyle as u };
|
||||
export { getStatusClassNames as a, genBasicInputStyle as b, genStatusStyle as c, genPlaceholderStyle as d, genActiveStyle as e, genDisabledStyle as f, getMergedStatus as g, genCollapseMotion as h, initInputToken as i, collapseMotion as j, genHoverStyle as k, useStyle as u };
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
import { defineComponent, resolveComponent, useSSRContext } from 'vue';
|
||||
import { ssrRenderComponent } from 'vue/server-renderer';
|
||||
import { u as useRouter$1, aI as useRoute$1 } from './server.mjs';
|
||||
import { defineComponent, resolveComponent, useSSRContext } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { ssrRenderComponent } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/server-renderer/index.mjs';
|
||||
import { u as useRouter$1, aL as useRoute$1 } from './server.mjs';
|
||||
|
||||
const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
__name: "index",
|
||||
+45
-45
@@ -1,47 +1,17 @@
|
||||
import { defineComponent, unref, mergeProps, useSSRContext, computed, ref, watch, createVNode, reactive, shallowRef, toRaw, nextTick } from 'vue';
|
||||
import { ssrRenderAttrs } from 'vue/server-renderer';
|
||||
import { defineComponent, unref, mergeProps, useSSRContext, computed, ref, watch, createVNode, reactive, shallowRef, toRaw, nextTick } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { ssrRenderAttrs } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/server-renderer/index.mjs';
|
||||
import { _ as _imports_0 } from './close_light-DbrEdRZI.mjs';
|
||||
import { a as useConfigStore, T as initDefaultProps, G as useConfigInject, b2 as useProviderSize, b3 as useProviderDisabled, b4 as useInjectGlobalForm, I as classNames, C as functionType, E as booleanType, D as stringType, ay as someType, ap as anyType, a3 as objectType, P as PropTypes, aq as tuple } from './server.mjs';
|
||||
import _objectSpread from '@babel/runtime/helpers/esm/objectSpread2';
|
||||
import _extends from '@babel/runtime/helpers/esm/extends';
|
||||
import { _ as __nuxt_component_1, d as defaultValidateMessages, a as useStyle, b as useProvideForm, c as cloneByNamePathList, t as toArray$1, g as getNamePath, e as containsNamePath, v as validateRules } from './FormItem-2KfKSOCd.mjs';
|
||||
import isEqual from 'lodash-es/isEqual.js';
|
||||
import compute from 'compute-scroll-into-view';
|
||||
import cloneDeep from 'lodash-es/cloneDeep.js';
|
||||
import intersection from 'lodash-es/intersection.js';
|
||||
import debounce from 'lodash-es/debounce.js';
|
||||
import omit from 'lodash-es/omit.js';
|
||||
import { u as useInjectFormItemContext, a as FormItemRest } from './FormItemContext-eb0AodWH.mjs';
|
||||
|
||||
const _imports_1 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20width='122.878px'%20height='122.88px'%20viewBox='0%200%20122.878%20122.88'%20enable-background='new%200%200%20122.878%20122.88'%20xml:space='preserve'%3e%3cg%3e%3cpath%20d='M1.426,8.313c-1.901-1.901-1.901-4.984,0-6.886c1.901-1.902,4.984-1.902,6.886,0l53.127,53.127l53.127-53.127%20c1.901-1.902,4.984-1.902,6.887,0c1.901,1.901,1.901,4.985,0,6.886L68.324,61.439l53.128,53.128c1.901,1.901,1.901,4.984,0,6.886%20c-1.902,1.902-4.985,1.902-6.887,0L61.438,68.326L8.312,121.453c-1.901,1.902-4.984,1.902-6.886,0%20c-1.901-1.901-1.901-4.984,0-6.886l53.127-53.128L1.426,8.313L1.426,8.313z'/%3e%3c/g%3e%3c/svg%3e";
|
||||
const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
__name: "close",
|
||||
__ssrInlineRender: true,
|
||||
setup(__props) {
|
||||
const config = useConfigStore();
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
if (unref(config).isNightStore) {
|
||||
_push(`<img${ssrRenderAttrs(mergeProps({
|
||||
src: _imports_0,
|
||||
alt: "comment",
|
||||
"cursor-pointer": ""
|
||||
}, _attrs))}>`);
|
||||
} else {
|
||||
_push(`<img${ssrRenderAttrs(mergeProps({
|
||||
src: _imports_1,
|
||||
alt: "comment",
|
||||
"cursor-pointer": ""
|
||||
}, _attrs))}>`);
|
||||
}
|
||||
};
|
||||
}
|
||||
});
|
||||
const _sfc_setup = _sfc_main.setup;
|
||||
_sfc_main.setup = (props, ctx) => {
|
||||
const ssrContext = useSSRContext();
|
||||
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("assets/img/icons/close.vue");
|
||||
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
||||
};
|
||||
import { a as useConfigStore, O as initDefaultProps, C as useConfigInject, b6 as useProviderSize, b7 as useProviderDisabled, b8 as useInjectGlobalForm, E as classNames, y as functionType, A as booleanType, z as stringType, aB as someType, an as anyType, $ as objectType, P as PropTypes, ao as tuple } from './server.mjs';
|
||||
import _objectSpread from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@babel/runtime/helpers/esm/objectSpread2.js';
|
||||
import _extends from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@babel/runtime/helpers/esm/extends.js';
|
||||
import { _ as __nuxt_component_1, d as defaultValidateMessages, a as useStyle, b as useProvideForm, c as cloneByNamePathList, t as toArray$1, g as getNamePath, e as containsNamePath, v as validateRules } from './FormItem-CMWnBuQX.mjs';
|
||||
import isEqual from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/lodash-es/isEqual.js';
|
||||
import compute from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/compute-scroll-into-view/dist/index.mjs';
|
||||
import cloneDeep from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/lodash-es/cloneDeep.js';
|
||||
import intersection from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/lodash-es/intersection.js';
|
||||
import debounce from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/lodash-es/debounce.js';
|
||||
import omit from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/lodash-es/omit.js';
|
||||
import { u as useInjectFormItemContext, a as FormItemRest } from './FormItemContext-BlKvWASA.mjs';
|
||||
|
||||
function isOptionsObject(options) {
|
||||
return options === Object(options) && Object.keys(options).length !== 0;
|
||||
@@ -94,6 +64,36 @@ function scrollIntoView(target, options) {
|
||||
return defaultBehavior(compute(target, computeOptions), computeOptions.behavior);
|
||||
}
|
||||
|
||||
const _imports_1 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20width='122.878px'%20height='122.88px'%20viewBox='0%200%20122.878%20122.88'%20enable-background='new%200%200%20122.878%20122.88'%20xml:space='preserve'%3e%3cg%3e%3cpath%20d='M1.426,8.313c-1.901-1.901-1.901-4.984,0-6.886c1.901-1.902,4.984-1.902,6.886,0l53.127,53.127l53.127-53.127%20c1.901-1.902,4.984-1.902,6.887,0c1.901,1.901,1.901,4.985,0,6.886L68.324,61.439l53.128,53.128c1.901,1.901,1.901,4.984,0,6.886%20c-1.902,1.902-4.985,1.902-6.887,0L61.438,68.326L8.312,121.453c-1.901,1.902-4.984,1.902-6.886,0%20c-1.901-1.901-1.901-4.984,0-6.886l53.127-53.128L1.426,8.313L1.426,8.313z'/%3e%3c/g%3e%3c/svg%3e";
|
||||
const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
__name: "close",
|
||||
__ssrInlineRender: true,
|
||||
setup(__props) {
|
||||
const config = useConfigStore();
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
if (unref(config).isNightStore) {
|
||||
_push(`<img${ssrRenderAttrs(mergeProps({
|
||||
src: _imports_0,
|
||||
alt: "comment",
|
||||
"cursor-pointer": ""
|
||||
}, _attrs))}>`);
|
||||
} else {
|
||||
_push(`<img${ssrRenderAttrs(mergeProps({
|
||||
src: _imports_1,
|
||||
alt: "comment",
|
||||
"cursor-pointer": ""
|
||||
}, _attrs))}>`);
|
||||
}
|
||||
};
|
||||
}
|
||||
});
|
||||
const _sfc_setup = _sfc_main.setup;
|
||||
_sfc_main.setup = (props, ctx) => {
|
||||
const ssrContext = useSSRContext();
|
||||
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("assets/img/icons/close.vue");
|
||||
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
||||
};
|
||||
|
||||
function allPromiseFinish(promiseList) {
|
||||
let hasError = false;
|
||||
let count = promiseList.length;
|
||||
@@ -250,11 +250,11 @@ function useForm(modelRef) {
|
||||
return Promise.reject([]);
|
||||
}).catch((results) => {
|
||||
const errorList = results.filter((result) => result && result.errors.length);
|
||||
return errorList.length ? Promise.reject({
|
||||
return Promise.reject({
|
||||
values,
|
||||
errorFields: errorList,
|
||||
outOfDate: lastValidatePromise !== summaryPromise
|
||||
}) : Promise.resolve(values);
|
||||
});
|
||||
});
|
||||
returnPromise.catch((e) => e);
|
||||
return returnPromise;
|
||||
@@ -0,0 +1,54 @@
|
||||
import { defineComponent, useSSRContext } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { ssrRenderComponent } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/server-renderer/index.mjs';
|
||||
import { _ as _sfc_main$1 } from './index-B-efB9iA.mjs';
|
||||
import { aL as useRoute$1, aX as useRouteStore } from './server.mjs';
|
||||
import './product-DgF2C5vR.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/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/@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 _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
__name: "index",
|
||||
__ssrInlineRender: true,
|
||||
setup(__props) {
|
||||
useRoute$1();
|
||||
useRouteStore();
|
||||
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/edit/product/[id]/infProduct/index.vue");
|
||||
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
||||
};
|
||||
|
||||
export { _sfc_main as default };
|
||||
@@ -0,0 +1,51 @@
|
||||
import { _ as __nuxt_component_0 } from './server.mjs';
|
||||
import { defineComponent, useSSRContext } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { ssrRenderComponent } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/server-renderer/index.mjs';
|
||||
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/lodash-es/lodash.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 _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
__name: "index",
|
||||
__ssrInlineRender: true,
|
||||
setup(__props) {
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
const _component_ClientOnly = __nuxt_component_0;
|
||||
_push(ssrRenderComponent(_component_ClientOnly, _attrs, {}, _parent));
|
||||
};
|
||||
}
|
||||
});
|
||||
const _sfc_setup = _sfc_main.setup;
|
||||
_sfc_main.setup = (props, ctx) => {
|
||||
const ssrContext = useSSRContext();
|
||||
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("pages/add/index.vue");
|
||||
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
||||
};
|
||||
|
||||
export { _sfc_main as default };
|
||||
+5
-5
@@ -1,8 +1,8 @@
|
||||
import _objectSpread from '@babel/runtime/helpers/esm/objectSpread2';
|
||||
import { defineComponent, shallowRef, watch, createVNode, isVNode, cloneVNode } from 'vue';
|
||||
import { debounce } from 'throttle-debounce';
|
||||
import { T as initDefaultProps, G as useConfigInject, H as genComponentStyleHook, U as filterEmpty, P as PropTypes, J as merge, V as getPropsSlot, M as resetComponent, N as Keyframe } from './server.mjs';
|
||||
import _extends from '@babel/runtime/helpers/esm/extends';
|
||||
import _objectSpread from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@babel/runtime/helpers/esm/objectSpread2.js';
|
||||
import { defineComponent, shallowRef, watch, createVNode, isVNode, cloneVNode } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { debounce } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/throttle-debounce/esm/index.js';
|
||||
import { O as initDefaultProps, C as useConfigInject, D as genComponentStyleHook, Q as filterEmpty, P as PropTypes, F as merge, R as getPropsSlot, I as resetComponent, K as Keyframe } from './server.mjs';
|
||||
import _extends from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@babel/runtime/helpers/esm/extends.js';
|
||||
|
||||
const antSpinMove = new Keyframe("antSpinMove", {
|
||||
to: {
|
||||
@@ -0,0 +1,225 @@
|
||||
import _objectSpread from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@babel/runtime/helpers/esm/objectSpread2.js';
|
||||
import _extends from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@babel/runtime/helpers/esm/extends.js';
|
||||
import { defineComponent, ref, computed, createVNode, Fragment } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { _ as __nuxt_component_2, t as tooltipDefaultProps, b as abstractTooltipProps, c as getArrowStyle, P as PresetColors } from './index-Bn4rLj9V.mjs';
|
||||
import { U as withInstall, O as initDefaultProps, av as warning, C as useConfigInject, D as genComponentStyleHook, E as classNames, H as omit, X as getTransitionName, F as merge, a0 as initZoomMotion, Q as filterEmpty, an as anyType, I as resetComponent } from './server.mjs';
|
||||
|
||||
const genBaseStyle = (token) => {
|
||||
const {
|
||||
componentCls,
|
||||
popoverBg,
|
||||
popoverColor,
|
||||
width,
|
||||
fontWeightStrong,
|
||||
popoverPadding,
|
||||
boxShadowSecondary,
|
||||
colorTextHeading,
|
||||
borderRadiusLG: borderRadius,
|
||||
zIndexPopup,
|
||||
marginXS,
|
||||
colorBgElevated
|
||||
} = token;
|
||||
return [
|
||||
{
|
||||
[componentCls]: _extends(_extends({}, resetComponent(token)), {
|
||||
position: "absolute",
|
||||
top: 0,
|
||||
// use `left` to fix https://github.com/ant-design/ant-design/issues/39195
|
||||
left: {
|
||||
_skip_check_: true,
|
||||
value: 0
|
||||
},
|
||||
zIndex: zIndexPopup,
|
||||
fontWeight: "normal",
|
||||
whiteSpace: "normal",
|
||||
textAlign: "start",
|
||||
cursor: "auto",
|
||||
userSelect: "text",
|
||||
"--antd-arrow-background-color": colorBgElevated,
|
||||
"&-rtl": {
|
||||
direction: "rtl"
|
||||
},
|
||||
"&-hidden": {
|
||||
display: "none"
|
||||
},
|
||||
[`${componentCls}-content`]: {
|
||||
position: "relative"
|
||||
},
|
||||
[`${componentCls}-inner`]: {
|
||||
backgroundColor: popoverBg,
|
||||
backgroundClip: "padding-box",
|
||||
borderRadius,
|
||||
boxShadow: boxShadowSecondary,
|
||||
padding: popoverPadding
|
||||
},
|
||||
[`${componentCls}-title`]: {
|
||||
minWidth: width,
|
||||
marginBottom: marginXS,
|
||||
color: colorTextHeading,
|
||||
fontWeight: fontWeightStrong
|
||||
},
|
||||
[`${componentCls}-inner-content`]: {
|
||||
color: popoverColor
|
||||
}
|
||||
})
|
||||
},
|
||||
// Arrow Style
|
||||
getArrowStyle(token, {
|
||||
colorBg: "var(--antd-arrow-background-color)"
|
||||
}),
|
||||
// Pure Render
|
||||
{
|
||||
[`${componentCls}-pure`]: {
|
||||
position: "relative",
|
||||
maxWidth: "none",
|
||||
[`${componentCls}-content`]: {
|
||||
display: "inline-block"
|
||||
}
|
||||
}
|
||||
}
|
||||
];
|
||||
};
|
||||
const genColorStyle = (token) => {
|
||||
const {
|
||||
componentCls
|
||||
} = token;
|
||||
return {
|
||||
[componentCls]: PresetColors.map((colorKey) => {
|
||||
const lightColor = token[`${colorKey}-6`];
|
||||
return {
|
||||
[`&${componentCls}-${colorKey}`]: {
|
||||
"--antd-arrow-background-color": lightColor,
|
||||
[`${componentCls}-inner`]: {
|
||||
backgroundColor: lightColor
|
||||
},
|
||||
[`${componentCls}-arrow`]: {
|
||||
background: "transparent"
|
||||
}
|
||||
}
|
||||
};
|
||||
})
|
||||
};
|
||||
};
|
||||
const genWireframeStyle = (token) => {
|
||||
const {
|
||||
componentCls,
|
||||
lineWidth,
|
||||
lineType,
|
||||
colorSplit,
|
||||
paddingSM,
|
||||
controlHeight,
|
||||
fontSize,
|
||||
lineHeight,
|
||||
padding
|
||||
} = token;
|
||||
const titlePaddingBlockDist = controlHeight - Math.round(fontSize * lineHeight);
|
||||
const popoverTitlePaddingBlockTop = titlePaddingBlockDist / 2;
|
||||
const popoverTitlePaddingBlockBottom = titlePaddingBlockDist / 2 - lineWidth;
|
||||
const popoverPaddingHorizontal = padding;
|
||||
return {
|
||||
[componentCls]: {
|
||||
[`${componentCls}-inner`]: {
|
||||
padding: 0
|
||||
},
|
||||
[`${componentCls}-title`]: {
|
||||
margin: 0,
|
||||
padding: `${popoverTitlePaddingBlockTop}px ${popoverPaddingHorizontal}px ${popoverTitlePaddingBlockBottom}px`,
|
||||
borderBottom: `${lineWidth}px ${lineType} ${colorSplit}`
|
||||
},
|
||||
[`${componentCls}-inner-content`]: {
|
||||
padding: `${paddingSM}px ${popoverPaddingHorizontal}px`
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
const useStyle = genComponentStyleHook("Popover", (token) => {
|
||||
const {
|
||||
colorBgElevated,
|
||||
colorText,
|
||||
wireframe
|
||||
} = token;
|
||||
const popoverToken = merge(token, {
|
||||
popoverBg: colorBgElevated,
|
||||
popoverColor: colorText,
|
||||
popoverPadding: 12
|
||||
// Fixed Value
|
||||
});
|
||||
return [genBaseStyle(popoverToken), genColorStyle(popoverToken), wireframe && genWireframeStyle(popoverToken), initZoomMotion(popoverToken, "zoom-big")];
|
||||
}, (_ref) => {
|
||||
let {
|
||||
zIndexPopupBase
|
||||
} = _ref;
|
||||
return {
|
||||
zIndexPopup: zIndexPopupBase + 30,
|
||||
width: 177
|
||||
};
|
||||
});
|
||||
const popoverProps = () => _extends(_extends({}, abstractTooltipProps()), {
|
||||
content: anyType(),
|
||||
title: anyType()
|
||||
});
|
||||
const Popover = defineComponent({
|
||||
compatConfig: {
|
||||
MODE: 3
|
||||
},
|
||||
name: "APopover",
|
||||
inheritAttrs: false,
|
||||
props: initDefaultProps(popoverProps(), _extends(_extends({}, tooltipDefaultProps()), {
|
||||
trigger: "hover",
|
||||
placement: "top",
|
||||
mouseEnterDelay: 0.1,
|
||||
mouseLeaveDelay: 0.1
|
||||
})),
|
||||
setup(props, _ref) {
|
||||
let {
|
||||
expose,
|
||||
slots,
|
||||
attrs
|
||||
} = _ref;
|
||||
const tooltipRef = ref();
|
||||
warning(props.visible === void 0);
|
||||
expose({
|
||||
getPopupDomNode: () => {
|
||||
var _a, _b;
|
||||
return (_b = (_a = tooltipRef.value) === null || _a === void 0 ? void 0 : _a.getPopupDomNode) === null || _b === void 0 ? void 0 : _b.call(_a);
|
||||
}
|
||||
});
|
||||
const {
|
||||
prefixCls,
|
||||
configProvider
|
||||
} = useConfigInject("popover", props);
|
||||
const [wrapSSR, hashId] = useStyle(prefixCls);
|
||||
const rootPrefixCls = computed(() => configProvider.getPrefixCls());
|
||||
const getOverlay = () => {
|
||||
var _a, _b;
|
||||
const {
|
||||
title = filterEmpty((_a = slots.title) === null || _a === void 0 ? void 0 : _a.call(slots)),
|
||||
content = filterEmpty((_b = slots.content) === null || _b === void 0 ? void 0 : _b.call(slots))
|
||||
} = props;
|
||||
const hasTitle = !!(Array.isArray(title) ? title.length : title);
|
||||
const hasContent = !!(Array.isArray(content) ? content.length : title);
|
||||
if (!hasTitle && !hasContent) return null;
|
||||
return createVNode(Fragment, null, [hasTitle && createVNode("div", {
|
||||
"class": `${prefixCls.value}-title`
|
||||
}, [title]), createVNode("div", {
|
||||
"class": `${prefixCls.value}-inner-content`
|
||||
}, [content])]);
|
||||
};
|
||||
return () => {
|
||||
const overlayCls = classNames(props.overlayClassName, hashId.value);
|
||||
return wrapSSR(createVNode(__nuxt_component_2, _objectSpread(_objectSpread(_objectSpread({}, omit(props, ["title", "content"])), attrs), {}, {
|
||||
"prefixCls": prefixCls.value,
|
||||
"ref": tooltipRef,
|
||||
"overlayClassName": overlayCls,
|
||||
"transitionName": getTransitionName(rootPrefixCls.value, "zoom-big", props.transitionName),
|
||||
"data-popover-inject": true
|
||||
}), {
|
||||
title: getOverlay,
|
||||
default: slots.default
|
||||
}));
|
||||
};
|
||||
}
|
||||
});
|
||||
const __nuxt_component_1 = withInstall(Popover);
|
||||
|
||||
export { __nuxt_component_1 as _ };
|
||||
@@ -0,0 +1,18 @@
|
||||
import { getCurrentScope, onScopeDispose, getCurrentInstance } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
|
||||
function tryOnScopeDispose(fn) {
|
||||
if (getCurrentScope()) {
|
||||
onScopeDispose(fn);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
|
||||
function getLifeCycleTarget(target) {
|
||||
return getCurrentInstance();
|
||||
}
|
||||
function tryOnUnmounted(fn, target) {
|
||||
getLifeCycleTarget();
|
||||
}
|
||||
|
||||
export { tryOnScopeDispose as a, tryOnUnmounted as t };
|
||||
+29
-7
@@ -1,9 +1,11 @@
|
||||
import { defineComponent, ref, watch, unref, withCtx, createTextVNode, toDisplayString, createVNode, useSSRContext } from 'vue';
|
||||
import { ssrRenderAttr, ssrInterpolate, ssrRenderList, ssrRenderComponent } from 'vue/server-renderer';
|
||||
import { _ as __nuxt_component_3 } from './CropperModal-LZ_g4b9G.mjs';
|
||||
import { defineComponent, ref, watch, unref, withCtx, createTextVNode, toDisplayString, createVNode, useSSRContext } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { ssrRenderAttr, ssrInterpolate, ssrRenderComponent, ssrRenderList } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/server-renderer/index.mjs';
|
||||
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 } from './handle-DppcF3zW.mjs';
|
||||
import { _ as __nuxt_component_1, a as __nuxt_component_2 } from './RadioButton-C4H4Dw11.mjs';
|
||||
import { m as mediaFilesUrl, p as previewImg, h as handleCropped } from './product-DgF2C5vR.mjs';
|
||||
import { B as BasicIconOld } from './BasicIconOld-93vAWohq.mjs';
|
||||
import { _ as __nuxt_component_1, a as __nuxt_component_2 } from './RadioButton-DTAY-M4c.mjs';
|
||||
|
||||
const maxFiles = 10;
|
||||
const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
@@ -14,6 +16,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
const config = useConfigStore();
|
||||
ref(null);
|
||||
const type = ref("");
|
||||
const cropperVisible = ref(false);
|
||||
ref();
|
||||
watch(mediaFilesUrl, (files) => {
|
||||
if (mediaFilesUrl.value.length === 0) previewImg.value = "";
|
||||
else if (mediaFilesUrl.value.length === 1) previewImg.value = mediaFilesUrl.value[0];
|
||||
@@ -25,14 +29,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
const _component_a_radio_group = __nuxt_component_1;
|
||||
const _component_a_radio_button = __nuxt_component_2;
|
||||
_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">`);
|
||||
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">`);
|
||||
if (unref(previewImg)) {
|
||||
_push(`<img${ssrRenderAttr("src", unref(previewImg))}${ssrRenderAttr("alt", unref(config).appName.en)} class="w-full aspect-square">`);
|
||||
_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) {
|
||||
_push(`<p class="empty-state">${ssrInterpolate(unref(config).useString("tapPlusToAdd"))}</p>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
if (unref(previewImg)) {
|
||||
_push(`<div class="flex absolute gap-2 right-5 bottom-5"><div class="flex bg-black/80 items-center rounded gap-2 p-2">`);
|
||||
_push(ssrRenderComponent(BasicIconOld, { icon: "vuesax-linear:crop" }, null, _parent));
|
||||
_push(`</div></div>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(`</div><div class="media-picker"><div class="drop-area"><div class="media-grid"><!--[-->`);
|
||||
ssrRenderList(unref(mediaFilesUrl), (media, index) => {
|
||||
_push(`<div class="media-container">`);
|
||||
@@ -136,7 +148,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
}),
|
||||
_: 1
|
||||
}, _parent));
|
||||
_push(`</div><!--]-->`);
|
||||
_push(`</div>`);
|
||||
_push(ssrRenderComponent(_component_CropperModal, {
|
||||
visible: cropperVisible.value,
|
||||
"onUpdate:visible": ($event) => cropperVisible.value = $event,
|
||||
img: unref(previewImg),
|
||||
mode: "free",
|
||||
aspectRatio: 9 / 16,
|
||||
resizable: true,
|
||||
onCropped: unref(handleCropped)
|
||||
}, null, _parent));
|
||||
_push(`<!--]-->`);
|
||||
};
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,51 @@
|
||||
import { defineComponent, useSSRContext } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { ssrRenderComponent } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/server-renderer/index.mjs';
|
||||
import { _ as _sfc_main$1 } from './index-CniCyO6U.mjs';
|
||||
import './server.mjs';
|
||||
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/lodash-es/lodash.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 _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
__name: "index",
|
||||
__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/edit/product/[id]/index.vue");
|
||||
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
||||
};
|
||||
|
||||
export { _sfc_main as default };
|
||||
+17
-41
@@ -1,8 +1,8 @@
|
||||
import { Y as withInstall, T as initDefaultProps, G as useConfigInject, U as filterEmpty, Z as isValidElement, $ as isFragment, I as classNames, a0 as getTransitionName, a1 as cloneElement, H as genComponentStyleHook, a2 as getStyle$1, P as PropTypes, a3 as objectType, J as merge, a4 as initZoomMotion, V as getPropsSlot, a5 as getSlot, a6 as getEvents, a7 as contains, a8 as Portal, a9 as hasProp, aa as getComponent, ab as findDOMNode, ac as useProvidePortal, M as resetComponent, ad as getOptionProps, ae as flattenChildren, af as getMotion$1, ag as getTransitionProps } from './server.mjs';
|
||||
import _extends from '@babel/runtime/helpers/esm/extends';
|
||||
import { defineComponent, computed, ref, watch, createVNode, shallowRef, watchEffect, Fragment, provide, inject, nextTick, Transition, toRef, withDirectives, withModifiers, vShow, resolveDirective } from 'vue';
|
||||
import _objectSpread from '@babel/runtime/helpers/esm/objectSpread2';
|
||||
import { alignElement, alignPoint } from 'dom-align';
|
||||
import { U as withInstall, O as initDefaultProps, C as useConfigInject, Q as filterEmpty, V as isValidElement, W as isFragment, E as classNames, X as getTransitionName, Y as cloneElement, D as genComponentStyleHook, Z as getStyle$1, P as PropTypes, $ as objectType, F as merge, a0 as initZoomMotion, R as getPropsSlot, a1 as getSlot, a2 as getEvents, a3 as contains, a4 as Portal, a5 as hasProp, a6 as getComponent, a7 as findDOMNode, a8 as useProvidePortal, I as resetComponent, a9 as getOptionProps, aa as flattenChildren, ab as getMotion$1, ac as getTransitionProps } from './server.mjs';
|
||||
import _extends from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@babel/runtime/helpers/esm/extends.js';
|
||||
import { defineComponent, computed, ref, watch, createVNode, shallowRef, watchEffect, Fragment, provide, inject, nextTick, Transition, toRef, withDirectives, withModifiers, vShow, resolveDirective } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import _objectSpread from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@babel/runtime/helpers/esm/objectSpread2.js';
|
||||
import { alignElement, alignPoint } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/dom-align/dist-node/index.js';
|
||||
|
||||
let raf = (callback) => setTimeout(callback, 16);
|
||||
let caf = (num) => clearTimeout(num);
|
||||
@@ -150,7 +150,6 @@ const triggerProps = () => ({
|
||||
onPopupVisibleChange: Function,
|
||||
afterPopupVisibleChange: PropTypes.func.def(noop$1),
|
||||
popup: PropTypes.any,
|
||||
arrow: PropTypes.bool.def(true),
|
||||
popupStyle: {
|
||||
type: Object,
|
||||
default: void 0
|
||||
@@ -214,10 +213,6 @@ const innerProps = {
|
||||
zIndex: Number,
|
||||
destroyPopupOnHide: Boolean,
|
||||
forceRender: Boolean,
|
||||
arrow: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
// Legacy Motion
|
||||
animation: [String, Object],
|
||||
transitionName: String,
|
||||
@@ -602,7 +597,7 @@ const PopupInner = defineComponent({
|
||||
const alignRef = shallowRef();
|
||||
const elementRef = shallowRef();
|
||||
const alignedClassName = shallowRef();
|
||||
const [stretchStyle, measureStretchStyle] = useStretchStyle(toRef(props, "stretch"));
|
||||
const [stretchStyle] = useStretchStyle(toRef(props, "stretch"));
|
||||
const visible = shallowRef(false);
|
||||
let timeoutId;
|
||||
watch(() => props.visible, (val) => {
|
||||
@@ -715,7 +710,7 @@ const PopupInner = defineComponent({
|
||||
"class": `${prefixCls}-content`
|
||||
}, [childNode]);
|
||||
}
|
||||
const mergedClassName = classNames(prefixCls, attrs.class, alignedClassName.value, !props.arrow && `${prefixCls}-arrow-hidden`);
|
||||
const mergedClassName = classNames(prefixCls, attrs.class, alignedClassName.value);
|
||||
const hasAnimate = visible.value || !props.visible;
|
||||
const transitionProps = hasAnimate ? getTransitionProps(motion.value.name, motion.value) : {};
|
||||
return createVNode(Transition, _objectSpread(_objectSpread({
|
||||
@@ -1203,7 +1198,6 @@ const Trigger = defineComponent({
|
||||
stretch,
|
||||
alignPoint: alignPoint2,
|
||||
mobile,
|
||||
arrow,
|
||||
forceRender
|
||||
} = this.$props;
|
||||
const {
|
||||
@@ -1212,7 +1206,6 @@ const Trigger = defineComponent({
|
||||
} = this.$data;
|
||||
const popupProps2 = _extends(_extends({
|
||||
prefixCls,
|
||||
arrow,
|
||||
destroyPopupOnHide,
|
||||
visible: sPopupVisible,
|
||||
point: alignPoint2 ? point : null,
|
||||
@@ -1667,11 +1660,7 @@ const Tooltip = defineComponent({
|
||||
default: void 0
|
||||
},
|
||||
onVisibleChange: Function,
|
||||
onPopupAlign: Function,
|
||||
arrow: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
}
|
||||
onPopupAlign: Function
|
||||
},
|
||||
setup(props, _ref) {
|
||||
let {
|
||||
@@ -1686,10 +1675,10 @@ const Tooltip = defineComponent({
|
||||
tipId,
|
||||
overlayInnerStyle
|
||||
} = props;
|
||||
return [!!props.arrow ? createVNode("div", {
|
||||
return [createVNode("div", {
|
||||
"class": `${prefixCls}-arrow`,
|
||||
"key": "arrow"
|
||||
}, [getPropsSlot(slots, props, "arrowContent")]) : null, createVNode(Content, {
|
||||
}, [getPropsSlot(slots, props, "arrowContent")]), createVNode(Content, {
|
||||
"key": "content",
|
||||
"prefixCls": prefixCls,
|
||||
"id": tipId,
|
||||
@@ -1765,7 +1754,6 @@ const Tooltip = defineComponent({
|
||||
onPopupVisibleChange: props.onVisibleChange || noop,
|
||||
onPopupAlign: props.onPopupAlign || noop,
|
||||
ref: triggerDOM,
|
||||
arrow: !!props.arrow,
|
||||
popup: getPopupElement()
|
||||
});
|
||||
return createVNode(Trigger, triggerProps2, {
|
||||
@@ -1796,15 +1784,10 @@ const abstractTooltipProps = (() => ({
|
||||
mouseEnterDelay: Number,
|
||||
mouseLeaveDelay: Number,
|
||||
getPopupContainer: Function,
|
||||
/**@deprecated Please use `arrow={{ pointAtCenter: true }}` instead. */
|
||||
arrowPointAtCenter: {
|
||||
type: Boolean,
|
||||
default: void 0
|
||||
},
|
||||
arrow: {
|
||||
type: [Boolean, Object],
|
||||
default: true
|
||||
},
|
||||
autoAdjustOverflow: {
|
||||
type: [Boolean, Object],
|
||||
default: void 0
|
||||
@@ -2098,22 +2081,22 @@ function getArrowStyle(token, options) {
|
||||
// =========================== Offset ============================
|
||||
// Offset the popover to account for the dropdown arrow
|
||||
// >>>>> Top
|
||||
[connectArrowCls([`&-placement-topLeft`, `&-placement-top`, `&-placement-topRight`].map((cls) => cls += ":not(&-arrow-hidden)"), showArrowCls)]: {
|
||||
[connectArrowCls([`&-placement-topLeft`, `&-placement-top`, `&-placement-topRight`], showArrowCls)]: {
|
||||
paddingBottom: dropdownArrowDistance
|
||||
},
|
||||
// >>>>> Bottom
|
||||
[connectArrowCls([`&-placement-bottomLeft`, `&-placement-bottom`, `&-placement-bottomRight`].map((cls) => cls += ":not(&-arrow-hidden)"), showArrowCls)]: {
|
||||
[connectArrowCls([`&-placement-bottomLeft`, `&-placement-bottom`, `&-placement-bottomRight`], showArrowCls)]: {
|
||||
paddingTop: dropdownArrowDistance
|
||||
},
|
||||
// >>>>> Left
|
||||
[connectArrowCls([`&-placement-leftTop`, `&-placement-left`, `&-placement-leftBottom`].map((cls) => cls += ":not(&-arrow-hidden)"), showArrowCls)]: {
|
||||
[connectArrowCls([`&-placement-leftTop`, `&-placement-left`, `&-placement-leftBottom`], showArrowCls)]: {
|
||||
paddingRight: {
|
||||
_skip_check_: true,
|
||||
value: dropdownArrowDistance
|
||||
}
|
||||
},
|
||||
// >>>>> Right
|
||||
[connectArrowCls([`&-placement-rightTop`, `&-placement-right`, `&-placement-rightBottom`].map((cls) => cls += ":not(&-arrow-hidden)"), showArrowCls)]: {
|
||||
[connectArrowCls([`&-placement-rightTop`, `&-placement-right`, `&-placement-rightBottom`], showArrowCls)]: {
|
||||
paddingLeft: {
|
||||
_skip_check_: true,
|
||||
value: dropdownArrowDistance
|
||||
@@ -2345,19 +2328,13 @@ const ToolTip = defineComponent({
|
||||
}
|
||||
});
|
||||
const tooltipPlacements = computed(() => {
|
||||
var _a;
|
||||
const {
|
||||
builtinPlacements,
|
||||
autoAdjustOverflow: autoAdjustOverflow2,
|
||||
arrow,
|
||||
arrowPointAtCenter
|
||||
arrowPointAtCenter,
|
||||
autoAdjustOverflow: autoAdjustOverflow2
|
||||
} = props;
|
||||
let mergedArrowPointAtCenter = arrowPointAtCenter;
|
||||
if (typeof arrow === "object") {
|
||||
mergedArrowPointAtCenter = (_a = arrow.pointAtCenter) !== null && _a !== void 0 ? _a : arrowPointAtCenter;
|
||||
}
|
||||
return builtinPlacements || getPlacements({
|
||||
arrowPointAtCenter: mergedArrowPointAtCenter,
|
||||
arrowPointAtCenter,
|
||||
autoAdjustOverflow: autoAdjustOverflow2
|
||||
});
|
||||
});
|
||||
@@ -2454,7 +2431,6 @@ const ToolTip = defineComponent({
|
||||
const arrowContentStyle = colorInfo.value.arrowStyle;
|
||||
const vcTooltipProps = _extends(_extends(_extends({}, attrs), props), {
|
||||
prefixCls: prefixCls.value,
|
||||
arrow: !!props.arrow,
|
||||
getPopupContainer: getPopupContainer === null || getPopupContainer === void 0 ? void 0 : getPopupContainer.value,
|
||||
builtinPlacements: tooltipPlacements.value,
|
||||
visible: tempVisible,
|
||||
+41
-40
@@ -1,55 +1,56 @@
|
||||
import { defineComponent, ref, reactive, mergeProps, unref, withCtx, createVNode, createTextVNode, toDisplayString, useSSRContext } from 'vue';
|
||||
import { ssrRenderComponent, ssrRenderAttrs, ssrInterpolate, ssrRenderSlot } from 'vue/server-renderer';
|
||||
import { defineComponent, ref, reactive, mergeProps, unref, withCtx, createVNode, createTextVNode, toDisplayString, useSSRContext } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { ssrRenderComponent, ssrRenderAttrs, ssrInterpolate, ssrRenderSlot } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/server-renderer/index.mjs';
|
||||
import { B as BasicIconOld } from './BasicIconOld-93vAWohq.mjs';
|
||||
import { u as useRouter$1, a as useConfigStore, e as loading, f as generateOtp, d as api$1, v as verifyOtp, c as setToken, s as supabase, h as forgetPassword, r as removeToken } from './server.mjs';
|
||||
import { _ as _export_sfc } from './_plugin-vue_export-helper-1tPrXgE0.mjs';
|
||||
import { B as BasicInput } from './BasicInput-DrA-e4wX.mjs';
|
||||
import { B as BasicButton } from './BasicButton-QGDeiwgb.mjs';
|
||||
import OtpInput from 'vue3-otp-input';
|
||||
import { B as BasicInput } from './BasicInput-rlXkJMLE.mjs';
|
||||
import { B as BasicButton } from './BasicButton-DhQvSD8U.mjs';
|
||||
import OtpInput from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue3-otp-input/dist/vue3-otp-input.js';
|
||||
import { i as inputRulesNoMessage } from './inputRules-Cr4Uiro2.mjs';
|
||||
import { I as InstaInput } from './InstaInput-cG9pc4SD.mjs';
|
||||
import '../_/nitro.mjs';
|
||||
import { I as InstaInput } from './InstaInput-CLAxMFVK.mjs';
|
||||
import 'node:http';
|
||||
import 'node:https';
|
||||
import '../nitro/nitro.mjs';
|
||||
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 '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/lodash-es/lodash.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 'vue-bundle-renderer/runtime';
|
||||
import 'unhead/server';
|
||||
import 'devalue';
|
||||
import 'unhead/utils';
|
||||
import './usePrice-B-5-jXKQ.mjs';
|
||||
import './index-B8JfwQ3c.mjs';
|
||||
import './FormItemContext-eb0AodWH.mjs';
|
||||
import './index-C8EZBqzI.mjs';
|
||||
import 'lodash-es/isPlainObject.js';
|
||||
import 'resize-observer-polyfill';
|
||||
import './index-C9wXCwkF.mjs';
|
||||
import 'dom-align';
|
||||
import './index-CRte5P_X.mjs';
|
||||
import 'throttle-debounce';
|
||||
import './FormItem-2KfKSOCd.mjs';
|
||||
import 'lodash-es/cloneDeep.js';
|
||||
import 'async-validator';
|
||||
import 'lodash-es/find.js';
|
||||
import './collapseMotion-cQ2SGjCA.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';
|
||||
import './usePrice-_QzChhgO.mjs';
|
||||
import './index-G65aBv4F.mjs';
|
||||
import './FormItemContext-BlKvWASA.mjs';
|
||||
import './index-BGahPE0Z.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/lodash-es/isPlainObject.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/resize-observer-polyfill/dist/ResizeObserver.js';
|
||||
import './index-Bn4rLj9V.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/dom-align/dist-node/index.js';
|
||||
import './index-BMAjr3Fm.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/throttle-debounce/esm/index.js';
|
||||
import './FormItem-CMWnBuQX.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/lodash-es/cloneDeep.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/async-validator/dist-node/index.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/lodash-es/find.js';
|
||||
|
||||
const _sfc_main$2 = {};
|
||||
function _sfc_ssrRender(_ctx, _push, _parent, _attrs) {
|
||||
@@ -0,0 +1,51 @@
|
||||
import { _ as __nuxt_component_0 } from './server.mjs';
|
||||
import { defineComponent, useSSRContext } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { ssrRenderComponent } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/server-renderer/index.mjs';
|
||||
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/lodash-es/lodash.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 _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
__name: "index",
|
||||
__ssrInlineRender: true,
|
||||
setup(__props) {
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
const _component_ClientOnly = __nuxt_component_0;
|
||||
_push(ssrRenderComponent(_component_ClientOnly, _attrs, {}, _parent));
|
||||
};
|
||||
}
|
||||
});
|
||||
const _sfc_setup = _sfc_main.setup;
|
||||
_sfc_main.setup = (props, ctx) => {
|
||||
const ssrContext = useSSRContext();
|
||||
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("pages/fav/index.vue");
|
||||
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
||||
};
|
||||
|
||||
export { _sfc_main as default };
|
||||
@@ -0,0 +1,512 @@
|
||||
import { defineComponent, ref, computed, withAsyncContext, watch, resolveDirective, unref, withCtx, mergeProps, createVNode, createBlock, openBlock, Fragment, renderList, createCommentVNode, withDirectives, useSSRContext } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { ssrRenderComponent, ssrRenderAttrs, ssrInterpolate, ssrRenderAttr, ssrRenderList, ssrGetDirectiveProps, ssrRenderStyle } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/server-renderer/index.mjs';
|
||||
import { u as useRouter$1, a as useConfigStore, b as useUserStore, o as useCartStore, p as usePriceStore, m as useIntersectionObserver, _ as __nuxt_component_0 } from './server.mjs';
|
||||
import { u as usePrice } from './usePrice-_QzChhgO.mjs';
|
||||
import { B as BasicIconOld } from './BasicIconOld-93vAWohq.mjs';
|
||||
import numbro from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/numbro/dist/numbro.min.js';
|
||||
import { H as Highlights, T as Tabs, _ as __nuxt_component_1 } from './Highlights-BltqsdO_.mjs';
|
||||
import { U as UserProfilePic } from './UserProfilePic-DaZ03Xcl.mjs';
|
||||
import { l as loadGray, _ as __nuxt_component_0$1 } from './gray-Bd8mWW-o.mjs';
|
||||
import { _ as _sfc_main$6 } from './FullScreenStories-nkUmovER.mjs';
|
||||
import { u as useMediaStore } from './media-D7PFhdrG.mjs';
|
||||
import { u as useUserPostStore } from './userPostsStore-CAxMlK-n.mjs';
|
||||
import { _ as _sfc_main$5 } from './ProductSearchList-BtzyWbWx.mjs';
|
||||
import { u as useAsyncData } from './asyncData-Iix-4nDI.mjs';
|
||||
import { _ as _export_sfc } from './_plugin-vue_export-helper-1tPrXgE0.mjs';
|
||||
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/lodash-es/lodash.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';
|
||||
import './index-Bn4rLj9V.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/dom-align/dist-node/index.js';
|
||||
import './index-D-yl9XJT.mjs';
|
||||
import './shallowequal-BEyWmMEh.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/lodash-es/uniq.js';
|
||||
import './index-G65aBv4F.mjs';
|
||||
import './FormItemContext-BlKvWASA.mjs';
|
||||
import './index-BGahPE0Z.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/lodash-es/isPlainObject.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/resize-observer-polyfill/dist/ResizeObserver.js';
|
||||
import './useRefs-BHKrVg4I.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/lodash-es/pick.js';
|
||||
import './useMergedState-BZEfJ8Fl.mjs';
|
||||
import './media-_NDkNIvH.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/swiper/swiper-vue.mjs';
|
||||
import './empty_user-DSxcM_ac.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue-content-loader/dist/vue-content-loader.cjs.js';
|
||||
import './BasicInput-rlXkJMLE.mjs';
|
||||
import './like-B155RLSm.mjs';
|
||||
import './BasicButton-DhQvSD8U.mjs';
|
||||
import './index-BMAjr3Fm.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/throttle-debounce/esm/index.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/swiper/modules/index.mjs';
|
||||
import './index-BWBnVq-W.mjs';
|
||||
import './Checkbox-Dl5Ja72L.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/perfect-debounce/dist/index.mjs';
|
||||
|
||||
const _imports_0$1 = "data:image/svg+xml,%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20512%20512'%20style='enable-background:new%200%200%20512%20512;'%20xml:space='preserve'%3e%3cg%20id='XMLID_2_'%20fill='white'%3e%3cpath%20id='XMLID_14_'%20class='st0'%20d='M460.8,0H51.2C23.3,0,0,23.3,0,51.2v409.6C0,488.7,23.3,512,51.2,512h409.6%20c27.9,0,51.2-23.3,51.2-51.2V51.2C512,23.3,488.7,0,460.8,0z%20M153.6,460.8H51.2V358.4h102.4V460.8z%20M153.6,307.2H51.2V204.8h102.4%20V307.2z%20M153.6,153.6H51.2V51.2h102.4V153.6z%20M307.2,460.8H204.8V358.4h102.4V460.8z%20M307.2,307.2H204.8V204.8h102.4V307.2z%20M307.2,153.6H204.8V51.2h102.4V153.6z%20M460.8,460.8H358.4V358.4h102.4V460.8z%20M460.8,307.2H358.4V204.8h102.4V307.2z%20M460.8,153.6%20H358.4V51.2h102.4V153.6z'/%3e%3c/g%3e%3c/svg%3e";
|
||||
const _imports_1$1 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2024.1.1,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20512%20512'%20style='enable-background:new%200%200%20512%20512;'%20xml:space='preserve'%3e%3cg%20id='XMLID_2_'%3e%3cpath%20id='XMLID_14_'%20class='st0'%20d='M460.8,0H51.2C23.3,0,0,23.3,0,51.2v409.6C0,488.7,23.3,512,51.2,512h409.6%20c27.9,0,51.2-23.3,51.2-51.2V51.2C512,23.3,488.7,0,460.8,0z%20M153.6,460.8H51.2V358.4h102.4V460.8z%20M153.6,307.2H51.2V204.8h102.4%20V307.2z%20M153.6,153.6H51.2V51.2h102.4V153.6z%20M307.2,460.8H204.8V358.4h102.4V460.8z%20M307.2,307.2H204.8V204.8h102.4V307.2z%20M307.2,153.6H204.8V51.2h102.4V153.6z%20M460.8,460.8H358.4V358.4h102.4V460.8z%20M460.8,307.2H358.4V204.8h102.4V307.2z%20M460.8,153.6%20H358.4V51.2h102.4V153.6z'/%3e%3c/g%3e%3c/svg%3e";
|
||||
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
||||
__name: "grid",
|
||||
__ssrInlineRender: true,
|
||||
setup(__props) {
|
||||
const config = useConfigStore();
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
if (unref(config).isNightStore) {
|
||||
_push(`<img${ssrRenderAttrs(mergeProps({
|
||||
src: _imports_0$1,
|
||||
class: "w-1rem h-1rem",
|
||||
alt: "grid",
|
||||
"cursor-pointer": ""
|
||||
}, _attrs))}>`);
|
||||
} else {
|
||||
_push(`<img${ssrRenderAttrs(mergeProps({
|
||||
src: _imports_1$1,
|
||||
alt: "grid",
|
||||
"cursor-pointer": "",
|
||||
class: "w-1rem h-1rem"
|
||||
}, _attrs))}>`);
|
||||
}
|
||||
};
|
||||
}
|
||||
});
|
||||
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("assets/img/icons/grid.vue");
|
||||
return _sfc_setup$4 ? _sfc_setup$4(props, ctx) : void 0;
|
||||
};
|
||||
const _imports_0 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20width='800px'%20height='800px'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M21%206H19M21%2012H16M21%2018H16M7%2020V13.5612C7%2013.3532%207%2013.2492%206.97958%2013.1497C6.96147%2013.0615%206.93151%2012.9761%206.89052%2012.8958C6.84431%2012.8054%206.77934%2012.7242%206.64939%2012.5617L3.35061%208.43826C3.22066%208.27583%203.15569%208.19461%203.10948%208.10417C3.06849%208.02393%203.03853%207.93852%203.02042%207.85026C3%207.75078%203%207.64677%203%207.43875V5.6C3%205.03995%203%204.75992%203.10899%204.54601C3.20487%204.35785%203.35785%204.20487%203.54601%204.10899C3.75992%204%204.03995%204%204.6%204H13.4C13.9601%204%2014.2401%204%2014.454%204.10899C14.6422%204.20487%2014.7951%204.35785%2014.891%204.54601C15%204.75992%2015%205.03995%2015%205.6V7.43875C15%207.64677%2015%207.75078%2014.9796%207.85026C14.9615%207.93852%2014.9315%208.02393%2014.8905%208.10417C14.8443%208.19461%2014.7793%208.27583%2014.6494%208.43826L11.3506%2012.5617C11.2207%2012.7242%2011.1557%2012.8054%2011.1095%2012.8958C11.0685%2012.9761%2011.0385%2013.0615%2011.0204%2013.1497C11%2013.2492%2011%2013.3532%2011%2013.5612V17L7%2020Z'%20stroke='white'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e";
|
||||
const _imports_1 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20width='800px'%20height='800px'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M21%206H19M21%2012H16M21%2018H16M7%2020V13.5612C7%2013.3532%207%2013.2492%206.97958%2013.1497C6.96147%2013.0615%206.93151%2012.9761%206.89052%2012.8958C6.84431%2012.8054%206.77934%2012.7242%206.64939%2012.5617L3.35061%208.43826C3.22066%208.27583%203.15569%208.19461%203.10948%208.10417C3.06849%208.02393%203.03853%207.93852%203.02042%207.85026C3%207.75078%203%207.64677%203%207.43875V5.6C3%205.03995%203%204.75992%203.10899%204.54601C3.20487%204.35785%203.35785%204.20487%203.54601%204.10899C3.75992%204%204.03995%204%204.6%204H13.4C13.9601%204%2014.2401%204%2014.454%204.10899C14.6422%204.20487%2014.7951%204.35785%2014.891%204.54601C15%204.75992%2015%205.03995%2015%205.6V7.43875C15%207.64677%2015%207.75078%2014.9796%207.85026C14.9615%207.93852%2014.9315%208.02393%2014.8905%208.10417C14.8443%208.19461%2014.7793%208.27583%2014.6494%208.43826L11.3506%2012.5617C11.2207%2012.7242%2011.1557%2012.8054%2011.1095%2012.8958C11.0685%2012.9761%2011.0385%2013.0615%2011.0204%2013.1497C11%2013.2492%2011%2013.3532%2011%2013.5612V17L7%2020Z'%20stroke='%23000000'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e";
|
||||
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
||||
__name: "filter",
|
||||
__ssrInlineRender: true,
|
||||
setup(__props) {
|
||||
const config = useConfigStore();
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
if (unref(config).isNightStore) {
|
||||
_push(`<img${ssrRenderAttrs(mergeProps({
|
||||
class: "w-1.5rem h-1.5rem",
|
||||
src: _imports_0,
|
||||
alt: "filter",
|
||||
"cursor-pointer": ""
|
||||
}, _attrs))}>`);
|
||||
} else {
|
||||
_push(`<img${ssrRenderAttrs(mergeProps({
|
||||
src: _imports_1,
|
||||
class: "w-1.5rem h-1.5rem",
|
||||
alt: "filter",
|
||||
"cursor-pointer": ""
|
||||
}, _attrs))}>`);
|
||||
}
|
||||
};
|
||||
}
|
||||
});
|
||||
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("assets/img/icons/filter.vue");
|
||||
return _sfc_setup$3 ? _sfc_setup$3(props, ctx) : void 0;
|
||||
};
|
||||
function shortenUrl(url, maxLength = 50) {
|
||||
if (url.length <= maxLength) return url;
|
||||
const start = url.slice(0, Math.floor(maxLength / 2) - 3);
|
||||
const end = url.slice(-Math.floor(maxLength / 2));
|
||||
return `${start}...${end}`;
|
||||
}
|
||||
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
||||
__name: "Seller",
|
||||
__ssrInlineRender: true,
|
||||
async setup(__props) {
|
||||
let __temp, __restore;
|
||||
const router = useRouter$1();
|
||||
const selectedStoryId = ref(null);
|
||||
const activeKey = ref("products");
|
||||
ref(false);
|
||||
const config = useConfigStore();
|
||||
const user = useUserStore();
|
||||
const mediaStore = useMediaStore();
|
||||
useCartStore();
|
||||
const userPost = useUserPostStore();
|
||||
const onlinePrices = usePriceStore();
|
||||
const seller = computed(() => config.sellerConfig?.store);
|
||||
const tala18 = ref(onlinePrices?.prices.find((x) => x?.id_key === "8-geram18")?.price);
|
||||
const userStory = computed(() => {
|
||||
return mediaStore.users.find((x) => x.id === seller.value?.id);
|
||||
});
|
||||
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 observer = ref();
|
||||
useIntersectionObserver(observer, async ([{ isIntersecting }]) => {
|
||||
if (isIntersecting && !userPost.loading && !userPost.endPage) {
|
||||
setTimeout(async () => {
|
||||
const nextPage = userPost.currentPage + 1;
|
||||
const data2 = await userPost.loadPosts(seller.value?.user_id, nextPage);
|
||||
userPost.loadStateNextPage(data2);
|
||||
}, 100);
|
||||
}
|
||||
});
|
||||
const { data } = ([__temp, __restore] = withAsyncContext(async () => useAsyncData("productMainSeller", async () => {
|
||||
userPost.reset();
|
||||
return await userPost.loadPosts(seller.value?.user_id, 1);
|
||||
})), __temp = await __temp, __restore(), __temp);
|
||||
watch(data, () => {
|
||||
if (data) {
|
||||
userPost.loadStateNextPage(data.value);
|
||||
}
|
||||
});
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
const _component_ClientOnly = __nuxt_component_0;
|
||||
const _component_client_only = __nuxt_component_0;
|
||||
const _component_ATabs = Tabs;
|
||||
const _component_ATabPane = __nuxt_component_1;
|
||||
const _directive_lazy = resolveDirective("lazy");
|
||||
let _temp0;
|
||||
_push(`<div${ssrRenderAttrs(_attrs)} data-v-224dcc9a><div class="absolute top-0 w-inherit right-0 left-0" data-v-224dcc9a><div class="flex justify-between w-full p-4" data-v-224dcc9a><div class="font-semibold text-lg" data-v-224dcc9a>${ssrInterpolate(seller.value?.username)}</div>`);
|
||||
_push(ssrRenderComponent(_component_ClientOnly, null, {}, _parent));
|
||||
_push(`</div><div class="h-90vh overflow-y-auto pb-5vh" data-v-224dcc9a><div class="px4" data-v-224dcc9a><div class="flex" data-v-224dcc9a>`);
|
||||
_push(ssrRenderComponent(UserProfilePic, {
|
||||
src: seller.value?.avatar,
|
||||
onClick: ($event) => userStory.value?.stories?.length === 0 || !userStory.value?.stories ? "" : selectedStoryId.value = seller.value?.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(user).user?.id || _item.user_id === "me")),
|
||||
showAdd: unref(config).isSeller
|
||||
}, null, _parent));
|
||||
_push(`<div class="p3 text-sm" data-v-224dcc9a><div class="flex mt2 gap-3" data-v-224dcc9a><div class="" data-v-224dcc9a><div class="font-semibold" data-v-224dcc9a>${ssrInterpolate(formatNumber(seller.value?.stats?.total_product ?? 0))}</div><div class="text-xs" data-v-224dcc9a>${ssrInterpolate(unref(config).useString("products"))}</div></div>`);
|
||||
if (unref(config).isSeller) {
|
||||
_push(`<div class="" data-v-224dcc9a><div class="font-semibold" data-v-224dcc9a>${ssrInterpolate(formatNumber(seller.value?.stats?.total_customer ?? 0))}</div><div class="text-xs" data-v-224dcc9a>${ssrInterpolate(unref(config).useString("customers"))}</div></div>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(`<div class="" data-v-224dcc9a><div class="font-semibold" data-v-224dcc9a>${ssrInterpolate(formatNumber(unref(config).isSeller ? seller.value?.stats?.sell_total_order_count ?? 0 : unref(user)?.user?.stats?.buy_total_order_count ?? 0))}</div><div class="text-xs" data-v-224dcc9a>${ssrInterpolate(unref(config).isSeller ? unref(config).useString("orders") : unref(config).useString("yourOrders"))}</div></div>`);
|
||||
if (unref(config).APP_HAS_GOLD && tala18.value) {
|
||||
_push(`<div class="" data-v-224dcc9a><div class="font-semibold flex gap-1" data-v-224dcc9a>${ssrInterpolate(
|
||||
// usePrice((tala18/1000)?? 0,true,'')
|
||||
("usePrice" in _ctx ? _ctx.usePrice : unref(usePrice))(tala18.value / 10, true, "")
|
||||
)} <div class="text-xs" data-v-224dcc9a>${ssrInterpolate(unref(config).useString("toman"))}</div></div><div class="text-xs" data-v-224dcc9a>${ssrInterpolate(unref(config).useString("goldGramPrice"))}</div></div>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(`</div></div></div><div class="text-xs mt-5 whitespace-pre-line" data-v-224dcc9a>${ssrInterpolate(seller.value?.bio)}</div>`);
|
||||
if (seller.value?.website) {
|
||||
_push(`<a${ssrRenderAttr("href", "https://" + seller.value?.website)} target="_blank" data-v-224dcc9a><div class="flex items-center text-xs gap-1 text-primary" data-v-224dcc9a>`);
|
||||
_push(ssrRenderComponent(BasicIconOld, {
|
||||
icon: "vuesax-linear:link-1",
|
||||
class: "text-primary",
|
||||
size: "20"
|
||||
}, null, _parent));
|
||||
_push(` ${ssrInterpolate(seller.value?.website)}</div></a>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
if (unref(config).ENAMAD_URL) {
|
||||
_push(`<div data-v-224dcc9a> اینماد <a${ssrRenderAttr("href", unref(config).ENAMAD_URL)} target="_blank" data-v-224dcc9a><div class="flex items-center text-xs gap-1 text-primary" data-v-224dcc9a>`);
|
||||
_push(ssrRenderComponent(BasicIconOld, {
|
||||
icon: "vuesax-linear:link-1",
|
||||
class: "text-primary",
|
||||
size: "20"
|
||||
}, null, _parent));
|
||||
_push(` ${ssrInterpolate(unref(shortenUrl)(unref(config).ENAMAD_URL))}</div></a></div>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(ssrRenderComponent(_component_client_only, null, {}, _parent));
|
||||
_push(`<div class="mt-4 flex -me16px" data-v-224dcc9a>`);
|
||||
_push(ssrRenderComponent(Highlights, { "current-user": seller.value }, null, _parent));
|
||||
_push(`</div></div>`);
|
||||
_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: "products"
|
||||
}, {
|
||||
tab: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
||||
if (_push3) {
|
||||
_push3(`<span data-v-224dcc9a${_scopeId2}>`);
|
||||
_push3(ssrRenderComponent(_sfc_main$4, null, null, _parent3, _scopeId2));
|
||||
_push3(`</span>`);
|
||||
} else {
|
||||
return [
|
||||
createVNode("span", null, [
|
||||
createVNode(_sfc_main$4)
|
||||
])
|
||||
];
|
||||
}
|
||||
}),
|
||||
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
||||
if (_push3) {
|
||||
_push3(`<div class="w-full grid grid-cols-3 mt-[1px] gap-2px" data-v-224dcc9a${_scopeId2}><!--[-->`);
|
||||
ssrRenderList(unref(userPost).posts, (post, i) => {
|
||||
_push3(`<div class="w-full aspect-square relative" data-v-224dcc9a${_scopeId2}>`);
|
||||
if (post.files?.length) {
|
||||
_push3(`<!--[-->`);
|
||||
if (post.files[0]?.type === "image") {
|
||||
_push3(`<img${ssrRenderAttrs(_temp0 = mergeProps({
|
||||
class: "w-full h-full object-cover",
|
||||
alt: unref(config).appName.en
|
||||
}, ssrGetDirectiveProps(_ctx, _directive_lazy, { src: unref(config).useDataStorage(post.files[0].url), loading: unref(loadGray), error: unref(loadGray) })))} data-v-224dcc9a${_scopeId2}>${"textContent" in _temp0 ? ssrInterpolate(_temp0.textContent) : _temp0.innerHTML ?? ""}`);
|
||||
} else if (post.files[0]?.type === "video") {
|
||||
_push3(`<div class="relative w-full h-full" data-v-224dcc9a${_scopeId2}><video${ssrRenderAttr("src", post.files[0]?.url)} class="hidden" data-v-224dcc9a${_scopeId2}></video><img${ssrRenderAttr("src", videoThumbnails.value[post.files[0]?.url])} class="w-full h-full object-cover" alt="Video Thumbnail" data-v-224dcc9a${_scopeId2}><div class="absolute inset-0 flex items-center justify-center bg-black bg-opacity-30" data-v-224dcc9a${_scopeId2}><svg class="w-12 h-12 text-white" fill="currentColor" viewBox="0 0 24 24" data-v-224dcc9a${_scopeId2}><path d="M8 5v14l11-7z" data-v-224dcc9a${_scopeId2}></path></svg></div></div>`);
|
||||
} else {
|
||||
_push3(`<!---->`);
|
||||
}
|
||||
_push3(`<!--]-->`);
|
||||
} else {
|
||||
_push3(`<!---->`);
|
||||
}
|
||||
_push3(`</div>`);
|
||||
});
|
||||
_push3(`<!--]--></div>`);
|
||||
} else {
|
||||
return [
|
||||
createVNode("div", { class: "w-full grid grid-cols-3 mt-[1px] gap-2px" }, [
|
||||
(openBlock(true), createBlock(Fragment, null, renderList(unref(userPost).posts, (post, i) => {
|
||||
return openBlock(), createBlock("div", {
|
||||
key: i,
|
||||
class: "w-full aspect-square relative",
|
||||
onClick: ($event) => unref(router).push({ name: "posts", query: { target: post.id, userId: seller.value?.user_id } })
|
||||
}, [
|
||||
post.files?.length ? (openBlock(), createBlock(Fragment, { key: 0 }, [
|
||||
post.files[0]?.type === "image" ? withDirectives((openBlock(), createBlock("img", {
|
||||
key: 0,
|
||||
class: "w-full h-full object-cover",
|
||||
alt: unref(config).appName.en
|
||||
}, null, 8, ["alt"])), [
|
||||
[_directive_lazy, { src: unref(config).useDataStorage(post.files[0].url), loading: unref(loadGray), error: unref(loadGray) }]
|
||||
]) : post.files[0]?.type === "video" ? (openBlock(), createBlock("div", {
|
||||
key: 1,
|
||||
class: "relative w-full h-full"
|
||||
}, [
|
||||
createVNode("video", {
|
||||
ref_for: true,
|
||||
ref: "videoRefs",
|
||||
src: post.files[0]?.url,
|
||||
class: "hidden"
|
||||
}, null, 8, ["src"]),
|
||||
createVNode("img", {
|
||||
src: videoThumbnails.value[post.files[0]?.url],
|
||||
class: "w-full h-full object-cover",
|
||||
alt: "Video Thumbnail"
|
||||
}, null, 8, ["src"]),
|
||||
createVNode("div", { class: "absolute inset-0 flex items-center justify-center bg-black bg-opacity-30" }, [
|
||||
(openBlock(), createBlock("svg", {
|
||||
class: "w-12 h-12 text-white",
|
||||
fill: "currentColor",
|
||||
viewBox: "0 0 24 24"
|
||||
}, [
|
||||
createVNode("path", { d: "M8 5v14l11-7z" })
|
||||
]))
|
||||
])
|
||||
])) : createCommentVNode("", true)
|
||||
], 64)) : createCommentVNode("", true)
|
||||
], 8, ["onClick"]);
|
||||
}), 128))
|
||||
])
|
||||
];
|
||||
}
|
||||
}),
|
||||
_: 1
|
||||
}, _parent2, _scopeId));
|
||||
_push2(ssrRenderComponent(_component_ATabPane, {
|
||||
class: "!w-full",
|
||||
key: "search"
|
||||
}, {
|
||||
tab: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
||||
if (_push3) {
|
||||
_push3(`<span data-v-224dcc9a${_scopeId2}>`);
|
||||
_push3(ssrRenderComponent(_sfc_main$3, null, null, _parent3, _scopeId2));
|
||||
_push3(`</span>`);
|
||||
} else {
|
||||
return [
|
||||
createVNode("span", null, [
|
||||
createVNode(_sfc_main$3)
|
||||
])
|
||||
];
|
||||
}
|
||||
}),
|
||||
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
||||
if (_push3) {
|
||||
_push3(ssrRenderComponent(_sfc_main$5, { class: "!-mt-3" }, null, _parent3, _scopeId2));
|
||||
} else {
|
||||
return [
|
||||
createVNode(_sfc_main$5, { class: "!-mt-3" })
|
||||
];
|
||||
}
|
||||
}),
|
||||
_: 1
|
||||
}, _parent2, _scopeId));
|
||||
} else {
|
||||
return [
|
||||
createVNode(_component_ATabPane, {
|
||||
class: "!w-full",
|
||||
key: "products"
|
||||
}, {
|
||||
tab: withCtx(() => [
|
||||
createVNode("span", null, [
|
||||
createVNode(_sfc_main$4)
|
||||
])
|
||||
]),
|
||||
default: withCtx(() => [
|
||||
createVNode("div", { class: "w-full grid grid-cols-3 mt-[1px] gap-2px" }, [
|
||||
(openBlock(true), createBlock(Fragment, null, renderList(unref(userPost).posts, (post, i) => {
|
||||
return openBlock(), createBlock("div", {
|
||||
key: i,
|
||||
class: "w-full aspect-square relative",
|
||||
onClick: ($event) => unref(router).push({ name: "posts", query: { target: post.id, userId: seller.value?.user_id } })
|
||||
}, [
|
||||
post.files?.length ? (openBlock(), createBlock(Fragment, { key: 0 }, [
|
||||
post.files[0]?.type === "image" ? withDirectives((openBlock(), createBlock("img", {
|
||||
key: 0,
|
||||
class: "w-full h-full object-cover",
|
||||
alt: unref(config).appName.en
|
||||
}, null, 8, ["alt"])), [
|
||||
[_directive_lazy, { src: unref(config).useDataStorage(post.files[0].url), loading: unref(loadGray), error: unref(loadGray) }]
|
||||
]) : post.files[0]?.type === "video" ? (openBlock(), createBlock("div", {
|
||||
key: 1,
|
||||
class: "relative w-full h-full"
|
||||
}, [
|
||||
createVNode("video", {
|
||||
ref_for: true,
|
||||
ref: "videoRefs",
|
||||
src: post.files[0]?.url,
|
||||
class: "hidden"
|
||||
}, null, 8, ["src"]),
|
||||
createVNode("img", {
|
||||
src: videoThumbnails.value[post.files[0]?.url],
|
||||
class: "w-full h-full object-cover",
|
||||
alt: "Video Thumbnail"
|
||||
}, null, 8, ["src"]),
|
||||
createVNode("div", { class: "absolute inset-0 flex items-center justify-center bg-black bg-opacity-30" }, [
|
||||
(openBlock(), createBlock("svg", {
|
||||
class: "w-12 h-12 text-white",
|
||||
fill: "currentColor",
|
||||
viewBox: "0 0 24 24"
|
||||
}, [
|
||||
createVNode("path", { d: "M8 5v14l11-7z" })
|
||||
]))
|
||||
])
|
||||
])) : createCommentVNode("", true)
|
||||
], 64)) : createCommentVNode("", true)
|
||||
], 8, ["onClick"]);
|
||||
}), 128))
|
||||
])
|
||||
]),
|
||||
_: 1
|
||||
}),
|
||||
createVNode(_component_ATabPane, {
|
||||
class: "!w-full",
|
||||
key: "search"
|
||||
}, {
|
||||
tab: withCtx(() => [
|
||||
createVNode("span", null, [
|
||||
createVNode(_sfc_main$3)
|
||||
])
|
||||
]),
|
||||
default: withCtx(() => [
|
||||
createVNode(_sfc_main$5, { class: "!-mt-3" })
|
||||
]),
|
||||
_: 1
|
||||
})
|
||||
];
|
||||
}
|
||||
}),
|
||||
_: 1
|
||||
}, _parent));
|
||||
_push(`<div class="w-full opacity-0 relative" style="${ssrRenderStyle(!unref(userPost).loading ? null : { display: "none" })}" data-v-224dcc9a> load </div>`);
|
||||
if (unref(userPost).loading) {
|
||||
_push(ssrRenderComponent(__nuxt_component_0$1, null, null, _parent));
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(`</div></div>`);
|
||||
if (selectedStoryId.value) {
|
||||
_push(ssrRenderComponent(_sfc_main$6, {
|
||||
id: selectedStoryId.value,
|
||||
"onUpdate:id": ($event) => selectedStoryId.value = $event,
|
||||
specifyId: ""
|
||||
}, null, _parent));
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(`</div>`);
|
||||
};
|
||||
}
|
||||
});
|
||||
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/user/userMain/components/Seller.vue");
|
||||
return _sfc_setup$2 ? _sfc_setup$2(props, ctx) : void 0;
|
||||
};
|
||||
const Seller = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-224dcc9a"]]);
|
||||
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
||||
__name: "index",
|
||||
__ssrInlineRender: true,
|
||||
setup(__props) {
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
_push(ssrRenderComponent(Seller, _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/user/userMain/index.vue");
|
||||
return _sfc_setup$1 ? _sfc_setup$1(props, ctx) : void 0;
|
||||
};
|
||||
const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
__name: "index",
|
||||
__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/index.vue");
|
||||
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
||||
};
|
||||
|
||||
export { _sfc_main as default };
|
||||
@@ -1,92 +0,0 @@
|
||||
import { defineComponent, useSSRContext } from 'vue';
|
||||
import { ssrRenderComponent } from 'vue/server-renderer';
|
||||
import { _ as _sfc_main$1 } from './index-COMzcQ5V.mjs';
|
||||
import './BasicIconOld-93vAWohq.mjs';
|
||||
import './_plugin-vue_export-helper-1tPrXgE0.mjs';
|
||||
import './server.mjs';
|
||||
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 '../routes/renderer.mjs';
|
||||
import 'vue-bundle-renderer/runtime';
|
||||
import 'unhead/server';
|
||||
import 'devalue';
|
||||
import 'unhead/utils';
|
||||
import './PostCardSkeleton-CpE_rsE1.mjs';
|
||||
import './empty_user-BaUNCdgf.mjs';
|
||||
import './useDateTime-D8RCoGwW.mjs';
|
||||
import 'moment';
|
||||
import 'moment-timezone';
|
||||
import 'moment-jalaali';
|
||||
import 'date-fns';
|
||||
import 'date-fns/locale';
|
||||
import 'swiper/vue';
|
||||
import 'swiper/modules';
|
||||
import './post_loading-BiySI7bp.mjs';
|
||||
import './like-BhIOg3YL.mjs';
|
||||
import './moreOptionProduct-_dlSUx_a.mjs';
|
||||
import './index-6Q0zJ0BK.mjs';
|
||||
import '@vueuse/gesture';
|
||||
import '@headlessui/vue';
|
||||
import 'framesync';
|
||||
import 'popmotion';
|
||||
import 'style-value-types';
|
||||
import './UserProfilePic-BwsIUO56.mjs';
|
||||
import './BasicButton-QGDeiwgb.mjs';
|
||||
import './index-CRte5P_X.mjs';
|
||||
import 'throttle-debounce';
|
||||
import './index-C9wXCwkF.mjs';
|
||||
import 'dom-align';
|
||||
import './index-Depu8Jil.mjs';
|
||||
import './shallowequal-BCwuz4ga.mjs';
|
||||
import 'lodash-es/uniq.js';
|
||||
import './index-B8JfwQ3c.mjs';
|
||||
import './FormItemContext-eb0AodWH.mjs';
|
||||
import './index-C8EZBqzI.mjs';
|
||||
import 'lodash-es/isPlainObject.js';
|
||||
import 'resize-observer-polyfill';
|
||||
import './collapseMotion-cQ2SGjCA.mjs';
|
||||
import 'vue-content-loader';
|
||||
import './product-BPTplX4_.mjs';
|
||||
import './handle-DppcF3zW.mjs';
|
||||
import './userPostsStore-gFQVmaju.mjs';
|
||||
import './media-DD0HTZbK.mjs';
|
||||
import './save-Dlu8lCVD.mjs';
|
||||
import './asyncData-DMpxHWuQ.mjs';
|
||||
|
||||
const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
__name: "index",
|
||||
__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/posts/index.vue");
|
||||
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
||||
};
|
||||
|
||||
export { _sfc_main as default };
|
||||
+29
-14
@@ -1,13 +1,14 @@
|
||||
import { defineComponent, ref, mergeProps, unref, withCtx, createVNode, createBlock, openBlock, Fragment, renderList, useSSRContext } from 'vue';
|
||||
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 './handle-DppcF3zW.mjs';
|
||||
import { defineComponent, ref, mergeProps, unref, withCtx, createTextVNode, toDisplayString, createVNode, createBlock, openBlock, Fragment, renderList, useSSRContext } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { ssrRenderAttrs, ssrRenderComponent, ssrInterpolate, ssrRenderList, ssrRenderAttr } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/server-renderer/index.mjs';
|
||||
import { Swiper, SwiperSlide } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/swiper/swiper-vue.mjs';
|
||||
import { EffectCoverflow, Pagination } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/swiper/modules/index.mjs';
|
||||
import { m as mediaFilesUrl } from './product-DgF2C5vR.mjs';
|
||||
import { B as BasicIconOld } from './BasicIconOld-93vAWohq.mjs';
|
||||
import { a as useConfigStore, u as useRouter$1 } from './server.mjs';
|
||||
import { B as BaseDatePicker, a as BaseDatePickerJalali } from './BaseDatePicker-C2Rv3dvV.mjs';
|
||||
import { u as useMediaStore } from './media-C3Y2QweF.mjs';
|
||||
import { _ as __nuxt_component_1 } from './FormItem-2KfKSOCd.mjs';
|
||||
import { B as BaseDatePicker, a as BaseDatePickerJalali } from './BaseDatePicker-B4zD8-v-.mjs';
|
||||
import { u as useMediaStore } from './media-D7PFhdrG.mjs';
|
||||
import { S as Spin } from './index-BMAjr3Fm.mjs';
|
||||
import { _ as __nuxt_component_1 } from './FormItem-CMWnBuQX.mjs';
|
||||
|
||||
const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
__name: "index",
|
||||
@@ -25,16 +26,30 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
const modules = [EffectCoverflow, Pagination];
|
||||
const date = /* @__PURE__ */ new Date();
|
||||
const expire_Time = ref(date);
|
||||
ref(false);
|
||||
const loading = ref(false);
|
||||
useMediaStore();
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
const _component_a_spin = Spin;
|
||||
const _component_a_form_item = __nuxt_component_1;
|
||||
_push(`<div${ssrRenderAttrs(mergeProps({ class: "h-screen relative" }, _attrs))}><div class="flex absolute top-0 right-0 left-0 gap-8 items-center justify-between p-4"><div class="flex gap-4">`);
|
||||
_push(`<div${ssrRenderAttrs(mergeProps({ class: "h-screen relative" }, _attrs))}><div class="flex sticky top-0 right-0 left-0 gap-8 items-center justify-between p-4"><div class="flex gap-4">`);
|
||||
_push(ssrRenderComponent(BasicIconOld, {
|
||||
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">${ssrInterpolate(unref(config).useString("create"))}</div></div><div class="swiper-container pt-4rem">`);
|
||||
_push(`<div font-semibold>${ssrInterpolate(unref(config).useString("newStory"))}</div></div><div class="text-primary text-sm">`);
|
||||
_push(ssrRenderComponent(_component_a_spin, { spinning: loading.value }, {
|
||||
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
||||
if (_push2) {
|
||||
_push2(`${ssrInterpolate(unref(config).useString("create"))}`);
|
||||
} else {
|
||||
return [
|
||||
createTextVNode(toDisplayString(unref(config).useString("create")), 1)
|
||||
];
|
||||
}
|
||||
}),
|
||||
_: 1
|
||||
}, _parent));
|
||||
_push(`</div></div><div class="swiper-container pt-4rem">`);
|
||||
_push(ssrRenderComponent(unref(Swiper), {
|
||||
effect: "coverflow",
|
||||
grabCursor: true,
|
||||
@@ -65,7 +80,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
if (isVideo(media)) {
|
||||
_push3(`<video${ssrRenderAttr("src", media)} controls class="media video"${_scopeId2}></video>`);
|
||||
} else {
|
||||
_push3(`<img${ssrRenderAttr("src", media)} class="media"${_scopeId2}>`);
|
||||
_push3(`<img${ssrRenderAttr("src", media)} class="media !object-contain bg-gray-100"${_scopeId2}>`);
|
||||
}
|
||||
_push3(`</div>`);
|
||||
} else {
|
||||
@@ -79,7 +94,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
}, null, 8, ["src"])) : (openBlock(), createBlock("img", {
|
||||
key: 1,
|
||||
src: media,
|
||||
class: "media"
|
||||
class: "media !object-contain bg-gray-100"
|
||||
}, null, 8, ["src"]))
|
||||
])
|
||||
];
|
||||
@@ -125,7 +140,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
}, null, 8, ["src"])) : (openBlock(), createBlock("img", {
|
||||
key: 1,
|
||||
src: media,
|
||||
class: "media"
|
||||
class: "media !object-contain bg-gray-100"
|
||||
}, null, 8, ["src"]))
|
||||
])
|
||||
]),
|
||||
+5
-5
@@ -1,8 +1,8 @@
|
||||
import _objectSpread from '@babel/runtime/helpers/esm/objectSpread2';
|
||||
import { defineComponent, shallowRef, watchEffect, computed, createVNode, Fragment } from 'vue';
|
||||
import { P as PropTypes, ah as eventType, G as useConfigInject, H as genComponentStyleHook, I as classNames, ai as Wave, J as merge, aj as CloseOutlined, M as resetComponent, ak as capitalize } from './server.mjs';
|
||||
import { i as isPresetColor, a as isPresetStatusColor, g as genPresetColor } from './index-C9wXCwkF.mjs';
|
||||
import _extends from '@babel/runtime/helpers/esm/extends';
|
||||
import _objectSpread from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@babel/runtime/helpers/esm/objectSpread2.js';
|
||||
import { defineComponent, shallowRef, watchEffect, computed, createVNode, Fragment } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { P as PropTypes, ad as eventType, C as useConfigInject, D as genComponentStyleHook, E as classNames, ae as Wave, F as merge, af as CloseOutlined, I as resetComponent, ag as capitalize } from './server.mjs';
|
||||
import { i as isPresetColor, a as isPresetStatusColor, g as genPresetColor } from './index-Bn4rLj9V.mjs';
|
||||
import _extends from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@babel/runtime/helpers/esm/extends.js';
|
||||
|
||||
const genTagStatusStyle = (token, status, cssVariableType) => {
|
||||
const capitalizedCssVariableType = capitalize(cssVariableType);
|
||||
@@ -1,359 +0,0 @@
|
||||
import { defineComponent, unref, ref, mergeProps, computed, withAsyncContext, watch, useSSRContext } from 'vue';
|
||||
import { ssrRenderComponent, ssrRenderAttrs, ssrRenderList, ssrInterpolate, ssrRenderStyle } from 'vue/server-renderer';
|
||||
import { a as useConfigStore, u as useRouter$1, b as useUserStore, o as useCartStore, _ as __nuxt_component_0, p as useState, q as useRequestEvent, m as useIntersectionObserver, t as getProducts, n as getToken, d as api$1 } from './server.mjs';
|
||||
import { P as Post, _ as _sfc_main$5 } from './PostCardSkeleton-CpE_rsE1.mjs';
|
||||
import { C as CommentAddEdit, _ as _sfc_main$6, d as deletePostLike, c as createPostLike } from './moreOptionProduct-_dlSUx_a.mjs';
|
||||
import { d as deleteSave, c as createSave } from './save-Dlu8lCVD.mjs';
|
||||
import { u as useProductStore } from './product-BPTplX4_.mjs';
|
||||
import { u as useAsyncData } from './asyncData-DMpxHWuQ.mjs';
|
||||
import { _ as _export_sfc } from './_plugin-vue_export-helper-1tPrXgE0.mjs';
|
||||
import { _ as _sfc_main$4 } from './FullScreenStories-BF2ht6tI.mjs';
|
||||
import { u as useMediaStore } from './media-C3Y2QweF.mjs';
|
||||
import { U as UserProfilePic } from './UserProfilePic-BwsIUO56.mjs';
|
||||
import { _ as __nuxt_component_1 } from './index-CFD8lA6D.mjs';
|
||||
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 '../routes/renderer.mjs';
|
||||
import 'vue-bundle-renderer/runtime';
|
||||
import 'unhead/server';
|
||||
import 'devalue';
|
||||
import 'unhead/utils';
|
||||
import './empty_user-BaUNCdgf.mjs';
|
||||
import './useDateTime-D8RCoGwW.mjs';
|
||||
import 'moment';
|
||||
import 'moment-timezone';
|
||||
import 'moment-jalaali';
|
||||
import 'date-fns';
|
||||
import 'date-fns/locale';
|
||||
import 'swiper/vue';
|
||||
import 'swiper/modules';
|
||||
import './post_loading-BiySI7bp.mjs';
|
||||
import './BasicIconOld-93vAWohq.mjs';
|
||||
import './like-BhIOg3YL.mjs';
|
||||
import 'vue-content-loader';
|
||||
import './index-6Q0zJ0BK.mjs';
|
||||
import '@vueuse/gesture';
|
||||
import '@headlessui/vue';
|
||||
import 'framesync';
|
||||
import 'popmotion';
|
||||
import 'style-value-types';
|
||||
import './BasicButton-QGDeiwgb.mjs';
|
||||
import './index-CRte5P_X.mjs';
|
||||
import 'throttle-debounce';
|
||||
import './index-C9wXCwkF.mjs';
|
||||
import 'dom-align';
|
||||
import './index-Depu8Jil.mjs';
|
||||
import './shallowequal-BCwuz4ga.mjs';
|
||||
import 'lodash-es/uniq.js';
|
||||
import './index-B8JfwQ3c.mjs';
|
||||
import './FormItemContext-eb0AodWH.mjs';
|
||||
import './index-C8EZBqzI.mjs';
|
||||
import 'lodash-es/isPlainObject.js';
|
||||
import 'resize-observer-polyfill';
|
||||
import './collapseMotion-cQ2SGjCA.mjs';
|
||||
import './handle-DppcF3zW.mjs';
|
||||
import './BasicInput-DrA-e4wX.mjs';
|
||||
import './usePrice-B-5-jXKQ.mjs';
|
||||
import './media-DD0HTZbK.mjs';
|
||||
import '../_/CheckOutlined.mjs';
|
||||
import './useRefs-BHKrVg4I.mjs';
|
||||
|
||||
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
||||
__name: "Posts",
|
||||
__ssrInlineRender: true,
|
||||
props: {
|
||||
userPostScroll: {},
|
||||
scrollSave: {}
|
||||
},
|
||||
async setup(__props) {
|
||||
let __temp, __restore;
|
||||
const router = useRouter$1();
|
||||
const config = useConfigStore();
|
||||
const posts = ref([]);
|
||||
const total = ref(100);
|
||||
const currentPage = ref(0);
|
||||
const limit = ref(10);
|
||||
const endPage = ref(false);
|
||||
const loading = ref(false);
|
||||
const addLikeLoading = ref(false);
|
||||
const commentPostId = ref();
|
||||
const commentVisible = ref(false);
|
||||
const optionVisible = ref(false);
|
||||
const optionPostId = ref();
|
||||
const props = __props;
|
||||
const user = useUserStore();
|
||||
computed(() => props.userPostScroll === "userPostScroll");
|
||||
const percent = useProductStore();
|
||||
ref(null);
|
||||
const reset = () => {
|
||||
endPage.value = false;
|
||||
posts.value = [];
|
||||
total.value = 0;
|
||||
};
|
||||
function handleLike(isLiked, id) {
|
||||
try {
|
||||
addLikeLoading.value = true;
|
||||
if (getToken()) {
|
||||
if (isLiked) {
|
||||
deletePostLike(id);
|
||||
const index = posts.value.findIndex((x) => x.id === id);
|
||||
posts.value[index]?.likes.splice(posts.value[index].likes?.findIndex((y) => y.user_id === user.user.id));
|
||||
} else {
|
||||
createPostLike(id);
|
||||
const index = posts.value.findIndex((x) => x.id === id);
|
||||
posts.value[index].likes.push({
|
||||
product_id: id,
|
||||
user_id: user.user.id
|
||||
});
|
||||
}
|
||||
} else {
|
||||
router.push({ name: "auth-login" });
|
||||
api$1.warn(config.useString("pleaseLoginOrRegister"));
|
||||
}
|
||||
} catch (e) {
|
||||
console.log(e);
|
||||
} finally {
|
||||
addLikeLoading.value = false;
|
||||
}
|
||||
}
|
||||
function addCommentId(id) {
|
||||
posts.value[posts.value.findIndex((x) => x.id === commentPostId.value)].comments.push({ id });
|
||||
}
|
||||
function handleSave(isSaved, id) {
|
||||
if (getToken()) {
|
||||
if (isSaved) {
|
||||
deleteSave(id);
|
||||
const index = posts.value.findIndex((x) => x.id === id);
|
||||
posts.value[index]?.saved.splice(posts.value[index].saved?.findIndex((y) => y.user_id === user.user.id));
|
||||
} else {
|
||||
createSave(id);
|
||||
const index = posts.value.findIndex((x) => x.id === id);
|
||||
posts.value[index].saved.push({
|
||||
product_id: id,
|
||||
user_id: user.user.id
|
||||
});
|
||||
}
|
||||
} else {
|
||||
router.push({ name: "auth-login" });
|
||||
api$1.warn(config.useString("pleaseLoginOrRegister"));
|
||||
}
|
||||
}
|
||||
function openOption(id) {
|
||||
optionPostId.value = id;
|
||||
optionVisible.value = true;
|
||||
}
|
||||
function openComment(id) {
|
||||
commentPostId.value = id;
|
||||
commentVisible.value = true;
|
||||
}
|
||||
const request = async (page = 1) => {
|
||||
try {
|
||||
loading.value = true;
|
||||
return await getProducts(page, limit.value);
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
return { data: [], count: 0 };
|
||||
} finally {
|
||||
loading.value = false;
|
||||
}
|
||||
};
|
||||
const isBot = useState("isBot", () => {
|
||||
const event = useRequestEvent();
|
||||
const ua = event?.node.req.headers["user-agent"] || "";
|
||||
const bots = ["googlebot", "bingbot", "yandex", "duckduckbot", "baiduspider", "facebot", "slurp"];
|
||||
console.log(ua.toLowerCase());
|
||||
return bots.some((bot) => ua.toLowerCase().includes(bot));
|
||||
});
|
||||
if (isBot) {
|
||||
const { data } = ([__temp, __restore] = withAsyncContext(() => useAsyncData("posts", async () => {
|
||||
return request(1);
|
||||
})), __temp = await __temp, __restore(), __temp);
|
||||
} else {
|
||||
console.log("real");
|
||||
}
|
||||
const observer = ref();
|
||||
useIntersectionObserver(observer, async ([{ isIntersecting }]) => {
|
||||
if (isIntersecting && !loading.value && !endPage.value) {
|
||||
const nextPage = currentPage.value + 1;
|
||||
const res = await request(nextPage);
|
||||
if (res.data?.length) {
|
||||
posts.value.push(...res.data);
|
||||
currentPage.value = nextPage;
|
||||
}
|
||||
if (res.data?.length < limit.value) {
|
||||
endPage.value = true;
|
||||
}
|
||||
}
|
||||
});
|
||||
computed(() => router.currentRoute.value.query.target || null);
|
||||
const present = computed(() => percent.percentUpload);
|
||||
watch(present, () => {
|
||||
if (present.value == 100) {
|
||||
currentPage.value = 0;
|
||||
reset();
|
||||
request();
|
||||
}
|
||||
});
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
_push(`<!--[--><div class="mt-5 pb-5vh" data-v-ae651381><!--[-->`);
|
||||
ssrRenderList(posts.value, (post, index) => {
|
||||
_push(ssrRenderComponent(Post, {
|
||||
onOpenOption: openOption,
|
||||
onOpenComment: openComment,
|
||||
onHandleLike: handleLike,
|
||||
onHandleSave: handleSave,
|
||||
index,
|
||||
post,
|
||||
key: index,
|
||||
scrollSave: _ctx.scrollSave,
|
||||
"add-like-loading": addLikeLoading.value
|
||||
}, null, _parent));
|
||||
});
|
||||
_push(`<!--]-->`);
|
||||
if (loading.value) {
|
||||
_push(ssrRenderComponent(_sfc_main$5, null, null, _parent));
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(`<div style="${ssrRenderStyle(!loading.value ? null : { display: "none" })}" class="w-full opacity-0 relative" data-v-ae651381> load </div></div>`);
|
||||
_push(ssrRenderComponent(CommentAddEdit, {
|
||||
id: commentPostId.value,
|
||||
open: commentVisible.value,
|
||||
"onUpdate:open": ($event) => commentVisible.value = $event,
|
||||
onAddCommentId: addCommentId
|
||||
}, null, _parent));
|
||||
_push(ssrRenderComponent(_sfc_main$6, {
|
||||
id: optionPostId.value,
|
||||
open: optionVisible.value,
|
||||
"onUpdate:open": ($event) => optionVisible.value = $event
|
||||
}, null, _parent));
|
||||
_push(`<!--]-->`);
|
||||
};
|
||||
}
|
||||
});
|
||||
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/home/components/Posts.vue");
|
||||
return _sfc_setup$3 ? _sfc_setup$3(props, ctx) : void 0;
|
||||
};
|
||||
const Posts = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-ae651381"]]);
|
||||
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
||||
__name: "CustomStories",
|
||||
__ssrInlineRender: true,
|
||||
setup(__props) {
|
||||
const selectedStoryId = ref(null);
|
||||
ref(null);
|
||||
ref(false);
|
||||
useConfigStore();
|
||||
useUserStore();
|
||||
const mediaStore = useMediaStore();
|
||||
const userStore = useUserStore();
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
_push(`<div${ssrRenderAttrs(mergeProps({ class: "stories-container -ms4" }, _attrs))} data-v-2bde2eff><div class="scroll-wrapper ps-4" data-v-2bde2eff><!--[-->`);
|
||||
ssrRenderList(unref(mediaStore).users, (user2) => {
|
||||
_push(`<div class="story" data-v-2bde2eff>`);
|
||||
_push(ssrRenderComponent(UserProfilePic, {
|
||||
src: user2.avatar,
|
||||
seenStory: !user2?.stories?.length || user2.stories.every((item) => item.storyviews.find((_item) => _item.user_id === unref(userStore).user?.id || _item.user_id === "me")),
|
||||
showAdd: user2.id === unref(userStore).user?.id
|
||||
}, null, _parent));
|
||||
_push(`<div class="w-full text-center mt1 text-xs truncate" data-v-2bde2eff>${ssrInterpolate(user2.name)}</div></div>`);
|
||||
});
|
||||
_push(`<!--]--></div>`);
|
||||
if (selectedStoryId.value) {
|
||||
_push(ssrRenderComponent(_sfc_main$4, {
|
||||
id: selectedStoryId.value,
|
||||
"onUpdate:id": ($event) => selectedStoryId.value = $event
|
||||
}, null, _parent));
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(`</div>`);
|
||||
};
|
||||
}
|
||||
});
|
||||
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/home/components/CustomStories.vue");
|
||||
return _sfc_setup$2 ? _sfc_setup$2(props, ctx) : void 0;
|
||||
};
|
||||
const CustomStories = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-2bde2eff"]]);
|
||||
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
||||
__name: "index",
|
||||
__ssrInlineRender: true,
|
||||
setup(__props) {
|
||||
useConfigStore();
|
||||
const percent = useProductStore();
|
||||
useRouter$1();
|
||||
useUserStore();
|
||||
useCartStore();
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
const _component_ClientOnly = __nuxt_component_0;
|
||||
const _component_AProgress = __nuxt_component_1;
|
||||
_push(`<div${ssrRenderAttrs(_attrs)}><div class="absolute top-0 w-inherit right-0 left-0">`);
|
||||
_push(ssrRenderComponent(_component_ClientOnly, null, {}, _parent));
|
||||
_push(`<div class="h-90vh overflow-y-auto pb-10vh scrollHome">`);
|
||||
_push(ssrRenderComponent(CustomStories, { class: "" }, null, _parent));
|
||||
if (unref(percent).percentUpload != 100 && unref(percent).loading) {
|
||||
_push(ssrRenderComponent(_component_AProgress, {
|
||||
percent: unref(percent).percentUpload,
|
||||
"show-info": false,
|
||||
status: "active",
|
||||
size: "small"
|
||||
}, null, _parent));
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(ssrRenderComponent(Posts, {
|
||||
"user-post-scroll": "scrollHome",
|
||||
"scroll-save": "scrollPosition"
|
||||
}, null, _parent));
|
||||
_push(`</div></div></div>`);
|
||||
};
|
||||
}
|
||||
});
|
||||
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/home/index.vue");
|
||||
return _sfc_setup$1 ? _sfc_setup$1(props, ctx) : void 0;
|
||||
};
|
||||
const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
__name: "index",
|
||||
__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/home/index.vue");
|
||||
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
||||
};
|
||||
|
||||
export { _sfc_main as default };
|
||||
@@ -0,0 +1,51 @@
|
||||
import { defineComponent, useSSRContext } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { ssrRenderComponent } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/server-renderer/index.mjs';
|
||||
import { _ as _sfc_main$1 } from './index-BGpesmSF.mjs';
|
||||
import './server.mjs';
|
||||
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/lodash-es/lodash.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 _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
__name: "index",
|
||||
__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/edit/story/[id]/index.vue");
|
||||
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
||||
};
|
||||
|
||||
export { _sfc_main as default };
|
||||
@@ -1,89 +0,0 @@
|
||||
import { a as useConfigStore, aE as useRoute, u as useRouter$1, _ as __nuxt_component_0 } from './server.mjs';
|
||||
import { defineComponent, ref, watch, shallowRef, useSSRContext } from 'vue';
|
||||
import { ssrRenderComponent } from 'vue/server-renderer';
|
||||
import { s as selectedFeatures, b as setItems, i as items, v as variants, u as updateMyAttrs, c as formFields } from './handle-DppcF3zW.mjs';
|
||||
import { differenceBy, cloneDeep } from 'lodash-es';
|
||||
import { u as useProductStore } from './product-BPTplX4_.mjs';
|
||||
|
||||
const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
__name: "index",
|
||||
__ssrInlineRender: true,
|
||||
emits: ["update:visible", "update:isEdit", "success"],
|
||||
setup(__props, { emit: __emit }) {
|
||||
useConfigStore();
|
||||
ref("1");
|
||||
ref(null);
|
||||
ref(false);
|
||||
ref(false);
|
||||
useRoute();
|
||||
useRouter$1();
|
||||
const loading = ref(false);
|
||||
const dragKey = ref(0);
|
||||
let selectedFeaturesLength = 0;
|
||||
watch(selectedFeatures, async (new_features, oldFeatures) => {
|
||||
console.log(new_features, 4444444444);
|
||||
if (new_features?.length > selectedFeaturesLength) {
|
||||
try {
|
||||
loading.value = true;
|
||||
console.log(new_features, 5555555);
|
||||
await setItems(new_features);
|
||||
selectedFeaturesLength = selectedFeatures.value.length;
|
||||
dragKey.value++;
|
||||
} catch (e) {
|
||||
console.log(e);
|
||||
} finally {
|
||||
loading.value = false;
|
||||
}
|
||||
} else {
|
||||
const deletedObject = differenceBy(oldFeatures, new_features);
|
||||
selectedFeaturesLength = selectedFeatures.value.length;
|
||||
const index = items.value.findIndex((x) => deletedObject[0] === x.id);
|
||||
if (index !== -1) {
|
||||
variants.value.forEach((val) => {
|
||||
val.attribute_values[index] = null;
|
||||
});
|
||||
items.value.splice(index, 1);
|
||||
dragKey.value++;
|
||||
}
|
||||
}
|
||||
}, { deep: true });
|
||||
watch(
|
||||
items,
|
||||
(newValue) => {
|
||||
updateMyAttrs(items.value);
|
||||
},
|
||||
{ deep: true }
|
||||
);
|
||||
watch(() => formFields.variants, () => {
|
||||
variants.value = formFields.variants;
|
||||
console.log(variants.value, formFields.variants);
|
||||
}, { deep: true });
|
||||
useProductStore();
|
||||
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));
|
||||
};
|
||||
}
|
||||
});
|
||||
const _sfc_setup = _sfc_main.setup;
|
||||
_sfc_main.setup = (props, ctx) => {
|
||||
const ssrContext = useSSRContext();
|
||||
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("views/add/product/information/index.vue");
|
||||
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
||||
};
|
||||
|
||||
export { _sfc_main as _ };
|
||||
@@ -1,49 +0,0 @@
|
||||
import { _ as __nuxt_component_0 } from './server.mjs';
|
||||
import { defineComponent, useSSRContext } from 'vue';
|
||||
import { ssrRenderComponent } from 'vue/server-renderer';
|
||||
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 '../routes/renderer.mjs';
|
||||
import 'vue-bundle-renderer/runtime';
|
||||
import 'unhead/server';
|
||||
import 'devalue';
|
||||
import 'unhead/utils';
|
||||
|
||||
const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
__name: "index",
|
||||
__ssrInlineRender: true,
|
||||
setup(__props) {
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
const _component_ClientOnly = __nuxt_component_0;
|
||||
_push(ssrRenderComponent(_component_ClientOnly, _attrs, {}, _parent));
|
||||
};
|
||||
}
|
||||
});
|
||||
const _sfc_setup = _sfc_main.setup;
|
||||
_sfc_main.setup = (props, ctx) => {
|
||||
const ssrContext = useSSRContext();
|
||||
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("pages/edit/index.vue");
|
||||
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
||||
};
|
||||
|
||||
export { _sfc_main as default };
|
||||
@@ -1,49 +0,0 @@
|
||||
import { _ as __nuxt_component_0 } from './server.mjs';
|
||||
import { defineComponent, useSSRContext } from 'vue';
|
||||
import { ssrRenderComponent } from 'vue/server-renderer';
|
||||
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 '../routes/renderer.mjs';
|
||||
import 'vue-bundle-renderer/runtime';
|
||||
import 'unhead/server';
|
||||
import 'devalue';
|
||||
import 'unhead/utils';
|
||||
|
||||
const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
__name: "index",
|
||||
__ssrInlineRender: true,
|
||||
setup(__props) {
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
const _component_ClientOnly = __nuxt_component_0;
|
||||
_push(ssrRenderComponent(_component_ClientOnly, _attrs, {}, _parent));
|
||||
};
|
||||
}
|
||||
});
|
||||
const _sfc_setup = _sfc_main.setup;
|
||||
_sfc_main.setup = (props, ctx) => {
|
||||
const ssrContext = useSSRContext();
|
||||
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("pages/message/index.vue");
|
||||
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
||||
};
|
||||
|
||||
export { _sfc_main as default };
|
||||
File diff suppressed because it is too large
Load Diff
+4
-3
@@ -1,6 +1,6 @@
|
||||
import { defineComponent, resolveComponent, useSSRContext } from 'vue';
|
||||
import { ssrRenderComponent } from 'vue/server-renderer';
|
||||
import { aE as useRoute, u as useRouter$1 } from './server.mjs';
|
||||
import { defineComponent, resolveComponent, useSSRContext } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { ssrRenderComponent } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/server-renderer/index.mjs';
|
||||
import { aR as useRoute, u as useRouter$1, a as useConfigStore } from './server.mjs';
|
||||
|
||||
const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
__name: "index",
|
||||
@@ -8,6 +8,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
setup(__props) {
|
||||
useRoute();
|
||||
useRouter$1();
|
||||
useConfigStore();
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
const _component_RouterView = resolveComponent("RouterView");
|
||||
_push(ssrRenderComponent(_component_RouterView, _attrs, null, _parent));
|
||||
@@ -1,340 +0,0 @@
|
||||
import { defineComponent, ref, computed, withAsyncContext, watch, resolveDirective, unref, withCtx, createVNode, createBlock, openBlock, toDisplayString, mergeProps, useSSRContext } from 'vue';
|
||||
import { ssrRenderComponent, ssrRenderAttrs, ssrInterpolate, ssrRenderAttr, ssrRenderList, ssrGetDirectiveProps, ssrRenderStyle } from 'vue/server-renderer';
|
||||
import { u as useRouter$1, a as useConfigStore, b as useUserStore, o as useCartStore, m as useIntersectionObserver, n as getToken, _ as __nuxt_component_0, x as getSupabaseStorageUrl } from './server.mjs';
|
||||
import { _ as _imports_0, a as _imports_1 } from './cart-DMkYna66.mjs';
|
||||
import { _ as __nuxt_component_1, a as _sfc_main$6, b as _imports_2, c as _imports_3, d as _sfc_main$5, H as Highlights } from './Highlights-DT-JM9Ya.mjs';
|
||||
import { B as BasicIconOld } from './BasicIconOld-93vAWohq.mjs';
|
||||
import numbro from 'numbro';
|
||||
import { U as UserProfilePic } from './UserProfilePic-BwsIUO56.mjs';
|
||||
import { l as loadGray, S as SquarePostSkeleton } from './gray-motiQBEt.mjs';
|
||||
import { _ as _sfc_main$3 } from './FullScreenStories-BF2ht6tI.mjs';
|
||||
import { u as useMediaStore } from './media-C3Y2QweF.mjs';
|
||||
import { u as useUserPostStore } from './userPostsStore-gFQVmaju.mjs';
|
||||
import { u as useAsyncData } from './asyncData-DMpxHWuQ.mjs';
|
||||
import { B as Badge } from './index-DsmwGha0.mjs';
|
||||
import { _ as _export_sfc } from './_plugin-vue_export-helper-1tPrXgE0.mjs';
|
||||
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 '../routes/renderer.mjs';
|
||||
import 'vue-bundle-renderer/runtime';
|
||||
import 'unhead/server';
|
||||
import 'devalue';
|
||||
import 'unhead/utils';
|
||||
import './index-C9wXCwkF.mjs';
|
||||
import 'dom-align';
|
||||
import './media-DD0HTZbK.mjs';
|
||||
import 'swiper/vue';
|
||||
import './empty_user-BaUNCdgf.mjs';
|
||||
import './post_loading-BiySI7bp.mjs';
|
||||
import './index-6Q0zJ0BK.mjs';
|
||||
import '@vueuse/gesture';
|
||||
import '@headlessui/vue';
|
||||
import 'framesync';
|
||||
import 'popmotion';
|
||||
import 'style-value-types';
|
||||
import 'vue-content-loader';
|
||||
import './BasicInput-DrA-e4wX.mjs';
|
||||
import './usePrice-B-5-jXKQ.mjs';
|
||||
import './index-B8JfwQ3c.mjs';
|
||||
import './FormItemContext-eb0AodWH.mjs';
|
||||
import './index-C8EZBqzI.mjs';
|
||||
import 'lodash-es/isPlainObject.js';
|
||||
import 'resize-observer-polyfill';
|
||||
import './like-BhIOg3YL.mjs';
|
||||
import './BasicButton-QGDeiwgb.mjs';
|
||||
import './index-CRte5P_X.mjs';
|
||||
import 'throttle-debounce';
|
||||
import 'swiper/modules';
|
||||
|
||||
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
||||
__name: "Seller",
|
||||
__ssrInlineRender: true,
|
||||
async setup(__props) {
|
||||
let __temp, __restore;
|
||||
const router = useRouter$1();
|
||||
const selectedStoryId = ref(null);
|
||||
const visibleAdd = ref(false);
|
||||
const config = useConfigStore();
|
||||
const user = useUserStore();
|
||||
const mediaStore = useMediaStore();
|
||||
const cartStore = useCartStore();
|
||||
const userPost = useUserPostStore();
|
||||
const seller = computed(() => config.sellerConfig?.store);
|
||||
const userStory = computed(() => {
|
||||
return mediaStore.users.find((x) => x.id === seller.value?.id);
|
||||
});
|
||||
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 observer = ref();
|
||||
useIntersectionObserver(observer, async ([{ isIntersecting }]) => {
|
||||
if (isIntersecting && !userPost.loading && !userPost.endPage) {
|
||||
setTimeout(async () => {
|
||||
const nextPage = userPost.currentPage + 1;
|
||||
const data2 = await userPost.loadPosts(seller.value?.user_id, nextPage);
|
||||
userPost.loadStateNextPage(data2);
|
||||
}, 100);
|
||||
}
|
||||
});
|
||||
const { data } = ([__temp, __restore] = withAsyncContext(async () => useAsyncData("productMainSeller", async () => {
|
||||
userPost.reset();
|
||||
return await userPost.loadPosts(seller.value?.user_id, 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;
|
||||
const _component_client_only = __nuxt_component_0;
|
||||
const _directive_lazy = resolveDirective("lazy");
|
||||
let _temp0;
|
||||
_push(`<div${ssrRenderAttrs(_attrs)} data-v-12eb461b><div class="absolute top-0 w-inherit right-0 left-0" data-v-12eb461b><div class="flex justify-between w-full p-4" data-v-12eb461b><div class="font-semibold text-lg" data-v-12eb461b>${ssrInterpolate(seller.value?.username)}</div><div class="flex gap6 items-center" data-v-12eb461b>`);
|
||||
if (!unref(config).isSeller && unref(config).APP_TYPE === "single" || unref(config).APP_TYPE === "multi") {
|
||||
_push(ssrRenderComponent(_component_a_badge, {
|
||||
count: unref(cartStore).count,
|
||||
dir: "ltr",
|
||||
class: "mt1"
|
||||
}, {
|
||||
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
||||
if (_push2) {
|
||||
_push2(`<div data-v-12eb461b${_scopeId}>`);
|
||||
if (unref(config).isNightStore) {
|
||||
_push2(`<img${ssrRenderAttr("src", _imports_0)} class="w-1.8rem -mt1" alt="" data-v-12eb461b${_scopeId}>`);
|
||||
} else {
|
||||
_push2(`<img${ssrRenderAttr("src", _imports_1)}${ssrRenderAttr("alt", unref(config).appName.en)} class="w-1.8rem -mt1" data-v-12eb461b${_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(config).appName.en,
|
||||
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-12eb461b${_scopeId}><div class="flex items-center gap-2" data-v-12eb461b${_scopeId}><img${ssrRenderAttr("src", _imports_2)} class="w-1rem"${ssrRenderAttr("alt", unref(config).appName.en)} data-v-12eb461b${_scopeId}><div data-v-12eb461b${_scopeId}>${ssrInterpolate(unref(config).useString("product"))}</div></div><div class="flex items-center gap-2 mt-2" data-v-12eb461b${_scopeId}><img${ssrRenderAttr("src", _imports_3)} class="w-1rem"${ssrRenderAttr("alt", unref(config).appName.en)} data-v-12eb461b${_scopeId}><div data-v-12eb461b${_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: unref(config).appName.en
|
||||
}, null, 8, ["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: unref(config).appName.en
|
||||
}, null, 8, ["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 (unref(getToken)() && !unref(config).isSeller) {
|
||||
_push(`<div data-v-12eb461b>`);
|
||||
_push(ssrRenderComponent(BasicIconOld, { icon: "vuesax-linear:profile-circle" }, null, _parent));
|
||||
_push(`</div>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
if (!unref(getToken)()) {
|
||||
_push(`<div data-v-12eb461b>`);
|
||||
_push(ssrRenderComponent(BasicIconOld, { icon: "vuesax-linear:login" }, null, _parent));
|
||||
_push(`</div>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(ssrRenderComponent(_sfc_main$5, {
|
||||
class: "w-1.3rem",
|
||||
onClick: ($event) => unref(router).push({ name: "user-setting" })
|
||||
}, null, _parent));
|
||||
_push(`</div></div><div class="h-90vh overflow-y-auto pb-5vh" data-v-12eb461b><div class="px4" data-v-12eb461b><div class="flex" data-v-12eb461b>`);
|
||||
_push(ssrRenderComponent(UserProfilePic, {
|
||||
src: seller.value?.avatar,
|
||||
onClick: ($event) => userStory.value?.stories?.length === 0 || !userStory.value?.stories ? "" : selectedStoryId.value = seller.value?.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(user).user?.id || _item.user_id === "me")),
|
||||
showAdd: unref(config).isSeller
|
||||
}, null, _parent));
|
||||
_push(`<div class="p3 text-sm" data-v-12eb461b><div class="flex mt2 gap-3" data-v-12eb461b><div class="" data-v-12eb461b><div class="font-semibold" data-v-12eb461b>${ssrInterpolate(formatNumber(seller.value?.stats?.total_product ?? 0))}</div><div data-v-12eb461b>${ssrInterpolate(unref(config).useString("products"))}</div></div>`);
|
||||
if (unref(config).isSeller) {
|
||||
_push(`<div class="" data-v-12eb461b><div class="font-semibold" data-v-12eb461b>${ssrInterpolate(formatNumber(seller.value?.stats?.total_customer ?? 0))}</div><div data-v-12eb461b>${ssrInterpolate(unref(config).useString("customers"))}</div></div>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(`<div class="" data-v-12eb461b><div class="font-semibold" data-v-12eb461b>${ssrInterpolate(formatNumber(unref(config).isSeller ? seller.value?.stats?.sell_total_order_count ?? 0 : unref(user)?.user?.stats?.buy_total_order_count ?? 0))}</div><div data-v-12eb461b>${ssrInterpolate(unref(config).isSeller ? unref(config).useString("orders") : unref(config).useString("yourOrders"))}</div></div></div></div></div><div class="text-xs mt-5 whitespace-pre-line" data-v-12eb461b>${ssrInterpolate(seller.value?.bio)}</div>`);
|
||||
if (seller.value?.website) {
|
||||
_push(`<a${ssrRenderAttr("href", "https://" + seller.value?.website)} target="_blank" data-v-12eb461b><div class="flex items-center text-xs gap-1 text-primary" data-v-12eb461b>`);
|
||||
_push(ssrRenderComponent(BasicIconOld, {
|
||||
icon: "vuesax-linear:link-1",
|
||||
class: "text-primary",
|
||||
size: "20"
|
||||
}, null, _parent));
|
||||
_push(` ${ssrInterpolate(seller.value?.website)}</div></a>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(ssrRenderComponent(_component_client_only, null, {}, _parent));
|
||||
_push(`<div class="mt-4 flex -me16px" data-v-12eb461b>`);
|
||||
_push(ssrRenderComponent(Highlights, { "current-user": seller.value }, null, _parent));
|
||||
_push(`</div></div><div class="w-full grid grid-cols-3 mt-5 gap-2px" data-v-12eb461b><!--[-->`);
|
||||
ssrRenderList(unref(userPost).posts, (post, i) => {
|
||||
_push(`<div class="w-full aspect-square relative" data-v-12eb461b>`);
|
||||
if (post.files?.length) {
|
||||
_push(`<!--[-->`);
|
||||
if (post.files[0]?.type === "image") {
|
||||
_push(`<img${ssrRenderAttrs(_temp0 = mergeProps({
|
||||
class: "w-full h-full object-cover",
|
||||
alt: unref(config).appName.en
|
||||
}, ssrGetDirectiveProps(_ctx, _directive_lazy, { src: unref(getSupabaseStorageUrl)(post.files[0].url), loading: unref(loadGray), error: unref(loadGray) })))} data-v-12eb461b>${"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-12eb461b><video${ssrRenderAttr("src", post.files[0]?.url)} class="hidden" data-v-12eb461b></video><img${ssrRenderAttr("src", videoThumbnails.value[post.files[0]?.url])} class="w-full h-full object-cover" alt="Video Thumbnail" data-v-12eb461b><div class="absolute inset-0 flex items-center justify-center bg-black bg-opacity-30" data-v-12eb461b><svg class="w-12 h-12 text-white" fill="currentColor" viewBox="0 0 24 24" data-v-12eb461b><path d="M8 5v14l11-7z" data-v-12eb461b></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-12eb461b> load </div>`);
|
||||
if (unref(userPost).loading) {
|
||||
_push(ssrRenderComponent(SquarePostSkeleton, null, null, _parent));
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(`</div></div>`);
|
||||
if (selectedStoryId.value) {
|
||||
_push(ssrRenderComponent(_sfc_main$3, {
|
||||
id: selectedStoryId.value,
|
||||
"onUpdate:id": ($event) => selectedStoryId.value = $event,
|
||||
specifyId: ""
|
||||
}, null, _parent));
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
_push(`</div>`);
|
||||
};
|
||||
}
|
||||
});
|
||||
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/user/userMain/components/Seller.vue");
|
||||
return _sfc_setup$2 ? _sfc_setup$2(props, ctx) : void 0;
|
||||
};
|
||||
const Seller = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-12eb461b"]]);
|
||||
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
||||
__name: "index",
|
||||
__ssrInlineRender: true,
|
||||
setup(__props) {
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
_push(ssrRenderComponent(Seller, _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/user/userMain/index.vue");
|
||||
return _sfc_setup$1 ? _sfc_setup$1(props, ctx) : void 0;
|
||||
};
|
||||
const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
__name: "index",
|
||||
__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/index.vue");
|
||||
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
||||
};
|
||||
|
||||
export { _sfc_main as default };
|
||||
@@ -1,49 +0,0 @@
|
||||
import { defineComponent, useSSRContext } from 'vue';
|
||||
import { ssrRenderComponent } from 'vue/server-renderer';
|
||||
import { _ as _sfc_main$1 } from './index-CA8Er3FB.mjs';
|
||||
import './server.mjs';
|
||||
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 '../routes/renderer.mjs';
|
||||
import 'vue-bundle-renderer/runtime';
|
||||
import 'unhead/server';
|
||||
import 'devalue';
|
||||
import 'unhead/utils';
|
||||
|
||||
const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
__name: "index",
|
||||
__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/add/product/index.vue");
|
||||
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
||||
};
|
||||
|
||||
export { _sfc_main as default };
|
||||
@@ -1,49 +0,0 @@
|
||||
import { _ as __nuxt_component_0 } from './server.mjs';
|
||||
import { defineComponent, useSSRContext } from 'vue';
|
||||
import { ssrRenderComponent } from 'vue/server-renderer';
|
||||
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 '../routes/renderer.mjs';
|
||||
import 'vue-bundle-renderer/runtime';
|
||||
import 'unhead/server';
|
||||
import 'devalue';
|
||||
import 'unhead/utils';
|
||||
|
||||
const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
__name: "index",
|
||||
__ssrInlineRender: true,
|
||||
setup(__props) {
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
const _component_ClientOnly = __nuxt_component_0;
|
||||
_push(ssrRenderComponent(_component_ClientOnly, _attrs, {}, _parent));
|
||||
};
|
||||
}
|
||||
});
|
||||
const _sfc_setup = _sfc_main.setup;
|
||||
_sfc_main.setup = (props, ctx) => {
|
||||
const ssrContext = useSSRContext();
|
||||
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("pages/add/index.vue");
|
||||
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
||||
};
|
||||
|
||||
export { _sfc_main as default };
|
||||
+9
-9
@@ -1,11 +1,11 @@
|
||||
import _objectSpread from '@babel/runtime/helpers/esm/objectSpread2';
|
||||
import { defineComponent, computed, createVNode, Fragment, ref } from 'vue';
|
||||
import { Y as withInstall, T as initDefaultProps, G as useConfigInject, H as genComponentStyleHook, D as stringType, ay as someType, a3 as objectType, ap as anyType, E as booleanType, C as functionType, J as merge, az as devWarning, aA as CloseCircleFilled, aj as CloseOutlined, aB as CheckCircleFilled, M as resetComponent, N as Keyframe } from './server.mjs';
|
||||
import _objectSpread from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@babel/runtime/helpers/esm/objectSpread2.js';
|
||||
import { defineComponent, computed, createVNode, Fragment, ref } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { U as withInstall, O as initDefaultProps, C as useConfigInject, D as genComponentStyleHook, z as stringType, aB as someType, $ as objectType, an as anyType, A as booleanType, y as functionType, F as merge, aC as devWarning, aD as CloseCircleFilled, af as CloseOutlined, aE as CheckCircleFilled, I as resetComponent, K as Keyframe } from './server.mjs';
|
||||
import { C as CheckOutlined } from '../_/CheckOutlined.mjs';
|
||||
import _extends from '@babel/runtime/helpers/esm/extends';
|
||||
import { presetPrimaryColors } from '@ant-design/colors';
|
||||
import _extends from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@babel/runtime/helpers/esm/extends.js';
|
||||
import { presetPrimaryColors } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@ant-design/colors/dist/index.js';
|
||||
import { u as useRefs } from './useRefs-BHKrVg4I.mjs';
|
||||
import { _ as __nuxt_component_2 } from './index-C9wXCwkF.mjs';
|
||||
import { _ as __nuxt_component_2$1 } from './index-Bn4rLj9V.mjs';
|
||||
|
||||
const progressStatuses = ["normal", "exception", "active", "success"];
|
||||
const progressProps = () => ({
|
||||
@@ -497,7 +497,7 @@ const Circle = defineComponent({
|
||||
return createVNode("div", _objectSpread(_objectSpread({}, attrs), {}, {
|
||||
"class": [wrapperClassName.value, attrs.class],
|
||||
"style": [attrs.style, circleStyle.value]
|
||||
}), [sizeRef.value.width <= 20 ? createVNode(__nuxt_component_2, null, {
|
||||
}), [sizeRef.value.width <= 20 ? createVNode(__nuxt_component_2$1, null, {
|
||||
default: () => [createVNode("span", null, [circleContent])],
|
||||
title: slots.default
|
||||
}) : createVNode(Fragment, null, [circleContent, (_a = slots.default) === null || _a === void 0 ? void 0 : _a.call(slots)])]);
|
||||
@@ -928,6 +928,6 @@ const Progress = defineComponent({
|
||||
};
|
||||
}
|
||||
});
|
||||
const __nuxt_component_1 = withInstall(Progress);
|
||||
const __nuxt_component_2 = withInstall(Progress);
|
||||
|
||||
export { __nuxt_component_1 as _ };
|
||||
export { __nuxt_component_2 as _ };
|
||||
+37
-45
@@ -1,13 +1,13 @@
|
||||
import _objectSpread$1 from '@babel/runtime/helpers/esm/objectSpread2';
|
||||
import _extends from '@babel/runtime/helpers/esm/extends';
|
||||
import { createVNode, defineComponent, computed, shallowRef, inject, ref, watchEffect, watch, unref, Fragment, Teleport, getCurrentInstance, provide, toRef, Transition, withDirectives, vShow } from 'vue';
|
||||
import { s as shallowequal, i as initSlideMotion } from './shallowequal-BCwuz4ga.mjs';
|
||||
import { b1 as Icon, G as useConfigInject, az as devWarning, a1 as cloneElement, a3 as objectType, P as PropTypes, ae as flattenChildren, H as genComponentStyleHook, bc as isValid, I as classNames, as as KeyCode, Z as isValidElement, J as merge, a4 as initZoomMotion, X as clearFix, M as resetComponent, ar as textEllipsis, V as getPropsSlot, bd as resetIcon, O as genFocusOutline, ag as getTransitionProps } from './server.mjs';
|
||||
import uniq from 'lodash-es/uniq.js';
|
||||
import { R as ResizeObserver } from './index-B8JfwQ3c.mjs';
|
||||
import { _ as __nuxt_component_2, w as wrapperRaf, T as Trigger } from './index-C9wXCwkF.mjs';
|
||||
import { c as collapseMotion, g as genCollapseMotion } from './collapseMotion-cQ2SGjCA.mjs';
|
||||
import { TinyColor } from '@ctrl/tinycolor';
|
||||
import _objectSpread$1 from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@babel/runtime/helpers/esm/objectSpread2.js';
|
||||
import _extends from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@babel/runtime/helpers/esm/extends.js';
|
||||
import { createVNode, defineComponent, computed, shallowRef, inject, ref, watchEffect, watch, unref, Fragment, Teleport, getCurrentInstance, provide, toRef, Transition, withDirectives, vShow } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { s as shallowequal, i as initSlideMotion } from './shallowequal-BEyWmMEh.mjs';
|
||||
import { b5 as Icon, C as useConfigInject, aC as devWarning, Y as cloneElement, aa as flattenChildren, $ as objectType, P as PropTypes, D as genComponentStyleHook, bg as isValid, E as classNames, aq as KeyCode, V as isValidElement, F as merge, a0 as initZoomMotion, T as clearFix, I as resetComponent, ap as textEllipsis, R as getPropsSlot, bh as resetIcon, J as genFocusOutline, ac as getTransitionProps } from './server.mjs';
|
||||
import uniq from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/lodash-es/uniq.js';
|
||||
import { R as ResizeObserver } from './index-G65aBv4F.mjs';
|
||||
import { _ as __nuxt_component_2, w as wrapperRaf, T as Trigger } from './index-Bn4rLj9V.mjs';
|
||||
import { j as collapseMotion, h as genCollapseMotion } from './index-BGahPE0Z.mjs';
|
||||
import { TinyColor } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@ctrl/tinycolor/dist/public_api.js';
|
||||
|
||||
// This icon file is generated automatically.
|
||||
var EllipsisOutlined$1 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" } }] }, "name": "ellipsis", "theme": "outlined" };
|
||||
@@ -27,7 +27,7 @@ var EllipsisOutlined = function EllipsisOutlined(props, context) {
|
||||
EllipsisOutlined.displayName = 'EllipsisOutlined';
|
||||
EllipsisOutlined.inheritAttrs = false;
|
||||
|
||||
const OverflowContextProviderKey = Symbol("OverflowContextProviderKey");
|
||||
const OverflowContextProviderKey = /* @__PURE__ */ Symbol("OverflowContextProviderKey");
|
||||
const OverflowContextProvider = defineComponent({
|
||||
compatConfig: {
|
||||
MODE: 3
|
||||
@@ -252,8 +252,7 @@ const overflowProps = () => {
|
||||
onVisibleChange: Function,
|
||||
/** When set to `full`, ssr will render full items by default and remove at client side */
|
||||
ssr: String,
|
||||
onMousedown: Function,
|
||||
role: String
|
||||
onMousedown: Function
|
||||
};
|
||||
};
|
||||
const Overflow = defineComponent({
|
||||
@@ -462,8 +461,7 @@ const Overflow = defineComponent({
|
||||
"id": id,
|
||||
"class": classNames(!invalidate.value && prefixCls, className),
|
||||
"style": style,
|
||||
"onMousedown": onMousedown,
|
||||
"role": props.role
|
||||
"onMousedown": onMousedown
|
||||
}, restAttrs), {
|
||||
default: () => [mergedData.value.map(internalRenderItemNode), showRest.value ? restNode() : null, suffix && createVNode(Item, _objectSpread$1(_objectSpread$1({}, itemSharedProps), {}, {
|
||||
"order": mergedDisplayCount.value,
|
||||
@@ -488,7 +486,7 @@ const Overflow = defineComponent({
|
||||
Overflow.Item = RawItem;
|
||||
Overflow.RESPONSIVE = RESPONSIVE;
|
||||
Overflow.INVALIDATE = INVALIDATE;
|
||||
const OverrideContextKey = Symbol("OverrideContextKey");
|
||||
const OverrideContextKey = /* @__PURE__ */ Symbol("OverrideContextKey");
|
||||
const useInjectOverride = () => {
|
||||
return inject(OverrideContextKey, void 0);
|
||||
};
|
||||
@@ -520,21 +518,21 @@ const useProvideOverride = (props) => {
|
||||
expandIcon: (_c = props.expandIcon) !== null && _c !== void 0 ? _c : expandIcon === null || expandIcon === void 0 ? void 0 : expandIcon.value
|
||||
});
|
||||
};
|
||||
const MenuContextKey = Symbol("menuContextKey");
|
||||
const MenuContextKey = /* @__PURE__ */ Symbol("menuContextKey");
|
||||
const useProvideMenu = (props) => {
|
||||
provide(MenuContextKey, props);
|
||||
};
|
||||
const useInjectMenu = () => {
|
||||
return inject(MenuContextKey);
|
||||
};
|
||||
const ForceRenderKey = Symbol("ForceRenderKey");
|
||||
const ForceRenderKey = /* @__PURE__ */ Symbol("ForceRenderKey");
|
||||
const useProvideForceRender = (forceRender) => {
|
||||
provide(ForceRenderKey, forceRender);
|
||||
};
|
||||
const useInjectForceRender = () => {
|
||||
return inject(ForceRenderKey, false);
|
||||
};
|
||||
const MenuFirstLevelContextKey = Symbol("menuFirstLevelContextKey");
|
||||
const MenuFirstLevelContextKey = /* @__PURE__ */ Symbol("menuFirstLevelContextKey");
|
||||
const useProvideFirstLevel = (firstLevel) => {
|
||||
provide(MenuFirstLevelContextKey, firstLevel);
|
||||
};
|
||||
@@ -576,9 +574,9 @@ const MenuContextProvider = defineComponent({
|
||||
};
|
||||
}
|
||||
});
|
||||
const SiderCollapsedKey = Symbol("siderCollapsed");
|
||||
const SiderCollapsedKey = /* @__PURE__ */ Symbol("siderCollapsed");
|
||||
const OVERFLOW_KEY = "$$__vc-menu-more__key";
|
||||
const KeyPathContext = Symbol("KeyPathContext");
|
||||
const KeyPathContext = /* @__PURE__ */ Symbol("KeyPathContext");
|
||||
const useInjectKeyPath = () => {
|
||||
return inject(KeyPathContext, {
|
||||
parentEventKeys: computed(() => []),
|
||||
@@ -600,7 +598,7 @@ const useProvideKeyPath = (eventKey, key, menuInfo) => {
|
||||
});
|
||||
return keys;
|
||||
};
|
||||
const measure = Symbol("measure");
|
||||
const measure = /* @__PURE__ */ Symbol("measure");
|
||||
const PathContext = defineComponent({
|
||||
compatConfig: {
|
||||
MODE: 3
|
||||
@@ -2668,29 +2666,23 @@ const Menu = defineComponent({
|
||||
forceSubMenuRender: computed(() => props.forceSubMenuRender),
|
||||
rootClassName: hashId
|
||||
});
|
||||
const getChildrenList = () => {
|
||||
var _a;
|
||||
return itemsNodes.value || flattenChildren((_a = slots.default) === null || _a === void 0 ? void 0 : _a.call(slots));
|
||||
};
|
||||
return () => {
|
||||
var _a;
|
||||
const childList = getChildrenList();
|
||||
var _a, _b;
|
||||
const childList = itemsNodes.value || flattenChildren((_a = slots.default) === null || _a === void 0 ? void 0 : _a.call(slots));
|
||||
const allVisible = lastVisibleIndex.value >= childList.length - 1 || mergedMode.value !== "horizontal" || props.disabledOverflow;
|
||||
const getWrapperList = (childList2) => {
|
||||
return mergedMode.value !== "horizontal" || props.disabledOverflow ? childList2 : (
|
||||
// Need wrap for overflow dropdown that do not response for open
|
||||
childList2.map((child, index) => (
|
||||
// Always wrap provider to avoid sub node re-mount
|
||||
createVNode(MenuContextProvider, {
|
||||
"key": child.key,
|
||||
"overflowDisabled": index > lastVisibleIndex.value
|
||||
}, {
|
||||
default: () => child
|
||||
})
|
||||
))
|
||||
);
|
||||
};
|
||||
const overflowedIndicator = ((_a = slots.overflowedIndicator) === null || _a === void 0 ? void 0 : _a.call(slots)) || createVNode(EllipsisOutlined, null, null);
|
||||
const wrappedChildList = mergedMode.value !== "horizontal" || props.disabledOverflow ? childList : (
|
||||
// Need wrap for overflow dropdown that do not response for open
|
||||
childList.map((child, index) => (
|
||||
// Always wrap provider to avoid sub node re-mount
|
||||
createVNode(MenuContextProvider, {
|
||||
"key": child.key,
|
||||
"overflowDisabled": index > lastVisibleIndex.value
|
||||
}, {
|
||||
default: () => child
|
||||
})
|
||||
))
|
||||
);
|
||||
const overflowedIndicator = ((_b = slots.overflowedIndicator) === null || _b === void 0 ? void 0 : _b.call(slots)) || createVNode(EllipsisOutlined, null, null);
|
||||
return wrapSSR(createVNode(Overflow, _objectSpread$1(_objectSpread$1({}, attrs), {}, {
|
||||
"onMousedown": props.onMousedown,
|
||||
"prefixCls": `${prefixCls.value}-overflow`,
|
||||
@@ -2699,7 +2691,7 @@ const Menu = defineComponent({
|
||||
"class": [className.value, attrs.class, hashId.value],
|
||||
"role": "menu",
|
||||
"id": props.id,
|
||||
"data": getWrapperList(childList),
|
||||
"data": wrappedChildList,
|
||||
"renderRawItem": (node) => node,
|
||||
"renderRawRest": (omitItems) => {
|
||||
const len = omitItems.length;
|
||||
@@ -2740,7 +2732,7 @@ const Menu = defineComponent({
|
||||
},
|
||||
"aria-hidden": true
|
||||
}, [createVNode(PathContext, null, {
|
||||
default: () => [getWrapperList(getChildrenList())]
|
||||
default: () => [wrappedChildList]
|
||||
})])]
|
||||
})]
|
||||
}));
|
||||
@@ -1,95 +0,0 @@
|
||||
import { defineComponent, useSSRContext } from 'vue';
|
||||
import { ssrRenderComponent } from 'vue/server-renderer';
|
||||
import { _ as _sfc_main$1 } from './index-CZUudJHp.mjs';
|
||||
import '@ant-design/icons-vue';
|
||||
import './BasicIconOld-93vAWohq.mjs';
|
||||
import './_plugin-vue_export-helper-1tPrXgE0.mjs';
|
||||
import './server.mjs';
|
||||
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 '../routes/renderer.mjs';
|
||||
import 'vue-bundle-renderer/runtime';
|
||||
import 'unhead/server';
|
||||
import 'devalue';
|
||||
import 'unhead/utils';
|
||||
import './empty_user-BaUNCdgf.mjs';
|
||||
import './inputRules-Cr4Uiro2.mjs';
|
||||
import './BasicInput-DrA-e4wX.mjs';
|
||||
import './usePrice-B-5-jXKQ.mjs';
|
||||
import './index-B8JfwQ3c.mjs';
|
||||
import './FormItemContext-eb0AodWH.mjs';
|
||||
import './index-C8EZBqzI.mjs';
|
||||
import 'lodash-es/isPlainObject.js';
|
||||
import 'resize-observer-polyfill';
|
||||
import './index-C9wXCwkF.mjs';
|
||||
import 'dom-align';
|
||||
import './BaseDatePicker-C2Rv3dvV.mjs';
|
||||
import 'moment-jalaali';
|
||||
import 'dayjalali';
|
||||
import './index-CzRefuj3.mjs';
|
||||
import './useMergedState-BZEfJ8Fl.mjs';
|
||||
import './move-C58xppXd.mjs';
|
||||
import './shallowequal-BCwuz4ga.mjs';
|
||||
import 'lodash-es/partition.js';
|
||||
import './index-CFD8lA6D.mjs';
|
||||
import '../_/CheckOutlined.mjs';
|
||||
import './useRefs-BHKrVg4I.mjs';
|
||||
import './collapseMotion-cQ2SGjCA.mjs';
|
||||
import './index-DRi0kFWe.mjs';
|
||||
import './close_light-DbrEdRZI.mjs';
|
||||
import './FormItem-2KfKSOCd.mjs';
|
||||
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/debounce.js';
|
||||
import 'lodash-es/omit.js';
|
||||
import './index-6Q0zJ0BK.mjs';
|
||||
import '@vueuse/gesture';
|
||||
import '@headlessui/vue';
|
||||
import 'framesync';
|
||||
import 'popmotion';
|
||||
import 'style-value-types';
|
||||
import './BasicButton-QGDeiwgb.mjs';
|
||||
import './index-CRte5P_X.mjs';
|
||||
import 'throttle-debounce';
|
||||
import './InstaInput-cG9pc4SD.mjs';
|
||||
|
||||
const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
__name: "index",
|
||||
__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/edit/index.vue");
|
||||
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
||||
};
|
||||
|
||||
export { _sfc_main as default };
|
||||
+72
-99
@@ -1,71 +1,74 @@
|
||||
import { defineComponent, ref, reactive, mergeProps, withCtx, unref, createVNode, withKeys, createTextVNode, toDisplayString, watch, nextTick, useSSRContext } from 'vue';
|
||||
import { ssrRenderComponent, ssrRenderAttrs, ssrInterpolate, ssrRenderAttr } from 'vue/server-renderer';
|
||||
import { B as BasicSheet } from './index-6Q0zJ0BK.mjs';
|
||||
import { F as Form, _ as _sfc_main$4 } from './index-DRi0kFWe.mjs';
|
||||
import { defineComponent, ref, reactive, mergeProps, withCtx, unref, createVNode, withKeys, createTextVNode, toDisplayString, watch, nextTick, useSSRContext } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { ssrRenderComponent, ssrRenderAttrs, ssrInterpolate, ssrRenderAttr } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/server-renderer/index.mjs';
|
||||
import { B as BasicSheet } from './index-m5qbBl98.mjs';
|
||||
import { F as Form, _ as _sfc_main$3 } from './index-BHPit4CX.mjs';
|
||||
import { u as useRouter$1, a as useConfigStore, b as useUserStore, l as login, s as supabase, c as setToken, g as goToProfile, d as api$1 } from './server.mjs';
|
||||
import { _ as __nuxt_component_1$1, R as Radio } from './RadioButton-C4H4Dw11.mjs';
|
||||
import { _ as __nuxt_component_1$1, R as Radio } from './RadioButton-DTAY-M4c.mjs';
|
||||
import { _ as _export_sfc } from './_plugin-vue_export-helper-1tPrXgE0.mjs';
|
||||
import { B as BasicInput } from './BasicInput-DrA-e4wX.mjs';
|
||||
import { B as BasicButton } from './BasicButton-QGDeiwgb.mjs';
|
||||
import { B as BasicInput } from './BasicInput-rlXkJMLE.mjs';
|
||||
import { B as BasicButton } from './BasicButton-DhQvSD8U.mjs';
|
||||
import { B as BasicIconOld } from './BasicIconOld-93vAWohq.mjs';
|
||||
import { c as clearStorySeen } from './media-DD0HTZbK.mjs';
|
||||
import { p as publicAssetsURL } from '../_/nitro.mjs';
|
||||
import { I as InstaInput } from './InstaInput-cG9pc4SD.mjs';
|
||||
import '@vueuse/gesture';
|
||||
import '@headlessui/vue';
|
||||
import 'framesync';
|
||||
import 'popmotion';
|
||||
import 'style-value-types';
|
||||
import './close_light-DbrEdRZI.mjs';
|
||||
import '@babel/runtime/helpers/esm/objectSpread2';
|
||||
import '@babel/runtime/helpers/esm/extends';
|
||||
import './FormItem-2KfKSOCd.mjs';
|
||||
import 'lodash-es/cloneDeep.js';
|
||||
import 'async-validator';
|
||||
import 'lodash-es/find.js';
|
||||
import './index-C9wXCwkF.mjs';
|
||||
import 'dom-align';
|
||||
import './collapseMotion-cQ2SGjCA.mjs';
|
||||
import './FormItemContext-eb0AodWH.mjs';
|
||||
import 'lodash-es/isEqual.js';
|
||||
import 'compute-scroll-into-view';
|
||||
import 'lodash-es/intersection.js';
|
||||
import 'lodash-es/debounce.js';
|
||||
import 'lodash-es/omit.js';
|
||||
import 'pinia';
|
||||
import '@supabase/supabase-js';
|
||||
import '@ant-design/colors';
|
||||
import '@ctrl/tinycolor';
|
||||
import 'stylis';
|
||||
import 'vue-types';
|
||||
import 'lodash-es';
|
||||
import 'axios';
|
||||
import '@ant-design/icons-vue';
|
||||
import '../routes/renderer.mjs';
|
||||
import 'vue-bundle-renderer/runtime';
|
||||
import 'unhead/server';
|
||||
import 'devalue';
|
||||
import 'unhead/utils';
|
||||
import './Checkbox-DGyocinC.mjs';
|
||||
import './usePrice-B-5-jXKQ.mjs';
|
||||
import './index-B8JfwQ3c.mjs';
|
||||
import './index-C8EZBqzI.mjs';
|
||||
import 'lodash-es/isPlainObject.js';
|
||||
import 'resize-observer-polyfill';
|
||||
import './index-CRte5P_X.mjs';
|
||||
import 'throttle-debounce';
|
||||
import { c as clearStorySeen } from './media-_NDkNIvH.mjs';
|
||||
import { _ as __nuxt_component_0 } from './Logo1-BE8ssPEj.mjs';
|
||||
import { I as InstaInput } from './InstaInput-CLAxMFVK.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@vueuse/gesture/dist/index.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@headlessui/vue/dist/headlessui.esm.js';
|
||||
import '../nitro/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 '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 './index-BWBnVq-W.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/framesync/dist/es/index.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/popmotion/dist/es/index.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/style-value-types/dist/es/index.mjs';
|
||||
import './close_light-DbrEdRZI.mjs';
|
||||
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/@babel/runtime/helpers/esm/extends.js';
|
||||
import './FormItem-CMWnBuQX.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/lodash-es/cloneDeep.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/async-validator/dist-node/index.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/lodash-es/find.js';
|
||||
import './index-Bn4rLj9V.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/dom-align/dist-node/index.js';
|
||||
import './index-BGahPE0Z.mjs';
|
||||
import './FormItemContext-BlKvWASA.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/lodash-es/isEqual.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/compute-scroll-into-view/dist/index.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/lodash-es/intersection.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/lodash-es/debounce.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/lodash-es/omit.js';
|
||||
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/lodash-es/lodash.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';
|
||||
import './Checkbox-Dl5Ja72L.mjs';
|
||||
import './usePrice-_QzChhgO.mjs';
|
||||
import './index-G65aBv4F.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/lodash-es/isPlainObject.js';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/resize-observer-polyfill/dist/ResizeObserver.js';
|
||||
import './index-BMAjr3Fm.mjs';
|
||||
import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/throttle-debounce/esm/index.js';
|
||||
|
||||
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
||||
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
||||
__name: "ChangeLanguage",
|
||||
__ssrInlineRender: true,
|
||||
props: {
|
||||
@@ -117,7 +120,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
||||
header: withCtx((_, _push2, _parent2, _scopeId) => {
|
||||
if (_push2) {
|
||||
_push2(`<div flex justify-center items-center flex-col p-2 data-v-ddbacca2${_scopeId}><div bg-gray-500 h-2px w-2.5rem data-v-ddbacca2${_scopeId}></div></div><div data-v-ddbacca2${_scopeId}>`);
|
||||
_push2(ssrRenderComponent(_sfc_main$4, {
|
||||
_push2(ssrRenderComponent(_sfc_main$3, {
|
||||
class: "w-1rem mt-5 ms-5",
|
||||
onClick: closeSheet
|
||||
}, null, _parent2, _scopeId));
|
||||
@@ -138,7 +141,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
||||
})
|
||||
]),
|
||||
createVNode("div", null, [
|
||||
createVNode(_sfc_main$4, {
|
||||
createVNode(_sfc_main$3, {
|
||||
class: "w-1rem mt-5 ms-5",
|
||||
onClick: closeSheet
|
||||
})
|
||||
@@ -262,45 +265,14 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
||||
};
|
||||
}
|
||||
});
|
||||
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/ChangeLanguage.vue");
|
||||
return _sfc_setup$3 ? _sfc_setup$3(props, ctx) : void 0;
|
||||
};
|
||||
const __nuxt_component_1 = /* @__PURE__ */ Object.assign(_export_sfc(_sfc_main$3, [["__scopeId", "data-v-ddbacca2"]]), { __name: "ChangeLanguage" });
|
||||
const _imports_0$1 = "" + __buildAssetsURL("logo_company.SCj7r8dk.svg");
|
||||
const _imports_0 = publicAssetsURL("/logo_1.png");
|
||||
const _imports_1 = publicAssetsURL("/logo.svg");
|
||||
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
||||
__name: "Logo1",
|
||||
__ssrInlineRender: true,
|
||||
setup(__props) {
|
||||
const config = useConfigStore();
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
if (!unref(config).isNightStore) {
|
||||
_push(`<img${ssrRenderAttrs(mergeProps({
|
||||
src: _imports_0,
|
||||
alt: unref(config).appName.en,
|
||||
class: "inline"
|
||||
}, _attrs))}>`);
|
||||
} else {
|
||||
_push(`<img${ssrRenderAttrs(mergeProps({
|
||||
src: _imports_1,
|
||||
alt: unref(config).appName.en,
|
||||
class: "inline"
|
||||
}, _attrs))}>`);
|
||||
}
|
||||
};
|
||||
}
|
||||
});
|
||||
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("components/Logo1.vue");
|
||||
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("components/ChangeLanguage.vue");
|
||||
return _sfc_setup$2 ? _sfc_setup$2(props, ctx) : void 0;
|
||||
};
|
||||
const Logo1 = Object.assign(_sfc_main$2, { __name: "Logo1" });
|
||||
const __nuxt_component_1 = /* @__PURE__ */ Object.assign(_export_sfc(_sfc_main$2, [["__scopeId", "data-v-ddbacca2"]]), { __name: "ChangeLanguage" });
|
||||
const _imports_0 = "" + __buildAssetsURL("logo_company.SCj7r8dk.svg");
|
||||
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
||||
__name: "index",
|
||||
__ssrInlineRender: true,
|
||||
@@ -337,8 +309,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
||||
} catch (e) {
|
||||
if (e?.response?.status === 404) {
|
||||
api$1.warn(config.useString("notExitUser"));
|
||||
}
|
||||
if (e?.response?.status === 401) {
|
||||
} else if (e?.response?.status === 401) {
|
||||
api$1.warn(config.useString("invalidLogin"));
|
||||
} else {
|
||||
api$1.warn(config.useString("invalidLogin"));
|
||||
}
|
||||
} finally {
|
||||
@@ -354,8 +327,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
const _component_AForm = Form;
|
||||
const _component_ChangeLanguage = __nuxt_component_1;
|
||||
_push(`<div${ssrRenderAttrs(mergeProps({ class: "flex justify-center items-center h-screen flex-col" }, _attrs))}><div class="p-4 w-full"><div class="text-center mb-7rem">`);
|
||||
_push(ssrRenderComponent(Logo1, { class: "w-5rem" }, null, _parent));
|
||||
_push(`<div${ssrRenderAttrs(mergeProps({ class: "flex justify-center items-center h-screen flex-col" }, _attrs))}><div class="p-4 w-full -mt-10"><div class="text-center mb-4rem">`);
|
||||
_push(ssrRenderComponent(__nuxt_component_0, { class: "w-5rem" }, null, _parent));
|
||||
_push(`</div>`);
|
||||
_push(ssrRenderComponent(_component_AForm, {
|
||||
layout: "vertical",
|
||||
@@ -519,7 +492,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
||||
open: open.value,
|
||||
"onUpdate:open": ($event) => open.value = $event
|
||||
}, null, _parent));
|
||||
_push(`<div class="w-full absolute flex flex-col bottom-0 pb2">`);
|
||||
_push(`<div class="w-full fixed flex flex-col bottom-0 pb2">`);
|
||||
_push(ssrRenderComponent(BasicButton, {
|
||||
curve: "",
|
||||
size: "large",
|
||||
@@ -537,7 +510,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
||||
}),
|
||||
_: 1
|
||||
}, _parent));
|
||||
_push(`<div class="flex items-center justify-center"><img${ssrRenderAttr("src", _imports_0$1)} alt="" class="w-2rem"><div class="text-gray-7 text-lg">${ssrInterpolate(unref(config).useString("montech"))}</div></div></div></div>`);
|
||||
_push(`<div class="flex items-center justify-center"><img${ssrRenderAttr("src", _imports_0)} alt="" class="w-2rem"><div class="text-gray-7 text-lg">${ssrInterpolate(unref(config).useString("montech"))}</div></div></div></div>`);
|
||||
};
|
||||
}
|
||||
});
|
||||
+6
-6
@@ -1,7 +1,7 @@
|
||||
import _objectSpread from '@babel/runtime/helpers/esm/objectSpread2';
|
||||
import _extends from '@babel/runtime/helpers/esm/extends';
|
||||
import { defineComponent, computed, createVNode } from 'vue';
|
||||
import { Y as withInstall, G as useConfigInject, H as genComponentStyleHook, ae as flattenChildren, J as merge, M as resetComponent } from './server.mjs';
|
||||
import _objectSpread from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@babel/runtime/helpers/esm/objectSpread2.js';
|
||||
import _extends from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/@babel/runtime/helpers/esm/extends.js';
|
||||
import { defineComponent, computed, createVNode } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs';
|
||||
import { U as withInstall, C as useConfigInject, D as genComponentStyleHook, aa as flattenChildren, F as merge, I as resetComponent } from './server.mjs';
|
||||
|
||||
const genSharedDividerStyle = (token) => {
|
||||
const {
|
||||
@@ -208,6 +208,6 @@ const Divider = defineComponent({
|
||||
};
|
||||
}
|
||||
});
|
||||
const __nuxt_component_2 = withInstall(Divider);
|
||||
const __nuxt_component_1 = withInstall(Divider);
|
||||
|
||||
export { __nuxt_component_2 as _ };
|
||||
export { __nuxt_component_1 as _ };
|
||||
@@ -1,49 +0,0 @@
|
||||
import { _ as __nuxt_component_0 } from './server.mjs';
|
||||
import { defineComponent, useSSRContext } from 'vue';
|
||||
import { ssrRenderComponent } from 'vue/server-renderer';
|
||||
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 '../routes/renderer.mjs';
|
||||
import 'vue-bundle-renderer/runtime';
|
||||
import 'unhead/server';
|
||||
import 'devalue';
|
||||
import 'unhead/utils';
|
||||
|
||||
const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
__name: "index",
|
||||
__ssrInlineRender: true,
|
||||
setup(__props) {
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
const _component_ClientOnly = __nuxt_component_0;
|
||||
_push(ssrRenderComponent(_component_ClientOnly, _attrs, {}, _parent));
|
||||
};
|
||||
}
|
||||
});
|
||||
const _sfc_setup = _sfc_main.setup;
|
||||
_sfc_main.setup = (props, ctx) => {
|
||||
const ssrContext = useSSRContext();
|
||||
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("pages/fav/index.vue");
|
||||
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
||||
};
|
||||
|
||||
export { _sfc_main as default };
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user