1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6430],{61381:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/customers/track-query",function(){return s(5428)}])},5428:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return g}});var a=s(85893),l=s(28646),n=s(9008),r=s.n(n),c=s(41664),i=s.n(c),d=s(67294),o=s(88446),x=s(29552),m=s(61839),u=()=>{let[e,t]=(0,d.useState)([]),[s,l]=(0,d.useState)([]),[n,c]=(0,d.useState)([]),[u,h]=(0,d.useState)(!1),[j,g]=(0,d.useState)(!1),[f,y]=(0,d.useState)(!1),b=async()=>{try{var e,t;h(!0),y(!1),g(!1);let s=await o.Z.post("/track_query/trackGeneralQuery",{query:4});Array.isArray(null==s?void 0:null===(e=s.data)||void 0===e?void 0:e.data)&&l(null==s?void 0:null===(t=s.data)||void 0===t?void 0:t.data)}catch(e){}},N=async()=>{try{var e,t;y(!0),g(!1),h(!1);let s=await o.Z.post("/track_query/trackAboutSalesOfYourCollection",{query:2});Array.isArray(null==s?void 0:null===(e=s.data)||void 0===e?void 0:e.data)&&c(null==s?void 0:null===(t=s.data)||void 0===t?void 0:t.data)}catch(e){}},v=async()=>{try{var e;g(!0),h(!1),y(!1);let s=await o.Z.post("/track_query/trackKnowAboutYourCollection",{query:3});Array.isArray(null==s?void 0:null===(e=s.data)||void 0===e?void 0:e.data)&&t(s.data.data)}catch(e){}};return(0,a.jsxs)("div",{className:"md:mx-28",children:[(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(r(),{children:(0,a.jsx)("title",{children:"Track Your Query"})})}),(0,a.jsxs)("div",{className:"container mx-auto xxxs:px-2 md:px-0",children:[(0,a.jsxs)("div",{className:"container mx-auto bg-gray-200 h-10 lg:my-3 rounded-md p-2 text-gray-500 xxxs:text-xs md:text-base",children:[(0,a.jsx)(i(),{className:"hover:text-red-700 xxxs:text-xs md:text-base",href:"/",children:"Home"}),"\xa0/\xa0",(0,a.jsx)(i(),{className:"hover:text-red-700 xxxs:text-xs md:text-base",href:"/customers",children:"Dashboard"}),"\xa0/\xa0",(0,a.jsx)(i(),{className:"hover:text-red-700 xxxs:text-xs md:text-base",href:"/customers/track-query",children:"Track Your Query"}),"\xa0/\xa0",f&&(0,a.jsx)(a.Fragment,{children:" About sales of your collection"}),u&&(0,a.jsx)(a.Fragment,{children:" General query"}),j&&(0,a.jsx)(a.Fragment,{children:"Know About Your Collection"})]}),(0,a.jsxs)("div",{className:"flex space-x-5 py-5",children:[(0,a.jsx)("button",{onClick:N,className:"p-2 ".concat(f?"bg-blue-500 text-white":"bg-gray-200 text-black"," active:bg-gray-300 rounded-md xxxs:text-tiny md:text-sm lg:text-base"),children:"About sales of your collection"}),(0,a.jsx)("button",{onClick:v,className:"p-2 ".concat(j?"bg-blue-500 text-white":"bg-gray-200 text-black"," active:bg-gray-300 rounded-md xxxs:text-tiny md:text-sm lg:text-base"),children:"Know about your collection"}),(0,a.jsx)("button",{onClick:b,className:"p-2 ".concat(u?"bg-blue-500 text-white":"bg-gray-200 text-black"," active:bg-gray-300 rounded-md xxxs:text-tiny md:text-sm lg:text-base"),children:"General query"})]}),(0,a.jsx)("div",{className:"w-full mb-5 max-w-full overflow-x-auto xxxs:px-2 md:px-0",children:(0,a.jsxs)("table",{className:"w-[1137px] bg-gray-100 ",children:[(0,a.jsx)("thead",{className:"h-14",children:(0,a.jsxs)("tr",{className:"bg-pink-200",children:[(0,a.jsx)("th",{className:"",children:"Ticket"}),(0,a.jsx)("th",{className:"",children:"Status"}),(f||j)&&(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("th",{className:"",children:"Your Images"})}),(0,a.jsx)("th",{className:"",children:"Reply"}),f||j?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("th",{className:"",children:"Date Time"})}):""]})}),u&&(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("tbody",{className:" text-center border-b-2",children:s.map((e,t)=>(0,a.jsxs)("tr",{className:"h-10",children:[(0,a.jsx)("td",{className:" font-sans font-bold",children:null==e?void 0:e.tracking_id}),(0,a.jsx)("td",{className:"",children:null==e?void 0:e.reply_status}),(0,a.jsx)("td",{className:" font-sans max-w-[230px] text-start",children:null==e?void 0:e.comments.replace(/<[^>]*>?/gm,"")})]}))})}),j&&(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("tbody",{className:" text-center ",children:e.map((e,t)=>(0,a.jsxs)("tr",{className:"h-10 border-b-2",children:[(0,a.jsx)("td",{className:" font-sans font-bold",children:null==e?void 0:e.tracking_id}),(0,a.jsx)("td",{className:"",children:null==e?void 0:e.reply_status}),(0,a.jsxs)("td",{className:"flex flex-row justify-center items-center gap-x-3",children:[(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)("div",{className:"font-semibold",children:(0,a.jsx)("h1",{children:"Front Image"})}),(0,a.jsx)("div",{className:"",children:(null==e?void 0:e.ffile)&&e.ffile.split(",").map((e,t)=>(0,a.jsx)("img",{height:150,width:150,src:"".concat(x.Z.CDN_URL_PUBLIC,"/uploads/contact_query/know_about/").concat(e.trim()),alt:"",className:"p-2"},t))})]}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)("div",{className:"font-semibold",children:(0,a.jsx)("h1",{children:"Back Image"})}),(0,a.jsx)("div",{children:(null==e?void 0:e.bfile)&&e.bfile.split(",").map((e,t)=>(0,a.jsx)("img",{height:150,width:150,src:"".concat(x.Z.CDN_URL_PUBLIC,"/uploads/contact_query/know_about/").concat(e.trim()),alt:"",className:"p-2"},t))})]})]}),(0,a.jsx)("td",{className:" font-sans max-w-[200px] text-start",children:null==e?void 0:e.comments.replace(/<[^>]*>?/gm,"")}),(0,a.jsx)("td",{className:" font-sans ",children:(0,m.Z)(null==e?void 0:e.contact_datetime,"dd MMM yyyy ")})]}))})}),f&&(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("tbody",{className:" text-center ",children:n.map((e,t)=>(0,a.jsxs)("tr",{className:"h-10 border-b-2",children:[(0,a.jsx)("td",{className:" font-sans font-bold",children:null==e?void 0:e.tracking_id}),(0,a.jsx)("td",{className:"",children:null==e?void 0:e.reply_status}),(0,a.jsxs)("td",{className:"flex flex-row justify-center items-center gap-x-2",children:[(0,a.jsxs)("div",{className:"flex flex-col ",children:[(0,a.jsx)("div",{className:"font-semibold",children:(0,a.jsx)("h1",{children:"Front Image"})}),(0,a.jsx)("div",{className:"",children:(null==e?void 0:e.ffile)&&e.ffile.split(",").map((e,t)=>(0,a.jsx)("img",{height:150,width:150,src:"".concat(x.Z.CDN_URL_PUBLIC,"/uploads/contact_query/").concat(e.trim()),alt:"",className:"p-2"},t))})]}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)("div",{className:"font-semibold",children:(0,a.jsx)("h1",{children:"Back Image"})}),(0,a.jsx)("div",{children:(null==e?void 0:e.bfile)&&e.bfile.split(",").map((e,t)=>(0,a.jsx)("img",{height:150,width:150,src:"".concat(x.Z.CDN_URL_PUBLIC,"/uploads/contact_query/").concat(e.trim()),alt:"",className:"p-2"},t))})]})]}),(0,a.jsx)("td",{className:" font-sans max-w-[200px] text-start",children:null==e?void 0:e.comments.replace(/<[^>]*>?/gm,"")}),(0,a.jsx)("td",{className:" font-sans",children:(0,m.Z)(null==e?void 0:e.contact_datetime,"dd MMM yyyy ")})]}))})})]})})]})]})},h=s(94543),j=s(48583),g=()=>{let e=(0,j.Dv)(h.ZP);return e.loading?(0,a.jsx)("p",{className:"md:mx-28 text-center p-5",children:"Loading..."}):e.isLoggedIn?(0,a.jsx)(u,{}):(0,a.jsx)(l.Z,{})}},28646:function(e,t,s){"use strict";var a=s(85893),l=s(41664),n=s.n(l),r=s(11163);s(67294),t.Z=()=>{let e=(0,r.useRouter)(),t=e.asPath;return(0,a.jsxs)("div",{className:"md:mx-28 text-center text-red-500 p-10 bg-gray-100 text-xl",children:["Your are not Logged in to use this functionality .......! ",(0,a.jsx)("br",{}),(0,a.jsx)(n(),{className:"text-blue-500",href:"/login?re_url=".concat(t),children:"Click here to Login"})]})}},61839:function(e,t,s){"use strict";var a=s(30120);t.Z=(e,t)=>{try{if(!e)return"Date does not exist";let s=new Date(e),l=s.valueOf();if("number"!=typeof l||isNaN(l))return"Invalid Date";let n={year:s.getUTCFullYear(),month:s.getUTCMonth(),date:s.getUTCDate(),hours:s.getUTCHours(),minutes:s.getUTCMinutes(),seconds:s.getUTCSeconds()},r=a.ou.fromObject({year:n.year,month:n.month+1,day:n.date,hour:n.hours,minute:n.minutes,second:n.seconds});if(t.length>0)return r.setZone("Asia/Kolkata").toFormat(t).toString();return r.setZone("Asia/Kolkata").toString()}catch(e){return console.error(e),"Invalid Date"}}},9008:function(e,t,s){e.exports=s(42636)}},function(e){e.O(0,[120,9774,2888,179],function(){return e(e.s=61381)}),_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.