1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4909],{44260:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/aldarinvoice",function(){return t(22692)}])},22692:function(e,s,t){"use strict";t.r(s),t.d(s,{__N_SSG:function(){return p},default:function(){return h}});var l=t(85893);t(59156);var r=t(11163),d=t(67294),a=t(41664),x=t.n(a),n=t(47116),i=t.n(n),c=t(17616);function o(e){var s,t,a,n,o,p,h,j,u,b,N,v,f,g,w,y,A;let C=(0,r.useRouter)(),I=C.query.order,D=null!==(A=C.query.ot)&&void 0!==A?A:"",k=null==e?void 0:null===(t=e.layoutInfo)||void 0===t?void 0:null===(s=t.navBarInfo)||void 0===s?void 0:s.logoInfo;console.log(k);let[T,V]=(0,d.useState)(null),[E,H]=(0,d.useState)([]);(0,d.useEffect)(()=>{I&&fetch("/api/partner/trackOrder?orderNumber=".concat(I,"&ot=").concat(D)).then(e=>e.json()).then(e=>{if(e.isFailed){window.location="/signin";return}if(V(e),e&&e.products&&e.products.length>0){let s=[];e.products.map(e=>{let t=s.find(s=>s.no===e.no);t?(t.quantity+=e.quantity,t.lineDiscountAmount+=e.lineDiscountAmount,t.amountInclVAT+=e.amountInclVAT):s.push(e)}),H(s)}}).catch(e=>{console.log(e.message)})},[I]);let _=e=>{let{color:s="#444444"}=e;return(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 131 114",fill:s,className:"inline-block align-text-bottom ",children:(0,l.jsx)("path",{d:"M130.254 54.8906L129.264 53.9766C127.664 52.4531 125.76 51.6914 123.703 51.6914H113.039C113.191 53.5195 113.268 55.3477 113.268 57.3281C113.268 59.3086 113.191 61.1367 113.039 63.041H120.275C125.76 63.041 130.254 68.2207 130.254 74.6953V77.5898L129.264 76.5996C127.664 75.1523 125.76 74.3906 123.703 74.3906H111.439C105.574 100.061 85.084 114 52.7871 114H11.3496C11.3496 114 16.9863 109.658 16.9863 95.1094V74.3906H10.0547C4.49414 74.3906 0 69.1348 0 62.7363V59.8418L1.06641 60.7559C2.58984 62.2031 4.49414 63.041 6.55078 63.041H16.9863V51.6914H10.0547C4.49414 51.6914 0 46.4355 0 40.0371V37.1426L1.06641 38.1328C2.58984 39.5801 4.49414 40.3418 6.55078 40.3418H16.9863V20.4609C16.9863 5.45508 11.3496 0.732422 11.3496 0.732422H52.7871C84.1699 0.732422 105.193 14.5195 111.363 40.3418H120.275C125.76 40.3418 130.254 45.5215 130.254 51.9961V54.8906ZM51.2637 6.36914H33.9727V40.3418H92.0918C88.1309 16.7285 74.6484 6.36914 51.2637 6.36914ZM93.4629 57.3281C93.4629 55.3477 93.3867 53.5195 93.3105 51.6914H33.9727V63.041H93.3105C93.3867 61.1367 93.4629 59.3086 93.4629 57.3281ZM33.9727 108.287H51.416C76.1719 107.678 88.3594 95.7949 92.0918 74.3906H33.9727V108.287Z"})})},S=(0,d.useRef)();return null==T?(0,l.jsx)(c.Z,{}):(0,l.jsxs)("div",{className:"w-full ",children:[(0,l.jsxs)("div",{ref:S,className:" mt-5 lg:mx-20 md:mx-10 mx-2",children:[(0,l.jsx)("div",{className:"w-full bg-gray-100 p-2",children:(0,l.jsxs)("div",{className:"flex justify-between",children:[(0,l.jsxs)("div",{className:"",children:[(0,l.jsx)(x(),{href:"/",children:(0,l.jsx)("img",{className:"w-[150px] md:w-64 ",src:k[0].logoUrl,alt:""})}),(0,l.jsxs)("div",{className:"flex text-[12px] md:text-[18px]",children:[(0,l.jsx)("h3",{className:"w-[35px] md:w-[120px] ",children:"TRN"}),(0,l.jsx)("p",{className:"",children:"100025416700003"})]}),(0,l.jsxs)("div",{className:"flex text-[12px] md:text-[18px] gap-2",children:[(0,l.jsx)("h3",{className:" md:w-[120px] ",children:"Ø§ÙØ±ÙÙ
Ø§ÙØ¶Ø±ÙبÙ"}),(0,l.jsx)("p",{className:"",children:"100025416700003"})]}),(0,l.jsx)("div",{className:"",children:(0,l.jsx)("p",{className:"my-1 font-bold text-[20px] md:text-[30px] text-[#333333]",children:"Tax Invoice"})}),(0,l.jsxs)("div",{className:"flex text-[13px] md:text-[18px]",children:[(0,l.jsx)("h3",{className:" md:w-[120px] ",children:"Invoice No"}),(0,l.jsxs)("p",{className:"",children:[":",T.orderid]})]}),(0,l.jsxs)("div",{className:"w-[180px] md:w-full flex text-[13px] md:text-[18px]",children:[(0,l.jsx)("h3",{className:" md:w-[120px] ",children:"Invoice Date:"}),(0,l.jsx)("p",{className:"",children:T.deliverydate})]})]}),(0,l.jsxs)("div",{className:"text-right",children:[(0,l.jsxs)("div",{className:"mb-2",children:[(0,l.jsx)("p",{className:"font-medium text-[16px] md:text-[20px] text-[#333333]",children:"Magrudy Enterprises LLC"}),(0,l.jsx)("p",{className:"font-medium text-[16px] md:text-[20px] text-[#333333]",children:"Ù
Ø´Ø§Ø±ÙØ¹ اÙÙ
Ø¬Ø±ÙØ¯Ù ذ.Ù
.Ù
"})]}),(0,l.jsxs)("div",{className:"mb-2",children:[(0,l.jsx)("p",{className:"font-medium text-[12px] md:text-[16
1px] text-[#333333]",children:"Magrudy Enterprises LLC 20th Street Al Khabaisi Area Deira Dubai, UAE"}),(0,l.jsx)("p",{className:"font-medium text-[12px] md:text-[16px] text-[#333333]",children:"Ù
Ø´Ø§Ø±ÙØ¹ اÙÙ
Ø¬Ø±ÙØ¯Ù ذ.Ù
.Ù
شارع 20 Ù
ÙØ·ÙØ© Ø§ÙØ®Ø¨Ø§Ø³Ù Ø¯ÙØ±Ø© Ø¯Ø¨ÙØ Ø§ÙØ¥Ù
ارات Ø§ÙØ¹Ø±Ø¨ÙØ© اÙÙ
ØªØØ¯Ø©"})]}),(0,l.jsxs)("div",{className:"",children:[(0,l.jsx)("p",{className:"my-1 font-bold text-[20px] md:text-[30px] text-[#333333]",children:"ÙØ§ØªÙرة Ø¶Ø±ÙØ¨ÙØ©"}),(0,l.jsx)("p",{className:"font-medium text-[12px] md:text-[16px] text-[#333333]",children:"ÙØ§ØªÙرة Ø¶Ø±ÙØ¨ÙØ© رÙÙ
"}),(0,l.jsx)("p",{className:"font-medium text-[12px] md:text-[16px] text-[#333333]",children:"Ø§ÙØªØ§Ø±ÙØ®"})]})]})]})}),(0,l.jsxs)("div",{className:"flex justify-between bg-gray-100 p-2 mt-5",children:[(0,l.jsxs)("div",{className:"",children:[(0,l.jsxs)("div",{className:"my-2",children:[(0,l.jsx)("p",{className:"font-bold text-[18px] md:text-[20px] text-[#333333]",children:"BILLING ADDRESS"}),(0,l.jsx)("p",{className:"font-bold text-[16px] md:text-[20px] text-black",children:"عÙÙØ§Ù إرسا٠اÙÙÙØ§ØªÙر"})]}),(0,l.jsx)("p",{className:"font-normal text-[14px] md:text-[18px] text-black",children:null==T?void 0:null===(a=T.billingaddress)||void 0===a?void 0:a.name}),(0,l.jsx)("p",{className:"font-normal text-[14px] md:text-[18px] text-black",children:null==T?void 0:null===(n=T.billingaddress)||void 0===n?void 0:n.address}),(0,l.jsx)("p",{className:"font-normal text-[14px] md:text-[18px] text-black",children:null==T?void 0:null===(o=T.billingaddress)||void 0===o?void 0:o.city}),(0,l.jsx)("p",{className:"font-normal text-[14px] md:text-[18px] text-black",children:null==T?void 0:null===(p=T.billingaddress)||void 0===p?void 0:p.zipcode}),(0,l.jsx)("p",{className:"font-normal text-[14px] md:text-[18px] text-black",children:null==T?void 0:null===(h=T.billingaddress)||void 0===h?void 0:h.country}),(0,l.jsxs)("p",{className:"text-[12px] md:text-[16px]",children:["E-mail:",null==T?void 0:null===(j=T.billingaddress)||void 0===j?void 0:j.email]}),(0,l.jsxs)("p",{className:"text-[12px] md:text-[16px]",children:["Mobile:",null==T?void 0:null===(u=T.billingaddress)||void 0===u?void 0:u.mobile]})]}),!0==T.ishomedelivery?(0,l.jsxs)("div",{className:"text-right",children:[(0,l.jsxs)("div",{className:"my-2",children:[(0,l.jsx)("p",{className:"font-bold text-[18px] md:text-[20px] text-[#333333]",children:"SHIPPING ADDRESS"}),(0,l.jsx)("p",{className:"font-bold text-[16px] md:text-[20px] text-black",children:"Ù
عÙÙÙ
ات Ø§ÙØ²Ø¨ÙÙ"})]}),(0,l.jsx)("p",{className:"font-normal text-[14px] md:text-[18px] text-black",children:null==T?void 0:null===(b=T.shippingaddres)||void 0===b?void 0:b.name}),(0,l.jsx)("p",{className:"font-normal text-[14px] md:text-[18px] text-black",children:null==T?void 0:null===(N=T.shippingaddres)||void 0===N?void 0:N.address}),(0,l.jsx)("p",{className:"font-normal text-[14px] md:text-[18px] text-black",children:null==T?void 0:null===(v=T.shippingaddres)||void 0===v?void 0:v.city}),(0,l.jsx)("p",{className:"font-normal text-[14px] md:text-[18px] text-black",children:null==T?void 0:null===(f=T.shippingaddres)||void 0===f?void 0:f.zipcode}),(0,l.jsx)("p",{className:"font-normal text-[14px] md:text-[18px] text-black",children:null==T?void 0:null===(g=T.shippingaddres)||void 0===g?void 0:g.country}),(0,l.jsxs)("p",{className:"text-[12px] md:text-[16px]",children:["E-mail: ",null==T?void 0:null===(w=T.shippingaddres)||void 0===w?void 0:w.email]}),(0,l.jsxs)("p",{className:"text-[12px] md:text-[16px]",children:["Mobile:",null==T?void 0:null===(y=T.shippingaddres)||void 0===y?void 0:y.mobile]})]}):(0,l.jsxs)("div",{className:"text-right break-all",children:[(0,l.jsxs)("div",{className:"my-2",children:[(0,l.jsx)("p",{className:"font-bold text-[17px] md:text-[20px] text-[#333333]",children:"STORE INFORMATION"}),(0,l.jsx)("p",{className:"font-bold text-[16px] md:text-[20px] text-black",children:"Ù
عÙÙÙ
ات اÙÙ
تجر "})]}),(0,l.jsx)("p",{className:"font-normal text-[13px] md:text-[18px] text-black",children:"Magrudy Enterprises LLC 20th Street Al Khabasi Area Deira Dubai, UAE"}
1),(0,l.jsxs)("p",{className:"text-[12px] md:text-[16px]",children:["Customer Care:",(0,l.jsx)("span",{className:"",children:"+971-43444193"})]}),(0,l.jsx)("div",{className:"text-[12px] md:text-[16px]",children:(0,l.jsx)("a",{href:"",children:"https://www.magrudy.com"})})]})]}),(0,l.jsx)("div",{className:"mt-5 overflow-x-scroll lg:overflow-x-hidden",children:(0,l.jsxs)("table",{className:" border-collapse border border-slate-500 w-full",children:[(0,l.jsx)("thead",{children:(0,l.jsxs)("tr",{className:"",children:[(0,l.jsxs)("th",{className:"border border-slate-600 px-1",children:["Description ",(0,l.jsx)("br",{})," اسÙ
اÙÙ
ÙØªØ¬ "]}),(0,l.jsxs)("th",{className:"border border-slate-600 px-1",children:["Ordered ",(0,l.jsx)("br",{})," Qty ",(0,l.jsx)("br",{})," اÙÙÙ
ÙØ© ",(0,l.jsx)("br",{})," اÙÙ
Ø·ÙÙØ¨Ø©"]}),(0,l.jsxs)("th",{className:"border border-slate-600 px-1 ",children:["Unit Price Excl. ",(0,l.jsx)("br",{})," ",(0,l.jsxs)("span",{className:"flex items-center justify-center gap-1",children:[" VAT(",(0,l.jsx)(_,{}),")"]})," سعر اÙÙØØ¯Ø© ØºÙØ± ",(0,l.jsx)("br",{})," "]}),(0,l.jsxs)("th",{className:"border border-slate-600 px-1",children:["VAT ",(0,l.jsx)("br",{})," Rate % ",(0,l.jsx)("br",{})," ÙØ³Ø¨Ø© ",(0,l.jsx)("br",{})," Ø§ÙØ¶Ø±Ùبة "]}),(0,l.jsxs)("th",{className:"border border-slate-600 px-1",children:["VAT Amount ",(0,l.jsx)("br",{}),(0,l.jsxs)("span",{className:"flex items-center justify-center",children:["(",(0,l.jsx)(_,{}),")"]}),"Ø§ÙØ¶Ø±Ùبة ",(0,l.jsx)("br",{})," ÙÙÙ
Ø© "]}),!0==T.discount?(0,l.jsxs)("th",{className:"border border-slate-600 ",children:["Substitution ",(0,l.jsx)("br",{})," Discount ",(0,l.jsx)("br",{})," خصÙ
Ø§ÙØ§Ø³ØªØ¨Ø¯Ø§Ù"]}):(0,l.jsx)(l.Fragment,{}),(0,l.jsxs)("th",{className:"border border-slate-600 px-1",children:["Tot Price Incl ",(0,l.jsx)("br",{})," ",(0,l.jsxs)("span",{className:"flex items-center justify-center",children:["VAT(",(0,l.jsx)(_,{}),")"]})," اÙÙÙÙ
Ø© Ø§ÙØ§Ø¬Ù
اÙÙØ© ",(0,l.jsx)("br",{})," شاÙ
ÙØ© Ø§ÙØ¶Ø±Ùبة"]})]})}),E&&E.length>0&&E.map(e=>(0,l.jsx)(m,{invoiceInfo:e,discount:T.discount})),!0==T.isgiftwrap?(0,l.jsxs)("tr",{className:"text-right",children:[(0,l.jsxs)("td",{className:"border border-slate-600 pl-4 text-left",children:["Giftwrap : ",T.giftWrapDescription," ",(0,l.jsx)("br",{}),"No : ",T.giftWrapCode]}),(0,l.jsx)("td",{className:"border border-slate-600 pr-5",children:"1"}),(0,l.jsx)("td",{className:"border border-slate-600 pr-5",children:"-"}),(0,l.jsx)("td",{className:"border border-slate-600 pr-5",children:"-"}),(0,l.jsx)("td",{className:"border border-slate-600 pr-5",children:"-"}),!0==T.discount?(0,l.jsx)("td",{}):(0,l.jsx)(l.Fragment,{}),(0,l.jsx)("td",{className:"border border-slate-600 pr-5",children:T.giftWrapAmount})]}):(0,l.jsx)(l.Fragment,{})]})}),(0,l.jsx)("div",{className:"mt-[50px] flex justify-center bg-blue-200",children:(0,l.jsxs)("p",{className:"h-10 mt-4 text-[20px] font-bold",children:["Total Amount Incl. VAT:",T.currency," ",T.total]})}),(0,l.jsx)("div",{className:"overflow-x-scroll lg:overflow-x-hidden",children:(0,l.jsxs)("table",{className:"w-full border-collapse border border-slate-500 mt-10 overflow-x-scroll",children:[(0,l.jsx)("thead",{children:(0,l.jsxs)("tr",{children:[(0,l.jsxs)("th",{className:"border border-slate-600 w-[300px]",children:["Amount Excl ",(0,l.jsx)("br",{})," ",(0,l.jsxs)("span",{className:"flex items-center justify-center gap-1",children:[" VAT(",(0,l.jsx)(_,{}),")"]})," ÙØ³Ø¨Ø© Ø§ÙØ¶Ø±Ùبة"]}),T.promocode&&(0,l.jsxs)("th",{className:"border border-slate-600 w-[300px]",children:["Promocode",(0,l.jsx)("br",{}),"Ø§ÙØ±Ù
ز Ø§ÙØªØ±ÙÙØ¬Ù"]}),T.discount>0?(0,l.jsxs)("th",{className:"border border-slate-600 w-[300px]",children:["Discount ",(0,l.jsx)("br",{}),"خصÙ
"]}):(0,l.jsx)(l.Fragment,{}),(0,l.jsxs)("th",{className:"border border-slate-600 w-[300px]",children:[" VAT Amount ",(0,l.jsx)("br",{}),"(",T.currency,") ",(0,l.jsx)("br",{})," ÙÙÙ
Ø© Ø§ÙØ¶Ø±Ùبة"]}),!0==T.isgiftwrap?(0,l.jsxs)("th",{className:"border border-slate-600 w-[300px]",children:["Gift Wrap ",(0,l.jsxs)("span",{className:"flex items-center justify-center",children:["(",(0,l.jsx)(_,{}),")"]})," تغÙÙ٠اÙÙØ¯Ø§Ùا"]}):(0,l.jsx)(l.Fragment,{}),(0,l.jsxs)("th",{className:"border border-slate-600 w-[300px]",children:["Delivery Charge ",(0,l.jsx)("br",{}),(0,l.jsxs)("span",{className:"flex items-center justify-center",children:["(",(0,l.jsx)(_,{}),")"]})," رسÙÙ
Ø§ÙØªÙصÙÙ"]}),(0,l.jsxs)("th",{className:"border border-slate-600 w-[300px]",children:["Toatl Amount Incl ",(0,l.jsx)("br",{})," ",(0,l.jsxs)("span",{className:"flex items-center justify-center gap-1",children:[" VAT(",(0,l.jsx)(_,{}),")"]})," اÙÙ
Ø¨ÙØº Ø§ÙØ¥Ø¬Ù
اÙÙ"]})]})}),(0,l.jsxs)("tr",{className:"text-right",children:[(0,l.jsx)("td",{className:"border border-slate-600 text-center ",children:T.subtotal}),T.promocode&&(0,l.jsx)("td",{className:"border border-slate-600 text-center ",children:T.promocode}),T.discount>
10?(0,l.jsx)("td",{className:"border border-slate-600 pr-[60px] ",children:T.discount}):(0,l.jsx)(l.Fragment,{}),(0,l.jsx)("td",{className:"border border-slate-600 pr-[60px]",children:T.vat}),!0==T.isgiftwrap?(0,l.jsx)("td",{className:"border border-slate-600 pr-[60px] ",children:T.giftWrapAmount}):(0,l.jsx)(l.Fragment,{}),(0,l.jsx)("td",{className:"border border-slate-600 pr-[60px] ",children:T.delivery_charge}),(0,l.jsxs)("td",{className:"border border-slate-600 pr-[60px] ",children:[T.currency," ",T.total]})]})]})}),(0,l.jsx)("div",{className:"flex justify-between mb-10",children:(0,l.jsxs)("div",{className:"mt-10",children:[(0,l.jsxs)("p",{className:"text-[20px] font-medium",children:["Payment Type : ",T.paymentMethod]}),(0,l.jsxs)("p",{className:"text-[20px] font-medium flex items-center gap-1",children:["Amount : ",(0,l.jsx)(_,{})," ",T.total]})]})})]}),(0,l.jsxs)("div",{className:"justify-center items-center flex flex-col md:flex-row md:gap-5 mb-20",children:[(0,l.jsx)(i(),{trigger:()=>(0,l.jsx)("button",{className:" bg-[#11849D] text-white font-bold rounded shadow border-2 border-[#11849D] text-[14px] w-[256px] h-[42px] hover:bg-transparent hover:text-[#11849D] transition-all duration-300",children:"Print / Download"}),content:()=>S.current}),(0,l.jsxs)(x(),{href:"/",children:[" ",(0,l.jsxs)("button",{type:"button",className:"mt-5 md:mt-0 border-[1px] border-[#11849D] w-[256px] h-[42px] text-[#11849D] text-xs font-semibold rounded",children:["CONTINUE SHOPPING"," "]})]})]})]})}function m(e){let s=null==e?void 0:e.invoiceInfo,t=null==s?void 0:s.productImageUrl,r=null==s?void 0:s.description,a=null==s?void 0:s.no,x=null==s?void 0:s.quantity,n=null==s?void 0:s.unitPrice;null==s||s.vat;let i=null==s?void 0:s.vatAmount,c=null==s?void 0:s.lineDiscountAmount,o=null==s?void 0:s.amountInclVAT,m=null==e?void 0:e.discount,[p,h]=(0,d.useState)(t);return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("tr",{className:"text-right",children:[(0,l.jsx)("td",{className:"border border-slate-600 pl-2",children:(0,l.jsx)("div",{className:"flex text-left",children:(0,l.jsxs)("p",{className:"pl-2",children:[" ",r," ",(0,l.jsx)("br",{}),"No : ",a]})})}),(0,l.jsx)("td",{className:"border border-slate-600 pr-5",children:x}),(0,l.jsx)("td",{className:"border border-slate-600 pr-5",children:n}),(0,l.jsx)("td",{className:"border border-slate-600 pr-5",children:"5%"}),(0,l.jsx)("td",{className:"border border-slate-600 pr-5",children:i}),!0==m?(0,l.jsx)("td",{className:"border border-slate-600 pr-5",children:c}):(0,l.jsx)(l.Fragment,{}),(0,l.jsx)("td",{className:"border border-slate-600 pr-5",children:o})]})})}var p=!0;function h(e){return(0,r.useRouter)().isFallback?(0,l.jsx)("div",{children:"Loading..."}):(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{className:"w-full overflow-hidden",children:(0,l.jsx)(o,{layoutInfo:e.layoutInfo})})})}}},function(e){e.O(0,[3662,3996,9379,6542,9156,2888,9774,179],function(){return e(e.s=44260)}),_N_E=e.O()}]);
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.