1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4611],{44611:function(e,s,t){t.r(s),t.d(s,{default:function(){return h}});var l=t(57437),i=t(57127),a=t.n(i),n=t(34085),r=t(66648),d=t(57662),c=e=>{let{data:s}=e,{user:t,category:i,amount_USD:a,amount_INR:n,updatedAt:c,sequenceTransactionId:o}=s,x=(null==t?void 0:t.firstName)+" "+(null==t?void 0:t.lastName),h=null==t?void 0:t.email,p=n||a,m=a>0?p:p/1.18,b=p-m;return(0,l.jsxs)("div",{className:"w-full text-black p-6 pt-0",children:[(0,l.jsxs)("div",{className:"flex justify-between border-b border-black items-center",children:[(0,l.jsx)(r.default,{src:"/assets/logo.png",alt:"Unfazed Logo",width:120,height:50,priority:!0,unoptimized:!0,className:"object-contain"}),(0,l.jsx)("h2",{className:"text-lg font-bold text-blue-400",children:"TAX INVOICE"})]}),(0,l.jsxs)("div",{className:"mt-4",children:[(0,l.jsx)("p",{className:"font-bold text-lg",children:"UNFAZED THERAPY SOLUTIONS"}),(0,l.jsx)("p",{className:"font-bold text-lg",children:"PRIVATE LIMITED"}),(0,l.jsx)("p",{children:"E-514, NRI City, Kanpur - 208002, India"}),(0,l.jsx)("p",{children:"Email: [email protected] | Phone: +91 6392975097"}),(0,l.jsx)("p",{children:"GST: 09AADCU3340D1ZM"})]}),(0,l.jsxs)("div",{className:"space-y-4 py-4 text-lg",children:[(0,l.jsxs)("p",{children:[(0,l.jsx)("strong",{children:"Invoice No:"})," ",o]}),(0,l.jsxs)("p",{children:[(0,l.jsx)("strong",{children:"Invoice Date:"})," ",(0,d.yG)(c)]})]}),(0,l.jsxs)("div",{className:"mb-4",children:[(0,l.jsx)("p",{className:"font-semibold text-lg",children:"Bill To:"}),(0,l.jsxs)("p",{children:["Name: ",x]}),(0,l.jsxs)("p",{children:["Email: ",h]})]}),(0,l.jsx)("p",{className:"font-semibold text-lg pb-4",children:"Service Details"}),(0,l.jsxs)("table",{className:"w-full text-sm border border-gray-700",children:[(0,l.jsx)("thead",{children:(0,l.jsxs)("tr",{className:"border-b border-gray-700",children:[(0,l.jsx)("th",{colSpan:1,className:"px-2 pb-4 text-left w-1/3",children:"Description"}),(0,l.jsxs)("th",{colSpan:1,className:"px-2 pb-4 text-center w-1/3",children:["Rate (",0===a?"INR":"USD",")"]}),(0,l.jsxs)("th",{colSpan:1,className:"px-2 pb-4 text-right w-1/3",children:["Amount (",0===a?"INR":"USD",")"]})]})}),(0,l.jsxs)("tbody",{children:[(0,l.jsxs)("tr",{className:"",children:[(0,l.jsxs)("td",{colSpan:1,className:"px-2 pb-4 text-left w-1/2",children:[i," (60 min)"]}),(0,l.jsxs)("td",{colSpan:1,className:"px-2 pb-4 text-center w-1/4",children:[0===a?"â¹":"$"," ",m.toFixed(2)]}),(0,l.jsxs)("td",{colSpan:1,className:"px-2 pb-4 text-right w-1/4",children:[0===a?"â¹":"$"," ",m.toFixed(2)]})]}),(0,l.jsxs)("tr",{className:"border-t border-gray-700",children:[(0,l.jsx)("td",{colSpan:2,className:"px-2 pb-4 font-medium",children:"Subtotal:"}),(0,l.jsxs)("td",{className:"px-2 pb-4 text-right font-medium",children:[0===a?"â¹":"$"," ",m.toFixed(2)]})]}),b>0&&(0,l.jsxs)("tr",{children:[(0,l.jsx)("td",{colSpan:2,className:"px-2 pb-4 font-medium",children:"GST @18%:"}),(0,l.jsxs)("td",{className:"px-2 pb-4 text-right",children:["+ â¹ ",b.toFixed(2)]})]}),(0,l.jsxs)("tr",{className:"border-t border-gray-700 font-bold text-lg",children:[(0,l.jsx)("td",{colSpan:2,className:"px-2 pb-4",children:"Total Payable:"}),(0,l.jsxs)("td",{className:"px-2 pb-4 text-right whitespace-nowrap",children:[0===a?"â¹":"$"," ",p.toFixed(2)]})]})]})]}),(0,l.jsxs)("div",{className:"text-xs",children:[(0,l.jsx)("p",{className:"text-base font-semibold mt-5",children:"Terms & Conditions:"}),(0,l.jsxs)("p",{children:["- Cancellation allowed till ",(0,l.jsx)("strong",{children:"2 hours "}),"before the session time."]}),(0,l.jsx)("p",{children:"- All discussions remain confidential as per ethical guidelines."})]}),(0,l.jsx)("div",{className:"mt-6",children:(0,l.jsx)(r.default,{src:"/assets/signature.jpg",alt:"Signature",width:300,height:120,priority:!0,unoptimized:!0,className:"object-contain"})})]})},o=t(2265),x=t(69824),h=e=>{let{data:s,isVisible:t,setIsVisible:i}=e,r=(0,o.useRef)(null),d=()=>{i(!1)},h=e=>{if(!r.current)return;let s={margin:[10,10,10,10],filename:"".concat((null==e?void 0:e.sequenceTransactionId)||"unfazed_invoice",".pdf"),image:{type:"jpeg",quality:1},html2canvas:{scale:window.devicePixelRatio>2?3:2,useCORS:!0,letterRendering:!0,dpi:300,logging:!1},jsPDF:{unit:"mm",format:"a4",orientation:"portrait"},pagebreak:{mode:"avoid-all"}};a()().set(s).from(r.current).save().then(()=>d())};return(0,l.jsx)(n.Z,{height:"h-[80vh]",isVisible:t,width:"md:w-[80%] lg:w-2/3",onClose:()=>i(!1),children:(0,l.jsxs)("div",{className:"bg-white w-full h-[80vh] relative rounded-xl",children:[(0,l.jsx)("button",{type:"button",onClick:d,title:"Close refund panel",className:"absolute z-50 cursor-pointer text-black text-xl top-2 right-3 font-bold",children:"â"}),(0,l.jsx)("div",{className:"rounded-lg w-full",children:(0,l.jsx)("div",{ref:r,className:"bg-white mt-10 w-full",children:s&&(0,l.jsx)(c,{data:s})})}),(0,l.jsx)("div",{className:"bg-white rounded-b-2xl border-t w-full p-5",children:(0,l.jsx)("div",{className:"flex gap-5 justify-end",children:(0,l.jsxs)("button",{type:"button",onClick:()=>h(s),className:"text-xl flex gap-2 items-center bg-red-500 text-white hover:bg-red-600 py-2 px-8 rounded-lg transition",children:[(0,l.jsx)(x.Cb8,{className:"text-lg"}),"Downlaod PDF"]})})})]})})}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.