1(window["webpackJsonpchat-test"]=window["webpackJsonpchat-test"]||[]).push([[34],{2027:function(e,t,a){"use strict";a.r(t);var n=a(0),i=a.n(n),l=a(9),o=a(6),r=a(83),c=a(75),p=a(1),s=a(2),m=a(175),x=a(49);var d=Object(x.a)(e=>({activeCommunityCard:{backgroundColor:"#FAFAFA",display:"flex",alignItems:"center",flexDirection:"column",gap:"8px",padding:e.spacing(1.5),height:"200px",width:"calc(20% - 21px)",boxShadow:"1px 3px 12px 0px #00000014",borderRadius:"8px","&:hover":{boxShadow:"0px 1px 8px 0px rgba(0,0,0,0.2), 0px 3px 4px 0px rgba(0,0,0,0.14), 0px 3px 3px -2px rgba(0,0,0,0.12)"},[e.breakpoints.down("md")]:{width:"calc(25% - 20px)"},[e.breakpoints.down("sm")]:{width:"100%"}},joinButton:{cursor:"pointer",borderRadius:"24px",width:"140px",marginTop:"3px"},mySpan:{display:"inline-block",width:"40px",height:"40px"},communityCardBox:{display:"flex",flexWrap:"wrap",gap:"26px",[e.breakpoints.down("sm")]:{flexDirection:"column",flexWrap:"none",gap:"20px"}}}));t.default=()=>{const{deskTopView:e,setOpenDailog:t,user:a,setViewSnackbar:x}=Object(n.useContext)(s.a),{whatsappCommunityBannerSubtext:g=""}=Object(c.a)(),u=d(),[y,b]=Object(n.useState)([]),h=(a,n,i)=>{!function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"blank";Object(s.D)("redirectToUrl url params",e,t),window.open(e,"_".concat(t))}(i),Object(s.D)("post data on card click",a,i),(async a=>{let n="".concat(p.y).concat(p.Be);const{data:i=null,status:l=null,err:o=null}=await Object(s.gb)(n,{community_id:a},{source:e?"website":"mweb"});l==p.Fe&&t(!0),o&&x({message:"Something went wrong! Please try again",type:"error"})})(a),window.dataLayer.push({event:"whatsapp_community",community_type:n})};return Object(n.useEffect)(()=>{(async()=>{const{data:e=null,status:a=null,err:n}=await Object(s.H)("".concat(p.y).concat(p.Be));if(Object(s.D)("api res",e,a,n),n&&a==p.Fe)t(!0);else if(n&&x({message:"Something went wrong! Please try again!",type:"error"}),a>=200&&a<300){const{data:t={}}=e||{};b(t)}})()},[]),i.a.createElement(i.a.Fragment,null,i.a.createElement(l.a,{mt:e?3:1,mr:e?10:2,ml:e?10:2},i.a.createElement(l.a,{style:{background:"linear-gradient(95.45deg, rgba(220, 255, 236, 0.15) 1.04%, rgba(220, 255, 236, 0.31) 8.38%, #DCFFEC 100%)",boxShadow:"1px 3px 12px 0px #00000014",display:"flex",justifyContent:"center",height:"184px",borderRadius:"8px",width:"100%",alignItems:"center",marginBottom:20}},i.a.createElement(l.a,{style:{textAlign:"center"}},i.a.createElement(l.a,null,i.a.createElement(l.a,{style:{display:"flex",alignItems:"center"}},i.a.createElement(o.a,{style:{fontSize:e?"40px":"28px",fontWeight:500,color:"#333333",lineHeight:"36px"}},"Join our WhatsApp Community\xa0"),e&&i.a.createElement("img",{src:"/whatsappNew.png",style:{width:40}})),i.a.createElement(o.a,{style:{fontSize:e?"20px":"16px",fontWeight:400,marginTop:8}},g)))),i.a.createElement(l.a,{className:u.communityCardBox},y.map((t,a)=>{let{id:n="",cmsLink:c=null,communityName:x="",isActive:d=!0,link:g="",description:b=""}=t||{};return Object(s.D)("dashboardData",y,p.mj),i.a.createElement(r.a,{className:u.activeCommunityCard},i.a.createElement("img",{src:c?Object(s.sb)(c,55,55):"/no_collection.svg",style:{borderRadius:"50%"}}),i.a.createElement(l.a,{display:"flex",alignItems:"center",flexDirection:"column",style:{gap:"12px"}},i.a.createElement(l.a,{display:"flex",alignItems:"center",flexDirection:"column",style:{height:"64px",gap:"2px"}},i.a.createElement(o.a,{style:{fontSize:"16px",fontWeight:"500"}},x||"-"),i.a.createElement(o.a,{style:{fontSize:"12px",fontWeight:"400",color:p.vh,textAlign:"center",maxWidth:e?{}:"175px"},className:"multine-ellipsis"},b||"-")),i.a.createElement(m.a,{color:"primary",variant:"contained",className:u.joinButton,size:"small",onClick:()=>h(n,x,g)},"Join Now")))}))))}}}]); 2//# sourceMappingURL=34.e25b8f6a.chunk.js.map
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.