PageSourceSearch

https://commmune.com/_next/static/chunks/2201-8e85d3d47acca440.js

js commmune.com collected 2026-09-24 20:06:51 UTC 47,491 bytes, 5 lines download raw bytes

1"use strict";
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="e153099b-5ee9-5cc4-8421-3f52b8c122e9")}catch(e){}}();
3(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2201],{7277:(e,t,i)=>{i.d(t,{X:()=>E});var n=i(45023),a=i(51949),s=i.n(a),c=i(36439),o=i(41471),d=i(93998),r=i(71450),l=i(19818),m=i(50362),h=i(18908),p=i(23758),b=i(67788),f=i(27103),y=i(22668),u=i(88442),x=i(20251),g=i(25008),v=i.n(g),Y=i(27570),N=i(42392),_=i(35928);class w extends c.Component{scrollToAnchor(){let{anchor:e}=this.props,t=(0,u.R)();if(e&&("string"==typeof e?[e]:e).indexOf(window.location.hash)>0){let e=window.location.pathname+window.location.hash;t.replaceRoute(e,{shallow:!0}),window.scrollTo(0,window.pageYOffset-60)}}componentDidMount(){this.scrollToAnchorTimer=setTimeout(()=>{this.scrollToAnchor()},500)}componentWillUnmount(){clearTimeout(this.scrollToAnchorTimer)}render(){let{children:e,iconPath:t,userId:i,name:a,isAdmin:c,viewedByAdmin:o,viewableType:p,accountName:f,body:u,lastEditedAt:x,createdAt:g,videos:w,images:E,documents:A,isResigned:K,officialIcon:j,colors:D,user:C,bodyClassName:z}=this.props,T=D.userName,I=o&&p===N.g.Restricted,F=!!x;return p!==N.g.Restricted||o||C.id===i||(F=!1),(0,n.FD)(n.FK,{children:[I?(0,n.Y)("div",{className:s().dynamic([["72466479a18a3412",[Y.aK[700],Y.EA.sm,y.A.BOX_CONTENT_MAX_WIDTH]]])+" mt-2 mb-3 ml-2",children:(0,n.Y)(_.j,{})}):null,(0,n.Y)(m.H,{timeType:"absoluteAndRelative",src:t,userId:i,name:a,nameColor:T.color,isAdmin:c,officialIcon:j,tabActiveColor:D.tabActive.color,accountName:f,createdAt:g,isResigned:K}),(0,n.Y)("div",{className:s().dynamic([["72466479a18a3412",[Y.aK[700],Y.EA.sm,y.A.BOX_CONTENT_MAX_WIDTH]]])+" user-comment",children:(0,n.FD)("div",{"data-cy":"comment-content",className:s().dynamic([["72466479a18a3412",[Y.aK[700],Y.EA.sm,y.A.BOX_CONTENT_MAX_WIDTH]]])+" main-content",children:[(0,n.FD)("section",{style:{fontSize:14},className:s().dynamic([["72466479a18a3412",[Y.aK[700],Y.EA.sm,y.A.BOX_CONTENT_MAX_WIDTH]]])+" "+(v()("my-2")||""),children:[(0,n.Y)(l.n,{className:z,isAdminPost:!!c,children:u}),F&&(0,n.Y)(r.r,{})]}),(0,n.Y)("section",{className:s().dynamic([["72466479a18a3412",[Y.aK[700],Y.EA.sm,y.A.BOX_CONTENT_MAX_WIDTH]]])+" my-2",children:this.createURLPreviewOrYouTubePreview(u)}),(0,n.FD)("section",{className:s().dynamic([["72466479a18a3412",[Y.aK[700],Y.EA.sm,y.A.BOX_CONTENT_MAX_WIDTH]]])+" my-2 videos-and-photos-wrapper",children:[(0,n.Y)(b.N,{videos:w,images:E,isDisabledLink:!0,enableImageGallery:!(0,d.S$)()&&-1!==location.pathname.indexOf("/view/post")}),(0,n.Y)(h.V,{documents:A})]}),e]})}),(0,n.Y)(s(),{id:"72466479a18a3412",dynamic:[Y.aK[700],Y.EA.sm,y.A.BOX_CONTENT_MAX_WIDTH],children:`.user-comment.__jsx-style-dynamic-selector{display:flex;position:relative;line-height:${Y.aK[700]};margin-left:56px}.main-content.__jsx-style-dynamic-selector{flex:1;width:100%;overflow-wrap:break-word}@media(max-width:${Y.EA.sm}){.user-comment.__jsx-style-dynamic-selector{margin-left:52px}}a.__jsx-style-dynamic-selector{color:#2b6eb2;font-weight:bold}.videos-and-photos-wrapper.__jsx-style-dynamic-selector{max-width:${y.A.BOX_CONTENT_MAX_WIDTH}px;margin:0 auto}`})]})}constructor(...e){super(...e),this.createURLPreviewOrYouTubePreview=e=>{let t=f.N.extractMovieIdAryFromString(e);return t.length>0?(0,n.Y)(f.N,{idAry:t}):(0,x.I)(this.props.images)&&(0,x.I)(this.props.videos)&&(0,x.I)(this.props.documents)?(0,n.Y)(p.Q,{body:e}):""}}}let E=(0,o.connect)(e=>({officialIcon:e.site.common.officialIcon.src,colors:e.site.common.colors,user:e.user}))(w)},12201:(e,t,i)=>{i.d(t,{c:()=>eU});var n=i(45023),a=i(56051),s=i(36439),c=i(30915),o=i(41471),d=i(27802),r=i(94744),l=i(33614),m=i(48208),h=i(7277),p=i(27570);let b=e=>({user:e.user}),f=(0,c.AH)("&&,&&:hover{color:inherit;}"),y=(0,c.AH)("padding-left:32px;cursor:pointer;border-top:0.5px solid ",p.Q1.user.border.default,";");function u(e){let t=class extends s.Component{constructor(e){super(e),this.postLink=`${(0,r.gK)(e.boxType,e.id,{slug:e.slug})}?focus=1`}render(){let t=this.props.latestComment;if(!t)return(0,n.Y)(l.Z,{children:(0,n.Y)(e,{...this.props})});let i=this.props.user.roleId>=d.RoleId.AdminGuest;return(0,n.FD)(l.Z,{children:[(0,n.Y)(e,{...this.props}),(0,n.Y)(m.N,{route:this.postLink,css:f,children:(0,n.Y)("section",{className:"pr-2 py-3",css:y,children:(0,n.Y)(h.X,{iconPath:t.iconPath,userId:t.commenterId,name:t.name,isAdmin:t.isAdmin,viewedByAdmin:i,viewableType:t.view
3ableType,accountName:t.accountName,body:t.body,lastEditedAt:t.lastEditedAt,createdAt:t.createdAt,images:t.images,videos:t.videos,isResigned:t.isResigned})})})]})}};return(0,o.connect)(b)(t)}var x=i(51949),g=i.n(x),v=i(62650),Y=i(32226),N=i(38606),_=i(71450),w=i(19818),E=i(74587),A=i(81936),K=i(28781),j=i(9243),D=i(18908),C=i(23758),z=i(28317);class T extends s.Component{componentDidMount(){let{id:e}=this.props,t=document.querySelector(`#foldText${e}`),i=t?t.clientHeight:0;this.setState({height:i})}render(){let e="gradation",{onClick:t,id:i,children:a,t:s}=this.props,{height:c}=this.state,o=c>=95,d=o?e:"";return(0,n.FD)("div",{className:g().dynamic([["e41aa131f17070d2",[95,e]]])+" root",children:[(0,n.Y)("div",{id:`foldText${i}`,"data-cy":"box-content-fold-text",className:g().dynamic([["e41aa131f17070d2",[95,e]]])+" "+`foldText ${d}`,children:a}),o&&(0,n.Y)("div",{onClick:t,style:{fontSize:15,position:"absolute",bottom:8,zIndex:3,color:p.Q1.user.text.light,cursor:"pointer"},className:g().dynamic([["e41aa131f17070d2",[95,e]]]),children:s("Read more")}),(0,n.Y)(g(),{id:"e41aa131f17070d2",dynamic:[95,e],children:`.root.__jsx-style-dynamic-selector{position:relative}.foldText.__jsx-style-dynamic-selector{position:relative;max-height:95px;overflow:hidden}.foldText.${e}.__jsx-style-dynamic-selector::after{position:absolute;bottom:0;left:0;z-index:2;content:"";width:100%;height:56%;background:linear-gradient(rgba(255,255,255,0)0,rgba(255,255,255,.7)20%,rgba(255,255,255,1)80%)}`})]})}constructor(...e){super(...e),this.state={height:0}}}let I=(0,z.C)(["components/organisms/site/box_content_parts"])(T);var F=i(67788),k=i(3974),$=i(22668),O=i(2114),M=i(80397),S=i(87512);let P=(e,t,i)=>{let n=(0,o.useDispatch)(),[a,c]=(0,s.useState)(e),d=(0,s.useCallback)(()=>{c(!0)},[]);return{isExpandedBody:a,handleOnClickFoldedBody:(0,s.useCallback)(e=>{e.stopPropagation(),d(),n(S.Wr.request({postId:t})),i&&n(S.D7.request({boxId:i,contentId:t}))},[t,i])}};var R=i(29046),Z=i(95961),B=i(27103),X=i(49686),H=i(95518),L=i(7910),U=i(42945),V=i(97122);function G({isExpand:e,children:t,...i}){return e?(0,n.Y)("div",{children:t}):(0,n.Y)(I,{...i,children:t})}function W({id:e,title:t,boxType:i,slug:a,boxId:s,releaseScheduleDate:c,releasedAt:d,categoryIndex:l,categoryIndexText:m,customReaction:h,isResigned:p,posterId:b,iconPath:f,name:y,isAdmin:u,viewableType:x,accountName:z,isPinned:T,like:I,comment:S,goodAnswer:q,customReactionSummary:Q,body:J,lastEditedAt:ee,Enquete:et,enqueteAnswer:ei,enqueteAnsweredTotal:en,images:ea,videos:es,documents:ec,PostLikes:eo,expandBody:ed,targetUserType:er,targetGroupNames:el=[],isBookmarked:em}){let{postToShow:eh,fetcher:ep,onTranslateToggle:eb}=(0,K.G)(e,{body:J}),{bookmarked:ef,handleBookmarkClick:ey,likeActiveColor:eu,likeNormalColor:ex}=(0,H.G)(e,v._.Post,em),eg=(0,o.useSelector)(O.c),ev=(0,Z.k)(s,l),eY=(0,R.V)(s,l),eN=(0,M.K1)(e,i),{isExpandedBody:e_,handleOnClickFoldText:ew}=((e,t,i)=>{let{isExpandedBody:n,handleOnClickFoldedBody:a}=P(e,t,i);return{isExpandedBody:n,handleOnClickFoldText:a}})(!!ed,e,s),{showOriginal:eE,translationEnabled:eA}=(0,K.o)(),eK=!!eo?.[0]?.upOrDown,ej=B.N.extractMovieIdAryFromString(J).splice(0,1),eD=!!ej.length,eC=(0,n.Y)(L.M,{timeType:"absoluteAndRelative",showDetail:!1,isResigned:p,posterId:b,iconPath:f,name:y,isAdmin:u,viewableType:x,accountName:z,isPinned:T,releaseScheduleDate:c,releasedAt:d,targetUserType:er,targetGroupNames:el}),ez=(0,r.gK)(i,e,{slug:a}),eT=(0,n.FD)(n.FK,{children:[(0,n.Y)("div",{"data-cy":"box-content-link",children:(0,n.Y)(N.M,{bottomElement:(0,n.Y)(B.N,{idAry:ej}),isDetail:!1,children:(0,n.FD)(G,{isExpand:e_,id:e,onClick:ew,children:[(0,n.Y)(j.G,{showOriginal:eE,children:(0,n.Y)(w.n,{isAdminPost:u,children:eh.body??J})}),eA&&(0,n.Y)(A.J,{fetcher:ep,textSize:"text4",onToggle:eb}),!!ee&&(0,n.Y)(_.r,{})]})})}),(0,M.DI)({images:ea,videos:es,documents:ec})?(0,n.FD)("div",{className:g().dynamic([["6fa261556a5b4b78",[$.A.BOX_CONTENT_MAX_WIDTH]]])+" px-3",children:[(0,n.FD)("div",{className:g().dynamic([["6fa261556a5b4b78",[$.A.BOX_CONTENT_MAX_WIDTH]]])+" "+`${k.A.BOX_CONTENT_FILES} files`,children:[(0,n.Y)(F.N,{showDetail:!1,enableImageGallery:!1,videos:es,images:ea,route:ez}),(0,n.Y)(E.A,{children:(0,n.Y)(D.V,{documents:ec})})]}),(0,n.Y)(g(),{id:"6fa261556a5b4b78",dynamic:[$.A.BOX_CONTENT_MAX_WIDTH],children:`.f
3iles.__jsx-style-dynamic-selector{max-width:${$.A.BOX_CONTENT_MAX_WIDTH}px;margin:16px auto}`})]},"VideosAndPhotos"):!eD&&(0,n.Y)(E.A,{children:(0,n.Y)("div",{className:"px-3",children:(0,n.Y)(C.Q,{body:J})},"Preview")}),(0,n.Y)(X.K,{enquete:et,enqueteAnswer:ei,enqueteAnsweredTotal:en,postId:e})]}),eI=(0,n.Y)(V.R,{showDetail:!1,id:e,boxType:i,boxId:s,posterId:b,categoryIndex:l,isLikeActive:eK,categoryName:m??eY,likeCount:I,commentCount:S,goodAnswerCount:q,isEnableComment:ev,reactions:eg,customReaction:h,customReactionSummary:Q,onCommentButtonClick:eN,buttonBookmarkProps:{bookmarked:ef,onClick:ey,activeColor:eu,normalColor:ex}}),eF=(0,n.FD)("div",{className:"jsx-a4d6098350e0733b header-right",children:[(0,n.Y)("div",{style:{display:"inline-block"},className:"jsx-a4d6098350e0733b",children:(0,n.Y)(E.A,{children:(0,n.Y)(U.c,{postId:e,slug:a,posterId:b,title:t,boxId:s,boxType:i,viewableType:x,isAdminUser:u})})}),(0,n.Y)(g(),{id:"a4d6098350e0733b",children:".header-right.jsx-a4d6098350e0733b{}"})]});return(0,n.Y)(Y.J,{headerElement:eC,mainContentElement:eT,footerElement:eI,menuElement:eF,route:ez,"data-cy":"box-content"})}var q=i(17986),Q=i(93998),J=i(92362);function ee(e){let{onClick:t,text:i="",style:s,categoryIndex:c}=e,{tabActive:{color:d}}=(0,o.useSelector)(e=>e.site.common.colors),r=c===a.CategoryIndex.Ended?"rgb(158, 158, 158)":d;return(0,n.FD)(n.FK,{children:[(0,n.Y)("div",{"data-cy":e["data-cy"],onClick:e=>{t&&(e.preventDefault(),t())},style:s,className:g().dynamic([["256eb667d92987e0",[r]]])+" label",children:i}),(0,n.Y)(g(),{id:"256eb667d92987e0",dynamic:[r],children:`.label.__jsx-style-dynamic-selector{color:white;font-size:12px;line-height:1;padding:4px 0;width:72px;border-radius:11px;cursor:pointer;background-color:${r};text-align:center;margin:0 auto 4px}`})]})}var et=i(36919),ei=i(52095),en=i.n(ei),ea=i(25008),es=i.n(ea),ec=i(85121);function eo(e){let{date:t,fontSize:i}=e;return(0,n.FD)(s.Fragment,{children:[(0,n.Y)("div",{className:g().dynamic([["ceec4f8613437baf",[i,i+6]]])+" inline-block",children:(0,n.FD)("div",{className:g().dynamic([["ceec4f8613437baf",[i,i+6]]])+" big font-weight-bold d-flex",children:[(0,n.Y)("div",{className:g().dynamic([["ceec4f8613437baf",[i,i+6]]]),children:en()(t).format("M")}),(0,n.Y)("div",{className:g().dynamic([["ceec4f8613437baf",[i,i+6]]]),children:"/"}),(0,n.Y)("div",{className:g().dynamic([["ceec4f8613437baf",[i,i+6]]]),children:en()(t).format("D")}),(0,n.Y)("div",{className:g().dynamic([["ceec4f8613437baf",[i,i+6]]])+" "+(es()("base d-flex ml-1 day-of-week",ec.B_)||""),children:en().weekdaysShort()[en()(t).day()]})]})}),(0,n.Y)(g(),{id:"ceec4f8613437baf",dynamic:[i,i+6],children:`.base.__jsx-style-dynamic-selector{font-size:${i}px}.big.__jsx-style-dynamic-selector{font-size:${i+6}px}.inline-block.__jsx-style-dynamic-selector{display:inline-block}.day-of-week.__jsx-style-dynamic-selector{align-items:flex-end;padding-bottom:2px}`})]})}let ed=(e,t,i)=>(0,n.FD)("div",{className:g().dynamic([["8d9538bce980edbb",[i?"#9E9E9E":"#212121"]]])+" d-flex align-center justify-center date",children:[(0,n.Y)(eo,{date:e||"",fontSize:t}),(0,n.Y)(g(),{id:"8d9538bce980edbb",dynamic:[i?"#9E9E9E":"#212121"],children:`.date.__jsx-style-dynamic-selector{color:${i?"#9E9E9E":"#212121"}}.justify-center.__jsx-style-dynamic-selector{justify-content:center}`})]}),er=(e,t)=>(0,n.FD)("div",{className:g().dynamic([["a2cec0d70b686fce",[t?"#9E9E9E":"#666666"]]])+" d-flex align-center small",children:[(0,n.Y)("div",{className:g().dynamic([["a2cec0d70b686fce",[t?"#9E9E9E":"#666666"]]])+" time",children:en()(e).format("HH:mm")}),(0,n.Y)(g(),{id:"a2cec0d70b686fce",dynamic:[t?"#9E9E9E":"#666666"],children:`.time.__jsx-style-dynamic-selector{color:${t?"#9E9E9E":"#666666"};font-size:12px}`})]});function el(e){let{heldDateFrom:t,heldDateTo:i,fontSize:s,categoryIndex:c}=e,o=en()(t).isSame(i,"date"),d=en()(t).isSame(i,"minute"),r=c===a.CategoryIndex.Ended;return(0,n.FD)("div",{className:g().dynamic([["40c1b9e5c770bef1",[r?"#9E9E9E":"#212121",r?"#9E9E9E":"#666666"]]])+" align-center held-date",children:[ed(t,s,r),d?(0,n.Y)("div",{className:g().dynamic([["40c1b9e5c770bef1",[r?"#9E9E9E":"#212121",r?"#9E9E9E":"#666666"]]])+" d-flex justify-center",children:er(t,r)}):(0,n.Y)(n.FK,{children:o?(0,n.FD)("div",{className:g().dynamic([["40c1b9e5c770bef1",[r?"#9E9E9E":"#212121",r?"#9E9E9E":"#666666"]]])+" d-flex justify-center line-height mt-1",children:[(0,n.Y)("div",{className:g().dynamic([["40c1b9e5c770bef1",[r?"#9E9E9E":"#212121",r?"#9E9E9E":"#666666"]]]),children:er(t,r)}),(0,n.Y)("div",{className:g().dynamic([["40c1b9e5c770bef1",[r?"#9E9E9E":"#212121",r?"#9E9E9E":"#666666"]]])+" d-flex align-center hyphen",children:"-"}),(0,n.Y)("div",{className:g().dynamic([["40c1b9e5c770bef1",[r?"#9E9E9E":"#212121",r?"#9E9E9E":"#666666"]]]),children:er(i,r)})]}):(0,n.FD)(n.FK,{children:[(0,n.Y)("div",{className:g().dynamic([["40c1b9e5c770bef1",[r?"#9E9E9E":"#212121",r?"#9E9E9E":"#666666"]]])+" period-line"}),ed(i,s,r)]})}),(0,n.Y)(g(),{id:"40c1b9e5c770bef1",dynamic:[r?"#9E9E9E":"#212121",r?"#9E9E9E":"#666666"],children:`.align-center.__jsx-style-dynamic-selector{align-items:center}.justify-center.__jsx-style-dynamic-selector{justify-content:center}
3.period-line.__jsx-style-dynamic-selector{width:2px;height:6px;background:${r?"#9E9E9E":"#212121"};margin:2px auto}.held-date.__jsx-style-dynamic-selector{width:80px}.line-height.__jsx-style-dynamic-selector{line-height:1}.hyphen.__jsx-style-dynamic-selector{color:${r?"#9E9E9E":"#666666"};font-size:12px}`})]})}var em=i(16592),eh=i(35290),ep=i(82840),eb=i(88442),ef=i(14454),ey=i(81496),eu=i(51963);function ex(e){let{onClick:t,attentionText:i,text:a,fontSize:s}=e;return(0,n.FD)("div",{onClick:e=>{e.stopPropagation(),t()},className:g().dynamic([["b1f78b83642333d1",[s]]])+" wrap",children:[a,(0,n.Y)("span",{"data-cy":[e["data-cy"]],className:g().dynamic([["b1f78b83642333d1",[s]]])+" attention",children:i}),(0,n.Y)(g(),{id:"b1f78b83642333d1",dynamic:[s],children:`.wrap.__jsx-style-dynamic-selector{color:#9e9e9e;cursor:pointer;font-size:${s}px;line-height:1.4;white-space:normal}.attention.__jsx-style-dynamic-selector{font-weight:bold}`})]})}class eg extends s.Component{constructor(e){super(e),this.createMovieIframe=()=>{let{body:e}=this.props,t=B.N.extractMovieIdAryFromString(e).splice(0,1);return t.length?(0,n.Y)("section",{className:"m-3",children:(0,n.Y)(B.N,{idAry:t})}):null},this.handleChangePin=e=>{let{dispatch:t,eventBox:i,t:n}=this.props;if(!i)return;let a=(0,ep.mi)({boxId:i.id,item:{pinnedContentId:e}});t(ep.um.request({action:a,successCb:()=>{window.location.reload(),t((0,J.gg)(n("Saved")))}}))},this.handleDeleteForAdmin=(e,t)=>{this.props.dispatch((0,J.gg)(t)),e()},this.handleDeleteForUser=async(e,t,i)=>{try{this.props.dispatch((0,J.gg)(i)),await e(),t()}catch(e){(0,J.mO)(e.message)}},this.createMoreVertMenu=()=>{let{id:e,ownerUserId:t,editable:i,deletable:a,dispatch:s,eventBox:c,user:o,axios:d,t:r,isEnabledEventEditForUser:l,brandLocale:m}=this.props;if(!c)return;let{types:h,handleEdit:p,handleDelete:b,handleReport:f}=(0,ef.Gj)(s,d,l,o,{id:e,ownerUserId:t,editable:i,deletable:a},c,r("Deleting the post..."),this.handleDeleteForAdmin,this.handleDeleteForUser,()=>window.location.reload(),{brandLocale:m});return(0,n.Y)(em.Q,{size:13,types:h,onCopy:()=>s((0,J.gg)(r("Copied"))),linkText:`${window.location.origin}${(0,eu.Hs)("/view/event/")}${e}`,onEdit:p,onDuplicate:()=>{window.location.href=`/v2/${m}/admin/events?id=${e}&copy=true`},onPin:()=>{this.handleChangePin(e)},onUnPin:()=>{this.handleChangePin(0)},onDelete:b,onReport:f,textColor:"#ffffff",styles:{backgroundColor:"rgba(0, 0, 0, 0.4)",width:"40px",height:"40px"}})},this.eventLink=(0,r.OR)(e.id)}onClickCategoryLabel(){let{dispatch:e,boxTabIndex:t,categoryIndex:i}=this.props;e((0,S.mg)(t)),e((0,J.xM)(a.BoxType.Event,i))}createMainContent(){let e=(0,eb.R)(),t=this.props,{categoryIndex:i,t:a}=this.props,c=(0,n.FD)("section",{className:g().dynamic([["63668f5f432abc6f",[13]]])+" c flex",children:[(0,n.Y)("div",{className:g().dynamic([["63668f5f432abc6f",[13]]]),children:(0,n.Y)(el,{heldDateFrom:t.heldDateFrom||"",heldDateTo:t.heldDateTo||"",fontSize:12,categoryIndex:i})}),(0,n.Y)(g(),{id:"63668f5f432abc6f",dynamic:[13],children:".c.__jsx-style-dynamic-selector{font-size:13px;display:flex;flex-wrap:wrap;justify-content:center}"})]},"dateHeldAndLabels"),o=(0,n.FD)("div",{"data-cy":"event-label",className:g().dynamic([["9a8ac76b419b3978",[12]]])+" nowrap",children:[(0,n.Y)("div",{className:g().dynamic([["9a8ac76b419b3978",[12]]])+" label",children:t.labelName}),(0,n.Y)(g(),{id:"9a8ac76b419b3978",dynamic:[12],children:".label.__jsx-style-dynamic-selector{color:#9e9e9e;font-size:12px;font-weight:bold;line-height:1.4;margin-bottom:2px}"})]},"eventLabel"),d=(0,n.FD)("h1",{className:g().dynamic([["cc5b7fb4d7dcdadb",[16]]])+" "+(es()("card-title",ec.B_)||""),children:[t.title,(0,n.Y)(g(),{id:"cc5b7fb4d7dcdadb",dynamic:[16],children:"h1.__jsx-style-dynamic-selector{color:#212121;font-size:16px;font-weight:bold;line-height:1.4;margin-bottom:2px}"})]},"title"),r=(0,n.Y)("div",{children:(0,n.Y)(F.N,{showDetail:!0,images:[t.eyecatchImage],route:this.eventLink})},"VideosAndPhotos"),l=(0,n.Y)("div",{className:"h-100",children:(0,n.Y)(F.N,{showDetail:!0,images:[t.eyecatchImage],route:this.eventLink})}
3,"VideosAndPhotos"),m=t.externalUrl?null:(0,n.FD)("section",{className:"jsx-d359004b1d8b9189 number-of-applicants",children:[(0,n.Y)(ex,{onClick:t.isViewableAttendees?()=>e.pushRoute(`/view/event/${t.id}/attendance`):()=>void 0,text:a(t.isLottery?"Applied Count":"Going Count"),attentionText:t.numberOfApplicants.toString(),fontSize:12,"data-cy":"event-attendance-count"}),(0,n.Y)(ex,{onClick:t.isViewableAttendees?()=>e.pushRoute(`/view/event/${t.id}/attendance?tab=beinterestedin`):()=>void 0,text:a("Interested Count"),attentionText:t.numberOfBeInterestedIn.toString(),fontSize:12,"data-cy":"event-interest-count"}),(0,n.Y)(g(),{id:"d359004b1d8b9189",children:".number-of-applicants.jsx-d359004b1d8b9189{display:flex;gap:8px}"})]},"NumberOfApplicants"),h=()=>{let{user:e}=t;return(0,n.Y)(s.Fragment,{children:(0,Q.c$)(e.userAgent)?(0,n.FD)("section",{className:"jsx-12fedb5d6bb7ebac d-flex cursor-pointer p-2",children:[(0,n.FD)("div",{className:"jsx-12fedb5d6bb7ebac d-flex py-2 pl-2 pr-4 event-info",children:[(0,n.FD)("div",{className:"jsx-12fedb5d6bb7ebac",children:[this.createCategoryLabel(),(0,n.Y)("div",{className:"jsx-12fedb5d6bb7ebac",children:[c]})]}),(0,n.FD)("div",{className:"jsx-12fedb5d6bb7ebac border-left pl-3 ml-3 w-100",children:[t.isPinned?(0,n.Y)("div",{className:"jsx-12fedb5d6bb7ebac pinned-message",children:(0,n.Y)(et.O,{})}):null,[d,o,m]]})]}),(0,n.Y)("div",{className:"jsx-12fedb5d6bb7ebac event-img",children:[r]}),(0,n.Y)(g(),{id:"12fedb5d6bb7ebac",children:".event-info.jsx-12fedb5d6bb7ebac{width:calc(100% - 200px)}.event-img.jsx-12fedb5d6bb7ebac{width:200px}.justify-center.jsx-12fedb5d6bb7ebac{justify-content:center}.cursor-pointer.jsx-12fedb5d6bb7ebac{cursor:pointer}.pinned-message.jsx-12fedb5d6bb7ebac{margin-bottom:2px}"})]}):(0,n.FD)("section",{className:"jsx-fa3f3e489bab1259 cursor-pointer",children:[(0,n.Y)("div",{className:"jsx-fa3f3e489bab1259",children:[l]}),(0,n.FD)("div",{className:"jsx-fa3f3e489bab1259 d-flex event-info",children:[(0,n.FD)("div",{className:"jsx-fa3f3e489bab1259",children:[(0,n.Y)("div",{className:"jsx-fa3f3e489bab1259 d-flex justify-center",children:this.createCategoryLabel()}),(0,n.Y)("div",{className:"jsx-fa3f3e489bab1259",children:[c]})]}),(0,n.FD)("div",{className:"jsx-fa3f3e489bab1259 event-content w-100 border-left",children:[t.isPinned?(0,n.Y)("div",{className:"jsx-fa3f3e489bab1259 pinned-message",children:(0,n.Y)(et.O,{})}):null,[d,o,m]]})]}),(0,n.Y)(g(),{id:"fa3f3e489bab1259",children:".event-info.jsx-fa3f3e489bab1259{padding:12px;align-items:center}.event-content.jsx-fa3f3e489bab1259{margin-left:12px;padding-left:12px;align-self:stretch}.justify-center.jsx-fa3f3e489bab1259{justify-content:center}.cursor-pointer.jsx-fa3f3e489bab1259{cursor:pointer}.pinned-message.jsx-fa3f3e489bab1259{margin-bottom:2px}"})]})})};return(0,n.Y)(h,{})}createCategoryLabel(){let{categoryIndex:e,colors:t,t:i}=this.props,s=eh.U[e];return(0,n.FD)("div",{"data-cy":"event-category",className:"jsx-52804cf1fa7019f4 category-label-container nowrap",children:[s&&e===a.CategoryIndex.Ended?(0,n.Y)(ee,{onClick:()=>this.onClickCategoryLabel(),text:i(s,{ns:"constants"}),color:t.tabActive.color,categoryIndex:e,"data-cy":"category-label"}):null,(0,n.Y)(g(),{id:"52804cf1fa7019f4",children:".category-label-container.jsx-52804cf1fa7019f4{display:flex;white-space:nowrap;justify-content:flex-end}"})]})}render(){let e=this.props,t=(0,eb.R)();return(0,n.FD)(l.Z,{style:e.style,onClick:()=>t.pushRoute(this.eventLink),"data-cy":"event-card",children:[(0,n.Y)("div",{style:{position:"absolute",right:"16px",top:"16px"},onClick:e=>e.stopPropagation(),children:this.createMoreVertMenu()}),(0,n.Y)("section",{className:"mb-0",children:this.createMainContent()}),this.createMovieIframe(),e.children]})}}let ev=(0,o.connect)(e=>({boxTabIndex:e.site.top.boxes.item.findIndex(e=>e.type===a.BoxType.Event),user:e.user,colors:e.site.common.colors,eventBox:e.site.top.boxes.item.find(e=>e.type===a.BoxType.Event),axios:(0,ey.q)(e),isEnabledEventEditForUser:e.app.brand.isEnabledEventEditForUser,brandLocale:e.app.brand.locale}))((0,z.C)(["components/organisms/site","constants"])(eg));var eY=i(33208),eN=i(94689),e_=i(93311),ew=i(6657),eE=i(44174),eA=i(96058),eK=i(8310),ej=i(7228),eD=i(44458);function eC(e){let{postLink:t,Footer:i}=e,a=(0,eD.hD)(),s=Math.min(e.title.length,a?18:38),c=(0,o.useSelector)(e=>e.user.accountName),d=(0,o.useSelector)(eA.Cv),r=(0,ej.o)(e.title,c,d),l=(0,eN.omitText)(r,s,"...");return(0,n.FD)(m.M,{route:t,children:[(0,n.FD)("div",{"data-cy":"qa-mode-box-content",className:g().dynamic([["c544c2fa2a8f15f4",[p.Z4[400]]]])+" simple-card p-card",children:[e.isPinned&&(0,n.Y)(et.O,{}),(0,n.Y)("div",{"data-cy":"post-title",className:g().dynamic([["c544c2fa2a8f15f4",[p.Z4[400]]]])+" "+(es()("title d-flex align-items-center",ec.B_)||""),children:l}),i]}),(0,n.Y)(g(),{id:"c544c2fa2a8f15f4",dynamic:[p.Z4[400]],children:`.simple-card.__jsx-style-dynamic-selector{padding:16px 24px}.simple-card.__jsx-style-dynamic-selector>*:not(:first-child){margin-top:8px}.title.__jsx-style-dynamic-selector{font-size:${p.Z4[400]};font-weight:bold;max-width:90%}.title.__jsx-style-dynamic-selector:hover{cursor:pointer;text-decoration:underline}`})]})}let ez=(0,o.connect)((e,t)=>({boxTabIndex:e.site.top.boxes.item.findIndex(e=>e.id===t.boxId),viewableCategories:e.site.categories,colors:e.site.common.colors,isEnableComment:(0,eK.Qs)(e,t)}))(function(e){let t=(0,r.gK)(e.boxType,e.id,{slug:e.slug}),i=()=>{let{dispatch:t,boxType:i,boxId:n,boxTabIndex:a,categoryIndex:s}=e;t((0,S.mg)(a)),t((0,J.xM)(i,s,n))};return(0,n.FD)(l.Z,{children:[(0,n.Y)(eC,{...e,postLink:t,Footer:(()=>{let{like:t,comment:a,releasedAt:s,categoryIndex:c,goodAnswer:o}=e,d=(t=>{let{boxId:i,viewableCategories:n}=e;if(!i||!n[i])return"";let a=n[i].item.find(e=>e.categoryIndex===t);return a?a.text:""})(c);return(0,n.FD)("div",{className:"jsx-2597dc22e645c69a footer-container",children:[(0,n.FD)("div",{className:"jsx-2597dc22e645c69a icon-count-wrapper",children:[(0,n.Y)(eE.GH,{count:t,className:"mr-3"}),(0,n.Y)(eE.q9,{count:a,className:"mr-3"}),(0,n.Y)(eE._v,{"data-cy":"good-answer-icon-count",count:o})]}),(0,n.FD)("div",{className:"jsx-2597dc22e645c69a right-box",children:[(0,n.Y)(e_.m,{onClick:i,text:d||"",style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},"data-cy":"category-label"}),(0,n.Y)(ew.m,{timeType:"absoluteAndRelative",children:s})]}),(0,n.Y)(g(),{id:"2597dc22e645c69a",children:".footer-container.jsx-2597dc22e645c69a{display:flex;justify-content:space-between}.icon-count-wrapper.jsx-2597dc22e645c69a{display:flex;align-items:flex-end}.right-box.jsx-2597dc22e645c69a{text-align:right}"})]})})()}),(0,n.Y)("div",{className:"jsx-4b98db2de5df5a5a moreVert",children:(0,n.Y)("div",{style:{display:"inline-block"},className:"jsx-4b98db2de5df5a5a",children:(0,n.Y)(U.c,{postId:e.id,posterId:e.posterId,title:e.title,boxId:e?.boxId,boxType:e.boxType,viewableType:e.viewableType,isAdminUser:e.isAdmin})})}),(0,n.Y)(g(),{id:"4b98db2de5df5a5a",children:".moreVert.jsx-4b98db2de5df5a5a{position:absolute;right:10px;top:5px}"})]})});var eT=i(70576),eI=i(79917),eF=i.n(eI),ek=i(66065);let e$=({...e})=>(0,n.FD)("div",{className:"jsx-95c3f0ce2e34edd1 menu",children:[(0,n.Y)(U.c,{...e}),(0,n.Y)(g(),{id:"95c3f0ce2e34edd1",children:".menu.jsx-95c3f0ce2e34edd1{display:flex;flex-direction:row}"})]}),eO=eF()(()=>Promise.all([i.e(1510),i.e(6593),i.e(9605),i.e(6482),i.e(1453),i.e(3829)]).then(i.bind(i,95384)),{loadableGenerated:{webpack:()=>[95384]},ssr:!1});var eM=i(58283);let eS=(0,o.connect)((e,t)=>({boxTabIndex:e.site.top.boxes.item.findIndex(e=>e.id===t.boxId),viewableCategories:e.site.categories,isEnableComment:(0,eK.Qs)(e,t),likeActiveColor:e.site.common.colors.actionActive.color,likeNormalColor:e.site.common.colors.action.color}))(function({isAdmin:e,id:t,posterId:i,title:a,boxTabIndex:s,boxId:c,viewableType:d,boxType:h,categoryIndex:b,view
3ableCategories:f,isPinned:y,PostLikes:u,releasedAt:x,comment:v,like:Y,slug:N}){let _,w,E,A,K=(0,o.useDispatch)(),j=(0,r.gK)(h,t,{slug:N}),D=(0,o.useSelector)(eA.Cv),C=(0,o.useSelector)(e=>e.user.accountName);return(0,n.FD)(l.Z,{children:[(_=(e=>{if(!c||!f[c])return"";let t=f[c].item.find(t=>t.categoryIndex===e);return t?t.text:""})(b),w=u?.[0]?.upOrDown,E=(0,ej.o)(a,C,D),A=(0,eM.c)(E,0,50),(0,n.FD)(m.M,{route:j,children:[(0,n.FD)("div",{className:g().dynamic([["9ffb571ccda01040",[p.Z4[400],p.aK[400]]]])+" simple-card",children:[y&&(0,n.Y)(et.O,{}),(0,n.Y)("div",{"data-cy":"post-title",className:g().dynamic([["9ffb571ccda01040",[p.Z4[400],p.aK[400]]]])+" "+(es()("title",ec.B_)||""),children:A}),(0,n.FD)("div",{className:g().dynamic([["9ffb571ccda01040",[p.Z4[400],p.aK[400]]]])+" footer-container",children:[(0,n.FD)("div",{className:g().dynamic([["9ffb571ccda01040",[p.Z4[400],p.aK[400]]]])+" icon-count-wrapper",children:[(0,n.Y)(eE.GH,{count:Y,active:w,className:"mr-3"}),(0,n.Y)(eE.q9,{count:v})]}),(0,n.FD)("div",{className:g().dynamic([["9ffb571ccda01040",[p.Z4[400],p.aK[400]]]])+" right-box",children:[(0,n.Y)(e_.m,{onClick:()=>{K((0,S.mg)(s)),K((0,J.xM)(h,b,c))},text:_||"",style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},"data-cy":"category-label"}),(0,n.Y)(ew.m,{timeType:"absoluteAndRelative",children:x})]})]})]}),(0,n.Y)(g(),{id:"9ffb571ccda01040",dynamic:[p.Z4[400],p.aK[400]],children:`.simple-card.__jsx-style-dynamic-selector{padding:16px 24px}.simple-card.__jsx-style-dynamic-selector>*:not(:first-child){margin-top:8px}.title.__jsx-style-dynamic-selector{font-size:${p.Z4[400]};line-height:${p.aK[400]};font-weight:bold;max-width:90%}.title.__jsx-style-dynamic-selector:hover{cursor:pointer;text-decoration:underline}.footer-container.__jsx-style-dynamic-selector{display:flex;justify-content:space-between}.icon-count-wrapper.__jsx-style-dynamic-selector{display:flex;align-items:center}.right-box.__jsx-style-dynamic-selector{text-align:right}`})]})),(0,n.Y)("div",{className:"jsx-4a05819e94b5bd69 moreVert",children:(0,n.Y)("div",{style:{display:"inline-block"},className:"jsx-4a05819e94b5bd69",children:(0,n.Y)(U.c,{postId:t,posterId:i,title:a,boxId:c,boxType:h,viewableType:d,isAdminUser:e})})}),(0,n.Y)(g(),{id:"4a05819e94b5bd69",children:".bookmark.jsx-4a05819e94b5bd69{position:absolute;right:50px;top:5px}.moreVert.jsx-4a05819e94b5bd69{position:absolute;right:10px;top:5px}"})]})});var eP=i(55559),eR=i(78108);let eZ=({onClick:e,text:t,fontSize:i})=>(0,n.FD)("span",{onClick:t=>{t.stopPropagation(),e()},className:g().dynamic([["302ebbccf2c44afe",[i]]])+" wrap font-weight-bold",children:[t,(0,n.Y)(g(),{id:"302ebbccf2c44afe",dynamic:[i],children:`.wrap.__jsx-style-dynamic-selector{cursor:pointer;font-size:${i}px;white-space:normal;color:gray}`})]});class eB extends s.Component{constructor(e){super(e),this.createMovieIframe=()=>{let{body:e}=this.props,t=B.N.extractMovieIdAryFromString(e).splice(0,1);return t.length?(0,n.Y)("section",{className:"m-3",children:(0,n.Y)(B.N,{idAry:t})}):null},this.handleChangePin=e=>{let{dispatch:t,eventBox:i,t:n}=this.props;if(!i)return;let a=(0,ep.mi)({boxId:i.id,item:{pinnedContentId:e}});t(ep.um.request({action:a,successCb:()=>{window.location.reload(),t((0,J.gg)(n("Saved")))}}))},this.handleDeleteForAdmin=(e,t)=>{this.props.dispatch((0,J.gg)(t)),e()},this.handleDeleteForUser=async(e,t,i)=>{try{this.props.dispatch((0,J.gg)(i)),await e(),t()}catch(e){(0,J.mO)(e.message)}},this.createMoreVertMenu=()=>{let{id:e,ownerUserId:t,editable:i,deletable:a,dispatch:s,eventBox:c,user:o,t:d,axios:r,isEnabledEventEditForUser:l,brandLocale:m}=this.props;if(!c)return;let{types:h,handleEdit:p,handleDelete:b,handleReport:f}=(0,ef.Gj)(s,r,l,o,{id:e,ownerUserId:t,editable:i,deletable:a},c,d("Deleting the post..."),this.handleDeleteForAdmin,this.handleDeleteForUser,()=>window.location.reload(),{brandLocale:m});return(0,n.Y)(em.Q,{size:13,types:h,onCopy:()=>s((0,J.gg)(d("Copied"))),linkText:`${window.location.origin}${(0,eu.Hs)("/view/event/")}${e}`,onEdit:p,onPin:()=>{this.handleChangePin(e)},onUnPin:()=>{this.handleChangePin(0)},onDelete:b,onReport:f})},this.eventLink=(0,r.OR)(e.id)}createBody(){let{body:e,id:t}=this.props;return(0,n.Y)(eP.h,{isAdminPost:!0,id:t,children:e})}createMainContent(){let e=(0,eb.R)(),t=this.props,{t:i}=t,a=(0,n.FD)("section",{className:g().dynamic([["f420ca8addbfe685",[13]]])+" c pt-0 pb-2 px-3 flex",children:[(0,n.Y)("div",{className:g().dynamic([["f420ca8addbfe685",[13]]])+" flex-left gray",children:(0,n.Y)(eR.V,{heldDateFrom:t.heldDateFrom||"",heldDateTo:t.heldDateTo||"",fontSize:14})}),(0,n.Y)(g(),{id:"f420ca8addbfe685",dynamic:[13],children:".c.__jsx-style-dynamic-selector{font-size:13px;display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center}.gray.__jsx-style-dynamic-selector{color:gray}.left.__jsx-style-dynamic-selector{text-align:left;float:left}.right.__jsx-style-dynamic-selector{text-align:right}.flex-left.__jsx-style-dynamic-selector{margin-right:auto;flex-wrap:nowrap;display:flex}"})]},"dateHeldAndLabels"),s=(0,n.FD)(n.FK,{children:[(0,n.Y)("div",{className:g().dynamic([["4971bbe954dc2606",[p.Z4[200],p.Kz[3],p.Z4[400],p.aK[400],p.Kz[3]]]])+" categoryName px-3",children:t.labelName}),(0,n.Y)("h5",{className:g().dynamic([["4971bbe954dc2606",[p.Z4[200],p.Kz[3],p.Z4[400],p.aK[400],p.Kz[3]]]])+" card-title px-3",children:t.title}
3,"title"),(0,n.Y)(g(),{id:"4971bbe954dc2606",dynamic:[p.Z4[200],p.Kz[3],p.Z4[400],p.aK[400],p.Kz[3]],children:`.categoryName.__jsx-style-dynamic-selector{font-size:${p.Z4[200]};color:gray;white-space:nowrap;margin-bottom:${p.Kz[3]}}.card-title.__jsx-style-dynamic-selector{font-size:${p.Z4[400]};font-weight:bold;line-height:${p.aK[400]};margin-bottom:${p.Kz[3]}}`})]}),c=(0,n.FD)("div",{className:g().dynamic([["80cb515e1fe56b97",[p.Z4[300],p.aK[400]]]])+" px-3",children:[(0,n.Y)("div",{className:g().dynamic([["80cb515e1fe56b97",[p.Z4[300],p.aK[400]]]])+" card-text",children:this.createBody()}),(0,n.Y)(g(),{id:"80cb515e1fe56b97",dynamic:[p.Z4[300],p.aK[400]],children:`.card-text.__jsx-style-dynamic-selector{font-size:${p.Z4[300]};line-height:${p.aK[400]};white-space:normal}`})]},"body"),o=(0,n.Y)("div",{className:"px-0",children:(0,n.Y)(F.N,{showDetail:!0,height:125,images:[t.eyecatchImage],route:this.eventLink})},"VideosAndPhotos"),d=t.externalUrl?null:(0,n.FD)("section",{className:"pt-2 px-3",children:[(0,n.Y)(eZ,{onClick:t.isViewableAttendees?()=>e.pushRoute(`/view/event/${t.id}/attendance`):()=>void 0,text:t.isLottery?i("Applied Count: {{count}}",{count:t.numberOfApplicants}):i("Going Count: {{count}}",{count:t.numberOfApplicants}),fontSize:12}),(0,n.FD)("span",{className:g().dynamic([["8b690cff6d44dc66",[p.Z4[200]]]])+" spacer",children:["・",(0,n.Y)(g(),{id:"8b690cff6d44dc66",dynamic:[p.Z4[200]],children:`.spacer.__jsx-style-dynamic-selector{color:white;font-size:${p.Z4[200]}}`})]}),(0,n.Y)(eZ,{onClick:t.isViewableAttendees?()=>e.pushRoute(`/view/event/${t.id}/attendance?tab=beinterestedin`):()=>void 0,text:i("Interested Count: {{count}}",{count:t.numberOfBeInterestedIn}),fontSize:12})]},"NumberOfApplicants");return(0,n.Y)(()=>(0,n.Y)(n.FK,{children:(0,n.FD)("section",{className:"d-flex align-items-center py-4",children:[(0,n.FD)("div",{style:{flex:1},children:[t.isPinned?(0,n.Y)("div",{className:"my-0 ml-3",children:(0,n.Y)(et.O,{})}):null,(0,n.Y)("div",{children:[o]})]}),(0,n.Y)("div",{style:{flex:2},children:[a,s,c,d]})]})}),{})}render(){let e=this.props,t=(0,eb.R)();return(0,n.FD)(l.Z,{style:e.style,onClick:()=>t.pushRoute(this.eventLink),"data-cy":"event-card",children:[(0,n.Y)("div",{style:{position:"absolute",right:"10px",textAlign:"right",top:"5px"},onClick:e=>e.stopPropagation(),className:"jsx-ceb935264f686b76",children:this.createMoreVertMenu()}),(0,n.Y)("section",{className:"jsx-ceb935264f686b76 homeEventCard",children:this.createMainContent()}),this.createMovieIframe(),e.children,(0,n.Y)(g(),{id:"ceb935264f686b76",children:".homeEventCard.jsx-ceb935264f686b76{cursor:pointer}"})]})}}let eX=(0,o.connect)(e=>({boxTabIndex:e.site.top.boxes.item.findIndex(e=>e.type===a.BoxType.Event),user:e.user,colors:e.site.common.colors,eventBox:e.site.top.boxes.item.find(e=>e.type===a.BoxType.Event),axios:(0,ey.q)(e),isEnabledEventEditForUser:e.app.brand.isEnabledEventEditForUser,brandLocale:e.app.brand.locale}))((0,z.C)(["components/organisms/site","constants"])(eB)),eH=u(W),eL=u(function({id:e,title:t,postTitle:i,boxType:a,boxId:c,releaseScheduleDate:d,releasedAt:l,categoryIndex:m,categoryIndexText:h,customReaction:p,isResigned:b,posterId:f,iconPath:y,name:u,isAdmin:x,viewableType:_,accountName:w,isPinned:A,like:j,comment:C,goodAnswer:z,customReactionSummary:T,quillDelta:I,Enquete:B,enqueteAnswer:U,enqueteAnsweredTotal:G,PostLikes:W,images:q,richTextImages:Q,videos:J,documents:ee,expandBody:et=!1,targetUserType:ei,targetGroupNames:en=[],isBookmarked:ea,detectedLanguages:es}){let{bookmarked:ec,handleBookmarkClick:eo,likeActiveColor:ed,likeNormalColor:er}=(0,H.G)(e,v._.Post,ea),el=(0,o.useSelector)(O.c),em=(0,Z.k)(c,m),eh=(0,R.V)(c,m),ep=(0,M.K1)(e,a),{isExpandedBody:eb,handleOnClickFoldedBody:ef}=((e,t,i)=>{let n=(0,o.useDispatch)(),a=(0,o.useSelector)(e=>((e,{postId:t})=>e.app.richTextFoldState[`_${t}`]?.expanded)(e,{postId:t})),{isExpandedBody:c,handleOnClickFoldedBody:d}=P(e||a,t,i);return{isExpandedBody:c,handleOnClickFoldedBody:(0,s.useCallback)(e=>{n((0,S.n1)({[`_${t}`]:{expanded:!0}})),d(e)},[t,d])}})(et,e,c),ey=!!W?.[0]?.upOrDown,eu=(0,ek.lB)(),ex=(0,n.Y)(L.M,{timeType:"absoluteAndRelative",showDetail:!1,isResigned:b,posterId:f,iconPath:y,name:u,isAdmin:x,viewableType:_,accountName:w,isPinned:A,releaseScheduleDate:d,releasedAt:l,targetUserType:ei,targetGroupNames:en}
3),eg=(0,n.Y)(V.R,{showDetail:!1,id:e,boxType:a,boxId:c,posterId:f,categoryIndex:m,isLikeActive:ey,categoryName:h??eh,likeCount:j,commentCount:C,goodAnswerCount:z,isEnableComment:em,reactions:el,customReaction:p,customReactionSummary:T,onCommentButtonClick:ep,buttonBookmarkProps:{bookmarked:ec,onClick:eo,activeColor:ed,normalColor:er}}),{showOriginal:ev,postToShow:eY,fetcher:eN,onTranslateToggle:e_}=(0,K.G)(e,{postTitle:i,quillDelta:I}),ew=(0,n.FD)("div",{className:"jsx-f5589a2efb320032 header-right",children:[(0,n.Y)(E.A,{children:(0,n.Y)(e$,{postId:e,posterId:f,title:t,boxId:c,boxType:a,viewableType:_,isAdminUser:x})}),(0,n.Y)(g(),{id:"f5589a2efb320032",children:".header-right.jsx-f5589a2efb320032{display:flex}"})]});I&&I.ops.map(e=>((0,eT.isImage)(e)&&(e.insert.image=(0,M.hw)(e.insert.image)),e));let eE=(0,r.gK)(a,e),eA={id:e,contents:eY.quillDelta,enableImageModal:!1,images:q,postLink:eE,isAdmin:x,translationEnabled:eu(es),folded:!eb,fetcher:eN,onTranslateToggle:e_,showOriginal:ev},eK=(0,n.FD)(n.FK,{children:[(0,n.Y)(N.W,{title:eY.postTitle,isDetail:!1,children:(0,n.Y)("div",{onClick:eb?void 0:ef,onKeyDown:e=>{"Enter"!==e.key||eb||ef(e)},role:"button","aria-expanded":eb,children:(0,n.Y)(eO,{...eA,disableWidgetTranslation:!0})})}),(0,M.DI)({images:Q,videos:J,documents:ee})&&(0,n.FD)("div",{className:g().dynamic([["6fa261556a5b4b78",[$.A.BOX_CONTENT_MAX_WIDTH]]])+" px-3",children:[(0,n.FD)("div",{className:g().dynamic([["6fa261556a5b4b78",[$.A.BOX_CONTENT_MAX_WIDTH]]])+" "+`${k.A.BOX_CONTENT_FILES} files`,children:[(0,n.Y)(F.N,{showDetail:!1,enableImageGallery:!1,videos:J,images:Q,route:eE}),(0,n.Y)(E.A,{children:(0,n.Y)(D.V,{documents:ee})})]}),(0,n.Y)(g(),{id:"6fa261556a5b4b78",dynamic:[$.A.BOX_CONTENT_MAX_WIDTH],children:`.files.__jsx-style-dynamic-selector{max-width:${$.A.BOX_CONTENT_MAX_WIDTH}px;margin:16px auto}`})]},"VideosAndPhotos"),(0,n.Y)(X.K,{enquete:B,enqueteAnswer:U,enqueteAnsweredTotal:G,postId:e})]});return(0,n.Y)(Y.J,{headerElement:ex,mainContentElement:eK,footerElement:eg,menuElement:ew,route:eE,"data-cy":"box-content"})});function eU({content:e,type:t,isSimple:i=!1,isQA:s=!1,isMasonry:c=!1,isHome:o=!1}){switch(t){case a.BoxType.Talk:if(c)return(0,n.Y)(eY.O,{...e});if(i)return(0,n.Y)(eS,{...e});if(s)return(0,n.Y)(ez,{...e});if(e.isRichText)return(0,n.Y)(eL,{...e});return(0,n.Y)(eH,{...e});case a.BoxType.Challenge:return(0,n.Y)(q.E,{...e});case a.BoxType.Event:return o?(0,n.Y)(eX,{...e}):(0,n.Y)(ev,{...e});default:return(0,n.Y)(W,{...e})}}},33208:(e,t,i)=>{i.d(t,{O:()=>P});var n=i(45023),a=i(51949),s=i.n(a),c=i(36439),o=i(52095),d=i.n(o),r=i(41471),l=i(27802),m=i(94744),h=i(70576),p=i(94689),b=i(93998),f=i(33614),y=i(50013),u=i(48208),x=i(44174),g=i(50362),v=i(54238),Y=i.n(v),N=i(49151);let _=Y()(async e=>await new Promise(function(t,i){let n=new Image;n.src=e,n.crossOrigin="Anonymous",n.onload=function(){let e=document.createElement("canvas"),a=e.getContext("2d");if(!a)return void i(Error("canvas.getContext is null"));e.width=n.width,e.height=n.height,a.drawImage(n,0,0);let s=a.getImageData(0,0,e.width,e.height).data,c=0,o=0;for(let e=0;e<s.length;e+=4){let t=s[e],i=s[e+1],n=s[e+2];128===t&&128===i&&128===n?c++:o++}t(c/(c+o))},n.onerror=function(e){i(e)}})>.3);var w=i(46618),E=i(58535),A=i(7228),K=i(25008),j=i.n(K),D=i(85121),C=i(27570),z=i(42392),T=i(35928);let I="masonry-image-size-chache",F=e=>{let t=window.localStorage.getItem(`${I}.${e}`);if(t)try{return JSON.parse(t)}catch(e){E.v.error("[error] masonry image cache parse error")}},k={fit:"crop"},$=(e,t,i,n,a)=>{if(!e)return t[0]??a;if(!n)return a;let s=n.ops.filter(h.isImage);return!s||s.length<1?i[0]??a:s[0].insert.image};function O(e){let t,i=(t=(0,N.q)(),e=>t.post("/error-log/imgix",e)),a=(0,c.useCallback)(e=>{if(!e||!(e instanceof HTMLImageElement))return;let t=e.src;_(t).then(e=>{e&&i({imageUrl:t})})},[i]);return(0,n.Y)(y.E,{...e,onMounted:a})}class M extends c.Component{constructor(e){super(e),this.cardRef=c.createRef();const{id:t,boxType:i,images:n,richTextImages:a,isRichText:s,quillDelta:o,defaultImage:d}=e;this.postLink=(0,m.gK)(i,t,{slug:e.slug});const r=$(s,n,a,o,d);if(!r){this.state={};return}const l=F(r);this.state={imageSize:l}}componentDidMount(){let{isRichText:e,images:t,richTextImages:i,quillDelta:n,defaultImage:a}=this.props,s=$(e,t,i,n,a);if(!s)return;let{imageSize:c}=this.state;if(c)return;let o=F(s);if(o)return void this.setState({imageSize:o});let d=new Image;d.src=(0,w.p)(encodeURI(s))+`?auto=format&fit=${k.fit}&ixlib=react-9.0.3&w=368&dpr=${window.devicePixelRatio||"1"}`,d.onload=()=>{var e,t;e=d.width,t=d.height,window.localStorage.setItem(`${I}.${s}`,JSON.stringify({width:Math.round(e),height:Math.round(t)})),this.setState({imageSize:{width:d.width,height:d.height}})}}createHeader(){let{isRichText:e,images:t,richTextImages:i,quillDelta:a,masonryBoxWidth:c,defaultImage:o}=this.props,d=$(e,t,i,a,o);if(!d)return null;let{imageSize:r}=this.state;if(!r)return null;let l=((e,t)=>{if(e<=0)return;let i=t.width/e,n=t.height/i;return t.height>t.width?e:n})(c??0,r);return(0,n.FD)("div",{className:s().dynamic([["d3a96783207d6455",[C.Kz[3]]]])+" imageArea",children:[(0,n.Y)(O,{"data-cy":"masonry-box-img",className:"card-img",src:d,height:l,width:c,style:{objectFit:"cover",objectPosition:"center",maxHeight:c||368,cursor:"pointer",borderBottomLeftRadius:0,borderBottomRightRadius:0},imgixParams:k}),(0,n.Y)(s(),{id:"d3a96783207d6455",dynamic:[C.Kz[3]],children:`.imageArea.__jsx-style-dynamic-selector{margin-bottom:-${C.Kz[3]}}`})]}
3,"VideosAndPhotos")}createPosterInfo(){let e=this.props;return(0,n.FD)(n.FK,{children:[(0,n.Y)("div",{className:s().dynamic([["25bbdc0049d6f584",[C.Kz[3]]]])+" card-header",children:(0,n.Y)(g.H,{timeType:"relative",userId:e.posterId,src:e.iconPath,size:18,nameSize:12,name:e.name,nameColor:e.colors.userName.color,nameFontWeight:"normal",isAdmin:e.isAdmin,officialIcon:e.officialIcon,tabActiveColor:e.colors.tabActive.color,containerClassName:"align-items-baseline",isResigned:e.isResigned})}),(0,n.Y)(s(),{id:"25bbdc0049d6f584",dynamic:[C.Kz[3]],children:`.card-header.__jsx-style-dynamic-selector{padding:${C.Kz[3]} 0 0;border-bottom:none;background-color:inherit}`})]})}createMainContent(){let e=this.props,t=e.user.roleId>=l.RoleId.AdminGuest,i=(0,A.o)(e.title,e.user.accountName,t),a=e.user.roleId>=l.RoleId.AdminGuest&&e.viewableType===z.g.Restricted;return(0,n.FD)("div",{className:s().dynamic([["909a0ba03875bafd",[C.Kz[7],C.Kz[7],C.EA.md,C.Kz[6],C.Kz[6],C.Z4[300],C.aK[400],C.Z4[200],C.aK[700]]]])+" card-body",children:[a?(0,n.Y)("div",{className:s().dynamic([["909a0ba03875bafd",[C.Kz[7],C.Kz[7],C.EA.md,C.Kz[6],C.Kz[6],C.Z4[300],C.aK[400],C.Z4[200],C.aK[700]]]])+" mt-2 mb-3 ml-2",children:(0,n.Y)(T.j,{})}):null,(0,n.Y)("h5",{className:s().dynamic([["909a0ba03875bafd",[C.Kz[7],C.Kz[7],C.EA.md,C.Kz[6],C.Kz[6],C.Z4[300],C.aK[400],C.Z4[200],C.aK[700]]]])+" "+(j()("card-title",D.B_)||""),children:(0,p.truncate)(i,(0,b.c$)(e.userAgent)?45:20)}),(0,n.Y)("div",{className:s().dynamic([["909a0ba03875bafd",[C.Kz[7],C.Kz[7],C.EA.md,C.Kz[6],C.Kz[6],C.Z4[300],C.aK[400],C.Z4[200],C.aK[700]]]]),children:this.createPosterInfo()}),(0,n.Y)(s(),{id:"909a0ba03875bafd",dynamic:[C.Kz[7],C.Kz[7],C.EA.md,C.Kz[6],C.Kz[6],C.Z4[300],C.aK[400],C.Z4[200],C.aK[700]],children:`.card-body.__jsx-style-dynamic-selector{padding:${C.Kz[7]} ${C.Kz[7]} 0}@media(max-width:${C.EA.md}){.card-body.__jsx-style-dynamic-selector{padding:${C.Kz[6]} ${C.Kz[6]} 0}}.card-title.__jsx-style-dynamic-selector{font-size:${C.Z4[300]};line-height:${C.aK[400]};font-weight:bold;margin-bottom:0}.card-text.__jsx-style-dynamic-selector{font-size:${C.Z4[200]};line-height:${C.aK[700]};white-space:normal}`})]})}render(){let{releasedAt:e,like:t,comment:i,PostLikes:a}=this.props;return(0,n.Y)(u.M,{route:this.postLink,children:(0,n.FD)("div",{ref:this.cardRef,className:"jsx-f91e8a555e4761f0 card-wrap",children:[(0,n.Y)(f.Z,{children:(0,n.Y)(S,{releasedAt:e,comment:i,like:t,PostLikes:a,headerElement:this.createHeader(),mainContentElement:this.createMainContent()})}),(0,n.Y)(s(),{id:"f91e8a555e4761f0",children:".card-wrap.jsx-f91e8a555e4761f0{border:none;overflow:visible}"})]})})}}function S({releasedAt:e,like:t,comment:i,PostLikes:a,headerElement:o,mainContentElement:r}){let l=2>=d().duration(d()().diff(e)).asDays(),m=a?.[0]?.upOrDown;return(0,n.FD)(c.Fragment,{children:[o,(0,n.Y)("div",{className:s().dynamic([["3ca1d871b3a446d1",[C.aK[700],C.Kz[6],C.Kz[7],C.Kz[7],C.EA.md,C.Kz[5],C.Kz[6],C.Kz[6],C.Kz[5],C.Z4[200]]]])+" main-content",children:r}),(0,n.FD)("div",{className:s().dynamic([["3ca1d871b3a446d1",[C.aK[700],C.Kz[6],C.Kz[7],C.Kz[7],C.EA.md,C.Kz[5],C.Kz[6],C.Kz[6],C.Kz[5],C.Z4[200]]]])+" footer-container",children:[(0,n.FD)("div",{className:s().dynamic([["3ca1d871b3a446d1",[C.aK[700],C.Kz[6],C.Kz[7],C.Kz[7],C.EA.md,C.Kz[5],C.Kz[6],C.Kz[6],C.Kz[5],C.Z4[200]]]])+" footer-reactions",children:[(0,n.Y)(x.GH,{count:t,active:m}),(0,n.Y)(x.q9,{count:i,"data-cy":"like-count"})]}),l?(0,n.Y)("div",{className:s().dynamic([["3ca1d871b3a446d1",[C.aK[700],C.Kz[6],C.Kz[7],C.Kz[7],C.EA.md,C.Kz[5],C.Kz[6],C.Kz[6],C.Kz[5],C.Z4[200]]]])+" new",children:"New"}):null]}),(0,n.Y)(s(),{id:"3ca1d871b3a446d1",dynamic:[C.aK[700],C.Kz[6],C.Kz[7],C.Kz[7],C.EA.md,C.Kz[5],C.Kz[6],C.Kz[6],C.Kz[5],C.Z4[200]],children:`.main-content.__jsx-style-dynamic-selector{display:flex;flex-direction:column;line-height:${C.aK[700]}}.footer-container.__jsx-style-dynamic-selector{display:flex;justify-content:space-between;padding:${C.Kz[6]} ${C.Kz[7]} ${C.Kz[7]}}@media(max-width:${C.EA.md}){.footer-container.__jsx-style-dynamic-selector{padding:${C.Kz[5]} ${C.Kz[6]} ${C.Kz[6]}}}.footer-reactions.__jsx-style-dynamic-selector{display:flex;gap:${C.Kz[5]}}.new.__jsx-style-dynamic-selector{font-size:${C.Z4[200]};font-weight:bold;color:rgba(0,0,0,.6)}`})]})}let P=(0,r.connect)(e=>({user:e.user,userAgent:e.user.userAgent,officialIcon:e.site.common.officialIcon.src,colors:e.site.common.colors}))(M)},35290:(e,t,i)=>{i.d(t,{U:()=>a});var n=i(56051);let a={[n.CategoryIndex.Accepting]:"Upcoming events",[n.CategoryIndex.Ended]:"Past events"}},44174:(e,t,i)=>{i.d(t,{q9:()=>g,_v:()=>v,GH:()=>x});var n=i(45023),a=i(51949),s=i.n(a),c=i(25008),o=i.n(c),d=i(41471),r=i(27570);function l({iconElement:e,count:t,tag:i="span",className:a,style:s,"data-cy":c}){return(0,n.FD)(i,{"data-cy":c,className:a,style:s,children:[e,!!t&&t>0&&(0,n.Y)("span",{className:"ml-1",children:t})]})}i(36439);var m=i(79918),h=i(53604),p=i(53828),b=i(47866);let f={styles:(0,n.Y)(s(),{id:"c3c19c3c6af5a250",children:"svg.jsx-c3c19c3c6af5a250{width:18px;height:18px}"}),className:"jsx-c3c19c3c6af5a250"},y={styles:(0,n.Y)(s(),{id:"4428d0c523a13e75",children:"span.jsx-4428d0c523a13e75{font-size:11px;font-weight:bold;line-height:1}"}),className:"jsx-4428d0c523a13e75"},u=e=>function({count:t,className:i,active:a,"data-cy":c}){let h;if(t<=0)return null;let p=(0,d.useSelector)(m.C9),b=(0,d.useSelector)(m.pu),u=(h=a?p:b,{styles:(0,n.Y)(s(),{id:"592328bd7c4916ac",dynamic:[r.Kz[3],h],children:`*.__jsx-style-dynamic-selector{padding:${r.Kz[3]} 0;color:${h}}`}),className:s().dynamic([["592328bd7c4916ac",[r.Kz[3],h]]])}),x=(0,n.Y)(e,{className:f.className});return(0,n.FD)(n.FK,{children:[(0,n.Y)(l,{"data-cy":c,iconElement:x,className:o()(i,y.className,u.className),count:t}),f.styles,y.styles,u.styles]})},x=u(h.A),g=u(p.A),v=u(b.A)}}]);
4//# sourceMappingURL=2201-8e85d3d47acca440.js.map
5//# debugId=e153099b-5ee9-5cc4-8421-3f52b8c122e9

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.