120 lines
3.4 KiB
JavaScript
120 lines
3.4 KiB
JavaScript
|
import { _ as __nuxt_component_0 } from './nuxt-link-691ee40a.mjs';
|
||
|
import { k as useLocalePath$1, e as useRouter, h as useRoute, l as getComposer, m as useNuxtApp, o as useSwitchLocalePath$1 } from '../server.mjs';
|
||
|
import { defineComponent, mergeProps, unref, withCtx, renderSlot, useSSRContext } from 'vue';
|
||
|
import { ssrRenderComponent, ssrRenderSlot } from 'vue/server-renderer';
|
||
|
import 'ufo';
|
||
|
import 'ofetch';
|
||
|
import 'hookable';
|
||
|
import 'unctx';
|
||
|
import 'h3';
|
||
|
import '@unhead/ssr';
|
||
|
import 'unhead';
|
||
|
import '@unhead/shared';
|
||
|
import 'vue-router';
|
||
|
import '@intlify/core-base';
|
||
|
import 'cookie-es';
|
||
|
import 'is-https';
|
||
|
import 'anu-vue';
|
||
|
import 'defu';
|
||
|
import '../../nitro/node-server.mjs';
|
||
|
import 'node-fetch-native/polyfill';
|
||
|
import 'node:http';
|
||
|
import 'node:https';
|
||
|
import 'destr';
|
||
|
import 'unenv/runtime/fetch/index';
|
||
|
import 'scule';
|
||
|
import 'klona';
|
||
|
import 'ohash';
|
||
|
import 'unstorage';
|
||
|
import 'unstorage/drivers/fs';
|
||
|
import 'unstorage/drivers/overlay';
|
||
|
import 'unstorage/drivers/memory';
|
||
|
import 'radix3';
|
||
|
import 'node:fs';
|
||
|
import 'node:url';
|
||
|
import 'pathe';
|
||
|
import '@intlify/bundle-utils';
|
||
|
import 'unified';
|
||
|
import 'mdast-util-to-string';
|
||
|
import 'micromark/lib/preprocess.js';
|
||
|
import 'micromark/lib/postprocess.js';
|
||
|
import 'unist-util-stringify-position';
|
||
|
import 'micromark-util-character';
|
||
|
import 'micromark-util-chunked';
|
||
|
import 'micromark-util-resolve-all';
|
||
|
import 'remark-emoji';
|
||
|
import 'rehype-slug';
|
||
|
import 'remark-squeeze-paragraphs';
|
||
|
import 'rehype-external-links';
|
||
|
import 'remark-gfm';
|
||
|
import 'rehype-sort-attribute-values';
|
||
|
import 'rehype-sort-attributes';
|
||
|
import 'rehype-raw';
|
||
|
import 'remark-mdc';
|
||
|
import 'remark-parse';
|
||
|
import 'remark-rehype';
|
||
|
import 'mdast-util-to-hast';
|
||
|
import 'detab';
|
||
|
import 'unist-builder';
|
||
|
import 'mdurl';
|
||
|
import 'slugify';
|
||
|
import 'unist-util-position';
|
||
|
import 'unist-util-visit';
|
||
|
import 'shiki-es';
|
||
|
import 'unenv/runtime/npm/consola';
|
||
|
|
||
|
function useLocalePath() {
|
||
|
return useLocalePath$1({
|
||
|
router: useRouter(),
|
||
|
route: useRoute(),
|
||
|
i18n: getComposer(useNuxtApp().$i18n)
|
||
|
});
|
||
|
}
|
||
|
function useSwitchLocalePath() {
|
||
|
return useSwitchLocalePath$1({
|
||
|
router: useRouter(),
|
||
|
route: useRoute(),
|
||
|
i18n: getComposer(useNuxtApp().$i18n)
|
||
|
});
|
||
|
}
|
||
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
||
|
__name: "LocaleNuxtLink",
|
||
|
__ssrInlineRender: true,
|
||
|
props: {
|
||
|
"href": null
|
||
|
},
|
||
|
setup(__props) {
|
||
|
const localePath = useLocalePath();
|
||
|
return (_ctx, _push, _parent, _attrs) => {
|
||
|
const _component_NuxtLink = __nuxt_component_0;
|
||
|
_push(ssrRenderComponent(_component_NuxtLink, mergeProps({
|
||
|
href: __props.href && unref(localePath)(__props.href)
|
||
|
}, _attrs), {
|
||
|
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
||
|
if (_push2) {
|
||
|
ssrRenderSlot(_ctx.$slots, "default", {}, null, _push2, _parent2, _scopeId);
|
||
|
} else {
|
||
|
return [
|
||
|
renderSlot(_ctx.$slots, "default")
|
||
|
];
|
||
|
}
|
||
|
}),
|
||
|
_: 3
|
||
|
}, _parent));
|
||
|
};
|
||
|
}
|
||
|
});
|
||
|
const _sfc_setup = _sfc_main.setup;
|
||
|
_sfc_main.setup = (props, ctx) => {
|
||
|
const ssrContext = useSSRContext();
|
||
|
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("components/LocaleNuxtLink.vue");
|
||
|
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
||
|
};
|
||
|
const LocaleNuxtLink = /* @__PURE__ */ Object.freeze({
|
||
|
__proto__: null,
|
||
|
default: _sfc_main
|
||
|
});
|
||
|
|
||
|
export { LocaleNuxtLink as L, _sfc_main as _, useSwitchLocalePath as u };
|
||
|
//# sourceMappingURL=LocaleNuxtLink-9e62e7b2.mjs.map
|