PageSourceSearch

https://www.gripinvest.in/_next/static/chunks/60149-f1aeabcd3abe74dc.js

js gripinvest.in collected 2026-10-03 19:06:59 UTC 10,691 bytes, 2 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0f864-00d4-7121-a830-419863411acd")}catch(e){}}();!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="274c38a5-f786-4be4-adee-0f3dc4a512a2",e._sentryDebugIdIdentifier="sentry-dbid-274c38a5-f786-4be4-adee-0f3dc4a512a2")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[60149],{57497:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var a=n(85893),i=n(67294);let r=e=>{let{isPlaying:t,duration:n,startAt:a=0,updateInterval:r=0,onComplete:s,onUpdate:o}=e,[c,l]=(0,i.useState)(a),u=(0,i.useRef)(0),d=(0,i.useRef)(a),m=(0,i.useRef)(-1e3*a),p=(0,i.useRef)(null),h=(0,i.useRef)(null),f=(0,i.useRef)(null),_=e=>{let t=e/1e3;if(null===h.current){h.current=t,p.current=requestAnimationFrame(_);return}let a=t-h.current,i=u.current+a;h.current=t,u.current=i;let s=d.current+(0===r?i:(i/r|0)*r),o=d.current+i,c="number"==typeof n&&o>=n;l(c?n:s),c||(p.current=requestAnimationFrame(_))},x=()=>{p.current&&cancelAnimationFrame(p.current),f.current&&clearTimeout(f.current),h.current=null},y=(0,i.useCallback)(e=>{x(),u.current=0;let n="number"==typeof e?e:a;d.current=n,l(n),t&&(p.current=requestAnimationFrame(_))},[t,a]);return(0,i.useEffect)(()=>{if(null==o||o(c),n&&c>=n){m.current+=1e3*n;let{shouldRepeat:e=!1,delay:t=0,newStartAt:a}=(null==s?void 0:s(m.current/1e3))||{};e&&(f.current=setTimeout(()=>y(a),1e3*t))}},[c,n]),(0,i.useEffect)(()=>(t&&(p.current=requestAnimationFrame(_)),x),[t,n,r]),{elapsedTime:c,reset:y}},s=(e,t,n)=>{let a=e/2,i=t/2,r=a-i,s=2*r,o="clockwise"===n?"1,0":"0,1",c=2*Math.PI*r;return{path:"m ".concat(a,",").concat(i," a ").concat(r,",").concat(r," 0 ").concat(o," 0,").concat(s," a ").concat(r,",").concat(r," 0 ").concat(o," 0,-").concat(s),pathLength:c}},o=(e,t)=>0===e||e===t?0:"number"==typeof t?e-t:0,c=(e,t,n,a,i)=>0===a?t:t+(i?a-e:e)/a*n,l=e=>{let{duration:t,initialRemainingTime:n,updateInterval:a,size:l=180,strokeWidth:u=12,trailStrokeWidth:d,isPlaying:m=!1,isGrowing:p=!1,rotation:h="clockwise",onComplete:f,onUpdate:_}=e,x=(0,i.useRef)(),{path:y,pathLength:g}=s(l,Math.max(u,null!=d?d:0),h),{elapsedTime:v}=r({isPlaying:m,duration:t,startAt:o(t,n),updateInterval:a,onUpdate:"function"==typeof _?e=>{let n=Math.ceil(t-e);n!==x.current&&(x.current=n,_(n))}:void 0,onComplete:"function"==typeof f?e=>{var n;let{shouldRepeat:a,delay:i,newInitialRemainingTime:r}=null!==(n=f(e))&&void 0!==n?n:{};if(a)return{shouldRepeat:a,delay:i,newStartAt:o(t,r)}}:void 0}),w=t-v;return{elapsedTime:v,path:y,pathLength:g,remainingTime:Math.ceil(w),rotation:h,size:l,stroke:e.color,strokeDashoffset:c(v,0,g,t,p),strokeWidth:u}};var u=n(95102),d=n.n(u);let m=e=>({position:"relative",width:e,height:e});function p(e){let{children:t,strokeLinecap:n,trailColor:i,trailStrokeWidth:r}=e,{path:s,pathLength:o,stroke:c,strokeDashoffset:u,remainingTime:p,elapsedTime:h,size:f,strokeWidth:_}=l(e);return(0,a.jsxs)("div",{style:m(f),children:[(0,a.jsxs)("svg",{viewBox:"0 0 ".concat(f," ").concat(f),width:f,height:f,xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{d:s,fill:"none",stroke:null!=i?i:"#d9d9d9",strokeWidth:null!=r?r:_}),(0,a.jsx)("path",{d:s,fill:"none",stroke:c,strokeLinecap:null!=n?n:"round",strokeWidth:_,strokeDasharray:o,strokeDashoffset:u})]}),"function"==typeof t&&(0,a.jsx)("div",{className:d().timeStyle,children:t({remainingTime:p,elapsedTime:h,color:c})})]})}},60149:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return L},retryRFQPaymentProcessingURL:function(){return D}});var a=n(85893),i=n(67294),r=n(11163),s=n(84324),o=n(2664),c=n(22424),l=n(94675),u=n(1822),d=n(57497),m=n(76040),p=n(87314),h=n(33103),f=n(44666),_=n(88169),x=n(85634),y=n(71945),g=n(84960),v=n(38392),w=n.n(v);let j=!1;var C=function(e){let t,{paymentDetails:n,exchange:s,amount:v,transactionID:C}=e,I=(0,o.I0)(),[T,b]=(0,i.useState)(!1),{upiID:N=""}=null!=n?n:{},S=(0,p.a)(),k=(0,r.useRouter)(),P=c.default.sanitize,[R,D]=(0,i.useState)("inprogress"),{heading:L,subHeading:F,paymentStatusHeading:M,paymentStatusSubHeading:U,iconURL:B}=x.vd[R],E=F.replace(x.Ow,"<span>".concat(N,"</span>")),G=()=>{t=setInterval(async()=>{let e=await (0,y.Hg)(C);(null==e?void 0:e.status)==="payment_received"&&(D("success"),clearInterval(t),I((0,l.TL)({paymentRefID:null==e?void 0:e.paymentRefId})),setTimeout(()=>{k.push("/confirmation")},5e3)),["rejected","expired","payment_expired","payment_failed"].includes(e.status)&&D("failed")},1e3*x.wf)};(0,i.useEffect)(()=>(j||G(),j=!0,()=>{j=!1,clearInterval(t)}),[]);let Z=e=>{let{remainingTime:t}=e,n=0===t;return(0,a.jsx)("span",{className:w().timerLabel,children:n?"00:00":(0,f.Ml)(t)})},q=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(0,a.jsxs)("div",{className:"flex-column",children:[t?(0,a.jsx)(u.Z,{src:t,width:24,height:24,layout:"intrinsic",alt:"image"}):null,(0,a.jsx)("span",{className:w().textWithImage,children:e})]})},A=async()=>{try{b(!0),await (0,y.Xi)({transactionID:C,paymentMethod:"upi",upiID:N})}catch(e){console.log(e)}b(!1),D("inprogress")},W=async()=>{clearInterval(t);let e=await (0,g.V2)(C);I((0,l.TL)({paymentRefID:null==e?void 0:e.paymentRefId})),setTimeout(()=>{k.push("/confirmation")},1e3)};return(0,a.jsxs)("div",{className:"flex-column ".concat(w().mainContainer),children:[(0,a.jsx)("div",{className:"flex justify-between",children:(0,a.jsx)("div",{className:w().upiLogo,children:(0,a.jsx)(u.Z,{src:"".concat(h.qN,"icons/upi-logo.svg"),width:S?72:54,height:S?22:16,alt:"upilogo"})})}),(0,a.jsx)("div",{className:w().mainText,children:L}),(0,a.jsx)("div",{className:w().secondaryText,dangerouslySetInnerHTML:{__html:P(E)}}),(0,a.jsxs)("div",{className:"flex-column ".concat(w().secondaryContainer),children:[(0,a.jsxs)("div",{className:"flex justify-between items-center ".concat(w().secondary),children:[q("You","".concat(h.qN,"icons/user.svg")),(0,a.jsxs)("div",{className:w().arrowContainer,children:[(0,a.jsx)("div",{className:w().textContainer,children:"₹".concat((0,_.bw)(v,2))}),(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"111",height:"30",viewBox:"0 0 111 30",fill:"none",children:[(0,a.jsx)("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H88.3493C89.1439 0 89.9206 0.236675 90.5801 0.679843L106.254 11.211C108.559 12.7602 108.623 16.1303 106.377 17.7651L90.6207 29.234C89.9367 29.7318 89.1126 30 88.2667 30H4C1.79086 30 0 28.2091 0 26V4Z",fill:"url(#paint0_linear_7865_270872)"}),(0,a.jsx)("defs",{children:(0,a.jsxs)("linearGradient",{id:"paint0_linear_7865_270872",x1:"4.13507e-07",y1:"15",x2:"117.5",y2:"15",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{stopColor:"white"}),(0,a.jsx)("stop",{offset:"1",stopColor:"white"})]})})]})]}),q("Exchange","".concat(h.qN,"icons/").concat("BSE"===s?"bse-logo.svg":"nse-logo.svg"))]}),(0,a.jsx)("div",{className:"flex justify-center ".concat(w().countDownTimerContainer," ").concat(R?"items-center ".concat(w().paymentStatusContainer," ").concat(R):""),children:(()=>{switch(R){case"timeout":case"success":case"failed":return B?(0,a.jsx)("div",{className:"".concat(w().updatedStatusIcon),children:(0,a.jsx)(u.Z,{src:B,width:42,he
1ight:42,alt:"iconurl"})}):null;default:return(0,a.jsx)(d.Z,{isPlaying:!0,size:S?139:109,strokeWidth:S?11:9,duration:f.uw,color:"#00B8B7",trailColor:"#FFFFFF",onComplete:()=>(clearInterval(t),D("timeout"),{shouldRepeat:!1}),children:Z})}})()}),(0,a.jsx)("div",{className:w().progressText,children:M}),(0,a.jsx)("div",{className:"".concat(w().progressSecondaryText," ").concat(R),children:U})]}),["failed","timeout"].includes(R)?(0,a.jsxs)("div",{className:w().btnGroup,children:[(0,a.jsx)(m.Z,{variant:m.L.PrimaryLight,className:w().reInitiatePaymentButton,onClick:W,children:"Close"}),(0,a.jsx)(m.Z,{variant:m.L.Primary,className:w().reInitiatePaymentButton,onClick:A,isLoading:T,children:"Reinitiate Payment"})]}):null]})},I=n(46158),T=n(72945),b=n.n(T),N=n(53595),S=n(42907);let k={setSelected:I.Pq},P=(0,o.$j)(()=>({}),k),R=!1,D=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3e3;try{return await (0,y.Oh)(e,1===t)}catch(a){if(t>1)return await new Promise(e=>setTimeout(e,n)),await D(e,t-1);return a}};var L=P(function(e){var t,n;let{setSelected:o}=e,[c,l]=(0,i.useState)(),[u,d]=(0,i.useState)(!1),[m,p]=(0,i.useState)({}),h=(0,r.useRouter)(),f=new URLSearchParams(null===(n=window)||void 0===n?void 0:null===(t=n.location)||void 0===t?void 0:t.search).get("transactionID"),_=()=>{h.push("/confirmation")},x=e=>{(0,S.L)({pageUrl:e,pageName:"RFQ Netbanking"})},y=async()=>{d(!0);try{let e=await D(f),{type:t,value:n}=e;t||((0,N.Ce)("Invalid Transaction"),h.push("/assets")),o({...e,transactionID:f}),"netBanking"===t?x(n):"upi"===t?p(e):"offline"===t?(_(),p(e)):h.push("/assets"),l(t)}catch(e){o({transactionID:f}),_()}d(!1)};return((0,i.useEffect)(()=>(R||y(),R=!0,()=>{R=!1}),[]),u)?(0,a.jsx)("div",{className:b().container,children:(0,a.jsx)(s.Z,{width:500,height:400})}):(0,a.jsx)("div",{className:b().container,children:"upi"===c?(0,a.jsx)(C,{transactionID:f,...m}):null})})},95102:function(e){e.exports={timeStyle:"CountDownTimer_timeStyle__EmsjH"}},38392:function(e){e.exports={mainText:"upi_mainText__U5hoO",secondaryText:"upi_secondaryText__CvQR2",progressSecondaryText:"upi_progressSecondaryText__s4meG",progressText:"upi_progressText__wbGl4",secondaryContainer:"upi_secondaryContainer__L3TKU",upiLogo:"upi_upiLogo__xNUt_",textWithImage:"upi_textWithImage__G07_h",timerLabel:"upi_timerLabel__S8U_h",countDownTimerContainer:"upi_countDownTimerContainer__v666K",closeIcon:"upi_closeIcon__mV_kI",updatedStatusIcon:"upi_updatedStatusIcon__p6p9e",paymentStatusContainer:"upi_paymentStatusContainer__vldpS",GreenPulse:"upi_GreenPulse__igm38",TimeoutPulse:"upi_TimeoutPulse__iWTMv",DangerPulse:"upi_DangerPulse__tpyHn",reInitiatePaymentButton:"upi_reInitiatePaymentButton__32HWm",secondary:"upi_secondary__yx4JP",arrowContainer:"upi_arrowContainer__RwKSM",textContainer:"upi_textContainer__XMOGU",btnGroup:"upi_btnGroup__QMVSF",mainContainer:"upi_mainContainer__1CfAd"}},72945:function(e){e.exports={container:"RfqPaymentProcessing_container__YoZmb"}}}]);
2//# chunkId=01a0f864-00d4-7121-a830-419863411acd

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.