pdf-catalog-generator 3.1.2 → 3.1.3

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.
package/dist/index.js CHANGED
@@ -25,29 +25,6 @@ function _interopNamespace(e) {
25
25
  var XLSX__namespace = /*#__PURE__*/_interopNamespace(XLSX);
26
26
 
27
27
  // src/generator.tsx
28
- var styles = renderer.StyleSheet.create({
29
- wrapper: {
30
- position: "absolute",
31
- bottom: 6,
32
- right: 10,
33
- flexDirection: "row",
34
- alignItems: "center",
35
- opacity: 0.5
36
- },
37
- label: {
38
- fontSize: 6.5,
39
- color: "#666666",
40
- letterSpacing: 0.2
41
- },
42
- link: {
43
- fontSize: 6.5,
44
- color: "#666666",
45
- textDecoration: "none",
46
- letterSpacing: 0.2
47
- }
48
- });
49
- var PoweredByTeziApp = () => /* @__PURE__ */ jsxRuntime.jsx(renderer.View, { style: styles.wrapper, fixed: true, children: /* @__PURE__ */ jsxRuntime.jsx(renderer.Link, { style: styles.link, src: "https://teziapp.com", children: "Powered by Tezi App" }) });
50
- var PoweredByTeziApp_default = PoweredByTeziApp;
51
28
 
52
29
  // src/utils/fieldHelpers.ts
53
30
  function formatFieldName(fieldName) {
@@ -229,12 +206,12 @@ var dynamicFieldStyles = renderer.StyleSheet.create({
229
206
  flexShrink: 1
230
207
  }
231
208
  });
232
- function renderDynamicFields(fields, styles9) {
209
+ function renderDynamicFields(fields, styles8) {
233
210
  if (fields.length === 0) return null;
234
- const containerStyle = styles9?.container || { marginBottom: 8 };
235
- const rowStyle = styles9?.row || dynamicFieldStyles.detailRow;
236
- const labelStyle = styles9?.label || dynamicFieldStyles.detailLabel;
237
- const valueStyle = styles9?.value || dynamicFieldStyles.detailValue;
211
+ const containerStyle = styles8?.container || { marginBottom: 8 };
212
+ const rowStyle = styles8?.row || dynamicFieldStyles.detailRow;
213
+ const labelStyle = styles8?.label || dynamicFieldStyles.detailLabel;
214
+ const valueStyle = styles8?.value || dynamicFieldStyles.detailValue;
238
215
  return /* @__PURE__ */ jsxRuntime.jsx(renderer.View, { style: containerStyle, children: fields.map(([key, value]) => /* @__PURE__ */ jsxRuntime.jsxs(renderer.View, { style: rowStyle, children: [
239
216
  /* @__PURE__ */ jsxRuntime.jsxs(renderer.Text, { style: labelStyle, children: [
240
217
  formatFieldName(key),
@@ -278,7 +255,7 @@ function mergeTemplateConfig(config = {}) {
278
255
  ...config
279
256
  };
280
257
  }
281
- var styles2 = renderer.StyleSheet.create({
258
+ var styles = renderer.StyleSheet.create({
282
259
  productContainer: {
283
260
  flexDirection: "row",
284
261
  flexWrap: "wrap",
@@ -342,27 +319,27 @@ var styles2 = renderer.StyleSheet.create({
342
319
  }
343
320
  });
344
321
  var Template1 = ({ products }) => {
345
- return /* @__PURE__ */ jsxRuntime.jsx(renderer.View, { style: styles2.productContainer, children: products.map((product, index) => {
322
+ return /* @__PURE__ */ jsxRuntime.jsx(renderer.View, { style: styles.productContainer, children: products.map((product, index) => {
346
323
  const fields = extractProductFields(product);
347
- return /* @__PURE__ */ jsxRuntime.jsxs(renderer.View, { style: styles2.productSection, children: [
348
- /* @__PURE__ */ jsxRuntime.jsx(renderer.Image, { style: styles2.image, src: fields.imageUrl }),
349
- /* @__PURE__ */ jsxRuntime.jsxs(renderer.View, { style: styles2.productTitleBox, children: [
350
- /* @__PURE__ */ jsxRuntime.jsx(renderer.Text, { style: styles2.productTitle, children: fields.title }),
351
- renderRating(fields.rating, styles2.productRate)
324
+ return /* @__PURE__ */ jsxRuntime.jsxs(renderer.View, { style: styles.productSection, children: [
325
+ /* @__PURE__ */ jsxRuntime.jsx(renderer.Image, { style: styles.image, src: fields.imageUrl }),
326
+ /* @__PURE__ */ jsxRuntime.jsxs(renderer.View, { style: styles.productTitleBox, children: [
327
+ /* @__PURE__ */ jsxRuntime.jsx(renderer.Text, { style: styles.productTitle, children: fields.title }),
328
+ renderRating(fields.rating, styles.productRate)
352
329
  ] }),
353
- fields.description && /* @__PURE__ */ jsxRuntime.jsx(renderer.Text, { style: styles2.productDescription, children: fields.description }),
330
+ fields.description && /* @__PURE__ */ jsxRuntime.jsx(renderer.Text, { style: styles.productDescription, children: fields.description }),
354
331
  renderDynamicFields(fields.dynamicFields),
355
332
  renderBuyButton(
356
333
  fields.link,
357
- styles2.buyButton,
334
+ styles.buyButton,
358
335
  "Buy Now",
359
- renderPrice(fields.price, styles2.productPrice)
336
+ renderPrice(fields.price, styles.productPrice)
360
337
  )
361
338
  ] }, index);
362
339
  }) });
363
340
  };
364
341
  var Template1_default = Template1;
365
- var styles3 = renderer.StyleSheet.create({
342
+ var styles2 = renderer.StyleSheet.create({
366
343
  productContainer: {
367
344
  flexDirection: "row",
368
345
  flexWrap: "wrap",
@@ -439,14 +416,14 @@ var styles3 = renderer.StyleSheet.create({
439
416
  }
440
417
  });
441
418
  var Template2 = ({ products }) => {
442
- return /* @__PURE__ */ jsxRuntime.jsx(renderer.View, { style: styles3.productContainer, children: products.map((product, index) => {
419
+ return /* @__PURE__ */ jsxRuntime.jsx(renderer.View, { style: styles2.productContainer, children: products.map((product, index) => {
443
420
  const fields = extractProductFields(product);
444
- return /* @__PURE__ */ jsxRuntime.jsxs(renderer.View, { style: styles3.productSection, children: [
445
- /* @__PURE__ */ jsxRuntime.jsxs(renderer.View, { style: styles3.productSectionImage, children: [
446
- /* @__PURE__ */ jsxRuntime.jsx(renderer.Image, { style: styles3.image, src: fields.imageUrl }),
447
- renderRating(fields.rating, styles3.productRate)
421
+ return /* @__PURE__ */ jsxRuntime.jsxs(renderer.View, { style: styles2.productSection, children: [
422
+ /* @__PURE__ */ jsxRuntime.jsxs(renderer.View, { style: styles2.productSectionImage, children: [
423
+ /* @__PURE__ */ jsxRuntime.jsx(renderer.Image, { style: styles2.image, src: fields.imageUrl }),
424
+ renderRating(fields.rating, styles2.productRate)
448
425
  ] }),
449
- /* @__PURE__ */ jsxRuntime.jsxs(renderer.View, { style: styles3.productSectionText, children: [
426
+ /* @__PURE__ */ jsxRuntime.jsxs(renderer.View, { style: styles2.productSectionText, children: [
450
427
  /* @__PURE__ */ jsxRuntime.jsxs(
451
428
  renderer.View,
452
429
  {
@@ -456,20 +433,20 @@ var Template2 = ({ products }) => {
456
433
  justifyContent: "space-between"
457
434
  },
458
435
  children: [
459
- /* @__PURE__ */ jsxRuntime.jsx(renderer.Text, { style: styles3.productTitle, children: fields.title }),
460
- renderPrice(fields.price, styles3.productPrice)
436
+ /* @__PURE__ */ jsxRuntime.jsx(renderer.Text, { style: styles2.productTitle, children: fields.title }),
437
+ renderPrice(fields.price, styles2.productPrice)
461
438
  ]
462
439
  }
463
440
  ),
464
- fields.description && /* @__PURE__ */ jsxRuntime.jsx(renderer.Text, { style: styles3.productDescription, children: fields.description }),
441
+ fields.description && /* @__PURE__ */ jsxRuntime.jsx(renderer.Text, { style: styles2.productDescription, children: fields.description }),
465
442
  renderDynamicFields(fields.dynamicFields),
466
- renderBuyButton(fields.link, styles3.buyButton)
443
+ renderBuyButton(fields.link, styles2.buyButton)
467
444
  ] })
468
445
  ] }, index);
469
446
  }) });
470
447
  };
471
448
  var Template2_default = Template2;
472
- var styles4 = renderer.StyleSheet.create({
449
+ var styles3 = renderer.StyleSheet.create({
473
450
  productSection: {
474
451
  width: "100%",
475
452
  height: "100vh",
@@ -549,10 +526,10 @@ var compactDynamicFieldStyles = renderer.StyleSheet.create({
549
526
  var Template3 = ({ products }) => {
550
527
  return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: products.map((product, index) => {
551
528
  const fields = extractProductFields(product, { maxDynamicFields: 5 });
552
- return /* @__PURE__ */ jsxRuntime.jsxs(renderer.View, { style: styles4.productSection, children: [
553
- /* @__PURE__ */ jsxRuntime.jsx(renderer.Image, { style: styles4.image, src: fields.imageUrl }),
554
- /* @__PURE__ */ jsxRuntime.jsxs(renderer.View, { style: styles4.productDetailsBox, children: [
555
- /* @__PURE__ */ jsxRuntime.jsx(renderer.Text, { style: styles4.productTitle, children: fields.title }),
529
+ return /* @__PURE__ */ jsxRuntime.jsxs(renderer.View, { style: styles3.productSection, children: [
530
+ /* @__PURE__ */ jsxRuntime.jsx(renderer.Image, { style: styles3.image, src: fields.imageUrl }),
531
+ /* @__PURE__ */ jsxRuntime.jsxs(renderer.View, { style: styles3.productDetailsBox, children: [
532
+ /* @__PURE__ */ jsxRuntime.jsx(renderer.Text, { style: styles3.productTitle, children: fields.title }),
556
533
  /* @__PURE__ */ jsxRuntime.jsxs(
557
534
  renderer.View,
558
535
  {
@@ -562,25 +539,25 @@ var Template3 = ({ products }) => {
562
539
  justifyContent: "space-between"
563
540
  },
564
541
  children: [
565
- renderPrice(fields.price, styles4.productPrice),
566
- renderRating(fields.rating, styles4.productRate)
542
+ renderPrice(fields.price, styles3.productPrice),
543
+ renderRating(fields.rating, styles3.productRate)
567
544
  ]
568
545
  }
569
546
  ),
570
- fields.description && /* @__PURE__ */ jsxRuntime.jsx(renderer.Text, { style: styles4.productDescription, children: fields.description }),
547
+ fields.description && /* @__PURE__ */ jsxRuntime.jsx(renderer.Text, { style: styles3.productDescription, children: fields.description }),
571
548
  renderDynamicFields(fields.dynamicFields, {
572
549
  row: compactDynamicFieldStyles.detailRow,
573
550
  label: compactDynamicFieldStyles.detailLabel,
574
551
  value: compactDynamicFieldStyles.detailValue
575
552
  }),
576
- renderBuyButton(fields.link, styles4.buyButton)
553
+ renderBuyButton(fields.link, styles3.buyButton)
577
554
  ] }),
578
555
  /* @__PURE__ */ jsxRuntime.jsx(renderer.View, { break: true })
579
556
  ] }, index);
580
557
  }) });
581
558
  };
582
559
  var Template3_default = Template3;
583
- var styles5 = renderer.StyleSheet.create({
560
+ var styles4 = renderer.StyleSheet.create({
584
561
  page: {
585
562
  width: "100%",
586
563
  height: "100%",
@@ -677,21 +654,21 @@ var Template4 = ({
677
654
  )
678
655
  );
679
656
  const fields = extractProductFields(product);
680
- return /* @__PURE__ */ jsxRuntime.jsxs(renderer.View, { style: styles5.page, children: [
681
- /* @__PURE__ */ jsxRuntime.jsxs(renderer.View, { style: styles5.header, children: [
682
- /* @__PURE__ */ jsxRuntime.jsx(renderer.Text, { style: styles5.companyName, children: companyName || "" }),
683
- companyLogo && /* @__PURE__ */ jsxRuntime.jsx(renderer.Image, { style: styles5.brandLogo, src: companyLogo })
657
+ return /* @__PURE__ */ jsxRuntime.jsxs(renderer.View, { style: styles4.page, children: [
658
+ /* @__PURE__ */ jsxRuntime.jsxs(renderer.View, { style: styles4.header, children: [
659
+ /* @__PURE__ */ jsxRuntime.jsx(renderer.Text, { style: styles4.companyName, children: companyName || "" }),
660
+ companyLogo && /* @__PURE__ */ jsxRuntime.jsx(renderer.Image, { style: styles4.brandLogo, src: companyLogo })
684
661
  ] }),
685
- /* @__PURE__ */ jsxRuntime.jsxs(renderer.View, { style: styles5.productContainer, children: [
686
- /* @__PURE__ */ jsxRuntime.jsx(renderer.Image, { style: styles5.productImage, src: fields.imageUrl }),
687
- allFields.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(renderer.View, { style: styles5.detailsBox, children: renderFieldsInColumns(allFields) })
662
+ /* @__PURE__ */ jsxRuntime.jsxs(renderer.View, { style: styles4.productContainer, children: [
663
+ /* @__PURE__ */ jsxRuntime.jsx(renderer.Image, { style: styles4.productImage, src: fields.imageUrl }),
664
+ allFields.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(renderer.View, { style: styles4.detailsBox, children: renderFieldsInColumns(allFields) })
688
665
  ] }),
689
666
  /* @__PURE__ */ jsxRuntime.jsx(renderer.View, { break: true })
690
667
  ] }, index);
691
668
  }) });
692
669
  };
693
670
  var Template4_default = Template4;
694
- var styles6 = renderer.StyleSheet.create({
671
+ var styles5 = renderer.StyleSheet.create({
695
672
  page: {
696
673
  width: "100%",
697
674
  height: "100%",
@@ -804,22 +781,22 @@ var Template5 = ({
804
781
  const { imageUrl, title, dynamicFields } = extractProductFields(product);
805
782
  const image2Url = getImage2Url(product);
806
783
  const secondImage = image2Url || imageUrl;
807
- return /* @__PURE__ */ jsxRuntime.jsxs(renderer.View, { style: styles6.page, children: [
808
- /* @__PURE__ */ jsxRuntime.jsxs(renderer.View, { style: styles6.header, children: [
809
- companyLogo && /* @__PURE__ */ jsxRuntime.jsx(renderer.Image, { style: styles6.logo, src: companyLogo }),
810
- /* @__PURE__ */ jsxRuntime.jsx(renderer.Text, { style: styles6.companyName, children: companyName })
784
+ return /* @__PURE__ */ jsxRuntime.jsxs(renderer.View, { style: styles5.page, children: [
785
+ /* @__PURE__ */ jsxRuntime.jsxs(renderer.View, { style: styles5.header, children: [
786
+ companyLogo && /* @__PURE__ */ jsxRuntime.jsx(renderer.Image, { style: styles5.logo, src: companyLogo }),
787
+ /* @__PURE__ */ jsxRuntime.jsx(renderer.Text, { style: styles5.companyName, children: companyName })
811
788
  ] }),
812
- /* @__PURE__ */ jsxRuntime.jsxs(renderer.View, { style: styles6.contentContainer, children: [
813
- /* @__PURE__ */ jsxRuntime.jsxs(renderer.View, { style: styles6.imageSection, children: [
814
- /* @__PURE__ */ jsxRuntime.jsx(renderer.View, { style: styles6.imageWrapper, children: /* @__PURE__ */ jsxRuntime.jsx(renderer.Image, { style: styles6.productImage, src: imageUrl }) }),
815
- /* @__PURE__ */ jsxRuntime.jsx(renderer.View, { style: styles6.imageWrapper, children: /* @__PURE__ */ jsxRuntime.jsx(renderer.Image, { style: styles6.productImage, src: secondImage }) })
789
+ /* @__PURE__ */ jsxRuntime.jsxs(renderer.View, { style: styles5.contentContainer, children: [
790
+ /* @__PURE__ */ jsxRuntime.jsxs(renderer.View, { style: styles5.imageSection, children: [
791
+ /* @__PURE__ */ jsxRuntime.jsx(renderer.View, { style: styles5.imageWrapper, children: /* @__PURE__ */ jsxRuntime.jsx(renderer.Image, { style: styles5.productImage, src: imageUrl }) }),
792
+ /* @__PURE__ */ jsxRuntime.jsx(renderer.View, { style: styles5.imageWrapper, children: /* @__PURE__ */ jsxRuntime.jsx(renderer.Image, { style: styles5.productImage, src: secondImage }) })
816
793
  ] }),
817
- /* @__PURE__ */ jsxRuntime.jsxs(renderer.View, { style: styles6.detailsSection, children: [
818
- title && /* @__PURE__ */ jsxRuntime.jsx(renderer.Text, { style: styles6.productTitle, children: title }),
819
- /* @__PURE__ */ jsxRuntime.jsx(renderer.View, { style: styles6.dynamicFieldsContainer, children: renderDynamicFields(dynamicFields, {
820
- row: styles6.detailRow,
821
- label: styles6.detailLabel,
822
- value: styles6.detailValue
794
+ /* @__PURE__ */ jsxRuntime.jsxs(renderer.View, { style: styles5.detailsSection, children: [
795
+ title && /* @__PURE__ */ jsxRuntime.jsx(renderer.Text, { style: styles5.productTitle, children: title }),
796
+ /* @__PURE__ */ jsxRuntime.jsx(renderer.View, { style: styles5.dynamicFieldsContainer, children: renderDynamicFields(dynamicFields, {
797
+ row: styles5.detailRow,
798
+ label: styles5.detailLabel,
799
+ value: styles5.detailValue
823
800
  }) })
824
801
  ] })
825
802
  ] }),
@@ -828,7 +805,7 @@ var Template5 = ({
828
805
  }) });
829
806
  };
830
807
  var Template5_default = Template5;
831
- var styles7 = renderer.StyleSheet.create({
808
+ var styles6 = renderer.StyleSheet.create({
832
809
  page: {
833
810
  width: "100%",
834
811
  height: "100%",
@@ -969,26 +946,26 @@ var Template6 = ({
969
946
  const { imageUrl, title, dynamicFields } = extractProductFields(product);
970
947
  const image2Url = getImage2Url2(product);
971
948
  const secondImage = image2Url || imageUrl;
972
- return /* @__PURE__ */ jsxRuntime.jsxs(renderer.View, { style: styles7.page, children: [
973
- /* @__PURE__ */ jsxRuntime.jsxs(renderer.View, { style: styles7.leftColumn, children: [
974
- /* @__PURE__ */ jsxRuntime.jsx(renderer.Image, { style: styles7.imageFull, src: imageUrl }),
975
- /* @__PURE__ */ jsxRuntime.jsxs(renderer.View, { style: styles7.specsOverlay, children: [
976
- /* @__PURE__ */ jsxRuntime.jsxs(renderer.View, { style: styles7.specsHeader, children: [
977
- companyLogo && /* @__PURE__ */ jsxRuntime.jsx(renderer.Image, { style: styles7.miniLogo, src: companyLogo }),
978
- /* @__PURE__ */ jsxRuntime.jsx(renderer.Text, { style: styles7.designNumber, children: title || "Specifications" })
949
+ return /* @__PURE__ */ jsxRuntime.jsxs(renderer.View, { style: styles6.page, children: [
950
+ /* @__PURE__ */ jsxRuntime.jsxs(renderer.View, { style: styles6.leftColumn, children: [
951
+ /* @__PURE__ */ jsxRuntime.jsx(renderer.Image, { style: styles6.imageFull, src: imageUrl }),
952
+ /* @__PURE__ */ jsxRuntime.jsxs(renderer.View, { style: styles6.specsOverlay, children: [
953
+ /* @__PURE__ */ jsxRuntime.jsxs(renderer.View, { style: styles6.specsHeader, children: [
954
+ companyLogo && /* @__PURE__ */ jsxRuntime.jsx(renderer.Image, { style: styles6.miniLogo, src: companyLogo }),
955
+ /* @__PURE__ */ jsxRuntime.jsx(renderer.Text, { style: styles6.designNumber, children: title || "Specifications" })
979
956
  ] }),
980
957
  renderDynamicFields(dynamicFields, {
981
- row: styles7.fieldRow,
982
- label: styles7.fieldLabel,
983
- value: styles7.fieldValue
958
+ row: styles6.fieldRow,
959
+ label: styles6.fieldLabel,
960
+ value: styles6.fieldValue
984
961
  })
985
962
  ] })
986
963
  ] }),
987
- /* @__PURE__ */ jsxRuntime.jsxs(renderer.View, { style: styles7.rightColumn, children: [
988
- /* @__PURE__ */ jsxRuntime.jsx(renderer.View, { style: styles7.rightImageContainer, children: /* @__PURE__ */ jsxRuntime.jsx(renderer.Image, { style: styles7.rightImage, src: secondImage }) }),
989
- /* @__PURE__ */ jsxRuntime.jsx(renderer.View, { style: styles7.footer, children: /* @__PURE__ */ jsxRuntime.jsxs(renderer.View, { style: styles7.footerContent, children: [
990
- companyLogo && /* @__PURE__ */ jsxRuntime.jsx(renderer.Image, { style: styles7.footerLogo, src: companyLogo }),
991
- /* @__PURE__ */ jsxRuntime.jsx(renderer.Text, { style: styles7.footerText, children: companyName })
964
+ /* @__PURE__ */ jsxRuntime.jsxs(renderer.View, { style: styles6.rightColumn, children: [
965
+ /* @__PURE__ */ jsxRuntime.jsx(renderer.View, { style: styles6.rightImageContainer, children: /* @__PURE__ */ jsxRuntime.jsx(renderer.Image, { style: styles6.rightImage, src: secondImage }) }),
966
+ /* @__PURE__ */ jsxRuntime.jsx(renderer.View, { style: styles6.footer, children: /* @__PURE__ */ jsxRuntime.jsxs(renderer.View, { style: styles6.footerContent, children: [
967
+ companyLogo && /* @__PURE__ */ jsxRuntime.jsx(renderer.Image, { style: styles6.footerLogo, src: companyLogo }),
968
+ /* @__PURE__ */ jsxRuntime.jsx(renderer.Text, { style: styles6.footerText, children: companyName })
992
969
  ] }) })
993
970
  ] }),
994
971
  /* @__PURE__ */ jsxRuntime.jsx(renderer.View, { break: true })
@@ -996,7 +973,7 @@ var Template6 = ({
996
973
  }) });
997
974
  };
998
975
  var Template6_default = Template6;
999
- var styles8 = renderer.StyleSheet.create({
976
+ var styles7 = renderer.StyleSheet.create({
1000
977
  page: {
1001
978
  flexDirection: "column",
1002
979
  backgroundColor: "#FFFFFF"
@@ -1054,45 +1031,38 @@ async function generateProductCatalog(config) {
1054
1031
  TemplateComponent = Template1_default;
1055
1032
  }
1056
1033
  if (template === "template4") {
1057
- const doc2 = /* @__PURE__ */ jsxRuntime.jsx(renderer.Document, { children: /* @__PURE__ */ jsxRuntime.jsxs(renderer.Page, { size: "A4", style: styles8.page, children: [
1058
- /* @__PURE__ */ jsxRuntime.jsx(
1059
- Template4_default,
1060
- {
1061
- products,
1062
- companyLogo,
1063
- companyName
1064
- }
1065
- ),
1066
- /* @__PURE__ */ jsxRuntime.jsx(PoweredByTeziApp_default, {})
1067
- ] }) });
1034
+ const doc2 = /* @__PURE__ */ jsxRuntime.jsx(renderer.Document, { children: /* @__PURE__ */ jsxRuntime.jsx(renderer.Page, { size: "A4", style: styles7.page, children: /* @__PURE__ */ jsxRuntime.jsx(
1035
+ Template4_default,
1036
+ {
1037
+ products,
1038
+ companyLogo,
1039
+ companyName
1040
+ }
1041
+ ) }) });
1068
1042
  const blob2 = await renderer.pdf(doc2).toBlob();
1069
1043
  const arrayBuffer2 = await blob2.arrayBuffer();
1070
1044
  return new Uint8Array(arrayBuffer2);
1071
1045
  }
1072
1046
  if (template === "template5" || template === "template6") {
1073
1047
  const Template = template === "template5" ? Template5_default : Template6_default;
1074
- const doc2 = /* @__PURE__ */ jsxRuntime.jsx(renderer.Document, { children: /* @__PURE__ */ jsxRuntime.jsxs(renderer.Page, { size: "A4", orientation: "landscape", style: styles8.page, children: [
1075
- /* @__PURE__ */ jsxRuntime.jsx(
1076
- Template,
1077
- {
1078
- products,
1079
- companyLogo,
1080
- companyName
1081
- }
1082
- ),
1083
- /* @__PURE__ */ jsxRuntime.jsx(PoweredByTeziApp_default, {})
1084
- ] }) });
1048
+ const doc2 = /* @__PURE__ */ jsxRuntime.jsx(renderer.Document, { children: /* @__PURE__ */ jsxRuntime.jsx(renderer.Page, { size: "A4", orientation: "landscape", style: styles7.page, children: /* @__PURE__ */ jsxRuntime.jsx(
1049
+ Template,
1050
+ {
1051
+ products,
1052
+ companyLogo,
1053
+ companyName
1054
+ }
1055
+ ) }) });
1085
1056
  const blob2 = await renderer.pdf(doc2).toBlob();
1086
1057
  const arrayBuffer2 = await blob2.arrayBuffer();
1087
1058
  return new Uint8Array(arrayBuffer2);
1088
1059
  }
1089
- const doc = /* @__PURE__ */ jsxRuntime.jsx(renderer.Document, { children: /* @__PURE__ */ jsxRuntime.jsxs(renderer.Page, { size: "A4", style: styles8.page, children: [
1090
- /* @__PURE__ */ jsxRuntime.jsxs(renderer.View, { style: styles8.header, children: [
1091
- companyLogo && /* @__PURE__ */ jsxRuntime.jsx(renderer.View, { style: styles8.logoSection, children: /* @__PURE__ */ jsxRuntime.jsx(renderer.Image, { style: styles8.logo, src: companyLogo }) }),
1092
- /* @__PURE__ */ jsxRuntime.jsx(renderer.View, { style: styles8.storeNameSection, children: /* @__PURE__ */ jsxRuntime.jsx(renderer.Text, { style: styles8.storeName, children: companyName }) })
1060
+ const doc = /* @__PURE__ */ jsxRuntime.jsx(renderer.Document, { children: /* @__PURE__ */ jsxRuntime.jsxs(renderer.Page, { size: "A4", style: styles7.page, children: [
1061
+ /* @__PURE__ */ jsxRuntime.jsxs(renderer.View, { style: styles7.header, children: [
1062
+ companyLogo && /* @__PURE__ */ jsxRuntime.jsx(renderer.View, { style: styles7.logoSection, children: /* @__PURE__ */ jsxRuntime.jsx(renderer.Image, { style: styles7.logo, src: companyLogo }) }),
1063
+ /* @__PURE__ */ jsxRuntime.jsx(renderer.View, { style: styles7.storeNameSection, children: /* @__PURE__ */ jsxRuntime.jsx(renderer.Text, { style: styles7.storeName, children: companyName }) })
1093
1064
  ] }),
1094
- /* @__PURE__ */ jsxRuntime.jsx(TemplateComponent, { products }),
1095
- /* @__PURE__ */ jsxRuntime.jsx(PoweredByTeziApp_default, {})
1065
+ /* @__PURE__ */ jsxRuntime.jsx(TemplateComponent, { products })
1096
1066
  ] }) });
1097
1067
  const blob = await renderer.pdf(doc).toBlob();
1098
1068
  const arrayBuffer = await blob.arrayBuffer();