@compiiile/compiiile 2.14.2 → 2.14.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.compiiile/src/components/ContentWrapper.vue +1 -1
- package/.compiiile/src/components/SlidesContent.vue +2 -2
- package/.compiiile/src/components/TableOfContent.vue +1 -1
- package/.compiiile/src/components/layout/HamburgerButton.vue +1 -1
- package/.compiiile/src/components/layout/ThemeSwitcher.vue +1 -1
- package/.compiiile/src/components/layout/navBar/NavBar.vue +1 -1
- package/.compiiile/src/components/layout/navBar/NavListItem.vue +1 -1
- package/.compiiile/src/components/searchBar/SearchBar.vue +1 -1
- package/.compiiile/src/components/searchBar/SearchResult.vue +1 -1
- package/.compiiile/src/style/{index.scss → index.css} +5 -5
- package/.compiiile/src/utils/styles.js +1 -1
- package/bin/config.js +1 -0
- package/package.json +15 -16
- package/.compiiile/.astro/settings.json +0 -5
- package/.compiiile/.astro/types.d.ts +0 -1
- package/bin/.compiiile/node_modules/.vite/deps_temp_6e4c3b91/@astrojs_vue_client__js.js +0 -62
- package/bin/.compiiile/node_modules/.vite/deps_temp_6e4c3b91/@astrojs_vue_client__js.js.map +0 -7
- package/bin/.compiiile/node_modules/.vite/deps_temp_6e4c3b91/astro___aria-query.js +0 -7084
- package/bin/.compiiile/node_modules/.vite/deps_temp_6e4c3b91/astro___aria-query.js.map +0 -7
- package/bin/.compiiile/node_modules/.vite/deps_temp_6e4c3b91/astro___axobject-query.js +0 -3862
- package/bin/.compiiile/node_modules/.vite/deps_temp_6e4c3b91/astro___axobject-query.js.map +0 -7
- package/bin/.compiiile/node_modules/.vite/deps_temp_6e4c3b91/chunk-5RSW42KR.js +0 -45
- package/bin/.compiiile/node_modules/.vite/deps_temp_6e4c3b91/chunk-5RSW42KR.js.map +0 -7
- package/bin/.compiiile/node_modules/.vite/deps_temp_6e4c3b91/chunk-MBCBSM2B.js +0 -11402
- package/bin/.compiiile/node_modules/.vite/deps_temp_6e4c3b91/chunk-MBCBSM2B.js.map +0 -7
- package/bin/.compiiile/node_modules/.vite/deps_temp_6e4c3b91/chunk-Y2F7D3TJ.js +0 -9
- package/bin/.compiiile/node_modules/.vite/deps_temp_6e4c3b91/chunk-Y2F7D3TJ.js.map +0 -7
- package/bin/.compiiile/node_modules/.vite/deps_temp_6e4c3b91/package.json +0 -3
- package/bin/.compiiile/node_modules/.vite/deps_temp_6e4c3b91/vue.js +0 -324
- package/bin/.compiiile/node_modules/.vite/deps_temp_6e4c3b91/vue.js.map +0 -7
- package/bin/.compiiile/node_modules/.vite/deps_temp_c6d3f53d/@astrojs_vue_client__js.js +0 -62
- package/bin/.compiiile/node_modules/.vite/deps_temp_c6d3f53d/@astrojs_vue_client__js.js.map +0 -7
- package/bin/.compiiile/node_modules/.vite/deps_temp_c6d3f53d/astro___aria-query.js +0 -7084
- package/bin/.compiiile/node_modules/.vite/deps_temp_c6d3f53d/astro___aria-query.js.map +0 -7
- package/bin/.compiiile/node_modules/.vite/deps_temp_c6d3f53d/astro___axobject-query.js +0 -3862
- package/bin/.compiiile/node_modules/.vite/deps_temp_c6d3f53d/astro___axobject-query.js.map +0 -7
- package/bin/.compiiile/node_modules/.vite/deps_temp_c6d3f53d/chunk-5RSW42KR.js +0 -45
- package/bin/.compiiile/node_modules/.vite/deps_temp_c6d3f53d/chunk-5RSW42KR.js.map +0 -7
- package/bin/.compiiile/node_modules/.vite/deps_temp_c6d3f53d/chunk-MBCBSM2B.js +0 -11402
- package/bin/.compiiile/node_modules/.vite/deps_temp_c6d3f53d/chunk-MBCBSM2B.js.map +0 -7
- package/bin/.compiiile/node_modules/.vite/deps_temp_c6d3f53d/chunk-Y2F7D3TJ.js +0 -9
- package/bin/.compiiile/node_modules/.vite/deps_temp_c6d3f53d/chunk-Y2F7D3TJ.js.map +0 -7
- package/bin/.compiiile/node_modules/.vite/deps_temp_c6d3f53d/package.json +0 -3
- package/bin/.compiiile/node_modules/.vite/deps_temp_c6d3f53d/vue.js +0 -324
- package/bin/.compiiile/node_modules/.vite/deps_temp_c6d3f53d/vue.js.map +0 -7
- /package/.compiiile/src/style/{code-theme.scss → code-theme.css} +0 -0
- /package/.compiiile/src/style/{layouts.scss → layouts.css} +0 -0
- /package/.compiiile/src/style/{print.scss → print.css} +0 -0
- /package/.compiiile/src/style/{slides.scss → slides.css} +0 -0
- /package/.compiiile/src/style/{texts.scss → texts.css} +0 -0
- /package/.compiiile/src/style/{variables.scss → variables.css} +0 -0
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
2
|
-
var __commonJS = (cb, mod) => function __require() {
|
|
3
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
export {
|
|
7
|
-
__commonJS
|
|
8
|
-
};
|
|
9
|
-
//# sourceMappingURL=chunk-Y2F7D3TJ.js.map
|
|
@@ -1,324 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
BaseTransition,
|
|
3
|
-
BaseTransitionPropsValidators,
|
|
4
|
-
Comment,
|
|
5
|
-
DeprecationTypes,
|
|
6
|
-
EffectScope,
|
|
7
|
-
ErrorCodes,
|
|
8
|
-
ErrorTypeStrings,
|
|
9
|
-
Fragment,
|
|
10
|
-
KeepAlive,
|
|
11
|
-
ReactiveEffect,
|
|
12
|
-
Static,
|
|
13
|
-
Suspense,
|
|
14
|
-
Teleport,
|
|
15
|
-
Text,
|
|
16
|
-
TrackOpTypes,
|
|
17
|
-
Transition,
|
|
18
|
-
TransitionGroup,
|
|
19
|
-
TriggerOpTypes,
|
|
20
|
-
VueElement,
|
|
21
|
-
assertNumber,
|
|
22
|
-
callWithAsyncErrorHandling,
|
|
23
|
-
callWithErrorHandling,
|
|
24
|
-
camelize,
|
|
25
|
-
capitalize,
|
|
26
|
-
cloneVNode,
|
|
27
|
-
compatUtils,
|
|
28
|
-
compile,
|
|
29
|
-
computed,
|
|
30
|
-
createApp,
|
|
31
|
-
createBaseVNode,
|
|
32
|
-
createBlock,
|
|
33
|
-
createCommentVNode,
|
|
34
|
-
createElementBlock,
|
|
35
|
-
createHydrationRenderer,
|
|
36
|
-
createPropsRestProxy,
|
|
37
|
-
createRenderer,
|
|
38
|
-
createSSRApp,
|
|
39
|
-
createSlots,
|
|
40
|
-
createStaticVNode,
|
|
41
|
-
createTextVNode,
|
|
42
|
-
createVNode,
|
|
43
|
-
customRef,
|
|
44
|
-
defineAsyncComponent,
|
|
45
|
-
defineComponent,
|
|
46
|
-
defineCustomElement,
|
|
47
|
-
defineEmits,
|
|
48
|
-
defineExpose,
|
|
49
|
-
defineModel,
|
|
50
|
-
defineOptions,
|
|
51
|
-
defineProps,
|
|
52
|
-
defineSSRCustomElement,
|
|
53
|
-
defineSlots,
|
|
54
|
-
devtools,
|
|
55
|
-
effect,
|
|
56
|
-
effectScope,
|
|
57
|
-
getCurrentInstance,
|
|
58
|
-
getCurrentScope,
|
|
59
|
-
getTransitionRawChildren,
|
|
60
|
-
guardReactiveProps,
|
|
61
|
-
h,
|
|
62
|
-
handleError,
|
|
63
|
-
hasInjectionContext,
|
|
64
|
-
hydrate,
|
|
65
|
-
initCustomFormatter,
|
|
66
|
-
initDirectivesForSSR,
|
|
67
|
-
inject,
|
|
68
|
-
isMemoSame,
|
|
69
|
-
isProxy,
|
|
70
|
-
isReactive,
|
|
71
|
-
isReadonly,
|
|
72
|
-
isRef,
|
|
73
|
-
isRuntimeOnly,
|
|
74
|
-
isShallow,
|
|
75
|
-
isVNode,
|
|
76
|
-
markRaw,
|
|
77
|
-
mergeDefaults,
|
|
78
|
-
mergeModels,
|
|
79
|
-
mergeProps,
|
|
80
|
-
nextTick,
|
|
81
|
-
normalizeClass,
|
|
82
|
-
normalizeProps,
|
|
83
|
-
normalizeStyle,
|
|
84
|
-
onActivated,
|
|
85
|
-
onBeforeMount,
|
|
86
|
-
onBeforeUnmount,
|
|
87
|
-
onBeforeUpdate,
|
|
88
|
-
onDeactivated,
|
|
89
|
-
onErrorCaptured,
|
|
90
|
-
onMounted,
|
|
91
|
-
onRenderTracked,
|
|
92
|
-
onRenderTriggered,
|
|
93
|
-
onScopeDispose,
|
|
94
|
-
onServerPrefetch,
|
|
95
|
-
onUnmounted,
|
|
96
|
-
onUpdated,
|
|
97
|
-
openBlock,
|
|
98
|
-
popScopeId,
|
|
99
|
-
provide,
|
|
100
|
-
proxyRefs,
|
|
101
|
-
pushScopeId,
|
|
102
|
-
queuePostFlushCb,
|
|
103
|
-
reactive,
|
|
104
|
-
readonly,
|
|
105
|
-
ref,
|
|
106
|
-
registerRuntimeCompiler,
|
|
107
|
-
render,
|
|
108
|
-
renderList,
|
|
109
|
-
renderSlot,
|
|
110
|
-
resolveComponent,
|
|
111
|
-
resolveDirective,
|
|
112
|
-
resolveDynamicComponent,
|
|
113
|
-
resolveFilter,
|
|
114
|
-
resolveTransitionHooks,
|
|
115
|
-
setBlockTracking,
|
|
116
|
-
setDevtoolsHook,
|
|
117
|
-
setTransitionHooks,
|
|
118
|
-
shallowReactive,
|
|
119
|
-
shallowReadonly,
|
|
120
|
-
shallowRef,
|
|
121
|
-
ssrContextKey,
|
|
122
|
-
ssrUtils,
|
|
123
|
-
stop,
|
|
124
|
-
toDisplayString,
|
|
125
|
-
toHandlerKey,
|
|
126
|
-
toHandlers,
|
|
127
|
-
toRaw,
|
|
128
|
-
toRef,
|
|
129
|
-
toRefs,
|
|
130
|
-
toValue,
|
|
131
|
-
transformVNodeArgs,
|
|
132
|
-
triggerRef,
|
|
133
|
-
unref,
|
|
134
|
-
useAttrs,
|
|
135
|
-
useCssModule,
|
|
136
|
-
useCssVars,
|
|
137
|
-
useModel,
|
|
138
|
-
useSSRContext,
|
|
139
|
-
useSlots,
|
|
140
|
-
useTransitionState,
|
|
141
|
-
vModelCheckbox,
|
|
142
|
-
vModelDynamic,
|
|
143
|
-
vModelRadio,
|
|
144
|
-
vModelSelect,
|
|
145
|
-
vModelText,
|
|
146
|
-
vShow,
|
|
147
|
-
version,
|
|
148
|
-
warn,
|
|
149
|
-
watch,
|
|
150
|
-
watchEffect,
|
|
151
|
-
watchPostEffect,
|
|
152
|
-
watchSyncEffect,
|
|
153
|
-
withAsyncContext,
|
|
154
|
-
withCtx,
|
|
155
|
-
withDefaults,
|
|
156
|
-
withDirectives,
|
|
157
|
-
withKeys,
|
|
158
|
-
withMemo,
|
|
159
|
-
withModifiers,
|
|
160
|
-
withScopeId
|
|
161
|
-
} from "./chunk-MBCBSM2B.js";
|
|
162
|
-
import "./chunk-Y2F7D3TJ.js";
|
|
163
|
-
export {
|
|
164
|
-
BaseTransition,
|
|
165
|
-
BaseTransitionPropsValidators,
|
|
166
|
-
Comment,
|
|
167
|
-
DeprecationTypes,
|
|
168
|
-
EffectScope,
|
|
169
|
-
ErrorCodes,
|
|
170
|
-
ErrorTypeStrings,
|
|
171
|
-
Fragment,
|
|
172
|
-
KeepAlive,
|
|
173
|
-
ReactiveEffect,
|
|
174
|
-
Static,
|
|
175
|
-
Suspense,
|
|
176
|
-
Teleport,
|
|
177
|
-
Text,
|
|
178
|
-
TrackOpTypes,
|
|
179
|
-
Transition,
|
|
180
|
-
TransitionGroup,
|
|
181
|
-
TriggerOpTypes,
|
|
182
|
-
VueElement,
|
|
183
|
-
assertNumber,
|
|
184
|
-
callWithAsyncErrorHandling,
|
|
185
|
-
callWithErrorHandling,
|
|
186
|
-
camelize,
|
|
187
|
-
capitalize,
|
|
188
|
-
cloneVNode,
|
|
189
|
-
compatUtils,
|
|
190
|
-
compile,
|
|
191
|
-
computed,
|
|
192
|
-
createApp,
|
|
193
|
-
createBlock,
|
|
194
|
-
createCommentVNode,
|
|
195
|
-
createElementBlock,
|
|
196
|
-
createBaseVNode as createElementVNode,
|
|
197
|
-
createHydrationRenderer,
|
|
198
|
-
createPropsRestProxy,
|
|
199
|
-
createRenderer,
|
|
200
|
-
createSSRApp,
|
|
201
|
-
createSlots,
|
|
202
|
-
createStaticVNode,
|
|
203
|
-
createTextVNode,
|
|
204
|
-
createVNode,
|
|
205
|
-
customRef,
|
|
206
|
-
defineAsyncComponent,
|
|
207
|
-
defineComponent,
|
|
208
|
-
defineCustomElement,
|
|
209
|
-
defineEmits,
|
|
210
|
-
defineExpose,
|
|
211
|
-
defineModel,
|
|
212
|
-
defineOptions,
|
|
213
|
-
defineProps,
|
|
214
|
-
defineSSRCustomElement,
|
|
215
|
-
defineSlots,
|
|
216
|
-
devtools,
|
|
217
|
-
effect,
|
|
218
|
-
effectScope,
|
|
219
|
-
getCurrentInstance,
|
|
220
|
-
getCurrentScope,
|
|
221
|
-
getTransitionRawChildren,
|
|
222
|
-
guardReactiveProps,
|
|
223
|
-
h,
|
|
224
|
-
handleError,
|
|
225
|
-
hasInjectionContext,
|
|
226
|
-
hydrate,
|
|
227
|
-
initCustomFormatter,
|
|
228
|
-
initDirectivesForSSR,
|
|
229
|
-
inject,
|
|
230
|
-
isMemoSame,
|
|
231
|
-
isProxy,
|
|
232
|
-
isReactive,
|
|
233
|
-
isReadonly,
|
|
234
|
-
isRef,
|
|
235
|
-
isRuntimeOnly,
|
|
236
|
-
isShallow,
|
|
237
|
-
isVNode,
|
|
238
|
-
markRaw,
|
|
239
|
-
mergeDefaults,
|
|
240
|
-
mergeModels,
|
|
241
|
-
mergeProps,
|
|
242
|
-
nextTick,
|
|
243
|
-
normalizeClass,
|
|
244
|
-
normalizeProps,
|
|
245
|
-
normalizeStyle,
|
|
246
|
-
onActivated,
|
|
247
|
-
onBeforeMount,
|
|
248
|
-
onBeforeUnmount,
|
|
249
|
-
onBeforeUpdate,
|
|
250
|
-
onDeactivated,
|
|
251
|
-
onErrorCaptured,
|
|
252
|
-
onMounted,
|
|
253
|
-
onRenderTracked,
|
|
254
|
-
onRenderTriggered,
|
|
255
|
-
onScopeDispose,
|
|
256
|
-
onServerPrefetch,
|
|
257
|
-
onUnmounted,
|
|
258
|
-
onUpdated,
|
|
259
|
-
openBlock,
|
|
260
|
-
popScopeId,
|
|
261
|
-
provide,
|
|
262
|
-
proxyRefs,
|
|
263
|
-
pushScopeId,
|
|
264
|
-
queuePostFlushCb,
|
|
265
|
-
reactive,
|
|
266
|
-
readonly,
|
|
267
|
-
ref,
|
|
268
|
-
registerRuntimeCompiler,
|
|
269
|
-
render,
|
|
270
|
-
renderList,
|
|
271
|
-
renderSlot,
|
|
272
|
-
resolveComponent,
|
|
273
|
-
resolveDirective,
|
|
274
|
-
resolveDynamicComponent,
|
|
275
|
-
resolveFilter,
|
|
276
|
-
resolveTransitionHooks,
|
|
277
|
-
setBlockTracking,
|
|
278
|
-
setDevtoolsHook,
|
|
279
|
-
setTransitionHooks,
|
|
280
|
-
shallowReactive,
|
|
281
|
-
shallowReadonly,
|
|
282
|
-
shallowRef,
|
|
283
|
-
ssrContextKey,
|
|
284
|
-
ssrUtils,
|
|
285
|
-
stop,
|
|
286
|
-
toDisplayString,
|
|
287
|
-
toHandlerKey,
|
|
288
|
-
toHandlers,
|
|
289
|
-
toRaw,
|
|
290
|
-
toRef,
|
|
291
|
-
toRefs,
|
|
292
|
-
toValue,
|
|
293
|
-
transformVNodeArgs,
|
|
294
|
-
triggerRef,
|
|
295
|
-
unref,
|
|
296
|
-
useAttrs,
|
|
297
|
-
useCssModule,
|
|
298
|
-
useCssVars,
|
|
299
|
-
useModel,
|
|
300
|
-
useSSRContext,
|
|
301
|
-
useSlots,
|
|
302
|
-
useTransitionState,
|
|
303
|
-
vModelCheckbox,
|
|
304
|
-
vModelDynamic,
|
|
305
|
-
vModelRadio,
|
|
306
|
-
vModelSelect,
|
|
307
|
-
vModelText,
|
|
308
|
-
vShow,
|
|
309
|
-
version,
|
|
310
|
-
warn,
|
|
311
|
-
watch,
|
|
312
|
-
watchEffect,
|
|
313
|
-
watchPostEffect,
|
|
314
|
-
watchSyncEffect,
|
|
315
|
-
withAsyncContext,
|
|
316
|
-
withCtx,
|
|
317
|
-
withDefaults,
|
|
318
|
-
withDirectives,
|
|
319
|
-
withKeys,
|
|
320
|
-
withMemo,
|
|
321
|
-
withModifiers,
|
|
322
|
-
withScopeId
|
|
323
|
-
};
|
|
324
|
-
//# sourceMappingURL=vue.js.map
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Suspense,
|
|
3
|
-
createApp,
|
|
4
|
-
createSSRApp,
|
|
5
|
-
defineComponent,
|
|
6
|
-
h
|
|
7
|
-
} from "./chunk-MBCBSM2B.js";
|
|
8
|
-
import "./chunk-Y2F7D3TJ.js";
|
|
9
|
-
|
|
10
|
-
// node_modules/@astrojs/vue/static-html.js
|
|
11
|
-
var StaticHtml = defineComponent({
|
|
12
|
-
props: {
|
|
13
|
-
value: String,
|
|
14
|
-
name: String,
|
|
15
|
-
hydrate: {
|
|
16
|
-
type: Boolean,
|
|
17
|
-
default: true
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
setup({ name, value, hydrate }) {
|
|
21
|
-
if (!value)
|
|
22
|
-
return () => null;
|
|
23
|
-
let tagName = hydrate ? "astro-slot" : "astro-static-slot";
|
|
24
|
-
return () => h(tagName, { name, innerHTML: value });
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
var static_html_default = StaticHtml;
|
|
28
|
-
|
|
29
|
-
// node_modules/@astrojs/vue/client.js
|
|
30
|
-
import { setup } from "virtual:@astrojs/vue/app";
|
|
31
|
-
var client_default = (element) => async (Component, props, slotted, { client }) => {
|
|
32
|
-
if (!element.hasAttribute("ssr"))
|
|
33
|
-
return;
|
|
34
|
-
const name = Component.name ? `${Component.name} Host` : void 0;
|
|
35
|
-
const slots = {};
|
|
36
|
-
for (const [key, value] of Object.entries(slotted)) {
|
|
37
|
-
slots[key] = () => h(static_html_default, { value, name: key === "default" ? void 0 : key });
|
|
38
|
-
}
|
|
39
|
-
const isHydrate = client !== "only";
|
|
40
|
-
const bootstrap = isHydrate ? createSSRApp : createApp;
|
|
41
|
-
const app = bootstrap({
|
|
42
|
-
name,
|
|
43
|
-
render() {
|
|
44
|
-
let content = h(Component, props, slots);
|
|
45
|
-
if (isAsync(Component.setup)) {
|
|
46
|
-
content = h(Suspense, null, content);
|
|
47
|
-
}
|
|
48
|
-
return content;
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
await setup(app);
|
|
52
|
-
app.mount(element, isHydrate);
|
|
53
|
-
element.addEventListener("astro:unmount", () => app.unmount(), { once: true });
|
|
54
|
-
};
|
|
55
|
-
function isAsync(fn) {
|
|
56
|
-
const constructor = fn == null ? void 0 : fn.constructor;
|
|
57
|
-
return constructor && constructor.name === "AsyncFunction";
|
|
58
|
-
}
|
|
59
|
-
export {
|
|
60
|
-
client_default as default
|
|
61
|
-
};
|
|
62
|
-
//# sourceMappingURL=@astrojs_vue_client__js.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../../node_modules/@astrojs/vue/static-html.js", "../../../../../node_modules/@astrojs/vue/client.js"],
|
|
4
|
-
"sourcesContent": ["import { defineComponent, h } from 'vue';\n\n/**\n * Astro passes `children` as a string of HTML, so we need\n * a wrapper `div` to render that content as VNodes.\n *\n * This is the Vue + JSX equivalent of using `<div v-html=\"value\" />`\n */\nconst StaticHtml = defineComponent({\n\tprops: {\n\t\tvalue: String,\n\t\tname: String,\n\t\thydrate: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: true,\n\t\t},\n\t},\n\tsetup({ name, value, hydrate }) {\n\t\tif (!value) return () => null;\n\t\tlet tagName = hydrate ? 'astro-slot' : 'astro-static-slot';\n\t\treturn () => h(tagName, { name, innerHTML: value });\n\t},\n});\n\n/**\n * Other frameworks have `shouldComponentUpdate` in order to signal\n * that this subtree is entirely static and will not be updated\n *\n * Fortunately, Vue is smart enough to figure that out without any\n * help from us, so this just works out of the box!\n */\n\nexport default StaticHtml;\n", "import { Suspense, createApp, createSSRApp, h } from 'vue';\nimport StaticHtml from './static-html.js';\nimport { setup } from 'virtual:@astrojs/vue/app';\n\nexport default (element) =>\n\tasync (Component, props, slotted, { client }) => {\n\t\tif (!element.hasAttribute('ssr')) return;\n\n\t\t// Expose name on host component for Vue devtools\n\t\tconst name = Component.name ? `${Component.name} Host` : undefined;\n\t\tconst slots = {};\n\t\tfor (const [key, value] of Object.entries(slotted)) {\n\t\t\tslots[key] = () => h(StaticHtml, { value, name: key === 'default' ? undefined : key });\n\t\t}\n\n\t\tconst isHydrate = client !== 'only';\n\t\tconst bootstrap = isHydrate ? createSSRApp : createApp;\n\t\tconst app = bootstrap({\n\t\t\tname,\n\t\t\trender() {\n\t\t\t\tlet content = h(Component, props, slots);\n\t\t\t\t// related to https://github.com/withastro/astro/issues/6549\n\t\t\t\t// if the component is async, wrap it in a Suspense component\n\t\t\t\tif (isAsync(Component.setup)) {\n\t\t\t\t\tcontent = h(Suspense, null, content);\n\t\t\t\t}\n\t\t\t\treturn content;\n\t\t\t},\n\t\t});\n\t\tawait setup(app);\n\t\tapp.mount(element, isHydrate);\n\n\t\telement.addEventListener('astro:unmount', () => app.unmount(), { once: true });\n\t};\n\nfunction isAsync(fn) {\n\tconst constructor = fn?.constructor;\n\treturn constructor && constructor.name === 'AsyncFunction';\n}\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;AAQA,IAAM,aAAa,gBAAgB;AAAA,EAClC,OAAO;AAAA,IACN,OAAO;AAAA,IACP,MAAM;AAAA,IACN,SAAS;AAAA,MACR,MAAM;AAAA,MACN,SAAS;AAAA,IACV;AAAA,EACD;AAAA,EACA,MAAM,EAAE,MAAM,OAAO,QAAQ,GAAG;AAC/B,QAAI,CAAC;AAAO,aAAO,MAAM;AACzB,QAAI,UAAU,UAAU,eAAe;AACvC,WAAO,MAAM,EAAE,SAAS,EAAE,MAAM,WAAW,MAAM,CAAC;AAAA,EACnD;AACD,CAAC;AAUD,IAAO,sBAAQ;;;AC9Bf,SAAS,aAAa;AAEtB,IAAO,iBAAQ,CAAC,YACf,OAAO,WAAW,OAAO,SAAS,EAAE,OAAO,MAAM;AAChD,MAAI,CAAC,QAAQ,aAAa,KAAK;AAAG;AAGlC,QAAM,OAAO,UAAU,OAAO,GAAG,UAAU,IAAI,UAAU;AACzD,QAAM,QAAQ,CAAC;AACf,aAAW,CAAC,KAAK,KAAK,KAAK,OAAO,QAAQ,OAAO,GAAG;AACnD,UAAM,GAAG,IAAI,MAAM,EAAE,qBAAY,EAAE,OAAO,MAAM,QAAQ,YAAY,SAAY,IAAI,CAAC;AAAA,EACtF;AAEA,QAAM,YAAY,WAAW;AAC7B,QAAM,YAAY,YAAY,eAAe;AAC7C,QAAM,MAAM,UAAU;AAAA,IACrB;AAAA,IACA,SAAS;AACR,UAAI,UAAU,EAAE,WAAW,OAAO,KAAK;AAGvC,UAAI,QAAQ,UAAU,KAAK,GAAG;AAC7B,kBAAU,EAAE,UAAU,MAAM,OAAO;AAAA,MACpC;AACA,aAAO;AAAA,IACR;AAAA,EACD,CAAC;AACD,QAAM,MAAM,GAAG;AACf,MAAI,MAAM,SAAS,SAAS;AAE5B,UAAQ,iBAAiB,iBAAiB,MAAM,IAAI,QAAQ,GAAG,EAAE,MAAM,KAAK,CAAC;AAC9E;AAED,SAAS,QAAQ,IAAI;AACpB,QAAM,cAAc,yBAAI;AACxB,SAAO,eAAe,YAAY,SAAS;AAC5C;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|