@bookmypuja-tech/bmp-pdf 0.2.14 → 0.2.16
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 +501 -453
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -25,6 +25,9 @@ var formatDate = (date) => {
|
|
|
25
25
|
};
|
|
26
26
|
return date.toLocaleDateString("en-GB", options2).replace(",", "");
|
|
27
27
|
};
|
|
28
|
+
function containsMalayalam(text) {
|
|
29
|
+
return /[\u0D00-\u0D7F\u0B80-\u0BFF\u0C80-\u0CFF\u0900-\u097F]/.test(text);
|
|
30
|
+
}
|
|
28
31
|
|
|
29
32
|
// src/constants.ts
|
|
30
33
|
var bmpLogo = "https://res.cloudinary.com/dpaigt2bx/image/upload/f_auto,q_auto/v1/General%20BMP%20assets/vkesyodnuxuwevdwrk6m";
|
|
@@ -216,7 +219,7 @@ var A4Print = ({
|
|
|
216
219
|
var A4Print_default = A4Print;
|
|
217
220
|
|
|
218
221
|
// src/index.tsx
|
|
219
|
-
import
|
|
222
|
+
import React15 from "react";
|
|
220
223
|
|
|
221
224
|
// src/sizes/T2Inch.tsx
|
|
222
225
|
import React2 from "react";
|
|
@@ -576,15 +579,54 @@ var getQuickReceipt2InchBase64Data = async (receiptData) => {
|
|
|
576
579
|
};
|
|
577
580
|
|
|
578
581
|
// src/sizes/a4/A4KitchenReport.tsx
|
|
579
|
-
import { Document as Document3, Image as
|
|
580
|
-
import
|
|
582
|
+
import { Document as Document3, Image as Image6, Page as Page3, View as View4 } from "@react-pdf/renderer";
|
|
583
|
+
import React8 from "react";
|
|
584
|
+
|
|
585
|
+
// src/components/Text.tsx
|
|
586
|
+
import React7, { useEffect as useEffect4 } from "react";
|
|
587
|
+
import { Image as Image5, Text as PDFText, View as View3 } from "@react-pdf/renderer";
|
|
588
|
+
import axios from "axios";
|
|
589
|
+
var Text7 = ({ children, style = {} }) => {
|
|
590
|
+
const [imagesLinks, setImagesLinks] = React7.useState([]);
|
|
591
|
+
const childrenStr = typeof children === "string" ? children : String(children);
|
|
592
|
+
const isMalayalam = containsMalayalam(childrenStr);
|
|
593
|
+
if (!isMalayalam) {
|
|
594
|
+
return /* @__PURE__ */ React7.createElement(PDFText, { style }, children);
|
|
595
|
+
}
|
|
596
|
+
useEffect4(() => {
|
|
597
|
+
axios.post("/text-to-image", {
|
|
598
|
+
text: childrenStr
|
|
599
|
+
}).then((response) => {
|
|
600
|
+
let thisimagesLinks = response.data.images;
|
|
601
|
+
console.log("thisimagesLinks", thisimagesLinks);
|
|
602
|
+
setImagesLinks(thisimagesLinks);
|
|
603
|
+
}).catch((error) => {
|
|
604
|
+
console.error("Error:", error);
|
|
605
|
+
});
|
|
606
|
+
}, []);
|
|
607
|
+
return /* @__PURE__ */ React7.createElement(View3, { style: { flexDirection: "row", flexWrap: "wrap", gap: 2 } }, imagesLinks.map((imageLink, index) => /* @__PURE__ */ React7.createElement(
|
|
608
|
+
Image5,
|
|
609
|
+
{
|
|
610
|
+
key: index,
|
|
611
|
+
src: `${imageLink}`,
|
|
612
|
+
style: {
|
|
613
|
+
width: "auto",
|
|
614
|
+
height: style.fontSize || 12,
|
|
615
|
+
...style
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
)));
|
|
619
|
+
};
|
|
620
|
+
var Text_default = Text7;
|
|
621
|
+
|
|
622
|
+
// src/sizes/a4/A4KitchenReport.tsx
|
|
581
623
|
var A4KitchenReport = ({
|
|
582
624
|
date,
|
|
583
625
|
templeName,
|
|
584
626
|
data
|
|
585
627
|
}) => {
|
|
586
|
-
return /* @__PURE__ */
|
|
587
|
-
|
|
628
|
+
return /* @__PURE__ */ React8.createElement(React8.Fragment, null, /* @__PURE__ */ React8.createElement(Document3, null, /* @__PURE__ */ React8.createElement(Page3, { size: "A4", style: { padding: 30, fontFamily: "Noto Sans" } }, /* @__PURE__ */ React8.createElement(
|
|
629
|
+
Image6,
|
|
588
630
|
{
|
|
589
631
|
fixed: true,
|
|
590
632
|
style: {
|
|
@@ -594,8 +636,8 @@ var A4KitchenReport = ({
|
|
|
594
636
|
},
|
|
595
637
|
src: bmpLogo
|
|
596
638
|
}
|
|
597
|
-
), /* @__PURE__ */
|
|
598
|
-
|
|
639
|
+
), /* @__PURE__ */ React8.createElement(Text_default, { style: { fontSize: 11, marginTop: 5, textAlign: "right" } }, "Date: ", date.toDateString()), /* @__PURE__ */ React8.createElement(Text_default, { style: { fontSize: 14, fontWeight: "bold" } }, "Temple Prasad (Kitchen) Report"), /* @__PURE__ */ React8.createElement(Text_default, { style: { fontSize: 12 } }, `${templeName}`), /* @__PURE__ */ React8.createElement(
|
|
640
|
+
View4,
|
|
599
641
|
{
|
|
600
642
|
style: {
|
|
601
643
|
display: "flex",
|
|
@@ -603,8 +645,8 @@ var A4KitchenReport = ({
|
|
|
603
645
|
marginTop: 20
|
|
604
646
|
}
|
|
605
647
|
},
|
|
606
|
-
/* @__PURE__ */
|
|
607
|
-
|
|
648
|
+
/* @__PURE__ */ React8.createElement(
|
|
649
|
+
View4,
|
|
608
650
|
{
|
|
609
651
|
style: {
|
|
610
652
|
display: "flex",
|
|
@@ -614,8 +656,8 @@ var A4KitchenReport = ({
|
|
|
614
656
|
fontWeight: "semibold"
|
|
615
657
|
}
|
|
616
658
|
},
|
|
617
|
-
/* @__PURE__ */
|
|
618
|
-
|
|
659
|
+
/* @__PURE__ */ React8.createElement(
|
|
660
|
+
View4,
|
|
619
661
|
{
|
|
620
662
|
style: {
|
|
621
663
|
padding: 6,
|
|
@@ -623,10 +665,10 @@ var A4KitchenReport = ({
|
|
|
623
665
|
width: "20%"
|
|
624
666
|
}
|
|
625
667
|
},
|
|
626
|
-
/* @__PURE__ */
|
|
668
|
+
/* @__PURE__ */ React8.createElement(Text_default, null, "Sr no")
|
|
627
669
|
),
|
|
628
|
-
/* @__PURE__ */
|
|
629
|
-
|
|
670
|
+
/* @__PURE__ */ React8.createElement(
|
|
671
|
+
View4,
|
|
630
672
|
{
|
|
631
673
|
style: {
|
|
632
674
|
padding: 6,
|
|
@@ -634,10 +676,10 @@ var A4KitchenReport = ({
|
|
|
634
676
|
width: "60%"
|
|
635
677
|
}
|
|
636
678
|
},
|
|
637
|
-
/* @__PURE__ */
|
|
679
|
+
/* @__PURE__ */ React8.createElement(Text_default, null, "Prasad Name")
|
|
638
680
|
),
|
|
639
|
-
/* @__PURE__ */
|
|
640
|
-
|
|
681
|
+
/* @__PURE__ */ React8.createElement(
|
|
682
|
+
View4,
|
|
641
683
|
{
|
|
642
684
|
style: {
|
|
643
685
|
padding: 6,
|
|
@@ -645,12 +687,12 @@ var A4KitchenReport = ({
|
|
|
645
687
|
width: "20%"
|
|
646
688
|
}
|
|
647
689
|
},
|
|
648
|
-
/* @__PURE__ */
|
|
690
|
+
/* @__PURE__ */ React8.createElement(Text_default, null, "Quantity")
|
|
649
691
|
)
|
|
650
692
|
),
|
|
651
693
|
data.map((item, index) => {
|
|
652
|
-
return /* @__PURE__ */
|
|
653
|
-
|
|
694
|
+
return /* @__PURE__ */ React8.createElement(
|
|
695
|
+
View4,
|
|
654
696
|
{
|
|
655
697
|
style: {
|
|
656
698
|
display: "flex",
|
|
@@ -660,8 +702,8 @@ var A4KitchenReport = ({
|
|
|
660
702
|
fontSize: 10
|
|
661
703
|
}
|
|
662
704
|
},
|
|
663
|
-
/* @__PURE__ */
|
|
664
|
-
|
|
705
|
+
/* @__PURE__ */ React8.createElement(
|
|
706
|
+
View4,
|
|
665
707
|
{
|
|
666
708
|
style: {
|
|
667
709
|
padding: 6,
|
|
@@ -669,10 +711,10 @@ var A4KitchenReport = ({
|
|
|
669
711
|
width: "20%"
|
|
670
712
|
}
|
|
671
713
|
},
|
|
672
|
-
/* @__PURE__ */
|
|
714
|
+
/* @__PURE__ */ React8.createElement(Text_default, null, index + 1)
|
|
673
715
|
),
|
|
674
|
-
/* @__PURE__ */
|
|
675
|
-
|
|
716
|
+
/* @__PURE__ */ React8.createElement(
|
|
717
|
+
View4,
|
|
676
718
|
{
|
|
677
719
|
style: {
|
|
678
720
|
padding: 6,
|
|
@@ -680,10 +722,10 @@ var A4KitchenReport = ({
|
|
|
680
722
|
width: "60%"
|
|
681
723
|
}
|
|
682
724
|
},
|
|
683
|
-
/* @__PURE__ */
|
|
725
|
+
/* @__PURE__ */ React8.createElement(Text_default, null, item.name)
|
|
684
726
|
),
|
|
685
|
-
/* @__PURE__ */
|
|
686
|
-
|
|
727
|
+
/* @__PURE__ */ React8.createElement(
|
|
728
|
+
View4,
|
|
687
729
|
{
|
|
688
730
|
style: {
|
|
689
731
|
padding: 6,
|
|
@@ -691,7 +733,7 @@ var A4KitchenReport = ({
|
|
|
691
733
|
width: "20%"
|
|
692
734
|
}
|
|
693
735
|
},
|
|
694
|
-
/* @__PURE__ */
|
|
736
|
+
/* @__PURE__ */ React8.createElement(Text_default, null, item.quantity)
|
|
695
737
|
)
|
|
696
738
|
);
|
|
697
739
|
})
|
|
@@ -700,8 +742,8 @@ var A4KitchenReport = ({
|
|
|
700
742
|
var A4KitchenReport_default = A4KitchenReport;
|
|
701
743
|
|
|
702
744
|
// src/sizes/a4/A4TransactionReport.tsx
|
|
703
|
-
import { Document as Document4, Image as
|
|
704
|
-
import
|
|
745
|
+
import { Document as Document4, Image as Image7, Page as Page4, View as View5 } from "@react-pdf/renderer";
|
|
746
|
+
import React9 from "react";
|
|
705
747
|
var A4TransactionReport = ({
|
|
706
748
|
date,
|
|
707
749
|
templeName,
|
|
@@ -719,8 +761,8 @@ var A4TransactionReport = ({
|
|
|
719
761
|
}
|
|
720
762
|
return acc + item.creditedAmount;
|
|
721
763
|
}, 0);
|
|
722
|
-
return /* @__PURE__ */
|
|
723
|
-
|
|
764
|
+
return /* @__PURE__ */ React9.createElement(React9.Fragment, null, /* @__PURE__ */ React9.createElement(Document4, null, /* @__PURE__ */ React9.createElement(Page4, { size: "A4", style: { padding: 30, fontFamily: "Noto Sans" } }, /* @__PURE__ */ React9.createElement(
|
|
765
|
+
Image7,
|
|
724
766
|
{
|
|
725
767
|
fixed: true,
|
|
726
768
|
style: {
|
|
@@ -730,16 +772,16 @@ var A4TransactionReport = ({
|
|
|
730
772
|
},
|
|
731
773
|
src: bmpLogo
|
|
732
774
|
}
|
|
733
|
-
), /* @__PURE__ */
|
|
775
|
+
), /* @__PURE__ */ React9.createElement(Text_default, { style: { fontSize: 11, marginTop: 5, textAlign: "right" } }, "Date: ", date.toDateString()), /* @__PURE__ */ React9.createElement(Text_default, { style: { fontSize: 14, fontWeight: "bold" } }, "Transactions Report"), /* @__PURE__ */ React9.createElement(Text_default, { style: { fontSize: 12 } }, `${templeName}`), /* @__PURE__ */ React9.createElement(Text_default, { style: { fontSize: 10, marginTop: 10 } }, "Total Bookings: ", totalAmount.toLocaleString("en-IN", {
|
|
734
776
|
maximumFractionDigits: 2,
|
|
735
777
|
style: "currency",
|
|
736
778
|
currency: "INR"
|
|
737
|
-
})), /* @__PURE__ */
|
|
779
|
+
})), /* @__PURE__ */ React9.createElement(Text_default, { style: { fontSize: 10 } }, "Total Credited Amount: ", totalCreditedAmount.toLocaleString("en-IN", {
|
|
738
780
|
maximumFractionDigits: 2,
|
|
739
781
|
style: "currency",
|
|
740
782
|
currency: "INR"
|
|
741
|
-
})), /* @__PURE__ */
|
|
742
|
-
|
|
783
|
+
})), /* @__PURE__ */ React9.createElement(
|
|
784
|
+
View5,
|
|
743
785
|
{
|
|
744
786
|
style: {
|
|
745
787
|
display: "flex",
|
|
@@ -747,8 +789,8 @@ var A4TransactionReport = ({
|
|
|
747
789
|
marginTop: 20
|
|
748
790
|
}
|
|
749
791
|
},
|
|
750
|
-
/* @__PURE__ */
|
|
751
|
-
|
|
792
|
+
/* @__PURE__ */ React9.createElement(
|
|
793
|
+
View5,
|
|
752
794
|
{
|
|
753
795
|
style: {
|
|
754
796
|
display: "flex",
|
|
@@ -758,8 +800,8 @@ var A4TransactionReport = ({
|
|
|
758
800
|
fontSize: 10
|
|
759
801
|
}
|
|
760
802
|
},
|
|
761
|
-
/* @__PURE__ */
|
|
762
|
-
|
|
803
|
+
/* @__PURE__ */ React9.createElement(
|
|
804
|
+
View5,
|
|
763
805
|
{
|
|
764
806
|
style: {
|
|
765
807
|
padding: 6,
|
|
@@ -767,10 +809,10 @@ var A4TransactionReport = ({
|
|
|
767
809
|
width: "10%"
|
|
768
810
|
}
|
|
769
811
|
},
|
|
770
|
-
/* @__PURE__ */
|
|
812
|
+
/* @__PURE__ */ React9.createElement(Text_default, null, "Sr no")
|
|
771
813
|
),
|
|
772
|
-
/* @__PURE__ */
|
|
773
|
-
|
|
814
|
+
/* @__PURE__ */ React9.createElement(
|
|
815
|
+
View5,
|
|
774
816
|
{
|
|
775
817
|
style: {
|
|
776
818
|
padding: 6,
|
|
@@ -778,10 +820,10 @@ var A4TransactionReport = ({
|
|
|
778
820
|
width: "15%"
|
|
779
821
|
}
|
|
780
822
|
},
|
|
781
|
-
/* @__PURE__ */
|
|
823
|
+
/* @__PURE__ */ React9.createElement(Text_default, null, "Date")
|
|
782
824
|
),
|
|
783
|
-
/* @__PURE__ */
|
|
784
|
-
|
|
825
|
+
/* @__PURE__ */ React9.createElement(
|
|
826
|
+
View5,
|
|
785
827
|
{
|
|
786
828
|
style: {
|
|
787
829
|
padding: 6,
|
|
@@ -789,10 +831,10 @@ var A4TransactionReport = ({
|
|
|
789
831
|
width: "15%"
|
|
790
832
|
}
|
|
791
833
|
},
|
|
792
|
-
/* @__PURE__ */
|
|
834
|
+
/* @__PURE__ */ React9.createElement(Text_default, null, "Time")
|
|
793
835
|
),
|
|
794
|
-
/* @__PURE__ */
|
|
795
|
-
|
|
836
|
+
/* @__PURE__ */ React9.createElement(
|
|
837
|
+
View5,
|
|
796
838
|
{
|
|
797
839
|
style: {
|
|
798
840
|
padding: 6,
|
|
@@ -800,10 +842,10 @@ var A4TransactionReport = ({
|
|
|
800
842
|
width: "20%"
|
|
801
843
|
}
|
|
802
844
|
},
|
|
803
|
-
/* @__PURE__ */
|
|
845
|
+
/* @__PURE__ */ React9.createElement(Text_default, null, "Invoice Number")
|
|
804
846
|
),
|
|
805
|
-
/* @__PURE__ */
|
|
806
|
-
|
|
847
|
+
/* @__PURE__ */ React9.createElement(
|
|
848
|
+
View5,
|
|
807
849
|
{
|
|
808
850
|
style: {
|
|
809
851
|
padding: 6,
|
|
@@ -811,22 +853,22 @@ var A4TransactionReport = ({
|
|
|
811
853
|
width: "20%"
|
|
812
854
|
}
|
|
813
855
|
},
|
|
814
|
-
/* @__PURE__ */
|
|
856
|
+
/* @__PURE__ */ React9.createElement(Text_default, null, "Booking Amount")
|
|
815
857
|
),
|
|
816
|
-
/* @__PURE__ */
|
|
817
|
-
|
|
858
|
+
/* @__PURE__ */ React9.createElement(
|
|
859
|
+
View5,
|
|
818
860
|
{
|
|
819
861
|
style: {
|
|
820
862
|
padding: 6,
|
|
821
863
|
width: "20%"
|
|
822
864
|
}
|
|
823
865
|
},
|
|
824
|
-
/* @__PURE__ */
|
|
866
|
+
/* @__PURE__ */ React9.createElement(Text_default, null, "Credited Amount")
|
|
825
867
|
)
|
|
826
868
|
),
|
|
827
869
|
data.map((item, index) => {
|
|
828
|
-
return /* @__PURE__ */
|
|
829
|
-
|
|
870
|
+
return /* @__PURE__ */ React9.createElement(
|
|
871
|
+
View5,
|
|
830
872
|
{
|
|
831
873
|
style: {
|
|
832
874
|
display: "flex",
|
|
@@ -836,8 +878,8 @@ var A4TransactionReport = ({
|
|
|
836
878
|
fontSize: 10
|
|
837
879
|
}
|
|
838
880
|
},
|
|
839
|
-
/* @__PURE__ */
|
|
840
|
-
|
|
881
|
+
/* @__PURE__ */ React9.createElement(
|
|
882
|
+
View5,
|
|
841
883
|
{
|
|
842
884
|
style: {
|
|
843
885
|
padding: 6,
|
|
@@ -845,10 +887,10 @@ var A4TransactionReport = ({
|
|
|
845
887
|
width: "10%"
|
|
846
888
|
}
|
|
847
889
|
},
|
|
848
|
-
/* @__PURE__ */
|
|
890
|
+
/* @__PURE__ */ React9.createElement(Text_default, null, index + 1)
|
|
849
891
|
),
|
|
850
|
-
/* @__PURE__ */
|
|
851
|
-
|
|
892
|
+
/* @__PURE__ */ React9.createElement(
|
|
893
|
+
View5,
|
|
852
894
|
{
|
|
853
895
|
style: {
|
|
854
896
|
padding: 6,
|
|
@@ -856,10 +898,10 @@ var A4TransactionReport = ({
|
|
|
856
898
|
width: "15%"
|
|
857
899
|
}
|
|
858
900
|
},
|
|
859
|
-
/* @__PURE__ */
|
|
901
|
+
/* @__PURE__ */ React9.createElement(Text_default, null, item.date)
|
|
860
902
|
),
|
|
861
|
-
/* @__PURE__ */
|
|
862
|
-
|
|
903
|
+
/* @__PURE__ */ React9.createElement(
|
|
904
|
+
View5,
|
|
863
905
|
{
|
|
864
906
|
style: {
|
|
865
907
|
padding: 6,
|
|
@@ -867,10 +909,10 @@ var A4TransactionReport = ({
|
|
|
867
909
|
width: "15%"
|
|
868
910
|
}
|
|
869
911
|
},
|
|
870
|
-
/* @__PURE__ */
|
|
912
|
+
/* @__PURE__ */ React9.createElement(Text_default, null, item.time)
|
|
871
913
|
),
|
|
872
|
-
/* @__PURE__ */
|
|
873
|
-
|
|
914
|
+
/* @__PURE__ */ React9.createElement(
|
|
915
|
+
View5,
|
|
874
916
|
{
|
|
875
917
|
style: {
|
|
876
918
|
padding: 6,
|
|
@@ -878,10 +920,10 @@ var A4TransactionReport = ({
|
|
|
878
920
|
width: "20%"
|
|
879
921
|
}
|
|
880
922
|
},
|
|
881
|
-
/* @__PURE__ */
|
|
923
|
+
/* @__PURE__ */ React9.createElement(Text_default, null, item.invoiceNumber)
|
|
882
924
|
),
|
|
883
|
-
item.status == "cancelled" ? /* @__PURE__ */
|
|
884
|
-
|
|
925
|
+
item.status == "cancelled" ? /* @__PURE__ */ React9.createElement(React9.Fragment, null, /* @__PURE__ */ React9.createElement(
|
|
926
|
+
View5,
|
|
885
927
|
{
|
|
886
928
|
style: {
|
|
887
929
|
padding: 6,
|
|
@@ -889,8 +931,8 @@ var A4TransactionReport = ({
|
|
|
889
931
|
width: "40%"
|
|
890
932
|
}
|
|
891
933
|
},
|
|
892
|
-
/* @__PURE__ */
|
|
893
|
-
|
|
934
|
+
/* @__PURE__ */ React9.createElement(
|
|
935
|
+
Text_default,
|
|
894
936
|
{
|
|
895
937
|
style: {
|
|
896
938
|
textAlign: "center"
|
|
@@ -898,8 +940,8 @@ var A4TransactionReport = ({
|
|
|
898
940
|
},
|
|
899
941
|
"CANCELLED"
|
|
900
942
|
)
|
|
901
|
-
)) : /* @__PURE__ */
|
|
902
|
-
|
|
943
|
+
)) : /* @__PURE__ */ React9.createElement(React9.Fragment, null, /* @__PURE__ */ React9.createElement(
|
|
944
|
+
View5,
|
|
903
945
|
{
|
|
904
946
|
style: {
|
|
905
947
|
padding: 6,
|
|
@@ -907,20 +949,20 @@ var A4TransactionReport = ({
|
|
|
907
949
|
width: "20%"
|
|
908
950
|
}
|
|
909
951
|
},
|
|
910
|
-
/* @__PURE__ */
|
|
952
|
+
/* @__PURE__ */ React9.createElement(Text_default, null, item.bookingAmount.toLocaleString("en-IN", {
|
|
911
953
|
maximumFractionDigits: 2,
|
|
912
954
|
style: "currency",
|
|
913
955
|
currency: "INR"
|
|
914
956
|
}))
|
|
915
|
-
), /* @__PURE__ */
|
|
916
|
-
|
|
957
|
+
), /* @__PURE__ */ React9.createElement(
|
|
958
|
+
View5,
|
|
917
959
|
{
|
|
918
960
|
style: {
|
|
919
961
|
padding: 6,
|
|
920
962
|
width: "20%"
|
|
921
963
|
}
|
|
922
964
|
},
|
|
923
|
-
/* @__PURE__ */
|
|
965
|
+
/* @__PURE__ */ React9.createElement(Text_default, null, item.creditedAmount.toLocaleString("en-IN", {
|
|
924
966
|
maximumFractionDigits: 2,
|
|
925
967
|
style: "currency",
|
|
926
968
|
currency: "INR"
|
|
@@ -933,8 +975,8 @@ var A4TransactionReport = ({
|
|
|
933
975
|
var A4TransactionReport_default = A4TransactionReport;
|
|
934
976
|
|
|
935
977
|
// src/sizes/a4/A4PrasadDelivery.tsx
|
|
936
|
-
import { Document as Document5, Image as
|
|
937
|
-
import
|
|
978
|
+
import { Document as Document5, Image as Image8, Page as Page5, View as View6 } from "@react-pdf/renderer";
|
|
979
|
+
import React10 from "react";
|
|
938
980
|
var A4PrasadDelivery = ({
|
|
939
981
|
date,
|
|
940
982
|
templeName,
|
|
@@ -954,8 +996,8 @@ var A4PrasadDelivery = ({
|
|
|
954
996
|
address
|
|
955
997
|
};
|
|
956
998
|
});
|
|
957
|
-
return /* @__PURE__ */
|
|
958
|
-
|
|
999
|
+
return /* @__PURE__ */ React10.createElement(Document5, null, /* @__PURE__ */ React10.createElement(Page5, { size: "A4", style: { padding: 30, fontFamily: "Noto Sans" } }, /* @__PURE__ */ React10.createElement(
|
|
1000
|
+
Image8,
|
|
959
1001
|
{
|
|
960
1002
|
fixed: true,
|
|
961
1003
|
style: {
|
|
@@ -965,8 +1007,8 @@ var A4PrasadDelivery = ({
|
|
|
965
1007
|
},
|
|
966
1008
|
src: bmpLogo
|
|
967
1009
|
}
|
|
968
|
-
), /* @__PURE__ */
|
|
969
|
-
|
|
1010
|
+
), /* @__PURE__ */ React10.createElement(Text_default, { style: { fontSize: 11, marginTop: 5, textAlign: "right" } }, "Date: ", date.toDateString()), /* @__PURE__ */ React10.createElement(Text_default, { style: { fontSize: 14, fontWeight: "bold" } }, "Prasad Delivery Address"), /* @__PURE__ */ React10.createElement(Text_default, { style: { fontSize: 12 } }, `${templeName}`), /* @__PURE__ */ React10.createElement(
|
|
1011
|
+
View6,
|
|
970
1012
|
{
|
|
971
1013
|
style: {
|
|
972
1014
|
display: "flex",
|
|
@@ -974,8 +1016,8 @@ var A4PrasadDelivery = ({
|
|
|
974
1016
|
marginTop: 20
|
|
975
1017
|
}
|
|
976
1018
|
},
|
|
977
|
-
/* @__PURE__ */
|
|
978
|
-
|
|
1019
|
+
/* @__PURE__ */ React10.createElement(
|
|
1020
|
+
View6,
|
|
979
1021
|
{
|
|
980
1022
|
style: {
|
|
981
1023
|
display: "flex",
|
|
@@ -985,8 +1027,8 @@ var A4PrasadDelivery = ({
|
|
|
985
1027
|
fontSize: 10
|
|
986
1028
|
}
|
|
987
1029
|
},
|
|
988
|
-
/* @__PURE__ */
|
|
989
|
-
|
|
1030
|
+
/* @__PURE__ */ React10.createElement(
|
|
1031
|
+
View6,
|
|
990
1032
|
{
|
|
991
1033
|
style: {
|
|
992
1034
|
padding: 6,
|
|
@@ -994,10 +1036,10 @@ var A4PrasadDelivery = ({
|
|
|
994
1036
|
width: "10%"
|
|
995
1037
|
}
|
|
996
1038
|
},
|
|
997
|
-
/* @__PURE__ */
|
|
1039
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, "Date")
|
|
998
1040
|
),
|
|
999
|
-
/* @__PURE__ */
|
|
1000
|
-
|
|
1041
|
+
/* @__PURE__ */ React10.createElement(
|
|
1042
|
+
View6,
|
|
1001
1043
|
{
|
|
1002
1044
|
style: {
|
|
1003
1045
|
padding: 6,
|
|
@@ -1005,10 +1047,10 @@ var A4PrasadDelivery = ({
|
|
|
1005
1047
|
width: "13%"
|
|
1006
1048
|
}
|
|
1007
1049
|
},
|
|
1008
|
-
/* @__PURE__ */
|
|
1050
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, "Invoice")
|
|
1009
1051
|
),
|
|
1010
|
-
/* @__PURE__ */
|
|
1011
|
-
|
|
1052
|
+
/* @__PURE__ */ React10.createElement(
|
|
1053
|
+
View6,
|
|
1012
1054
|
{
|
|
1013
1055
|
style: {
|
|
1014
1056
|
padding: 6,
|
|
@@ -1016,10 +1058,10 @@ var A4PrasadDelivery = ({
|
|
|
1016
1058
|
width: "18%"
|
|
1017
1059
|
}
|
|
1018
1060
|
},
|
|
1019
|
-
/* @__PURE__ */
|
|
1061
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, "Devotee Name")
|
|
1020
1062
|
),
|
|
1021
|
-
/* @__PURE__ */
|
|
1022
|
-
|
|
1063
|
+
/* @__PURE__ */ React10.createElement(
|
|
1064
|
+
View6,
|
|
1023
1065
|
{
|
|
1024
1066
|
style: {
|
|
1025
1067
|
padding: 6,
|
|
@@ -1027,10 +1069,10 @@ var A4PrasadDelivery = ({
|
|
|
1027
1069
|
width: "25%"
|
|
1028
1070
|
}
|
|
1029
1071
|
},
|
|
1030
|
-
/* @__PURE__ */
|
|
1072
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, "Address")
|
|
1031
1073
|
),
|
|
1032
|
-
/* @__PURE__ */
|
|
1033
|
-
|
|
1074
|
+
/* @__PURE__ */ React10.createElement(
|
|
1075
|
+
View6,
|
|
1034
1076
|
{
|
|
1035
1077
|
style: {
|
|
1036
1078
|
padding: 6,
|
|
@@ -1038,22 +1080,22 @@ var A4PrasadDelivery = ({
|
|
|
1038
1080
|
width: "20%"
|
|
1039
1081
|
}
|
|
1040
1082
|
},
|
|
1041
|
-
/* @__PURE__ */
|
|
1083
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, "Puja Name")
|
|
1042
1084
|
),
|
|
1043
|
-
/* @__PURE__ */
|
|
1044
|
-
|
|
1085
|
+
/* @__PURE__ */ React10.createElement(
|
|
1086
|
+
View6,
|
|
1045
1087
|
{
|
|
1046
1088
|
style: {
|
|
1047
1089
|
padding: 6,
|
|
1048
1090
|
width: "15%"
|
|
1049
1091
|
}
|
|
1050
1092
|
},
|
|
1051
|
-
/* @__PURE__ */
|
|
1093
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, "Amount")
|
|
1052
1094
|
)
|
|
1053
1095
|
),
|
|
1054
1096
|
data.map((item, index) => {
|
|
1055
|
-
return /* @__PURE__ */
|
|
1056
|
-
|
|
1097
|
+
return /* @__PURE__ */ React10.createElement(
|
|
1098
|
+
View6,
|
|
1057
1099
|
{
|
|
1058
1100
|
style: {
|
|
1059
1101
|
display: "flex",
|
|
@@ -1063,8 +1105,8 @@ var A4PrasadDelivery = ({
|
|
|
1063
1105
|
fontSize: 10
|
|
1064
1106
|
}
|
|
1065
1107
|
},
|
|
1066
|
-
/* @__PURE__ */
|
|
1067
|
-
|
|
1108
|
+
/* @__PURE__ */ React10.createElement(
|
|
1109
|
+
View6,
|
|
1068
1110
|
{
|
|
1069
1111
|
style: {
|
|
1070
1112
|
padding: 6,
|
|
@@ -1072,14 +1114,14 @@ var A4PrasadDelivery = ({
|
|
|
1072
1114
|
width: "10%"
|
|
1073
1115
|
}
|
|
1074
1116
|
},
|
|
1075
|
-
/* @__PURE__ */
|
|
1117
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, new Date(item.date).toLocaleDateString("en-GB", {
|
|
1076
1118
|
day: "2-digit",
|
|
1077
1119
|
month: "2-digit",
|
|
1078
1120
|
year: "2-digit"
|
|
1079
1121
|
}))
|
|
1080
1122
|
),
|
|
1081
|
-
/* @__PURE__ */
|
|
1082
|
-
|
|
1123
|
+
/* @__PURE__ */ React10.createElement(
|
|
1124
|
+
View6,
|
|
1083
1125
|
{
|
|
1084
1126
|
style: {
|
|
1085
1127
|
padding: 6,
|
|
@@ -1087,10 +1129,10 @@ var A4PrasadDelivery = ({
|
|
|
1087
1129
|
width: "13%"
|
|
1088
1130
|
}
|
|
1089
1131
|
},
|
|
1090
|
-
/* @__PURE__ */
|
|
1132
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, item.invoiceNumber)
|
|
1091
1133
|
),
|
|
1092
|
-
/* @__PURE__ */
|
|
1093
|
-
|
|
1134
|
+
/* @__PURE__ */ React10.createElement(
|
|
1135
|
+
View6,
|
|
1094
1136
|
{
|
|
1095
1137
|
style: {
|
|
1096
1138
|
padding: 6,
|
|
@@ -1098,10 +1140,10 @@ var A4PrasadDelivery = ({
|
|
|
1098
1140
|
width: "18%"
|
|
1099
1141
|
}
|
|
1100
1142
|
},
|
|
1101
|
-
/* @__PURE__ */
|
|
1143
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, item.devoteeName)
|
|
1102
1144
|
),
|
|
1103
|
-
/* @__PURE__ */
|
|
1104
|
-
|
|
1145
|
+
/* @__PURE__ */ React10.createElement(
|
|
1146
|
+
View6,
|
|
1105
1147
|
{
|
|
1106
1148
|
style: {
|
|
1107
1149
|
padding: 6,
|
|
@@ -1109,10 +1151,10 @@ var A4PrasadDelivery = ({
|
|
|
1109
1151
|
width: "25%"
|
|
1110
1152
|
}
|
|
1111
1153
|
},
|
|
1112
|
-
/* @__PURE__ */
|
|
1154
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, item.address)
|
|
1113
1155
|
),
|
|
1114
|
-
/* @__PURE__ */
|
|
1115
|
-
|
|
1156
|
+
/* @__PURE__ */ React10.createElement(
|
|
1157
|
+
View6,
|
|
1116
1158
|
{
|
|
1117
1159
|
style: {
|
|
1118
1160
|
padding: 6,
|
|
@@ -1120,17 +1162,17 @@ var A4PrasadDelivery = ({
|
|
|
1120
1162
|
width: "20%"
|
|
1121
1163
|
}
|
|
1122
1164
|
},
|
|
1123
|
-
/* @__PURE__ */
|
|
1165
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, item.pujaName)
|
|
1124
1166
|
),
|
|
1125
|
-
/* @__PURE__ */
|
|
1126
|
-
|
|
1167
|
+
/* @__PURE__ */ React10.createElement(
|
|
1168
|
+
View6,
|
|
1127
1169
|
{
|
|
1128
1170
|
style: {
|
|
1129
1171
|
padding: 6,
|
|
1130
1172
|
width: "15%"
|
|
1131
1173
|
}
|
|
1132
1174
|
},
|
|
1133
|
-
/* @__PURE__ */
|
|
1175
|
+
/* @__PURE__ */ React10.createElement(Text_default, null, item.amount.toLocaleString("en-IN", {
|
|
1134
1176
|
maximumFractionDigits: 2,
|
|
1135
1177
|
style: "currency",
|
|
1136
1178
|
currency: "INR"
|
|
@@ -1143,8 +1185,8 @@ var A4PrasadDelivery = ({
|
|
|
1143
1185
|
var A4PrasadDelivery_default = A4PrasadDelivery;
|
|
1144
1186
|
|
|
1145
1187
|
// src/sizes/a4/A4PrasadReport.tsx
|
|
1146
|
-
import { Document as Document6, Image as
|
|
1147
|
-
import
|
|
1188
|
+
import { Document as Document6, Image as Image9, Page as Page6, View as View7 } from "@react-pdf/renderer";
|
|
1189
|
+
import React11 from "react";
|
|
1148
1190
|
var A4PrasadReport = ({
|
|
1149
1191
|
date,
|
|
1150
1192
|
templeName,
|
|
@@ -1153,8 +1195,8 @@ var A4PrasadReport = ({
|
|
|
1153
1195
|
const sortedPrasadItems = data.sort((a, b) => {
|
|
1154
1196
|
return a.invoiceNumber.localeCompare(b.invoiceNumber);
|
|
1155
1197
|
});
|
|
1156
|
-
return /* @__PURE__ */
|
|
1157
|
-
|
|
1198
|
+
return /* @__PURE__ */ React11.createElement(Document6, null, /* @__PURE__ */ React11.createElement(Page6, { size: "A4", style: { padding: 30, fontFamily: "Noto Sans" } }, /* @__PURE__ */ React11.createElement(
|
|
1199
|
+
Image9,
|
|
1158
1200
|
{
|
|
1159
1201
|
fixed: true,
|
|
1160
1202
|
style: {
|
|
@@ -1164,8 +1206,8 @@ var A4PrasadReport = ({
|
|
|
1164
1206
|
},
|
|
1165
1207
|
src: bmpLogo
|
|
1166
1208
|
}
|
|
1167
|
-
), /* @__PURE__ */
|
|
1168
|
-
|
|
1209
|
+
), /* @__PURE__ */ React11.createElement(Text_default, { style: { fontSize: 11, marginTop: 5, textAlign: "right" } }, "Date: ", date.toDateString()), /* @__PURE__ */ React11.createElement(Text_default, { style: { fontSize: 14, fontWeight: "bold" } }, "Prasad Report"), /* @__PURE__ */ React11.createElement(Text_default, { style: { fontSize: 12 } }, `${templeName}`), /* @__PURE__ */ React11.createElement(
|
|
1210
|
+
View7,
|
|
1169
1211
|
{
|
|
1170
1212
|
style: {
|
|
1171
1213
|
display: "flex",
|
|
@@ -1173,8 +1215,8 @@ var A4PrasadReport = ({
|
|
|
1173
1215
|
marginTop: 20
|
|
1174
1216
|
}
|
|
1175
1217
|
},
|
|
1176
|
-
/* @__PURE__ */
|
|
1177
|
-
|
|
1218
|
+
/* @__PURE__ */ React11.createElement(
|
|
1219
|
+
View7,
|
|
1178
1220
|
{
|
|
1179
1221
|
style: {
|
|
1180
1222
|
display: "flex",
|
|
@@ -1184,8 +1226,8 @@ var A4PrasadReport = ({
|
|
|
1184
1226
|
fontSize: 10
|
|
1185
1227
|
}
|
|
1186
1228
|
},
|
|
1187
|
-
/* @__PURE__ */
|
|
1188
|
-
|
|
1229
|
+
/* @__PURE__ */ React11.createElement(
|
|
1230
|
+
View7,
|
|
1189
1231
|
{
|
|
1190
1232
|
style: {
|
|
1191
1233
|
padding: 6,
|
|
@@ -1193,10 +1235,10 @@ var A4PrasadReport = ({
|
|
|
1193
1235
|
width: "10%"
|
|
1194
1236
|
}
|
|
1195
1237
|
},
|
|
1196
|
-
/* @__PURE__ */
|
|
1238
|
+
/* @__PURE__ */ React11.createElement(Text_default, null, "Sr no")
|
|
1197
1239
|
),
|
|
1198
|
-
/* @__PURE__ */
|
|
1199
|
-
|
|
1240
|
+
/* @__PURE__ */ React11.createElement(
|
|
1241
|
+
View7,
|
|
1200
1242
|
{
|
|
1201
1243
|
style: {
|
|
1202
1244
|
padding: 6,
|
|
@@ -1204,10 +1246,10 @@ var A4PrasadReport = ({
|
|
|
1204
1246
|
width: "20%"
|
|
1205
1247
|
}
|
|
1206
1248
|
},
|
|
1207
|
-
/* @__PURE__ */
|
|
1249
|
+
/* @__PURE__ */ React11.createElement(Text_default, null, "Invoice Number")
|
|
1208
1250
|
),
|
|
1209
|
-
/* @__PURE__ */
|
|
1210
|
-
|
|
1251
|
+
/* @__PURE__ */ React11.createElement(
|
|
1252
|
+
View7,
|
|
1211
1253
|
{
|
|
1212
1254
|
style: {
|
|
1213
1255
|
padding: 6,
|
|
@@ -1215,10 +1257,10 @@ var A4PrasadReport = ({
|
|
|
1215
1257
|
width: "30%"
|
|
1216
1258
|
}
|
|
1217
1259
|
},
|
|
1218
|
-
/* @__PURE__ */
|
|
1260
|
+
/* @__PURE__ */ React11.createElement(Text_default, null, "Devotee Name")
|
|
1219
1261
|
),
|
|
1220
|
-
/* @__PURE__ */
|
|
1221
|
-
|
|
1262
|
+
/* @__PURE__ */ React11.createElement(
|
|
1263
|
+
View7,
|
|
1222
1264
|
{
|
|
1223
1265
|
style: {
|
|
1224
1266
|
padding: 6,
|
|
@@ -1226,22 +1268,22 @@ var A4PrasadReport = ({
|
|
|
1226
1268
|
width: "30%"
|
|
1227
1269
|
}
|
|
1228
1270
|
},
|
|
1229
|
-
/* @__PURE__ */
|
|
1271
|
+
/* @__PURE__ */ React11.createElement(Text_default, null, "Prasad Name")
|
|
1230
1272
|
),
|
|
1231
|
-
/* @__PURE__ */
|
|
1232
|
-
|
|
1273
|
+
/* @__PURE__ */ React11.createElement(
|
|
1274
|
+
View7,
|
|
1233
1275
|
{
|
|
1234
1276
|
style: {
|
|
1235
1277
|
padding: 6,
|
|
1236
1278
|
width: "10%"
|
|
1237
1279
|
}
|
|
1238
1280
|
},
|
|
1239
|
-
/* @__PURE__ */
|
|
1281
|
+
/* @__PURE__ */ React11.createElement(Text_default, null, "Qty")
|
|
1240
1282
|
)
|
|
1241
1283
|
),
|
|
1242
1284
|
data.map((item, index) => {
|
|
1243
|
-
return /* @__PURE__ */
|
|
1244
|
-
|
|
1285
|
+
return /* @__PURE__ */ React11.createElement(
|
|
1286
|
+
View7,
|
|
1245
1287
|
{
|
|
1246
1288
|
style: {
|
|
1247
1289
|
display: "flex",
|
|
@@ -1251,8 +1293,8 @@ var A4PrasadReport = ({
|
|
|
1251
1293
|
fontSize: 10
|
|
1252
1294
|
}
|
|
1253
1295
|
},
|
|
1254
|
-
/* @__PURE__ */
|
|
1255
|
-
|
|
1296
|
+
/* @__PURE__ */ React11.createElement(
|
|
1297
|
+
View7,
|
|
1256
1298
|
{
|
|
1257
1299
|
style: {
|
|
1258
1300
|
padding: 6,
|
|
@@ -1260,10 +1302,10 @@ var A4PrasadReport = ({
|
|
|
1260
1302
|
width: "10%"
|
|
1261
1303
|
}
|
|
1262
1304
|
},
|
|
1263
|
-
/* @__PURE__ */
|
|
1305
|
+
/* @__PURE__ */ React11.createElement(Text_default, null, index + 1)
|
|
1264
1306
|
),
|
|
1265
|
-
/* @__PURE__ */
|
|
1266
|
-
|
|
1307
|
+
/* @__PURE__ */ React11.createElement(
|
|
1308
|
+
View7,
|
|
1267
1309
|
{
|
|
1268
1310
|
style: {
|
|
1269
1311
|
padding: 6,
|
|
@@ -1271,10 +1313,10 @@ var A4PrasadReport = ({
|
|
|
1271
1313
|
width: "20%"
|
|
1272
1314
|
}
|
|
1273
1315
|
},
|
|
1274
|
-
/* @__PURE__ */
|
|
1316
|
+
/* @__PURE__ */ React11.createElement(Text_default, null, item.invoiceNumber)
|
|
1275
1317
|
),
|
|
1276
|
-
/* @__PURE__ */
|
|
1277
|
-
|
|
1318
|
+
/* @__PURE__ */ React11.createElement(
|
|
1319
|
+
View7,
|
|
1278
1320
|
{
|
|
1279
1321
|
style: {
|
|
1280
1322
|
padding: 6,
|
|
@@ -1282,10 +1324,10 @@ var A4PrasadReport = ({
|
|
|
1282
1324
|
width: "30%"
|
|
1283
1325
|
}
|
|
1284
1326
|
},
|
|
1285
|
-
/* @__PURE__ */
|
|
1327
|
+
/* @__PURE__ */ React11.createElement(Text_default, null, item.devoteeName)
|
|
1286
1328
|
),
|
|
1287
|
-
/* @__PURE__ */
|
|
1288
|
-
|
|
1329
|
+
/* @__PURE__ */ React11.createElement(
|
|
1330
|
+
View7,
|
|
1289
1331
|
{
|
|
1290
1332
|
style: {
|
|
1291
1333
|
padding: 6,
|
|
@@ -1293,17 +1335,17 @@ var A4PrasadReport = ({
|
|
|
1293
1335
|
width: "30%"
|
|
1294
1336
|
}
|
|
1295
1337
|
},
|
|
1296
|
-
/* @__PURE__ */
|
|
1338
|
+
/* @__PURE__ */ React11.createElement(Text_default, null, item.prasadName)
|
|
1297
1339
|
),
|
|
1298
|
-
/* @__PURE__ */
|
|
1299
|
-
|
|
1340
|
+
/* @__PURE__ */ React11.createElement(
|
|
1341
|
+
View7,
|
|
1300
1342
|
{
|
|
1301
1343
|
style: {
|
|
1302
1344
|
padding: 6,
|
|
1303
1345
|
width: "10%"
|
|
1304
1346
|
}
|
|
1305
1347
|
},
|
|
1306
|
-
/* @__PURE__ */
|
|
1348
|
+
/* @__PURE__ */ React11.createElement(Text_default, null, item.quantity)
|
|
1307
1349
|
)
|
|
1308
1350
|
);
|
|
1309
1351
|
})
|
|
@@ -1312,8 +1354,14 @@ var A4PrasadReport = ({
|
|
|
1312
1354
|
var A4PrasadReport_default = A4PrasadReport;
|
|
1313
1355
|
|
|
1314
1356
|
// src/sizes/a4/A4PujaList.tsx
|
|
1315
|
-
import { Document as Document7, Image as
|
|
1316
|
-
import
|
|
1357
|
+
import { Document as Document7, Image as Image10, Page as Page7, StyleSheet as StyleSheet3, View as View8 } from "@react-pdf/renderer";
|
|
1358
|
+
import React12 from "react";
|
|
1359
|
+
var styles3 = StyleSheet3.create({
|
|
1360
|
+
malayalamText: {
|
|
1361
|
+
fontFamily: "Noto Sans Malayalam",
|
|
1362
|
+
fontSize: 12
|
|
1363
|
+
}
|
|
1364
|
+
});
|
|
1317
1365
|
var A4PujaList = ({
|
|
1318
1366
|
date,
|
|
1319
1367
|
templeName,
|
|
@@ -1321,8 +1369,8 @@ var A4PujaList = ({
|
|
|
1321
1369
|
}) => {
|
|
1322
1370
|
let serialOfNormalPujas = 0;
|
|
1323
1371
|
let serialOfEarlyReminders = 0;
|
|
1324
|
-
return /* @__PURE__ */
|
|
1325
|
-
|
|
1372
|
+
return /* @__PURE__ */ React12.createElement(React12.Fragment, null, /* @__PURE__ */ React12.createElement(Document7, null, /* @__PURE__ */ React12.createElement(Page7, { size: "A4", style: { padding: 30, fontFamily: "Noto Sans" } }, /* @__PURE__ */ React12.createElement(
|
|
1373
|
+
Image10,
|
|
1326
1374
|
{
|
|
1327
1375
|
fixed: true,
|
|
1328
1376
|
style: {
|
|
@@ -1332,10 +1380,10 @@ var A4PujaList = ({
|
|
|
1332
1380
|
},
|
|
1333
1381
|
src: bmpLogo
|
|
1334
1382
|
}
|
|
1335
|
-
), /* @__PURE__ */
|
|
1383
|
+
), /* @__PURE__ */ React12.createElement(Text_default, { style: { fontSize: 11, marginTop: 5, textAlign: "right" } }, "Date: ", date.toDateString()), pujas.some(
|
|
1336
1384
|
(puja) => puja.bookings.some((booking) => booking.is_early_reminder)
|
|
1337
|
-
) && /* @__PURE__ */
|
|
1338
|
-
|
|
1385
|
+
) && /* @__PURE__ */ React12.createElement(React12.Fragment, null, /* @__PURE__ */ React12.createElement(Text_default, { style: { fontSize: 14, fontWeight: "bold", marginTop: 10 } }, "Early Reminders for Upcoming Pujas"), /* @__PURE__ */ React12.createElement(View8, { wrap: false, style: { marginTop: 10 } }, /* @__PURE__ */ React12.createElement(
|
|
1386
|
+
View8,
|
|
1339
1387
|
{
|
|
1340
1388
|
style: {
|
|
1341
1389
|
display: "flex",
|
|
@@ -1343,8 +1391,8 @@ var A4PujaList = ({
|
|
|
1343
1391
|
border: "1px solid black"
|
|
1344
1392
|
}
|
|
1345
1393
|
},
|
|
1346
|
-
/* @__PURE__ */
|
|
1347
|
-
|
|
1394
|
+
/* @__PURE__ */ React12.createElement(
|
|
1395
|
+
View8,
|
|
1348
1396
|
{
|
|
1349
1397
|
style: {
|
|
1350
1398
|
padding: 6,
|
|
@@ -1354,10 +1402,10 @@ var A4PujaList = ({
|
|
|
1354
1402
|
width: "10%"
|
|
1355
1403
|
}
|
|
1356
1404
|
},
|
|
1357
|
-
/* @__PURE__ */
|
|
1405
|
+
/* @__PURE__ */ React12.createElement(Text_default, null, "Sr No")
|
|
1358
1406
|
),
|
|
1359
|
-
/* @__PURE__ */
|
|
1360
|
-
|
|
1407
|
+
/* @__PURE__ */ React12.createElement(
|
|
1408
|
+
View8,
|
|
1361
1409
|
{
|
|
1362
1410
|
style: {
|
|
1363
1411
|
padding: 6,
|
|
@@ -1367,10 +1415,10 @@ var A4PujaList = ({
|
|
|
1367
1415
|
width: "60%"
|
|
1368
1416
|
}
|
|
1369
1417
|
},
|
|
1370
|
-
/* @__PURE__ */
|
|
1418
|
+
/* @__PURE__ */ React12.createElement(Text_default, null, "Puja Name")
|
|
1371
1419
|
),
|
|
1372
|
-
/* @__PURE__ */
|
|
1373
|
-
|
|
1420
|
+
/* @__PURE__ */ React12.createElement(
|
|
1421
|
+
View8,
|
|
1374
1422
|
{
|
|
1375
1423
|
style: {
|
|
1376
1424
|
padding: 6,
|
|
@@ -1380,10 +1428,10 @@ var A4PujaList = ({
|
|
|
1380
1428
|
width: "10%"
|
|
1381
1429
|
}
|
|
1382
1430
|
},
|
|
1383
|
-
/* @__PURE__ */
|
|
1431
|
+
/* @__PURE__ */ React12.createElement(Text_default, null, "Qty")
|
|
1384
1432
|
),
|
|
1385
|
-
/* @__PURE__ */
|
|
1386
|
-
|
|
1433
|
+
/* @__PURE__ */ React12.createElement(
|
|
1434
|
+
View8,
|
|
1387
1435
|
{
|
|
1388
1436
|
style: {
|
|
1389
1437
|
padding: 6,
|
|
@@ -1393,15 +1441,15 @@ var A4PujaList = ({
|
|
|
1393
1441
|
width: "20%"
|
|
1394
1442
|
}
|
|
1395
1443
|
},
|
|
1396
|
-
/* @__PURE__ */
|
|
1444
|
+
/* @__PURE__ */ React12.createElement(Text_default, null, "Date")
|
|
1397
1445
|
)
|
|
1398
1446
|
))), pujas.some(
|
|
1399
1447
|
(puja) => puja.bookings.some((booking) => booking.is_early_reminder)
|
|
1400
1448
|
) ? pujas.flatMap(
|
|
1401
1449
|
(puja, pujaIndex) => puja.bookings.filter((booking) => booking.is_early_reminder).map((booking, bookingIndex) => {
|
|
1402
1450
|
serialOfEarlyReminders++;
|
|
1403
|
-
return /* @__PURE__ */
|
|
1404
|
-
|
|
1451
|
+
return /* @__PURE__ */ React12.createElement(
|
|
1452
|
+
View8,
|
|
1405
1453
|
{
|
|
1406
1454
|
key: `${pujaIndex}-${bookingIndex}`,
|
|
1407
1455
|
style: {
|
|
@@ -1411,8 +1459,8 @@ var A4PujaList = ({
|
|
|
1411
1459
|
borderTop: "none"
|
|
1412
1460
|
}
|
|
1413
1461
|
},
|
|
1414
|
-
/* @__PURE__ */
|
|
1415
|
-
|
|
1462
|
+
/* @__PURE__ */ React12.createElement(
|
|
1463
|
+
View8,
|
|
1416
1464
|
{
|
|
1417
1465
|
style: {
|
|
1418
1466
|
padding: 6,
|
|
@@ -1421,10 +1469,10 @@ var A4PujaList = ({
|
|
|
1421
1469
|
width: "10%"
|
|
1422
1470
|
}
|
|
1423
1471
|
},
|
|
1424
|
-
/* @__PURE__ */
|
|
1472
|
+
/* @__PURE__ */ React12.createElement(Text_default, null, serialOfEarlyReminders)
|
|
1425
1473
|
),
|
|
1426
|
-
/* @__PURE__ */
|
|
1427
|
-
|
|
1474
|
+
/* @__PURE__ */ React12.createElement(
|
|
1475
|
+
View8,
|
|
1428
1476
|
{
|
|
1429
1477
|
style: {
|
|
1430
1478
|
padding: 6,
|
|
@@ -1433,10 +1481,10 @@ var A4PujaList = ({
|
|
|
1433
1481
|
width: "60%"
|
|
1434
1482
|
}
|
|
1435
1483
|
},
|
|
1436
|
-
/* @__PURE__ */
|
|
1484
|
+
/* @__PURE__ */ React12.createElement(Text_default, null, puja.name)
|
|
1437
1485
|
),
|
|
1438
|
-
/* @__PURE__ */
|
|
1439
|
-
|
|
1486
|
+
/* @__PURE__ */ React12.createElement(
|
|
1487
|
+
View8,
|
|
1440
1488
|
{
|
|
1441
1489
|
style: {
|
|
1442
1490
|
padding: 6,
|
|
@@ -1445,10 +1493,10 @@ var A4PujaList = ({
|
|
|
1445
1493
|
width: "10%"
|
|
1446
1494
|
}
|
|
1447
1495
|
},
|
|
1448
|
-
/* @__PURE__ */
|
|
1496
|
+
/* @__PURE__ */ React12.createElement(Text_default, null, booking.quantity)
|
|
1449
1497
|
),
|
|
1450
|
-
/* @__PURE__ */
|
|
1451
|
-
|
|
1498
|
+
/* @__PURE__ */ React12.createElement(
|
|
1499
|
+
View8,
|
|
1452
1500
|
{
|
|
1453
1501
|
style: {
|
|
1454
1502
|
padding: 6,
|
|
@@ -1457,12 +1505,12 @@ var A4PujaList = ({
|
|
|
1457
1505
|
width: "20%"
|
|
1458
1506
|
}
|
|
1459
1507
|
},
|
|
1460
|
-
/* @__PURE__ */
|
|
1508
|
+
/* @__PURE__ */ React12.createElement(Text_default, null, booking.date ? new Date(booking.date).toDateString() : "")
|
|
1461
1509
|
)
|
|
1462
1510
|
);
|
|
1463
1511
|
})
|
|
1464
|
-
) : null, /* @__PURE__ */
|
|
1465
|
-
|
|
1512
|
+
) : null, /* @__PURE__ */ React12.createElement(Text_default, { style: { fontSize: 14, fontWeight: "bold", marginTop: 20 } }, "Puja List"), /* @__PURE__ */ React12.createElement(Text_default, { style: { fontSize: 12 } }, `${templeName}`), /* @__PURE__ */ React12.createElement(
|
|
1513
|
+
View8,
|
|
1466
1514
|
{
|
|
1467
1515
|
style: {
|
|
1468
1516
|
display: "flex",
|
|
@@ -1471,11 +1519,11 @@ var A4PujaList = ({
|
|
|
1471
1519
|
}
|
|
1472
1520
|
},
|
|
1473
1521
|
pujas.map((puja, pujaIndex) => {
|
|
1474
|
-
if (puja.bookings.
|
|
1522
|
+
if (puja.bookings.every((booking) => booking.is_early_reminder))
|
|
1475
1523
|
return null;
|
|
1476
1524
|
serialOfNormalPujas = 0;
|
|
1477
|
-
return /* @__PURE__ */
|
|
1478
|
-
|
|
1525
|
+
return /* @__PURE__ */ React12.createElement(React12.Fragment, null, /* @__PURE__ */ React12.createElement(View8, { wrap: false, style: { marginBottom: 25 } }, /* @__PURE__ */ React12.createElement(View8, null, /* @__PURE__ */ React12.createElement(
|
|
1526
|
+
Text_default,
|
|
1479
1527
|
{
|
|
1480
1528
|
style: {
|
|
1481
1529
|
fontSize: 10,
|
|
@@ -1489,8 +1537,8 @@ var A4PujaList = ({
|
|
|
1489
1537
|
puja.name,
|
|
1490
1538
|
" - ",
|
|
1491
1539
|
puja.bookings.length
|
|
1492
|
-
)), /* @__PURE__ */
|
|
1493
|
-
|
|
1540
|
+
)), /* @__PURE__ */ React12.createElement(
|
|
1541
|
+
View8,
|
|
1494
1542
|
{
|
|
1495
1543
|
style: {
|
|
1496
1544
|
display: "flex",
|
|
@@ -1498,8 +1546,8 @@ var A4PujaList = ({
|
|
|
1498
1546
|
border: "1px solid black"
|
|
1499
1547
|
}
|
|
1500
1548
|
},
|
|
1501
|
-
/* @__PURE__ */
|
|
1502
|
-
|
|
1549
|
+
/* @__PURE__ */ React12.createElement(
|
|
1550
|
+
View8,
|
|
1503
1551
|
{
|
|
1504
1552
|
style: {
|
|
1505
1553
|
padding: 6,
|
|
@@ -1509,10 +1557,10 @@ var A4PujaList = ({
|
|
|
1509
1557
|
width: "10%"
|
|
1510
1558
|
}
|
|
1511
1559
|
},
|
|
1512
|
-
/* @__PURE__ */
|
|
1560
|
+
/* @__PURE__ */ React12.createElement(Text_default, null, "Sr No")
|
|
1513
1561
|
),
|
|
1514
|
-
/* @__PURE__ */
|
|
1515
|
-
|
|
1562
|
+
/* @__PURE__ */ React12.createElement(
|
|
1563
|
+
View8,
|
|
1516
1564
|
{
|
|
1517
1565
|
style: {
|
|
1518
1566
|
padding: 6,
|
|
@@ -1522,10 +1570,10 @@ var A4PujaList = ({
|
|
|
1522
1570
|
width: "20%"
|
|
1523
1571
|
}
|
|
1524
1572
|
},
|
|
1525
|
-
/* @__PURE__ */
|
|
1573
|
+
/* @__PURE__ */ React12.createElement(Text_default, null, "Invoice No")
|
|
1526
1574
|
),
|
|
1527
|
-
/* @__PURE__ */
|
|
1528
|
-
|
|
1575
|
+
/* @__PURE__ */ React12.createElement(
|
|
1576
|
+
View8,
|
|
1529
1577
|
{
|
|
1530
1578
|
style: {
|
|
1531
1579
|
padding: 6,
|
|
@@ -1535,10 +1583,10 @@ var A4PujaList = ({
|
|
|
1535
1583
|
width: "35%"
|
|
1536
1584
|
}
|
|
1537
1585
|
},
|
|
1538
|
-
/* @__PURE__ */
|
|
1586
|
+
/* @__PURE__ */ React12.createElement(Text_default, null, "Devotee Name")
|
|
1539
1587
|
),
|
|
1540
|
-
/* @__PURE__ */
|
|
1541
|
-
|
|
1588
|
+
/* @__PURE__ */ React12.createElement(
|
|
1589
|
+
View8,
|
|
1542
1590
|
{
|
|
1543
1591
|
style: {
|
|
1544
1592
|
padding: 6,
|
|
@@ -1548,10 +1596,10 @@ var A4PujaList = ({
|
|
|
1548
1596
|
width: "25%"
|
|
1549
1597
|
}
|
|
1550
1598
|
},
|
|
1551
|
-
/* @__PURE__ */
|
|
1599
|
+
/* @__PURE__ */ React12.createElement(Text_default, null, "Nakshatra")
|
|
1552
1600
|
),
|
|
1553
|
-
/* @__PURE__ */
|
|
1554
|
-
|
|
1601
|
+
/* @__PURE__ */ React12.createElement(
|
|
1602
|
+
View8,
|
|
1555
1603
|
{
|
|
1556
1604
|
style: {
|
|
1557
1605
|
padding: 6,
|
|
@@ -1561,12 +1609,13 @@ var A4PujaList = ({
|
|
|
1561
1609
|
width: "10%"
|
|
1562
1610
|
}
|
|
1563
1611
|
},
|
|
1564
|
-
/* @__PURE__ */
|
|
1612
|
+
/* @__PURE__ */ React12.createElement(Text_default, null, "Qty")
|
|
1565
1613
|
)
|
|
1566
1614
|
), puja.bookings.map((booking, bookingIndex) => {
|
|
1615
|
+
if (booking.is_early_reminder) return null;
|
|
1567
1616
|
serialOfNormalPujas++;
|
|
1568
|
-
return /* @__PURE__ */
|
|
1569
|
-
|
|
1617
|
+
return /* @__PURE__ */ React12.createElement(React12.Fragment, null, /* @__PURE__ */ React12.createElement(
|
|
1618
|
+
View8,
|
|
1570
1619
|
{
|
|
1571
1620
|
style: {
|
|
1572
1621
|
display: "flex",
|
|
@@ -1576,8 +1625,8 @@ var A4PujaList = ({
|
|
|
1576
1625
|
width: "100%"
|
|
1577
1626
|
}
|
|
1578
1627
|
},
|
|
1579
|
-
/* @__PURE__ */
|
|
1580
|
-
|
|
1628
|
+
/* @__PURE__ */ React12.createElement(
|
|
1629
|
+
View8,
|
|
1581
1630
|
{
|
|
1582
1631
|
style: {
|
|
1583
1632
|
padding: 6,
|
|
@@ -1586,10 +1635,10 @@ var A4PujaList = ({
|
|
|
1586
1635
|
width: "10%"
|
|
1587
1636
|
}
|
|
1588
1637
|
},
|
|
1589
|
-
/* @__PURE__ */
|
|
1638
|
+
/* @__PURE__ */ React12.createElement(Text_default, null, serialOfNormalPujas)
|
|
1590
1639
|
),
|
|
1591
|
-
/* @__PURE__ */
|
|
1592
|
-
|
|
1640
|
+
/* @__PURE__ */ React12.createElement(
|
|
1641
|
+
View8,
|
|
1593
1642
|
{
|
|
1594
1643
|
style: {
|
|
1595
1644
|
display: "flex",
|
|
@@ -1597,16 +1646,16 @@ var A4PujaList = ({
|
|
|
1597
1646
|
width: "90%"
|
|
1598
1647
|
}
|
|
1599
1648
|
},
|
|
1600
|
-
/* @__PURE__ */
|
|
1601
|
-
|
|
1649
|
+
/* @__PURE__ */ React12.createElement(
|
|
1650
|
+
View8,
|
|
1602
1651
|
{
|
|
1603
1652
|
style: {
|
|
1604
1653
|
display: "flex",
|
|
1605
1654
|
flexDirection: "row"
|
|
1606
1655
|
}
|
|
1607
1656
|
},
|
|
1608
|
-
/* @__PURE__ */
|
|
1609
|
-
|
|
1657
|
+
/* @__PURE__ */ React12.createElement(
|
|
1658
|
+
View8,
|
|
1610
1659
|
{
|
|
1611
1660
|
style: {
|
|
1612
1661
|
padding: 6,
|
|
@@ -1615,10 +1664,10 @@ var A4PujaList = ({
|
|
|
1615
1664
|
width: `${20 * 1.11111}%`
|
|
1616
1665
|
}
|
|
1617
1666
|
},
|
|
1618
|
-
/* @__PURE__ */
|
|
1667
|
+
/* @__PURE__ */ React12.createElement(Text_default, null, booking.invoiceNumber)
|
|
1619
1668
|
),
|
|
1620
|
-
/* @__PURE__ */
|
|
1621
|
-
|
|
1669
|
+
/* @__PURE__ */ React12.createElement(
|
|
1670
|
+
View8,
|
|
1622
1671
|
{
|
|
1623
1672
|
style: {
|
|
1624
1673
|
padding: 6,
|
|
@@ -1627,10 +1676,10 @@ var A4PujaList = ({
|
|
|
1627
1676
|
width: `${35 * 1.11111}%`
|
|
1628
1677
|
}
|
|
1629
1678
|
},
|
|
1630
|
-
/* @__PURE__ */
|
|
1679
|
+
/* @__PURE__ */ React12.createElement(Text_default, null, booking.devoteeName)
|
|
1631
1680
|
),
|
|
1632
|
-
/* @__PURE__ */
|
|
1633
|
-
|
|
1681
|
+
/* @__PURE__ */ React12.createElement(
|
|
1682
|
+
View8,
|
|
1634
1683
|
{
|
|
1635
1684
|
style: {
|
|
1636
1685
|
padding: 6,
|
|
@@ -1639,10 +1688,10 @@ var A4PujaList = ({
|
|
|
1639
1688
|
width: `${25 * 1.11111}%`
|
|
1640
1689
|
}
|
|
1641
1690
|
},
|
|
1642
|
-
/* @__PURE__ */
|
|
1691
|
+
/* @__PURE__ */ React12.createElement(Text_default, null, booking.nakshatra)
|
|
1643
1692
|
),
|
|
1644
|
-
/* @__PURE__ */
|
|
1645
|
-
|
|
1693
|
+
/* @__PURE__ */ React12.createElement(
|
|
1694
|
+
View8,
|
|
1646
1695
|
{
|
|
1647
1696
|
style: {
|
|
1648
1697
|
padding: 6,
|
|
@@ -1651,11 +1700,11 @@ var A4PujaList = ({
|
|
|
1651
1700
|
width: `${10 * 1.11111}%`
|
|
1652
1701
|
}
|
|
1653
1702
|
},
|
|
1654
|
-
/* @__PURE__ */
|
|
1703
|
+
/* @__PURE__ */ React12.createElement(Text_default, null, booking.quantity)
|
|
1655
1704
|
)
|
|
1656
1705
|
),
|
|
1657
|
-
booking.priestNote && /* @__PURE__ */
|
|
1658
|
-
|
|
1706
|
+
booking.priestNote && /* @__PURE__ */ React12.createElement(
|
|
1707
|
+
View8,
|
|
1659
1708
|
{
|
|
1660
1709
|
style: {
|
|
1661
1710
|
padding: 6,
|
|
@@ -1664,7 +1713,7 @@ var A4PujaList = ({
|
|
|
1664
1713
|
width: "100%"
|
|
1665
1714
|
}
|
|
1666
1715
|
},
|
|
1667
|
-
/* @__PURE__ */
|
|
1716
|
+
/* @__PURE__ */ React12.createElement(Text_default, null, booking.priestNote)
|
|
1668
1717
|
)
|
|
1669
1718
|
)
|
|
1670
1719
|
));
|
|
@@ -1675,13 +1724,12 @@ var A4PujaList = ({
|
|
|
1675
1724
|
var A4PujaList_default = A4PujaList;
|
|
1676
1725
|
|
|
1677
1726
|
// src/sizes/a4/A4Summary.tsx
|
|
1678
|
-
import
|
|
1727
|
+
import React13 from "react";
|
|
1679
1728
|
import {
|
|
1680
1729
|
Page as Page8,
|
|
1681
|
-
Text as Text12,
|
|
1682
1730
|
Document as Document8,
|
|
1683
|
-
Image as
|
|
1684
|
-
View as
|
|
1731
|
+
Image as Image11,
|
|
1732
|
+
View as View9
|
|
1685
1733
|
} from "@react-pdf/renderer";
|
|
1686
1734
|
var A4Summary = ({
|
|
1687
1735
|
templeName,
|
|
@@ -1693,7 +1741,7 @@ var A4Summary = ({
|
|
|
1693
1741
|
const bTotalCount = b.nakshatras.length;
|
|
1694
1742
|
return bTotalCount - aTotalCount;
|
|
1695
1743
|
});
|
|
1696
|
-
return /* @__PURE__ */
|
|
1744
|
+
return /* @__PURE__ */ React13.createElement(Document8, null, /* @__PURE__ */ React13.createElement(
|
|
1697
1745
|
Page8,
|
|
1698
1746
|
{
|
|
1699
1747
|
size: "A4",
|
|
@@ -1702,8 +1750,8 @@ var A4Summary = ({
|
|
|
1702
1750
|
fontFamily: "Noto Sans"
|
|
1703
1751
|
}
|
|
1704
1752
|
},
|
|
1705
|
-
/* @__PURE__ */
|
|
1706
|
-
|
|
1753
|
+
/* @__PURE__ */ React13.createElement(
|
|
1754
|
+
Image11,
|
|
1707
1755
|
{
|
|
1708
1756
|
fixed: true,
|
|
1709
1757
|
style: {
|
|
@@ -1714,11 +1762,11 @@ var A4Summary = ({
|
|
|
1714
1762
|
src: bmpLogo
|
|
1715
1763
|
}
|
|
1716
1764
|
),
|
|
1717
|
-
/* @__PURE__ */
|
|
1718
|
-
/* @__PURE__ */
|
|
1719
|
-
/* @__PURE__ */
|
|
1720
|
-
/* @__PURE__ */
|
|
1721
|
-
|
|
1765
|
+
/* @__PURE__ */ React13.createElement(Text_default, { style: { fontSize: 11, marginTop: 5, textAlign: "right" } }, "Date: ", date.toDateString()),
|
|
1766
|
+
/* @__PURE__ */ React13.createElement(Text_default, { style: { fontSize: 14, fontWeight: "bold" } }, "Puja Summary"),
|
|
1767
|
+
/* @__PURE__ */ React13.createElement(Text_default, { style: { fontSize: 12 } }, `${templeName}`),
|
|
1768
|
+
/* @__PURE__ */ React13.createElement(
|
|
1769
|
+
View9,
|
|
1722
1770
|
{
|
|
1723
1771
|
style: {
|
|
1724
1772
|
display: "flex",
|
|
@@ -1727,8 +1775,8 @@ var A4Summary = ({
|
|
|
1727
1775
|
}
|
|
1728
1776
|
},
|
|
1729
1777
|
sortedPujaList.map((item, index) => {
|
|
1730
|
-
return /* @__PURE__ */
|
|
1731
|
-
|
|
1778
|
+
return /* @__PURE__ */ React13.createElement(React13.Fragment, null, /* @__PURE__ */ React13.createElement(View9, { wrap: false, style: { marginBottom: 25 } }, /* @__PURE__ */ React13.createElement(View9, null, /* @__PURE__ */ React13.createElement(
|
|
1779
|
+
Text_default,
|
|
1732
1780
|
{
|
|
1733
1781
|
style: {
|
|
1734
1782
|
fontSize: 10,
|
|
@@ -1742,8 +1790,8 @@ var A4Summary = ({
|
|
|
1742
1790
|
item.name,
|
|
1743
1791
|
" - ",
|
|
1744
1792
|
item.totalCount
|
|
1745
|
-
)), /* @__PURE__ */
|
|
1746
|
-
|
|
1793
|
+
)), /* @__PURE__ */ React13.createElement(
|
|
1794
|
+
View9,
|
|
1747
1795
|
{
|
|
1748
1796
|
style: {
|
|
1749
1797
|
display: "flex",
|
|
@@ -1751,8 +1799,8 @@ var A4Summary = ({
|
|
|
1751
1799
|
border: "1px solid black"
|
|
1752
1800
|
}
|
|
1753
1801
|
},
|
|
1754
|
-
/* @__PURE__ */
|
|
1755
|
-
|
|
1802
|
+
/* @__PURE__ */ React13.createElement(
|
|
1803
|
+
View9,
|
|
1756
1804
|
{
|
|
1757
1805
|
style: {
|
|
1758
1806
|
padding: 6,
|
|
@@ -1762,10 +1810,10 @@ var A4Summary = ({
|
|
|
1762
1810
|
width: "20%"
|
|
1763
1811
|
}
|
|
1764
1812
|
},
|
|
1765
|
-
/* @__PURE__ */
|
|
1813
|
+
/* @__PURE__ */ React13.createElement(Text_default, null, "Sr No")
|
|
1766
1814
|
),
|
|
1767
|
-
/* @__PURE__ */
|
|
1768
|
-
|
|
1815
|
+
/* @__PURE__ */ React13.createElement(
|
|
1816
|
+
View9,
|
|
1769
1817
|
{
|
|
1770
1818
|
style: {
|
|
1771
1819
|
padding: 6,
|
|
@@ -1775,10 +1823,10 @@ var A4Summary = ({
|
|
|
1775
1823
|
width: "60%"
|
|
1776
1824
|
}
|
|
1777
1825
|
},
|
|
1778
|
-
/* @__PURE__ */
|
|
1826
|
+
/* @__PURE__ */ React13.createElement(Text_default, null, "Nakshatra")
|
|
1779
1827
|
),
|
|
1780
|
-
/* @__PURE__ */
|
|
1781
|
-
|
|
1828
|
+
/* @__PURE__ */ React13.createElement(
|
|
1829
|
+
View9,
|
|
1782
1830
|
{
|
|
1783
1831
|
style: {
|
|
1784
1832
|
padding: 6,
|
|
@@ -1787,11 +1835,11 @@ var A4Summary = ({
|
|
|
1787
1835
|
fontWeight: "semibold"
|
|
1788
1836
|
}
|
|
1789
1837
|
},
|
|
1790
|
-
/* @__PURE__ */
|
|
1838
|
+
/* @__PURE__ */ React13.createElement(Text_default, null, "Quantity")
|
|
1791
1839
|
)
|
|
1792
1840
|
), item.nakshatras.map((nakshatra, nakshatraIndex) => {
|
|
1793
|
-
return /* @__PURE__ */
|
|
1794
|
-
|
|
1841
|
+
return /* @__PURE__ */ React13.createElement(React13.Fragment, null, /* @__PURE__ */ React13.createElement(
|
|
1842
|
+
View9,
|
|
1795
1843
|
{
|
|
1796
1844
|
style: {
|
|
1797
1845
|
display: "flex",
|
|
@@ -1800,8 +1848,8 @@ var A4Summary = ({
|
|
|
1800
1848
|
borderTop: "none"
|
|
1801
1849
|
}
|
|
1802
1850
|
},
|
|
1803
|
-
/* @__PURE__ */
|
|
1804
|
-
|
|
1851
|
+
/* @__PURE__ */ React13.createElement(
|
|
1852
|
+
View9,
|
|
1805
1853
|
{
|
|
1806
1854
|
style: {
|
|
1807
1855
|
padding: 6,
|
|
@@ -1810,10 +1858,10 @@ var A4Summary = ({
|
|
|
1810
1858
|
width: "20%"
|
|
1811
1859
|
}
|
|
1812
1860
|
},
|
|
1813
|
-
/* @__PURE__ */
|
|
1861
|
+
/* @__PURE__ */ React13.createElement(Text_default, null, nakshatraIndex + 1)
|
|
1814
1862
|
),
|
|
1815
|
-
/* @__PURE__ */
|
|
1816
|
-
|
|
1863
|
+
/* @__PURE__ */ React13.createElement(
|
|
1864
|
+
View9,
|
|
1817
1865
|
{
|
|
1818
1866
|
style: {
|
|
1819
1867
|
padding: 6,
|
|
@@ -1822,10 +1870,10 @@ var A4Summary = ({
|
|
|
1822
1870
|
width: "60%"
|
|
1823
1871
|
}
|
|
1824
1872
|
},
|
|
1825
|
-
/* @__PURE__ */
|
|
1873
|
+
/* @__PURE__ */ React13.createElement(Text_default, null, nakshatra.name)
|
|
1826
1874
|
),
|
|
1827
|
-
/* @__PURE__ */
|
|
1828
|
-
|
|
1875
|
+
/* @__PURE__ */ React13.createElement(
|
|
1876
|
+
View9,
|
|
1829
1877
|
{
|
|
1830
1878
|
style: {
|
|
1831
1879
|
padding: 6,
|
|
@@ -1833,7 +1881,7 @@ var A4Summary = ({
|
|
|
1833
1881
|
width: "20%"
|
|
1834
1882
|
}
|
|
1835
1883
|
},
|
|
1836
|
-
/* @__PURE__ */
|
|
1884
|
+
/* @__PURE__ */ React13.createElement(Text_default, null, nakshatra.count)
|
|
1837
1885
|
)
|
|
1838
1886
|
));
|
|
1839
1887
|
})));
|
|
@@ -1844,11 +1892,11 @@ var A4Summary = ({
|
|
|
1844
1892
|
var A4Summary_default = A4Summary;
|
|
1845
1893
|
|
|
1846
1894
|
// src/index.tsx
|
|
1847
|
-
import { Font as
|
|
1895
|
+
import { Font as Font4 } from "@react-pdf/renderer";
|
|
1848
1896
|
|
|
1849
1897
|
// src/sizes/a4/A4CombinedReport.tsx
|
|
1850
|
-
import { Document as Document9, Image as
|
|
1851
|
-
import
|
|
1898
|
+
import { Document as Document9, Image as Image12, Page as Page9, View as View10 } from "@react-pdf/renderer";
|
|
1899
|
+
import React14 from "react";
|
|
1852
1900
|
var A4CombinedReport = ({
|
|
1853
1901
|
date,
|
|
1854
1902
|
templeName,
|
|
@@ -1872,8 +1920,8 @@ var A4CombinedReport = ({
|
|
|
1872
1920
|
});
|
|
1873
1921
|
let serialOfNormalPujas = 0;
|
|
1874
1922
|
let serialOfEarlyReminders = 0;
|
|
1875
|
-
return /* @__PURE__ */
|
|
1876
|
-
|
|
1923
|
+
return /* @__PURE__ */ React14.createElement(React14.Fragment, null, /* @__PURE__ */ React14.createElement(Document9, null, pujaData.length > 0 && /* @__PURE__ */ React14.createElement(Page9, { size: "A4", style: { padding: 30, fontFamily: "Noto Sans" } }, /* @__PURE__ */ React14.createElement(
|
|
1924
|
+
Image12,
|
|
1877
1925
|
{
|
|
1878
1926
|
fixed: true,
|
|
1879
1927
|
style: {
|
|
@@ -1883,16 +1931,16 @@ var A4CombinedReport = ({
|
|
|
1883
1931
|
},
|
|
1884
1932
|
src: bmpLogo
|
|
1885
1933
|
}
|
|
1886
|
-
), /* @__PURE__ */
|
|
1934
|
+
), /* @__PURE__ */ React14.createElement(Text_default, { style: { fontSize: 11, marginTop: 5, textAlign: "right" } }, "Date: ", date.toDateString()), pujaData.some(
|
|
1887
1935
|
(puja) => puja.bookings.some((booking) => booking.is_early_reminder)
|
|
1888
|
-
) && /* @__PURE__ */
|
|
1889
|
-
|
|
1936
|
+
) && /* @__PURE__ */ React14.createElement(React14.Fragment, null, /* @__PURE__ */ React14.createElement(
|
|
1937
|
+
Text_default,
|
|
1890
1938
|
{
|
|
1891
1939
|
style: { fontSize: 14, fontWeight: "bold", marginTop: 10 }
|
|
1892
1940
|
},
|
|
1893
1941
|
"Early Reminders for Upcoming Pujas"
|
|
1894
|
-
), /* @__PURE__ */
|
|
1895
|
-
|
|
1942
|
+
), /* @__PURE__ */ React14.createElement(View10, { wrap: false, style: { marginTop: 10 } }, /* @__PURE__ */ React14.createElement(
|
|
1943
|
+
View10,
|
|
1896
1944
|
{
|
|
1897
1945
|
style: {
|
|
1898
1946
|
display: "flex",
|
|
@@ -1900,8 +1948,8 @@ var A4CombinedReport = ({
|
|
|
1900
1948
|
border: "1px solid black"
|
|
1901
1949
|
}
|
|
1902
1950
|
},
|
|
1903
|
-
/* @__PURE__ */
|
|
1904
|
-
|
|
1951
|
+
/* @__PURE__ */ React14.createElement(
|
|
1952
|
+
View10,
|
|
1905
1953
|
{
|
|
1906
1954
|
style: {
|
|
1907
1955
|
padding: 6,
|
|
@@ -1911,10 +1959,10 @@ var A4CombinedReport = ({
|
|
|
1911
1959
|
width: "10%"
|
|
1912
1960
|
}
|
|
1913
1961
|
},
|
|
1914
|
-
/* @__PURE__ */
|
|
1962
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, "Sr No")
|
|
1915
1963
|
),
|
|
1916
|
-
/* @__PURE__ */
|
|
1917
|
-
|
|
1964
|
+
/* @__PURE__ */ React14.createElement(
|
|
1965
|
+
View10,
|
|
1918
1966
|
{
|
|
1919
1967
|
style: {
|
|
1920
1968
|
padding: 6,
|
|
@@ -1924,10 +1972,10 @@ var A4CombinedReport = ({
|
|
|
1924
1972
|
width: "60%"
|
|
1925
1973
|
}
|
|
1926
1974
|
},
|
|
1927
|
-
/* @__PURE__ */
|
|
1975
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, "Puja Name")
|
|
1928
1976
|
),
|
|
1929
|
-
/* @__PURE__ */
|
|
1930
|
-
|
|
1977
|
+
/* @__PURE__ */ React14.createElement(
|
|
1978
|
+
View10,
|
|
1931
1979
|
{
|
|
1932
1980
|
style: {
|
|
1933
1981
|
padding: 6,
|
|
@@ -1937,10 +1985,10 @@ var A4CombinedReport = ({
|
|
|
1937
1985
|
width: "10%"
|
|
1938
1986
|
}
|
|
1939
1987
|
},
|
|
1940
|
-
/* @__PURE__ */
|
|
1988
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, "Qty")
|
|
1941
1989
|
),
|
|
1942
|
-
/* @__PURE__ */
|
|
1943
|
-
|
|
1990
|
+
/* @__PURE__ */ React14.createElement(
|
|
1991
|
+
View10,
|
|
1944
1992
|
{
|
|
1945
1993
|
style: {
|
|
1946
1994
|
padding: 6,
|
|
@@ -1950,15 +1998,15 @@ var A4CombinedReport = ({
|
|
|
1950
1998
|
width: "20%"
|
|
1951
1999
|
}
|
|
1952
2000
|
},
|
|
1953
|
-
/* @__PURE__ */
|
|
2001
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, "Date")
|
|
1954
2002
|
)
|
|
1955
2003
|
))), pujaData.some(
|
|
1956
2004
|
(puja) => puja.bookings.some((booking) => booking.is_early_reminder)
|
|
1957
2005
|
) ? pujaData.flatMap(
|
|
1958
2006
|
(puja, pujaIndex) => puja.bookings.filter((booking) => booking.is_early_reminder).map((booking, bookingIndex) => {
|
|
1959
2007
|
serialOfEarlyReminders++;
|
|
1960
|
-
return /* @__PURE__ */
|
|
1961
|
-
|
|
2008
|
+
return /* @__PURE__ */ React14.createElement(
|
|
2009
|
+
View10,
|
|
1962
2010
|
{
|
|
1963
2011
|
key: `${pujaIndex}-${bookingIndex}`,
|
|
1964
2012
|
style: {
|
|
@@ -1968,8 +2016,8 @@ var A4CombinedReport = ({
|
|
|
1968
2016
|
borderTop: "none"
|
|
1969
2017
|
}
|
|
1970
2018
|
},
|
|
1971
|
-
/* @__PURE__ */
|
|
1972
|
-
|
|
2019
|
+
/* @__PURE__ */ React14.createElement(
|
|
2020
|
+
View10,
|
|
1973
2021
|
{
|
|
1974
2022
|
style: {
|
|
1975
2023
|
padding: 6,
|
|
@@ -1978,10 +2026,10 @@ var A4CombinedReport = ({
|
|
|
1978
2026
|
width: "10%"
|
|
1979
2027
|
}
|
|
1980
2028
|
},
|
|
1981
|
-
/* @__PURE__ */
|
|
2029
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, serialOfEarlyReminders)
|
|
1982
2030
|
),
|
|
1983
|
-
/* @__PURE__ */
|
|
1984
|
-
|
|
2031
|
+
/* @__PURE__ */ React14.createElement(
|
|
2032
|
+
View10,
|
|
1985
2033
|
{
|
|
1986
2034
|
style: {
|
|
1987
2035
|
padding: 6,
|
|
@@ -1990,10 +2038,10 @@ var A4CombinedReport = ({
|
|
|
1990
2038
|
width: "60%"
|
|
1991
2039
|
}
|
|
1992
2040
|
},
|
|
1993
|
-
/* @__PURE__ */
|
|
2041
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, puja.name)
|
|
1994
2042
|
),
|
|
1995
|
-
/* @__PURE__ */
|
|
1996
|
-
|
|
2043
|
+
/* @__PURE__ */ React14.createElement(
|
|
2044
|
+
View10,
|
|
1997
2045
|
{
|
|
1998
2046
|
style: {
|
|
1999
2047
|
padding: 6,
|
|
@@ -2002,10 +2050,10 @@ var A4CombinedReport = ({
|
|
|
2002
2050
|
width: "10%"
|
|
2003
2051
|
}
|
|
2004
2052
|
},
|
|
2005
|
-
/* @__PURE__ */
|
|
2053
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, booking.quantity)
|
|
2006
2054
|
),
|
|
2007
|
-
/* @__PURE__ */
|
|
2008
|
-
|
|
2055
|
+
/* @__PURE__ */ React14.createElement(
|
|
2056
|
+
View10,
|
|
2009
2057
|
{
|
|
2010
2058
|
style: {
|
|
2011
2059
|
padding: 6,
|
|
@@ -2014,12 +2062,12 @@ var A4CombinedReport = ({
|
|
|
2014
2062
|
width: "20%"
|
|
2015
2063
|
}
|
|
2016
2064
|
},
|
|
2017
|
-
/* @__PURE__ */
|
|
2065
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, booking.date ? new Date(booking.date).toDateString() : "")
|
|
2018
2066
|
)
|
|
2019
2067
|
);
|
|
2020
2068
|
})
|
|
2021
|
-
) : null, /* @__PURE__ */
|
|
2022
|
-
|
|
2069
|
+
) : null, /* @__PURE__ */ React14.createElement(Text_default, { style: { fontSize: 14, fontWeight: "bold", marginTop: 20 } }, "Puja List"), /* @__PURE__ */ React14.createElement(Text_default, { style: { fontSize: 12 } }, `${templeName}`), /* @__PURE__ */ React14.createElement(
|
|
2070
|
+
View10,
|
|
2023
2071
|
{
|
|
2024
2072
|
style: {
|
|
2025
2073
|
display: "flex",
|
|
@@ -2031,8 +2079,8 @@ var A4CombinedReport = ({
|
|
|
2031
2079
|
if (puja.bookings.some((booking) => booking.is_early_reminder))
|
|
2032
2080
|
return null;
|
|
2033
2081
|
serialOfNormalPujas = 0;
|
|
2034
|
-
return /* @__PURE__ */
|
|
2035
|
-
|
|
2082
|
+
return /* @__PURE__ */ React14.createElement(React14.Fragment, null, /* @__PURE__ */ React14.createElement(View10, { wrap: false, style: { marginBottom: 25 } }, /* @__PURE__ */ React14.createElement(View10, null, /* @__PURE__ */ React14.createElement(
|
|
2083
|
+
Text_default,
|
|
2036
2084
|
{
|
|
2037
2085
|
style: {
|
|
2038
2086
|
fontSize: 10,
|
|
@@ -2046,8 +2094,8 @@ var A4CombinedReport = ({
|
|
|
2046
2094
|
puja.name,
|
|
2047
2095
|
" - ",
|
|
2048
2096
|
puja.bookings.length
|
|
2049
|
-
)), /* @__PURE__ */
|
|
2050
|
-
|
|
2097
|
+
)), /* @__PURE__ */ React14.createElement(
|
|
2098
|
+
View10,
|
|
2051
2099
|
{
|
|
2052
2100
|
style: {
|
|
2053
2101
|
display: "flex",
|
|
@@ -2055,8 +2103,8 @@ var A4CombinedReport = ({
|
|
|
2055
2103
|
border: "1px solid black"
|
|
2056
2104
|
}
|
|
2057
2105
|
},
|
|
2058
|
-
/* @__PURE__ */
|
|
2059
|
-
|
|
2106
|
+
/* @__PURE__ */ React14.createElement(
|
|
2107
|
+
View10,
|
|
2060
2108
|
{
|
|
2061
2109
|
style: {
|
|
2062
2110
|
padding: 6,
|
|
@@ -2066,10 +2114,10 @@ var A4CombinedReport = ({
|
|
|
2066
2114
|
width: "10%"
|
|
2067
2115
|
}
|
|
2068
2116
|
},
|
|
2069
|
-
/* @__PURE__ */
|
|
2117
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, "Sr No")
|
|
2070
2118
|
),
|
|
2071
|
-
/* @__PURE__ */
|
|
2072
|
-
|
|
2119
|
+
/* @__PURE__ */ React14.createElement(
|
|
2120
|
+
View10,
|
|
2073
2121
|
{
|
|
2074
2122
|
style: {
|
|
2075
2123
|
padding: 6,
|
|
@@ -2079,10 +2127,10 @@ var A4CombinedReport = ({
|
|
|
2079
2127
|
width: "20%"
|
|
2080
2128
|
}
|
|
2081
2129
|
},
|
|
2082
|
-
/* @__PURE__ */
|
|
2130
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, "Invoice No")
|
|
2083
2131
|
),
|
|
2084
|
-
/* @__PURE__ */
|
|
2085
|
-
|
|
2132
|
+
/* @__PURE__ */ React14.createElement(
|
|
2133
|
+
View10,
|
|
2086
2134
|
{
|
|
2087
2135
|
style: {
|
|
2088
2136
|
padding: 6,
|
|
@@ -2092,10 +2140,10 @@ var A4CombinedReport = ({
|
|
|
2092
2140
|
width: "35%"
|
|
2093
2141
|
}
|
|
2094
2142
|
},
|
|
2095
|
-
/* @__PURE__ */
|
|
2143
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, "Devotee Name")
|
|
2096
2144
|
),
|
|
2097
|
-
/* @__PURE__ */
|
|
2098
|
-
|
|
2145
|
+
/* @__PURE__ */ React14.createElement(
|
|
2146
|
+
View10,
|
|
2099
2147
|
{
|
|
2100
2148
|
style: {
|
|
2101
2149
|
padding: 6,
|
|
@@ -2105,10 +2153,10 @@ var A4CombinedReport = ({
|
|
|
2105
2153
|
width: "25%"
|
|
2106
2154
|
}
|
|
2107
2155
|
},
|
|
2108
|
-
/* @__PURE__ */
|
|
2156
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, "Nakshatra")
|
|
2109
2157
|
),
|
|
2110
|
-
/* @__PURE__ */
|
|
2111
|
-
|
|
2158
|
+
/* @__PURE__ */ React14.createElement(
|
|
2159
|
+
View10,
|
|
2112
2160
|
{
|
|
2113
2161
|
style: {
|
|
2114
2162
|
padding: 6,
|
|
@@ -2118,12 +2166,12 @@ var A4CombinedReport = ({
|
|
|
2118
2166
|
width: "10%"
|
|
2119
2167
|
}
|
|
2120
2168
|
},
|
|
2121
|
-
/* @__PURE__ */
|
|
2169
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, "Qty")
|
|
2122
2170
|
)
|
|
2123
2171
|
), puja.bookings.map((booking, bookingIndex) => {
|
|
2124
2172
|
serialOfNormalPujas++;
|
|
2125
|
-
return /* @__PURE__ */
|
|
2126
|
-
|
|
2173
|
+
return /* @__PURE__ */ React14.createElement(React14.Fragment, null, /* @__PURE__ */ React14.createElement(
|
|
2174
|
+
View10,
|
|
2127
2175
|
{
|
|
2128
2176
|
style: {
|
|
2129
2177
|
display: "flex",
|
|
@@ -2133,8 +2181,8 @@ var A4CombinedReport = ({
|
|
|
2133
2181
|
width: "100%"
|
|
2134
2182
|
}
|
|
2135
2183
|
},
|
|
2136
|
-
/* @__PURE__ */
|
|
2137
|
-
|
|
2184
|
+
/* @__PURE__ */ React14.createElement(
|
|
2185
|
+
View10,
|
|
2138
2186
|
{
|
|
2139
2187
|
style: {
|
|
2140
2188
|
padding: 6,
|
|
@@ -2143,10 +2191,10 @@ var A4CombinedReport = ({
|
|
|
2143
2191
|
width: "10%"
|
|
2144
2192
|
}
|
|
2145
2193
|
},
|
|
2146
|
-
/* @__PURE__ */
|
|
2194
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, serialOfNormalPujas)
|
|
2147
2195
|
),
|
|
2148
|
-
/* @__PURE__ */
|
|
2149
|
-
|
|
2196
|
+
/* @__PURE__ */ React14.createElement(
|
|
2197
|
+
View10,
|
|
2150
2198
|
{
|
|
2151
2199
|
style: {
|
|
2152
2200
|
display: "flex",
|
|
@@ -2154,16 +2202,16 @@ var A4CombinedReport = ({
|
|
|
2154
2202
|
width: "90%"
|
|
2155
2203
|
}
|
|
2156
2204
|
},
|
|
2157
|
-
/* @__PURE__ */
|
|
2158
|
-
|
|
2205
|
+
/* @__PURE__ */ React14.createElement(
|
|
2206
|
+
View10,
|
|
2159
2207
|
{
|
|
2160
2208
|
style: {
|
|
2161
2209
|
display: "flex",
|
|
2162
2210
|
flexDirection: "row"
|
|
2163
2211
|
}
|
|
2164
2212
|
},
|
|
2165
|
-
/* @__PURE__ */
|
|
2166
|
-
|
|
2213
|
+
/* @__PURE__ */ React14.createElement(
|
|
2214
|
+
View10,
|
|
2167
2215
|
{
|
|
2168
2216
|
style: {
|
|
2169
2217
|
padding: 6,
|
|
@@ -2172,10 +2220,10 @@ var A4CombinedReport = ({
|
|
|
2172
2220
|
width: `${20 * 1.11111}%`
|
|
2173
2221
|
}
|
|
2174
2222
|
},
|
|
2175
|
-
/* @__PURE__ */
|
|
2223
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, booking.invoiceNumber)
|
|
2176
2224
|
),
|
|
2177
|
-
/* @__PURE__ */
|
|
2178
|
-
|
|
2225
|
+
/* @__PURE__ */ React14.createElement(
|
|
2226
|
+
View10,
|
|
2179
2227
|
{
|
|
2180
2228
|
style: {
|
|
2181
2229
|
padding: 6,
|
|
@@ -2184,10 +2232,10 @@ var A4CombinedReport = ({
|
|
|
2184
2232
|
width: `${35 * 1.11111}%`
|
|
2185
2233
|
}
|
|
2186
2234
|
},
|
|
2187
|
-
/* @__PURE__ */
|
|
2235
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, booking.devoteeName)
|
|
2188
2236
|
),
|
|
2189
|
-
/* @__PURE__ */
|
|
2190
|
-
|
|
2237
|
+
/* @__PURE__ */ React14.createElement(
|
|
2238
|
+
View10,
|
|
2191
2239
|
{
|
|
2192
2240
|
style: {
|
|
2193
2241
|
padding: 6,
|
|
@@ -2196,10 +2244,10 @@ var A4CombinedReport = ({
|
|
|
2196
2244
|
width: `${25 * 1.11111}%`
|
|
2197
2245
|
}
|
|
2198
2246
|
},
|
|
2199
|
-
/* @__PURE__ */
|
|
2247
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, booking.nakshatra)
|
|
2200
2248
|
),
|
|
2201
|
-
/* @__PURE__ */
|
|
2202
|
-
|
|
2249
|
+
/* @__PURE__ */ React14.createElement(
|
|
2250
|
+
View10,
|
|
2203
2251
|
{
|
|
2204
2252
|
style: {
|
|
2205
2253
|
padding: 6,
|
|
@@ -2208,11 +2256,11 @@ var A4CombinedReport = ({
|
|
|
2208
2256
|
width: `${10 * 1.11111}%`
|
|
2209
2257
|
}
|
|
2210
2258
|
},
|
|
2211
|
-
/* @__PURE__ */
|
|
2259
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, booking.quantity)
|
|
2212
2260
|
)
|
|
2213
2261
|
),
|
|
2214
|
-
booking.priestNote && /* @__PURE__ */
|
|
2215
|
-
|
|
2262
|
+
booking.priestNote && /* @__PURE__ */ React14.createElement(
|
|
2263
|
+
View10,
|
|
2216
2264
|
{
|
|
2217
2265
|
style: {
|
|
2218
2266
|
padding: 6,
|
|
@@ -2221,14 +2269,14 @@ var A4CombinedReport = ({
|
|
|
2221
2269
|
width: "100%"
|
|
2222
2270
|
}
|
|
2223
2271
|
},
|
|
2224
|
-
/* @__PURE__ */
|
|
2272
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, booking.priestNote)
|
|
2225
2273
|
)
|
|
2226
2274
|
)
|
|
2227
2275
|
));
|
|
2228
2276
|
})));
|
|
2229
2277
|
})
|
|
2230
|
-
)), prasadData.length > 0 && /* @__PURE__ */
|
|
2231
|
-
|
|
2278
|
+
)), prasadData.length > 0 && /* @__PURE__ */ React14.createElement(Page9, { size: "A4", style: { padding: 30, fontFamily: "Noto Sans" } }, /* @__PURE__ */ React14.createElement(
|
|
2279
|
+
Image12,
|
|
2232
2280
|
{
|
|
2233
2281
|
fixed: true,
|
|
2234
2282
|
style: {
|
|
@@ -2238,8 +2286,8 @@ var A4CombinedReport = ({
|
|
|
2238
2286
|
},
|
|
2239
2287
|
src: bmpLogo
|
|
2240
2288
|
}
|
|
2241
|
-
), /* @__PURE__ */
|
|
2242
|
-
|
|
2289
|
+
), /* @__PURE__ */ React14.createElement(Text_default, { style: { fontSize: 11, marginTop: 5, textAlign: "right" } }, "Date: ", date.toDateString()), /* @__PURE__ */ React14.createElement(Text_default, { style: { fontSize: 14, fontWeight: "bold" } }, "Prasad Report"), /* @__PURE__ */ React14.createElement(Text_default, { style: { fontSize: 12 } }, `${templeName}`), /* @__PURE__ */ React14.createElement(
|
|
2290
|
+
View10,
|
|
2243
2291
|
{
|
|
2244
2292
|
style: {
|
|
2245
2293
|
display: "flex",
|
|
@@ -2247,8 +2295,8 @@ var A4CombinedReport = ({
|
|
|
2247
2295
|
marginTop: 20
|
|
2248
2296
|
}
|
|
2249
2297
|
},
|
|
2250
|
-
/* @__PURE__ */
|
|
2251
|
-
|
|
2298
|
+
/* @__PURE__ */ React14.createElement(
|
|
2299
|
+
View10,
|
|
2252
2300
|
{
|
|
2253
2301
|
style: {
|
|
2254
2302
|
display: "flex",
|
|
@@ -2258,8 +2306,8 @@ var A4CombinedReport = ({
|
|
|
2258
2306
|
fontSize: 10
|
|
2259
2307
|
}
|
|
2260
2308
|
},
|
|
2261
|
-
/* @__PURE__ */
|
|
2262
|
-
|
|
2309
|
+
/* @__PURE__ */ React14.createElement(
|
|
2310
|
+
View10,
|
|
2263
2311
|
{
|
|
2264
2312
|
style: {
|
|
2265
2313
|
padding: 6,
|
|
@@ -2267,10 +2315,10 @@ var A4CombinedReport = ({
|
|
|
2267
2315
|
width: "10%"
|
|
2268
2316
|
}
|
|
2269
2317
|
},
|
|
2270
|
-
/* @__PURE__ */
|
|
2318
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, "Sr no")
|
|
2271
2319
|
),
|
|
2272
|
-
/* @__PURE__ */
|
|
2273
|
-
|
|
2320
|
+
/* @__PURE__ */ React14.createElement(
|
|
2321
|
+
View10,
|
|
2274
2322
|
{
|
|
2275
2323
|
style: {
|
|
2276
2324
|
padding: 6,
|
|
@@ -2278,10 +2326,10 @@ var A4CombinedReport = ({
|
|
|
2278
2326
|
width: "20%"
|
|
2279
2327
|
}
|
|
2280
2328
|
},
|
|
2281
|
-
/* @__PURE__ */
|
|
2329
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, "Invoice Number")
|
|
2282
2330
|
),
|
|
2283
|
-
/* @__PURE__ */
|
|
2284
|
-
|
|
2331
|
+
/* @__PURE__ */ React14.createElement(
|
|
2332
|
+
View10,
|
|
2285
2333
|
{
|
|
2286
2334
|
style: {
|
|
2287
2335
|
padding: 6,
|
|
@@ -2289,10 +2337,10 @@ var A4CombinedReport = ({
|
|
|
2289
2337
|
width: "30%"
|
|
2290
2338
|
}
|
|
2291
2339
|
},
|
|
2292
|
-
/* @__PURE__ */
|
|
2340
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, "Devotee Name")
|
|
2293
2341
|
),
|
|
2294
|
-
/* @__PURE__ */
|
|
2295
|
-
|
|
2342
|
+
/* @__PURE__ */ React14.createElement(
|
|
2343
|
+
View10,
|
|
2296
2344
|
{
|
|
2297
2345
|
style: {
|
|
2298
2346
|
padding: 6,
|
|
@@ -2300,22 +2348,22 @@ var A4CombinedReport = ({
|
|
|
2300
2348
|
width: "30%"
|
|
2301
2349
|
}
|
|
2302
2350
|
},
|
|
2303
|
-
/* @__PURE__ */
|
|
2351
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, "Prasad Name")
|
|
2304
2352
|
),
|
|
2305
|
-
/* @__PURE__ */
|
|
2306
|
-
|
|
2353
|
+
/* @__PURE__ */ React14.createElement(
|
|
2354
|
+
View10,
|
|
2307
2355
|
{
|
|
2308
2356
|
style: {
|
|
2309
2357
|
padding: 6,
|
|
2310
2358
|
width: "10%"
|
|
2311
2359
|
}
|
|
2312
2360
|
},
|
|
2313
|
-
/* @__PURE__ */
|
|
2361
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, "Qty")
|
|
2314
2362
|
)
|
|
2315
2363
|
),
|
|
2316
2364
|
prasadData.map((item, index) => {
|
|
2317
|
-
return /* @__PURE__ */
|
|
2318
|
-
|
|
2365
|
+
return /* @__PURE__ */ React14.createElement(
|
|
2366
|
+
View10,
|
|
2319
2367
|
{
|
|
2320
2368
|
style: {
|
|
2321
2369
|
display: "flex",
|
|
@@ -2325,8 +2373,8 @@ var A4CombinedReport = ({
|
|
|
2325
2373
|
fontSize: 10
|
|
2326
2374
|
}
|
|
2327
2375
|
},
|
|
2328
|
-
/* @__PURE__ */
|
|
2329
|
-
|
|
2376
|
+
/* @__PURE__ */ React14.createElement(
|
|
2377
|
+
View10,
|
|
2330
2378
|
{
|
|
2331
2379
|
style: {
|
|
2332
2380
|
padding: 6,
|
|
@@ -2334,10 +2382,10 @@ var A4CombinedReport = ({
|
|
|
2334
2382
|
width: "10%"
|
|
2335
2383
|
}
|
|
2336
2384
|
},
|
|
2337
|
-
/* @__PURE__ */
|
|
2385
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, index + 1)
|
|
2338
2386
|
),
|
|
2339
|
-
/* @__PURE__ */
|
|
2340
|
-
|
|
2387
|
+
/* @__PURE__ */ React14.createElement(
|
|
2388
|
+
View10,
|
|
2341
2389
|
{
|
|
2342
2390
|
style: {
|
|
2343
2391
|
padding: 6,
|
|
@@ -2345,10 +2393,10 @@ var A4CombinedReport = ({
|
|
|
2345
2393
|
width: "20%"
|
|
2346
2394
|
}
|
|
2347
2395
|
},
|
|
2348
|
-
/* @__PURE__ */
|
|
2396
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, item.invoiceNumber)
|
|
2349
2397
|
),
|
|
2350
|
-
/* @__PURE__ */
|
|
2351
|
-
|
|
2398
|
+
/* @__PURE__ */ React14.createElement(
|
|
2399
|
+
View10,
|
|
2352
2400
|
{
|
|
2353
2401
|
style: {
|
|
2354
2402
|
padding: 6,
|
|
@@ -2356,10 +2404,10 @@ var A4CombinedReport = ({
|
|
|
2356
2404
|
width: "30%"
|
|
2357
2405
|
}
|
|
2358
2406
|
},
|
|
2359
|
-
/* @__PURE__ */
|
|
2407
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, item.devoteeName)
|
|
2360
2408
|
),
|
|
2361
|
-
/* @__PURE__ */
|
|
2362
|
-
|
|
2409
|
+
/* @__PURE__ */ React14.createElement(
|
|
2410
|
+
View10,
|
|
2363
2411
|
{
|
|
2364
2412
|
style: {
|
|
2365
2413
|
padding: 6,
|
|
@@ -2367,22 +2415,22 @@ var A4CombinedReport = ({
|
|
|
2367
2415
|
width: "30%"
|
|
2368
2416
|
}
|
|
2369
2417
|
},
|
|
2370
|
-
/* @__PURE__ */
|
|
2418
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, item.prasadName)
|
|
2371
2419
|
),
|
|
2372
|
-
/* @__PURE__ */
|
|
2373
|
-
|
|
2420
|
+
/* @__PURE__ */ React14.createElement(
|
|
2421
|
+
View10,
|
|
2374
2422
|
{
|
|
2375
2423
|
style: {
|
|
2376
2424
|
padding: 6,
|
|
2377
2425
|
width: "10%"
|
|
2378
2426
|
}
|
|
2379
2427
|
},
|
|
2380
|
-
/* @__PURE__ */
|
|
2428
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, item.quantity)
|
|
2381
2429
|
)
|
|
2382
2430
|
);
|
|
2383
2431
|
})
|
|
2384
|
-
)), deliveryData.length > 0 && /* @__PURE__ */
|
|
2385
|
-
|
|
2432
|
+
)), deliveryData.length > 0 && /* @__PURE__ */ React14.createElement(Page9, { size: "A4", style: { padding: 30, fontFamily: "Noto Sans" } }, /* @__PURE__ */ React14.createElement(
|
|
2433
|
+
Image12,
|
|
2386
2434
|
{
|
|
2387
2435
|
fixed: true,
|
|
2388
2436
|
style: {
|
|
@@ -2392,8 +2440,8 @@ var A4CombinedReport = ({
|
|
|
2392
2440
|
},
|
|
2393
2441
|
src: bmpLogo
|
|
2394
2442
|
}
|
|
2395
|
-
), /* @__PURE__ */
|
|
2396
|
-
|
|
2443
|
+
), /* @__PURE__ */ React14.createElement(Text_default, { style: { fontSize: 11, marginTop: 5, textAlign: "right" } }, "Date: ", date.toDateString()), /* @__PURE__ */ React14.createElement(Text_default, { style: { fontSize: 14, fontWeight: "bold" } }, "Prasad Delivery Address"), /* @__PURE__ */ React14.createElement(Text_default, { style: { fontSize: 12 } }, `${templeName}`), /* @__PURE__ */ React14.createElement(
|
|
2444
|
+
View10,
|
|
2397
2445
|
{
|
|
2398
2446
|
style: {
|
|
2399
2447
|
display: "flex",
|
|
@@ -2401,8 +2449,8 @@ var A4CombinedReport = ({
|
|
|
2401
2449
|
marginTop: 20
|
|
2402
2450
|
}
|
|
2403
2451
|
},
|
|
2404
|
-
/* @__PURE__ */
|
|
2405
|
-
|
|
2452
|
+
/* @__PURE__ */ React14.createElement(
|
|
2453
|
+
View10,
|
|
2406
2454
|
{
|
|
2407
2455
|
style: {
|
|
2408
2456
|
display: "flex",
|
|
@@ -2412,8 +2460,8 @@ var A4CombinedReport = ({
|
|
|
2412
2460
|
fontSize: 10
|
|
2413
2461
|
}
|
|
2414
2462
|
},
|
|
2415
|
-
/* @__PURE__ */
|
|
2416
|
-
|
|
2463
|
+
/* @__PURE__ */ React14.createElement(
|
|
2464
|
+
View10,
|
|
2417
2465
|
{
|
|
2418
2466
|
style: {
|
|
2419
2467
|
padding: 6,
|
|
@@ -2421,10 +2469,10 @@ var A4CombinedReport = ({
|
|
|
2421
2469
|
width: "10%"
|
|
2422
2470
|
}
|
|
2423
2471
|
},
|
|
2424
|
-
/* @__PURE__ */
|
|
2472
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, "Date")
|
|
2425
2473
|
),
|
|
2426
|
-
/* @__PURE__ */
|
|
2427
|
-
|
|
2474
|
+
/* @__PURE__ */ React14.createElement(
|
|
2475
|
+
View10,
|
|
2428
2476
|
{
|
|
2429
2477
|
style: {
|
|
2430
2478
|
padding: 6,
|
|
@@ -2432,10 +2480,10 @@ var A4CombinedReport = ({
|
|
|
2432
2480
|
width: "13%"
|
|
2433
2481
|
}
|
|
2434
2482
|
},
|
|
2435
|
-
/* @__PURE__ */
|
|
2483
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, "Invoice")
|
|
2436
2484
|
),
|
|
2437
|
-
/* @__PURE__ */
|
|
2438
|
-
|
|
2485
|
+
/* @__PURE__ */ React14.createElement(
|
|
2486
|
+
View10,
|
|
2439
2487
|
{
|
|
2440
2488
|
style: {
|
|
2441
2489
|
padding: 6,
|
|
@@ -2443,10 +2491,10 @@ var A4CombinedReport = ({
|
|
|
2443
2491
|
width: "18%"
|
|
2444
2492
|
}
|
|
2445
2493
|
},
|
|
2446
|
-
/* @__PURE__ */
|
|
2494
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, "Devotee Name")
|
|
2447
2495
|
),
|
|
2448
|
-
/* @__PURE__ */
|
|
2449
|
-
|
|
2496
|
+
/* @__PURE__ */ React14.createElement(
|
|
2497
|
+
View10,
|
|
2450
2498
|
{
|
|
2451
2499
|
style: {
|
|
2452
2500
|
padding: 6,
|
|
@@ -2454,10 +2502,10 @@ var A4CombinedReport = ({
|
|
|
2454
2502
|
width: "25%"
|
|
2455
2503
|
}
|
|
2456
2504
|
},
|
|
2457
|
-
/* @__PURE__ */
|
|
2505
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, "Address")
|
|
2458
2506
|
),
|
|
2459
|
-
/* @__PURE__ */
|
|
2460
|
-
|
|
2507
|
+
/* @__PURE__ */ React14.createElement(
|
|
2508
|
+
View10,
|
|
2461
2509
|
{
|
|
2462
2510
|
style: {
|
|
2463
2511
|
padding: 6,
|
|
@@ -2465,22 +2513,22 @@ var A4CombinedReport = ({
|
|
|
2465
2513
|
width: "20%"
|
|
2466
2514
|
}
|
|
2467
2515
|
},
|
|
2468
|
-
/* @__PURE__ */
|
|
2516
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, "Puja Name")
|
|
2469
2517
|
),
|
|
2470
|
-
/* @__PURE__ */
|
|
2471
|
-
|
|
2518
|
+
/* @__PURE__ */ React14.createElement(
|
|
2519
|
+
View10,
|
|
2472
2520
|
{
|
|
2473
2521
|
style: {
|
|
2474
2522
|
padding: 6,
|
|
2475
2523
|
width: "15%"
|
|
2476
2524
|
}
|
|
2477
2525
|
},
|
|
2478
|
-
/* @__PURE__ */
|
|
2526
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, "Amount")
|
|
2479
2527
|
)
|
|
2480
2528
|
),
|
|
2481
2529
|
deliveryData.map((item, index) => {
|
|
2482
|
-
return /* @__PURE__ */
|
|
2483
|
-
|
|
2530
|
+
return /* @__PURE__ */ React14.createElement(
|
|
2531
|
+
View10,
|
|
2484
2532
|
{
|
|
2485
2533
|
style: {
|
|
2486
2534
|
display: "flex",
|
|
@@ -2490,8 +2538,8 @@ var A4CombinedReport = ({
|
|
|
2490
2538
|
fontSize: 10
|
|
2491
2539
|
}
|
|
2492
2540
|
},
|
|
2493
|
-
/* @__PURE__ */
|
|
2494
|
-
|
|
2541
|
+
/* @__PURE__ */ React14.createElement(
|
|
2542
|
+
View10,
|
|
2495
2543
|
{
|
|
2496
2544
|
style: {
|
|
2497
2545
|
padding: 6,
|
|
@@ -2499,14 +2547,14 @@ var A4CombinedReport = ({
|
|
|
2499
2547
|
width: "10%"
|
|
2500
2548
|
}
|
|
2501
2549
|
},
|
|
2502
|
-
/* @__PURE__ */
|
|
2550
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, new Date(item.date).toLocaleDateString("en-GB", {
|
|
2503
2551
|
day: "2-digit",
|
|
2504
2552
|
month: "2-digit",
|
|
2505
2553
|
year: "2-digit"
|
|
2506
2554
|
}))
|
|
2507
2555
|
),
|
|
2508
|
-
/* @__PURE__ */
|
|
2509
|
-
|
|
2556
|
+
/* @__PURE__ */ React14.createElement(
|
|
2557
|
+
View10,
|
|
2510
2558
|
{
|
|
2511
2559
|
style: {
|
|
2512
2560
|
padding: 6,
|
|
@@ -2514,10 +2562,10 @@ var A4CombinedReport = ({
|
|
|
2514
2562
|
width: "13%"
|
|
2515
2563
|
}
|
|
2516
2564
|
},
|
|
2517
|
-
/* @__PURE__ */
|
|
2565
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, item.invoiceNumber)
|
|
2518
2566
|
),
|
|
2519
|
-
/* @__PURE__ */
|
|
2520
|
-
|
|
2567
|
+
/* @__PURE__ */ React14.createElement(
|
|
2568
|
+
View10,
|
|
2521
2569
|
{
|
|
2522
2570
|
style: {
|
|
2523
2571
|
padding: 6,
|
|
@@ -2525,10 +2573,10 @@ var A4CombinedReport = ({
|
|
|
2525
2573
|
width: "18%"
|
|
2526
2574
|
}
|
|
2527
2575
|
},
|
|
2528
|
-
/* @__PURE__ */
|
|
2576
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, item.devoteeName)
|
|
2529
2577
|
),
|
|
2530
|
-
/* @__PURE__ */
|
|
2531
|
-
|
|
2578
|
+
/* @__PURE__ */ React14.createElement(
|
|
2579
|
+
View10,
|
|
2532
2580
|
{
|
|
2533
2581
|
style: {
|
|
2534
2582
|
padding: 6,
|
|
@@ -2536,10 +2584,10 @@ var A4CombinedReport = ({
|
|
|
2536
2584
|
width: "25%"
|
|
2537
2585
|
}
|
|
2538
2586
|
},
|
|
2539
|
-
/* @__PURE__ */
|
|
2587
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, item.address)
|
|
2540
2588
|
),
|
|
2541
|
-
/* @__PURE__ */
|
|
2542
|
-
|
|
2589
|
+
/* @__PURE__ */ React14.createElement(
|
|
2590
|
+
View10,
|
|
2543
2591
|
{
|
|
2544
2592
|
style: {
|
|
2545
2593
|
padding: 6,
|
|
@@ -2547,17 +2595,17 @@ var A4CombinedReport = ({
|
|
|
2547
2595
|
width: "20%"
|
|
2548
2596
|
}
|
|
2549
2597
|
},
|
|
2550
|
-
/* @__PURE__ */
|
|
2598
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, item.pujaName)
|
|
2551
2599
|
),
|
|
2552
|
-
/* @__PURE__ */
|
|
2553
|
-
|
|
2600
|
+
/* @__PURE__ */ React14.createElement(
|
|
2601
|
+
View10,
|
|
2554
2602
|
{
|
|
2555
2603
|
style: {
|
|
2556
2604
|
padding: 6,
|
|
2557
2605
|
width: "15%"
|
|
2558
2606
|
}
|
|
2559
2607
|
},
|
|
2560
|
-
/* @__PURE__ */
|
|
2608
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, item.amount.toLocaleString("en-IN", {
|
|
2561
2609
|
maximumFractionDigits: 2,
|
|
2562
2610
|
style: "currency",
|
|
2563
2611
|
currency: "INR"
|
|
@@ -2576,15 +2624,15 @@ var getPrintBlob = ({
|
|
|
2576
2624
|
dates
|
|
2577
2625
|
}) => {
|
|
2578
2626
|
if (size === "A4") {
|
|
2579
|
-
const blob = pdf(/* @__PURE__ */
|
|
2627
|
+
const blob = pdf(/* @__PURE__ */ React15.createElement(A4Print_default, { data, dates })).toBlob();
|
|
2580
2628
|
return blob;
|
|
2581
2629
|
} else {
|
|
2582
|
-
const blob = pdf(/* @__PURE__ */
|
|
2630
|
+
const blob = pdf(/* @__PURE__ */ React15.createElement(T2Inch_default, { data, dates })).toBlob();
|
|
2583
2631
|
return blob;
|
|
2584
2632
|
}
|
|
2585
2633
|
};
|
|
2586
2634
|
var getA4SummaryBlob = async () => {
|
|
2587
|
-
const blob = await pdf(/* @__PURE__ */
|
|
2635
|
+
const blob = await pdf(/* @__PURE__ */ React15.createElement(A4Print_default, { data: [], dates: ["", ""] })).toBlob();
|
|
2588
2636
|
return blob;
|
|
2589
2637
|
};
|
|
2590
2638
|
var printDevoteeReceipt2Inch = async (data) => {
|
|
@@ -2640,17 +2688,17 @@ var reportPrinter = class {
|
|
|
2640
2688
|
constructor(option, size) {
|
|
2641
2689
|
this.option = option;
|
|
2642
2690
|
this.size = size;
|
|
2643
|
-
|
|
2691
|
+
Font4.register({
|
|
2644
2692
|
family: "Noto Sans",
|
|
2645
2693
|
fontWeight: "normal",
|
|
2646
2694
|
src: notoSansRegular
|
|
2647
2695
|
});
|
|
2648
|
-
|
|
2696
|
+
Font4.register({
|
|
2649
2697
|
family: "Noto Sans",
|
|
2650
2698
|
fontWeight: "bold",
|
|
2651
2699
|
src: notoSansBold
|
|
2652
2700
|
});
|
|
2653
|
-
|
|
2701
|
+
Font4.register({
|
|
2654
2702
|
family: "Noto Sans",
|
|
2655
2703
|
fontWeight: "semibold",
|
|
2656
2704
|
src: notoSansSemiBold
|
|
@@ -2658,7 +2706,7 @@ var reportPrinter = class {
|
|
|
2658
2706
|
}
|
|
2659
2707
|
async print(data) {
|
|
2660
2708
|
const ReportComponent = options[this.option][this.size];
|
|
2661
|
-
const document = /* @__PURE__ */
|
|
2709
|
+
const document = /* @__PURE__ */ React15.createElement(ReportComponent, { ...data });
|
|
2662
2710
|
const blob = pdf(document).toBlob();
|
|
2663
2711
|
blob.then((blob2) => {
|
|
2664
2712
|
var blobURL = URL.createObjectURL(blob2);
|
|
@@ -2673,7 +2721,7 @@ var reportPrinter = class {
|
|
|
2673
2721
|
}
|
|
2674
2722
|
async getBlob(data) {
|
|
2675
2723
|
const ReportComponent = options[this.option][this.size];
|
|
2676
|
-
const document = /* @__PURE__ */
|
|
2724
|
+
const document = /* @__PURE__ */ React15.createElement(ReportComponent, { ...data });
|
|
2677
2725
|
const blob = pdf(document).toBlob();
|
|
2678
2726
|
return blob;
|
|
2679
2727
|
}
|