1import{j as t,aY as b,o as p,bW as h,cA as G,ao as le,a as ce,aW as me,aX as de,r,bq as K,b$ as N,ay as pe,a2 as z,a3 as ge,az as fe,jH as ue,a_ as he,k9 as xe,bY as $,c0 as Ie,br as Y,a6 as u,ka as k,lu as ye}from"./index.1t6HhxO5.js";import{L as q}from"./linkArrow.B_6u3cul.js";import{A as Ae}from"./avatar.DuL0EznN.js";import{A as _e}from"./seo.DB3RroyX.js";import{u as je,A as Le,S as Ce,K as Ee}from"./useKnowledgeCenterDataQuery.DANcgpdI.js";import{S as Ne}from"./share.BjJyaKlE.js";import{W as be}from"./whatsapp.v-W2Fm6L.js";import{i as Q}from"./isEqual.B5XRBElq.js";import"./Avatar.DLerxwLK.js";import"./useShare.DoC0J73d.js";import"./formik.esm.BmM_XPwb.js";import"./isSymbol.CYvIzdD2.js";import"./carousel.ed0n3QLn.js";import"./fileCard.Mx8fEhX9.js";import"./webinar.B1r2gQCe.js";import"./article.C0ikDnAj.js";import"./playIconOrange.CZPzM6tN.js";import"./share.B2204dDv.js";import"./shareContent.VMMmiAbe.js";import"./shareContent.CFb4no_R.js";import"./share.COoyJKyP.js";import"./mobileTextField.DH2IUpRQ.js";import"./autoComplete.CQdD_T8f.js";import"./chip.DMZxplBx.js";import"./Chip.BNxZHIIn.js";import"./radioButton.CFe-h0H6.js";import"./FormControlLabel.CnMDDTHu.js";import"./Radio.B6zUtL0I.js";import"./SwitchBase.DmQkQXy3.js";import"./useAutocomplete.DMP67eid.js";import"./Checkbox.CcmUMXMA.js";import"./index.Rt5GSqVM.js";/* empty css */import"./tabPanel.CFdUHbak.js";import"./email.1n_Bflds.js";import"./yellowInfo.wYnB_VKK.js";import"./constants.CQRbq1Oy.js";import"./array.Coj5nQtv.js";import"./knowledgeCenter.BDADDxPf.js";import"./_baseIsEqual.D3hM7Bfy.js";const ve="/static/media/currencyBgImage.GpIw7lTP.jpg",De="/static/media/currencyBgImagePhone.Bz10WadR.jpg",Re="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22.5%2012.0632C22.5%206.2648%2017.7984%201.56323%2012%201.56323C6.20156%201.56323%201.5%206.2648%201.5%2012.0632C1.5%2017.3039%205.33906%2021.6478%2010.3594%2022.4362V15.0993H7.69266V12.0632H10.3594V9.74995C10.3594%207.11886%2011.9273%205.66433%2014.3255%205.66433C15.4744%205.66433%2016.6763%205.86964%2016.6763%205.86964V8.45386H15.3516C14.048%208.45386%2013.6402%209.26292%2013.6402%2010.0945V12.0632H16.552L16.087%2015.0993H13.6406V22.4371C18.6609%2021.6492%2022.5%2017.3053%2022.5%2012.0632Z'%2
10fill='%2375838E'/%3e%3c/svg%3e",we=({tagsList:v,category:y,textConstants:A,fbWhatsappHandler:D,shareLinkHandler:_})=>t.jsxs("div",{className:y===A?.ARTICLE?"tags":"tags tags-card",children:[t.jsx(b,{item:!0,xs:12,sm:9,md:10,lg:10,children:v?.map((l,j)=>t.jsx(p,{variant:"label4",styleType:"Bold",className:j===0?"list active":"list",children:l},`tags-${j}`))},"tags"),t.jsxs(b,{item:!0,className:"social-icon",xs:12,sm:3,md:2,lg:2,children:[t.jsx(h,{onClick:_,src:Ne,className:"social-icon__image social-icon__image--share-grey",alt:""}),t.jsx(G,{href:"#",className:"social-icon__link",startIcon:t.jsx(h,{src:Re,className:"social-icon__image",alt:"fb-link"})}),t.jsx(G,{href:"#",className:"social-icon__link",startIcon:t.jsx(h,{src:be,className:"social-icon__image",alt:"whatsapp-link"})})]},"social-icon")]}),It=({tagsList:v,categoryLevel:y,categoryID:A,categoryTitle:D,categoryFlag:_,routeConstants:l,globalConstants:j,textConstants:x,showDetails:L,fbWhatsappHandler:U,shareDataHandler:P,showDate:F=!0,isGoBackClicked:H=!1,setIsGoBackClicked:g,onCategoryNameChange:M})=>{const R=le(),i=ce(),J=i?.search,O=me(`(${de.MOBILE})`),[V,Z]=r.useState(!0),[n,f]=r.useState(K?.FIRST),[e,c]=r.useState(null),[o,C]=r.useState([]),X=i?.pathname.split("/").filter(Boolean).pop();r.useEffect(()=>{M&&M(e?.categoryName)},[e]);const B=new URLSearchParams(J),E=B.get(x?.ID),ee=B.get("currentIndex"),w=L&&L?.id?.toString()===ee,te=()=>{const a={level:y,id:A,pageTitle:D,pageClickedFrom:i?.state?.pageClickedFrom,categoryFlag:_};n!==o?.length-1&&(g&&g(!1),c(o[n+1]),f(n+1),R.push({pathname:`${l?.LEARN_LISTING_ARTICLES}/${o[n+1]?.slug}`,state:{...i?.state,...a}},{shallow:!0}),N(I,50))},ae=()=>{const a={level:y,id:A,pageTitle:D,pageClickedFrom:i?.state?.pageClickedFrom,categoryFlag:_};n!==0&&(g&&g(!1),c(o[n-1]),f(n-1),R.push({pathname:`${l?.LEARN_LISTING_ARTICLES}/${ye(o[n-1]?.title)}`,search:`?id=${o[n-1]?._id}&category-id=${o[n+1]?.categoryId}&file-type=${o[n-1]?.fileCode}`,state:{...i?.state,...a}},{shallow:!0}),N(I,10))},I=r.useRef(null);r.useEffect(()=>{N(I,10),Z(!1)},[]),r.useEffect(()=>{V||pe(10)},[V]);const{isFetching:S,data:T}=je(X??null,E??null);e?.metaComponent?.descriptorDom?.component;const ie={title:e?.title,meta:[{name:"description",content:e?.articleContent},{property:"og:url",content:window?.location?.href},{property:"og:type",content:"website"},{property:"og:title",content:e?.title},{property:"og:description",content:e?.articleContent},{property:"og:image",content:e?.coverImageDesktop},{name:"twitter:card",content:"summary_large_image"},{property:"twitter:domain",content:"icicipruamc.com"},{property:"twitter:url",content:window?.location?.href},{name:"twitter:title",content:e?.title},{name:"twitter:description",content:e?.articleContent},{name:"twitter:image",content:e?.coverImageDesktop}]},se=()=>{const a=[...o];return a?.splice(n,1),a},ne=a=>()=>{const s=o?.findIndex(m=>m?._id===a);c(o[s]),f(s),R.push({pathname:`${l?.LEARN_LISTING_ARTICLES}/${o[s]?.slug}`,state:{...i?.state}},{shallow:!0}),N(I,10)},oe=()=>{let a="";const s=e?.fileCode?e?.fileCode:e?.fileType;s===u.VIDEO?a=`${k()}${l?.LEARN_LISTING_VIDEOS}?id=${e?._id}&category-id=${e?.categoryId}&file-type=${e?.fileCode}`:s===u.AUDIO?a=`${k()}${l?.LEARN_LISTING_AUDIOS}?id=${e?._id}&category-id=${e?.categoryId}&file-type=${e?.fileCode}`:s===u.ARTICLE?a=`${k()}${l?.LEARN_LISTING_ARTICLES}?id=${e?._id}&category-id=${e?.categoryId}&file-type=${e?.fileCode}`:(s===u.PPT||s===u.PDF||s===u.LINK)&&(a=encodeURIComponent(e?.url||!1)),P&&P(a)},W=r.useCallback(()=>O?e?.coverImageDesktop||ve:e?.coverImageMobile||De,[e,O]);r.useEffect(()=>{if(i?.state?.mediaData?.length){const a=i?.state,s=a?.mediaData?.find(d=>d?._id===a?.dataId),m=a?.mediaData?.findIndex(d=>d?._id===a?.dataId);c(s),f(m),C(i?.state?.mediaData)}},[]),r.useEffect(()=>{!S&&T?.length&&(C(T),c(T[K?.FIRST]))},[S]),r.useEffect(()=>{w&&c(L)},[w,L]),r.useEffect(()=>{if(H&&i?.state?.mediaData?.length){const a=i?.state,s=a?.mediaData?.find(d=>d?._id===E),m=a?.mediaData?.findIndex(d=>d?._id===E);c(s),f(m),C(i?.state?.mediaData),s&&i?.state?.mediaData&&m!==n&&(g&&g(!1),Q(e,s)||c(s),f(m),Q(o,i?.state?.mediaData)||C(i?.state?.mediaData))}},[H,i?.state,E]);const re={"@context":"https://schema.org","@type":"Article",mainEntityOfPage:{"@type":"WebPage","@id":window?.location?.href}
1,headline:e?.fileLabel,description:e?.description,image:e?.thumbnail,author:{"@type":"Organization",name:e?.author?.name?.text,url:window.location.origin},publisher:{"@type":"Organization",name:"ICICI Pruamc",logo:{"@type":"ImageObject",url:e?.author?.profileImage}},datePublished:z(e?.fileDate).format(ge.DATE_FORMAT_YEAR)};return t.jsxs("div",{className:"learn-listing-audio-video",ref:I,children:[t.jsx(_e,{...ie,children:t.jsx("script",{type:"application/ld+json",children:JSON.stringify(re)})}),S?t.jsx(fe,{className:"page-level"}):t.jsxs(t.Fragment,{children:[W()?t.jsx(h,{src:W(),className:"banner-image"}):t.jsx(ue,{}),t.jsxs(he,{className:"container",children:[t.jsxs("div",{className:"main-content mt-8 pb-8",children:[e?.fileLabel&&t.jsxs(t.Fragment,{children:[t.jsx(p,{variant:"label4",styleType:"Bold",component:"p",className:"new-release",children:e?.fileLabel},"new-release-text"),t.jsx(p,{variant:"label4",styleType:"Reg",component:"div",className:"half-triangle"},"new-release-triangle")]}),F&&t.jsx(p,{variant:"body4",styleType:"Reg",className:"date",children:z(e?.fileDate).format(j?.DATE_FORMATS?.DATE_FORMAT||xe.DATE_FORMAT)}),t.jsx(p,{variant:"h1",styleType:"Bold",className:$("heading-article",e?.author?.profileImage?"mb-2":"mb-8"),children:e?.title}),e?.author&&e?.author?.profileImage&&e?.author?.name?.text&&t.jsx(Ae,{type:"image",variant:"circular",src:e?.author?.profileImage,altText:e?.author?.name?.text,name:e?.author?.name?.text,className:"author-profile-image"}),e?.articleContent&&t.jsx(Ie,{html:e?.articleContent}),t.jsx("hr",{}),t.jsx(we,{fbWhatsappHandler:U,shareLinkHandler:oe,tagsList:v,textConstants:x})]}),!w&&t.jsxs("div",{className:"pagination",children:[t.jsx(b,{className:"pagination__left",item:!0,xs:6,sm:6,md:9,lg:9,children:t.jsx(Y,{name:"",variant:"text",className:$("button-link","previous",n===0?"disable-link":""),onClick:ae,startIcon:t.jsx(h,{src:q,className:"arrow-icon"}),children:t.jsx(p,{variant:"body2",styleType:"Bold",component:"span",className:"link link--previous-sub-heading audio-video-link",children:x?.PREVIOUS})})},"pagination-left"),t.jsx(b,{className:"pagination__right-heading",item:!0,xs:6,sm:6,md:3,lg:3,children:t.jsx(Y,{name:"",variant:"text",className:$("button-link","next",n===o?.length-1?"disable-link":""),onClick:te,endIcon:t.jsx(h,{src:q,className:"arrow-icon"}),children:t.jsx(p,{variant:"body2",styleType:"Bold",component:"span",className:"link link--next-sub-heading audio-video-link",children:x?.
1NEXT_ARTICLE})})},"pagination-right")]}),t.jsx(Le,{onClick:ne,sectionHeading:x?.OTHER_ARTICLES,filesData:se(),knowledgeCenterPageConstants:Ee,sliderConstants:Ce,isDescriptionRequired:!1,showDate:F,routeConstants:l})]})]})]})};export{It 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.