PageSourceSearch

https://www.rapidoform.com/_next/static/chunks/pages/community/profile/[userId]-a24f5fd91d27dc5a.js

js rapidoform.com collected 2026-10-06 04:22:49 UTC 18,502 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1834,9008,9527],{78e3:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AmpStateContext=void 0;var n=(0,i(92648).Z)(i(67294)).default.createContext({});e.AmpStateContext=n},9470:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isInAmpMode=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.ampFirst,i=void 0!==e&&e,n=t.hybrid,o=void 0!==n&&n,c=t.hasQuery,a=void 0!==c&&c;return i||o&&a}},72717:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultHead=u,e.default=void 0;var n=i(6495).Z,o=i(92648).Z,c=(0,i(91598).Z)(i(67294)),a=o(i(11585)),r=i(78e3),m=i(15850),s=i(9470);i(99475);function u(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=[c.default.createElement("meta",{charSet:"utf-8"})];return t||e.push(c.default.createElement("meta",{name:"viewport",content:"width=device-width"})),e}function l(t,e){return"string"===typeof e||"number"===typeof e?t:e.type===c.default.Fragment?t.concat(c.default.Children.toArray(e.props.children).reduce((function(t,e){return"string"===typeof e||"number"===typeof e?t:t.concat(e)}),[])):t.concat(e)}var d=["name","httpEquiv","charSet","itemProp"];function _(t,e){var i=e.inAmpMode;return t.reduce(l,[]).reverse().concat(u(i).reverse()).filter(function(){var t=new Set,e=new Set,i=new Set,n={};return function(o){var c=!0,a=!1;if(o.key&&"number"!==typeof o.key&&o.key.indexOf("$")>0){a=!0;var r=o.key.slice(o.key.indexOf("$")+1);t.has(r)?c=!1:t.add(r)}switch(o.type){case"title":case"base":e.has(o.type)?c=!1:e.add(o.type);break;case"meta":for(var m=0,s=d.length;m<s;m++){var u=d[m];if(o.props.hasOwnProperty(u))if("charSet"===u)i.has(u)?c=!1:i.add(u);else{var l=o.props[u],_=n[u]||new Set;"name"===u&&a||!_.has(l)?(_.add(l),n[u]=_):c=!1}}}return c}}()).reverse().map((function(t,e){var o=t.key||e;if(!i&&"link"===t.type&&t.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some((function(e){return t.props.href.startsWith(e)}))){var a=n({},t.props||{});return a["data-href"]=a.href,a.href=void 0,a["data-optimized-fonts"]=!0,c.default.cloneElement(t,a)}return c.default.cloneElement(t,{key:o})}))}var p=function(t){var e=t.children,i=c.useContext(r.AmpStateContext),n=c.useContext(m.HeadManagerContext);return c.default.createElement(a.default,{reduceComponentsToState:_,headManager:n,inAmpMode:s.isInAmpMode(i)},e)};e.default=p,("function"===typeof e.default||"object"===typeof e.default&&null!==e.default)&&"undefined"===typeof e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},11585:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.headManager,i=t.reduceComponentsToState;function r(){if(e&&e.mountedInstances){var o=n.Children.toArray(Array.from(e.mountedInstances).filter(Boolean));e.updateHead(i(o,t))}}if(o){var m;null==e||null==(m=e.mountedInstances)||m.add(t.children),r()}return c((function(){var i;return null==e||null==(i=e.mountedInstances)||i.add(t.children),function(){var i;null==e||null==(i=e.mountedInstances)||i.delete(t.children)}})),c((function(){return e&&(e._pendingUpdate=r),function(){e&&(e._pendingUpdate=r)}})),a((function(){return e&&e._pendingUpdate&&(e._pendingUpdate(),e._pendingUpdate=null),function(){e&&e._pendingUpdate&&(e._pendingUpdate(),e._pendingUpdate=null)}})),null};var n=(0,i(91598).Z)(i(67294));var o=!1,c=o?function(){}:n.useLayoutEffect,a=o?function(){}:n.useEffect},1565:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return b}});var n=i(50029),o=i(87794),c=i.n(o),a=i(67294),r=i(9008),m=i.n(r),s=i(41664),u=i.n(s),l=i(11163),d=i(11752),_=i.n(d),p=i(5152),y=i.n(p),h=i(52617),f=i.n(h),v=i(85893),x=i(83454).env.NEXT_PUBLIC_BACKEND_URL||"/be",g=_()().publicRuntimeConfig,S=y()((function(){return Promise.all([i.e(5891),i.e(4589),i.e(1532),i.e(2062),i.e(2962),i.e(3238),i.e(4007),i.e(7272),i.e(240)]).then(i.bind(i,44007))}),{loadableGenerated:{webpack:function(){return[44007]}}}),j=function(){return(0,v.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,v.jsx)("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),(0,v.jsx)("circle",{cx:"12",cy:"12",r:"3"})]})},C=function(){return(0,v.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,v.jsx)("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"})})};
1function N(t){var e=new Date-new Date(t),i=Math.floor(e/864e5);return i<30?"".concat(i,"d ago"):new Date(t).toLocaleDateString()}var B=function(t){var e=t.role;if(!e||"member"===e)return null;var i={staff:f().userBadgeStaff,champion:f().userBadgeChampion,partner:f().userBadgePartner}[e]||"";return(0,v.jsx)("span",{className:"".concat(f().userBadge," ").concat(i),children:{staff:"\u2b50 Staff",champion:"\ud83c\udfc6 Champion",partner:"\ud83e\udd1d Partner"}[e]||e})};function b(){var t=(0,l.useRouter)(),e=t.query.userId,i=(0,a.useState)(null),o=i[0],r=i[1],s=(0,a.useState)(null),d=s[0],_=s[1],p=(0,a.useState)([]),y=p[0],h=p[1],b=(0,a.useState)([]),T=b[0],A=b[1],I=(0,a.useState)("topics"),D=I[0],k=I[1],M=(0,a.useState)(!0),E=M[0],L=M[1];(0,a.useEffect)((function(){e&&w()}),[e]);var w=function(){var t=(0,n.Z)(c().mark((function t(){var i,n;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,L(!0),t.next=4,fetch("".concat(x,"/community/profile/").concat(e));case 4:return i=t.sent,t.next=7,i.json();case 7:(n=t.sent).success&&(r(n.data.profile),_(n.data.profile.userId),h(n.data.recentTopics||[]),A(n.data.recentReplies||[])),t.next=14;break;case 11:t.prev=11,t.t0=t.catch(0),console.error("Error fetching profile:",t.t0);case 14:return t.prev=14,L(!1),t.finish(14);case 17:case"end":return t.stop()}}),t,null,[[0,11,14,17]])})));return function(){return t.apply(this,arguments)}}();if(E)return(0,v.jsx)(S,{title:"Loading... - RapidoForm Community",description:"Loading community profile.",url:"".concat(g.CLIENT_ORIGIN).concat(g.HOMEPAGEROUTE).concat(t.asPath),siteName:"RapidoForm Community",children:(0,v.jsx)("div",{className:f().communityContainer,children:(0,v.jsx)("main",{className:f().communityMain,children:(0,v.jsx)("div",{className:f().loadingSpinner,children:(0,v.jsx)("div",{className:f().spinner})})})})});if(!o)return(0,v.jsx)(S,{title:"Profile Not Found - RapidoForm Community",description:"This user doesn't have a community profile yet.",url:"".concat(g.CLIENT_ORIGIN).concat(g.HOMEPAGEROUTE).concat(t.asPath),siteName:"RapidoForm Community",children:(0,v.jsx)("div",{className:f().communityContainer,children:(0,v.jsx)("main",{className:f().communityMain,children:(0,v.jsxs)("div",{className:f().emptyState,children:[(0,v.jsx)("div",{className:f().emptyStateIcon,children:"\ud83d\udc64"}),(0,v.jsx)("h3",{className:f().emptyStateTitle,children:"Profile not found"}),(0,v.jsx)("p",{className:f().emptyStateText,children:"This user doesn't have a community profile yet."}),(0,v.jsx)(u(),{href:"/community",legacyBehavior:!0,children:(0,v.jsx)("a",{className:f().emptyStateBtn,children:"Back to Community"})})]})})})});var H,P=null!==d&&void 0!==d&&d.firstName?"".concat(d.firstName," ").concat(d.lastName||""):(null===d||void 0===d?void 0:d.userName)||"Community Member",R="https://ui-avatars.com/api/?name=".concat(encodeURIComponent(P),"&background=6366f1&color=fff&size=128");return(0,v.jsxs)(S,{title:"".concat(P," - RapidoForm Community"),description:"Community profile of ".concat(P),url:"".concat(g.CLIENT_ORIGIN).concat(g.HOMEPAGEROUTE).concat(t.asPath),siteName:"RapidoForm Community",children:[(0,v.jsx)(m(),{children:(0,v.jsx)("meta",{name:"robots",content:"noindex,follow"})}),(0,v.jsx)("div",{className:f().communityContainer,children:(0,v.jsxs)("main",{className:f().communityMain,children:[(0,v.jsxs)("nav",{className:f().topicBreadcrumb,children:[(0,v.jsx)(u(),{href:"/community",legacyBehavior:!0,children:(0,v.jsx)("a",{className:f().topicBreadcrumbLink,children:"Community"})}),(0,v.jsx)("span",{children:"/"}),(0,v.jsx)("span",{children:"Profile"})]}),(0,v.jsxs)("div",{className:f().topicDetailCard,children:[(0,v.jsxs)("div",{className:f().topicDetailHeader,style:{marginBottom:"1rem"},children:[(0,v.jsx)("img",{src:R,alt:P,className:f().topicDetailAvatar}),(0,v.jsxs)("div",{className:f().topicDetailInfo,children:[(0,v.jsxs)("h1",{className:f().topicDetailTitle,style:{display:"flex",alignItems:"center",gap:"0.75rem"},children:[P,(0,v.jsx)(B,{role:o.role})]}),(0,v.jsx)("div",{className:f().topicDetailMeta,children:(0,v.jsxs)("span",{children:["Member since ",(H=o.joinedCommunityAt,new Date(H).toLocaleDateString("en-US",{month:"long",year:"numeric"}))]})})]})]}),o.bio&&(0,v.jsx)("p",{className:f().topicDetailBody,style:{marginBottom:"1.5rem"},children:o.bio}),(0,v.jsxs)("div",{className:f().communityStats,style:{justifyContent:"flex-start",marginTop:"0"},children:[(0,v.jsxs)("div",{className:f().communityStat,children:[(0,v.jsx)("div",{className:f().communityStatValue,style:{color:"var(--community-primary)"},children:o.topicsCount||0}),(0,v.jsx)("div",{className:f().communityStatLabel,children:"Topics"})]}),(0,v.jsxs)("div",{className:f().communityStat,children:[(0,v.jsx)("div",{className:f().communityStatValue,style:{color:"var(--community-secondary)"},children:o.repliesCount||0}),(0,v.jsx)("div",{className:f().communityStatLabel,children:"Replies"})]}),(0,v.jsxs)("div",{className:f().communityStat,children:[(0,v.jsx)("div",{className:f().communityStatValue,style:{color:"var(--community-accent)"},children:o.likesReceived||0}),(0,v.jsx)("div",{className:f().communityStatLabel,children:"Likes Received"})]})]}),o.badges&&o.badges.length>0&&(0,v.jsxs)("div",{style:{marginTop:"1.5rem"},children:[(0,v.jsx)("h3",{style:{fontSize:"0.875rem",fontWeight:"600",marginBottom:"0.5rem",color:"var(--community-text)"},children:"Badges"}),(0,v.jsx)("div",{style:{display:"flex",gap:"0.5rem",flexWrap:"wrap"},children:o.badges.map((function(t,e){return(0,v.jsx)("span",{style:{background:"var(--community-bg)",padding:"0.25rem 0.75rem",borderRadius:"50px",fontSize:"0.813rem"},children:t},e)}))})]})]}),(0,v.jsxs)("section",{className:f().topicsSection,children:[(0,v.jsxs)("div",{className:f().topicsFilters,style:{marginBottom:"1rem"},children:[(0,v.jsxs)("button",{className:"".concat(f().topicsFilterBtn," ").concat("topics"===D?f().topicsFilterBtnActive:""),onClick:function(){return k("topics")},children:["Topics (",y.length,")"]}),(0,v.jsxs)("button",{className:"".concat(f().topicsFilterBtn," ").concat("replies"===D?f().topicsFilterBtnActive:""),onClick:function(){return k("replies")},children:["Replies (",T.length,")"]})]}),"topics"===D&&(0,v.jsx)("div",{className:f().topicsList,children:y.length>0?y.map((function(t){return(0,v.jsx)(u(),{href:"/community/topic/".concat(t._id),legacyBehavior:!0,children:(0,v.jsx)("a",{className:f().topicCard,children:(0,v.jsxs)("div",{className:f().topicHeader,children:[(0,v.jsxs)("div",{className:f().topicContent,children:[(0,v.jsx)("h3",{className:f().topicTitle,children:t.title}),(0,v.jsxs)("div",{className:f().topicMeta,children:[(0,v.jsx)("span",{children:N(t.createdAt)}),t.categoryId&&(0,v.jsx)("span",{className:f().topicCategory,children:t.categoryId.name})]})]}),(0,v.jsxs)("div",{className:f().topicStats,children:[(0,v.jsxs)("span",{className:f().topicStat,children:[(0,v.jsx)(j,{})," ",t.viewCount]}),(0,v.jsxs)("span",{className:f().topicStat,children:[(0,v.jsx)(C,{})," ",t.replyCount]})]})]})})},t._id)})):(0,v.jsx)("div",{className:f().emptyState,style:{padding:"2rem"},children:(0,v.jsx)("p",{className:f().emptyStateText,children:"No topics created yet."})})}),"replies"===D&&(0,v.jsx)("div",{className:f().repliesList,children:T.length>0?T.map((function(t){var e,i;return(0,v.jsx)(u(),{href:"/community/topic/".concat((null===(e=t.topicId)||void 0===e?void 0:e._id)||t.topicId),legacyBehavior:!0,children:(0,v.jsxs)("a",{className:f().replyCard,style:{cursor:"pointer",textDecoration:"none"},children:[(0,v.jsx)("div",{className:f().replyHeader,children:(0,v.jsxs)("div",{className:f().replyAuthorInfo,children:[(0,v.jsxs)("span",{className:f().replyAuthorName,children:["Re: ",(null===(i=t.topicId)||void 0===i?void 0:i.title)||"Topic"]}),(0,v.jsx)("span",{className:f().replyTime,children:N(t.createdAt)})]})}),(0,v.jsxs)("p",{className:f().replyBody,style:{marginTop:"0.5rem"},children:[t.content.slice(0,150),t.content.length>150?"...":""]})]})},t._id)})):(0,v.jsx)("div",{className:f().emptyState,style:{padding:"2rem"},children:(0,v.jsx)("p",{className:f().emptyStateText,children:"No replies posted yet."})})})]})]})})]})}}
1,62418:function(t,e,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/community/profile/[userId]",function(){return i(1565)}])},52617:function(t){t.exports={communityContainer:"community_communityContainer___dsKr",communityMain:"community_communityMain__hzU6F",communityLayout:"community_communityLayout__HarnD",communityContent:"community_communityContent__yZmCo",communityHero:"community_communityHero__uSozw",communityHeroContent:"community_communityHeroContent__KqjGr",communityHeroTitle:"community_communityHeroTitle__bgOFJ",communityHeroSubtitle:"community_communityHeroSubtitle__h2lMb",communitySearchBox:"community_communitySearchBox__jOlPi",communitySearchInput:"community_communitySearchInput__O1mSs",communitySearchIcon:"community_communitySearchIcon__EPYuR",heroActions:"community_heroActions__jNieU",heroPrimaryButton:"community_heroPrimaryButton__0Gceo",communityStats:"community_communityStats__rZfth",communityStat:"community_communityStat__NG9_L",communityStatValue:"community_communityStatValue__xuKin",communityStatLabel:"community_communityStatLabel__6Ygwe",communitySectionTitle:"community_communitySectionTitle__57wj3",categoriesGrid:"community_categoriesGrid__N2CAF",categoryCard:"community_categoryCard__eN15_",categoryHeader:"community_categoryHeader__KhHsW",categoryIcon:"community_categoryIcon__ffGDc",categoryName:"community_categoryName__aLNc9",categoryDescription:"community_categoryDescription__q3ZKZ",categoryMeta:"community_categoryMeta__g4oBH",topicsSection:"community_topicsSection__4Ltf1",communityCta:"community_communityCta__HLEeA",communityCtaContent:"community_communityCtaContent__VEGN0",communityCtaTitle:"community_communityCtaTitle__1sbAc",communityCtaText:"community_communityCtaText__fBNFp",communityCtaButton:"community_communityCtaButton__H6gEV",topicsSectionHeader:"community_topicsSectionHeader__Qfcls",topicsFilters:"community_topicsFilters__aGeAU",topicsFilterBtn:"community_topicsFilterBtn__ptq3h",topicsFilterBtnActive:"community_topicsFilterBtnActive__mPtmv",topicsList:"community_topicsList__wu2gb",topicCard:"community_topicCard__ih_2Z",topicCardPinned:"community_topicCardPinned___b_dc",topicHeader:"community_topicHeader__3YatR",topicAvatar:"community_topicAvatar__t9FU_",topicContent:"community_topicContent__2jVl5",topicTitle:"community_topicTitle__TbjWu",topicMeta:"community_topicMeta__hGuwT",topicAuthor:"community_topicAuthor__nvACn",topicCategory:"community_topicCategory__ROF7G",topicStats:"community_topicStats__G6v5o",topicStat:"community_topicStat__pd4jh",topicStatIcon:"community_topicStatIcon__Y0Lkr",featuredSection:"community_featuredSection__oX2Qq",featuredGrid:"community_featuredGrid__5rseO",featuredCard:"community_featuredCard__Jrg7F",featuredBadge:"community_featuredBadge__zuITK",featuredTitle:"community_featuredTitle__Rx4DC",featuredMeta:"community_featuredMeta__gV0QR",topicDetailContainer:"community_topicDetailContainer__0fEYi",topicBreadcrumb:"community_topicBreadcrumb__xY5Pp",topicBreadcrumbLink:"community_topicBreadcrumbLink__m5d33",topicDetailCard:"community_topicDetailCard__vurjh",topicDetailHeader:"community_topicDetailHeader__km__L",topicDetailAvatar:"community_topicDetailAvatar__VtAeT",topicDetailInfo:"community_topicDetailInfo__a7VzQ",topicDetailTitle:"community_topicDetailTitle__dbIo7",topicDetailMeta:"community_topicDetailMeta__eWDAT",topicDetailAuthor:"community_topicDetailAuthor__6IURs",topicDetailBody:"community_topicDetailBody__8W8CQ",topicActions:"community_topicActions__QcsSD",likeButton:"community_likeButton__Amywd",likeButtonActive:"community_likeButtonActive__xU7vt",repliesSection:"community_repliesSection__8Z2Bp",repliesSectionTitle:"community_repliesSectionTitle__S4EUK",repliesList:"community_repliesList__Mm5M7",replyCard:"community_replyCard__ccytS",replyCardAccepted:"community_replyCardAccepted__YDuYI",replyAcceptedBadge:"community_replyAcceptedBadge__aHkip",replyHeader:"community_replyHeader__tWnox",replyAvatar:"community_replyAvatar__vlTeR",replyAuthorInfo:"community_replyAuthorInfo__BtJ86",replyAuthorName:"community_replyAuthorName__N5nb7",replyTime:"community_replyTime__3XPXT",replyBody:"community_replyBody__Qdfp7",replyComposer:"community_replyComposer__y7kGy",replyComposerTitle:"community_replyComposerTitle__A52hh",replyTextarea:"community_replyTextarea__fzjwt",replySubmitBtn:"community_replySubmitBtn__Fh_Up",topicTitleInput:"community_topicTitleInput__v0uE9",topicComposerActions:"community_topicComposerActions__qgZMl",formError:"community_formError__T8jtm",communitySidebar:"community_communitySidebar__BTm0O",sidebarSection:"community_sidebarSection__mXZlr",sidebarTitle:"community_sidebarTitle__gTVJk",sidebarLink:"community_sidebarLink__TIREL",sidebarText:"community_sidebarText__NcZBn",sidebarMeta:"community_sidebarMeta__D9ZKr",sidebarActionBtn:"community_sidebarActionBtn__3eTXn",userBadge:"community_userBadge__U_3Gh",userBadgeStaff:"community_userBadgeStaff__0X2LS",userBadgeChampion:"community_userBadgeChampion__LoMSB",userBadgePartner:"community_userBadgePartner__cmQjQ",pagination:"community_pagination__qKW9e",paginationBtn:"community_paginationBtn__DRGcB",paginationBtnActive:"community_paginationBtnActive__sy6Ip",loadingSpinner:"community_loadingSpinner__10SPX",spinner:"community_spinner__EqVcz",spin:"community_spin__9hIxk",emptyState:"community_emptyState__B2_yo",emptyStateIcon:"community_emptyStateIcon___r09W",emptyStateTitle:"community_emptyStateTitle__Dd7Ud",emptyStateText:"community_emptyStateText__p6L7_",emptyStateBtn:"community_emptyStateBtn__jWy39"}}
1,9008:function(t,e,i){t.exports=i(72717)}},function(t){t.O(0,[3424,9978,9774,2888,179],(function(){return e=62418,t(t.s=e);var e}));var e=t.O();_N_E=e}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.