(()=>{"use strict";var e={91965(){},37331(e,t,n){n.d(t,{B:()=>z,A:()=>Z});var o=n(20975),a=n(31305),r=n(82993),s=n(47760),i=n(89449),c=n(16478),u=n(65186);function d(e){const[t,n]=(0,o.useState)(!1);(0,o.useEffect)(()=>{e&&"admin"===e.myRole&&!t&&(setTimeout(()=>{(function(e,t,n){function o(){let e=t.getElementsByTagName("script")[0],n=t.createElement("script");n.type="text/javascript",n.async=!0,n.src="https://beacon-v2.helpscout.net",e.parentNode.insertBefore(n,e)}if(e.Beacon=n=function(t,n,o){e.Beacon.readyQueue.push({method:t,options:n,data:o})},n.readyQueue=[],"complete"===t.readyState)return o();e.attachEvent?e.attachEvent("onload",o):e.addEventListener("load",o,!1)})(window,document,window.Beacon||function(){}),window.Beacon("init","c8430dd6-2a64-4b61-962f-ed18a2da7ea4"),window.Beacon("config",{display:{style:"manual"}})},8e3),n(!0))},[e,t])}var l=n(19328),m=n(55854),p=n(62391);const h=["62%","78%","54%","70%"],y=[{heading:"75%",items:["66%","52%","74%","61%","69%"]},{heading:"75%",items:["60%","71%","54%","73%"]}];function g({name:e,meta:t}){return(0,p.jsxs)("div",{className:"as-authorline",children:[(0,p.jsx)("span",{className:"as-b",style:{width:42,height:42,borderRadius:999}}),(0,p.jsxs)("span",{children:[(0,p.jsx)("span",{className:"as-b",style:{display:"block",width:e,height:10}}),(0,p.jsx)("span",{className:"as-b",style:{display:"block",width:t,height:8,marginTop:7}})]})]})}function f(){return(0,p.jsx)("div",{className:"as-actions",children:[32,56,36].map(e=>(0,p.jsxs)("span",{className:"as-act",children:[(0,p.jsx)("span",{className:"as-b",style:{width:16,height:16}}),(0,p.jsx)("span",{className:"as-b",style:{width:e,height:10}})]},e))})}function v(){return(0,p.jsxs)("div",{className:"as-shell",role:"status","aria-busy":"true","aria-label":"Loading",children:[(0,p.jsx)("div",{className:"as-sheen"}),(0,p.jsx)("div",{className:"as-bar"}),(0,p.jsxs)("div",{className:"as-header",children:[(0,p.jsx)("span",{className:"as-b as-logo"}),(0,p.jsx)("span",{className:"as-wordmark",children:"StoCoMo"}),(0,p.jsx)("span",{className:"as-grow"}),(0,p.jsx)("span",{className:"as-b as-icon"}),(0,p.jsx)("span",{className:"as-b as-icon as-sm"}),(0,p.jsx)("span",{className:"as-b as-icon as-sm"}),(0,p.jsx)("span",{className:"as-b as-icon as-sm"}),(0,p.jsx)("span",{className:"as-b as-avatar"})]}),(0,p.jsxs)("div",{className:"as-body",children:[(0,p.jsxs)("div",{className:"as-side",children:[h.map(e=>(0,p.jsxs)("div",{className:"as-row",children:[(0,p.jsx)("span",{className:"as-b as-icon"}),(0,p.jsx)("span",{className:"as-b",style:{width:e,height:11}})]},e)),y.map((e,t)=>(0,p.jsxs)("div",{children:[(0,p.jsx)("div",{className:"as-grp",children:(0,p.jsx)("span",{className:"as-b",style:{display:"block",width:e.heading,height:12}})}),e.items.map(e=>(0,p.jsxs)("div",{className:"as-sub",children:[(0,p.jsx)("span",{className:"as-b",style:{width:15,height:15}}),(0,p.jsx)("span",{className:"as-b",style:{width:e,height:11}})]},e))]},t))]}),(0,p.jsxs)("div",{className:"as-main",children:[(0,p.jsxs)("div",{className:"as-title",children:[(0,p.jsx)("span",{className:"as-b",style:{width:96,height:14}}),(0,p.jsx)("span",{className:"as-b",style:{width:104,height:30,borderRadius:999}})]}),(0,p.jsxs)("div",{className:"as-cols",children:[(0,p.jsxs)("div",{className:"as-feed",children:[(0,p.jsxs)("div",{className:"as-compose",children:[(0,p.jsx)("span",{className:"as-b",style:{width:45,height:45,borderRadius:999}}),(0,p.jsx)("span",{className:"as-b",style:{flex:"1 1 auto",height:38,borderRadius:999}})]}),(0,p.jsx)("div",{className:"as-tabs",children:[0,1,2].map(e=>(0,p.jsx)("span",{className:"as-b"},e))}),(0,p.jsxs)("div",{className:"as-post",children:[(0,p.jsxs)("div",{className:"as-post-body",children:[(0,p.jsx)("span",{className:"as-b as-banner"}),(0,p.jsx)(g,{name:120,meta:72}),(0,p.jsx)("span",{className:"as-b",style:{display:"block",width:"56%",height:16,marginBottom:16}}),(0,p.jsx)("span",{className:"as-b",style:{display:"block",width:"88%",height:10}}),(0,p.jsx)("span",{className:"as-b",style:{display:"block",width:"64%",height:10,marginTop:9}})]}),(0,p.jsx)(f,{})]}),(0,p.jsxs)("div",{className:"as-post",children:[(0,p.jsxs)("div",{className:"as-post-body",children:[(0,p.jsx)(g,{name:104,meta:64}),(0,p.jsx)("span",{className:"as-b",style:{display:"block",width:"44%",height:16,marginBottom:16}}),(0,p.jsx)("span",{className:"as-b",style:{display:"block",width:"92%",height:10}}),(0,p.jsx)("span",{className:"as-b",style:{display:"block",width:"78%",height:10,marginTop:9}}),(0,p.jsx)("span",{className:"as-b",style:{display:"block",width:"46%",height:10,marginTop:9}})]}),(0,p.jsx)(f,{})]})]}),(0,p.jsxs)("div",{className:"as-widgets",children:[(0,p.jsxs)("div",{className:"as-card",children:[(0,p.jsx)("span",{className:"as-b",style:{display:"block",width:"52%",height:12,marginBottom:18}}),["62%","74%","55%"].map(e=>(0,p.jsxs)("div",{className:"as-sub",children:[(0,p.jsx)("span",{className:"as-b",style:{width:32,height:32,borderRadius:999}}),(0,p.jsx)("span",{className:"as-b",style:{width:e,height:10}})]},e))]}),(0,p.jsxs)("div",{className:"as-card",children:[(0,p.jsx)("span",{className:"as-b",style:{display:"block",width:"44%",height:12,marginBottom:18}}),["100%","82%","90%","60%"].map((e,t)=>(0,p.jsx)("span",{className:"as-b",style:{display:"block",width:e,height:10,marginTop:t?10:0}},e))]})]})]})]})]})]})}var b=n(6292),A=n(96621),k=n(26914),C=n(25655),P=n(38733),S=n(89452),T=n(77255),I=n(42414),E=n(41153),B=n(93668),x=n(31696);function w(e){if(!/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e))throw new Error("Could not parse Hex Color");e.startsWith("#")&&(e=e.slice(1));const t=parseInt(e.slice(0,2),16)/255,n=parseInt(e.slice(2,4),16)/255,o=parseInt(e.slice(4,6),16)/255,a=Math.max(t,n,o),r=Math.min(t,n,o),s=(a+r)/2;let i=0,c=0;if(a!==r){const e=a-r;switch(c=s>.5?e/(2-a-r):e/(a+r),a){case t:i=(n-o)/e+(nPromise.all([n.e(8860),n.e(4067),n.e(1005),n.e(7787),n.e(5227),n.e(7426),n.e(2443),n.e(1285),n.e(1221),n.e(702)]).then(n.bind(n,77871)).then(e=>({default:e.CommunityVerificationPrompt}))),_=o.lazy(()=>Promise.all([n.e(8860),n.e(2978),n.e(4067),n.e(8020),n.e(275),n.e(7365),n.e(8934),n.e(7439),n.e(6709)]).then(n.bind(n,99120))),j=o.lazy(()=>Promise.all([n.e(3120),n.e(8860),n.e(2978),n.e(275),n.e(2087),n.e(8934),n.e(687),n.e(9235)]).then(n.bind(n,11534))),M=o.lazy(()=>Promise.all([n.e(9967),n.e(8860),n.e(2978),n.e(4067),n.e(8020),n.e(275),n.e(7365),n.e(1005),n.e(7867),n.e(3253),n.e(8934),n.e(7439),n.e(2284),n.e(6491),n.e(5156),n.e(1316),n.e(9083),n.e(6214),n.e(4942),n.e(406),n.e(6338),n.e(6062),n.e(8866),n.e(9324),n.e(5130),n.e(1310),n.e(7326),n.e(9053),n.e(5421),n.e(6848),n.e(7787),n.e(5227),n.e(7426),n.e(2443),n.e(1285),n.e(1221),n.e(8044)]).then(n.bind(n,32143))),O=o.lazy(()=>Promise.all([n.e(2978),n.e(8020),n.e(8520)]).then(n.bind(n,78520)));function L({community:e,hasError:t}){return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(z,{community:e}),t?(0,p.jsxs)("div",{className:"flex h-screen flex-col items-center justify-center bg-background text-secondary-foreground/90",children:[(0,p.jsx)("span",{className:"mb-3 text-gray-500",children:"Something went wrong. Please try again in a moment."}),(0,p.jsx)("button",{className:"rounded bg-primary px-4 py-2 text-sm text-primary-foreground",onClick:()=>window.location.reload(),children:"Reload"})]}):(0,p.jsx)(v,{})]})}function z({community:e}){var t,n;const a=(0,c.G)(e=>e.auth),r=(o.useRef(!1),o.useRef("")),s=`${null==e?void 0:e.id}-${null==a||null===(t=a.preferences)||void 0===t?void 0:t.themeChoice}`;if(e&&a){getComputedStyle(document.body).getPropertyValue("--theme-dark-primary-color")&&s!==r.current&&(r.current=s,$(a))}if(!e)return(0,p.jsx)(p.Fragment,{});const i=A.C.replace(/\/socket\.io\/?$/,"")+"/theme/"+e.id+"/style.css",u=`${e.id}-${null!==(n=e.updatedAt)&&void 0!==n?n:""}`;return(0,p.jsx)("link",{rel:"stylesheet",href:i,onLoad:e=>{$(a);try{const t=JSON.parse(localStorage.getItem("pensil.theme.cache"));(null==t?void 0:t.cacheKey)!==u&&fetch(e.target.href).then(e=>e.text()).then(e=>{localStorage.setItem("pensil.theme.cache",JSON.stringify({cacheKey:u,css:e}))}).catch(()=>{})}catch(e){}}})}function $(e){var t,n,o,a=getComputedStyle(document.body);const r="dark"===(null==e||null===(t=e.preferences)||void 0===t?void 0:t.themeChoice)?a.getPropertyValue("--theme-dark-primary-color"):a.getPropertyValue("--theme-primary-color"),s="dark"===(null==e||null===(n=e.preferences)||void 0===n?void 0:n.themeChoice)?a.getPropertyValue("--theme-dark-on-primary-color"):a.getPropertyValue("--theme-on-primary-color");let i,c=null;try{c=localStorage.getItem("pensil.theme")}catch(e){}var u;["dark","light"].includes(null==e||null===(o=e.preferences)||void 0===o?void 0:o.themeChoice)?i="dark"===(null==e||null===(u=e.preferences)||void 0===u?void 0:u.themeChoice):i=!!["dark","light"].includes(c)&&"dark"===c;const d=w(r),l=w(s),m=d.l,p=d.h,h=d.s,y=m+50>=100?m+40>=100?m+30>=100?m+20>=100?m+10>=100?m:m+5:m+10:m+20:m+30:m+40,g=`\n :root {\n --primary: ${d.h+"deg,"+d.s+"%,"+d.l+"%, 100%"};\n --primary-light: ${p+"deg ,"+h+"%,"+y+"%, 100%"};\n --primary-foreground: ${l.h+"deg,"+l.s+"%,"+l.l+"%, 100%"};\n }\n `;let f=document.getElementById("stocomo-dynamic-theme");f||(f=document.createElement("style"),f.id="stocomo-dynamic-theme",document.head.appendChild(f)),f.textContent=g,localStorage.setItem("pensil.theme",i?"dark":"light"),document.documentElement.classList.toggle("dark",i)}const Z=(0,a.Ng)(e=>({user:e.auth,community:e.community}),e=>(0,r.zH)({setCommunity:I.Km,setCommunityPac:E.c,setUser:T.jw,updateGroupsByIds:B.tg},e))(function({user:e,community:t,setUser:a,setCommunity:r,setCommunityPac:h,updateGroupsByIds:y}){var g;const[f,A]=(0,o.useState)(!1),[T,I]=(0,o.useState)(!1),[E,B]=(0,o.useState)(!1),w=(0,o.useRef)(!1),$=(0,o.useRef)(null),{analyticsService:Z}=(0,u.W)(),[R,D]=((0,c.G)(e=>e.groups),(0,o.useState)(!1)),[U,G]=(0,o.useState)(!1),[F,V]=(0,o.useState)(!1),H=window.location.hostname.split(".")[0],q=window.location.port,W=new URLSearchParams(window.location.search),K=W.get("redirect"),Y=W.get("token"),J=W.get("auth_token"),Q=W.get("access_token"),X=W.get("action"),[ee,te]=(0,o.useState)(!1),[ne,oe]=(0,o.useState)(window.location.pathname),ae=(ne.startsWith("/login")||ne.startsWith("/register"))&&!e;d(t);const re="stocomo-community",se="pensil.community.cache",ie=null!==(g=null==e?void 0:e.id)&&void 0!==g?g:null,ce=(e,t)=>{try{localStorage.setItem(se,JSON.stringify({domain:re,userId:t,community:e,cachedAt:Date.now()}))}catch(e){}};(0,o.useEffect)(()=>{if(re&&!w.current){w.current=!0;try{const e=JSON.parse(localStorage.getItem(se));if(e&&e.domain===re&&e.userId===ie&&e.community&&Date.now()-e.cachedAt<3e5)return r(e.community),e.community.pac&&h(e.community.pac),$.current=e.userId,I(!0),void A(!1)}catch(e){}A(!0),C.B.getCommunity(re).then(t=>{r(t.community),t.community.pac&&h(t.community.pac),$.current=null,ce(t.community,null),Z.track("load-community",{userType:null==e?void 0:e.role,communityPlan:t.community.plan?t.community.plan.planType:"free"})}).then(()=>{I(!0),A(!1)}).catch(e=>{setTimeout(()=>{C.B.getCommunity(re).then(e=>{r(e.community),e.community.pac&&h(e.community.pac),$.current=null,ce(e.community,null),I(!0),A(!1)}).catch(e=>{I(!0),A(!1),B(!0)})},2e3)})}},[re]);const ue=null==t?void 0:t.id;(0,o.useEffect)(()=>{ie&&ue&&$.current!==ie&&C.B.getCommunityById(e,ue).then(({community:e})=>{const n={...t,isByMe:e.isByMe,myRole:e.myRole,joined:e.joined,joinVerifiedByAdmin:e.joinVerifiedByAdmin,newUserCount:e.newUserCount};r(n),$.current=ie,ce(n,ie)}).catch(e=>{})},[ie,ue]),(0,o.useEffect)(()=>{if(t&&t.needsAdminVerification&&e&&!R&&!F&&!U){G(!0);const n=Date.now();P.D.getUserProfile({token:e.token}).then(({user:o})=>{var r,s,i,c;localStorage.setItem("pensil.user",JSON.stringify({...o,token:e.token,email:e.email?e.email:o.email,mobile:e.mobile?e.mobile:o.mobile,preferences:{...null!==(r=e.preferences)&&void 0!==r?r:{},...null!==(s=o.preferences)&&void 0!==s?s:{},themeChoice:(0,S.eH)(null===(i=o.preferences)||void 0===i?void 0:i.themeChoice,null===(c=e.preferences)||void 0===c?void 0:c.themeChoice,n)}})),Array.isArray(o.adminVerifiedCommunities)&&o.adminVerifiedCommunities.includes(t.id)&&D(!0),V(!0),G(!1),a({...o,token:e.token,email:e.email?e.email:o.email,mobile:e.mobile?e.mobile:o.mobile})}).catch(e=>{V(!0),G(!1),x.A.checkIfBlocked(e)})}},[t,e,R,F,U]),(0,o.useEffect)(()=>{const e=b.b.listen((e,t)=>{oe(window.location.pathname)});return()=>{e()}},[]);const de=null==t?void 0:t.authRedirectUrl,le=null==t?void 0:t.id;(0,o.useEffect)(()=>{de&&(J||Q)&&!Y&&(te(!0),C.B.verifyThirdPartyToken(le,null!=J?J:Q).then(({user:e})=>{he(e)}).catch(e=>{te(!1)}))},[de,le,J,Q,X,Y]),(0,o.useEffect)(()=>{Y&&ye()},[Y]);const me=null==e?void 0:e.id,pe=null==e?void 0:e.walletAddress;(0,o.useEffect)(()=>{me&&le&&pe&&async function(e){try{const{NFTService:t}=await Promise.resolve().then(n.bind(n,24968)),{accessibleGroupIds:o}=await t.checkForGatedGroupAccess(e);await y(o,{myRole:"user",joinStatus:"joined"},e=>"admin"!==(null==e?void 0:e.myRole))}catch(e){}}(le)},[me,le,pe]);const he=e=>{let t=null;try{var n,o;t=null!==(n=null===(o=JSON.parse(localStorage.getItem("pensil.user")))||void 0===o?void 0:o.id)&&void 0!==n?n:null}catch(e){}if(localStorage.setItem("pensil.user",JSON.stringify(e)),t&&t!==e.id)return localStorage.removeItem(se),void(window.location.href=window.location.origin+window.location.pathname+(X?"?action="+X:""));a(e);const r=window.location.origin+window.location.pathname+(X?"?action="+X:"");window.history.replaceState({},"",r)},ye=()=>{P.D.getUserProfile({token:Y}).then(({user:e})=>{he({...e,token:Y})}).catch(e=>{x.A.checkIfBlocked(e)})};if(K&&e)return["google-login","facebook-login"].includes(X)?(localStorage.clear("pensil.user"),k.r.reset(),window.location.reload(),(0,p.jsx)("div",{children:"Redirecting..."})):(window.location.href=K+"?token="+e.token+"&action=autosub",(0,p.jsx)("div",{children:"Redirecting..."}));if("embed"===H)return(0,p.jsx)(o.Suspense,{fallback:(0,p.jsx)(m.A,{}),children:(0,p.jsx)(_,{})});if("localhost"===window.location.hostname||"app"===H&&"app.pensil.com"===window.location.hostname)return K&&"logout"===X?(localStorage.clear("pensil.user"),k.r.reset(),window.location.href=K,(0,p.jsx)("div",{children:"Redirecting..."})):f||!T||ee||E?(0,p.jsx)(L,{community:t,hasError:E}):(0,p.jsxs)("div",{className:"App",children:[(0,p.jsx)(z,{community:t}),(0,p.jsx)(o.Suspense,{fallback:ae?(0,p.jsx)(m.A,{}):(0,p.jsx)(v,{}),children:ae?(0,p.jsx)(O,{}):(0,p.jsx)(s.$M,{children:(0,p.jsx)(M,{user:e,community:t})})}),(0,p.jsx)(i.q5,{})]});if("logout"===X)return localStorage.clear("pensil.user"),k.r.reset(),window.location.href=window.location.origin,(0,p.jsx)("div",{children:"Logging out..."});if(f||!T||ee||E)return(0,p.jsx)(L,{community:t,hasError:E});if(!t)return(0,p.jsxs)("div",{className:"flex h-screen flex-col items-center justify-center bg-background text-secondary-foreground/90",children:[(0,p.jsx)(z,{community:t}),(0,p.jsx)("span",{className:"mb-2 text-gray-500",children:"It seems like this community is not available."}),(0,p.jsx)("a",{className:"text-primary",target:"_blank",rel:"noopener noreferrer",href:"http://app.pensil.com"+(q?":"+q:"")+"/create-community",children:"Create your own"})]});if(Y)return(0,p.jsxs)("div",{className:"flex h-screen flex-col items-center justify-center bg-background text-secondary-foreground/90",children:[(0,p.jsx)(z,{community:t}),(0,p.jsx)("div",{className:"my-2",children:(0,p.jsx)(m.A,{})}),(0,p.jsx)("span",{className:"text-gray-500",children:"Please wait while we are loading data..."})]});if(e)Y&&(window.location.href=window.location.origin+"?action="+X);else{if(t&&t.authRedirectUrl&&(J||Q))return(0,p.jsxs)("div",{className:"flex h-screen flex-col items-center justify-center bg-background text-secondary-foreground/90",children:[(0,p.jsx)(z,{community:t}),(0,p.jsx)("div",{className:"my-2",children:(0,p.jsx)(m.A,{})}),(0,p.jsx)("span",{className:"text-gray-500",children:"Please wait while we are loading data..."})]});if(Y)return(0,p.jsxs)("div",{className:"flex h-screen flex-col items-center justify-center bg-background text-secondary-foreground/90",children:[(0,p.jsx)(z,{community:t}),(0,p.jsx)("div",{className:"my-2",children:(0,p.jsx)(m.A,{})}),(0,p.jsx)("span",{className:"text-gray-500",children:"Please wait while we are loading data..."})]})}return!t.needsAdminVerification||!U&&F?t.needsAdminVerification&&!t.joinVerifiedByAdmin&&"admin"!==t.myRole?e?(0,p.jsxs)(o.Suspense,{fallback:(0,p.jsx)(m.A,{}),children:[(0,p.jsx)(z,{community:t}),(0,p.jsx)(N,{})]}):(0,p.jsxs)(o.Suspense,{fallback:(0,p.jsx)(m.A,{}),children:[(0,p.jsx)(z,{community:t}),(0,p.jsx)(O,{})]}):t.isLoginRequired&&!e?(0,p.jsxs)(o.Suspense,{fallback:(0,p.jsx)(m.A,{}),children:[(0,p.jsx)(z,{community:t}),(0,p.jsx)(O,{})]}):!e||!t.isMobileAndEmailVerificationRequired||e.email&&e.mobile||"admin"===t.myRole?(0,p.jsxs)("div",{className:"App bg-background text-secondary-foreground/80",children:[(0,p.jsx)(z,{community:t}),(0,p.jsx)(o.Suspense,{fallback:ae?(0,p.jsx)(m.A,{}):(0,p.jsx)(v,{}),children:ae?(0,p.jsx)(O,{}):(0,p.jsxs)(s.$M,{children:[" ",(0,p.jsx)(M,{user:e,community:t})]})}),(0,p.jsx)(i.q5,{})]}):(0,p.jsxs)(o.Suspense,{fallback:(0,p.jsx)(l.a,{}),children:[(0,p.jsx)(z,{community:t}),(0,p.jsx)(j,{user:e,community:t})]}):e?(0,p.jsxs)("div",{className:"flex h-screen flex-col items-center justify-center bg-background text-secondary-foreground/90",children:[(0,p.jsx)(z,{community:t}),(0,p.jsx)("div",{className:"my-2",children:(0,p.jsx)(m.A,{})}),(0,p.jsx)("span",{className:"text-gray-500",children:"Please wait while we are checking for admin verification..."})]}):(0,p.jsxs)(o.Suspense,{fallback:(0,p.jsx)(m.A,{}),children:[(0,p.jsx)(z,{community:t}),(0,p.jsx)(O,{})]})})},54479(e,t,n){n.d(t,{A:()=>r});var o=n(20975),a=n(62391);class r extends o.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return{hasError:!0}}componentDidCatch(e,t){}render(){return this.state.hasError?this.props.fallback?this.props.fallback:(0,a.jsxs)("div",{style:{display:"flex",flexDirection:"column",height:"100vh",backgroundColor:"var(--background, #fff)",color:"var(--secondary-foreground, #374151)"},children:[(0,a.jsx)("div",{style:{display:"flex",alignItems:"center",height:"48px",padding:"0 16px",borderBottom:"1px solid var(--border, #e5e7eb)",backgroundColor:"var(--card, #fff)"},children:(0,a.jsx)("span",{style:{fontSize:"18px",fontWeight:"600"},children:"StoCoMo"})}),(0,a.jsxs)("div",{style:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"12px"},children:[(0,a.jsx)("span",{style:{color:"#6b7280"},children:"Something went wrong. Please try again in a moment."}),(0,a.jsx)("button",{onClick:()=>window.location.reload(),style:{padding:"8px 16px",borderRadius:"6px",border:"none",backgroundColor:"#2563eb",color:"#ffffff",fontSize:"14px",fontWeight:"500",cursor:"pointer"},children:"Reload"})]})]}):this.props.children}}},19328(e,t,n){n.d(t,{a:()=>s});var o=n(62391);const a={padding:"2px"},r=(e,t,n,o)=>({content:" ",display:"block",background:0,borderRadius:"50%",width:`${n}px`,height:`${n}px`,margin:0,boxSizing:"border-box",border:`${o}px solid #fff`,borderColor:e?"white transparent white transparent":`${t} transparent ${t} transparent`});function s({white:e=!1,spinnerColor:t="var(--theme-primary-color)",size:n=24,stroke:s=2}){return(0,o.jsx)("div",{className:"Loader flex justify-center",style:a,children:(0,o.jsx)("div",{className:"spinner",style:r(e,t,n,s)})})}},55854(e,t,n){n.d(t,{A:()=>a});var o=n(62391);function a(){return(0,o.jsx)("div",{id:"loader",className:"firstLoader",children:(0,o.jsx)("div",{className:"preloader",children:(0,o.jsx)("div",{className:"preloader-spin"})})})}},50963(e,t,n){const o={COMMUNITY_DEFAULT_COUNTRY_CODE:"COMMUNITY_DEFAULT_COUNTRY_CODE",COMMUNITY_DEFAULT_LANGUAGE:"COMMUNITY_DEFAULT_LANGUAGE",COMMUNITY_DEFAULT_FONT_LINK:"COMMUNITY_DEFAULT_FONT_LINK",COMMUNITY_DEFAULT_FONT_NAME:"COMMUNITY_DEFAULT_FONT_NAME",COMMUNITY_PREVENT_USER_PROFILE_UPDATE:"COMMUNITY_PREVENT_USER_PROFILE_UPDATE",COMMUNITY_POST_TIMER_LIMIT:"COMMUNITY_POST_TIMER_LIMIT",COMMUNITY_REPORT_EMAIL:"COMMUNITY_REPORT_EMAIL",COMMUNITY_SHOW_ONBOARDING_LIST:"COMMUNITY_SHOW_ONBOARDING_LIST"};n.d(t,["A",0,o])},96621(e,t,n){n.d(t,{C:()=>a,P:()=>o});let o="https://stocomoapi.motilaloswal.com/api/",a="https://stocomosocket.motilaloswal.com/socket.io/";["tech.pensil.in","newstudy.pensil.in","aol.pensil.in"].includes(window.location.hostname)&&(o="https://api-server.pensil.in/api/",a="https://socket-server.pensil.in")},16118(e,t,n){n.d(t,{D4:()=>d,IT:()=>a,OT:()=>u,k0:()=>r,m$:()=>c,mZ:()=>i,ut:()=>s});const o=".pensil.com";function a(e){return e.address+o}async function r(e,t,n,o=!0){if(!t||!document.getElementById(t))return new Promise(n=>{const a=document.createElement("script");a.id=t,o?a.src=e:a.innerHTML=e,a.onload=()=>{n(a)},a.onerror=()=>{n(!1)},document.body.appendChild(a)})}function s(){var e;const t=JSON.parse(localStorage.getItem("pensil.user"));return null!==(e=null==t?void 0:t.token)&&void 0!==e?e:null}function i(){var e;const t=JSON.parse(localStorage.getItem("pensil.user"));return null!==(e=null==t?void 0:t.id)&&void 0!==e?e:null}function c(e){return!!new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(e)}function u(e){let t="/login";if(e&&e.authRedirectUrl){t=e.authRedirectUrl;let n="communityId="+e.id;t=t.includes("?")?t+"&"+n:t+"?"+n}return t}function d(e){window.location.href=u(e)}n.d(t,["pD",0,o])},6292(e,t,n){const o=(0,n(25943).zR)();n.d(t,["b",0,o])},78220(e,t,n){n.d(t,{vZ:()=>X,V2:()=>ne,q7:()=>te,b6:()=>ee.b});var o=n(96621);const a=o.P,r={loginWithOTP:a+"login/otp",loginWithEmailOTP:a+"auth/email/otp",verifyOTP:a+"verify-otp",googleLoginV2:a+"auth/google/v2",facebookLogin:a+"auth/facebook",web3Login:a+"auth/web3"},s=o.P,i={getRemainingMailCount:e=>`${s}/community/${e}/get-remaining-mail-count`},c=o.P,u={create:c+"community",getSubscribedCommunities:c+"community/joined",updateCommunity:e=>c+"community/"+e,updateCommunityWelcomeMessages:e=>c+"community/"+e+"/welcome-messages",updateCommunityBannerDetails:e=>c+"community/"+e+"/banner-details",updateCommunityBanner:e=>c+"community/"+e+"/update-banner",removeCommunityBanner:e=>c+"community/"+e+"/remove-banner",addressAvailability:e=>c+"community/address-availability/"+e,updateLogo:(e,t)=>c+"community/"+e+"/update-logo/"+t,updateFavicon:e=>c+"community/"+e+"/update-favicon",getCommunity:e=>c+"community/"+e,getCommunityById:e=>c+"community-by-id/"+e,verifyThirdPartyToken:e=>c+"community/"+e+"/verify-user-token",verifyUserByAdmin:(e,t)=>c+"community/"+e+"/user/"+t+"/verify",joinCommunity:e=>c+"community/join/"+e,leaveCommunity:e=>c+"community/leave/"+e,getUserPosts:(e,t,n)=>c+`community/${e}/user/${t}/posts?page=${n}`,getCommunityPostDirectory:(e,t,n)=>c+`post/directory/${e}?sort=${t}&page=${n}`,getUserActivities:(e,t,n)=>c+`community/${e}/user/${t}/activities?page=${n}`,groups:e=>c+"community/"+e+"/groups",groupsAndCounters:e=>c+"community/"+e+"/groups-and-counters",sortGroups:e=>c+"community/"+e+"/groups/sort",sortGroupTabs:(e,t)=>c+"community/"+e+"/group/"+t+"/sort",subscribers:(e,t)=>c+"community/"+e+"/subscribers?group="+t,subscribersPaginated:(e,t,n,o,a)=>c+"community/"+e+"/subscribers/paginated?limit="+t+"&page="+n+"&search="+o+"&group="+a,markSubscribersAsViewed:e=>c+`community/${e}/subscribers/mark-viewed`,makeUserModeratorInAllGroup:(e,t,n)=>c+"community/"+e+"/group/"+t+"/user/"+n+"/make-moderator",links:e=>c+"community/"+e+"/links",addNewLink:e=>c+"community/"+e+"/links",editLink:(e,t)=>c+"community/"+e+"/links/"+t,deleteLink:(e,t)=>c+"community/"+e+"/links/"+t,getMyLeaderboardScore:e=>c+"leaderboard/community/"+e+"/my",getLeaderboard:(e,t,n,o)=>c+"leaderboard/community/"+e+"/paginated?groupId="+t+`&page=${n}&limit=${o}`,getLeaderboardV2Paginated:(e,t,n,o)=>c+"leaderboard/community/"+e+`/paginated/v2?page=${t}`+`&limit=${n}`+`&search=${o}`,getMyKarmaPoints:e=>c+"leaderboard/community/"+e+"/my/v2",getCommunityKarmaPoints:e=>c+"community/"+e+"/karma-points",sectionMessageNotificationBadges:e=>c+"community/"+e+"/section-message-badges",sectionMessageNotificationMarkAsRead:(e,t)=>c+"community/"+e+"/section-message-mark-read/"+t,notificationPreference:e=>c+"community/"+e+"/notification-preferences",updateTabNotificationPreference:e=>c+"community/"+e+"/notification-preferences/tab",updateNotificationPreference:e=>c+"community/"+e+"/notification-preferences",getLastPostCreatedTimeInCommunity:e=>c+"community/"+e+"/last-post-time",roles:{makeAdminOfWholeCommunity:(e,t)=>c+"community/"+e+"/user/"+t+"/make-admin",removeUserAsAdminOfWholeCommunity:(e,t)=>c+"community/"+e+"/user/"+t+"/remove-as-admin",removeUserFromCommunity:(e,t)=>c+"community/"+e+"/user/"+t+"/remove-from-community",makeAdminOfSelectedGroups:(e,t,n=[])=>c+"community/"+e+"/user/"+t+"/update-role/groups",updateRole:e=>c+"community/"+e+"/update-role",getRole:(e,t)=>c+"community/"+e+"/get-role/"+t},subscription:{getPlansList:e=>c+"checkout/community/"+e+"/plans",getCheckoutURLForCommunityPlan:(e,t,n=window.location.origin)=>c+"checkout/community/"+e+"/"+t+"?communityURL="+n,cancelCommunitySubscription:e=>c+"cancel-plan/community/"+e},theme:{communityThemeData:e=>c+"community-theme-data/"+e,communityThemeDataToggle:e=>c+"community-theme-data/"+e+"/toggle",communityThemeDataToggleForUser:(e,t)=>c+"community-theme-data/"+e+"/"+t+"/toggle"},deals:{getDeals:c+"community-deals",redeemDeal:e=>c+"community-deals/"+e+"/redeem"},settings:{toggleCommunityLoginRequirement:e=>c+"community/"+e+"/toggle-login-requirement",updateConfig:e=>c+"community/"+e+"/update-config",updateConfigV2:e=>c+"community/"+e+"/update-config/v2"},configurable:(e,t)=>c+`community/${e}/configurable/${t}`,analytics:{getAnalyticsLink:e=>c+"community/"+e+"/analytics"},invite:{inviteViaEmail:e=>c+"community/"+e+"/invite",inviteViaCsv:e=>c+"community/"+e+"/invite/csv",getInvitesList:(e,t,n)=>c+"community/"+e+"/invites/paginated?search="+t+"&page="+n,configureMailTemplates:e=>c+"community/"+e+"/configurable/COMMUNITY_INVITE_MAIL_BODY_KEY",batchReInvite:e=>c+"community/"+e+"/invite/batch-reinvite",cancelBatchInvite:e=>c+"community/"+e+"/invite/batch-cancel"},bulkEmail:{send:e=>c+"community/"+e+"/bulk-email",getBulkEmailLogList:(e,t,n)=>c+`community/${e}/bulk-email/log?search=${t}&page=${n}`},additionalConfiguration:{getConfiguration:e=>c+"community/"+e+"/additional-configuration",saveDefaultJoinGroups:e=>c+"community/"+e+"/additional-configuration/default-join-groups"},reportPeer:e=>c+"community/"+e+"/report-peer",block:{blockUser:(e,t)=>c+"community/"+e+"/blocked-users/"+t,listBlockedUsers:e=>c+"community/"+e+"/blocked-users",unBlockUser:(e,t)=>c+"community/"+e+"/blocked-users/"+t},topics:{createTopic:e=>c+"community/"+e+"/topic",getAllTopics:e=>c+"community/"+e+"/topics",editTopic:(e,t)=>c+"community/"+e+"/topic/"+t+"/edit",archiveTopic:(e,t)=>c+"community/"+e+"/topic/"+t+"/archive",deleteTopic:(e,t)=>c+"community/"+e+"/topic/"+t+"/delete"},onboardingChecklist:{setOnboardingChecklist:e=>c+"community/"+e+"/onboarding-list-config",getOnboardingChecklist:e=>c+"community/"+e+"/onboarding-list-config"},exportMembersCSV:{requestExport:e=>c+"community/"+e+"/subscribers/request-export",getExportStatus:e=>c+"export-job/"+e+"/status"}},d=o.P,l={createCourse:(e,t)=>d+(t?`community/${e}/courses/${t}`:`community/${e}/courses`),uploadCourseBanner:(e,t)=>d+`community/${e}/courses/${t}/banner`,getAll:e=>d+`community/${e}/courses`,getCourseDetails:(e,t)=>d+`community/${e}/courses/${t}`,deleteCourse:(e,t)=>d+`community/${e}/courses/${t}`,paginatedMembers:(e,t,n=1,o=10)=>d+`community/${e}/courses/${t}/members/paginated?`+`page=${n}&limit=${o}`,addMember:(e,t,n)=>d+`community/${e}/courses/${t}/accept/${n}`,removeMember:(e,t,n)=>d+`community/${e}/courses/${t}/reject/${n}`,joinCourse:(e,t)=>d+`community/${e}/courses/${t}/join`,sections:{createSection:(e,t,n)=>d+(n?`community/${e}/courses/${t}/section/${n}`:`community/${e}/courses/${t}/section`),getAll:(e,t)=>d+`community/${e}/courses/${t}/sections`,deleteSection:(e,t,n)=>d+`community/${e}/courses/${t}/section/${n}`,getSectionDetails:(e,t,n)=>d+`community/${e}/courses/${t}/sections/${n}`,lesson:{createLesson:(e,t,n,o)=>d+(o?`community/${e}/courses/${t}/section/${n}/lessons/${o}`:`community/${e}/courses/${t}/section/${n}/lessons`),getLessonDetails:(e,t,n,o)=>d+`community/${e}/courses/${t}/section/${n}/lessons/${o}`,deleteLesson:(e,t,n,o)=>d+`community/${e}/courses/${t}/section/${n}/lessons/${o}`,updateLessonCover:(e,t,n,o)=>d+`community/${e}/courses/${t}/section/${n}/lessons/${o}/cover`,markLessonComplete:(e,t,n,o)=>d+`community/${e}/courses/${t}/section/${n}/lessons/${o}/mark-complete`,markIncomplete:(e,t,n,o)=>d+`community/${e}/courses/${t}/section/${n}/lessons/${o}/mark-incomplete`}}},m=o.P,p={sendCustomPush:e=>m+`community/${e}/custom-push`,getCustomPushLog:(e,t=1)=>m+`community/${e}/custom-push/log?page=`+t},h=o.P,y={getAllRequests:e=>`${h}community/${e}/custom-domain`,createRequest:e=>`${h}community/${e}/custom-domain`,deleteRequest:(e,t)=>`${h}community/${e}/custom-domain/${t}`},g=o.P,f={sendDirectMessage:e=>g+"chats/direct/"+e+"/send-message",editDirectMessage:e=>g+"chats/direct/edit-message/"+e,deleteDirectMessage:e=>g+"chats/direct/delete-message/"+e,uploadAttachments:e=>g+"chats/direct/"+e+"/upload-attachment",markAllMessageAsRead:e=>g+"chats/direct/"+e+"/mark-all-read",chats:g+"chats/direct",userChat:(e,t=null)=>g+"chats/direct/"+e+"?lastId="+t},v={unsubscribe:o.P+"unsubscribe"},b=o.P,A={getAllEmbeddedSections:(e,t=!1)=>b+`community/${e}/embedded-sections?showAll=${t}`,getEmbeddedSectionDetailBySlug:(e,t)=>b+`community/${e}/embedded-sections/${t}`,changeVisibilityEmbeddedSectionInCommunity:(e,t)=>b+`community/${e}/embedded-sections/${t}/change-visibility`,createEmbeddedSection:e=>b+`community/${e}/embedded-sections`,updateEmbeddedSection:(e,t)=>b+`community/${e}/embedded-sections/${t}`,updateEmbeddedSectionSortOrder:e=>b+`community/${e}/embedded-sections/update-sort`,getEMbeddedSectionDetailByIdForAdmin:(e,t)=>b+`community/${e}/embedded-sections/${t}/admin`},k=o.P,C={getAllEvents:(e,t)=>k+`community/${e}/events/${t}`,getEventDetail:(e,t)=>k+`community/${e}/event/${t}`,getEventDetailBySlug:(e,t)=>k+`community/${e}/event/slug/${t}`,updateEvent:(e,t,n,o)=>k+`community/${e}/event/${t}?notifyUser=${n}&deleteAll=${o}`,acceptInvitation:(e,t)=>k+`community/${e}/event/${t}/accept-invitation`,updateEventBanner:(e,t)=>k+`community/${e}/event/${t}/banner`,createEvent:e=>k+`community/${e}/event`,createRecurringEvent:(e,t=null,n=null,o=null)=>k+`community/${e}/event/recurring?recurringType=${t}&recurringCount=${n}&recurringEndDate=${o}`,updateRSVP:(e,t)=>k+`community/${e}/event/${t}/update-rsvp`,inviteSections:(e,t)=>k+`community/${e}/event/${t}/invite`,upcomingEvents:(e,t)=>k+`community/${e}/upcoming-events${t?`?timestamp=${t}`:""}`,latestGroupEvents:(e,t)=>k+`community/${e}/latest-events/${t}`,previousEvents:(e,t)=>k+`community/${e}/previous-events${t?`?timestamp=${t}`:""}`,getMeetingAttendance:(e,t)=>k+`meeting/${e}/attendance?communityId=${t}`,exportAttendanceCSV:(e,t)=>k+`meeting/${e}/attendance/export?communityId=${t}`},P=o.P,S={all:P+"group",my:P+"group/my",byMe:P+"group/by-me",getGroupFromSlug:(e,t)=>P+"community/"+e+"/groups/"+t,updateGroup:e=>P+"group/"+e,deleteGroup:e=>P+"group/"+e,uploadBanner:e=>P+"group/"+e+"/banner",addTab:e=>P+"group/"+e+"/tab",editTab:(e,t)=>P+"group/"+e+"/tab/"+t,deleteTab:(e,t)=>P+"group/"+e+"/tab/"+t,goLive:e=>P+"dyte/start-meeting/"+e,members:(e,t=null)=>P+"group/"+e+"/members"+(t?"?tabId="+t:""),membersPaginated:(e,t=null,n=1,o=20,a="")=>P+"group/"+e+"/members/paginated"+(t?"?tabId="+t+"&":"?")+"page="+n+"&limit="+o+"&query="+a,closedSectionMembers:(e,t=null)=>P+"group/"+e+"/closed-tab/"+t+"/members",closedSectionMembersPaginated:(e,t=null,n=1,o=20,a="")=>P+"group/"+e+"/closed-tab/"+t+"/members/paginated?page="+n+"&limit="+o+"&query="+a,personalGroup:P+"group/personal",getLeaderboardV2Paginated:(e,t,n)=>P+"leaderboard/group/"+e+`/paginated/v2?page=${t}`+`&limit=${n}`,updateRole:(e,t)=>P+"group/"+e+"/members/"+t+"/update-role",removeUser:(e,t)=>P+"group/"+e+"/remove-user/"+t,posts:e=>P+"group/"+e+"/posts",sectionPostsPaginated:(e,t,n=1,o)=>P+"group/"+e+"/section/"+t+"/posts?page="+n+"&sort="+o,sectionPostsPinned:(e,t)=>P+"group/"+e+"/section/"+t+"/posts/pinned",sectionMessagesPaginated:(e,t,n=1)=>P+"group/"+e+"/section/"+t+"/messages?page="+n,sectionMessagesTimestampPaginated:(e,t,n)=>P+"group/"+e+"/section/"+t+"/messages/timestamped?lastId="+n,trendingPosts:e=>P+"group/"+e+"/trending-posts",acceptInvitation:e=>P+"group/"+e+"/accept-invite",join:e=>P+"group/"+e+"/join",leave:e=>P+"group/"+e+"/leave",acceptJoinRequest:(e,t)=>P+"group/"+e+"/join-request/"+t+"/accept",rejectJoinRequest:(e,t)=>P+"group/"+e+"/join-request/"+t+"/reject",verifyCouponCode:(e,t)=>P+"payment/group/"+e+"/verify-coupon/"+t,createOrder:e=>P+"payment/group/"+e+"/create-order",verifyPayment:(e,t)=>P+"payment/group/"+e+"/verify-payment/"+t,joinClosedSection:(e,t)=>P+"group/"+e+"/section/"+t+"/join",acceptJoinClosedSectionRequest:(e,t,n)=>P+"group/"+e+"/section/"+t+"/join-request/"+n+"/accept",rejectJoinClosedSectionRequest:(e,t,n)=>P+"group/"+e+"/section/"+t+"/join-request/"+n+"/reject"},T=o.P,I={addCustomPoints:(e,t)=>`${T}leaderboard/community/${e}/user/${t}/add-custom-point`},E=o.P,B={getAllByCommunity:e=>E+`community/${e}/live-call`,createLiveCall:e=>E+`community/${e}/live-call`},x=o.P,w={uploadMedia:(e,t)=>x+`community/${e}/`+`media/upload?attachmentType=${t}`},N=o.P,_={searchInCommunity:(e,t="")=>N+`mentions/search-community/${e}?query=${t}`},j=o.P,M={create:j+"message",delete:e=>j+"message/"+e,getPinnedMessage:(e,t)=>j+"group/"+e+"/section/"+t+"/messages/pinned",pinned:e=>j+"message/"+e+"/pin",unpinned:e=>j+"message/"+e+"/pin",edit:e=>j+"message/"+e,react:e=>j+"message/"+e+"/react",unreact:e=>j+"message/"+e+"/unreact",uploadAttachment:j+"message/upload-attachment"},O=o.P,L={uploadImage:O+"upload-image",search:e=>O+"community/"+e+"/search",defaultImageFromBackendUrl:O.split("/api/")[0]+"/default_pictures/user_0.jpg"},z=o.P,$={getMyNFTs:z+"profile/nfts",getUserNFTs:e=>z+`user/${e}/nfts`,checkForGatedGroupAccess:e=>z+`community/${e}/check-for-gated-group-access`},Z=o.P,R={getPost:e=>Z+"open/post/"+e,getPostList:(e,t)=>Z+"open/group/"+e+"/feed/"+t+"/posts",getFontData:Z+"/font-data"},D=o.P,U={getPaymentPreference:e=>`${D}community/${e}/payment-preference`,updatePaymentPreference:e=>`${D}community/${e}/payment-preference`,getInvoicePreference:e=>`${D}community/${e}/invoice-preference`,updateInvoicePreference:e=>`${D}community/${e}/invoice-preference`},G=o.P,F={getHighlightedPosts:e=>G+`community/${e}/highlighted-posts`,highlightPost:(e,t)=>G+`community/${e}/highlighted-posts/${t}`,updateHighlightedPostsSortOrder:e=>G+`community/${e}/highlighted-posts/sort`},V=o.P,H={create:V+"post",searchTag:(e,t)=>V+"tag/search?query="+e+"&community="+t,getPostByTag:(e,t,n,o,a)=>V+`/post/explore-by-tag-paginated/community/${e}?page=${t}&tags[]=${n}&groupId=${a}&tabId=${o}`,update:e=>V+"post/"+e,uploadImage:e=>V+"post/"+e+"/images",uploadVideo:e=>V+"post/"+e+"/videos",uploadDocument:e=>V+"post/"+e+"/document",uploadBanner:e=>V+"post/"+e+"/banner",paginated:e=>V+"post-paginated?page="+e,popularPaginated:e=>V+"post/explore-paginated?page="+e,detail:e=>V+"post/"+e,detailFromSlug:(e,t)=>V+"community/"+e+"/post/"+t,likes:e=>V+"post/"+e+"/likes",pin:e=>V+"post/"+e+"/pin",unpin:e=>V+"post/"+e+"/unpin",getBookmarks:V+"bookmark",bookmark:e=>V+"post/"+e+"/bookmark",removeBookmark:e=>V+"post/"+e+"/bookmark",addComment:e=>V+"post/"+e+"/comment",addCommentReply:(e,t)=>V+"post/"+e+"/comment/"+t+"/reply",addCommentReaction:(e,t)=>V+"post/"+e+"/comment/"+t+"/like",removeCommentReaction:(e,t)=>V+"post/"+e+"/comment/"+t+"/dislike",addCommentReplyReaction:(e,t,n)=>V+"post/"+e+"/comment/"+t+"/reply/"+n+"/like",removeCommentReplyReaction:(e,t,n)=>V+"post/"+e+"/comment/"+t+"/reply/"+n+"/dislike",uploadImagesToComment:(e,t)=>V+"post/"+e+"/comment/"+t+"/images",uploadDocumentToComment:(e,t)=>V+"post/"+e+"/comment/"+t+"/document",uploadDocumentToCommentReply:(e,t,n)=>V+"post/"+e+"/comment/"+t+"/reply/"+n+"/documents?documents[]",deleteComment:(e,t)=>V+"post/"+e+"/comment/"+t,deleteSubComment:(e,t,n)=>V+"post/"+e+"/comment/"+t+"/reply/"+n,like:e=>V+"post/"+e+"/like",vote:e=>V+"post/"+e+"/vote",dislike:e=>V+"post/"+e+"/dislike",delete:e=>V+"post/"+e,getMeetingData:e=>V+"dyte/join-meeting/"+e+"/json",toggleMeetingRecording:(e,t)=>V+"dyte/meeting/"+e+"/toggle-recording/"+t,endMeeting:(e,t)=>V+"dyte/meeting/"+e+"/end/"+t},q=o.P,W={createSubscription:e=>`${q}community/${e}/subscription`,updateSubscription:(e,t)=>`${q}community/${e}/subscription/${t}`,deleteSubscription:(e,t)=>`${q}community/${e}/subscription/${t}`,cancelSubscription:e=>`${q}community/${e}/subscription/my`,getAllSubscriptions:e=>`${q}community/${e}/subscriptions`,getSubscriptionDetails:(e,t)=>`${q}community/${e}/subscription/${t}`,getAllSubscriptionMembers:(e,t)=>`${q}community/${e}/subscription/${t}/members`,getMySubscription:e=>`${q}community/${e}/subscription/my`,getAllSubscriptionsAdmin:e=>`${q}community/${e}/subscriptions/admin`,getAllMembershipSubscription:(e,t)=>`${q}community/${e}/subscription/${t}/members`,getActiveSubscriptionsForSubscription:(e,t)=>`${q}community/${e}/subscription/${t}/active-subscriptions`,getPreviousSubscriptionsForSubscription:(e,t)=>`${q}community/${e}/subscription/${t}/previous-subscriptions`,initiateSubscription:(e,t)=>`${q}community/${e}/subscription/${t}/initiate-subscription`,freeSubscribe:(e,t)=>`${q}community/${e}/subscription/${t}/free-subscribe`,resendInvoice:(e,t)=>`${q}community/${e}/invoice-resend/${t}`,editInvoice:(e,t)=>`${q}community/${e}/invoice-edit/${t}`},K=o.P,Y={syncOneSignalWebUserId:K+"user/save-one-signal-web-user-id",profile:K+"profile",checkProfileAvailability:e=>K+"profile/username-availability/"+e,profileById:e=>K+"user/"+e,updateProfile:K+"profile",updateWalletAddress:K+"profile/wallet-address",updatePicture:K+"profile/picture",deleteProfilePicture:K+"profile/picture",getAllUsers:K+"user",followUser:(e,t)=>K+"community/"+t+"/user/"+e+"/follow",unfollowUser:(e,t)=>K+"community/"+t+"/user/"+e+"/unfollow",followFollowingCount:(e,t)=>K+"community/"+t+"/user/"+e+"/follow-following-count",followersList:(e,t)=>K+"community/"+t+"/user/"+e+"/followers",followedList:(e,t)=>K+"community/"+t+"/user/"+e+"/followeds",notifications:K+"user/notifications",markNotificationAsViewed:e=>K+"user/notifications/"+e+"/mark-as-read",markNotificationsAsReceived:K+"user/notifications/mark-as-received",markSelectedNotificationsAsReceived:(e,t)=>K+`user/notifications/mark-selected-as-received?group=${e}&tab=${t}`,markNotificationsAsViewed:K+"user/notifications/mark-as-read",counters:K+"user/counters",apiKeys:{get:K+"user/api-key",delete:e=>K+"user/api-key/"+e},verify:{emailSendOtp:K+"verify/email/send-otp",emailVerifyOtp:K+"verify/email/verify-otp",mobileSendOtp:K+"verify/mobile/send-otp",mobileVerifyOtp:K+"verify/mobile/verify-otp",checkExistingMobile:K+"verify/mobile/already-existing",checkExistingEmail:K+"verify/email/already-existing"},account:{unlinkMobileOrEmail:K+"account/unlink-mobile-or-email"},block:{blockPeer:(e,t)=>K+"community/"+t+"/block-peer/"+e,unblockPeer:(e,t)=>K+"community/"+t+"/unblock-peer/"+e,listBlockedPeers:e=>K+"community/"+e+"/blocked-peers"}},J=o.P,Q={getGroupWidget:(e,t)=>J+`community/${e}/widgets?groupId=${t}`,createCustomWidget:e=>J+`community/${e}/widgets`,uploadCustomCustomWidgetPicture:(e,t)=>J+`community/${e}/widgets/${t}/upload-picture`,updateSortOrder:e=>J+`community/${e}/widgets/sort`,updateWidget:(e,t)=>J+`community/${e}/widgets/${t}`,deleteCustomWidget:(e,t)=>J+`community/${e}/widgets/${t}`},X={auth:r,goLive:o.P+"dyte/go-live",community:u,group:S,directMessages:f,post:H,message:M,user:Y,misc:L,open:R,mentions:_,media:w,event:C,emailSubscription:v,embeddedSections:A,widget:Q,customSubdomain:y,leaderboard:I,communityPlanAccess:i,course:l,customPush:p,postHighlight:F,nft:$,subscription:W,paymentPreference:U,liveCall:B};var ee=n(6292);const te={clientId:"91297253397-0eu6455cgepsl04vdpj0ggpj5ddoiph3.apps.googleusercontent.com"},ne={appId:"583284253212809"}},26914(e,t,n){n.d(t,{r:()=>c});let o=null,a=!1;var r={"hopes.pensil.so":"1e931974dd683091fe7762831cbbf918","webveda.pensil.in":"48a22588b57fa763c042e8c79f37c6dc","epicrew.pensil.in":"6b7a489a26de8e5cf0fa41ff9e15e448","community.webveda.com":"48a22588b57fa763c042e8c79f37c6dc","theundivided.pensil.in":"7b3322b847fa7aed8f50d95bd82fca3d","design.toprankers.com":"52c2a4036b0163d2e15df1be334eb65f","management.toprankers.com":"52c2a4036b0163d2e15df1be334eb65f","cuet.toprankers.com":"52c2a4036b0163d2e15df1be334eb65f","udaan.toprankers.com":"52c2a4036b0163d2e15df1be334eb65f","law.toprankers.com":"52c2a4036b0163d2e15df1be334eb65f","www.cuet.com":"52c2a4036b0163d2e15df1be334eb65f","fyndacademy.pensil.in":"d76a235fae6cbe13a8691df369ba67b7","theforexfunda.pensil.in":"efb89ec238d18ec50bdfb9eae1c85646"}[window.location.hostname];r||(r="139968c47b75a54e4e33df5563ea588d");function s(){a||(a=!0,n.e(7532).then(n.bind(n,17532)).then(e=>{o=e.default,o.init(r)}))}function i(e){o&&a&&e()}window.addEventListener("click",s,{once:!0}),window.addEventListener("keydown",s,{once:!0}),window.addEventListener("touchstart",s,{once:!0});let c={identify:e=>{i(()=>o.identify(e))},alias:e=>{i(()=>o.alias(e))},track:(e,t,n={},r=()=>{})=>{if(o&&a)return o.track("WEBAPP."+e,t,n,r)},people:{set:e=>{i(()=>o.people.set(e))}},reset:()=>{i(()=>o.reset())}}},68536(e,t,n){n.d(t,{u:()=>r});var o=n(54295),a=n(78220);class r{static async requestOTP(e,t,n=null,r){return o.A.post(a.vZ.auth.loginWithOTP,{countryCode:e,mobile:t,communityId:n,captchaToken:r}).then(e=>e.data)}static async requestEmailOTP(e,t=null){return o.A.post(a.vZ.auth.loginWithEmailOTP,{email:e,communityId:t}).then(e=>e.data)}static async verifyOTP(e,t,n){return o.A.post(a.vZ.auth.verifyOTP,{countryCode:e,mobile:t,otp:n}).then(e=>e.data)}static async verifyEmailOTP(e,t,n){return o.A.post(a.vZ.auth.verifyOTP,{countryCode:e,email:t,otp:n}).then(e=>e.data)}static async googleLoginV2(e){return o.A.post(a.vZ.auth.googleLoginV2,{},{headers:{Authorization:"Bearer "+e}}).then(e=>e.data)}static async facebookLogin(e){return o.A.post(a.vZ.auth.facebookLogin,{},{headers:{Authorization:"Bearer "+e}}).then(e=>e.data)}static async web3Login(e){return o.A.post(a.vZ.auth.web3Login,{},{headers:{Authorization:"Bearer "+e}}).then(e=>e.data)}}},25655(e,t,n){n.d(t,{B:()=>i});var o=n(54295),a=n(78220),r=n(16118),s=n(26914);class i{static async checkForAddressAvailability(e,t){return o.A.get(a.vZ.community.addressAvailability(e),{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async createCommunity(e,t){return o.A.post(a.vZ.community.create,{name:e,address:t,selectedType:"paid"},{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>(s.r.track("create-community",{communityname:e.data.community.name,communityurl:(0,r.IT)(e.data.community),logo:!!e.data.community.logo,typeSelection:e.data.community.typeSelection}),e.data))}static async updateCommunity(e,t,n,r="",s,i="Asia/Kolkata",c="",u="",d){return o.A.post(a.vZ.community.updateCommunity(e),{name:t,address:n,timezone:i,privacyPolicyLink:c,termsAndConditionsLink:u,meta:d},{headers:{Authorization:"Bearer "+s.token}}).then(e=>e.data)}static async updateCommunityWelcomeMessages(e,t=[],n){return o.A.put(a.vZ.community.updateCommunityWelcomeMessages(e),{welcomeMessages:t},{headers:{Authorization:"Bearer "+n.token}}).then(e=>e.data)}static async updateCommunityBannerDetails(e,t,n,r){return o.A.post(a.vZ.community.updateCommunityBannerDetails(e),{bannerTitle:t,bannerDescription:n},{headers:{Authorization:"Bearer "+r.token}}).then(e=>e.data)}static async updateLogo(e,t,n="light"){const s=new FormData;return s.append("logo",t,t.fileName),o.A.post(a.vZ.community.updateLogo(e,n),s,{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async updateCommunityBanner(e,t,n){const r=new FormData;return r.append("banner",n,n.fileName),o.A.post(a.vZ.community.updateCommunityBanner(e),r,{headers:{Authorization:"Bearer "+t.token}}).then(e=>e.data)}static async removeCommunityBanner(e,t){return o.A.delete(a.vZ.community.removeCommunityBanner(t),{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async updateFavicon(e,t,n){const r=new FormData;return r.append("favicon",n,n.fileName),o.A.post(a.vZ.community.updateFavicon(e),r,{headers:{Authorization:"Bearer "+t.token}}).then(e=>e.data)}static async getCommunityGroups(e,t=null){return o.A.get(a.vZ.community.groups(e),{headers:{Authorization:"Bearer "+(t?t.token:(0,r.ut)())}}).then(e=>e.data)}static async getCommunityGroupsAndCounters(e){return o.A.get(a.vZ.community.groupsAndCounters(e),{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async getMyLeaderboardScore(e){return o.A.get(a.vZ.community.getMyLeaderboardScore(e),{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async getLeaderboard(e,t,n="",s=1,i=10){return o.A.get(a.vZ.community.getLeaderboard(t,n,s,i),{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async getLeaderboardV2Paginated(e,t,n,s=""){return o.A.get(a.vZ.community.getLeaderboardV2Paginated(e,t,n,s),{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async getMyKarmaPoints(e){return o.A.get(a.vZ.community.getMyKarmaPoints(e),{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data).catch(e=>e.response.data)}static async getCommunityKarmaPoints(e){return o.A.get(a.vZ.community.getCommunityKarmaPoints(e),{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async updateCommunityKarmaPoints(e,t){return o.A.post(a.vZ.community.getCommunityKarmaPoints(e),{karmaPoints:t},{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async getSubscribedCommunity(e){return o.A.get(a.vZ.community.getSubscribedCommunities,{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async sortCommunityGroups(e,t,n){return o.A.post(a.vZ.community.sortGroups(t),{sortOrder:n},{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async sortCommunityGroupTabs(e,t,n,r){return o.A.post(a.vZ.community.sortGroupTabs(t,n),{sortOrder:r},{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async getCommunitySubscribers(e,t,n=""){return o.A.get(a.vZ.community.subscribers(t,n),{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async getCommunitySubscribersPaginated(e,t,n,r,s="",i=""){return o.A.get(a.vZ.community.subscribersPaginated(t,n,r,s,i),{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async markSubscribersAsViewed(e,t=[]){return o.A.post(a.vZ.community.markSubscribersAsViewed(e),{userIds:t},{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async makeUserModeratorInAllGroups(e,t,n,r){return o.A.post(a.vZ.community.makeUserModeratorInAllGroup(t,n,r),{},{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async getCommunity(e=""){return o.A.get(a.vZ.community.getCommunity(e),{}).then(e=>e.data)}static async getCommunityById(e,t){return o.A.get(a.vZ.community.getCommunityById(t),{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async getUserPostsInCommunityById(e,t,n=1){return o.A.get(a.vZ.community.getUserPosts(e,t,n),{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async getCommunityPostDirectoryById(e,t,n=null,r=1){return o.A.get(a.vZ.community.getCommunityPostDirectory(t,n,r),{headers:{Authorization:"Bearer "+(e?e.token:null)}}).then(e=>e.data)}static async getUserActivitiesInCommunityById(e,t,n=1){return o.A.get(a.vZ.community.getUserActivities(e,t,n),{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async joinCommunity(e,t){return o.A.post(a.vZ.community.joinCommunity(t),{},{headers:{Authorization:"Bearer "+e.token}}).then(t=>(s.r.track("subscribe-community",{communityname:t.data.community.name,communityurl:(0,r.IT)(t.data.community),communityPlan:t.data.community.plan?t.data.community.plan.planType:"free",user:e.name,mobile:e.mobile,email:e.email}),t.data))}static async verifyUserByAdmin(e,t,n){return o.A.post(a.vZ.community.verifyUserByAdmin(t,n),{},{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async leaveCommunity(e,t){return o.A.post(a.vZ.community.leaveCommunity(t),{},{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async getCommunityLinks(e){return o.A.get(a.vZ.community.addNewLink(e),{}).then(e=>e.data)}static async addCommunityLink(e,t,n){return o.A.post(a.vZ.community.addNewLink(t),n,{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async editCommunityLink(e,t,n){return o.A.post(a.vZ.community.editLink(t,n.id),n,{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async deleteCommunityLink(e,t,n){return o.A.delete(a.vZ.community.editLink(t,n.id),{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async verifyThirdPartyToken(e,t){return o.A.post(a.vZ.community.verifyThirdPartyToken(e),{token:t}).then(e=>e.data)}static async makeAdminOfWholeCommunity(e,t,n){return o.A.post(a.vZ.community.roles.makeAdminOfWholeCommunity(t,n),{},{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async removeUserAsAdminOfWholeCommunity(e,t,n){return o.A.post(a.vZ.community.roles.removeUserAsAdminOfWholeCommunity(t,n),{},{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async removeUserFromCommunity(e,t,n){return o.A.post(a.vZ.community.roles.removeUserFromCommunity(t,n),{},{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async blockUser(e,t){return o.A.post(a.vZ.community.block.blockUser(e,t),{},{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async listBlockedUsers(e,t=1,n=10){return o.A.get(a.vZ.community.block.listBlockedUsers(e,t,n),{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async unBlockUser(e,t){return o.A.delete(a.vZ.community.block.unBlockUser(e,t),{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async createCommunityTopic(e,t,n,r,s){return o.A.post(a.vZ.community.topics.createTopic(t),{name:n,bgColor:r,textColor:s},{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async getAllCommunityTopics(e){return o.A.get(a.vZ.community.topics.getAllTopics(e),{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async editCommunityTopic(e,t,n,r,s,i){return o.A.patch(a.vZ.community.topics.editTopic(t,n),{name:r,bgColor:s,textColor:i},{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async handleCommunityTopicArchive(e,t,n){return o.A.patch(a.vZ.community.topics.archiveTopic(t,n),{},{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async deleteCommunityTopic(e,t,n){return o.A.patch(a.vZ.community.topics.deleteTopic(t,n),{},{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async makeAdminOfSelectedGroups(e,t,n,r=[],s="admin"){return o.A.post(a.vZ.community.roles.makeAdminOfSelectedGroups(t,n),{groupIds:r,role:s},{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async getPlansList(e){return o.A.get(a.vZ.community.subscription.getPlansList(e),{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async getCheckoutURLForCommunityPlan(e,t,n="advance",r=window.location.origin){return o.A.get(a.vZ.community.subscription.getCheckoutURLForCommunityPlan(t,n,r),{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static checkIfCommunityActionShouldBeDisabled(e,t=!1){return t?!(!e||"paid"!==e.selectedType||!e.isPlanExpired):!(!e||"admin"!==e.myRole||"paid"!==e.selectedType||!e.isPlanExpired)}static async cancelCommunitySubscription(e,t){return o.A.post(a.vZ.community.subscription.cancelCommunitySubscription(t),{},{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async getCommunityThemeData(e){return o.A.get(a.vZ.community.theme.communityThemeData(e),{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async updateCommunityThemeData(e,t,n){return o.A.post(a.vZ.community.theme.communityThemeData(t),n,{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async toggleCommunityThemeData(e,t){return o.A.post(a.vZ.community.theme.communityThemeDataToggle(e),t,{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async toggleCommunityThemeDataForUser(e,t,n){return o.A.post(a.vZ.community.theme.communityThemeDataToggleForUser(t,e.id),n,{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async getDeals(){return o.A.get(a.vZ.community.deals.getDeals,{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async redeemDeal(e,t,n){return o.A.post(a.vZ.community.deals.redeemDeal(t.id),{communityPlanType:n},{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async toggleCommunityLoginRequirement(e,t,n){return o.A.put(a.vZ.community.settings.toggleCommunityLoginRequirement(t),{loginRequired:n},{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async updateConfig(e,t,n,r){return o.A.put(a.vZ.community.settings.updateConfig(t),{configKey:n,configValue:r},{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async updateConfigV2(e,t,n,r){return o.A.put(a.vZ.community.settings.updateConfigV2(t),{configKey:n,configValue:r},{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async getConfigurable(e,t){return o.A.get(a.vZ.community.configurable(e,t),{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async updateConfigurable(e,t,n){return o.A.post(a.vZ.community.configurable(e,t),{configurableValue:n},{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async getLastPostCreatedTimeInCommunity(e){return o.A.get(a.vZ.community.getLastPostCreatedTimeInCommunity(e),{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async getAnalyticsLink(e){return o.A.get(a.vZ.community.analytics.getAnalyticsLink(e),{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async getAdditionalConfiguration(e){return o.A.get(a.vZ.community.additionalConfiguration.getConfiguration(e),{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async saveAdditionalConfigurationDefaultJoinGroups(e,t=[]){return o.A.post(a.vZ.community.additionalConfiguration.saveDefaultJoinGroups(e),{groupIds:t},{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async reportPost({communityId:e,reportType:t,reasonOfReporting:n,contentLink:s,content:i}){return o.A.post(a.vZ.community.reportPeer(e.toString()),{reasonOfReporting:n,reportType:t,contentLink:s||"",content:s?i:"Invalid content link"},{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data).catch(()=>null)}static async setCommunityOnboardingChecklistDetails(e,t){return o.A.post(a.vZ.community.onboardingChecklist.setOnboardingChecklist(e),{onboardingChecklist:t},{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async getCommunityOnboardingListData(e){return o.A.get(a.vZ.community.onboardingChecklist.getOnboardingChecklist(e),{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async requestMembersExport(e,t){return o.A.post(a.vZ.community.exportMembersCSV.requestExport(t),{},{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async getMembersExportStatus(e,t){return o.A.get(a.vZ.community.exportMembersCSV.getExportStatus(t),{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}}},17917(e,t,n){n.d(t,{B:()=>s});var o=n(54295),a=n(78220),r=n(16118);class s{static async createGroup(e,t){return o.A.post(a.vZ.group.all,t,{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async updateGroup(e,t,n){return o.A.post(a.vZ.group.updateGroup(t),n,{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async deleteGroup(e,t){return o.A.delete(a.vZ.group.deleteGroup(t),{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async uploadBanner(e,t="",n){const r=new FormData;return r.append("banner",n),o.A.post(a.vZ.group.uploadBanner(t),r,{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async createGroupTab(e,t,n){return o.A.post(a.vZ.group.addTab(t),n,{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async editGroupTab(e,t,n,r){return o.A.post(a.vZ.group.editTab(t,n),r,{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async deleteGroupTab(e,t,n){return o.A.delete(a.vZ.group.deleteTab(t,n),{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async getAllGroups(e){return o.A.get(a.vZ.group.all,{headers:{Authorization:"Bearer "+(e?e.token:null)}}).then(e=>e.data)}static async groupsByMe(e){return o.A.get(a.vZ.group.byMe,{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async getPersonalGroup(e){return o.A.get(a.vZ.group.personalGroup,{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async groupDetail(e){return o.A.get(a.vZ.group.all+"/"+e,{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async groupDetailFromSlug(e,t){return o.A.get(a.vZ.group.getGroupFromSlug(e,t),{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async groupMembers(e,t,n){return o.A.get(a.vZ.group.members(t,n),{headers:{Authorization:"Bearer "+(0,r.ut)()},signal:e.signal}).then(e=>e.data)}static async groupMembersPaginated(e,t,n=1,s=20,i=""){return o.A.get(a.vZ.group.membersPaginated(e,t,n,s,i),{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async groupClosedSectionMembers(e,t,n){return o.A.get(a.vZ.group.closedSectionMembers(t,n),{headers:{Authorization:"Bearer "+(0,r.ut)()},signal:e.signal}).then(e=>e.data)}static async groupClosedSectionMembersPaginated(e,t,n=1,s=20,i=""){return o.A.get(a.vZ.group.closedSectionMembersPaginated(e,t,n,s,i),{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async getLeaderboardV2Paginated(e,t,n){return o.A.get(a.vZ.group.getLeaderboardV2Paginated(e,t,n),{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async updateUserRole(e,t,n,r="user"){return o.A.post(a.vZ.group.updateRole(t,n),{role:r},{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async removeUser(e,t,n){return o.A.post(a.vZ.group.removeUser(t,n),{},{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async groupPosts(e,t){return o.A.get(a.vZ.group.posts(t),{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async sectionPostsPaginated(e,t,n=1,s){return o.A.get(a.vZ.group.sectionPostsPaginated(e,t,n,s),{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async sectionPostsPinned(e,t){return o.A.get(a.vZ.group.sectionPostsPinned(e,t),{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async sectionMessagesPaginated(e,t,n,r=1){return o.A.get(a.vZ.group.sectionMessagesPaginated(t,n,r),{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async sectionMessagesTimestampPaginated(e,t,n,r=null){return o.A.get(a.vZ.group.sectionMessagesTimestampPaginated(t,n,r),{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async acceptInvitation(e,t){return o.A.post(a.vZ.group.acceptInvitation(t),{},{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async acceptUserRequest(e,t,n){return o.A.post(a.vZ.group.acceptJoinRequest(t,n),{},{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async rejectJoinRequest(e,t,n){return o.A.post(a.vZ.group.rejectJoinRequest(t,n),{},{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async joinGroup(e,t){return o.A.post(a.vZ.group.join(t),{},{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async leaveGroup(e,t){return o.A.post(a.vZ.group.leave(t),{},{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async verifyToken(e,t,n){return o.A.get(a.vZ.group.verifyCouponCode(t,n),{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async createOrder(e,t,n){return o.A.post(a.vZ.group.createOrder(t),{code:n},{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async verifyPayment(e,t,n){return o.A.post(a.vZ.group.verifyPayment(t,n),{},{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async joinClosedSection(e,t,n){return o.A.post(a.vZ.group.joinClosedSection(t,n),{},{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async acceptJoinClosedSectionRequest(e,t,n,r){return o.A.post(a.vZ.group.acceptJoinClosedSectionRequest(t,n,r),{},{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async rejectJoinClosedSectionRequest(e,t,n,r){return o.A.post(a.vZ.group.rejectJoinClosedSectionRequest(t,n,r),{},{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static getTrendingPosts(e){return o.A.get(a.vZ.group.trendingPosts(e),{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}}},24968(e,t,n){n.d(t,{cu:()=>s,uR:()=>i.u,BE:()=>c.B,fk:()=>m,_N:()=>p,Bd:()=>h.B,u1:()=>y.u,NFTService:()=>g,To:()=>f,K$:()=>v.K,d4:()=>b,nC:()=>A.n,DL:()=>k.D,Cq:()=>C});var o=n(26914),a=n(36357);const r={"menu-click":"menu_click","destination-click":"destination_click","name-pop-up-shown":"name_pop_up_shown","name-submitted":"name_submitted",template:"template","widget-groupmember":"widget-groupmember","widget-leaderboard":"widget-leaderboard",search:"search","searched-result-clicked":"searched-result-clicked","quick-links-clicked":"quick-links-clicked","home-pressed":"home-pressed","embedded-channel-clicked":"embedded-channel-clicked","dm-clicked":"dm-clicked","calendar-clicked":"calendar-clicked","course-clicked":"course-clicked","see-notification":"see-notification","notification-clicked":"notification-clicked","create-post":"create-post","like-post":"like-post","like-clicked":"like-clicked","share-clicked":"share-clicked","post-clicked":"post-clicked","image-clicked":"image-clicked","post-comment":"post-comment","comment-clicked":"comment-clicked","post-reply":"post-reply","edit-post":"edit-post","delete-post":"delete-post","post-filter":"post-filter","featured-post-clicked":"featured-post-clicked","user-profile-clicked":"user-profile-clicked","user-profile-edit":"user-profile-edit","notification-clicked":"notification-clicked","edit-profile":"edit-profile","edit-profile-clicked-on-profile":"edit-profile-clicked-on-profile","dm-icon-clicked-on-profile":"dm-icon-clicked-on-profile",login:"login",signup:"signup",logout:"logout","profile-details":"profile-details","mobile-register-attempt":"mobile-register-attempt","mobile-register-attempt-redirect-email":"mobile-register-attempt-redirect-email","create-group":"create-group","join-group":"join-group","create-section":"create-section","join-section":"join-section","group-message":"group-message","explore-group-clicked":"explore-group-clicked","group-clicked-in-explore-groups":"group-clicked-in-explore-groups","click-select-widget":"click-select-widget","join-community":"join-community","subscribe-community":"subscribe-community","create-community":"create-community","select-community":"select-community","load-community":"load-community","community-banner-update":"community-banner-update","onboarding-message-update":"onboarding-message-update","onboard-add-new-message":"onboard-add-new-message","currency-updated":"currency-updated","bank-account-connect-request":"bank-account-connect-request","bank-account-disconnect-request":"bank-account-disconnect-request","invoice-details-updated":"invoice-details-updated","update-base-points":"update-base-points","create-new-embed-channel-button-clicked":"create-new-embed-channel-button-clicked","theme-updated":"theme-updated","notification-preference-updated":"notification-preference-updated","course-published":"course-published","make-community-private":"make-community-private","custom-domain-updated":"custom-domain-updated","custom-domain-removed":"custom-domain-removed","compare-plans-clicked":"compare-plans-clicked","cancel-plan":"cancel-plan","post-selected-from-widgets":"post-selected-from-widgets","event-selected-from-widget":"event-selected-from-widget","custom-widget-button-clicked":"custom-widget-button-clicked","country-code":"country-code","support-icon-clicked":"support-icon-clicked","create-new-chat":"create-new-chat"};class s{constructor({communityId:e,communityName:t,user:n,communityUrl:o}){this.communityId=void 0,this.sessionid=void 0,this.user=void 0,this.communityName=void 0,this.communityUrl=void 0,this.communityId=null!=e?e:"",this.communityName=null!=t?t:"",this.user=n,this.sessionid=(0,a.gZ)(),this.communityUrl=null!=o?o:window.location.href}updateValues({communityId:e,communityName:t,user:n,communityUrl:o}){e&&(this.communityId=e),t&&(this.communityName=t),n&&(this.user=n),o&&(this.communityUrl=o)}static Instance({communityId:e,communityName:t,user:n,communityUrl:o}){return s.instance||(s.instance=new s({communityId:e,communityName:t,user:n,communityUrl:null!=o?o:window.location.href})),s.instance.updateValues({communityId:e,communityName:t,user:n,communityUrl:null!=o?o:window.location.href}),s.instance}track(e,t={},n){const s=window.gtag||(()=>{});t.impressionId||(t.impressionId=(0,a.gZ)()),t.date=(new Date).toISOString().split("T")[0],t.communityId=this.communityId,t.communityName=this.communityName,this.user&&(t.user=this.user),t.sessionid=this.sessionid,t.communityUrl=this.communityUrl,n&&(t={...t,...n}),s("event",e,t={...t,event:r[e]}),o.r.track(e,t),window.umami&&window.umami.trackEvent(t,e)}}s.instance=void 0;var i=n(68536),c=n(25655),u=n(54295),d=n(78220),l=n(16118);class m{static async getAllCourses(e){return u.A.get(d.vZ.course.getAll(e),{headers:{Authorization:"Bearer "+(0,l.ut)()}}).then(e=>e.data)}static async createCourse(e,t,n){return u.A.post(d.vZ.course.createCourse(e,n),t,{headers:{Authorization:"Bearer "+(0,l.ut)()}}).then(e=>e.data)}static async uploadCourseBanner(e,t,n,o=e=>{}){const a=new FormData;return a.append("banner",n),u.A.post(d.vZ.course.uploadCourseBanner(e,t),a,{headers:{Authorization:"Bearer "+(0,l.ut)()},onUploadProgress:function(e){const t=Math.round(100*e.loaded/e.total);o(t)}}).then(e=>e.data)}static async getCourseDetails(e,t){return u.A.get(d.vZ.course.getCourseDetails(e,t),{headers:{Authorization:"Bearer "+(0,l.ut)()}}).then(e=>e.data)}static async deleteCourse(e,t){return u.A.delete(d.vZ.course.deleteCourse(e,t),{headers:{Authorization:"Bearer "+(0,l.ut)()}}).then(e=>e.data)}static async getCourseMembers(e,t,n=1,o=10){return u.A.get(d.vZ.course.paginatedMembers(e,t,n,o),{headers:{Authorization:"Bearer "+(0,l.ut)()}}).then(e=>e.data)}static async addMember(e,t,n){return u.A.post(d.vZ.course.addMember(e,t,n),{},{headers:{Authorization:"Bearer "+(0,l.ut)()}}).then(e=>e.data)}static async joinCourse(e,t){return u.A.post(d.vZ.course.joinCourse(e,t),{},{headers:{Authorization:"Bearer "+(0,l.ut)()}}).then(e=>e.data)}static async removeMember(e,t,n){return u.A.post(d.vZ.course.removeMember(e,t,n),{},{headers:{Authorization:"Bearer "+(0,l.ut)()}}).then(e=>e.data)}static async createSection(e,t,n,o){return u.A.post(d.vZ.course.sections.createSection(e,t,o),n,{headers:{Authorization:"Bearer "+(0,l.ut)()}}).then(e=>e.data)}static async deleteSection(e,t,n){return u.A.delete(d.vZ.course.sections.deleteSection(e,t,n),{headers:{Authorization:"Bearer "+(0,l.ut)()}}).then(e=>e.data)}static async createLesson(e,t,n,o,a){return u.A.post(d.vZ.course.sections.lesson.createLesson(e,t,n,a),o,{headers:{Authorization:"Bearer "+(0,l.ut)()}}).then(e=>e.data)}static async getLesson(e,t,n,o){return u.A.get(d.vZ.course.sections.lesson.getLessonDetails(e,t,n,o),{headers:{Authorization:"Bearer "+(0,l.ut)()}}).then(e=>e.data)}static async deleteLesson(e,t,n,o){return u.A.delete(d.vZ.course.sections.lesson.deleteLesson(e,t,n,o),{headers:{Authorization:"Bearer "+(0,l.ut)()}}).then(e=>e.data)}static async uploadLessonCoverMedia(e,t,n,o,a,r=e=>{}){const s=new FormData;return s.append("coverMedia",a),u.A.post(d.vZ.course.sections.lesson.updateLessonCover(e,t,n,o),s,{headers:{Authorization:"Bearer "+(0,l.ut)()},onUploadProgress:function(e){const t=Math.round(100*e.loaded/e.total);r(t)}}).then(e=>e.data)}static async markLessonComplete(e,t,n,o,a){return u.A.post(d.vZ.course.sections.lesson.markLessonComplete(e,t,n,o,a),{},{headers:{Authorization:"Bearer "+(0,l.ut)()}}).then(e=>e.data)}static async markLessonInComplete(e,t,n,o,a){return u.A.post(d.vZ.course.sections.lesson.markIncomplete(e,t,n,o,a),{},{headers:{Authorization:"Bearer "+(0,l.ut)()}}).then(e=>e.data)}}class p{static async inviteByEmail(e,t,n){return u.A.post(d.vZ.community.invite.inviteViaEmail(t),n,{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async inviteByCSV(e,t,n,o,a=e=>{}){const r=new FormData;return r.append("groupId",n.groupId),r.append("additionalMessage",n.additionalMessage),r.append("memberDataCSV",o),u.A.post(d.vZ.community.invite.inviteViaCsv(t),r,{headers:{Authorization:"Bearer "+e.token,"Content-Type":"multipart/form-data"},onUploadProgress:function(e){const t=Math.round(100*e.loaded/e.total);a(t)}}).then(e=>e.data)}static async getInvitesList(e,t,n,o){return u.A.get(d.vZ.community.invite.getInvitesList(t,n,o),{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async saveMailTemplate(e,t,n){return u.A.post(d.vZ.community.invite.configureMailTemplates(t),{configurableValue:n},{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async getMailTemplate(e,t){return u.A.get(d.vZ.community.invite.configureMailTemplates(t),{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async sendBulkMail(e,t,n){return u.A.post(d.vZ.community.bulkEmail.send(t),n,{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async getBulkMailList(e,t,n,o){return u.A.get(d.vZ.community.bulkEmail.getBulkEmailLogList(t,n,o),{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async resendBulkMail(e,t,n){return u.A.post(d.vZ.community.invite.batchReInvite(t),{inviteIds:n},{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async cancelBulkMail(e,t,n){return u.A.post(d.vZ.community.invite.cancelBatchInvite(t),{inviteIds:n},{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}}var h=n(17917),y=n(53322);class g{static async getMyNFTs(){return u.A.get(d.vZ.nft.getMyNFTs,{headers:{Authorization:"Bearer "+(0,l.ut)()}}).then(e=>e.data)}static async getUserNFTs(e){return u.A.get(d.vZ.nft.getUserNFTs(e),{headers:{Authorization:"Bearer "+(0,l.ut)()}}).then(e=>e.data)}static async checkForGatedGroupAccess(e){return u.A.post(d.vZ.nft.checkForGatedGroupAccess(e),{},{headers:{Authorization:"Bearer "+(0,l.ut)()}}).then(e=>e.data)}}class f{static async updatePreference(e,t){return u.A.post(d.vZ.paymentPreference.updatePaymentPreference(e),t,{headers:{Authorization:"Bearer "+(0,l.ut)()}}).then(e=>e.data)}static async getPreference(e){return u.A.get(d.vZ.paymentPreference.getPaymentPreference(e),{headers:{Authorization:"Bearer "+(0,l.ut)()}}).then(e=>e.data)}static async updateInvoicePreference(e,t){return u.A.post(d.vZ.paymentPreference.updateInvoicePreference(e),t,{headers:{Authorization:"Bearer "+(0,l.ut)()}}).then(e=>e.data)}static async getInvoicePreference(e){return u.A.get(d.vZ.paymentPreference.getInvoicePreference(e),{headers:{Authorization:"Bearer "+(0,l.ut)()}}).then(e=>e.data)}}var v=n(70924);class b{static async getSectionMessageNotificationBadge(e){return u.A.get(d.vZ.community.sectionMessageNotificationBadges(e),{headers:{Authorization:"Bearer "+(0,l.ut)()}}).then(e=>e.data)}static async getSectionMessageNotificationMarkAsRead(e,t){return u.A.get(d.vZ.community.sectionMessageNotificationMarkAsRead(e,t),{headers:{Authorization:"Bearer "+(0,l.ut)()}}).then(e=>e.data)}}var A=n(81475),k=n(38733);class C{static async getWidgets(e,t){return u.A.get(d.vZ.widget.getGroupWidget(e,t)).then(e=>e.data)}static async createCustomWidget(e,t,n){return u.A.post(d.vZ.widget.createCustomWidget(t),n,{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async uploadCustomCustomWidgetPicture(e,t,n,o){const a=new FormData;return a.append("picture",o),u.A.post(d.vZ.widget.uploadCustomCustomWidgetPicture(t,n),a,{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async updateSortOrder(e,t,n){return u.A.post(d.vZ.widget.updateSortOrder(t),n,{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async updateWidget(e,t,n,o){return u.A.post(d.vZ.widget.updateWidget(t,n),o,{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async deleteWidget(e,t,n){return u.A.delete(d.vZ.widget.updateWidget(t,n),{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}}},73248(e,t,n){n.d(t,{W:()=>r});var o=n(54295),a=n(78220);class r{static async getNotificationPreference(e,t){return o.A.get(a.vZ.community.notificationPreference(e),{headers:{Authorization:"Bearer "+t.token}}).then(e=>e.data)}static async updateNotificationPreference(e,t,n){return o.A.post(a.vZ.community.updateNotificationPreference(e),n,{headers:{Authorization:"Bearer "+t.token}}).then(e=>e.data)}}},90945(e,t,n){n.d(t,{g:()=>s});var o=n(54295),a=n(78220),r=n(16118);class s{static async getHighlightedPostsInCommunity(e){return o.A.get(a.vZ.postHighlight.getHighlightedPosts(e),{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async highlightCommunityPost(e,t){return o.A.post(a.vZ.postHighlight.highlightPost(e,t),{},{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async unHighlightCommunityPost(e,t){return o.A.delete(a.vZ.postHighlight.highlightPost(e,t),{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async updateHighlightedPostsSortOrder(e,t){return o.A.post(a.vZ.postHighlight.updateHighlightedPostsSortOrder(e),t,{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}}},70924(e,t,n){n.d(t,{K:()=>s});var o=n(54295),a=n(78220),r=n(16118);class s{static async getPostsPaginated(e,t=1){return o.A.get(a.vZ.post.paginated(t),{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async getPostsToExplorePaginated(e,t=1){return o.A.get(a.vZ.post.popularPaginated(t),{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async getPostDetail(e,t){return o.A.get(a.vZ.post.detail(t),{headers:{Authorization:"Bearer "+(e?e.token:null)}}).then(e=>e.data)}static async getPostDetailFromSlug(e,t,n){return o.A.get(a.vZ.post.detailFromSlug(t,n),{headers:{Authorization:"Bearer "+(e?e.token:null)}}).then(e=>e.data)}static async getPostLikes(e,t){return o.A.get(a.vZ.post.likes(t),{headers:{Authorization:"Bearer "+(e?e.token:null)}}).then(e=>e.data)}static async createPost(e,t){return o.A.post(a.vZ.post.create,t,{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async getTagsBySearch(e,t,n){return o.A.get(a.vZ.post.searchTag(t,n),{headers:{Authorization:"Bearer "+(e?e.token:null)}}).then(e=>e.data)}static async getPostByTagSearch(e,t,n,r,s,i){return o.A.get(a.vZ.post.getPostByTag(t,n,r,s,i),{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async updatePost(e,t,n,r){return t.removedMediaUploadsOnEdit=n,o.A.post(a.vZ.post.update(r),t,{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async uploadImages(e,t="",n=[],r=e=>{}){const s=new FormData;return n.forEach(e=>{s.append("images[]",e,e.fileName)}),o.A.post(a.vZ.post.uploadImage(t),s,{headers:{Authorization:"Bearer "+e.token},onUploadProgress:function(e){const t=Math.round(100*e.loaded/e.total);r(t)}}).then(e=>e.data)}static async deleteImages(e,t=""){return o.A.delete(a.vZ.post.uploadImage(t),{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async uploadVideos(e,t="",n=[],r=e=>{}){const s=new FormData;return n.forEach(e=>{s.append("videos[]",e,e.fileName)}),o.A.post(a.vZ.post.uploadVideo(t),s,{headers:{Authorization:"Bearer "+e.token},onUploadProgress:function(e){const t=Math.round(100*e.loaded/e.total);r(t)}}).then(e=>e.data)}static async deleteVideos(e,t=""){const n=new FormData;return n.append("videos[]",[]),o.A.post(a.vZ.post.uploadVideo(t),n,{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async uploadDocument(e,t="",n,r=e=>{}){const s=new FormData;return s.append("document",n,n.fileName),o.A.post(a.vZ.post.uploadDocument(t),s,{headers:{Authorization:"Bearer "+e.token},onUploadProgress:function(e){const t=Math.round(100*e.loaded/e.total);r(t)}}).then(e=>e.data)}static async uploadCoverPicture(e,t="",n,r=e=>{}){const s=new FormData;return s.append("banner",n,n.fileName),o.A.post(a.vZ.post.uploadBanner(t),s,{headers:{Authorization:"Bearer "+e.token},onUploadProgress:function(e){const t=Math.round(100*e.loaded/e.total);r(t)}}).then(e=>e.data)}static async pinPost(e,t=""){return o.A.post(a.vZ.post.pin(t),{},{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async unpinPost(e,t=""){return o.A.post(a.vZ.post.unpin(t),{},{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async bookmarkPost(e,t=""){return o.A.post(a.vZ.post.bookmark(t),{},{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async removeBookmark(e,t=""){return o.A.delete(a.vZ.post.removeBookmark(t),{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async getBookmarks(){return o.A.get(a.vZ.post.getBookmarks,{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async voteOnPoll(e,t="",n){return o.A.post(a.vZ.post.vote(t),{option:n},{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async likePost(e,t){return o.A.post(a.vZ.post.like(t),{},{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async dislikePost(e,t){return o.A.post(a.vZ.post.dislike(t),{},{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async addComment(e,t,n={description:""}){return o.A.post(a.vZ.post.addComment(t),n,{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async uploadImagesToComment(e,t,n,r){const s=new FormData;return r.forEach(e=>{s.append("images[]",e,e.fileName)}),o.A.post(a.vZ.post.uploadImagesToComment(t,n),s,{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async uploadDocumentToComment(e,t,n,r){const s=new FormData;return s.append("document",r,r.fileName),o.A.post(a.vZ.post.uploadDocumentToComment(t,n),s,{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async uploadDocumentToCommentReply(e,t,n,r,s){const i=new FormData;return s.forEach(e=>{i.append("documents[]",e,e.fileName)}),o.A.post(a.vZ.post.uploadDocumentToCommentReply(t,n,r),i,{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async deleteComment(e,t,n){return o.A.delete(a.vZ.post.deleteComment(t,n),{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async deleteSubComment(e,t,n,r){return o.A.delete(a.vZ.post.deleteSubComment(t,n,r),{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async deletePost(e,t){return o.A.delete(a.vZ.post.delete(t),{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async addCommentReply(e,t,n,r){return o.A.post(a.vZ.post.addCommentReply(t,n),r,{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async addCommentReaction(e,t,n,r){return o.A.post(a.vZ.post.addCommentReaction(t,n),{emoji:r},{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async removeCommentReaction(e,t,n){return o.A.post(a.vZ.post.removeCommentReaction(t,n),{},{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async addCommentReplyReaction(e,t,n,r,s){return o.A.post(a.vZ.post.addCommentReplyReaction(t,n,r),{emoji:s},{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async removeCommentReplyReaction(e,t,n,r){return o.A.post(a.vZ.post.removeCommentReplyReaction(t,n,r),{},{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}}},38733(e,t,n){n.d(t,{D:()=>s});var o=n(54295),a=n(78220),r=n(16118);class s{static async updateProfile(e,t){return o.A.post(a.vZ.user.updateProfile,t,{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async updateWalletAddress(e){return o.A.post(a.vZ.user.updateWalletAddress,{walletAddress:e},{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async updatePicture(e,t){const n=new FormData;return n.append("picture",t,t.fileName),o.A.post(a.vZ.user.updatePicture,n,{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async deleteProfilePicture(e){return o.A.delete(a.vZ.user.updatePicture,{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async syncOneSignalWebUserId(e,t){return o.A.post(a.vZ.user.syncOneSignalWebUserId,{userId:t},{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async getUserProfile(e){return o.A.get(a.vZ.user.profile,{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async checkForUserIdAvailability(e,t){return o.A.get(a.vZ.user.checkProfileAvailability(e),{headers:{Authorization:"Bearer "+t.token}}).then(e=>e.data)}static async getUserProfileById(e){return o.A.get(a.vZ.user.profileById(e),{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async getAllUsers(e){return o.A.get(a.vZ.user.getAllUsers,{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async followUser(e,t){return o.A.get(a.vZ.user.followUser(e,t),{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async unfollowUser(e,t){return o.A.get(a.vZ.user.unfollowUser(e,t),{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async getFollowFollowingCount(e,t){return o.A.get(a.vZ.user.followFollowingCount(e,t),{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async getFollowersList(e,t){return o.A.get(a.vZ.user.followersList(e,t),{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async getFollowedList(e,t){return o.A.get(a.vZ.user.followedList(e,t),{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async verifyMobileSendOTP(e,t,n){return o.A.post(a.vZ.user.verify.mobileSendOtp,{countryCode:t,mobile:n},{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async verifyMobileVerifyOTP(e,t,n){return o.A.post(a.vZ.user.verify.mobileVerifyOtp,{mobile:t,otp:n},{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async verifyEmailSendOTP(e,t){return o.A.post(a.vZ.user.verify.emailSendOtp,{email:t},{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async verifyEmailVerifyOTP(e,t,n){return o.A.post(a.vZ.user.verify.emailVerifyOtp,{email:t,otp:n},{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async unlinkEmailOrMobile(e){return o.A.post(a.vZ.user.account.unlinkMobileOrEmail,{unlinkType:e},{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async getUserCounters(){return o.A.get(a.vZ.user.counters,{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async blockPeer(e,t){return o.A.post(a.vZ.user.block.blockPeer(t,e),{},{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static unblockPeer(e,t){return o.A.delete(a.vZ.user.block.unblockPeer(t,e),{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async getBlockedUsersList(e){return o.A.get(a.vZ.user.block.listBlockedPeers(e),{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}}},77255(e,t,n){n.d(t,{jw:()=>r});const o="CREATE_SESSION",a="DESTROY_SESSION";function r(e){return{type:o,user:e}}n.d(t,["A2",0,o,"qj",0,a])},42414(e,t,n){n.d(t,{Km:()=>a});n(26914),n(24968),n(93668);const o="SET_COMMUNITY";function a(e=null){return{type:o,community:e}}n.d(t,["hQ",0,o])},41153(e,t,n){n.d(t,{c:()=>a});const o="SET_COMMUNITY_PAC";function a(e=null){return{type:o,pac:e}}n.d(t,["u",0,o])},41374(e,t,n){n.d(t,{Mj:()=>u,OX:()=>l,RN:()=>c,uF:()=>d});const o="GET_ALL_DIRECT_CHATS",a="GET_ALL_DIRECT_CHATS_SUCCESS",r="GET_ALL_DIRECT_CHATS_FAILURE",s="ADD_CHAT_IF_NEEDED",i="MARK_CHAT_AS_READ";function c(e){return{type:a,users:e}}function u(e){return{type:s,user:e}}function d(e){return{type:i,chat:e}}function l(){return(e,t)=>{e({type:o});const{auth:n}=t()}}n.d(t,["Bs",0,s,"Fy",0,a,"J0",0,o,"TP",0,i,"u6",0,r])},93668(e,t,n){n.d(t,{$Y:()=>s,JK:()=>l,Wk:()=>i,eP:()=>u,tg:()=>c});n(24968);const o="SET_GROUPS",a="SET_ACTIVE_GROUP",r="SET_IS_LOADING_GROUPS";function s(e=[]){return{type:o,groups:e}}function i(e=null){return(t,n)=>{if(e){const{groups:o}=n(),a=[...o],r=a.findIndex(t=>t.id===e.id);a.splice(r,1,e),t(s(a))}t(d(e))}}function c(e,t={},n=e=>!0){return(o,a)=>{if(null!=e&&e.length){const{groups:r,activeGroup:i}=a();o(s([...r].map(e=>n(e)?{...e,...t}:e))),e.includes(null==i?void 0:i.id)&&n(i)&&o(d({...i,...t}))}}}function u(e=null){return(t,n)=>{let o;if(e){const{groups:a}=n();o=[...a];const r=o.findIndex(t=>t.id===e.id);o.splice(r,1),t(s(o))}}}function d(e=null){return{type:a,group:e}}function l(e=!0){return{type:r,loading:e}}n.d(t,["qj",0,a,"qk",0,r,"yI",0,o])},92082(e,t,n){n.d(t,{Mn:()=>d,vx:()=>u,zo:()=>c});var o=n(89449),a=n(73248);const r="SET_NOTIFICATION_CENTRE",s="SAVING_NOTIFICATION_CENTRE",i="SET_NOTIFICATION_CENTRE_ERROR";function c(e){return{type:r,preferences:e}}function u(){return(e,t)=>{const{auth:n,community:o}=t();n&&o&&a.W.getNotificationPreference(o.id,n).then(({preferences:t})=>{e(c(t))}).catch(e=>{})}}function d(e,t){return(n,r)=>{var u;const{notificationCentre:d}=r();let l=d.preferences;l||(l={tabs:[]});let m=null!==(u=l.tabs)&&void 0!==u?u:[],p=m.findIndex(t=>t.id===e.id);-1===p?m.push(e):m[p]=e,l.tabs=m,n(function(e,t){return(n,r)=>{const{auth:u,community:d}=r();n({type:s}),a.W.updateNotificationPreference(d.id,u,e).then(({preferences:e})=>{n(c(e)),t("Notification preferences updated successfully")}).catch(e=>{t("Error updating notification preferences","",o.lm.danger),n({type:i,error:e})})}}(l,t))}}n.d(t,["J$",0,r,"T",0,s,"wA",0,i])},88614(e,t,n){n.d(t,{dA:()=>a});n(24968);const o="SET_USER_COUNTERS";function a(e=0,t=0,n={}){return{type:o,unreadNotificationsCount:e,unreadMessagesCount:t,unreadSectionNotificationsCount:n}}n.d(t,["nh",0,o])},5607(e,t,n){n.d(t,{I8:()=>s,iz:()=>r});var o=n(24968);const a="SET_PERSONAL_GROUP";function r(e={}){return{type:a,group:e}}function s(){return(e,t)=>{const{auth:n}=t();o.Bd.getPersonalGroup(n).then(({group:t})=>{e(r(t))}).catch(e=>{})}}n.d(t,["Yj",0,a])},83380(e,t,n){n.d(t,{q:()=>a});const o="SET_SOCKET";function a(e=null){return{type:o,socket:e}}n.d(t,["P",0,o])},62856(e,t,n){n.d(t,{Di:()=>r,Vs:()=>i});const o="GET_COMMUNITY_LINKS",a="SET_COMMUNITY_LINKS";function r(e){return{type:a,links:e}}const s={isLoadingList:!1,links:[],errorMessage:null,updatingLinkId:null};function i(e=s,t){switch(t.type){case o:return{...e,isLoadingList:!0,links:[],errorMessage:null,updatingLinkId:null};case a:return{...e,isLoadingList:!0,links:t.links,errorMessage:null,updatingLinkId:null};default:return e}}},3766(e,t,n){n.d(t,{H0:()=>m,Ls:()=>c,rp:()=>u,uE:()=>d});var o=n(90945);const a="GET_HIGHLIGHTED_POSTS",r="SET_HIGHLIGHTED_POSTS",s="ADD_HIGHLIGHTED_POST",i="ADD_HIGHLIGHTED_POST_SUCCESS";function c(e){return{type:r,posts:e}}function u(e,t){return(n,a)=>{const{community:r}=a();n(function(e){return{type:s,postId:e}}(e)),o.g.highlightCommunityPost(null==r?void 0:r.id,e).then(o=>{const{highlightedPosts:a}=o,{posts:r}=a;n(c(r)),n(function(e){return{type:i,postId:e}}(e)),t()})}}function d(e,t){return(n,a)=>{const{community:r}=a();n(function(e){return{type:"REMOVE_HIGHLIGHTED_POST",postId:e}}(e)),o.g.unHighlightCommunityPost(null==r?void 0:r.id,e).then(e=>{const{highlightedPosts:o}=e,{posts:a}=o;n(c(a)),t()})}}const l={isLoadingList:!1,posts:[],postIds:[],errorMessage:null,updatingPostId:null};function m(e=l,t){var n;switch(t.type){case a:return{...e,isLoadingList:!0,posts:[],postIds:[],errorMessage:null};case r:return{...e,isLoadingList:!1,posts:t.posts,postIds:null===(n=t.posts)||void 0===n?void 0:n.map(e=>{var t;return null===(t=e.postData)||void 0===t?void 0:t.id}),errorMessage:null};case s:return{...e,updatingPostId:t.postId};case i:return{...e,updatingPostId:null};default:return e}}},47669(e,t,n){n.d(t,{B1:()=>m,Cv:()=>h,Ll:()=>p,P_:()=>g,Ys:()=>d,sc:()=>l});var o=n(24968);const a="ADD_SECTION_MESSAGE",r="UPDATE_SECTION_MESSAGE",s="REMOVE_SECTION_MESSAGE",i="UPDATE_SECTION_MESSAGE_REACTION",c="SET_SECTION_MESSAGES_SUCCESS",u="SET_SECTION_MESSAGES_LOADING";function d(e){return{type:a,message:e}}function l(e){return{type:r,message:e}}function m(e){return{type:s,messageId:e}}function p({messageId:e,emoji:t,status:n,user:o},a){return{type:i,messageId:e,emoji:t,status:n,user:o,authUser:a}}function h(e,t,n=!1){return(a,r)=>{const{sectionMessages:s,auth:i}=r(),{messages:d}=s,l=!n&&d.length>0?d[0].id:null;a(function(e=!0,t=!1){return{type:u,isLoading:e,clear:t}}(!0,n)),o.Bd.sectionMessagesTimestampPaginated(i,e,t,l).then(e=>{a(function(e,t){return{type:c,messages:e,clear:t}}(e.messages,n))})}}const y={messages:[],noMoreMessages:!1,isLoading:!1,isFirstLoading:!1};function g(e=y,t){switch(t.type){case u:return{...e,isLoading:t.isLoading,messages:t.clear?[]:e.messages,isFirstLoading:!!t.clear||e.isFirstLoading,...t.clear?{noMoreMessages:!1}:{},error:null};case c:{let n=!1;return(0===t.messages.length||t.messages.length<10)&&(n=!0),{...e,messages:[...t.messages.reverse(),...t.clear?[]:e.messages],noMoreMessages:n,isFirstLoading:!1,error:null,isLoading:!1}}case a:{const{message:n}=t,{messages:o}=e;let a=[...o];if(n.parent){d(n);const e=o.findIndex(e=>e.id===n.parent);e>-1&&(a=[...o],a[e].replies?a[e].replies.push(n):a[e].replies=[n])}else a=[...o,n];return{...e,messages:a}}case r:{const{message:n}=t,{messages:o}=e;let a=[...o];const r=o.findIndex(e=>e.id===n.id);return r>-1?a[r]={...n,reactions:a[r].reactions}:a=a.map(e=>(e.replies&&(e.replies=e.replies.map(t=>t.id===e.id?{...e,reactions:t.reactions}:t)),e)),{...e,messages:a}}case s:{const{messageId:n}=t,{messages:o}=e;let a=[...o];return a=-1===o.findIndex(e=>e.id===n)?a.map(e=>(e.replies&&(e.replies=e.replies.filter(e=>e.id!==n)),e)):o.filter(e=>e.id!==n),{...e,messages:a}}case i:{const{messageId:n,emoji:o,status:a,user:r,authUser:s}=t,{messages:i}=e,c=function(e,t,n=e=>e){let o=[...e];const a=e.findIndex(e=>e.id===t);o=-1===a?o.map(e=>(e.replies&&(e.replies=e.replies.map(e=>e.id===t?n(e):e)),e)):e.map(e=>e.id===t?n(e):e);return o}(i,n,e=>{const{total:t,details:n}=e.reactions;let i=!1,c=!1;const u=[...n],d=n.findIndex(e=>e.emoji===o);if(d<0)"updated"===a&&(u.push({emoji:o,count:1,users:[r],isByMe:s.id===r.id}),i=!0);else if("updated"===a){u[d].users.findIndex(e=>e.id===r.id)<0&&(u[d].users.push(r),u[d].count=u[d].count+1,u[d].isByMe=r.id===s.id,i=!0)}const l=u.findIndex(e=>e.emoji===o);let m=!1;for(let e=0;ee.id===r.id);t>-1&&(u[e].users.splice(t,1),u[e].count=u[e].count-1,u[e].false=r.id===s.id,u[e].isByMe=!1,i||(c=!0),i=!1,m=!u[e].users.length&&e)}return!1!==m&&u.splice(m,1),e.reactions={total:i?t+1:c?t-1:t,details:u},e});return{...e,messages:c}}default:return e}}},37081(e,t,n){n.d(t,{Ei:()=>y,UJ:()=>m,gg:()=>p});var o=n(16118),a=n(24968);const r="GET_POST_DETAIL_ACTION",s="GET_POST_DETAIL_SUCCESS",i="GET_POST_DETAIL_ERROR",c="UPDATE_POST_DETAIL";function u(){return{type:r}}const d=e=>({type:s,post:e}),l=(e,t)=>({type:i,error:e,statusCode:t});function m(e){return async t=>{t(u());const n=(0,o.ut)();try{const{post:o}=await a.K$.getPostDetail({token:n},e);t(d(o))}catch(e){t(l("Post could not be fetched!",e.response.status))}}}function p(e){return async(t,n)=>{const{community:r}=n();t(u());const s=(0,o.ut)();try{const{post:n}=await a.K$.getPostDetailFromSlug({token:s},r.id,e);t(d(n))}catch(e){t(l("Post could not be fetched!",e.response.status))}}}const h={post:null,isLoading:!1,error:null};function y(e=h,t){switch(t.type){case r:return{...e,isLoading:!0,post:null,error:null};case s:return{...e,isLoading:!1,post:t.post,error:null};case i:return{...e,isLoading:!1,post:null,error:t.error,statusCode:t.statusCode};case c:return{...e,isLoading:!1,post:t.post,error:null};default:return e}}n.d(t,["zM",0,e=>({type:c,post:e})])},34944(e,t,n){n.d(t,{p5:()=>d,JT:()=>m});var o=n(54295),a=n(78220),r=n(16118);class s{static async search(e,t=""){const n=encodeURIComponent(t);return o.A.get(a.vZ.misc.search(e)+"?search="+n,{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async getMeetingData(e,t){return o.A.get(a.vZ.post.getMeetingData(t),{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}static async toggleMeetingRecording(e,t){return o.A.post(a.vZ.post.toggleMeetingRecording(e,t),{},{}).then(e=>e.data)}static async endTheMeeting(e,t){return o.A.get(a.vZ.post.endMeeting(e,t),{}).then(e=>e.data)}}const i="SET_SEARCH_REQUEST_LOADING",c="SEARCH_REQUEST_SUCCESS";function u(e){return{type:c,results:e}}function d(e=""){return(t,n)=>{if(!e)return t(u({}));const{community:o}=n();t({type:i,isLoading:!0}),s.search(null==o?void 0:o.id,e).then(e=>{t(u(e))})}}const l={results:null,isLoading:!1};function m(e=l,t){switch(t.type){case i:return{...e,isLoading:!0,results:null};case c:return{...e,isLoading:!1,results:t.results};default:return e}}},52041(e,t,n){n.d(t,{$8:()=>k,DG:()=>b,F9:()=>v,IY:()=>f,Q2:()=>P,ZA:()=>T,f8:()=>S,ty:()=>A,vq:()=>B,x:()=>g});var o=n(24968),a=n(51822);const r="ACTIVATE_SECTION",s="INCREASE_NEW_POST_COUNT",i="RESET_NEW_POST_COUNT",c="GET_SECTION_PINNED_POSTS",u="SET_SECTION_PINNED_POSTS",d="ADD_SECTION_PINNED_POST",l="REMOVE_SECTION_PINNED_POST",m="UPDATE_SECTION_PINNED_POST",p="GET_SECTION_POSTS",h="SET_SECTION_POSTS",y="SET_CURRENT_SECTION_POSTS";function g(e){return{type:r,section:e}}function f(e,t){return{type:s,sectionId:e,postId:t}}function v(e){return{type:i,sectionId:e}}function b(e){return{type:d,post:e}}function A(e){return{type:l,post:e}}function k(e){return{type:m,post:e}}function C(e,t,n){return t&&(t=t.map(e=>{var t;return{...e,comments:null!==(t=e.comments)&&void 0!==t?t:[]}})),{type:h,posts:t,sectionId:e,pageNo:n}}function P(e){return{type:y,posts:e}}function S(e,t){return async n=>{n(function(e){return{type:c,sectionId:e}}(t));const{posts:a}=await o.Bd.sectionPostsPinned(e,t);n(function(e,t){return{type:u,posts:t,sectionId:e}}(t,a))}}function T(e,t,n,a=1){return async(r,s)=>{const{sections:i}=s();if(!i.sections[t].isLoadingMorePosts){r(function(e,t){return{type:p,sectionId:e,pageNo:t}}(t,a));try{const{posts:s,page:i}=await o.Bd.sectionPostsPaginated(e,t,a,n);r(C(t,s,i))}catch(e){r(C(t,[],a))}}}}const I={activeSectionId:null,sections:{}},E={isLoadingPinnedList:!1,pinnedPosts:[],pinnedErrorMessage:null,isLoadingPosts:!1,posts:[],currentPage:1,newPostCount:0,errorMessage:null,isLoadingMorePosts:!1,noMorePosts:!1};function B(e=I,t){switch(t.type){case r:{const{section:n}=t;if(n){const t={...e};return n.id in e.sections?t.sections[n.id]={...t.sections[n.id],...n}:t.sections[n.id]={...E,...n},t.activeSectionId=n.id,t}return{...e,activeSectionId:null}}case s:{const{sectionId:n,postId:o}=t,a={...e};return a.sections[n].posts.find(e=>e.id===o)||a.sections[n].pinnedPosts.find(e=>e.id===o)||(a.sections[n]={...E,...a.sections[n],newPostCount:a.sections[n].newPostCount+1}),a}case i:{const{sectionId:n}=t,o={...e};return o.sections[n]={...E,...o.sections[n],newPostCount:0},o}case c:{const{sectionId:n}=t,o={...e};return o.sections[n]={...E,...o.sections[n],isLoadingPinnedList:!0,pinnedPosts:[],pinnedErrorMessage:null},o}case u:{const{posts:n,sectionId:o}=t,a={...e};return a.sections[o]={...E,...a.sections[o],isLoadingPinnedList:!1,pinnedPosts:n,pinnedErrorMessage:null},a}case d:{const{post:n}=t,o={...e},{id:a,tabId:r}=n,s=[...o.sections[r].pinnedPosts];return s.find(e=>e.id===a)?e:(o.sections[r]={...E,...o.sections[r],pinnedPosts:[...s,n]},o)}case l:{const{post:n}=t,o={...e},{id:a,tabId:r}=n,s=[...o.sections[r].pinnedPosts],i=s.findIndex(e=>e.id===a);return-1===i?e:(s.splice(i,1),o.sections[r]={...E,...o.sections[r],pinnedPosts:s},o)}case m:{const{post:n}=t,o={...e},{id:a,tabId:r}=n,s=[...o.sections[r].pinnedPosts],i=s.findIndex(e=>e.id===a);return-1===i?e:(s.splice(i,1,n),o.sections[r]={...E,...o.sections[r],pinnedPosts:s},o)}case p:{const{sectionId:n,pageNo:o}=t,a={...e};return a.sections[n]={...E,...a.sections[n],isLoadingPosts:1===o,postsLoadingState:1===o?"":null,posts:o&&1!==o?a.sections[n].posts:[],noMorePosts:!1,errorMessage:null,isLoadingMorePosts:!(!o||1===o)},a}case h:{const{posts:n,sectionId:o,pageNo:a}=t,r={...e};return r.sections[o]={...E,...r.sections[o],isLoadingPosts:!1,currentPage:a,posts:a&&1!==a?[...r.sections[o].posts,...n]:n,errorMessage:null,noMorePosts:!(null!=n&&n.length)||(null==n?void 0:n.length)<10,isLoadingMorePosts:!1},r}case y:{const{posts:n}=t,{activeSectionId:o}=e,a={...e};return a.sections[o]={...E,...a.sections[o],posts:n},a}case a.bo:return(0,a.b)(e,t);case a.xr:return(0,a.Q6)(e,t);case a.yg:return(0,a.BS)(e,t);case a.z3:return(0,a.fs)(e,t);default:return e}}},51822(e,t,n){n.d(t,{F9:()=>u,Im:()=>i,Lj:()=>l,cG:()=>m,qH:()=>r});var o=n(16118);const a="SECTION_POST_LIKE_REALTIME_INCREMENT";function r(e){return{type:a,socketPayload:e}}const s="SECTION_POST_COMMENT_REALTIME_ADD";function i(e){return{type:s,socketPayload:e}}const c="SECTION_POST_COMMENT_REALTIME_REMOVE";function u(e){return{type:c,socketPayload:e}}const d="SECTION_POST_COMMENT_REALTIME_REACTION_UPDATE";function l(e){return{type:d,socketPayload:e}}function m(e,t,n){for(let t=0;te.id===n.id)>-1&&(e.reactions.details[t].users=e.reactions.details[t].users.filter(e=>e.id!==n.id),e.reactions.details[t].count-=1,e.reactions.details[t].count<1&&e.reactions.details.splice(t,1),e.reactions.total-=1)}if(t){const o=e.reactions.details.findIndex(e=>e.emoji===t);-1===o?e.reactions.details.push({count:1,isByMe:!1,emoji:t,users:[n]}):(e.reactions.details[o].count+=1,e.reactions.details[o].users.push(n)),e.reactions.total+=1}return e}function p(e,t,n=e=>{}){const o=t.tab,a=t.id,r=structuredClone(e);return r.sections[o]?(r.sections[o].posts=r.sections[o].posts.map(e=>e.id===a?n(e):e),r.sections[o].pinnedPosts=r.sections[o].pinnedPosts.map(e=>e.id===a?n(e):e),r):e}n.d(t,["BS",0,(e,t)=>function(e,t){const{postId:n,sectionId:o,groupId:a,postCommentId:r}=t;return p(e,{id:n,tab:o},e=>{var t,n;const o={...e};(null===(t=o.latestComment)||void 0===t?void 0:t.id)===r&&(o.latestComment=null);return(null===(n=o.comments)||void 0===n?void 0:n.find(e=>e.id===r))&&(o.commentCount=e.commentCount-1,o.comments=o.comments.filter(e=>e.id!==r)),o})}(Object.assign({},e),t.socketPayload),"Q6",0,(e,t)=>function(e,t){const{postId:n,sectionId:a,groupId:r,postCommentId:s,comment:i}=t,{createdBy:c}=i;if((0,o.mZ)()===(null==c?void 0:c.id))return e;return p(e,{id:n,tab:a},e=>{const t={...e};return t.commentCount=e.commentCount+1,t.latestComment=i,Array.isArray(t.comments)&&t.comments.unshift(i),t})}(Object.assign({},e),t.socketPayload),"b",0,(e,t)=>function(e,t){const{user:n,increment:a,postId:r,sectionId:s,groupId:i}=t;if((0,o.mZ)()===(null==n?void 0:n.id))return e;return p(e,{id:r,tab:s},e=>{const t={...e};return t.likes+=a,t.likeCount+=a,t})}(Object.assign({},e),t.socketPayload),"bo",0,a,"fs",0,(e,t)=>function(e,t){const{postId:n,sectionId:a,groupId:r,postCommentId:s,reaction:i,user:c}=t;if((0,o.mZ)()===(null==c?void 0:c.id))return e;return p(e,{id:n,tab:a},e=>{var t,n;const o={...e};(null===(t=o.latestComment)||void 0===t?void 0:t.id)===s&&(o.latestComment=m(o.latestComment,i,c));const a=null===(n=o.comments)||void 0===n?void 0:n.findIndex(e=>e.id===s);return a>-1&&(o.comments[a]=m(o.comments[a],i,c)),o})}(Object.assign({},e),t.socketPayload),"xr",0,s,"yg",0,c,"z3",0,d])},52853(e,t,n){var o=n(20975);n(62391);const a=o.createContext(null);n.d(t,["B",0,a])},89449(e,t,n){var o=n(72783),a=n.n(o),r=n(20975),s=n(62270),i=n(62391);const c=r.createContext(null),u=e=>t=>(0,i.jsx)(c.Consumer,{children:n=>(0,i.jsx)(e,{...n,...t})}),d=u(({toasts:e,removeToast:t})=>{const n=e=>{switch(e){case"danger":return"bg-red-300 text-white";case"success":default:return"bg-green-300 text-green-900";case"info":return"bg-blue-300 text-blue-900";case"warning":return"bg-orange-300 text-orange-900"}};return(0,i.jsx)("div",{className:"ToastNotifier",children:e.map(e=>(0,i.jsxs)("div",{className:a()("toast mt-2 flex rounded px-4 py-2",n(e.type),{"cursor-pointer":e.onClick}),onClick:n=>{e.onClick&&e.onClick(n=>{t(e)})},children:[(0,i.jsxs)("div",{className:"toast-body flex-grow",children:[(0,i.jsx)("div",{className:"toast-title",children:e.title}),(0,i.jsx)("div",{className:"toast-message",children:e.message})]}),(0,i.jsx)("div",{className:"toast-delete flex-shrink-0",onClick:()=>{t(e)},children:"×"})]},e.timestamp))})});n.d(t,["$o",0,c,"lm",0,{danger:"danger",success:"success",warning:"warning",info:"info"},"q5",0,d,"tE",0,e=>{const[t,n]=(0,r.useState)([]),o=(0,s.A)(),a=e=>{const o=[...t];o.splice(o.find(t=>t.timestamp===e.timestamp),1),n(o)};return(0,i.jsx)(c.Provider,{value:{toasts:t,addToast:(e="",r="",s="",i=3e3)=>{const c={title:e=o.trans(e),message:r=o.trans(r),type:s,timestamp:(new Date).getTime()};n([...t,c]),setTimeout(()=>{t.findIndex(e=>e.timestamp===c.timestamp)&&a(c)},i)},addToastWithAction:({title:e="",message:o="",type:r="",time:s=3e3,onClick:i=()=>{}})=>{const c={title:e,message:o,type:r,timestamp:(new Date).getTime(),onClick:i};n([...t,c]),setTimeout(()=>{t.findIndex(e=>e.timestamp===c.timestamp)&&a(c)},s)},removeToast:a},children:e.children})},"wj",0,u])},62270(e,t,n){n.d(t,{A:()=>r});var o=n(20975),a=n(52853);function r(){const{lang:e}=(0,o.useContext)(a.B);return e}},78840(e,t,n){var o=n(20975),a=n(81539),r=n(31305),s=n(3656),i=n(37331),c=n(49852),u=n(52853),d=n(89449);const l=e=>{e&&e instanceof Function&&n.e(4124).then(n.bind(n,34124)).then(({getCLS:t,getFID:n,getFCP:o,getLCP:a,getTTFB:r})=>{t(e),n(e),o(e),a(e),r(e)})};var m=n(54295);n(26914);const p=Object.freeze({HIGH:0,NORMAL:1,LOW:2}),h=["/community/","/auth/","/groups-and-counters","/user/profile","/groups"];let y=0;const g=[[],[],[]],f=new Map;function v(){y--,function(){for(;y<6;){const e=g.find(e=>e.length>0);if(!e)break;const{resolve:t}=e.shift();y++,t()}}()}function b(e){return e.method&&"get"!==e.method.toLowerCase()?null:e.url||null}function A(e){e.interceptors.request.use(async e=>{var t;const n=null!==(t=e.priority)&&void 0!==t?t:(o=e.url)&&h.some(e=>o.includes(e))?p.HIGH:p.NORMAL;var o;const a=b(e);if(a&&f.has(a)){const t=await f.get(a);return e._dedupedResponse=t,e}return await function(e=p.NORMAL){return y<6?(y++,Promise.resolve()):new Promise(t=>{g[e].push({resolve:t})})}(n),e}),e.interceptors.response.use(e=>{if(e.config._dedupedResponse)return{...e,data:e.config._dedupedResponse.data};const t=b(e.config);return t&&f.delete(t),v(),e},e=>{if(e.config&&!e.config._dedupedResponse){const t=b(e.config);t&&f.delete(t),v()}return Promise.reject(e)})}var k=n(16118);const C={fetcher:e=>m.A.get(e,{headers:{Authorization:"Bearer "+(0,k.ut)()}}).then(e=>e.data),dedupingInterval:2e3,revalidateOnFocus:!1,shouldRetryOnError:!0,errorRetryCount:3};var P=n(68197);n(91965);class S{constructor(e="EN"){this.languageCode="EN"}trans(e){return e}}var T=n(54479),I=n(62391);A(m.A),m.A.interceptors.response.use(void 0,function(e){return e.response&&e.response.status,e.response&&503===e.response.status&&(window.location.pathname.includes("/service-unavailable")||(window.location.href="/service-unavailable")),Promise.reject(e)});const E=(0,r.Ng)(e=>({community:e.community}))(({community:e})=>{const t=new S;return(0,I.jsx)(u.B.Provider,{value:{lang:t},children:(0,I.jsx)(c.A,{children:(0,I.jsx)(d.tE,{children:(0,I.jsx)(i.A,{})})})})}),B=document.getElementById("root");(0,a.H)(B).render((0,I.jsx)(r.Kq,{store:P.M,children:(0,I.jsx)(s.BE,{value:C,children:(0,I.jsx)(o.StrictMode,{children:(0,I.jsx)(T.A,{children:(0,I.jsx)(E,{})})})})}));const x=document.getElementById("root"),w=document.getElementById("loader"),N=document.getElementById("boot-splash"),_=document.getElementById("app-shell");requestAnimationFrame(()=>{x&&x.classList.add("ready"),w&&(w.style.display="none"),N&&(N.style.display="none"),_&&(_.style.display="none")});try{const e=JSON.parse(localStorage.getItem("pensil.theme.cache"));if(null!=e&&e.css){const t=document.createElement("style");t.id="cached-theme-style",t.textContent=e.css,document.head.appendChild(t)}}catch(e){}l()},89452(e,t,n){n.d(t,{eH:()=>r});const o="pensil.theme.setAt",a=e=>"dark"===e||"light"===e;function r(e,t,n,r){if(!a(e))return t;if(!a(t))return e;let s=r;if(void 0===s)try{s=Number(localStorage.getItem(o))||0}catch(e){s=0}return s>n?t:e}n.d(t,["J5",0,o])},50520(e,t,n){var o=n(54295),a=n(78220),r=n(16118);const s={getLiveCallsByCommunity:async e=>(await o.A.get(a.vZ.liveCall.getAllByCommunity(e),{headers:{Authorization:"Bearer "+(0,r.ut)()}})).data,createLiveCall:async(e,t,n,s,i,c,u)=>{const d=new FormData;d.append("name",t),d.append("type",n),d.append("description",s),d.append("invitedSections",JSON.stringify(i)),d.append("scheduledTime",c),u&&d.append("banner",u);return(await o.A.post(a.vZ.liveCall.createLiveCall(e),d,{headers:{Authorization:"Bearer "+(0,r.ut)(),"Content-Type":"multipart/form-data"}})).data}};n.d(t,["c",0,s])},53322(e,t,n){n.d(t,{u:()=>r});var o=n(54295),a=n(78220);class r{static async uploadMedia(e,t,n,r){const s=new FormData;return null==n||n.forEach(e=>{s.append(`${r}s[]`,e,e.fileName)}),o.A.post(a.vZ.media.uploadMedia(t,r),s,{headers:{Authorization:"Bearer "+e.token}}).then(e=>e.data)}}},81475(e,t,n){n.d(t,{n:()=>s});var o=n(54295),a=n(78220),r=n(16118);class s{static async createSubscription(e,t){return o.A.post(a.vZ.subscription.createSubscription(e),t,{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async updateSubscription(e,t,n){return o.A.post(a.vZ.subscription.updateSubscription(e,t),{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async cancelSubscription(e){return o.A.delete(a.vZ.subscription.cancelSubscription(e),{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async deleteSubscription(e,t){return o.A.delete(a.vZ.subscription.deleteSubscription(e,t),{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async getAllSubscriptions(e){return o.A.get(a.vZ.subscription.getAllSubscriptions(e),{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async getMySubscription(e){return o.A.get(a.vZ.subscription.getMySubscription(e),{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async getAllSubscriptionsAdmin(e){return o.A.get(a.vZ.subscription.getAllSubscriptionsAdmin(e),{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async getActiveSubscriptionsForSubscription(e,t){return o.A.get(a.vZ.subscription.getActiveSubscriptionsForSubscription(e,t),{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async getPreviousSubscriptionsForSubscription(e,t){return o.A.get(a.vZ.subscription.getPreviousSubscriptionsForSubscription(e,t),{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async getSubscriptionDetails(e,t){return o.A.get(a.vZ.subscription.getSubscriptionDetails(e,t),{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async getAllSubscriptionMembers(e,t){return o.A.get(a.vZ.subscription.getAllSubscriptionMembers(e,t),{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async getAllMembershipSubscription(e,t){return o.A.get(a.vZ.subscription.getAllMembershipSubscription(e,t),{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async subscribeToFreePlan(e,t){return o.A.post(a.vZ.subscription.freeSubscribe(e,t),{},{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async initiateSubscription(e,t,n){return o.A.post(a.vZ.subscription.initiateSubscription(e,t),{billingDetails:n},{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async resendInvoice(e,t){return o.A.post(a.vZ.subscription.resendInvoice(e,t),{},{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}static async editInvoice(e,t,n){return o.A.post(a.vZ.subscription.editInvoice(e,t),n,{headers:{Authorization:"Bearer "+(0,r.ut)()}}).then(e=>e.data)}}},2155(e,t,n){n.d(t,{Em:()=>i,m5:()=>c});var o=n(50963),a=n(24968);const r="SET_COMMUNITY_POST_TIMER_LIMIT",s="SET_LAST_POST_CREATED_TIME";function i(e){return{type:s,lastPostCreatedTime:e}}function c(){return async(e,t)=>{try{var n;const{auth:s,community:i,post:c}=t();if(!s||!i)return;const u=await a.BE.getConfigurable(i.id,o.A.COMMUNITY_POST_TIMER_LIMIT),d=Number(null==u||null===(n=u.configurable)||void 0===n?void 0:n.configurableValue)||0;e({type:r,postTimerLimit:d})}catch(e){}}}n.d(t,["Ks",0,s,"_n",0,r])},30493(e,t,n){n.d(t,{_K:()=>s});var o=n(24968);const a="SET_KARMA_POINT",r="ADD_KARMA_POINT";function s(){return async(e,t)=>{try{const{auth:n,community:r,karmaPoints:s}=t();if(!n||!r)return;if(s&&s.communityId===r.id)return;o.BE.getMyLeaderboardScore(r.id).then(t=>{var n;e((n={...t,communityId:r.id},{type:a,obj:n}))}).catch(e=>{})}catch(e){}}}n.d(t,["AL",0,(e,t)=>({type:r,points:e,activityType:t}),"E",0,a,"Jv",0,r])},57405(e,t,n){n.d(t,{OE:()=>u});var o=n(24968);const a="SET_TOPICS",r="ADD_TOPIC",s="EDIT_TOPIC",i="ARCHIVE_TOPIC",c="DELETE_TOPIC";function u(){return async(e,t)=>{try{const{auth:n,community:r}=t();if(!n||!r)return;o.BE.getAllCommunityTopics(r.id).then(t=>{var n;e((n=t.topics,{type:a,obj:n}))}).catch(e=>{})}catch(e){}}}n.d(t,["A8",0,e=>({type:i,topicId:e}),"AA",0,e=>({type:s,topic:e}),"I2",0,c,"L4",0,e=>({type:c,topicId:e}),"Ll",0,s,"Ml",0,r,"R4",0,i,"Up",0,a,"x_",0,e=>({type:r,topic:e})])},1071(e,t,n){n.d(t,{F:()=>r});var o=n(24452);const a={list:[],status:"idle"};function r(e=a,t){var n;switch(t.type){case o.at:return{list:t.courses,status:null!==(n=t.status)&&void 0!==n?n:e.status};case o.pG:return{...e,status:t.status};default:return e}}},24452(e,t,n){n.d(t,{OM:()=>i});var o=n(24968);const a="SET_COURSES",r="SET_COURSE_LOADING_STATUS";function s(e){return{type:r,status:e}}function i(){return async(e,t)=>{try{const{community:n}=t();if(!n)return;e(s("loading")),o.fk.getAllCourses(n.id).then(({courses:t})=>{e(function(e,t){return{type:a,courses:e,status:t}}(t,"success"))}).catch(t=>{e(s("error"))})}catch(e){}}}n.d(t,["at",0,a,"pG",0,r])},68197(e,t,n){n.d(t,{M:()=>V});var o=n(82993),a=n(14120),r=n(30493);const s={breakdown:null,communityBasePoints:0,addedPoints:0};var i=n(62856),c=n(1071),u=n(3766),d=n(16653);const l={liveCalls:null};var m=n(47669),p=n(37081),h=n(9888);const y={paymentPreference:{preference:{integrationStatus:"not-set",bankAccount:{bankAccountNumber:void 0,beneficiaryName:void 0,ifscCode:void 0,businessName:void 0,businessType:void 0},paymentMethod:"not-set",razorpay:{razorpayId:void 0}},status:"idle"},invoicePreference:{preference:{integrationStatus:"not-set"},status:"idle"}};var g=n(46997);const f={count:{}};var v=n(34944),b=n(52041),A=n(98130);const k={};var C=n(94714);const P={subscriptions:[]};var S=n(77255);var T=n(42414);var I=n(41153);const E={liveSession:!0,paidGroup:!0,sso:!0,analytics:!0,customDomain:!0,embedSection:!0,welcomeMessage:!0,leaderboard:!0,communityCustomization:!0,zapierIntegration:!0,hidePoweredByPensil:!0,favicon:!0,whiteLabelMobileApp:!0,linkPaymentGateway:!0,moderation:!0,bulkEmailing:!0,bulkImport:!0,bulkExport:!0,apiKeysAccess:!0,customCodeSnippets:!0};var B=n(41374);const x={isLoading:!1,isInitialLoadComplete:!1,error:null,users:[]};var w=n(93668);var N=n(92082);const _={isLoading:!0,isUpdating:!1,preferences:void 0,error:void 0};var j=n(88614);var M=n(5607);var O=n(83380);var L=n(2155);const z={postTimerLimit:null,lastPostCreatedTime:null};var $=n(57405);const Z={topics:[]};var R=n(21419);const D=(0,o.HY)({auth:function(e=null,t){switch(t.type){case S.A2:return t.user;case S.qj:return null;default:return e}},groups:function(e=[],t){return t.type===w.yI?t.groups:e},isLoadingGroups:function(e=!0,t){return t.type===w.qk?t.loading:e},activeGroup:function(e=null,t){return t.type===w.qj?t.group:e},community:function(e=null,t){return t.type===T.hQ?t.community:e},notifications:function(e=[],t){if(t.type===j.nh){const n=t.unreadMessagesCount,o=t.unreadNotificationsCount,a=t.unreadSectionNotificationsCount;return{...e,unreadMessagesCount:n,unreadNotificationsCount:o,unreadSectionNotificationsCount:a}}return e},personalGroup:function(e={},t){return t.type===M.Yj?t.group:e},post:function(e=z,t){switch(t.type){case L._n:return{...e,postTimerLimit:t.postTimerLimit};case L.Ks:return{...e,lastPostCreatedTime:t.lastPostCreatedTime};default:return e}},socket:function(e=null,t){return t.type===O.P?t.socket:e},directMessages:function(e=x,t){switch(t.type){case B.J0:return{...e,isLoading:!0,isInitialLoadComplete:!0,error:null,users:[]};case B.Fy:return{...e,isLoading:!1,error:null,users:t.users};case B.u6:return{...e,isLoading:!1,error:t.error,users:[]};case B.Bs:{let n=e.users.find(e=>void 0!==e&&e.id===t.user.id);return{...e,users:void 0!==n?e.users:[...e.users,t.user]}}case B.TP:return{...e,users:e.users.map(e=>e.id===t.chat.id?{...e,unreadMessageCount:0}:e)};default:return e}},notificationCentre:function(e=_,t){switch(t.type){case N.J$:return{isLoading:!1,isUpdating:!1,error:void 0,preferences:t.preferences};case N.T:return{...e,error:void 0,isUpdating:!0};case N.wA:return{...e,error:t.error,isUpdating:!1};default:return e}},communityPac:function(e=E,t){return t.type===I.u?t.pac:e},sectionMessages:m.P_,search:v.JT,highlightedPosts:u.H0,liveCall:function(e=l,t){var n;switch(t.type){case d.kz:return{liveCalls:t.payload};case d.Yh:return(null===(n=e.liveCalls)||void 0===n?void 0:n.some(e=>e.id===t.payload.id))?{...e}:{...e,liveCalls:e.liveCalls?[...e.liveCalls,t.payload]:[t.payload]};case d.IU:return{...e,liveCalls:e.liveCalls?e.liveCalls.filter(e=>e.id!==t.payload.id):e.liveCalls};default:return e}},sections:b.vq,postDetail:p.Ei,communityKarmaPoints:function(e=s,t){switch(t.type){case r.E:return t.obj;case r.Jv:return{...e,addedPoints:t.points,activityType:t.activityType};default:return e}},onboardingChecklist:R.st,communityTopics:function(e=Z,t){switch(t.type){case $.Up:return{...e,topics:t.obj};case $.Ml:return{...e,topics:[...e.topics,t.topic]};case $.Ll:return{topics:e.topics.map(e=>e.id===t.topic.id?{...e,...t.topic}:e)};case $.R4:case $.R4:const n=e.topics.find(e=>e.id.toString()===t.topicId.toString());if(n){n.status="ARCHIVED"===n.status?"ACTIVE":"ARCHIVED";const o=e.topics.filter(e=>e.id.toString()!==t.topicId.toString()).concat(n).sort((e,t)=>"ACTIVE"===e.status&&"ARCHIVED"===t.status?-1:"ARCHIVED"===e.status&&"ACTIVE"===t.status?1:t.postCount-e.postCount);return{...e,topics:o}}return e;case $.I2:return{topics:e.topics?e.topics.filter(e=>{var n,o;return(null===(n=e.id)||void 0===n?void 0:n.toString())!==(null===(o=t.topicId)||void 0===o?void 0:o.toString())}):e.topics};default:return e}},subscriptionsPlan:function(e=P,t){return t.type===C.jn?t.subscriptions:e},mySubscription:function(e=k,t){return t.type===A.UP?t.mySubscription:e},realTimeSectionCountReducer:(e=f,t)=>t.type===g.t6?{...e,realtimeSectionNotificationCount:t.payload}:e,courses:c.F,preferenceReducer:function(e=y,t){var n,o;switch(t.type){case h.Kt:return{...e,paymentPreference:{preference:t.paymentPreference,status:null!==(n=t.status)&&void 0!==n?n:e.paymentPreference.status}};case h.Ax:return{...e,paymentPreference:{preference:e.paymentPreference.preference,status:t.status}};case h.$7:return{...e,invoicePreference:{preference:t.invoicePreference,status:null!==(o=t.status)&&void 0!==o?o:e.invoicePreference.status}};case h.li:return{...e,invoicePreference:{preference:e.invoicePreference.preference,status:t.status}};default:return e}},communityLinks:i.Vs}),U={auth:JSON.parse(localStorage.getItem("pensil.user"))};let G;const F=[a.A];G=o.Zz;const V=(0,o.y$)(D,U,G((0,o.Tw)(...F)))},16653(e,t,n){var o=n(50520);const a="ADD_LIVE_CALL",r="END_LIVE_CALL",s="SET_LIVE_CALLS";n.d(t,["F_",0,()=>async(e,t)=>{try{const{auth:a,community:r}=t();if(!a||!r)return;const i=await o.c.getLiveCallsByCommunity(r.id);i&&e((n=i.liveCalls,{type:s,payload:n}))}catch(e){}var n},"IU",0,r,"Yf",0,e=>({type:r,payload:e}),"Yh",0,a,"c2",0,e=>({type:a,payload:e}),"kz",0,s])},68709(e,t,n){n.d(t,{GT:()=>m,_O:()=>l});var o=n(50963),a=n(24968);const r="SET_ONBOARDING_CHECKLIST_DISMISS",s="SET_SELECTED_PARENT_ONBOARDING_SECTION",i="SET_ONBOARDING_CHECKLIST_DETAILS",c=e=>({type:r,isDismiss:e}),u=e=>{for(const t in e)if("object"==typeof e[t]){if(!u(e[t]))return!1}else if(!0!==e[t])return!1;return!0},d=e=>{const t=u(e);return{type:i,details:e,allTrue:t}};function l(){return async(e,t)=>{try{const{auth:n,community:r}=t();if(!n||!r)return;const s=await a.BE.getConfigurable(r.id,o.A.COMMUNITY_SHOW_ONBOARDING_LIST),i="true"===s.configurable.configurableValue||!0===s.configurable.configurableValue;e(c(i))}catch(e){}}}function m(){return async(e,t)=>{try{const{auth:n,community:o}=t();if(!n||!o)return;const r=await a.BE.getCommunityOnboardingListData(o.id);e(d(r.onboardingChecklist))}catch(e){}}}n.d(t,["Pq",0,c,"UH",0,d,"kI",0,e=>({type:s,sectionKey:e}),"n0",0,i,"wG",0,s,"xW",0,r])},21419(e,t,n){n.d(t,{st:()=>i});var o=n(68709);const a=[{key:"customiseCommunity",label:"Customise Community"},{key:"setGroupsAndChannels",label:"Set Up Groups & Channels"},{key:"inviteUsers",label:"Invite Users"}],r={[a[0].key]:[{communityLogo:!1},{communityTheme:!1},{communityFont:!1},{communityBanner:!1}],[a[1].key]:[{createGroup:!1},{createChannel:!1},{createQuickLinks:!1}],[a[2].key]:[{inviteUsersWithCustomMail:!1}]},s={showOnboardingList:null,selectedOnboardingSection:a[0].key,onboardingChecklistDetails:r,showAllDonePopup:!1};function i(e=s,t){switch(t.type){case o.xW:return{...e,showOnboardingList:t.isDismiss};case o.wG:return{...e,selectedOnboardingSection:t.sectionKey};case o.n0:return{...e,onboardingChecklistDetails:t.details,showAllDonePopup:t.allTrue};default:return e}}n.d(t,["Qz",0,a])},9888(e,t,n){n.d(t,{Cb:()=>m,fQ:()=>h,jk:()=>p,sE:()=>y});var o=n(24968);const a="SET_PAYMENT_PREFERENCE",r="SET_PAYMENT_PREFERENCE_LOADING_STATUS",s="SET_INVOICE_PREFERENCE",i="SET_INVOICE_PREFERENCE_LOADING_STATUS";function c(e,t){return{type:a,paymentPreference:e,status:t}}function u(e,t){return{type:s,invoicePreference:e,status:t}}function d(e){return{type:r,status:e}}function l(e){return{type:i,status:e}}function m(){return async(e,t)=>{try{const{community:n}=t();if(!n)return;e(d("loading")),o.To.getPreference(n.id).then(({paymentPreference:t})=>{e(t?c(t,"success"):d("success"))}).catch(t=>{e(d("error"))})}catch(t){e(d("error"))}}}function p(){return async(e,t)=>{try{const{community:n}=t();if(!n)return;e(l("loading")),o.To.getInvoicePreference(n.id).then(({invoicePreference:t})=>{e(t?u(t,"success"):l("success"))}).catch(t=>{e(l("error"))})}catch(t){e(l("error"))}}}function h(e,t=e=>{},n=e=>{}){return async(a,r)=>{const{community:s}=r();s&&(a(d("loading")),o.To.updatePreference(s.id,e).then(({paymentPreference:e})=>{t(e),a(c(e,"success"))}).catch(e=>{n(e),a(d("error"))}))}}function y(e,t=e=>{},n=e=>{}){return async(a,r)=>{try{const{community:s}=r();if(!s)return;a(l("loading")),o.To.updateInvoicePreference(s.id,e).then(({invoicePreference:e})=>{t(e),a(u(e,"success"))}).catch(e=>{a(l("error")),n(e)})}catch(e){a(l("error"))}}}n.d(t,["$7",0,s,"Ax",0,r,"Kt",0,a,"li",0,i])},46997(e,t,n){n.d(t,{$G:()=>i,BU:()=>s,sn:()=>c});var o=n(24968);const a="SET_REALTIME_SECTION_NOTIFICATION_COUNT",r=e=>({type:a,payload:e});function s(){return async(e,t)=>{try{const{auth:n,community:a}=t();if(!n||!a)return;const s=await o.d4.getSectionMessageNotificationBadge(a.id);e(r(s))}catch(e){}}}function i(e){return async(t,n)=>{try{const{auth:a,community:s,realTimeSectionCountReducer:i}=n();if(!a||!s)return;const{realtimeSectionNotificationCount:c}=i;if(!Object.keys(c.count).includes(e))return;await o.d4.getSectionMessageNotificationMarkAsRead(s.id,e).then(n=>{const o=c.count;delete o[e],t(r({count:o}))})}catch(e){}}}function c(e){return(t,n)=>{try{const{auth:o,community:a,realTimeSectionCountReducer:s}=n();if(!o||!a)return;const{realtimeSectionNotificationCount:i}=s;if(!Object.keys(i.count).includes(e))return void t(r({count:{...i.count,[e]:1}}));const c=i.count;c[e]+=1,t(r({count:c}))}catch(e){}}}n.d(t,["t6",0,a])},98130(e,t,n){n.d(t,{Ke:()=>s,mU:()=>i});var o=n(81475);const a="SET_MY_SUBSCRIPTION_PLAN";function r(e){return{type:a,mySubscription:e}}function s(){return async(e,t)=>{try{const{auth:n,community:a}=t();if(!n||!a)return;o.n.getMySubscription(a.id).then(({subscription:t})=>{e(r(t))}).catch(e=>{})}catch(e){}}}function i({onSuccess:e=()=>{},onError:t=()=>{}}){return async(n,a)=>{try{const{auth:s,community:i}=a();if(!s||!i)return;o.n.cancelSubscription(i.id).then(({subscription:t})=>{e(t),n(r({}))}).catch(({err:e})=>{t(e)})}catch(e){t(e)}}}n.d(t,["UP",0,a])},94714(e,t,n){n.d(t,{X4:()=>r});var o=n(24968);const a="SET_SUBSCRIPTION_PLAN";function r(){return async(e,t)=>{try{const{auth:n,community:r}=t();if(!n||!r)return;o.nC.getAllSubscriptions(r.id).then(({subscriptions:t})=>{e(function(e){return{type:a,subscriptions:e}}(t))}).catch(e=>{})}catch(e){}}}n.d(t,["jn",0,a])},36357(e,t,n){n.d(t,{Bu:()=>i,E6:()=>r,I1:()=>s,gZ:()=>a});const o=({value:e,ifPresent:t,ifAbsent:n})=>{var o;return e&&null!=e?t(e):null!==(o=null==n?void 0:n())&&void 0!==o?o:null};function a(){let e=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?n:n?3:8).toString(16)})}function r(e,t,n){if(!e||null===e)return e;return e.filter(e=>e[t]!==n)}function s(e,t,n,o){if(!e||null===e)return e;return e.map(e=>e[t]===n?o:e)}function i(e,t,n=!0){if(!e)return e;if(!t)return e;if(e.length<=t)return e;if(n)return e.slice(0,t)+"...";return e.slice(0,t/2-1)+"[...]"+e.slice(e.length-t/2+2)}n.d(t,["ZV",0,e=>e>=1e9?`${(e/1e9).toFixed(1)}B`:e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:e,"av",0,o])},31696(e,t,n){var o=n(78220),a=n(26914);const r={logout:async(e,t)=>{a.r.reset(),localStorage.removeItem("pensil.user"),a.r.reset(),t&&await t(),window.location.reload()},checkIfBlocked:e=>{var t,n,r;if(401===(null==e||null===(t=e.response)||void 0===t?void 0:t.status)&&"User blocked!"===(null===(n=e.response)||void 0===n||null===(r=n.data)||void 0===r?void 0:r.message))return a.r.reset(),localStorage.removeItem("pensil.user"),o.b6.push("/login"),window.location.reload(),!0}};n.d(t,["A",0,r])},49852(e,t,n){var o=n(20975),a=n(16478),r=n(16118),s=n(24968),i=n(62391);const c=(0,o.createContext)(null);c.displayName="AppServiceContext";const u=({children:e})=>{const{user:t,community:n}=(0,a.G)(e=>({user:e.auth,community:e.community})),o=s.cu.Instance({communityId:null==n?void 0:n.id,communityName:null==n?void 0:n.name,user:{name:null==t?void 0:t.name,email:null==t?void 0:t.email,mobile:null==t?void 0:t.mobile},communityUrl:n&&(0,r.IT)(n)});return(0,i.jsx)(c.Provider,{value:{analyticsService:o},children:e})};n.d(t,["A",0,u,"G",0,c])},47760(e,t,n){var o=n(20975),a=n(16478),r=n(62391);const s=(0,o.createContext)(null),i=Object.freeze({ONE_COLUMN:"one-column",TWO_COLUMN:"two-column",NO_TOP_PADDING:"noTopPadding",THREE_COLUMN_WITH_COMMUNITY_SWITCHER:"three-column-with-community-switcher"});n.d(t,["$M",0,({children:e})=>{const[t,n]=(0,o.useState)(""),c=(0,a.G)(e=>e.community),u=c?c.isCommunitySwitcherDisabled:void 0,d=!!(0,a.G)(e=>e.auth),l=(0,o.useCallback)(()=>{n(d&&!u?i.THREE_COLUMN_WITH_COMMUNITY_SWITCHER:"")},[d,u]),m=(0,o.useCallback)(e=>{let t=e;d&&!u&&(t+=" "+i.THREE_COLUMN_WITH_COMMUNITY_SWITCHER),n(t)},[d,u]),p=(0,o.useMemo)(()=>({baseColumnClass:t,setAppLayout:m,setBaseLayout:l}),[t,m,l]);return(0,r.jsx)(s.Provider,{value:p,children:e})},"DQ",0,i,"h6",0,s])},16478(e,t,n){var o=n(31305);const a=o.wA,r=o.d4;n.d(t,["G",0,r,"j",0,a])},65186(e,t,n){n.d(t,{W:()=>r});var o=n(20975),a=n(49852);function r(){return{analyticsService:(0,o.useContext)(a.G).analyticsService}}}};const t={};function n(o){const a=t[o];if(void 0!==a)return a.exports;const r=t[o]={id:o,loaded:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}var o;n.m=e,n.amdD=function(){throw new Error("define cannot be used indirect")},(()=>{const e=[];n.O=(t,o,a,r)=>{if(o){r=r||0;for(var s=e.length;s>0&&e[s-1][2]>r;s--)e[s]=e[s-1];return void(e[s]=[o,a,r])}let i=1/0;for(s=0;s=r)&&Object.keys(n.O).every(e=>n.O[e](o[c]))?o.splice(c--,1):(u=!1,r{Object.keys(n.H).map(t=>{n.H[t](e)})},n.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},(()=>{const e=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;let t;n.t=function(o,a){if(1&a&&(o=this(o)),8&a)return o;if("object"==typeof o&&o){if(4&a&&o.__esModule)return o;if(16&a&&"function"==typeof o.then)return o}const r=Object.create(null);n.r(r);const s={};t=t||[null,e({}),e([]),e(e)];for(var i=2&a&&o;("object"==typeof i||"function"==typeof i)&&!~t.indexOf(i);i=e(i))Object.getOwnPropertyNames(i).forEach(e=>s[e]=()=>o[e]);return s.default=()=>o,n.d(r,s),r}})(),n.d=(e,t)=>{if(Array.isArray(t))for(var o=0;oPromise.all(Object.keys(n.f).reduce((t,o)=>(n.f[o](e,t),t),[])),n.u=e=>"static/js/"+({71:"app-sidebar",1686:"app-header",2027:"vendor-ckeditor",6064:"app-home",8044:"app-authapp",9010:"vendor-react-datepicker"}[e]||e)+"."+{58:"a50b4254",71:"0824dc96",209:"fcc6802c",275:"6b1bd036",406:"eb92c93b",687:"2441a6ce",702:"493d47ce",877:"ece42271",914:"4764d44e",960:"48a64465",993:"74bb94e9",1005:"2e3e5bd4",1048:"cc65dfc1",1122:"535f03f3",1145:"12c5664e",1158:"fb4f2f58",1221:"f05add9c",1226:"ebf68b1b",1285:"f7696c79",1310:"84e99988",1316:"8ae1a8e5",1439:"8c3b3f15",1443:"fde1074e",1677:"5b734a99",1686:"a9a2fe21",1806:"21d5c4f4",1923:"360eeb1e",2027:"c6ec4230",2087:"8720b314",2256:"3b16a973",2284:"e9357b1a",2443:"ea01eb19",2731:"1d187913",2824:"6a7aea6e",2934:"45c0ced4",2972:"d1f4095b",2978:"cbf15753",3026:"8d8c4e37",3061:"f1f1523d",3120:"a8a288cd",3253:"d7890258",3293:"5e1624bf",3630:"3ea7a47d",4043:"cacb1a14",4067:"f92f807a",4124:"57d74eaf",4159:"69239ccf",4268:"7ef41e5c",4324:"732cddba",4345:"1cc74a89",4630:"442f19f6",4817:"6c617891",4942:"0c45fef5",5026:"c4c8c0ca",5071:"932bce3d",5130:"b109b647",5156:"c52c5766",5196:"f3e22386",5227:"1dfaa3e8",5350:"ef896566",5421:"0e24b705",5446:"011109fb",5561:"c266d6ac",5636:"c3e47f05",6062:"fc72bf0a",6064:"92fe8eed",6081:"f84de6ff",6214:"021c004c",6218:"a9ea26cc",6220:"56d4d4ea",6338:"db776414",6491:"a30c8bd7",6561:"37d2d596",6709:"63bdedf3",6789:"d6152ed8",6813:"d1cb5532",6848:"e64cd8f2",7062:"5198ff99",7066:"02bc51b6",7266:"3dd38742",7326:"5bcb30f8",7365:"2080100e",7426:"3fd4b446",7439:"71640c57",7482:"da2d3031",7532:"80f8efbc",7554:"6f49bfb3",7702:"0b66bda8",7787:"b1de4b70",7807:"a0ce5a11",7867:"7a41a5bf",7968:"bbdef503",8020:"b3876831",8044:"2f4994bd",8163:"15c37ac5",8462:"71825d32",8520:"71874cca",8535:"3ffe9b46",8723:"a60bdeb4",8860:"cd73d767",8866:"29d8fae9",8881:"3ff7225e",8934:"d640ea22",8952:"4676951f",9010:"0bb3a7a4",9030:"cb2df3b3",9050:"2416fb83",9053:"a054c287",9083:"69d18bb8",9110:"bf39926e",9235:"3faea6b4",9276:"948d7500",9324:"bbf18b12",9426:"0312bc25",9841:"5ba043f3"}[e]+".chunk.js",n.miniCssF=e=>"static/css/"+({8044:"app-authapp",9010:"vendor-react-datepicker"}[e]||e)+"."+{702:"f4eda91b",5196:"93707ad7",6857:"93707ad7",8044:"8ab95f41",9010:"b16c31a3",9841:"49f7c065"}[e]+".chunk.css",n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{const e={},t="mofsl-stocomo-web:";n.l=(o,a,r,s)=>{if(e[o])return void e[o].push(a);let i,c;if(void 0!==r){const e=document.getElementsByTagName("script");for(var u=0;u{i.onerror=i.onload=null,clearTimeout(l);const a=e[o];if(delete e[o],i.parentNode&&i.parentNode.removeChild(i),a&&a.forEach(e=>e(n)),t)return t(n)},l=setTimeout(d.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=d.bind(null,i.onerror),i.onload=d.bind(null,i.onload),c&&document.head.appendChild(i)}})(),n.r=e=>{Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.dn=e=>{(Object.getOwnPropertyDescriptor(e,"name")||{}).writable||Object.defineProperty(e,"name",{value:"default",configurable:!0})},n.p="/",(()=>{if("undefined"!=typeof document){var e=e=>new Promise((t,o)=>{var a=n.miniCssF(e),r=n.p+a;if(((e,t)=>{for(var n=document.getElementsByTagName("link"),o=0;o{var s=document.createElement("link");s.rel="stylesheet",s.type="text/css",n.nc&&(s.nonce=n.nc),s.onerror=s.onload=n=>{if(s.onerror=s.onload=null,"load"===n.type)a();else{var o=n&&n.type,i=n&&n.target&&n.target.href||t,c=new Error("Loading CSS chunk "+e+" failed.\n("+o+": "+i+")");c.name="ChunkLoadError",c.code="CSS_CHUNK_LOAD_FAILED",c.type=o,c.request=i,s.parentNode&&s.parentNode.removeChild(s),r(c)}},s.href=t,o?o.parentNode.insertBefore(s,o.nextSibling):document.head.appendChild(s)})(e,r,null,t,o)}),t={8792:0};n.f.miniCss=(n,o)=>{t[n]?o.push(t[n]):0!==t[n]&&{702:1,5196:1,6857:1,8044:1,9010:1,9841:1}[n]&&o.push(t[n]=e(n).then(()=>{t[n]=0},e=>{throw delete t[n],e}))},n.H.miniCss=e=>{if((!n.o(t,e)||void 0===t[e])&&/^(5196|6857|702|8044|8792|9010|9841)$/.test(e)){t[e]=null;var o=document.createElement("link");o.charset="utf-8",n.nc&&o.setAttribute("nonce",n.nc),o.rel="preload",o.as="style",o.href=n.p+n.miniCssF(e),document.head.appendChild(o)}}}})(),(()=>{n.b="undefined"!=typeof document&&document.baseURI||self.location.href;const e={8792:0};n.f.j=(t,o)=>{let a=n.o(e,t)?e[t]:void 0;if(0!==a)if(a)o.push(a[2]);else if(6857!=t){const r=new Promise((n,o)=>a=e[t]=[n,o]);o.push(a[2]=r);const s=n.p+n.u(t),i=new Error,c=o=>{if(n.o(e,t)&&(a=e[t],0!==a&&(e[t]=void 0),a)){const e=o&&("load"===o.type?"missing":o.type),n=o&&o.target&&o.target.src;i.message="Loading chunk "+t+" failed.\n("+e+": "+n+")",i.name="ChunkLoadError",i.type=e,i.request=n,a[1](i)}};n.l(s,c,"chunk-"+t,t)}else e[t]=0},n.H.j=t=>{if((!n.o(e,t)||void 0===e[t])&&6857!=t){e[t]=null;const o=document.createElement("link");o.charset="utf-8",n.nc&&o.setAttribute("nonce",n.nc),o.rel="preload",o.as="script",o.href=n.p+n.u(t),document.head.appendChild(o)}},n.O.j=t=>0===e[t];const t=(t,o)=>{let[a,r,s]=o;var i,c,u=0;if(a.some(t=>0!==e[t])){for(i in r)n.o(r,i)&&(n.m[i]=r[i]);if(s)var d=s(n)}for(t&&t(o);u{var t=o[e];Array.isArray(t)&&t.map(n.G)};let a=n.O(void 0,[2892,9967,1486],()=>n(78840));a=n.O(a)})(); //# sourceMappingURL=main.1fbdc5c5.js.map