@thanh01.pmt/presentation-kit 0.2.0 → 0.2.2

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,756 @@
1
+ 'use strict';
2
+
3
+ var yaml = require('js-yaml');
4
+
5
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
6
+
7
+ var yaml__default = /*#__PURE__*/_interopDefault(yaml);
8
+
9
+ // src/core/layout/serializer.ts
10
+ function serializeLayoutToComment(layout) {
11
+ if (!layout.boxes || layout.boxes.length === 0) return "";
12
+ const cleanData = {
13
+ boxes: layout.boxes.map((box) => {
14
+ const b = {
15
+ id: box.id,
16
+ target: box.target || `h1`,
17
+ pos: [
18
+ Math.round(box.pos[0]),
19
+ Math.round(box.pos[1]),
20
+ Math.round(box.pos[2]),
21
+ Math.round(box.pos[3])
22
+ ]
23
+ };
24
+ if (box.fontSize) b.fontSize = box.fontSize;
25
+ if (box.color) b.color = box.color;
26
+ if (box.textAlign) b.textAlign = box.textAlign;
27
+ if (box.style) b.style = box.style;
28
+ return b;
29
+ })
30
+ };
31
+ const yamlStr = yaml__default.default.dump(cleanData, {
32
+ indent: 2,
33
+ lineWidth: -1,
34
+ noRefs: true
35
+ }).trim();
36
+ return `<!-- layout:
37
+ ${yamlStr.split("\n").join("\n ")}
38
+ -->`;
39
+ }
40
+ function splitMarkdownSlides(markdown) {
41
+ const lines = markdown.split("\n");
42
+ let frontmatter = null;
43
+ const slideBuffers = [];
44
+ let currentBuffer = [];
45
+ let inCodeFence = false;
46
+ let lineIdx = 0;
47
+ if (lines.length > 0 && lines[0].trim() === "---") {
48
+ const fmBuffer = [lines[0]];
49
+ lineIdx = 1;
50
+ while (lineIdx < lines.length) {
51
+ const line = lines[lineIdx];
52
+ fmBuffer.push(line);
53
+ if (line.trim() === "---") {
54
+ frontmatter = fmBuffer.join("\n");
55
+ lineIdx++;
56
+ break;
57
+ }
58
+ lineIdx++;
59
+ }
60
+ }
61
+ for (let i = lineIdx; i < lines.length; i++) {
62
+ const line = lines[i];
63
+ if (/^```/.test(line.trim())) {
64
+ inCodeFence = !inCodeFence;
65
+ currentBuffer.push(line);
66
+ continue;
67
+ }
68
+ if (!inCodeFence && line.trim() === "---") {
69
+ slideBuffers.push(currentBuffer);
70
+ currentBuffer = [];
71
+ continue;
72
+ }
73
+ currentBuffer.push(line);
74
+ }
75
+ slideBuffers.push(currentBuffer);
76
+ const slides = slideBuffers.map((b) => b.join("\n"));
77
+ return { frontmatter, slides };
78
+ }
79
+ function updateSlideLayoutInMarkdown(markdown, slideIndex, layout) {
80
+ const { frontmatter, slides } = splitMarkdownSlides(markdown);
81
+ if (slideIndex < 0 || slideIndex >= slides.length) {
82
+ return markdown;
83
+ }
84
+ let slideContent = slides[slideIndex];
85
+ const layoutCommentRegex = /<!--\s*layout:\s*[\s\S]*?-->/i;
86
+ const newComment = layout && layout.boxes && layout.boxes.length > 0 ? serializeLayoutToComment(layout) : "";
87
+ if (layoutCommentRegex.test(slideContent)) {
88
+ if (newComment) {
89
+ slideContent = slideContent.replace(layoutCommentRegex, newComment);
90
+ } else {
91
+ slideContent = slideContent.replace(layoutCommentRegex, "").trim();
92
+ }
93
+ } else if (newComment) {
94
+ const trimmed = slideContent.trimStart();
95
+ slideContent = `${newComment}
96
+
97
+ ${trimmed}`;
98
+ }
99
+ slides[slideIndex] = slideContent;
100
+ const joinedSlides = slides.join("\n---\n");
101
+ if (frontmatter) {
102
+ return `${frontmatter}
103
+
104
+ ${joinedSlides}`;
105
+ }
106
+ return joinedSlides;
107
+ }
108
+
109
+ // src/core/layout/presets.ts
110
+ var SLIDE_LAYOUT_PRESETS = [
111
+ {
112
+ id: "title-hero",
113
+ name: "B\xECa & Gi\u1EDBi thi\u1EC7u (Title Cover)",
114
+ category: "cover",
115
+ description: "Slide b\xECa m\u1EDF \u0111\u1EA7u \u1EA5n t\u01B0\u1EE3ng v\u1EDBi ti\xEAu \u0111\u1EC1 l\u1EDBn, ph\u1EE5 \u0111\u1EC1 v\xE0 th\xF4ng tin gi\u1EA3ng vi\xEAn.",
116
+ layout: {
117
+ boxes: [
118
+ {
119
+ id: "title",
120
+ target: "h1",
121
+ pos: [100, 180, 1080, 140],
122
+ fontSize: "3rem",
123
+ textAlign: "center"
124
+ },
125
+ {
126
+ id: "subtitle",
127
+ target: "h3",
128
+ pos: [100, 350, 1080, 70],
129
+ fontSize: "1.5rem",
130
+ textAlign: "center"
131
+ },
132
+ {
133
+ id: "speaker-meta",
134
+ target: "p",
135
+ pos: [100, 460, 1080, 80],
136
+ fontSize: "1.1rem",
137
+ textAlign: "center"
138
+ }
139
+ ]
140
+ },
141
+ markdownSnippet: `<!-- layout:
142
+ boxes:
143
+ - id: title
144
+ target: h1
145
+ pos: [100, 180, 1080, 140]
146
+ fontSize: 3rem
147
+ textAlign: center
148
+ - id: subtitle
149
+ target: h3
150
+ pos: [100, 350, 1080, 70]
151
+ fontSize: 1.5rem
152
+ textAlign: center
153
+ - id: speaker-meta
154
+ target: p
155
+ pos: [100, 460, 1080, 80]
156
+ fontSize: 1.1rem
157
+ textAlign: center
158
+ -->
159
+
160
+ # \u{1F680} Ti\xEAu \u0110\u1EC1 B\xE0i Gi\u1EA3ng Ch\xEDnh
161
+ ### Ph\u1EE5 \u0111\u1EC1 ng\u1EAFn g\u1ECDn, truy\u1EC1n c\u1EA3m h\u1EE9ng v\xE0 \u0111\u1ECBnh v\u1ECB m\u1EE5c ti\xEAu
162
+
163
+ **Gi\u1EA3ng vi\xEAn:** Th\u1EA7y Nguy\u1EC5n V\u0103n A | **Th\u1EDDi l\u01B0\u1EE3ng:** 45 ph\xFAt | **C\u1EA5p \u0111\u1ED9:** Trung c\u1EA5p
164
+
165
+ <!--
166
+ Presenter Notes:
167
+ - Ch\xE0o m\u1EEBng h\u1ECDc vi\xEAn, gi\u1EDBi thi\u1EC7u m\u1EE5c ti\xEAu b\xE0i h\u1ECDc h\xF4m nay.
168
+ - Kh\u01A1i g\u1EE3i s\u1EF1 t\xF2 m\xF2 b\u1EB1ng c\xE2u h\u1ECFi m\u1EDF \u0111\u1EA7u v\u1EC1 b\xE0i to\xE1n th\u1EF1c t\u1EBF.
169
+ -->`
170
+ },
171
+ {
172
+ id: "two-column-split",
173
+ name: "So S\xE1nh 2 C\u1ED9t (2-Column Comparison)",
174
+ category: "split",
175
+ description: "B\u1ED1 c\u1EE5c chia \u0111\xF4i m\xE0n h\xECnh \u0111\u1EC3 so s\xE1nh ph\u01B0\u01A1ng ph\xE1p c\u0169 vs m\u1EDBi, l\xFD thuy\u1EBFt vs th\u1EF1c t\u1EBF.",
176
+ layout: {
177
+ boxes: [
178
+ {
179
+ id: "heading",
180
+ target: "h2",
181
+ pos: [80, 50, 1120, 70],
182
+ fontSize: "2rem"
183
+ },
184
+ {
185
+ id: "col-left",
186
+ target: ".columns-2 > div:first-child",
187
+ pos: [80, 150, 530, 510]
188
+ },
189
+ {
190
+ id: "col-right",
191
+ target: ".columns-2 > div:last-child",
192
+ pos: [670, 150, 530, 510]
193
+ }
194
+ ]
195
+ },
196
+ markdownSnippet: `<!-- layout:
197
+ boxes:
198
+ - id: heading
199
+ target: h2
200
+ pos: [80, 50, 1120, 70]
201
+ fontSize: 2rem
202
+ - id: col-left
203
+ target: '.columns-2 > div:first-child'
204
+ pos: [80, 150, 530, 510]
205
+ - id: col-right
206
+ target: '.columns-2 > div:last-child'
207
+ pos: [670, 150, 530, 510]
208
+ -->
209
+
210
+ ## \u2696\uFE0F So S\xE1nh Kh\xE1i Ni\u1EC7m & Gi\u1EA3i Ph\xE1p
211
+
212
+ <div class="columns-2">
213
+ <div>
214
+
215
+ ### \u{1F534} C\xE1ch Ti\u1EBFp C\u1EADn C\u0169
216
+ - X\u1EED l\xFD th\u1EE7 c\xF4ng, t\u1ED1n nhi\u1EC1u nh\xE2n l\u1EF1c
217
+ - D\u1EC5 ph\xE1t sinh sai s\u1ED1 do thao t\xE1c l\u1EB7p l\u1EA1i
218
+ - Kh\xF3 m\u1EDF r\u1ED9ng khi t\u1EA3i t\u0103ng \u0111\u1ED9t bi\u1EBFn
219
+
220
+ </div>
221
+ <div>
222
+
223
+ ### \u{1F7E2} Gi\u1EA3i Ph\xE1p T\u1ED1i \u01AFu M\u1EDBi
224
+ - T\u1EF1 \u0111\u1ED9ng h\xF3a ho\xE0n to\xE0n lu\u1ED3ng x\u1EED l\xFD
225
+ - Gi\xE1m s\xE1t tr\u1EA1ng th\xE1i th\u1EDDi gian th\u1EF1c
226
+ - Kh\u1EA3 n\u0103ng co gi\xE3n linh ho\u1EA1t theo nhu c\u1EA7u
227
+
228
+ </div>
229
+ </div>
230
+
231
+ <!--
232
+ Presenter Notes:
233
+ - Nh\u1EA5n m\u1EA1nh \u0111i\u1EC3m ngh\u1EBDn l\u1EDBn nh\u1EA5t \u1EDF c\u1ED9t b\xEAn tr\xE1i.
234
+ - D\u1EABn ch\u1EE9ng s\u1ED1 li\u1EC7u th\u1EF1c t\u1EBF ch\u1EE9ng minh t\xEDnh hi\u1EC7u qu\u1EA3 c\u1EE7a c\u1ED9t ph\u1EA3i.
235
+ -->`
236
+ },
237
+ {
238
+ id: "code-explainer",
239
+ name: "Gi\u1EA3i Th\xEDch Code (Code Walkthrough)",
240
+ category: "code",
241
+ description: "C\u1ED9t tr\xE1i hi\u1EC3n th\u1ECB code snippet c\xF3 \u0111\xE1nh s\u1ED1, c\u1ED9t ph\u1EA3i gi\u1EA3i th\xEDch t\u1EEBng b\u01B0\u1EDBc ho\u1EA1t \u0111\u1ED9ng.",
242
+ layout: {
243
+ boxes: [
244
+ {
245
+ id: "heading",
246
+ target: "h2",
247
+ pos: [80, 45, 1120, 65],
248
+ fontSize: "1.9rem"
249
+ },
250
+ {
251
+ id: "code-box",
252
+ target: ".columns-2 > div:first-child",
253
+ pos: [80, 135, 630, 535]
254
+ },
255
+ {
256
+ id: "notes-box",
257
+ target: ".columns-2 > div:last-child",
258
+ pos: [740, 135, 460, 535]
259
+ }
260
+ ]
261
+ },
262
+ markdownSnippet: `<!-- layout:
263
+ boxes:
264
+ - id: heading
265
+ target: h2
266
+ pos: [80, 45, 1120, 65]
267
+ fontSize: 1.9rem
268
+ - id: code-box
269
+ target: '.columns-2 > div:first-child'
270
+ pos: [80, 135, 630, 535]
271
+ - id: notes-box
272
+ target: '.columns-2 > div:last-child'
273
+ pos: [740, 135, 460, 535]
274
+ -->
275
+
276
+ ## \u{1F4BB} Ph\xE2n T\xEDch C\u1EA5u Tr\xFAc M\xE3 Ngu\u1ED3n
277
+
278
+ <div class="columns-2">
279
+ <div>
280
+
281
+ \`\`\`ts
282
+ // Kh\u1EDFi t\u1EA1o quy tr\xECnh ki\u1EC3m tra d\u1EEF li\u1EC7u
283
+ export async function processPayment(order: Order) {
284
+ const isValid = await validateOrder(order);
285
+ if (!isValid) throw new Error("Invalid");
286
+
287
+ const receipt = await chargeCard(order);
288
+ return sendConfirmation(receipt);
289
+ }
290
+ \`\`\`
291
+
292
+ </div>
293
+ <div>
294
+
295
+ ### \u{1F50D} 3 \u0110i\u1EC3m C\u1EA7n Ch\xFA \xDD:
296
+ 1. **Ki\u1EC3m tra s\u1EDBm (Guard Clause):** Ki\u1EC3m tra t\xEDnh h\u1EE3p l\u1EC7 ngay d\xF2ng 3 \u0111\u1EC3 tr\xE1nh g\u1ECDi h\xE0m t\u1ED1n chi ph\xED.
297
+ 2. **B\u1EA5t \u0111\u1ED3ng b\u1ED9 (Async/Await):** \u0110\u1EA3m b\u1EA3o th\u1EE9 t\u1EF1 g\u1ECDi API t\xE0i ch\xEDnh chu\u1EA9n x\xE1c.
298
+ 3. **Ph\u1EA3n h\u1ED3i ng\u01B0\u1EDDi d\xF9ng:** Tr\u1EA3 v\u1EC1 bi\xEAn lai ho\xE0n ch\u1EC9nh sau khi giao d\u1ECBch th\xE0nh c\xF4ng.
299
+
300
+ </div>
301
+ </div>
302
+
303
+ <!--
304
+ Presenter Notes:
305
+ - Y\xEAu c\u1EA7u h\u1ECDc vi\xEAn x\xE1c \u0111\u1ECBnh d\xF2ng code n\xE0o l\xE0 r\u1EE7i ro nh\u1EA5t n\u1EBFu k\u1EBFt n\u1ED1i m\u1EA1ng b\u1ECB r\u1EDBt.
306
+ - Nh\u1EAFc l\u1EA1i nguy\xEAn t\u1EAFc Fail-Fast trong l\u1EADp tr\xECnh ph\xF2ng th\u1EE7.
307
+ -->`
308
+ },
309
+ {
310
+ id: "metrics-3-card",
311
+ name: "L\u01B0\u1EDBi 3 Ch\u1EC9 S\u1ED1 (3-Metric Dashboard)",
312
+ category: "metrics",
313
+ description: "Hi\u1EC3n th\u1ECB 3 ch\u1EC9 s\u1ED1 quan tr\u1ECDng (KPIs, Benchmarks, Impact) d\u1EA1ng card n\u1ED5i b\u1EADt.",
314
+ layout: {
315
+ boxes: [
316
+ {
317
+ id: "heading",
318
+ target: "h2",
319
+ pos: [80, 50, 1120, 70],
320
+ fontSize: "2rem",
321
+ textAlign: "center"
322
+ },
323
+ {
324
+ id: "metric-1",
325
+ target: ".columns-3 > div:nth-child(1)",
326
+ pos: [80, 165, 340, 485]
327
+ },
328
+ {
329
+ id: "metric-2",
330
+ target: ".columns-3 > div:nth-child(2)",
331
+ pos: [470, 165, 340, 485]
332
+ },
333
+ {
334
+ id: "metric-3",
335
+ target: ".columns-3 > div:nth-child(3)",
336
+ pos: [860, 165, 340, 485]
337
+ }
338
+ ]
339
+ },
340
+ markdownSnippet: `<!-- layout:
341
+ boxes:
342
+ - id: heading
343
+ target: h2
344
+ pos: [80, 50, 1120, 70]
345
+ fontSize: 2rem
346
+ textAlign: center
347
+ - id: metric-1
348
+ target: '.columns-3 > div:nth-child(1)'
349
+ pos: [80, 165, 340, 485]
350
+ - id: metric-2
351
+ target: '.columns-3 > div:nth-child(2)'
352
+ pos: [470, 165, 340, 485]
353
+ - id: metric-3
354
+ target: '.columns-3 > div:nth-child(3)'
355
+ pos: [860, 165, 340, 485]
356
+ -->
357
+
358
+ ## \u{1F4CA} 3 Ch\u1EC9 S\u1ED1 Th\xE0nh C\xF4ng C\u1EE7a D\u1EF1 \xC1n
359
+
360
+ <div class="columns-3">
361
+ <div>
362
+
363
+ # \u26A1 99.9%
364
+ ### \u0110\u1ED9 S\u1EB5n S\xE0ng (Uptime)
365
+ H\u1EC7 th\u1ED1ng v\u1EADn h\xE0nh li\xEAn t\u1EE5c 24/7 v\u1EDBi kh\u1EA3 n\u0103ng t\u1EF1 ph\u1EE5c h\u1ED3i l\u1ED7i t\u1EE9c th\xEC.
366
+
367
+ </div>
368
+ <div>
369
+
370
+ # \u{1F680} 10x
371
+ ### T\u1ED1c \u0110\u1ED9 X\u1EED L\xFD
372
+ R\xFAt ng\u1EAFn th\u1EDDi gian bi\xEAn d\u1ECBch v\xE0 ph\u1EA3n h\u1ED3i ng\u01B0\u1EDDi d\xF9ng t\u1EEB gi\xE2y xu\u1ED1ng mili-gi\xE2y.
373
+
374
+ </div>
375
+ <div>
376
+
377
+ # \u{1F6E1}\uFE0F 0
378
+ ### L\u1ED7 H\u1ED5ng B\u1EA3o M\u1EADt
379
+ \u0110\u1EA1t chu\u1EA9n \u0111\xE1nh gi\xE1 an to\xE0n OWASP v\xE0 m\xE3 h\xF3a d\u1EEF li\u1EC7u \u0111\u1EA7u cu\u1ED1i.
380
+
381
+ </div>
382
+ </div>
383
+
384
+ <!--
385
+ Presenter Notes:
386
+ - Tr\xECnh b\xE0y l\u1EA7n l\u01B0\u1EE3t 3 m\u1EE5c ti\xEAu \u0111o l\u01B0\u1EDDng \u0111\u01B0\u1EE3c c\u1EE7a h\u1EC7 th\u1ED1ng.
387
+ - Nh\u1EA5n m\u1EA1nh ch\u1EC9 s\u1ED1 th\u1EE9 2 l\xE0 tr\u1ECDng t\xE2m k\u1EF9 thu\u1EADt c\u1EE7a b\xE0i h\u1ECDc h\xF4m nay.
388
+ -->`
389
+ },
390
+ {
391
+ id: "process-flow",
392
+ name: "S\u01A1 \u0110\u1ED3 Quy Tr\xECnh (Process / Flowchart)",
393
+ category: "diagram",
394
+ description: "Quy tr\xECnh nhi\u1EC1u b\u01B0\u1EDBc v\u1EDBi s\u01A1 \u0111\u1ED3 Mermaid tr\u1EF1c quan k\xE8m ghi ch\xFA t\xF3m t\u1EAFt.",
395
+ layout: {
396
+ boxes: [
397
+ {
398
+ id: "heading",
399
+ target: "h2",
400
+ pos: [80, 45, 1120, 65],
401
+ fontSize: "1.9rem"
402
+ },
403
+ {
404
+ id: "diagram-box",
405
+ target: "pre.mermaid, .mermaid",
406
+ pos: [80, 130, 1120, 310]
407
+ },
408
+ {
409
+ id: "summary-box",
410
+ target: "ul, p",
411
+ pos: [80, 465, 1120, 205]
412
+ }
413
+ ]
414
+ },
415
+ markdownSnippet: `<!-- layout:
416
+ boxes:
417
+ - id: heading
418
+ target: h2
419
+ pos: [80, 45, 1120, 65]
420
+ fontSize: 1.9rem
421
+ - id: diagram-box
422
+ target: 'pre.mermaid, .mermaid'
423
+ pos: [80, 130, 1120, 310]
424
+ - id: summary-box
425
+ target: 'ul, p'
426
+ pos: [80, 465, 1120, 205]
427
+ -->
428
+
429
+ ## \u{1F504} Ki\u1EBFn Tr\xFAc Lu\u1ED3ng D\u1EEF Li\u1EC7u 4 B\u01B0\u1EDBc
430
+
431
+ \`\`\`mermaid
432
+ graph LR
433
+ A[1. Client Request] --> B[2. API Gateway]
434
+ B --> C[3. Auth Service]
435
+ C --> D[4. Database Cluster]
436
+ style A fill:#0284c7,stroke:#38bdf8,stroke-width:2px,color:#fff
437
+ style B fill:#1e293b,stroke:#64748b,stroke-width:2px,color:#fff
438
+ style C fill:#059669,stroke:#34d399,stroke-width:2px,color:#fff
439
+ style D fill:#7c3aed,stroke:#a78bfa,stroke-width:2px,color:#fff
440
+ \`\`\`
441
+
442
+ - **Giai \u0111o\u1EA1n 1 & 2:** Ti\u1EBFp nh\u1EADn y\xEAu c\u1EA7u t\u1EEB client, \u0111i\u1EC1u h\u01B0\u1EDBng t\u1EA3i v\xE0 gi\u1EDBi h\u1EA1n t\u1EA7n su\u1EA5t (Rate Limiting).
443
+ - **Giai \u0111o\u1EA1n 3 & 4:** X\xE1c th\u1EF1c token JWT ph\xE2n quy\u1EC1n tr\u01B0\u1EDBc khi truy v\u1EA5n d\u1EEF li\u1EC7u t\u1EEB DB Cluster.
444
+
445
+ <!--
446
+ Presenter Notes:
447
+ - Tr\u1ECF tr\u1EF1c ti\u1EBFp v\xE0o t\u1EEBng node c\u1EE7a s\u01A1 \u0111\u1ED3 Mermaid khi thuy\u1EBFt tr\xECnh.
448
+ - \u0110\u1EB7t c\xE2u h\u1ECFi: "N\u1EBFu b\u01B0\u1EDBc 3 th\u1EA5t b\u1EA1i th\xEC b\u01B0\u1EDBc 4 c\xF3 \u0111\u01B0\u1EE3c g\u1ECDi kh\xF4ng?"
449
+ -->`
450
+ },
451
+ {
452
+ id: "quote-highlight",
453
+ name: "Th\xF4ng \u0110i\u1EC7p Then Ch\u1ED1t (Quote / Highlight)",
454
+ category: "quote",
455
+ description: "Tr\xEDch d\u1EABn danh ng\xF4n ho\u1EB7c nguy\xEAn t\u1EAFc v\xE0ng c\u1EA7n ghi nh\u1EDB s\xE2u s\u1EAFc.",
456
+ layout: {
457
+ boxes: [
458
+ {
459
+ id: "heading",
460
+ target: "h2",
461
+ pos: [100, 100, 1080, 80],
462
+ fontSize: "2.2rem",
463
+ textAlign: "center"
464
+ },
465
+ {
466
+ id: "quote-box",
467
+ target: "blockquote",
468
+ pos: [140, 230, 1e3, 360],
469
+ fontSize: "1.4rem"
470
+ }
471
+ ]
472
+ },
473
+ markdownSnippet: `<!-- layout:
474
+ boxes:
475
+ - id: heading
476
+ target: h2
477
+ pos: [100, 100, 1080, 80]
478
+ fontSize: 2.2rem
479
+ textAlign: center
480
+ - id: quote-box
481
+ target: blockquote
482
+ pos: [140, 230, 1000, 360]
483
+ fontSize: 1.4rem
484
+ -->
485
+
486
+ ## \u{1F4A1} Nguy\xEAn T\u1EAFc Thi\u1EBFt K\u1EBF C\u1ED1t L\xF5i
487
+
488
+ > "S\u1EF1 \u0111\u01A1n gi\u1EA3n l\xE0 \u0111i\u1EC1u ki\u1EC7n ti\xEAn quy\u1EBFt cho \u0111\u1ED9 tin c\u1EADy. M\u1ED9t ki\u1EBFn tr\xFAc t\u1ED1t l\xE0 khi b\u1EA5t k\u1EF3 l\u1EADp tr\xECnh vi\xEAn m\u1EDBi n\xE0o c\u0169ng c\xF3 th\u1EC3 \u0111\u1ECDc hi\u1EC3u lu\u1ED3ng ho\u1EA1t \u0111\u1ED9ng ch\u1EC9 sau 15 ph\xFAt."
489
+ >
490
+ > \u2014 **Edsger W. Dijkstra**
491
+
492
+ <!--
493
+ Presenter Notes:
494
+ - D\u1EEBng l\u1EA1i 5 gi\xE2y im l\u1EB7ng \u0111\u1EC3 c\u1EA3 l\u1EDBp c\xF9ng suy ng\u1EABm v\u1EC1 th\xF4ng \u0111i\u1EC7p.
495
+ - Y\xEAu c\u1EA7u m\u1ED9t h\u1ECDc vi\xEAn chia s\u1EBB suy ngh\u0129 v\u1EC1 c\xE1ch \xE1p d\u1EE5ng nguy\xEAn t\u1EAFc n\xE0y v\xE0o b\xE0i t\u1EADp l\u1EDBn.
496
+ -->`
497
+ },
498
+ {
499
+ id: "quiz-checkpoint",
500
+ name: "Tr\u1EAFc Nghi\u1EC7m T\u01B0\u01A1ng T\xE1c (Quiz Checkpoint)",
501
+ category: "assessment",
502
+ description: "C\xE2u h\u1ECFi t\u01B0\u01A1ng t\xE1c Formative Checkpoint k\xE8m c\xE1c l\u1EF1a ch\u1ECDn A/B/C/D \u0111\u1EC3 l\u1EDBp b\xECnh ch\u1ECDn.",
503
+ layout: {
504
+ boxes: [
505
+ {
506
+ id: "heading",
507
+ target: "h2",
508
+ pos: [80, 45, 1120, 65],
509
+ fontSize: "1.9rem"
510
+ },
511
+ {
512
+ id: "question-callout",
513
+ target: "blockquote",
514
+ pos: [80, 130, 1120, 110],
515
+ fontSize: "1.2rem"
516
+ },
517
+ {
518
+ id: "options-list",
519
+ target: "ul",
520
+ pos: [80, 260, 1120, 390],
521
+ fontSize: "1.15rem"
522
+ }
523
+ ]
524
+ },
525
+ markdownSnippet: `<!-- layout:
526
+ boxes:
527
+ - id: heading
528
+ target: h2
529
+ pos: [80, 45, 1120, 65]
530
+ fontSize: 1.9rem
531
+ - id: question-callout
532
+ target: blockquote
533
+ pos: [80, 130, 1120, 110]
534
+ fontSize: 1.2rem
535
+ - id: options-list
536
+ target: ul
537
+ pos: [80, 260, 1120, 390]
538
+ fontSize: 1.15rem
539
+ -->
540
+
541
+ ## \u{1F3AF} Ki\u1EC3m Tra Nhanh: B\u1EA1n \u0110\xE3 Hi\u1EC3u \u0110\xFAng?
542
+
543
+ > **C\xE2u h\u1ECFi:** Trong ki\u1EBFn tr\xFAc Microservices, c\u01A1 ch\u1EBF n\xE0o gi\xFAp \u0111\u1EA3m b\u1EA3o tin nh\u1EAFn kh\xF4ng b\u1ECB th\u1EA5t l\u1EA1c khi d\u1ECBch v\u1EE5 nh\u1EADn g\u1EB7p s\u1EF1 c\u1ED1 t\u1EA1m th\u1EDDi?
544
+
545
+ - **A.** G\u1ECDi API HTTP tr\u1EF1c ti\u1EBFp v\u1EDBi timeout ng\u1EAFn
546
+ - **B.** S\u1EED d\u1EE5ng Message Queue (H\xE0ng \u0111\u1EE3i tin nh\u1EAFn) c\xF3 c\u01A1 ch\u1EBF Retry & DLQ
547
+ - **C.** L\u01B0u t\u1EA1m v\xE0o b\u1ED9 nh\u1EDB RAM c\u1EE7a m\xE1y kh\xE1ch (Client In-Memory Storage)
548
+ - **D.** B\u1ECF qua tin nh\u1EAFn b\u1ECB l\u1ED7i v\xE0 th\xF4ng b\xE1o ng\u01B0\u1EDDi d\xF9ng g\u1EEDi l\u1EA1i t\u1EEB \u0111\u1EA7u
549
+
550
+ <!--
551
+ Presenter Notes:
552
+ - D\xE0nh 30 gi\xE2y cho h\u1ECDc vi\xEAn gi\u01A1 tay ho\u1EB7c b\xECnh ch\u1ECDn \u0111\xE1p \xE1n.
553
+ - \u0110\xE1p \xE1n ch\xEDnh x\xE1c: B.
554
+ - Gi\u1EA3i th\xEDch v\xEC sao \u0111\xE1p \xE1n A v\xE0 C ti\u1EC1m \u1EA9n nguy c\u01A1 m\u1EA5t m\xE1t d\u1EEF li\u1EC7u nghi\xEAm tr\u1ECDng.
555
+ -->`
556
+ },
557
+ {
558
+ id: "tiered-practice-3cards",
559
+ name: "Th\u1EF1c H\xE0nh Ph\xE2n H\xF3a (Tiered Practice)",
560
+ category: "content",
561
+ description: "3 c\u1EA5p b\u1EADc nhi\u1EC7m v\u1EE5 \u0110\u1ED3ng - B\u1EA1c - V\xE0ng \u0111\u1EC3 h\u1ECDc sinh t\u1EF1 ch\u1ECDn m\u1EE9c th\u1EED th\xE1ch ph\xF9 h\u1EE3p.",
562
+ layout: {
563
+ boxes: [
564
+ {
565
+ id: "heading",
566
+ target: "h2",
567
+ pos: [80, 45, 1120, 65],
568
+ fontSize: "1.9rem"
569
+ },
570
+ {
571
+ id: "tier-bronze",
572
+ target: ".columns-3 > div:nth-child(1)",
573
+ pos: [80, 140, 350, 520]
574
+ },
575
+ {
576
+ id: "tier-silver",
577
+ target: ".columns-3 > div:nth-child(2)",
578
+ pos: [465, 140, 350, 520]
579
+ },
580
+ {
581
+ id: "tier-gold",
582
+ target: ".columns-3 > div:nth-child(3)",
583
+ pos: [850, 140, 350, 520]
584
+ }
585
+ ]
586
+ },
587
+ markdownSnippet: `<!-- layout:
588
+ boxes:
589
+ - id: heading
590
+ target: h2
591
+ pos: [80, 45, 1120, 65]
592
+ fontSize: 1.9rem
593
+ - id: tier-bronze
594
+ target: '.columns-3 > div:nth-child(1)'
595
+ pos: [80, 140, 350, 520]
596
+ - id: tier-silver
597
+ target: '.columns-3 > div:nth-child(2)'
598
+ pos: [465, 140, 350, 520]
599
+ - id: tier-gold
600
+ target: '.columns-3 > div:nth-child(3)'
601
+ pos: [850, 140, 350, 520]
602
+ -->
603
+
604
+ ## \u{1F6E0}\uFE0F Th\u1EED Th\xE1ch Ph\xE2n H\xF3a 3 C\u1EA5p \u0110\u1ED9 (Tiered Lab)
605
+
606
+ <div class="columns-3">
607
+ <div>
608
+
609
+ ### \u{1F949} H\u1EA1ng \u0110\u1ED3ng (Bronze)
610
+ - Vi\u1EBFt h\xE0m x\u1EED l\xFD c\u01A1 b\u1EA3n
611
+ - V\u01B0\u1EE3t qua 3 test case m\u1EABu
612
+ - *M\u1EE5c ti\xEAu: \u0110\u1EA1t chu\u1EA9n ki\u1EBFn th\u1EE9c c\u01A1 b\u1EA3n*
613
+
614
+ </div>
615
+ <div>
616
+
617
+ ### \u{1F948} H\u1EA1ng B\u1EA1c (Silver)
618
+ - Th\xEAm ki\u1EC3m tra \u0111i\u1EC1u ki\u1EC7n bi\xEAn
619
+ - T\u1ED1i \u01B0u \u0111\u1ED9 ph\u1EE9c t\u1EA1p thu\u1EADt to\xE1n O(N)
620
+ - *M\u1EE5c ti\xEAu: V\u1EEFng v\xE0ng k\u1EF9 n\u0103ng th\u1EF1c chi\u1EBFn*
621
+
622
+ </div>
623
+ <div>
624
+
625
+ ### \u{1F947} H\u1EA1ng V\xE0ng (Gold)
626
+ - Thi\u1EBFt k\u1EBF t\xEDnh n\u0103ng m\u1EDF r\u1ED9ng
627
+ - Vi\u1EBFt Unit Test t\u1EF1 \u0111\u1ED9ng bao ph\u1EE7 90%
628
+ - *M\u1EE5c ti\xEAu: S\xE1ng t\u1EA1o & b\u1EE9t ph\xE1*
629
+
630
+ </div>
631
+ </div>
632
+
633
+ <!--
634
+ Presenter Notes:
635
+ - To\xE0n b\u1ED9 l\u1EDBp \u0111\u1EC1u b\u1EAFt \u0111\u1EA7u t\u1EEB H\u1EA1ng \u0110\u1ED3ng \u0111\u1EC3 \u0111\u1EA3m b\u1EA3o hi\u1EC3u b\xE0i.
636
+ - Khuy\u1EBFn kh\xEDch h\u1ECDc vi\xEAn \u0111\xE3 xong Bronze ch\u1EE7 \u0111\u1ED9ng th\u1EED s\u1EE9c v\u1EDBi Silver v\xE0 Gold.
637
+ -->`
638
+ },
639
+ {
640
+ id: "agenda-timeline",
641
+ name: "L\u1ED9 Tr\xECnh Bu\u1ED5i H\u1ECDc (Agenda Table)",
642
+ category: "content",
643
+ description: "B\u1EA3ng l\u1ED9 tr\xECnh th\u1EDDi gian chi ti\u1EBFt theo t\u1EEBng giai \u0111o\u1EA1n v\xE0 s\u1EA3n ph\u1EA9m \u0111\u1EA7u ra.",
644
+ layout: {
645
+ boxes: [
646
+ {
647
+ id: "heading",
648
+ target: "h2",
649
+ pos: [80, 45, 1120, 65],
650
+ fontSize: "1.9rem"
651
+ },
652
+ {
653
+ id: "table-box",
654
+ target: "table",
655
+ pos: [80, 140, 1120, 520]
656
+ }
657
+ ]
658
+ },
659
+ markdownSnippet: `<!-- layout:
660
+ boxes:
661
+ - id: heading
662
+ target: h2
663
+ pos: [80, 45, 1120, 65]
664
+ fontSize: 1.9rem
665
+ - id: table-box
666
+ target: table
667
+ pos: [80, 140, 1120, 520]
668
+ -->
669
+
670
+ ## \u{1F5FA}\uFE0F L\u1ED9 Tr\xECnh Ho\u1EA1t \u0110\u1ED9ng & M\u1EE5c Ti\xEAu
671
+
672
+ | Th\u1EDDi l\u01B0\u1EE3ng | Giai \u0111o\u1EA1n | Tr\u1ECDng t\xE2m ho\u1EA1t \u0111\u1ED9ng | K\u1EBFt qu\u1EA3 \u0111\u1EA1t \u0111\u01B0\u1EE3c |
673
+ |:---:|---|---|---|
674
+ | **05'** | Kh\u1EDFi \u0111\u1ED9ng | T\xECnh hu\u1ED1ng th\u1EF1c t\u1EBF & Th\u1EED th\xE1ch | Nh\u1EADn di\u1EC7n b\xE0i to\xE1n c\u1EA7n gi\u1EA3i |
675
+ | **15'** | Kh\xE1m ph\xE1 | Ph\xE2n t\xEDch 2 kh\xE1i ni\u1EC7m c\u1ED1t l\xF5i | Hi\u1EC3u b\u1EA3n ch\u1EA5t thu\u1EADt to\xE1n |
676
+ | **20'** | Th\u1EF1c h\xE0nh | Code Lab t\u1EA1i m\xE1y theo 3 b\u1EADc | Ho\xE0n th\xE0nh t\u1ED1i thi\u1EC3u H\u1EA1ng \u0110\u1ED3ng |
677
+ | **05'** | T\u1ED5ng k\u1EBFt | Tr\u1EAFc nghi\u1EC7m ph\u1EA3n x\u1EA1 & \u0110\xE1nh gi\xE1 | H\u1EC7 th\u1ED1ng h\xF3a to\xE0n b\u1ED9 ki\u1EBFn th\u1EE9c |
678
+
679
+ <!--
680
+ Presenter Notes:
681
+ - Gi\u1EDBi thi\u1EC7u t\u1ED5ng quan \u0111\u1EC3 h\u1ECDc vi\xEAn bi\u1EBFt r\xF5 c\u1EA5u tr\xFAc bu\u1ED5i h\u1ECDc v\xE0 ch\u1EE7 \u0111\u1ED9ng ph\xE2n b\u1ED5 th\u1EDDi gian.
682
+ -->`
683
+ },
684
+ {
685
+ id: "takeaways-summary",
686
+ name: "T\u1ED5ng K\u1EBFt C\u1ED1t L\xF5i (Key Takeaways)",
687
+ category: "content",
688
+ description: "Slide k\u1EBFt lu\u1EADn v\u1EDBi 3 b\xE0i h\u1ECDc \u0111\u1EAFt gi\xE1 nh\u1EA5t v\xE0 h\xE0nh \u0111\u1ED9ng ti\u1EBFp theo.",
689
+ layout: {
690
+ boxes: [
691
+ {
692
+ id: "heading",
693
+ target: "h2",
694
+ pos: [80, 50, 1120, 70],
695
+ fontSize: "2rem"
696
+ },
697
+ {
698
+ id: "list-box",
699
+ target: "ol",
700
+ pos: [80, 150, 1120, 340],
701
+ fontSize: "1.25rem"
702
+ },
703
+ {
704
+ id: "callout-next",
705
+ target: "blockquote",
706
+ pos: [80, 520, 1120, 140],
707
+ fontSize: "1.1rem"
708
+ }
709
+ ]
710
+ },
711
+ markdownSnippet: `<!-- layout:
712
+ boxes:
713
+ - id: heading
714
+ target: h2
715
+ pos: [80, 50, 1120, 70]
716
+ fontSize: 2rem
717
+ - id: list-box
718
+ target: ol
719
+ pos: [80, 150, 1120, 340]
720
+ fontSize: 1.25rem
721
+ - id: callout-next
722
+ target: blockquote
723
+ pos: [80, 520, 1120, 140]
724
+ fontSize: 1.1rem
725
+ -->
726
+
727
+ ## \u{1F3C1} 3 \u0110i\u1EC1u C\u1EA7n Nh\u1EDB Sau Bu\u1ED5i H\u1ECDc
728
+
729
+ 1. **Hi\u1EC3u b\u1EA3n ch\u1EA5t tr\u01B0\u1EDBc khi vi\u1EBFt m\xE3:** Thu\u1EADt to\xE1n \u0111\xFAng lu\xF4n quan tr\u1ECDng h\u01A1n c\xFA ph\xE1p b\xF3ng b\u1EA9y.
730
+ 2. **Ki\u1EC3m so\xE1t \u0111i\u1EC1u ki\u1EC7n bi\xEAn:** 80% l\u1ED7i h\u1EC7 th\u1ED1ng ph\xE1t sinh t\u1EEB c\xE1c d\u1EEF li\u1EC7u \u0111\u1EA7u v\xE0o kh\xF4ng l\u01B0\u1EDDng tr\u01B0\u1EDBc.
731
+ 3. **Thi\u1EBFt k\u1EBF h\u01B0\u1EDBng m\xF4-\u0111un:** Chia nh\u1ECF v\u1EA5n \u0111\u1EC1 l\u1EDBn th\xE0nh c\xE1c h\xE0m \u0111\u1ED9c l\u1EADp d\u1EC5 ki\u1EC3m th\u1EED.
732
+
733
+ > \u{1F4DD} **Nhi\u1EC7m v\u1EE5 v\u1EC1 nh\xE0:** Ho\xE0n thi\u1EC7n b\xE0i th\u1EF1c h\xE0nh H\u1EA1ng B\u1EA1c v\xE0 chu\u1EA9n b\u1ECB c\xE2u h\u1ECFi cho bu\u1ED5i Review tu\u1EA7n t\u1EDBi.
734
+
735
+ <!--
736
+ Presenter Notes:
737
+ - T\xF3m t\u1EAFt s\xFAc t\xEDch trong 2 ph\xFAt cu\u1ED1i bu\u1ED5i.
738
+ - Tuy\xEAn d\u01B0\u01A1ng c\xE1c b\u1EA1n c\xF3 gi\u1EA3i ph\xE1p xu\u1EA5t s\u1EAFc trong ph\u1EA7n th\u1EF1c h\xE0nh.
739
+ -->`
740
+ }
741
+ ];
742
+ function getSlideLayoutPresetById(id) {
743
+ return SLIDE_LAYOUT_PRESETS.find((p) => p.id === id);
744
+ }
745
+ function getSlideLayoutPresetsByCategory(category) {
746
+ return SLIDE_LAYOUT_PRESETS.filter((p) => p.category === category);
747
+ }
748
+
749
+ exports.SLIDE_LAYOUT_PRESETS = SLIDE_LAYOUT_PRESETS;
750
+ exports.getSlideLayoutPresetById = getSlideLayoutPresetById;
751
+ exports.getSlideLayoutPresetsByCategory = getSlideLayoutPresetsByCategory;
752
+ exports.serializeLayoutToComment = serializeLayoutToComment;
753
+ exports.splitMarkdownSlides = splitMarkdownSlides;
754
+ exports.updateSlideLayoutInMarkdown = updateSlideLayoutInMarkdown;
755
+ //# sourceMappingURL=chunk-OEAOYF7C.cjs.map
756
+ //# sourceMappingURL=chunk-OEAOYF7C.cjs.map