PageSourceSearch

https://www.icicipruamc.com/static/js/index.BnrHKVSi.js

js icicipruamc.com collected 2026-10-02 07:34:10 UTC 8,482 bytes, 1 lines download raw bytes

1import{r as s,ao as ee,eK as me,aW as te,aX as ae,ay as K,j as e,az as ue,a_ as W,bG as se,aY as r,o as p,f as he,bW as z,ku as fe,br as Z,kv as pe,c0 as re,cF as xe,bY as ge,v as Se,kw as Ee,a as oe,u as X,a4 as Ce,a5 as je,e as ye,aw as $,kx as Q,R as v,ky as Ne,kz as _e}from"./index.DCDHF-AL.js";import{A as Ae}from"./seo.DE2pGp3H.js";import{C as Fe}from"./index.CBnOnTJx.js";import{A as Re}from"./infiniteScroll.52iXqI2x.js";import qe from"./tabPanel.Bn0WIAM_.js";import{F as be,a as w,T as R,g as Te,b as ve,S as Oe}from"./constants.C9mHy8Pj.js";import{S as Pe}from"./search.C8op4CpJ.js";import Le from"./index.DaRAJR-B.js";import"./react-google-recaptcha-v3.esm.C-qZGYPE.js";import"./constants.D5ZB23Qp.js";import"./createLucideIcon.5CwIrDhg.js";import"./autoComplete.ggZqmlLM.js";import"./chip.DxehLK8n.js";import"./Chip.BLEj0h_i.js";import"./radioButton.iYPzfAXS.js";import"./FormControlLabel.B_GA-7yO.js";import"./Radio.B_u_1Ha8.js";import"./SwitchBase.CIroTRRR.js";import"./useAutocomplete.Dxzjiu7A.js";import"./Checkbox.CZ2_HLbd.js";import"./mobileTextField.C_oqVNde.js";import"./location.D900rEHb.js";import"./getBrowserDetails.DXfb_cv8.js";import"./getUserLocation.FBWG7cGZ.js";import"./useReCaptcha.BLj5I6AQ.js";import"./titleSection.CRFB050V.js";import"./Box.f499KMlb.js";import"./createBox.B6R6XB4W.js";import"./Card.D-J5Fyag.js";import"./CardContent.BFtC-bk7.js";import"./consultOurExpert.C-BnUsk0.js";import"./constants.CgvZ622b.js";import"./constants.BfhbomyI.js";import"./constants.CkUhkb7Q.js";import"./array.CstplUzO.js";/* empty css             */const ke=({faqs:n,errorFlag:d,categoryList:c,categoryErrorFlag:x,callFaqListApi:m,isHasMore:O,catCode:h,currentTab:i,setCurrentTab:l,loadedFlag:q,textConstants:f,faqConstants:N,filteredFaqData:g,isNoSearchedRecord:H})=>{const[_,M]=s.useState(""),b=ee(),[E,C]=s.useState(""),A=me(E,500),{pathname:F}=b.location,P=s.useRef(null),L=te(`(${ae.MOBILE})`);s.useEffect(()=>{K(0),M(P?.current)},[i]);const k=(t,o)=>{l(o),m(c[o].code,!0,E)},T=()=>{m(c[i].code,!1,E)},I=(t,o,S)=>()=>{b.push({pathname:`${F}`,state:{question:t,answer:o,catCode:S}})},G=()=>{A.trim()&&g()},B=t=>{const o=t.target.value;o.match(Ee)&&C(o)},j=()=>{C("")},U=t=>{t.key===N?.ENTER&&A.trim()!==""&&g()};return s.useEffect(()=>{_&&m(c[i].code,!0,A)},[A]),s.useEffect(()=>{const t=c.findIndex(o=>o.code===h);l(t>-1?t:0)},[]),e.jsxs("div",{className:"help-center-faqs",ref:P,children:[n&&!n.length&&!d&&q&&e.jsx(ue,{}),e.jsxs(W,{className:ge("container",{"space-bottom":Se()}),children:[e.jsx(se,{}),e.jsxs(r,{container:!0,className:"heading",children:[e.jsx(r,{item:!0,xs:12,sm:9,display:"flex",alignItems:"center",children:e.jsxs(r,{container:!0,direction:"row",spacing:3,children:[e.jsx(r,{item:!0,xs:12,sm:12,children:e.jsx(p,{variant:"h3",styleType:"Bold",className:"faq-heading",children:f?.FAQ_HEADING})}),e.jsx(r,{item:!0,xs:12,sm:12,children:e.jsxs(r,{container:!0,spacing:{xs:2,md:2},className:"mt-7",children:[e.jsxs(r,{item:!0,xs:12,sm:10,lg:9,children:[e.jsx(he,{name:"search",placeholder:f?.FAQ_PLACE_HOLDER,fullWidth:!0,variant:"standard",type:"text",value:E,startAdornment:e.jsx(z,{src:Pe}),className:"help-center-faqs__textField",onChange:B,onKeyPress:U,endAdornment:E&&e.jsx(z,{src:fe,onClick:j,className:"cursor-pointer"})}),H&&e.jsx(p,{variant:"body3",styleType:"Reg",className:"error-message",children:f?.NO_ANSWERS_FOUND})]}),e.jsx(r,{item:!0,xs:6,sm:3,className:"search-btn-section",children:e.jsx(Z,{variant:"contained",name:"search",color:"primary",className:"search-btn",onClick:G,children:e.jsx(p,{variant:"button2",styleType:"Bold",children:f?.FAQ_SEARCH})})})]})})]})}),e.jsx(r,{item:!0,sm:3,display:{xs:"none",sm:"flex"},justifyContent:"flex-end",children:e.jsx(z,{src:be,alt:"faq image"})})]}),c&&c?.length>0&&e.jsxs(e.Fragment,{children:[e.jsx(r,{item:!0,xs:12,className:"faq-tabs",children:e.jsx(Le,{variant:"scrollable",scrollButtons:!0,value:i,onChange:k,visibleScrollbar:!1,allowScrollButtonsMobile:!!L,className:"faq-tabs-scroll",zoomRequired:!1,children:c})}),e.jsx(qe,{value:i,index:i,className:"faq-tab-panel",children:e.jsx("div",{className:"pt-8",children:n&&n?.length&&!d?e.jsx(Re,{dataLength:n?.length,next:T,hasMore:O,refValue:_,children:e.jsx(r,{container:!0,columnSpacing:3,rowSpacing:3.4,children:n?.map((t,o)=>{const S=pe(t?.answer?.text,N.descSize);return e.jsxs(r,{item:!0,xs:12,sm:6,className:"faqs",children:[e.jsx(p,{variant:"body3",styleType:"Bold",className:"faqs__text mb-2",children:f?.QUESTIONS[t?.question?.code]||t?.question?.text}),e.jsxs(p,{variant:"body4",styleType:"Reg",component:"div",className:"faqs__color",children:[e.jsx(re,{html:S?.value}
1),S?.moreText,e.jsx(Z,{name:"",variant:"text",className:"button-link",onClick:I(f?.QUESTIONS[t?.question?.code]||t?.question?.text,t?.answer?.text,t?.catCode),children:e.jsx(p,{variant:"menuOpenLink2",styleType:"Reg",component:"span",className:"faqs__link read-more pl-2",children:f.READ})})]})]},`${t}${o}`)})})}):d&&e.jsx("div",{className:"generic-error pt-8 pb-8",children:e.jsx(p,{variant:"label1",styleType:"Bold",children:xe.SOMETHING_WENT_WRONG})})})},i)]})]})]})},Ie=({question:n,answer:d,catCode:c,pathFrom:x,textConstants:m,faqConstants:O})=>{const h=ee(),i=te(`(${ae.MOBILE})`),l=oe();s.useEffect(()=>{K(0)},[]);const q=()=>{x?h.goBack():h.push({pathname:l?.state?.prevPath?.toString(),state:{catCode:c}})};return e.jsxs("div",{className:"faq-detail-page",children:[e.jsx(W,{className:"container",children:e.jsx(r,{sx:{flexGrow:1},container:!0,justifyContent:"center",children:e.jsxs(r,{item:!0,xs:12,children:[e.jsx(se,{onClick:q}),e.jsx(p,{variant:i?"h3":"h4",styleType:"Bold",className:"faq-detail-page__title-heading",children:m.FAQ})]})})}),e.jsx(W,{className:"container",children:e.jsxs("div",{className:"faq-detail-page__content pb-30 pb-sm-40",children:[e.jsx(p,{variant:"h6",styleType:"Bold",className:"mb-8",children:n}),e.jsx(re,{html:d})]})})]})},yt=()=>{const[n,d]=s.useState([]),[c,x]=s.useState(!1),[m,O]=s.useState([]),[h,i]=s.useState(""),[l,q]=s.useState([]),f=X(a=>a.commonField.globalConstants),N=Ce(f?.USER_ROLES_CONSTANTS?.INVESTOR.toLocaleLowerCase()||je.INVESTOR.toLocaleLowerCase()),[g,H]=s.useState({page:0,size:w.faqSize,categoryCode:"",userType:N}),[_,M]=s.useState(!1),[b,E]=s.useState(1),[C,A]=s.useState(""),[F,P]=s.useState(0),L=oe(),{pathname:k}=L,T=L?.state,I=T?.question,G=T?.answer,B=T?.path,j=X(a=>ye(a,k)),U=()=>{switch(k){case v.FAQS_LEARN:return v.CONSULT_EXPERTS_LEARN;case v.FAQS_HELP_CENTER:return v.CONSULT_EXPERTS_HELP_CENTER;default:return v.PAGE_NOT_FOUND}},{data:t,isError:o,isLoading:S}=$("categoryListFaq",()=>Te(N)),{isError:ne,isLoading:Be,refetch:ce}=$("faqData",()=>ve(g),{enabled:!1,onSuccess:a=>{x(!1),M(a?.data?.success?.totalPageCount!==g.page),d(n?.concat(a?.data?.success?.data))},onError:()=>x(!1)}),ie=a=>a.reduce((u,y)=>(u.some(de=>de.name?.code===y?.name?.code)||u.push(y),u),[]),{isError:De,isLoading:Qe,refetch:Y,isFetched:le}=$("filtredFaqData",()=>_e(h,Oe),{enabled:!1,onSuccess:a=>{x(!1),O(Ne(a?.success?.data?.documents));const D=a?.success?.data?.documents.map((u,y)=>({name:{code:u.data_custom_tag_1,text:u.data_custom_tag_1},sortOrder:(y+1).toString()}));q(ie(D))},onError:()=>x(!1)}),J=(a,D=!1,u)=>{if(i(u),!l?.length){const y=a===C&&_?b+1:1;A(a),E(y),(_||a!==C||u||u==="")&&(H({page:y,size:w.faqSize,categoryCode:a,userType:N}),D&&(x(!0),d([])))}},V=a=>Q(l,R?.FAQ_CATEGORIES)[a]?.code;return s.useEffect(()=>{m?.length&&d(m?.filter(a=>a?.catCode===V(0)))},[m]),s.useEffect(()=>{d(m?.filter(a=>a?.catCode===V(F)))},[F]),s.useEffect(()=>{h&&Y()},[h]),s.useEffect(()=>{if(t?.data?.success?.data&&!g?.categoryCode&&!l?.length){const a=Q(t?.data?.success?.data,R?.FAQ_CATEGORIES)[F]?.code;J(a,!1)}g?.categoryCode&&ce()},[t,g]),s.useEffect(()=>{(b===1||B)&&K(0)},[]),e.jsxs(e.Fragment,{children:[e.jsx(Ae,{...j,children:j?.rel&&j?.href?e.jsx("link",{rel:j?.rel,href:`${window.location.origin}${j?.href}`}):null}),I?e.jsx(Ie,{question:I,answer:G,catCode:C,pathFrom:B,textConstants:R,faqConstants:w}):e.jsxs(e.Fragment,{children:[e.jsx(ke,{faqs:n,errorFlag:ne,categoryList:S?[]:l?.length?Q(l,R?.FAQ_CATEGORIES):Q(t?.data?.success?.data,R?.FAQ_CATEGORIES),categoryErrorFlag:!t?.data?.success?.data?.length&&!S?!0:o,callFaqListApi:J,isHasMore:_,catCode:C,currentTab:F,setCurrentTab:P,loadedFlag:S||c,textConstants:R,faqConstants:w,filteredFaqData:Y,isNoSearchedRecord:h?.trim()?.length>2&&!l?.length&&le}),e.jsx(Fe,{redirectUrl:U()})]})]})};export{yt as default};

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.