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