youtuber-blog-frontend/build/server/chunks/_page.svelte-B8I6dDlM.js

91 lines
3.8 KiB
JavaScript
Raw Normal View History

2024-06-23 09:25:48 +00:00
import { c as create_ssr_component, v as validate_component, a as each, e as escape, s as spread, d as escape_attribute_value, f as escape_object } from './ssr-ipqebOFl.js';
2024-08-25 16:39:31 +00:00
import { T as Table, a as Table_header, b as Table_row, c as Table_head, d as Table_body, e as Table_cell } from './table-row-CK5I-4oy.js';
2024-06-23 09:25:48 +00:00
import { c as compute_rest_props } from './lifecycle-px-3doLe.js';
2024-08-25 16:39:31 +00:00
import { B as Button, c as cn } from './button-JMjD_Bg6.js';
2024-05-29 18:43:41 +00:00
import 'clsx';
2024-08-25 16:39:31 +00:00
import './index3-JA_ucGjW.js';
import { A as ArrowUpRight } from './arrow-up-right-MiP1hoYP.js';
2024-05-29 18:43:41 +00:00
import 'tailwind-merge';
import 'tailwind-variants';
2024-06-23 09:25:48 +00:00
import './index2-D4yenS_5.js';
2024-05-29 18:43:41 +00:00
import './ssr2-BVSPLo1E.js';
const Table_caption = create_ssr_component(($$result, $$props, $$bindings, slots) => {
let $$restProps = compute_rest_props($$props, ["class"]);
let { class: className = void 0 } = $$props;
if ($$props.class === void 0 && $$bindings.class && className !== void 0)
$$bindings.class(className);
return `<caption${spread(
[
{
class: escape_attribute_value(cn("mt-4 text-sm text-muted-foreground", className))
},
escape_object($$restProps)
],
{}
)}>${slots.default ? slots.default({}) : ``}</caption>`;
});
const Page = create_ssr_component(($$result, $$props, $$bindings, slots) => {
let { data } = $$props;
if ($$props.data === void 0 && $$bindings.data && data !== void 0)
$$bindings.data(data);
return `<div class="mx-auto w-full max-w-[1000px]">${validate_component(Button, "Button").$$render($$result, { size: "sm", class: "ml-auto gap-1" }, {}, {
default: () => {
return `Export as CSV
${validate_component(ArrowUpRight, "ArrowUpRight").$$render($$result, { class: "h-4 w-4" }, {}, {})}`;
}
})} ${validate_component(Table, "Table.Root").$$render($$result, {}, {}, {
default: () => {
return `${validate_component(Table_caption, "Table.Caption").$$render($$result, {}, {}, {
default: () => {
return `A list of recent signups on your website.`;
}
})} ${validate_component(Table_header, "Table.Header").$$render($$result, {}, {}, {
default: () => {
return `${validate_component(Table_row, "Table.Row").$$render($$result, {}, {}, {
default: () => {
return `${validate_component(Table_head, "Table.Head").$$render($$result, { class: "max-w-[300px]" }, {}, {
default: () => {
return `Email`;
}
})} ${validate_component(Table_head, "Table.Head").$$render($$result, { class: "text-end" }, {}, {
default: () => {
return `Date and Time`;
}
2024-06-07 14:10:14 +00:00
})} `;
2024-05-29 18:43:41 +00:00
}
})}`;
}
})} ${validate_component(Table_body, "Table.Body").$$render($$result, {}, {}, {
default: () => {
return `${each(data.signups, (signup, i) => {
return `${validate_component(Table_row, "Table.Row").$$render($$result, {}, {}, {
default: () => {
return `${validate_component(Table_cell, "Table.Cell").$$render(
$$result,
{
class: "max-w-[300px] overflow-hidden overflow-ellipsis text-nowrap"
},
{},
{
default: () => {
return `${escape(signup.email)}`;
}
}
)} ${validate_component(Table_cell, "Table.Cell").$$render($$result, { class: "text-end" }, {}, {
default: () => {
return `${escape(new Date(signup.created_at).toLocaleString())}`;
}
})} `;
}
})}`;
})}`;
}
})}`;
}
})}</div> `;
});
export { Page as default };
2024-08-25 16:39:31 +00:00
//# sourceMappingURL=_page.svelte-B8I6dDlM.js.map