PageSourceSearch

https://www.dhanalakshmijewellery.in/_next/static/chunks/pages/profile/BidAskDetails/[id]-65f045eb35bff3fe.js

js dhanalakshmijewellery.in collected 2026-10-02 01:58:07 UTC 29,162 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[59],{73342:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/profile/BidAskDetails/[id]",function(){return s(1122)}])},14762:function(e,t,s){"use strict";var a=s(85893),r=s(67294),i=s(43495),n=s(8193);let o=e=>{let{isOpen:t,type:s,title:o,subText:l,onConfirm:d,onClose:c,autoClose:m,confirmLabel:u="Confirm",cancelLabel:x="Cancel",showConfirmButton:h=!0,showCancelButton:p=!0,showCloseIcon:g=!0}=e,y=(0,r.useRef)(),[f,v]=(0,r.useState)(!0);(0,r.useEffect)(()=>{let e;return t&&m&&(e=setTimeout(c,1e3*m)),()=>clearTimeout(e)},[t,m,c]),(0,r.useEffect)(()=>{let e=e=>{y.current&&!y.current.contains(e.target)&&c()};return t?document.addEventListener("mousedown",e):document.removeEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[t,c]),(0,r.useEffect)(()=>{t&&v(!0)},[t]);let b=async()=>{await d(),v(!1)};return t?(0,a.jsxs)("div",{className:"fixed inset-0 flex items-center justify-center z-[9999] px-4 py-6 sm:px-0 ",children:[(0,a.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-50 transition-opacity"}),(0,a.jsxs)(i.E.div,{ref:y,className:"bg-white p-6 rounded-xl font-primary shadow-2xl relative z-10 w-full max-w-md ",initial:{opacity:0,y:-50},animate:{opacity:1,y:0},exit:{opacity:0,y:50},transition:{duration:.5,ease:"easeInOut"},children:[(0,a.jsx)(i.E.div,{className:"absolute inset-x-0 -top-8 flex justify-center",initial:{y:-20,opacity:0},animate:{y:0,opacity:1},transition:{duration:.7,ease:"easeInOut"},children:(0,a.jsx)("div",{className:"bg-white w-20 h-20 rounded-full flex items-center justify-center",children:(()=>{switch(s){case"success":return(0,a.jsx)(n.KP3,{className:"text-green-600 h-10 w-10"});case"error":return(0,a.jsx)(n.SV5,{className:"text-red-600 h-10 w-10"});case"warning":return(0,a.jsx)(n.SR5,{className:"text-yellow-600 h-10 w-10"});case"info":return(0,a.jsx)(n.ocf,{className:"text-blue-600 h-10 w-10"});default:return null}})()})}),g&&(0,a.jsx)("button",{onClick:c,className:"absolute top-3 right-3 text-gray-500 hover:text-gray-700",children:(0,a.jsx)(n.SV5,{className:"h-6 w-6"})}),(0,a.jsxs)("div",{className:"text-center mt-10",children:[(0,a.jsx)("h2",{className:"text-xl md:text-2xl font-semibold",children:o}),(0,a.jsx)("p",{className:"text-gray-600 mt-2",children:l})]}),f&&(p||h)&&(0,a.jsxs)("div",{className:"flex justify-center space-x-4 mt-6",children:[p&&(0,a.jsx)("button",{className:"bg-gray-500 hover:bg-gray-600 text-white px-4 py-2 rounded-full transition-all duration-200 ease-in-out",onClick:c,children:x}),h&&(0,a.jsx)("button",{className:"bg-blue-500 hover:bg-blue-600 text-white px-4 py-2 rounded-full transition-all duration-200 ease-in-out",onClick:b,children:u})]}),m&&(0,a.jsx)("div",{className:"mt-6 h-1 w-full bg-gray-100 rounded overflow-hidden relative",children:(0,a.jsx)(i.E.div,{className:"h-full bg-primary absolute left-0 top-0",initial:{width:"0%"},animate:{width:"100%"},transition:{ease:"linear",duration:m}})})]})]}):null};t.Z=o},15268:function(e,t,s){"use strict";var a=s(87066),r=s(43812);let i=r.BUILDER_URL,n=e=>{let{job_id:t,endpoint:s,payload:n,responseData:o,errorMsg:l}=e,d=JSON.stringify(n),c=JSON.stringify(l),m={responseData:JSON.stringify({job_id:t,endpoint:s,payLoad:d,responseData:o,error:c})};(0,r.isDevelopment)()||a.Z.post("".concat(i,"/error-log"),m).then(e=>{200===e.status&&console.log("Success response",e.data)}).catch(e=>{})};t.Z=n},73658:function(e,t,s){"use strict";var a=s(85893),r=s(67294),i=s(733),n=s.n(i),o=s(37351),l=s(25675),d=s.n(l);let c=()=>{let e=(0,r.useContext)(o.ThemeContext),[t,s]=(0,r.useState)("");return((0,r.useEffect)(()=>{e.splashLogo&&""!==e.splashLogo&&s(e.splashLogo)},[e]),t)?(0,a.jsx)("div",{className:"flex justify-center items-center py-40",children:(0,a.jsx)(d(),{width:144,height:144,src:t,alt:"Loading",className:"w-36 h-36 object-contain"})}):(0,a.jsx)("div",{className:"w-full h-full flex justify-center items-center py-40",children:(0,a.jsx)(n(),{type:"spinningBubbles",color:"#000000",height:"10%",width:"10%"})})};t.Z=c},4422:function(e,t,s){"use strict";var a=s(67294),r=s(82940),i=s(87066),n=s(37351);let o=()=>{let e="#";for(let t=0;t<6;t++)e+="0123456789ABCDEF"[Math.floor(16*Math.random())];return e},l=()=>{let e=new Date,t="".concat(e.getFullYear()).concat((e.getMonth()+1).toString().padStart(2,"0")).concat(e.getDate().toString().padStart(2,"0")).concat(e.getHours().toString().padStart(2,"0")).concat(e.getMinutes().toString().padStart(2,"0")).concat(e.getSeconds().toString().padStart(2,"0"));return t+o()},d=e=>{let t=(0,r.b)(),s=(0,a.useContext)(n.ThemeContext),o=async()=>
1{if(1===s.siteStatus){let a={};try{let r=await i.Z.get("https://api.ipify.org?format=json"),n=await i.Z.get("https://ipapi.co/".concat(r.data.ip,"/json/"));a=n.data}catch(c){console.warn("Failed to fetch IP details from ipapi.co. Trying fallback...");try{let o=await i.Z.get("https://ipwhois.app/json/");a=o.data}catch(d){console.warn("Failed to fetch IP details from fallback service. Proceeding without IP data.")}}let m={ipDetails:JSON.stringify(a),reference:window.location.hostname,track:"track",page:window.location.href,method:"open",page_type:e,UID:"",scode:l()};try{await t.post("user/tracking",m)}catch(u){console.error("Error sending tracking data:",u)}}else console.error("Tracking not enabled due to site status.")};return o};t.Z=d},1122:function(e,t,s){"use strict";s.r(t),s.d(t,{__N_SSP:function(){return k}});var a=s(85893),r=s(67294),i=s(5434),n=s(60155);s(25675);var o=s(11163),l=s(33654),d=s(41664),c=s.n(d),m=s(60017),u=s(85574),x=s(83253),h=s.n(x),p=s(82940),g=s(91819),y=s(61120),f=s.n(y);s(733);var v=s(43495),b=s(43812),w=s(73658),j=s(68015),N=s(15268),_=s(14762),E=s(4422);let C=()=>{let e=(0,r.useRef)(),t=()=>{let t=document.getElementById("downloadButton"),s=document.getElementById("downloadButton1"),a=document.getElementById("downloadButton2");[t,s,a].forEach(e=>{e&&(e.style.display="none")});let r=e.current;f()(r,{useCORS:!0,scale:2}).then(e=>{let r=210*e.height/e.width,i=r,n=new g.default("p","mm"),o=0;for(n.addImage(e.toDataURL("image/png"),"PNG",0,o,210,r),i-=395;i>=0;)o=i-r,n.addPage(),n.addImage(e.toDataURL("image/png"),"PNG",0,0,210,r),i-=395;n.save("invoice.pdf"),[t,s,a].forEach(e=>{e&&(e.style.display="block")})})},s=(0,o.useRouter)(),{openAuthPopup:d}=(0,l.Pd)(),{id:x}=s.query,[y,C]=(0,r.useState)(!0),{formatCurrency:k}=(0,r.useContext)(m.CurrencyContext),{clearUser:B,token:T,userDetails:S,shouldShowOnSite:P}=(0,r.useContext)(u.UserContext),[O,D]=(0,r.useState)(null),[R,I]=(0,r.useState)(!1),[L,F]=(0,r.useState)([]),[A,Z]=(0,r.useState)(!1),[q,U]=(0,r.useState)(""),[M,W]=(0,r.useState)(""),[J,z]=(0,r.useState)(""),V=(0,p.b)(),Y=(0,E.Z)("User Bid & Ask Details Page"),{jboId:H}=(0,j.useJobId)(),[G,X]=(0,r.useState)(!1),[K,Q]=(0,r.useState)({});(0,r.useEffect)(()=>{S&&null!==S.user_id||d(s.asPath)},[S,s]);let[$,ee]=(0,r.useState)({}),et=()=>{Z(!0)},es=e=>{Q(e),X(!0)},ea=()=>{X(!1),K.redirectOnClose&&s.push(K.redirectOnClose)};(0,r.useEffect)(()=>{if(O){let e={};O.order_product.forEach(t=>{e[t.orderprd_id]=t.renegotiate_touch}),ee(e)}},[O]);let er=(e,t)=>{ee(s=>({...s,[e]:t}))},ei=async()=>{try{let e={user_id:null==S?void 0:S.user_id,order_id:x},t=await V.post("user/orderView",e);C(!1),D(t.data)}catch(i){var s;let a={user_id:null==S?void 0:S.user_id,order_id:x},r=(null==i?void 0:null===(s=i.response)||void 0===s?void 0:s.data)?i.response.data:"";(0,N.Z)({job_id:H,endpoint:"user/orderView",payload:a,responseData:r,errorMsg:i}),C(!1)}};(0,r.useEffect)(()=>{ei(),Y()},[]);let en=async()=>{es({type:"warning",title:"Are you sure?",subText:"Do you want to renegotiate",confirmLabel:"Yes, renogotiate!",cancelLabel:"No, cancel",showCloseIcon:!1,showConfirmButton:!0,showCancelButton:!0,onConfirm:async()=>{try{let e={products:ex.map(e=>({bid_touch:$[e.orderprd_id],orderprd_id:e.orderprd_id})),order_id:eu[0].order_id};await V.post("user/ownerReEnquiry",e),es({type:"success",title:"Success!",subText:"ReEnquiry processed successfully.",onConfirm:ea,onClose:ea,autoClose:2,redirectOnClose:"/profile/BidAsk",showConfirmButton:!1,showCancelButton:!1})}catch(r){var t;let s={products:ex.map(e=>({bid_touch:$[e.orderprd_id],orderprd_id:e.orderprd_id})),order_id:eu[0].order_id},a=(null==r?void 0:null===(t=r.response)||void 0===t?void 0:t.data)?r.response.data:"";(0,N.Z)({job_id:H,endpoint:"user/ownerReEnquiry",payload:s,responseData:a,errorMsg:r}),es({type:"error",title:"Error!",subText:"There was an error processing your ReEnquiry.",onConfirm:ea,onClose:ea,autoClose:2,showConfirmButton:!1,showCancelButton:!1})}},onClose:ea})},eo=async e=>{try{let t={orderprd_id:e,user_id:null==S?void 0:S.user_id},s=await V.post("user/getBidValues",t);F(s.data.bid_history),I(!0)}catch(n){var a;let r={orderprd_id:e,user_id:null==S?void 0:S.user_id},i=(null==n?void 0:null===(a=n.response)||void 0===a?void 0:a.data)?n.response.data:"";(0,N.Z)({job_id:H,endpoint:"user/getBidValues",payload:r,responseData:i,errorMsg:n})}},el=async e=>{e.preventDefault();let t={order_id:x,amount:q,reference_no:M,remarks:J};try{let s=await V.post("user/ownerOrderConfirmation",t);200===s.status&&es({type:"success",title:"Success!",subText:"Your action was successful!",onConfirm:ea,onClose:ea,autoClose:3,redirectOnClose:"/profile/BidAsk",showConfirmButton:!1,showCancelButton:!1})}catch(i){var a;let r=(null==i?void 0:null===(a=i.response)||void 0===a?void 0:a.data)?i.response.data:"";(0,N.Z)({job_id:H,endpoint:"user/ownerOrderConfirmation",payload:t,responseData:r,errorMsg:i}),es({type:"error",title:"Error!",subText:"An error occurred. Please try again later.",onConfirm:ea,onClose:ea,autoClose:2,showConfirmButton:!1,showCancelButton:!1})}},ed=e=>{es({type:"warning",title:"Are you sure?",subText:"You won't be able to revert this!",confirmLabel:"Yes, delete it!",cancelLabel:"No, cancel",showCloseIcon:!1,showConfirmButton:!0,showCancelButton:!0,onConfirm:async()=>{let t={orderprd_id:e.orderprd_id,user_id:null==S?void 0:S.user_id,order_id:x};V.post("user/removeOrderProduct",t).then(e=>{es({type:"success",title:"Deleted!",subText:"Your file has been deleted.",autoClose:2,showConfirmButton:!1,showCancelButton:!1,onClose:ea}),ei()}).catch(e=>{es({type:"error",title:"Error!",subText:"An error occurred while deleting the address",autoClose:2,showConfirmButton:!1,showCancelButton:!1,onClose:ea})})},onClose:ea})};if(y)return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(w.Z,{})});let ec={hidden:{opacity:0,x:"-15vw"},visible:{opacity:1,x:0,transition:{type:"tween",ease:"easeOut",duration:1}}},em=O.customer[0],eu=O.order,ex=O.order_product,eh=O.removed_data,ep=ex.some(e=>"make_order"===e.product_availability),eg=ex.some(e=>"instock"===e.product_availability),ey=O.jbo;return(0,a.jsxs)(a.Fragment,{children:[A&&(0,a.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50",onClick:()=>Z(!1),children:(0,a.jsxs)("div",{className:"relative bg-white rounded-lg shadow-lg p-6 w-full max-w-xs sm:max-w-md md:max-w-lg lg:max-w-xl",onClick:e=>e.stopPropagation(),children:[(0,a.jsx)(n.Jvf,{className:"absolute top-3 right-3 text-2xl text-gray-500 cursor-pointer hover:text-gray-700",onClick:()=>Z(!1)}),(0,a.jsx)("h2",{className:"text-center text-xl md:text-2xl font-bold mb-6 text-gray-800",children:"Order Confirmation"}),(0,a.jsxs)("form",{onSubmit:el,className:"space-y-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"block text-gray-700 text-sm font-semibold mb-2",htmlFor:"amount",children:"Amount"}),(0,a.jsx)("input",{type:"text",id:"amount",value:q,onChange:e=>U(e.target.value),className:"w-full p-3 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-primary focus:border-primary transition duration-150 ease-in-out",required:!0})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"block text-gray-700 text-sm font-semibold mb-2",htmlFor:"referenceNo",children:"Payment Reference Number"}),(0,a.jsx)("input",{type:"text",id:"referenceNo",value:M,onChange:e=>W(e.target.value),className:"w-full p-3 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-primary focus:border-primary transition duration-150 ease-in-out",required:!0})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"block text-gray-700 text-sm font-semibold mb-2",htmlFor:"remarks",children:"Remarks"}),(0,a.jsx)("textarea",{id:"remarks",value:J,onChange:e=>z(e.target.value),className:"w-full p-3 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-primary focus:border-primary transition duration-150 ease-in-out"})]}),(0,a.jsx)("div",{className:"flex justify-center",children:(0,a.jsx)("button",{type:"submit",className:"bg-primary text-white font-bold py-2 px-6 rounded-md shadow-md transition duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-primary focus:ring-opacity-50 hover:bg-primary-dark",children:"Submit"})})]})]})}),(0,a.jsx)("div",{className:"xl:container px-4 mt-4 py-4 flex justify-between ",children:(0,a.jsxs)("div",{className:"flex gap-3 items-center",children:[(0,a.jsx)(c(),{href:"/profile/BidAsk",className:"text-primary text-base",children:(0,a.jsx)("i",{className:"fas fa-home"})}),(0,a.jsxs)("div",{className:"flex gap-3 items-center mt-1",children:[(0,a.jsx)("span",{className:"text-sm text-gray-500",children:(0,a.jsx)("i",{className:"fas fa-chevron-right "})}),(0,a.jsxs)("p",{className:"text-gray-500 font-medium uppercase ",children:[" ","Bid & Ask / Enquiry Details"," "]})]})]})}),(0,a.jsxs)(v.E.div,{className:"min-h-screen",variants:{hidden:{opacity:0,x:"-30vw"},visible:{opacity:1,x:0,transition:{type:"tween",ease:"easeOut",duration:.5,when:"beforeChildren",staggerChildren:.05}}},initial:"hidden",animate:"visible",children:[(0,a.jsxs)("div",{ref:e,className:"container mx-auto px-4 sm:px-6 lg:px-8 py-8",children:[(0,a.jsx)("div",{className:"p-4 sm:p-6 lg:p-8",children:(0,a.jsxs)("div",{className:"flex flex-col lg:flex-row justify-between",children:[(0,a.jsxs)("div",{className:"w-full lg:w-1/3",children:[(0,a.jsx)(v.E.h2,{variants:ec,className:"text-xl font-semibold text-gray-800",children:"Delivery Address"}),(0,a.jsx)(v.E.p,{variants:ec,className:"mt-2 text-gray-600",children:em.customer_name}),(0,a.jsxs)(v.E.p,{variants:ec,className:"text-gray-600",children:[em.customer_address,", ",em.customer_landmark]}),(0,a.jsxs)(v.E.p,{variants:ec,className:"text-gray-600",children:[em.customer_city,", ",em.customer_state]}),(0,a.jsxs)(v.E.p,{variants:ec,className:"text-gray-600",children:[em.customer_country," - ",em.customer_pincode]}),(0,a.jsxs)(v.E.p,{variants:ec,className:"text-gray-600",children:["Phone: ",em.customer_phoneno]}),(0,a.jsxs)(v.E.p,{variants:ec,className:"text-gray-600",children:["Email: ",em.customer_email]})]}),(0,a.jsxs)("div",{className:"w-full lg:w-1/3 lg:text-right mt-3 lg:mt-0",children:[(0,a.jsx)(v.E.h2,{variants:ec,className:"text-xl font-semibold text-gray-800",children:"Order Information"}),(0,a.jsxs)(v.E.p,{variants:ec,className:"mt-2 text-gray-600",children:["Order ID: ",eu[0].order_id]}),(0,a.jsxs)(v.E.p,{variants:ec,className:"text-gray-600",children:["Date: ",eu[0].order_date]}),ey.map((e,t)=>(0,a.jsxs)("div",{className:"w-full lg:mt-6",children:[(0,a.jsx)(v.E.h2,{variants:ec,className:"text-xl font-semibold text-gray-800 mt-3 lg:mt-0 ",children:"For Queries"}),(0,a.jsxs)(v.E.p,{variants:ec,className:"text-primary text-md mt-2 ",children:["Phone:",(0,a.jsx)(c(),{href:"tel:".concat(e.mobile),className:"ml-1",children:e.mobile})]}),(0,a.jsxs)(v.E.p,{variants:ec,className:"text-primary text-md ",children:["Email:",(0,a.jsx)(c(),{href:"mailto:".concat(e.client_email),className:"ml-1",children:e.client_email})]})]},t))]})]})}),eg&&(0,a.jsxs)(v.E.section,{variants:ec,"aria-labelledby":"in-stock-header",children:[(0,a.jsx)(v.E.h3,{variants:ec,id:"in-stock-header",className:"text-2xl font-bold mb-6 text-primary",children:"In Stock Products"}),(0,a.jsx)(v.E.div,{variants:ec,className:"space-y-6 md:space-y-0 md:grid md:grid-cols-1 lg:grid-cols-1 xl:grid-cols-2 gap-6",children:ex.filter(e=>"instock"===e.product_availability).map(e=>(0,a.jsxs)("div",{className:"flex flex-col md:flex-row items-center bg-gray-50 p-4 relative rounded-lg shadow",children:["Estimate Renegotiate"===eu[0].website_owner_bid_status_name&&(0,a.jsxs)("div",{className:"absolute top-0 right-0 p-2 group cursor-pointer",children:[(0,a.jsx)(i.eJU,{onClick:()=>eo(e.orderprd_id),className:"text-primary text-2xl "}),(0,a.jsx)("span",{className:"absolute top-full mb-2 hidden group-hover:block bg-primary text-white text-xs rounded py-1 px-2 right-0",children:"PrevBids"})]}
1),"Confirmed Orders"!==eu[0].website_owner_bid_status_name&&"Pending For Confirm'"!==eu[0].website_owner_bid_status_name&&(0,a.jsxs)("div",{className:"absolute bottom-0 right-0 p-2 group cursor-pointer",onClick:()=>ed(e),children:[(0,a.jsx)(i.F1H,{className:"text-red-600 text-2xl"}),(0,a.jsx)("span",{className:"absolute top-full mb-2 hidden group-hover:block bg-red-500 text-white text-xs rounded py-1 px-2 right-0",children:"Delete"})]}),(0,a.jsx)(v.E.img,{variants:ec,src:(0,b.setImageSrc)(e.product_img,""),alt:e.product_name,className:"w-[80%] md:w-[30%] lg:w-1/4 xl:w-1/3 h-auto xl:h-full object-cover rounded-lg"}),(0,a.jsxs)(v.E.div,{variants:ec,className:"mt-4 md:mt-0 md:ml-4 flex-grow",children:[(0,a.jsx)(v.E.h3,{variants:ec,className:"text-xl font-bold text-gray-800 capitalize",children:e.product_name}),(0,a.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-x-4 gap-y-2 mt-2",children:[(0,a.jsxs)(v.E.p,{variants:ec,className:"text-gray-600",children:["Tag Label: ",e.tag_label]}),P&&(0,a.jsxs)(v.E.p,{variants:ec,className:"text-gray-600",children:["Price
1: ",k(e.price)]}),P&&(0,a.jsxs)(v.E.p,{variants:ec,className:"text-gray-600",children:["Touch: ",e.touch]}),(0,a.jsxs)(v.E.p,{variants:ec,className:"text-gray-600",children:["Bid Touch: ",e.bid_touch]}),(0,a.jsxs)(v.E.p,{variants:ec,className:"text-gray-600",children:["Weight: ",e.weight," g"]}),P&&(0,a.jsxs)(v.E.p,{variants:ec,className:"text-gray-600",children:["Pure Weight: ",e.pure_weight," g"]}),P&&(0,a.jsxs)(v.E.p,{variants:ec,className:"text-gray-600",children:["Taxable Amount:"," ",k(e.purchase_price)]}),e.delivery_date&&(0,a.jsxs)(v.E.p,{variants:ec,className:"text-gray-600",children:["Delivery Date: ",e.delivery_date]})]}),"Estimate Renegotiate"===eu[0].website_owner_bid_status_name?(0,a.jsxs)("div",{className:"flex justify-center items-center py-2",children:[(0,a.jsxs)(v.E.span,{variants:ec,className:"text-gray-600",children:[" ","Negotiate Touch :"," "]}),(0,a.jsx)(v.E.input,{variants:ec,type:"text",value:$[e.orderprd_id]||"",onChange:t=>er(e.orderprd_id,t.target.value),className:"ml-4 w-1/2 lg:w-1/2 text-gray-700 border border-gray-300 rounded-lg p-2 focus:border-gray-400 focus:outline-none focus:ring focus:ring-gray-200 focus:ring-opacity-50 transition ease-in-out duration-150"})]}):(0,a.jsx)(a.Fragment,{children:0!==e.renegotiate_touch&&(0,a.jsxs)(v.E.p,{variants:ec,className:"text-gray-600 mt-2",children:["Negotiation Touch: ",e.renegotiate_touch]})})]})]},e.orderprd_id))})]}),ep&&(0,a.jsxs)(v.E.section,{variants:ec,"aria-labelledby":"make-order-header",className:"mt-12",children:[(0,a.jsx)(v.E.h3,{variants:ec,id:"make-order-header",className:"text-2xl sm:text-2xl font-bold mb-6 text-primary",children:"Make Order Products"}),(0,a.jsx)(v.E.div,{variants:ec,className:"space-y-6 md:space-y-0 md:grid md:grid-cols-1 lg:grid-cols-1 xl:grid-cols-2 gap-6",children:ex.filter(e=>"make_order"===e.product_availability).map(e=>(0,a.jsxs)(v.E.div,{variants:ec,className:"flex flex-col md:flex-row items-center bg-gray-50 p-4 relative rounded-lg shadow",children:["Estimate Renegotiate"===eu[0].website_owner_bid_status_name&&(0,a.jsxs)("div",{className:"absolute top-0 right-0 p-2 group cursor-pointer",children:[(0,a.jsx)(i.eJU,{onClick:()=>eo(e.orderprd_id),className:"text-primary text-2xl "}),(0,a.jsx)("span",{className:"absolute top-full mb-2 hidden group-hover:block bg-primary text-white text-xs rounded py-1 px-2 right-0",children:"PrevBids"})]}),"Confirmed Orders"!==eu[0].website_owner_bid_status_name&&"Pending For Confirm'"!==eu[0].website_owner_bid_status_name&&(0,a.jsxs)("div",{className:"absolute bottom-0 right-0 p-2 group cursor-pointer",onClick:()=>ed(e),children:[(0,a.jsx)(i.F1H,{className:"text-red-600 text-2xl"}),(0,a.jsx)("span",{className:"absolute top-full mb-2 hidden group-hover:block bg-red-500 text-white text-xs rounded py-1 px-2 right-0",children:"Delete"})]}),(0,a.jsx)(v.E.img,{variants:ec,src:(0,b.setImageSrc)(e.product_img,""),alt:e.product_name,className:"w-full md:w-1/3 lg:w-1/4 xl:w-1/3 h-auto object-cover rounded-lg"}),(0,a.jsxs)(v.E.div,{variants:ec,className:"mt-4 md:mt-0 md:ml-4 flex-grow",children:[(0,a.jsx)(v.E.h3,{variants:ec,className:"text-xl font-bold text-gray-800 capitalize",children:e.product_name}),(0,a.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-x-4 gap-y-2 mt-2",children:[(0,a.jsxs)(v.E.p,{variants:ec,className:"text-gray-600",children:["Tag Label: ",e.tag_label]}),P&&(0,a.jsxs)(v.E.p,{variants:ec,className:"text-gray-600",children:["Price
1: ",k(e.price)]}),P&&(0,a.jsxs)(v.E.p,{variants:ec,className:"text-gray-600",children:["Touch: ",e.touch]}),(0,a.jsxs)(v.E.p,{variants:ec,className:"text-gray-600",children:["Bid Touch: ",e.bid_touch]}),(0,a.jsxs)(v.E.p,{variants:ec,className:"text-gray-600",children:["Weight: ",e.weight," g"]}),P&&(0,a.jsxs)(v.E.p,{variants:ec,className:"text-gray-600",children:["Pure Weight: ",e.pure_weight," g"]}),P&&(0,a.jsxs)(v.E.p,{variants:ec,className:"text-gray-600",children:["Taxable Amount:"," ",k(e.purchase_price)]}),e.delivery_date&&(0,a.jsxs)(v.E.p,{variants:ec,className:"text-gray-600",children:["Delivery Date: ",e.delivery_date]})]}),"Estimate Renegotiate"===eu[0].website_owner_bid_status_name?(0,a.jsxs)("div",{className:"flex justify-center items-center py-2",children:[(0,a.jsxs)(v.E.span,{variants:ec,className:"text-gray-600",children:[" ","Negotiate Touch :"," "]}),(0,a.jsx)(v.E.input,{variants:ec,type:"text",value:$[e.orderprd_id]||"",onChange:t=>er(e.orderprd_id,t.target.value),className:"ml-4 w-1/2 lg:w-1/2 text-gray-700 border border-gray-300 rounded-lg p-2 focus:border-gray-400 focus:outline-none focus:ring focus:ring-gray-200 focus:ring-opacity-50 transition ease-in-out duration-150"})]}):(0,a.jsx)(a.Fragment,{children:0!==e.renegotiate_touch&&(0,a.jsxs)(v.E.p,{variants:ec,className:"text-gray-600 mt-2",children:["Negotiation Touch: ",e.renegotiate_touch]})}),(0,a.jsx)(h(),{isOpen:R,onRequestClose:()=>I(!1),className:"fixed inset-0 z-50 overflow-y-auto",overlayClassName:"fixed inset-0 bg-black bg-opacity-50",contentLabel:"Bid History Modal",children:(0,a.jsx)("div",{className:"flex items-center justify-center min-h-screen pt-0 md:pt-20",children:(0,a.jsxs)("div",{className:"bg-white rounded-lg shadow-xl m-4 sm:m-8 p-5 relative",style:{maxWidth:"90vw",width:"1000px"},children:[(0,a.jsx)(n.Jvf,{className:"absolute top-0 text-red-500 right-0 m-4 text-2xl cursor-pointer",onClick:()=>I(!1)}),(0,a.jsx)("h2",{className:"text-center text-2xl font-bold mb-4 ",children:"Bid History"}),(0,a.jsx)("div",{className:"overflow-auto max-h-[35vh] md:max-h-[45vh] lg:max-h-[55vh] xl:max-h-[75vh] scrollbar-thin scrollbar-thumb-gray-400 scrollbar-track-gray-200",children:(0,a.jsxs)("table",{className:"min-w-full divide-y divide-gray-200",children:[(0,a.jsx)("thead",{className:"bg-gray-800 text-white",children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-white uppercase tracking-wider",children:"Bid Touch"}),(0,a.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-white uppercase tracking-wider",children:"Bid Raised Time"}),(0,a.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-white uppercase tracking-wider",children:"Re-Negotiate Touch"}),(0,a.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-white uppercase tracking-wider",children:"Bid Renegotiated Time"}),(0,a.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-white uppercase tracking-wider",children:"Remarks"})]})}),(0,a.jsx)("tbody",{className:"bg-white divide-y divide-gray-200",children:L.map((e,t)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{className:"px-6 py-4 whitespace-nowrap text-sm text-gray-500",children:e.ask_bid}),(0,a.jsx)("td",{className:"px-6 py-4 whitespace-nowrap text-sm text-gray-500",children:e.Bid_Raised_Time}),(0,a.jsx)("td",{className:"px-6 py-4 whitespace-nowrap text-sm text-gray-500",children:e.re_negotiate}),(0,a.jsx)("td",{className:"px-6 py-4 whitespace-nowrap text-sm text-gray-500",children:e.bid_renegotiated_time}),(0,a.jsx)("td",{className:"px-6 py-4 whitespace-nowrap text-sm text-gray-500",children:e.remarks})]},t))})]})})]})})})]})]},e.orderprd_id))})]}),eh&&eh.length>0&&(0,a.jsxs)(v.E.section,{variants:ec,"aria-labelledby":"removed-products-header",className:"my-10",children:[(0,a.jsx)(v.E.h3,{variants:ec,id:"removed-products-header",className:"text-2xl font-bold mb-6 text-primary",children:"Removed Products"}),(0,a.jsx)(v.E.div,{variants:ec,className:"space-y-6 md:space-y-0 md:grid md:grid-cols-1 lg:grid-cols-1 xl:grid-cols-2 gap-6 ",children:eh.map(e=>(0,a.jsxs)("div",{className:"flex flex-col md:flex-row items-center bg-gray-50 p-4 relative rounded-lg shadow",children:[(0,a.jsx)(v.E.img,{variants:ec,src:e.product_img?(0,b.setImageSrc)(e.product_img,""):"path/to/default/image",alt:e.product_name,className:"w-[80%] md:w-[30%] lg:w-1/4 xl:w-1/3 h-auto xl:h-full object-cover rounded-lg"}),(0,a.jsxs)(v.E.div,{variants:ec,className:"mt-4 md:mt-0 md:ml-4 flex-grow",children:[(0,a.jsx)(v.E.h3,{variants:ec,className:"text-xl font-bold text-gray-800 capitalize",children:e.product_name}),(0,a.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-x-4 gap-y-2 mt-2",children:[P&&(0,a.jsxs)(v.E.p,{variants:ec,className:"text-gray-600",children:["Price
1: ",k(e.price)]}),P&&(0,a.jsxs)(v.E.p,{variants:ec,className:"text-gray-600",children:["Touch: ",e.touch]}),(0,a.jsxs)(v.E.p,{variants:ec,className:"text-gray-600",children:["Bid Touch: ",e.bid_touch]}),(0,a.jsxs)(v.E.p,{variants:ec,className:"text-gray-600",children:["Weight: ",e.weight," g"]}),P&&(0,a.jsxs)(v.E.p,{variants:ec,className:"text-gray-600",children:["Pure Weight: ",e.pure_weight," g"]}),P&&(0,a.jsxs)(v.E.p,{variants:ec,className:"text-gray-600",children:["Taxable Amount:"," ",k(e.purchase_price)]}),P&&(0,a.jsxs)(v.E.p,{variants:ec,className:"text-gray-600",children:["Tax Included Price:"," ",k(e.purchase_price_with_tax)]}),e.delivery_date&&(0,a.jsxs)(v.E.p,{variants:ec,className:"text-gray-600",children:["Delivery Date: ",e.delivery_date]})]})]})]},e.orderprd_id))})]}),0!==eu[0].total_amount&&(0,a.jsxs)(v.E.div,{variants:ec,className:"mt-8 py-4 bg-gray-50 rounded-lg shadow flex flex-col sm:flex-row justify-between items-center",children:[P&&(0,a.jsxs)(v.E.p,{variants:ec,className:"text-gray-600 ml-3 text-xl mb-0 flex items-center justify-center",children:["Total Price: ",k(eu[0].total_amount)]}),(0,a.jsxs)(v.E.div,{variants:ec,className:"flex space-x-4 ml-3 lg:ml-0 mr-3",children:[(0,a.jsx)(v.E.button,{variants:ec,id:"downloadButton",onClick:t,className:"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded hidden lg:block",children:"Print"}),"Estimate Renegotiate"===eu[0].website_owner_bid_status_name&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(v.E.button,{variants:ec,id:"downloadButton1",onClick:en,className:"bg-yellow-500 hover:bg-yellow-600 text-white font-bold py-2 px-4 rounded",children:"ReEnquiry"}),(0,a.jsx)(v.E.button,{variants:ec,id:"downloadButton2",onClick:et,className:"bg-primary text-white font-bold py-2 px-4 rounded",children:"Confirm"})]})]})]})]}),(0,a.jsx)(_.Z,{isOpen:G,type:K.type,title:K.title,subText:K.subText,onConfirm:K.onConfirm,onClose:ea,autoClose:K.autoClose,confirmLabel:K.confirmLabel,cancelLabel:K.cancelLabel,showConfirmButton:K.showConfirmButton,showCancelButton:K.showCancelButton,showCloseIcon:!0,redirectOnClose:K.redirectOnClose})]})]})};var k=!0;t.default=C},92703:function(e,t,s){"use strict";var a=s(50414);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,s,r,i,n){if(n!==a){var o=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}function t(){return e}e.isRequired=e;var s={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return s.PropTypes=s,s}},45697:function(e,t,s){e.exports=s(92703)()},50414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},function(e){e.O(0,[4617,1228,260,5443,7847,7066,3495,5675,1664,733,3253,9370,17,2940,9774,2888,179],function(){return e(e.s=73342)}),_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.