import { z } from 'zod';
import { ProfileTemplates } from './templates.js';
import { ZCreatePreviewLinks } from './scraper.js';
export const ZTemplateValidator = z.preprocess(val => String(val).replace(/\W+/g, '').toLowerCase(), z.nativeEnum(ProfileTemplates));
export var ScraperCalledFromPage;
(function (ScraperCalledFromPage) {
    ScraperCalledFromPage["WEBFLOW"] = "webflow";
    ScraperCalledFromPage["LINKINBIO"] = "link-in-bio";
    ScraperCalledFromPage["SOCIALLINKS"] = "social-links";
})(ScraperCalledFromPage || (ScraperCalledFromPage = {}));
export const ZCreatePreviewBody = z.object({
    inputs: z.array(ZCreatePreviewLinks),
    template: ZTemplateValidator,
    calledFromPage: z.nativeEnum(ScraperCalledFromPage).default(ScraperCalledFromPage.WEBFLOW)
});
