PageSourceSearch

https://www.expoplatform.co.uk/_next/static/chunks/75805-fdd8c86511c68173.js

js expoplatform.co.uk collected 2026-10-08 11:10:51 UTC 97,259 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[75805,80408],{1989:function(e,t,o){var n={"./ListContent":[20718,9,20718],"./ListContent.tsx":[20718,9,20718],"./TreeContent":[93466,9,84819,55616],"./TreeContent.tsx":[93466,9,84819,55616],"./__tests__/ListContent.test":[80141,7,80141],"./__tests__/ListContent.test.tsx":[80141,7,80141],"./__tests__/TreeContent.test":[96997,7,96997],"./__tests__/TreeContent.test.tsx":[96997,7,96997]};function i(e){if(!o.o(n,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=n[e],i=t[0];return Promise.all(t.slice(2).map(o.e)).then((function(){return o.t(i,16|t[1])}))}i.keys=function(){return Object.keys(n)},i.id=1989,e.exports=i},94361:function(e,t,o){"use strict";o.d(t,{default:function(){return oo}});var n=o(57437),i=o(2265),r=o(21170),s=o(62069),a=o(46387),l=o(55788),d=o(2713),c=o(30260),u=o(14672),p=o(97910),m=o(39155),h=o(95576),g=o(53431),x=o(67051),v=o(50290),b=o(19902),f=o(31691),_=o(82156),j=o(89938),y=o(6328),Z=o(45617),C=o(25440),w=o(13241),k=o(39864),S=o(62944),T=o(70870),I=o(6551),M=o(48236),P=o(74663),B=o(73147),A=o(75244),E=o(51072),F=o(17144),G=o(2363),R=o(7220),L=o(82264),W=o(90154),N=o(74506),D=o(68311),z=o(30592),H=o(35773);
1const O={joinStatus:"none",changeJoinStatus:()=>{},hasPublishRights:!1,setHasPublishRights:()=>{}},$=(0,i.createContext)(O),U=()=>(0,i.useContext)($);var q=e=>{let{children:t,initJoinStatus:o,initHasPublishRights:r}=e;const[s,a]=(0,i.useState)(o),[l,d]=(0,i.useState)(!!r),c=(0,i.useCallback)((e=>{a(e),d("joined"===e)}),[]),u=(0,i.useMemo)((()=>({joinStatus:s,changeJoinStatus:c,hasPublishRights:l,setHasPublishRights:d})),[c,l,s]);return(0,n.jsx)($.Provider,{value:u,children:t})};const V={iconButton:{marginRight:"8px",flexShrink:0},bgWrapper:{"& > .MuiBox-root > .MuiBox-root":{borderRadius:"16px 16px 0 0"}},imageWrapper:{"& .MuiPaper-root":{height:190,border:"initial",borderRadius:"0 !important"}},content:{display:"flex",p:3,flexWrap:{xs:"wrap",sm:"nowrap"}},textInfo:{width:"100%",wordBreak:"break-word",minWidth:0,mb:1,maxWidth:{xs:"initial",sm:"calc(100% - 156px - 24px)"},ml:{xs:0,sm:-2.5}},textWithDots:{display:"inline-flex",alignItems:"center",color:"colors.textSecondary",m:{xs:"8px 0",sm:0}},actionButtons:{position:"relative",borderRadius:"16px 16px 0 0",overflow:"hidden","& .MuiBox-root":{display:"none",position:"absolute",top:0,bottom:0,right:0,left:0,justifyContent:"center",alignItems:"center"},"& .actionButtons > button":{mx:.5},"&:hover .MuiBox-root":{display:"flex",backgroundColor:"rgba(0, 0, 0, 0.3)"}},hide:{display:"none"},invite:{color:"colors.primary",cursor:"pointer"},spanWithDot:{ml:1,"& > div":{flexWrap:"wrap"}},menuItemBorder:{borderTop:"1px solid",borderColor:"colors.borderGreyLight","&:only-child":{borderTop:"none"}},addPhotoButton:{transform:"translate(-44px, 34px)",zIndex:3},imageButtonsWrapper:{mx:1,"& > .MuiButton-root.MuiButtonBase-root":{height:42,my:.75,boxShadow:"none"}},logo:{mb:-8,"&, & > div":{zIndex:2,minHeight:156,minWidth:156,transform:"translateY(-25%)","& .MuiCardMedia-root":{border:"1px solid",borderColor:"colors.borderGreyLight",borderRadius:"50% !important",objectFit:"contain",zIndex:2,transform:"translateY(-25%)",maxHeight:156,maxWidth:156},"& .MuiGrid-root":{display:"none"}}},dropzone:{"& > div":{borderRadius:"50% !important",minHeight:156,minWidth:156}}},K={header:{apiPath:"setHeaderImage",message:"Background saved!",propName:"img_header"},logo:{apiPath:"setLogo",message:"Logo saved!",propName:"img_logo"}},J={iconButtonSx:V.iconButton,iconButtonSize:"large",MenuListProps:{"aria-labelledby":"settings-button"}},Q={isCircleCropper:!0,aspectRatio:1},Y={aspectRatio:7.2};var X=e=>{let{isPrivate:t=!0,group:o,togglePopup:s,sx:d}=e;var c,O,$;const{t:q}=(0,l.$G)(),X=(0,p.t)(),ee=(0,i.useRef)(null),te=(0,i.useRef)(null),oe=(0,u.CGy)(u.BY5),ne=(0,u.CGy)(u.RT$),ie=(0,u.CGy)(u.n5E),re=(0,B.v)(),se=(0,f.Z)(),ae=(0,_.default)(se.breakpoints.down("sm")),{joinStatus:le,changeJoinStatus:de}=U(),[ce,ue]=(0,i.useState)(o.bg?[{img64:o.bg}]:[]),[pe,me]=(0,i.useState)(o.logo?[{img64:o.logo}]:[]),[he,ge]=(0,i.useState)(!1),{showSuccessMessage:xe}=(0,R.Z)(),{copy:ve}=(0,A.Z)(),be=(0,i.useMemo)((()=>{var e,t;return!!oe&&ie===(null===(t=o.admin)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.id)}),[ie,o.admin,oe]),fe=(0,i.useMemo)((()=>{var e;const t=null!==(e=o.membersCount)&&void 0!==e?e:0,n="joined"===o.joinStatus,i="joined"===le;return n===i?t:i?t+1:t-1}),[o.membersCount,o.joinStatus,le]),_e=(0,i.useMemo)((()=>[(0,n.jsx)(a.Z,{variant:"subtitle2",children:q(D.zr[D.pH[o.privacy]]||"common.public")},1),fe?(0,n.jsx)(a.Z,{variant:"subtitle2",children:q("groups.members_count",{count:fe})},2):null,be?(0,n.jsx)(a.Z,{sx:V.invite,variant:"subtitle2",onClick:s,children:q("groups.groups_top_block.invite_new_members")},3):null]),[be,fe]),je=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"header";const n=await(0,M.R8)(e,(0,P.t)());if(!n.length)return;const i=n[0],r="url"in i?i.url:"";if(!r)return;const{apiPath:s,message:a,propName:l}=K[t];(0,M.k_)("".concat((0,P.t)(),"/api/v1/groups/").concat(s),{body:{id:o.id,[l]:r}}).then((e=>{200===(null===e||void 0===e?void 0:e.code)&&xe(q(a))}))};(0,i.useEffect)((()=>{var e;const t=null===(e=ce[0])||void 0===e?void 0:e.img64;t&&!(0,I.fg)(t)&&je(ce)}),[ce]),(0,i.useEffect)((()=>{var e;const t=null===(e=pe[0])||void 0===e?void 0:e.img64;t&&!(0,I.fg)(t)&&je(pe,"logo")}),[pe]);const ye=async e=>function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";e&&ve("invite"===e?o.inviteLink||"":re("/groups/".concat(o.id)),{successMessage:"common.link_copied"})}(e.currentTarget.getAttribute("data-link")||""),Ze=()=>X.push("/groups"),Ce={pathname:"/profile/groups",query:{edit:String(o.id)}},we=!ne&&o.isUserActive,ke=null===(c=pe[0])||void 0===c?void 0:c.img64;return(0,n.jsxs)(b.Z,{elevation:0,variant:"outlined",sx:d,children:[(0,n.jsx)(r.Z,{sx:V.imageWrapper,children:be?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.Z,{sx:[V.bgWrapper,ce.length?V.hide:{}
1],children:(0,n.jsx)(L.Z,{setImage:ue,zoneWidth:100,zoneHeight:190,maxSize:2e6,formats:".png, .jpg",ref:te,cropperProps:Y})}),(null===ce||void 0===ce||null===(O=ce[0])||void 0===O?void 0:O.img64)&&(0,n.jsxs)(r.Z,{sx:V.actionButtons,children:[(0,n.jsx)(E.Z,{image:{url:ce[0].img64},asIs:!0}),(0,n.jsxs)(r.Z,{className:"actionButtons",children:[(0,n.jsx)(W.Z,{onClick:()=>{var e,t;return null===(t=te.current)||void 0===t||null===(e=t.open)||void 0===e?void 0:e.call(t)}}),(0,n.jsx)(N.Z,{onClick:()=>ue([])})]})]})]}):(0,n.jsx)(E.Z,{image:{url:null===($=ce[0])||void 0===$?void 0:$.img64,width:1414}})}),(0,n.jsxs)(r.Z,{sx:V.content,children:[be?(0,n.jsxs)(r.Z,{display:"flex",children:[(0,n.jsxs)(r.Z,{sx:V.logo,children:[(0,n.jsx)(r.Z,{sx:[V.dropzone,ke?V.hide:{}],children:(0,n.jsx)(L.Z,{setImage:me,zoneWidth:158,zoneHeight:158,maxSize:2e6,formats:".png, .jpg",ref:ee,variant:"image",cropperProps:Q})}),ke&&(0,n.jsx)(S.default,{image:{src:ke,width:158,height:158}})]}),(0,n.jsx)(r.Z,{children:(0,n.jsx)(z.Z,{open:he,onClose:ge.bind(null,!1),placement:"bottom",disableHoverListener:!0,arrow:!0,text:(0,n.jsxs)(r.Z,{sx:V.imageButtonsWrapper,children:[(0,n.jsx)(W.Z,{buttonType:"button",onClick:()=>{var e,t;return null===(t=ee.current)||void 0===t||null===(e=t.open)||void 0===e?void 0:e.call(t)},children:q(ke?"groups.groups_top_block.edit_logo":"groups.groups_top_block.add_logo")}),ke&&(0,n.jsx)(N.Z,{buttonType:"button",onClick:()=>me([]),children:q("groups.groups_top_block.delete_logo")})]}),children:(0,n.jsx)(h.Z,{color:"primary",sx:V.addPhotoButton,className:"rounded",size:"large","aria-label":q("groups.groups_top_block.manage_logo"),onClick:ge.bind(null,!0),children:(0,n.jsx)(C.Z,{})})})})]}):(0,n.jsx)(r.Z,{sx:[V.logo,{mr:"45px"}],children:(0,n.jsx)(S.default,{image:{src:o.logo,width:158,height:158}})}),(0,n.jsxs)(r.Z,{sx:V.textInfo,children:[(0,n.jsx)(a.Z,{variant:"h2",noWrap:!ae,children:o.title}),(0,n.jsxs)(r.Z,{display:"flex",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",mt:1,children:[(0,n.jsxs)(r.Z,{sx:V.textWithDots,children:[t?(0,n.jsx)(Z.Z,{"data-testid":"lock"}):(0,n.jsx)(w.Z,{}),(0,n.jsx)(F.Z,{textArray:_e,isSetAsHTML:!1,sx:V.spanWithDot})]}),(0,n.jsxs)(r.Z,{display:"flex",children:[(!t||be)&&"joined"===le&&(0,n.jsxs)(T.Z,{id:"dropdown-menu",...J,children:[o.inviteLink&&(0,n.jsxs)(v.Z,{"data-link":"invite",onClick:ye,children:[(0,n.jsx)(g.Z,{children:(0,n.jsx)(y.Z,{fontSize:"small"})}),(0,n.jsx)(x.Z,{children:q("groups.groups_top_block.copy_invite_link")})]}),o.shareLink&&(0,n.jsxs)(v.Z,{"data-link":"share",onClick:ye,children:[(0,n.jsx)(g.Z,{children:(0,n.jsx)(k.Z,{fontSize:"small"})}),(0,n.jsx)(x.Z,{children:q("groups.groups_top_block.share_link_to_this_group")})]}),(0,n.jsx)(v.Z,{sx:V.menuItemBorder,onClick:()=>(0,M.k_)("".concat((0,P.t)(),"/api/v1/groupsAccount/leave"),{body:{id:o.id}}).then((e=>200===(null===e||void 0===e?void 0:e.code)&&xe(q("groups.groups_top_block.leaved")))).then((()=>de("none"))),children:(0,n.jsx)(x.Z,{children:q("groups.groups_top_block.leave_this_group")})}),be&&(0,n.jsx)(v.Z,{onClick:()=>(0,M.k_)("".concat((0,P.t)(),"/api/v1/groups/delete"),{method:"DELETE",body:{id:o.id}}).then((e=>200===(null===e||void 0===e?void 0:e.code)&&xe(q("common.deleted")))).then((()=>Ze())),children:(0,n.jsx)(x.Z,{children:q("groups.groups_top_block.delete_this_group")})})]}),be?(0,n.jsx)(H.Z,{href:Ce,children:(0,n.jsx)(m.Z,{color:"primary",startIcon:(0,n.jsx)(j.Z,{}),variant:"contained",children:q("groups.groups_top_block.edit_group")})}):we&&(0,n.jsx)(G.Z,{id:o.id,status:le,joinFunction:e=>{de(e),t&&"none"===e&&Ze()},privacy:o.privacy,isButtonInGroup:!0})]})]})]})]})]})},ee=o(75989),te=o(5587),oe=o(65364),ne=o(18856),ie=o(41530),re=o(21015),se=o(50365),ae=o(30279),le=o(95422),de=o(69797),ce=o(99376),ue=o(95318),pe=o(83983),me=o(67567),he=o(14932),ge=o(79965),xe=o(83739),ve=o(73192),be=o(67293),fe=o(60713),_e=o(5969),je=o(78663),ye=o(66593),Ze=o(12824),Ce=o(811),we=o(92566),ke=o(72608),Se=o(72291);const Te={textareaWrapper:{my:"16px","& .MuiFormControl-root":{height:"100px","& .MuiInputBase-inputMultiline":{height:"100px !important"},"& textarea":{p:"8px"}}}};var Ie=e=>{let{onClose:t,onSave:o}=e;const{t:s}=(0,l.$G)(),[d,c]=(0,i.useState)([]),[u,p]=(0,i.useState)(""),m=e=>c(d.includes(e)?d.filter((t=>t!==e)):[...d,e]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.Z,{children:s("groups.groups_reject_modal.please_clarify_why_do_you")}),(0,n.jsx)(a.Z,{children:s("groups.groups_reject_modal.user_will_get_a_notification")}),(0,n.jsx)(r.Z,{display:"flex",flexDirection:"column",gap:"8px",children:["groups.groups_reject_modal.not_related_to_the_post","groups.groups_reject_modal.spam","groups.groups_reject_modal.advertising","groups.groups_reject_modal.something_else"].map(((e,t)=>(0,n.jsx)(ke.Z,{label:s(e),checked:d.includes(t+1),onChange:m.bind(null,t+1),control:(0,n.jsx)(we.Z,{name:e})},e)))}),d.includes(4)&&(0,n.jsx)(r.Z,{sx:Te.textareaWrapper,children:(0,n.jsx)(Se.Z,{id:"report",fullWidth:!0,name:"report",placeholder:s("c
1ommon.please_clarify_the_reason"),onChange:e=>p(e.target.value),value:u,multiline:!0})}),(0,n.jsxs)(ie.Z,{direction:"row",gap:"12px",justifyContent:"center",mt:4,children:[(0,n.jsx)(ge.Z,{color:"neutral",onClick:t,children:s("common.cancel")}),(0,n.jsx)(ge.Z,{onClick:()=>o(d,u),children:s("common.reject")})]})]})},Me=o(27342);var Pe=e=>{let{initialValue:t=1,onSave:o,onClose:r}=e;const{t:s}=(0,l.$G)(),[a,d]=(0,i.useState)(t);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Me.Z,{value:a,onChange:(e,t)=>{d(Number(t))}}),(0,n.jsxs)(ie.Z,{direction:"row",gap:"12px",justifyContent:"center",children:[(0,n.jsx)(ge.Z,{color:"neutral",onClick:r,children:s("common.cancel")}),(0,n.jsx)(ge.Z,{onClick:()=>{o(1===a)},children:s("common.save")})]})]})},Be=o(4456),Ae=o(57015),Ee=o(13411),Fe=o(86451),Ge=o(75043);const Re={button:{"&.MuiButton-root":{minWidth:130,height:42}},controls:{display:"flex",alignItems:"center",justifyContent:"space-between",mt:1}},Le=e=>{let{post:t,isManager:o,togglePage:s=(()=>{}),toggleEdit:d,onDelete:c,onDeleteWithModal:h,group:b,editPublication:f,isRejected:_,extended:Z,likePublication:C,setPublications:k}=e;var S,T;const{t:I}=(0,l.$G)(),E=(0,p.t)(),{showSuccessMessage:F,showErrorMessage:G}=(0,R.Z)(),{copy:L}=(0,A.Z)(),W=(0,u.CGy)(u.n5E),N=(0,B.v)(),D=(0,i.useMemo)((()=>({id:t.owner_id,type:"visitors"})),[t.owner_id]),z=(0,u.CGy)((e=>(0,u.gH1)(e,D))),H=t.author||{},O=null===b||void 0===b?void 0:b.id,$=W===H.id,[U,q]=(0,i.useState)(0===(null===t||void 0===t?void 0:t.status)),[V,K]=(0,i.useState)(""),J=()=>K(""),Q=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";O?(0,M.k_)("".concat((0,P.t)(),"/api/v1/GroupsPosts/setstatus"),{body:{id:t.id,group_id:O,status:2,reason:e,reason_text:o}}).then((e=>{200===(null===e||void 0===e?void 0:e.code)&&c&&(J(),c(t.id),F(I("groups.group_publication.post_rejected")))})):G(I("error.something_went_wrong"))},Y=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];O?(0,M.k_)("".concat((0,P.t)(),"/api/v1/GroupsPosts/save"),{body:{group_id:O,id:t.
1id,visible:e}}).then((e=>{200===(null===e||void 0===e?void 0:e.code)&&e.data&&f&&(f(e.data),F(I("common.saved")))})).then((()=>J())):G(I("error.something_went_wrong"))},X=(0,i.useMemo)((()=>({visible:{Component:(0,n.jsx)(Pe,{onClose:J,initialValue:+t.visible||2,onSave:Y}),settings:{width:"500px",title:I("groups.group_publication.visibility_settings")}},reject:{Component:(0,n.jsx)(Ie,{onClose:J,onSave:Q}),settings:{width:"560px",title:I("groups.group_publication.report")}}})),[t.visible,V]);if(!o&&!$&&U)return null;const ee=Boolean(V.length),te=V&&(null===(S=X[V])||void 0===S?void 0:S.Component),oe=()=>{if(t.id&&(null===b||void 0===b?void 0:b.id)){const e=N("/groups/".concat(b.id,"?publicationId=").concat(t.id));L(e,{successMessage:"common.copied"})}else G(I("groups.group_publication.share_link_is_absent"))},ne=()=>K("reject"),ie=()=>{O?(0,M.k_)("".concat((0,P.t)(),"/api/v1/GroupsPosts/setstatus"),{body:{id:t.id,group_id:O,status:1}}).then((e=>{if(200===(null===e||void 0===e?void 0:e.code)){if(q(!1),F(I("groups.group_publication.post_approved")),!f)return;f({...t,status:1})}})):G(I("error.something_went_wrong"))},re=1===t.visible,se={Component:re?w.Z:ye.Z,tooltipText:re?"Public":"Private"};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(Be.Z,{publication:(0,Ge.$_)(t,b),togglePage:s,sharePublication:oe,hideInteractionsSection:_,PublicationConfirmation:()=>_||!U?null:(0,n.jsxs)(r.Z,{sx:Re.controls,children:[(0,n.jsx)(r.Z,{children:(0,n.jsx)(Ce.Z,{status:"pending",label:I("common.pending")})}),o&&(0,n.jsxs)(r.Z,{display:"flex",flexWrap:"wrap",children:[(0,n.jsx)(m.Z,{color:"neutral",onClick:ne,children:I("common.reject")}),(0,n.jsx)(m.Z,{variant:"contained",color:"secondary",sx:[{ml:1}],startIcon:(0,n.jsx)(_e.Z,{}),onClick:ie,children:I("groups.group_publication.approve")})]})]}),isGroupPost:t.from_group,extended:Z,iconData:se,pageType:"group_type",commentsType:"group_post",likePublication:C,setPublications:k,children:[!U&&(0,n.jsxs)(v.Z,{onClick:oe,children:[(0,n.jsx)(g.Z,{children:(0,n.jsx)(y.Z,{fontSize:"small"})}),(0,n.jsx)(x.Z,{children:(0,n.jsx)(a.Z,{variant:"body2",children:I("groups.group_publication.copy_link_to_post")})})]}),!U&&($||o)&&(0,n.jsxs)(v.Z,{onClick:t.article?null===s||void 0===s?void 0:s.bind(null,{publicationId:t.id,editable:!0}):null===d||void 0===d?void 0:d.bind(null,{id:t.id}),children:[(0,n.jsx)(g.Z,{children:(0,n.jsx)(j.Z,{fontSize:"small"})}),(0,n.jsx)(x.Z,{children:(0,n.jsx)(a.Z,{variant:"body2",children:I("groups.group_publication.edit_post")})})]}),!t.from_group&&!$&&(0,n.jsx)(Ae.Z,{id:H.id,ownerType:"visitor",children:(0,n.jsxs)(v.Z,{children:[(0,n.jsx)(g.Z,{children:(0,n.jsx)(fe.Z,{fontSize:"small"})}),(0,n.jsx)(x.Z,{children:(0,n.jsx)(a.Z,{variant:"body2",children:I("common.request_a_meeting")})})]})}),!t.from_group&&!$&&(0,n.jsx)(Fe.default,{id:H.id,ownerType:"visitor",children:(0,n.jsxs)(v.Z,{children:[(0,n.jsx)(g.Z,{children:(0,n.jsx)(je.Z,{fontSize:"small"})}),(0,n.jsx)(x.Z,{children:(0,n.jsx)(a.Z,{variant:"body2",children:I("common.send_a_message")})})]})}),!t.from_group&&!$&&(0,n.jsx)(v.Z,{onClick:()=>!t.from_group&&!$&&H.id&&E.push("/participant/".concat(H.id)),children:(0,n.jsx)(x.Z,{children:(0,n.jsx)(a.Z,{variant:"body2",children:I("common.view_profile")})})}),!t.from_group&&!$&&(0,n.jsx)(Ee.default,{id:H.id,ownerType:"visitor",children:(0,n.jsx)(v.Z,{children:(0,n.jsx)(x.Z,{children:(0,n.jsx)(a.Z,{variant:"body2",children:I(z?"common.remove_user_from_connections":"common.add_user_to_connections")})})})}),(o||$)&&!t.article&&(0,n.jsx)(v.Z,{onClick:()=>K("visible"),children:(0,n.jsx)(x.Z,{children:(0,n.jsx)(a.Z,{variant:"body2",children:I("groups.group_publication.visibility_settings")})})}),(o||$)&&!U&&(0,n.jsx)(v.Z,{onClick:()=>{h&&h(t.id)},children:(0,n.jsx)(x.Z,{children:(0,n.jsx)(a.Z,{variant:"body2",children:I("groups.group_publication.delete_this_post")})})})]}),V&&(0,n.jsx)(Ze.Z,{onClose:J,open:ee,...(null===(T=X[V])||void 0===T?void 0:T.settings)||{},children:te})]})};var We=(0,i.memo)(Le,Ge.BS),Ne=o(83543),De=o(59280),ze=o(10310),He=o(68184),Oe=o(61615),$e=o(39483),Ue=o(91682),qe=o(23082);var Ve,Ke=e=>{let{groupId:t,addArticle:o,editArticle:r,publicationData:s,children:a,savePost:l,closeCreationModal:d}=e;const c=(0,p.t)(),u=(0,ce.useSearchParams)()||new URLSearchParams,m=parseInt(u.get("publicationId")||"0",10),h=u.get("edit")||!1,g=u.get("comment")||!1,x=(0,qe.Z)(),v=!["false",!1
1].includes(h),b=!["false",!1].includes(g);(0,i.useEffect)((()=>{b&&x("#comments-block")}),[m,b,x]);const{publication:f,open:_}=s,j=()=>{c.push("/groups/".concat(t)),d()},y=Boolean(m)&&!v,Z=null===f||void 0===f?void 0:f.article;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)($e.Z,{goBack:j,article:(0,Ge.D9)(f),isPreview:y,onSaveCallback:async e=>{var n,i,s;if(!t)return Promise.reject();const{id:a,text:l="",headerImage:d=[],heading:c=""}=e,u=(null===(n=d[0])||void 0===n?void 0:n.img64)?await(0,M.R8)(d,(0,P.t)()):[{url:"",img64:""}],p={...a&&{id:a},group_id:t,header_image:(null===u||void 0===u||null===(i=u[0])||void 0===i?void 0:i.url)||(null===u||void 0===u||null===(s=u[0])||void 0===s?void 0:s.img64),text:l,title:c,article:!0};return(0,M.k_)("".concat((0,P.t)(),"/api/v1/GroupsPosts/save"),{body:p}).then((e=>{200===(null===e||void 0===e?void 0:e.code)&&e.data&&(a?r(e.data):o(e.data))}))},children:a}),!Z&&(0,n.jsx)(Ue.Z,{open:null!==_&&void 0!==_&&_,onClose:d,post:f,onSaveCallback:e=>l(e).then((e=>(j(),e)))})]})};!function(e){e[e.Public=0]="Public",e[e.PublicWithApproval=1]="PublicWithApproval",e[e.Private=2]="Private"}(Ve||(Ve={}));const Je={selectWrapper:{display:"flex",justifyContent:"flex-end",gap:"8px",mb:2,mt:1},emptyStateWrapper:{"&.MuiPaper-rounded":{borderRadius:"10px"},"& > .MuiBox-root":{pt:6.5,pb:5},"& p":{marginBlockStart:0,marginBlockEnd:0}},emptyStateSubtitle:{display:"block"}},Qe=[{value:"DESC",text:"common.newest_first"},{value:"ASC",text:"common.oldest_first"}];var Ye;!function(e){e[e.Pending=0]="Pending",e[e.Approved=1]="Approved",e[e.Rejected=2]="Rejected"}(Ye||(Ye={}));var Xe=e=>{let{isManager:t,group:o}=e;var a,d;const{t:c}=(0,l.$G)(),{showSuccessMessage:m}=(0,R.Z)(),h=(0,p.t)(),g=(0,ue.Z)(),x=(0,ce.useSearchParams)()||new URLSearchParams,v=x.get("publicationId")||"",f=x.get("edit")||"",{hasPublishRights:_,joinStatus:j}=U(),y=(0,u.CGy)(u.n5E),[Z,C]=(0,i.useState)("DESC"),[w,k]=(0,i.useState)("all"),[S,T]=(0,i.useState)(!0),[B,A]=(0,i.useState)(0),[E,F]=(0,i.useState)([]),[G,L]=(0,i.useState)({}),[W,N]=(0,i.useState)({open:!1}),[D,z]=(0,i.useState)(!1),H=o.id,O=(0,u.CGy)(u.RT$),$=Boolean(v),q=(0,i.useMemo)((()=>[{text:"groups.group_feed_content.all_publications",value:"all"},...O?[]:[{text:"groups.group_feed_content.my_publications",value:"my"}],...!O&&t?[{text:"groups.group_feed_content.pending_publications",value:0},{text:"common.approved",value:1},{text:"common.rejected",value:2}]:[]]),[O,t]),V=(0,i.useMemo)((()=>q.map((e=>({...e,text:c(e.text)})))),[q,c]),K=(0,i.useMemo)((()=>Qe.map((e=>({...e,text:c(e.text)})))),[c]),J=(0,i.useMemo)((()=>{var e,t,n;return[...(null===(e=o.admin)||void 0===e?void 0:e.map((e=>{let{id:t}=e;return t})))||[],...(null===(t=o.members)||void 0===t?void 0:t.map((e=>{let{id:t}=e;return t})))||[],...(null===(n=o.moderators)||void 0===n?void 0:n.map((e=>{let{id:t}=e;return t})))||[],...E.map((e=>{let{author:t}=e;return null===t||void 0===t?void 0:t.id})).filter((e=>Boolean(e)))||[]]}),[o,E]);(0,De.Z)(J),(0,ze.Z)({visitors:J,exhibitors:null===(a=o.sponsors)||void 0===a?void 0:a.map((e=>null===e||void 0===e?void 0:e.exhibitor_id))});const Q=function(){let{reset:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=(0,he.stringify)({group_id:H,my_post:"my"===w,offset:e?0:B,order:Z,...Ye[w]&&{status:w}});(0,M.k_)("".concat((0,P.t)(),"/api/v1/GroupsPosts/list?").concat(t),{method:"GET"}).then((t=>{if(200!==(null===t||void 0===t?void 0:t.code)||!(0,I.Kn)(t.data))return;const{offset:o=0,posts:n=[],exist_more:i}=t.data||{};T(Boolean(i)),F(e?n:[...E,...n]),A(e?o:B+o)})).finally((()=>{z(!1)}))};(0,i.useEffect)((()=>{!H||o.privacy===Ve.Private&&"none"===j||(z(!0),Q({reset:!0}))}),[H,w,Z,j]),(0,i.useEffect)((()=>{v&&"joined"!==j&&h.replace("".concat(g,"/groups/").concat(H))}),[v,j,h,H,g]);const Y=function(){let{publicationId:e=0,editable:t=!1,comment:o=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!H&&0!==H)return;const n=(0,he.stringify)({publicationId:e,edit:t,comment:o}),i=(0,I.oo)("".concat(g,"/groups/").concat(H,"?").concat(n));h.push(i)};(0,i.useEffect)((()=>{$&&L({publication:E.find((e=>{let{id:t}=e;return t===+v}))})}),[$]),(0,i.useEffect)((()=>
1{if(!+(v||0)||G.publication)return;const e=(0,he.stringify)({id:v,group_id:H});(0,M.k_)("".concat((0,P.t)(),"/api/v1/GroupsPosts/get?").concat(e),{method:"GET"}).then((e=>{200===(null===e||void 0===e?void 0:e.code)&&e.data&&L({publication:e.data})}))}),[v]);const X=e=>{let{id:t=0,modalType:o="post"}=e;if(_){const e=t&&E.find((e=>e.id===t))||{};L((t=>({open:!t.open,publication:{...e,modalType:o}})))}},ee=e=>{F([e,...E]),L({...G,publication:e})},te=e=>{F(E.map((t=>t.id===e.id?e:t))),L({...G,publication:e})},oe=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return N({open:!W.open,...e&&{id:e}})},ne=e=>F(E.filter((t=>t.id!==e))),ie=e=>{let{publicationId:t,likeId:o}=e;return F(E.map((e=>e.id===t?{...e,likes_counter:o?e.likes_counter+1:e.likes_counter-1,current_user_like_id:o}:e)))},re=async e=>{var t,o;if(!H)return Promise.reject();const{video:n,text:i,asGroup:r,visible:s,image:a,id:l,embed:d}=e,c="".concat((0,P.t)(),"/api/v1/groups/video"),u=n?await(0,M.O$)([n],c,H):[],p=a?await(0,M.R8)(a,(0,P.t)()):[{url:"",img64:""}],m=a.length>0,{name:h,title:g,size:x,url:v}=(null===u||void 0===u?void 0:u[0])||{},b={...l&&{id:l},group_id:H,media_type:m?1:2,...m?{}:{video_type:d?1:2},images:[(null===p||void 0===p||null===(t=p[0])||void 0===t?void 0:t.url)||(null===p||void 0===p||null===(o=p[0])||void 0===o?void 0:o.img64)],videos:[{url:d||v,title:h||g,size:x}],text:i,from_group:r,visible:1===s,article:!1};return(0,M.k_)("".concat((0,P.t)(),"/api/v1/GroupsPosts/save"),{body:b}).then((e=>200===(null===e||void 0===e?void 0:e.code)&&(0,I.Kn)(e.data)?(l?te(e.data):ee(e.data),e):Promise.reject()))},se=()=>L({publication:{},open:!1}),{publication:ae,open:le}=G,de=E.length,fe=de>0,_e=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.Z,{component:"span",sx:Je.emptyStateSubtitle,children:c("groups.group_feed_content.you_can_start_with_creating")}),c("groups.group_feed_content.and_inviting_people_to_your")]}),je=2===w,ye=Boolean(ae&&(null===(d=ae.author)||void 0===d?void 0:d.id)===y),Ze="true"!==f||ye;return(0,i.useEffect)((()=>{"true"!==f||ye||h.replace("".concat(g,"/groups/").concat(H))}),[f,H,ye,h,g]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.ZP,{item:!0,xs:12,children:$&&Ze?(0,n.jsx)(Ke,{groupId:H,addArticle:ee,editArticle:te,savePost:re,closeCreationModal:se,publicationData:G,children:ae&&(0,n.jsx)(We,{post:ae,group:o,togglePage:Y,toggleEdit:X,onDelete:ne,onDeleteWithModal:oe,editPublication:e=>{te(e),L((t=>({...t,publication:e})))},isRejected:je,isManager:t,extended:!0,likePublication:ie,setPublications:F})}):(0,n.jsxs)(n.Fragment,{children:["joined"===j&&(0,n.jsx)(r.Z,{sx:{mb:3,mt:1},children:(0,n.jsx)(Oe.Z,{open:Boolean(le),post:ae,onClose:se,isManager:t,onSaveCallback:re,isGroup:!0,openModal:X,writeArticleHandler:Y,disabled:!_})}),(0,n.jsxs)(r.Z,{sx:Je.selectWrapper,children:[(0,n.jsx)(ve.Z,{options:V,value:w,onChange:e=>{k(e)},name:"sortBy",disabled:D}),(0,n.jsx)(ve.Z,{options:K,value:Z,onChange:e=>{C(e)},name:"sortBy",disabled:D})]}),(0,n.jsx)(r.Z,{children:(0,n.jsx)(be.default,{isLoading:D,children:(0,n.jsxs)(pe.Z,{dataLength:de,next:()=>Q({}),hasMore:S,loader:(0,n.jsx)(Ne.Z,{}),style:{overflow:"visible"},scrollThreshold:.6,children:[fe&&E.map((e=>(0,n.jsx)(We,{post:e,isManager:t,togglePage:Y,toggleEdit:X,onDelete:ne,onDeleteWithModal:oe,group:o,editPublication:te,isRejected:je,likePublication:ie},e.id))),!fe&&(0,n.jsx)(b.Z,{variant:"outlined",sx:Je.emptyStateWrapper,children:(0,n.jsx)(He.Z,{title:c("groups.group_feed_content.no_posts"),subtitle:_e})})]})})})]})}),(0,n.jsx)(xe.Z,{open:W.open,onClose:()=>oe(),title:c("groups.group_feed_content.delete_this_post"),subtitle:c("groups.group_feed_content.are_you_sure_you_want"),color:"error",width:424,icon:(0,n.jsx)(me.Z,{}),ActionButtons:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ge.Z,{color:"neutral",onClick:()=>oe(),children:c("common.cancel")}),(0,n.jsx)(ge.Z,{color:"error",onClick:()=>{var e;(e=null===W||void 0===W?void 0:W.id)&&(0,M.k_)("".concat((0,P.t)(),"/api/v1/GroupsPosts/delete"),{method:"DELETE",body:{id:e,group_id:H}}).then((t=>{200===(null===t||void 0===t?void 0:t.code)&&(ne(e),m(c("common.deleted")))})).finally((()=>oe()))},children:c("common.delete")})]})})]})};const et={wrapper:{flexDirection:{md:"row",xs:"column"},gap:"24px"},title:{mb:1.5},eventsWrapper:{mb:3,"&.MuiGrid-root":{p:0},"& > .MuiPaper-root":{borderRadius:0,backgroundColor:"unset"},"& .swiper-slide":{mr:"12px !important","& > div":{lineHeight:0}},"& a":{"&:focus-visible":{outline:"none"}}},sponsorsWrapper:{"& > .MuiPaper-root":{minWidth:"initial",borderRadius:"10px !important",height:"140px",mb:1}},sponsorsTitle:{mb:1.5,textTransform:"uppercase"},eventItem:{width:"92px !important",height:"92px !important",borderRadius:"6px",border:"1px solid",borderColor:"colors.borderGreyLight"},content:{flexBasis:"936px"}},tt=e=>({...e,id:e.exhibitor_id||e.id,description:(0,I.NG)([e.city,e.country],", "),image:e.img}),ot=e=>({...e,role:e.global_role,company_name:e.company_name||""});var nt=e=>{let{group:t,isManager:o,openMembersTab:d}=e;var c,u;const{t:p}=(0,l.$G)(),{showSuccessMessage:m,showErrorMessage:h}=(0,R.Z)(),[g,x]=(0,i.useState)(t.description),{admin:v,members:b,moderators:f}=(0,i.useMemo)((()=>{var e,o,n;return{admin:null===(e=t.admin)||void 0===e?void 0:e.map(ot),moderators:null===(o=t.moderators)||void 0===o?void 0:o.map(ot),members:null===(n=t.members)||void 0===n?void 0:n.map(ot)}}),[t.admin,t.moderators,t.members]);return(0,n.jsxs)(ie.Z,{sx:et.wrapper,children:[(0,n.jsxs)(ie.Z,{sx:et.content,children:[Boolean(null===(c=t.events)||void 0===c?void 0:c.length)&&(0,n.jsxs)(r.Z,{sx:et.eventsWrapper,children:[(0,n.jsx)(a.Z,{variant:"h2",sx:et.title,children:p("common.events")}),(0,n.jsx)(se.Z,{minimized:!0,id:"events_block",children:(0,n.jsx)(n.Fragment,{children:t.events.map((e=>(0,n.jsx)(ne.Z,{href:e.url,target:"_blank","data-testid":"sponsors",children:(0,n.jsx)(oe.Z,{sx:et.eventItem,alt:e.title,component:"img",image:(0,re.q)(e.banner,90,90),title:e.title})},e.id)))})})]}),(0,n.jsx)(Xe,{isManager:o,group:t})]}),(0,n.jsx)(ie.Z,{sx:{flexBasis:"456px"},children:(0,n.jsxs)(s.ZP,{container:!0,rowSpacing:2,children:[(0,n.jsx)(s.ZP,{item:!0,xs:12,children:(0,n.jsx)(ae.Z,{title:"ABOUT",description:g,editable:o,saveCallback:e=>(0,M.k_)("".concat((0,P.t)(),"/api/v1/groups/setDescription"),{body:{id:t.id,description:e}}).then((()=>{x(e),m(p("common.saved"))})).catch((e=>h(e))),titleVariant:"h5"})}),(null===(u=t.sponsors)||void 0===u?void 0:u.length)>0&&(0,n.jsx)(s.ZP,{item:!0,xs:12,children:(0,n.jsxs)(r.Z,{id:"sponsors",sx:et.sponsorsWrapper,children:[(0,n.jsx)(a.Z,{variant:"h5",sx:et.sponsorsTitle,children:p("groups.group_feed.sponsored_by")}),t.sponsors.map((e=>(0,n.jsx)(le.default,{element:tt(e),isSponsor:!0},e.id)))]})}),(null===v||void 0===v?void 0:v.length)>0&&(0,n.jsx)(s.ZP,{item:!0,xs:12,children:(0,n.jsx)(de.Z,{teamMembers:v,title:"".concat(p("common.admin").toUpperCase()),fixedSize:!1,isHorizontal:!0,isNotSlider:!0,titleVariant:"h5"})}),(null===f||void 0===f?void 0:f.length)>0&&(0,n.jsx)(s.ZP,{item:!0,xs:12,children:(0,n.jsx)(de.Z,{teamMembers:f,title:"".concat(p("groups.group_feed.moderators_count",{count:t.moderators.length}).toUpperCase()),fixedSize:!1,isHorizontal:!0,isNotSlider:!0,titleVariant:"h5",showAllFunction:d})}),(null===b||void 0===b?void 0:b.length)>0&&(0,n.jsx)(s.ZP,{item:!0,xs:12,children:(0,n.jsx)(de.Z,{teamMembers:b,title:"".concat(p("groups.group_feed.members_count",{count:t.membersCount}).toUpperCase()),fixedSize:!1,isHorizontal:!0,isNotSlider:!0,titleVariant:"h5",showAllFunction:d})})]})})]})},it=o(33543),rt=o(23304),st=o(41554),at=o(9125),lt=o(70386),dt=o(83828),ct=o(40550),ut=o(96873),pt=o(89902),mt=o(81705),ht=o(89753);const gt={wrapper:{display:"flex",p:2,flexDirection:"column",position:"relative",minHeight:270,height:"100%"},marginRight:{mr:1},settingsIcon:{"&.MuiButtonBase-root, & > .MuiBox-root":{position:"absolute",top:"12px",right:"12px",zIndex:1}},userAvatarWrapper:{display:"flex",alignItems:"center",justifyContent:"center",position:"relative",mt:"10px",cursor:"pointer"},chip:{position:"absolute",top:0,zIndex:1,transform:"translate(0, -50%)",borderRadius:"3px",backgroundColor:"colors.statusNeutralLight",color:"colors.iconSecondary"},actionButtons:{"& > .MuiButtonBase-root":{mx:.5}}},xt={align:"center",component:"div",noWrap:!0},vt={iconButtonSx:gt.settingsIcon,MenuListProps:{"aria-labelledby":"settings-button"}};var bt=e=>{let{member:t,approve:o,reject:s,groupId:d,isCurrentUserModerator:c,isCurrentUserAdmin:p}=e;const{t:m}=(0,l.$G)(),g=(0,u.TL5)(),{showSuccessMessage:f}=(0,R.Z)(),_=(0,u.CGy)(u.n5E),[j,y]=(0,i.useState)(1===t.role),[Z,C]=(0,i.useState)(2===t.role),[w,k]=(0,i.useState)(t.publicationsRights),S=t.id===_,I=(c||p)&&!S;(0,i.useEffect)((()=>{y(1===t.role),C(2===t.role)}),[t.role]),(0,i.useEffect)((()=>k(t.publicationsRights)),[t.publicationsRights]);const B=(0,i.useMemo)((()=>({id:t.id,type:"visitors"})),[t.id]),A=(0,u.CGy)((e=>
1(0,u.gH1)(e,B))),E={pathname:"/participant/".concat(t.id)},F=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,M.k_)("".concat((0,P.t)(),"/api/v1/groupsAccount/switchModeratorRights"),{body:{id:d,user_id:t.id,act:e}}).then((t=>{200===(null===t||void 0===t?void 0:t.code)&&(C(!Z),f(m(e?"groups.groups_member_card.assigned":"groups.groups_member_card.removed")))}))},G=!j&&I;return(0,n.jsxs)(b.Z,{variant:"outlined",sx:gt.wrapper,"data-testid":"member","data-styleid":"team-member-card",children:[!I&&(0,n.jsx)(r.Z,{sx:gt.settingsIcon,children:(0,n.jsx)(Ee.default,{id:t.id,ownerType:"visitor"})}),G&&(0,n.jsxs)(T.Z,{keepMounted:!0,id:"dropdown-menu",...vt,children:[p&&(0,n.jsx)(v.Z,{onClick:()=>(0,M.k_)("".concat((0,P.t)(),"/api/v1/groupsAccount/setAdmin"),{body:{id:d,user_id:t.id}}).then((e=>{200===(null===e||void 0===e?void 0:e.code)&&(j||Z||(g((0,ct.jI)({memberType:lt.Q.manage,data:[t]})),g((0,ct.EP)(t.id))),g((0,ct.Rf)({id:_,role:2})),y(!j),f(m("groups.groups_member_card.assigned")))})),children:(0,n.jsx)(x.Z,{children:m("groups.groups_member_card.assign_as_admin")})}),(0,n.jsx)(v.Z,{onClick:()=>(0,M.k_)("".concat((0,P.t)(),"/api/v1/groupsAccount/switchAvailablePublicPostRights"),{body:{id:d,user_id:t.id,act:!w}}).then((e=>{200===(null===e||void 0===e?void 0:e.code)&&(k(!w),f(m(w?"groups.groups_member_card.removed":"groups.groups_member_card.restored")))})),children:(0,n.jsx)(x.Z,{children:m(w?"groups.groups_member_card.remove_publications_rights":"groups.groups_member_card.restore_publications_rights")})}),p&&Z&&(0,n.jsx)(v.Z,{onClick:F.bind(null,!1),children:(0,n.jsx)(x.Z,{children:m("groups.groups_member_card.remove_moderation_rights")})}),p&&!Z&&(0,n.jsx)(v.Z,{onClick:F.bind(null,!0),children:(0,n.jsx)(x.Z,{children:m("groups.groups_member_card.assign_as_moderator")})}),(0,n.jsx)(Ee.default,{id:t.id,ownerType:"visitor",children:(0,n.jsx)(v.Z,{divider:!0,children:(0,n.jsx)(x.Z,{children:m(A?"common.remove_from_connections":"common.add_to_connections")})})}),(0,n.jsx)(v.Z,{onClick:()=>(0,M.k_)("".concat((0,P.t)(),"/api/v1/groupsAccount/delete"),{method:"DELETE",body:{id:d,user_id:t.id}}).then((e=>{200===(null===e||void 0===e?void 0:e.code)&&(g((0,ct.EP)(t.id)),f(m("groups.groups_member_card.removed")))})),children:(0,n.jsx)(x.Z,{children:m("groups.groups_member_card.remove_from_this_group")})})]}),(0,n.jsx)(H.Z,{href:E,children:(0,n.jsxs)(r.Z,{sx:gt.userAvatarWrapper,"data-testid":"onlineStatusWrapper",children:[(j||Z)&&(0,n.jsx)(pt.Z,{sx:gt.chip,label:m(j?"common.admin":"common.moderator")}),(0,n.jsx)(ht.Z,{size:88,user:{name:t.name,photo:t.image}})]})}),(t.name||t.position||t.companyName)&&(0,n.jsxs)(r.Z,{mt:1.25,flexGrow:1,children:[(0,n.jsx)(r.Z,{display:"flex",alignItems:"center",justifyContent:"center",children:t.name&&(0,n.jsx)(H.Z,{href:E,children:(0,n.jsxs)(a.Z,{"data-testid":"teamMemberName",variant:"h4",title:t.name,className:"pointer",...xt,children:[(0,n.jsx)(r.Z,{component:"span",mr:.5,children:t.name}),S&&"(".concat(m("groups.groups_member_card.you"),")")]})})}),t.position&&(0,n.jsx)(a.Z,{"data-testid":"teamMemberPosition",variant:"subtitle2",color:"textSecondary",title:t.position,...xt,children:t.position}),t.companyName&&(0,n.jsx)(a.Z,{"data-testid":"teamMemberPosition",variant:"subtitle2",color:"textPrimary",title:t.companyName,...xt,children:t.companyName})]}),(0,n.jsxs)(r.Z,{width:"100%",display:"flex",justifyContent:"center",alignItems:"center",mt:"10px",gap:"8px",children:[!o&&!s&&(0,n.jsxs)(r.Z,{sx:gt.actionButtons,children:[(0,n.jsx)(Ae.Z,{type:"medium",id:t.id,ownerType:"visitor"}),(0,n.jsx)(Fe.default,{id:t.id,ownerType:"visitor",type:"medium"})]}),o&&(0,n.jsx)(h.Z,{onClick:()=>(0,M.k_)("".concat((0,P.t)(),"/api/v1/groupsAccount/approve"),{body:{id:d,user_id:t.id}}).then((e=>{200===(null===e||void 0===e?void 0:e.code)&&(g((0,ct.EP)(t.id)),f(m("groups.groups_member_card.member_accepted")))})),color:"success","data-testid":"approve",children:(0,n.jsx)(_e.Z,{})}),s&&(0,n.jsx)(h.Z,{onClick:()=>(0,M.k_)("".concat((0,P.t)(),"/api/v1/groupsAccount/").concat(I?"cancelByModerator":"cancelByUser"),{body:{id:d,...I&&{user_id:t.id}}}).then((e=>
1{200===(null===e||void 0===e?void 0:e.code)&&(g((0,ct.EP)(t.id)),f(m(I?"groups.groups_member_card.members_request_declined":"groups.groups_member_card.invitation_declined")))})),color:"neutral","data-testid":"reject",children:(0,n.jsx)(mt.Z,{})})]})]})},ft=o(14592),_t=o(34604),jt=o(45848),yt=o(40841);const Zt=e=>{let{children:t,id:o}=e;const r=(0,u.TL5)(),s=(0,u.CGy)((e=>(0,at.dO)(e,"members"))),a=(0,u.CGy)(ut.ll),l=(0,jt.Z)({selectedFilters:s},1e3);(0,yt.Z)("members");const[d,c]=(0,i.useState)(!0),p=(0,i.useCallback)((async()=>{c(!0),await r((0,ct.BF)({type:a,groupId:o})),c(!1)}),[r,a,o]);return(0,i.useEffect)((()=>{p()}),[l]),d?(0,n.jsx)(Ne.Z,{}):(0,n.jsx)(n.Fragment,{children:t})};var Ct=(0,i.memo)(Zt);const wt={headerWrapper:e=>({display:"flex",flexWrap:e?"wrap":"nowrap",alignItems:"center",mb:2,"& > .MuiBox-root":{display:"flex",flexWrap:"wrap",mr:-2,"& > *":{mr:2},ml:{xs:e?0:"auto",sm:"auto"},width:{xs:e?"100%":"auto",sm:"auto"}}}),memberTypeSelect:{"&.MuiFormControl-root":{width:{xs:160,sm:220},my:1}},invite:{"&.MuiTypography-root":{color:"colors.primary",cursor:"pointer"}},inviteButton:{my:1},emptyStateWrapper:{minHeight:350,display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column"}},kt=["approval","invitation","blocked"];var St=e=>{let{isAdmin:t,isModerator:o,togglePopup:d,groupId:c}=e;const p=(0,u.TL5)(),{t:h}=(0,l.$G)(),g=(0,u.CGy)(at.Rv),{data:x,total:v,page:f}=(0,u.CGy)(ut.a2),_=(0,u.CGy)(ut.ab),j=x.length,y=(0,i.useMemo)((()=>x.mapByProperty("id")),[x]);(0,De.Z)(y),(0,ze.Z)({visitors:y});const[Z,C]=(0,i.useState)(lt.Q.joined),w=t||o;(0,i.useEffect)((()=>{p((0,dt.Iy)("delegates"))}),[p]);const k=v>j,S=[{value:"joined",text:h("common.members")},{value:"manage",text:h("profile_groups.add_edit_group.admin_and_moderators")},...w?[{value:"approval",text:h("profile_groups.groups_top_block.waiting_for_approval")}]:[],...w?[{value:"invitation",text:h("groups.groups_members.sent_invitation")}]:[]],T=(0,i.useMemo)((()=>{var e;return(null===(e=S.find((e=>{let{value:t}=e;return t===Z})))||void 0===e?void 0:e.text)||h("common.members")}),[Z]),M=["manage","joined"].includes(Z)&&w;return(0,n.jsxs)(b.Z,{variant:"outlined",sx:{p:3},children:[(0,n.jsxs)(r.Z,{sx:wt.headerWrapper(w),children:[(0,n.jsx)(a.Z,{variant:"h2",sx:{mr:2},children:h("common.people")}),(0,n.jsxs)(r.Z,{children:[(0,n.jsx)(_t.Z,{value:Z,options:S,handleChange:e=>{const t=e.target.value;C(t),c&&p((0,ct.BF)({groupId:c,type:t}))},sx:wt.memberTypeSelect}),w&&(0,n.jsx)(m.Z,{variant:"text",startIcon:(0,n.jsx)(st.Z,{}),sx:wt.inviteButton,onClick:d,children:h("groups.groups_members.invite_members")})]})]}),(0,n.jsx)(ft.Z,{}),(0,n.jsx)(a.Z,{variant:"h3",sx:{mb:2},children:h("common.label_with_count",{label:T,count:v||0})}),(0,n.jsx)(Ct,{id:c,children:(0,n.jsx)(pe.Z,{dataLength:j,next:()=>{if(g||_||!c)return;const e=f+1;
1p((0,ct.BF)({pageNumber:e,reset:!1,groupId:c,type:Z}))},hasMore:!g&&k,loader:(0,n.jsx)(Ne.Z,{}),style:{overflow:"visible"},scrollThreshold:.6,children:0!==j||_?(0,n.jsx)(s.ZP,{container:!0,spacing:2,children:x.map((e=>{return(0,n.jsx)(s.ZP,{item:!0,xs:12,sm:6,lg:3,children:(0,n.jsx)(bt,{groupId:c,member:(i=e,{...i,companyName:i.company_name,name:(0,I.NG)([i.firstName,i.lastName]),image:i.photoURL,publicationsRights:i.available_public_post}),isCurrentUserAdmin:t,isCurrentUserModerator:o,approve:"approval"===Z,reject:kt.includes(Z)})},e.id);var i}))}):(0,n.jsxs)(r.Z,{sx:wt.emptyStateWrapper,children:[(0,n.jsx)(a.Z,{variant:"body2",gutterBottom:!0,children:h("groups.groups_members.there_are_no_members")}),M&&(0,n.jsx)(a.Z,{variant:"button",onClick:d,sx:wt.invite,children:h("groups.groups_members.invite_members")})]})})})]})},Tt=o(52706),It=o(43974),Mt=o(49876);var Pt=e=>{let{openPopup:t,togglePopup:o,groupId:r}=e;const{t:s}=(0,l.$G)(),[d,c]=(0,i.useState)(!1),[u,p]=(0,i.useState)({}),[m,h]=(0,i.useState)([]),{showSuccessMessage:g}=(0,R.Z)();return(0,i.useEffect)((()=>{if(!r||!t)return;const e=new URLSearchParams((0,he.stringify)({id:r}));c(!0),(0,M.k_)("".concat((0,P.t)(),"/api/v1/groups/getAvailableCategoriesForInvite?").concat(e),{method:"GET"}).then((e=>{200===(null===e||void 0===e?void 0:e.code)&&(0,It.K)(e.data)&&p(e.data)})).finally((()=>{c(!1)}))}),[t]),(0,n.jsxs)(Ze.Z,{width:"460px",open:t,onClose:o,title:s("groups.groups_invite_modal.invite_people"),ActionButtons:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ge.Z,{color:"neutral",onClick:o,children:s("common.cancel")}),(0,n.jsx)(ge.Z,{onClick:()=>{c(!0),(0,M.k_)("".concat((0,P.t)(),"/api/v1/groupsAccount/sendInvitations"),{body:{group_id:r,...(0,Tt.P)(m)}}).then((e=>{var t;200===(null===e||void 0===e?void 0:e.code)&&(null===(t=e.data)||void 0===t?void 0:t.done)&&(o(),g(s("groups.groups_invite_modal.invited")))})).finally((()=>{c(!1)}))},disabled:m.length<1,children:s("groups.groups_invite_modal.invite")})]}),children:[(0,n.jsx)(a.Z,{variant:"subtitle2",color:"textSecondary",gutterBottom:!0,children:"".concat(s("groups.groups_invite_modal.select_categories_or_roles_who"),":")}),(0,n.jsx)(be.default,{isLoading:d,children:(0,n.jsx)(Mt.Z,{list:(0,Tt.y)(u),setSelectedItems:h,selectedItems:m,treeView:!0,disableDropdown:!0})})]})},Bt=o(84335),At=o(13072),Et=o(44102),Ft=o(76716),Gt=o(98719).Z;const Rt=e=>({...e,title:e.title||e.name,name:e.name||e.title,type:"tags"}),Lt={initialTags:[],checkedTags:[],open:!1,isFetching:!1},Wt=(e,t)=>{switch(t.type){case"toggleModal":var o;return{...e,open:null!==(o=t.open)&&void 0!==o&&o};case"setIsFetching":var n;return{...e,isFetching:null!==(n=t.isFetching)&&void 0!==n&&n};case"setCheckedTags":var i;return{...e,checkedTags:null!==(i=t.tags)&&void 0!==i?i:[]};case"setInitialTags":var r;return{...e,initialTags:null!==(r=t.tags)&&void 0!==r?r:[]};default:return e}};var Nt=e=>{let{isAdmin:t,groupId:o}=e;const{t:s}=(0,l.$G)(),d=(0,u.TL5)(),{showSuccessMessage:c}=(0,R.Z)(),[p,m]=(0,i.useReducer)(Wt,Lt),{open:g,initialTags:x,checkedTags:v,isFetching:f}=p,_=e=>{m({type:"setCheckedTags",tags:e})},j=()=>{m({type:"setIsFetching",isFetching:!0}),(0,M.k_)("".concat((0,P.t)(),"/api/v1/groups/viewGroupTags?id=").concat(o),{method:"GET"}).then((e=>{var t;if(200!==(null===e||void 0===e?void 0:e.code)||!Array.isArray(null===(t=e.data)||void 0===t?void 0:t.item_tags))return;const o=e.data.item_tags.map(Rt);m({type:"setInitialTags",tags:o}),_(o)})).finally((()=>{m({type:"setIsFetching",isFetching:!1})}))};(0,i.useEffect)((()=>{o&&j()}),[o]),(0,i.useEffect)((()=>()=>{d((0,dt.aw)("news"))}),[d]);const y=()=>{!0===g&&j(),m({type:"toggleModal",open:!g})},Z=t?{children:s("groups.groups_news.add_tag_for_news"),onClick:y}:void 0,C={checkedTags:v,appliedTags:x},w=v.length>0,k=()=>t?w?(0,n.jsx)(h.Z,{onClick:y,children:(0,n.jsx)(Bt.Z,{})}):(0,n.jsx)(Et.Z,{onClick:y,children:s("groups.groups_news.add_tags")}):null;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(b.Z,{sx:{p:3,mb:3},elevation:0,variant:"outlined",children:[(0,n.jsxs)(r.Z,{display:"flex",justifyContent:"space-between",alignItems:"center",children:[(0,n.jsx)(a.Z,{variant:"h2",children:s("groups.groups_news.tags")}
1),(0,n.jsx)(k,{})]}),(0,n.jsx)(Ft.Z,{tracks:v,setAllTracks:!0})]}),(0,n.jsx)(Gt,{open:g,onClose:y,onSave:e=>{_(e);const t=e.map((e=>{let{id:t}=e;return t}));m({type:"setIsFetching",isFetching:!0}),(0,M.k_)("".concat((0,P.t)(),"/api/v1/groups/saveGroupTags"),{body:{group_id:o,tag_ids:t}}).then((e=>{var t;200===(null===e||void 0===e?void 0:e.code)&&(null===(t=e.data)||void 0===t?void 0:t.success)&&(y(),c(s("common.saved")))})).then((()=>{d((0,dt.aw)("news"))})).finally((()=>{m({type:"setIsFetching",isFetching:!1})}))},additionalText:s("groups.groups_news.choose_tags_tooltip"),initialData:C,withSearch:!0}),w&&(0,n.jsx)(At.Z,{filterTypesToExclude:["tags"]}),(0,n.jsx)(He.Z,{isFetching:f,title:s("groups.groups_news.no_news"),subtitle:s("groups.groups_news.choose_tags_empty_state"),button:Z,reason:null,length:v.length})]})};var Dt=e=>{let{isAdmin:t,groupId:o}=e;const{t:r}=(0,l.$G)(),a=(0,u.TL5)();return(0,i.useEffect)((()=>{a((0,dt.Iy)("news"))}),[a]),o?(0,n.jsxs)(s.ZP,{container:!0,spacing:3,children:[(0,n.jsx)(s.ZP,{item:!0,xs:12,md:3,children:(0,n.jsx)(it.Z,{type:"news",filtersToDisable:["tags"],searchPlaceholder:r("common.by_news"),disableReset:!0,disableSharing:!0})}),(0,n.jsx)(s.ZP,{item:!0,xs:12,md:9,children:(0,n.jsx)(Nt,{isAdmin:t,groupId:o})})]}):null},zt=o(4204),Ht=o(29247),Ot=o(74235),$t=o(44684),Ut=o(40280);const qt={wrapper:{p:3,mb:3},mt:{mt:2.5}};var Vt;!function(e){e[e.Sessions=1]="Sessions",e[e.OnDemand=2]="OnDemand"}(Vt||(Vt={}));const Kt=e=>({...e,title:e.title||e.name,name:e.name||e.title,type:"selectedCat"}),Jt=e=>({...e,name:(null===e||void 0===e?void 0:e.name)||(null===e||void 0===e?void 0:e.title)||"",title:(null===e||void 0===e?void 0:e.title)||(null===e||void 0===e?void 0:e.name)||""}),Qt={initialTracks:[],checkedTracks:[],open:!1,isFetching:!1},Yt=(e,t)=>{switch(t.type){case"toggleModal":var o;return{...e,open:null!==(o=t.open)&&void 0!==o&&o};case"setIsFetching":var n;return{...e,isFetching:null!==(n=t.isFetching)&&void 0!==n&&n};case"setCheckedTracks":var i,r;return{...e,checkedTracks:null!==(r=null===(i=t.tracks)||void 0===i?void 0:i.map(Kt))&&void 0!==r?r:[]};case"setInitialTracks":var s,a;return{...e,initialTracks:null!==(a=null===(s=t.tracks)||void 0===s?void 0:s.map(Kt))&&void 0!==a?a:[]};default:return e}},Xt=e=>{let{isOndemand:t}=e;return t?(0,n.jsx)($t.Z,{filterTypesToExclude:["selectedCat"],hideButtonForEmpty:!0}):(0,n.jsx)(Ot.Z,{filterTypesToExclude:["selectedCat"],hideButtonForEmpty:!0})};var eo=e=>{let{isAdmin:t,isOndemand:o,groupId:s}=e;const d=(0,u.TL5)(),{t:c}=(0,l.$G)(),{showSuccessMessage:p}=(0,R.Z)(),[m,g]=(0,i.useReducer)(Yt,Qt),{open:x,isFetching:v,initialTracks:f,checkedTracks:_}=m,j=(0,u.CGy)(at.KJ),y=(0,i.useMemo)((()=>{var e;return(null===j||void 0===j||null===(e=j.value)||void 0===e?void 0:e.map(Jt))||[]}),[j]),Z=e=>{g({type:"setCheckedTracks",tracks:e})},C=()=>{g({type:"setIsFetching",isFetching:!0});const e=o?2:1;(0,M.k_)("".concat((0,P.t)(),"/api/v1/groups/viewGroupTracks?id=").concat(s,"&type=").concat(e),{method:"GET"}).then((e=>{var t;const o=null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.tracks;200===(null===e||void 0===e?void 0:e.code)&&Array.isArray(o)&&(g({type:"setInitialTracks",tracks:o}),Z(o))})).finally((()=>{g({type:"setIsFetching",isFetching:!1})}))};(0,i.useEffect)((()=>{s&&C()}),[s]);const w=()=>{!0===x&&C(),g({type:"toggleModal",open:!x})},k=o?Ut.B.OnDemand:Ut.B.Sessions;(0,i.useEffect)((()=>{d((0,zt.p6)(k)),d((0,dt.Iy)(k))}),[]);const S=t?{children:c("groups.groups_sessions.add_tracks"),onClick:w}:void 0,T=o?"groups.groups_sessions.no_on_demand_material":"groups.groups_sessions.no_sessions",I=_.length>0,B={tags:y,appliedTags:f,checkedTags:_};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(b.Z,{sx:qt.wrapper,elevation:0,variant:"outlined",children:[(0,n.jsxs)(r.Z,{display:"flex",justifyContent:"space-between",alignItems:"center",children:[(0,n.jsx)(a.Z,{variant:"h2",children:c("common.tracks")}),t&&_.length>0&&(0,n.jsx)(h.Z,{onClick:w,children:(0,n.jsx)(Bt.Z,{})}),t&&0===_.length&&(0,n.jsx)(Et.Z,{onClick:w,children:c("groups.groups_sessions.add_tracks2")})]}),(0,n.jsx)(Ft.Z,{tracks:_.map(Kt),setAllTracks:!0}),!o&&I&&(0,n.jsx)(Ht.Z,{sx:qt.mt})]}),(0,n.jsx)(Gt,{open:x,onClose:w,onSave:e=>{Z(e);const t=e.map((e=>{let{id:t}=e;return Number(t)}));g({type:"setIsFetching",isFetching:!0});const n={group_id:s,track_ids:t,ondemand:Boolean(o)};(0,M.k_)("".concat((0,P.t)(),"/api/v1/groups/saveGroupTracks"),{body:n}).then((e=>{var t;200===(null===e||void 0===e?void 0:e.code)&&(null===(t=e.data)||void 0===t?void 0:t.success)&&(w(),p(c("common.saved")))})).then((()=>{d((0,dt.aw)(k))})).finally((()=>{g({type:"setIsFetching",isFetching:!1})}
1))},type:k,initialData:B,additionalText:c("groups.groups_sessions.choose_tracks_tooltip"),withSearch:!0}),I&&(0,n.jsx)(Xt,{isOndemand:Boolean(o)}),(0,n.jsx)(He.Z,{title:c(T),subtitle:c("groups.groups_sessions.add_tracks_empty_state"),isFetching:v,button:S,reason:null,length:_.length})]})};var to=e=>{let{isOndemand:t,isAdmin:o,groupId:i}=e;const{t:r}=(0,l.$G)();return i?(0,n.jsxs)(s.ZP,{container:!0,spacing:3,children:[(0,n.jsx)(s.ZP,{item:!0,xs:12,md:3,children:(0,n.jsx)(it.Z,{type:"sessions",filtersToDisable:["selectedCat"],searchPlaceholder:r("sessions.by_sessions"),disableReset:!0,disableSharing:!0})}),(0,n.jsx)(s.ZP,{item:!0,xs:12,md:9,children:(0,n.jsx)(eo,{isAdmin:o,isOndemand:t,groupId:i})})]}):null};var oo=e=>{let{group:t}=e;var o,m,h;const g=(0,p.t)(),{t:x}=(0,l.$G)(),v=(0,u.CGy)(ut.ll),b=(0,u.CGy)(u.n5E),[f,_]=(0,i.useState)(!1),[j,y]=(0,i.useState)(0),Z=()=>_(!f),C=t.privacy===Ve.Private,w=b===(null===(m=t.admin)||void 0===m||null===(o=m[0])||void 0===o?void 0:o.id),k=(null===(h=t.moderators)||void 0===h?void 0:h.some((e=>{let{id:t}=e;return b===t})))||!1,S=(0,ue.Z)(),T=C&&"joined"!==t.join_status&&!w||!t.can_show,I=[{name:"common.home",link:"/"},{name:"common.community",link:"".concat(S,"/community")},{name:"common.groups",link:"".concat(S,"/groups")},{name:t.title}],M=t.tabs||[],P=M.indexOf("Feed");return(0,n.jsxs)(q,{initJoinStatus:t.join_status,initHasPublishRights:t.can_public_post,children:[(0,n.jsx)(r.Z,{sx:{backgroundColor:"colors.white",boxShadow:"0 0 15px rgba(160,160,160,.2)",mb:3},children:(0,n.jsxs)(c.default,{children:[(0,n.jsx)(d.Z,{sx:{"& .MuiBreadcrumbs-ol":{p:2,pl:0}},children:I}),(0,n.jsx)(X,{isPrivate:C,group:t,togglePopup:Z,sx:{mb:2}}),!T&&(0,n.jsx)(ee.Z7,{changeCallback:(e,t)=>y(t),value:j,items:M.map((e=>x(te.Q[e]||e))),selectOnSmallSize:!0,variant:"standard"})]})}),(0,n.jsx)(c.default,{children:(0,n.jsx)(s.ZP,{children:T?(0,n.jsx)(s.ZP,{item:!0,xs:12,children:(0,n.jsx)(He.Z,{reason:"noAccess",title:x("app.group.closed_access"),subtitle:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.Z,{variant:"body2",component:"div",children:x("app.group.this_group_is_invitations_only")}),x("app.group.please_contact_the_organizer_to")]}),button:{children:x("app.groups.back_to_groups_list"),onClick:()=>g.push("".concat(S,"/groups"))}})}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(s.ZP,{item:!0,xs:12,children:[M.includes("Feed")&&(0,n.jsx)(ee.x4,{value:j,index:P,children:(0,n.jsx)(nt,{group:t,isManager:w||k,openMembersTab:()=>t.tabs.includes("People")&&y(t.tabs.indexOf("People"))})}),M.includes("People")&&(0,n.jsx)(ee.x4,{value:j,index:M.indexOf("People"),children:(0,n.jsxs)(s.ZP,{container:!0,spacing:3,children:[(0,n.jsx)(s.ZP,{item:!0,xs:12,md:3,children:(0,n.jsx)(it.Z,{type:"members",searchPlaceholder:x("common.by_delegates"),requestParams:{groupId:t.id,type:v},disableSharing:!0,stopRequest:!0})}),(0,n.jsx)(s.ZP,{item:!0,xs:12,md:9,children:(0,n.jsx)(St,{isAdmin:w,isModerator:k,togglePopup:Z,groupId:t.id})})]})}),M.includes("News")&&(0,n.jsx)(ee.x4,{value:j,index:M.indexOf("News"),children:(0,n.jsx)(Dt,{isAdmin:w,groupId:t.id})}),M.includes("Sessions")&&(0,n.jsx)(ee.x4,{value:j,index:M.indexOf("Sessions"),children:(0,n.jsx)(to,{isAdmin:w,groupId:t.id})}),M.includes("On demand")&&(0,n.jsx)(ee.x4,{value:j,index:M.indexOf("On demand"),children:(0,n.jsx)(to,{isAdmin:w,groupId:t.id,isOndemand:!0})}),M.includes("Marketing content")&&(0,n.jsx)(ee.x4,{value:j,index:M.indexOf("Marketing content"),children:(0,n.jsx)(rt.Z,{isExhibitorContent:!1})})]}),(0,n.jsx)(Pt,{openPopup:f,togglePopup:Z,groupId:t.id})]})})})]})}},2713:function(e,t,o){"use strict";var n=o(57437),i=o(2265),r=o(80868),s=o(46387),a=o(14672),l=o(55788),d=o(6551),c=o(45391),u=o(35773);const p={"& .MuiBreadcrumbs-separator":{margin:"0 4px"},"& .MuiBreadcrumbs-ol":{backgroundColor:"colors.backgroundGreyLight",p:1,borderRadius:"5px",display:"inline-flex"}},m=["/insights"];t.Z=e=>{let{children:t,sx:o}=e;const{t:h}=(0,l.$G)(),g=(0,a.CGy)(a.VFQ),x=(0,a.CGy)(c.fO),v=(0,i.useMemo)((()=>((e,t)=>o=>m.includes(o)&&window?"".concat(t).concat(o):"/"===o?e?{pathname:o}:o:{pathname:o})(g,x)),[g,x]),b=e=>{e.additionalFunc&&e.additionalFunc()};return(0,n.jsx)(r.Z,{sx:[p,...Array.isArray(o)?o:[o]],"data-tour":"breadcrumbs","data-styleid":"breadcrumbs",children:t.map(((e,o)=>{const i=o===t.length-1||!e.link,r=(0,d.bS)("breadcrumbsItem-".concat(e.name));return i?(0,n.jsx)(s.Z,{color:"textPrimary","data-styleid":r,children:h(e.name)},r):(0,n.jsx)(u.Z,{href:v(e.link),children:(0,n.jsx)(s.Z,{"data-styleid":r,className:"pointer",onClick:b.bind(null,e),children:h(e.name)})},r)}))})}},21653:function(e,t,o){"use strict";
1var n=o(57437),i=o(2265),r=o(41530),s=o(91200);const a={wrapper:{flexWrap:"wrap",alignItems:"center",gap:"8px"}},l=e=>{let{tags:t,icon:o,onDelete:i,sx:l=[],...d}=e;if(!Array.isArray(t)||!t.length)return null;const c=Array.isArray(l)?l:[l];return(0,n.jsx)(r.Z,{direction:"row",sx:[a.wrapper,...c],...d,children:t.map((e=>{let{name:t,id:r,deletable:a=!0}=e;return(0,n.jsx)(s.Z,{label:t,icon:o,onDelete:a&&i?()=>i(r):void 0},r)}))})};t.Z=(0,i.memo)(l)},80408:function(e,t,o){"use strict";o.d(t,{Z:function(){return H}});var n=o(57437),i=o(2265),r=o(79814),s=o(62533),a=o(68094),l=o(21170),d=o(95576),c=o(46387),u=o(5969),p=o(55788),m=o(8058),h=o(50290),g=o(93209),x=o(22367),v=o(29965),b=o(96176),f=o(74980),_=o(68406),j=o(67379),y=o(25440),Z=o(41810),C=o(34604),w=o(98765),k=o(33833),S=o(2291);const T={popover:{"& .MuiPaper-root":{borderRadius:"4px",boxShadow:"none",border:"1px solid",borderColor:"colors.borderGreyLight"},"& .MuiList-root":{display:"flex",p:0,"& .MuiSvgIcon-root":{width:20,height:20}},"& .MuiMenuItem-root":{p:1,"&.Mui-selected":{backgroundColor:"colors.secondary"}}},selector:{mr:1,"&.Mui-disabled":{backgroundColor:"unset !important","& .MuiSvgIcon-root":{color:"lightGrey"}},"&.MuiInputBase-root.MuiOutlinedInput-root":{height:18,border:"none","& .MuiSvgIcon-root":{width:20,height:20},"& .MuiSelect-select":{"&:focus":{backgroundColor:"unset"},"& .MuiSvgIcon-root":{mt:.5}}}}};var I=e=>{let{name:t,value:o,onChange:i,multiple:r,options:s,disabled:a}=e;const l={anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},sx:T.popover};return(0,n.jsx)(k.Z,{value:o,onChange:i,id:t,name:t,sx:T.selector,multiple:r,IconComponent:S.default,MenuProps:l,disabled:a,children:Array.isArray(s)&&s.map((e=>(0,n.jsx)(h.Z,{value:e.value,children:e.text},e.id)))})},M=o(1340),P=o(94291);var B=e=>{let{editorState:t,toggleBlockType:o,toggleInlineStyle:r,addPhoto:s,disabled:a,setEditorState:d,fullControl:c}=e;const[u,p]=(0,i.useState)("unstyled"),[k,S]=(0,i.useState)("left"),[T,B]=(0,i.useState)(null),[A,E]=(0,i.useState)("large"),F="small"===A,G=t.getSelection(),R=t.getCurrentContent().getBlockForKey(G.getAnchorKey()),L=R.getType(),W=R.getInlineStyleAt(G.getStartOffset()),N=(e,t)=>{a||(t.preventDefault(),o(e))},D=(e,t)=>{a||(t.preventDefault(),r(e))},z=(e,t,o)=>{o.preventDefault(),O(),e(t,o)};(0,i.useEffect)((()=>{var e,t;const o=null===(e=w.m2.find((e=>{let{value:t}=e;return"left"!==t&&W.has(t)})))||void 0===e?void 0:e.value,n=null===(t=w.YC.find((e=>{let{value:t}=e;return t===L})))||void 0===t?void 0:t.value;S(o||"left"),p(n||"unstyled")}),[R]);const H=Boolean(T),O=()=>{B(null)},$={fontStyles:[{value:"BOLD",Icon:x.Z,text:"Bold",handler:D},{value:"ITALIC",Icon:v.Z,text:"Italic",handler:D},{value:"UNDERLINE",Icon:j.Z,text:"Underline",handler:D}],lists:[{value:"unordered-list-item",Icon:b.Z,text:"Unordered list",handler:N},{value:"ordered-list-item",Icon:f.Z,text:"Ordered list",handler:N}],other:c?[{value:"blockquote",Icon:_.Z,text:"Blockquote",handler:N},{Icon:y.Z,text:"Image",handler:s,value:""}]:[]};(0,i.useEffect)((()=>{if(!document||"undefined"===typeof ResizeObserver)return;const e=document.querySelector("#editorHeader"),t=document.querySelector("#editorContent"),o=new ResizeObserver((()=>{const o=(null===e||void 0===e?void 0:e.clientWidth)||0,n=(null===t||void 0===t?void 0:t.clientWidth)||0;o<500&&o>=n&&"medium"===A?E("small"):o>=n&&"large"===A?E("medium"):o+180<=n&&E((e=>"small"===e?"medium":"large"))}));return t&&o.observe(t),()=>o.disconnect()}),[A]);const U=e=>W.has(e)||L===e?P.Z.activeControl:null,q=[P.Z.controlGroup,a&&P.Z.disabledControl];return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.Z,{sx:q,children:(0,n.jsx)(C.Z,{name:"header_select",value:u,handleChange:e=>{const{value:t}=e.target;e.preventDefault(),o(t),p(t)},options:w.YC,maxWidth:"unset",sx:[P.Z.headingControlSelect,{minWidth:F?"unset":140,width:F?56:"unset",pr:F?0:1}],menuPropsSx:P.Z.headingControlSelectPopover})}),"large"===A&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.Z,{sx:q,children:$.fontStyles.map((e=>{let{value:t,Icon:o}=e;return(0,n.jsx)(l.Z,{onMouseDown:D.bind(null,t),sx:U(t),children:(0,n.jsx)(o,{fontSize:"small"})},t)}))}),(0,n.jsx)(l.Z,{sx:q,children:$.lists.map((e=>{let{value:t,Icon:o}=e;return(0,n.jsx)(l.Z,{onClick:N.bind(null,t),sx:[U(t),a&&P.Z.disabledControl],children:(0,n.jsx)(o,{fontSize:"small"})},t)}))})]}),(0,n.jsx)(l.Z,{sx:q,children:(0,n.jsx)(I,{name:"alignment_select",value:k,onChange:e=>{const o=e.target.value;e.preventDefault(),S(o),setTimeout((()=>d((0,w.ht)(o,t))))},options:w.m2,disabled:(0,w.Zc)(R)||a})}),c&&(0,n.jsxs)(l.Z,{sx:q,children:["small"!==A&&$.other.map((e=>{let{value:t,Icon:o,handler:i}=e;return(0,n.jsx)(l.Z,{onClick:i.bind(null,t),sx:U(t),children:(0,n.jsx)(o,{fontSize:"small"})},t)})),(0,n.jsx)(M.ZP,{editorState:t,setEditorState:d})]}),"large"!==A&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Z.Z,{sx:[P.Z.mobileControlButton],onClick:e=>{B(e.currentTarget)},disabled:a,"aria-label":"More formatting options",children:(0,n.jsx)(g.Z,{})}),(0,n.jsx)(m.Z,{sx:P.Z.mobileControlMenu,anchorEl:T,open:H,onClose:O,elevation:1,transformOrigin:{vertical:"top",horizontal:"left"},children:[...$.fontStyles,...$.lists,..."small"===A?$.other:[]].map((e=>{let{value:t,text:o,Icon:i,handler:r}=e;return(0,n.jsxs)(h.Z,{onClick:z.bind(null,r,t),sx:U(t),children:[(0,n.jsx)(i,{})," ",o]},t)}))})]})]})},A=o(53511),E=o(14672),F=o(48236),G=o(74663),R=o(16666);const L=".png, .jpg",W=(0,i.forwardRef)(((e,t)=>{let{imageToBeDeleted:o,editorState:s,setEditorState:a}=e;const[l,d]=(0,i.useState)({}),[c,u]=(0,i.useState)(!1),p=(0,E.CGy)(E.SLc);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("input",{type:"file",accept:L,hidden:!0,onChange:e=>{var t;const[o]=(null===e||void 0===e||null===(t=e.target)||void 0===t?void 0:t.files)||[];if(!o)return;const n=new FileReader;n.readAsDataURL(o),n.onloadend=()=>{const e=n.result||"",t=new Image;t.src=e,t.onload=()=>{d({src:e,width:t.width,title:null===o||void 0===o?void 0:o.name})}},u(!0)},onClick:e=>{e.target.value=null},ref:t}),(0,n.jsx)(R.Z,{imageSrc:l.src,title:l.title,open:c,width:900,aspectRatio:16/9,handleClose:u.bind(null,!1),handleConfirmCropper:async e=>{if(!a)return;const t=(await(0,F.R8)([e],(0,G.t)()))[0],n="url"in t?t.url:"";a((e=>{let{url:t=""}=e;if(!t)return null;let n=s;u(!1),o&&(n=(0,w.i7)(o,s));const i=r.Entity.create("image","IMMUTABLE",{src:t});return r.AtomicBlockUtils.insertAtomicBlock(n,i," ")}
1)({url:n}))},setNewImage:d,acceptedFormats:L,maxFileSize:p})]})}));W.displayName="AddImageTextEditor";var N=W;const D=[(0,s.ZP)({imageComponent:A.Z})],z=e=>{let{editorState:t,setEditorState:o,className:s,saveHandler:m,disabled:h,maxSize:g=0,onBlur:x,fullControl:v,placeholder:b,sx:f}=e;const{t:_}=(0,p.$G)(),j=Array.isArray(f)?f:[f],[y,Z]=(0,i.useState)(null),[C,k]=(0,i.useState)(!1);(0,i.useEffect)((()=>{if(!C)return;const e=setTimeout((()=>k(!1)),3e3);return()=>{clearTimeout(e)}}),[C]);const S=e=>o(e),T=e=>{const o=(0,w.i7)(e,t);S(o)},I=e=>{E(),Z(e)},M=(0,w.Vv)(t)?"":b||_("ui.text_editor.please_write_some_description"),A=(0,i.useRef)(null),E=()=>A.current?A.current.click():null,F=t.getCurrentContent().getPlainText().length;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(l.Z,{className:s,sx:[P.Z.container,...j],children:[(0,n.jsx)(N,{imageToBeDeleted:y,ref:A,editorState:t,setEditorState:o}),(0,n.jsxs)(l.Z,{sx:P.Z.header,id:"editorHeader",children:[(0,n.jsx)(B,{editorState:t,setEditorState:o,toggleBlockType:e=>setTimeout((()=>{S((0,w.tr)(r.RichUtils.toggleBlockType(t,e)))})),toggleInlineStyle:e=>S(r.RichUtils.toggleInlineStyle(t,e)),addPhoto:E,disabled:Boolean(h),fullControl:v}),m&&(0,n.jsx)(d.Z,{color:"secondary",onClick:m,children:(0,n.jsx)(u.Z,{})})]}),(0,n.jsx)(l.Z,{sx:[P.Z.editor,{"& .DraftEditor-root":{[v?"minHeight":"height"]:234}}],id:"editorContent",children:(0,n.jsx)(a.ZP,{customStyleMap:w.Vg,blockStyleFn:w.lu.bind(null,t),blockRendererFn:e=>(0,w.Ce)(e,{deleteImage:T,editImage:I}),editorState:t,handleKeyCommand:w.Bg.bind(null,t,S),onChange:S,placeholder:M,plugins:D,decorators:w.ui,readOnly:h,keyBindingFn:w.ul.bind(null,t,g||0),onBlur:x,handleBeforeInput:()=>!g||F<g?"not-handled":"handled",handlePastedText:function(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").length+F;return g&&e>g?(k(!0),"handled"):"not-handled"}})})]}),Boolean(g)&&(0,n.jsxs)(l.Z,{sx:P.Z.footer,children:[C&&(0,n.jsx)(c.Z,{variant:"subtitle4",noWrap:!0,sx:{color:"colors.statusCancelled"},children:_("ui.text_editor.your_text_is_too_long")}),(0,n.jsxs)(c.Z,{variant:"overline",sx:[P.Z.footerLengthCounter,F>(g||0)&&P.Z.maxSizeError],children:[(0,n.jsx)("span",{children:F})," / ",g]})]})]})};var H=(0,i.memo)(z)},44102:function(e,t,o){"use strict";var n=o(57437),i=o(79965),r=o(55788),s=o(28772),a=o(2265),l=o(14672);const d=(0,a.forwardRef)(((e,t)=>{let{children:o,startIcon:a=(0,n.jsx)(s.Z,{}),...d}=e;const{t:c}=(0,r.$G)();return(0,l.CGy)(l.ZIl)?null:(0,n.jsx)(i.Z,{"data-tour":"add-button",startIcon:a,ref:t,...d,children:null!==o&&void 0!==o?o:c("common.add")})}));d.displayName="AddButton",t.Z=d},82346:function(e,t,o){"use strict";var n=o(57437),i=o(55788),r=o(95576),s=o(33301),a=o(14672),l=o(79965);t.Z=e=>{let{buttonType:t,children:o,...d}=e;const{t:c}=(0,i.$G)(),u=(0,a.TL5)(),p=(0,a.CGy)(a.BY5),m=(0,a.CGy)(a.ZIl),h=o||c("ui.video_button.watch_webinar"),g=()=>{p||u((0,a.L8q)({isModalVisible:!0}))};return m?null:"button"===t?(0,n.jsx)(l.Z,{onClick:g,variant:"contained",fullWidth:!0,startIcon:(0,n.jsx)(s.Z,{}),color:"primary","data-testid":"videoButton",size:"small",...d,children:h}):(0,n.jsx)(r.Z,{color:"success",onClick:g,"data-testid":"videoIconButton",...d,children:(0,n.jsx)(s.Z,{})})}},8754:function(e,t,o){"use strict";var n=o(57437),i=o(14672),r=o(21170),s=o(39155),a=o(19902),l=o(46387),d=o(55788),c=o(2265),u=o(6684),p=o(49308),m=o(6551),h=o(35773);const g={wrapper:e=>({display:"flex",flexDirection:"column",borderWidth:e?0:1,py:3,px:{xs:2,sm:3},"@media screen and (max-width: 1280px)":{height:"auto !important"}}),content:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:"12px",gap:"12px"},showAll:{flexShrink:0,"& > .MuiTypography-root":{color:"colors.primary",fontWeight:"bold",whiteSpace:"nowrap",textDecoration:"none",textTransform:"initial !important","&:hover":{textDecoration:"underline"}}}};t.Z=e=>{let{children:t,title:o,id:x,additionalBlock:v,className:b,titleVariant:f="h2",minimized:_,hideHeader:j,showAllCallback:y,showAllHref:Z,isPaperWrapper:C=!0,removeShowAll:w,removeShowAllCounters:k,minNumberForShowAllVisible:S=1,sx:T,total:I}=e;var M;const{t:P}=(0,d.$G)(),B=(0,i.CGy)(i.ulX),A=Array.isArray(null===(M=t.props)||void 0===M?void 0:M.children)?t.props.children:c.Children.toArray(t),E=I||A.length||0,F=E>(null!==S&&void 0!==S?S:1)&&!w&&!B,G=(0,n.jsxs)(n.Fragment,{children:[!_&&!j&&(0,n.jsxs)(r.Z,{sx:g.content,children:[(0,n.jsx)(l.Z,{variant:f,"data-styleid":"".concat((0,m.bS)(x),"-title"),children:P(o||"")}),F&&(0,n.jsx)(h.Z,{href:!y&&Z,sx:g.showAll,children:(0,n.jsx)(s.Z,{variant:"text",className:p.J.link,"data-styleid":"show-all","data-tour":"show-all","data-testid":"amount-link",sx:[y&&u.W0.pointer],...y&&!Z&&{onClick:y}
1,children:"".concat(P("common.show_all")," ").concat(k?"":"(".concat(E,")"))})})]}),v,(0,n.jsx)(r.Z,{children:t})]});return C?(0,n.jsx)(a.Z,{"data-testid":"wrapperBlock",className:b,sx:[{...g.wrapper(_),justifyContent:v?"start":"space-between"},...Array.isArray(T)?T:[T]],variant:"outlined","data-styleid":(0,m.bS)(x),id:(0,m.bS)(x),children:G}):G}},64738:function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return S}});var n=o(57437),i=o(2265),r=o(14672),s=o(62944),a=o(79965),l=o(12824),d=o(811),c=o(21170),u=o(19902),p=o(46387),m=o(55788),h=o(6684),g=o(49329),x=o(50519),v=o(93223),b=o(17144),f=o(90154),_=o(74506),j=o(68714),y=o(19007),Z=o(35773);var C={wrapper:{boxShadow:"initial",height:"100%",display:"flex",flexDirection:"column",justifyContent:"space-between",position:"relative"},fixedSize:{width:"300px"},mediaWrapper:{aspectRatio:"1.74",height:"auto",position:"relative",overflow:"hidden",mb:"12px","@supports not (aspect-ratio: 1)":{pt:"59.7%"}},media:{borderRadius:"6px",position:"absolute",top:0,left:0,width:"100%",height:"100%"}},w=o(539);const k={[w.v.Pending]:{label:"common.pending",status:"pending"},[w.v.Approved]:{label:"common.approved",status:"approved"},[w.v.Rejected]:{label:"common.rejected",status:"rejected"}};var S=e=>{let{article:t,fixedSize:o,bigMedia:w,editableView:S,inPageEdit:T,showNewsEditView:I,bigImage:M,disableNewsOpen:P,hrefQuery:B}=e;const{t:A}=(0,m.$G)(),E=(0,r.TL5)(),[F,G]=(0,i.useState)(!1),R=[(0,g.xz)(t.public_date,"LL"),t.author&&"".concat(A("helpers.string_utils.by")," ").concat(t.author)].filter((e=>"Invalid Date"!==e)),{articleUrl:L,openArticle:W,shouldNotHaveLink:N}=(0,y.Z)(t),D=w?M?936:669:293,z=Boolean(L&&!N&&!P),H=z?(0,x.C)({pathname:"/news/".concat(L)},B):void 0,O={src:t.img,width:D,title:t.title,alt:t.title},$=t.status?k[t.status]:null;return(0,n.jsxs)(u.Z,{variant:w?"elevation":"outlined",sx:[C.wrapper,Boolean(o)&&C.fixedSize,{p:w?0:2,backgroundColor:w?"transparent":"colors.white"}],"data-testid":"article",children:[(0,n.jsx)(j.Z,{ownerType:"news",id:+t.id,sx:{top:28,left:0,right:0},full:!0,setAbsolute:!0}),(0,n.jsxs)(c.Z,{children:[(0,n.jsx)(Z.Z,{href:H,children:(0,n.jsx)(c.Z,{sx:[C.mediaWrapper,z&&h.W0.pointer],children:(0,n.jsx)(s.default,{sx:C.media,image:O})})}),R&&(0,n.jsx)(p.Z,{variant:"subtitle2",component:"div",color:"textSecondary","data-testid":"date",gutterBottom:!0,children:(0,n.jsx)(b.Z,{textArray:R})}),t.title&&(0,n.jsx)(Z.Z,{href:H,children:(0,n.jsx)(p.Z,{variant:"h3",component:"div",gutterBottom:!0,title:t.title,sx:[z&&h.W0.pointer,h.W0.ellipsis(2)],children:t.title})}),t.short&&(0,n.jsx)(p.Z,{variant:"body2",component:"p",gutterBottom:!0,sx:h.W0.ellipsis(3),children:t.short})]}),S&&(0,n.jsxs)(c.Z,{display:"flex",justifyContent:"space-between",alignItems:"center",mt:"auto",children:[$&&(0,n.jsx)(d.Z,{...$,label:A($.label)}),(0,n.jsxs)(c.Z,{children:[(0,n.jsx)(f.Z,{sx:{mr:1},onClick:e=>{e.stopPropagation(),T&&I?I(t):W()}}),(0,n.jsx)(_.Z,{onClick:G.bind(null,!F)})]})]}),(0,n.jsx)(l.Z,{open:F,width:"500px",title:A("articles.article_vertical_view.delete_article"),onClose:G.bind(null,!F),ActionButtons:(0,n.jsx)(a.Z,{color:"error",onClick:()=>{E((0,v.k6)({id:t.id})).catch(),G(!1)},children:A("common.ok")}),contentProps:{sx:{textAlign:"center"}},children:(0,n.jsx)(p.Z,{children:A("articles.article_vertical_view.are_you_sure_you_want")})})]})}},13072:function(e,t,o){"use strict";o.d(t,{Z:function(){return S}});var n=o(57437),i=o(2265),r=o(14672),s=o(62069),a=o(19902),l=o(46387),d=o(55788),c=o(83983),u=o(9125),p=o(64738),m=o(51111),h=o(14592),g=o(83543),x=o(10310),v=o(68184),b=o(67293),f=o(99376),_=o(54460),j=o(40841),y=o(88007),Z=o(45848);const C=e=>{let{children:t}=e;const o=(0,i.useRef)(!1),s=(0,r.TL5)(),a=((0,f.useSearchParams)()||new URLSearchParams).get("q"),l=(0,r.CGy)((e=>(0,u.dO)(e,"news"))),{areApplied:d}=(0,r.CGy)(u.B0),c=(0,_.Z)({type:"news"}),p=(0,Z.Z)({selectedFilters:l},1e3);(0,j.Z)("news");const m=(0,y.Z)(),[h,g]=(0,i.useState)(!1),x=async()=>{await m()&&((async()=>{g(!0),await s((0,r.aL1)({force:!0})),g(!1)})().catch(),c({query:{pageNumber:1}}))};return(0,i.useEffect)((()=>
1{if(!o.current&&d){var e,t;o.current=!0;if(1===l.length&&Boolean(null===(e=l[0])||void 0===e?void 0:e.isCommonSearch)&&(null===(t=l[0])||void 0===t?void 0:t.label)===a)return}o.current&&x().catch()}),[p]),(0,n.jsx)(b.default,{isLoading:h,children:t})};var w=(0,i.memo)(C);var k={wrapper:{p:"24px",width:"100%"},header:{mb:"20px"}};var S=e=>{let{filterTypesToExclude:t=[]}=e;const{t:o}=(0,d.$G)(),b=(0,r.TL5)(),f=(0,r.CGy)(r.B3H),_=(0,r.CGy)(r.ZzW),j=(0,r.CGy)(u.Rv),{areApplied:y}=(0,r.CGy)(u.B0),Z=(0,r.CGy)(r.cho),{count:C,isFetching:S}=(0,r.CGy)(r.dDQ),T=(0,i.useMemo)((()=>({news:_.mapByProperty("id")})),[_]);(0,x.Z)(T);const I=C>f;return(0,n.jsxs)(a.Z,{variant:"outlined",sx:k.wrapper,children:[(0,n.jsx)(l.Z,{variant:"h2",sx:k.header,"data-styleid":"newsContainerTitle",children:"".concat(o("common.news")," (").concat(C,")")}),(0,n.jsx)(m.Z,{sx:{mb:2}}),(0,n.jsx)(h.Z,{typesToExclude:t}),(0,n.jsx)(w,{children:(0,n.jsxs)(c.Z,{dataLength:f,next:()=>{if(j||S)return;const e=Z+1;b((0,r.aL1)({force:!0,currentPage:e,reset:!1})).catch()},hasMore:!j&&I,loader:(0,n.jsx)(g.Z,{}),style:{overflow:"visible"},scrollThreshold:.6,children:[f>0&&(0,n.jsx)(s.ZP,{"data-testid":"articlesContent",container:!0,spacing:2,children:_.map((e=>(0,n.jsx)(s.ZP,{item:!0,xs:12,sm:6,lg:4,"data-tour":"article-vertical-view",children:(0,n.jsx)(p.default,{article:e})},e.id)))}),(0,n.jsx)(v.Z,{title:o(y?"articles.articles_content.no_news_found":"articles.articles_content.no_news_yet"),subtitle:o(y?"shared.empty_state.what_you_searched_was_unfortunately":"articles.articles_content.news_have_not_been_added_yet"),length:f,reason:y?"appliedFilters":"noContent",isFetching:S})]})})]})}},539:function(e,t,o){"use strict";var n;o.d(t,{v:function(){return n}}),function(e){e[e.Pending=1]="Pending",e[e.Approved=2]="Approved",e[e.Rejected=3]="Rejected"}(n||(n={}))},24720:function(e,t,o){"use strict";o.d(t,{default:function(){return m}});var n=o(57437),i=o(2265),r=o(18856),s=o(87669),a=o(7220),l=o(55788),d=o(85519),c=o(7327),u=o(30889);var p={linkWrapper:{textDecoration:"none","&:hover":{textDecoration:"none"}},aTagStyle:{color:"inherit",textDecoration:"inherit"}};var m=e=>{let{href:t,target:o="_self",rel:m,children:h,sx:g,aTagStyle:x,dataStyleId:v="",className:b,onClick:f}=e;const{showErrorMessage:_}=(0,a.Z)(),{t:j}=(0,l.$G)(),{isBlocked:y,blockerMessage:Z}=(0,s.i$)();if(!t)return(0,n.jsx)(n.Fragment,{children:h});const{preparedHref:C,isNextComponent:w}=(0,c.Z)({href:t}),k=e=>{(e=>{y&&(e.preventDefault(),Z&&_(j(Z)))})(e),e.defaultPrevented||null===f||void 0===f||f(e)},S=(0,d.M)(h),T=null!==m&&void 0!==m?m:"_blank"===o?"noopener noreferrer":void 0,I=w?u.Z:r.Z,M=!w&&null;return S?(0,i.cloneElement)(h,{component:I,href:C,onClick:e=>{h.props.onClick&&h.props.onClick(e),k(e)},target:o,rel:T,prefetch:M,...v&&{"data-styleid":v}}):(0,n.jsx)(r.Z,{component:I,href:C,color:"inherit",onClick:k,sx:[p.aTagStyle,...Array.isArray(x)?x:[x],...Array.isArray(g)?g:[g]],target:o,rel:T,"data-styleid":v,prefetch:M,className:b,children:h})}},7327:function(e,t,o){"use strict";o.d(t,{Z:function(){return l}});var n=o(6551),i=o(57499),r=o(68167);const s=/^\/(index|(profile\/(lounge|booking|exportLeads|badge|exportScannedMe))|(exhibitors\/(lounge|badge)))/i,a=e=>{const t=(0,n.M8)(),o=e.replace(/\/?widgets\//g,"/");return"".concat(t?"/widgets":"").concat(o)};var l=e=>{let{href:t}=e;var o;const l=(0,i.u)(t);if(/^\/\//.test(l))return{preparedHref:l.replace(/^\/\//,"https://"),isNextComponent:!1};if(s.test(l))return{preparedHref:l,isNextComponent:!1};if(/^\//.test(l)){const e=(0,r.b)(),t=e?l.replace(new RegExp("^".concat(e,"/?"),"i"),"/"):l;return{preparedHref:a(t),isNextComponent:!0}}const d=n.CL.find((e=>l.includes(e)));return d&&(null===(o=n.Li[d])||void 0===o?void 0:o.test(l))?{preparedHref:l,isNextComponent:!1}:{preparedHref:l.replace(n._U,"").replace(n.Ni,"https://$&"),isNextComponent:!1}}},35773:function(e,t,o){"use strict";var n=o(24720);t.Z=n.default},54460:function(e,t,o){"use strict";var n=o(14672),i=o(9125),r=o(47807),s=o(97037),a=o(61081);t.Z=e=>{let{type:t}=e;const{onPageLimit:o=12}=(0,n.CGy)(n.Hc0)||{},l=(0,n.CGy)(i._F),d=(0,n.CGy)(i.UK),c=(0,r.Z)({isUseFunction:!0});return e=>{const n=t in s.E?s.E[t]:void 0;if(!n)return;const{query:i,...r}=e,{pageNumber:u,limit:p,...m}=i||{},h={...r,action:a.eX.Search,objectId:0,objectType:n,query:{...m,...l,...d,page:u||1,limit:p||o}};c.handleSetStatistics(h)}}},27342:function(e,t,o){"use strict";var n=o(57437),i=o(66593),r=o(13241),s=o(21170),a=o(72608),l=o(28181),d=o(26225),c=o(46387),u=o(55788);const p={visibilityIcon:{display:"flex",justifyContent:"center",alignItems:"center",width:48,height:48,borderRadius:"40px",flexShrink:0,color:"colors.iconSecondary",backgroundColor:"colors.statusNeutralLight"},radio:{ml:"auto"},title:{textTransform:"uppercase",mb:1.5}},m=[{value:1,text:"groups.groups_visibility_settings.all_users",subtext:"groups.groups_visibility_settings.visible_to_all_users_on",Icon:r.Z},{value:2,text:"groups.groups_visibility_settings.group_members",subtext:"groups.groups_visibility_settings.visible_to_members_of_this",Icon:i.Z}];t.Z=e=>{let{value:t,onChange:o}=e;const{t:i}=(0,u.$G)();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.Z,{color:"textSecondary",variant:"h5",sx:p.title,children:(0,n.jsxs)("span",{children:[i("groups.groups_visibility_settings.who_can_see_your_post")," :"]})}),(0,n.jsx)(d.Z,{value:t,onChange:o,children:m.map((e=>(0,n.jsx)(a.Z,{value:e.value,control:(0,n.jsx)(l.Z,{sx:p.radio}),label:(0,n.jsxs)(s.Z,{display:"flex",alignItems:"center",mb:2,children:[(0,n.jsx)(s.Z,{sx:p.visibilityIcon,children:(0,n.jsx)(e.Icon,{})}),(0,n.jsxs)(s.Z,{mx:1,children:[(0,n.jsx)(c.Z,{variant:"h4",children:i(e.text)}),(0,n.jsx)(c.Z,{variant:"subtitle2",color:"textSecondary",children:i(e.subtext)})]})]}),disableTypography:!0,labelPlacement:"start"},e.value)))})]})}},52706:function(e,t,o){"use strict";o.d(t,{P:function(){return i},y:function(){return r}});var n=o(89665);const i=e=>e.reduce(((e,t)=>{var o;
1const n=t.parent||(null===t||void 0===t||null===(o=t.title)||void 0===o?void 0:o.toLowerCase()),i=(null===e||void 0===e?void 0:e[n])||[],r=t.parent?[...i,t.id]:[];return{...e,[n]:r}}),{}),r=e=>Object.keys(e||{}).filter((t=>e[t])).map((t=>({title:(0,n.n)(t),id:t.toLowerCase(),children:e[t]})))},87669:function(e,t,o){"use strict";o.d(t,{BlockBrowserNavigation:function(){return d},I:function(){return l},i$:function(){return a}});o(57437);var n=o(7220),i=(o(99376),o(97910),o(2265)),r=o(14672);const s=(0,i.createContext)([!1,()=>{}]),a=()=>{const e=(0,r.CGy)(r.niZ),[t]=(0,i.useContext)(s);return{isBlocked:t,blockerMessage:e}},l=()=>{const[e,t]=(0,i.useContext)(s);return(0,i.useEffect)((()=>(t((()=>!0)),()=>{t((()=>!1))})),[e,t]),null},d=()=>{const{isBlocked:e}=a(),{showErrorMessage:t}=(0,n.Z)();return(0,i.useEffect)((()=>{if(!e)return;const t=e=>{e.preventDefault()};return window.addEventListener("beforeunload",t),()=>{window.removeEventListener("beforeunload",t)}}),[e,t]),null}},5587:function(e,t,o){"use strict";o.d(t,{D:function(){return n},Q:function(){return i}});const n={about:"common.about",additional_video:"common.additional_video",attending:"common.attending",brands:"nav.menu.brands",categories:"common.categories",child_companies:"exhibitor.exhibitor_list_view_wrapper.child_companies",common_connections:"app.participant.common_connections",contact_persons:"sessions.session_calendar_view.contact_persons",exhibitor_tags:"common.exhibitor_tags",exhibitors:"common.exhibitors",marketing_content:"profile.profile_video_block.marketing_content",matchmaking_info:"app.participants.matchmaking_info",matchmaking_information:"matchmaking.matchmaking_info_block.matchmaking_information",moderators:"common.moderators",my_activities:"app.participants.my_activities",my_interests:"app.participants.my_interests",news:"common.news",products:"common.products",repspark:"Repspark",sessions:"common.sessions",sessions_we_speak_at:"sessions.session_block.sessions_we_speak_at",speakers:"common.speakers",sponsors:"common.sponsors",sponsored_events:"exhibitor.sponsored_events",sponsored_sessions:"exhibitor.sponsored_sessions",team_members:"nav.menu.team_members",topics:"sessions.topics_list.topics",video:"common.video",webinar:"common.webinar",we_re_exhibiting_at:"events.events_list.exhibiting_at"},i={Feed:"app.groups.feed","Marketing content":"profile.profile_video_block.marketing_content",News:"common.news","On demand":"app.groups.on_demand",People:"common.people",Sessions:"common.sessions"}},49876:function(e,t,o){"use strict";var n=o(57437),i=o(2265),r=o(30166),s=o(55788),a=o(21170),l=o(95576),d=o(46387),c=o(81705),u=o(2291),p=o(45128),m=o(59869),h=o(72291),g=o(51072),x=o(50021),v=o(40748);const b=e=>{let{list:t,selectedItems:b,setSelectedItems:f,title:_="common.search",treeView:j,disableDropdown:y}=e;const{t:Z}=(0,s.$G)(),[C,w]=(0,i.useState)(""),[k,S]=(0,i.useState)(!y),T=(0,i.useMemo)((()=>{if(!C)return t;const e=e=>e.title.toLowerCase().includes(C.toLowerCase());return j?(0,v.$)(t).filter(e):t.filter(e)}),[t,C,j]),I=(0,i.useMemo)((()=>(0,r.default)((()=>o(1989)("./".concat(j?"TreeContent":"ListContent"))))),[j]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(a.Z,{sx:x.Z.selectedItemsWrapper,children:[(0,n.jsx)(a.Z,{onClick:e=>{const t=e.target.closest("svg[data-id]");if(!t)return;const{id:o}=t.dataset;f(b.filter((e=>e.id.toString()!==o)))},children:b.map((e=>(0,n.jsxs)(a.Z,{sx:x.Z.categoryWrapper,children:[!j&&(0,n.jsx)(g.Z,{component:"img",image:{url:e.image||"",width:16,height:16},sx:x.Z.smallImg}),(0,n.jsx)(d.Z,{variant:"subtitle4",className:"ellipsis",children:e.title}),(0,n.jsx)(c.Z,{"data-id":e.id})]},e.id)))}),!y&&(0,n.jsx)(l.Z,{onClick:()=>{S(!k)},size:"small",children:k?(0,n.jsx)(u.default,{}):(0,n.jsx)(p.Z,{})})]}),(0,n.jsx)(a.Z,{sx:[x.Z.dropDown,k&&x.Z.hidden],children:(0,n.jsxs)(a.Z,{sx:x.Z.dropDownContent,children:[(0,n.jsx)(h.Z,{fullWidth:!0,placeholder:Z(_||""),onChange:e=>{w(e.target.value)},value:C,InputProps:{startAdornment:(0,n.jsx)(m.Z,{})}}),(0,n.jsx)(a.Z,{sx:x.Z.dropDownList,children:(0,n.jsx)(I,{list:T,selectedItems:b,setSelectedItems:f})})]})})]})};t.Z=(0,i.memo)(b)},50021:function(e,t){"use strict";t.Z={selectedItemsWrapper:{p:1,borderRadius:"5px",border:"1px solid",borderColor:"colors.borderGreyLight",backgroundColor:"colors.white",display:"flex",minHeight:50,gap:1,"& > .MuiBox-root":{display:"flex",flexWrap:"wrap",gap:1},"& > .MuiButtonBase-root":{ml:"auto",alignSelf:"center"}},categoryWrapper:{height:28,display:"flex",alignItems:"center",px:1,backgroundColor:"colors.statusNeutralLight",borderRadius:"3px","& > svg:last-of-type":{ml:1.5,width:14,cursor:"pointer"}},dropDown:{backgroundColor:"colors.white",width:"100%",transition:"max-height 0.5s",maxHeight:391,boxSh
1adow:"0px 0px 15px rgba(160, 160, 160, 0.2)",borderRadius:1,overflow:"hidden"},dropDownContent:{m:"14px",px:0,"& > .MuiFormControl-root > .MuiFormControl-root":{width:"100%",mb:1.5,"& .MuiInputBase-input":{pl:1}}},dropDownList:{overflow:"auto",maxHeight:285,pr:1},hidden:{maxHeight:0,p:0,boxShadow:"initial"},listItem:{display:"flex",alignItems:"center",py:1,cursor:"pointer",minHeight:40,"&:not(:last-of-type)":{borderBottom:"1px solid",borderColor:"colors.borderGreyLight"}},smallImg:{mr:1.5,width:18,height:18,flexShrink:0,"&.MuiPaper-rounded":{borderRadius:1}},image:{width:40,height:40,mr:1.5,flexShrink:0,backgroundColor:"colors.backgroundGreyLight","&.MuiPaper-rounded":{borderRadius:1},"& .MuiSvgIcon-root":{maxWidth:24}},treeWrapper:{"& .Mui-expanded > .MuiTreeItem-label .MuiSvgIcon-root":{backgroundColor:"colors.functionalSuccess"},"&.MuiTreeView-root > .MuiTreeItem-root":{py:.75,"& .MuiTreeItem-root":{mt:.75},"& .MuiTreeItem-content":{"&.Mui-selected, &.Mui-focused":{backgroundColor:"unset"}},"&:not(:last-of-type)":{borderBottom:"1px solid",borderColor:"colors.borderGreyLight"}}},treeItemContent:{display:"flex",alignItems:"center",wordBreak:"break-word","& > svg":{width:15,height:15,border:"1px solid",borderColor:"colors.borderGrey",borderRadius:"2px",mr:.75,color:"colors.white"}},checkBoxWrapper:{flexShrink:0},textWrapper:{mr:"auto",pr:1,"& > .MuiTypography-root":{wordBreak:"break-word"}}}},23304:function(e,t,o){"use strict";var n=o(57437),i=o(2265),r=o(14672),s=o(6551),a=o(48236),l=o(61081),d=o(74663),c=o(48846),u=o(47807);t.Z=e=>{let{isExhibitorContent:t=!0,zoneHeight:o,showAdminButtons:p,checkRequirements:m}=e;const h=(0,r.TL5)(),g=(0,r.CGy)(r.CXP),x=(0,u.Z)({isUseFunction:!0}),[v,b]=(0,i.useState)([]),[f,_]=(0,i.useState)({}),j=v.length;(0,i.useEffect)((()=>{m&&h(j>0?(0,r.xum)("requiredContent"):(0,r.FlP)("requiredContent"))}),[m,j,h]);const y=(0,i.useCallback)((()=>t?(0,a.k_)("".concat((0,d.t)(),"/api/v1/exhibitor/contentGet"),{method:"GET"}).then((e=>{200===(null===e||void 0===e?void 0:e.code)&&(0,s.Kn)(e.data)&&(_(e.data.settings||{}),b(e.data.list||[]))})):Promise.reject()),[t]);(0,i.useEffect)((()=>{y()}),[y]);const Z=(0,i.useCallback)((function(e){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t)return Promise.reject();const n={action:l.eX.Upload,objectId:+e,objectType:l.rH.Media,additionalType:l.rH.Exhibitor,additionalId:Number(g)};x.handleSetStatistics(n);const i={id:+e,track_id:o.trackId||o.track,title:o.title,description:o.description};return(0,a.k_)("".concat((0,d.t)(),"/api/v1/exhibitor/contentSave"),{body:i}).then((e=>{200===(null===e||void 0===e?void 0:e.code)&&y()}))}),[y,t]),C=null===f||void 0===f?void 0:f.media_limit,w=f.content_description_limit,k=0!==C&&C<=j,S=o||(j>0?66:268);return(0,n.jsx)(c.Z,{mediaFiles:v,setMediaFiles:b,hideDropZone:k,onSaveCallback:Z,mediaLimit:C,realtimeUpload:!0,deleteFromServer:!0,zoneHeight:S,multiFiles:!0,descriptionLimit:w,showAdminButtons:p})}},98719:function(e,t,o){"use strict";o.d(t,{Z:function(){return F}});var n,i=o(57437),r=o(2265),s=o(14672),a=o(55788),l=o(21170),d=o(46387),c=o(40280),u=o(12824),p=o(85219),m=o(21653),h=o(92566),g=o(72608);!function(e){e.SET_APPLIED_TAGS="SET_APPLIED_TAGS",e.SET_CHECKED_TAGS="SET_CHECKED_TAGS",e.SET_SEARCH="SET_SEARCH",e.CLEAR_ALL="CLEAR_ALL"}(n||(n={}));var x={appliedTagsWrapper:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2.5,"& > h5.MuiTypography-root":{textTransform:"uppercase"}},bodyContainer:{display:"flex",flexFlow:"column nowrap",maxHeight:{xs:200,sm:316},overflow:"auto"},tagItem:{justifyContent:"space-between",py:1,"&:not(:last-of-type), &:first-of-type":{borderBottom:"1px solid",borderBottomColor:"colors.borderGreyLight"}}},v=o(19902),b=o(77584),f=o(81705);var _={tagsContainer:{"&.MuiPaper-root":{display:"flex",justifyContent:"space-between",maxHeight:90,minHeight:50,overflowY:"auto",width:"100%",mt:2,p:1,"&.MuiPaper-root":{width:"auto","&.MuiPaper-rounded":{borderRadius:"5px"}},"& > .MuiSvgIcon-root":{color:"colors.iconSecondary",cursor:"pointer",mt:1,alignSelf:"flex-start"}}},tagField:{"&.MuiFormControl-root":{minWidth:100,flex:1,margin:"auto","& .MuiOutlinedInput-root":{border:"none !important"},"&.MuiTextField-root .Mui-focused .MuiInputBase-input":{boxShadow:"none"},"& .MuiInputBase-input":{border:"none",py:.5,px:1,height:"unset"}}},tag:{display:"inline-flex",alignItems:"center",p:"2px 8px",fontSize:"14px",backgroundColor:"colors.statusNeutralLight",borderRadius:"3px","& svg":{ml:1,fontSize:"14px","&, &:hover":{cursor:"pointer"}}}};const j=[{key:"createOrChooseTag",text:"system.add_system_tags_modal.create_or_choose_tag"},{key:"relevantTagsNotice",text:"system.add_system_tags_modal.relevant_tags_n
1otice"}];var y=e=>{let{checkedTags:t,deletingHandler:o,setCheckedTags:n,creationHandler:r,setCreatedTag:s,createdTag:c}=e;const{t:u}=(0,a.$G)(),p=t.length>0;return(0,i.jsxs)(i.Fragment,{children:[j.map((e=>{let{key:t,text:o}=e;return(0,i.jsx)(d.Z,{variant:"body2",children:u(o)},t)})),(0,i.jsxs)(v.Z,{sx:[_.tagsContainer,{py:p?.5:1.25}],variant:"outlined",children:[(0,i.jsxs)(l.Z,{display:"flex",flexWrap:"wrap",onClick:e=>{const t=e.target.closest("svg");if(!t)return;const{id:n}=t.dataset||{};n&&o(+n)},flex:1,gap:1,children:[t.map((e=>(0,i.jsxs)(l.Z,{sx:_.tag,children:[e.name,(0,i.jsx)(f.Z,{fontSize:"small","data-id":e.id})]},e.id))),(0,i.jsx)(b.Z,{sx:_.tagField,variant:"outlined",required:!0,id:"tagCreator",name:"tagCreator",placeholder:"+ ".concat(u("system.add_tag")),onChange:e=>{s(e.target.value)},onKeyPress:e=>{"Enter"===e.key&&(r&&r(c).then((e=>{e&&n([...t,e])})),s(""))},value:c,autoComplete:"off"})]}),p&&(0,i.jsx)(f.Z,{onClick:()=>{n([])}})]})]})},Z=o(59869),C=o(83316),w=o(72291);var k={searchField:{mt:3,"& .MuiSvgIcon-root":{color:"colors.iconSecondary","&, &:hover":{cursor:"pointer"}}}};var S=e=>{let{checkedTags:t,deletingHandler:o,setSearch:n,search:r}=e;const{t:s}=(0,a.$G)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(w.Z,{value:r,onChange:e=>{n(e.target.value)},id:"tagSearch",name:"tagSearch",placeholder:s("system.tag_search.search_tag"),sx:k.searchField,fullWidth:!0,InputProps:{endAdornment:(0,i.jsx)(C.Z,{position:"end",children:(0,i.jsx)(Z.Z,{})})}}),(0,i.jsx)(m.Z,{tags:t,onDelete:o,sx:{mt:3}})]})};const{SET_APPLIED_TAGS:T,SET_CHECKED_TAGS:I,SET_SEARCH:M,CLEAR_ALL:P}=n,B={appliedTags:[],checkedTags:[],search:""},A=(e,t)=>{switch(t.type){case T:var o;return{...e,appliedTags:null!==(o=t.payload.appliedTags)&&void 0!==o?o:[]};case I:var n;return{...e,checkedTags:null!==(n=t.payload.checkedTags)&&void 0!==n?n:[]};case M:var i;return{...e,search:null!==(i=t.payload.search)&&void 0!==i?i:""};case P:return B;default:return e}},E=e=>{let{open:t,onClose:o,onSave:n,onCreate:v,type:b=c.B.News,additionalText:f,initialData:_,withSearch:j}=e;const{t:Z}=(0,a.$G)(),C=(0,s.TL5)(),w=(0,s.CGy)((e=>(0,s.rH8)(e,b))),[k,E]=(0,r.useReducer)(A,B),{appliedTags:F,checkedTags:G,search:R}=k,{tags:L,appliedTags:W,checkedTags:N}=_||{},D=Array.isArray(L)&&Boolean(L.length),z=F.length>0,H=F.map((e=>{let{id:t}=e;return t})),O=Boolean(v),$=(0,r.useMemo)((()=>{const e=D?L:w,t=R?null===e||void 0===e?void 0:e.filter((e=>{var t,o;return null===(o=e.name)||void 0===o||null===(t=o.toLowerCase())||void 0===t?void 0:t.includes(R.toLowerCase())})):e;return z?t.filter((e=>{let{id:t}=e;return!H.includes(t)})):t}),[w,L,H,z,R]),U=G.map((e=>{let{id:t}=e;return t})),q=function(){E({type:I,payload:{checkedTags:arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]}})},V=function(){E({type:T,payload:{appliedTags:arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]}})};(0,r.useEffect)((()=>{N&&q(N)}),[N]),(0,r.useEffect)((()=>{W&&V(W)}),[W]),(0,r.useEffect)((()=>{D||C((0,s.XKn)({type:b}))}),[C,b,D]);const K=e=>{O&&E({type:M,payload:{search:""}});const{id:t=0,name:o}=e.target||{},n=+t;if(G.find((e=>e.id===n))){const e=G.filter((e=>e.id!==n));q(e)}else q([...G,{id:n,name:o}])},J=e=>{const t=t=>e!==+t.id;F.find((t=>e===+t.id))&&V(F.filter(t)),q(G.filter(t))},Q=e=>{E({type:M,payload:{search:e}})},Y=j?G.filter((e=>{let{id:t}=e;return!H.includes(t)})):[],X={handleClose:o,handleSave:()=>{n?n(G):o()},saveButtonProps:{color:"primary"}};return(0,i.jsxs)(u.Z,{open:t,onClose:o,width:600,title:Z("system.add_system_tags_modal.select_tag"),ActionButtons:(0,i.jsx)(p.Z,{...X}),children:[z&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(l.Z,{sx:x.appliedTagsWrapper,children:[(0,i.jsx)(d.Z,{variant:"h5",children:Z("system.add_system_tags_modal.applied_tags")}),(0,i.jsx)(d.Z,{onClick:()=>{E({type:P})},color:"primary",variant:"button2",className:"pointer",children:Z("system.add_system_tags_modal.clear_all_tags")})]}),(0,i.jsx)(m.Z,{tags:F,onDelete:J,sx:{mb:1.5}})]}),Boolean(f)&&(0,i.jsx)(d.Z,{variant:"body2",children:f}),O&&(0,i.jsx)(y,{checkedTags:G,deletingHandler:J,setCheckedTags:q,creationHandler:v,setCreatedTag:Q,createdTag:R}),j&&(0,i.jsx)(S,{checkedTags:Y,deletingHandler:J,search:R,setSearch:Q}),(0,i.jsx)(l.Z,{sx:x.bodyContainer,children:$.map((e=>{let{id:t,name:o}=e;return(0,i.jsx)(g.Z,{sx:x.tagItem,onChange:K,label:o,labelPlacement:"start",checked:U.includes(t),control:(0,i.jsx)(h.Z,{id:String(t),name:null!==o&&void 0!==o?o:void 0}),"data-testid":"checkboxLabel"},t)}))})]})};var F=(0,r.memo)(E,((e,t)=>!e.open&&!t.open))},40280:function(e,t,o){"use strict";var n;o.d(t,{B:function(){return n}}),function(e){e.News="news",e.OnDemand="ondemand",e.Sessions="sessions",e.Groups="groups"}(n||(n={}))},69797:function(e,t,o){"use strict";
1var n=o(57437),i=o(2265),r=o(21170),s=o(14672),a=o(50365),l=o(16308),d=o(21453),c=o(8754),u=o(6551),p=o(97510);const m=e=>{let{setShowAllData:t,teamMembers:o,title:m="nav.menu.team_members",anchor:h,titleVariant:g="h2",isHorizontal:x,isNotSlider:v,fixedSize:b=!0,removeShowAllCounters:f,showAllFunction:_,showAllHref:j,totalMembers:y}=e;const Z=(0,s.CGy)(s.ZIl),C=(0,s.CGy)(p.jm),w=(0,i.useMemo)((()=>{const e=(e=>t=>({...t,name:(0,u.NG)([t.firstName,t.lastName]," "),image:t.photoURL,companyName:t.company_name,new:!1,isNew:t.new||Boolean(null===t||void 0===t?void 0:t.isNew),isOnline:e.includes(t.id),memberType:(0,u.Rg)(t),role:t.roles||t.global_role||t.role||[]}))(C);return o.map(e)}),[o]),k=x?d.Z:l.default,S=v?c.Z:a.Z;return(0,n.jsx)(S,{isPaperWrapper:!v,title:m,id:(0,u.bS)(null!==h&&void 0!==h?h:m),removeShowAllCounters:f,titleVariant:g,showAllHref:j,...v?{total:y}:{slidesCount:y},...!j&&{showAllCallback:()=>{_?_():t&&t({blockType:"participants"})}},children:(0,n.jsx)(n.Fragment,{children:w.map((e=>(0,n.jsx)(r.Z,{sx:{height:"100%",mb:v?1:0},children:(0,n.jsx)(k,{teamMember:e,fixedSize:b,hideVideoButton:!0,hideButtons:Z})},e.id)))})})};t.Z=(0,i.memo)(m,u.wy)},16308:function(e,t,o){"use strict";o.r(t);var n=o(57437),i=o(2265),r=o(21170),s=o(19902),a=o(46387),l=o(50519),d=o(13411),c=o(82346),u=o(57015),p=o(86451),m=o(55734),h=o(89753),g=o(68714),x=o(90154),v=o(74506),b=o(6551),f=o(35773);const _={favButton:{position:"absolute",right:"16px",top:"16px",zIndex:3,"& > .MuiButtonBase-root":{mt:0}},additionalIconStyles:{width:"24px",height:"24px",left:"2px","& svg":{fontSize:"16px"}},wrapper:{display:"flex",p:2,flexDirection:"column",position:"relative",height:"100%"},overflow:{overflow:"visible"},teamMemberIcon:{borderRadius:"50%",overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center",width:"24px",height:"24px",mr:.5},userInfo:{mt:"16px",flexGrow:1,display:"flex",flexDirection:"column",gap:"4px"},actionButtonsWrapper:{width:"100%",display:"flex",justifyContent:"center",alignItems:"center",mt:1.25,"& > button.MuiButtonBase-root":{mx:.5,mt:0}}},j={avatarWrapper:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",marginTop:"10px"}},y={align:"center",component:"div",noWrap:!0},Z=e=>{let{teamMember:t,buttonType:o="iconButton",fixedSize:i,hideButtons:Z,hideVideoButton:C=!0,avatarSize:w=64,hideFavouriteButton:k,editableView:S,removeFromList:T,cardWidth:I=188,className:M,onDelete:P,onEdit:B,fullViewedButton:A,readOnly:E,location:F,hrefQuery:G}=e;const{id:R,canBeDeleted:L=!0,canBeEdited:W=!0,role:N,isNew:D=!1,name:z,image:H,position:O,memberType:$,companyName:U,isOnline:q,icon:V}=null!==t&&void 0!==t?t:{},K=(0,l.C)({pathname:"/participant/".concat(R)},G),J=A?{full:!0,sx:{top:16,right:0,left:0}}:{sx:{top:58,right:19}};return(0,n.jsxs)(s.Z,{variant:"outlined",className:M,sx:[_.wrapper,Boolean(i)&&{width:"".concat(I,"px")},Boolean(T)&&_.overflow],"data-testid":"teamMember","data-styleid":"team-member-card",children:[!k&&!Z&&(0,n.jsx)(d.default,{id:R,sx:_.favButton,ownerType:"visitor",ownerRole:N,removeFromList:T,location:F}),(0,n.jsx)(g.Z,{...J,setAbsolute:!0,id:R,ownerType:"visitor"}),D&&(0,n.jsx)(m.Z,{}),(0,n.jsx)(f.Z,{href:K,aTagStyle:j.avatarWrapper,children:(0,n.jsx)(h.Z,{size:w,user:{name:z,photo:H,id:R},additionIconType:b.qj[$]||"empty"})}),(z||O||U)&&(0,n.jsxs)(r.Z,{sx:_.userInfo,children:[(0,n.jsxs)(r.Z,{display:"flex",alignItems:"center",justifyContent:"center",children:[V&&(0,n.jsx)(r.Z,{sx:_.teamMemberIcon,children:(0,n.jsx)("i",{className:V.code||"fa fa-users"})}),z&&(0,n.jsx)(f.Z,{href:K,children:(0,n.jsx)(a.Z,{...y,"data-testid":"teamMemberName","data-styleid":"team-member-name",variant:"h4",title:z,children:z})})]}),O&&(0,n.jsx)(a.Z,{...y,"data-testid":"teamMemberPosition","data-styleid":"team-member-position",variant:"subtitle2",sx:{color:"colors.textSecondary"},title:O,children:O}),U&&(0,n.jsx)(a.Z,{...y,"data-testid":"teamMemberPosition","data-styleid":"team-member-company",variant:"subtitle2",color:"textPrimary",title:U,children:U})]}),!Z&&(0,n.jsxs)(r.Z,{sx:_.actionButtonsWrapper,children:[S?(0,n.jsxs)(n.Fragment,{children:[W&&(0,n.jsx)(x.Z,{onClick:()=>{B&&B(R)}}),!E&&L&&(0,n.jsx)(v.Z,{onClick:()=>{P&&P(R)}})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.Z,{type:o,id:R,ownerType:"visitor",location:F}),(0,n.jsx)(p.default,{type:o,id:R,ownerType:"visitor",location:F})]}),q&&!C&&(0,n.jsx)(c.Z,{buttonType:o})]})]})};t.default=(0,i.memo)(Z,b.wy)},79965:function(e,t,o){"use strict";o.d(t,{Z:function(){return u}});
1var n=o(57437),i=o(2265),r=o(35389),s=o(39155),a=o(21170);const l={small:16,medium:20,large:24};var d=o(49308);const c=(0,i.forwardRef)((function(e,t){let{size:o,children:i,disabled:c,loading:u,startIcon:p,endIcon:m,disableMinWidth:h,className:g,...x}=e;return(0,n.jsx)(s.Z,{size:o,ref:t,disabled:c||u,startIcon:!u&&p,endIcon:!u&&m,className:[g,h?d.J.disableMinWidth:""].join(" "),...x,children:u?(0,n.jsx)(r.Z,{size:l[o||"medium"],color:"inherit"}):(0,n.jsx)(a.Z,{component:"span",className:d.J.buttonContent,children:i})})}));c.displayName="Button";var u=c},91200:function(e,t,o){"use strict";var n=o(57437),i=o(2265),r=o(89902),s=o(8876),a=o(64119),l=o(16210);const d=(0,i.forwardRef)(((e,t)=>{const{color:o="default",deleteIcon:i,disableRipple:r,...l}=(0,a.Z)({props:e,name:"Tag"}),d=Boolean(l.onClick)||Boolean(l.onDelete)||!0===l.clickable;return(0,n.jsx)(c,{ref:t,color:o,deleteIcon:null!==i&&void 0!==i?i:(0,n.jsx)(s.Z,{}),...d&&{disableRipple:r},...l})}));d.displayName="Tag";const c=(0,l.ZP)(r.Z,{name:"Tag",slot:"root"})({});t.Z=d},73192:function(e,t,o){"use strict";o.d(t,{Z:function(){return u}});var n=o(57437),i=o(2265),r=o(41530),s=o(25948);var a={select:{minHeight:"auto",border:"none",borderWidth:"4px",backgroundColor:"inherit","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.05)"},"&.Mui-focused":{border:"none",borderColor:"transparent",backgroundColor:"rgba(0, 0, 0, 0.05)",boxShadow:e=>"0px 0px 0px 2px ".concat(e.palette.colors.white||"#FFFFFF",", 0px 0px 0px 4px ").concat(e.palette.colors.functionalInfo||"#2988FF")}}},l=o(46387);var d=e=>{let{label:t,...o}=e;return"string"===typeof t?(0,n.jsx)(l.Z,{color:"textSecondary",variant:"body1",whiteSpace:"nowrap",...o,children:t}):(0,n.jsx)(n.Fragment,{children:t})};const c=(e,t)=>{let{label:o,wrapperSx:i,sx:l,...c}=e;const u=(0,n.jsx)(s.Z,{multiple:!1,ref:t,sx:[a.select,...Array.isArray(l)?l:[l]],...c});return o?(0,n.jsxs)(r.Z,{direction:"row",gap:"4px",alignItems:"center",sx:i,children:[(0,n.jsx)(d,{label:o}),u]}):u};var u=(0,i.memo)((0,i.forwardRef)(c))},39758:function(e,t,o){"use strict";o.d(t,{r:function(){return n}});const n=(e,t)=>Math.round(e/t)},40748:function(e,t,o){"use strict";o.d(t,{$:function(){return n}});const n=e=>[...e.filter((e=>{let{children:t}=e;return!(null===t||void 0===t?void 0:t.length)})),...e.map((e=>{let{children:t}=e;return(null===t||void 0===t?void 0:t.length)?n(t):[]})).flat()]},57499:function(e,t,o){"use strict";o.d(t,{u:function(){return r}});var n=o(6551),i=o(14932);function r(e){if("string"===typeof e)return e;const{basePath:t="",locale:o="",pathname:r,query:s}=e,[a,l=""]=r.split("?");return(0,n.oo)("".concat(t).concat(o).concat(a,"?").concat((0,i.stringify)({...(0,i.parse)(l),...s})))}},85519:function(e,t,o){"use strict";o.d(t,{M:function(){return r}});var n=o(2265),i=o(43974);const r=e=>!(!(0,n.isValidElement)(e)||!(0,i.K)(e.type))&&("data-name"in e.props&&"Button"===e.props["data-name"]||("_payload"in e.type&&"object"===typeof e.type._payload&&null!==e.type._payload&&"value"in e.type._payload&&"object"===typeof e.type._payload.value&&null!==e.type._payload.value&&"render"in e.type._payload.value&&"function"===typeof e.type._payload.value.render?"Button"===e.type._payload.value.render.name:"render"in e.type&&"function"===typeof e.type.render&&"displayName"in e.type&&("Button"===e.type.displayName||"Button"===e.type.render.name)))},19007:function(e,t,o){"use strict";var n=o(55788),i=o(97910),r=o(539),s=o(84492),a=o(7220);t.Z=e=>{const t=(0,i.t)(),{t:o}=(0,n.$G)(),{showErrorMessage:l}=(0,a.Z)(),{status:d,slug:c,id:u,can_show:p}=e,m=d===r.v.Rejected||d===r.v.Pending,h=c&&(null===c||void 0===c?void 0:c.trim().length)>0?c:u;return{articleUrl:h,openArticle:()=>h&&(0,s.o)(p)?t.push("/news/".concat(h)):l(o("hooks.use_articles.you_do_not_have_access")),shouldNotHaveLink:m}}},23082:function(e,t,o){"use strict";o.d(t,{Z:function(){return r}});var n=o(2265);var i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:80;const[t,o]=(0,n.useState)(e),i=(0,n.useCallback)((()=>{setTimeout((()=>{const[e]=document.getElementsByTagName("header");e&&o(e.clientHeight)}))}),[]);return(0,n.useEffect)((()=>{window.addEventListener("resize",i);const e=setTimeout((()=>i()));return()=>{window.removeEventListener("resize",i),clearTimeout(e)}}),[i]),t};var r=(e,t)=>{const o=i();return(0,n.useCallback)((n=>{var i;if("undefined"===typeof document)return;const r=null!==e&&void 0!==e?e:o,s=t?document.querySelector(t):null,a=s||window,l=document.querySelector(n),d=(null===l||void 0===l||null===(i=l.getBoundingClientRect())||void 0===i?void 0:i.top)||0,c=d-r+((s?s.scrollTop:window.scrollY)||0)-63;a.scrollTo({top:d?c:0,behavior:"smooth"})}),[e,o,t])}},7220:function(e,t,o){"use strict";var n=o(2265),i=o(64654),r=o(6551);t.Z=()=>{const{enqueueSnackbar:e}=(0,i.Ds)(),t=(0,n.useCallback)((t=>(o,n)=>{e(o,{variant:t,preventDuplicate:!0,...(0,r.Kn)(n)&&n})}),[]);return(0,n.useMemo)((()=>({showMessage:t("default"),showSuccessMessage:t("success"),showErrorMessage:t("error"),showInfoMessage:t("info"),showWarningMessage:t("warning")})),[t])}},30889:function(e,t,o){"use strict";o.d(t,{Z:function(){return d}});
1var n=o(57437),i=o(2265),r=o(27648),s=o(99376),a=o(59468);function l(e,t){return"string"===typeof e?(0,a.Re)(e,t):(null===e||void 0===e?void 0:e.pathname)?{...e,pathname:(0,a.Re)(e.pathname,t)}:e}var d=(0,i.forwardRef)((function(e,t){let{href:o,...i}=e;const a=(0,s.useParams)(),d=null===a||void 0===a?void 0:a.locale;return(0,n.jsx)(r.default,{...i,href:l(o,d),ref:t})}))},14872:function(e,t,o){"use strict";o.d(t,{o:function(){return r}});var n=o(99376),i=o(22090);function r(){const e=(0,n.useParams)();return(0,i.X)(null===e||void 0===e?void 0:e.locale)}}}]);

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.