@ewanc26/og 0.1.4 → 0.1.6

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.
@@ -0,0 +1,360 @@
1
+ // src/templates/blog.ts
2
+ function blogTemplate({
3
+ title,
4
+ description,
5
+ siteName,
6
+ colors,
7
+ noiseDataUrl,
8
+ width,
9
+ height
10
+ }) {
11
+ return {
12
+ type: "div",
13
+ props: {
14
+ style: {
15
+ position: "relative",
16
+ display: "flex",
17
+ flexDirection: "column",
18
+ alignItems: "center",
19
+ justifyContent: "center",
20
+ width,
21
+ height,
22
+ backgroundColor: colors.background
23
+ },
24
+ children: [
25
+ noiseDataUrl ? {
26
+ type: "img",
27
+ props: {
28
+ src: noiseDataUrl,
29
+ width,
30
+ height,
31
+ style: {
32
+ position: "absolute",
33
+ top: 0,
34
+ left: 0,
35
+ width,
36
+ height
37
+ }
38
+ }
39
+ } : null,
40
+ {
41
+ type: "div",
42
+ props: {
43
+ style: {
44
+ position: "relative",
45
+ display: "flex",
46
+ flexDirection: "column",
47
+ alignItems: "center",
48
+ justifyContent: "center",
49
+ width,
50
+ height,
51
+ padding: "0 60px"
52
+ },
53
+ children: [
54
+ {
55
+ type: "h1",
56
+ props: {
57
+ style: {
58
+ fontSize: 64,
59
+ fontWeight: 700,
60
+ color: colors.text,
61
+ letterSpacing: "-0.02em",
62
+ margin: 0,
63
+ textAlign: "center",
64
+ lineHeight: 1.1,
65
+ maxWidth: 1e3
66
+ },
67
+ children: title
68
+ }
69
+ },
70
+ description ? {
71
+ type: "p",
72
+ props: {
73
+ style: {
74
+ fontSize: 28,
75
+ fontWeight: 400,
76
+ color: colors.accent,
77
+ marginTop: 28,
78
+ marginBottom: 0,
79
+ textAlign: "center",
80
+ lineHeight: 1.4,
81
+ maxWidth: 900
82
+ },
83
+ children: description
84
+ }
85
+ } : null,
86
+ {
87
+ type: "p",
88
+ props: {
89
+ style: {
90
+ fontSize: 24,
91
+ fontWeight: 400,
92
+ color: colors.accent,
93
+ marginTop: 56,
94
+ marginBottom: 0,
95
+ textAlign: "center",
96
+ opacity: 0.7
97
+ },
98
+ children: siteName
99
+ }
100
+ }
101
+ ].filter(Boolean)
102
+ }
103
+ }
104
+ ].filter(Boolean)
105
+ }
106
+ };
107
+ }
108
+
109
+ // src/templates/profile.ts
110
+ function profileTemplate({
111
+ title,
112
+ description,
113
+ siteName,
114
+ image,
115
+ colors,
116
+ noiseDataUrl,
117
+ width,
118
+ height
119
+ }) {
120
+ const contentChildren = [];
121
+ if (image) {
122
+ contentChildren.push({
123
+ type: "img",
124
+ props: {
125
+ src: image,
126
+ width: 120,
127
+ height: 120,
128
+ style: {
129
+ borderRadius: "50%",
130
+ marginBottom: 32,
131
+ objectFit: "cover"
132
+ }
133
+ }
134
+ });
135
+ }
136
+ contentChildren.push({
137
+ type: "h1",
138
+ props: {
139
+ style: {
140
+ fontSize: 56,
141
+ fontWeight: 700,
142
+ color: colors.text,
143
+ letterSpacing: "-0.02em",
144
+ margin: 0,
145
+ textAlign: "center",
146
+ lineHeight: 1.1,
147
+ maxWidth: 900
148
+ },
149
+ children: title
150
+ }
151
+ });
152
+ if (description) {
153
+ contentChildren.push({
154
+ type: "p",
155
+ props: {
156
+ style: {
157
+ fontSize: 26,
158
+ fontWeight: 400,
159
+ color: colors.accent,
160
+ marginTop: 20,
161
+ marginBottom: 0,
162
+ textAlign: "center",
163
+ lineHeight: 1.4,
164
+ maxWidth: 700
165
+ },
166
+ children: description
167
+ }
168
+ });
169
+ }
170
+ contentChildren.push({
171
+ type: "p",
172
+ props: {
173
+ style: {
174
+ fontSize: 24,
175
+ fontWeight: 400,
176
+ color: colors.accent,
177
+ marginTop: 48,
178
+ marginBottom: 0,
179
+ textAlign: "center",
180
+ opacity: 0.7
181
+ },
182
+ children: siteName
183
+ }
184
+ });
185
+ return {
186
+ type: "div",
187
+ props: {
188
+ style: {
189
+ position: "relative",
190
+ display: "flex",
191
+ flexDirection: "column",
192
+ alignItems: "center",
193
+ justifyContent: "center",
194
+ width,
195
+ height,
196
+ backgroundColor: colors.background
197
+ },
198
+ children: [
199
+ noiseDataUrl ? {
200
+ type: "img",
201
+ props: {
202
+ src: noiseDataUrl,
203
+ width,
204
+ height,
205
+ style: {
206
+ position: "absolute",
207
+ top: 0,
208
+ left: 0,
209
+ width,
210
+ height
211
+ }
212
+ }
213
+ } : null,
214
+ {
215
+ type: "div",
216
+ props: {
217
+ style: {
218
+ position: "relative",
219
+ display: "flex",
220
+ flexDirection: "column",
221
+ alignItems: "center",
222
+ justifyContent: "center",
223
+ width,
224
+ height,
225
+ padding: "0 60px"
226
+ },
227
+ children: contentChildren
228
+ }
229
+ }
230
+ ].filter(Boolean)
231
+ }
232
+ };
233
+ }
234
+
235
+ // src/templates/default.ts
236
+ function defaultTemplate({
237
+ title,
238
+ description,
239
+ siteName,
240
+ colors,
241
+ noiseDataUrl,
242
+ width,
243
+ height
244
+ }) {
245
+ return {
246
+ type: "div",
247
+ props: {
248
+ style: {
249
+ position: "relative",
250
+ display: "flex",
251
+ flexDirection: "column",
252
+ alignItems: "center",
253
+ justifyContent: "center",
254
+ width,
255
+ height,
256
+ backgroundColor: colors.background
257
+ },
258
+ children: [
259
+ noiseDataUrl ? {
260
+ type: "img",
261
+ props: {
262
+ src: noiseDataUrl,
263
+ width,
264
+ height,
265
+ style: {
266
+ position: "absolute",
267
+ top: 0,
268
+ left: 0,
269
+ width,
270
+ height
271
+ }
272
+ }
273
+ } : null,
274
+ {
275
+ type: "div",
276
+ props: {
277
+ style: {
278
+ position: "relative",
279
+ display: "flex",
280
+ flexDirection: "column",
281
+ alignItems: "center",
282
+ justifyContent: "center",
283
+ width,
284
+ height,
285
+ padding: "0 60px"
286
+ },
287
+ children: [
288
+ {
289
+ type: "h1",
290
+ props: {
291
+ style: {
292
+ fontSize: 72,
293
+ fontWeight: 700,
294
+ color: colors.text,
295
+ letterSpacing: "-0.02em",
296
+ margin: 0,
297
+ textAlign: "center"
298
+ },
299
+ children: title
300
+ }
301
+ },
302
+ description ? {
303
+ type: "p",
304
+ props: {
305
+ style: {
306
+ fontSize: 32,
307
+ fontWeight: 400,
308
+ color: colors.accent,
309
+ marginTop: 24,
310
+ marginBottom: 0,
311
+ textAlign: "center",
312
+ maxWidth: 900
313
+ },
314
+ children: description
315
+ }
316
+ } : null,
317
+ {
318
+ type: "p",
319
+ props: {
320
+ style: {
321
+ fontSize: 28,
322
+ fontWeight: 400,
323
+ color: colors.accent,
324
+ marginTop: 64,
325
+ marginBottom: 0,
326
+ textAlign: "center",
327
+ opacity: 0.7
328
+ },
329
+ children: siteName
330
+ }
331
+ }
332
+ ].filter(Boolean)
333
+ }
334
+ }
335
+ ].filter(Boolean)
336
+ }
337
+ };
338
+ }
339
+
340
+ // src/templates/index.ts
341
+ var templates = {
342
+ blog: blogTemplate,
343
+ profile: profileTemplate,
344
+ default: defaultTemplate
345
+ };
346
+ function getTemplate(name) {
347
+ if (typeof name === "function") {
348
+ return name;
349
+ }
350
+ return templates[name];
351
+ }
352
+
353
+ export {
354
+ blogTemplate,
355
+ profileTemplate,
356
+ defaultTemplate,
357
+ templates,
358
+ getTemplate
359
+ };
360
+ //# sourceMappingURL=chunk-CM6746HS.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/templates/blog.ts","../src/templates/profile.ts","../src/templates/default.ts","../src/templates/index.ts"],"sourcesContent":["/**\n * Blog OG template.\n * Clean centered layout.\n */\n\nimport type { OgTemplateProps } from '../types.js'\n\nexport function blogTemplate({\n\ttitle,\n\tdescription,\n\tsiteName,\n\tcolors,\n\tnoiseDataUrl,\n\twidth,\n\theight,\n}: OgTemplateProps) {\n\treturn {\n\t\ttype: 'div',\n\t\tprops: {\n\t\t\tstyle: {\n\t\t\t\tposition: 'relative',\n\t\t\t\tdisplay: 'flex',\n\t\t\t\tflexDirection: 'column',\n\t\t\t\talignItems: 'center',\n\t\t\t\tjustifyContent: 'center',\n\t\t\t\twidth,\n\t\t\t\theight,\n\t\t\t\tbackgroundColor: colors.background,\n\t\t\t},\n\t\t\tchildren: [\n\t\t\t\tnoiseDataUrl ? {\n\t\t\t\t\ttype: 'img',\n\t\t\t\t\tprops: {\n\t\t\t\t\t\tsrc: noiseDataUrl,\n\t\t\t\t\t\twidth,\n\t\t\t\t\t\theight,\n\t\t\t\t\t\tstyle: {\n\t\t\t\t\t\t\tposition: 'absolute',\n\t\t\t\t\t\t\ttop: 0,\n\t\t\t\t\t\t\tleft: 0,\n\t\t\t\t\t\t\twidth,\n\t\t\t\t\t\t\theight,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t} : null,\n\t\t\t\t{\n\t\t\t\t\ttype: 'div',\n\t\t\t\t\tprops: {\n\t\t\t\t\t\tstyle: {\n\t\t\t\t\t\t\tposition: 'relative',\n\t\t\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t\t\t\tflexDirection: 'column',\n\t\t\t\t\t\t\talignItems: 'center',\n\t\t\t\t\t\t\tjustifyContent: 'center',\n\t\t\t\t\t\t\twidth,\n\t\t\t\t\t\t\theight,\n\t\t\t\t\t\t\tpadding: '0 60px',\n\t\t\t\t\t\t},\n\t\t\t\t\t\tchildren: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ttype: 'h1',\n\t\t\t\t\t\t\t\tprops: {\n\t\t\t\t\t\t\t\t\tstyle: {\n\t\t\t\t\t\t\t\t\t\tfontSize: 64,\n\t\t\t\t\t\t\t\t\t\tfontWeight: 700,\n\t\t\t\t\t\t\t\t\t\tcolor: colors.text,\n\t\t\t\t\t\t\t\t\t\tletterSpacing: '-0.02em',\n\t\t\t\t\t\t\t\t\t\tmargin: 0,\n\t\t\t\t\t\t\t\t\t\ttextAlign: 'center',\n\t\t\t\t\t\t\t\t\t\tlineHeight: 1.1,\n\t\t\t\t\t\t\t\t\t\tmaxWidth: 1000,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\tchildren: title,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tdescription ? {\n\t\t\t\t\t\t\t\ttype: 'p',\n\t\t\t\t\t\t\t\tprops: {\n\t\t\t\t\t\t\t\t\tstyle: {\n\t\t\t\t\t\t\t\t\t\tfontSize: 28,\n\t\t\t\t\t\t\t\t\t\tfontWeight: 400,\n\t\t\t\t\t\t\t\t\t\tcolor: colors.accent,\n\t\t\t\t\t\t\t\t\t\tmarginTop: 28,\n\t\t\t\t\t\t\t\t\t\tmarginBottom: 0,\n\t\t\t\t\t\t\t\t\t\ttextAlign: 'center',\n\t\t\t\t\t\t\t\t\t\tlineHeight: 1.4,\n\t\t\t\t\t\t\t\t\t\tmaxWidth: 900,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\tchildren: description,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t} : null,\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ttype: 'p',\n\t\t\t\t\t\t\t\tprops: {\n\t\t\t\t\t\t\t\t\tstyle: {\n\t\t\t\t\t\t\t\t\t\tfontSize: 24,\n\t\t\t\t\t\t\t\t\t\tfontWeight: 400,\n\t\t\t\t\t\t\t\t\t\tcolor: colors.accent,\n\t\t\t\t\t\t\t\t\t\tmarginTop: 56,\n\t\t\t\t\t\t\t\t\t\tmarginBottom: 0,\n\t\t\t\t\t\t\t\t\t\ttextAlign: 'center',\n\t\t\t\t\t\t\t\t\t\topacity: 0.7,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\tchildren: siteName,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t].filter(Boolean),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t].filter(Boolean),\n\t\t},\n\t}\n}\n","/**\n * Profile OG template.\n * Centered layout.\n */\n\nimport type { OgTemplateProps } from '../types.js'\n\nexport function profileTemplate({\n\ttitle,\n\tdescription,\n\tsiteName,\n\timage,\n\tcolors,\n\tnoiseDataUrl,\n\twidth,\n\theight,\n}: OgTemplateProps) {\n\tconst contentChildren: unknown[] = []\n\n\tif (image) {\n\t\tcontentChildren.push({\n\t\t\ttype: 'img',\n\t\t\tprops: {\n\t\t\t\tsrc: image,\n\t\t\t\twidth: 120,\n\t\t\t\theight: 120,\n\t\t\t\tstyle: {\n\t\t\t\t\tborderRadius: '50%',\n\t\t\t\t\tmarginBottom: 32,\n\t\t\t\t\tobjectFit: 'cover',\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t}\n\n\tcontentChildren.push({\n\t\ttype: 'h1',\n\t\tprops: {\n\t\t\tstyle: {\n\t\t\t\tfontSize: 56,\n\t\t\t\tfontWeight: 700,\n\t\t\t\tcolor: colors.text,\n\t\t\t\tletterSpacing: '-0.02em',\n\t\t\t\tmargin: 0,\n\t\t\t\ttextAlign: 'center',\n\t\t\t\tlineHeight: 1.1,\n\t\t\t\tmaxWidth: 900,\n\t\t\t},\n\t\t\tchildren: title,\n\t\t},\n\t})\n\n\tif (description) {\n\t\tcontentChildren.push({\n\t\t\ttype: 'p',\n\t\t\tprops: {\n\t\t\t\tstyle: {\n\t\t\t\t\tfontSize: 26,\n\t\t\t\t\tfontWeight: 400,\n\t\t\t\t\tcolor: colors.accent,\n\t\t\t\t\tmarginTop: 20,\n\t\t\t\t\tmarginBottom: 0,\n\t\t\t\t\ttextAlign: 'center',\n\t\t\t\t\tlineHeight: 1.4,\n\t\t\t\t\tmaxWidth: 700,\n\t\t\t\t},\n\t\t\t\tchildren: description,\n\t\t\t},\n\t\t})\n\t}\n\n\tcontentChildren.push({\n\t\ttype: 'p',\n\t\tprops: {\n\t\t\tstyle: {\n\t\t\t\tfontSize: 24,\n\t\t\t\tfontWeight: 400,\n\t\t\t\tcolor: colors.accent,\n\t\t\t\tmarginTop: 48,\n\t\t\t\tmarginBottom: 0,\n\t\t\t\ttextAlign: 'center',\n\t\t\t\topacity: 0.7,\n\t\t\t},\n\t\t\tchildren: siteName,\n\t\t},\n\t})\n\n\treturn {\n\t\ttype: 'div',\n\t\tprops: {\n\t\t\tstyle: {\n\t\t\t\tposition: 'relative',\n\t\t\t\tdisplay: 'flex',\n\t\t\t\tflexDirection: 'column',\n\t\t\t\talignItems: 'center',\n\t\t\t\tjustifyContent: 'center',\n\t\t\t\twidth,\n\t\t\t\theight,\n\t\t\t\tbackgroundColor: colors.background,\n\t\t\t},\n\t\t\tchildren: [\n\t\t\t\tnoiseDataUrl ? {\n\t\t\t\t\ttype: 'img',\n\t\t\t\t\tprops: {\n\t\t\t\t\t\tsrc: noiseDataUrl,\n\t\t\t\t\t\twidth,\n\t\t\t\t\t\theight,\n\t\t\t\t\t\tstyle: {\n\t\t\t\t\t\t\tposition: 'absolute',\n\t\t\t\t\t\t\ttop: 0,\n\t\t\t\t\t\t\tleft: 0,\n\t\t\t\t\t\t\twidth,\n\t\t\t\t\t\t\theight,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t} : null,\n\t\t\t\t{\n\t\t\t\t\ttype: 'div',\n\t\t\t\t\tprops: {\n\t\t\t\t\t\tstyle: {\n\t\t\t\t\t\t\tposition: 'relative',\n\t\t\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t\t\t\tflexDirection: 'column',\n\t\t\t\t\t\t\talignItems: 'center',\n\t\t\t\t\t\t\tjustifyContent: 'center',\n\t\t\t\t\t\t\twidth,\n\t\t\t\t\t\t\theight,\n\t\t\t\t\t\t\tpadding: '0 60px',\n\t\t\t\t\t\t},\n\t\t\t\t\t\tchildren: contentChildren,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t].filter(Boolean),\n\t\t},\n\t}\n}\n","/**\n * Default OG template.\n * Clean, centered layout.\n */\n\nimport type { OgTemplateProps } from '../types.js'\n\nexport function defaultTemplate({\n\ttitle,\n\tdescription,\n\tsiteName,\n\tcolors,\n\tnoiseDataUrl,\n\twidth,\n\theight,\n}: OgTemplateProps) {\n\treturn {\n\t\ttype: 'div',\n\t\tprops: {\n\t\t\tstyle: {\n\t\t\t\tposition: 'relative',\n\t\t\t\tdisplay: 'flex',\n\t\t\t\tflexDirection: 'column',\n\t\t\t\talignItems: 'center',\n\t\t\t\tjustifyContent: 'center',\n\t\t\t\twidth,\n\t\t\t\theight,\n\t\t\t\tbackgroundColor: colors.background,\n\t\t\t},\n\t\t\tchildren: [\n\t\t\t\tnoiseDataUrl ? {\n\t\t\t\t\ttype: 'img',\n\t\t\t\t\tprops: {\n\t\t\t\t\t\tsrc: noiseDataUrl,\n\t\t\t\t\t\twidth,\n\t\t\t\t\t\theight,\n\t\t\t\t\t\tstyle: {\n\t\t\t\t\t\t\tposition: 'absolute',\n\t\t\t\t\t\t\ttop: 0,\n\t\t\t\t\t\t\tleft: 0,\n\t\t\t\t\t\t\twidth,\n\t\t\t\t\t\t\theight,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t} : null,\n\t\t\t\t{\n\t\t\t\t\ttype: 'div',\n\t\t\t\t\tprops: {\n\t\t\t\t\t\tstyle: {\n\t\t\t\t\t\t\tposition: 'relative',\n\t\t\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t\t\t\tflexDirection: 'column',\n\t\t\t\t\t\t\talignItems: 'center',\n\t\t\t\t\t\t\tjustifyContent: 'center',\n\t\t\t\t\t\t\twidth,\n\t\t\t\t\t\t\theight,\n\t\t\t\t\t\t\tpadding: '0 60px',\n\t\t\t\t\t\t},\n\t\t\t\t\t\tchildren: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ttype: 'h1',\n\t\t\t\t\t\t\t\tprops: {\n\t\t\t\t\t\t\t\t\tstyle: {\n\t\t\t\t\t\t\t\t\t\tfontSize: 72,\n\t\t\t\t\t\t\t\t\t\tfontWeight: 700,\n\t\t\t\t\t\t\t\t\t\tcolor: colors.text,\n\t\t\t\t\t\t\t\t\t\tletterSpacing: '-0.02em',\n\t\t\t\t\t\t\t\t\t\tmargin: 0,\n\t\t\t\t\t\t\t\t\t\ttextAlign: 'center',\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\tchildren: title,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tdescription ? {\n\t\t\t\t\t\t\t\ttype: 'p',\n\t\t\t\t\t\t\t\tprops: {\n\t\t\t\t\t\t\t\t\tstyle: {\n\t\t\t\t\t\t\t\t\t\tfontSize: 32,\n\t\t\t\t\t\t\t\t\t\tfontWeight: 400,\n\t\t\t\t\t\t\t\t\t\tcolor: colors.accent,\n\t\t\t\t\t\t\t\t\t\tmarginTop: 24,\n\t\t\t\t\t\t\t\t\t\tmarginBottom: 0,\n\t\t\t\t\t\t\t\t\t\ttextAlign: 'center',\n\t\t\t\t\t\t\t\t\t\tmaxWidth: 900,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\tchildren: description,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t} : null,\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ttype: 'p',\n\t\t\t\t\t\t\t\tprops: {\n\t\t\t\t\t\t\t\t\tstyle: {\n\t\t\t\t\t\t\t\t\t\tfontSize: 28,\n\t\t\t\t\t\t\t\t\t\tfontWeight: 400,\n\t\t\t\t\t\t\t\t\t\tcolor: colors.accent,\n\t\t\t\t\t\t\t\t\t\tmarginTop: 64,\n\t\t\t\t\t\t\t\t\t\tmarginBottom: 0,\n\t\t\t\t\t\t\t\t\t\ttextAlign: 'center',\n\t\t\t\t\t\t\t\t\t\topacity: 0.7,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\tchildren: siteName,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t].filter(Boolean),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t].filter(Boolean),\n\t\t},\n\t}\n}\n","/**\n * Built-in OG templates.\n */\n\nexport { blogTemplate } from './blog.js'\nexport { profileTemplate } from './profile.js'\nexport { defaultTemplate } from './default.js'\n\nimport { blogTemplate } from './blog.js'\nimport { profileTemplate } from './profile.js'\nimport { defaultTemplate } from './default.js'\nimport type { OgTemplate } from '../types.js'\n\nexport const templates = {\n\tblog: blogTemplate,\n\tprofile: profileTemplate,\n\tdefault: defaultTemplate,\n} as const\n\nexport type TemplateName = keyof typeof templates\n\nexport function getTemplate(name: TemplateName | OgTemplate): OgTemplate {\n\tif (typeof name === 'function') {\n\t\treturn name\n\t}\n\treturn templates[name]\n}\n"],"mappings":";AAOO,SAAS,aAAa;AAAA,EAC5B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACD,GAAoB;AACnB,SAAO;AAAA,IACN,MAAM;AAAA,IACN,OAAO;AAAA,MACN,OAAO;AAAA,QACN,UAAU;AAAA,QACV,SAAS;AAAA,QACT,eAAe;AAAA,QACf,YAAY;AAAA,QACZ,gBAAgB;AAAA,QAChB;AAAA,QACA;AAAA,QACA,iBAAiB,OAAO;AAAA,MACzB;AAAA,MACA,UAAU;AAAA,QACT,eAAe;AAAA,UACd,MAAM;AAAA,UACN,OAAO;AAAA,YACN,KAAK;AAAA,YACL;AAAA,YACA;AAAA,YACA,OAAO;AAAA,cACN,UAAU;AAAA,cACV,KAAK;AAAA,cACL,MAAM;AAAA,cACN;AAAA,cACA;AAAA,YACD;AAAA,UACD;AAAA,QACD,IAAI;AAAA,QACJ;AAAA,UACC,MAAM;AAAA,UACN,OAAO;AAAA,YACN,OAAO;AAAA,cACN,UAAU;AAAA,cACV,SAAS;AAAA,cACT,eAAe;AAAA,cACf,YAAY;AAAA,cACZ,gBAAgB;AAAA,cAChB;AAAA,cACA;AAAA,cACA,SAAS;AAAA,YACV;AAAA,YACA,UAAU;AAAA,cACT;AAAA,gBACC,MAAM;AAAA,gBACN,OAAO;AAAA,kBACN,OAAO;AAAA,oBACN,UAAU;AAAA,oBACV,YAAY;AAAA,oBACZ,OAAO,OAAO;AAAA,oBACd,eAAe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