PageSourceSearch

https://app.fisdom.com/static/js/3430.7baa3932.chunk.js

js fisdom.com collected 2026-10-02 15:22:30 UTC 13,043 bytes, 2 lines download raw bytes

1/*! For license information please see 3430.7baa3932.chunk.js.LICENSE.txt */
2"use strict";(self.webpackChunkmobile_web=self.webpackChunkmobile_web||[]).push([[3430],{86218:function(t,e,n){n.d(e,{A:function(){return O}});var r=n(86070),o=n(83832),i=n(34972),a=n(84648),s=n(12408),u=n(13095),c=n(62388),l=n(2736),d=n.n(l),f=n(30758),p=n(94641),y=n(37316),h=n(85020);function b(t){return function(t){if(Array.isArray(t))return g(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||v(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||v(t,e)||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 v(t,e){if(t){if("string"==typeof t)return g(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(t,e):void 0}}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var A="disabled",x="active",T="default",C="error",S=function(t){var e=t.isApiLoading,n=t.isDisabled,c=t.errorMessage,l=t.helperText,d=t.infoText,v=t.buttonText,g=t.onClickButton,S=t.onChange,O=t.otpTimerInSeconds,j=t.textColors,P=t.dataAid,w=t.customClassName,k=t.retryInfoText,I=t.isResendLoading,R=t.inputType,B=t.inputProps,E=t.resetOnErrorMessage,N=(0,f.useRef)(null),D=(0,f.useRef)(null),M=(0,f.useRef)(null),L=(0,f.useRef)(null),_=[N,D,M,L],U=m((0,f.useState)(""),2),G=U[0],F=U[1],H=m((0,f.useState)(["","","",""]),2),Y=H[0],W=H[1],K=m((0,f.useState)(O),2),$=K[0],q=K[1],V=m((0,f.useState)(!1),2),z=V[0],J=V[1],Q={disabled:"foundationColors.supporting.gainsboro",default:"foundationColors.supporting.cadetBlue",active:"foundationColors.primary.brand",error:"foundationColors.secondary.lossRed.400",helper:"foundationColors.primary.500"},X=(0,f.useCallback)(function(){var t=$,e=setInterval(function(){t>=0?(q(t),t--):(clearInterval(e),J(!0))},1e3)},[]);(0,u.A)(function(){N.current&&N.current.focus()},[]),(0,u.A)(function(){X()},[X]),(0,u.A)(function(){n?F(A):c?(E&&W(["","","",""]),F(C)):F(T)},[n,c]),(0,u.A)(function(){$===O&&X()},[$,O,X]),(0,u.A)(function(){S(Y.join(""))},[Y]);return(0,r.jsx)(o.A,{className:"otp-container ".concat(w),"data-aid":"otp_".concat(P),children:(0,r.jsxs)(o.A,{className:"otp-items-container",children:[(0,r.jsx)(o.A,{className:"input-container",children:_.map(function(t,e){return(0,r.jsx)(i.A,Object.assign({onChange:function(t){!function(t,e){var n=t.target.value;if(G!==T&&F(T),!(isNaN(n)||n.length>1)){var r=b(Y);r[e]=n,W(r),F(x),_[e+1]&&_[e+1].current.focus()}}(t,e)},onKeyDown:function(t){return function(t,e){var n=b(Y);"Backspace"===t.key&&_[e-1]&&(""!==n[e]?n[e]="":(_[e-1].current.focus(),n[e-1]=""),n.every(function(t){return""===t})&&F(T),W(n))}(t,e)},className:"input-item",type:R,variant:"standard",autoComplete:"off",disabled:n,inputRef:t,maxLength:1,onFocus:function(t){return t.target.select()},disableUnderline:!0,value:Y[e],"data-aid":"otp_".concat(e+1),sx:{"& > input":{borderColor:Q[G]},"& > input:focus":{borderColor:"foundationColors.primary.brand"}},inputProps:{inputMode:h.hr.NUMERIC}},B),e)})}),(0,r.jsx)(o.A,{className:"otp-info-box",children:e?(0,r.jsx)(s.A,{}):(!!c||!!l)&&(0,r.jsx)(y.A,{variant:y.d.BODY5,color:c?"foundationColors.secondary.lossRed.400":(null==j?void 0:j.helperText)||"foundationColors.content.tert
2iary",className:c?"error":"helper-text",dataAid:c?"error":"helperText",children:c||l})}),(0,r.jsx)(a.A,{flexDirection:"row",justifyContent:"flex-start",alignItems:"center",className:"otp-retry",children:z?(0,r.jsxs)(a.A,{direction:"row",gap:"4px",children:[k&&(0,r.jsx)(y.A,{variant:y.d.BODY2,color:j.retryInfoText||"foundationColors.content.secondary",dataAid:"otpTime",className:"otp-info-text",component:"span",children:k}),(0,r.jsx)(p.Ay,{isLoading:I,onClick:function(){J(!1),q(O),g()},variant:p.Ck.LINK,title:v})]}):d&&(0,r.jsxs)(y.A,{variant:y.d.BODY2,color:(null==j?void 0:j.infoText)||"foundationColors.content.secondary",dataAid:"otpTime",className:"otp-info-text",children:[d," ",$,"s"]})})]})})},O=S;S.defaultProps={isDisabled:!1,errorMessage:"",helperText:"",infoText:"",buttonText:"",onClickButton:c.A,onChange:c.A,otpTimerInSeconds:30,dataAid:"",textColors:{},customClassName:"",retryInfoText:"",isResendLoading:!1,isApiLoading:!1,inputProps:{},inputType:h.AB.PASSWORD,resetOnErrorMessage:!1},S.propTypes={isDisabled:d().bool,errorMessage:d().string,helperText:d().string,infoText:d().string,retryInfoText:d().string,buttonText:d().oneOfType([d().element,d().string]),onClickButton:d().func,onChange:d().func,otpTimerInSeconds:d().number,dataAid:d().oneOfType([d().number,d().string]).isRequired,textColors:d().exact({helperText:d().string,infoText:d().string,retryInfoText:d().string}),customClassName:d().string,isResendLoading:d().bool,isApiLoading:d().bool,inputProps:d().object,resetOnErrorMessage:d().bool,inputType:d().string}},7946:function(t,e,n){n.d(e,{A:function(){return r.A}});var r=n(86218)},73430:function(t,e,n){n.r(e),n.d(e,{default:function(){return T}});var r=n(86070),o=n(30758),i=n(51147),a=n(75699),s=n(5481),u=n(88564),c=n(52772);var l={dataAid:"enterOtp",navigationHeader:{dataAid:"enterOtp",title:{text:"Enter OTP",dataAid:"We’ve sent the OTP to your registered mobile number and email"},subtitle:{text:"We’ve sent the OTP to your registered mobile number and email",dataAid:"subtitle"}},otp:{infoText:"Didn't receive OTP? Resend in",dataAid:"default",retryInfoText:"Didn't receive OTP?",buttonText:"Resend"},switch:{cta:"Confirm switch"},redeem:{cta:"Confirm order"},swp:{cta:"Confirm order"},stp:{cta:"Confirm switch"}},d=n(76147),f={infoText:l.otp.infoText,dataAid:l.otp.dataAid,retryInfoText:l.otp.retryInfoText,buttonText:l.otp.buttonText,otpTimerInSeconds:15},p={headerTitle:l.navigationHeader.title.text,subtitle:l.navigationHeader.subtitle.text},y=n(81385),h=n(38584);function b(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof s?r:s,c=Object.create(u.prototype);return m(c,"_invoke",function(n,r,o){var i,s,u,c=0,l=o||[],d=!1,f={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,n){return i=e,s=0,u=t,f.n=n,a}};function p(n,r){for(s=n,u=r,e=0;!d&&c&&!o&&e<l.length;e++){var o,i=l[e],p=f.p,y=i[2];n>3?(o=y===r)&&(u=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=t):i[0]<=p&&((o=n<2&&p<i[1])?(s=0,f.v=r,f.n=i[1]):p<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,f.n=y,s=0))}if(o||n>1)return a;throw d=!0,r}return function(o,l,y){if(c>1)throw TypeError("Generator is already running");for(d&&1===l&&p(l,y),s=l,u=y;(e=s<2?t:u)||!d;){i||(s?s<3?(s>1&&(f.n=-1),p(s,u)):f.n=u:f.v=u);try{if(c=2,i){if(s||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,s<2&&(s=0)}else 1===s&&(e=i.return)&&e.call(i),s<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=t}else if((e=(d=f.n<0)?u:n.call(r,f))!==a)break}catch(e){i=t,s=1,u=e}finally{c=1}}return{value:e,done:d}}}(n,o,i),!0),c}var a={};function s(){}function u(){}function c(){}e=Object.getPrototypeOf;var l=[][r]?e(e([][r]())):(m(e={},r,function(){return this}),e),d=c.prototype=s.prototype=Object.create(l);function f(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,c):(t.__proto__=c,m(t,o,"GeneratorFunction")),t.prototype=Object.create(d),t}return u.prototype=c,m(d,"constructor",c),m(c,"constructor",u),u.displayName="GeneratorFunction",m(c,o,"GeneratorFunction"),m(d),m(d,o,"Generator"),m(d,r,function(){return this}),m(d,"toString",function(){return"[object Generator]"}),(b=function(){return{w:i,m:f}})()}function m(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}m=function(t,e,n,r){function i(e,n){m(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(i("next",0),i("throw",1),i("return",2))},m(t,e,n,r)}function v(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}
2finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return g(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(t,e):void 0}}(t,e)||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 g(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var A,x=function(t,e,n,r){return new(n||(n=Promise))(function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(a,s)}u((r=r.apply(t,e||[])).next())})},T=(A=y.A,function(){var t=(0,c.A)().navigate,e=(0,i.d4)(s.Oc),n=v((0,o.useState)(!1),2),y=n[0],m=n[1],g=v((0,o.useState)(""),2),T=g[0],C=g[1],S=v((0,o.useState)(""),2),O=S[0],j=S[1],P=(0,o.useMemo)(function(){return function(t){return{orderCtaTitle:l[t.order_type].cta}}(e)},[e]).orderCtaTitle;return(0,r.jsx)(A,{otpValue:O,error:T,otpProps:f,ctaTitle:P,isButtonLoading:y,otpErrorMessage:T,onChange:function(t){h.A.isEmptyOrUndefined(T)||C(""),j(t)},handleOtpResend:function(){return x(void 0,void 0,void 0,b().m(function t(){var n;return b().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,t.n=1,(0,a.Ty)(u.A,e.urlsafe_key);case 1:t.n=3;break;case 2:t.p=2,n=t.v,C(n.message);case 3:return t.a(2)}},t,null,[[0,2]])}))},handleSubmit:function(){return x(void 0,void 0,void 0,b().m(function n(){var r,o;return b().w(function(n){for(;;)switch(n.p=n.n){case 0:return m(!0),n.p=1,r={otp:O,urlsafe_key:e.urlsafe_key},n.n=2,(0,a.RY)(u.A,r);case 2:m(!1),(0,d.t)(t),n.n=4;break;case 3:n.p=3,o=n.v,C(o.message),m(!1);case 4:return n.a(2)}},n,null,[[1,3]])}))},headerProps:p})})},76147:function(t,e,n){n.d(e,{UB:function(){return s},t:function(){return a},tt:function(){return i}});var r=n(25808),o=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=r.d.ORDERSAUTH;return"".concat(e).concat(t)},i=function(t){t(o(r.d.OTP))},a=function(t){t(o(r.d.SUCCESS))},s=function(t){t(o(r.d.ERROR))}},81385:function(t,e,n){n.d(e,{A:function(){return d}});var r=n(86070),o=(n(30758),n(42795)),i=n(7946),a=n(26306),s=n(62388),u=n(2736),c=n.n(u),l=function(t){var e=t.ctaTitle,n=t.screenDataAid,s=t.otpErrorMessage,u=t.otpProps,c=t.headerProps,l=t.bottomSheetProps,d=t.isBottomSheetOpen,f=t.handleSubmit,p=t.handleOtpResend,y=t.closeBottomSheet,h=t.handlePrimaryClick,b=t.handleSecondaryClick,m=t.isButtonLoading,v=t.onChange,g=t.subtitle,A=t.sendEvents;return(0,r.jsxs)(o.A,{eventData:A(),noPadding:!0,headerProps:c,footer:{button1Props:{title:e,onClick:f,isLoading:m,hideMenuBar:!0}},dataAid:n,className:"enter-otp-container",children:[(0,r.jsx)("div",{className:"enter-otp",children:(0,r.jsx)(i.A,Object.assign({errorMessage:s,onClickButton:p,isDisabled:m},u,{onChange:v}))}),l&&(0,r.jsx)(a.A,Object.assign({onClose:y,onPrimaryClick:h,onSecondaryClick:b,isOpen:d},l,{subtitle:g||l.subtitle}))]})};l.defaultProps={ctaTitle:"",screenDataAid:"",otpErrorMessage:"",otpProps:{},headerProps:{},bottomSheetProps:{},isBottomSheetOpen:!1,handleSubmit:s.A,handleOtpResend:s.A,closeBottomSheet:s.A,handlePrimaryClick:s.A,handleSecondaryClick:s.A,isButtonLoading:!1,onChange:s.A,subtitle:"",sendEvents:s.A},l.propTypes={ctaTitle:c().string,screenDataAid:c().string,otpErrorMessage:c().string,otpProps:c().object,headerProps:c().object,bottomSheetProps:c().object,isBottomSheetOpen:c().bool,handleSubmit:c().func,handleOtpResend:c().func,closeBottomSheet:c().func,handlePrimaryClick:c().func,handleSecondaryClick:c().func,isButtonLoading:c().bool,onChange:c().func,subtitle:c().string,sendEvents:c().func};var d=l}}]);

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.