1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8602],{13525:function(t,e,n){"use strict";n.d(e,{Z:function(){return v}});var i=n(59499),o=n(4730),r=n(67294),a=n(94589),c=n(32016),s=n(50056),l=n(32692),m=n(26503);function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){(0,i.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var d=a.default.button.withConfig({displayName:"buttonstyle__ButtonStyle",componentId:"sc-13ebl9m-0"})(["cursor:pointer;display:inline-flex;align-items:center;justify-content:center;color:",";background-color:",";min-height:","px;min-width:","px;border-radius:","px;font-family:inherit;font-size:","px;font-weight:",";text-decoration:none;text-transform:none;padding-top:","px;padding-bottom:","px;padding-left:","px;padding-right:","px;border:0;transition:all 0.25s cubic-bezier(0.4,0,0.2,1);letter-spacing:0.3px;span.btn-text{padding-left:","px;padding-right:","px;}span.btn-icon{display:flex;> div{display:flex !important;}}&:focus{outline:none;box-shadow:0 0 0 3px rgba(2,132,137,0.3);}&:hover{transform:translateY(-1px);}&:active{transform:translateY(0);}&:disabled{opacity:0.6;cursor:not-allowed;transform:none;}&.is-material{box-shadow:0px 2px 8px 0px rgba(0,0,0,0.15),0px 4px 4px 0px rgba(0,0,0,0.1);}&.is-loading{.btn-text{padding-left:","px;padding-right:","px;}}"," "," "," "," "," ",""],(0,s.R)("colors.white","#ffffff"),(0,s.R)("colors.primary","#028489"),(0,s.R)("heights.3","48"),(0,s.R)("widths.3","48"),(0,s.R)("radius.0","8"),(0,s.R)("fontSizes.4","14"),(0,s.R)("fontWeights.4","600"),(0,s.R)("space.2","12"),(0,s.R)("space.2","12"),(0,s.R)("space.4","20"),(0,s.R)("space.4","20"),(0,s.R)("space.1","4"),(0,s.R)("space.1","4"),(0,s.R)("space.2","8"),(0,s.R)("space.2","8"),c.cq,c.Wn,l.jn,l.ui,l.Tq,m.u);d.propTypes=p(p(p({},c.cq.propTypes),c.Wn.propTypes),c.bU.propTypes),d.displayName="ButtonStyle";var y=d,h=n(28291),f=n(85893),_=["type","title","icon","disabled","iconPosition","onClick","loader","loaderColor","isMaterial","isLoading","className"];function g(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function x(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?g(Object(n),!0).forEach((function(e){(0,i.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var b=function(t){var e=t.type,n=t.title,i=t.icon,a=t.disabled,c=t.iconPosition,s=t.onClick,l=t.loader,m=t.loaderColor,u=t.isMaterial,p=t.isLoading,d=t.className,g=(0,o.Z)(t,_),b=["reusecore__button"];
1p&&b.push("is-loading"),u&&b.push("is-material"),d&&b.push(d);var v=!1!==p?(0,f.jsx)(r.Fragment,{children:l||(0,f.jsx)(h.Z,{loaderColor:m||"#30C56D"})}):i&&(0,f.jsx)("span",{className:"btn-icon",children:i}),j=c||"right";return(0,f.jsxs)(y,x(x({type:e,className:b.join(" "),icon:i,disabled:a,"icon-position":j,onClick:s},g),{},{children:["left"===j&&v,n&&(0,f.jsx)("span",{className:"btn-text",children:n}),"right"===j&&v]}))};b.defaultProps={disabled:!1,isMaterial:!1,isLoading:!1,type:"button"};var v=b},28291:function(t,e,n){"use strict";n.d(e,{Z:function(){return g}});var i=n(59499),o=n(4730),r=(n(67294),n(94589)),a=n(32016),c=n(32692),s=(0,r.keyframes)(["0%{transform:rotate(0deg);}50%{transform:rotate(180deg);opacity:0.5;}100%{transform:rotate(360deg);}"]),l=(0,r.css)(["animation:"," 1s linear infinite;"],s),m=n(26503);function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}var p=r.default.span.withConfig({displayName:"loaderstyle__LoaderStyle",componentId:"sc-s2u036-0"})(["display:inline-flex;width:14px;height:14px;border-radius:50%;overflow:hidden;border-width:2px;border-style:solid;border-color:",";border-top-color:transparent !important;"," "," ",""],(function(t){return t.loaderColor?t.loaderColor:"#000000"}),l,c.ui,m.u);p.propTypes=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){(0,i.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},a.bU.propTypes),p.displayName="LoaderStyle";var d=p,y=n(85893),h=["loaderColor","className"];function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}var _=function(t){var e=t.loaderColor,n=t.className,r=(0,o.Z)(t,h),a=["reusecore__loader"];return n&&a.push(n),(0,y.jsx)(d,function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){(0,i.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({className:a.join(" "),loaderColor:e},r))};_.defaultProps={};var g=_},99100:function(t,e,n){"use strict";var i=n(59499),o=n(4730),r=n(25675),a=n.n(r),c=n(85893),s=["placeholder","priority"];function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function m(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){(0,i.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var u=function(t,e){return'\n <svg width="'.concat(t,'" height="').concat(e,'" xmlns="http://www.w3.org/2000/svg">\n <rect width="').concat(t,'" height="').concat(e,'" fill="#F6F7F8" />\n <rect x="0" y="0" width="').concat(t,'" height="').concat(e,'" fill="#E0E0E0" />\n </svg>\n')},p=function(t){return window.btoa(t)};e.Z=function(t){var e=t.placeholder,n=t.priority,i=(0,o.Z)(t,s),r=i.height,l=i.width,d=e,y=(Number(l)||0)<120&&(Number(r)||0)<120,h=d?"blur"===d:!y,f=h?"blur":"empty",_=h?"data:image/svg+xml;base64,".concat(p(u(l||600,r||400))):void 0;return(0,c.jsx)(a(),m(m({},i),{},{placeholder:f,priority:!!n,blurDataURL:_}))}},26503:function(t,e,n){"use strict";n.d(e,{H:function(){return c},u:function(){return s}});var i=n(59499),o=n(32016);function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?r(Object(n),!0).forEach((function(e){(0,i.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var c=function(t){return function(e){return e.theme[t]}},s=(0,o.qC)((function(){return{boxSizing:"border-box"}}),o.Dh,o.bf,o.ih,o.kk,o.Cb,o.jw,o.kC,o.JB,o.$_,o.fU,o.vm,o.uk,o.Lz,o.tv,o.jf);s.propTypes=a(a(a(a(a(a(a(a(a(a(a({},o.jf.propTypes),o.Dh.propTypes),o.Lz.propTypes),o.tv.propTypes),o.bf.propTypes),o.Cb.propTypes),o.JB.propTypes),o.$_.propTypes),o.fU.propTypes),o.vm.propTypes),o.uk.propTypes)},32692:function(t,e,n){"use strict";n.d(e,{Tq:function(){return a},jn:function(){return o},ui:function(){return r}});var i=n(32016),o=(0,i.bU)({key:"buttonStyles"}),r=(0,i.bU)({key:"colorStyles",prop:"colors"}),a=(0,i.bU)({key:"sizeStyles",prop:"size"});(0,i.bU)({key:"cards"})},62555:function(t,e,n){"use strict";n.r(e),n.d(e,{CloseModalButton:function(){return d},handleLoginModal:function(){return y},handleLoginModalHomepage:function(){return g},handleVideoModal:function(){return _},onCloseModal:function(){return x}});var i=n(16835),o=n(13525),r=n(89639),a=n(11752),c=n.n(a),s=n(62889),l=n(79181),m=n(71612),u=n(85893),p=c()().publicRuntimeConfig,d=function(){return(0,u.jsx)(o.Z,{className:"modalCloseBtn",variant:"fab",onClick:function(){return(0,r.closeModal)()},icon:(0,u.jsx)("i",{className:"flaticon-plus-symbol"})})},y=function(t,e){"login"===t&&(0,m.OE)(e)?window.location.replace("".concat(p.NEXTAUTH_URL).concat(p.DESIGNER_BASE_URL,"/surveys/list")):(0,r.openModal)({config:{className:"login-modal",disableDragging:!0,width:"100%",height:"98%",animationFrom:{transform:"translateY(100px)"},animationTo:{transform:"translateY(0)"},transition:{mass:1,tension:180,friction:26}},component:s.default,componentProps:{defaultActiveKey:"join"===t?"registerForm":"loginForm"},closeComponent:d,closeOnClickOutside:!1})},h=function(){return(0,u.jsx)(o.Z,{className:"modalCloseBtn",variant:"fab",onClick:function(){return(0,r.closeModal)()},icon:(0,u.jsx)("i",{className:"flaticon-plus-symbol"})})},f=function(){return(0,u.jsx)(l.U1,{children:(0,u.jsx)("iframe",{title:"Video",src:"https://www.youtube.com/embed/IcoAq0eG8BQ?si=j3P9Cy4EcRc7-L1e",frameBorder:"0"})})},_=function(){(0,r.openModal)({config:{className:"video-modal",disableDragging:!0,default:{width:"auto",height:"auto",x:0,y:0}},component:f,componentProps:{},closeComponent:h,closeOnClickOutside:!0})},g=function(){(0,r.openModal)({config:{className:"login-modal",disableDragging:!0,width:"100%",height:"98%",animationFrom:{transform:"translateY(100px)"},animationTo:{transform:"translateY(0)"},transition:{mass:1,tension:180,friction:26}},component:s.default,componentProps:{defaultActiveKey:"registerForm"},closeComponent:h,closeOnClickOutside:!1})},x=function(t){(0,r.closeModal)();var e=document.location.href.split("?"),n=(0,i.Z)(e,2),o=n[0],a=n[1];if(a)if("forgotPassword=true"===a)t.replace(o);else{a=a.split("&");for(var c=0;c<a.length;c++)if("forgotPassword=true"===a[c]){var s=c;s>-1&&a.splice(s,1)}t.replace(o+"?"+a)}}},63113:function(t){t.exports={resolveBackendOrigin:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.nextAuthUrl,n=void 0===e?"":e,i=t.clientOrigin,o=void 0===i?"":i,r=String(n||o||"").trim();if(!r)return"";try{var a=new URL(r);return/^https?:$/.test(a.protocol)?a.origin:""}catch(c){return""}}}},48710:function(t,e,n){"use strict";n.d(e,{HA:function(){return a},ON:function(){return r},W1:function(){return o},fW:function(){return m},lM:function(){return c},nQ:function(){return l},qQ:function(){return s}});n(67294);var i=n(85893),o=function(t){var e=t.size,n=void 0===e?20:e;return(0,i.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,i.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,i.jsx)("path",{d:"m21 21-4.35-4.35"})]})},r=function(t){var e=t.size,n=void 0===e?16:e;return(0,i.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,i.jsx)("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),(0,i.jsx)("circle",{cx:"12",cy:"12",r:"3"})]})},a=function(t){var e=t.size,n=void 0===e?16:e;return(0,i.jsx)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,i.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"})})},c=function(t){var e=t.size,n=void 0===e?16:e,o=t.filled,r=void 0!==o&&o;return(0,i.jsx)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:r?"currentColor":"none",stroke:"currentColor",strokeWidth:"2",children:(0,i.jsx)("path",{d:"M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"})})},s=function(t){var e=t.size,n=void 0===e?14:e;return(0,i.jsx)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"
1currentColor",children:(0,i.jsx)("path",{d:"M16 12V4H17V2H7V4H8V12L6 14V16H11.2V22H12.8V16H18V14L16 12Z"})})},l=function(t){var e=t.size,n=void 0===e?14:e;return(0,i.jsx)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",children:(0,i.jsx)("polyline",{points:"20 6 9 17 4 12"})})},m={form:"\ud83d\udcdd",integration:"\ud83d\udd17",share:"\ud83d\udce4",chart:"\ud83d\udcca",account:"\ud83d\udc64",code:"\ud83d\udcbb",lightbulb:"\ud83d\udca1",megaphone:"\ud83d\udce3",chat:"\ud83d\udcac"}},56323:function(t,e,n){"use strict";n(67294);var i=n(41664),o=n.n(i),r=n(52617),a=n.n(r),c=n(48710),s=n(85893);function l(t){var e=new Date-new Date(t),n=Math.floor(e/6e4),i=Math.floor(e/36e5),o=Math.floor(e/864e5);return n<60?"".concat(n,"m ago"):i<24?"".concat(i,"h ago"):o<30?"".concat(o,"d ago"):new Date(t).toLocaleDateString()}e.Z=function(t){var e,n,i=t.topic;return(0,s.jsx)(o(),{href:"/community/topic/".concat(i._id),legacyBehavior:!0,children:(0,s.jsx)("a",{className:"".concat(a().topicCard," ").concat(i.isPinned?a().topicCardPinned:""),children:(0,s.jsxs)("div",{className:a().topicHeader,children:[(0,s.jsx)("img",{src:i.seededAuthorAvatar||"https://ui-avatars.com/api/?name=".concat((null===(e=i.authorId)||void 0===e?void 0:e.userName)||"User","&background=6366f1&color=fff"),alt:"",className:a().topicAvatar}),(0,s.jsxs)("div",{className:a().topicContent,children:[(0,s.jsxs)("h3",{className:a().topicTitle,children:[i.isPinned&&(0,s.jsx)(c.qQ,{})," ",i.title]}),(0,s.jsxs)("div",{className:a().topicMeta,children:[(0,s.jsx)("span",{className:a().topicAuthor,children:i.seededAuthorName||(null===(n=i.authorId)||void 0===n?void 0:n.userName)||"Anonymous"}),(0,s.jsx)("span",{children:"\u2022"}),(0,s.jsx)("span",{children:l(i.createdAt)}),i.categoryId&&(0,s.jsx)("span",{className:a().topicCategory,children:i.categoryId.name})]})]}),(0,s.jsxs)("div",{className:a().topicStats,children:[(0,s.jsxs)("span",{className:a().topicStat,children:[(0,s.jsx)(c.ON,{})," ",i.viewCount]}),(0,s.jsxs)("span",{className:a().topicStat,children:[(0,s.jsx)(c.HA,{})," ",i.replyCount]}),(0,s.jsxs)("span",{className:a().topicStat,children:[(0,s.jsx)(c.lM,{})," ",i.likeCount]})]})]})})})}},79181:function(t,e,n){"use strict";n.d(e,{U1:function(){return a}});var i=n(94589),o=n(50056),r=n(52062),a=(i.default.div.withConfig({displayName:"bannerstyle__BannerWrapper",componentId:"sc-f0q51m-0"})(["padding-top:80px;min-height:850px;overflow:hidden;position:relative;@media only screen and (max-width:1199px){min-height:auto;}@media only screen and (max-width:768px){padding-top:70px;}> div.container{display:flex;align-items:center;justify-content:space-between;min-height:calc(850px - 80px);@media only screen and (min-width:1367px){max-width:1290px;}@media only screen and (max-width:1199px){padding-top:80px;padding-bottom:0px;min-height:auto;}@media only screen and (max-width:991px){padding-top:92px;padding-bottom:5px;}@media only screen and (max-width:768px){padding-bottom:10px;}}"]),i.default.div.withConfig({displayName:"bannerstyle__BannerContent",componentId:"sc-f0q51m-1"})(["width:54%;flex-shrink:0;margin-top:-70px;@media only screen and (max-width:1366px){width:48%;}@media only screen and (max-width:1219px){flex-shrink:0;width:56%;margin-top:0px;}@media only screen and (max-width:768px){width:80%;}@media only screen and (max-width:624px){width:100%;}h1{font-size:72px;line-height:1.25;font-weight:700;color:",";margin-bottom:20px;letter-spacing:-2px;@media only screen and (max-width:1366px){font-size:52px;}@media only screen and (max-width:991px){font-size:40px;}@media only screen and (max-width:767px){font-size:36px;line-height:1.35;}@media only screen and (max-width:480px){font-size:28px;}}p{font-size:20px;line-height:2;color:",";padding-right:70px;@media only screen and (max-width:1366px){font-size:18px;padding-right:0;}@media only screen and (max-width:1199px){padding-right:50px;}@media only screen and (max-width:991px){font-size:16px;line-height:1.8;}@media only screen and (max-width:480px){padding-right:0;}}"],(0,o.R)("colors.headingColor","#0F2137"),(0,r.m4)("#02073e",.8)),i.default.div.withConfig({displayName:"bannerstyle__BannerImage",componentId:"sc-f0q51m-2"})(["flex-shrink:0;margin-left:-140px;margin-top:-80px;@media only screen and (max-width:1199px){display:none;}"]),i.default.div.withConfig({displayName:"bannerstyle__BannerImageMobile",componentId:"sc-f0q51m-3"})(["display:none;@media only screen and (max-width:1199px){display:block;}@media only screen and (max-width:991px){margin-right:-40px;}@media only screen and (max-width:768px){display:none;}"]),i.default.div.withConfig({displayName:"bannerstyle__ButtonGroup",componentId:"sc-f0q51m-4"})(["margin-top:28px;display:flex;align-items:center;flex-wrap:wrap;.reusecore__button{text-transform:inherit;border-radius:5px;padding-left:20px;padding-right:20px;margin-top:10px;&.primary{background-color:",";color:",";font-size:15px;min-height:55px;&:hover{box-shadow:0px 9px 20px -5px rgba(108,36,126,0.57);}}&.text{font-size:17px;color:",";letter-spacing:-0.3px;font-weight:700;margin-left:5px;.btn-icon{svg{width:auto;height:32px;}}}}"],(0,o.R)("colors.primary","#6C247E"),(0,o.R)("colors.white"),(0,o.R)("colors.priamry","#6C247E")),i.default.div.withConfig({displayName:"bannerstyle__VideoWrapper",componentId:"sc-f0q51m-5"})(["max-width:100%;position:relative;width:900px;&:before{content:'';display:block;padding-top:56.25%;}iframe{width:100%;height:100%;position:absolute;top:0;left:0;}"]))},44138:function(t,e,n){"use strict";n.r(e),n.d(e,{__N_SSP:function(){return P},default:function(){return B}});var i=n(59499),o=n(50029),r=n(87794),a=n.n(r),c=n(67294),s=n(70024),l=n(41664),m=n.n(l),u=n(11163),p=n(11752),d=n.n(p),y=n(5152),h=n.n(y),f=n(52617),_=n.n(f),g=n(56323),x=n(17330),b=n(68476),v=n(62555),j=n(71612),w=n(85893);function O(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function C(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?O(Object(n),!0).forEach((function(e){(0,i.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var N=n(83454).env.NEXT_PUBLIC_BACKEND_URL||"/be",S=d()().publicRuntimeConfig,T=h()((function(){return Promise.all([n.e(2962),n.e(3238),n.e(4007),n.e(7272),n.e(9008)]).then(n.bind(n,44007))}),{loadableGenerated:{webpack:function(){return[44007]}}}),P=!0;function B(t){var e,n=t.initialCategory,i=void 0===n?null:n,r=t.initialTopics,l=void 0===r?[]:r,p=t.initialPagination,d=void 0===p?{page:1,totalPages:1}:p,y=t.initialSort,h=void 0===y?"newest":y,f=(0,u.useRouter)(),O=f.query.category,P=(0,c.useState)(i),B=P[0],k=P[1],A=(0,c.useState)(l),D=A[0],E=A[1],L=(0,c.useState)(d),I=L[0],R=L[1],M=(0,c.useState)(!i),H=M[0],F=M[1],U=(0,c.useState)(h),z=U[0],Z=U[1],G=(0,c.useRef)(!0),q=(0,s.b9)(x.Xs),V=(0,s.Dv)(b.tA),W=(0,c.useState)(!1),Q=W[0],Y=W[1],K=(0,c.useState)(""),X=K[0],$=K[1],J=(0,c.useState)(""),tt=J[0],et=J[1],nt=(0,c.useState)(!1),it=nt[0],ot=nt[1],rt=(0,c.useState)(""),at=rt[0],ct=rt[1],st=(0,c.useRef)(null),lt=(0,c.useRef)(null),mt=function(){return(0,j.OE)(V)?V:(0,j.oJ)()};(0,c.useEffect)((function(){Y(Boolean(mt()))}),[V]),(0,c.useEffect)((function(){var t;"1"===(null===(t=f.query)||void 0===t?void 0:t.new)&&st.current&&(st.current.scrollIntoView({behavior:"smooth",block:"start"}),lt.current&<.current.focus())}),[null===(e=f.query)||void 0===e?void 0:e.new]),(0,c.useEffect)((function(){if(O){if(G.current&&(G.current=!1,i&&i.slug===O))return;ut()}}),[O,z,I.page]);var ut=function(){var t=(0,o.Z)(a().mark((function t(){var e,n;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,F(!0),t.next=4,fetch("".concat(N,"/community/categories/").concat(O,"?page=").concat(I.page,"&limit=20&sort=").concat(z));case 4:return e=t.sent,t.next=7,e.json();case 7:(n=t.sent).success&&(k(n.data.category),E(n.data.topics),R({page:n.data.pagination.page,totalPages:n.data.pagination.totalPages})),t.next=14;break;case 11:t.prev=11,t.t0=t.catch(0),console.error("Error fetching category:",t.t0);case 14:return t.prev=14,F(!1),t.finish(14);case 17:case"end":return t.stop()}}),t,null,[[0,11,14,17]])})));return function(){return t.apply(this,arguments)}}(),pt=function(t){R((function(e){return C(C({},e),{},{page:t})})),window.scrollTo({top:0,behavior:"smooth"})},dt=function(){var t=(0,o.Z)(a().mark((function t(e){var n,i,o;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.preventDefault(),n=mt()){t.next=5;break}return(0,v.handleLoginModal)("login",n),t.abrupt("return");case 5:if(null!==B&&void 0!==B&&B._id){t.next=7;break}return t.abrupt("return");case 7:if(ct(""),X.trim()&&tt.trim()){t.next=11;break}return ct("Title and content are required."),t.abrupt("return");case 11:return t.prev=11,ot(!0),t.next=15,fetch("".concat(N,"/community/topics"),{method:"POST",headers:{Authorization:"Bearer ".concat(n),"Content-Type":"application/json"},body:JSON.stringify({title:X.trim(),content:tt.trim(),categoryId:B._id})});case 15:return i=t.sent,t.next=18,i.json();case 18:if(!(o=t.sent).success){t.next=24;break}return $(""),et(""),f.push("/community/topic/".concat(o.data._id)),t.abrupt("return");case 24:ct(o.message||"Failed to create topic."),t.next=31;break;case 27:t.prev=27,t.t0=t.catch(11),console.error("Error creating topic:",t.t0),ct("Failed to create topic.");case 31:return t.prev=31,ot(!1),t.finish(31);case 34:case"end":return t.stop()}}),t,null,[[11,27,31,34]])})));return function(e){return t.apply(this,arguments)}}();return H&&!B?(0,w.jsx)(T,{title:"Loading... - RapidoForm Community",description:"Loading community category.",url:"".concat(S.CLIENT_ORIGIN).concat(S.HOMEPAGEROUTE).concat(f.asPath),siteName:"RapidoForm Community",children:(0,w.jsx)("div",{className:_().communityContainer,children:(0,w.jsx)("main",{className:_().communityMain,children:(0,w.jsx)("div",{className:_().loadingSpinner,children:(0,w.jsx)("div",{className:_().spinner})})})})}):B?(0,w.jsx)(T,{title:"".concat(B.name," - RapidoForm Community"),description:B.description,url:"".concat(S.CLIENT_ORIGIN).concat(S.HOMEPAGEROUTE).concat(f.asPath),siteName:"RapidoForm Community",children:(0,w.jsx)("div",{className:_().communityContainer,children:(0,w.jsxs)("main",{className:_().communityMain,children:[(0,w.jsxs)("nav",{className:_().topicBreadcrumb,children:[(0,w.jsx)(m(),{href:"/community",legacyBehavior:!0,children:(0,w.jsx)("a",{className:_().topicBreadcrumbLink,children:"Community"})}),(0,w.jsx)("span",{children:"/"}),(0,w.jsx)("span",{children:B.name})]}),(0,w.jsx)("section",{className:_().communityHero,style:{padding:"2rem"},children:(0,w.jsxs)("div",{className:_().communityHeroContent,children:[(0,w.jsx)("h1",{className:_().communityHeroTitle,children:B.name}),(0,w.jsx)("p",{className:_().communityHeroSubtitle,children:B.description}),(0,w.jsx)("div",{className:_().communityStats,children:(0,w.jsxs)("div",{className:_().communityStat,children:[(0,w.jsx)("div",{className:_().communityStatValue,children:B.topicsCount||0}),(0,w.jsx)("div",{className:_().communityStatLabel,children:"Topics"})]})})]})}),(0,w.jsxs)("div",{className:_().communityLayout,children:[(0,w.jsxs)("div",{className:_().communityContent,children:[(0,w.jsxs)("section",{className:_().replyComposer,ref:st,children:[(0,w.jsx)("h2",{className:_().replyComposerTitle,children:"Start a new discussion"}),Q?(0,w.jsxs)("form",{onSubmit:dt,children:[(0,w.jsx)("input",{className:_().topicTitleInput,type:"text",placeholder:"Topic title",value:X,ref:lt,onChange:function(t){return $(t.target.value)}}),(0,w.jsx)("textarea",{className:_().replyTextarea,placeholder:"Share the details, context, and what you're trying to achieve...",value:tt,onCh
1ange:function(t){return et(t.target.value)}}),at&&(0,w.jsx)("div",{className:_().formError,children:at}),(0,w.jsx)("div",{className:_().topicComposerActions,children:(0,w.jsx)("button",{type:"submit",className:_().replySubmitBtn,disabled:it,children:it?"Posting...":"Post Topic"})})]}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("p",{className:_().sidebarText,children:"Log in to create a new discussion and get help from the community."}),(0,w.jsx)("button",{type:"button",className:_().replySubmitBtn,onClick:function(){return(0,v.handleLoginModal)("login",mt())},children:"Log in to post"})]})]}),(0,w.jsxs)("section",{className:_().topicsSection,children:[(0,w.jsxs)("div",{className:_().topicsSectionHeader,children:[(0,w.jsx)("h2",{className:_().communitySectionTitle,children:"\ud83d\udcac Discussions"}),(0,w.jsx)("div",{className:_().topicsFilters,children:["newest","popular","unanswered"].map((function(t){return(0,w.jsx)("button",{className:"".concat(_().topicsFilterBtn," ").concat(z===t?_().topicsFilterBtnActive:""),onClick:function(){Z(t),R((function(t){return C(C({},t),{},{page:1})}))},children:t.charAt(0).toUpperCase()+t.slice(1)},t)}))})]}),H?(0,w.jsx)("div",{className:_().loadingSpinner,children:(0,w.jsx)("div",{className:_().spinner})}):D.length>0?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("div",{className:_().topicsList,children:D.map((function(t){return(0,w.jsx)(g.Z,{topic:t},t._id)}))}),I.totalPages>1&&(0,w.jsxs)("div",{className:_().pagination,children:[(0,w.jsx)("button",{className:_().paginationBtn,disabled:1===I.page,onClick:function(){return pt(I.page-1)},children:"Previous"}),Array.from({length:Math.min(5,I.totalPages)},(function(t,e){var n=e+1;return(0,w.jsx)("button",{className:"".concat(_().paginationBtn," ").concat(I.page===n?_().paginationBtnActive:""),onClick:function(){return pt(n)},children:n},n)})),(0,w.jsx)("button",{className:_().paginationBtn,disabled:I.page===I.totalPages,onClick:function(){return pt(I.page+1)},children:"Next"})]})]}):(0,w.jsxs)("div",{className:_().emptyState,children:[(0,w.jsx)("div",{className:_().emptyStateIcon,children:"\ud83d\udcac"}),(0,w.jsx)("h3",{className:_().emptyStateTitle,children:"No discussions yet"}),(0,w.jsx)("p",{className:_().emptyStateText,children:"Be the first to start a conversation in this category!"})]})]})]}),(0,w.jsxs)("aside",{className:_().communitySidebar,children:[(0,w.jsxs)("div",{className:_().sidebarSection,children:[(0,w.jsx)("div",{className:_().sidebarTitle,children:"About this category"}),(0,w.jsx)("p",{className:_().sidebarText,children:B.description}),(0,w.jsxs)("div",{className:_().sidebarMeta,children:[B.topicsCount||0," topics"]})]}),(0,w.jsxs)("div",{className:_().sidebarSection,children:[(0,w.jsx)("div",{className:_().sidebarTitle,children:"Quick Links"}),(0,w.jsx)(m(),{href:"/community/updates",legacyBehavior:!0,children:(0,w.jsx)("a",{className:_().sidebarLink,children:"Product Updates"})}),(0,w.jsx)(m(),{href:"/community/guidelines",legacyBehavior:!0,children:(0,w.jsx)("a",{className:_().sidebarLink,children:"Community Guidelines"})}),(0,w.jsx)(m(),{href:"/community/champions",legacyBehavior:!0,children:(0,w.jsx)("a",{className:_().sidebarLink,children:"Champions Program"})})]}),(0,w.jsxs)("div",{className:_().sidebarSection,children:[(0,w.jsx)("div",{className:_().sidebarTitle,children:"Need help?"}),(0,w.jsx)("p",{className:_().sidebarText,children:"Ask RapidoForm AI or search for similar topics in the community."}),(0,w.jsx)("button",{type:"button",className:_().sidebarActionBtn,onClick:function(){if(q(!0),window.$chatwoot&&"function"===typeof window.$chatwoot.toggle)window.$chatwoot.toggle("open");else{window.addEventListener("chatwoot:ready",(function t(){window.$chatwoot&&"function"===typeof window.$chatwoot.toggle&&(window.$chatwoot.toggle("open"),window.removeEventListener("chatwoot:ready",t))})),console.warn("Support chat widget is not ready yet.")}},children:"Ask RapidoForm AI"}),(0,w.jsx)(m(),{href:"/community/search",legacyBehavior:!0,children:(0,w.jsx)("a",{className:_().sidebarLink,children:"Search discussions"})})]})]})]})]})})}):(0,w.jsx)(T,{title:"Category Not Found - RapidoForm Community",description:"The category you're looking for doesn't exist.",url:"".concat(S.CLIENT_ORIGIN).concat(S.HOMEPAGEROUTE).concat(f.asPath),siteName:"RapidoForm Community",children:(0,w.jsx)("div",{className:_().communityContainer,children:(0,w.jsx)("main",{className:_().communityMain,children:(0,w.jsxs)("div",{className:_().emptyState,children:[(0,w.jsx)("div",{className:_().emptyStateIcon,children:"\ud83d\udd0d"}),(0,w.jsx)("h3",{className:_().emptyStateTitle,children:"Category not found"}),(0,w.jsx)("p",{className:_().emptyStateText,children:"The category you're looking for doesn't exist."}),(0,w.jsx)(m(),{href:"/community",legacyBehavior:!0,children:(0,w.jsx)("a",{className:_().emptyStateBtn,children:"Back to Community"})})]})})})})}},26724:function(t,e,n){"use strict";n.d(e,{$$:function(){return u},Km:function(){return m},VL:function(){return l},qe:function(){return s}});var i=n(70024),o=n(11752),r=n.n(o),a=n(63113),c=r()().publicRuntimeConfig,s=(0,a.resolveBackendOrigin)({nextAuthUrl:null===c||void 0===c?void 0:c.NEXTAUTH_URL,clientOrigin:null===c||void 0===c?void 0:c.CLIENT_ORIGIN}),l=(0,i.cn)(!1),m=(0,i.cn)(!1),u=(0,i.cn)(void 0);(0,i.cn)(!1)},30454:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/community/[category]",function(){return n(44138)}])},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",to
1picStat:"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"}}},function(t){t.O(0,[5891,4589,1532,2062,5675,3559,2016,7289,6855,2512,6388,3401,9079,9639,1649,3424,7171,2889,9978,9774,2888,179],(function(){return e=30454,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.