1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1513],{75742:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/checkout/payOrder/[...slug]",function(){return a(11759)}])},31738:function(e,t,a){"use strict";var s=a(85893),r=a(67294);let l=e=>{let{paymentIframe:t,onClose:a}=e,[l,o]=(0,r.useState)("600px");return(0,r.useEffect)(()=>{let e=e=>{if("https://secure.ccavenue.com"===e.origin){var t;let a=null===(t=e.data)||void 0===t?void 0:t.newHeight;a&&o("".concat(a,"px"))}};return window.addEventListener("message",e),()=>{window.removeEventListener("message",e)}},[]),t&&(0,s.jsx)("div",{className:"fixed inset-0 bg-gray-600 bg-opacity-50 flex items-center justify-center z-50",children:(0,s.jsxs)("div",{className:"relative bg-white rounded-lg shadow-lg w-full max-w-4xl mx-auto",children:[(0,s.jsx)("div",{className:"flex justify-end p-2",children:(0,s.jsx)("button",{onClick:a,className:"text-gray-500 hover:text-gray-800",children:(0,s.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})}),(0,s.jsx)("div",{className:"p-4",children:(0,s.jsx)("iframe",{style:{border:"2px solid black",borderRadius:"10px",width:"100%",height:l},scrolling:"yes",frameBorder:"0",id:"paymentFrame",src:t})})]})})};t.Z=l},11759:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSP:function(){return k}});var s=a(85893),r=a(67294),l=a(85574),o=a(35271),n=a(14762),i=a(68015),d=a(41664),c=a.n(d),p=a(87066),x=a(11163),m=a(25675),u=a.n(m),h=a(4298),y=a.n(h),g=a(43812),f=a(15268),v=a(89583),w=a(60017),j=a(85813),N=a(31738),_=a(82940);let b=e=>{let t,{}=e,a=(0,x.useRouter)(),d=window.location.href,m=d.split("/"),h=m[m.length-1],{slug:b}=a.query,{userId:k,token:C,userDetails:P}=(0,r.useContext)(l.UserContext),{fetchCart:S}=(0,r.useContext)(o.CartContext),{jboId:O}=(0,i.useJobId)(),{formatCurrency:M,currentCurrency:I,formatOrderCurrency:D}=(0,r.useContext)(w.CurrencyContext),[T,B]=(0,r.useState)(null),[E,A]=(0,r.useState)(null),[z,Z]=(0,r.useState)(null),[L,R]=(0,r.useState)(null),[W,F]=(0,r.useState)(""),[G,J]=(0,r.useState)(!1),[H,V]=(0,r.useState)(""),[Y,q]=(0,r.useState)("");(0,r.useRef)(null);let[X,K]=(0,r.useState)(!1),[Q,U]=(0,r.useState)({}),[$,ee]=(0,r.useState)(!1),[et,ea]=(0,r.useState)(!1),[es,er]=(0,r.useState)(!1),[el,eo]=(0,r.useState)(!1),[en,ei]=(0,r.useState)(!1),[ed,ec]=(0,r.useState)([]),[ep,ex]=(0,r.useState)(0),[em,eu]=(0,r.useState)([]),eh=()=>ei(!0),ey=()=>ei(!1),[eg,ef]=(0,r.useState)([]),[ev,ew]=(0,r.useState)(""),[ej,eN]=(0,r.useState)(""),[e_,eb]=(0,r.useState)(0),ek=(0,_.b)(),[eC,eP]=(0,r.useState)([]),eS=e=>{U(e),K(!0)},eO=()=>{K(!1)};{let eM=window.location.hostname;t="https://".concat(eM,"/api")}(0,r.useEffect)(()=>{eI(),S();let e=async()=>{try{let e=await ek.post("user/paymentGatewayList",{});ef(Object.values(e.data))}catch(s){var t;let a=(null==s?void 0:null===(t=s.response)||void 0===t?void 0:t.data)?s.response.data:"";(0,f.Z)({job_id:O,endpoint:"user/paymentGatewayList",payload:{user_id:k,token:C},responseData:a,errorMsg:s})}};e()},[]);let eI=async()=>{try{let e={token:C,data:JSON.stringify({currency:I,user_id:k,order_id:h,client_id:O,jbo_id:O})},a=await p.Z.post("".concat(t,"/user/payOverCounterOrderView"),e);if(200===a.status){let s=a.data,{order_data:r}=s;if(r&&r.length>0){let{address_data:l,product_data:o}=r[0];B(l[0]),A(o),Z(r[0]),R(s.payment_date),q(s.delivery_date),eo(s);let n=r[0].pending_payment;eb(n),eP(s.payment_log)}}}catch(x){var i;let d={token:C,data:JSON.stringify(payloadObject.data)},c=(null==x?void 0:null===(i=x.response)||void 0===i?void 0:i.data)?x.response.data:"";(0,f.Z)({job_id:O,endpoint:"/user/payOverCounterOrderView",payload:d,responseData:c,errorMsg:x})}},eD=e=>{eS({type:"warning",title:"Are you sure?",subText:"You want to cancel this order!",confirmLabel:"Yes, cancel it!",cancelLabel:"No, keep it",showCloseIcon:!1,showConfirmButton:!0,showCancelButton:!0,onConfirm:()=>{eT(e),eO()},onClose:eO})},eT=async e=>{try{let a={token:C,data:JSON.stringify({orderprd_id:e,client_id:O,jbo_id:O})},s=await p.Z.post("".concat(t,"/user/payOverCounterCancel"),a);200===s.status&&eI()}catch(n){var r;let l={token:C,data:JSON.stringify({orderprd_id:e,client_id:O,jbo_id:O})},o=(null==n?void 0:null===(r=n.response)||void 0===r?void 0:r.data)?n.response.data:"";(0,f.Z)({job_id:O,endpoint:"/user/payOverCounterCancel",payload:l,responseData:o,errorMsg:n})}},eB=e=>{a.push({pathname:"/profile/OrderDetails/".concat(e)})},eE=Array.isArray(null==el?void 0:el.metal_rate_weight)?el.metal_rate_weight:[],eA=Array.isArray(null==el?void 0:el.metal_rate)?el.metal_rate:[],ez=async()=>{let e={token:C,data:{order_id:h,jbo_id:O}},a={token:C,data:JSON.stringify(e.data)};try{let s=await p.Z.post("".concat(t,"/user/multiMakePayment"),a);if(1===s.data.status){let r=s.data.delivery_details;eu(r);let l=s.data.total_amount;ec(l),ex(l[0].amount),eh()}else eS({type:"error",title:"Error!",subText:"Something went wrong - ".concat(s.data.message||s.data.message||"Failed to pay"),autoClose:3,showConfirmButton:!1,showCancelButton:!1,onClose:eO})}catch(d){var o;let n={token:C,data:JSON.stringify(e.data)},i=(null==d?void 0:null===(o=d.response)||void 0===o?void 0:o.data)?d.response.data:"";(0,f.Z)({job_id:O,endpoint:"/user/multiMakePayment",payload:n,responseData:i,errorMsg:d})}},eZ=(e,t)=>{let a=()=>{try{let t=window.Cashfree({mode:"production"});t.checkout({paymentSessionId:e,redirectTarget:"_self"})}catch(a){console.error("Cashfree checkout error",a),eS({type:"error",title:"Payment Error",subText:"Failed to launch Cashfree payment. Please try again.",autoClose:3,showConfirmButton:!1,showCancelButton:!1,onClose:eO})}};if(window.Cashfree)a();else{let s=document.createElement("script");
1s.src="https://sdk.cashfree.com/js/v3/cashfree.js",s.onload=a,s.onerror=()=>{eS({type:"error",title:"Payment Error",subText:"Could not load Cashfree SDK. Please check your connection.",autoClose:3,showConfirmButton:!1,showCancelButton:!1,onClose:eO})},document.body.appendChild(s)}},eL=(e,t,s)=>{let r=100*e.amount,l=document.createElement("script");l.src="https://checkout.razorpay.com/v1/checkout.js",l.onload=()=>{var l;let o=null==e?void 0:null===(l=e.payment_gateway)||void 0===l?void 0:l.find(e=>"Razorpay"===e.display_label);if(o){let n={key:o.value,amount:r,currency:null==z?void 0:z.currency,order_id:s,name:e.customer_name,description:"Payment Transaction",notes:{order_id:t},...method?{method:method}:{},handler:async function(e){let s=e.razorpay_payment_id;try{let r=await ek.post("user/paymetGateWayProcess",{razorpay_payment_id:s,order_id:t});1===r.data.status?a.push("/profile/PartialPaymentSuccess"):a.push("/profile/PayoverOrderFaild?id="+t)}catch(n){var l;console.error("Payment failed",n),window.location.href="/profile/PayoverOrderFaild?id="+t;let o=(null==n?void 0:null===(l=n.response)||void 0===l?void 0:l.data)?n.response.data:"";(0,f.Z)({job_id:O,endpoint:"user/paymetGateWayProcess",payload:{razorpay_payment_id:s,order_id:t},responseData:o,errorMsg:n})}},modal:{ondismiss:async function(){try{let e=await ek.post("user/paymetGateWayProcess",{order_id:t});e&&window.location.reload()}catch(a){console.error(a)}}},prefill:{name:e.customer_name,email:e.customer_email,contact:e.customer_phoneno},theme:{color:"#3399cc"}},i=new Razorpay(n);i.open(),i.on("payment.failed",async function(e){try{let a=await ek.post("user/paymetGateWayProcess",{order_id:t});a&&(window.location.href="/profile/PayoverOrderFaild?id="+t)}catch(s){console.error(s)}console.error(e.error.code),console.error(e.error.description),console.error(e.error.source),console.error(e.error.step),console.error(e.error.reason),console.error(e.error.metadata.order_id),console.error(e.error.metadata.payment_id)})}},document.body.appendChild(l)},eR=async()=>{let e={token:C,data:JSON.stringify({order_id:h,payment_gateway_id:ev,multi_payment_amount:ep,client_id:O,jbo_id:O})};try{let a=await p.Z.post("".concat(t,"/user/partialPaymentMethod"),e);if(1===a.data.status){if(localStorage.setItem("order_id",a.data.order_id),sessionStorage.setItem("isPartialPayemnt",1),ey(!1),"ccavenue"==a.data.payment_type){let s=a.data.formbody.match(/src="([^"]+)"/);s&&s[1]&&eN(s[1]),S()}else"cashfree"==a.data.payment_type?eZ(a.data.payment_session_id,a.data.order_id):"stripe"==a.data.payment_type?setTimeout(()=>{window.location.href=a.data.stripe_session_url},1e3):eL(a.data,a.data.order_id,a.data.razorpayOrderId,a.data.payment_methods)}else eS({type:"error",title:"Error!",subText:"".concat(a.data.message||a.data.message||"Failed to pay"),autoClose:3,showConfirmButton:!1,showCancelButton:!1,onClose:eO})}catch(n){var r;let l={token:C,data:JSON.stringify({})},o=(null==n?void 0:null===(r=n.response)||void 0===r?void 0:r.data)?n.response.data:"";(0,f.Z)({job_id:O,endpoint:"/user/partialPaymentMethod",payload:l,responseData:o,errorMsg:n})}},eW=()=>{eN(""),setTimeout(()=>{window.location.reload()},1e3)};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(y(),{src:"https://sdk.cashfree.com/js/v3/cashfree.js",strategy:"lazyOnload"}),$&&(0,s.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50",onClick:()=>ee(!1),children:(0,s.jsxs)("div",{className:"relative bg-white w-full max-w-lg p-6 rounded-lg shadow-lg",style:{maxHeight:"90vh"},onClick:e=>e.stopPropagation(),children:[(0,s.jsxs)("button",{className:"absolute top-3 right-3 text-gray-700 hover:text-gray-900",onClick:()=>ee(!1),children:[(0,s.jsx)("i",{className:"fas fa-times"})," "]}),(0,s.jsx)("h2",{className:"text-2xl font-semibold text-gray-900",children:"Metal Rate Details"}),(0,s.jsx)("div",{className:"mt-4 overflow-auto",style:{maxHeight:"80vh"},children:eA.map((e,t)=>(0,s.jsxs)("div",{className:"mb-4 border-b pb-4",children:[(0,s.jsxs)("p",{children:[(0,s.jsx)("strong",{children:"Metal Category:"})," ",e.metal_category_name]}),(0,s.jsxs)("p",{children:[(0,s.jsx)("strong",{children:"Metal Rate:"})," ",M(e.metal_rate)]})]},t))})]})}),et&&(0,s.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50",onClick:()=>ea(!1),children:(0,s.jsxs)("div",{className:"relative bg-white w-full max-w-lg p-6 rounded-lg shadow-lg",style:{maxHeight:"90vh"},onClick:e=>e.stopPropagation(),children:[(0,s.jsxs)("button",{className:"absolute top-3 right-3 text-gray-700 hover:text-gray-900",onClick:()=>ea(!1),children:[(0,s.jsx)("i",{className:"fas fa-times"})," "]}),(0,s.jsx)("h2",{className:"text-2xl font-semibold text-gray-900",children:"Weight Details"}),(0,s.jsx)("div",{className:"mt-4 overflow-auto",style:{maxHeight:"80vh"},children:eE.map((e,t)=>(0,s.jsxs)("div",{className:"mb-4 border-b pb-4",children:[(0,s.jsxs)("p",{children:[(0,s.jsx)("strong",{children:"Metal Category Name:"})," ",e.metal_category_name]}),(0,s.jsxs)("p",{children:[(0,s.jsx)("strong",{children:"Total Weight:"})," ",e.total_weight," kg"]})]},t))})]})}),es&&(0,s.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50",onClick:()=>er(!1),children:(0,s.jsxs)("div",{className:"relative bg-white w-full max-w-lg p-6 rounded-lg shadow-lg",style:{maxHeight:"90vh"},onClick:e=>e.stopPropagation(),children:[(0,s.jsxs)("button",{className:"absolute top-3 right-3 text-gray-700 hover:text-gray-900",onClick:()=>er(!1),children:[(0,s.jsx)("i",{className:"fas fa-times"})," "]}),(0,s.jsx)("h2",{className:"text-2xl font-semibold text-gray-900",children:"Metal Type Details"}),(0,s.jsx)("div",{className:"mt-4 overflow-auto",style:{maxHeight:"80vh"},children:eE.map((e,t)=>(0,s.jsxs)("div",{className:"mb-4 border-b pb-4",children:[(0,s.jsxs)("p",{children:[(0,s.jsx)("strong",{children:"Metal Category:"})," ",e.metal_category_name]}),(0,s.jsxs)("p",{className:"capitalize",children:[(0,s.jsx)("strong",{children:"Type:"})," ",e.type]})]},t))})]})}),(0,s.jsxs)("div",{className:"container",children:[(0,s.jsx)("div",{className:"px-4 mt-4 py-4 flex justify-between ",children:(0,s.jsxs)("div",{className:"flex gap-3 items-center",children:[(0,s.jsx)(c(),{href:"/profile/orders",className:"text-primary text-base",children:(0,s.jsx)("i",{className:"fas fa-home"})}),(0,s.jsxs)("div",{className:"flex gap-3 items-center mt-1",children:[(0,s.jsx)("span",{className:"text-sm text-gray-500",children:(0,s.jsx)("i",{className:"fas fa-chevron-right "})}),(0,s.jsx)("p",{className:"text-gray-500 font-medium uppercase ",children:" Orders / Order Details "})]})]})}),(0,s.jsxs)("div",{className:"w-full mx-auto bg-white rounded-lg overflow-hidden",children:[(0,s.jsxs)("div",{className:"bg-gray-100 py-5 text-center",children:[(0,s.jsx)("h1",{className:"font-bold text-2xl",children:"Pay Over The Counter"}),(0,s.jsxs)("h2",{className:"font-bold text-1xl",children:["Date: ",null==z?void 0:z.date]})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6 mt-4",children:[(0,s.jsxs)("div",{className:"bg-gray-100 lg:col-span-1 p-6 rounded",children:[(0,s.jsx)("h2",{className:"font-bold text-2xl mb-4",children:"Delivery Address"}),(0,s.jsxs)("div",{className:"w-full lg:w-1/3",children:[(0,s.jsx)("p",{className:"text-gray-600 text-lg font-bold py-1",children:null==T?void 0:T.customer_name}),(0,s.jsxs)("p",{className:"text-gray-600 text-lg font-bold py-1",children:[null==T?void 0:T.address,", ",null==T?void 0:T.landmark]}),(0,s.jsxs)("p",{className:"text-gray-600 text-lg font-bold py-1",children:[null==T?void 0:T.city,", ",null==T?void 0:T.state]}),(0,s.jsxs)("p",{className:"text-gray-600 text-lg font-bold py-1",children:[null==T?void 0:T.country," - ",null==T?void 0:T.pincode]}),(0,s.jsxs)("p",{className:"text-gray-600 text-lg font-bold py-1",children:["Phone: ",null==T?void 0:T.mobile]})]})]}),(0,s.jsxs)("div",{className:"bg-gray-100 lg:col-span-1 p-6 rounded",children:[(0,s.jsx)("h2",{className:"font-bold text-2xl mb-4",children:"Order Information"}),(0,s.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2",children:[(0,s.jsxs)("div",{className:"lg:col-span-1",children:[(0,s.jsx)("p",{className:"text-gray-600 text-lg font-bold py-1",children:"Order ID"}),(0,s.jsx)("p",{className:"text-gray-600 text-lg font-bold py-1",children:" Payment Date"})," ",(null==z?void 0:z.shippingcharge)&&(null==z?void 0:z.shippingcharge)!=0?(0,s.jsx)("p",{className:"text-gray-600 text-lg font-bold py-1",children:" Shipping Charge"}):null,(0,s.jsx)("p",{className:"text-gray-600 text-lg font-bold py-1",children:"Expected Delivery Date: "}),(0,s.jsx)("p",{className:"text-gray-600 text-lg font-bold py-1",children:"Payment Amount: "}),(null==z?void 0:z.make_payment_status)==1?(0,s.jsx)("p",{className:"text-gray-600 text-lg font-bold py-1",children:"Pending Payment : "}):null,(0,s.jsx)("p",{className:"text-gray-600 text-lg font-bold py-1",children:"Order Status: "})]}),(0,s.jsxs)("div",{className:"lg:col-span-1",children:[(0,s.jsx)("p",{className:"text-gray-600 text-lg font-bold py-1",children:null==z?void 0:z.order_id}),(0,s.jsxs)("p",{className:"text-gray-600 text-lg font-bold py-1",children:[" ",null==z?void 0:z.expected_delivery_date]}),(null==z?void 0:z.shippingcharge)&&(null==z?void 0:z.shippingcharge)!=0?(0,s.jsxs)("p",{className:"text-gray-600 text-lg font-bold py-1",children:[" ",null==z?void 0:z.shippingcharge]}):null,(0,s.jsx)("p",{className:"text-gray-600 text-lg font-bold py-1",children:Y}),(0,s.jsx)("p",{className:"text-gray-600 text-lg font-bold py-1",children:M((null==z?void 0:z.payment_amount)||0)}),(null==z?void 0:z.make_payment_status)==1?(0,s.jsx)("p",{className:"text-gray-600 text-lg font-bold py-1",children:M(e_)}):null,(0,s.jsxs)("p",{className:"text-gray-600 text-lg font-bold py-1",children:[null==z?void 0:z.pay_over_counter_order_status,(null==z?void 0:z.make_payment_status)==1?(0,s.jsx)("span",{children:(0,s.jsx)("button",{onClick:ez,className:"flex-1 bg-primary text-white ml-5 p-1 md:p-2 text-sm rounded-md focus:outline-none focus:ring-2 focus:ring-primary focus:ring-opacity-50 transition duration-300 ease-in-out }",children:"Make Payment"})}):null]})]})]}),(null==el?void 0:el.shipping_status)==2&&(0,s.jsxs)("p",{className:"text-gray-600 text-sm mt-3",children:["* Your order will be ready to collect at the following address on ",(0,s.jsx)("span",{className:"font-semibold",children:null==el?void 0:el.delivery_date}),". Please contact ",(0,s.jsx)("span",{className:"font-semibold",children:"9952433386"})," to confirm if your order is ready."]})]})]}),(0,s.jsxs)("div",{className:"flex justify-center space-x-4 my-4",children:[(0,s.jsxs)("button",{onClick:()=>ee(!0),className:"flex items-center bg-primary text-white font-bold py-2 px-4 roun
1ded shadow-lg hover:shadow-xl focus:outline-none focus:ring-2 focus:ring-blue-300 focus:ring-opacity-50",children:[(0,s.jsx)(v.t9y,{className:"mr-2"})," Rate"]}),(0,s.jsxs)("button",{onClick:()=>ea(!0),className:"flex items-center bg-primary text-white font-bold py-2 px-4 rounded shadow-lg hover:shadow-xl focus:outline-none focus:ring-2 focus:ring-blue-300 focus:ring-opacity-50",children:[(0,s.jsx)(v.$8K,{className:"mr-2"})," Weight"]}),(0,s.jsxs)("button",{onClick:()=>er(!0),className:"flex items-center bg-primary text-white font-bold py-2 px-4 rounded shadow-lg hover:shadow-xl focus:outline-none focus:ring-2 focus:ring-blue-300 focus:ring-opacity-50",children:[(0,s.jsx)(v.YxP,{className:"mr-2"})," Type"]})]}),(null==E?void 0:E.some(e=>(null==e?void 0:e.availablity)==="instock"))&&(0,s.jsxs)("div",{className:"flex flex-col my-4",children:[(0,s.jsx)("h2",{className:"font-bold text-2xl mb-4",children:"In Stock Product Details:"}),(0,s.jsx)("div",{className:"overflow-x-auto",children:(0,s.jsxs)("table",{className:"min-w-full",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{className:"bg-gray-100",children:[(0,s.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"S.NO"}),(0,s.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Model No"}),(0,s.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Tag Label"}),(0,s.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Product Name"}),(0,s.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Image"}),(0,s.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Qty"}),(0,s.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Weight"}),(0,s.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Price"}),(0,s.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Product Status"}),(0,s.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Action"}),(0,s.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Invoice"})]})}),(0,s.jsx)("tbody",{className:"bg-white divide-y divide-gray-200",children:null==E?void 0:E.filter(e=>(null==e?void 0:e.availablity)==="instock").map((e,t)=>(0,s.jsxs)("tr",{className:t%2==0?"bg-gray-50":"bg-white",children:[(0,s.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:t+1}),(0,s.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:null==e?void 0:e.model_no}),(0,s.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:null==e?void 0:e.tag_label}),(0,s.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:null==e?void 0:e.product_name}),(0,s.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:(null==e?void 0:e.image)?(0,s.jsx)(u(),{src:(0,g.setImageSrc)(null==e?void 0:e.image),alt:null==e?void 0:e.product_name,width:48,height:48,className:"h-12 w-12 object-cover"}):"-"}),(0,s.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:null==e?void 0:e.qty}),(0,s.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:null==e?void 0:e.weight}),(0,s.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:null==e?void 0:e.final_price}),(0,s.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:null==e?void 0:e.pay_over_counter_order_status}),(0,s.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:(null==e?void 0:e.pay_over_counter_order_status_id)==4||(null==e?void 0:e.pay_over_counter_order_status_id)==3?(0,s.jsx)("span",{className:"text-gray-500",children:"Cancel"}):(0,s.jsx)("a",{onClick:()=>eD(e.orderprd_id),className:"border border-primary px-4 py-2 rounded-md hover:bg-primary hover:text-white text-primary transition-colors duration-300 ease-in-out cursor-pointer",children:"Cancel"})}),(0,s.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:(null==e?void 0:e.view_status)==1?(0,s.jsx)("button",{onClick:()=>eB(e.orderprd_id),className:"border border-primary px-4 py-2 rounded-md hover:bg-primary hover:text-white text-primary transition-colors duration-300 ease-in-out cursor-pointer",children:"View"}):"-"})]},t))})]})})]}),(null==E?void 0:E.some(e=>(null==e?void 0:e.availablity)==="make_order"))&&(0,s.jsxs)("div",{className:"flex flex-col my-4",children:[(0,s.jsx)("h2",{className:"font-bold text-2xl mb-4",children:"Make Order Product Details:"}),(0,s.jsx)("div",{className:"overflow-x-auto",children:(0,s.jsxs)("table",{className:"min-w-full",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{className:"bg-gray-100",children:[(0,s.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"S.NO"}),(0,s.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Model No"}),(0,s.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Tag Label"}),(0,s.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Product Name"}),(0,s.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Ref Image"}),(0,s.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Tag Image"}),(0,s.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Qty"}),(0,s.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Weight"}),(0,s.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Price"}),(0,s.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Product Status"}),(0,s.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Action"}),(0,s.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Invoice"})]})}),(0,s.jsx)("tbody",{className:"bg-white divide-y divide-gray-200",children:null==E?void 0:E.filter(e=>(null==e?void 0:e.availablity)==="make_order").map((e,t)=>(0,s.jsxs)("tr",{className:t%2==0?"bg-gray-50":"bg-white",children:[(0,s.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:t+1}),(0,s.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:null==e?void 0:e.model_no}),(0,s.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:(null==e?void 0:e.tag_label)?null==e?void 0:e.tag_label:"-"}),(0,s.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:null==e?void 0:e.product_name}),(0,s.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:(null==e?void 0:e.image)?(0,s.jsx)(u(),{src:(0,g.setImageSrc)(null==e?void 0:e.image),alt:null==e?void 0:e.product_name,width:48,height:48,className:"h-12 w-12 object-cover"}):"-"}),(0,s.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:(null==e?void 0:e.tag_image)?(0,s.jsx)(u(),{src:(0,g.setImageSrc)(null==e?void 0:e.tag_image),alt:null==e?void 0:e.product_name,width:48,height:48,className:"h-12 w-12 object-cover"}):"-"}),(0,s.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:null==e?void 0:e.qty}),(0,s.jsxs)("td",{className:"px-6 py-4 whitespace-nowrap",children:[null==e?void 0:e.weight,(null==e?void 0:e.pay_over_counter_order_status_id)==3||(null==e?void 0:e.pay_over_counter_order_status_id)==5?"":"(approx.)"]}),(0,s.jsxs)("td",{className:"px-6 py-4 whitespace-nowrap",children:[null==e?void 0:e.final_price,(null==e?void 0:e.pay_over_counter_order_status_id)==3||(null==e?void 0:e.pay_over_counter_order_status_id)==5?"":"(approx.)"]}),(0,s.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:null==e?void 0:e.pay_over_counter_order_status}),(0,s.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:(null==e?void 0:e.pay_over_counter_order_status_id)==4||(null==e?void 0:e.pay_over_counter_order_status_id)==3?(0,s.jsx)("span",{className:"text-gray-500",children:"Cancel"}):(0,s.jsx)("a",{onClick:()=>eD(e.orderprd_id),className:"border border-primary px-4 py-2 rounded-md hover:bg-primary hover:text-white text-primary transition-colors duration-300 ease-in-out cursor-pointer",children:"Cancel"})}),(0,s.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:(null==e?void 0:e.view_status)==1?(0,s.jsx)("button",{onClick:()=>eB(e.orderprd_id),className:"border border-primary px-4 py-2 rounded-md hover:bg-primary hover:text-white text-primary transition-colors duration-300 ease-in-out cursor-pointer",children:"View"}):"-"})]},t))})]})})]})]}),(0,s.jsxs)("div",{className:"flex flex-col my-4 mt-5",children:[(0,s.jsx)("h3",{className:"font-bold text-xl md:text-2xl mb-4",children:"Payment Log:"}),(0,s.jsx)("div",{style:{overflowX:"auto",whiteSpace:"nowrap"}
1,className:"custom-scrollbar rounded-lg shadow-lg bg-white",children:(0,s.jsxs)("table",{className:"min-w-full bg-white rounded-lg",children:[(0,s.jsx)("thead",{className:"bg-primary text-white uppercase text-sm leading-normal",children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{className:"py-3 px-6 text-center",children:"S.NO"}),(0,s.jsx)("th",{className:"py-3 px-6 text-center",children:"Ref No"}),(0,s.jsx)("th",{className:"py-3 px-6 text-center",children:"Payment Mode"}),(0,s.jsx)("th",{className:"py-3 px-6 text-center",children:"Payment Date"}),(0,s.jsx)("th",{className:"py-3 px-6 text-center",children:"Paid Amount"})]})}),(0,s.jsx)("tbody",{className:"bg-white divide-y divide-gray-200",children:null==eC?void 0:eC.map((e,t)=>(0,s.jsxs)("tr",{className:t%2==0?"bg-gray-50":"bg-white",children:[(0,s.jsx)("td",{className:"py-3 px-6 text-center",children:t+1}),(0,s.jsx)("td",{className:"py-3 px-6 text-center",children:null==e?void 0:e.reference_number}),(0,s.jsx)("td",{className:"py-3 px-6 text-center",children:null==e?void 0:e.payment_mode}),(0,s.jsx)("td",{className:"py-3 px-6 text-center",children:null==e?void 0:e.payment_date}),(0,s.jsx)("td",{className:"py-3 px-6 text-center",children:D(null==e?void 0:e.amount,null==z?void 0:z.currency,null==z?void 0:z.currency_symbol)})]},t))})]})})]})]}),(0,s.jsx)(j.default,{isOpen:en,onClose:ey,partialPayments:ed,partialAmount:ep,setPartialAmount:ex,paymentGateways:eg,selectedPaymentGatewayId:ev,setSelectedPaymentGatewayId:ew,selectedPaymentMethodId:selectedPaymentMethodId,setSelectedPaymentMethodId:setSelectedPaymentMethodId,pendingPaymentFun:eR,pendingAmount:e_,totalAmount:(null==z?void 0:z.total_amount)||0,partialPaymentDetailes:em,currencyDatas:z,orderId:h}),(0,s.jsx)(N.Z,{paymentIframe:ej,onClose:eW}),(0,s.jsx)(n.Z,{isOpen:X,type:Q.type,title:Q.title,subText:Q.subText,onConfirm:Q.onConfirm,onClose:Q.onClose,showCloseIcon:Q.showCloseIcon,showConfirmButton:Q.showConfirmButton,showCancelButton:Q.showCancelButton,autoClose:Q.autoClose})]})};var k=!0;t.default=b},4298:function(e,t,a){e.exports=a(63573)}},function(e){e.O(0,[4617,5445,9866,7066,3495,5675,1664,9395,7681,6664,4300,5685,17,2940,5271,5813,9774,2888,179],function(){return e(e.s=75742)}),_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.