{ "version": 3, "sources": ["empty-module:../api/pages.server", "../../../app/routes/_index/route.tsx", "../../../app/elemason.config.ts"], "sourcesContent": ["module.exports = {};", "import { json } from '@remix-run/node';\nimport { QueryClient, dehydrate, useQueries } from '@tanstack/react-query';\nimport { remixApi } from '@tectonic/api-client';\nimport { ElemasonEntry, useElemasonContext } from '@tectonic/elemason';\nimport { getHttpClientFunctionArgs, getUrlSearchParams } from '@tectonic/utils';\nimport { elemasonConfig } from 'app/elemason.config';\nimport { getPageWithData, getRoot } from '../api/pages.server';\n\nimport type { DataFunctionArgs } from '@remix-run/node';\n\nconst SLUG = 'home';\n\nconst loader = async (args: DataFunctionArgs) => {\n const queryClient = new QueryClient();\n\n const routeParams = args.params;\n const searchParams = getUrlSearchParams(args.request.url);\n const httpClientFunctionArgs = getHttpClientFunctionArgs(args);\n\nawait Promise.allSettled([\n queryClient.prefetchQuery({\n queryKey: ['root'],\n queryFn: () => getRoot(httpClientFunctionArgs),\n }),\n queryClient.prefetchQuery({\n queryKey: ['page', SLUG, routeParams, searchParams],\n queryFn: () => getPageWithData(httpClientFunctionArgs, SLUG),\n }),\n ]);\n\n return json({ dehydratedState: dehydrate(queryClient) });\n};\n\nconst Home = () => {\n const { routeParams, searchParams } = useElemasonContext();\n\n const [{ data: root }, { data: page }] = useQueries({\n queries: [\n {\n enabled: false,\n queryKey: ['root'],\n queryFn: () => remixApi.getRoot(),\n },\n {\n enabled: false,\n queryFn: () => remixApi.getPage(SLUG),\n queryKey: ['page', SLUG, routeParams, searchParams],\n },\n ],\n });\n\n return (\n \n );\n};\n\nexport default Home;\n\nexport { loader };\n", "import {\n ElemasonComponentType,\n ElemasonConfig,\n ElemasonWidgetType,\n ProductVariantsColorVariant,\n ProductVariantsSizeVariant,\n} from '@tectonic/types';\n\nconst elemasonConfig: ElemasonConfig = {\n widgets: {\n [ElemasonWidgetType.ProductListTabs]: {\n tabs: {\n gap: '6',\n paddingX: '4',\n paddingTop: '6',\n paddingBottom: '3',\n alignItems: 'center',\n justifyContent: 'center',\n },\n tab: {\n size: 'sm',\n paddingX: '4',\n paddingY: '1',\n modifier: 'black',\n borderRadius: 'md',\n variant: 'outline',\n text: {\n fontWeight: 'medium',\n },\n },\n selectedTab: {\n size: 'sm',\n paddingX: '4',\n paddingY: '1',\n modifier: 'black',\n variant: 'outline',\n borderRadius: 'md',\n text: {\n color: 'white',\n fontWeight: 'semibold',\n },\n backgroundColor: 'black',\n },\n list: { paddingX: '4', paddingY: '3', gapX: '3' },\n errorCard: {\n data: {\n title: 'Error',\n subtitle: 'Something went wrong',\n },\n },\n sourceCard: {\n title: {},\n subtitle: {},\n size: 'sm',\n container: {\n padding: '4',\n alignItems: 'center',\n justifyContent: 'center',\n backgroundColor: 'white',\n },\n },\n product: {\n size: 'sm',\n },\n },\n [ElemasonWidgetType.CountdownProductList]: {\n list: { padding: '4', gapX: '3' },\n errorCard: {\n data: {\n title: 'Error',\n subtitle: 'Something went wrong',\n },\n },\n sourceCard: {\n title: {},\n subtitle: {},\n size: 'sm',\n container: {\n padding: '4',\n alignItems: 'center',\n justifyContent: 'center',\n backgroundColor: 'white',\n },\n },\n header: {\n title: { variant: 'body1', markdown: true },\n container: { paddingX: '4', paddingTop: '6', paddingBottom: '3' },\n countdown: {\n text: {},\n container: {\n gap: '1',\n paddingX: '3',\n paddingY: '1.5',\n borderRadius: 'full',\n },\n },\n },\n product: {\n size: 'sm',\n },\n },\n [ElemasonWidgetType.ProductList]: {\n list: { padding: '4', gapX: '3' },\n errorCard: {\n data: {\n title: 'Error',\n subtitle: 'Something went wrong',\n },\n },\n sourceCard: {\n title: {},\n subtitle: {},\n size: 'sm',\n container: {\n padding: '4',\n alignItems: 'center',\n justifyContent: 'center',\n backgroundColor: 'white',\n },\n },\n header: {\n title: { variant: 'body1', markdown: true },\n container: { paddingX: '4', paddingTop: '6', paddingBottom: '3' },\n },\n product: {\n size: 'sm',\n aspectRatio: 0.563,\n },\n cardWidths: {\n xs: 144,\n sm: 192,\n md: 234,\n lg: 270,\n xl: 360,\n '2xl': 432,\n },\n },\n [ElemasonWidgetType.Looks]: {\n shopButton: {\n backgroundColor: 'primary-400',\n container: {\n paddingX: '4',\n paddingY: '3',\n width: '100%',\n },\n text: {\n fontWeight: 'semibold',\n },\n },\n header: {\n container: {\n paddingX: '4',\n paddingTop: '6',\n paddingBottom: '3',\n },\n title: {\n variant: 'body1',\n textAlign: 'center',\n },\n },\n productList: {\n list: {\n gapX: '3',\n paddingY: '1.5',\n },\n product: {\n details: {\n container: {\n paddingX: '0',\n paddingBottom: '0',\n },\n brand: {\n visible: false,\n },\n title: {\n height: 'initial',\n paddingTop: '0',\n variant: 'body4',\n },\n variants: {\n config: {\n size: {\n container: {\n gap: '1.5',\n paddingTop: '2',\n },\n config: {\n variant: ProductVariantsSizeVariant.DROPDOWN,\n icon: 'outline-chevron-down',\n iconConfig: {\n size: 'sm',\n },\n text: {\n variant: 'body4',\n fontWeight: 'semibold',\n },\n container: {\n border: '1',\n paddingY: '1',\n paddingX: '2.5',\n width: 'fit-content',\n borderRadius: 'full',\n borderColor: 'primary-200',\n },\n },\n },\n color: {\n container: {\n gap: '1.5',\n paddingTop: '2',\n },\n config: {\n item: {\n width: 14,\n height: 14,\n overflow: 'hidden',\n borderRadius: 'full',\n },\n icon: 'outline-chevron-down',\n iconConfig: {\n size: 'sm',\n },\n variant: ProductVariantsColorVariant.DROPDOWN,\n container: {\n gap: '1',\n border: '1',\n width: '100%',\n borderRadius: 'full',\n alignItems: 'center',\n borderColor: 'primary-200',\n },\n text: {\n variant: 'body4',\n fontWeight: 'semibold',\n },\n textContainer: {\n width: '100%',\n paddingEnd: '1.5',\n alignItems: 'center',\n justifyContent: 'center',\n },\n },\n },\n },\n },\n },\n productCardText: {\n visible: false,\n text: 'Out of Stock',\n config: {\n end: 16,\n top: 56,\n variant: 'body3',\n color: 'warning-600',\n position: 'absolute',\n fontWeight: 'semibold',\n },\n },\n cartCta: {\n container: {\n position: 'static',\n },\n },\n wishlistCta: {\n visible: false,\n },\n media: {\n width: 80,\n height: 80,\n aspectRatio: 1,\n borderRadius: 'md',\n },\n container: {\n padding: '2',\n direction: 'row',\n },\n aspectRatio: 2.48,\n },\n cardWidths: {\n xs: 225,\n sm: 300,\n md: 365,\n lg: 422,\n xl: 562,\n '2xl': 675,\n },\n },\n mediaContainer: {\n paddingX: '4',\n paddingY: '1.5',\n },\n annotationIcon: 'outline-annotation',\n inactiveAnnotationIcon: 'outline-annotation-unselected',\n carousel: {\n dimension: {\n width: '100%',\n aspectRatio: 0.8956043956043956,\n },\n },\n },\n },\n components: {\n [ElemasonComponentType.Toast]: {\n container: {\n paddingY: '3',\n paddingX: '4',\n marginBottom: '20',\n borderRadius: 'md',\n backgroundColor: 'black',\n justifyContent: 'center',\n },\n title: {\n color: 'white',\n variant: 'subtext4',\n },\n description: {\n color: 'white',\n variant: 'subtext5',\n },\n },\n [ElemasonComponentType.VariantSelector]: {\n size: {\n container: {\n gap: '1.5',\n width: '100%',\n overflow: 'auto',\n alignItems: 'center',\n borderRadius: 'full',\n },\n selectedItem: {\n paddingY: '1.5',\n paddingX: '2.5',\n borderRadius: 'full',\n backgroundColor: 'neutral-950',\n },\n item: {\n border: '1',\n paddingY: '1.5',\n paddingX: '2.5',\n borderRadius: 'full',\n alignItems: 'center',\n borderColor: 'neutral-950',\n },\n unavailableItem: {\n borderColor: 'neutral-400',\n },\n text: {\n color: 'neutral-950',\n variant: 'body4',\n fontWeight: 'semibold',\n },\n unavailableText: {\n color: 'neutral-400',\n variant: 'body4',\n fontWeight: 'semibold',\n },\n selectedText: {\n color: 'white',\n variant: 'body4',\n fontWeight: 'semibold',\n },\n },\n color: {\n container: {\n width: '100%',\n overflow: 'auto',\n },\n item: {\n alignItems: 'center',\n },\n unavailableIcon: 'outline-unavailable-color',\n unavailableIconConfig: {\n color: 'white',\n size: 'md',\n },\n selectedItem: {\n border: '1',\n alignItems: 'center',\n borderRadius: 'full',\n borderColor: 'primary-400',\n paddingEnd: '3',\n },\n selectedItemText: {\n variant: 'body4',\n },\n swatch: {\n itemContainer: {\n margin: '1',\n },\n item: {\n width: 24,\n height: 24,\n },\n },\n },\n },\n [ElemasonComponentType.Swatch]: {\n item: {\n width: 16,\n height: 16,\n overflow: 'hidden',\n borderRadius: 'full',\n },\n itemContainer: {\n border: '1',\n margin: '1',\n borderColor: 'white',\n borderRadius: 'full',\n },\n },\n [ElemasonComponentType.ProductPricing]: {\n container: {\n gapX: '1.5',\n paddingTop: '3',\n alignItems: 'center',\n },\n price: {\n text: {\n color: 'primary-400',\n variant: 'body3',\n fontWeight: 'semibold',\n },\n },\n discount: {\n text: {\n variant: 'body4',\n color: 'success-600',\n fontWeight: 'semibold',\n },\n },\n mrp: {\n text: {\n variant: 'body4',\n color: 'neutral-500',\n },\n },\n },\n [ElemasonComponentType.ProductBadges]: {\n visible: true,\n data: {\n text: `{name}`,\n },\n config: {\n badgesToShow: 2,\n borderRadius: 'sm',\n width: 'fit-content',\n backgroundImageGradient: {\n type: 'linear',\n direction: '90deg',\n colorStops: [\n {\n color: '#DD6189',\n position: 0,\n },\n {\n color: '#DF7E85',\n position: 50.52,\n },\n {\n color: '#E3A379',\n position: 100,\n },\n ],\n },\n color: 'white',\n paddingX: '1',\n paddingY: '0.5',\n variant: 'body5',\n fontWeight: 'semibold',\n textTransform: 'uppercase',\n },\n container: {\n top: 8,\n gap: '1',\n start: 8,\n overflow: 'hidden',\n position: 'absolute',\n },\n },\n },\n};\n\n\nexport { elemasonConfig };\n"], "mappings": "kMAAA,IAAAA,EAAAC,EAAA,CAAAC,EAAAC,IAAA,CAAAA,EAAO,QAAU,CAAC,ICAlB,IAAAC,EAAqB,SCQrB,IAAMC,EAAiC,CACrC,QAAS,CACP,oBAAmC,EAAG,CACpC,KAAM,CACJ,IAAK,IACL,SAAU,IACV,WAAY,IACZ,cAAe,IACf,WAAY,SACZ,eAAgB,QAClB,EACA,IAAK,CACH,KAAM,KACN,SAAU,IACV,SAAU,IACV,SAAU,QACV,aAAc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F,CACF,EACA,gBAAiB,CACf,QAAS,GACT,KAAM,eACN,OAAQ,CACN,IAAK,GACL,IAAK,GACL,QAAS,QACT,MAAO,cACP,SAAU,WACV,WAAY,UACd,CACF,EACA,QAAS,CACP,UAAW,CACT,SAAU,QACZ,CACF,EACA,YAAa,CACX,QAAS,EACX,EACA,MAAO,CACL,MAAO,GACP,OAAQ,GACR,YAAa,EACb,aAAc,IAChB,EACA,UAAW,CACT,QAAS,IACT,UAAW,KACb,EACA,YAAa,IACf,EACA,WAAY,CACV,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,MAAO,GACT,CACF,EACA,eAAgB,CACd,SAAU,IACV,SAAU,KACZ,EACA,eAAgB,qBAChB,uBAAwB,gCACxB,SAAU,CACR,UAAW,CACT,MAAO,OACP,YAAa,iBACf,CACF,CACF,CACF,EACA,WAAY,CACV,QAA4B,EAAG,CAC7B,UAAW,CACT,SAAU,IACV,SAAU,IACV,aAAc,KACd,aAAc,KACd,gBAAiB,QACjB,eAAgB,QAClB,EACA,MAAO,CACL,MAAO,QACP,QAAS,UACX,EACA,YAAa,CACX,MAAO,QACP,QAAS,UACX,CACF,EACA,mBAAsC,EAAG,CACvC,KAAM,CACJ,UAAW,CACT,IAAK,MACL,MAAO,OACP,SAAU,OACV,WAAY,SACZ,aAAc,MAChB,EACA,aAAc,CACZ,SAAU,MACV,SAAU,MACV,aAAc,OACd,gBAAiB,aACnB,EACA,KAAM,CACJ,OAAQ,IACR,SAAU,MACV,SAAU,MACV,aAAc,OACd,WAAY,SACZ,YAAa,aACf,EACA,gBAAiB,CACf,YAAa,aACf,EACA,KAAM,CACJ,MAAO,cACP,QAAS,QACT,WAAY,UACd,EACA,gBAAiB,CACf,MAAO,cACP,QAAS,QACT,WAAY,UACd,EACA,aAAc,CACZ,MAAO,QACP,QAAS,QACT,WAAY,UACd,CACF,EACA,MAAO,CACL,UAAW,CACT,MAAO,OACP,SAAU,MACZ,EACA,KAAM,C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AEnD,CAAC,CAAE,KAAMC,CAAK,EAAG,CAAE,KAAMC,CAAK,CAAC,EAAIC,EAAW,CAClD,QAAS,CACP,CACE,QAAS,GACT,SAAU,CAAC,MAAM,EACjB,QAAS,IAAMC,EAAS,QAAQ,CAClC,EACA,CACE,QAAS,GACT,QAAS,IAAMA,EAAS,QAAQC,CAAI,EACpC,SAAU,CAAC,OAAQA,EAAMP,EAAaC,CAAY,CACpD,CACF,CACF,CAAC,EAED,SACE,OAACO,EAAA,CACC,KAAML,EACN,KAAMC,GAAM,KACZ,KAAMA,GAAM,KACZ,OAAQK,GACH,GAAG,KAAK,UAAUT,CAAW,KAAK,KAAK,UAAUC,CAAY,GACpE,CAEJ,EAEOS,EAAQX", "names": ["require_pages", "__commonJSMin", "exports", "module", "import_node", "elemasonConfig", "import_pages", "import_jsx_runtime", "SLUG", "Home", "routeParams", "searchParams", "useElemasonContext", "root", "page", "useQueries", "remixApi_exports", "SLUG", "ElemasonEntry", "elemasonConfig", "route_default"] }