1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5824],{44267:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var i=n(87462),r=n(63366),a=n(67294),o=n(86010),s=n(94780),l=n(90948),d=n(71657),c=n(1588),u=n(34867);function m(e){return(0,u.ZP)("MuiCardContent",e)}(0,c.Z)("MuiCardContent",["root"]);var p=n(85893);let x=["className","component"],h=e=>{let{classes:t}=e;return(0,s.Z)({root:["root"]},m,t)},g=(0,l.ZP)("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),f=a.forwardRef(function(e,t){let n=(0,d.Z)({props:e,name:"MuiCardContent"}),{className:a,component:s="div"}=n,l=(0,r.Z)(n,x),c=(0,i.Z)({},n,{component:s}),u=h(c);return(0,p.jsx)(g,(0,i.Z)({as:s,className:(0,o.Z)(u.root,a),ownerState:c,ref:t},l))});var y=f},78445:function(e,t,n){"use strict";n.d(t,{Z:function(){return Z}});var i=n(63366),r=n(87462),a=n(67294),o=n(86010),s=n(94780),l=n(15861),d=n(71657),c=n(90948),u=n(1588),m=n(34867);function p(e){return(0,m.ZP)("MuiCardHeader",e)}let x=(0,u.Z)("MuiCardHeader",["root","avatar","action","content","title","subheader"]);var h=n(85893);let g=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],f=e=>{let{classes:t}=e;return(0,s.Z)({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},p,t)},y=(0,c.ZP)("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>(0,r.Z)({[`& .${x.title}`]:t.title,[`& .${x.subheader}`]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),_=(0,c.ZP)("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),j=(0,c.ZP)("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),v=(0,c.ZP)("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),b=a.forwardRef(function(e,t){let n=(0,d.Z)({props:e,name:"MuiCardHeader"}),{action:a,avatar:s,className:c,component:u="div",disableTypography:m=!1,subheader:p,subheaderTypographyProps:x,title:b,titleTypographyProps:Z}=n,w=(0,i.Z)(n,g),k=(0,r.Z)({},n,{component:u,disableTypography:m}),M=f(k),S=b;null==S||S.type===l.Z||m||(S=(0,h.jsx)(l.Z,(0,r.Z)({variant:s?"body2":"h5",className:M.title,component:"span",display:"block"},Z,{children:S})));let C=p;return null==C||C.type===l.Z||m||(C=(0,h.jsx)(l.Z,(0,r.Z)({variant:s?"body2":"body1",className:M.subheader,color:"text.secondary",component:"span",display:"block"},x,{children:C}))),(0,h.jsxs)(y,(0,r.Z)({className:(0,o.Z)(M.root,c),as:u,ref:t,ownerState:k},w,{children:[s&&(0,h.jsx)(_,{className:M.avatar,ownerState:k,children:s}),(0,h.jsxs)(v,{className:M.content,ownerState:k,children:[S,C]}),a&&(0,h.jsx)(j,{className:M.action,ownerState:k,children:a})]}))});var Z=b},29218:function(e,t,n){!function(e){e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return(12===e&&(e=0),"pagi"===t)?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(n(30381))},57121:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/community/feed/[feedId]",function(){return n(29959)}])},83543:function(e,t,n){"use strict";n.d(t,{T:function(){return s}});var i=n(85893),r=n(9008),a=n.n(r),o=n(37363);let s={baseUrl:"https://profesea.id",siteName:"Profesea",defaultImage:(0,o.p)("/images/brand/logo-profesea.png"),twitterHandle:"@profesea"},l=e=>{let{title:t,description:n,image:r,url:o,type:l="website",siteName:d=s.siteName,publishedAt:c,noIndex:u=!1,structuredData:m}=e,p=r?r.startsWith("http")?r:"".concat(s.baseUrl).concat(r):"".concat(s.baseUrl).concat(s.defaultImage),x=o||s.baseUrl,h={"@context":"https://schema.org","@type":"article"===l?"Article":"WebPage",headline:t,description:n,image:p,url:x,...c&&{datePublished:c},publisher:{"@type":"Organization",name:d}};return(0,i.jsxs)(a(),{children:[(0,i.jsx)("title",{children:t}
1,"title"),(0,i.jsx)("meta",{name:"description",content:n},"description"),(0,i.jsx)("meta",{property:"og:title",content:t},"og:title"),(0,i.jsx)("meta",{property:"og:description",content:n},"og:description"),(0,i.jsx)("meta",{property:"og:image",content:p},"og:image"),(0,i.jsx)("meta",{property:"og:url",content:x},"og:url"),(0,i.jsx)("meta",{property:"og:type",content:l},"og:type"),(0,i.jsx)("meta",{property:"og:site_name",content:d},"og:site_name"),(0,i.jsx)("meta",{property:"og:image:width",content:"1200"},"og:image:width"),(0,i.jsx)("meta",{property:"og:image:height",content:"630"},"og:image:height"),(0,i.jsx)("meta",{name:"twitter:card",content:"summary_large_image"},"twitter:card"),(0,i.jsx)("meta",{name:"twitter:title",content:t},"twitter:title"),(0,i.jsx)("meta",{name:"twitter:description",content:n},"twitter:description"),(0,i.jsx)("meta",{name:"twitter:image",content:p},"twitter:image"),s.twitterHandle&&(0,i.jsx)("meta",{name:"twitter:site",content:s.twitterHandle},"twitter:site"),(0,i.jsx)("meta",{name:"robots",content:u?"noindex, nofollow":"index, follow"},"robots"),(0,i.jsx)("link",{rel:"canonical",href:x},"canonical"),(0,i.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(m||h)}},"structured-data")]})};t.Z=l},29959:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return W},default:function(){return O}});var i=n(85893),r=n(59417),a=n(99603),o=n(99226),s=n(87952),l=n(15861),d=n(86886),c=n(93946),u=n(29204),m=n(11163),p=n(67294),x=n(88991),h=n(75672),g=n(15319),f=n(67218),y=n(30678),_=n(11280),j=n(98456),v=n(83321),b=n(1954),Z=n(66242),w=n(83965),k=n(44267),M=n(23795),S=n(6734),C=n(37363);let P=e=>{let{community:t}=e,n=(0,m.useRouter)(),{user:r}=(0,f.a)(),{t:a}=(0,S.$G)("community"),{unauthenticatedUserAction:d,setCustomLoginCardHeader:c}=(0,y.Y)(),u=e=>{n.push("/community/".concat(e))};return(0,p.useEffect)(()=>{c((0,i.jsxs)(o.Z,{sx:{display:"flex",flexDirection:"column",gap:6,alignItems:"center",justifyContent:"center",textAlign:"center"},children:[(0,i.jsx)(s.Z,{src:(null==t?void 0:t.banner)||(0,C.p)("/images/brand/logo-profesea.png"),sx:{width:120,height:120}}),(0,i.jsx)(l.Z,{sx:{fontWeight:"bold",fontSize:16},children:a("signin_to_join",{name:null==t?void 0:t.name})})]}))},[a,t]),(0,i.jsxs)(Z.Z,{sx:{width:600},children:[(0,i.jsx)(w.Z,{sx:{height:140,backgroundSize:"contain"},image:null==t?void 0:t.banner,title:"green iguana"}),(0,i.jsxs)(k.Z,{sx:{padding:"24px",display:"flex",flexDirection:"column",gap:6},children:[(0,i.jsxs)(o.Z,{sx:{display:"flex",flexDirection:"column",gap:4},children:[(0,i.jsxs)(l.Z,{component:"div",sx:{display:"flex",alignItems:"center",fontSize:"20px",fontWeight:"700",color:"#404040",gap:"10px"},children:[(0,i.jsx)(b.JO,{icon:"ph:lock-key",fontSize:"24px"}),a("post_is_private")]}),r?(0,i.jsxs)(l.Z,{variant:"body2",sx:{color:"text.secondary",fontSize:"20px"},children:[a("visible_only_members")," ",(0,i.jsx)(M.Z,{sx:{fontWeight:600,cursor:"pointer"},onClick:()=>u(null==t?void 0:t.id),children:(null==t?void 0:t.name)||""})]}):(0,i.jsxs)(l.Z,{variant:"body2",sx:{color:"text.secondary",fontSize:"20px"},children:[a("join_to_view_post")," ",(0,i.jsx)(M.Z,{sx:{fontWeight:600,cursor:"pointer"},onClick:()=>u(null==t?void 0:t.id),children:(null==t?void 0:t.name)||""}),a("to_view_this_post"),(0,i.jsx)("br",{}),a("login_create_account_first")]})]}),(0,i.jsxs)(o.Z,{sx:{display:"flex",flexDirection:"column",gap:3},children:[(0,i.jsx)(v.Z,{size:"small",sx:{width:"100%",py:2,textTransform:"none",fontSize:"14px"},variant:"contained",onClick:r?()=>u(null==t?void 0:t.id):d,children:r?a("join_group"):a("log_in")}),(0,i.jsx)(v.Z,{size:"small",sx:{width:"100%",py:2,textTransform:"none"},onClick:()=>n.push("/"),children:a("back_to_home")})]})]})]})},N=()=>(0,i.jsx)(o.Z,{sx:{display:"flex",justifyContent:"center",mt:4},children:(0,i.jsx)(j.Z,{})}),H=e=>{let{onRetry:t}=e,{t:n}=(0,S.$G)("community");return(0,i.jsxs)(o.Z,{sx:{textAlign:"center",mt:4},children:[(0,i.jsx)(l.Z,{variant:"h5",gutterBottom:!0,children:n("feed_not_found")}),(0,i.jsx)(l.Z,{variant:"body1",color:"text.secondary",sx:{mb:3},children:n("failed_load_feed")}),t&&(0,i.jsx)(v.Z,{onClick:t,variant:"contained",color:"primary",children:n("try_again")})]})},T=e=>{let{onRetry:t}=e,{t:n}=(0,S.$G)("community");return(0,i.jsxs)(o.Z,{sx:{textAlign:"center",mt:4},children:[(0,i.jsx)(l.Z,{variant:"h5",gutterBottom:!0,children:n("feed_not_found")}),(0,i.jsx)(l.Z,{variant:"body1",color:"text.secondary",sx:{mb:3},children:n("feed_removed_desc")}),t&&(0,i.jsx)(v.Z,{onClick:t,variant:"outlined",color:"primary",children:n("back_to_community")})]})},L=e=>{let{community:t}=e;return(0,i.jsx)(o.Z,{sx:{display:"flex",justifyContent:"center",mt:4,mx:"auto"},children:(0,i.jsx)(P,{community:t})})};var R=n(17427),D=n(83543);let Y=e=>{let{feed:t,feedId:n}=e,r=(0,p.useMemo)(()=>{var e,i;let r=(null==t?void 0:null===(e=t.community)||void 0===e?void 0:e.name)?"".concat(t.community.name," - Community Discussion"):"Community Feed - Profesea",a=(null==t?void 0:t.content)?"".concat(t.content.substring(0,160),"..."):"Join our community discussion on Profesea",o=(null==t?void 0:null===(i=t.community)||void 0===i?void 0:i.banner)||"".concat(D.T.baseUrl).concat(D.T.defaultImage),s="".concat(D.T.baseUrl,"/community/feed/").concat(n);
1return{title:r,description:a,image:o,url:s}},[t,n]),a=(0,p.useMemo)(()=>({"@context":"https://schema.org","@type":"SocialMediaPosting",headline:r.title,description:r.description,image:r.image,url:r.url,datePublished:null==t?void 0:t.created_at,author:{"@type":"Organization",name:D.T.siteName}}),[r,null==t?void 0:t.created_at]);return(0,i.jsx)(D.Z,{title:r.title,description:r.description,image:r.image,url:r.url,type:"article",publishedAt:null==t?void 0:t.created_at,structuredData:a})},J=e=>(0,i.jsxs)(o.Z,{sx:{display:"flex",flexDirection:"column",gap:6,alignItems:"center",justifyContent:"center",textAlign:"center"},children:[(0,i.jsx)(s.Z,{src:(null==e?void 0:e.community.banner)||(0,C.p)("/images/brand/logo-profesea.png"),sx:{width:120,height:120}}),(0,i.jsxs)(l.Z,{sx:{fontWeight:"bold",fontSize:16},children:["Sign in to Profesea to Join ",null==e?void 0:e.community.name]})]}),z=e=>{let{feed:t}=e;return(0,i.jsx)(d.ZP,{item:!0,xs:4,sx:{display:{xs:"none",md:"block"}},children:(0,i.jsx)(o.Z,{sx:{padding:"24px",bgcolor:"white",borderRadius:"8px",boxShadow:"0px 2px 10px 0px rgba(0, 0, 0, 0.08)"},children:(0,i.jsx)(x.Z,{isBanner:!1,defaultShowInputs:!1,customHeader:J(t)})})})},A=e=>{let{feed:t,user:n}=e;return(0,i.jsxs)(d.ZP,{container:!0,spacing:6,children:[(0,i.jsx)(d.ZP,{item:!0,md:n?12:8,xs:12,children:(0,i.jsx)(R.Z,{feed:t,isPage:!0})}),!n&&(0,i.jsx)(z,{feed:t,user:n})]})},I=e=>{let{initialFeed:t,feedId:n,ssrSuccess:s,isPrivate:l}=e,x=(0,m.useRouter)(),{user:h}=(0,f.a)(),{setCustomLoginCardHeader:g}=(0,y.Y)(),[j,v]=(0,p.useState)(null),[b,Z]=(0,p.useState)(t),[w,k]=(0,p.useState)(t?"success":l?"private":s?"error":"loading"),M=n&&!isNaN(n),S=e=>{if(e instanceof u.d7){var t,n,i;switch(null===(t=e.response)||void 0===t?void 0:t.status){case 422:{let t=(null===(n=e.response.data)||void 0===n?void 0:null===(i=n.data)||void 0===i?void 0:i.community)||{};k("private"),v(t);break}case 404:k("not-found");break;default:k("error")}}else k("error");console.error("Error fetching feed:",e)},C=async()=>{if(!M){k("not-found");return}k("loading");try{var e;let t=await _.e.get("/public/data/social-feed/feed/".concat(n));200===t.status&&(null===(e=t.data)||void 0===e?void 0:e.feed)?(Z(t.data.feed),k("success")):k("error")}catch(e){S(e)}};return((0,p.useEffect)(()=>{t||s||!M||C()},[n,t,s,M]),(0,p.useEffect)(()=>{b&&g(J(b))},[b,g]),M)?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Y,{feed:b,feedId:n}),(0,i.jsxs)(o.Z,{sx:{position:"relative",px:e=>e.spacing(h?0:11),pt:h?0:10},children:[(0,i.jsx)(d.ZP,{container:!0,sx:{position:"absolute",top:"12px",left:"-72px"},children:(0,i.jsx)(c.Z,{onClick:()=>x.push("/community/"),children:(0,i.jsx)(a.G,{icon:r.acZ,color:"text.primary"})})}),(0,i.jsx)(d.ZP,{item:!0,xs:12,children:(()=>{switch(w){case"loading":return(0,i.jsx)(N,{});case"error":default:return(0,i.jsx)(H,{onRetry:C});case"not-found":return(0,i.jsx)(T,{onRetry:()=>x.push("/community")});case"private":return(0,i.jsx)(L,{community:j||void 0});case"success":return b?(0,i.jsx)(A,{feed:b,user:h}):(0,i.jsx)(N,{})}})()})]})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Y,{feed:null,feedId:0}),(0,i.jsx)(T,{onRetry:()=>x.push("/community")})]})},E=e=>(0,i.jsx)(h.E,{children:(0,i.jsx)(g.b,{children:(0,i.jsx)(I,{...e})})});E.acl={action:"read",subject:"feed-detail"},E.guestGuard=!1,E.authGuard=!1;var W=!0,O=E}},function(e){e.O(0,[4976,7536,6310,1219,9603,8991,1833,1334,7427,9774,2888,179],function(){return e(e.s=57121)}),_N_E=e.O()}]);
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.