PageSourceSearch

https://app.fisdom.com/static/js/4420.2633498e.chunk.js

js fisdom.com collected 2026-10-02 15:23:00 UTC 11,901 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkmobile_web=self.webpackChunkmobile_web||[]).push([[4420],{34420:function(e,t,n){n.r(t),n.d(t,{default:function(){return ne}});var a=n(86070),r=n(88564),i=n(14067),o=n(88176),s=n(59056),l=n(38584);var c=n(68323),u=n(23865),d=n(70324),v=n(52772),f=n(71326),m=n(45019),h=n(8288),p=n(68508),y=n(51147),A=n(456),b=c.xK;var g=function(e){var t=e.isin,n=void 0===t?"":t,a=e.fundName,i=void 0===a?"":a,o=(0,y.wA)(),s=(0,v.A)().navigate,l=(0,A.A)(h.gf),c=function(e){var t,a=e.response;((null==a?void 0:a.balance)||0)<=0?(0,d.A)(b.toast_message.text):(t={state:{isin:n,fundName:i,landedFrom:""}},o((0,h.fL)(m.te.MANUAL)),o((0,h.K1)()),(0,p.WX)(s,t))},u=function(e){var t=e.error,n=(null==t?void 0:t.message)||"Something went wrong, please try again later";(0,d.A)(n)};return{sipWithdrawRedirection:function(){o((0,h.gf)({Api:r.A,isin:n,sagaCallback:c,errorSagaCallback:u}))},isLoading:l}},x=n(72171),S=n(30758),C=n(35684),N=n(57731);const j={text:"Not satisfied with returns"},_={text:"Want to withdraw money"},E={text:"Want to pause investing"},k={text:"Want to change SIP amount/date"},w={text:"Goal is complete"},P={text:"Other reasons to cancel"};var B=n(34320),O=n(55580),I=n(69147),R=n(62388),T=n(76623),L={"iv_sip_wealth.svg":n(53683),"iv_sip_cancel.svg":n(95030),"iv_easy_sip.svg":n(69672)},M=function(e){var t=e.isOpen,n=e.onClose,r=e.onPrimaryClick,i=e.onSecondaryClick,o=void 0===i?R.A:i,s=e.viewData;if(!s)return null;var l=s.icon,c=s.title,u=s.subtitle,d=s.primaryBtn,v=s.secondaryBtn,f=L[l];return(0,a.jsxs)(T.A,{isOpen:t,onClose:n,popupClass:"csr-bs-popup",children:[(0,a.jsxs)("div",{className:"csr-cancel-bs-header",children:[(0,a.jsx)("div",{className:"csr-cancel-bs-illustration",children:f&&(0,a.jsx)(O.I,{src:f,alt:"",width:140,height:120,useLazyLoad:!1})}),(0,a.jsxs)("div",{className:"csr-cancel-bs-meta",children:[c&&(0,a.jsx)("span",{className:"headingBase contentPrimary",children:c}),u&&(0,a.jsx)("span",{className:"bodyBase contentSecondary",children:u})]})]}),(0,a.jsxs)("div",{className:"csr-cancel-bs-actions",children:[(0,a.jsx)("div",{className:"sip-bs-primary-btn",children:(0,a.jsx)(I.B,{buttonText:d,variant:I.V.PRIMARY,size:I.a.LARGE,isFullWidth:!0,onClick:function(){return r()}})}),v&&(0,a.jsx)("div",{className:"sip-bs-secondary-btn",children:(0,a.jsx)(I.B,{buttonText:v,variant:I.V.TERTIARY,size:I.a.LARGE,isFullWidth:!0,isAccent:!0,onClick:o})})]})]})},D=n(2163),U=n(14487),H=n.n(U);!function(e){function t(){var t=this||self;t.globalThis=t,delete e.prototype._T_}"object"!=typeof globalThis&&(this?t():(e.defineProperty(e.prototype,"_T_",{configurable:!0,get:t}),_T_))}(Object);var W=function(e){var t=e.disableCopyPaste,n=e.label,a=e.error,r=e.labelStyle,i=e.errorStyle,o=e.textAreaStyle,s=e.parentDivClass,l=e.value,c=e.onChange,u=(0,D.b)(e,["disableCopyPaste","label","error","labelStyle","errorStyle","textAreaStyle","parentDivClass","value","onChange"]),d=H()({"txta37Area contentPrimary":!0,txta37Normal:0===(null==a?void 0:a.length),txta37Error:a&&0!==a.length});return S.createElement("div",{className:"txta37Div ".concat(s)},n&&S.createElement("div",{style:r,className:"txta37Label contentTertiary"},n),S.createElement("textarea",(0,D._)({},u,{className:d,value:l,onChange:c,style:o,onCopy:t?function(e){return X(e)}:function(){},onPaste:t?function(e){return z(e)}:function(){}})),a&&0!==a.length&&S.createElement("div",{style:i,className:"txta37ErrorMessage contentNegative"},a))},X=function(e){e.preventDefault()},z=function(e){e.preventDefault()};W.defaultProps={labelStyle:{},errorStyle:{},textAreaStyle:{},parentDivClass:"",disableCopyPaste:!1,error:""};var V=S.memo(W);function F(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 a,r,i,o,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(a=i.call(n)).done)&&(s.push(a.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw r}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return G(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?G(e,t):void 0}}
1(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 G(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var K=function(e){var t=e.showOtherReasonSheet,n=e.handlePrimaryAction,r=e.closeBottomSheet,i=e.errorMessage,o=F((0,S.useState)(""),2),s=o[0],u=o[1],d=!l.A.isEmptyOrUndefined(i);return(0,a.jsx)(T.A,{isOpen:t,onClose:r,popupClass:"csr-bs-popup",children:(0,a.jsxs)("div",{className:"csr-bs-container",children:[(0,a.jsx)("div",{className:"csr-bs-meta",children:(0,a.jsx)("span",{className:"headingBase contentPrimary",children:c.o0.title})}),(0,a.jsx)("div",{className:"csr-other-reason-input",children:(0,a.jsx)(V,{parentDivClass:"bodySmall",value:s,onChange:function(e){return u(e.target.value)},placeholder:c.o0.placeholder,maxLength:200,error:d?i:"",textAreaStyle:{borderRadius:"8px",height:"81px",resize:"none",width:"stretch"}})}),(0,a.jsx)("div",{className:"csr-bs-actions",children:(0,a.jsx)("div",{className:"sip-bs-primary-btn",children:(0,a.jsx)(I.B,{buttonText:c.o0.btnTitle,variant:I.V.PRIMARY,size:I.a.LARGE,isFullWidth:!0,onClick:function(){return n(s)}})})})]})})},q=function(e){var t=e.icon,n=e.label,r=e.value,i=e.onSelect,o=void 0===i?R.A:i;return(0,a.jsxs)("div",{className:"csr-reason-item cur-po",onClick:function(){return o(r)},children:[(0,a.jsx)(t,{size:20,className:"contentPrimary"}),(0,a.jsx)("span",{className:"bodyBaseHeavy contentPrimary",children:n})]})},Y=[{value:"Not_satisfied",label:j.text,Icon:N.MdsIcHugePercent},{value:"withdraw",label:_.text,Icon:N.MdsIcHugeLogout},{value:"Not_enough_money",label:E.text,Icon:N.MdsIcHugePauseCircle},{value:"change_amount_date",label:k.text,Icon:N.MdsIcHugePencilEdit},{value:"goal_complete",label:w.text,Icon:N.MdsIcHugeCheckmarkCircle},{value:"other",label:P.text,Icon:N.MdsIcHugeLeftToRightListBullet}],$=function(e){var t=e.isBottomSheetOpen,n=e.handlePrimaryAction,r=e.handleSecondaryAction,i=e.showOtherReasonSheet,o=e.onReasonSelect,s=e.bottomSheetViewData,l=e.closeBottomSheet,u=e.errorMessage,d=e.isLoading,v=e.isProcessingRequest,f=e.onBackClick,m=v||d;return(0,a.jsxs)(B.A,{children:[(0,a.jsx)(B.A.Header,{useMintHeader:!0,onBackClick:f}),(0,a.jsxs)(B.A.Body,{children:[m&&(0,a.jsx)("div",{className:"csr-overlay-loader",children:(0,a.jsx)(C.L,{loaderType:C.a.CIRCULAR,active:!0})}),(0,a.jsxs)("div",{className:"csr-wrapper",children:[(0,a.jsx)("span",{className:"csr-title headingLarge contentPrimary",children:c.xK.title.text}),(0,a.jsx)("div",{className:"csr-reason-list",children:Y.map(function(e,t){var n=e.value,r=e.label,i=e.Icon;return(0,a.jsxs)(S.Fragment,{children:[(0,a.jsx)(q,{icon:i,label:r,value:n,onSelect:o}),t<Y.length-1&&(0,a.jsx)("div",{className:"csr-divider"})]},n)})})]}),(0,a.jsx)(M,{isOpen:t,onClose:l,onPrimaryClick:n,onSecondaryClick:r,viewData:s}),(0,a.jsx)(K,{showOtherReasonSheet:i,handlePrimaryAction:n,closeBottomSheet:l,errorMessage:u})]})]})},J=n(54878);function Q(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 a,r,i,o,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(a=i.call(n)).done)&&(s.push(a.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw r}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Z(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Z(e,t):void 0}}(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 Z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var ee,te="SIP_MANDATE",ne=(ee=$,function(){var e=Q((0,S.useState)(!1),2),t=e[0],n=e[1],m=Q((0,S.useState)(!1),2),h=m[0],p=m[1],A=Q((0,S.useState)(!1),2),b=A[0],C=A[1],N=Q((0,S.useState)(""),2),j=N[0],_=N[1],E=Q((0,S.useState)(i.cN.Not_satisfied),2),k=E[0],w=E[1],P=(0,y.d4)(s.y3,y.bN),B=(0,f.D)().getToken,O=(0,y.wA)(),I=(0,v.A)(),R=I.navigate,T=I.goBack,L=g({isin:null==P?void 0:P.isin,fundName:null==P?void 0:P.fund_name}),M=L.isLoading,D=L.sipWithdrawRedirection,U=function(){(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&t&&J.A.sendCancelSipBottomSheetEvent({userAction:u.A.BACK,fundName:null==P?void 0:P.fund_name,status:null==P?void 0:P.friendly_status}),n(!1),p(!1),_("")}
1,H=function(e){C(!1),o.Ob.PAUSE===e?(0,x.PV)(R):(0,x.jr)(R)},W=function(e){C(!0),U(!1);var t=B(),n={key:P.key,action:"cancel",request_reason:e},a={Api:r.A,screen:te,data:n,sagaCallback:function(e){var t,n=e.error,a=null===(t=null==n?void 0:n.result)||void 0===t?void 0:t.error;if(!l.A.isEmptyOrUndefined(a))return C(!1),void(0,d.A)(a);H(o.Ob.CANCEL)},token:t};O((0,s.Bj)({sipAction:o.Ob.CANCEL})),O((0,s.wM)(a))},X=function(e){var n,a=l.A.isEmptyOrUndefined(e)?null!==(n=null==k?void 0:k.reason)&&void 0!==n?n:"":null!=e?e:"";0!==a.length?a.length<10?_(c.o0.minChar):a.length>200?_(c.o0.maxChar):(_(""),t&&J.A.sendCancelSipBottomSheetEvent({userAction:u.A.NEXT,fundName:null==P?void 0:P.fund_name,status:null==P?void 0:P.friendly_status}),U(!1),W(a)):_(c.o0.placeholder)},z=function(){J.A.sendCancelSipBottomSheetEvent({userAction:u.A.NEXT,fundName:null==P?void 0:P.fund_name,status:null==P?void 0:P.friendly_status}),U(!1),D()},V=function(){J.A.sendCancelSipBottomSheetEvent({userAction:u.A.NEXT,fundName:null==P?void 0:P.fund_name,status:null==P?void 0:P.friendly_status}),function(){C(!0),U(!1);var e=B();O((0,s.Bj)({sipAction:o.Ob.PAUSE,pausePeriod:1}));var t={key:P.key,period:1,action:o.Ob.PAUSE},n={Api:r.A,screen:te,data:t,sagaCallback:function(e){var t,n=e.error,a=null===(t=null==n?void 0:n.result)||void 0===t?void 0:t.error;if(!l.A.isEmptyOrUndefined(a))return C(!1),void(0,d.A)(a);H(o.Ob.PAUSE)},token:e};O((0,s.wM)(n))}()},F=function(){J.A.sendCancelSipBottomSheetEvent({userAction:u.A.NEXT,fundName:null==P?void 0:P.fund_name,status:null==P?void 0:P.friendly_status}),T()},G=function(){J.A.sendCancelSipBottomSheetEvent({userAction:u.A.NEXT,fundName:null==P?void 0:P.fund_name,status:null==P?void 0:P.friendly_status}),U(!1),O((0,s.Bj)({sipAction:o.Ob.EDIT})),(0,x.w)(R)},K=(0,S.useMemo)(function(){return{onCancelSipClick:X,onRedeemUnitsActionClick:z,onPauseSipClick:V,closeBottomSheets:U,onContinueInvestingClick:F,onEditSipClick:G}},[k]),q=(0,S.useCallback)(function(e){var t=k.primary_btn_action;if(t){var n=i.x1[t];if(n){var a=K[n];a&&a(e)}}},[k,K]),Y=(0,S.useCallback)(function(){var e=k.secondary_btn_action;if(e){var t=i.x1[e];if(t){var n=K[t];n&&n()}}},[k,K]);return(0,a.jsx)(ee,{isBottomSheetOpen:t,handlePrimaryAction:q,handleSecondaryAction:Y,showOtherReasonSheet:h,onReasonSelect:function(e){if(J.A.sendCancelSipReasonEvent({userAction:u.A.NEXT,reason:e,fundName:null==P?void 0:P.fund_name}),e!==i.cL.goal_complete){var t=(e=>i.cN[e])(e);w(t),e===i.cL.other?p(!0):n(!0)}else W("Goal complete")},onBackClick:function(){J.A.sendCancelSipReasonEvent({userAction:u.A.BACK,fundName:null==P?void 0:P.fund_name}),T()},closeBottomSheet:U,bottomSheetViewData:k,errorMessage:j,isLoading:M,isProcessingRequest:b})})}}]);

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.