1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5223,6868,1692,7212,3024],{40594:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/paytest",function(){return n(91244)}])},91244:function(e,t,n){"use strict";n.r(t);var r=n(47568),o=n(97582),s=n(85893),a=n(11163),i=(n(67294),n(46868));t.default=function(){var e=(0,a.useRouter)(),t=function(){var t=(0,r.Z)((function(t){var n,r,s,a,l;return(0,o.__generator)(this,(function(o){switch(o.label){case 0:t.preventDefault(),n=t.target.mobile.value,r=t.target.email.value,s=t.target.Fname.value,console.log("Mobile Number:",n),console.log("Email:",r),console.log("FullName:",s),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,(0,i.v_)("https://stag-tappayments.tapmad.com/pay/api/makeSafePayPayment",{MobileNo:n,Email:r,FullName:s,Version:"v1",Language:"en",ProductId:1008})];case 2:return a=o.sent(),console.log(a.data.User),e.push({pathname:"/auth",query:{user:JSON.stringify(a.data.User)}}),[3,4];case 3:return l=o.sent(),console.error("Payment error:",l),[3,4];case 4:return[2]}}
1))}));return function(e){return t.apply(this,arguments)}}();return(0,s.jsxs)("div",{className:"h-[100vh] flex flex-col items-center justify-center",children:[(0,s.jsx)("h2",{children:"Home Page"}),(0,s.jsxs)("form",{onSubmit:t,className:"flex flex-col gap-3 mt-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"mobile",className:"block font-medium",children:"Mobile Number:"}),(0,s.jsx)("input",{type:"text",id:"mobile",name:"mobile",className:"border text-black rounded px-3 py-1"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"email",className:"block font-medium",children:"Email:"}),(0,s.jsx)("input",{id:"email",name:"email",className:" text-black border rounded px-3 py-1"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"Fname",className:"block font-medium",children:"FullName:"}),(0,s.jsx)("input",{id:"Fname",name:"Fname",className:" text-black border rounded px-3 py-1"})]}),(0,s.jsx)("button",{type:"submit",className:"bg-blue-600 text-white px-4 py-2 rounded mt-2",children:"Submit"})]}),(0,s.jsx)("button",{onClick:function(){return e.push("/auth")},className:"mt-4 text-blue-500 underline",children:"Go to Authentication"})]})}},46868:function(e,t,n){"use strict";n.d(t,{EH:function(){return v},U2:function(){return f},_y:function(){return b},v_:function(){return g}});var r=n(47568),o=n(82670),s=n(26042),a=n(69396),i=n(97582),l=n(37638),u=n(55733),c=n(75681);function d(e){try{var t,o,s,a,d,v,p,m=null!==(a=null===e||void 0===e?void 0:e.responseCode)&&void 0!==a?a:null===e||void 0===e||null===(t=e.Response)||void 0===t?void 0:t.responseCode,h=null!==(p=null!==(v=null!==(d=null===e||void 0===e?void 0:e.message)&&void 0!==d?d:null===e||void 0===e||null===(o=e.Response)||void 0===o?void 0:o.message)&&void 0!==v?v:null===e||void 0===e?void 0:e.Message)&&void 0!==p?p:null===e||void 0===e||null===(s=e.Response)||void 0===s?void 0:s.Message;if(401==m&&l.V.getCookies("isAuth"))return(0,c.setisAuthenticateFalseCallback)(),(0,r.Z)((function(){return(0,i.__generator)(this,(function(e){switch(e.label){case 0:return[4,n.e(6737).then(n.t.bind(n,46737,23))];case 1:return e.sent().default({title:h,icon:"error",timer:3e3}).then((function(){location.href="/"})),[2]}}))}))(),!0}catch(f){(0,u.Cv)(f.message)}return!1}var v=null,p=function(){var e=new Date,t=function(e){return String(e).padStart(2,"0")},n=t(e.getDate()),r=t(e.getMonth()+1),o=t(e.getFullYear()%100),s=t(e.getHours()),a=t(e.getMinutes());return"".concat(n,"/").concat(r,"/").concat(o," - ").concat(s,":").concat(a)},m=function(e){if("object"===typeof e&&null!==e&&"code"in e){var t=e;return"ECONNABORTED"===t.code||"ERR_CANCELED"===t.code}return!1},h=function(){var e=(0,r.Z)((function(e,t,r,o,a,u,c){var d,p,m,h,f,g,b,y,N;return(0,i.__generator)(this,(function(i){switch(i.label){case 0:return[4,Promise.resolve().then(n.bind(n,62057)).then((function(e){return e.authStore.getState()}))];case 1:return d=i.sent().token,p=/tapshop-api|tapshop-stag-api/g.test(t),m=null!==a&&void 0!==a?a:{},h="number"===typeof e&&e>0?e:v,f=(0,s.Z)({"Content-Type":"application/json"},m),r&&(f["X-Forwarded-For"]=r),c&&(f.Referer=c),(null===d||void 0===d?void 0:d.length)>0&&(f.Authorization=d),g=function(e){return e||(l.V.getCookies("deviceId")||void 0)}(o),p&&g&&(f.DeviceID=g),b=new AbortController,y=null,h&&(y=setTimeout((function(){b.abort()}),h)),N=function(){b.abort()},u&&(u.aborted?b.abort():u.addEventListener("abort",N,{once:!0})),[2,{config:{headers:f,signal:b.signal,timeout:h,validateStatus:function(){return!0}},cancel:function(){y&&clearTimeout(y),null===u||void 0===u||u.removeEventListener("abort",N)}}]}}))}));return function(t,n,r,o,s,a,i){return e.apply(this,arguments)}}(),f=function(){var e=(0,r.Z)((function(e,t){var r,s,a,l,u,c,d,f,g,b,y,N=arguments;return(0,i.__generator)(this,(function(i){switch(i.label){case 0:return r=N.length>2&&void 0!==N[2]?N[2]:v,s=N.length>3?N[3]:void 0,a=N.length>4?N[4]:void 0,l=N.length>5?N[5]:void 0,u=N.length>6&&void 0!==N[6]?N[6]:{},[4,n.e(4991).then(n.bind(n,34991))];case 1:return c=i.sent().default,[4,h(r,e,t,a,u,l,s)];case 2:d=i.sent(),f=d.config,g=d.cancel,i.label=3;case 3:return i.trys.push([3,5,6,7]),[4,c.get(e,f)];case 4:return(b=i.sent()).status>399&&410!==b.status&&404!==b.status&&console.error("[http-service:get] Response error ".concat(JSON.stringify({timestamp:p(),apiUrl:e,status:b.status}))),[2,b];case 5:return y=i.sent(),m(y)?[2,null]:(console.error("[http-service:get] Request failed ".concat(JSON.stringify({timestamp:p(),apiUrl:e,message:(0,o.Z)(y,Error)?y.message:y,stack:(0,o.Z)(y,Error)?y.stack:void 0}))),[2,null]);case 6:return g(),[7];case 7:return[2]}}
1))}));return function(t,n){return e.apply(this,arguments)}}(),g=function(){var e=(0,r.Z)((function(e){var t,r,a,l,u,c,f,g,b,y,N,x,_,k,E,w,j=arguments;return(0,i.__generator)(this,(function(i){switch(i.label){case 0:return t=j.length>1&&void 0!==j[1]?j[1]:{},r=j.length>2?j[2]:void 0,a=j.length>3&&void 0!==j[3]?j[3]:v,l=j.length>4?j[4]:void 0,u=j.length>5?j[5]:void 0,c=j.length>6?j[6]:void 0,[4,n.e(4991).then(n.bind(n,34991))];case 1:return f=i.sent().default,[4,h(a,e,r,u,null===t||void 0===t?void 0:t.headers,c,l)];case 2:g=i.sent(),b=g.config,y=g.cancel,N=/tapshop-api|tapshop-stag-api/g.test(e),delete(x=(0,s.Z)({},t)).headers,"web"===(null===x||void 0===x?void 0:x.Platform)||N||(x.Platform="web"),i.label=3;case 3:return i.trys.push([3,5,6,7]),[4,f.post(e,x,b)];case 4:return _=i.sent(),k=_.data,E=d(k),_.status>399&&410!==_.status&&404!==_.status&&console.error("[http-service:post] Response error ".concat(JSON.stringify({timestamp:p(),apiUrl:e,status:_.status,payload:x}))),E?[2,null]:[2,_];case 5:return w=i.sent(),m(w)?[2,null]:(console.error("[http-service:post] Request failed",JSON.stringify({timestamp:p(),apiUrl:e,payload:x,message:(0,o.Z)(w,Error)?w.message:w,stack:(0,o.Z)(w,Error)?w.stack:void 0})),[2,null]);case 6:return y(),[7];case 7:return[2]}}
1))}));return function(t){return e.apply(this,arguments)}}();function b(e){if(e&&"data"in e){var t,n,r,o,i,l=e.data,u=null!==(r=l.responseCode)&&void 0!==r?r:null===(t=l.Response)||void 0===t?void 0:t.responseCode,c=null!==(i=null!==(o=l.message)&&void 0!==o?o:null===(n=l.Response)||void 0===n?void 0:n.message)&&void 0!==i?i:"Something went wrong!";if(void 0!==u)return(0,a.Z)((0,s.Z)({},l),{responseCode:u,message:c})}return null}}},function(e){e.O(0,[9774,2888,179],(function(){return t=40594,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.