1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[874,1546,1697,2554,2934,3255,3315,4838,5636,5995,6055,6149,8493,8729,9987],{9987:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var i=n(14232),a=n(19850),r=n.n(a),s=n(2171),l=n(99457);let o=()=>{let e=(0,i.useRef)(null),t=(0,s.wA)(),n=(0,s.d4)(e=>{let{auth:t}=e;return t.isLoggedIn}),a=(0,s.d4)(e=>{let{app:t}=e;return t.isLoginPopupShown}),o=(0,s.d4)(e=>{let{app:t}=e;return t.isTransferedUser}),c=Object.freeze({showPopup:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";o||t(l.o.showLoginPopup(e,n,i))},hidePopup:()=>t(l.o.hideLoginPopup())});return(0,i.useEffect)(()=>{n&&r()(e.current)&&e.current()},[n]),(0,i.useEffect)(()=>{!a&&r()(e.current)&&(e.current=null)},[a]),{isLoggedIn:n,isPopupShown:a,actions:c,isTransferedUser:o,setCallback:function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";if(o&&r()(t))return void t();e.current=t,c.showPopup(n,i,a)}}}},13056:(e,t,n)=>{"use strict";n.d(t,{$C:()=>s,Al:()=>a,D5:()=>c,Pf:()=>d,TA:()=>u,Z2:()=>o,bb:()=>r,cT:()=>i,e4:()=>l,lh:()=>p});let i={electricity:"electricity",landline:"landline",broadband:"broadband",water:"water",gas:"gas","google-play":"google-play",rentals:"rentals","education-fees-cc":"education-fees-cc",paylater:"paylater","pl-plus":"pl-plus",subscription:"subscription","gift-cards":"gift-cards"},a={dth:"DTH Recharge","fastag-recharge":"FasTag","online-emi-payment":"Loan","cylinder-gas-booking":"LPG Cylinder","municipal-tax-payments":"Municipal Tax",electricity:"Electricity BillPayment",broadband:"Broadband BillPayment",landline:"Landline BillPayment",gas:"Piped Gas BillPayment",water:"Water BillPayment",subscriptions:"Subscription","postpaid-bill-payments":"Mobile Postpaid","mobile-recharge":"Mobile Recharge","education-fees":"Education Fees","cable-tv-recharge":"Cable TV Recharge","housing-society":"Housing Society BillPayment","google-play":"Google Play Recharge","credit-card-bill-payment":"Credit Card BillPayment","insurance-bill-payment":"Insurance Payment","clubs-and-associations":"Clubs and Associations","ncmc-recharge":"NCMC Recharge","rental-bill-payments":"Rental","prepaid-meter-recharge":"Prepaid Meter","hospital-and-pathology":"Hospital and Pathology","recurring-deposit":"Recurring Deposit","ev-recharge":"EV Recharge","fleet-recharge":"Fleet Card Recharge",nps:"National Pension System","hospital-bill-payments":"Hospital Payment",donation:"DN","traffic-fines":"eChallan","municipal-services-payments":"Municipal Services"},r=3e3,s=4e3,l=75,o=300,c=["success","failed","error","end_poll"],u=!0,d=!1,p=["rentals","education-fees-cc","subscription","paylater","pl-plus","addMoney","gift-cards"]},27757:(e,t,n)=>{var i=n(3979);e.exports=function(e,t){var n=!0;return i(e,function(e,i,a){return n=!!t(e,i,a)}),n}},34293:(e,t,n)=>{var i=n(91575),a=n(27757),r=n(47871),s=n(93007),l=n(65930);e.exports=function(e,t,n){var o=s(e)?i:a;return n&&l(e,t,n)&&(t=void 0),o(e,r(t,3))}},39115:(e,t,n)=>{var i=n(96049),a=n(13051);e.exports=function(e){return e?i(a(e),0,0xffffffff):0}},48729:()=>{},53651:(e,t,n)=>{var i=n(13051),a=n(39115);e.exports=function(e,t,n,r){var s=e.length;for((n=i(n))<0&&(n=-n>s?0:s+n),(r=void 0===r||r>s?s:i(r))<0&&(r+=s),r=n>r?0:a(r);n<r;)e[n++]=t;return e}},57272:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var i=n(37876),a=n(14232),r=n(70075),s=n.n(r),l=n(95062),o=n.n(l);let c=e=>{let{value:t="",size:n=270,density:r=1,color:l="#222222",style:o={}}=e,c=(0,a.useRef)(null);return((0,a.useEffect)(()=>{t&&(null==c?void 0:c.current)&&(()=>{let e=s()(t,{errorCorrectLevel:r}).modules,i=n/e.length,a=c.current.getContext("2d");a.fillStyle="#fff",a.fillRect(0,0,n,n);for(let t=0;t<e.length;++t){let n=e[t];for(let e=0;e<n.length;++e)if(n[e]){a.fillStyle=n[e]?l:"#fff";let r=Math.ceil((e+1)*i)-Math.floor(e*i),s=Math.ceil((t+1)*i)-Math.floor(t*i);a.fillRect(Math.round(e*i),Math.round(t*i),r,s)}}})()},[c,t]),t)?(0,i.jsx)("canvas",{width:n,height:n,ref:c,style:o}):null};
1c.prototypes={value:o().string,size:o().number,density:o().oneOf([0,1,2]),color:o().string,style:o().object};let u=c},62027:(e,t,n)=>{var i=n(53651),a=n(65930);e.exports=function(e,t,n,r){var s=null==e?0:e.length;return s?(n&&"number"!=typeof n&&a(e,t,n)&&(n=0,r=s),i(e,t,n,r)):[]}},64552:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSP:()=>K,default:()=>Z});var i=n(37876),a=n(14232),r=n(76e3),s=n(2171),l=n(89099),o=n.n(l),c=n(40123),u=n.n(c),d=n(7766),p=n.n(d),m=n(37138),h=n.n(m),f=n(61568),g=n.n(f),v=n(10239),y=n.n(v),E=n(95062),b=n.n(E),P=n(24212),T=n.n(P),_=n(88310),R=n(79222),I=n(57272),A=n(3738);let x=()=>{let e={hiddenProp:"",visibilityProp:""};return"undefined"!=typeof document&&(void 0!==document.hidden?(e.hiddenProp="hidden",e.visibilityProp="visibilitychange"):void 0!==document.msHidden?(e.hiddenProp="msHidden",e.visibilityProp="msvisibilitychange"):void 0!==document.webkitHidden&&(e.hiddenProp="webkitHidden",e.visibilityProp="webkitvisibilitychange")),e},N=()=>"undefined"!=typeof document&&!document[x().hiddenProp];var j=n(22846),C=n(69762),S=n(92897),w=n(13056);n(80558);var k=n(95118),D=n(78074);let L={REQUEST_INITIATED:{FIRST_PART:"The Payment request of ",SECOND_PART:" â¹ ",THIRD_PART:" has been sent to your UPI Payment App. Please approve the payment ",FOURTH_PART:" In case the payment has already been approved, the status will be auto-updated shortly."},PAGE_EXPIRE:"This page will automatically expire in ",TIMING_INFO:"Please do not press back button or close the screen until the payment is completed.",TIMING_INFO_QR:"Please do not press the back button. Going back from this screen will expire the QR code and cancel the payment",HEADER:"Complete your payment",HEADER_QR:"Scan & Pay",INITIATE:"Initiating Payment",VERIFY:"Verifying your Payment Status",TRY_AGAIN:"Try Again",NOT_LAUNCHED:"Having trouble launching your UPI app?",TRY_AGAIN_TEXT:"Please try again or use another UPI app to complete the payment."},O={CLOCK_ICON:"Clock",UPI_APPS:"Supported Apps"},U={DEFAULT:"DEFAULT_PROVIDER_FALLBACK_LOGO"};var G=n(30616),M=n(8069),H=n(62238),B=n(62462),F=n(93359),Q=n(82572),Y=n(94509),V=n(54022);let q=e=>{let{reduxActions:t,paymentResponse:n,additionalDetailsObj:r,csrfRequestIdentifierToken:s,upiIntentStatusResponse:c,userAgent:d,error:m,sdkVersion:f,platformDetails:v,sdkDetails:E,isSdkJourney:b,isPopup:P,onPopupClose:C}=e,{isIos:S,isIphone:q,isIpad:K}=d,Z=S&&(q||K),[$,X]=(0,a.useState)(!1),[z,J]=(0,a.useState)(!1),[W,ee]=(0,a.useState)(!1),[et,en]=(0,a.useState)(!1),[ei,ea]=(0,a.useState)(!1),[er,es]=(0,a.useState)(!1),el=(0,a.useRef)(null),[eo,ec]=(0,a.useState)(w.Z2),[eu,ed]=(0,a.useState)(!0),ep=(0,l.useRouter)(),em=(0,a.useRef)(""),eh=(0,a.useRef)(),ef=(0,a.useRef)(),eg=(0,a.useRef)({}),ev=(0,a.useRef)(!1),ey=(0,a.useRef)(null),eE=(()=>{let[e,t]=(0,a.useState)(N()),n=()=>t(N());return(0,a.useEffect)(()=>{if("undefined"!=typeof document){let e=x().visibilityProp;return document.addEventListener(e,n,!1),()=>{document.removeEventListener(e,n)}}},[]),e})(),eb=p()(ep,"query.utilityType",e.utilityType),eP=p()(r,"isUpiQr",!1),eT=(0,a.useRef)(!0),{fetchIntercept:e_}=(0,j.A)({useSlugAsResponseKey:!0}),eR="upiResultResponseValue",eI=()=>{if(P){C&&C({shouldGoBack:!0});return}b?o().back():(J(!0),window.history.back())};if((0,a.useEffect)(()=>{let e,n;if(eg.current=(0,k._9)("providerDetails",{}),(0,Y.triggerEmsEvent)({eventType:Y.EMS_EVENT_TYPES.PAGE_VIEW,eventName:"UPI Status Page Load",eventData:{pageName:"upiStatus",referrer:document.referrer||""}}),window.Worker&&!Z)(e=new Worker("/static/scripts/secondsTimer.js")).postMessage(eo),e.onmessage=e=>{let t=e.data;0===t&&ed(!1),ec(t)};else{let e=new Date().getTime();n=setInterval(()=>{let t=new Date().getTime(),n=parseInt((e+1e3*w.Z2-t)/1e3,10);0===n&&ed(!1),ec(n)},1e3)}return()=>{ev.current=!1,ey.current&&clearTimeout(ey.current),y()(w.D5,eh.current)||"end_poll"===ef.current||"cancelled"===ef.current||(ef.current="unmounted"),el.current&&clearTimeout(el.current),e&&e.terminate(),n&&clearInterval(n),t.resetPaymentResponse(),t.resetPaymentPageError()}},[]),(0,a.useEffect)(()=>{let e=(0,k._9)("lookupId",""),i=(0,k._9)("checkoutId",""),a=p()(r,"amount",""),l=p()(r,"upiIntentUrl",""),c=p()(r,"backendAppName",""),d=()=>{o().replace("/services")},m=function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];o().replace("/fulfilment/oms?checkoutId=".concat(i||e,"&orderId=").concat(e,"&payStatus=").concat(t),"/fulfilment/oms/".concat(i||e,"/").concat(e,"/").concat(t))};if(!u()(n)&&l&&a){let{upiIntent:e,orderId:i}=n,{transactionId:r}=e||{};if(r&&i&&l){let n=p()(e,"intentUrl",""),u=n;if(n||(u=decodeURIComponent(l),u=h()(u,"$amount",a),u=h()(u,"$txnId",r),u=h()(u,"$txnRef",i)),u&&!W&&!et){em.current=u,X(!0);let e=()=>{(0,k.p2)(()=>{eE&&t.fetchUpiIntentStatusRequest(r,i,s)},()=>y()(w.D5,eh.current)||"unmounted"===ef.current||"end_poll"===ef.current||"cancelled"===ef.current,()=>{ev.current=!1,en(!0),ee(!1),(y()(w.D5,eh.current)||"end_poll"===ef.current)&&m(i,eT.current)},w.e4,w.bb,w.$C),ee(!0)};if(eP)e();else{var _,R;if(delete window[eR],ev.current=!0,T().info("Launching UPI app with intent URL:",u),T().info("SDK ver
1sion:",f,"isIosMobileDevice:",Z,"isSdkJourney:",b,"backendAppName:",c),Number(f)>=2&&!Z&&"function"==typeof(null==(R=window)||null==(_=R.Android)?void 0:_.launchUpiApp))T().info("Using native bridge to launch UPI app for SDK version 2 or above."),window.Android.launchUpiApp(c,u);else if(T().info("Using window.location.assign to launch UPI app for SDK version below 2 or iOS devices."),b)window.location.assign(u);else{let e,t=!1,n=()=>{"hidden"===document.visibilityState&&(t=!0,clearTimeout(e),document.removeEventListener("visibilitychange",n))};document.addEventListener("visibilitychange",n),e=setTimeout(()=>{document.removeEventListener("visibilitychange",n),t||"visible"!==document.visibilityState||es(!0)},5e3),window.location.href=u}el.current=setTimeout(()=>ea(!0),3e3),(e=>{let{onComplete:t,onCancel:n,onTimeout:i,transactionId:a,orderId:r}=e;t(),(0,k.rb)(eR).then(e=>{ev.current&&(((e,t,n)=>{e_(M.$e3,"POST",{csrfRequestIdentifier:s},{transactionId:e,merchantTxnId:t,upiLog:JSON.stringify({status:null==n?void 0:n.status,response:null==n?void 0:n.response}),clientId:p()(E,"partnerId",""),channel:(0,V.x)(p()(v,"fcChannel",""))},{showLoader:!1,isRawData:!0,showToast:!1,additionalData:{slug:"upi-p2m-log"}}).catch(()=>{})})(a,r,e),["cancelled","failure","app_not_found"].includes(g()(null==e?void 0:e.status))?((0,k.HU)(G.hM.UPI_CANCELLED_ERROR,g()(null==e?void 0:e.status)),n()):ey.current=setTimeout(()=>{ev.current&&!y()(w.D5,eh.current)&&((0,k.HU)(G.hM.UPI_CANCELLED_ERROR,g()(null==e?void 0:e.status)||"upi_timeout"),i())},3e4))})})({onComplete:e,onCancel:()=>{ef.current="cancelled",P&&C?C():o().back()},onTimeout:()=>{ef.current="cancelled",P&&C?C():o().back()},transactionId:r,orderId:i})}}!eu&&(ef.current="end_poll",W||m(i,eT.current))}}else eb?P&&C?C():e&&i?o().back():d():d()},[n,W,et,eu]),(0,a.useEffect)(()=>{u()(c)||(eh.current=g()(p()(c,"data.status","")))},[c]),(0,a.useEffect)(()=>{$&&(()=>{let e={pageName:B.fy.onUpiStatusPageLoad};(0,F.MZ)(B.Ye.PAGE_LOAD,e)})()},[$]),(0,a.useEffect)(()=>{u()(m)||(ef.current="end_poll",t.resetPaymentPageError())},[m]),(0,a.useEffect)(()=>{let e=()=>{(0,Y.triggerEmsEvent)({eventType:Y.EMS_EVENT_TYPES.HEARTBEAT,eventName:"UPI Status Page Visibility Change",eventData:{visibilityState:document.visibilityState}})};return document.addEventListener("visibilitychange",e),()=>document.removeEventListener("visibilitychange",e)},[]),(0,a.useEffect)(()=>{if(P)return;history.pushState(null,"",window.location.href);let e=()=>{J(!0),window.location.reload()};return window.addEventListener("popstate",e),()=>window.removeEventListener("popstate",e)},[]),z)return(0,i.jsx)(R.default,{});if($){let e=eP&&em.current?(0,i.jsxs)("div",{className:"upi-qr-container",children:[(0,i.jsx)("p",{className:"upi-qr-header",children:L.HEADER_QR}),(0,i.jsx)(Q.A,{src:"".concat(H.Cp,"/paymentPage/upi-apps-2.svg"),alt:O.UPI_APPS,className:"upi-qr-apps",width:295,height:20}),!u()(eg.current)&&(0,i.jsxs)("div",{className:"upi-qr-provider",children:[(0,i.jsxs)("div",{className:"left-section",children:[(0,i.jsx)(Q.A,{src:eg.current.imageDetails.avatarImg,alt:eg.current.imageDetails.altText,onError:k.mO.bind(void 0,U.DEFAULT)}),(0,i.jsxs)("div",{className:"provider-details",children:[(0,i.jsx)("p",{className:"provider-label",children:eg.current.details.label}),(0,i.jsx)("p",{className:"provider-value",children:eg.current.details.value})]})]}),(0,i.jsx)("div",{className:"right-section",children:(0,i.jsx)("p",{children:p()(r,"amount","")})})]}),(0,i.jsx)(I.A,{size:270,style:{height:"auto"},value:em.current}),(0,i.jsxs)("div",{className:"upi-qr-timing",children:[eo>0?(0,i.jsx)("div",{className:"timing-box",children:(0,i.jsxs)("div",{className:"timing-text",children:[(0,i.jsx)(Q.A,{className:"clock-icon",src:"".concat(H.Cp,"/paymentPage/upi-clock.svg"),alt:O.CLOCK_ICON}),(0,i.jsx)("p",{children:(0,i.jsx)("span",{children:eo?(0,D.cY)(eo):""})})]})}):null,(0,i.jsx)("div",{className:"timing-info",children:(0,i.jsx)("p",{children:L.TIMING_INFO_QR})})]})]}):(0,i.jsx)(i.Fragment,{children:Number(f)>=1?(0,i.jsxs)("div",{className:"upi-intent-loader-overlay",children:[(0,i.jsx)(Q.A,{src:"".concat(H.Cp,"/loader/loader-icon-rebranded.gif"),alt:"loading",width:75,height:75}),(0,i.jsx)("p",{children:ei?L.VERIFY:L.INITIATE})]}):(0,i.jsxs)("div",{className:"upi-status-container",children:[(0,i.jsxs)("div",{className:"upi-status-initiated",children:[(0,i.jsxs)("p",{children:[L.REQUEST_INITIATED.FIRST_PART,(0,i.jsxs)("span",{children:[L.REQUEST_INITIATED.SECOND_PART,p()(r,"amount","")]}),L.REQUEST_INITIATED.THIRD_PART]}),(0,i.jsx)("br",{}),(0,i.jsx)("p",{children:L.REQUEST_INITIATED.FOURTH_PART})]}),(0,i.jsx)("div",{className:"upi-status-section",children:(0,i.jsxs)("div",{className:"upi-status-timing",children:[eo>0?(0,i.jsxs)("div",{className:"timing-box",children:[(0,i.jsxs)("div",{className:"timing-text",children:[(0,i.jsx)(Q.A,{className:"clock-icon",src:"".concat(H.Cp,"/paymentPage/upi-clock.svg"),alt:O.CLOCK_ICON}),(0,i.jsxs)("p",{children:[L.PAGE_EXPIRE,(0,i.jsx)("span",{children:eo?(0,D.ZL)(eo):""})]})]}),(0,i.jsx)("div",{className:"track",children:(0,i.jsx)("div",{className:"progress",style:{width:100/w.Z2*Math.abs(eo-w.Z2)+"%"}})})]}):null,er?(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:"upi-app-not-opened-back",children:[(0,i.jsx)("p",{className:"title",children:L.NOT_LAUNCHED}),(0,i.jsx)("p",{className:"subtitle",children:L.TRY_AGAIN_TEXT}),(0,i.jsx)(A.default,{text:L.TRY_AGAIN,img:{src:"".concat(H.Cp,"/paymentPage/retry-white.svg"),alt:"retry"},buttonType:"secondary",customClass:"back-btn",handleClick:()=>{P&&C?C({shouldGoBack:!0}):(J(!0),window.history.back())}})]})}):(0,i.jsx)("div",{className:"timing-info",children:(0,i.jsx)("p",{children:L.TIMING_INFO})})]})})]})});return P?(0,i.jsxs)("div",{className:"upi-status-popup",children:[(0,i.jsxs)("div",{className:"upi-status-popup-header",children:[(0,i.jsx)("button",{type:"button",className:"upi-status-popup-back","aria-label":"Back",onClick:eI}),!eP&&(0,i.jsx)("p",{className:"upi-status-popup-title",children:L.HEADER})]}),e]}):(0,i.jsx)(_.default,{layoutId:4,handleGoBackClick:eI,headerText:L.HEADER,customAppLayoutClass:"upi-info-page",hideSidebar:!0,
1children:e})}return(0,i.jsx)(R.default,{})};q.propTypes={reduxActions:b().object,paymentResponse:b().object,csrfRequestIdentifierToken:b().string,isPopup:b().bool,onPopupClose:b().func};var K=!0;let Z=(0,s.Ng)(e=>{let{paymentOptions:t,auth:n,paymentPage:i,app:a}=e;return{paymentResponse:t.paymentResponse,additionalDetailsObj:t.additionalDetailsObj,csrfRequestIdentifierToken:n.csrfRequestIdentifierToken,upiIntentStatusResponse:i.upiIntentStatusResponse,userAgent:a.userAgent,error:i.error,sdkVersion:a.sdkVersion,platformDetails:a.platformDetails||{},sdkDetails:a.sdkDetails||{},isSdkJourney:a.isSdkJourney}},e=>({reduxActions:(0,r.zH)({...C.o,...S.o},e)}))(q)},66634:(e,t,n)=>{var i=n(46013),a=n(8532);e.exports=i(function(e,t,n){return e+(n?" ":"")+a(t)})},72495:(e,t,n)=>{"use strict";n.d(t,{Bl:()=>d,G:()=>c,jb:()=>u,n:()=>r,tX:()=>o,wh:()=>l,y:()=>s});var i=n(68010),a=n(22391);let r=()=>{(0,a.B)(i.Uj.pageLoad,{page_name:i.Uj.pageLoad,category_name:i.QP.CATEGORY_HOME_PAGE})},s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,a.B)(e,{click_name:e,category_name:i.QP.CATEGORY_HOME_PAGE,...t})},l=async e=>(await (0,a.B)(e,{click_name:e,category_name:i.QP.CATEGORY_HOME_PAGE}),!0),o=(e,t)=>{(0,a.B)(e,{click_name:e,category_name:i.QP.CATEGORY_HOME_PAGE,blog_name:t})},c=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,a.B)(e,{click_name:e,category_name:i.QP.CATEGORY_HOME_PAGE,...t})},u=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return await (0,a.B)(e,{click_name:e,category_name:i.QP.CATEGORY_HOME_PAGE,...t}),!0},d=e=>{(0,a.B)(e,{click_name:e,category_name:i.QP.CATEGORY_HOME_PAGE})}},77328:(e,t,n)=>{e.exports=n(29269)},80558:()=>{},83923:(e,t,n)=>{e.exports=n(46013)(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})},91575:e=>{e.exports=function(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;
1)if(!t(e[n],n,e))return!1;return!0}}}]);
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.