@bookmypuja-tech/bmp-pdf 0.2.15 → 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 +495 -448
- 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",
|
|
@@ -1474,8 +1522,8 @@ var A4PujaList = ({
|
|
|
1474
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,13 +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) => {
|
|
1567
1615
|
if (booking.is_early_reminder) return null;
|
|
1568
1616
|
serialOfNormalPujas++;
|
|
1569
|
-
return /* @__PURE__ */
|
|
1570
|
-
|
|
1617
|
+
return /* @__PURE__ */ React12.createElement(React12.Fragment, null, /* @__PURE__ */ React12.createElement(
|
|
1618
|
+
View8,
|
|
1571
1619
|
{
|
|
1572
1620
|
style: {
|
|
1573
1621
|
display: "flex",
|
|
@@ -1577,8 +1625,8 @@ var A4PujaList = ({
|
|
|
1577
1625
|
width: "100%"
|
|
1578
1626
|
}
|
|
1579
1627
|
},
|
|
1580
|
-
/* @__PURE__ */
|
|
1581
|
-
|
|
1628
|
+
/* @__PURE__ */ React12.createElement(
|
|
1629
|
+
View8,
|
|
1582
1630
|
{
|
|
1583
1631
|
style: {
|
|
1584
1632
|
padding: 6,
|
|
@@ -1587,10 +1635,10 @@ var A4PujaList = ({
|
|
|
1587
1635
|
width: "10%"
|
|
1588
1636
|
}
|
|
1589
1637
|
},
|
|
1590
|
-
/* @__PURE__ */
|
|
1638
|
+
/* @__PURE__ */ React12.createElement(Text_default, null, serialOfNormalPujas)
|
|
1591
1639
|
),
|
|
1592
|
-
/* @__PURE__ */
|
|
1593
|
-
|
|
1640
|
+
/* @__PURE__ */ React12.createElement(
|
|
1641
|
+
View8,
|
|
1594
1642
|
{
|
|
1595
1643
|
style: {
|
|
1596
1644
|
display: "flex",
|
|
@@ -1598,16 +1646,16 @@ var A4PujaList = ({
|
|
|
1598
1646
|
width: "90%"
|
|
1599
1647
|
}
|
|
1600
1648
|
},
|
|
1601
|
-
/* @__PURE__ */
|
|
1602
|
-
|
|
1649
|
+
/* @__PURE__ */ React12.createElement(
|
|
1650
|
+
View8,
|
|
1603
1651
|
{
|
|
1604
1652
|
style: {
|
|
1605
1653
|
display: "flex",
|
|
1606
1654
|
flexDirection: "row"
|
|
1607
1655
|
}
|
|
1608
1656
|
},
|
|
1609
|
-
/* @__PURE__ */
|
|
1610
|
-
|
|
1657
|
+
/* @__PURE__ */ React12.createElement(
|
|
1658
|
+
View8,
|
|
1611
1659
|
{
|
|
1612
1660
|
style: {
|
|
1613
1661
|
padding: 6,
|
|
@@ -1616,10 +1664,10 @@ var A4PujaList = ({
|
|
|
1616
1664
|
width: `${20 * 1.11111}%`
|
|
1617
1665
|
}
|
|
1618
1666
|
},
|
|
1619
|
-
/* @__PURE__ */
|
|
1667
|
+
/* @__PURE__ */ React12.createElement(Text_default, null, booking.invoiceNumber)
|
|
1620
1668
|
),
|
|
1621
|
-
/* @__PURE__ */
|
|
1622
|
-
|
|
1669
|
+
/* @__PURE__ */ React12.createElement(
|
|
1670
|
+
View8,
|
|
1623
1671
|
{
|
|
1624
1672
|
style: {
|
|
1625
1673
|
padding: 6,
|
|
@@ -1628,10 +1676,10 @@ var A4PujaList = ({
|
|
|
1628
1676
|
width: `${35 * 1.11111}%`
|
|
1629
1677
|
}
|
|
1630
1678
|
},
|
|
1631
|
-
/* @__PURE__ */
|
|
1679
|
+
/* @__PURE__ */ React12.createElement(Text_default, null, booking.devoteeName)
|
|
1632
1680
|
),
|
|
1633
|
-
/* @__PURE__ */
|
|
1634
|
-
|
|
1681
|
+
/* @__PURE__ */ React12.createElement(
|
|
1682
|
+
View8,
|
|
1635
1683
|
{
|
|
1636
1684
|
style: {
|
|
1637
1685
|
padding: 6,
|
|
@@ -1640,10 +1688,10 @@ var A4PujaList = ({
|
|
|
1640
1688
|
width: `${25 * 1.11111}%`
|
|
1641
1689
|
}
|
|
1642
1690
|
},
|
|
1643
|
-
/* @__PURE__ */
|
|
1691
|
+
/* @__PURE__ */ React12.createElement(Text_default, null, booking.nakshatra)
|
|
1644
1692
|
),
|
|
1645
|
-
/* @__PURE__ */
|
|
1646
|
-
|
|
1693
|
+
/* @__PURE__ */ React12.createElement(
|
|
1694
|
+
View8,
|
|
1647
1695
|
{
|
|
1648
1696
|
style: {
|
|
1649
1697
|
padding: 6,
|
|
@@ -1652,11 +1700,11 @@ var A4PujaList = ({
|
|
|
1652
1700
|
width: `${10 * 1.11111}%`
|
|
1653
1701
|
}
|
|
1654
1702
|
},
|
|
1655
|
-
/* @__PURE__ */
|
|
1703
|
+
/* @__PURE__ */ React12.createElement(Text_default, null, booking.quantity)
|
|
1656
1704
|
)
|
|
1657
1705
|
),
|
|
1658
|
-
booking.priestNote && /* @__PURE__ */
|
|
1659
|
-
|
|
1706
|
+
booking.priestNote && /* @__PURE__ */ React12.createElement(
|
|
1707
|
+
View8,
|
|
1660
1708
|
{
|
|
1661
1709
|
style: {
|
|
1662
1710
|
padding: 6,
|
|
@@ -1665,7 +1713,7 @@ var A4PujaList = ({
|
|
|
1665
1713
|
width: "100%"
|
|
1666
1714
|
}
|
|
1667
1715
|
},
|
|
1668
|
-
/* @__PURE__ */
|
|
1716
|
+
/* @__PURE__ */ React12.createElement(Text_default, null, booking.priestNote)
|
|
1669
1717
|
)
|
|
1670
1718
|
)
|
|
1671
1719
|
));
|
|
@@ -1676,13 +1724,12 @@ var A4PujaList = ({
|
|
|
1676
1724
|
var A4PujaList_default = A4PujaList;
|
|
1677
1725
|
|
|
1678
1726
|
// src/sizes/a4/A4Summary.tsx
|
|
1679
|
-
import
|
|
1727
|
+
import React13 from "react";
|
|
1680
1728
|
import {
|
|
1681
1729
|
Page as Page8,
|
|
1682
|
-
Text as Text12,
|
|
1683
1730
|
Document as Document8,
|
|
1684
|
-
Image as
|
|
1685
|
-
View as
|
|
1731
|
+
Image as Image11,
|
|
1732
|
+
View as View9
|
|
1686
1733
|
} from "@react-pdf/renderer";
|
|
1687
1734
|
var A4Summary = ({
|
|
1688
1735
|
templeName,
|
|
@@ -1694,7 +1741,7 @@ var A4Summary = ({
|
|
|
1694
1741
|
const bTotalCount = b.nakshatras.length;
|
|
1695
1742
|
return bTotalCount - aTotalCount;
|
|
1696
1743
|
});
|
|
1697
|
-
return /* @__PURE__ */
|
|
1744
|
+
return /* @__PURE__ */ React13.createElement(Document8, null, /* @__PURE__ */ React13.createElement(
|
|
1698
1745
|
Page8,
|
|
1699
1746
|
{
|
|
1700
1747
|
size: "A4",
|
|
@@ -1703,8 +1750,8 @@ var A4Summary = ({
|
|
|
1703
1750
|
fontFamily: "Noto Sans"
|
|
1704
1751
|
}
|
|
1705
1752
|
},
|
|
1706
|
-
/* @__PURE__ */
|
|
1707
|
-
|
|
1753
|
+
/* @__PURE__ */ React13.createElement(
|
|
1754
|
+
Image11,
|
|
1708
1755
|
{
|
|
1709
1756
|
fixed: true,
|
|
1710
1757
|
style: {
|
|
@@ -1715,11 +1762,11 @@ var A4Summary = ({
|
|
|
1715
1762
|
src: bmpLogo
|
|
1716
1763
|
}
|
|
1717
1764
|
),
|
|
1718
|
-
/* @__PURE__ */
|
|
1719
|
-
/* @__PURE__ */
|
|
1720
|
-
/* @__PURE__ */
|
|
1721
|
-
/* @__PURE__ */
|
|
1722
|
-
|
|
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,
|
|
1723
1770
|
{
|
|
1724
1771
|
style: {
|
|
1725
1772
|
display: "flex",
|
|
@@ -1728,8 +1775,8 @@ var A4Summary = ({
|
|
|
1728
1775
|
}
|
|
1729
1776
|
},
|
|
1730
1777
|
sortedPujaList.map((item, index) => {
|
|
1731
|
-
return /* @__PURE__ */
|
|
1732
|
-
|
|
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,
|
|
1733
1780
|
{
|
|
1734
1781
|
style: {
|
|
1735
1782
|
fontSize: 10,
|
|
@@ -1743,8 +1790,8 @@ var A4Summary = ({
|
|
|
1743
1790
|
item.name,
|
|
1744
1791
|
" - ",
|
|
1745
1792
|
item.totalCount
|
|
1746
|
-
)), /* @__PURE__ */
|
|
1747
|
-
|
|
1793
|
+
)), /* @__PURE__ */ React13.createElement(
|
|
1794
|
+
View9,
|
|
1748
1795
|
{
|
|
1749
1796
|
style: {
|
|
1750
1797
|
display: "flex",
|
|
@@ -1752,8 +1799,8 @@ var A4Summary = ({
|
|
|
1752
1799
|
border: "1px solid black"
|
|
1753
1800
|
}
|
|
1754
1801
|
},
|
|
1755
|
-
/* @__PURE__ */
|
|
1756
|
-
|
|
1802
|
+
/* @__PURE__ */ React13.createElement(
|
|
1803
|
+
View9,
|
|
1757
1804
|
{
|
|
1758
1805
|
style: {
|
|
1759
1806
|
padding: 6,
|
|
@@ -1763,10 +1810,10 @@ var A4Summary = ({
|
|
|
1763
1810
|
width: "20%"
|
|
1764
1811
|
}
|
|
1765
1812
|
},
|
|
1766
|
-
/* @__PURE__ */
|
|
1813
|
+
/* @__PURE__ */ React13.createElement(Text_default, null, "Sr No")
|
|
1767
1814
|
),
|
|
1768
|
-
/* @__PURE__ */
|
|
1769
|
-
|
|
1815
|
+
/* @__PURE__ */ React13.createElement(
|
|
1816
|
+
View9,
|
|
1770
1817
|
{
|
|
1771
1818
|
style: {
|
|
1772
1819
|
padding: 6,
|
|
@@ -1776,10 +1823,10 @@ var A4Summary = ({
|
|
|
1776
1823
|
width: "60%"
|
|
1777
1824
|
}
|
|
1778
1825
|
},
|
|
1779
|
-
/* @__PURE__ */
|
|
1826
|
+
/* @__PURE__ */ React13.createElement(Text_default, null, "Nakshatra")
|
|
1780
1827
|
),
|
|
1781
|
-
/* @__PURE__ */
|
|
1782
|
-
|
|
1828
|
+
/* @__PURE__ */ React13.createElement(
|
|
1829
|
+
View9,
|
|
1783
1830
|
{
|
|
1784
1831
|
style: {
|
|
1785
1832
|
padding: 6,
|
|
@@ -1788,11 +1835,11 @@ var A4Summary = ({
|
|
|
1788
1835
|
fontWeight: "semibold"
|
|
1789
1836
|
}
|
|
1790
1837
|
},
|
|
1791
|
-
/* @__PURE__ */
|
|
1838
|
+
/* @__PURE__ */ React13.createElement(Text_default, null, "Quantity")
|
|
1792
1839
|
)
|
|
1793
1840
|
), item.nakshatras.map((nakshatra, nakshatraIndex) => {
|
|
1794
|
-
return /* @__PURE__ */
|
|
1795
|
-
|
|
1841
|
+
return /* @__PURE__ */ React13.createElement(React13.Fragment, null, /* @__PURE__ */ React13.createElement(
|
|
1842
|
+
View9,
|
|
1796
1843
|
{
|
|
1797
1844
|
style: {
|
|
1798
1845
|
display: "flex",
|
|
@@ -1801,8 +1848,8 @@ var A4Summary = ({
|
|
|
1801
1848
|
borderTop: "none"
|
|
1802
1849
|
}
|
|
1803
1850
|
},
|
|
1804
|
-
/* @__PURE__ */
|
|
1805
|
-
|
|
1851
|
+
/* @__PURE__ */ React13.createElement(
|
|
1852
|
+
View9,
|
|
1806
1853
|
{
|
|
1807
1854
|
style: {
|
|
1808
1855
|
padding: 6,
|
|
@@ -1811,10 +1858,10 @@ var A4Summary = ({
|
|
|
1811
1858
|
width: "20%"
|
|
1812
1859
|
}
|
|
1813
1860
|
},
|
|
1814
|
-
/* @__PURE__ */
|
|
1861
|
+
/* @__PURE__ */ React13.createElement(Text_default, null, nakshatraIndex + 1)
|
|
1815
1862
|
),
|
|
1816
|
-
/* @__PURE__ */
|
|
1817
|
-
|
|
1863
|
+
/* @__PURE__ */ React13.createElement(
|
|
1864
|
+
View9,
|
|
1818
1865
|
{
|
|
1819
1866
|
style: {
|
|
1820
1867
|
padding: 6,
|
|
@@ -1823,10 +1870,10 @@ var A4Summary = ({
|
|
|
1823
1870
|
width: "60%"
|
|
1824
1871
|
}
|
|
1825
1872
|
},
|
|
1826
|
-
/* @__PURE__ */
|
|
1873
|
+
/* @__PURE__ */ React13.createElement(Text_default, null, nakshatra.name)
|
|
1827
1874
|
),
|
|
1828
|
-
/* @__PURE__ */
|
|
1829
|
-
|
|
1875
|
+
/* @__PURE__ */ React13.createElement(
|
|
1876
|
+
View9,
|
|
1830
1877
|
{
|
|
1831
1878
|
style: {
|
|
1832
1879
|
padding: 6,
|
|
@@ -1834,7 +1881,7 @@ var A4Summary = ({
|
|
|
1834
1881
|
width: "20%"
|
|
1835
1882
|
}
|
|
1836
1883
|
},
|
|
1837
|
-
/* @__PURE__ */
|
|
1884
|
+
/* @__PURE__ */ React13.createElement(Text_default, null, nakshatra.count)
|
|
1838
1885
|
)
|
|
1839
1886
|
));
|
|
1840
1887
|
})));
|
|
@@ -1848,8 +1895,8 @@ var A4Summary_default = A4Summary;
|
|
|
1848
1895
|
import { Font as Font4 } from "@react-pdf/renderer";
|
|
1849
1896
|
|
|
1850
1897
|
// src/sizes/a4/A4CombinedReport.tsx
|
|
1851
|
-
import { Document as Document9, Image as
|
|
1852
|
-
import
|
|
1898
|
+
import { Document as Document9, Image as Image12, Page as Page9, View as View10 } from "@react-pdf/renderer";
|
|
1899
|
+
import React14 from "react";
|
|
1853
1900
|
var A4CombinedReport = ({
|
|
1854
1901
|
date,
|
|
1855
1902
|
templeName,
|
|
@@ -1873,8 +1920,8 @@ var A4CombinedReport = ({
|
|
|
1873
1920
|
});
|
|
1874
1921
|
let serialOfNormalPujas = 0;
|
|
1875
1922
|
let serialOfEarlyReminders = 0;
|
|
1876
|
-
return /* @__PURE__ */
|
|
1877
|
-
|
|
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,
|
|
1878
1925
|
{
|
|
1879
1926
|
fixed: true,
|
|
1880
1927
|
style: {
|
|
@@ -1884,16 +1931,16 @@ var A4CombinedReport = ({
|
|
|
1884
1931
|
},
|
|
1885
1932
|
src: bmpLogo
|
|
1886
1933
|
}
|
|
1887
|
-
), /* @__PURE__ */
|
|
1934
|
+
), /* @__PURE__ */ React14.createElement(Text_default, { style: { fontSize: 11, marginTop: 5, textAlign: "right" } }, "Date: ", date.toDateString()), pujaData.some(
|
|
1888
1935
|
(puja) => puja.bookings.some((booking) => booking.is_early_reminder)
|
|
1889
|
-
) && /* @__PURE__ */
|
|
1890
|
-
|
|
1936
|
+
) && /* @__PURE__ */ React14.createElement(React14.Fragment, null, /* @__PURE__ */ React14.createElement(
|
|
1937
|
+
Text_default,
|
|
1891
1938
|
{
|
|
1892
1939
|
style: { fontSize: 14, fontWeight: "bold", marginTop: 10 }
|
|
1893
1940
|
},
|
|
1894
1941
|
"Early Reminders for Upcoming Pujas"
|
|
1895
|
-
), /* @__PURE__ */
|
|
1896
|
-
|
|
1942
|
+
), /* @__PURE__ */ React14.createElement(View10, { wrap: false, style: { marginTop: 10 } }, /* @__PURE__ */ React14.createElement(
|
|
1943
|
+
View10,
|
|
1897
1944
|
{
|
|
1898
1945
|
style: {
|
|
1899
1946
|
display: "flex",
|
|
@@ -1901,8 +1948,8 @@ var A4CombinedReport = ({
|
|
|
1901
1948
|
border: "1px solid black"
|
|
1902
1949
|
}
|
|
1903
1950
|
},
|
|
1904
|
-
/* @__PURE__ */
|
|
1905
|
-
|
|
1951
|
+
/* @__PURE__ */ React14.createElement(
|
|
1952
|
+
View10,
|
|
1906
1953
|
{
|
|
1907
1954
|
style: {
|
|
1908
1955
|
padding: 6,
|
|
@@ -1912,10 +1959,10 @@ var A4CombinedReport = ({
|
|
|
1912
1959
|
width: "10%"
|
|
1913
1960
|
}
|
|
1914
1961
|
},
|
|
1915
|
-
/* @__PURE__ */
|
|
1962
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, "Sr No")
|
|
1916
1963
|
),
|
|
1917
|
-
/* @__PURE__ */
|
|
1918
|
-
|
|
1964
|
+
/* @__PURE__ */ React14.createElement(
|
|
1965
|
+
View10,
|
|
1919
1966
|
{
|
|
1920
1967
|
style: {
|
|
1921
1968
|
padding: 6,
|
|
@@ -1925,10 +1972,10 @@ var A4CombinedReport = ({
|
|
|
1925
1972
|
width: "60%"
|
|
1926
1973
|
}
|
|
1927
1974
|
},
|
|
1928
|
-
/* @__PURE__ */
|
|
1975
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, "Puja Name")
|
|
1929
1976
|
),
|
|
1930
|
-
/* @__PURE__ */
|
|
1931
|
-
|
|
1977
|
+
/* @__PURE__ */ React14.createElement(
|
|
1978
|
+
View10,
|
|
1932
1979
|
{
|
|
1933
1980
|
style: {
|
|
1934
1981
|
padding: 6,
|
|
@@ -1938,10 +1985,10 @@ var A4CombinedReport = ({
|
|
|
1938
1985
|
width: "10%"
|
|
1939
1986
|
}
|
|
1940
1987
|
},
|
|
1941
|
-
/* @__PURE__ */
|
|
1988
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, "Qty")
|
|
1942
1989
|
),
|
|
1943
|
-
/* @__PURE__ */
|
|
1944
|
-
|
|
1990
|
+
/* @__PURE__ */ React14.createElement(
|
|
1991
|
+
View10,
|
|
1945
1992
|
{
|
|
1946
1993
|
style: {
|
|
1947
1994
|
padding: 6,
|
|
@@ -1951,15 +1998,15 @@ var A4CombinedReport = ({
|
|
|
1951
1998
|
width: "20%"
|
|
1952
1999
|
}
|
|
1953
2000
|
},
|
|
1954
|
-
/* @__PURE__ */
|
|
2001
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, "Date")
|
|
1955
2002
|
)
|
|
1956
2003
|
))), pujaData.some(
|
|
1957
2004
|
(puja) => puja.bookings.some((booking) => booking.is_early_reminder)
|
|
1958
2005
|
) ? pujaData.flatMap(
|
|
1959
2006
|
(puja, pujaIndex) => puja.bookings.filter((booking) => booking.is_early_reminder).map((booking, bookingIndex) => {
|
|
1960
2007
|
serialOfEarlyReminders++;
|
|
1961
|
-
return /* @__PURE__ */
|
|
1962
|
-
|
|
2008
|
+
return /* @__PURE__ */ React14.createElement(
|
|
2009
|
+
View10,
|
|
1963
2010
|
{
|
|
1964
2011
|
key: `${pujaIndex}-${bookingIndex}`,
|
|
1965
2012
|
style: {
|
|
@@ -1969,8 +2016,8 @@ var A4CombinedReport = ({
|
|
|
1969
2016
|
borderTop: "none"
|
|
1970
2017
|
}
|
|
1971
2018
|
},
|
|
1972
|
-
/* @__PURE__ */
|
|
1973
|
-
|
|
2019
|
+
/* @__PURE__ */ React14.createElement(
|
|
2020
|
+
View10,
|
|
1974
2021
|
{
|
|
1975
2022
|
style: {
|
|
1976
2023
|
padding: 6,
|
|
@@ -1979,10 +2026,10 @@ var A4CombinedReport = ({
|
|
|
1979
2026
|
width: "10%"
|
|
1980
2027
|
}
|
|
1981
2028
|
},
|
|
1982
|
-
/* @__PURE__ */
|
|
2029
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, serialOfEarlyReminders)
|
|
1983
2030
|
),
|
|
1984
|
-
/* @__PURE__ */
|
|
1985
|
-
|
|
2031
|
+
/* @__PURE__ */ React14.createElement(
|
|
2032
|
+
View10,
|
|
1986
2033
|
{
|
|
1987
2034
|
style: {
|
|
1988
2035
|
padding: 6,
|
|
@@ -1991,10 +2038,10 @@ var A4CombinedReport = ({
|
|
|
1991
2038
|
width: "60%"
|
|
1992
2039
|
}
|
|
1993
2040
|
},
|
|
1994
|
-
/* @__PURE__ */
|
|
2041
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, puja.name)
|
|
1995
2042
|
),
|
|
1996
|
-
/* @__PURE__ */
|
|
1997
|
-
|
|
2043
|
+
/* @__PURE__ */ React14.createElement(
|
|
2044
|
+
View10,
|
|
1998
2045
|
{
|
|
1999
2046
|
style: {
|
|
2000
2047
|
padding: 6,
|
|
@@ -2003,10 +2050,10 @@ var A4CombinedReport = ({
|
|
|
2003
2050
|
width: "10%"
|
|
2004
2051
|
}
|
|
2005
2052
|
},
|
|
2006
|
-
/* @__PURE__ */
|
|
2053
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, booking.quantity)
|
|
2007
2054
|
),
|
|
2008
|
-
/* @__PURE__ */
|
|
2009
|
-
|
|
2055
|
+
/* @__PURE__ */ React14.createElement(
|
|
2056
|
+
View10,
|
|
2010
2057
|
{
|
|
2011
2058
|
style: {
|
|
2012
2059
|
padding: 6,
|
|
@@ -2015,12 +2062,12 @@ var A4CombinedReport = ({
|
|
|
2015
2062
|
width: "20%"
|
|
2016
2063
|
}
|
|
2017
2064
|
},
|
|
2018
|
-
/* @__PURE__ */
|
|
2065
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, booking.date ? new Date(booking.date).toDateString() : "")
|
|
2019
2066
|
)
|
|
2020
2067
|
);
|
|
2021
2068
|
})
|
|
2022
|
-
) : null, /* @__PURE__ */
|
|
2023
|
-
|
|
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,
|
|
2024
2071
|
{
|
|
2025
2072
|
style: {
|
|
2026
2073
|
display: "flex",
|
|
@@ -2032,8 +2079,8 @@ var A4CombinedReport = ({
|
|
|
2032
2079
|
if (puja.bookings.some((booking) => booking.is_early_reminder))
|
|
2033
2080
|
return null;
|
|
2034
2081
|
serialOfNormalPujas = 0;
|
|
2035
|
-
return /* @__PURE__ */
|
|
2036
|
-
|
|
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,
|
|
2037
2084
|
{
|
|
2038
2085
|
style: {
|
|
2039
2086
|
fontSize: 10,
|
|
@@ -2047,8 +2094,8 @@ var A4CombinedReport = ({
|
|
|
2047
2094
|
puja.name,
|
|
2048
2095
|
" - ",
|
|
2049
2096
|
puja.bookings.length
|
|
2050
|
-
)), /* @__PURE__ */
|
|
2051
|
-
|
|
2097
|
+
)), /* @__PURE__ */ React14.createElement(
|
|
2098
|
+
View10,
|
|
2052
2099
|
{
|
|
2053
2100
|
style: {
|
|
2054
2101
|
display: "flex",
|
|
@@ -2056,8 +2103,8 @@ var A4CombinedReport = ({
|
|
|
2056
2103
|
border: "1px solid black"
|
|
2057
2104
|
}
|
|
2058
2105
|
},
|
|
2059
|
-
/* @__PURE__ */
|
|
2060
|
-
|
|
2106
|
+
/* @__PURE__ */ React14.createElement(
|
|
2107
|
+
View10,
|
|
2061
2108
|
{
|
|
2062
2109
|
style: {
|
|
2063
2110
|
padding: 6,
|
|
@@ -2067,10 +2114,10 @@ var A4CombinedReport = ({
|
|
|
2067
2114
|
width: "10%"
|
|
2068
2115
|
}
|
|
2069
2116
|
},
|
|
2070
|
-
/* @__PURE__ */
|
|
2117
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, "Sr No")
|
|
2071
2118
|
),
|
|
2072
|
-
/* @__PURE__ */
|
|
2073
|
-
|
|
2119
|
+
/* @__PURE__ */ React14.createElement(
|
|
2120
|
+
View10,
|
|
2074
2121
|
{
|
|
2075
2122
|
style: {
|
|
2076
2123
|
padding: 6,
|
|
@@ -2080,10 +2127,10 @@ var A4CombinedReport = ({
|
|
|
2080
2127
|
width: "20%"
|
|
2081
2128
|
}
|
|
2082
2129
|
},
|
|
2083
|
-
/* @__PURE__ */
|
|
2130
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, "Invoice No")
|
|
2084
2131
|
),
|
|
2085
|
-
/* @__PURE__ */
|
|
2086
|
-
|
|
2132
|
+
/* @__PURE__ */ React14.createElement(
|
|
2133
|
+
View10,
|
|
2087
2134
|
{
|
|
2088
2135
|
style: {
|
|
2089
2136
|
padding: 6,
|
|
@@ -2093,10 +2140,10 @@ var A4CombinedReport = ({
|
|
|
2093
2140
|
width: "35%"
|
|
2094
2141
|
}
|
|
2095
2142
|
},
|
|
2096
|
-
/* @__PURE__ */
|
|
2143
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, "Devotee Name")
|
|
2097
2144
|
),
|
|
2098
|
-
/* @__PURE__ */
|
|
2099
|
-
|
|
2145
|
+
/* @__PURE__ */ React14.createElement(
|
|
2146
|
+
View10,
|
|
2100
2147
|
{
|
|
2101
2148
|
style: {
|
|
2102
2149
|
padding: 6,
|
|
@@ -2106,10 +2153,10 @@ var A4CombinedReport = ({
|
|
|
2106
2153
|
width: "25%"
|
|
2107
2154
|
}
|
|
2108
2155
|
},
|
|
2109
|
-
/* @__PURE__ */
|
|
2156
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, "Nakshatra")
|
|
2110
2157
|
),
|
|
2111
|
-
/* @__PURE__ */
|
|
2112
|
-
|
|
2158
|
+
/* @__PURE__ */ React14.createElement(
|
|
2159
|
+
View10,
|
|
2113
2160
|
{
|
|
2114
2161
|
style: {
|
|
2115
2162
|
padding: 6,
|
|
@@ -2119,12 +2166,12 @@ var A4CombinedReport = ({
|
|
|
2119
2166
|
width: "10%"
|
|
2120
2167
|
}
|
|
2121
2168
|
},
|
|
2122
|
-
/* @__PURE__ */
|
|
2169
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, "Qty")
|
|
2123
2170
|
)
|
|
2124
2171
|
), puja.bookings.map((booking, bookingIndex) => {
|
|
2125
2172
|
serialOfNormalPujas++;
|
|
2126
|
-
return /* @__PURE__ */
|
|
2127
|
-
|
|
2173
|
+
return /* @__PURE__ */ React14.createElement(React14.Fragment, null, /* @__PURE__ */ React14.createElement(
|
|
2174
|
+
View10,
|
|
2128
2175
|
{
|
|
2129
2176
|
style: {
|
|
2130
2177
|
display: "flex",
|
|
@@ -2134,8 +2181,8 @@ var A4CombinedReport = ({
|
|
|
2134
2181
|
width: "100%"
|
|
2135
2182
|
}
|
|
2136
2183
|
},
|
|
2137
|
-
/* @__PURE__ */
|
|
2138
|
-
|
|
2184
|
+
/* @__PURE__ */ React14.createElement(
|
|
2185
|
+
View10,
|
|
2139
2186
|
{
|
|
2140
2187
|
style: {
|
|
2141
2188
|
padding: 6,
|
|
@@ -2144,10 +2191,10 @@ var A4CombinedReport = ({
|
|
|
2144
2191
|
width: "10%"
|
|
2145
2192
|
}
|
|
2146
2193
|
},
|
|
2147
|
-
/* @__PURE__ */
|
|
2194
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, serialOfNormalPujas)
|
|
2148
2195
|
),
|
|
2149
|
-
/* @__PURE__ */
|
|
2150
|
-
|
|
2196
|
+
/* @__PURE__ */ React14.createElement(
|
|
2197
|
+
View10,
|
|
2151
2198
|
{
|
|
2152
2199
|
style: {
|
|
2153
2200
|
display: "flex",
|
|
@@ -2155,16 +2202,16 @@ var A4CombinedReport = ({
|
|
|
2155
2202
|
width: "90%"
|
|
2156
2203
|
}
|
|
2157
2204
|
},
|
|
2158
|
-
/* @__PURE__ */
|
|
2159
|
-
|
|
2205
|
+
/* @__PURE__ */ React14.createElement(
|
|
2206
|
+
View10,
|
|
2160
2207
|
{
|
|
2161
2208
|
style: {
|
|
2162
2209
|
display: "flex",
|
|
2163
2210
|
flexDirection: "row"
|
|
2164
2211
|
}
|
|
2165
2212
|
},
|
|
2166
|
-
/* @__PURE__ */
|
|
2167
|
-
|
|
2213
|
+
/* @__PURE__ */ React14.createElement(
|
|
2214
|
+
View10,
|
|
2168
2215
|
{
|
|
2169
2216
|
style: {
|
|
2170
2217
|
padding: 6,
|
|
@@ -2173,10 +2220,10 @@ var A4CombinedReport = ({
|
|
|
2173
2220
|
width: `${20 * 1.11111}%`
|
|
2174
2221
|
}
|
|
2175
2222
|
},
|
|
2176
|
-
/* @__PURE__ */
|
|
2223
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, booking.invoiceNumber)
|
|
2177
2224
|
),
|
|
2178
|
-
/* @__PURE__ */
|
|
2179
|
-
|
|
2225
|
+
/* @__PURE__ */ React14.createElement(
|
|
2226
|
+
View10,
|
|
2180
2227
|
{
|
|
2181
2228
|
style: {
|
|
2182
2229
|
padding: 6,
|
|
@@ -2185,10 +2232,10 @@ var A4CombinedReport = ({
|
|
|
2185
2232
|
width: `${35 * 1.11111}%`
|
|
2186
2233
|
}
|
|
2187
2234
|
},
|
|
2188
|
-
/* @__PURE__ */
|
|
2235
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, booking.devoteeName)
|
|
2189
2236
|
),
|
|
2190
|
-
/* @__PURE__ */
|
|
2191
|
-
|
|
2237
|
+
/* @__PURE__ */ React14.createElement(
|
|
2238
|
+
View10,
|
|
2192
2239
|
{
|
|
2193
2240
|
style: {
|
|
2194
2241
|
padding: 6,
|
|
@@ -2197,10 +2244,10 @@ var A4CombinedReport = ({
|
|
|
2197
2244
|
width: `${25 * 1.11111}%`
|
|
2198
2245
|
}
|
|
2199
2246
|
},
|
|
2200
|
-
/* @__PURE__ */
|
|
2247
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, booking.nakshatra)
|
|
2201
2248
|
),
|
|
2202
|
-
/* @__PURE__ */
|
|
2203
|
-
|
|
2249
|
+
/* @__PURE__ */ React14.createElement(
|
|
2250
|
+
View10,
|
|
2204
2251
|
{
|
|
2205
2252
|
style: {
|
|
2206
2253
|
padding: 6,
|
|
@@ -2209,11 +2256,11 @@ var A4CombinedReport = ({
|
|
|
2209
2256
|
width: `${10 * 1.11111}%`
|
|
2210
2257
|
}
|
|
2211
2258
|
},
|
|
2212
|
-
/* @__PURE__ */
|
|
2259
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, booking.quantity)
|
|
2213
2260
|
)
|
|
2214
2261
|
),
|
|
2215
|
-
booking.priestNote && /* @__PURE__ */
|
|
2216
|
-
|
|
2262
|
+
booking.priestNote && /* @__PURE__ */ React14.createElement(
|
|
2263
|
+
View10,
|
|
2217
2264
|
{
|
|
2218
2265
|
style: {
|
|
2219
2266
|
padding: 6,
|
|
@@ -2222,14 +2269,14 @@ var A4CombinedReport = ({
|
|
|
2222
2269
|
width: "100%"
|
|
2223
2270
|
}
|
|
2224
2271
|
},
|
|
2225
|
-
/* @__PURE__ */
|
|
2272
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, booking.priestNote)
|
|
2226
2273
|
)
|
|
2227
2274
|
)
|
|
2228
2275
|
));
|
|
2229
2276
|
})));
|
|
2230
2277
|
})
|
|
2231
|
-
)), prasadData.length > 0 && /* @__PURE__ */
|
|
2232
|
-
|
|
2278
|
+
)), prasadData.length > 0 && /* @__PURE__ */ React14.createElement(Page9, { size: "A4", style: { padding: 30, fontFamily: "Noto Sans" } }, /* @__PURE__ */ React14.createElement(
|
|
2279
|
+
Image12,
|
|
2233
2280
|
{
|
|
2234
2281
|
fixed: true,
|
|
2235
2282
|
style: {
|
|
@@ -2239,8 +2286,8 @@ var A4CombinedReport = ({
|
|
|
2239
2286
|
},
|
|
2240
2287
|
src: bmpLogo
|
|
2241
2288
|
}
|
|
2242
|
-
), /* @__PURE__ */
|
|
2243
|
-
|
|
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,
|
|
2244
2291
|
{
|
|
2245
2292
|
style: {
|
|
2246
2293
|
display: "flex",
|
|
@@ -2248,8 +2295,8 @@ var A4CombinedReport = ({
|
|
|
2248
2295
|
marginTop: 20
|
|
2249
2296
|
}
|
|
2250
2297
|
},
|
|
2251
|
-
/* @__PURE__ */
|
|
2252
|
-
|
|
2298
|
+
/* @__PURE__ */ React14.createElement(
|
|
2299
|
+
View10,
|
|
2253
2300
|
{
|
|
2254
2301
|
style: {
|
|
2255
2302
|
display: "flex",
|
|
@@ -2259,8 +2306,8 @@ var A4CombinedReport = ({
|
|
|
2259
2306
|
fontSize: 10
|
|
2260
2307
|
}
|
|
2261
2308
|
},
|
|
2262
|
-
/* @__PURE__ */
|
|
2263
|
-
|
|
2309
|
+
/* @__PURE__ */ React14.createElement(
|
|
2310
|
+
View10,
|
|
2264
2311
|
{
|
|
2265
2312
|
style: {
|
|
2266
2313
|
padding: 6,
|
|
@@ -2268,10 +2315,10 @@ var A4CombinedReport = ({
|
|
|
2268
2315
|
width: "10%"
|
|
2269
2316
|
}
|
|
2270
2317
|
},
|
|
2271
|
-
/* @__PURE__ */
|
|
2318
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, "Sr no")
|
|
2272
2319
|
),
|
|
2273
|
-
/* @__PURE__ */
|
|
2274
|
-
|
|
2320
|
+
/* @__PURE__ */ React14.createElement(
|
|
2321
|
+
View10,
|
|
2275
2322
|
{
|
|
2276
2323
|
style: {
|
|
2277
2324
|
padding: 6,
|
|
@@ -2279,10 +2326,10 @@ var A4CombinedReport = ({
|
|
|
2279
2326
|
width: "20%"
|
|
2280
2327
|
}
|
|
2281
2328
|
},
|
|
2282
|
-
/* @__PURE__ */
|
|
2329
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, "Invoice Number")
|
|
2283
2330
|
),
|
|
2284
|
-
/* @__PURE__ */
|
|
2285
|
-
|
|
2331
|
+
/* @__PURE__ */ React14.createElement(
|
|
2332
|
+
View10,
|
|
2286
2333
|
{
|
|
2287
2334
|
style: {
|
|
2288
2335
|
padding: 6,
|
|
@@ -2290,10 +2337,10 @@ var A4CombinedReport = ({
|
|
|
2290
2337
|
width: "30%"
|
|
2291
2338
|
}
|
|
2292
2339
|
},
|
|
2293
|
-
/* @__PURE__ */
|
|
2340
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, "Devotee Name")
|
|
2294
2341
|
),
|
|
2295
|
-
/* @__PURE__ */
|
|
2296
|
-
|
|
2342
|
+
/* @__PURE__ */ React14.createElement(
|
|
2343
|
+
View10,
|
|
2297
2344
|
{
|
|
2298
2345
|
style: {
|
|
2299
2346
|
padding: 6,
|
|
@@ -2301,22 +2348,22 @@ var A4CombinedReport = ({
|
|
|
2301
2348
|
width: "30%"
|
|
2302
2349
|
}
|
|
2303
2350
|
},
|
|
2304
|
-
/* @__PURE__ */
|
|
2351
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, "Prasad Name")
|
|
2305
2352
|
),
|
|
2306
|
-
/* @__PURE__ */
|
|
2307
|
-
|
|
2353
|
+
/* @__PURE__ */ React14.createElement(
|
|
2354
|
+
View10,
|
|
2308
2355
|
{
|
|
2309
2356
|
style: {
|
|
2310
2357
|
padding: 6,
|
|
2311
2358
|
width: "10%"
|
|
2312
2359
|
}
|
|
2313
2360
|
},
|
|
2314
|
-
/* @__PURE__ */
|
|
2361
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, "Qty")
|
|
2315
2362
|
)
|
|
2316
2363
|
),
|
|
2317
2364
|
prasadData.map((item, index) => {
|
|
2318
|
-
return /* @__PURE__ */
|
|
2319
|
-
|
|
2365
|
+
return /* @__PURE__ */ React14.createElement(
|
|
2366
|
+
View10,
|
|
2320
2367
|
{
|
|
2321
2368
|
style: {
|
|
2322
2369
|
display: "flex",
|
|
@@ -2326,8 +2373,8 @@ var A4CombinedReport = ({
|
|
|
2326
2373
|
fontSize: 10
|
|
2327
2374
|
}
|
|
2328
2375
|
},
|
|
2329
|
-
/* @__PURE__ */
|
|
2330
|
-
|
|
2376
|
+
/* @__PURE__ */ React14.createElement(
|
|
2377
|
+
View10,
|
|
2331
2378
|
{
|
|
2332
2379
|
style: {
|
|
2333
2380
|
padding: 6,
|
|
@@ -2335,10 +2382,10 @@ var A4CombinedReport = ({
|
|
|
2335
2382
|
width: "10%"
|
|
2336
2383
|
}
|
|
2337
2384
|
},
|
|
2338
|
-
/* @__PURE__ */
|
|
2385
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, index + 1)
|
|
2339
2386
|
),
|
|
2340
|
-
/* @__PURE__ */
|
|
2341
|
-
|
|
2387
|
+
/* @__PURE__ */ React14.createElement(
|
|
2388
|
+
View10,
|
|
2342
2389
|
{
|
|
2343
2390
|
style: {
|
|
2344
2391
|
padding: 6,
|
|
@@ -2346,10 +2393,10 @@ var A4CombinedReport = ({
|
|
|
2346
2393
|
width: "20%"
|
|
2347
2394
|
}
|
|
2348
2395
|
},
|
|
2349
|
-
/* @__PURE__ */
|
|
2396
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, item.invoiceNumber)
|
|
2350
2397
|
),
|
|
2351
|
-
/* @__PURE__ */
|
|
2352
|
-
|
|
2398
|
+
/* @__PURE__ */ React14.createElement(
|
|
2399
|
+
View10,
|
|
2353
2400
|
{
|
|
2354
2401
|
style: {
|
|
2355
2402
|
padding: 6,
|
|
@@ -2357,10 +2404,10 @@ var A4CombinedReport = ({
|
|
|
2357
2404
|
width: "30%"
|
|
2358
2405
|
}
|
|
2359
2406
|
},
|
|
2360
|
-
/* @__PURE__ */
|
|
2407
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, item.devoteeName)
|
|
2361
2408
|
),
|
|
2362
|
-
/* @__PURE__ */
|
|
2363
|
-
|
|
2409
|
+
/* @__PURE__ */ React14.createElement(
|
|
2410
|
+
View10,
|
|
2364
2411
|
{
|
|
2365
2412
|
style: {
|
|
2366
2413
|
padding: 6,
|
|
@@ -2368,22 +2415,22 @@ var A4CombinedReport = ({
|
|
|
2368
2415
|
width: "30%"
|
|
2369
2416
|
}
|
|
2370
2417
|
},
|
|
2371
|
-
/* @__PURE__ */
|
|
2418
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, item.prasadName)
|
|
2372
2419
|
),
|
|
2373
|
-
/* @__PURE__ */
|
|
2374
|
-
|
|
2420
|
+
/* @__PURE__ */ React14.createElement(
|
|
2421
|
+
View10,
|
|
2375
2422
|
{
|
|
2376
2423
|
style: {
|
|
2377
2424
|
padding: 6,
|
|
2378
2425
|
width: "10%"
|
|
2379
2426
|
}
|
|
2380
2427
|
},
|
|
2381
|
-
/* @__PURE__ */
|
|
2428
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, item.quantity)
|
|
2382
2429
|
)
|
|
2383
2430
|
);
|
|
2384
2431
|
})
|
|
2385
|
-
)), deliveryData.length > 0 && /* @__PURE__ */
|
|
2386
|
-
|
|
2432
|
+
)), deliveryData.length > 0 && /* @__PURE__ */ React14.createElement(Page9, { size: "A4", style: { padding: 30, fontFamily: "Noto Sans" } }, /* @__PURE__ */ React14.createElement(
|
|
2433
|
+
Image12,
|
|
2387
2434
|
{
|
|
2388
2435
|
fixed: true,
|
|
2389
2436
|
style: {
|
|
@@ -2393,8 +2440,8 @@ var A4CombinedReport = ({
|
|
|
2393
2440
|
},
|
|
2394
2441
|
src: bmpLogo
|
|
2395
2442
|
}
|
|
2396
|
-
), /* @__PURE__ */
|
|
2397
|
-
|
|
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,
|
|
2398
2445
|
{
|
|
2399
2446
|
style: {
|
|
2400
2447
|
display: "flex",
|
|
@@ -2402,8 +2449,8 @@ var A4CombinedReport = ({
|
|
|
2402
2449
|
marginTop: 20
|
|
2403
2450
|
}
|
|
2404
2451
|
},
|
|
2405
|
-
/* @__PURE__ */
|
|
2406
|
-
|
|
2452
|
+
/* @__PURE__ */ React14.createElement(
|
|
2453
|
+
View10,
|
|
2407
2454
|
{
|
|
2408
2455
|
style: {
|
|
2409
2456
|
display: "flex",
|
|
@@ -2413,8 +2460,8 @@ var A4CombinedReport = ({
|
|
|
2413
2460
|
fontSize: 10
|
|
2414
2461
|
}
|
|
2415
2462
|
},
|
|
2416
|
-
/* @__PURE__ */
|
|
2417
|
-
|
|
2463
|
+
/* @__PURE__ */ React14.createElement(
|
|
2464
|
+
View10,
|
|
2418
2465
|
{
|
|
2419
2466
|
style: {
|
|
2420
2467
|
padding: 6,
|
|
@@ -2422,10 +2469,10 @@ var A4CombinedReport = ({
|
|
|
2422
2469
|
width: "10%"
|
|
2423
2470
|
}
|
|
2424
2471
|
},
|
|
2425
|
-
/* @__PURE__ */
|
|
2472
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, "Date")
|
|
2426
2473
|
),
|
|
2427
|
-
/* @__PURE__ */
|
|
2428
|
-
|
|
2474
|
+
/* @__PURE__ */ React14.createElement(
|
|
2475
|
+
View10,
|
|
2429
2476
|
{
|
|
2430
2477
|
style: {
|
|
2431
2478
|
padding: 6,
|
|
@@ -2433,10 +2480,10 @@ var A4CombinedReport = ({
|
|
|
2433
2480
|
width: "13%"
|
|
2434
2481
|
}
|
|
2435
2482
|
},
|
|
2436
|
-
/* @__PURE__ */
|
|
2483
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, "Invoice")
|
|
2437
2484
|
),
|
|
2438
|
-
/* @__PURE__ */
|
|
2439
|
-
|
|
2485
|
+
/* @__PURE__ */ React14.createElement(
|
|
2486
|
+
View10,
|
|
2440
2487
|
{
|
|
2441
2488
|
style: {
|
|
2442
2489
|
padding: 6,
|
|
@@ -2444,10 +2491,10 @@ var A4CombinedReport = ({
|
|
|
2444
2491
|
width: "18%"
|
|
2445
2492
|
}
|
|
2446
2493
|
},
|
|
2447
|
-
/* @__PURE__ */
|
|
2494
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, "Devotee Name")
|
|
2448
2495
|
),
|
|
2449
|
-
/* @__PURE__ */
|
|
2450
|
-
|
|
2496
|
+
/* @__PURE__ */ React14.createElement(
|
|
2497
|
+
View10,
|
|
2451
2498
|
{
|
|
2452
2499
|
style: {
|
|
2453
2500
|
padding: 6,
|
|
@@ -2455,10 +2502,10 @@ var A4CombinedReport = ({
|
|
|
2455
2502
|
width: "25%"
|
|
2456
2503
|
}
|
|
2457
2504
|
},
|
|
2458
|
-
/* @__PURE__ */
|
|
2505
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, "Address")
|
|
2459
2506
|
),
|
|
2460
|
-
/* @__PURE__ */
|
|
2461
|
-
|
|
2507
|
+
/* @__PURE__ */ React14.createElement(
|
|
2508
|
+
View10,
|
|
2462
2509
|
{
|
|
2463
2510
|
style: {
|
|
2464
2511
|
padding: 6,
|
|
@@ -2466,22 +2513,22 @@ var A4CombinedReport = ({
|
|
|
2466
2513
|
width: "20%"
|
|
2467
2514
|
}
|
|
2468
2515
|
},
|
|
2469
|
-
/* @__PURE__ */
|
|
2516
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, "Puja Name")
|
|
2470
2517
|
),
|
|
2471
|
-
/* @__PURE__ */
|
|
2472
|
-
|
|
2518
|
+
/* @__PURE__ */ React14.createElement(
|
|
2519
|
+
View10,
|
|
2473
2520
|
{
|
|
2474
2521
|
style: {
|
|
2475
2522
|
padding: 6,
|
|
2476
2523
|
width: "15%"
|
|
2477
2524
|
}
|
|
2478
2525
|
},
|
|
2479
|
-
/* @__PURE__ */
|
|
2526
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, "Amount")
|
|
2480
2527
|
)
|
|
2481
2528
|
),
|
|
2482
2529
|
deliveryData.map((item, index) => {
|
|
2483
|
-
return /* @__PURE__ */
|
|
2484
|
-
|
|
2530
|
+
return /* @__PURE__ */ React14.createElement(
|
|
2531
|
+
View10,
|
|
2485
2532
|
{
|
|
2486
2533
|
style: {
|
|
2487
2534
|
display: "flex",
|
|
@@ -2491,8 +2538,8 @@ var A4CombinedReport = ({
|
|
|
2491
2538
|
fontSize: 10
|
|
2492
2539
|
}
|
|
2493
2540
|
},
|
|
2494
|
-
/* @__PURE__ */
|
|
2495
|
-
|
|
2541
|
+
/* @__PURE__ */ React14.createElement(
|
|
2542
|
+
View10,
|
|
2496
2543
|
{
|
|
2497
2544
|
style: {
|
|
2498
2545
|
padding: 6,
|
|
@@ -2500,14 +2547,14 @@ var A4CombinedReport = ({
|
|
|
2500
2547
|
width: "10%"
|
|
2501
2548
|
}
|
|
2502
2549
|
},
|
|
2503
|
-
/* @__PURE__ */
|
|
2550
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, new Date(item.date).toLocaleDateString("en-GB", {
|
|
2504
2551
|
day: "2-digit",
|
|
2505
2552
|
month: "2-digit",
|
|
2506
2553
|
year: "2-digit"
|
|
2507
2554
|
}))
|
|
2508
2555
|
),
|
|
2509
|
-
/* @__PURE__ */
|
|
2510
|
-
|
|
2556
|
+
/* @__PURE__ */ React14.createElement(
|
|
2557
|
+
View10,
|
|
2511
2558
|
{
|
|
2512
2559
|
style: {
|
|
2513
2560
|
padding: 6,
|
|
@@ -2515,10 +2562,10 @@ var A4CombinedReport = ({
|
|
|
2515
2562
|
width: "13%"
|
|
2516
2563
|
}
|
|
2517
2564
|
},
|
|
2518
|
-
/* @__PURE__ */
|
|
2565
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, item.invoiceNumber)
|
|
2519
2566
|
),
|
|
2520
|
-
/* @__PURE__ */
|
|
2521
|
-
|
|
2567
|
+
/* @__PURE__ */ React14.createElement(
|
|
2568
|
+
View10,
|
|
2522
2569
|
{
|
|
2523
2570
|
style: {
|
|
2524
2571
|
padding: 6,
|
|
@@ -2526,10 +2573,10 @@ var A4CombinedReport = ({
|
|
|
2526
2573
|
width: "18%"
|
|
2527
2574
|
}
|
|
2528
2575
|
},
|
|
2529
|
-
/* @__PURE__ */
|
|
2576
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, item.devoteeName)
|
|
2530
2577
|
),
|
|
2531
|
-
/* @__PURE__ */
|
|
2532
|
-
|
|
2578
|
+
/* @__PURE__ */ React14.createElement(
|
|
2579
|
+
View10,
|
|
2533
2580
|
{
|
|
2534
2581
|
style: {
|
|
2535
2582
|
padding: 6,
|
|
@@ -2537,10 +2584,10 @@ var A4CombinedReport = ({
|
|
|
2537
2584
|
width: "25%"
|
|
2538
2585
|
}
|
|
2539
2586
|
},
|
|
2540
|
-
/* @__PURE__ */
|
|
2587
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, item.address)
|
|
2541
2588
|
),
|
|
2542
|
-
/* @__PURE__ */
|
|
2543
|
-
|
|
2589
|
+
/* @__PURE__ */ React14.createElement(
|
|
2590
|
+
View10,
|
|
2544
2591
|
{
|
|
2545
2592
|
style: {
|
|
2546
2593
|
padding: 6,
|
|
@@ -2548,17 +2595,17 @@ var A4CombinedReport = ({
|
|
|
2548
2595
|
width: "20%"
|
|
2549
2596
|
}
|
|
2550
2597
|
},
|
|
2551
|
-
/* @__PURE__ */
|
|
2598
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, item.pujaName)
|
|
2552
2599
|
),
|
|
2553
|
-
/* @__PURE__ */
|
|
2554
|
-
|
|
2600
|
+
/* @__PURE__ */ React14.createElement(
|
|
2601
|
+
View10,
|
|
2555
2602
|
{
|
|
2556
2603
|
style: {
|
|
2557
2604
|
padding: 6,
|
|
2558
2605
|
width: "15%"
|
|
2559
2606
|
}
|
|
2560
2607
|
},
|
|
2561
|
-
/* @__PURE__ */
|
|
2608
|
+
/* @__PURE__ */ React14.createElement(Text_default, null, item.amount.toLocaleString("en-IN", {
|
|
2562
2609
|
maximumFractionDigits: 2,
|
|
2563
2610
|
style: "currency",
|
|
2564
2611
|
currency: "INR"
|
|
@@ -2577,15 +2624,15 @@ var getPrintBlob = ({
|
|
|
2577
2624
|
dates
|
|
2578
2625
|
}) => {
|
|
2579
2626
|
if (size === "A4") {
|
|
2580
|
-
const blob = pdf(/* @__PURE__ */
|
|
2627
|
+
const blob = pdf(/* @__PURE__ */ React15.createElement(A4Print_default, { data, dates })).toBlob();
|
|
2581
2628
|
return blob;
|
|
2582
2629
|
} else {
|
|
2583
|
-
const blob = pdf(/* @__PURE__ */
|
|
2630
|
+
const blob = pdf(/* @__PURE__ */ React15.createElement(T2Inch_default, { data, dates })).toBlob();
|
|
2584
2631
|
return blob;
|
|
2585
2632
|
}
|
|
2586
2633
|
};
|
|
2587
2634
|
var getA4SummaryBlob = async () => {
|
|
2588
|
-
const blob = await pdf(/* @__PURE__ */
|
|
2635
|
+
const blob = await pdf(/* @__PURE__ */ React15.createElement(A4Print_default, { data: [], dates: ["", ""] })).toBlob();
|
|
2589
2636
|
return blob;
|
|
2590
2637
|
};
|
|
2591
2638
|
var printDevoteeReceipt2Inch = async (data) => {
|
|
@@ -2659,7 +2706,7 @@ var reportPrinter = class {
|
|
|
2659
2706
|
}
|
|
2660
2707
|
async print(data) {
|
|
2661
2708
|
const ReportComponent = options[this.option][this.size];
|
|
2662
|
-
const document = /* @__PURE__ */
|
|
2709
|
+
const document = /* @__PURE__ */ React15.createElement(ReportComponent, { ...data });
|
|
2663
2710
|
const blob = pdf(document).toBlob();
|
|
2664
2711
|
blob.then((blob2) => {
|
|
2665
2712
|
var blobURL = URL.createObjectURL(blob2);
|
|
@@ -2674,7 +2721,7 @@ var reportPrinter = class {
|
|
|
2674
2721
|
}
|
|
2675
2722
|
async getBlob(data) {
|
|
2676
2723
|
const ReportComponent = options[this.option][this.size];
|
|
2677
|
-
const document = /* @__PURE__ */
|
|
2724
|
+
const document = /* @__PURE__ */ React15.createElement(ReportComponent, { ...data });
|
|
2678
2725
|
const blob = pdf(document).toBlob();
|
|
2679
2726
|
return blob;
|
|
2680
2727
|
}
|