@bookmypuja-tech/bmp-pdf 0.4.0 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +23 -8
- package/dist/index.js +2 -2
- package/package.json +16 -6
package/dist/index.d.ts
CHANGED
|
@@ -119,18 +119,19 @@ interface ISummaryPujaList {
|
|
|
119
119
|
reportTiming?: IReportTimings;
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
-
interface IPostalItem$
|
|
122
|
+
interface IPostalItem$2 {
|
|
123
123
|
id: string;
|
|
124
124
|
name: string;
|
|
125
125
|
pujaDetails: string;
|
|
126
126
|
phone: string;
|
|
127
127
|
address: string;
|
|
128
|
+
qrContent: string;
|
|
128
129
|
}
|
|
129
|
-
interface IPostalReportProps {
|
|
130
|
+
interface IPostalReportProps$1 {
|
|
130
131
|
startDate: Date;
|
|
131
132
|
endDate: Date;
|
|
132
133
|
templeName: string;
|
|
133
|
-
data?: IPostalItem$
|
|
134
|
+
data?: IPostalItem$2[];
|
|
134
135
|
}
|
|
135
136
|
|
|
136
137
|
interface CombinedReportData$1 {
|
|
@@ -139,7 +140,7 @@ interface CombinedReportData$1 {
|
|
|
139
140
|
templeName: string;
|
|
140
141
|
pujaData: IPuja$1[];
|
|
141
142
|
prasadData: IPrasadItem$2[];
|
|
142
|
-
deliveryData: IPostalItem$
|
|
143
|
+
deliveryData: IPostalItem$2[];
|
|
143
144
|
reportTiming?: IReportTimings;
|
|
144
145
|
}
|
|
145
146
|
|
|
@@ -327,7 +328,7 @@ interface IPrasadDelivery {
|
|
|
327
328
|
data: IPrasadItem[];
|
|
328
329
|
}
|
|
329
330
|
|
|
330
|
-
interface IPostalItem {
|
|
331
|
+
interface IPostalItem$1 {
|
|
331
332
|
id: string;
|
|
332
333
|
name: string;
|
|
333
334
|
address: string;
|
|
@@ -340,10 +341,24 @@ interface CombinedReportData {
|
|
|
340
341
|
templeName: string;
|
|
341
342
|
pujaData: IPuja[];
|
|
342
343
|
prasadData: IPrasadItem$1[];
|
|
343
|
-
deliveryData: IPostalItem[];
|
|
344
|
+
deliveryData: IPostalItem$1[];
|
|
344
345
|
reportTiming?: IReportTimings;
|
|
345
346
|
}
|
|
346
347
|
|
|
348
|
+
interface IPostalItem {
|
|
349
|
+
id: string;
|
|
350
|
+
name: string;
|
|
351
|
+
pujaDetails: string;
|
|
352
|
+
phone: string;
|
|
353
|
+
address: string;
|
|
354
|
+
}
|
|
355
|
+
interface IPostalReportProps {
|
|
356
|
+
startDate: Date;
|
|
357
|
+
endDate: Date;
|
|
358
|
+
templeName: string;
|
|
359
|
+
data?: IPostalItem[];
|
|
360
|
+
}
|
|
361
|
+
|
|
347
362
|
type IReportOptions = "kitchen" | "transaction" | "prasad-delivery" | "prasad" | "puja-detailed" | "puja-summary" | "combined-report" | "multi-temple-payment" | "settlements-report" | "invoice" | "postal-report" | "payment-settlement-report" | "invoice-breakup" | "puja-count";
|
|
348
363
|
type IReportSize = "A4" | "110mm";
|
|
349
364
|
type ReportDataTypes = {
|
|
@@ -357,7 +372,7 @@ type ReportDataTypes = {
|
|
|
357
372
|
"multi-temple-payment": IMultiTemplePaymentReport;
|
|
358
373
|
"settlements-report": ISettlementsReport;
|
|
359
374
|
"invoice": IInvoiceProps;
|
|
360
|
-
"postal-report": IPostalReportProps;
|
|
375
|
+
"postal-report": IPostalReportProps$1 | IPostalReportProps;
|
|
361
376
|
"payment-settlement-report": PaymentSettlementProps;
|
|
362
377
|
"invoice-breakup": InvoiceLevelReportProps;
|
|
363
378
|
"puja-count": IPujaCountReportProps;
|
|
@@ -370,4 +385,4 @@ declare class reportPrinter<T extends IReportOptions> {
|
|
|
370
385
|
getBlob(data: ReportDataTypes[T]): Promise<Blob>;
|
|
371
386
|
}
|
|
372
387
|
|
|
373
|
-
export { A4Print, type CombinedReportData as CombinedReportData110mm, type IInvoiceData, type IInvoiceProps, type KitchenReportProps as IKitchenReport, type IMultiTemplePaymentReport, type IPostalReportProps, type IPrasadDelivery$1 as IPrasadDelivery, type IPrasadDelivery as IPrasadDelivery110mm, type IPrasadReport$1 as IPrasadReport, type IPrasadReport as IPrasadReport110mm, type IPujaCountData, type IPujaCountReportProps, type IPujaList as IPujaList110mm, type IPujaList$1 as IPujaReport, type ISettlementRow, type ISettlementsReport, type ISummaryPujaList as ISummaryPujaReport, type ITransactionReport, type InvoiceLevelData, type InvoiceLevelReportProps, type PaymentSettlementData, type PaymentSettlementProps, T2Inch, reportPrinter };
|
|
388
|
+
export { A4Print, type CombinedReportData as CombinedReportData110mm, type IInvoiceData, type IInvoiceProps, type KitchenReportProps as IKitchenReport, type IMultiTemplePaymentReport, type IPostalReportProps$1 as IPostalReportProps, type IPostalReportProps as IPostalReportProps110mm, type IPrasadDelivery$1 as IPrasadDelivery, type IPrasadDelivery as IPrasadDelivery110mm, type IPrasadReport$1 as IPrasadReport, type IPrasadReport as IPrasadReport110mm, type IPujaCountData, type IPujaCountReportProps, type IPujaList as IPujaList110mm, type IPujaList$1 as IPujaReport, type ISettlementRow, type ISettlementsReport, type ISummaryPujaList as ISummaryPujaReport, type ITransactionReport, type InvoiceLevelData, type InvoiceLevelReportProps, type PaymentSettlementData, type PaymentSettlementProps, T2Inch, reportPrinter };
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {Font,StyleSheet,Document,Page,Image,Text,View,pdf}from'@react-pdf/renderer';import t from'react';import {maxBy}from'lodash';var gt=Object.defineProperty;var ft=(r,o,a)=>o in r?gt(r,o,{enumerable:true,configurable:true,writable:true,value:a}):r[o]=a;var be=(r,o,a)=>ft(r,typeof o!="symbol"?o+"":o,a);var U=r=>{typeof r=="string"&&(r=new Date(r));let o={day:"2-digit",month:"short",year:"numeric"};return r.toLocaleDateString("en-GB",o).replace(",","")};var oe="https://res.cloudinary.com/dpaigt2bx/image/upload/f_auto,q_auto/v1/General%20BMP%20assets/vkesyodnuxuwevdwrk6m",ge="https://res.cloudinary.com/dpaigt2bx/raw/upload/v1742817493/fonts/ntbri6mclms8cfx3dk2e.ttf",fe="https://res.cloudinary.com/dpaigt2bx/raw/upload/v1742817493/fonts/ojiymraiiuw7juzkmmu8.ttf",Fe="https://res.cloudinary.com/dpaigt2bx/raw/upload/v1743420993/NotoSans-Regular_pmvebt.ttf",Ae="https://res.cloudinary.com/dpaigt2bx/raw/upload/v1743431605/NotoSans-Bold_kagtvd.ttf",Ve="https://res.cloudinary.com/dpaigt2bx/raw/upload/v1743431765/NotoSans-SemiBold_o96oas.ttf";var Ce="https://res.cloudinary.com/dpaigt2bx/image/upload/v1752653165/BookMyPuja_1_1_bd1xa0.png",Pe="https://res.cloudinary.com/dpaigt2bx/image/upload/v1752669810/paid-5025785_1280_afg4ob_gcacmg.png",Te={morning:"Morning",evening:"Evening"};Font.register({family:"Roboto",fontWeight:"normal",src:ge});Font.register({family:"Roboto",fontWeight:"bold",src:fe});var Ne=StyleSheet.create({page:{padding:30,fontFamily:"Roboto"},pujaTile:{padding:10,fontSize:9,border:"1px solid rgb(100,100,100)",borderRadius:5,width:"100%",display:"flex",flexDirection:"row"}}),wt=({data:r,dates:o})=>{let a=U(o[0])===U(o[1]);return t.createElement(Document,null,t.createElement(Page,{size:"A4",style:Ne.page},t.createElement(Image,{fixed:true,style:{height:15,width:75,marginBottom:10},src:oe}),t.createElement(Text,{style:{fontSize:13,marginBottom:2}},"Puja List"),t.createElement(Text,{style:{fontSize:10,marginBottom:10}},"Date",":"," ",a?U(o[0]):`${U(o[0])} - ${U(o[1])}`),t.createElement(View,{style:{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"space-between",gap:8}},r?r.map((i,n)=>t.createElement(View,{wrap:false,key:n,style:Ne.pujaTile},t.createElement(View,{style:{display:"flex",flexDirection:"row"}},t.createElement(Text,{style:{opacity:.6,marginRight:10}},"#",(n+1).toString().padStart(2,"0"))),t.createElement(View,{style:{flexGrow:1}},t.createElement(View,{style:{display:"flex",flexDirection:"row",marginBottom:3,gap:3}},t.createElement(Text,{style:{fontSize:10,fontWeight:"bold"}},i.participantName),t.createElement(Text,{style:{fontSize:10,fontWeight:"bold"}},"-"),t.createElement(Text,{style:{fontSize:10,fontWeight:"bold"}},i.participantNakshatra)),t.createElement(View,{style:{display:"flex",flexDirection:"row",alignContent:"flex-end",gap:10}},t.createElement(View,{style:{display:"flex",flexDirection:"row",alignContent:"flex-end"}},t.createElement(Text,null,"Puja name : "),t.createElement(Text,{style:{fontSize:10,fontWeight:"bold"}},i.pujaName)),a?null:t.createElement(View,{style:{display:"flex",flexDirection:"row",alignContent:"flex-end"}},t.createElement(Text,null,"Date: "),t.createElement(Text,{style:{fontWeight:"bold"}},U(i.date)))),t.createElement(View,{style:{display:"flex",flexDirection:"row",alignContent:"flex-end",gap:10}}),i.priestNote!==""&&i.priestNote!==null&&i.priestNote!==void 0?t.createElement(View,{style:{display:"flex",flexDirection:"row",justifyContent:"space-between",marginTop:3}},t.createElement(Text,null,"Priest Note: ",i.priestNote)):null),t.createElement(View,{style:{display:"flex",flexDirection:"column",alignItems:"flex-end"}},t.createElement(Text,{style:{fontWeight:"bold",fontSize:10}},"Rs ",i.amount),i.paymentStatus=="pending"?t.createElement(View,{style:{backgroundColor:"#000000",paddingVertical:3,paddingHorizontal:5,borderRadius:5,marginTop:3}},t.createElement(Text,{style:{color:"#ffffff",fontSize:8}},"Pending")):null))):null)))},bt=wt;Font.register({family:"Roboto",fontWeight:"normal",src:ge});Font.register({family:"Roboto",fontWeight:"bold",src:fe});var I=1,se=25*I,Be=StyleSheet.create({page:{padding:10*I,fontFamily:"Roboto"},pujaTile:{paddingVertical:10*I,paddingHorizontal:10*I,fontSize:se,border:`${5*I}px solid black`,borderRadius:5*I,width:"100%",display:"flex",flexDirection:"column"}}),Vt=({data:r,dates:o})=>{let a=U(o[0])===U(o[1]);return t.createElement(Document,null,t.createElement(Page,{dpi:200,size:[457*I],style:Be.page},t.createElement(Image,{fixed:true,style:{height:55*I,width:274*I,marginBottom:10*I,marginHorizontal:"auto"},src:oe}),t.createElement(Text,{style:{fontSize:25*I,marginBottom:5*I,marginHorizontal:"auto"}},"Puja List"),t.createElement(Text,{style:{fontSize:20*I,marginBottom:5*I,marginHorizontal:"auto",fontWeight:"bold"}},"Date",":"," ",a?U(o[0]):`${U(o[0])} - ${U(o[1])}`),t.createElement(Text,{style:{fontSize:17*I,marginBottom:20*I,marginHorizontal:"auto"}},"Printed at : ",new Date().toLocaleString()),t.createElement(View,{style:{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"space-between",gap:15*I}},r?r.map((i,n)=>t.createElement(View,{wrap:false,key:n,style:Be.pujaTile},t.createElement(View,{style:{display:"flex",flexDirection:"row",justifyContent:"space-between",marginBottom:5*I}},t.createElement(Text,{style:{opacity:.6,marginRight:10*I}},"#",(n+1).toString().padStart(2,"0")),t.createElement(View,{style:{display:"flex",flexDirection:"row",alignItems:"flex-end",gap:10*I}},i.paymentStatus=="pending"?t.createElement(View,{style:{backgroundColor:"#000000",paddingVertical:3*I,paddingHorizontal:5*I,borderRadius:5*I,marginTop:3*I}},t.createElement(Text,{style:{color:"#ffffff",fontSize:se}},"Pending")):null,t.createElement(Text,{style:{fontWeight:"bold",fontSize:se}},"Rs ",i.amount))),t.createElement(View,{style:{flexGrow:1}},t.createElement(View,{style:{display:"flex",flexDirection:"row",flexWrap:"wrap",marginBottom:3*I,gap:3*I}},t.createElement(Text,{style:{fontSize:se,fontWeight:"bold"}},i.participantName),t.createElement(Text,{style:{fontSize:se,fontWeight:"bold"}},"-"),t.createElement(Text,{style:{fontSize:se,fontWeight:"bold"}},i.participantNakshatra)),t.createElement(View,{style:{display:"flex",flexDirection:"column",alignContent:"flex-end",gap:10*I}},t.createElement(View,{style:{display:"flex",flexDirection:"row",flexWrap:"wrap",alignContent:"flex-end"}},t.createElement(Text,null,"Puja name : "),t.createElement(Text,{style:{fontSize:se,fontWeight:"bold"}},i.pujaName)),a?null:t.createElement(View,{style:{display:"flex",flexDirection:"row",alignContent:"flex-end"}},t.createElement(Text,null,"Date: "),t.createElement(Text,{style:{fontWeight:"bold"}},U(i.date)))),t.createElement(View,{style:{display:"flex",flexDirection:"row",alignContent:"flex-end",gap:10*I}}),i.priestNote!==""&&i.priestNote!==null&&i.priestNote!==void 0?t.createElement(View,{style:{display:"flex",flexDirection:"row",justifyContent:"space-between",marginTop:3*I}},t.createElement(Text,null,"Priest Note: ",i.priestNote)):null))):null)))},Ct=Vt;var Nt={Latin:/[A-Za-z\u00AA\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02B8\u02E0-\u02E4\u1D00-\u1D25\u1D2C-\u1D5C\u1D62-\u1D65\u1D6B-\u1D77\u1D79-\u1DBE\u1E00-\u1EFF\u2071\u207F\u2090-\u209C\u212A\u212B\u2132\u214E\u2160-\u2188\u2C60-\u2C7F\uA722-\uA787\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA7FF\uAB30-\uAB5A\uAB5C-\uAB64\uAB66-\uAB69\uFB00-\uFB06\uFF21-\uFF3A\uFF41-z]|\uD801[\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]/g,SC:/[\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u3005\u3007\u3021-\u3029\u3038-\u303B\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFA6D\uFA70-\uFAD9]|\uD81B[\uDFE2\uDFE3\uDFF0\uDFF1]|[\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF]/g,Cyrillic:/[\u0400-\u0484\u0487-\u052F\u1C80-\u1C88\u1D2B\u1D78\u2DE0-\u2DFF\uA640-\uA69F\uFE2E\uFE2F]|\uD838[\uDC30-\uDC6D\uDC8F]/g,Arabic:/[\u0600-\u0604\u0606-\u060B\u060D-\u061A\u061C-\u061E\u0620-\u063F\u0641-\u064A\u0656-\u066F\u0671-\u06DC\u06DE-\u06FF\u0750-\u077F\u0870-\u088E\u0890\u0891\u0898-\u08E1\u08E3-\u08FF\uFB50-\uFBC2\uFBD3-\uFD3D\uFD40-\uFD8F\uFD92-\uFDC7\uFDCF\uFDF0-\uFDFF\uFE70-\uFE74\uFE76-\uFEFC]|\uD803[\uDE60-\uDE7E\uDEFD-\uDEFF]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB\uDEF0\uDEF1]/g,Bengali:/[\u0980-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09FE]/g,Devanagari:/[\u0900-\u0950\u0955-\u0963\u0966-\u097F\uA8E0-\uA8FF]|\uD806[\uDF00-\uDF09]/g,JP:/[\u3041-\u3096\u309D-\u309F]|\uD82C[\uDC01-\uDD1F\uDD32\uDD50-\uDD52]|\uD83C\uDE00|[\u30A1-\u30FA\u30FD-\u30FF\u31F0-\u31FF\u32D0-\u32FE\u3300-\u3357\uFF66-\uFF6F\uFF71-\uFF9D]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00\uDD20-\uDD22\uDD55\uDD64-\uDD67]|[\u3400-\u4DB5\u4E00-\u9FAF]/g,KR:/[\u1100-\u11FF\u302E\u302F\u3131-\u318E\u3200-\u321E\u3260-\u327E\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uFFA0-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/g,Tamil:/[\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BFA]|\uD807[\uDFC0-\uDFF1\uDFFF]/g,Kannada:/[\u0C80-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1-\u0CF3]/g,Myanmar:/[\u1000-\u109F\uA9E0-\uA9FE\uAA60-\uAA7F]/g,Ethiopic:/[\u1200-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u137C\u1380-\u1399\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]/g,Thai:/[\u0E01-\u0E3A\u0E40-\u0E5B]/g,Greek:/[\u0370-\u0373\u0375-\u0377\u037A-\u037D\u037F\u0384\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03E1\u03F0-\u03FF\u1D26-\u1D2A\u1D5D-\u1D61\u1D66-\u1D6A\u1DBF\u1F00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FC4\u1FC6-\u1FD3\u1FD6-\u1FDB\u1FDD-\u1FEF\u1FF2-\u1FF4\u1FF6-\u1FFE\u2126\uAB65]|\uD800[\uDD40-\uDD8E\uDDA0]|\uD834[\uDE00-\uDE45]/g,Khmer:/[\u1780-\u17DD\u17E0-\u17E9\u17F0-\u17F9\u19E0-\u19FF]/g,Armenian:/[\u0531-\u0556\u0559-\u058A\u058D-\u058F\uFB13-\uFB17]/g,Hebrew:/[\u0591-\u05C7\u05D0-\u05EA\u05EF-\u05F4\uFB1D-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFB4F]/g,Georgian:/[\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u10FF\u1C90-\u1CBA\u1CBD-\u1CBF\u2D00-\u2D25\u2D27\u2D2D]/g,Lao:/[\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECE\u0ED0-\u0ED9\u0EDC-\u0EDF]/g,"Canadian Aboriginal":/[\u1400-\u167F\u18B0-\u18F5]|\uD806[\uDEB0-\uDEBF]/g,Sinhala:/[\u0D81-\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2-\u0DF4]|\uD804[\uDDE1-\uDDF4]/g,"Ol Chiki":/[\u1C50-\u1C7F]/g,Tibetan:/[\u0F00-\u0F47\u0F49-\u0F6C\u0F71-\u0F97\u0F99-\u0FBC\u0FBE-\u0FCC\u0FCE-\u0FD4\u0FD9\u0FDA]/g,Tifinagh:/[\u2D30-\u2D67\u2D6F\u2D70\u2D7F]/g,Yi:/[\uA000-\uA48C\uA490-\uA4C6]/g,Syriac:/[\u0700-\u070D\u070F-\u074A\u074D-\u074F\u0860-\u086A]/g,Thaana:/[\u0780-\u07B1]/g,Vai:/[\uA500-\uA62B]/g,Cherokee:/[\u13A0-\u13F5\u13F8-\u13FD\uAB70-\uABBF]/g,"Tai Tham":/[\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA0-\u1AAD]/g,"Tai Viet":/[\uAA80-\uAAC2\uAADB-\uAADF]/g,Javanese:/[\uA980-\uA9CD\uA9D0-\uA9D9\uA9DE\uA9DF]/g,Telugu:/[\u0C00-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3C-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C5D\u0C60-\u0C63\u0C66-\u0C6F\u0C77-\u0C7F]/g,Gujarati:/[\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AF1\u0AF9-\u0AFF]/g,Malayalam:/[\u0D00-\u0D03\u0D05-\u0D39\u0D3A\u0D3B\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D60-\u0D63\u0D66-\u0D6F\u0D70-\u0D7F]/g,Gurmukhi:/[\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A76]/g},It=({style:r={},children:o})=>{let a=T=>{let l=maxBy(Object.entries(Nt),([x,D])=>{let L=T.match(D);return L?L.length:0});return l?l[0]:"Latin"},i=T=>[/\b\d{2}\/\d{2}\/\d{4}\b/,/\b\d{2}\s\w{3}\s\d{4}\b/].some(x=>x.test(T));function n(T){return T.replace(/[\uFF01-\uFF5E]/g,l=>`${String.fromCharCode(l.charCodeAt(0)-65248)} `)}let u=T=>{let l=[],x=null,D="";for(let L of T){L=n(L);let ne=a(L);ne!==x?(D&&l.push({text:D,script:x}),x=ne,D=L):D+=L;}return D&&l.push({text:D,script:x}),l},p=[];o&&typeof o=="string"&&!Array.isArray(o)&&!i(o)&&u(o).forEach((l,x)=>{let D=l.script==="Latin"||!l.script?"Noto Sans":`Noto Sans ${l.script}`;p.push(t.createElement(Text,{key:x,style:{fontFamily:D}},l.text));});let b=[],m={fontFamily:"Noto Sans"};return Array.isArray(r)?b=[...r,m]:r&&Object.keys(r).length>0?b=[r,m]:b=[m],t.createElement(Text,{style:b},p?.length?p:o)},e=It;var zt=({startDate:r,endDate:o,reportTiming:a,templeName:i,reportName:n})=>t.createElement(t.Fragment,null,t.createElement(Image,{fixed:true,style:{height:15,width:75,marginBottom:10},src:oe}),o?t.createElement(e,{style:{fontSize:11,marginTop:5,textAlign:"right"}},"Dates: ",r.toDateString()," - ",o.toDateString()):t.createElement(e,{style:{fontSize:11,marginTop:5,textAlign:"right"}},"Date: ",r.toDateString()),a&&Object.keys(Te).includes(a)?t.createElement(e,{style:{fontSize:11,marginTop:5,textAlign:"right"}},Te[a]," Report"):null,t.createElement(e,{style:{fontSize:14,fontWeight:"bold"}},n),t.createElement(e,{style:{fontSize:12}},`${i}`)),P=zt;var vt=({startDate:r,endDate:o,templeName:a,data:i,reportTiming:n})=>t.createElement(t.Fragment,null,t.createElement(Document,null,t.createElement(Page,{size:"A4",style:{padding:30,fontFamily:"Noto Sans"}},t.createElement(P,{startDate:r,endDate:o,templeName:a,reportTiming:n,reportName:"Temple Prasad (Kitchen) Report"}),i.length>0?t.createElement(View,{style:{display:"flex",flexDirection:"column",marginTop:20}},t.createElement(View,{style:{display:"flex",flexDirection:"row",border:"1px solid #000",fontSize:10,fontWeight:"semibold"}},t.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"20%"}},t.createElement(e,null,"Sr no")),t.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"60%"}},t.createElement(e,null,"Prasad Name")),t.createElement(View,{style:{padding:6,borderRight:"none",width:"20%"}},t.createElement(e,null,"Quantity"))),i.map((u,p)=>t.createElement(View,{style:{display:"flex",flexDirection:"row",border:"1px solid #000",borderTop:"none",fontSize:10}},t.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"20%"}},t.createElement(e,null,p+1)),t.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"60%"}},t.createElement(e,null,u.name)),t.createElement(View,{style:{padding:6,borderRight:"none",width:"20%"}},t.createElement(e,null,u.quantity))))):t.createElement(e,{style:{fontSize:18,textAlign:"center",marginTop:100}},"No data available for the selected date range")))),ve=vt;var Wt=({startDate:r,endDate:o,templeName:a,data:i})=>{let n=i.reduce((p,b)=>b.status==="cancelled"?p:p+b.bookingAmount,0),u=i.reduce((p,b)=>b.status==="cancelled"?p:p+b.creditedAmount,0);return t.createElement(t.Fragment,null,t.createElement(Document,null,t.createElement(Page,{size:"A4",style:{padding:30,fontFamily:"Noto Sans"}},t.createElement(P,{startDate:r,endDate:o,reportName:"Transactions Report",templeName:a}),i.length>0?t.createElement(t.Fragment,null,t.createElement(e,{style:{fontSize:10,marginTop:10}},"Total Bookings: ",n.toLocaleString("en-IN",{maximumFractionDigits:2,style:"currency",currency:"INR"})),t.createElement(e,{style:{fontSize:10}},"Total Credited Amount: ",u.toLocaleString("en-IN",{maximumFractionDigits:2,style:"currency",currency:"INR"})),t.createElement(View,{style:{display:"flex",flexDirection:"column",marginTop:20}},t.createElement(View,{style:{display:"flex",flexDirection:"row",border:"1px solid black",fontWeight:"semibold",fontSize:10}},t.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"8%"}},t.createElement(e,null,"Sr no")),t.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"23%"}},t.createElement(e,null,"Date")),t.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"19%"}},t.createElement(e,null,"Invoice")),t.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"15%"}},t.createElement(e,null,"Booking Amt")),t.createElement(View,{style:{padding:6,width:"15%",borderRight:"1px solid black"}},t.createElement(e,null,"Credited Amt")),t.createElement(View,{style:{padding:6,width:"20%"}},t.createElement(e,null,"Transaction ID"))),i.map((p,b)=>t.createElement(View,{style:{display:"flex",flexDirection:"row",border:"1px solid black",borderTop:"none",fontSize:10}},t.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"8%"}},t.createElement(e,null,b+1)),t.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"23%"}},t.createElement(e,null,p.date," ",p.time)),t.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"19%"}},t.createElement(e,null,p.invoiceNumber)),p.status=="cancelled"?t.createElement(t.Fragment,null,t.createElement(View,{style:{padding:6,width:"50%"}},t.createElement(e,{style:{textAlign:"center"}},"CANCELLED"))):t.createElement(t.Fragment,null,t.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"15%"}},t.createElement(e,null,p.bookingAmount.toLocaleString("en-IN",{maximumFractionDigits:2,style:"currency",currency:"INR"}))),t.createElement(View,{style:{padding:6,width:"15%",borderRight:"1px solid black"}},t.createElement(e,null,p.creditedAmount.toLocaleString("en-IN",{maximumFractionDigits:2,style:"currency",currency:"INR"}))),t.createElement(View,{style:{padding:6,width:"20%"}},t.createElement(e,null,p.transactionId))))))):t.createElement(e,{style:{fontSize:18,textAlign:"center",marginTop:100}},"No data available for the selected date range"))))},Ee=Wt;var $t=({startDate:r,endDate:o,templeName:a,data:i})=>(i=i.map(n=>{let u="";try{let p=JSON.parse(n.address);u=`${p.address}, ${p.locality}, ${p.state} - ${p.pincode}`;}catch(p){console.error("Error parsing address:",p),u=n.address;}return {...n,address:u}}),t.createElement(Document,null,t.createElement(Page,{size:"A4",style:{padding:30,fontFamily:"Noto Sans"}},t.createElement(P,{startDate:r,endDate:o,reportName:"Prasad Delivery Address",templeName:a}),i.length>0?t.createElement(View,{style:{display:"flex",flexDirection:"column",marginTop:20}},t.createElement(View,{style:{display:"flex",flexDirection:"row",border:"1px solid black",fontWeight:"semibold",fontSize:10}},t.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"10%"}},t.createElement(e,null,"Date")),t.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"13%"}},t.createElement(e,null,"Invoice")),t.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"18%"}},t.createElement(e,null,"Devotee Name")),t.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"25%"}},t.createElement(e,null,"Address")),t.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"20%"}},t.createElement(e,null,"Puja Name")),t.createElement(View,{style:{padding:6,width:"15%"}},t.createElement(e,null,"Amount"))),i.map((n,u)=>t.createElement(View,{style:{display:"flex",flexDirection:"row",border:"1px solid black",borderTop:"none",fontSize:10}},t.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"10%"}},t.createElement(e,null,new Date(n.date).toLocaleDateString("en-GB",{day:"2-digit",month:"2-digit",year:"2-digit"}))),t.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"13%"}},t.createElement(e,null,n.invoiceNumber)),t.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"18%"}},t.createElement(e,null,n.devoteeName)),t.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"25%"}},t.createElement(e,null,n.address)),t.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"20%"}},t.createElement(e,null,n.pujaName)),t.createElement(View,{style:{padding:6,width:"15%"}},t.createElement(e,null,n.amount.toLocaleString("en-IN",{maximumFractionDigits:2,style:"currency",currency:"INR"})))))):t.createElement(e,{style:{fontSize:18,textAlign:"center",marginTop:100}},"No data available for the selected date range")))),je=$t;var Ot=({startDate:r,endDate:o,templeName:a,data:i,reportTiming:n})=>{i.sort((p,b)=>p.invoiceNumber.localeCompare(b.invoiceNumber));return t.createElement(Document,null,t.createElement(Page,{size:"A4",style:{padding:30,fontFamily:"Noto Sans"}},t.createElement(P,{startDate:r,endDate:o,reportName:"Prasad Report",templeName:a,reportTiming:n}),i.length>0?t.createElement(View,{style:{display:"flex",flexDirection:"column",marginTop:20}},t.createElement(View,{style:{display:"flex",flexDirection:"row",border:"1px solid black",fontWeight:"semibold",fontSize:10}},t.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"10%"}},t.createElement(e,null,"Sr no")),t.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"20%"}},t.createElement(e,null,"Invoice Number")),t.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"23%"}},t.createElement(e,null,"Devotee Name")),t.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"30%"}},t.createElement(e,null,"Prasad Name")),t.createElement(View,{style:{padding:6,width:"10%",borderRight:"1px solid black"}},t.createElement(e,null,"Qty")),t.createElement(View,{style:{padding:6,width:"7%"}},t.createElement(e,null,"Mode"))),i.map((p,b)=>t.createElement(View,{style:{display:"flex",flexDirection:"row",border:"1px solid black",borderTop:"none",fontSize:10}},t.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"10%"}},t.createElement(e,null,b+1)),t.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"20%"}},t.createElement(e,null,p.invoiceNumber)),t.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"23%",fontSize:9,flexWrap:"wrap"}},t.createElement(e,null,p.devoteeName)),t.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"30%"}},t.createElement(e,null,p.prasadName)),t.createElement(View,{style:{padding:6,width:"10%",borderRight:"1px solid black"}},t.createElement(e,null,p.quantity)),t.createElement(View,{style:{padding:6,width:"7%"}},t.createElement(e,null,p.collectionMode))))):t.createElement(e,{style:{fontSize:18,textAlign:"center",marginTop:100}},"No data available for the selected date range")))},We=Ot;var Gt=({startDate:r,endDate:o,templeName:a,pujas:i,reportTiming:n})=>{let u=0,p=0,b=i.some(m=>m.bookings.some(T=>T.requires_coupon));return !i||i.length===0?t.createElement(Document,null,t.createElement(Page,{size:"A4",style:{padding:30,fontFamily:"Noto Sans"}},t.createElement(P,{startDate:r,endDate:o,reportName:"Puja List",templeName:a,reportTiming:n}),t.createElement(e,{style:{fontSize:12,marginTop:100,textAlign:"center"}},"No data available for the selected date range"))):t.createElement(t.Fragment,null,t.createElement(Document,null,t.createElement(Page,{size:"A4",style:{padding:30,fontFamily:"Noto Sans"}},t.createElement(P,{startDate:r,endDate:o,reportTiming:n,reportName:"",templeName:""}),i.some(m=>m.bookings.some(T=>T.is_early_reminder))&&t.createElement(t.Fragment,null,t.createElement(e,{style:{fontSize:14,fontWeight:"bold",marginTop:10}},"Early Reminders for Upcoming Pujas"),t.createElement(View,{style:{marginTop:10}},t.createElement(View,{style:{display:"flex",flexDirection:"row",border:"1px solid black"}},t.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",fontWeight:"semibold",width:"10%"}},t.createElement(e,null,"Sr No")),t.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",fontWeight:"semibold",width:"60%"}},t.createElement(e,null,"Puja Name")),t.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",fontWeight:"semibold",width:"10%"}},t.createElement(e,null,"Qty")),t.createElement(View,{style:{padding:6,fontSize:10,borderRight:"none",fontWeight:"semibold",width:"20%"}},t.createElement(e,null,"Date"))))),i.some(m=>m.bookings.some(T=>T.is_early_reminder&&!T.requires_coupon))?i.flatMap((m,T)=>m.bookings.filter(l=>l.is_early_reminder&&!l.requires_coupon).map((l,x)=>(p++,t.createElement(View,{key:`${T}-${x}`,style:{display:"flex",flexDirection:"row",border:"1px solid black",borderTop:"none"}},t.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",width:"10%"}},t.createElement(e,null,p)),t.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",width:"60%"}},t.createElement(e,null,m.name)),t.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",width:"10%"}},t.createElement(e,null,l.quantity)),t.createElement(View,{style:{padding:6,fontSize:10,borderRight:"none",width:"20%"}},t.createElement(e,null,l.date?new Date(l.date).toDateString():"")))))):null,t.createElement(e,{style:{fontSize:14,fontWeight:"bold",marginTop:20}},"Puja List"),t.createElement(e,{style:{fontSize:12}},`${a}`),t.createElement(View,{style:{display:"flex",flexDirection:"column",marginTop:10}},i.map((m,T)=>m.bookings.every(l=>l.is_early_reminder||l.requires_coupon)?null:(u=0,t.createElement(View,{key:T,style:{marginBottom:25}},t.createElement(View,null,t.createElement(e,{style:{fontSize:10,fontWeight:"bold",border:"1px solid black",padding:6,textAlign:"center",borderBottom:"none"}},`${m.name} - ${m.bookings.length}`)),t.createElement(View,{style:{display:"flex",flexDirection:"row",border:"1px solid black"}},t.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",fontWeight:"semibold",width:"10%"}},t.createElement(e,null,"Sr No")),t.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",fontWeight:"semibold",width:"20%"}},t.createElement(e,null,"Invoice No")),t.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",fontWeight:"semibold",width:"35%"}},t.createElement(e,null,"Devotee Name")),t.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",fontWeight:"semibold",width:"25%"}},t.createElement(e,null,"Nakshatra")),t.createElement(View,{style:{padding:6,fontSize:10,borderRight:"none",fontWeight:"semibold",width:"10%"}},t.createElement(e,null,"Qty"))),m.bookings.map((l,x)=>l.is_early_reminder||l.requires_coupon?null:(u++,t.createElement(View,{key:x,wrap:false,style:{display:"flex",flexDirection:"row",border:"1px solid black",borderTop:"none",width:"100%"}},t.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",width:"10%"}},t.createElement(e,null,u)),t.createElement(View,{style:{display:"flex",flexDirection:"column",width:"90%"}},t.createElement(View,{style:{display:"flex",flexDirection:"row"}},t.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",width:`${20*1.11111}%`}},t.createElement(e,null,l.invoiceNumber)),t.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",width:`${35*1.11111}%`}},t.createElement(e,null,l.devoteeName)),t.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",width:`${25*1.11111}%`}},t.createElement(e,null,l.nakshatra)),t.createElement(View,{style:{padding:6,fontSize:10,borderRight:"none",width:`${10*1.11111}%`}},t.createElement(e,null,l.quantity))),l.priestNote&&t.createElement(View,{style:{padding:6,fontSize:10,borderTop:"1px solid black",width:"100%"}},t.createElement(e,null,l.priestNote))))))))))),b?t.createElement(Page,{size:"A4",style:{padding:30,fontFamily:"Noto Sans"}},t.createElement(Image,{fixed:true,style:{height:15,width:75,marginBottom:10},src:oe}),t.createElement(View,{style:{display:"flex",flexDirection:"column",marginTop:10,gap:15}},(()=>{let m=i.flatMap(l=>l.bookings.filter(x=>x.requires_coupon).map(x=>({...x,pujaName:l.name}))),T={};for(let l of m)T[l.invoiceNumber]||(T[l.invoiceNumber]=[]),T[l.invoiceNumber].push(l);return Object.entries(T).map(([l,x],D)=>{let L=x,ne=L[0];return t.createElement(View,{key:l,style:{marginBottom:10,fontSize:18,padding:10,border:"1px dotted black",position:"relative"},wrap:false},t.createElement(View,{style:{display:"flex",flexDirection:"row",justifyContent:"space-between",gap:10}},t.createElement(View,{style:{display:"flex",flexDirection:"row",gap:10}},t.createElement(e,{style:{fontWeight:"semibold"}},l),t.createElement(e,null,ne.date?new Date(ne.date).toDateString():r.toDateString())),t.createElement(e,null,ne.phone_number)),t.createElement(View,{style:{height:15,width:"100%"}}),L.map((ae,ue)=>t.createElement(View,{key:ue,style:{display:"flex",flexDirection:"row",marginTop:25}},t.createElement(e,null,`${ae.devoteeName} ----- ${ae.nakshatra} ----- ${ae.pujaName}`))),t.createElement(View,null,t.createElement(e,{style:{textAlign:"center",marginTop:10,fontSize:10,opacity:.5}},"~~~ bookmypuja.app - Your Puja, Our Commitment ~~~")))})})())):null))},_e=Gt;var Qt=({templeName:r,startDate:o,endDate:a,pujas:i,reportTiming:n})=>{let u=i.sort((p,b)=>{let m=p.nakshatras.length;return b.nakshatras.length-m});return t.createElement(Document,null,t.createElement(Page,{size:"A4",style:{padding:30,fontFamily:"Noto Sans"}},t.createElement(P,{startDate:o,endDate:a,reportTiming:n,reportName:"Puja Summary",templeName:r}),i.length>0?t.createElement(View,{style:{display:"flex",flexDirection:"column",marginTop:20}},u.map((p,b)=>t.createElement(t.Fragment,null,t.createElement(View,{style:{marginBottom:25}},t.createElement(View,null,t.createElement(e,{style:{fontSize:10,fontWeight:"bold",border:"1px solid black",padding:6,textAlign:"center",borderBottom:"none"}},`${p.name} - ${p.totalCount}`)),t.createElement(View,{style:{display:"flex",flexDirection:"row",border:"1px solid black"}},t.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",fontWeight:"semibold",width:"20%"}},t.createElement(e,null,"Sr No")),t.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",fontWeight:"semibold",width:"60%"}},t.createElement(e,null,"Nakshatra")),t.createElement(View,{style:{padding:6,fontSize:10,width:"20%",fontWeight:"semibold"}},t.createElement(e,null,"Quantity"))),p.nakshatras.map((m,T)=>t.createElement(t.Fragment,null,t.createElement(View,{wrap:false,style:{display:"flex",flexDirection:"row",border:"1px solid black",borderTop:"none"}},t.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",width:"20%"}},t.createElement(e,null,T+1)),t.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",width:"60%"}},t.createElement(e,null,m.name)),t.createElement(View,{style:{padding:6,fontSize:10,width:"20%"}},t.createElement(e,null,m.count))))))))):t.createElement(e,{style:{fontSize:18,textAlign:"center",marginTop:100}},"No data available for the selected date range")))},$e=Qt;var Yt=({startDate:r,endDate:o,templeName:a,pujaData:i,prasadData:n,deliveryData:u,reportTiming:p})=>{u=u.map(l=>{let x="";try{let D=JSON.parse(l.address);x=`${D.address}, ${D.locality}, ${D.state} - ${D.pincode}`;}catch(D){console.error("Error parsing address:",D),x=l.address;}return {...l,address:x}});let b=0,m=0,T=i.some(l=>l.bookings.some(x=>x.requires_coupon));return i.length==0&&n.length==0&&u.length==0?t.createElement(Document,null,t.createElement(Page,{size:"A4",style:{padding:30,fontFamily:"Noto Sans"}},t.createElement(P,{startDate:r,endDate:o,reportTiming:p,reportName:"Combined Report",templeName:a}),t.createElement(e,{style:{fontSize:12,marginTop:100,textAlign:"center"}},"No data available for the selected date range"))):t.createElement(t.Fragment,null,t.createElement(Document,null,i.length>0&&t.createElement(Page,{size:"A4",style:{padding:30,fontFamily:"Noto Sans"}},t.createElement(P,{startDate:r,endDate:o,reportTiming:p,reportName:"",templeName:""}),i.some(l=>l.bookings.some(x=>x.is_early_reminder))&&t.createElement(t.Fragment,null,t.createElement(e,{style:{fontSize:14,fontWeight:"bold",marginTop:10}},"Early Reminders for Upcoming Pujas"),t.createElement(View,{style:{marginTop:10}},t.createElement(View,{style:{display:"flex",flexDirection:"row",border:"1px solid black"}},t.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",fontWeight:"semibold",width:"10%"}},t.createElement(e,null,"Sr No")),t.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",fontWeight:"semibold",width:"60%"}},t.createElement(e,null,"Puja Name")),t.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",fontWeight:"semibold",width:"10%"}},t.createElement(e,null,"Qty")),t.createElement(View,{style:{padding:6,fontSize:10,borderRight:"none",fontWeight:"semibold",width:"20%"}},t.createElement(e,null,"Date"))))),i.some(l=>l.bookings.some(x=>x.is_early_reminder&&!x.requires_coupon))?i.flatMap((l,x)=>l.bookings.filter(D=>D.is_early_reminder&&!D.requires_coupon).map((D,L)=>(m++,t.createElement(View,{wrap:false,key:`${x}-${L}`,style:{display:"flex",flexDirection:"row",border:"1px solid black",borderTop:"none"}},t.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",width:"10%"}},t.createElement(e,null,m)),t.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",width:"60%"}},t.createElement(e,null,l.name)),t.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",width:"10%"}},t.createElement(e,null,D.quantity)),t.createElement(View,{style:{padding:6,fontSize:10,borderRight:"none",width:"20%"}},t.createElement(e,null,D.date?new Date(D.date).toDateString():"")))))):null,t.createElement(e,{style:{fontSize:14,fontWeight:"bold",marginTop:20}},"Puja List"),t.createElement(e,{style:{fontSize:12}},`${a}`),t.createElement(View,{style:{display:"flex",flexDirection:"column",marginTop:10}},i.map((l,x)=>l.bookings.every(D=>D.is_early_reminder||D.requires_coupon)?null:(b=0,t.createElement(t.Fragment,null,t.createElement(View,{style:{marginBottom:25}},t.createElement(View,null,t.createElement(e,{style:{fontSize:10,fontWeight:"bold",border:"1px solid black",padding:6,textAlign:"center",borderBottom:"none"}},`${l.name} - ${l.bookings.length}`)),t.createElement(View,{style:{display:"flex",flexDirection:"row",border:"1px solid black"}},t.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",fontWeight:"semibold",width:"10%"}},t.createElement(e,null,"Sr No")),t.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",fontWeight:"semibold",width:"20%"}},t.createElement(e,null,"Invoice No")),t.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",fontWeight:"semibold",width:"35%"}},t.createElement(e,null,"Devotee Name")),t.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",fontWeight:"semibold",width:"25%"}},t.createElement(e,null,"Nakshatra")),t.createElement(View,{style:{padding:6,fontSize:10,borderRight:"none",fontWeight:"semibold",width:"10%"}},t.createElement(e,null,"Qty"))),l.bookings.map((D,L)=>D.is_early_reminder||D.requires_coupon?null:(b++,t.createElement(t.Fragment,null,t.createElement(View,{wrap:false,style:{display:"flex",flexDirection:"row",border:"1px solid black",borderTop:"none",width:"100%"}},t.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",width:"10%"}},t.createElement(e,null,b)),t.createElement(View,{style:{display:"flex",flexDirection:"column",width:"90%"}},t.createElement(View,{style:{display:"flex",flexDirection:"row"}},t.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",width:`${20*1.11111}%`}},t.createElement(e,null,D.invoiceNumber)),t.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",width:`${35*1.11111}%`}},t.createElement(e,null,D.devoteeName)),t.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",width:`${25*1.11111}%`}},t.createElement(e,null,D.nakshatra)),t.createElement(View,{style:{padding:6,fontSize:10,borderRight:"none",width:`${10*1.11111}%`}},t.createElement(e,null,D.quantity))),D.priestNote&&t.createElement(View,{style:{padding:6,fontSize:10,borderTop:"1px solid black",width:"100%"}},t.createElement(e,null,D.priestNote))))))))))))),i.length>0&&T&&t.createElement(Page,{size:"A4",style:{padding:30,fontFamily:"Noto Sans"}},t.createElement(Image,{fixed:true,style:{height:15,width:75,marginBottom:10},src:oe}),t.createElement(View,{style:{display:"flex",flexDirection:"column",marginTop:10,gap:15}},(()=>{let l=i.flatMap(D=>D.bookings.filter(L=>L.requires_coupon).map(L=>({...L,pujaName:D.name}))),x={};for(let D of l)x[D.invoiceNumber]||(x[D.invoiceNumber]=[]),x[D.invoiceNumber].push(D);return Object.entries(x).map(([D,L],ne)=>{let ae=L,ue=ae[0];return t.createElement(View,{key:D,style:{marginBottom:10,fontSize:18,padding:10,border:"1px dotted black"},wrap:false},t.createElement(View,{style:{display:"flex",flexDirection:"row",justifyContent:"space-between",gap:10}},t.createElement(View,{style:{display:"flex",flexDirection:"row",gap:10}},t.createElement(e,{style:{fontWeight:"semibold"}},D),t.createElement(e,null,ue.date?new Date(ue.date).toDateString():r.toDateString())),t.createElement(e,null,ue.phone_number)),t.createElement(View,{style:{height:15,width:"100%"}}),ae.map((we,mt)=>t.createElement(View,{key:mt,style:{display:"flex",flexDirection:"row",marginTop:25}},t.createElement(e,null,`${we.devoteeName} ----- ${we.nakshatra} ----- ${we.pujaName}`))))})})())),n.length>0&&t.createElement(Page,{size:"A4",style:{padding:30,fontFamily:"Noto Sans"}},t.createElement(P,{startDate:r,endDate:o,reportTiming:p,reportName:"Prasad Report",templeName:a}),t.createElement(View,{style:{display:"flex",flexDirection:"column",marginTop:20}},t.createElement(View,{style:{display:"flex",flexDirection:"row",border:"1px solid black",fontWeight:"semibold",fontSize:10}},t.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"10%"}},t.createElement(e,null,"Sr no")),t.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"20%"}},t.createElement(e,null,"Invoice Number")),t.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"30%"}},t.createElement(e,null,"Devotee Name")),t.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"30%"}},t.createElement(e,null,"Prasad Name")),t.createElement(View,{style:{padding:6,width:"10%"}},t.createElement(e,null,"Qty"))),n.map((l,x)=>t.createElement(View,{style:{display:"flex",flexDirection:"row",border:"1px solid black",borderTop:"none",fontSize:10}},t.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"10%"}},t.createElement(e,null,x+1)),t.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"20%"}},t.createElement(e,null,l.invoiceNumber)),t.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"30%"}},t.createElement(e,null,l.devoteeName)),t.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"30%"}},t.createElement(e,null,l.prasadName)),t.createElement(View,{style:{padding:6,width:"10%"}},t.createElement(e,null,l.quantity)))))),u.length>0&&t.createElement(Page,{size:"A4",style:{padding:30,fontFamily:"Noto Sans"}},t.createElement(P,{startDate:r,endDate:o,reportTiming:p,reportName:"Prasad Delivery Postal Report",templeName:a}),t.createElement(View,{style:{display:"flex",flexDirection:"row",marginTop:20,width:"100%",gap:20,flexWrap:"wrap"}},u&&u.map(l=>t.createElement(View,{key:l.id,style:{width:"46%",display:"flex",flexDirection:"column",border:"1px solid black",borderStyle:"dotted",borderWidth:1.5,padding:6}},t.createElement(View,{style:{flexGrow:1}},t.createElement(e,{style:{fontSize:10,fontWeight:"bold"}},l.name),t.createElement(e,{style:{fontSize:10}},l.address),t.createElement(e,{style:{fontSize:10}},l.phone)),t.createElement(View,{style:{borderTop:"1px solid black",marginTop:5,paddingTop:3,borderStyle:"dotted"}}),t.createElement(e,{style:{fontSize:9,marginTop:3}},"Note: ",l.pujaDetails)))))))},Me=Yt;var Rt=({startDate:r,endDate:o,data:a})=>t.createElement(Document,null,t.createElement(Page,{size:"A4",style:{padding:30,fontFamily:"Noto Sans"}},t.createElement(P,{startDate:r,endDate:o,reportName:"Temple Payment Report",templeName:""}),t.createElement(View,{style:{display:"flex",flexDirection:"column",marginTop:20}},t.createElement(View,{style:{display:"flex",flexDirection:"row",border:"1px solid black",fontWeight:"semibold",fontSize:10}},t.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"10%"}},t.createElement(e,null,"S.No.")),t.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"55%"}},t.createElement(e,null,"Temple Name")),t.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"15%"}},t.createElement(e,null,"Bookings")),t.createElement(View,{style:{padding:6,width:"20%"}},t.createElement(e,null,"Revenue"))),a?.map((i,n)=>t.createElement(View,{key:n,style:{display:"flex",flexDirection:"row",border:"1px solid black",borderTop:"none",fontSize:10}},t.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"10%"}},t.createElement(e,null,n+1)),t.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"55%"}},t.createElement(e,null,i.name)),t.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"15%"}},t.createElement(e,null,i.bookings)),t.createElement(View,{style:{padding:6,width:"20%"}},t.createElement(e,null,"\u20B9",i.revenue))))))),Oe=Rt;var oo=({startDate:r,endDate:o,templeName:a,data:i})=>t.createElement(Document,null,t.createElement(Page,{size:"A4",style:{padding:30,fontFamily:"Noto Sans"}},t.createElement(P,{startDate:r,endDate:o,reportName:"Settlements Report",templeName:a}),t.createElement(e,{style:{fontSize:10,marginTop:10}},"Total Credited Amount: ",i.totalCreditedAmount),i.settlements.length>0?t.createElement(View,{style:{display:"flex",flexDirection:"column",marginTop:20}},t.createElement(View,{style:{display:"flex",flexDirection:"row",border:"1px solid #000",fontSize:10,fontWeight:"semibold"}},t.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"10%"}},t.createElement(e,null,"Sr no")),t.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"15%"}},t.createElement(e,null,"Date")),t.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"15%"}},t.createElement(e,null,"Settlement")),t.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"20%"}},t.createElement(e,null,"UTR")),t.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"25%"}},t.createElement(e,null,"Invoice")),t.createElement(View,{style:{padding:6,width:"20%"}},t.createElement(e,null,"Settlement ID"))),i.settlements?.map((n,u)=>t.createElement(View,{style:{display:"flex",flexDirection:"row",border:"1px solid #000",borderTop:"none",fontSize:10}},t.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"10%"}},t.createElement(e,null,u+1)),t.createElement(View,{style:{padding:6,width:"15%",borderRight:"1px solid #000"}},t.createElement(e,null,n.date)),t.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"15%"}},t.createElement(e,null,n.settlement_amount)),t.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"20%",fontSize:9}},t.createElement(e,null,n.utr.split("").map((p,b)=>t.createElement(e,{key:b},p)))),t.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"25%",fontSize:9}},t.createElement(View,{style:{display:"flex",flexDirection:"column"}},n.invoices.map((p,b)=>t.createElement(e,{key:b},p.number," (",p.amount,")")))),t.createElement(View,{style:{padding:6,width:"20%"}},t.createElement(e,null,n.settlement_id))))):t.createElement(e,{style:{fontSize:18,textAlign:"center",marginTop:100}},"No data available for the selected date range"))),He=oo;var no=({data:r})=>t.createElement(Document,null,t.createElement(Page,{size:"A4",style:{padding:30,fontFamily:"Noto Sans"}},t.createElement(View,{style:{display:"flex",flexDirection:"row"}},t.createElement(View,{style:{backgroundColor:"#FFA823",width:20,height:"100%"}}),t.createElement(View,{style:{marginLeft:15,marginTop:10,marginBottom:0}},t.createElement(e,{style:{fontSize:16,fontWeight:"bold"}},r.templeName),t.createElement(e,{style:{fontSize:10}},r.templeAddress),t.createElement(View,{style:{display:"flex",flexDirection:"row",gap:5,marginTop:10,alignItems:"center"}},t.createElement(e,{style:{fontSize:10,marginTop:-5}},"Powered by"),t.createElement(Image,{style:{height:25,width:95,objectFit:"contain"},src:Ce})))),t.createElement(View,{style:{display:"flex",flexDirection:"column",alignItems:"center",marginTop:20,position:"relative"}},r.status==="confirmed"?t.createElement(Image,{style:{height:85,width:85,marginBottom:5,objectFit:"contain",position:"absolute",right:"0",bottom:"0"},src:Pe}):null,t.createElement(e,{style:{fontSize:12,marginTop:5,fontWeight:"semibold"}},"INVOICE #",r.invoiceNumber),t.createElement(e,{style:{fontSize:10,marginTop:2}},"Status: ",r.status=="confirmed"?"PAID":"PENDING")),t.createElement(View,{style:{marginTop:10}},t.createElement(e,{style:{fontSize:11}},"Bill to:"),t.createElement(e,{style:{fontSize:11}},r.devoteeDetails.name),r.devoteeDetails.phone?t.createElement(e,{style:{fontSize:11}},r.devoteeDetails.phone):null,t.createElement(e,{style:{fontSize:11}},r.bookingDate)),t.createElement(View,{style:{display:"flex",flexDirection:"column",marginTop:20}},t.createElement(View,{style:{display:"flex",flexDirection:"row",borderBottom:"1px solid #757575",fontSize:10,fontWeight:"semibold"}},t.createElement(View,{style:{padding:6,borderRight:"1px solid #b5b5b5",width:"50%"}},t.createElement(e,null,"Item Description")),t.createElement(View,{style:{padding:6,borderRight:"1px solid #b5b5b5",width:"15%",textAlign:"center"}},t.createElement(e,null,"Price")),t.createElement(View,{style:{padding:6,borderRight:"1px solid #b5b5b5",width:"15%",textAlign:"center"}},t.createElement(e,null,"Quantity")),t.createElement(View,{style:{padding:6,width:"20%",textAlign:"center"}},t.createElement(e,null,"Total"))),r.items.map((o,a)=>t.createElement(View,{wrap:false,style:{display:"flex",flexDirection:"row",borderBottom:"1px solid #757575",fontSize:10}},t.createElement(View,{style:{padding:6,borderRight:"1px solid #b5b5b5",width:"50%"}},o.pujaName?t.createElement(e,{style:{fontSize:11}},o.pujaName):null,o.devoteesName?t.createElement(e,{style:{fontSize:9,color:"#333333"}},o.devoteesName):null,o.pujaDate?t.createElement(e,{style:{fontSize:9,color:"#333333"}},o.pujaDate," ",o.timing?`- ${o.timing}`:null):null,o.repeatEndDate&&o.repeatStartDate?t.createElement(e,{style:{fontSize:9,color:"#333333"}},o.repeatStartDate," to ",o.repeatEndDate," ",o.timing?`- ${o.timing}`:null):null),t.createElement(View,{style:{padding:6,borderRight:"1px solid #b5b5b5",width:"15%",textAlign:"center",display:"flex",alignItems:"center",justifyContent:"center"}},t.createElement(e,{style:{}},o.basePujPrice)),t.createElement(View,{style:{padding:6,borderRight:"1px solid #b5b5b5",width:"15%",textAlign:"center",display:"flex",alignItems:"center",justifyContent:"center"}},t.createElement(e,{style:{}},`${o.quantity?o.quantity:""}${o.repeatCount?` x ${o.repeatCount}`:""}`)),t.createElement(View,{style:{padding:6,width:"20%",textAlign:"center",display:"flex",alignItems:"center",justifyContent:"center"}},t.createElement(e,{style:{}},o.totalPrice))))),t.createElement(View,{style:{display:"flex",flexDirection:"row",marginVertical:40,marginHorizontal:20}},t.createElement(View,{style:{width:"50%",display:"flex",flexDirection:"column",justifyContent:"center",fontSize:11}},t.createElement(e,{style:{fontWeight:"bold"}},"Payment Method:"),t.createElement(e,null,r.paymentMethod)),t.createElement(View,{style:{width:"50%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-end"}},t.createElement(View,{style:{display:"flex",flexDirection:"row",gap:10,fontSize:10}},t.createElement(View,{style:{width:"50%",textAlign:"right"}},t.createElement(e,null,"Subtotal: ")),t.createElement(View,{style:{width:"30%",textAlign:"right"}},t.createElement(e,null,r.subTotal))),r.postalCharges?t.createElement(View,{style:{display:"flex",flexDirection:"row",gap:10,fontSize:10}},t.createElement(View,{style:{width:"70%",textAlign:"right"}},t.createElement(e,null,"Postal Charges: ")),t.createElement(View,{style:{width:"30%",textAlign:"right"}},t.createElement(e,null,r.postalCharges))):null,t.createElement(View,{style:{display:"flex",flexDirection:"row",gap:10,fontSize:10}},t.createElement(View,{style:{width:"70%",textAlign:"right"}},t.createElement(e,null,"Payment Gateway Charges: ")),t.createElement(View,{style:{width:"30%",textAlign:"right"}},t.createElement(e,null,r.paymentGatewayCharges))),t.createElement(View,{style:{display:"flex",flexDirection:"row",gap:10,fontSize:10}},t.createElement(View,{style:{width:"70%",textAlign:"right"}},t.createElement(e,null,"Platform Charges: ")),t.createElement(View,{style:{width:"30%",textAlign:"right"}},t.createElement(e,null,r.platformCharges))),t.createElement(View,{style:{display:"flex",flexDirection:"row",gap:10,fontSize:10}},t.createElement(View,{style:{width:"70%",textAlign:"right"}},t.createElement(e,null,"GST (18%): ")),t.createElement(View,{style:{width:"30%",textAlign:"right"}},t.createElement(e,null,r.gst))),t.createElement(View,{style:{width:"60%",height:1,backgroundColor:"#757575",marginVertical:5}}),t.createElement(View,{style:{display:"flex",flexDirection:"row",gap:10,fontSize:10,fontWeight:"bold"}},t.createElement(View,{style:{width:"70%",textAlign:"right"}},t.createElement(e,null,"Total: ")),t.createElement(View,{style:{width:"30%",textAlign:"right"}},t.createElement(e,null,r.totalAmount))))),r.prasads&&(r.prasads.morning.length>0||r.prasads.afternoon.length>0||r.prasads.evening.length>0)?t.createElement(View,{wrap:false,style:{display:"flex",flexDirection:"column",marginBottom:30}},t.createElement(View,{style:{backgroundColor:"#FF266F",padding:5}},t.createElement(e,{style:{fontSize:10,fontWeight:"bold",color:"white"}},"Prasadsam Details")),r.prasads.morning.length>0?t.createElement(View,{wrap:false,style:{display:"flex",flexDirection:"column",paddingHorizontal:10,paddingVertical:5,borderBottom:"1px solid #757575",borderRight:"1px solid #757575",borderLeft:"1px solid #757575"}},t.createElement(e,{style:{fontSize:9,fontWeight:"bold"}},"Morning:"),r.prasads.morning.map((o,a)=>t.createElement(e,{key:a,style:{fontSize:10}},a+1,". ",o.name," (",o.timings,")"))):null,r.prasads.afternoon.length>0?t.createElement(View,{wrap:false,style:{display:"flex",flexDirection:"column",paddingHorizontal:10,paddingVertical:5,borderBottom:"1px solid #757575",borderRight:"1px solid #757575",borderLeft:"1px solid #757575"}},t.createElement(e,{style:{fontSize:9,fontWeight:"bold"}},"Afternoon:"),r.prasads.afternoon.map((o,a)=>t.createElement(e,{key:a,style:{fontSize:10}},a+1,". ",o.name," (",o.timings,")"))):null,r.prasads.evening.length>0?t.createElement(View,{wrap:false,style:{display:"flex",flexDirection:"column",paddingHorizontal:10,paddingVertical:5,borderBottom:"1px solid #757575",borderRight:"1px solid #757575",borderLeft:"1px solid #757575"}},t.createElement(e,{style:{fontSize:9,fontWeight:"bold"}},"Evening:"),r.prasads.evening.map((o,a)=>t.createElement(e,{key:a,style:{fontSize:10}},a+1,". ",o.name," (",o.timings,")"))):null):null,r.instructions.length>0?t.createElement(View,{style:{display:"flex",flexDirection:"column",marginHorizontal:20,fontSize:8,border:"1px solid #757575"}},t.createElement(View,{style:{backgroundColor:"#FFA823",paddingHorizontal:10,paddingVertical:5}},t.createElement(e,null,"IMPORTANT INSTRUCTIONS:")),t.createElement(View,{style:{display:"flex",flexDirection:"column",gap:5,marginVertical:10,paddingHorizontal:10}},r.instructions.map((o,a)=>t.createElement(e,{key:a,style:{fontSize:8}},a+1,") ",o.instruction)))):null,t.createElement(View,{style:{display:"flex",flexDirection:"row",marginTop:20}},t.createElement(e,{style:{fontSize:8,fontWeight:"bold"}},"Terms and Conditions:"),t.createElement(e,{style:{fontSize:8,marginLeft:5}},"https://www.bookmypuja.app/terms-and-condition")))),Ke=no;var ao=({startDate:r,endDate:o,templeName:a,data:i})=>t.createElement(Document,null,t.createElement(Page,{size:"A4",style:{padding:30,fontFamily:"Noto Sans"}},t.createElement(P,{startDate:r,endDate:o,reportName:"Prasad Delivery Postal Report",templeName:a}),i&&i.length>0?t.createElement(View,{style:{display:"flex",flexDirection:"row",marginTop:20,width:"100%",gap:20,flexWrap:"wrap"}},i.map(n=>t.createElement(View,{wrap:false,key:n.id,style:{width:"46%",display:"flex",flexDirection:"column",border:"1px solid black",borderStyle:"dotted",borderWidth:1.5,padding:6}},t.createElement(View,{style:{flexGrow:1}},t.createElement(e,{style:{fontSize:10,fontWeight:"bold"}},n.name),t.createElement(e,{style:{fontSize:10}},n.address),t.createElement(e,{style:{fontSize:10}},n.phone)),t.createElement(View,{style:{borderTop:"1px solid black",marginTop:5,paddingTop:3,borderStyle:"dotted"}}),t.createElement(e,{style:{fontSize:9,marginTop:3}},"Note: ",n.pujaDetails)))):t.createElement(e,{style:{fontSize:18,textAlign:"center",marginTop:100}},"No data available for the selected date range"))),Ue=ao;var uo=({children:r})=>!r||typeof r!="string"?null:t.createElement(t.Fragment,null,t.createElement(View,{style:{display:"flex",flexDirection:"row",flexWrap:"wrap"}},r.split("").map((o,a)=>t.createElement(e,{key:a},o)))),q=uo;var fo=({startDate:r,endDate:o,templeName:a,data:i})=>t.createElement(t.Fragment,null,t.createElement(Document,null,t.createElement(Page,{size:"A4",style:{padding:30,fontFamily:"Noto Sans"}},t.createElement(P,{startDate:r,endDate:o,reportName:"Payment Settlement Report",templeName:a}),i.length>0?t.createElement(View,{style:{display:"flex",flexDirection:"column",marginTop:20}},t.createElement(View,{style:{display:"flex",flexDirection:"row",border:"1px solid #000",fontSize:10,fontWeight:"semibold"}},t.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"10%"}},t.createElement(e,null,"Sr no")),t.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"15%"}},t.createElement(e,null,"Invoice No")),t.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"15%"}},t.createElement(e,null,"Amount")),t.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"20%"}},t.createElement(e,null,"Payment Date")),t.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"20%"}},t.createElement(e,null,"Settlement Date")),t.createElement(View,{style:{padding:6,borderRight:"none",width:"25%"}},t.createElement(e,null,"Bank UTR No"))),i.map((n,u)=>t.createElement(View,{style:{display:"flex",flexDirection:"row",border:"1px solid #000",borderTop:"none",fontSize:10}},t.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"10%"}},t.createElement(e,null,u+1)),t.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"15%"}},t.createElement(q,null,n.invoiceNo)),t.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"15%"}},t.createElement(q,null,n.amount)),t.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"20%"}},t.createElement(q,null,n.paymentDate)),t.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"20%"}},t.createElement(q,null,n.settlementDate)),t.createElement(View,{style:{padding:6,borderRight:"none",width:"25%"}},t.createElement(q,null,n.bankUtrNo))))):t.createElement(e,{style:{fontSize:18,textAlign:"center",marginTop:100}},"No data available for the selected date range")))),Qe=fo;var Do=({startDate:r,endDate:o,templeName:a,data:i})=>t.createElement(t.Fragment,null,t.createElement(Document,null,t.createElement(Page,{size:"A4",style:{padding:30,fontFamily:"Noto Sans"}},t.createElement(P,{startDate:r,endDate:o,reportName:"Invoice Level Breakup",templeName:a}),i.length>0?t.createElement(View,{style:{display:"flex",flexDirection:"column",marginTop:20}},t.createElement(View,{style:{display:"flex",flexDirection:"row",border:"1px solid #000",fontSize:8,fontWeight:"semibold"}},t.createElement(View,{style:{padding:3,borderRight:"1px solid #000",width:"4%"}},t.createElement(e,null,"Sr no")),t.createElement(View,{style:{padding:3,borderRight:"1px solid #000",width:"9%"}},t.createElement(e,null,"Invoice Number")),t.createElement(View,{style:{padding:3,borderRight:"1px solid #000",width:"9%"}},t.createElement(e,null,"Base Amount")),t.createElement(View,{style:{padding:3,borderRight:"1px solid #000",width:"9%"}},t.createElement(e,null,"Platform Fees")),t.createElement(View,{style:{padding:3,borderRight:"1px solid #000",width:"9%"}},t.createElement(e,null,"Platform Fees GST")),t.createElement(View,{style:{padding:3,borderRight:"1px solid #000",width:"9%"}},t.createElement(e,null,"Gateway Charges")),t.createElement(View,{style:{padding:3,borderRight:"1px solid #000",width:"9%"}},t.createElement(e,null,"Gateway GST")),t.createElement(View,{style:{padding:3,borderRight:"1px solid #000",width:"9%"}},t.createElement(e,null,"Payment Mode")),t.createElement(View,{style:{padding:3,borderRight:"1px solid #000",width:"9%"}},t.createElement(e,null,"Booking Date")),t.createElement(View,{style:{padding:3,borderRight:"1px solid #000",width:"9%"}},t.createElement(e,null,"Settlement Date")),t.createElement(View,{style:{padding:3,borderRight:"none",width:"12%"}},t.createElement(e,null,"UTR Number"))),i.map((n,u)=>t.createElement(View,{key:u,style:{display:"flex",flexDirection:"row",border:"1px solid #000",borderTop:"none",fontSize:8}},t.createElement(View,{style:{padding:3,borderRight:"1px solid #000",width:"4%"}},t.createElement(e,null,u+1)),t.createElement(View,{style:{padding:3,borderRight:"1px solid #000",width:"9%"}},t.createElement(q,null,n.invoiceNumber)),t.createElement(View,{style:{padding:3,borderRight:"1px solid #000",width:"9%"}},t.createElement(q,null,n.baseAmount)),t.createElement(View,{style:{padding:3,borderRight:"1px solid #000",width:"9%"}},t.createElement(q,null,n.platformFees)),t.createElement(View,{style:{padding:3,borderRight:"1px solid #000",width:"9%"}},t.createElement(q,null,n.platformFeesGST)),t.createElement(View,{style:{padding:3,borderRight:"1px solid #000",width:"9%"}},t.createElement(q,null,n.gatewayCharges)),t.createElement(View,{style:{padding:3,borderRight:"1px solid #000",width:"9%"}},t.createElement(q,null,n.gatewayChargesGST)),t.createElement(View,{style:{padding:3,borderRight:"1px solid #000",width:"9%"}},t.createElement(q,null,n.paymentMode)),t.createElement(View,{style:{padding:3,borderRight:"1px solid #000",width:"9%",fontSize:7}},t.createElement(q,null,n.bookingDate)),t.createElement(View,{style:{padding:3,borderRight:"1px solid #000",width:"9%",fontSize:7}},t.createElement(q,null,n.settlementDate)),t.createElement(View,{style:{padding:3,width:"12%"}},t.createElement(q,null,n.utrNumber))))):t.createElement(e,{style:{fontSize:18,textAlign:"center",marginTop:100}},"No data available for the selected date range")))),Je=Do;var bo=({startDate:r,endDate:o,templeName:a,data:i})=>t.createElement(t.Fragment,null,t.createElement(Document,null,t.createElement(Page,{size:"A4",style:{padding:30,fontFamily:"Noto Sans"}},t.createElement(P,{startDate:r,endDate:o,reportName:"Total Puja Count Report",templeName:a}),i.length>0?t.createElement(View,{style:{display:"flex",flexDirection:"column",marginTop:20}},t.createElement(View,{style:{display:"flex",flexDirection:"row",border:"1px solid #000",fontSize:10,fontWeight:"semibold"}},t.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"10%"}},t.createElement(e,null,"Sr no")),t.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"40%"}},t.createElement(e,null,"Puja Name")),t.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"15%"}},t.createElement(e,null,"Total Count")),t.createElement(View,{style:{padding:6,borderRight:"none",width:"35%"}},t.createElement(e,null,"Remarks"))),i.map((n,u)=>t.createElement(View,{style:{display:"flex",flexDirection:"row",border:"1px solid #000",borderTop:"none",fontSize:10}},t.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"10%"}},t.createElement(e,null,u+1)),t.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"40%"}},t.createElement(e,null,n.name)),t.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"15%"}},t.createElement(e,null,n.quantity)),t.createElement(View,{style:{padding:6,borderRight:"none",width:"35%"}})))):t.createElement(e,{style:{fontSize:18,textAlign:"center",marginTop:100}},"No data available for the selected date range")))),Ye=bo;var To=({startDate:r,templeName:o,pujas:a,reportTiming:i})=>{return !a||a.length===0?t.createElement(Document,null,t.createElement(Page,{size:[110*2.83465,297*2.83465],style:{padding:12,fontFamily:"Noto Sans"}},t.createElement(e,{style:{fontSize:14,textAlign:"center",marginTop:50}},"No data available"))):t.createElement(Document,null,t.createElement(Page,{size:[110*2.83465,297*2.83465],style:{padding:12,fontFamily:"Noto Sans"}},t.createElement(View,{style:{marginBottom:15,paddingBottom:10,borderBottom:"2pt solid #000"}},t.createElement(e,{style:{fontSize:16,fontWeight:"bold",textAlign:"center",marginBottom:4}},o),t.createElement(e,{style:{fontSize:12,textAlign:"center"}},r.toLocaleDateString()),i&&t.createElement(e,{style:{fontSize:11,textAlign:"center",marginTop:2}},i.charAt(0).toUpperCase()+i.slice(1)," Report")),a.map((u,p)=>{let b=u.bookings.filter(m=>!m.is_early_reminder&&!m.requires_coupon);return b.length===0?null:t.createElement(View,{key:p,style:{marginBottom:20},wrap:false},t.createElement(View,{style:{backgroundColor:"#FFE082",padding:10,marginBottom:8}},t.createElement(e,{style:{fontSize:14,fontWeight:"bold",textAlign:"center"}},u.name),t.createElement(e,{style:{fontSize:11,textAlign:"center",marginTop:2}},b.length," booking",b.length>1?"s":"")),b.map((m,T)=>(t.createElement(View,{key:T,style:{border:"1pt solid #999",padding:10,marginBottom:6,backgroundColor:"#FFF"},wrap:false},t.createElement(View,{style:{marginBottom:6}},t.createElement(e,{style:{fontSize:11,color:"#666"}},m.invoiceNumber)),t.createElement(e,{style:{fontSize:14,fontWeight:"bold",marginBottom:6}},m.devoteeName),t.createElement(View,{style:{flexDirection:"row",justifyContent:"space-between"}},t.createElement(e,{style:{fontSize:12}},m.nakshatra),t.createElement(e,{style:{fontSize:12}},"Qty: ",m.quantity)),m.priestNote&&t.createElement(View,{style:{marginTop:6,paddingTop:6,borderTop:"0.5pt dashed #CCC"}},t.createElement(e,{style:{fontSize:11,color:"#666"}},m.priestNote))))))})))},Re=To;var So=({startDate:r,templeName:o,data:a,reportTiming:i})=>{if(!a||a.length===0)return t.createElement(Document,null,t.createElement(Page,{size:[110*2.83465,297*2.83465],style:{padding:12,fontFamily:"Noto Sans"}},t.createElement(e,{style:{fontSize:14,textAlign:"center",marginTop:50}},"No data available")));let n=a.sort((u,p)=>u.invoiceNumber.localeCompare(p.invoiceNumber));return t.createElement(Document,null,t.createElement(Page,{size:[110*2.83465,297*2.83465],style:{padding:12,fontFamily:"Noto Sans"}},t.createElement(View,{style:{marginBottom:15,paddingBottom:10,borderBottom:"2pt solid #000"}},t.createElement(e,{style:{fontSize:16,fontWeight:"bold",textAlign:"center",marginBottom:4}},o),t.createElement(e,{style:{fontSize:12,textAlign:"center"}},r.toLocaleDateString()),i&&t.createElement(e,{style:{fontSize:11,textAlign:"center",marginTop:2}},i.charAt(0).toUpperCase()+i.slice(1)," Report")),t.createElement(View,{style:{backgroundColor:"#E3F2FD",padding:10,marginBottom:12}},t.createElement(e,{style:{fontSize:14,fontWeight:"bold",textAlign:"center"}},"Prasad Report"),t.createElement(e,{style:{fontSize:11,textAlign:"center",marginTop:2}},n.length," item",n.length>1?"s":"")),n.map((u,p)=>t.createElement(View,{key:p,style:{border:"1pt solid #999",padding:10,marginBottom:6,backgroundColor:"#FFF"},wrap:false},t.createElement(View,{style:{marginBottom:6}},t.createElement(e,{style:{fontSize:11,color:"#666"}},u.invoiceNumber)),t.createElement(e,{style:{fontSize:14,fontWeight:"bold",marginBottom:6}},u.devoteeName),t.createElement(View,{style:{flexDirection:"row",justifyContent:"space-between",alignItems:"center"}},t.createElement(View,{style:{flexDirection:"row",alignItems:"center"}},t.createElement(e,{style:{fontSize:12}},u.prasadName),t.createElement(e,{style:{fontSize:12}}," (qty: ",u.quantity,")")),t.createElement(e,{style:{fontSize:12,color:"#666"}},u.collectionMode))))))},ot=So;var Fo=({startDate:r,templeName:o,data:a})=>{let i=a.map(n=>{let u="";try{let p=JSON.parse(n.address);u=`${p.address}, ${p.locality}, ${p.state} - ${p.pincode}`;}catch{u=n.address;}return {...n,address:u}});return !i||i.length===0?t.createElement(Document,null,t.createElement(Page,{size:[110*2.83465,297*2.83465],style:{padding:12,fontFamily:"Noto Sans"}},t.createElement(e,{style:{fontSize:14,textAlign:"center",marginTop:50}},"No data available"))):t.createElement(Document,null,t.createElement(Page,{size:[110*2.83465,297*2.83465],style:{padding:12,fontFamily:"Noto Sans"}},t.createElement(View,{style:{marginBottom:15,paddingBottom:10,borderBottom:"2pt solid #000"}},t.createElement(e,{style:{fontSize:16,fontWeight:"bold",textAlign:"center",marginBottom:4}},o),t.createElement(e,{style:{fontSize:12,textAlign:"center"}},r.toLocaleDateString())),t.createElement(View,{style:{backgroundColor:"#E3F2FD",padding:10,marginBottom:12}},t.createElement(e,{style:{fontSize:14,fontWeight:"bold",textAlign:"center"}},"Prasad Delivery"),t.createElement(e,{style:{fontSize:11,textAlign:"center",marginTop:2}},i.length," delivery",i.length>1?" items":" item")),i.map((n,u)=>t.createElement(View,{key:u,style:{border:"1pt solid #999",padding:10,marginBottom:8,backgroundColor:"#FFF"},wrap:false},t.createElement(e,{style:{fontSize:14,fontWeight:"bold",marginBottom:6}},n.devoteeName),t.createElement(View,{style:{marginBottom:6}},t.createElement(e,{style:{fontSize:11}},n.address)),n.phoneNumber&&t.createElement(View,{style:{marginBottom:6}},t.createElement(e,{style:{fontSize:12}},"Ph: ",n.phoneNumber)),t.createElement(View,{style:{marginTop:6,paddingTop:6,borderTop:"0.5pt dashed #CCC"}},t.createElement(e,{style:{fontSize:11,color:"#666"}},"Note: ",n.note||n.pujaName))))))},nt=Fo;var Ao=({startDate:r,templeName:o,pujaData:a,prasadData:i,deliveryData:n,reportTiming:u})=>{if(a.length===0&&i.length===0&&n.length===0)return t.createElement(Document,null,t.createElement(Page,{size:[110*2.83465,297*2.83465],style:{padding:12,fontFamily:"Noto Sans"}},t.createElement(e,{style:{fontSize:14,textAlign:"center",marginTop:50}},"No data available")));let b=i.sort((m,T)=>m.invoiceNumber.localeCompare(T.invoiceNumber));return t.createElement(Document,null,a.length>0&&t.createElement(Page,{size:[110*2.83465,297*2.83465],style:{padding:12,fontFamily:"Noto Sans"}},t.createElement(View,{style:{marginBottom:15,paddingBottom:10,borderBottom:"2pt solid #000"}},t.createElement(e,{style:{fontSize:16,fontWeight:"bold",textAlign:"center",marginBottom:4}},o),t.createElement(e,{style:{fontSize:12,textAlign:"center"}},r.toLocaleDateString()),u&&t.createElement(e,{style:{fontSize:11,textAlign:"center",marginTop:2}},u.charAt(0).toUpperCase()+u.slice(1)," Report")),t.createElement(View,{style:{backgroundColor:"#E3F2FD",padding:10,marginBottom:12}},t.createElement(e,{style:{fontSize:14,fontWeight:"bold",textAlign:"center"}},"Puja List")),a.map((m,T)=>{let l=m.bookings.filter(x=>!x.is_early_reminder&&!x.requires_coupon);return l.length===0?null:t.createElement(View,{key:T,style:{marginBottom:20},wrap:false},t.createElement(View,{style:{backgroundColor:"#FFE082",padding:10,marginBottom:8}},t.createElement(e,{style:{fontSize:14,fontWeight:"bold",textAlign:"center"}},m.name),t.createElement(e,{style:{fontSize:11,textAlign:"center",marginTop:2}},l.length," booking",l.length>1?"s":"")),l.map((x,D)=>(t.createElement(View,{key:D,style:{border:"1pt solid #999",padding:10,marginBottom:6,backgroundColor:"#FFF"},wrap:false},t.createElement(View,{style:{marginBottom:6}},t.createElement(e,{style:{fontSize:11,color:"#666"}},x.invoiceNumber)),t.createElement(e,{style:{fontSize:14,fontWeight:"bold",marginBottom:6}},x.devoteeName),t.createElement(View,{style:{flexDirection:"row",justifyContent:"space-between"}},t.createElement(e,{style:{fontSize:12}},x.nakshatra),t.createElement(e,{style:{fontSize:12}},"Qty: ",x.quantity)),x.priestNote&&t.createElement(View,{style:{marginTop:6,paddingTop:6,borderTop:"0.5pt dashed #CCC"}},t.createElement(e,{style:{fontSize:11,color:"#666"}},x.priestNote))))))})),i.length>0&&t.createElement(Page,{size:[110*2.83465,297*2.83465],style:{padding:12,fontFamily:"Noto Sans"}},t.createElement(View,{style:{marginBottom:15,paddingBottom:10,borderBottom:"2pt solid #000"}},t.createElement(e,{style:{fontSize:16,fontWeight:"bold",textAlign:"center",marginBottom:4}},o),t.createElement(e,{style:{fontSize:12,textAlign:"center"}},r.toLocaleDateString()),u&&t.createElement(e,{style:{fontSize:11,textAlign:"center",marginTop:2}},u.charAt(0).toUpperCase()+u.slice(1)," Report")),t.createElement(View,{style:{backgroundColor:"#E3F2FD",padding:10,marginBottom:12}},t.createElement(e,{style:{fontSize:14,fontWeight:"bold",textAlign:"center"}},"Prasad Report"),t.createElement(e,{style:{fontSize:11,textAlign:"center",marginTop:2}},b.length," item",b.length>1?"s":"")),b.map((m,T)=>t.createElement(View,{key:T,style:{border:"1pt solid #999",padding:10,marginBottom:6,backgroundColor:"#FFF"},wrap:false},t.createElement(View,{style:{marginBottom:6}},t.createElement(e,{style:{fontSize:11,color:"#666"}},m.invoiceNumber)),t.createElement(e,{style:{fontSize:14,fontWeight:"bold",marginBottom:6}},m.devoteeName),t.createElement(View,{style:{flexDirection:"row",justifyContent:"space-between",alignItems:"center"}},t.createElement(View,{style:{flexDirection:"row",alignItems:"center"}},t.createElement(e,{style:{fontSize:12}},m.prasadName),t.createElement(e,{style:{fontSize:12}}," (qty: ",m.quantity,")")),t.createElement(e,{style:{fontSize:12,color:"#666"}},m.collectionMode))))),n.length>0&&t.createElement(Page,{size:[110*2.83465,297*2.83465],style:{padding:12,fontFamily:"Noto Sans"}},t.createElement(View,{style:{marginBottom:15,paddingBottom:10,borderBottom:"2pt solid #000"}},t.createElement(e,{style:{fontSize:16,fontWeight:"bold",textAlign:"center",marginBottom:4}},o),t.createElement(e,{style:{fontSize:12,textAlign:"center"}},r.toLocaleDateString())),t.createElement(View,{style:{backgroundColor:"#E3F2FD",padding:10,marginBottom:12}},t.createElement(e,{style:{fontSize:14,fontWeight:"bold",textAlign:"center"}},"Postal Delivery"),t.createElement(e,{style:{fontSize:11,textAlign:"center",marginTop:2}},n.length," delivery",n.length>1?" items":" item")),n.map((m,T)=>t.createElement(View,{key:T,style:{border:"1pt solid #999",padding:10,marginBottom:8,backgroundColor:"#FFF"},wrap:false},t.createElement(e,{style:{fontSize:14,fontWeight:"bold",marginBottom:6}},m.name),t.createElement(View,{style:{marginBottom:6}},t.createElement(e,{style:{fontSize:11}},m.address)),m.phone&&t.createElement(View,{style:{marginBottom:6}},t.createElement(e,{style:{fontSize:12}},"Ph: ",m.phone)),t.createElement(View,{style:{marginTop:6,paddingTop:6,borderTop:"0.5pt dashed #CCC"}},t.createElement(e,{style:{fontSize:11,color:"#666"}},"Note: ",m.pujaDetails))))))},lt=Ao;var pt={kitchen:{A4:ve},transaction:{A4:Ee},"prasad-delivery":{A4:je,"110mm":nt},prasad:{A4:We,"110mm":ot},"puja-detailed":{A4:_e,"110mm":Re},"puja-summary":{A4:$e},"combined-report":{A4:Me,"110mm":lt},"multi-temple-payment":{A4:Oe},"settlements-report":{A4:He},invoice:{A4:Ke},"postal-report":{A4:Ue},"payment-settlement-report":{A4:Qe},"invoice-breakup":{A4:Je},"puja-count":{A4:Ye}},ut=class{constructor(o,a){be(this,"option");be(this,"size");this.option=o,this.size=a,[{family:"Noto Sans SC",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-serif-sc@latest/chinese-simplified-400-normal.ttf"},{family:"Noto Sans Arabic",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans-arabic@latest/arabic-400-normal.ttf"},{family:"Noto Sans Devanagari",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans-devanagari@latest/devanagari-400-normal.ttf"},{family:"Noto Sans Kannada",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans-kannada@latest/kannada-400-normal.ttf"},{family:"Noto Sans Tamil",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans-tamil@latest/tamil-400-normal.ttf"},{family:"Noto Sans Gurmukhi",src:"https://cdn.jsdelivr.net/fontsource/fonts/anek-gurmukhi@latest/gurmukhi-400-normal.ttf"},{family:"Noto Sans Lao",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans-lao@latest/lao-400-normal.ttf"},{family:"Noto Sans Thai",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans-thai@latest/thai-400-normal.ttf"},{family:"Noto Sans Kr",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans-kr@latest/korean-400-normal.ttf"},{family:"Noto Sans Bengali",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans-bengali@latest/bengali-400-normal.ttf"},{family:"Noto Sans Cyrillic",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans-kr@latest/cyrillic-400-normal.ttf"},{family:"Noto Sans JP",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans-jp@latest/japanese-400-normal.ttf"},{family:"Noto Sans Greek",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans@latest/greek-400-normal.ttf"},{family:"Noto Sans Latin",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans@latest/latin-400-normal.ttf"},{family:"Noto Sans Myanmar",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans-myanmar@latest/myanmar-400-normal.ttf"},{family:"Noto Sans Ethiopic",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans-ethiopic@latest/ethiopic-400-normal.ttf"},{family:"Noto Sans Khmer",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans-khmer@latest/khmer-400-normal.ttf"},{family:"Noto Sans Armenian",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans-armenian@latest/armenian-400-normal.ttf"},{family:"Noto Sans Hebrew",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans-hebrew@latest/hebrew-400-normal.ttf"},{family:"Noto Sans Georgian",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans-georgian@latest/georgian-400-normal.ttf"},{family:"Noto Sans Canadian Aboriginal",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans-canadian-aboriginal@latest/canadian-aboriginal-400-normal.ttf"},{family:"Noto Sans Sinhala",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans-sinhala@latest/sinhala-400-normal.ttf"},{family:"Noto Sans Ol Chiki",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans-ol-chiki@latest/ol-chiki-400-normal.ttf"},{family:"Noto Sans Tibetan",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-serif-tibetan@latest/tibetan-400-normal.ttf"},{family:"Noto Sans Tifinagh",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans-tifinagh@latest/tifinagh-400-normal.ttf"},{family:"Noto Sans Yi",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans-yi@latest/yi-400-normal.ttf"},{family:"Noto Sans Syriac",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans-syriac@latest/syriac-400-normal.ttf"},{family:"Noto Sans Thaana",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans-thaana@latest/thaana-400-normal.ttf"},{family:"Noto Sans Vai",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans-vai@latest/vai-400-normal.ttf"},{family:"Noto Sans Cherokee",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans-cherokee@latest/cherokee-400-normal.ttf"},{family:"Noto Sans Tai Tham",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans-tai-tham@latest/tai-tham-400-normal.ttf"},{family:"Noto Sans Tai Viet",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans-tai-viet@latest/tai-viet-400-normal.ttf"},{family:"Noto Sans Javanese",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans-javanese@latest/javanese-400-normal.ttf"},{family:"Noto Sans Gujarati",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans-gujarati@latest/gujarati-400-normal.ttf"},{family:"Noto Sans Malayalam",src:"https://res.cloudinary.com/dpaigt2bx/raw/upload/v1748450359/Manjari-Regular_nrgfti.ttf"},{family:"Noto Sans Telugu",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans-telugu@latest/telugu-400-normal.ttf"}].forEach(({family:n,src:u})=>Font.register({family:n,src:u})),Font.register({family:"Noto Sans",fontWeight:"normal",src:Fe}),Font.register({family:"Noto Sans",fontWeight:"bold",src:Ae}),Font.register({family:"Noto Sans",fontWeight:"semibold",src:Ve});}async print(o){let i=pt[this.option][this.size],n=t.createElement(i,{...o}),u=pdf(n).toBlob();return u.then(p=>{var b=URL.createObjectURL(p);if(window!=null){let m=window.open(b,"_blank");setTimeout(()=>{m?.print();},1e3);}}),u}async getBlob(o){let i=pt[this.option][this.size],n=t.createElement(i,{...o});return pdf(n).toBlob()}};
|
|
2
|
-
export{
|
|
1
|
+
import {Font,StyleSheet,Document,Page,Image,Text,View,pdf}from'@react-pdf/renderer';import o from'react';import {maxBy}from'lodash';import yo from'qrcode';var ht=Object.defineProperty;var wt=(r,i,l)=>i in r?ht(r,i,{enumerable:true,configurable:true,writable:true,value:l}):r[i]=l;var Se=(r,i,l)=>wt(r,typeof i!="symbol"?i+"":i,l);var Q=r=>{typeof r=="string"&&(r=new Date(r));let i={day:"2-digit",month:"short",year:"numeric"};return r.toLocaleDateString("en-GB",i).replace(",","")};var ie="https://res.cloudinary.com/dpaigt2bx/image/upload/f_auto,q_auto/v1/General%20BMP%20assets/vkesyodnuxuwevdwrk6m",xe="https://res.cloudinary.com/dpaigt2bx/raw/upload/v1742817493/fonts/ntbri6mclms8cfx3dk2e.ttf",De="https://res.cloudinary.com/dpaigt2bx/raw/upload/v1742817493/fonts/ojiymraiiuw7juzkmmu8.ttf",Ve="https://res.cloudinary.com/dpaigt2bx/raw/upload/v1743420993/NotoSans-Regular_pmvebt.ttf",Pe="https://res.cloudinary.com/dpaigt2bx/raw/upload/v1743431605/NotoSans-Bold_kagtvd.ttf",Ce="https://res.cloudinary.com/dpaigt2bx/raw/upload/v1743431765/NotoSans-SemiBold_o96oas.ttf";var Ie="https://res.cloudinary.com/dpaigt2bx/image/upload/v1752653165/BookMyPuja_1_1_bd1xa0.png",Ne="https://res.cloudinary.com/dpaigt2bx/image/upload/v1752669810/paid-5025785_1280_afg4ob_gcacmg.png",Fe={morning:"Morning",evening:"Evening"};Font.register({family:"Roboto",fontWeight:"normal",src:xe});Font.register({family:"Roboto",fontWeight:"bold",src:De});var Be=StyleSheet.create({page:{padding:30,fontFamily:"Roboto"},pujaTile:{padding:10,fontSize:9,border:"1px solid rgb(100,100,100)",borderRadius:5,width:"100%",display:"flex",flexDirection:"row"}}),At=({data:r,dates:i})=>{let l=Q(i[0])===Q(i[1]);return o.createElement(Document,null,o.createElement(Page,{size:"A4",style:Be.page},o.createElement(Image,{fixed:true,style:{height:15,width:75,marginBottom:10},src:ie}),o.createElement(Text,{style:{fontSize:13,marginBottom:2}},"Puja List"),o.createElement(Text,{style:{fontSize:10,marginBottom:10}},"Date",":"," ",l?Q(i[0]):`${Q(i[0])} - ${Q(i[1])}`),o.createElement(View,{style:{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"space-between",gap:8}},r?r.map((t,n)=>o.createElement(View,{wrap:false,key:n,style:Be.pujaTile},o.createElement(View,{style:{display:"flex",flexDirection:"row"}},o.createElement(Text,{style:{opacity:.6,marginRight:10}},"#",(n+1).toString().padStart(2,"0"))),o.createElement(View,{style:{flexGrow:1}},o.createElement(View,{style:{display:"flex",flexDirection:"row",marginBottom:3,gap:3}},o.createElement(Text,{style:{fontSize:10,fontWeight:"bold"}},t.participantName),o.createElement(Text,{style:{fontSize:10,fontWeight:"bold"}},"-"),o.createElement(Text,{style:{fontSize:10,fontWeight:"bold"}},t.participantNakshatra)),o.createElement(View,{style:{display:"flex",flexDirection:"row",alignContent:"flex-end",gap:10}},o.createElement(View,{style:{display:"flex",flexDirection:"row",alignContent:"flex-end"}},o.createElement(Text,null,"Puja name : "),o.createElement(Text,{style:{fontSize:10,fontWeight:"bold"}},t.pujaName)),l?null:o.createElement(View,{style:{display:"flex",flexDirection:"row",alignContent:"flex-end"}},o.createElement(Text,null,"Date: "),o.createElement(Text,{style:{fontWeight:"bold"}},Q(t.date)))),o.createElement(View,{style:{display:"flex",flexDirection:"row",alignContent:"flex-end",gap:10}}),t.priestNote!==""&&t.priestNote!==null&&t.priestNote!==void 0?o.createElement(View,{style:{display:"flex",flexDirection:"row",justifyContent:"space-between",marginTop:3}},o.createElement(Text,null,"Priest Note: ",t.priestNote)):null),o.createElement(View,{style:{display:"flex",flexDirection:"column",alignItems:"flex-end"}},o.createElement(Text,{style:{fontWeight:"bold",fontSize:10}},"Rs ",t.amount),t.paymentStatus=="pending"?o.createElement(View,{style:{backgroundColor:"#000000",paddingVertical:3,paddingHorizontal:5,borderRadius:5,marginTop:3}},o.createElement(Text,{style:{color:"#ffffff",fontSize:8}},"Pending")):null))):null)))},Vt=At;Font.register({family:"Roboto",fontWeight:"normal",src:xe});Font.register({family:"Roboto",fontWeight:"bold",src:De});var N=1,le=25*N,ce=StyleSheet.create({page:{padding:10*N,fontFamily:"Roboto"},pujaTile:{paddingVertical:10*N,paddingHorizontal:10*N,fontSize:le,border:`${5*N}px solid black`,borderRadius:5*N,width:"100%",display:"flex",flexDirection:"column"}}),Bt=({data:r,dates:i})=>{let l=Q(i[0])===Q(i[1]);return o.createElement(Document,null,o.createElement(Page,{dpi:200,size:[457*N],style:ce.page},o.createElement(Image,{fixed:true,style:{height:55*N,width:274*N,marginBottom:10*N,marginHorizontal:"auto"},src:ie}),o.createElement(Text,{style:{fontSize:25*N,marginBottom:5*N,marginHorizontal:"auto"}},"Puja List"),o.createElement(Text,{style:{fontSize:20*N,marginBottom:5*N,marginHorizontal:"auto",fontWeight:"bold"}},"Date",":"," ",l?Q(i[0]):`${Q(i[0])} - ${Q(i[1])}`),o.createElement(Text,{style:{fontSize:17*N,marginBottom:20*N,marginHorizontal:"auto"}},"Printed at : ",new Date().toLocaleString()),o.createElement(View,{style:{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"space-between",gap:15*N}},r?r.map((t,n)=>o.createElement(View,{wrap:false,key:n,style:ce.pujaTile},o.createElement(View,{style:{display:"flex",flexDirection:"row",justifyContent:"space-between",marginBottom:5*N}},o.createElement(Text,{style:{opacity:.6,marginRight:10*N}},"#",(n+1).toString().padStart(2,"0")),o.createElement(View,{style:{display:"flex",flexDirection:"row",alignItems:"flex-end",gap:10*N}},t.paymentStatus=="pending"?o.createElement(View,{style:{backgroundColor:"#000000",paddingVertical:3*N,paddingHorizontal:5*N,borderRadius:5*N,marginTop:3*N}},o.createElement(Text,{style:{color:"#ffffff",fontSize:le}},"Pending")):null,o.createElement(Text,{style:{fontWeight:"bold",fontSize:le}},"Rs ",t.amount))),o.createElement(View,{style:{flexGrow:1}},o.createElement(View,{style:{display:"flex",flexDirection:"row",flexWrap:"wrap",marginBottom:3*N,gap:3*N}},o.createElement(Text,{style:{fontSize:le,fontWeight:"bold"}},t.participantName),o.createElement(Text,{style:{fontSize:le,fontWeight:"bold"}},"-"),o.createElement(Text,{style:{fontSize:le,fontWeight:"bold"}},t.participantNakshatra)),o.createElement(View,{style:{display:"flex",flexDirection:"column",alignContent:"flex-end",gap:10*N}},o.createElement(View,{style:{display:"flex",flexDirection:"row",flexWrap:"wrap",alignContent:"flex-end"}},o.createElement(Text,null,"Puja name : "),o.createElement(Text,{style:{fontSize:le,fontWeight:"bold"}},t.pujaName)),l?null:o.createElement(View,{style:{display:"flex",flexDirection:"row",alignContent:"flex-end"}},o.createElement(Text,null,"Date: "),o.createElement(Text,{style:{fontWeight:"bold"}},Q(t.date)))),o.createElement(View,{style:{display:"flex",flexDirection:"row",alignContent:"flex-end",gap:10*N}}),t.priestNote!==""&&t.priestNote!==null&&t.priestNote!==void 0?o.createElement(View,{style:{display:"flex",flexDirection:"row",justifyContent:"space-between",marginTop:3*N}},o.createElement(Text,null,"Priest Note: ",t.priestNote)):null))):null)))},zt=Bt;var kt={Latin:/[A-Za-z\u00AA\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02B8\u02E0-\u02E4\u1D00-\u1D25\u1D2C-\u1D5C\u1D62-\u1D65\u1D6B-\u1D77\u1D79-\u1DBE\u1E00-\u1EFF\u2071\u207F\u2090-\u209C\u212A\u212B\u2132\u214E\u2160-\u2188\u2C60-\u2C7F\uA722-\uA787\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA7FF\uAB30-\uAB5A\uAB5C-\uAB64\uAB66-\uAB69\uFB00-\uFB06\uFF21-\uFF3A\uFF41-z]|\uD801[\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]/g,SC:/[\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u3005\u3007\u3021-\u3029\u3038-\u303B\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFA6D\uFA70-\uFAD9]|\uD81B[\uDFE2\uDFE3\uDFF0\uDFF1]|[\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF]/g,Cyrillic:/[\u0400-\u0484\u0487-\u052F\u1C80-\u1C88\u1D2B\u1D78\u2DE0-\u2DFF\uA640-\uA69F\uFE2E\uFE2F]|\uD838[\uDC30-\uDC6D\uDC8F]/g,Arabic:/[\u0600-\u0604\u0606-\u060B\u060D-\u061A\u061C-\u061E\u0620-\u063F\u0641-\u064A\u0656-\u066F\u0671-\u06DC\u06DE-\u06FF\u0750-\u077F\u0870-\u088E\u0890\u0891\u0898-\u08E1\u08E3-\u08FF\uFB50-\uFBC2\uFBD3-\uFD3D\uFD40-\uFD8F\uFD92-\uFDC7\uFDCF\uFDF0-\uFDFF\uFE70-\uFE74\uFE76-\uFEFC]|\uD803[\uDE60-\uDE7E\uDEFD-\uDEFF]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB\uDEF0\uDEF1]/g,Bengali:/[\u0980-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09FE]/g,Devanagari:/[\u0900-\u0950\u0955-\u0963\u0966-\u097F\uA8E0-\uA8FF]|\uD806[\uDF00-\uDF09]/g,JP:/[\u3041-\u3096\u309D-\u309F]|\uD82C[\uDC01-\uDD1F\uDD32\uDD50-\uDD52]|\uD83C\uDE00|[\u30A1-\u30FA\u30FD-\u30FF\u31F0-\u31FF\u32D0-\u32FE\u3300-\u3357\uFF66-\uFF6F\uFF71-\uFF9D]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00\uDD20-\uDD22\uDD55\uDD64-\uDD67]|[\u3400-\u4DB5\u4E00-\u9FAF]/g,KR:/[\u1100-\u11FF\u302E\u302F\u3131-\u318E\u3200-\u321E\u3260-\u327E\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uFFA0-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/g,Tamil:/[\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BFA]|\uD807[\uDFC0-\uDFF1\uDFFF]/g,Kannada:/[\u0C80-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1-\u0CF3]/g,Myanmar:/[\u1000-\u109F\uA9E0-\uA9FE\uAA60-\uAA7F]/g,Ethiopic:/[\u1200-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u137C\u1380-\u1399\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]/g,Thai:/[\u0E01-\u0E3A\u0E40-\u0E5B]/g,Greek:/[\u0370-\u0373\u0375-\u0377\u037A-\u037D\u037F\u0384\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03E1\u03F0-\u03FF\u1D26-\u1D2A\u1D5D-\u1D61\u1D66-\u1D6A\u1DBF\u1F00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FC4\u1FC6-\u1FD3\u1FD6-\u1FDB\u1FDD-\u1FEF\u1FF2-\u1FF4\u1FF6-\u1FFE\u2126\uAB65]|\uD800[\uDD40-\uDD8E\uDDA0]|\uD834[\uDE00-\uDE45]/g,Khmer:/[\u1780-\u17DD\u17E0-\u17E9\u17F0-\u17F9\u19E0-\u19FF]/g,Armenian:/[\u0531-\u0556\u0559-\u058A\u058D-\u058F\uFB13-\uFB17]/g,Hebrew:/[\u0591-\u05C7\u05D0-\u05EA\u05EF-\u05F4\uFB1D-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFB4F]/g,Georgian:/[\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u10FF\u1C90-\u1CBA\u1CBD-\u1CBF\u2D00-\u2D25\u2D27\u2D2D]/g,Lao:/[\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECE\u0ED0-\u0ED9\u0EDC-\u0EDF]/g,"Canadian Aboriginal":/[\u1400-\u167F\u18B0-\u18F5]|\uD806[\uDEB0-\uDEBF]/g,Sinhala:/[\u0D81-\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2-\u0DF4]|\uD804[\uDDE1-\uDDF4]/g,"Ol Chiki":/[\u1C50-\u1C7F]/g,Tibetan:/[\u0F00-\u0F47\u0F49-\u0F6C\u0F71-\u0F97\u0F99-\u0FBC\u0FBE-\u0FCC\u0FCE-\u0FD4\u0FD9\u0FDA]/g,Tifinagh:/[\u2D30-\u2D67\u2D6F\u2D70\u2D7F]/g,Yi:/[\uA000-\uA48C\uA490-\uA4C6]/g,Syriac:/[\u0700-\u070D\u070F-\u074A\u074D-\u074F\u0860-\u086A]/g,Thaana:/[\u0780-\u07B1]/g,Vai:/[\uA500-\uA62B]/g,Cherokee:/[\u13A0-\u13F5\u13F8-\u13FD\uAB70-\uABBF]/g,"Tai Tham":/[\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA0-\u1AAD]/g,"Tai Viet":/[\uAA80-\uAAC2\uAADB-\uAADF]/g,Javanese:/[\uA980-\uA9CD\uA9D0-\uA9D9\uA9DE\uA9DF]/g,Telugu:/[\u0C00-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3C-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C5D\u0C60-\u0C63\u0C66-\u0C6F\u0C77-\u0C7F]/g,Gujarati:/[\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AF1\u0AF9-\u0AFF]/g,Malayalam:/[\u0D00-\u0D03\u0D05-\u0D39\u0D3A\u0D3B\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D60-\u0D63\u0D66-\u0D6F\u0D70-\u0D7F]/g,Gurmukhi:/[\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A76]/g},vt=({style:r={},children:i})=>{let l=T=>{let a=maxBy(Object.entries(kt),([x,D])=>{let L=T.match(D);return L?L.length:0});return a?a[0]:"Latin"},t=T=>[/\b\d{2}\/\d{2}\/\d{4}\b/,/\b\d{2}\s\w{3}\s\d{4}\b/].some(x=>x.test(T));function n(T){return T.replace(/[\uFF01-\uFF5E]/g,a=>`${String.fromCharCode(a.charCodeAt(0)-65248)} `)}let u=T=>{let a=[],x=null,D="";for(let L of T){L=n(L);let se=l(L);se!==x?(D&&a.push({text:D,script:x}),x=se,D=L):D+=L;}return D&&a.push({text:D,script:x}),a},p=[];i&&typeof i=="string"&&!Array.isArray(i)&&!t(i)&&u(i).forEach((a,x)=>{let D=a.script==="Latin"||!a.script?"Noto Sans":`Noto Sans ${a.script}`;p.push(o.createElement(Text,{key:x,style:{fontFamily:D}},a.text));});let b=[],m={fontFamily:"Noto Sans"};return Array.isArray(r)?b=[...r,m]:r&&Object.keys(r).length>0?b=[r,m]:b=[m],o.createElement(Text,{style:b},p?.length?p:i)},e=vt;var jt=({startDate:r,endDate:i,reportTiming:l,templeName:t,reportName:n})=>o.createElement(o.Fragment,null,o.createElement(Image,{fixed:true,style:{height:15,width:75,marginBottom:10},src:ie}),i?o.createElement(e,{style:{fontSize:11,marginTop:5,textAlign:"right"}},"Dates: ",r.toDateString()," - ",i.toDateString()):o.createElement(e,{style:{fontSize:11,marginTop:5,textAlign:"right"}},"Date: ",r.toDateString()),l&&Object.keys(Fe).includes(l)?o.createElement(e,{style:{fontSize:11,marginTop:5,textAlign:"right"}},Fe[l]," Report"):null,o.createElement(e,{style:{fontSize:14,fontWeight:"bold"}},n),o.createElement(e,{style:{fontSize:12}},`${t}`)),C=jt;var _t=({startDate:r,endDate:i,templeName:l,data:t,reportTiming:n})=>o.createElement(o.Fragment,null,o.createElement(Document,null,o.createElement(Page,{size:"A4",style:{padding:30,fontFamily:"Noto Sans"}},o.createElement(C,{startDate:r,endDate:i,templeName:l,reportTiming:n,reportName:"Temple Prasad (Kitchen) Report"}),t.length>0?o.createElement(View,{style:{display:"flex",flexDirection:"column",marginTop:20}},o.createElement(View,{style:{display:"flex",flexDirection:"row",border:"1px solid #000",fontSize:10,fontWeight:"semibold"}},o.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"20%"}},o.createElement(e,null,"Sr no")),o.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"60%"}},o.createElement(e,null,"Prasad Name")),o.createElement(View,{style:{padding:6,borderRight:"none",width:"20%"}},o.createElement(e,null,"Quantity"))),t.map((u,p)=>o.createElement(View,{style:{display:"flex",flexDirection:"row",border:"1px solid #000",borderTop:"none",fontSize:10}},o.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"20%"}},o.createElement(e,null,p+1)),o.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"60%"}},o.createElement(e,null,u.name)),o.createElement(View,{style:{padding:6,borderRight:"none",width:"20%"}},o.createElement(e,null,u.quantity))))):o.createElement(e,{style:{fontSize:18,textAlign:"center",marginTop:100}},"No data available for the selected date range")))),je=_t;var Mt=({startDate:r,endDate:i,templeName:l,data:t})=>{let n=t.reduce((p,b)=>b.status==="cancelled"?p:p+b.bookingAmount,0),u=t.reduce((p,b)=>b.status==="cancelled"?p:p+b.creditedAmount,0);return o.createElement(o.Fragment,null,o.createElement(Document,null,o.createElement(Page,{size:"A4",style:{padding:30,fontFamily:"Noto Sans"}},o.createElement(C,{startDate:r,endDate:i,reportName:"Transactions Report",templeName:l}),t.length>0?o.createElement(o.Fragment,null,o.createElement(e,{style:{fontSize:10,marginTop:10}},"Total Bookings: ",n.toLocaleString("en-IN",{maximumFractionDigits:2,style:"currency",currency:"INR"})),o.createElement(e,{style:{fontSize:10}},"Total Credited Amount: ",u.toLocaleString("en-IN",{maximumFractionDigits:2,style:"currency",currency:"INR"})),o.createElement(View,{style:{display:"flex",flexDirection:"column",marginTop:20}},o.createElement(View,{style:{display:"flex",flexDirection:"row",border:"1px solid black",fontWeight:"semibold",fontSize:10}},o.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"8%"}},o.createElement(e,null,"Sr no")),o.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"23%"}},o.createElement(e,null,"Date")),o.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"19%"}},o.createElement(e,null,"Invoice")),o.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"15%"}},o.createElement(e,null,"Booking Amt")),o.createElement(View,{style:{padding:6,width:"15%",borderRight:"1px solid black"}},o.createElement(e,null,"Credited Amt")),o.createElement(View,{style:{padding:6,width:"20%"}},o.createElement(e,null,"Transaction ID"))),t.map((p,b)=>o.createElement(View,{style:{display:"flex",flexDirection:"row",border:"1px solid black",borderTop:"none",fontSize:10}},o.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"8%"}},o.createElement(e,null,b+1)),o.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"23%"}},o.createElement(e,null,p.date," ",p.time)),o.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"19%"}},o.createElement(e,null,p.invoiceNumber)),p.status=="cancelled"?o.createElement(o.Fragment,null,o.createElement(View,{style:{padding:6,width:"50%"}},o.createElement(e,{style:{textAlign:"center"}},"CANCELLED"))):o.createElement(o.Fragment,null,o.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"15%"}},o.createElement(e,null,p.bookingAmount.toLocaleString("en-IN",{maximumFractionDigits:2,style:"currency",currency:"INR"}))),o.createElement(View,{style:{padding:6,width:"15%",borderRight:"1px solid black"}},o.createElement(e,null,p.creditedAmount.toLocaleString("en-IN",{maximumFractionDigits:2,style:"currency",currency:"INR"}))),o.createElement(View,{style:{padding:6,width:"20%"}},o.createElement(e,null,p.transactionId))))))):o.createElement(e,{style:{fontSize:18,textAlign:"center",marginTop:100}},"No data available for the selected date range"))))},We=Mt;var Gt=({startDate:r,endDate:i,templeName:l,data:t})=>(t=t.map(n=>{let u="";try{let p=JSON.parse(n.address);u=`${p.address}, ${p.locality}, ${p.state} - ${p.pincode}`;}catch(p){console.error("Error parsing address:",p),u=n.address;}return {...n,address:u}}),o.createElement(Document,null,o.createElement(Page,{size:"A4",style:{padding:30,fontFamily:"Noto Sans"}},o.createElement(C,{startDate:r,endDate:i,reportName:"Prasad Delivery Address",templeName:l}),t.length>0?o.createElement(View,{style:{display:"flex",flexDirection:"column",marginTop:20}},o.createElement(View,{style:{display:"flex",flexDirection:"row",border:"1px solid black",fontWeight:"semibold",fontSize:10}},o.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"10%"}},o.createElement(e,null,"Date")),o.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"13%"}},o.createElement(e,null,"Invoice")),o.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"18%"}},o.createElement(e,null,"Devotee Name")),o.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"25%"}},o.createElement(e,null,"Address")),o.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"20%"}},o.createElement(e,null,"Puja Name")),o.createElement(View,{style:{padding:6,width:"15%"}},o.createElement(e,null,"Amount"))),t.map((n,u)=>o.createElement(View,{style:{display:"flex",flexDirection:"row",border:"1px solid black",borderTop:"none",fontSize:10}},o.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"10%"}},o.createElement(e,null,new Date(n.date).toLocaleDateString("en-GB",{day:"2-digit",month:"2-digit",year:"2-digit"}))),o.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"13%"}},o.createElement(e,null,n.invoiceNumber)),o.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"18%"}},o.createElement(e,null,n.devoteeName)),o.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"25%"}},o.createElement(e,null,n.address)),o.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"20%"}},o.createElement(e,null,n.pujaName)),o.createElement(View,{style:{padding:6,width:"15%"}},o.createElement(e,null,n.amount.toLocaleString("en-IN",{maximumFractionDigits:2,style:"currency",currency:"INR"})))))):o.createElement(e,{style:{fontSize:18,textAlign:"center",marginTop:100}},"No data available for the selected date range")))),Le=Gt;var Qt=({startDate:r,endDate:i,templeName:l,data:t,reportTiming:n})=>{t.sort((p,b)=>p.invoiceNumber.localeCompare(b.invoiceNumber));return o.createElement(Document,null,o.createElement(Page,{size:"A4",style:{padding:30,fontFamily:"Noto Sans"}},o.createElement(C,{startDate:r,endDate:i,reportName:"Prasad Report",templeName:l,reportTiming:n}),t.length>0?o.createElement(View,{style:{display:"flex",flexDirection:"column",marginTop:20}},o.createElement(View,{style:{display:"flex",flexDirection:"row",border:"1px solid black",fontWeight:"semibold",fontSize:10}},o.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"10%"}},o.createElement(e,null,"Sr no")),o.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"20%"}},o.createElement(e,null,"Invoice Number")),o.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"23%"}},o.createElement(e,null,"Devotee Name")),o.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"30%"}},o.createElement(e,null,"Prasad Name")),o.createElement(View,{style:{padding:6,width:"10%",borderRight:"1px solid black"}},o.createElement(e,null,"Qty")),o.createElement(View,{style:{padding:6,width:"7%"}},o.createElement(e,null,"Mode"))),t.map((p,b)=>o.createElement(View,{style:{display:"flex",flexDirection:"row",border:"1px solid black",borderTop:"none",fontSize:10}},o.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"10%"}},o.createElement(e,null,b+1)),o.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"20%"}},o.createElement(e,null,p.invoiceNumber)),o.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"23%",fontSize:9,flexWrap:"wrap"}},o.createElement(e,null,p.devoteeName)),o.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"30%"}},o.createElement(e,null,p.prasadName)),o.createElement(View,{style:{padding:6,width:"10%",borderRight:"1px solid black"}},o.createElement(e,null,p.quantity)),o.createElement(View,{style:{padding:6,width:"7%"}},o.createElement(e,null,p.collectionMode))))):o.createElement(e,{style:{fontSize:18,textAlign:"center",marginTop:100}},"No data available for the selected date range")))},_e=Qt;var Yt=({startDate:r,endDate:i,templeName:l,pujas:t,reportTiming:n})=>{let u=0,p=0,b=t.some(m=>m.bookings.some(T=>T.requires_coupon));return !t||t.length===0?o.createElement(Document,null,o.createElement(Page,{size:"A4",style:{padding:30,fontFamily:"Noto Sans"}},o.createElement(C,{startDate:r,endDate:i,reportName:"Puja List",templeName:l,reportTiming:n}),o.createElement(e,{style:{fontSize:12,marginTop:100,textAlign:"center"}},"No data available for the selected date range"))):o.createElement(o.Fragment,null,o.createElement(Document,null,o.createElement(Page,{size:"A4",style:{padding:30,fontFamily:"Noto Sans"}},o.createElement(C,{startDate:r,endDate:i,reportTiming:n,reportName:"",templeName:""}),t.some(m=>m.bookings.some(T=>T.is_early_reminder))&&o.createElement(o.Fragment,null,o.createElement(e,{style:{fontSize:14,fontWeight:"bold",marginTop:10}},"Early Reminders for Upcoming Pujas"),o.createElement(View,{style:{marginTop:10}},o.createElement(View,{style:{display:"flex",flexDirection:"row",border:"1px solid black"}},o.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",fontWeight:"semibold",width:"10%"}},o.createElement(e,null,"Sr No")),o.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",fontWeight:"semibold",width:"60%"}},o.createElement(e,null,"Puja Name")),o.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",fontWeight:"semibold",width:"10%"}},o.createElement(e,null,"Qty")),o.createElement(View,{style:{padding:6,fontSize:10,borderRight:"none",fontWeight:"semibold",width:"20%"}},o.createElement(e,null,"Date"))))),t.some(m=>m.bookings.some(T=>T.is_early_reminder&&!T.requires_coupon))?t.flatMap((m,T)=>m.bookings.filter(a=>a.is_early_reminder&&!a.requires_coupon).map((a,x)=>(p++,o.createElement(View,{key:`${T}-${x}`,style:{display:"flex",flexDirection:"row",border:"1px solid black",borderTop:"none"}},o.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",width:"10%"}},o.createElement(e,null,p)),o.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",width:"60%"}},o.createElement(e,null,m.name)),o.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",width:"10%"}},o.createElement(e,null,a.quantity)),o.createElement(View,{style:{padding:6,fontSize:10,borderRight:"none",width:"20%"}},o.createElement(e,null,a.date?new Date(a.date).toDateString():"")))))):null,o.createElement(e,{style:{fontSize:14,fontWeight:"bold",marginTop:20}},"Puja List"),o.createElement(e,{style:{fontSize:12}},`${l}`),o.createElement(View,{style:{display:"flex",flexDirection:"column",marginTop:10}},t.map((m,T)=>m.bookings.every(a=>a.is_early_reminder||a.requires_coupon)?null:(u=0,o.createElement(View,{key:T,style:{marginBottom:25}},o.createElement(View,null,o.createElement(e,{style:{fontSize:10,fontWeight:"bold",border:"1px solid black",padding:6,textAlign:"center",borderBottom:"none"}},`${m.name} - ${m.bookings.length}`)),o.createElement(View,{style:{display:"flex",flexDirection:"row",border:"1px solid black"}},o.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",fontWeight:"semibold",width:"10%"}},o.createElement(e,null,"Sr No")),o.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",fontWeight:"semibold",width:"20%"}},o.createElement(e,null,"Invoice No")),o.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",fontWeight:"semibold",width:"35%"}},o.createElement(e,null,"Devotee Name")),o.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",fontWeight:"semibold",width:"25%"}},o.createElement(e,null,"Nakshatra")),o.createElement(View,{style:{padding:6,fontSize:10,borderRight:"none",fontWeight:"semibold",width:"10%"}},o.createElement(e,null,"Qty"))),m.bookings.map((a,x)=>a.is_early_reminder||a.requires_coupon?null:(u++,o.createElement(View,{key:x,wrap:false,style:{display:"flex",flexDirection:"row",border:"1px solid black",borderTop:"none",width:"100%"}},o.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",width:"10%"}},o.createElement(e,null,u)),o.createElement(View,{style:{display:"flex",flexDirection:"column",width:"90%"}},o.createElement(View,{style:{display:"flex",flexDirection:"row"}},o.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",width:`${20*1.11111}%`}},o.createElement(e,null,a.invoiceNumber)),o.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",width:`${35*1.11111}%`}},o.createElement(e,null,a.devoteeName)),o.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",width:`${25*1.11111}%`}},o.createElement(e,null,a.nakshatra)),o.createElement(View,{style:{padding:6,fontSize:10,borderRight:"none",width:`${10*1.11111}%`}},o.createElement(e,null,a.quantity))),a.priestNote&&o.createElement(View,{style:{padding:6,fontSize:10,borderTop:"1px solid black",width:"100%"}},o.createElement(e,null,a.priestNote))))))))))),b?o.createElement(Page,{size:"A4",style:{padding:30,fontFamily:"Noto Sans"}},o.createElement(Image,{fixed:true,style:{height:15,width:75,marginBottom:10},src:ie}),o.createElement(View,{style:{display:"flex",flexDirection:"column",marginTop:10,gap:15}},(()=>{let m=t.flatMap(a=>a.bookings.filter(x=>x.requires_coupon).map(x=>({...x,pujaName:a.name}))),T={};for(let a of m)T[a.invoiceNumber]||(T[a.invoiceNumber]=[]),T[a.invoiceNumber].push(a);return Object.entries(T).map(([a,x],D)=>{let L=x,se=L[0];return o.createElement(View,{key:a,style:{marginBottom:10,fontSize:18,padding:10,border:"1px dotted black",position:"relative"},wrap:false},o.createElement(View,{style:{display:"flex",flexDirection:"row",justifyContent:"space-between",gap:10}},o.createElement(View,{style:{display:"flex",flexDirection:"row",gap:10}},o.createElement(e,{style:{fontWeight:"semibold"}},a),o.createElement(e,null,se.date?new Date(se.date).toDateString():r.toDateString())),o.createElement(e,null,se.phone_number)),o.createElement(View,{style:{height:15,width:"100%"}}),L.map((de,me)=>o.createElement(View,{key:me,style:{display:"flex",flexDirection:"row",marginTop:25}},o.createElement(e,null,`${de.devoteeName} ----- ${de.nakshatra} ----- ${de.pujaName}`))),o.createElement(View,null,o.createElement(e,{style:{textAlign:"center",marginTop:10,fontSize:10,opacity:.5}},"~~~ bookmypuja.app - Your Puja, Our Commitment ~~~")))})})())):null))},qe=Yt;var Rt=({templeName:r,startDate:i,endDate:l,pujas:t,reportTiming:n})=>{let u=t.sort((p,b)=>{let m=p.nakshatras.length;return b.nakshatras.length-m});return o.createElement(Document,null,o.createElement(Page,{size:"A4",style:{padding:30,fontFamily:"Noto Sans"}},o.createElement(C,{startDate:i,endDate:l,reportTiming:n,reportName:"Puja Summary",templeName:r}),t.length>0?o.createElement(View,{style:{display:"flex",flexDirection:"column",marginTop:20}},u.map((p,b)=>o.createElement(o.Fragment,null,o.createElement(View,{style:{marginBottom:25}},o.createElement(View,null,o.createElement(e,{style:{fontSize:10,fontWeight:"bold",border:"1px solid black",padding:6,textAlign:"center",borderBottom:"none"}},`${p.name} - ${p.totalCount}`)),o.createElement(View,{style:{display:"flex",flexDirection:"row",border:"1px solid black"}},o.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",fontWeight:"semibold",width:"20%"}},o.createElement(e,null,"Sr No")),o.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",fontWeight:"semibold",width:"60%"}},o.createElement(e,null,"Nakshatra")),o.createElement(View,{style:{padding:6,fontSize:10,width:"20%",fontWeight:"semibold"}},o.createElement(e,null,"Quantity"))),p.nakshatras.map((m,T)=>o.createElement(o.Fragment,null,o.createElement(View,{wrap:false,style:{display:"flex",flexDirection:"row",border:"1px solid black",borderTop:"none"}},o.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",width:"20%"}},o.createElement(e,null,T+1)),o.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",width:"60%"}},o.createElement(e,null,m.name)),o.createElement(View,{style:{padding:6,fontSize:10,width:"20%"}},o.createElement(e,null,m.count))))))))):o.createElement(e,{style:{fontSize:18,textAlign:"center",marginTop:100}},"No data available for the selected date range")))},Me=Rt;var to=({startDate:r,endDate:i,templeName:l,pujaData:t,prasadData:n,deliveryData:u,reportTiming:p})=>{u=u.map(a=>{let x="";try{let D=JSON.parse(a.address);x=`${D.address}, ${D.locality}, ${D.state} - ${D.pincode}`;}catch(D){console.error("Error parsing address:",D),x=a.address;}return {...a,address:x}});let b=0,m=0,T=t.some(a=>a.bookings.some(x=>x.requires_coupon));return t.length==0&&n.length==0&&u.length==0?o.createElement(Document,null,o.createElement(Page,{size:"A4",style:{padding:30,fontFamily:"Noto Sans"}},o.createElement(C,{startDate:r,endDate:i,reportTiming:p,reportName:"Combined Report",templeName:l}),o.createElement(e,{style:{fontSize:12,marginTop:100,textAlign:"center"}},"No data available for the selected date range"))):o.createElement(o.Fragment,null,o.createElement(Document,null,t.length>0&&o.createElement(Page,{size:"A4",style:{padding:30,fontFamily:"Noto Sans"}},o.createElement(C,{startDate:r,endDate:i,reportTiming:p,reportName:"",templeName:""}),t.some(a=>a.bookings.some(x=>x.is_early_reminder))&&o.createElement(o.Fragment,null,o.createElement(e,{style:{fontSize:14,fontWeight:"bold",marginTop:10}},"Early Reminders for Upcoming Pujas"),o.createElement(View,{style:{marginTop:10}},o.createElement(View,{style:{display:"flex",flexDirection:"row",border:"1px solid black"}},o.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",fontWeight:"semibold",width:"10%"}},o.createElement(e,null,"Sr No")),o.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",fontWeight:"semibold",width:"60%"}},o.createElement(e,null,"Puja Name")),o.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",fontWeight:"semibold",width:"10%"}},o.createElement(e,null,"Qty")),o.createElement(View,{style:{padding:6,fontSize:10,borderRight:"none",fontWeight:"semibold",width:"20%"}},o.createElement(e,null,"Date"))))),t.some(a=>a.bookings.some(x=>x.is_early_reminder&&!x.requires_coupon))?t.flatMap((a,x)=>a.bookings.filter(D=>D.is_early_reminder&&!D.requires_coupon).map((D,L)=>(m++,o.createElement(View,{wrap:false,key:`${x}-${L}`,style:{display:"flex",flexDirection:"row",border:"1px solid black",borderTop:"none"}},o.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",width:"10%"}},o.createElement(e,null,m)),o.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",width:"60%"}},o.createElement(e,null,a.name)),o.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",width:"10%"}},o.createElement(e,null,D.quantity)),o.createElement(View,{style:{padding:6,fontSize:10,borderRight:"none",width:"20%"}},o.createElement(e,null,D.date?new Date(D.date).toDateString():"")))))):null,o.createElement(e,{style:{fontSize:14,fontWeight:"bold",marginTop:20}},"Puja List"),o.createElement(e,{style:{fontSize:12}},`${l}`),o.createElement(View,{style:{display:"flex",flexDirection:"column",marginTop:10}},t.map((a,x)=>a.bookings.every(D=>D.is_early_reminder||D.requires_coupon)?null:(b=0,o.createElement(o.Fragment,null,o.createElement(View,{style:{marginBottom:25}},o.createElement(View,null,o.createElement(e,{style:{fontSize:10,fontWeight:"bold",border:"1px solid black",padding:6,textAlign:"center",borderBottom:"none"}},`${a.name} - ${a.bookings.length}`)),o.createElement(View,{style:{display:"flex",flexDirection:"row",border:"1px solid black"}},o.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",fontWeight:"semibold",width:"10%"}},o.createElement(e,null,"Sr No")),o.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",fontWeight:"semibold",width:"20%"}},o.createElement(e,null,"Invoice No")),o.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",fontWeight:"semibold",width:"35%"}},o.createElement(e,null,"Devotee Name")),o.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",fontWeight:"semibold",width:"25%"}},o.createElement(e,null,"Nakshatra")),o.createElement(View,{style:{padding:6,fontSize:10,borderRight:"none",fontWeight:"semibold",width:"10%"}},o.createElement(e,null,"Qty"))),a.bookings.map((D,L)=>D.is_early_reminder||D.requires_coupon?null:(b++,o.createElement(o.Fragment,null,o.createElement(View,{wrap:false,style:{display:"flex",flexDirection:"row",border:"1px solid black",borderTop:"none",width:"100%"}},o.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",width:"10%"}},o.createElement(e,null,b)),o.createElement(View,{style:{display:"flex",flexDirection:"column",width:"90%"}},o.createElement(View,{style:{display:"flex",flexDirection:"row"}},o.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",width:`${20*1.11111}%`}},o.createElement(e,null,D.invoiceNumber)),o.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",width:`${35*1.11111}%`}},o.createElement(e,null,D.devoteeName)),o.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",width:`${25*1.11111}%`}},o.createElement(e,null,D.nakshatra)),o.createElement(View,{style:{padding:6,fontSize:10,borderRight:"none",width:`${10*1.11111}%`}},o.createElement(e,null,D.quantity))),D.priestNote&&o.createElement(View,{style:{padding:6,fontSize:10,borderTop:"1px solid black",width:"100%"}},o.createElement(e,null,D.priestNote))))))))))))),t.length>0&&T&&o.createElement(Page,{size:"A4",style:{padding:30,fontFamily:"Noto Sans"}},o.createElement(Image,{fixed:true,style:{height:15,width:75,marginBottom:10},src:ie}),o.createElement(View,{style:{display:"flex",flexDirection:"column",marginTop:10,gap:15}},(()=>{let a=t.flatMap(D=>D.bookings.filter(L=>L.requires_coupon).map(L=>({...L,pujaName:D.name}))),x={};for(let D of a)x[D.invoiceNumber]||(x[D.invoiceNumber]=[]),x[D.invoiceNumber].push(D);return Object.entries(x).map(([D,L],se)=>{let de=L,me=de[0];return o.createElement(View,{key:D,style:{marginBottom:10,fontSize:18,padding:10,border:"1px dotted black"},wrap:false},o.createElement(View,{style:{display:"flex",flexDirection:"row",justifyContent:"space-between",gap:10}},o.createElement(View,{style:{display:"flex",flexDirection:"row",gap:10}},o.createElement(e,{style:{fontWeight:"semibold"}},D),o.createElement(e,null,me.date?new Date(me.date).toDateString():r.toDateString())),o.createElement(e,null,me.phone_number)),o.createElement(View,{style:{height:15,width:"100%"}}),de.map((Te,Dt)=>o.createElement(View,{key:Dt,style:{display:"flex",flexDirection:"row",marginTop:25}},o.createElement(e,null,`${Te.devoteeName} ----- ${Te.nakshatra} ----- ${Te.pujaName}`))))})})())),n.length>0&&o.createElement(Page,{size:"A4",style:{padding:30,fontFamily:"Noto Sans"}},o.createElement(C,{startDate:r,endDate:i,reportTiming:p,reportName:"Prasad Report",templeName:l}),o.createElement(View,{style:{display:"flex",flexDirection:"column",marginTop:20}},o.createElement(View,{style:{display:"flex",flexDirection:"row",border:"1px solid black",fontWeight:"semibold",fontSize:10}},o.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"10%"}},o.createElement(e,null,"Sr no")),o.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"20%"}},o.createElement(e,null,"Invoice Number")),o.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"30%"}},o.createElement(e,null,"Devotee Name")),o.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"30%"}},o.createElement(e,null,"Prasad Name")),o.createElement(View,{style:{padding:6,width:"10%"}},o.createElement(e,null,"Qty"))),n.map((a,x)=>o.createElement(View,{style:{display:"flex",flexDirection:"row",border:"1px solid black",borderTop:"none",fontSize:10}},o.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"10%"}},o.createElement(e,null,x+1)),o.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"20%"}},o.createElement(e,null,a.invoiceNumber)),o.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"30%"}},o.createElement(e,null,a.devoteeName)),o.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"30%"}},o.createElement(e,null,a.prasadName)),o.createElement(View,{style:{padding:6,width:"10%"}},o.createElement(e,null,a.quantity)))))),u.length>0&&o.createElement(Page,{size:"A4",style:{padding:30,fontFamily:"Noto Sans"}},o.createElement(C,{startDate:r,endDate:i,reportTiming:p,reportName:"Prasad Delivery Postal Report",templeName:l}),o.createElement(View,{style:{display:"flex",flexDirection:"row",marginTop:20,width:"100%",gap:20,flexWrap:"wrap"}},u&&u.map(a=>o.createElement(View,{key:a.id,style:{width:"46%",display:"flex",flexDirection:"column",border:"1px solid black",borderStyle:"dotted",borderWidth:1.5,padding:6}},o.createElement(View,{style:{flexGrow:1}},o.createElement(e,{style:{fontSize:10,fontWeight:"bold"}},a.name),o.createElement(e,{style:{fontSize:10}},a.address),o.createElement(e,{style:{fontSize:10}},a.phone)),o.createElement(View,{style:{borderTop:"1px solid black",marginTop:5,paddingTop:3,borderStyle:"dotted"}}),o.createElement(e,{style:{fontSize:9,marginTop:3}},"Note: ",a.pujaDetails)))))))},He=to;var ro=({startDate:r,endDate:i,data:l})=>o.createElement(Document,null,o.createElement(Page,{size:"A4",style:{padding:30,fontFamily:"Noto Sans"}},o.createElement(C,{startDate:r,endDate:i,reportName:"Temple Payment Report",templeName:""}),o.createElement(View,{style:{display:"flex",flexDirection:"column",marginTop:20}},o.createElement(View,{style:{display:"flex",flexDirection:"row",border:"1px solid black",fontWeight:"semibold",fontSize:10}},o.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"10%"}},o.createElement(e,null,"S.No.")),o.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"55%"}},o.createElement(e,null,"Temple Name")),o.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"15%"}},o.createElement(e,null,"Bookings")),o.createElement(View,{style:{padding:6,width:"20%"}},o.createElement(e,null,"Revenue"))),l?.map((t,n)=>o.createElement(View,{key:n,style:{display:"flex",flexDirection:"row",border:"1px solid black",borderTop:"none",fontSize:10}},o.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"10%"}},o.createElement(e,null,n+1)),o.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"55%"}},o.createElement(e,null,t.name)),o.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"15%"}},o.createElement(e,null,t.bookings)),o.createElement(View,{style:{padding:6,width:"20%"}},o.createElement(e,null,"\u20B9",t.revenue))))))),Ge=ro;var lo=({startDate:r,endDate:i,templeName:l,data:t})=>o.createElement(Document,null,o.createElement(Page,{size:"A4",style:{padding:30,fontFamily:"Noto Sans"}},o.createElement(C,{startDate:r,endDate:i,reportName:"Settlements Report",templeName:l}),o.createElement(e,{style:{fontSize:10,marginTop:10}},"Total Credited Amount: ",t.totalCreditedAmount),t.settlements.length>0?o.createElement(View,{style:{display:"flex",flexDirection:"column",marginTop:20}},o.createElement(View,{style:{display:"flex",flexDirection:"row",border:"1px solid #000",fontSize:10,fontWeight:"semibold"}},o.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"10%"}},o.createElement(e,null,"Sr no")),o.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"15%"}},o.createElement(e,null,"Date")),o.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"15%"}},o.createElement(e,null,"Settlement")),o.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"20%"}},o.createElement(e,null,"UTR")),o.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"25%"}},o.createElement(e,null,"Invoice")),o.createElement(View,{style:{padding:6,width:"20%"}},o.createElement(e,null,"Settlement ID"))),t.settlements?.map((n,u)=>o.createElement(View,{style:{display:"flex",flexDirection:"row",border:"1px solid #000",borderTop:"none",fontSize:10}},o.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"10%"}},o.createElement(e,null,u+1)),o.createElement(View,{style:{padding:6,width:"15%",borderRight:"1px solid #000"}},o.createElement(e,null,n.date)),o.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"15%"}},o.createElement(e,null,n.settlement_amount)),o.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"20%",fontSize:9}},o.createElement(e,null,n.utr.split("").map((p,b)=>o.createElement(e,{key:b},p)))),o.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"25%",fontSize:9}},o.createElement(View,{style:{display:"flex",flexDirection:"column"}},n.invoices.map((p,b)=>o.createElement(e,{key:b},p.number," (",p.amount,")")))),o.createElement(View,{style:{padding:6,width:"20%"}},o.createElement(e,null,n.settlement_id))))):o.createElement(e,{style:{fontSize:18,textAlign:"center",marginTop:100}},"No data available for the selected date range"))),Ke=lo;var uo=({data:r})=>o.createElement(Document,null,o.createElement(Page,{size:"A4",style:{padding:30,fontFamily:"Noto Sans"}},o.createElement(View,{style:{display:"flex",flexDirection:"row"}},o.createElement(View,{style:{backgroundColor:"#FFA823",width:20,height:"100%"}}),o.createElement(View,{style:{marginLeft:15,marginTop:10,marginBottom:0}},o.createElement(e,{style:{fontSize:16,fontWeight:"bold"}},r.templeName),o.createElement(e,{style:{fontSize:10}},r.templeAddress),o.createElement(View,{style:{display:"flex",flexDirection:"row",gap:5,marginTop:10,alignItems:"center"}},o.createElement(e,{style:{fontSize:10,marginTop:-5}},"Powered by"),o.createElement(Image,{style:{height:25,width:95,objectFit:"contain"},src:Ie})))),o.createElement(View,{style:{display:"flex",flexDirection:"column",alignItems:"center",marginTop:20,position:"relative"}},r.status==="confirmed"?o.createElement(Image,{style:{height:85,width:85,marginBottom:5,objectFit:"contain",position:"absolute",right:"0",bottom:"0"},src:Ne}):null,o.createElement(e,{style:{fontSize:12,marginTop:5,fontWeight:"semibold"}},"INVOICE #",r.invoiceNumber),o.createElement(e,{style:{fontSize:10,marginTop:2}},"Status: ",r.status=="confirmed"?"PAID":"PENDING")),o.createElement(View,{style:{marginTop:10}},o.createElement(e,{style:{fontSize:11}},"Bill to:"),o.createElement(e,{style:{fontSize:11}},r.devoteeDetails.name),r.devoteeDetails.phone?o.createElement(e,{style:{fontSize:11}},r.devoteeDetails.phone):null,o.createElement(e,{style:{fontSize:11}},r.bookingDate)),o.createElement(View,{style:{display:"flex",flexDirection:"column",marginTop:20}},o.createElement(View,{style:{display:"flex",flexDirection:"row",borderBottom:"1px solid #757575",fontSize:10,fontWeight:"semibold"}},o.createElement(View,{style:{padding:6,borderRight:"1px solid #b5b5b5",width:"50%"}},o.createElement(e,null,"Item Description")),o.createElement(View,{style:{padding:6,borderRight:"1px solid #b5b5b5",width:"15%",textAlign:"center"}},o.createElement(e,null,"Price")),o.createElement(View,{style:{padding:6,borderRight:"1px solid #b5b5b5",width:"15%",textAlign:"center"}},o.createElement(e,null,"Quantity")),o.createElement(View,{style:{padding:6,width:"20%",textAlign:"center"}},o.createElement(e,null,"Total"))),r.items.map((i,l)=>o.createElement(View,{wrap:false,style:{display:"flex",flexDirection:"row",borderBottom:"1px solid #757575",fontSize:10}},o.createElement(View,{style:{padding:6,borderRight:"1px solid #b5b5b5",width:"50%"}},i.pujaName?o.createElement(e,{style:{fontSize:11}},i.pujaName):null,i.devoteesName?o.createElement(e,{style:{fontSize:9,color:"#333333"}},i.devoteesName):null,i.pujaDate?o.createElement(e,{style:{fontSize:9,color:"#333333"}},i.pujaDate," ",i.timing?`- ${i.timing}`:null):null,i.repeatEndDate&&i.repeatStartDate?o.createElement(e,{style:{fontSize:9,color:"#333333"}},i.repeatStartDate," to ",i.repeatEndDate," ",i.timing?`- ${i.timing}`:null):null),o.createElement(View,{style:{padding:6,borderRight:"1px solid #b5b5b5",width:"15%",textAlign:"center",display:"flex",alignItems:"center",justifyContent:"center"}},o.createElement(e,{style:{}},i.basePujPrice)),o.createElement(View,{style:{padding:6,borderRight:"1px solid #b5b5b5",width:"15%",textAlign:"center",display:"flex",alignItems:"center",justifyContent:"center"}},o.createElement(e,{style:{}},`${i.quantity?i.quantity:""}${i.repeatCount?` x ${i.repeatCount}`:""}`)),o.createElement(View,{style:{padding:6,width:"20%",textAlign:"center",display:"flex",alignItems:"center",justifyContent:"center"}},o.createElement(e,{style:{}},i.totalPrice))))),o.createElement(View,{style:{display:"flex",flexDirection:"row",marginVertical:40,marginHorizontal:20}},o.createElement(View,{style:{width:"50%",display:"flex",flexDirection:"column",justifyContent:"center",fontSize:11}},o.createElement(e,{style:{fontWeight:"bold"}},"Payment Method:"),o.createElement(e,null,r.paymentMethod)),o.createElement(View,{style:{width:"50%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-end"}},o.createElement(View,{style:{display:"flex",flexDirection:"row",gap:10,fontSize:10}},o.createElement(View,{style:{width:"50%",textAlign:"right"}},o.createElement(e,null,"Subtotal: ")),o.createElement(View,{style:{width:"30%",textAlign:"right"}},o.createElement(e,null,r.subTotal))),r.postalCharges?o.createElement(View,{style:{display:"flex",flexDirection:"row",gap:10,fontSize:10}},o.createElement(View,{style:{width:"70%",textAlign:"right"}},o.createElement(e,null,"Postal Charges: ")),o.createElement(View,{style:{width:"30%",textAlign:"right"}},o.createElement(e,null,r.postalCharges))):null,o.createElement(View,{style:{display:"flex",flexDirection:"row",gap:10,fontSize:10}},o.createElement(View,{style:{width:"70%",textAlign:"right"}},o.createElement(e,null,"Payment Gateway Charges: ")),o.createElement(View,{style:{width:"30%",textAlign:"right"}},o.createElement(e,null,r.paymentGatewayCharges))),o.createElement(View,{style:{display:"flex",flexDirection:"row",gap:10,fontSize:10}},o.createElement(View,{style:{width:"70%",textAlign:"right"}},o.createElement(e,null,"Platform Charges: ")),o.createElement(View,{style:{width:"30%",textAlign:"right"}},o.createElement(e,null,r.platformCharges))),o.createElement(View,{style:{display:"flex",flexDirection:"row",gap:10,fontSize:10}},o.createElement(View,{style:{width:"70%",textAlign:"right"}},o.createElement(e,null,"GST (18%): ")),o.createElement(View,{style:{width:"30%",textAlign:"right"}},o.createElement(e,null,r.gst))),o.createElement(View,{style:{width:"60%",height:1,backgroundColor:"#757575",marginVertical:5}}),o.createElement(View,{style:{display:"flex",flexDirection:"row",gap:10,fontSize:10,fontWeight:"bold"}},o.createElement(View,{style:{width:"70%",textAlign:"right"}},o.createElement(e,null,"Total: ")),o.createElement(View,{style:{width:"30%",textAlign:"right"}},o.createElement(e,null,r.totalAmount))))),r.prasads&&(r.prasads.morning.length>0||r.prasads.afternoon.length>0||r.prasads.evening.length>0)?o.createElement(View,{wrap:false,style:{display:"flex",flexDirection:"column",marginBottom:30}},o.createElement(View,{style:{backgroundColor:"#FF266F",padding:5}},o.createElement(e,{style:{fontSize:10,fontWeight:"bold",color:"white"}},"Prasadsam Details")),r.prasads.morning.length>0?o.createElement(View,{wrap:false,style:{display:"flex",flexDirection:"column",paddingHorizontal:10,paddingVertical:5,borderBottom:"1px solid #757575",borderRight:"1px solid #757575",borderLeft:"1px solid #757575"}},o.createElement(e,{style:{fontSize:9,fontWeight:"bold"}},"Morning:"),r.prasads.morning.map((i,l)=>o.createElement(e,{key:l,style:{fontSize:10}},l+1,". ",i.name," (",i.timings,")"))):null,r.prasads.afternoon.length>0?o.createElement(View,{wrap:false,style:{display:"flex",flexDirection:"column",paddingHorizontal:10,paddingVertical:5,borderBottom:"1px solid #757575",borderRight:"1px solid #757575",borderLeft:"1px solid #757575"}},o.createElement(e,{style:{fontSize:9,fontWeight:"bold"}},"Afternoon:"),r.prasads.afternoon.map((i,l)=>o.createElement(e,{key:l,style:{fontSize:10}},l+1,". ",i.name," (",i.timings,")"))):null,r.prasads.evening.length>0?o.createElement(View,{wrap:false,style:{display:"flex",flexDirection:"column",paddingHorizontal:10,paddingVertical:5,borderBottom:"1px solid #757575",borderRight:"1px solid #757575",borderLeft:"1px solid #757575"}},o.createElement(e,{style:{fontSize:9,fontWeight:"bold"}},"Evening:"),r.prasads.evening.map((i,l)=>o.createElement(e,{key:l,style:{fontSize:10}},l+1,". ",i.name," (",i.timings,")"))):null):null,r.instructions.length>0?o.createElement(View,{style:{display:"flex",flexDirection:"column",marginHorizontal:20,fontSize:8,border:"1px solid #757575"}},o.createElement(View,{style:{backgroundColor:"#FFA823",paddingHorizontal:10,paddingVertical:5}},o.createElement(e,null,"IMPORTANT INSTRUCTIONS:")),o.createElement(View,{style:{display:"flex",flexDirection:"column",gap:5,marginVertical:10,paddingHorizontal:10}},r.instructions.map((i,l)=>o.createElement(e,{key:l,style:{fontSize:8}},l+1,") ",i.instruction)))):null,o.createElement(View,{style:{display:"flex",flexDirection:"row",marginTop:20}},o.createElement(e,{style:{fontSize:8,fontWeight:"bold"}},"Terms and Conditions:"),o.createElement(e,{style:{fontSize:8,marginLeft:5}},"https://www.bookmypuja.app/terms-and-condition")))),Qe=uo;var xo=({startDate:r,endDate:i,templeName:l,data:t})=>o.createElement(Document,null,o.createElement(Page,{size:"A4",style:{padding:30,fontFamily:"Noto Sans"}},o.createElement(C,{startDate:r,endDate:i,reportName:"Prasad Delivery Postal Report",templeName:l}),t&&t.length>0?o.createElement(View,{style:{display:"flex",flexDirection:"row",marginTop:20,width:"100%",gap:20,flexWrap:"wrap"}},t.map(n=>{let u=n.qrContent,p=yo.toDataURL(u);return o.createElement(View,{wrap:false,key:n.id,style:{width:"46%",display:"flex",flexDirection:"column",border:"1px solid black",borderStyle:"dotted",borderWidth:1.5,padding:6}},o.createElement(View,{style:{flexGrow:1,display:"flex",flexDirection:"row",justifyContent:"space-between",gap:5}},o.createElement(View,null,o.createElement(e,{style:{fontSize:10,fontWeight:"bold"}},n.name),o.createElement(e,{style:{fontSize:10}},n.address),o.createElement(e,{style:{fontSize:10}},n.phone)),o.createElement(Image,{src:p,style:{width:50,height:50,minWidth:50}})),o.createElement(View,{style:{borderTop:"1px solid black",marginTop:5,paddingTop:3,borderStyle:"dotted"}}),o.createElement(e,{style:{fontSize:9,marginTop:3}},"Note: ",n.pujaDetails))})):o.createElement(e,{style:{fontSize:18,textAlign:"center",marginTop:100}},"No data available for the selected date range"))),Je=xo;var ho=({children:r})=>!r||typeof r!="string"?null:o.createElement(o.Fragment,null,o.createElement(View,{style:{display:"flex",flexDirection:"row",flexWrap:"wrap"}},r.split("").map((i,l)=>o.createElement(e,{key:l},i)))),M=ho;var To=({startDate:r,endDate:i,templeName:l,data:t})=>o.createElement(o.Fragment,null,o.createElement(Document,null,o.createElement(Page,{size:"A4",style:{padding:30,fontFamily:"Noto Sans"}},o.createElement(C,{startDate:r,endDate:i,reportName:"Payment Settlement Report",templeName:l}),t.length>0?o.createElement(View,{style:{display:"flex",flexDirection:"column",marginTop:20}},o.createElement(View,{style:{display:"flex",flexDirection:"row",border:"1px solid #000",fontSize:10,fontWeight:"semibold"}},o.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"10%"}},o.createElement(e,null,"Sr no")),o.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"15%"}},o.createElement(e,null,"Invoice No")),o.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"15%"}},o.createElement(e,null,"Amount")),o.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"20%"}},o.createElement(e,null,"Payment Date")),o.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"20%"}},o.createElement(e,null,"Settlement Date")),o.createElement(View,{style:{padding:6,borderRight:"none",width:"25%"}},o.createElement(e,null,"Bank UTR No"))),t.map((n,u)=>o.createElement(View,{style:{display:"flex",flexDirection:"row",border:"1px solid #000",borderTop:"none",fontSize:10}},o.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"10%"}},o.createElement(e,null,u+1)),o.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"15%"}},o.createElement(M,null,n.invoiceNo)),o.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"15%"}},o.createElement(M,null,n.amount)),o.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"20%"}},o.createElement(M,null,n.paymentDate)),o.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"20%"}},o.createElement(M,null,n.settlementDate)),o.createElement(View,{style:{padding:6,borderRight:"none",width:"25%"}},o.createElement(M,null,n.bankUtrNo))))):o.createElement(e,{style:{fontSize:18,textAlign:"center",marginTop:100}},"No data available for the selected date range")))),Ye=To;var Ao=({startDate:r,endDate:i,templeName:l,data:t})=>o.createElement(o.Fragment,null,o.createElement(Document,null,o.createElement(Page,{size:"A4",style:{padding:30,fontFamily:"Noto Sans"}},o.createElement(C,{startDate:r,endDate:i,reportName:"Invoice Level Breakup",templeName:l}),t.length>0?o.createElement(View,{style:{display:"flex",flexDirection:"column",marginTop:20}},o.createElement(View,{style:{display:"flex",flexDirection:"row",border:"1px solid #000",fontSize:8,fontWeight:"semibold"}},o.createElement(View,{style:{padding:3,borderRight:"1px solid #000",width:"4%"}},o.createElement(e,null,"Sr no")),o.createElement(View,{style:{padding:3,borderRight:"1px solid #000",width:"9%"}},o.createElement(e,null,"Invoice Number")),o.createElement(View,{style:{padding:3,borderRight:"1px solid #000",width:"9%"}},o.createElement(e,null,"Base Amount")),o.createElement(View,{style:{padding:3,borderRight:"1px solid #000",width:"9%"}},o.createElement(e,null,"Platform Fees")),o.createElement(View,{style:{padding:3,borderRight:"1px solid #000",width:"9%"}},o.createElement(e,null,"Platform Fees GST")),o.createElement(View,{style:{padding:3,borderRight:"1px solid #000",width:"9%"}},o.createElement(e,null,"Gateway Charges")),o.createElement(View,{style:{padding:3,borderRight:"1px solid #000",width:"9%"}},o.createElement(e,null,"Gateway GST")),o.createElement(View,{style:{padding:3,borderRight:"1px solid #000",width:"9%"}},o.createElement(e,null,"Payment Mode")),o.createElement(View,{style:{padding:3,borderRight:"1px solid #000",width:"9%"}},o.createElement(e,null,"Booking Date")),o.createElement(View,{style:{padding:3,borderRight:"1px solid #000",width:"9%"}},o.createElement(e,null,"Settlement Date")),o.createElement(View,{style:{padding:3,borderRight:"none",width:"12%"}},o.createElement(e,null,"UTR Number"))),t.map((n,u)=>o.createElement(View,{key:u,style:{display:"flex",flexDirection:"row",border:"1px solid #000",borderTop:"none",fontSize:8}},o.createElement(View,{style:{padding:3,borderRight:"1px solid #000",width:"4%"}},o.createElement(e,null,u+1)),o.createElement(View,{style:{padding:3,borderRight:"1px solid #000",width:"9%"}},o.createElement(M,null,n.invoiceNumber)),o.createElement(View,{style:{padding:3,borderRight:"1px solid #000",width:"9%"}},o.createElement(M,null,n.baseAmount)),o.createElement(View,{style:{padding:3,borderRight:"1px solid #000",width:"9%"}},o.createElement(M,null,n.platformFees)),o.createElement(View,{style:{padding:3,borderRight:"1px solid #000",width:"9%"}},o.createElement(M,null,n.platformFeesGST)),o.createElement(View,{style:{padding:3,borderRight:"1px solid #000",width:"9%"}},o.createElement(M,null,n.gatewayCharges)),o.createElement(View,{style:{padding:3,borderRight:"1px solid #000",width:"9%"}},o.createElement(M,null,n.gatewayChargesGST)),o.createElement(View,{style:{padding:3,borderRight:"1px solid #000",width:"9%"}},o.createElement(M,null,n.paymentMode)),o.createElement(View,{style:{padding:3,borderRight:"1px solid #000",width:"9%",fontSize:7}},o.createElement(M,null,n.bookingDate)),o.createElement(View,{style:{padding:3,borderRight:"1px solid #000",width:"9%",fontSize:7}},o.createElement(M,null,n.settlementDate)),o.createElement(View,{style:{padding:3,width:"12%"}},o.createElement(M,null,n.utrNumber))))):o.createElement(e,{style:{fontSize:18,textAlign:"center",marginTop:100}},"No data available for the selected date range")))),Ze=Ao;var Co=({startDate:r,endDate:i,templeName:l,data:t})=>o.createElement(o.Fragment,null,o.createElement(Document,null,o.createElement(Page,{size:"A4",style:{padding:30,fontFamily:"Noto Sans"}},o.createElement(C,{startDate:r,endDate:i,reportName:"Total Puja Count Report",templeName:l}),t.length>0?o.createElement(View,{style:{display:"flex",flexDirection:"column",marginTop:20}},o.createElement(View,{style:{display:"flex",flexDirection:"row",border:"1px solid #000",fontSize:10,fontWeight:"semibold"}},o.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"10%"}},o.createElement(e,null,"Sr no")),o.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"40%"}},o.createElement(e,null,"Puja Name")),o.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"15%"}},o.createElement(e,null,"Total Count")),o.createElement(View,{style:{padding:6,borderRight:"none",width:"35%"}},o.createElement(e,null,"Remarks"))),t.map((n,u)=>o.createElement(View,{style:{display:"flex",flexDirection:"row",border:"1px solid #000",borderTop:"none",fontSize:10}},o.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"10%"}},o.createElement(e,null,u+1)),o.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"40%"}},o.createElement(e,null,n.name)),o.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"15%"}},o.createElement(e,null,n.quantity)),o.createElement(View,{style:{padding:6,borderRight:"none",width:"35%"}})))):o.createElement(e,{style:{fontSize:18,textAlign:"center",marginTop:100}},"No data available for the selected date range")))),Xe=Co;var Io=({startDate:r,templeName:i,pujas:l,reportTiming:t})=>{return !l||l.length===0?o.createElement(Document,null,o.createElement(Page,{size:[110*2.83465,297*2.83465],style:{padding:12,fontFamily:"Noto Sans"}},o.createElement(e,{style:{fontSize:14,textAlign:"center",marginTop:50}},"No data available"))):o.createElement(Document,null,o.createElement(Page,{size:[110*2.83465,297*2.83465],style:{padding:12,fontFamily:"Noto Sans"}},o.createElement(View,{style:{marginBottom:15,paddingBottom:10,borderBottom:"2pt solid #000"}},o.createElement(e,{style:{fontSize:16,fontWeight:"bold",textAlign:"center",marginBottom:4}},i),o.createElement(e,{style:{fontSize:12,textAlign:"center"}},r.toLocaleDateString()),t&&o.createElement(e,{style:{fontSize:11,textAlign:"center",marginTop:2}},t.charAt(0).toUpperCase()+t.slice(1)," Report")),l.map((u,p)=>{let b=u.bookings.filter(m=>!m.is_early_reminder&&!m.requires_coupon);return b.length===0?null:o.createElement(View,{key:p,style:{marginBottom:20},wrap:false},o.createElement(View,{style:{backgroundColor:"#FFE082",padding:10,marginBottom:8}},o.createElement(e,{style:{fontSize:14,fontWeight:"bold",textAlign:"center"}},u.name),o.createElement(e,{style:{fontSize:11,textAlign:"center",marginTop:2}},b.length," booking",b.length>1?"s":"")),b.map((m,T)=>(o.createElement(View,{key:T,style:{border:"1pt solid #999",padding:10,marginBottom:6,backgroundColor:"#FFF"},wrap:false},o.createElement(View,{style:{marginBottom:6}},o.createElement(e,{style:{fontSize:11,color:"#666"}},m.invoiceNumber)),o.createElement(e,{style:{fontSize:14,fontWeight:"bold",marginBottom:6}},m.devoteeName),o.createElement(View,{style:{flexDirection:"row",justifyContent:"space-between"}},o.createElement(e,{style:{fontSize:12}},m.nakshatra),o.createElement(e,{style:{fontSize:12}},"Qty: ",m.quantity)),m.priestNote&&o.createElement(View,{style:{marginTop:6,paddingTop:6,borderTop:"0.5pt dashed #CCC"}},o.createElement(e,{style:{fontSize:11,color:"#666"}},m.priestNote))))))})))},tt=Io;var No=({startDate:r,templeName:i,data:l,reportTiming:t})=>{if(!l||l.length===0)return o.createElement(Document,null,o.createElement(Page,{size:[110*2.83465,297*2.83465],style:{padding:12,fontFamily:"Noto Sans"}},o.createElement(e,{style:{fontSize:14,textAlign:"center",marginTop:50}},"No data available")));let n=l.sort((u,p)=>u.invoiceNumber.localeCompare(p.invoiceNumber));return o.createElement(Document,null,o.createElement(Page,{size:[110*2.83465,297*2.83465],style:{padding:12,fontFamily:"Noto Sans"}},o.createElement(View,{style:{marginBottom:15,paddingBottom:10,borderBottom:"2pt solid #000"}},o.createElement(e,{style:{fontSize:16,fontWeight:"bold",textAlign:"center",marginBottom:4}},i),o.createElement(e,{style:{fontSize:12,textAlign:"center"}},r.toLocaleDateString()),t&&o.createElement(e,{style:{fontSize:11,textAlign:"center",marginTop:2}},t.charAt(0).toUpperCase()+t.slice(1)," Report")),o.createElement(View,{style:{backgroundColor:"#E3F2FD",padding:10,marginBottom:12}},o.createElement(e,{style:{fontSize:14,fontWeight:"bold",textAlign:"center"}},"Prasad Report"),o.createElement(e,{style:{fontSize:11,textAlign:"center",marginTop:2}},n.length," item",n.length>1?"s":"")),n.map((u,p)=>o.createElement(View,{key:p,style:{border:"1pt solid #999",padding:10,marginBottom:6,backgroundColor:"#FFF"},wrap:false},o.createElement(View,{style:{marginBottom:6}},o.createElement(e,{style:{fontSize:11,color:"#666"}},u.invoiceNumber)),o.createElement(e,{style:{fontSize:14,fontWeight:"bold",marginBottom:6}},u.devoteeName),o.createElement(View,{style:{flexDirection:"row",justifyContent:"space-between",alignItems:"center"}},o.createElement(View,{style:{flexDirection:"row",alignItems:"center"}},o.createElement(e,{style:{fontSize:12}},u.prasadName),o.createElement(e,{style:{fontSize:12}}," (qty: ",u.quantity,")")),o.createElement(e,{style:{fontSize:12,color:"#666"}},u.collectionMode))))))},rt=No;var Bo=({startDate:r,templeName:i,data:l})=>{let t=l.map(n=>{let u="";try{let p=JSON.parse(n.address);u=`${p.address}, ${p.locality}, ${p.state} - ${p.pincode}`;}catch{u=n.address;}return {...n,address:u}});return !t||t.length===0?o.createElement(Document,null,o.createElement(Page,{size:[110*2.83465,297*2.83465],style:{padding:12,fontFamily:"Noto Sans"}},o.createElement(e,{style:{fontSize:14,textAlign:"center",marginTop:50}},"No data available"))):o.createElement(Document,null,o.createElement(Page,{size:[110*2.83465,297*2.83465],style:{padding:12,fontFamily:"Noto Sans"}},o.createElement(View,{style:{marginBottom:15,paddingBottom:10,borderBottom:"2pt solid #000"}},o.createElement(e,{style:{fontSize:16,fontWeight:"bold",textAlign:"center",marginBottom:4}},i),o.createElement(e,{style:{fontSize:12,textAlign:"center"}},r.toLocaleDateString())),o.createElement(View,{style:{backgroundColor:"#E3F2FD",padding:10,marginBottom:12}},o.createElement(e,{style:{fontSize:14,fontWeight:"bold",textAlign:"center"}},"Prasad Delivery"),o.createElement(e,{style:{fontSize:11,textAlign:"center",marginTop:2}},t.length," delivery",t.length>1?" items":" item")),t.map((n,u)=>o.createElement(View,{key:u,style:{border:"1pt solid #999",padding:10,marginBottom:8,backgroundColor:"#FFF"},wrap:false},o.createElement(e,{style:{fontSize:14,fontWeight:"bold",marginBottom:6}},n.devoteeName),o.createElement(View,{style:{marginBottom:6}},o.createElement(e,{style:{fontSize:11}},n.address)),n.phoneNumber&&o.createElement(View,{style:{marginBottom:6}},o.createElement(e,{style:{fontSize:12}},"Ph: ",n.phoneNumber)),o.createElement(View,{style:{marginTop:6,paddingTop:6,borderTop:"0.5pt dashed #CCC"}},o.createElement(e,{style:{fontSize:11,color:"#666"}},"Note: ",n.note||n.pujaName))))))},lt=Bo;var zo=({startDate:r,templeName:i,pujaData:l,prasadData:t,deliveryData:n,reportTiming:u})=>{if(l.length===0&&t.length===0&&n.length===0)return o.createElement(Document,null,o.createElement(Page,{size:[110*2.83465,297*2.83465],style:{padding:12,fontFamily:"Noto Sans"}},o.createElement(e,{style:{fontSize:14,textAlign:"center",marginTop:50}},"No data available")));let b=t.sort((m,T)=>m.invoiceNumber.localeCompare(T.invoiceNumber));return o.createElement(Document,null,l.length>0&&o.createElement(Page,{size:[110*2.83465,297*2.83465],style:{padding:12,fontFamily:"Noto Sans"}},o.createElement(View,{style:{marginBottom:15,paddingBottom:10,borderBottom:"2pt solid #000"}},o.createElement(e,{style:{fontSize:16,fontWeight:"bold",textAlign:"center",marginBottom:4}},i),o.createElement(e,{style:{fontSize:12,textAlign:"center"}},r.toLocaleDateString()),u&&o.createElement(e,{style:{fontSize:11,textAlign:"center",marginTop:2}},u.charAt(0).toUpperCase()+u.slice(1)," Report")),o.createElement(View,{style:{backgroundColor:"#E3F2FD",padding:10,marginBottom:12}},o.createElement(e,{style:{fontSize:14,fontWeight:"bold",textAlign:"center"}},"Puja List")),l.map((m,T)=>{let a=m.bookings.filter(x=>!x.is_early_reminder&&!x.requires_coupon);return a.length===0?null:o.createElement(View,{key:T,style:{marginBottom:20},wrap:false},o.createElement(View,{style:{backgroundColor:"#FFE082",padding:10,marginBottom:8}},o.createElement(e,{style:{fontSize:14,fontWeight:"bold",textAlign:"center"}},m.name),o.createElement(e,{style:{fontSize:11,textAlign:"center",marginTop:2}},a.length," booking",a.length>1?"s":"")),a.map((x,D)=>(o.createElement(View,{key:D,style:{border:"1pt solid #999",padding:10,marginBottom:6,backgroundColor:"#FFF"},wrap:false},o.createElement(View,{style:{marginBottom:6}},o.createElement(e,{style:{fontSize:11,color:"#666"}},x.invoiceNumber)),o.createElement(e,{style:{fontSize:14,fontWeight:"bold",marginBottom:6}},x.devoteeName),o.createElement(View,{style:{flexDirection:"row",justifyContent:"space-between"}},o.createElement(e,{style:{fontSize:12}},x.nakshatra),o.createElement(e,{style:{fontSize:12}},"Qty: ",x.quantity)),x.priestNote&&o.createElement(View,{style:{marginTop:6,paddingTop:6,borderTop:"0.5pt dashed #CCC"}},o.createElement(e,{style:{fontSize:11,color:"#666"}},x.priestNote))))))})),t.length>0&&o.createElement(Page,{size:[110*2.83465,297*2.83465],style:{padding:12,fontFamily:"Noto Sans"}},o.createElement(View,{style:{marginBottom:15,paddingBottom:10,borderBottom:"2pt solid #000"}},o.createElement(e,{style:{fontSize:16,fontWeight:"bold",textAlign:"center",marginBottom:4}},i),o.createElement(e,{style:{fontSize:12,textAlign:"center"}},r.toLocaleDateString()),u&&o.createElement(e,{style:{fontSize:11,textAlign:"center",marginTop:2}},u.charAt(0).toUpperCase()+u.slice(1)," Report")),o.createElement(View,{style:{backgroundColor:"#E3F2FD",padding:10,marginBottom:12}},o.createElement(e,{style:{fontSize:14,fontWeight:"bold",textAlign:"center"}},"Prasad Report"),o.createElement(e,{style:{fontSize:11,textAlign:"center",marginTop:2}},b.length," item",b.length>1?"s":"")),b.map((m,T)=>o.createElement(View,{key:T,style:{border:"1pt solid #999",padding:10,marginBottom:6,backgroundColor:"#FFF"},wrap:false},o.createElement(View,{style:{marginBottom:6}},o.createElement(e,{style:{fontSize:11,color:"#666"}},m.invoiceNumber)),o.createElement(e,{style:{fontSize:14,fontWeight:"bold",marginBottom:6}},m.devoteeName),o.createElement(View,{style:{flexDirection:"row",justifyContent:"space-between",alignItems:"center"}},o.createElement(View,{style:{flexDirection:"row",alignItems:"center"}},o.createElement(e,{style:{fontSize:12}},m.prasadName),o.createElement(e,{style:{fontSize:12}}," (qty: ",m.quantity,")")),o.createElement(e,{style:{fontSize:12,color:"#666"}},m.collectionMode))))),n.length>0&&o.createElement(Page,{size:[110*2.83465,297*2.83465],style:{padding:12,fontFamily:"Noto Sans"}},o.createElement(View,{style:{marginBottom:15,paddingBottom:10,borderBottom:"2pt solid #000"}},o.createElement(e,{style:{fontSize:16,fontWeight:"bold",textAlign:"center",marginBottom:4}},i),o.createElement(e,{style:{fontSize:12,textAlign:"center"}},r.toLocaleDateString())),o.createElement(View,{style:{backgroundColor:"#E3F2FD",padding:10,marginBottom:12}},o.createElement(e,{style:{fontSize:14,fontWeight:"bold",textAlign:"center"}},"Postal Delivery"),o.createElement(e,{style:{fontSize:11,textAlign:"center",marginTop:2}},n.length," delivery",n.length>1?" items":" item")),n.map((m,T)=>o.createElement(View,{key:T,style:{border:"1pt solid #999",padding:10,marginBottom:8,backgroundColor:"#FFF"},wrap:false},o.createElement(e,{style:{fontSize:14,fontWeight:"bold",marginBottom:6}},m.name),o.createElement(View,{style:{marginBottom:6}},o.createElement(e,{style:{fontSize:11}},m.address)),m.phone&&o.createElement(View,{style:{marginBottom:6}},o.createElement(e,{style:{fontSize:12}},"Ph: ",m.phone)),o.createElement(View,{style:{marginTop:6,paddingTop:6,borderTop:"0.5pt dashed #CCC"}},o.createElement(e,{style:{fontSize:11,color:"#666"}},"Note: ",m.pujaDetails))))))},dt=zo;var co=({startDate:r,templeName:i,data:l})=>!l||l.length===0?o.createElement(Document,null,o.createElement(Page,{size:[110*2.83465,297*2.83465],style:{padding:12,fontFamily:"Noto Sans"}},o.createElement(e,{style:{fontSize:14,textAlign:"center",marginTop:50}},"No data available"))):o.createElement(Document,null,o.createElement(Page,{size:[110*2.83465,297*2.83465],style:{padding:12,fontFamily:"Noto Sans"}},o.createElement(View,{style:{marginBottom:15,paddingBottom:10,borderBottom:"2pt solid #000"}},o.createElement(e,{style:{fontSize:16,fontWeight:"bold",textAlign:"center",marginBottom:4}},i),o.createElement(e,{style:{fontSize:12,textAlign:"center"}},r.toLocaleDateString())),o.createElement(View,{style:{backgroundColor:"#E3F2FD",padding:10,marginBottom:12}},o.createElement(e,{style:{fontSize:14,fontWeight:"bold",textAlign:"center"}},"Postal Labels"),o.createElement(e,{style:{fontSize:11,textAlign:"center",marginTop:2}},l.length," label",l.length>1?"s":"")),l.map(t=>o.createElement(View,{key:t.id,style:{border:"1pt dashed #000",padding:8,marginBottom:10,backgroundColor:"#FFF"},wrap:false},o.createElement(e,{style:{fontSize:13,fontWeight:"bold",marginBottom:5}},t.name),o.createElement(View,{style:{marginBottom:5}},o.createElement(e,{style:{fontSize:11}},t.address)),o.createElement(e,{style:{fontSize:11,marginBottom:5}},t.phone),o.createElement(View,{style:{borderTop:"0.5pt dashed #CCC",marginTop:5,marginBottom:5}}),o.createElement(e,{style:{fontSize:10,color:"#666"}},"Note: ",t.pujaDetails))))),mt=co;var yt={kitchen:{A4:je},transaction:{A4:We},"prasad-delivery":{A4:Le,"110mm":lt},prasad:{A4:_e,"110mm":rt},"puja-detailed":{A4:qe,"110mm":tt},"puja-summary":{A4:Me},"combined-report":{A4:He,"110mm":dt},"multi-temple-payment":{A4:Ge},"settlements-report":{A4:Ke},invoice:{A4:Qe},"postal-report":{A4:Je,"110mm":mt},"payment-settlement-report":{A4:Ye},"invoice-breakup":{A4:Ze},"puja-count":{A4:Xe}},xt=class{constructor(i,l){Se(this,"option");Se(this,"size");this.option=i,this.size=l,[{family:"Noto Sans SC",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-serif-sc@latest/chinese-simplified-400-normal.ttf"},{family:"Noto Sans Arabic",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans-arabic@latest/arabic-400-normal.ttf"},{family:"Noto Sans Devanagari",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans-devanagari@latest/devanagari-400-normal.ttf"},{family:"Noto Sans Kannada",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans-kannada@latest/kannada-400-normal.ttf"},{family:"Noto Sans Tamil",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans-tamil@latest/tamil-400-normal.ttf"},{family:"Noto Sans Gurmukhi",src:"https://cdn.jsdelivr.net/fontsource/fonts/anek-gurmukhi@latest/gurmukhi-400-normal.ttf"},{family:"Noto Sans Lao",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans-lao@latest/lao-400-normal.ttf"},{family:"Noto Sans Thai",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans-thai@latest/thai-400-normal.ttf"},{family:"Noto Sans Kr",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans-kr@latest/korean-400-normal.ttf"},{family:"Noto Sans Bengali",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans-bengali@latest/bengali-400-normal.ttf"},{family:"Noto Sans Cyrillic",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans-kr@latest/cyrillic-400-normal.ttf"},{family:"Noto Sans JP",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans-jp@latest/japanese-400-normal.ttf"},{family:"Noto Sans Greek",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans@latest/greek-400-normal.ttf"},{family:"Noto Sans Latin",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans@latest/latin-400-normal.ttf"},{family:"Noto Sans Myanmar",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans-myanmar@latest/myanmar-400-normal.ttf"},{family:"Noto Sans Ethiopic",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans-ethiopic@latest/ethiopic-400-normal.ttf"},{family:"Noto Sans Khmer",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans-khmer@latest/khmer-400-normal.ttf"},{family:"Noto Sans Armenian",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans-armenian@latest/armenian-400-normal.ttf"},{family:"Noto Sans Hebrew",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans-hebrew@latest/hebrew-400-normal.ttf"},{family:"Noto Sans Georgian",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans-georgian@latest/georgian-400-normal.ttf"},{family:"Noto Sans Canadian Aboriginal",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans-canadian-aboriginal@latest/canadian-aboriginal-400-normal.ttf"},{family:"Noto Sans Sinhala",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans-sinhala@latest/sinhala-400-normal.ttf"},{family:"Noto Sans Ol Chiki",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans-ol-chiki@latest/ol-chiki-400-normal.ttf"},{family:"Noto Sans Tibetan",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-serif-tibetan@latest/tibetan-400-normal.ttf"},{family:"Noto Sans Tifinagh",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans-tifinagh@latest/tifinagh-400-normal.ttf"},{family:"Noto Sans Yi",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans-yi@latest/yi-400-normal.ttf"},{family:"Noto Sans Syriac",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans-syriac@latest/syriac-400-normal.ttf"},{family:"Noto Sans Thaana",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans-thaana@latest/thaana-400-normal.ttf"},{family:"Noto Sans Vai",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans-vai@latest/vai-400-normal.ttf"},{family:"Noto Sans Cherokee",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans-cherokee@latest/cherokee-400-normal.ttf"},{family:"Noto Sans Tai Tham",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans-tai-tham@latest/tai-tham-400-normal.ttf"},{family:"Noto Sans Tai Viet",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans-tai-viet@latest/tai-viet-400-normal.ttf"},{family:"Noto Sans Javanese",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans-javanese@latest/javanese-400-normal.ttf"},{family:"Noto Sans Gujarati",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans-gujarati@latest/gujarati-400-normal.ttf"},{family:"Noto Sans Malayalam",src:"https://res.cloudinary.com/dpaigt2bx/raw/upload/v1748450359/Manjari-Regular_nrgfti.ttf"},{family:"Noto Sans Telugu",src:"https://cdn.jsdelivr.net/fontsource/fonts/noto-sans-telugu@latest/telugu-400-normal.ttf"}].forEach(({family:n,src:u})=>Font.register({family:n,src:u})),Font.register({family:"Noto Sans",fontWeight:"normal",src:Ve}),Font.register({family:"Noto Sans",fontWeight:"bold",src:Pe}),Font.register({family:"Noto Sans",fontWeight:"semibold",src:Ce});}async print(i){let t=yt[this.option][this.size],n=o.createElement(t,{...i}),u=pdf(n).toBlob();return u.then(p=>{var b=URL.createObjectURL(p);if(window!=null){let m=window.open(b,"_blank");setTimeout(()=>{m?.print();},1e3);}}),u}async getBlob(i){let t=yt[this.option][this.size],n=o.createElement(t,{...i});return pdf(n).toBlob()}};
|
|
2
|
+
export{Vt as A4Print,zt as T2Inch,xt as reportPrinter};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bookmypuja-tech/bmp-pdf",
|
|
3
3
|
"description": "PDF Report Generation for Temple360 and T-360 by BookMyPuja",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -12,21 +12,31 @@
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"sideEffects": false,
|
|
15
|
-
"files": [
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
16
18
|
"repository": {
|
|
17
19
|
"url": "https://github.com/BookMyPuja-app/bmp-pdf"
|
|
18
20
|
},
|
|
19
21
|
"scripts": {
|
|
20
22
|
"build": "NODE_ENV=production tsup"
|
|
21
23
|
},
|
|
22
|
-
"keywords": [
|
|
24
|
+
"keywords": [
|
|
25
|
+
"pdf",
|
|
26
|
+
"report",
|
|
27
|
+
"generation",
|
|
28
|
+
"temple360",
|
|
29
|
+
"bookmypuja"
|
|
30
|
+
],
|
|
23
31
|
"license": "ISC",
|
|
24
32
|
"dependencies": {
|
|
25
|
-
"react": ">=
|
|
26
|
-
"
|
|
33
|
+
"@react-pdf/renderer": ">=4",
|
|
34
|
+
"qrcode": "^1.5.4",
|
|
35
|
+
"react": ">=18"
|
|
27
36
|
},
|
|
28
37
|
"devDependencies": {
|
|
38
|
+
"@types/qrcode": "^1.5.5",
|
|
29
39
|
"tsup": "^8.5.0",
|
|
30
40
|
"typescript": "^5.9.2"
|
|
31
41
|
}
|
|
32
|
-
}
|
|
42
|
+
}
|