Files
appco_dist/.output/server/chunks/build/Logo1-BE8ssPEj.mjs
T
2026-01-27 16:02:45 +03:30

39 lines
1.5 KiB
JavaScript

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 _ };