Files
2026-03-09 20:51:58 +03:30

34 lines
1.2 KiB
JavaScript

import { useSSRContext, mergeProps } from 'vue';
import { ssrRenderAttrs } from 'vue/server-renderer';
import { _ as _export_sfc } from './_plugin-vue_export-helper-1tPrXgE0.mjs';
const _sfc_main = {
__name: "loading",
__ssrInlineRender: true,
props: {
show: {
type: Boolean,
default: false
}
},
setup(__props) {
return (_ctx, _push, _parent, _attrs) => {
if (__props.show) {
_push(`<div${ssrRenderAttrs(mergeProps({ id: "preloader" }, _attrs))} data-v-3c1e7d21><div id="loading-center" data-v-3c1e7d21><div class="loader" data-v-3c1e7d21><div class="loader-outter" data-v-3c1e7d21></div><div class="loader-inner" data-v-3c1e7d21></div></div></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("layouts/loading.vue");
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
};
const Loading = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3c1e7d21"]]);
export { Loading as default };
//# sourceMappingURL=loading-BlVb6W1C.mjs.map