@bookmypuja-tech/bmp-pdf 0.4.9 → 0.4.11
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 +1 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
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';import io from'qrcode';var wt=Object.defineProperty;var bt=(r,i,l)=>i in r?wt(r,i,{enumerable:true,configurable:true,writable:true,value:l}):r[i]=l;var Se=(r,i,l)=>bt(r,typeof i!="symbol"?i+"":i,l);var J=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",De="https://res.cloudinary.com/dpaigt2bx/raw/upload/v1742817493/fonts/ntbri6mclms8cfx3dk2e.ttf",he="https://res.cloudinary.com/dpaigt2bx/raw/upload/v1742817493/fonts/ojiymraiiuw7juzkmmu8.ttf",Ve="https://res.cloudinary.com/dpaigt2bx/raw/upload/v1743420993/NotoSans-Regular_pmvebt.ttf",Ce="https://res.cloudinary.com/dpaigt2bx/raw/upload/v1743431605/NotoSans-Bold_kagtvd.ttf",Pe="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",Be="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:De});Font.register({family:"Roboto",fontWeight:"bold",src:he});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"}}),Vt=({data:r,dates:i})=>{let l=J(i[0])===J(i[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:ie}),t.createElement(Text,{style:{fontSize:13,marginBottom:2}},"Puja List"),t.createElement(Text,{style:{fontSize:10,marginBottom:10}},"Date",":"," ",l?J(i[0]):`${J(i[0])} - ${J(i[1])}`),t.createElement(View,{style:{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"space-between",gap:8}},r?r.map((o,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"}},o.participantName),t.createElement(Text,{style:{fontSize:10,fontWeight:"bold"}},"-"),t.createElement(Text,{style:{fontSize:10,fontWeight:"bold"}},o.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"}},o.pujaName)),l?null:t.createElement(View,{style:{display:"flex",flexDirection:"row",alignContent:"flex-end"}},t.createElement(Text,null,"Date: "),t.createElement(Text,{style:{fontWeight:"bold"}},J(o.date)))),t.createElement(View,{style:{display:"flex",flexDirection:"row",alignContent:"flex-end",gap:10}}),o.priestNote!==""&&o.priestNote!==null&&o.priestNote!==void 0?t.createElement(View,{style:{display:"flex",flexDirection:"row",justifyContent:"space-between",marginTop:3}},t.createElement(Text,null,"Priest Note: ",o.priestNote)):null),t.createElement(View,{style:{display:"flex",flexDirection:"column",alignItems:"flex-end"}},t.createElement(Text,{style:{fontWeight:"bold",fontSize:10}},"Rs ",o.amount),o.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)))},Ct=Vt;Font.register({family:"Roboto",fontWeight:"normal",src:De});Font.register({family:"Roboto",fontWeight:"bold",src:he});var B=1,le=25*B,ke=StyleSheet.create({page:{padding:10*B,fontFamily:"Roboto"},pujaTile:{paddingVertical:10*B,paddingHorizontal:10*B,fontSize:le,border:`${5*B}px solid black`,borderRadius:5*B,width:"100%",display:"flex",flexDirection:"column"}}),zt=({data:r,dates:i})=>{let l=J(i[0])===J(i[1]);return t.createElement(Document,null,t.createElement(Page,{dpi:200,size:[457*B],style:ke.page},t.createElement(Image,{fixed:true,style:{height:55*B,width:274*B,marginBottom:10*B,marginHorizontal:"auto"},src:ie}),t.createElement(Text,{style:{fontSize:25*B,marginBottom:5*B,marginHorizontal:"auto"}},"Puja List"),t.createElement(Text,{style:{fontSize:20*B,marginBottom:5*B,marginHorizontal:"auto",fontWeight:"bold"}},"Date",":"," ",l?J(i[0]):`${J(i[0])} - ${J(i[1])}`),t.createElement(Text,{style:{fontSize:17*B,marginBottom:20*B,marginHorizontal:"auto"}},"Printed at : ",new Date().toLocaleString()),t.createElement(View,{style:{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"space-between",gap:15*B}},r?r.map((o,n)=>t.createElement(View,{wrap:false,key:n,style:ke.pujaTile},t.createElement(View,{style:{display:"flex",flexDirection:"row",justifyContent:"space-between",marginBottom:5*B}},t.createElement(Text,{style:{opacity:.6,marginRight:10*B}},"#",(n+1).toString().padStart(2,"0")),t.createElement(View,{style:{display:"flex",flexDirection:"row",alignItems:"flex-end",gap:10*B}},o.paymentStatus=="pending"?t.createElement(View,{style:{backgroundColor:"#000000",paddingVertical:3*B,paddingHorizontal:5*B,borderRadius:5*B,marginTop:3*B}},t.createElement(Text,{style:{color:"#ffffff",fontSize:le}},"Pending")):null,t.createElement(Text,{style:{fontWeight:"bold",fontSize:le}},"Rs ",o.amount))),t.createElement(View,{style:{flexGrow:1}},t.createElement(View,{style:{display:"flex",flexDirection:"row",flexWrap:"wrap",marginBottom:3*B,gap:3*B}},t.createElement(Text,{style:{fontSize:le,fontWeight:"bold"}},o.participantName),t.createElement(Text,{style:{fontSize:le,fontWeight:"bold"}},"-"),t.createElement(Text,{style:{fontSize:le,fontWeight:"bold"}},o.participantNakshatra)),t.createElement(View,{style:{display:"flex",flexDirection:"column",alignContent:"flex-end",gap:10*B}},t.createElement(View,{style:{display:"flex",flexDirection:"row",flexWrap:"wrap",alignContent:"flex-end"}},t.createElement(Text,null,"Puja name : "),t.createElement(Text,{style:{fontSize:le,fontWeight:"bold"}},o.pujaName)),l?null:t.createElement(View,{style:{display:"flex",flexDirection:"row",alignContent:"flex-end"}},t.createElement(Text,null,"Date: "),t.createElement(Text,{style:{fontWeight:"bold"}},J(o.date)))),t.createElement(View,{style:{display:"flex",flexDirection:"row",alignContent:"flex-end",gap:10*B}}),o.priestNote!==""&&o.priestNote!==null&&o.priestNote!==void 0?t.createElement(View,{style:{display:"flex",flexDirection:"row",justifyContent:"space-between",marginTop:3*B}},t.createElement(Text,null,"Priest Note: ",o.priestNote)):null))):null)))},kt=zt;var vt={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},Et=({style:r={},children:i})=>{let l=T=>{let a=maxBy(Object.entries(vt),([y,D])=>{let _=T.match(D);return _?_.length:0});return a?a[0]:"Latin"},o=T=>[/\b\d{2}\/\d{2}\/\d{4}\b/,/\b\d{2}\s\w{3}\s\d{4}\b/].some(y=>y.test(T));function n(T){return T.replace(/[\uFF01-\uFF5E]/g,a=>`${String.fromCharCode(a.charCodeAt(0)-65248)} `)}let u=T=>{let a=[],y=null,D="";for(let _ of T){_=n(_);let se=l(_);se!==y?(D&&a.push({text:D,script:y}),y=se,D=_):D+=_;}return D&&a.push({text:D,script:y}),a},p=[];i&&typeof i=="string"&&!Array.isArray(i)&&!o(i)&&u(i).forEach((a,y)=>{let D=a.script==="Latin"||!a.script?"Noto Sans":`Noto Sans ${a.script}`;p.push(t.createElement(Text,{key:y,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],t.createElement(Text,{style:b},p?.length?p:i)},e=Et;var Wt=({startDate:r,endDate:i,reportTiming:l,templeName:o,reportName:n})=>t.createElement(t.Fragment,null,t.createElement(Image,{fixed:true,style:{height:15,width:75,marginBottom:10},src:ie}),i?t.createElement(e,{style:{fontSize:11,marginTop:5,textAlign:"right"}},"Dates: ",r.toDateString()," - ",i.toDateString()):t.createElement(e,{style:{fontSize:11,marginTop:5,textAlign:"right"}},"Date: ",r.toDateString()),l&&Object.keys(Fe).includes(l)?t.createElement(e,{style:{fontSize:11,marginTop:5,textAlign:"right"}},Fe[l]," Report"):null,t.createElement(e,{style:{fontSize:14,fontWeight:"bold"}},n),t.createElement(e,{style:{fontSize:12}},`${o}`)),P=Wt;var $t=({startDate:r,endDate:i,templeName:l,data:o,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:i,templeName:l,reportTiming:n,reportName:"Temple Prasad (Kitchen) Report"}),o.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"))),o.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")))),je=$t;var Ot=({startDate:r,endDate:i,templeName:l,data:o})=>{let n=o.reduce((p,b)=>b.status==="cancelled"?p:p+b.bookingAmount,0),u=o.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:i,reportName:"Transactions Report",templeName:l}),o.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"))),o.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"))))},We=Ot;var Kt=({startDate:r,endDate:i,templeName:l,data:o})=>(o=o.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:i,reportName:"Prasad Delivery Address",templeName:l}),o.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"))),o.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")))),Le=Kt;var Jt=({startDate:r,endDate:i,templeName:l,data:o,reportTiming:n})=>{o.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:i,reportName:"Prasad Report",templeName:l,reportTiming:n}),o.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"))),o.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")))},_e=Jt;var Zt=({startDate:r,endDate:i,templeName:l,pujas:o,reportTiming:n})=>{let u=0,p=0,b=o.some(m=>m.bookings.some(T=>T.requires_coupon));return !o||o.length===0?t.createElement(Document,null,t.createElement(Page,{size:"A4",style:{padding:30,fontFamily:"Noto Sans"}},t.createElement(P,{startDate:r,endDate:i,reportName:"Puja List",templeName:l,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:i,reportTiming:n,reportName:"",templeName:""}),o.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"))))),o.some(m=>m.bookings.some(T=>T.is_early_reminder&&!T.requires_coupon))?o.flatMap((m,T)=>m.bookings.filter(a=>a.is_early_reminder&&!a.requires_coupon).map((a,y)=>(p++,t.createElement(View,{key:`${T}-${y}`,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,a.quantity)),t.createElement(View,{style:{padding:6,fontSize:10,borderRight:"none",width:"20%"}},t.createElement(e,null,a.date?new Date(a.date).toDateString():"")))))):null,t.createElement(e,{style:{fontSize:14,fontWeight:"bold",marginTop:20}},"Puja List"),t.createElement(e,{style:{fontSize:12}},`${l}`),t.createElement(View,{style:{display:"flex",flexDirection:"column",marginTop:10}},o.map((m,T)=>m.bookings.every(a=>a.is_early_reminder||a.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((a,y)=>a.is_early_reminder||a.requires_coupon?null:(u++,t.createElement(View,{key:y,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,a.invoiceNumber)),t.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",width:`${35*1.11111}%`}},t.createElement(e,null,a.devoteeName)),t.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",width:`${25*1.11111}%`}},t.createElement(e,null,a.nakshatra)),t.createElement(View,{style:{padding:6,fontSize:10,borderRight:"none",width:`${10*1.11111}%`}},t.createElement(e,null,a.quantity))),a.priestNote&&t.createElement(View,{style:{padding:6,fontSize:10,borderTop:"1px solid black",width:"100%"}},t.createElement(e,null,a.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:ie}),t.createElement(View,{style:{display:"flex",flexDirection:"column",marginTop:10,gap:15}},(()=>{let m=o.flatMap(a=>a.bookings.filter(y=>y.requires_coupon).map(y=>({...y,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,y],D)=>{let _=y,se=_[0];return t.createElement(View,{key:a,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"}},a),t.createElement(e,null,se.date?new Date(se.date).toDateString():r.toDateString())),t.createElement(e,null,se.phone_number)),t.createElement(View,{style:{height:15,width:"100%"}}),_.map((pe,fe)=>t.createElement(View,{key:fe,style:{display:"flex",flexDirection:"row",marginTop:25}},t.createElement(e,null,`${pe.devoteeName} ----- ${pe.nakshatra} ----- ${pe.pujaName}`))),t.createElement(View,null,t.createElement(e,{style:{textAlign:"center",marginTop:10,fontSize:10,opacity:.5}},"~~~ bookmypuja.app - Your Puja, Our Commitment ~~~")))})})())):null))},qe=Zt;var eo=({templeName:r,startDate:i,endDate:l,pujas:o,reportTiming:n})=>{let u=o.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:i,endDate:l,reportTiming:n,reportName:"Puja Summary",templeName:r}),o.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")))},Me=eo;var oo=({children:r,splitat:i})=>{if(!r||typeof r!="string")return null;let l="";return i=="words"&&(l=" "),t.createElement(t.Fragment,null,t.createElement(View,{style:{display:"flex",flexDirection:"row",flexWrap:"wrap"}},r.split(l).map((o,n)=>t.createElement(t.Fragment,null,t.createElement(e,{key:n},o,i=="words"?" ":"")))))},W=oo;var ro=({startDate:r,endDate:i,templeName:l,pujaData:o,prasadData:n,deliveryData:u,reportTiming:p})=>{u=u.map(a=>{let y="";try{let D=JSON.parse(a.address);y=`${D.address}, ${D.locality}, ${D.state} - ${D.pincode}`;}catch(D){console.error("Error parsing address:",D),y=a.address;}return {...a,address:y}});let b=0,m=0,T=o.some(a=>a.bookings.some(y=>y.requires_coupon));return o.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:i,reportTiming:p,reportName:"Combined Report",templeName:l}),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,o.length>0&&t.createElement(Page,{size:"A4",style:{padding:30,fontFamily:"Noto Sans"}},t.createElement(P,{startDate:r,endDate:i,reportTiming:p,reportName:"",templeName:""}),o.some(a=>a.bookings.some(y=>y.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"))))),o.some(a=>a.bookings.some(y=>y.is_early_reminder&&!y.requires_coupon))?o.flatMap((a,y)=>a.bookings.filter(D=>D.is_early_reminder&&!D.requires_coupon).map((D,_)=>(m++,t.createElement(View,{wrap:false,key:`${y}-${_}`,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,a.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}},`${l}`),t.createElement(View,{style:{display:"flex",flexDirection:"column",marginTop:10}},o.map((a,y)=>a.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"}},`${a.name} - ${a.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"))),a.bookings.map((D,_)=>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))))))))))))),o.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:ie}),t.createElement(View,{style:{display:"flex",flexDirection:"column",marginTop:10,gap:15}},(()=>{let a=o.flatMap(D=>D.bookings.filter(_=>_.requires_coupon).map(_=>({..._,pujaName:D.name}))),y={};for(let D of a)y[D.invoiceNumber]||(y[D.invoiceNumber]=[]),y[D.invoiceNumber].push(D);return Object.entries(y).map(([D,_],se)=>{let pe=_,fe=pe[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,fe.date?new Date(fe.date).toDateString():r.toDateString())),t.createElement(e,null,fe.phone_number)),t.createElement(View,{style:{height:15,width:"100%"}}),pe.map((Te,ht)=>t.createElement(View,{key:ht,style:{display:"flex",flexDirection:"row",marginTop:25}},t.createElement(e,null,`${Te.devoteeName} ----- ${Te.nakshatra} ----- ${Te.pujaName}`))))})})())),n.length>0&&t.createElement(Page,{size:"A4",style:{padding:30,fontFamily:"Noto Sans"}},t.createElement(P,{startDate:r,endDate:i,reportTiming:p,reportName:"Prasad Report",templeName:l}),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((a,y)=>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,y+1)),t.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"20%"}},t.createElement(e,null,a.invoiceNumber)),t.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"30%"}},t.createElement(e,null,a.devoteeName)),t.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"30%"}},t.createElement(e,null,a.prasadName)),t.createElement(View,{style:{padding:6,width:"10%"}},t.createElement(e,null,a.quantity)))))),u.length>0&&t.createElement(Page,{size:"A4",style:{padding:30,fontFamily:"Noto Sans"}},t.createElement(P,{startDate:r,endDate:i,reportTiming:p,reportName:"Prasad Delivery Postal Report",templeName:l}),t.createElement(View,{style:{display:"flex",flexDirection:"row",marginTop:20,width:"100%",gap:20,flexWrap:"wrap"}},u&&u.map(a=>{let y=io.toDataURL(a.qrContent);return t.createElement(View,{wrap:false,key:a.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,display:"flex",flexDirection:"row",justifyContent:"space-between",gap:5}},t.createElement(View,null,t.createElement(e,{style:{fontSize:10,fontWeight:"bold"}},a.name),t.createElement(View,{style:{fontSize:10}},t.createElement(W,{splitat:"words"},a.address)),t.createElement(e,{style:{fontSize:10}},a.phone)),a.qrContent&&y?t.createElement(View,{style:{flexShrink:0,width:60,maxWidth:60,display:"flex",flexDirection:"column",alignItems:"center"}},t.createElement(Image,{src:y,style:{width:50,height:50,minWidth:50,maxWidth:50}}),t.createElement(e,{style:{fontSize:7}},"BookMyPuja")):null),t.createElement(View,{style:{borderTop:"1px solid black",marginTop:5,paddingTop:3,borderStyle:"dotted"}}),t.createElement(e,{style:{fontSize:9,marginTop:3}},"Note: ",a.pujaDetails))})))))},Ge=ro;var lo=({startDate:r,endDate:i,data:l})=>t.createElement(Document,null,t.createElement(Page,{size:"A4",style:{padding:30,fontFamily:"Noto Sans"}},t.createElement(P,{startDate:r,endDate:i,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"))),l?.map((o,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,o.name)),t.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"15%"}},t.createElement(e,null,o.bookings)),t.createElement(View,{style:{padding:6,width:"20%"}},t.createElement(e,null,"\u20B9",o.revenue))))))),Ke=lo;var uo=({startDate:r,endDate:i,templeName:l,data:o})=>t.createElement(Document,null,t.createElement(Page,{size:"A4",style:{padding:30,fontFamily:"Noto Sans"}},t.createElement(P,{startDate:r,endDate:i,reportName:"Settlements Report",templeName:l}),t.createElement(e,{style:{fontSize:10,marginTop:10}},"Total Credited Amount: ",o.totalCreditedAmount),o.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"))),o.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"))),Ue=uo;var fo=({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:Ie})))),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:Be}):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((i,l)=>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%"}},i.pujaName?t.createElement(e,{style:{fontSize:11}},i.pujaName):null,i.devoteesName?t.createElement(e,{style:{fontSize:9,color:"#333333"}},i.devoteesName):null,i.pujaDate?t.createElement(e,{style:{fontSize:9,color:"#333333"}},i.pujaDate," ",i.timing?`- ${i.timing}`:null):null,i.repeatEndDate&&i.repeatStartDate?t.createElement(e,{style:{fontSize:9,color:"#333333"}},i.repeatStartDate," to ",i.repeatEndDate," ",i.timing?`- ${i.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:{}},i.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:{}},`${i.quantity?i.quantity:""}${i.repeatCount?` x ${i.repeatCount}`:""}`)),t.createElement(View,{style:{padding:6,width:"20%",textAlign:"center",display:"flex",alignItems:"center",justifyContent:"center"}},t.createElement(e,{style:{}},i.totalPrice))))),t.createElement(View,{style:{display:"flex",flexDirection:"row",marginVertical:20,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.prasadCollectionMode?t.createElement(View,{style:{marginBottom:5}},t.createElement(e,{style:{fontSize:11,marginTop:5}},"Prasad Collection Mode: ",r.prasadCollectionMode)):null,r.devoteeDetails.address?t.createElement(t.Fragment,null,t.createElement(e,{style:{fontSize:11,maxWidth:400,marginBottom:20}},"Address: ",r.devoteeDetails.address)):null,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((i,l)=>t.createElement(e,{key:l,style:{fontSize:10}},l+1,". ",i.name," (",i.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((i,l)=>t.createElement(e,{key:l,style:{fontSize:10}},l+1,". ",i.name," (",i.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((i,l)=>t.createElement(e,{key:l,style:{fontSize:10}},l+1,". ",i.name," (",i.timings,")"))):null):null,r.instructions.length>0?t.createElement(View,{wrap:false,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((i,l)=>t.createElement(e,{key:l,style:{fontSize:8}},l+1,") ",i.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")))),Je=fo;var wo=({startDate:r,endDate:i,templeName:l,data:o})=>t.createElement(Document,null,t.createElement(Page,{size:"A4",style:{padding:30,fontFamily:"Noto Sans"}},t.createElement(P,{startDate:r,endDate:i,reportName:"Prasad Delivery Postal Report",templeName:l}),o&&o.length>0?t.createElement(View,{style:{display:"flex",flexDirection:"row",marginTop:20,width:"100%",gap:20,flexWrap:"wrap"}},o.map(n=>{let u=n.qrContent,p=io.toDataURL(u);return 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,display:"flex",flexDirection:"row",justifyContent:"space-between",gap:5}},t.createElement(View,null,t.createElement(e,{style:{fontSize:10,fontWeight:"bold"}},n.name),t.createElement(View,{style:{fontSize:10}},t.createElement(W,{splitat:"words"},n.address)),t.createElement(e,{style:{fontSize:10}},n.phone)),n.qrContent&&p?t.createElement(View,{style:{flexShrink:0,width:60,maxWidth:60,display:"flex",flexDirection:"column",alignItems:"center"}},t.createElement(Image,{src:p,style:{width:50,height:50,minWidth:50,maxWidth:50}}),t.createElement(e,{style:{fontSize:7}},"BookMyPuja")):null),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"))),Ye=wo;var So=({startDate:r,endDate:i,templeName:l,data:o})=>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:i,reportName:"Payment Settlement Report",templeName:l}),o.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"))),o.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(W,null,n.invoiceNo)),t.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"15%"}},t.createElement(W,null,n.amount)),t.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"20%"}},t.createElement(W,null,n.paymentDate)),t.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"20%"}},t.createElement(W,null,n.settlementDate)),t.createElement(View,{style:{padding:6,borderRight:"none",width:"25%"}},t.createElement(W,null,n.bankUtrNo))))):t.createElement(e,{style:{fontSize:18,textAlign:"center",marginTop:100}},"No data available for the selected date range")))),Ze=So;var Vo=({startDate:r,endDate:i,templeName:l,data:o})=>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:i,reportName:"Invoice Level Breakup",templeName:l}),o.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"))),o.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(W,null,n.invoiceNumber)),t.createElement(View,{style:{padding:3,borderRight:"1px solid #000",width:"9%"}},t.createElement(W,null,n.baseAmount)),t.createElement(View,{style:{padding:3,borderRight:"1px solid #000",width:"9%"}},t.createElement(W,null,n.platformFees)),t.createElement(View,{style:{padding:3,borderRight:"1px solid #000",width:"9%"}},t.createElement(W,null,n.platformFeesGST)),t.createElement(View,{style:{padding:3,borderRight:"1px solid #000",width:"9%"}},t.createElement(W,null,n.gatewayCharges)),t.createElement(View,{style:{padding:3,borderRight:"1px solid #000",width:"9%"}},t.createElement(W,null,n.gatewayChargesGST)),t.createElement(View,{style:{padding:3,borderRight:"1px solid #000",width:"9%"}},t.createElement(W,null,n.paymentMode)),t.createElement(View,{style:{padding:3,borderRight:"1px solid #000",width:"9%",fontSize:7}},t.createElement(W,null,n.bookingDate)),t.createElement(View,{style:{padding:3,borderRight:"1px solid #000",width:"9%",fontSize:7}},t.createElement(W,null,n.settlementDate)),t.createElement(View,{style:{padding:3,width:"12%"}},t.createElement(W,null,n.utrNumber))))):t.createElement(e,{style:{fontSize:18,textAlign:"center",marginTop:100}},"No data available for the selected date range")))),Xe=Vo;var Io=({startDate:r,endDate:i,templeName:l,data:o})=>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:i,reportName:"Total Puja Count Report",templeName:l}),o.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"))),o.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")))),Re=Io;var Bo=({startDate:r,templeName:i,pujas:l,reportTiming:o})=>{return !l||l.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}},i),t.createElement(e,{style:{fontSize:12,textAlign:"center"}},r.toLocaleDateString()),o&&t.createElement(e,{style:{fontSize:11,textAlign:"center",marginTop:2}},o.charAt(0).toUpperCase()+o.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: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))))))})))},ot=Bo;var No=({startDate:r,templeName:i,data:l,reportTiming:o})=>{if(!l||l.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=l.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}},i),t.createElement(e,{style:{fontSize:12,textAlign:"center"}},r.toLocaleDateString()),o&&t.createElement(e,{style:{fontSize:11,textAlign:"center",marginTop:2}},o.charAt(0).toUpperCase()+o.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))))))},nt=No;var zo=({startDate:r,templeName:i,data:l})=>{let o=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 !o||o.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}},i),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}},o.length," delivery",o.length>1?" items":" item")),o.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))))))},at=zo;var ko=({startDate:r,templeName:i,pujaData:l,prasadData:o,deliveryData:n,reportTiming:u})=>{if(l.length===0&&o.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=o.sort((m,T)=>m.invoiceNumber.localeCompare(T.invoiceNumber));return t.createElement(Document,null,l.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}},i),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")),l.map((m,T)=>{let a=m.bookings.filter(y=>!y.is_early_reminder&&!y.requires_coupon);return a.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}},a.length," booking",a.length>1?"s":"")),a.map((y,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"}},y.invoiceNumber)),t.createElement(e,{style:{fontSize:14,fontWeight:"bold",marginBottom:6}},y.devoteeName),t.createElement(View,{style:{flexDirection:"row",justifyContent:"space-between"}},t.createElement(e,{style:{fontSize:12}},y.nakshatra),t.createElement(e,{style:{fontSize:12}},"Qty: ",y.quantity)),y.priestNote&&t.createElement(View,{style:{marginTop:6,paddingTop:6,borderTop:"0.5pt dashed #CCC"}},t.createElement(e,{style:{fontSize:11,color:"#666"}},y.priestNote))))))})),o.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}},i),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}},i),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))))))},pt=ko;var co=({startDate:r,templeName:i,data:l})=>!l||l.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}},i),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 Labels"),t.createElement(e,{style:{fontSize:11,textAlign:"center",marginTop:2}},l.length," label",l.length>1?"s":"")),l.map(o=>t.createElement(View,{key:o.id,style:{border:"1pt dashed #000",padding:8,marginBottom:10,backgroundColor:"#FFF"},wrap:false},t.createElement(e,{style:{fontSize:13,fontWeight:"bold",marginBottom:5}},o.name),t.createElement(View,{style:{marginBottom:5}},t.createElement(e,{style:{fontSize:11}},o.address)),t.createElement(e,{style:{fontSize:11,marginBottom:5}},o.phone),t.createElement(View,{style:{borderTop:"0.5pt dashed #CCC",marginTop:5,marginBottom:5}}),t.createElement(e,{style:{fontSize:10,color:"#666"}},"Note: ",o.pujaDetails))))),gt=co;var xt={kitchen:{A4:je},transaction:{A4:We},"prasad-delivery":{A4:Le,"110mm":at},prasad:{A4:_e,"110mm":nt},"puja-detailed":{A4:qe,"110mm":ot},"puja-summary":{A4:Me},"combined-report":{A4:Ge,"110mm":pt},"multi-temple-payment":{A4:Ke},"settlements-report":{A4:Ue},invoice:{A4:Je},"postal-report":{A4:Ye,"110mm":gt},"payment-settlement-report":{A4:Ze},"invoice-breakup":{A4:Xe},"puja-count":{A4:Re}},Dt=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:Ce}),Font.register({family:"Noto Sans",fontWeight:"semibold",src:Pe});}async print(i){let o=xt[this.option][this.size],n=t.createElement(o,{...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 o=xt[this.option][this.size],n=t.createElement(o,{...i});return pdf(n).toBlob()}};
|
|
1
|
+
import {Font,StyleSheet,Document,Page,Image,Text,View,pdf}from'@react-pdf/renderer';import t from'react';import {maxBy}from'lodash';import io from'qrcode';var wt=Object.defineProperty;var bt=(r,i,l)=>i in r?wt(r,i,{enumerable:true,configurable:true,writable:true,value:l}):r[i]=l;var Se=(r,i,l)=>bt(r,typeof i!="symbol"?i+"":i,l);var J=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",De="https://res.cloudinary.com/dpaigt2bx/raw/upload/v1742817493/fonts/ntbri6mclms8cfx3dk2e.ttf",he="https://res.cloudinary.com/dpaigt2bx/raw/upload/v1742817493/fonts/ojiymraiiuw7juzkmmu8.ttf",Ce="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",Ie="https://res.cloudinary.com/dpaigt2bx/raw/upload/v1743431765/NotoSans-SemiBold_o96oas.ttf";var Be="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:De});Font.register({family:"Roboto",fontWeight:"bold",src:he});var ze=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"}}),Vt=({data:r,dates:i})=>{let l=J(i[0])===J(i[1]);return t.createElement(Document,null,t.createElement(Page,{size:"A4",style:ze.page},t.createElement(Image,{fixed:true,style:{height:15,width:75,marginBottom:10},src:ie}),t.createElement(Text,{style:{fontSize:13,marginBottom:2}},"Puja List"),t.createElement(Text,{style:{fontSize:10,marginBottom:10}},"Date",":"," ",l?J(i[0]):`${J(i[0])} - ${J(i[1])}`),t.createElement(View,{style:{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"space-between",gap:8}},r?r.map((o,s)=>t.createElement(View,{wrap:false,key:s,style:ze.pujaTile},t.createElement(View,{style:{display:"flex",flexDirection:"row"}},t.createElement(Text,{style:{opacity:.6,marginRight:10}},"#",(s+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"}},o.participantName),t.createElement(Text,{style:{fontSize:10,fontWeight:"bold"}},"-"),t.createElement(Text,{style:{fontSize:10,fontWeight:"bold"}},o.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"}},o.pujaName)),l?null:t.createElement(View,{style:{display:"flex",flexDirection:"row",alignContent:"flex-end"}},t.createElement(Text,null,"Date: "),t.createElement(Text,{style:{fontWeight:"bold"}},J(o.date)))),t.createElement(View,{style:{display:"flex",flexDirection:"row",alignContent:"flex-end",gap:10}}),o.priestNote!==""&&o.priestNote!==null&&o.priestNote!==void 0?t.createElement(View,{style:{display:"flex",flexDirection:"row",justifyContent:"space-between",marginTop:3}},t.createElement(Text,null,"Priest Note: ",o.priestNote)):null),t.createElement(View,{style:{display:"flex",flexDirection:"column",alignItems:"flex-end"}},t.createElement(Text,{style:{fontWeight:"bold",fontSize:10}},"Rs ",o.amount),o.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)))},Ct=Vt;Font.register({family:"Roboto",fontWeight:"normal",src:De});Font.register({family:"Roboto",fontWeight:"bold",src:he});var B=1,le=25*B,ce=StyleSheet.create({page:{padding:10*B,fontFamily:"Roboto"},pujaTile:{paddingVertical:10*B,paddingHorizontal:10*B,fontSize:le,border:`${5*B}px solid black`,borderRadius:5*B,width:"100%",display:"flex",flexDirection:"column"}}),zt=({data:r,dates:i})=>{let l=J(i[0])===J(i[1]);return t.createElement(Document,null,t.createElement(Page,{dpi:200,size:[457*B],style:ce.page},t.createElement(Image,{fixed:true,style:{height:55*B,width:274*B,marginBottom:10*B,marginHorizontal:"auto"},src:ie}),t.createElement(Text,{style:{fontSize:25*B,marginBottom:5*B,marginHorizontal:"auto"}},"Puja List"),t.createElement(Text,{style:{fontSize:20*B,marginBottom:5*B,marginHorizontal:"auto",fontWeight:"bold"}},"Date",":"," ",l?J(i[0]):`${J(i[0])} - ${J(i[1])}`),t.createElement(Text,{style:{fontSize:17*B,marginBottom:20*B,marginHorizontal:"auto"}},"Printed at : ",new Date().toLocaleString()),t.createElement(View,{style:{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"space-between",gap:15*B}},r?r.map((o,s)=>t.createElement(View,{wrap:false,key:s,style:ce.pujaTile},t.createElement(View,{style:{display:"flex",flexDirection:"row",justifyContent:"space-between",marginBottom:5*B}},t.createElement(Text,{style:{opacity:.6,marginRight:10*B}},"#",(s+1).toString().padStart(2,"0")),t.createElement(View,{style:{display:"flex",flexDirection:"row",alignItems:"flex-end",gap:10*B}},o.paymentStatus=="pending"?t.createElement(View,{style:{backgroundColor:"#000000",paddingVertical:3*B,paddingHorizontal:5*B,borderRadius:5*B,marginTop:3*B}},t.createElement(Text,{style:{color:"#ffffff",fontSize:le}},"Pending")):null,t.createElement(Text,{style:{fontWeight:"bold",fontSize:le}},"Rs ",o.amount))),t.createElement(View,{style:{flexGrow:1}},t.createElement(View,{style:{display:"flex",flexDirection:"row",flexWrap:"wrap",marginBottom:3*B,gap:3*B}},t.createElement(Text,{style:{fontSize:le,fontWeight:"bold"}},o.participantName),t.createElement(Text,{style:{fontSize:le,fontWeight:"bold"}},"-"),t.createElement(Text,{style:{fontSize:le,fontWeight:"bold"}},o.participantNakshatra)),t.createElement(View,{style:{display:"flex",flexDirection:"column",alignContent:"flex-end",gap:10*B}},t.createElement(View,{style:{display:"flex",flexDirection:"row",flexWrap:"wrap",alignContent:"flex-end"}},t.createElement(Text,null,"Puja name : "),t.createElement(Text,{style:{fontSize:le,fontWeight:"bold"}},o.pujaName)),l?null:t.createElement(View,{style:{display:"flex",flexDirection:"row",alignContent:"flex-end"}},t.createElement(Text,null,"Date: "),t.createElement(Text,{style:{fontWeight:"bold"}},J(o.date)))),t.createElement(View,{style:{display:"flex",flexDirection:"row",alignContent:"flex-end",gap:10*B}}),o.priestNote!==""&&o.priestNote!==null&&o.priestNote!==void 0?t.createElement(View,{style:{display:"flex",flexDirection:"row",justifyContent:"space-between",marginTop:3*B}},t.createElement(Text,null,"Priest Note: ",o.priestNote)):null))):null)))},kt=zt;var vt={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},Et=({style:r={},children:i})=>{let l=T=>{let a=maxBy(Object.entries(vt),([y,D])=>{let _=T.match(D);return _?_.length:0});return a?a[0]:"Latin"},o=T=>[/\b\d{2}\/\d{2}\/\d{4}\b/,/\b\d{2}\s\w{3}\s\d{4}\b/].some(y=>y.test(T));function s(T){return T.replace(/[\uFF01-\uFF5E]/g,a=>`${String.fromCharCode(a.charCodeAt(0)-65248)} `)}let u=T=>{let a=[],y=null,D="";for(let _ of T){_=s(_);let se=l(_);se!==y?(D&&a.push({text:D,script:y}),y=se,D=_):D+=_;}return D&&a.push({text:D,script:y}),a},p=[];i&&typeof i=="string"&&!Array.isArray(i)&&!o(i)&&u(i).forEach((a,y)=>{let D=a.script==="Latin"||!a.script?"Noto Sans":`Noto Sans ${a.script}`;p.push(t.createElement(Text,{key:y,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],t.createElement(Text,{style:b},p?.length?p:i)},e=Et;var Wt=({startDate:r,endDate:i,reportTiming:l,templeName:o,reportName:s})=>t.createElement(t.Fragment,null,t.createElement(Image,{fixed:true,style:{height:15,width:75,marginBottom:10},src:ie}),i?t.createElement(e,{style:{fontSize:11,marginTop:5,textAlign:"right"}},"Dates: ",r.toDateString()," - ",i.toDateString()):t.createElement(e,{style:{fontSize:11,marginTop:5,textAlign:"right"}},"Date: ",r.toDateString()),l&&Object.keys(Fe).includes(l)?t.createElement(e,{style:{fontSize:11,marginTop:5,textAlign:"right"}},Fe[l]," Report"):null,t.createElement(e,{style:{fontSize:14,fontWeight:"bold"}},s),t.createElement(e,{style:{fontSize:12}},`${o}`)),P=Wt;var qt=({startDate:r,endDate:i,templeName:l,data:o,reportTiming:s})=>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:i,templeName:l,reportTiming:s,reportName:"Temple Prasad (Kitchen) Report"}),o.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"))),o.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")))),We=qt;var Ot=({startDate:r,endDate:i,templeName:l,data:o})=>{let s=o.reduce((p,b)=>b.status==="cancelled"?p:p+b.bookingAmount,0),u=o.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:i,reportName:"Transactions Report",templeName:l}),o.length>0?t.createElement(t.Fragment,null,t.createElement(e,{style:{fontSize:10,marginTop:10}},"Total Bookings: ",s.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"))),o.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"))))},Le=Ot;var Kt=({startDate:r,endDate:i,templeName:l,data:o})=>(o=o.map(s=>{let u="";try{let p=JSON.parse(s.address);u=`${p.address}, ${p.locality}, ${p.state} - ${p.pincode}`;}catch(p){console.error("Error parsing address:",p),u=s.address;}return {...s,address:u}}),t.createElement(Document,null,t.createElement(Page,{size:"A4",style:{padding:30,fontFamily:"Noto Sans"}},t.createElement(P,{startDate:r,endDate:i,reportName:"Prasad Delivery Address",templeName:l}),o.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"))),o.map((s,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(s.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,s.invoiceNumber)),t.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"18%"}},t.createElement(e,null,s.devoteeName)),t.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"25%"}},t.createElement(e,null,s.address)),t.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"20%"}},t.createElement(e,null,s.pujaName)),t.createElement(View,{style:{padding:6,width:"15%"}},t.createElement(e,null,s.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")))),_e=Kt;var Jt=({startDate:r,endDate:i,templeName:l,data:o,reportTiming:s})=>{o.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:i,reportName:"Prasad Report",templeName:l,reportTiming:s}),o.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"))),o.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")))},qe=Jt;var Zt=({startDate:r,endDate:i,templeName:l,pujas:o,reportTiming:s})=>{let u=0,p=0,b=o.some(m=>m.bookings.some(T=>T.requires_coupon));return !o||o.length===0?t.createElement(Document,null,t.createElement(Page,{size:"A4",style:{padding:30,fontFamily:"Noto Sans"}},t.createElement(P,{startDate:r,endDate:i,reportName:"Puja List",templeName:l,reportTiming:s}),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:i,reportTiming:s,reportName:"",templeName:""}),o.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"))))),o.some(m=>m.bookings.some(T=>T.is_early_reminder&&!T.requires_coupon))?o.flatMap((m,T)=>m.bookings.filter(a=>a.is_early_reminder&&!a.requires_coupon).map((a,y)=>(p++,t.createElement(View,{key:`${T}-${y}`,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,a.quantity)),t.createElement(View,{style:{padding:6,fontSize:10,borderRight:"none",width:"20%"}},t.createElement(e,null,a.date?new Date(a.date).toDateString():"")))))):null,t.createElement(e,{style:{fontSize:14,fontWeight:"bold",marginTop:20}},"Puja List"),t.createElement(e,{style:{fontSize:12}},`${l}`),t.createElement(View,{style:{display:"flex",flexDirection:"column",marginTop:10}},o.map((m,T)=>m.bookings.every(a=>a.is_early_reminder||a.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((a,y)=>a.is_early_reminder||a.requires_coupon?null:(u++,t.createElement(View,{key:y,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,a.invoiceNumber)),t.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",width:`${35*1.11111}%`}},t.createElement(e,null,a.devoteeName)),t.createElement(View,{style:{padding:6,fontSize:10,borderRight:"1px solid black",width:`${25*1.11111}%`}},t.createElement(e,null,a.nakshatra)),t.createElement(View,{style:{padding:6,fontSize:10,borderRight:"none",width:`${10*1.11111}%`}},t.createElement(e,null,a.quantity))),a.priestNote&&t.createElement(View,{style:{padding:6,fontSize:10,borderTop:"1px solid black",width:"100%"}},t.createElement(e,null,a.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:ie}),t.createElement(View,{style:{display:"flex",flexDirection:"column",marginTop:10,gap:15}},(()=>{let m=o.flatMap(a=>a.bookings.filter(y=>y.requires_coupon).map(y=>({...y,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,y],D)=>{let _=y,se=_[0];return t.createElement(View,{key:a,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"}},a),t.createElement(e,null,se.date?new Date(se.date).toDateString():r.toDateString())),t.createElement(e,null,se.phone_number)),t.createElement(View,{style:{height:15,width:"100%"}}),_.map((pe,fe)=>t.createElement(View,{key:fe,style:{display:"flex",flexDirection:"row",marginTop:25}},t.createElement(e,null,`${pe.devoteeName} ----- ${pe.nakshatra} ----- ${pe.pujaName}`))),t.createElement(View,null,t.createElement(e,{style:{textAlign:"center",marginTop:10,fontSize:10,opacity:.5}},"~~~ bookmypuja.app - Your Puja, Our Commitment ~~~")))})})())):null))},Me=Zt;var eo=({templeName:r,startDate:i,endDate:l,pujas:o,reportTiming:s})=>{let u=o.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:i,endDate:l,reportTiming:s,reportName:"Puja Summary",templeName:r}),o.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")))},Oe=eo;var oo=({children:r,splitat:i})=>{if(!r||typeof r!="string")return null;let l="";return i=="words"&&(l=" "),t.createElement(t.Fragment,null,t.createElement(View,{style:{display:"flex",flexDirection:"row",flexWrap:"wrap"}},r.split(l).map((o,s)=>t.createElement(t.Fragment,null,t.createElement(e,{key:s},o,i=="words"?" ":"")))))},W=oo;var ro=({startDate:r,endDate:i,templeName:l,pujaData:o,prasadData:s,deliveryData:u,reportTiming:p})=>{u=u.map(a=>{let y="";try{let D=JSON.parse(a.address);y=`${D.address}, ${D.locality}, ${D.state} - ${D.pincode}`;}catch(D){console.error("Error parsing address:",D),y=a.address;}return {...a,address:y}});let b=0,m=0,T=o.some(a=>a.bookings.some(y=>y.requires_coupon));return o.length==0&&s.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:i,reportTiming:p,reportName:"Combined Report",templeName:l}),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,o.length>0&&t.createElement(Page,{size:"A4",style:{padding:30,fontFamily:"Noto Sans"}},t.createElement(P,{startDate:r,endDate:i,reportTiming:p,reportName:"",templeName:""}),o.some(a=>a.bookings.some(y=>y.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"))))),o.some(a=>a.bookings.some(y=>y.is_early_reminder&&!y.requires_coupon))?o.flatMap((a,y)=>a.bookings.filter(D=>D.is_early_reminder&&!D.requires_coupon).map((D,_)=>(m++,t.createElement(View,{wrap:false,key:`${y}-${_}`,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,a.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}},`${l}`),t.createElement(View,{style:{display:"flex",flexDirection:"column",marginTop:10}},o.map((a,y)=>a.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"}},`${a.name} - ${a.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"))),a.bookings.map((D,_)=>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))))))))))))),o.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:ie}),t.createElement(View,{style:{display:"flex",flexDirection:"column",marginTop:10,gap:15}},(()=>{let a=o.flatMap(D=>D.bookings.filter(_=>_.requires_coupon).map(_=>({..._,pujaName:D.name}))),y={};for(let D of a)y[D.invoiceNumber]||(y[D.invoiceNumber]=[]),y[D.invoiceNumber].push(D);return Object.entries(y).map(([D,_],se)=>{let pe=_,fe=pe[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,fe.date?new Date(fe.date).toDateString():r.toDateString())),t.createElement(e,null,fe.phone_number)),t.createElement(View,{style:{height:15,width:"100%"}}),pe.map((Te,ht)=>t.createElement(View,{key:ht,style:{display:"flex",flexDirection:"row",marginTop:25}},t.createElement(e,null,`${Te.devoteeName} ----- ${Te.nakshatra} ----- ${Te.pujaName}`))))})})())),s.length>0&&t.createElement(Page,{size:"A4",style:{padding:30,fontFamily:"Noto Sans"}},t.createElement(P,{startDate:r,endDate:i,reportTiming:p,reportName:"Prasad Report",templeName:l}),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"))),s.map((a,y)=>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,y+1)),t.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"20%"}},t.createElement(e,null,a.invoiceNumber)),t.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"30%"}},t.createElement(e,null,a.devoteeName)),t.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"30%"}},t.createElement(e,null,a.prasadName)),t.createElement(View,{style:{padding:6,width:"10%"}},t.createElement(e,null,a.quantity)))))),u.length>0&&t.createElement(Page,{size:"A4",style:{padding:30,fontFamily:"Noto Sans"}},t.createElement(P,{startDate:r,endDate:i,reportTiming:p,reportName:"Prasad Delivery Postal Report",templeName:l}),t.createElement(View,{style:{display:"flex",flexDirection:"row",marginTop:20,width:"100%",gap:20,flexWrap:"wrap"}},u&&u.map(a=>{let y=io.toDataURL(a.qrContent);return t.createElement(View,{wrap:false,key:a.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,display:"flex",flexDirection:"row",justifyContent:"space-between",gap:5}},t.createElement(View,null,t.createElement(e,{style:{fontSize:10,fontWeight:"bold"}},a.name),t.createElement(View,{style:{fontSize:10}},t.createElement(W,{splitat:"words"},a.address)),t.createElement(e,{style:{fontSize:10}},a.phone)),a.qrContent&&y?t.createElement(View,{style:{flexShrink:0,width:60,maxWidth:60,display:"flex",flexDirection:"column",alignItems:"center"}},t.createElement(Image,{src:y,style:{width:50,height:50,minWidth:50,maxWidth:50}}),t.createElement(e,{style:{fontSize:7}},"BookMyPuja")):null),t.createElement(View,{style:{borderTop:"1px solid black",marginTop:5,paddingTop:3,borderStyle:"dotted"}}),t.createElement(e,{style:{fontSize:9,marginTop:3}},"Note: ",a.pujaDetails))})))))},Ke=ro;var lo=({startDate:r,endDate:i,data:l})=>t.createElement(Document,null,t.createElement(Page,{size:"A4",style:{padding:30,fontFamily:"Noto Sans"}},t.createElement(P,{startDate:r,endDate:i,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"))),l?.map((o,s)=>t.createElement(View,{key:s,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,s+1)),t.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"55%"}},t.createElement(e,null,o.name)),t.createElement(View,{style:{padding:6,borderRight:"1px solid black",width:"15%"}},t.createElement(e,null,o.bookings)),t.createElement(View,{style:{padding:6,width:"20%"}},t.createElement(e,null,"\u20B9",o.revenue))))))),Ue=lo;var uo=({startDate:r,endDate:i,templeName:l,data:o})=>t.createElement(Document,null,t.createElement(Page,{size:"A4",style:{padding:30,fontFamily:"Noto Sans"}},t.createElement(P,{startDate:r,endDate:i,reportName:"Settlements Report",templeName:l}),t.createElement(e,{style:{fontSize:10,marginTop:10}},"Total Credited Amount: ",o.totalCreditedAmount),o.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"))),o.settlements?.map((s,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,s.date)),t.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"15%"}},t.createElement(e,null,s.settlement_amount)),t.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"20%",fontSize:9}},t.createElement(e,null,s.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"}},s.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,s.settlement_id))))):t.createElement(e,{style:{fontSize:18,textAlign:"center",marginTop:100}},"No data available for the selected date range"))),Qe=uo;var fo=({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",width:"100%"}},t.createElement(View,{style:{backgroundColor:"#FFA823",width:20,height:"100%"}}),t.createElement(View,{style:{marginLeft:15,marginTop:10,marginBottom:0,flex:1}},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:Be}))),r.qrContent?t.createElement(View,{style:{width:85}},t.createElement(Image,{style:{height:70,width:70,marginBottom:5,objectFit:"contain",position:"absolute",right:"0",bottom:"0"},src:r.qrContent})):null),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",top:"0"},src:Ne}):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((i,l)=>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%"}},i.pujaName?t.createElement(e,{style:{fontSize:11}},i.pujaName):null,i.devoteesName?t.createElement(e,{style:{fontSize:9,color:"#333333"}},i.devoteesName):null,i.pujaDate?t.createElement(e,{style:{fontSize:9,color:"#333333"}},i.pujaDate," ",i.timing?`- ${i.timing}`:null):null,i.repeatEndDate&&i.repeatStartDate?t.createElement(e,{style:{fontSize:9,color:"#333333"}},i.repeatStartDate," to ",i.repeatEndDate," ",i.timing?`- ${i.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:{}},i.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:{}},`${i.quantity?i.quantity:""}${i.repeatCount?` x ${i.repeatCount}`:""}`)),t.createElement(View,{style:{padding:6,width:"20%",textAlign:"center",display:"flex",alignItems:"center",justifyContent:"center"}},t.createElement(e,{style:{}},i.totalPrice))))),t.createElement(View,{style:{display:"flex",flexDirection:"row",marginVertical:20,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.prasadCollectionMode?t.createElement(View,{style:{marginBottom:5}},t.createElement(e,{style:{fontSize:11,marginTop:5}},"Prasad Collection Mode: ",r.prasadCollectionMode)):null,r.devoteeDetails.address?t.createElement(t.Fragment,null,t.createElement(e,{style:{fontSize:11,maxWidth:400,marginBottom:20}},"Address: ",r.devoteeDetails.address)):null,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((i,l)=>t.createElement(e,{key:l,style:{fontSize:10}},l+1,". ",i.name," (",i.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((i,l)=>t.createElement(e,{key:l,style:{fontSize:10}},l+1,". ",i.name," (",i.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((i,l)=>t.createElement(e,{key:l,style:{fontSize:10}},l+1,". ",i.name," (",i.timings,")"))):null):null,r.instructions.length>0?t.createElement(View,{wrap:false,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((i,l)=>t.createElement(e,{key:l,style:{fontSize:8}},l+1,") ",i.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")))),Je=fo;var wo=({startDate:r,endDate:i,templeName:l,data:o})=>t.createElement(Document,null,t.createElement(Page,{size:"A4",style:{padding:30,fontFamily:"Noto Sans"}},t.createElement(P,{startDate:r,endDate:i,reportName:"Prasad Delivery Postal Report",templeName:l}),o&&o.length>0?t.createElement(View,{style:{display:"flex",flexDirection:"row",marginTop:20,width:"100%",gap:20,flexWrap:"wrap"}},o.map(s=>{let u=s.qrContent,p=io.toDataURL(u);return t.createElement(View,{wrap:false,key:s.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,display:"flex",flexDirection:"row",justifyContent:"space-between",gap:5}},t.createElement(View,null,t.createElement(e,{style:{fontSize:10,fontWeight:"bold"}},s.name),t.createElement(View,{style:{fontSize:10}},t.createElement(W,{splitat:"words"},s.address)),t.createElement(e,{style:{fontSize:10}},s.phone)),s.qrContent&&p?t.createElement(View,{style:{flexShrink:0,width:60,maxWidth:60,display:"flex",flexDirection:"column",alignItems:"center"}},t.createElement(Image,{src:p,style:{width:50,height:50,minWidth:50,maxWidth:50}}),t.createElement(e,{style:{fontSize:7}},"BookMyPuja")):null),t.createElement(View,{style:{borderTop:"1px solid black",marginTop:5,paddingTop:3,borderStyle:"dotted"}}),t.createElement(e,{style:{fontSize:9,marginTop:3}},"Note: ",s.pujaDetails))})):t.createElement(e,{style:{fontSize:18,textAlign:"center",marginTop:100}},"No data available for the selected date range"))),Ye=wo;var So=({startDate:r,endDate:i,templeName:l,data:o})=>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:i,reportName:"Payment Settlement Report",templeName:l}),o.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"))),o.map((s,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(W,null,s.invoiceNo)),t.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"15%"}},t.createElement(W,null,s.amount)),t.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"20%"}},t.createElement(W,null,s.paymentDate)),t.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"20%"}},t.createElement(W,null,s.settlementDate)),t.createElement(View,{style:{padding:6,borderRight:"none",width:"25%"}},t.createElement(W,null,s.bankUtrNo))))):t.createElement(e,{style:{fontSize:18,textAlign:"center",marginTop:100}},"No data available for the selected date range")))),Ze=So;var Vo=({startDate:r,endDate:i,templeName:l,data:o})=>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:i,reportName:"Invoice Level Breakup",templeName:l}),o.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"))),o.map((s,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(W,null,s.invoiceNumber)),t.createElement(View,{style:{padding:3,borderRight:"1px solid #000",width:"9%"}},t.createElement(W,null,s.baseAmount)),t.createElement(View,{style:{padding:3,borderRight:"1px solid #000",width:"9%"}},t.createElement(W,null,s.platformFees)),t.createElement(View,{style:{padding:3,borderRight:"1px solid #000",width:"9%"}},t.createElement(W,null,s.platformFeesGST)),t.createElement(View,{style:{padding:3,borderRight:"1px solid #000",width:"9%"}},t.createElement(W,null,s.gatewayCharges)),t.createElement(View,{style:{padding:3,borderRight:"1px solid #000",width:"9%"}},t.createElement(W,null,s.gatewayChargesGST)),t.createElement(View,{style:{padding:3,borderRight:"1px solid #000",width:"9%"}},t.createElement(W,null,s.paymentMode)),t.createElement(View,{style:{padding:3,borderRight:"1px solid #000",width:"9%",fontSize:7}},t.createElement(W,null,s.bookingDate)),t.createElement(View,{style:{padding:3,borderRight:"1px solid #000",width:"9%",fontSize:7}},t.createElement(W,null,s.settlementDate)),t.createElement(View,{style:{padding:3,width:"12%"}},t.createElement(W,null,s.utrNumber))))):t.createElement(e,{style:{fontSize:18,textAlign:"center",marginTop:100}},"No data available for the selected date range")))),Xe=Vo;var Io=({startDate:r,endDate:i,templeName:l,data:o})=>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:i,reportName:"Total Puja Count Report",templeName:l}),o.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"))),o.map((s,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,s.name)),t.createElement(View,{style:{padding:6,borderRight:"1px solid #000",width:"15%"}},t.createElement(e,null,s.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")))),Re=Io;var Bo=({startDate:r,templeName:i,pujas:l,reportTiming:o})=>{return !l||l.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}},i),t.createElement(e,{style:{fontSize:12,textAlign:"center"}},r.toLocaleDateString()),o&&t.createElement(e,{style:{fontSize:11,textAlign:"center",marginTop:2}},o.charAt(0).toUpperCase()+o.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: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))))))})))},ot=Bo;var No=({startDate:r,templeName:i,data:l,reportTiming:o})=>{if(!l||l.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 s=l.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}},i),t.createElement(e,{style:{fontSize:12,textAlign:"center"}},r.toLocaleDateString()),o&&t.createElement(e,{style:{fontSize:11,textAlign:"center",marginTop:2}},o.charAt(0).toUpperCase()+o.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}},s.length," item",s.length>1?"s":"")),s.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))))))},nt=No;var zo=({startDate:r,templeName:i,data:l})=>{let o=l.map(s=>{let u="";try{let p=JSON.parse(s.address);u=`${p.address}, ${p.locality}, ${p.state} - ${p.pincode}`;}catch{u=s.address;}return {...s,address:u}});return !o||o.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}},i),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}},o.length," delivery",o.length>1?" items":" item")),o.map((s,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}},s.devoteeName),t.createElement(View,{style:{marginBottom:6}},t.createElement(e,{style:{fontSize:11}},s.address)),s.phoneNumber&&t.createElement(View,{style:{marginBottom:6}},t.createElement(e,{style:{fontSize:12}},"Ph: ",s.phoneNumber)),t.createElement(View,{style:{marginTop:6,paddingTop:6,borderTop:"0.5pt dashed #CCC"}},t.createElement(e,{style:{fontSize:11,color:"#666"}},"Note: ",s.note||s.pujaName))))))},at=zo;var ko=({startDate:r,templeName:i,pujaData:l,prasadData:o,deliveryData:s,reportTiming:u})=>{if(l.length===0&&o.length===0&&s.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=o.sort((m,T)=>m.invoiceNumber.localeCompare(T.invoiceNumber));return t.createElement(Document,null,l.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}},i),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")),l.map((m,T)=>{let a=m.bookings.filter(y=>!y.is_early_reminder&&!y.requires_coupon);return a.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}},a.length," booking",a.length>1?"s":"")),a.map((y,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"}},y.invoiceNumber)),t.createElement(e,{style:{fontSize:14,fontWeight:"bold",marginBottom:6}},y.devoteeName),t.createElement(View,{style:{flexDirection:"row",justifyContent:"space-between"}},t.createElement(e,{style:{fontSize:12}},y.nakshatra),t.createElement(e,{style:{fontSize:12}},"Qty: ",y.quantity)),y.priestNote&&t.createElement(View,{style:{marginTop:6,paddingTop:6,borderTop:"0.5pt dashed #CCC"}},t.createElement(e,{style:{fontSize:11,color:"#666"}},y.priestNote))))))})),o.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}},i),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))))),s.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}},i),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}},s.length," delivery",s.length>1?" items":" item")),s.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))))))},pt=ko;var co=({startDate:r,templeName:i,data:l})=>!l||l.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}},i),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 Labels"),t.createElement(e,{style:{fontSize:11,textAlign:"center",marginTop:2}},l.length," label",l.length>1?"s":"")),l.map(o=>t.createElement(View,{key:o.id,style:{border:"1pt dashed #000",padding:8,marginBottom:10,backgroundColor:"#FFF"},wrap:false},t.createElement(e,{style:{fontSize:13,fontWeight:"bold",marginBottom:5}},o.name),t.createElement(View,{style:{marginBottom:5}},t.createElement(e,{style:{fontSize:11}},o.address)),t.createElement(e,{style:{fontSize:11,marginBottom:5}},o.phone),t.createElement(View,{style:{borderTop:"0.5pt dashed #CCC",marginTop:5,marginBottom:5}}),t.createElement(e,{style:{fontSize:10,color:"#666"}},"Note: ",o.pujaDetails))))),gt=co;var xt={kitchen:{A4:We},transaction:{A4:Le},"prasad-delivery":{A4:_e,"110mm":at},prasad:{A4:qe,"110mm":nt},"puja-detailed":{A4:Me,"110mm":ot},"puja-summary":{A4:Oe},"combined-report":{A4:Ke,"110mm":pt},"multi-temple-payment":{A4:Ue},"settlements-report":{A4:Qe},invoice:{A4:Je},"postal-report":{A4:Ye,"110mm":gt},"payment-settlement-report":{A4:Ze},"invoice-breakup":{A4:Xe},"puja-count":{A4:Re}},Dt=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:s,src:u})=>Font.register({family:s,src:u})),Font.register({family:"Noto Sans",fontWeight:"normal",src:Ce}),Font.register({family:"Noto Sans",fontWeight:"bold",src:Pe}),Font.register({family:"Noto Sans",fontWeight:"semibold",src:Ie});}async print(i){let o=xt[this.option][this.size],s=t.createElement(o,{...i}),u=pdf(s).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 o=xt[this.option][this.size],s=t.createElement(o,{...i});return pdf(s).toBlob()}};
|
|
2
2
|
export{Ct as A4Print,kt as T2Inch,Dt as reportPrinter};
|
package/package.json
CHANGED