1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2531],{73068:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/m/pnr-status",function(){return n(40395)}])},93773:function(e,t,n){"use strict";n.d(t,{GF:function(){return I},L5:function(){return j},LS:function(){return F},Ms:function(){return b},RY:function(){return N},SU:function(){return S},Tc:function(){return P},Ur:function(){return C},cF:function(){return B},hy:function(){return T},pT:function(){return y}});var r=n(85893),a=n(67294),i=n(7115),o=n.n(i),s=n(61319),c=n.n(s),l=n(1531),u=n(25675),d=n.n(u),p=n(99685),h=n(75321),f=n(9473),m=n(99261);function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){v(e,t,n[t])}))}return e}function x(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(c){s=!0,a=c}finally{try{o||null==n.return||n.return()}finally{if(s)throw a}}return i}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return _(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e){var t=e.children,n=e.onClose,a=void 0===n?function(){}:n,i=e.bodyAlign,s=void 0===i?"flexCenter":i;return(0,r.jsx)("div",{id:"fadeBg",className:"".concat(o().modalBackdrop," ").concat(o().fade," ").concat(s),onClick:function(e){a(e)},children:t})}function b(e){var t=e.message;return"string"==typeof t?(0,r.jsx)("p",{children:t}):(0,r.jsx)("div",{className:o().message,children:t.map((function(e,t){return(0,r.jsx)("p",{children:e},"message_".concat(t))}))})}var w=function(e){var t=e.message,n=void 0===t?"":t,a=e.onClose,i=e.Title,s=void 0===i?{Titledom:function(){},timeoutHandler:function(){}}:i,c=e.Body,l=void 0===c?b:c,u=e.blankSection,d=void 0!==u&&u,p=s.Titledom,h=s.timeoutHandler;return 1==d?(0,r.jsx)(l,{message:n}):(0,r.jsx)(y,{children:(0,r.jsx)("div",{className:"".concat(o().block," ").concat(o().marginTop60),children:(0,r.jsx)("div",{className:o().dialog,children:(0,r.jsxs)("div",{className:"modal-content",children:[(0,r.jsx)(p,{timeoutHandler:h}),(0,r.jsxs)("div",{className:"modal-body",children:[(0,r.jsx)(l,{message:n}),(0,r.jsx)("button",{type:"button",className:"btn btn-block ".concat(o().continue),onClick:function(){return a()},children:"Okay"})]})]})})})})};function j(e){var t=e.message;return"string"==typeof t?(0,r.jsx)("p",{style:{padding:"0px 45px 30px 45px",margin:"0px",textAlign:"center",color:"#000",fontSize:"1.8rem",fontWeight:"400",lineHeight:"normal"},children:t}):(0,r.jsx)("div",{className:o().message,children:t.map((function(e,t){return(0,r.jsx)("p",{children:e},"message_".concat(t))}))})}var k=function(e){var t=e.message,n=void 0===t?"":t,a=e.onClose,i=e.Title,s=void 0===i?{Titledom:function(){},timeoutHandler:function(){}}:i,c=e.Body,u=void 0===c?{BodyDom:b}:c,d=e.submit,p=void 0===d?{}:d,h=s.Titledom,f=(s.closeHandle,u.BodyDom),m=u.actions,_=p.SubmitDom,v=p.Submitactions;return(0,r.jsx)(y,{onClose:function(){return a()},children:(0,r.jsx)("div",{className:"".concat(o().block," "),style:{width:"35%"},onClick:function(e){return e.stopPropagation()},children:(0,r.jsx)("div",{className:o().dialog,children:(0,r.jsxs)("div",{className:"modal-content",style:{padding:"5% 9.2% 5.49% 9.2%"},children:[(0,r.jsx)(h,{close:a}),(0,r.jsxs)("div",{style:{padding:"15px 0px"},children:[(0,r.jsx)(f,{message:n,actions:m}),(0,l.PR)(_)?(0,r.jsx)(_,{actions:v}):(0,r.jsx)("button",{type:"button",className:"btn btn-block ".concat(o().continue),onClick:function(){return a()},children:"Okay"})]})]})})})})},C=function(e){var t=e.message,n=void 0===t?"You enabled One-Click Tatkal reminder":t,i=e.customStyle,s=void 0===i?{bottom:"0px"}:i,c=e.callback,u=void 0===c?function(){window.location.href="http://m.rytr.in/home-page"}:c;if((0,l.PR)(n)){var p=(0,a.useState)(10),h=p[0],f=p[1];if((0,a.useEffect)((function(){if(h>0){var e=setTimeout((function(){f(h-1)}),100);return function(){return clearTimeout(e)}}}),[h]),0!=h)return(0,r.jsx)("div",{className:"flexCenter",children:(0,r.jsxs)("div",{className:"flexRow flexCenter ".concat(o().notificationContainer),style:g({},s),children:[(0,r.jsx)("span",{style:{height:"21.989px",width:"21.989px"},children:(0,r.jsx)(d(),{height:89,width:89,src:"https://images.railyatri.in/ry_images_prod/Vector4-1722966711.png",alt:"Loading..."})}),(0,r.jsx)("p",{className:"no-marg no-pad",children:n})]})});u()}};function N(e){var t=e.message,n=t.bookingID,i=t.userID,s=t.endTime,c=t.setNotificationMessage,u=t.text,h=t.trainNumber,f=t.trainName,m=t.fromCode,_=t.toCode,v=t.doj,g=t.className,b=t.passengerCount,w=t.user_id,j=t.appversion,k=t.journeyfrom,C=t.journeyto,N=x(s.split(":"),3),S=N[0],T=N[1],P=N[2],I=new Date;I.setHours(parseInt(S)),I.setMinutes(parseInt(T)),I.setSeconds(parseInt(P));var B=(I-new Date)/6e4,F=(0,a.useState)(B),R=F[0],A=F[1];if((0,a.useEffect)((function(){if(R>0){var e=setTimeout((function(){A(R-1)}),6e4);return function(){return clearTimeout(e)}}}),[R]),0!=R){var O="".concat(Math.floor(R/60)),E=v.split("-"),D={user_id:w,event_name:"Tatkal Open Reminder",event_data_hash:{"ECOMM TYPE":"TRAIN",Train_Number:h,TrainName:f,From_StationCode:m,To_StationCode:_,journeyfrom:k,journeyto:C,BookingId:n,TimeStampforOneClick:(0,l.hT)("d/m/Y H:m:s a",new Date),Date_Of_Journey:(0,l.hT)("d/m/Y H:m:s a",new Date("".concat(E[1],"/").concat(E[0],"/").concat(E[2]))),PassengerCount:b,Journey_Class:g,SOURCE:"quick-search-box",src:"Train Ticket",AppVersionCode:j,NotificationTime:"".concat((0,l.hT)("d/m/Y",new Date)," ").concat(s," am")}};return(0,p.yW)("","",{step:"TatkalReminderShow",alt_availability:"",trip_guarantee:""}),(0,r.jsx)(y,{bodyAlign:"flexBottom",onClose:function(){return A(0)},children:(0,r.jsxs)("div",{className:"flexCol",children:[(0,r.jsx)("div",{className:o().crossIcn,children:(0,r.jsx)("span",{onClick:function(){return A(0)},children:"\u2715"})}),(0,r.jsxs)("div",{className:o().popupContainer,children:[(0,r.jsx)("div",{className:o().tip,children:(0,r.jsxs)("span",{className:"flexCenter",style:{fontStyle:"italic"},children:[(0,r.jsx)("span",{style:{width:"14.94px"},children:(0,r.jsx)(d(),{height:60,width:61,src:"https://images.railyatri.in/ry_images_prod/Group-1948755086-1722921131.png",alt:"Loading..."})}),"Tip: Enabling this will save you 2 minutes"]})}),(0,r.jsxs)("div",{className:o().header,children:[(0,r.jsxs)("h3",{style:{fontSize:"20px",fontWeight:"700",lineHeight:"24px"},children:[u,(0,r.jsxs)("span",{style:{fontSize:"22px",fontWeight:"800",lineHeight:"26.4px",color:"#A8803C"},children:[0==O?" ".concat(R%60<10?"0".concat(Math.round(Math.floor(R%60))):Math.round(Math.floor(R%60))):" ".concat(O.length>1?"".concat(O):"0".concat(O),"h ").concat(R%60<10?"0".concat(Math.round(Math.floor(R%60))):Math.round(Math.floor(R%60))," ")," mins"]})]}),(0,r.jsxs)("p",{style:{color:"#4C4C4C",fontSize:"14px",fontWeight:"400",marginTop:"6.09px"},children:["We will save your progress and alert",(0,r.jsx)("br",{})," you when Tatkal opens at ",S,":",T," AM"]})]}),(0,r.jsxs)("button",{className:"".concat(o().enableButton," flexCenter"),onClick:function(){(0,p.kP)({userId:i,bookingId:n}).then((function(e){1==e&&((0,p.ds)("","","",D),c("You enabled One-Click Tatkal reminder"),A(0))}))},children:[(0,r.jsxs)("span",{style:{width:"17.748px",height:"19.416px"},children:[" ",(0,r.jsx)(d(),{height:72,width:79,src:"https://images.railyatri.in/ry_images_prod/Group-1948755099-1722922399.png",alt:"Loading..."})," "]}),"Enable One-Click Tatkal"]}
1),(0,r.jsx)("button",{className:o().noThanksButton,onClick:function(){return A(0)},children:"No, Thanks"}),(0,r.jsxs)("div",{className:o().footer,children:[(0,r.jsx)("h4",{children:"How it works?"}),(0,r.jsxs)("div",{className:o().footerIcons,children:[(0,r.jsxs)("div",{className:o().footerContainer,children:[(0,r.jsxs)("div",{className:o().icon,children:[" ",(0,r.jsx)("img",{style:{width:"30.977px",height:"34.22px",marginLeft:" 12px"},src:"https://images.railyatri.in/ry_images_prod/Frame-1171275155-1722934124.png",alt:"Train & Passenger Data Saved"})," "]}),(0,r.jsx)("div",{className:o().text,children:"Train & Passenger Data Saved"})]}),(0,r.jsxs)("div",{className:o().footerContainer,children:[(0,r.jsxs)("div",{className:o().icon,children:[" ",(0,r.jsx)("img",{style:{width:"28.819px",height:"24.052px"},src:"https://images.railyatri.in/ry_images_prod/image-105-1722934429.png",alt:"Tatkal alert popup when Tatkal opens"})," "]}),(0,r.jsx)("div",{className:o().text,children:"We will alert when Tatkal opens"})]}),(0,r.jsxs)("div",{className:o().footerContainer,children:[(0,r.jsxs)("div",{className:o().icon,children:[" ",(0,r.jsx)("img",{style:{width:"33.318px",height:"23.66px"},src:"https://images.railyatri.in/ry_images_prod/two-tickets-blue-front-view-isolated-white-1-1722934472.png",alt:"Review & Pay. Ticket ready!"})," "]}),(0,r.jsx)("div",{className:o().text,children:"Review, Pay and Get Ticket!"})]})]})]})]})]})})}}function S(e){var t=e.timeOverCallBack,n=void 0===t?function(){}:t,i=e.initialTime,o=void 0===i?59:i,s=(0,a.useRef)(null),c=(0,a.useState)({min:"0",sec:String(o).padStart(2,"0")}),l=c[0],u=c[1],d=function(e){var t=function(e){var t=Date.parse(e)-Date.parse(new Date);return{total:t,seconds:Math.floor(t/1e3%60)}}(e),r=t.total,a=t.seconds;r>=0?u({min:"0",sec:a>9?a:"0"+a}):(n(),clearInterval(s.current))};return(0,a.useEffect)((function(){return function(e){u({min:"0",sec:String(o).padStart(2,"0")}),s.current&&clearInterval(s.current);var t=setInterval((function(){d(e)}),1e3);s.current=t}(function(){var e=new Date;return e.setSeconds(e.getSeconds()+o),e}()),function(){s.current&&clearInterval(s.current)}}),[o]),(0,r.jsxs)("span",{children:[(0,r.jsx)("span",{children:l.min})," :"," ",(0,r.jsxs)("span",{children:[" ",l.sec," "]}),(0,r.jsx)("span",{children:" s "})]})}function T(e){var t=e.close,n=void 0===t?function(){}:t,a=e.message,i=void 0===a?"Somthing Wrong":a;return(0,r.jsx)("div",{className:o().container,children:(0,r.jsxs)("div",{className:"card-shadow bg-w radius-4 flexCol",children:[(0,r.jsxs)("div",{className:"flexRow ".concat(o().body),style:{paddingTop:"23px",paddingBottom:"31.31px"},children:[(0,r.jsx)("span",{className:"flex1 flexCenter",children:(0,r.jsx)(d(),{height:154,width:190,src:"https://images.railyatri.in/ry_images_prod/img1-1715579743.png"})}),(0,r.jsx)("span",{className:"black ".concat(o().rightSection),onClick:function(){n()},children:(0,r.jsx)(d(),{height:126,width:126,src:"https://images.railyatri.in/ry_images_prod/Group-110712-1730890415.png",alt:"clear"})})]}),(0,r.jsxs)("div",{className:"flexCol flexCenter ".concat(o().body),children:[(0,r.jsxs)("span",{className:o().message,children:[i," "]}),(0,r.jsx)("button",{className:o().submit,onClick:function(){n()},children:"Okay "})]})]})})}function P(e){var t=e.close,n=void 0===t?function(){}:t,a=e.message,i=void 0===a?"":a,s=e.title,c=void 0===s?"":s,l=e.btnText,u=void 0===l?"Okay":l,p=e.responceAction,_=e.okayAction,v=void 0===_?null:_,g=(0,f.I0)();(0,f.v9)(m.dy);return(0,r.jsx)("div",{className:o().container,onClick:function(e){return e.stopPropagation()},children:(0,r.jsxs)("div",{className:"card-shadow bg-w radius-4 flexCol",children:[(0,r.jsxs)("div",{className:"flexCol ".concat(o().body),style:{paddingTop:"34.84px",paddingBottom:"31.31px"},children:[(0,r.jsx)("div",{style:{display:"flex",justifyContent:"end"},children:(0,r.jsx)("span",{className:"black ".concat(o().rightSection),onClick:function(){n()},children:(0,r.jsx)("img",{width:"19.337px",height:"21.059px",src:h.ci.closefilter,alt:"Close"})})}),(0,r.jsx)("span",{className:"flex1 flexCenter",children:(0,r.jsx)(d(),{height:154,width:190,src:"https://images.railyatri.in/ry_images_prod/img1-1715579743.png"})})]}),(0,r.jsxs)("div",{className:"flexCol flexCenter ".concat(o().body),style:{gap:"30px"},children:[(0,r.jsxs)("div",{className:"flexCol flexCenter",style:{gap:"9px"},children:[(0,r.jsxs)("pre",{style:{textAlign:"center",fontSize:"1.42857em",fontWeight:"600",lineHeight:"normal",letterSpacing:"0.00714em",color:"#01478C",width:"236px",background:"none",border:"none",whiteSpace:"break-spaces",wordBreak:"keep-all"},children:[c," "]}),(0,r.jsxs)("pre",{style:{color:"#101010",textAlign:"center",fontSize:"1.07143em",fontWeight:"400",lineHeight:"normal",width:"250px",background:"none",border:"none",whiteSpace:"break-spaces",wordBreak:"keep-all"},children:[i," "]})]}),"verify_irctc_user_id"==p?(0,r.jsx)("button",{className:o().submit,onClick:function(){g((0,m.r2)({showIRCTCidVerifyScreen:!0})),n()},children:"Verify Now"}):(0,r.jsx)("button",{className:o().submit,onClick:function(){null==v?n():v()},children:u})]})]})})}function I(e){var t,n,i=e.routeData,o=void 0===i?{}:i,s={},u=(0,a.useState)((0,l.D0)(null===o||void 0===o?void 0:o.status_change)),d=u[0];u[1];try{Object.assign(s,(0,l.Yo)(null===o||void 0===o?void 0:o.availability_status.replace(/[^A-Za-z]/g,""))),Object.assign(s,{SeatCount:null===o||void 0===o?void 0:o.availability_status.replace(/[^0-9]/g,"")})}catch(m){}var p={};try{var h,f;(0,l.PR)(null===o||void 0===o?void 0:o.probtext)&&Object.assign(p,(0,l.Yo)(null===(f=null===o||void 0===o||null===(h=o.probtext)||void 0===h?void 0:h.replace(/ /g,""))||void 0===f?void 0:f.replace(/[0-9]/g,"")))}catch(_){}return(0,a.useEffect)((function(){(0,l.PR)(d)?document.body.style.overflow="hidden":document.body.style.overflow="auto"}),[d]),(0,r.jsx)("div",{className:c().cardDiv,children:(0,r.jsxs)("div",{className:c().popupcard,
1children:[(0,r.jsxs)("div",{className:"flexCol flexCenter",children:[(0,r.jsx)("img",{height:36,src:"https://images.railyatri.in/ry_images_prod/Image-752x-1691392904.png",alt:"imp"}),(0,r.jsx)("span",{className:c().title,children:null===o||void 0===o||null===(t=o.popup_title)||void 0===t?void 0:t.replace(/%20/g," ")})]}),(0,r.jsx)("div",{className:c().msgPop,children:(0,l.PR)(null===o||void 0===o?void 0:o.availability_status)&&(0,r.jsxs)("div",{className:c().updateS,children:["Updated Status - \xa0",(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{style:{color:"#".concat(null===o||void 0===o?void 0:o.status_color),fontWeight:"bold"},children:[(0,l.PR)(s.SeatCount)&&parseInt(s.SeatCount)," ",null===s||void 0===s||null===(n=s.name)||void 0===n?void 0:n.replace(/%20/g,"")]}),(0,r.jsx)("div",{style:{color:"#".concat(null===o||void 0===o?void 0:o.status_msg_color),fontSize:"10px",textTransform:"capitalize;",marginTop:"-5px",fontWeight:"700"},children:p.name})]})]})}),(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:c().RegretBlock,onClick:function(){window.history.back()},children:"Pick another train/class"}),(0,r.jsx)("br",{})]})]})})}var B=a.memo(k),F=a.memo(w)},33689:function(e,t,n){"use strict";n.d(t,{NA:function(){return _},j6:function(){return m}});var r=n(34051),a=n.n(r),i=n(85893),o=(n(67294),n(9473),n(86426)),s=n(61202),c=n(65936),l=n(1531),u=n(12978);function d(e,t,n,r,a,i,o){try{var s=e[i](o),c=s.value}catch(l){return void n(l)}s.done?t(c):Promise.resolve(c).then(r,a)}function p(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){d(i,r,a,o,s,"next",e)}function s(e){d(i,r,a,o,s,"throw",e)}o(void 0)}))}}function h(e,t,n,r){return f.apply(this,arguments)}function f(){return(f=p(a().mark((function e(t,n,r,i){var o,d,p,h,f,m,_,v,g,x,y,b,w,j,k;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,null===t||void 0===t?void 0:t.credential){e.next=3;break}throw new Error("Google credential is missing");case 3:if(o="undefined"!==typeof navigator&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),d=o?"4":"6",c.ZP){e.next=7;break}throw new Error("FingerprintJS is not available");case 7:return e.next=9,c.ZP.load();case 9:return p=e.sent,e.next=12,p.get();case 12:if(h=e.sent,f=null===h||void 0===h?void 0:h.visitorId){e.next=16;break}throw new Error("Browser fingerprint ID is missing");case 16:if(m=t.credential,null===(_=(0,s.o)(m))||void 0===_?void 0:_.email){e.next=20;break}throw new Error("Google email is missing");case 20:return v={app_id:f,ad_id:f},g="".concat("https://magnus.railyatri.in")+"/api/v1/ry_temp_user",e.next=24,fetch(g,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(v)});case 24:if((x=e.sent).ok){e.next=27;break}throw new Error("Magnus API failed: ".concat(x.status," ").concat(x.statusText));case 27:return e.next=29,x.json();case 29:if((null===(y=e.sent)||void 0===y?void 0:y.success)&&(0,l.PR)(null===y||void 0===y?void 0:y.ry_temp_user_id)){e.next=32;break}throw new Error("Invalid Magnus response: ".concat(JSON.stringify(y)));case 32:return b="".concat("https://api.railyatri.in","/api/m/insertUser.json")+"?email_address=".concat(encodeURIComponent(_.email))+"&temp_user_id=".concat(encodeURIComponent(y.ry_temp_user_id))+"&device_type_id=".concat(d)+"&appId=".concat(encodeURIComponent(f))+"&appid=".concat(encodeURIComponent(f))+"&app_type=0&is_web=true",e.next=35,fetch(b);case 35:if((w=e.sent).ok){e.next=38;break}throw new Error("insertUser API failed: ".concat(w.status," ").concat(w.statusText));case 38:return e.next=40,w.json();case 40:if(null===(j=e.sent)||void 0===j?void 0:j.success){e.next=43;break}throw new Error("insertUser failed: ".concat(JSON.stringify(j)));case 43:k={userId:j.user_id,New_User_token:j.authentication_token},r(k),"6"===d?(n((0,u.az)({isloginvisible:!1,onSuccess:null})),n((0,u.dX)(!0))):("function"===typeof i&&i(k),n((0,u.dX)(!0))),e.next=51;break;case 48:e.prev=48,e.t0=e.catch(0),console.error("handleCredentialResponse >>==--\x3e",e.t0);case 51:case"end":return e.stop()}}),e,null,[[0,48]])})))).apply(this,arguments)}function m(e,t){var n,r;var a=function(){var n,r;(null===(n=window.google)||void 0===n||null===(r=n.accounts)||void 0===r?void 0:r.id)&&
1(window.google.accounts.id.initialize({client_id:"252360255922-42ketap1o10tdsrunh0fihg020btll83.apps.googleusercontent.com",callback:function(n){return h(n,e,t)}}),window.google.accounts.id.prompt())};if(null===(n=window.google)||void 0===n||null===(r=n.accounts)||void 0===r?void 0:r.id)a();else{var i=document.createElement("script");i.src="https://accounts.google.com/gsi/client",i.async=!0,i.defer=!0,i.onload=a,document.body.appendChild(i)}}function _(e){var t=e.dispatch,n=e.setUserdetails,r=e.sucessFullCallback;return(0,i.jsxs)("div",{className:"GoogleWrapperDiv",children:[(0,i.jsx)(o.rg,{clientId:"252360255922-42ketap1o10tdsrunh0fihg020btll83.apps.googleusercontent.com",children:(0,i.jsx)(o.kZ,{size:"large",text:"signin_with",theme:"outline",shape:"rectangular",onSuccess:function(e){return h(e,t,n,r)},onError:function(){return console.log("error >>>===---\x3e login failed")}})}),(0,i.jsx)("p",{className:"fs-18 black bg-w fw-med text-center",style:{marginTop:"12px"},children:"Or"})]})}},24354:function(e,t,n){"use strict";var r=n(34051),a=n.n(r),i=n(67294),o=n(1531);function s(e,t,n,r,a,i,o){try{var s=e[i](o),c=s.value}catch(l){return void n(l)}s.done?t(c):Promise.resolve(c).then(r,a)}t.Z=function(e,t){var n=(0,i.useState)({isFetching:!0,error:null,data:[]}),r=n[0],c=n[1],l=function(){var n,r=(n=a().mark((function n(){var r,i,s,l,u,d,p,h,f,m,_,v,g;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=4,fetch("".concat("https://api.railyatri.in","/upcoming-trip-details?user_id=").concat(e,"&authentication_token=").concat(t,"&device_type_id=4").concat((0,o.PR)(e)&&parseInt(e)<1?"&temp_user_id=".concat(e):""));case 4:if((i=n.sent).ok){n.next=7;break}throw new Error("Failed to fetch upcoming trip data");case 7:return s=new Date,l=s.getTime(),n.next=11,i.json();case 11:if((null===(u=n.sent)||void 0===u||null===(r=u.data)||void 0===r?void 0:r.length)>0){for(h=null!==(p=null===u||void 0===u?void 0:u.data)&&void 0!==p?p:[],f=null===(d=h[0])||void 0===d?void 0:d.date_of_journey,m=h[0],_=1;_<h.length;_++)(g=null===(v=h[_])||void 0===v?void 0:v.date_of_journey)<f&&g>l&&(f=g,m=h[_]);c({isFetching:!1,error:null,data:[m]})}n.next=19;break;case 15:n.prev=15,n.t0=n.catch(0),console.error("Error fetching data:",n.t0),c({isFetching:!1,error:n.t0.message,data:[]});case 19:case"end":return n.stop()}}),n,null,[[0,15]])})),function(){var e=this,t=arguments;return new Promise((function(r,a){var i=n.apply(e,t);function o(e){s(i,r,a,o,c,"next",e)}function c(e){s(i,r,a,o,c,"throw",e)}o(void 0)}))});return function(){return r.apply(this,arguments)}}();return(0,i.useEffect)((function(){(0,o.PR)(e)&&(0,o.PR)(t)&&l()}),[e,t]),r}},40395:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return F},default:function(){return R}});var r=n(34051),a=n.n(r),i=n(85893),o=n(67294),s=n(9473),c=n(82189),l=n(82175),u=n(11359),d=n(1531),p=n(24354);function h(e,t,n,r,a,i,o){try{var s=e[i](o),c=s.value}catch(l){return void n(l)}s.done?t(c):Promise.resolve(c).then(r,a)}var f=function(e){var t=(0,o.useState)(!1),n=t[0],r=t[1],i=(0,o.useState)(null),s=i[0],l=i[1],u=function(){var t,n=(t=a().mark((function t(n){var i,o,s,u,d,p,h,f,m,_,v,g,x,y;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r(!0),l(null),t.prev=2,t.next=5,fetch("".concat("https://pnrweb.railyatri.in/api/v2","/pnr/journey/").concat(n,"/null/null/null/null/null.json"));case 5:return i=t.sent,t.next=8,i.json();case 8:o=t.sent,s=o.status,u=o.pnr_number,d=o.chart_prepared,o.journey_class,p=o.train_name,h=o.train_number,f=o.passenger,m=o.train_std,_=o.is_ry_pnr,v=o.booking_data,g=(new Date).getTime(),x=new Date(m).getTime(),"OK"===s&&x>g&&(y={pnr_number:u,chart_prepared:d,train_name:p,train_number:h,total_pasanger:f.length,journey_class:o.class,journey_date:m,passengers:f,last_refresh_time:g,is_ry_pnr:_,is_refreshing:!1,full_cancel:null===v||void 0===v?void 0:v.full_cancel},e((0,c.yO)(y))),t.next=19;break;case 15:t.prev=15,t.t0=t.catch(2),console.error("Error fetching data:",t.t0),l(t.t0);case 19:return t.prev=19,r(!1),t.finish(19);case 22:case"end":return t.stop()}}),t,null,[[2,15,19,22]])})),function(){var e=this,n=arguments;return new Promise((function(r,a){var i=t.apply(e,n);function o(e){h(i,r,a,o,s,"next",e)}function s(e){h(i,r,a,o,s,"throw",e)}o(void 0)}))});return function(e){return n.apply(this,arguments)}}();return{isLoading:n,refreshpnrerror:s,fetchPNRData:u}},m=n(14921),_=n(68239),v=n(74223),g=n(5616),x=n(10155),y=n(5152),b=n.n(y),w=n(37690),j=n(16310),k=j.Ry({pnrnumber:j.Z_("Enter your PNR number").min(10,"Enter a valid 10 digit PNR number").max(10,"Enter a valid 10 digit PNR number").matches(/^\d{10}$/,"Phone number must be 10 digits").required("PNR Number is required")}
1),C=n(52507),N=n(93773);function S(e,t,n,r,a,i,o){try{var s=e[i](o),c=s.value}catch(l){return void n(l)}s.done?t(c):Promise.resolve(c).then(r,a)}function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){T(e,t,n[t])}))}return e}var I=b()((function(){return n.e(5785).then(n.bind(n,45785))}),{loadableGenerated:{webpack:function(){return[45785]}},ssr:!1}),B=(0,_.Z)({typography:{htmlFontSize:12}});var F=!0,R=function(e){var t,n,r,h,_,y,b,j,T,F=e.homeCards,R=e.userId,A=e.auth_token,O=e.show_video_ads,E=(0,o.useState)({status:!1,issupport:!1,sucessCallback:function(){}}),D=E[0],M=E[1],U=(0,d.PC)(),z=(0,o.useState)({status:!1,message:""}),Y=z[0],H=z[1],G=(0,s.I0)(),W=(0,s.v9)((function(e){return e.lts})).ltssearcheddata,Z=(0,p.Z)(R,A),L=Z.isFetching,V=Z.error,q=Z.data,K=f(G).fetchPNRData,J=(0,o.useState)(!1),X=J[0],Q=J[1],$=(0,o.useState)(!1),ee=$[0],te=$[1],ne=(0,o.useState)([]),re=ne[0],ae=ne[1],ie=(0,o.useState)([]),oe=ie[0],se=ie[1],ce=(0,o.useState)(!1),le=ce[0],ue=ce[1],de=(0,o.useState)(""),pe=de[0],he=de[1],fe=(0,o.useState)({heading:"",tag:"",tag_background_color:"",primary:"",pnr_captcha_id:""}),me=fe[0],_e=fe[1],ve=(0,l.TA)({initialValues:{pnrnumber:""},validationSchema:k,onSubmit:function(e){var t;Q(!0),null===U||void 0===U||U.userId,M((function(e){return P({},e,{status:!1,issupport:!1})}));var n="".concat("https://pnrweb.railyatri.in","/api/show-pnr-captcha/").concat(R,"/").concat(e.pnrnumber,"?device_type_id=4"),r="/m/pnr-status/".concat(e.pnrnumber,"?utm_source=mwebsearch_pnr_Go");t=setTimeout((function(){window.location.href=r}),7e3),fetch(n).then((function(e){return e.json()})).then((function(e){clearTimeout(t),1==e.success&&1==e.show_captcha?(Q(!1),ae(e.image_list),se(e.prima_image_ids),te(!0),ue(e.restrict_validation),he(r),_e({heading:e.heading,tag:e.tag,tag_background_color:e.tag_color,primary:e.primary_image,pnr_captcha_id:e.pnr_captcha_id})):window.location.href=r})).catch((function(e){window.location.href=r}))}}),ge=(0,o.useState)({userPNRnumber:""}),xe=ge[0],ye=ge[1];(0,o.useEffect)((function(){ve.values.pnrnumber&&ye({userPNRnumber:ve.values.pnrnumber})}),[ve.values.pnrnumber]);var be=function(){var e,t=(e=a().mark((function e(t){var n,r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=null===W||void 0===W?void 0:W.recentpnr,r=null===n||void 0===n?void 0:n.find((function(e){return parseInt(e.last_refresh_time)===parseInt(t)})),!(0,d.PR)(r)){e.next=13;break}return e.prev=3,e.next=6,G((0,c.yO)(P({},r,{is_refreshing:!1})));case 6:return e.next=8,new Promise((function(e){K(null===r||void 0===r?void 0:r.pnr_number),e()}));case 8:e.next=13;break;case 10:throw e.prev=10,e.t0=e.catch(3),new Error(e.t0);case 13:case"end":return e.stop()}}),e,null,[[3,10]])})),function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){S(i,r,a,o,s,"next",e)}function s(e){S(i,r,a,o,s,"throw",e)}o(void 0)}))});return function(e){return t.apply(this,arguments)}}();return(0,o.useEffect)((function(){var e=(new Date).getTime(),t=null===W||void 0===W?void 0:W.last_pnr_refresh_time,n=t+72e5-e;if(!(n<=0)){var r=setTimeout((function(){be(t)}),n);return function(){clearInterval(r)}}be(t)}),[null===W||void 0===W?void 0:W.last_pnr_refresh_time]),(0,o.useEffect)((function(){var e=document.createElement("script");e.id="asr",e.src="https://adops.network/s/asr.min.js",document.head.appendChild(e)}),[]),(0,i.jsxs)(v.Z,{theme:B,children:[(0,i.jsx)("meta",{charSet:"utf-8"}),(0,i.jsx)("meta",{httpEquiv:"X-UA-Compatible",content:"IE=edge"}),(0,i.jsx)(u.v,{title:"PNR Status | Check Real-time IRCTC PNR Status in 1 Click",description:"Enter your 10-digit PNR to check real-time IRCTC ticket status. Fastest PNR lookup with RailYatri \u2013 see confirmation, waitlist, and coach info now.",additionalKeywords:"private bus online ticket booking easy and cheap bus tickets, bus deals, confirmed tickets, reservation, discounts, bus offers, cashback online",canonical:"https://www.railyatri.in/pnr-status",androidAlt:"android-app://com.railyatri.in.mobile/http/m.rytr.in/PNR",iosAlt:"ios-app://1052177547/http/m.rytr.in/PNR",script:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:'{"@context":"http://schema.org/", "@type":"MobileApplication", "name": "Railyatri", "aggregateRating":{ "@type":"AggregateRating", "ratingValue":"4.4","reviewCount":"1293173"},"applicationCategory":"Travel","operatingSystem":"Android", "URL":"https://play.google.com/store/apps/details?id=com.railyatri.in.mobile"}'}}),(0,i.jsx)("script",{src:"https://revivifypro.in/refresh/rm/dfp.min.js"})]})}),(0,i.jsx)(m.h4,{children:(0,i.jsx)("h1",{className:"fs-16 no-marg no-pad",children:"Check PNR Status"})}),(0,i.jsxs)(g.Z,{component:"main",sx:{mb:1},children:[(0,i.jsx)(x.Z,{}),(0,i.jsx)(m.CH,{formik:ve,userId:R,showCaptcha:ee,setShowCaptcha:te,captachImage:re,primaryImageIds:oe,captchaValidate:le,redirectionURL:pe,captchaBasic:me,showButtonLoader:X}),(0,i.jsx)(m.$y,P({},F)),(0,i.jsx)(m.Zo,{upcommingTrip:{isFetching:L,error:V,data:q}}),(0,i.jsx)(m.VD,{setShowLogin:M,userId:null===U||void 0===U?void 0:U.userId,setGetPNR:ye,recentpnr:null===W||void 0===W?void 0:W.recentpnr}),O&&(0,i.jsx)(VideoAdPlayer,{adTagUrl:"https://pubads.g.doubleclick.net/gampad/ads?iu=/12756069/mWeb_pnr_landing_video&description_url=https%3A%2F%2Fwww.railyatri.in&tfcd=0&npa=0&sz=320x180%7C360x203%7C640x360&gdfp_req=1&unviewed_position_start=1&output=vast&env=vp&impl=s&correlator=",width:380,height:203,loopDelay:1e3,errorRetryDelay:3e3,initialDelay:500}),!O&&(0,i.jsx)(I,{slotId:null===w.x||void 0===w.x||null===(t=w.x.afterpnrsearchbox)||void 0===t?void 0:t.slotId,adContainerId:null===w.x||void 0===w.x||null===(n=w.x.afterpnrsearchbox)||void 0===n?void 0:n.adContainerId,adSizes:null===w.x||void 0===w.x||null===(r=w.x.afterpnrsearchbox)||void 0===r?void 0:r.adSizes}),(0,i.jsx)(m.x7,{}),(0,i.jsx)(I,{slotId:null===w.x||void 0===w.x||null===(h=w.x.pnrsearchbottom)||void 0===h?void 0:h.slotId,adContainerId:null===w.x||void 0===w.x||null===(_=w.x.pnrsearchbottom)||void 0===_?void 0:_.adContainerId,adSizes:null===w.x||void 0===w.x||null===(y=w.x.pnrsearchbottom)||void 0===y?void 0:y.adSizes})]}),D.status&&(0,i.jsx)(C.Z,{sucessFullCallback:function(e){var t=e.userId,n=void 0===t?"":t;e.New_User_token;M((function(e){return P({},e,{status:!1})})),(0,d.LB)({userId:n,New_User_token:A}),"function"===typeof(null===D||void 0===D?void 0:D.sucessCallback)&&D.sucessCallback(),(0,d.PR)(null===D||void 0===D?void 0:D.issupport)||H((function(e){return P({},e,{message:"You have logged in successfully !",status:!0})})),window.location.href="/m/pnr-status/".concat(xe.userPNRnumber,"?utm_source=mwebsearch_pnr_Go")},sucessCallback:D.sucessCallback,close:function(){return M((function(e){return P({},e,{status:!1,issupport:!1})}))},show:!0}),Y.status&&(0,i.jsx)(N.Ur,{message:Y.message,callback:function(){H((function(e){return P({},e,{status:!1})}))},customStyle:{bottom:"96px"}}),(0,i.jsx)("div",{style:{marginBottom:"55px"},children:(0,i.jsx)(I,{slotId:null===w.x||void 0===w.x||null===(b=w.x.RY_WAP_INSIDE_PAGE_BOTTOM_STICKY)||void 0===b?void 0:b.slotId,adContainerId:null===w.x||void 0===w.x||null===(j=w.x.RY_WAP_INSIDE_PAGE_BOTTOM_STICKY)||void 0===j?void 0:j.adContainerId,adSizes:null===w.x||void 0===w.x||null===(T=w.x.RY_WAP_INSIDE_PAGE_BOTTOM_STICKY)||void 0===T?void 0:T.adSizes,active:"innerstickybottom"})})]})}},7115:function(e){e.exports={modalBackdrop:"fareFetch_modalBackdrop__ujIY4",fade:"fareFetch_fade__IT2Do",block:"fareFetch_block__38OHc",marginTop60:"fareFetch_marginTop60__sHK0m",continue:"fareFetch_continue__YRDRx",pad15:"fareFetch_pad15__Yn1sv",dialog:"fareFetch_dialog__0OZmG",message:"fareFetch_message__UuTph",title:"fareFetch_title__xwHEC",timmer:"fareFetch_timmer___VeUJ",popupContainer:"fareFetch_popupContainer__GLoZk",closeButton:"fareFetch_closeButton__fNKyL",tip:"fareFetch_tip__1e6_6",header:"fareFetch_header__lJ3GT",enableButton:"fareFetch_enableButton__0Bo2m",noThanksButton:"fareFetch_noThanksButton__ptrA3",footer:"fareFetch_footer__1qaQG",footerIcons:"fareFetch_footerIcons__CgjjW",iconContainer:"fareFetch_iconContainer__Lw8aD",footerContainer:"fareFetch_footerContainer__8NHfP",icon:"fareFetch_icon__6ruKZ",text:"fareFetch_text__WOFQK",crossIcn:"fareFetch_crossIcn__pTkKQ",notificationContainer:"fareFetch_notificationContainer__7QZYH",container:"fareFetch_container__djOI_",body:"fareFetch_body__lTPzG",sidemenuMiddleSection:"fareFetch_sidemenuMiddleSection__CM9Lw",rightSection:"fareFetch_rightSection__XeRFr",submit:"fareFetch_submit__SnU_4",errorbody:"fareFetch_errorbody__FcOYd",clospopupewrapper:"fareFetch_clospopupewrapper__CqFvY",errorclose:"fareFetch_errorclose__aPEoO",errortitle:"fareFetch_errortitle__A1X3p",errormessage:"fareFetch_errormessage__3VwIB",popupheader:"fareFetch_popupheader__3l4UQ",spacebetween:"fareFetch_spacebetween__D0cg6",centeritem:"fareFetch_centeritem__v0Z1b",headertitle:"fareFetch_headertitle__oziON",innercontainer:"fareFetch_innercontainer__VHBm8",aadharpreview:"fareFetch_aadharpreview__iYoiF",aadharintrowrapper:"fareFetch_aadharintrowrapper__uQvFk",aadharintro:"fareFetch_aadharintro__Z8exM"}},61319:function(e){e.exports={recomend_msg:"seatAvailabiltyBlock_recomend_msg__MnCUc",cpPer:"seatAvailabiltyBlock_cpPer__lz3qK",chanceStyle:"seatAvailabiltyBlock_chanceStyle__gzcwz",updateS:"seatAvailabiltyBlock_updateS__DNuNs",RegretBlock:"seatAvailabiltyBlock_RegretBlock__7G30w",cardDiv:"seatAvailabiltyBlock_cardDiv__VTLCf",statusDiv:"seatAvailabiltyBlock_statusDiv__FzzYE",seatDiv:"seatAvailabiltyBlock_seatDiv__PdnXU",statusContainer:"seatAvailabiltyBlock_statusContainer__OxEOQ",statusMsg:"seatAvailabiltyBlock_statusMsg__1pX8e",popupcard:"seatAvailabiltyBlock_popupcard__pPMQE",msgPop:"seatAvailabiltyBlock_msgPop__gqQuq",btnContainer:"seatAvailabiltyBlock_btnContainer__iqE_o",gobackBtn:"seatAvailabiltyBlock_gobackBtn__FYB_V",conpayBtn:"seatAvailabiltyBlock_conp
1ayBtn__kYXes",container:"seatAvailabiltyBlock_container__uJoPU",statusMainContainer:"seatAvailabiltyBlock_statusMainContainer__a5npR",title:"seatAvailabiltyBlock_title__ef_K_",availtitle:"seatAvailabiltyBlock_availtitle__iooJa",cnfmessage:"seatAvailabiltyBlock_cnfmessage__quRP1",titleBorder:"seatAvailabiltyBlock_titleBorder__NtXlC",newbrandbg:"seatAvailabiltyBlock_newbrandbg__j8pzM",availabilitycontainer:"seatAvailabiltyBlock_availabilitycontainer__65SUB",bluebg:"seatAvailabiltyBlock_bluebg__tbJdE"}}},function(e){e.O(0,[49,9990,3466,5675,2036,1994,2785,5554,135,1707,9947,9280,8221,8070,7042,1209,7533,3795,5704,4409,4825,4921,9774,2888,179],(function(){return t=73068,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.