PageSourceSearch

https://icefish.is/_next/static/chunks/99056-917e6dc751de9fe4.js

js icefish.is collected 2026-10-03 20:43:57 UTC 85,766 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[99056],{51072:function(e,t,o){o.d(t,{Z:function(){return m}});var n=o(57437),i=o(65364),r=o(19902),s=o(6684),l=o(21015),a=o(87072);o(85251);const d={width:"100%",height:"100%",objectFit:"cover"};var c=function(e){let{style:t,...o}=e;return(0,n.jsx)(a.LazyLoadImage,{style:t||d,...o})},u=o(80769);const p={paper:{overflow:"hidden",position:"relative","& > span":{width:"100%",height:"100%"}},img:e=>({width:"100%",height:"100%",objectFit:e?"contain":"cover"})};var m=e=>{let{image:t,noImgSize:o="md",onClick:a,isLazyLoad:d,asIs:m,noImgContent:x,sx:h,...g}=e;const v=!t.url||/nophoto|noimage/i.test(t.url),f=m?t.url:(0,l.q)(t.url,t.width,t.height),y=d?c:i.Z;return(0,n.jsx)(r.Z,{variant:"outlined",sx:[p.paper,!!a&&s.W0.pointer,...Array.isArray(h)?h:[h]],...v&&{className:"noImg"},onClick:a,children:v?(0,n.jsx)(u.Z,{noImgContent:x,noImgSize:o}):(0,n.jsx)(y,{src:f,image:f,sx:p.img(m),...g})})}},55734:function(e,t,o){var n=o(57437),i=o(55788),r=o(21170),s=o(46387),l=o(6684);const a=e=>{let{backgroundColor:t,color:o,defaultBehavior:n}=e;return{backgroundColor:t||"colors.brand2",color:o||"colors.brand1",textAlign:"center",position:n?"static":"absolute",zIndex:1,left:"-50px",top:"10px",p:"3px",width:n?"auto":"150px",...!n&&{transform:"rotate(-45deg)"},"& .MuiTypography-root":{width:n?"auto":"70px",my:0,mx:"auto"}}},d=e=>({display:"inline-block",position:e?"static":"absolute",top:0,left:0,right:0,bottom:0,overflow:"hidden",pointerEvents:"none"});t.Z=e=>{let{text:t="shared.new_label.new",color:o,backgroundColor:c,defaultBehavior:u,onClick:p,sx:m,variant:x="subtitle2"}=e;const{t:h}=(0,i.$G)(),g=Array.isArray(m)?m:[m];return(0,n.jsx)(r.Z,{sx:[d(u),...g],"data-styleid":"newLabel",children:(0,n.jsx)(r.Z,{sx:[a({backgroundColor:c,color:o,defaultBehavior:u}),!!p&&l.W0.pointer],"data-testid":"newLabel",onClick:p,children:(0,n.jsx)(s.Z,{variant:x,children:h(t)})})})}},94291:function(e,t){t.Z={container:{position:"relative",backgroundColor:"colors.white",border:"1px solid",borderColor:"colors.borderGreyLight",boxSizing:"border-box",borderRadius:"8px",overflow:"hidden"},header:{minHeight:56,width:"fit-content",display:"flex",alignItems:"center",justifyContent:"flex-start",flexWrap:"wrap",backgroundColor:"colors.white",px:2},editor:{borderTop:"1px solid",borderColor:"colors.borderGreyLight",mb:"1px",display:"flex",flexDirection:"column",cursor:"text","& .DraftEditor-root":{overflowY:"auto",my:1,ml:2,mr:1,pr:1},"& .DraftEditor-editorContainer, & .public-DraftEditor-content":{height:"100%",flexDirection:"column",display:"flex"},"& .public-DraftEditorPlaceholder-inner":{position:"absolute",pointerEvents:"none",opacity:.3},"& figure":{m:0}},footer:{display:"flex",justifyContent:"space-between",color:"colors.textSecondary",mt:.5},footerLengthCounter:{textAlign:"right",ml:"auto",minWidth:50},maxSizeError:{"& > span":{color:"colors.statusCancelled"}},tooltipContent:{display:"flex",flexDirection:"column",gap:"12px"},controlGroup:{height:"100%",display:"flex",position:"relative","&:not(:last-child):after":{content:'""',position:"absolute",height:24,width:"1px",right:0,top:"50%",transform:"translateY(-50%)",backgroundColor:"colors.borderGreyLight"},"& > .MuiBox-root":{display:"flex",justifyContent:"center",alignItems:"center",mx:.5,p:1,cursor:"pointer",borderRadius:.5,"&:hover":{backgroundColor:"colors.statusNeutralLight"}},"& .MuiInputBase-root > fieldset":{border:"none"}},headingControlSelect:{height:"100%","& .MuiSelect-select, & .MuiOutlinedInput-root":{border:"none",p:0,"& .MuiTypography-root":{lineHeight:"unset !important",pr:4,fontWeight:"normal",color:"colors.textPrimary"}},"& label":{mb:0}},headingControlSelectPopover:{'& [data-value="header-five"] h6':{color:"colors.iconSecondary"}},activeControl:{backgroundColor:"colors.statusNeutralLight"},disabledControl:{pointerEvents:"none","&, & .MuiSvgIcon-root, & .MuiSelect-select p.MuiTypography-root":{color:"lightGrey"},"&.MuiBox-root:hover":{backgroundColor:"unset"}},mobileControlMenu:{"& .MuiPaper-root":{borderRadius:.5,boxShadow:"0px 10px 30px rgba(51, 54, 69, 0.1)"},"& .MuiListItem-root":{minHeight:40,"& > svg":{mr:1}}},mobileControlButton:{ml:.5},actionButtons:{position:"relative",borderRadius:"10px",overflow:"hidden",maxWidth:"fit-content",width:"100%","& .MuiBox-root":{display:"none",position:"absolute",top:0,bottom:0,right:0,left:0,justifyContent:"center",alignItems:"center","& > .MuiButtonBase-root":{mx:.5}},"&:hover .MuiBox-root":{display:"flex",backgroundColor:"rgba(0, 0, 0, 0.2)"},"& img":{minWidth:100}}}},53511:function(e,t,o){var n=o(57437),i=o(79814),r=o(21170),s=o(65364),l=o(43974),a=o(90154),d=o(74506),c=o(94291);const u=e=>{let{entity:t,block:o,blockProps:i}=e;const{src:l,style:u}=t.getData(),p=(m=u,e=>{var t;if(!m)return"";const o=new RegExp("(?:[^w_-]".concat(e,"|^").concat(e,"):s*(.+?);"));
1return(null===(t=m.match(o))||void 0===t?void 0:t[1])||""});var m;const x=Boolean(u),h=[c.Z.actionButtons,x?{float:p("float")}:{m:"auto"}],g={width:p("width")||"100%"};return(0,n.jsxs)(r.Z,{sx:h,children:[(0,n.jsx)(s.Z,{image:l,component:"img",sx:g}),(0,n.jsxs)(r.Z,{className:"actionButtons",children:[(0,n.jsx)(a.Z,{onClick:()=>{i.editImage(o)}}),(0,n.jsx)(d.Z,{onClick:()=>{i.deleteImage(o)}})]})]})},p={deleteImage:()=>{},editImage:()=>{}};t.Z=e=>{let{block:t,blockProps:o}=e;var r;if(!(0,l.K)(t))return null;const s=t.getEntityAt(0);if(!s)return null;const a=i.Entity.get(s);return"image"===(null===(r=a.getType())||void 0===r?void 0:r.toLowerCase())?(0,n.jsx)(u,{entity:a,block:t,blockProps:o||p}):null}},1340:function(e,t,o){o.d(t,{rU:function(){return v},ZP:function(){return g}});var n=o(57437),i=o(2265),r=o(79814),s=o(55788),l=o(21170),a=o(39155),d=o(24021),c=o(6328),u=o(43974),p=o(72291);var m=e=>{const[t,o]=(0,i.useState)(e);return{value:t,onChange:e=>{o(e.target.value)},setValue:o}},x=o(30592),h=o(94291);var g=e=>{let{editorState:t,setEditorState:o}=e;const{t:u}=(0,s.$G)(),[g,v]=(0,i.useState)(!1),f=m(""),y=m(""),b=()=>{const e=(e=>{let{editorState:t,url:o,text:n}=e;const i=t.getCurrentContent();i.createEntity("LINK","IMMUTABLE",{url:o});const s=i.getLastCreatedEntityKey(),l=t.getSelection(),a=r.Modifier.replaceText(i,l,n,t.getCurrentInlineStyle(),s);return r.EditorState.createWithContent(a)})({editorState:t,url:f.value,text:y.value});o&&o(e),v(!1),f.setValue(""),y.setValue("")},C=f.value.trim().length>0,j=(0,n.jsx)(d.d,{onClickAway:v.bind(null,!1),children:(0,n.jsxs)(l.Z,{sx:h.Z.tooltipContent,children:[(0,n.jsx)(p.Z,{...y,placeholder:u("ui.add_link_plugin.text_link"),label:u("ui.add_link_plugin.display_text"),fullWidth:!0}),(0,n.jsx)(p.Z,{...f,onKeyPress:e=>{"Enter"===e.key&&C&&b()},placeholder:u("ui.add_link_plugin.paste_url_link"),label:u("ui.add_link_plugin.url_link"),fullWidth:!0}),(0,n.jsx)(a.Z,{variant:"contained",onClick:b,disabled:!C,fullWidth:!0,children:u("common.apply")})]})});return(0,n.jsx)(x.Z,{text:j,arrow:!0,placement:"top",open:g,onClose:v.bind(null,!1),disableHoverListener:!0,interactive:!0,children:(0,n.jsx)(l.Z,{onClick:()=>{const e=(e=>{const t=e.getSelection(),o=e.getCurrentContent().getBlockForKey(t.getAnchorKey()),n=t.getStartOffset(),i=t.getEndOffset();return o.getText().slice(n,i)||""})(t);y.setValue(e),v(!0)},display:"flex",justifyContent:"center",alignItems:"center",children:(0,n.jsx)(c.Z,{fontSize:"small"})})})};const v=e=>{let{contentState:t,entityKey:o,children:i}=e;if(!i||!(0,u.K)(t))return null;const{url:r}=t.getEntity(o).getData();return(0,n.jsx)("a",{href:r,rel:"noopener noreferrer",target:"_blank",children:i})}},1199:function(e,t,o){var n=o(80408);t.Z=n.Z},98765:function(e,t,o){o.d(t,{Bg:function(){return _},Ce:function(){return x},I8:function(){return M},OQ:function(){return T},Vg:function(){return b},Vv:function(){return h},YC:function(){return v},Zc:function(){return I},cn:function(){return S},ht:function(){return w},i7:function(){return m},lu:function(){return k},m2:function(){return C},tr:function(){return y},ui:function(){return g},ul:function(){return j}});var n=o(57437),i=o(99443),r=o(43134),s=o(15769),l=o(87405),a=o(79814),d=o(51691),c=o(54114),u=o(1340),p=o(53511);const m=(e,t)=>{const o=t.getCurrentContent(),n=o.getBlockBefore(e.getKey()),i=o.getBlockAfter(e.getKey());if(n&&i){const e=new a.SelectionState({anchorKey:n.getKey(),anchorOffset:n.getLength(),focusKey:i.getKey(),focusOffset:0}),r=a.Modifier.removeRange(o,e,"forward");return a.EditorState.push(t,r,"remove-range")}return t},x=(e,t)=>{let{deleteImage:o,editImage:n}=t;return"atomic"===e.getType()?{component:p.Z,editable:!1,props:{deleteImage:o,editImage:n}}:null},h=e=>{const t=e.getCurrentContent();return t.hasText()||"unstyled"!==t.getBlockMap().first().getType()},g=[{strategy:((e,t,o,n)=>{t.findEntityRanges((t=>{const o=t.getEntity();return null!==o&&n.getEntity(o).getType()===e}),o)}).bind(null,"LINK"),component:u.rU}],v=[{text:"Normal text",value:"unstyled",variant:"body1"},{text:"Heading 1",value:"header-one",variant:"h2"},{text:"Heading 2",value:"header-two",variant:"h4"},{text:"Heading 3",value:"header-three",variant:"h5"},{text:"Heading 4",value:"header-four",variant:"h6"},{text:"Heading 5",value:"header-five",variant:"h6",className:"text-editor-header-five"}].map(((e,t)=>({...e,id:t}
1))),f=v.reduce(((e,t)=>({...e,[t.value]:{class:"MuiTypography-root MuiTypography-".concat(t.variant," ").concat(t.className||"")}})),{}),y=e=>{const t=e.getSelection(),o=t.getFocusKey(),n=t.getAnchorOffset(),i=t.getFocusOffset(),r=new a.SelectionState({anchorKey:o,anchorOffset:n,focusKey:o,focusOffset:i});return a.EditorState.forceSelection(e,r)},b={left:{textAlign:"left"},right:{textAlign:"right"},center:{textAlign:"center"},justify:{textAlign:"justify"}},C=[{text:(0,n.jsx)(s.Z,{}),value:"left"},{text:(0,n.jsx)(i.Z,{}),value:"center"},{text:(0,n.jsx)(l.Z,{}),value:"right"},{text:(0,n.jsx)(r.Z,{}),value:"justify"}].map(((e,t)=>({...e,id:t}))),j=(e,t,o)=>{const n=e.getSelection(),i=n.getFocusOffset(),r=n.getAnchorKey(),s=n.getFocusKey(),l=e.getCurrentContent().getBlockForKey(r);if("Backspace"===o.key&&0===i&&r===s&&(l.getInlineStyleAt(0).has("right")||l.getInlineStyleAt(0).has("center")))return"remove-inline-style";const d=e.getCurrentContent().getPlainText().length;return t&&"Enter"===o.key&&d>=t?"not-handled":(0,a.getDefaultKeyBinding)(o)},k=(e,t)=>{const o=t.getType();if("blockquote"===o)return"text-editor-blockquote";const n=e.getCurrentContent().getBlockBefore(t.getKey());let i="left";Object.keys(b).forEach((e=>{var o;(t.getInlineStyleAt(0).has(e)||(null===n||void 0===n||null===(o=n.getInlineStyleAt(0))||void 0===o?void 0:o.has(e))&&!t.getInlineStyleAt(0).has(e)&&0===t.getLength())&&(i=e)}));const{class:r}=f[o]||{};return r?"".concat(r," text-editor-").concat(i):""},_=(e,t,o)=>{let n=a.RichUtils.handleKeyCommand(e,o);if("remove-inline-style"===o){const t=e.getSelection().getAnchorKey();n=w("left",e);const o=new a.SelectionState({anchorKey:t,anchorOffset:0,focusKey:t,focusOffset:0});n=a.EditorState.forceSelection(n,o)}return n?(t(n),"handled"):"not-handled"},w=(e,t)=>{var o,n;const i=t.getSelection(),r=i.getAnchorKey(),s=i.getFocusKey(),l=i.getIsBackward(),d=l?null===(o=t.getCurrentContent().getBlockForKey(r))||void 0===o?void 0:o.getLength():0,c=l?0:null===(n=t.getCurrentContent().getBlockForKey(s))||void 0===n?void 0:n.getLength(),u=new a.SelectionState({anchorKey:r,anchorOffset:d,focusKey:s,focusOffset:c,isBackward:l}),p=Object.keys(b).reduce(((e,t)=>a.Modifier.removeInlineStyle(e,u,t)),t.getCurrentContent());let m=a.EditorState.push(t,p,"change-inline-style");const x=t.getCurrentInlineStyle();return u.isCollapsed()&&(m=x.reduce(((e,t)=>a.RichUtils.toggleInlineStyle(e,t)),m)),x.has(e)||(m=a.RichUtils.toggleInlineStyle(m,e)),a.EditorState.forceSelection(m,u)},Z=["unordered-list-item","ordered-list-item","blockquote"],I=e=>!(!Z.includes(e.getType())&&e.getLength()),M=e=>{const t={htmlToStyle:(e,t,o)=>{let n="left";return Object.keys(b).forEach((e=>{var o;(null===(o=t.className)||void 0===o?void 0:o.includes(e))&&(n=e)})),o.add(n)},htmlToEntity:(e,t,o)=>"a"===e?o("LINK","IMMUTABLE",{url:t.href,target:"_blank"}):"img"===e?o("IMAGE","IMMUTABLE",{src:t.getAttribute("src"),style:t.getAttribute("style")}):void 0,htmlToBlock:(e,t)=>{var o,n;const i="IMG"===(null===(o=t.firstChild)||void 0===o?void 0:o.nodeName),r="IMG"===(null===(n=t.lastChild)||void 0===n?void 0:n.nodeName);return"body"===e&&(i||r)?"unstyled":"figure"===e&&i||"img"===e?"atomic":void 0}};return(0,d.h4)(t)(e||"")},S=e=>{const t=0===e.getCurrentContent().getPlainText().length,o={blockStyleFn:t=>{const o=k(e,t);if(o)return{attributes:{class:o}}},entityStyleFn:e=>{if("IMAGE"===e.getType())return{element:"img",attributes:e.getData()}},blockRenderers:{unstyled:e=>{if(t)return"";const o=e.getText();return"\n"!==o&&" "!==o&&o?void 0:'<p class="text-editor-empty"></p>'}}};return(0,c.E)(e.getCurrentContent(),o)},T=e=>{const t=M(e),o=new a.CompositeDecorator(g);return a.EditorState.createWithContent(t,o)}},96766:function(e,t,o){var n=o(57437),i=o(11834),r=o(97910),s=o(2265),l=o(55788),a=o(79965);t.Z=e=>{let{onClick:t,children:o,useHistory:d,variant:c="text",...u}=e;const{t:p}=(0,l.$G)(),m=(0,r.t)(),x=(0,s.useCallback)((()=>m.back()),[m]),h=o||p("common.back");return(0,n.jsx)(a.Z,{variant:c,startIcon:(0,n.jsx)(i.Z,{}),onClick:d?x:t,...u,children:h})}},74506:function(e,t,o){var n=o(57437),i=o(39155),r=o(95576),s=o(99115),l=o(55788),a=o(14069);t.Z=e=>{let{buttonType:t,children:o,...d}=e;const{t:c}=(0,l.$G)(),u=(0,a.CGy)(a.ZIl),p=o||c("common.delete");return u?null:"button"===t?(0,n.jsx)(i.Z,{fullWidth:!0,color:"neutral",startIcon:(0,n.jsx)(s.Z,{}),role:"delete_button",...d,children:p}):(0,n.jsx)(r.Z,{color:"secondary","data-tour":"delete-icon-button",role:"delete_icon",...d,children:(0,n.jsx)(s.Z,{})})}},90154:function(e,t,o){var n=o(57437),i=o(39155),r=o(95576),s=o(55788),l=o(89938),a=o(14069);t.Z=e=>{let{buttonType:t,children:o,...d}=e;const{t:c}=(0,s.$G)(),u=o||c("common.edit");return(0,a.CGy)(a.ZIl)?null:"button"===t?(0,n.jsx)(i.Z,{variant:"contained",fullWidth:!0,startIcon:(0,n.jsx)(l.Z,{}),color:"primary",...d,children:u}):(0,n.jsx)(r.Z,{"data-tour":"edit-icon-button","aria-label":c("common.edit"),color:"primary",...d,children:(0,n.jsx)(l.Z,{})})}}
1,2363:function(e,t,o){var n=o(57437),i=o(2265),r=o(55788),s=o(14069),l=o(21170),a=o(64567),d=o(76025),c=o(86650),u=o(48236),p=o(74663),m=o(79965),x=o(98617),h=o(7220),g=o(11263),v=o(68311),f=o(13015);t.Z=e=>{let{id:t,disabled:o,sx:y,status:b="none",joinFunction:C,privacy:j=0,visitGroup:k,isButtonInGroup:_,children:w}=e;const{t:Z}=(0,r.$G)(),I=Array.isArray(y)?y:[y],M=(0,s.CGy)(s.BY5),S=(0,s.CGy)(s.ZIl),T=(0,s.CGy)(s.ulX),A=(0,s.TL5)(),{showSuccessMessage:B}=(0,h.Z)(),L=(0,f.Z)(),[E,P]=(0,i.useState)(!1),[R,W]=(0,i.useState)(b);(0,i.useEffect)((()=>{W(b)}),[b]);const D=1===j,G=()=>{T?L():M?t&&(P(!0),(0,u.k_)("".concat((0,p.t)(),"/api/v1/groupsAccount/").concat("none"!==R?"leave":"join"),{body:{id:t}}).then((e=>{if(200!==(null===e||void 0===e?void 0:e.code))return;const t=((e,t)=>"joined"===t?"none":e&&"none"===t?"approval":"joined")(D,R);C&&C(t),W(t),B(Z("common.done"))})).finally((()=>P(!1)))):A((0,s.L8q)({isModalVisible:!0}))},F=()=>{P(!0),(0,u.k_)("".concat((0,p.t)(),"/api/v1/groupsAccount/cancelByUser"),{body:{id:t}}).then((e=>{200===(null===e||void 0===e?void 0:e.code)&&(B(Z("ui.join_group.request_to_the_group_was")),W("none"))})).finally((()=>P(!1)))},O=(0,i.useMemo)((()=>_?{Public:{none:{children:Z("common.join_group"),onClick:G,startIcon:(0,n.jsx)(a.Z,{})},joined:{children:Z("ui.join_group.joined"),onClick:G,startIcon:(0,n.jsx)(d.Z,{})}},"Public with approval":{none:{children:Z("common.join_group"),onClick:G,startIcon:(0,n.jsx)(a.Z,{})},approval:{children:Z("ui.join_group.cancel_request"),onClick:F,startIcon:(0,n.jsx)(c.Z,{})},joined:{children:Z("ui.join_group.joined"),onClick:G,startIcon:(0,n.jsx)(d.Z,{})}},"Private/Invitations only":{joined:{children:Z("ui.join_group.joined"),onClick:G,startIcon:(0,n.jsx)(d.Z,{})}}}:{Public:{none:{children:Z("ui.join_group.join_group"),onClick:G},joined:{children:Z("ui.join_group.visit_group"),onClick:k}},"Public with approval":{none:{children:Z("ui.join_group.join_group"),onClick:G},approval:{children:Z("ui.join_group.cancel_request"),onClick:F},joined:{children:Z("ui.join_group.visit_group"),onClick:k}},"Private/Invitations only":{joined:{children:Z("ui.join_group.visit_group"),onClick:k}}}),[_,R]);if(w)return(0,n.jsx)(l.Z,{component:"span",onClick:G,children:w});const N=O[v.pH[j||0]][R];return!N||S?null:_?(0,n.jsx)(m.Z,{variant:"contained",sx:I,disabled:o||E,...N}):(0,n.jsx)(g.Z,{sx:["approval"===R&&x.S.transparentScheduled,...I],variant:"text",withArrow:"joined"===R,disabled:o||E,...N})}},68714:function(e,t,o){var n=o(57437),i=o(2265),r=o(55788),s=o(91200),l=o(20437),a=o(14069),d=o(6551),c=o(98617);const u={exhibitor:"exhibitors",product:"products",brand:"brands",visitor:"visitors",news:"news",contents:"contents"},p=e=>{let{full:t,setAbsolute:o,ownerType:d="exhibitor",id:p,sx:m}=e;const{t:x}=(0,r.$G)(),h=(0,i.useMemo)((()=>({id:p,type:u[d]})),[p,d]);if(!(0,a.CGy)((e=>(0,a.kXR)(e,h))))return null;const g=Array.isArray(m)?m:[m],v=[o&&c.S.viewedAbsolute,{width:"fit-content"},...g];return(0,n.jsx)(s.Z,{icon:(0,n.jsx)(l.Z,{}),label:t?x("ui.viewed_button.viewed"):null,color:"neutral",sx:v,"data-testid":"fullViewedButton"})};t.Z=(0,i.memo)(p,d.wy)},95422:function(e,t,o){o.r(t),o.d(t,{default:function(){return M}});var n=o(57437),i=o(2265),r=o(55788),s=o(21170),l=o(41530),a=o(46387),d=o(82156),c=o(13241),u=o(93201),p=o(6684),m=o(6551),x=o(50519),h=o(46216),g=o(25960),v=o(50944),f=o(13411),y=o(57015),b=o(14069),C=o(86451),j=o(55734),k=o(68714),_=o(89753),w=o(47870),Z=o(35773);var I={actionButtonsWrapper:{height:"114px",justifyContent:"space-between"},root:{width:"424px",minWidth:{xs:"100%",sm:"424px"},height:"146px",position:"relative",borderRadius:"10px",border:"1px solid",backgroundColor:"colors.white",borderColor:"colors.borderGreyLight",p:"16px",alignItems:"center",display:"flex",boxShadow:"0px 0px 15px 0px rgba(160, 160, 160, 0.10)",maxWidth:"100%"},viewedButton:{position:"absolute",bottom:"-13%",left:"50%",height:"24px",transform:"translateX(-50%)"},imageLink:{position:"relative"},icon:{width:"16px",height:"16px"},counterBox:{borderRadius:"12px",backgroundColor:"colors.backgroundGrey",width:"24px",height:"24px",minWidth:"24px",minHeight:"24px",p:"3.5px",ml:"4px",display:"flex",alignItems:"center",justifyContent:"center","& .MuiTypography-root":{fontSize:"14px",fontWeight:"bold"}},content:{display:"flex",flexDirection:"column",flex:1},label:{"& .MuiTypography-subtitle4":{textTransform:"uppercase"}}
1,sponsor:{width:"100%",mb:2}};var M=e=>{let{element:t,isProduct:o,isSponsor:M,className:S,imageSize:T=96,hideButtons:A,sx:B,buttonsAsMenuOnMobile:L,website:E,hrefQuery:P,...R}=e;const{t:W}=(0,r.$G)(),{childCompanyS:D,childCompany:G}=(0,b.CGy)(b.uSm),F=(0,d.default)("(max-width: 450px)"),O=t.isParent,N=o?"product":"exhibitor",z=(0,h.Z)({ownerType:N,id:t.id}),H=(0,g.Z)({ownerType:N,id:t.id}),K=(0,v.Z)({ownerType:N,id:t.id}),V=z.hide||R.hideFavouriteButton,$=H.hide||R.hideMeetButton,U=K.hide||R.hideMessageButton,{stands:q=[]}=t||{},Y=t.childExhibitors||0,X=(0,i.useMemo)((()=>!Array.isArray(q)||o?0:q.reduce(((e,t)=>e+t.stands_count),0)),[q,o]),Q=(0,i.useMemo)((()=>!O||0===Y||o?"":Y>1?D?"".concat(Y," ").concat(D):W("general_cards.element_horizontal_view.child_exhibitors",{count:Y}):G?"".concat(Y," ").concat(G):"".concat(Y," ").concat(W("general_cards.element_horizontal_view.child_exhibitor"))),[O,Y,o,D,W,G]),J=(0,i.useMemo)((()=>{if(0===X||o)return"";const{hall:e,stand:t,stands:n}=(null===q||void 0===q?void 0:q[0])||{};return"".concat(e?"".concat(e," / "):"").concat((null===n||void 0===n?void 0:n[0].name)||t||"")}),[q,X,o]),ee=q&&(null===q||void 0===q?void 0:q.length)>0,te=Array.isArray(B)?B:[B],oe=F&&L,ne=o?"shared.new_label.launch":"shared.new_label.new",ie={type:"medium",id:t.id,ownerType:N},re={...ie,text:t.description||"",description:t.name},se=!M,le=t.url||t.id,ae=(0,x.C)((0,m.YU)(le,E,N),P),de=o?"":(0,m.NG)([t.city,t.country],", "),ce=$&&U&&V||A;return(0,n.jsxs)(l.Z,{columnGap:"8px",direction:"row",alignItems:"center",className:S,sx:[I.root,Boolean(M)&&I.sponsor,...te],"data-testid":"horizontalProductCard","data-styleid":"product-horizontal-view-card",children:[(0,n.jsxs)(s.Z,{sx:[se&&p.W0.pointer,I.imageLink],children:[(0,n.jsx)(Z.Z,{href:ae,children:(0,n.jsx)(_.Z,{user:{name:t.name,photo:t.image||"",id:t.id},size:T,variant:"rounded",onlineIconPosition:"top"})}),(0,n.jsx)(k.Z,{full:!0,ownerType:N,id:t.id,sx:I.viewedButton})]}),(0,n.jsxs)(s.Z,{sx:I.content,gap:"4px",children:[t.name&&(0,n.jsx)(Z.Z,{href:ae,children:(0,n.jsxs)(l.Z,{direction:"row",columnGap:"4px",alignItems:"flex-start",children:[O&&(0,n.jsx)(c.Z,{sx:I.icon}),(0,n.jsx)(a.Z,{variant:"h4",sx:[p.W0.ellipsis(2),{wordBreak:"break-word"}],children:t.name})]})}),t.company&&o&&(0,n.jsx)(a.Z,{variant:"subtitle3",sx:[{color:"colors.textSecondary"},p.W0.ellipsis(1)],children:t.company}),de&&!o&&(0,n.jsx)(a.Z,{variant:"subtitle3",sx:[{color:"colors.textSecondary",wordBreak:"break-all"},p.W0.ellipsis(1)],children:de}),O&&(0,n.jsx)(a.Z,{variant:"subtitle3",sx:{color:"colors.textSecondary",wordBreak:"break-all"},children:Q}),ee&&(0,n.jsxs)(l.Z,{direction:"row",alignItems:"center",children:[(0,n.jsx)(u.default,{sx:[I.icon,{color:"colors.statusNeutralDark",mr:"2px"}]}),(0,n.jsx)(a.Z,{variant:"subtitle3",sx:[p.W0.ellipsis(1),{wordBreak:"break-all"}],color:"colors.textSecondary",children:J}),X>1&&(0,n.jsx)(s.Z,{sx:I.counterBox,children:(0,n.jsx)(a.Z,{variant:"h6",children:"+".concat(X-1)})})]})]}),Boolean(t.id)&&!ce&&(0,n.jsx)(s.Z,{textAlign:"end",height:"100%",children:oe?(0,n.jsx)(w.Z,{id:t.id,ownerType:N,hideFavouriteButton:!0}):(0,n.jsx)(n.Fragment,{children:!A&&(0,n.jsxs)(l.Z,{rowGap:"6px",sx:[I.actionButtonsWrapper,Boolean(V)&&{justifyContent:"end"}],"data-testid":"meet-message-wrapper","data-styleid":"meet-message-buttons",children:[!V&&(0,n.jsx)(f.default,{ownerType:N,type:"medium",id:t.id}),!$&&(0,n.jsx)(y.Z,{...ie}),!U&&(0,n.jsx)(C.default,{...re})]})})}),t.isNew&&(0,n.jsx)(j.Z,{text:ne,variant:"subtitle4",sx:[I.label,Boolean(o)&&{"& .MuiTypography-subtitle4":{textTransform:"capitalize"}}]})]})}},68311:function(e,t,o){o.d(t,{Ic:function(){return s},jX:function(){return i},pH:function(){return n},zr:function(){return r}});const n={0:"Public",1:"Public with approval",2:"Private/Invitations only"},i={1:"Admin",2:"Moderator",3:"Visitor"},r={Public:"common.public","Public with approval":"profile_groups.add_edit_group.public_with_approval","Private/Invitations only":"groups.privacy.private_invitations_only"}
1,s={Admin:"common.admin",Moderator:"common.moderator",Visitor:"common.visitor"}},53144:function(e,t,o){var n=o(57437),i=o(1072),r=o(21170),s=o(39155),l=o(95576),a=o(38398),d=o(82156),c=o(2265),u=o(27135),p=o(55788),m=o(83920),x=o(26448),h=o(72291),g=o(45848),v=o(6551),f=o(3355);t.Z=e=>{let{miniChat:t,isReadOnly:o,selectedChat:y,newMessage:b,setNewMessage:C,handleSendMessage:j,sx:k,placeholder:_,helperText:w,disableKeyPress:Z,disabled:I}=e;const{t:M}=(0,p.$G)(),S=(0,d.default)((e=>e.breakpoints.down("sm"))),T=(0,d.default)((e=>e.breakpoints.between("md","lg"))),[A,B]=(0,c.useState)(null),L=(0,g.Z)(b,400),E=()=>{j(b,y)};(0,c.useEffect)((()=>{C((0,m.No)(b))}),[L]),(0,c.useEffect)((()=>{if(!Z)return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)};function e(e){if("Enter"===e.key&&!e.shiftKey&&!S){if(e.preventDefault(),!b.length)return;E()}}}),[b]);const P=Boolean(A),R=P?"simple-popover":void 0,W={p:t?"17px 12px 16px":"17px 24px 20px",flexDirection:{md:t?"row":"column",lg:"row"}},D=t||S,G=Array.isArray(k)?k:[k],F=D?"":w,O=(0,v.Kn)(y)&&0===Object.keys(y).length,N=(0,c.useMemo)((()=>(e=>({search:e("common.search"),notfound:e("messenger.messenger_send_input.no_emoji_found"),categories:{search:e("messenger.messenger_send_input.search_results"),recent:e("messenger.messenger_send_input.frequently_used"),people:e("messenger.messenger_send_input.smileys_people"),nature:e("messenger.messenger_send_input.animals_nature"),foods:e("messenger.messenger_send_input.food_drink"),activity:e("messenger.messenger_send_input.activity"),places:e("messenger.messenger_send_input.travel_places"),objects:e("messenger.messenger_send_input.objects"),symbols:e("messenger.messenger_send_input.symbols"),flags:e("messenger.messenger_send_input.flags")}}))(M)),[M]),z=o||O,H=I||!(null===b||void 0===b?void 0:b.trim()),K=D||T;return(0,n.jsxs)(r.Z,{sx:[f.t6.newMessageWrapper(t),W,...G],children:[(0,n.jsxs)(r.Z,{flex:1,mr:1,position:"relative",children:[(0,n.jsx)(h.Z,{value:b,onChange:e=>{C(e.target.value)},placeholder:_,helperText:F,fullWidth:!0,multiline:!0,maxRows:5,disabled:z}),(0,n.jsx)(i.Z,{sx:f.t6.smileIcon,onClick:e=>{B(e.currentTarget)}})]}),K?(0,n.jsx)(l.Z,{"aria-label":"send message",size:"large",disabled:H,color:"primary",onClick:E,children:(0,n.jsx)(x.Z,{})}):(0,n.jsx)(s.Z,{disabled:H,onClick:E,variant:"contained",color:"primary",sx:f.t6.sendButton,children:(0,n.jsx)("span",{children:M("common.send")})}),(0,n.jsx)(a.ZP,{id:R,open:P,anchorEl:A,onClose:()=>{B(null)},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"right"},sx:{zIndex:e=>e.zIndex.modal+10},children:(0,n.jsx)(u.cW,{set:"apple",title:M("messenger.messenger_send_input.pick_your_emoji"),emoji:"point_up",onSelect:e=>{C((t=>t+e.native))},i18n:N})})]})}},3355:function(e,t,o){o.d(t,{j$:function(){return n},IM:function(){return i},Zs:function(){return r},vT:function(){return s},T0:function(){return l},aN:function(){return a},hM:function(){return p},R4:function(){return f},hv:function(){return h},AR:function(){return u},db:function(){return g},t6:function(){return c},um:function(){return v},nq:function(){return d}});var n={time:{color:"colors.textSecondary",whiteSpace:"nowrap",fontSize:"12px"},textColor:{color:"colors.textSecondary"},border:{borderBottom:"1px solid #EDEFF5","&:last-child":{border:"none"}},closeButton:{display:"none",width:30,height:30,position:"absolute",right:24,bottom:16,transform:"translate(50%, 40%)"},cardName:{textOverflow:"ellipsis",overflow:"hidden",maxWidth:"140px",whiteSpace:"nowrap"},messageCard:e=>{let{isNotification:t,anchorEl:o}=e;return{display:"flex",alignItems:"center",position:"relative",cursor:"pointer",mb:0,p:"6px",borderTop:"1px solid",borderColor:"colors.borderGreyLight",width:"100%","& .messageTime":{display:o?"none":"block",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",maxWidth:"100px"},...!t&&{py:"15px"},"&:hover":{backgroundColor:"colors.statusNeutralLight",...!t&&{"& .MuiIconButton-root":{display:"inline-flex"},"& .messageTime":{display:"none"}}}}},selectedChat:e=>{let{isNotification:t}=e;return{"&, &:hover":{backgroundColor:{xs:"transparent",lg:t?"none":"colors.secondary"}}}},detailsIcon:{color:"colors.iconSecondary",p:0,"&:hover":{borderRadius:"40px"}},menu:{mt:.5,"& .MuiList-padding":{p:"6px 0"},"& .MuiPaper-root.MuiPaper-rounded":{borderRadius:"4px"},"& .MuiListItem-root":{fontSize:12,color:"colors.textPrimary","&.Mu
1i-selected, .MuiListItem-root.Mui-selected:hover":{backgroundColor:"colors.statusNeutralLight"}},"& .MuiIconButton-root":{color:"colors.textPrimary"},"& .MuiPaper-elevation8":{boxShadow:"0px 10px 30px rgba(51, 54, 69, 0.1)"}},icon:{p:0,mr:1,"& .MuiSvgIcon-root":{width:16,height:16}},menuButton:{"& .MuiButtonBase-root":{p:0,fontSize:12,fontWeight:"normal","& .MuiButton-startIcon":{ml:0,fontSize:16}}},deleteMenuButton:{borderTop:"1px solid",borderTopColor:"colors.borderGreyLight","& .MuiButtonBase-root":{color:"colors.statusCancelled"}},unreadMessage:{flex:"0 0 21px",height:21,display:"flex",my:.5,backgroundColor:"colors.brand1",color:"colors.white",fontSize:12,borderRadius:"50%",justifyContent:"center"},unreadMessageText:{color:"colors.textPrimary",mr:1.5},titleWrapper:{display:"flex",alignItems:"center",justifyContent:"space-between",height:19},group:{display:"flex",justifyContent:"center",alignItems:"center",width:48,height:48,color:"colors.white",borderRadius:"50%"},content:{display:"flex",flexDirection:"column",flex:1,ml:1,minWidth:0}};var i={userWrapper:{minHeight:40,py:1,px:.5,display:"flex",alignItems:"center","&:hover":{backgroundColor:"colors.statusNeutralLight"}},userInfo:{flex:1,gap:"8px",mr:"8px","& .MuiStack-root":{gap:"2px"}}};var r={input:{my:"12px"},listWrapper:{maxHeight:"300px",overflowY:"auto","& > .MuiBox-root":{"&:not(:last-of-type)":{borderBottom:"1px solid",borderBottomColor:"colors.borderGreyLight"},"&:first-of-type":{pt:0}}},emptyState:{py:"24px"}};var s={drawer:{"& .MuiDrawer-paper":{position:"absolute",zIndex:1,width:{xs:"100%",sm:238}}},role:{m:"14px 0 6px",fontWeight:700},title:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",ml:1,flex:1},company:{fontSize:12},user:{display:"flex",alignItems:"center",p:.5,m:"6px 0","& .MuiIconButton-root":{display:"none"},"&:hover":{backgroundColor:"colors.statusNeutralLight",borderRadius:.5,"& .MuiIconButton-root":{display:"inline-flex"}}},selectedUser:{"& .MuiIconButton-root":{display:"inline-flex"},backgroundColor:"colors.statusNeutralLight"},menu:{mt:.5,"& .MuiList-padding":{p:"6px 0"},"& .MuiPaper-root.MuiPaper-rounded":{borderRadius:"4px"},"& .MuiMenuItem-root":{fontSize:"12px",color:"colors.textPrimary","&.Mui-selected, .MuiListItem-root.Mui-selected:hover":{backgroundColor:"colors.statusNeutralLight"}},"& .MuiIconButton-root":{mr:1,color:"colors.textPrimary"},"& .MuiPaper-elevation8":{boxShadow:"0px 10px 30px rgba(51, 54, 69, 0.1)"},"& .MuiListItemIcon-root":{minWidth:"24px","& svg":{color:"var(--palette-colors-textPrimary)",fontSize:"16px"}}},deleteChat:{borderTop:"1px solid",borderTopColor:"colors.borderGreyLight","& .MuiIconButton-root, &.MuiListItem-root":{color:"colors.statusCancelled"}}};var l={time:{color:"colors.textSecondary",fontSize:12,m:"auto 6px"},dot:{display:"inline-block",width:3,height:3,backgroundColor:"colors.textSecondary",borderRadius:"50%",m:"2px 0 2px 6px"},textColor:{color:"colors.textSecondary"},messageBody:{ml:"6px",maxWidth:"90%"},messageText:{overflowWrap:"break-word",whiteSpace:"pre-wrap"},paper:e=>{let{isMy:t,isSystem:o}=e;return{p:"10px 12px",border:"none",maxWidth:534,backgroundColor:o?"unset":t?"colors.secondary":"colors.statusNeutralLight"}},name:{fontSize:12}};var a={input:{mb:"12px","& .MuiSvgIcon-root":{width:"18px",height:"18px"}}};var d={miniChatWrapper:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{position:"fixed",bottom:12,right:{sm:372*e+12,xs:312*e+12},transition:"height 0.25s linear",height:{sm:t?64:500,xs:t?64:400},width:{sm:360,xs:300},zIndex:1301,boxShadow:"0px 10px 30px rgb(51 54 69 / 10%)",borderRadius:{xs:0,md:"12px"}}},messengerButton:{position:"absolute",top:"63px",zIndex:100,width:"calc(100% - 2px)",left:1,borderRadius:0,borderBottom:"1px solid var(--palette-colors-borderGreyLight)"}};var c={sendButton:{width:120,alignSelf:{md:"flex-start",xs:"flex-end"},mb:"auto"},smileIcon:{color:"colors.statusNeutralDark",position:"absolute",right:14,top:{sm:9,xs:"50%"},transform:{sm:"none",xs:"translateY(-50%)"},"&, &:hover":{cursor:"pointer"}},newMessageWrapper:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{display:"flex",borderTop:"1px solid",borderColor:"colors.borderGreyLight",padding:e?"17px 12px 16px":"17px 24px 20px",flexDirection:{md:"row",sm:e?"row":"column",xs:"row"},alignItems:{sm:"flex-start",xs:"center"},"& .MuiInputBase-root .MuiInputBase-input":{mr:"32px"}}}};var u={privateMessagePaper:e=>
1{let{miniChat:t,isCollapseMiniChat:o=!1}=e;return{display:"flex",flexDirection:"column",color:"colors.textPrimary",flex:1,width:"100%",height:{xs:t?o?64:400:"auto",md:t?o?64:500:"auto"},"&.MuiPaper-root.MuiPaper-rounded":{borderRadius:{xs:0,md:"12px"}}}}};var p={messageContentWrapper:{flex:"1 1 auto",height:0,position:"relative"},messagesDate:{fontSize:12,textAlign:"center",mb:1},loading:{mb:1,position:"absolute",top:16,left:"calc(50% - 20px)",transform:"translate(0, -50%)",backgroundColor:"colors.white"},messageContent:{overflowY:"auto",maxHeight:"100%",px:2,pt:1.5,transition:e=>e.transitions.create("margin",{easing:e.transitions.easing.sharp||"cubic-bezier(0.4, 0, 0.6, 1)",duration:e.transitions.duration.leavingScreen||195}),mr:0,"& .infinite-scroll-component":{overflow:"unset"}},infiniteScroll:{display:"flex",flexDirection:"column",overflow:"unset !important"},contentShift:{transition:e=>e.transitions.create("margin",{easing:e.transitions.easing.easeOut||"cubic-bezier(0.0, 0, 0.2, 1)",duration:e.transitions.duration.enteringScreen||225}),mr:"238px"}},m=o(42525),x=o(93977);var h={paper:e=>{let{miniChat:t,height:o}=e;return{display:"flex",flex:{xs:t?"0 0 63px":"0 0 100px",md:t?"0 0 63px":"0 0 80px"},alignItems:"center",zIndex:2,border:"none",boxShadow:"0 10px 30px rgba(160, 160, 160, 0.10), 0 0 0 1px rgba(160, 160, 160, 0.10)",py:{xs:2,md:1},px:2,width:"calc(100% + 1px)",height:o||50,"&.MuiPaper-root.MuiPaper-rounded":{borderRadius:{xs:0,md:"10px 10px 0 0"}}}},icon:{ml:2,p:0,color:"colors.iconSecondary","&:hover":{backgroundColor:"unset",color:"colors.primary"},"& .MuiSvgIcon-root":{width:20,height:20}},leaveChatIcon:{"&:hover":{color:"colors.textPrimary"}},collapseIcon:{"& svg":{transition:"transform 0.2s ease"},'&[data-collapsed="true"] svg':{transform:"rotate(180deg)"}},editTitle:{width:"auto",flexGrow:1,ml:"12px",mr:"16px",overflow:"hidden","& .MuiOutlinedInput-root":{border:"1px solid",borderColor:"colors.primary"},"& .MuiSvgIcon-root":{color:"colors.primary"}},avatarWrapper:e=>({position:"relative",width:{xs:"42px",sm:e?"42px":"56px"},height:{xs:"42px",sm:e?"42px":"56px"},minWidth:{xs:"42px",sm:e?"42px":"56px"}}),groupAvatar:e=>({width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:(0,x.u_)(e),color:"colors.white",borderRadius:"50%"}),editTitleButtons:{display:"inline-flex",justifyContent:"center",alignItems:"center",height:"100%",gap:"6px"},title:{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",width:{xs:150,sm:300}},actionButtons:{display:"flex",gap:"16px"},detailsIcon:{ml:2},dynamicIcons:e=>{let{miniChat:t}=e;return{display:{xs:"none",lg:t?"none":"inline-flex"}}},menu:{["& .".concat(m.Z.root,".").concat(m.Z.rounded)]:{minWidth:"unset"}},deleteButton:{ml:1},backButton:{alignSelf:"flex-start"},unreadMessage:{position:"absolute",zIndex:1111,top:"-2px",right:"-2px",lineHeight:"21px",px:"2px",height:"21px",minWidth:"21px",display:"flex",backgroundColor:"colors.brand1",color:"colors.white",fontSize:12,borderRadius:"20px",justifyContent:"center"},showMoreItems:{"& svg":{fontSize:"20px",color:"var(--palette-colors-iconSecondary)"}}};var g={wrapper:{display:"flex",alignItems:"center",backgroundColor:"colors.statusConfirmedLight",borderRadius:"4px",flexDirection:{xs:"column",md:"row"},height:{xs:144,md:48},mt:1},limitItem:{display:"flex",justifyContent:"center",alignItems:"center",flex:1,"& .MuiTypography-root":{color:"colors.statusConfirmedDark",ml:.5},width:{xs:"90%",md:"auto"},borderRight:{xs:"none",md:"1px solid #A1C6BA"},borderBottom:{xs:"1px solid #A1C6BA",md:"none"},"&:last-of-type":{borderBottom:"none",borderRight:"none"}},notificationIcon:{mt:"8px",py:"5px",overflow:"unset","& .MuiAlert-message":{maxWidth:"unset"}}};var v={wrapper:{flex:"0 0 336px",flexGrow:{xs:1,md:0},mr:0,maxHeight:"100%",display:"flex",flexDirection:"column",color:"colors.textPrimary",width:{xs:"100%",md:"auto"},"& .infinite-scroll-component__outerdiv":{flex:1,overflowY:"auto"},"& .infinite-scroll-component ":{padding:"0 !important"}},privateMessagePaper:{display:"flex",flexDirection:"column",height:"100%",p:"20px 16px 8px","&.Mu
1iPaper-root.MuiPaper-rounded":{borderRadius:"12px"},width:{xs:"100%",lg:336}},searchText:{fontWeight:700,mb:"6px"},chatsWrapper:{flex:1,overflowY:"auto",padding:"0 4px"}};var f={wrapper:{mt:"auto","&.MuiBox-root":{flexDirection:"row","& > .MuiBox-root":{width:"100%"}}}}},39483:function(e,t,o){o.d(t,{Z:function(){return f}});var n=o(57437),i=o(2265),r=o(55788),s=o(21170),l=o(39155),a=o(79814),d=o(72291),c=o(62260),u=o(96766),p=o(1199),m=o(98765),x=o(7220);var h={backButton:{mt:1,mb:3},headlineWrapper:{mt:"24px","& .MuiFormControl-root":{m:0,width:"100%","& .MuiOutlinedInput-input":{"&, &::placeholder":{fontSize:"1.5rem",fontWeight:700},p:"8.25px 14px"}}},editor:{mt:"12px","& > .MuiBox-root":{width:"100%"},"& > div img":{display:"block",m:"0 auto",aspectRatio:"unset"}},publishBtn:{m:"24px auto 0"}};const g={blockInfo:{title:"posts.article_creation.article_header_image",variant:"photo",aspectRatio:1.7}},v=e=>{let{article:t,isPreview:o,goBack:v,onSaveCallback:f,children:y}=e;const{t:b}=(0,r.$G)(),{showSuccessMessage:C}=(0,x.Z)(),j=Boolean(Object.keys(t||{}).length),[k,_]=(0,i.useState)(!1),[w,Z]=(0,i.useState)((()=>a.EditorState.createEmpty())),[I,M]=(0,i.useState)([]),[S,T]=(0,i.useState)("");(0,i.useEffect)((()=>{window&&window.scrollTo(0,0)}),[]),(0,i.useEffect)((()=>{if(!j)return;M((null===t||void 0===t?void 0:t.headerImage)?[{img64:t.headerImage}]:[]),T((null===t||void 0===t?void 0:t.title)||"");const e=(0,m.OQ)((null===t||void 0===t?void 0:t.text)||"");Z(e)}),[j,t]);const A=k||!I.length||!S||!(e=>e.getCurrentContent().hasText())(w);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.Z,{onClick:v,sx:h.backButton,children:b("posts.article_creation.back_to_your_feed")}),o?y:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.Z,{image:I,setImage:M,...g}),(0,n.jsx)(s.Z,{sx:h.headlineWrapper,children:(0,n.jsx)(d.Z,{required:!0,fullWidth:!0,id:"headline",placeholder:b("posts.article_creation.headline"),onChange:e=>T(e.target.value),value:S})}),(0,n.jsx)(s.Z,{sx:h.editor,children:(0,n.jsx)(p.Z,{editorState:w,setEditorState:Z,fullControl:!0})}),(0,n.jsx)(s.Z,{display:"flex",mb:2,children:(0,n.jsx)(l.Z,{color:"primary",variant:"contained",sx:h.publishBtn,onClick:()=>{const e=(0,m.cn)(w),o={id:null===t||void 0===t?void 0:t.id,text:e,headerImage:I,heading:S,isArticle:!0};_(!0),f(o,"article").then((e=>{200===(null===e||void 0===e?void 0:e.code)&&C(b("posts.article_creation.article_published_successfully"))})).finally((()=>{_(!1),v()}))},disabled:A,children:b("common.publish")})})]})]})};var f=(0,i.memo)(v)},91682:function(e,t,o){o.d(t,{Z:function(){return C}});var n=o(57437),i=o(2265),r=o(14069),s=o(30166),l=o(55788),a=o(32401),d=o(10657),c=o(91796),u=o(79965),p=o(83739),m=o(12824),x=o(67293),h=o(6551),g=o(7220);var v={modalWindow:{"& .MuiDialog-container > .MuiPaper-root":{minHeight:440,maxWidth:560,"& > .MuiBox-root:last-of-type":{flex:1,display:"flex",m:1,"& > .MuiBox-root":{flex:1,display:"flex",flexDirection:"column","@media screen and (max-height: 780px)":{overflow:"auto",height:"100%"}}},"@media screen and (max-height: 450px)":{minHeight:0}}},content:{p:{xs:1,sm:2},minWidth:0},userInfo:{gap:"10px",mb:"16px","& .MuiAvatar-root":{backgroundColor:"colors.borderGreyLight"}},actionButtonsWrapper:{display:"flex",justifyContent:"center",mt:"auto",pt:2.5,mx:-.75}},f=o(4441);const y={isFetching:!1,visible:1,text:"",asGroup:!1,image:[],hideImage:!0,video:null,embed:null,hideVideo:!0,modalType:"post",id:void 0},b=(e,t)=>{switch(t.type){case"SET_DATA_FOR_EDIT":{if(!Object.keys(t.payload||{}).length)return e;const{text:o,modalType:n,id:i,visible:r,from_group:s,images:l,videos:a}=t.payload||{},d=(null===a||void 0===a?void 0:a[0])||{};return{...e,visible:+(r||2),text:o||"",asGroup:s||!1,image:(null===l||void 0===l?void 0:l.length)?[{img64:l[0]}]:[],video:d.url?d:null,embed:d.embed||null,modalType:n||"post",id:i?+i:void 0}}case"SET_MODAL_DATA":return{...e,...t.payload};case"CLEAR_MODAL_DATA":return y;default:return e}};var C=e=>{let{open:t,onClose:C,post:j,isManager:k,onSaveCallback:_,isGroup:w}=e;const{t:Z}=(0,l.$G)(),{showSuccessMessage:I,showErrorMessage:M}=(0,g.Z)(),S=(0,r.CGy)(r.Am3),[T,A]=(0,i.useState)(!1),B=()=>A(!T);(0,i.useEffect)((()=>{t&&E({type:"SET_DATA_FOR_EDIT",payload:j})}),[j,t]);const[L,E]=(0,i.useReducer)(b,y),{isFetching:P,text:R,image:W,video:D,modalType:G,embed:F,id:O}=L,N=Boolean(R||W.length||(null===D||void 0===D?void 0:D.size)||F),z=N&&!O,H=()=>E({type:"SET_MODAL_DATA",payload:{modalType:"post"}}),K=()=>{A(!1),C({modalType:G})},V={post:{Component:"AddMainModalContent",onSaveCallback:()=>{(0,d.V)(F)?(E({type:"SET_MODAL_DATA",payload:{isFetching:!0}}),_(L,"post").then((e=>{200===(null===e||void 0===e?void 0:e.code)&&K()})).finally((()=>{E({type:"SET_MODAL_DATA",payload:{isFetching:!1}}),I(Z("posts.create_post_modal.post_published_successfully"))}))):M(Z(c.c))},disabled:!(N&&!P),props:{isManager:k,isGroup:w}},video:{Component:"AddVideoModalContent",title:"posts.create_post_modal.select_edit_your_video",onSaveCallback:H,disabled:!F&&!D,buttonText:"common.done"},photo:{Component:"AddPhotoModalContent",title:"posts.create_post_modal.select_edit_your_photo",onSaveCallback:H,disabled:!W.length,buttonText:"common.done"}},{Component:$="AddMainModalContent",title:U="",props:q={},disabled:Y=!1,buttonText:X="",onSaveCallback:Q=(()=>Promise.resolve())}=V[G]||{},J=(0,i.useMemo)((()=>(0,s.default)((()=>Promise.all([o.e(18014),o.e(1819)]).then(o.bind(o,79706)).then((e=>e[$]))),{loadableGenerated:{webpack:()=>[79706]}})),[$]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(m.Z,{open:t,onClose:K,sx:v.modalWindow,title:Z(U||"posts.create_post_modal.create_post"),TransitionProps:{onExited:()=>E({type:"CLEAR_MODAL_DATA"})},ActionButtons:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.Z,{color:"neutral",onClick:z?B:K,disabled:P,children:Z("common.cancel")}),(0,n.jsx)(u.Z,{disabled:Y,onClick:Q,endIcon:(0,n.jsx)(x.default,{isLoading:P,size:24}),children:Z(X||"posts.create_post_modal.post")})]}),children:[(0,n.jsx)(f.Z,{sx:v.userInfo,avatarProps:{src:S.image,alt:S.name,size:56},titleProps:{children:S.name,title:S.name,variant:"h6"},subtitle1Props:{children:(0,h.NG)([S.subtitle1,S.subtitle2],", "),variant:"subtitle3"}}),(0,n.jsx)(J,{...q,data:L,dispatchData:E})]}),z&&(0,n.jsx)(p.Z,{open:T,onClose:B,title:Z("posts.create_post_modal.discard_draft"),subtitle:Z("posts.create_post_modal.you_havent_finished_your_post"),color:"warning",width:424,icon:(0,n.jsx)(a.Z,{}),ActionButtons:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.Z,{color:"neutral",onClick:B,children:Z("common.cancel")}),(0,n.jsx)(u.Z,{variant:"contained",color:"warning",onClick:K,children:Z("posts.create_post_modal.discard")})]})})]})}},61615:function(e,t,o){o.d(t,{Z:function(){return h}});var n=o(57437),i=o(21170),r=o(39155),s=o(19902),l=o(46387),a=o(74727),d=o(25440),c=o(35245),u=o(33301),p=o(55788),m=o(91682);var x={wrapper:{px:3,pt:3,pb:2.5,"&.MuiPaper-rounded":{borderRadius:"10px"}},textField:{height:54,display:"flex",alignItems:"center",backgroundColor:"colors.backgroundGreyLight",borderRadius:"100px !important","& .MuiSvgIcon-root":{ml:3,mr:1.25,color:"colors.textPrimary"}},controls:{display:"flex",alignItems:"center",justifyContent:"center",flexWrap:"wrap",mt:1},button:{mx:2.25}};var h=e=>{let{openModal:t,writeArticleHandler:o,disabled:h,open:g,post:v,isManager:f,onSaveCallback:y,isGroup:b,onClose:C,sx:j}=e;const{t:k}=(0,p.$G)(),_=[{Icon:d.Z,text:"posts.create_post_modal_contents.add_photo",handler:t.bind(null,{modalType:"photo"})},{Icon:u.Z,text:"posts.create_post_modal_contents.add_video",handler:t.bind(null,{modalType:"video"})},{Icon:c.Z,text:"posts.post_creation_block.write_article",handler:o.bind(null,void 0)}];return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(s.Z,{variant:"outlined",sx:[x.wrapper,...Array.isArray(j)?j:[j]],"data-tour":"create-post-block",children:[(0,n.jsxs)(s.Z,{onClick:()=>{h||t({modalType:"post"})},variant:"outlined",sx:x.textField,className:h?"":"pointer",children:[(0,n.jsx)(a.Z,{fontSize:"small"}),(0,n.jsx)(l.Z,{color:"textSecondary",children:k("posts.post_creation_block.start_a_post")})]}),(0,n.jsx)(i.Z,{sx:x.controls,children:_.map((e=>{let{Icon:t,text:o,handler:i}=e;return(0,n.jsx)(r.Z,{startIcon:(0,n.jsx)(t,{}),onClick:i,disabled:h,variant:"text",sx:x.button,children:k(o)},o)}))})]}),(0,n.jsx)(m.Z,{open:g,onClose:C,post:v,isManager:f,onSaveCallback:y,isGroup:b})]})}},75043:function(e,t,o){o.d(t,{$_:function(){return i},BS:function(){return s},D9:function(){return r}});var n=o(6551);const i=(e,t)=>{var o,i,r,s,l,a,d;return{fromGroup:e.from_group,author:{logo:e.from_group?null===t||void 0===t?void 0:t.img_logo:null===(o=e.author)||void 0===o?void 0:o.logo,name:e.from_group?null===t||void 0===t?void 0:t.t
1itle:null===(i=e.author)||void 0===i?void 0:i.name,jobInfo:(0,n.NG)([null===(r=e.author)||void 0===r?void 0:r.position,null===(s=e.author)||void 0===s?void 0:s.company],", ")},creationTimestamp:e.create_timestamp||(new Date).getTime(),id:+e.id,likes:e.likes_counter||0,likeId:e.current_user_like_id,comments:e.comments_counter||0,isArticle:e.is_article||e.article,headerImage:e.header_image,postImage:null===(l=e.images)||void 0===l?void 0:l[0],title:e.title,text:e.text,minRead:e.minRead||"",video:null===(a=e.videos)||void 0===a?void 0:a[0],ownerId:e.owner_id,canAddComments:null===(d=null===e||void 0===e?void 0:e.can_add_comments)||void 0===d||d}},r=e=>{if(e)return{id:null===e||void 0===e?void 0:e.id,headerImage:null===e||void 0===e?void 0:e.header_image,text:null===e||void 0===e?void 0:e.text,title:null===e||void 0===e?void 0:e.title}},s=(e,t)=>{var o,n,i,r,s,l;return(null===(o=e.post)||void 0===o?void 0:o.text)===(null===(n=t.post)||void 0===n?void 0:n.text)&&(null===(i=e.post)||void 0===i?void 0:i.videos)===(null===(r=t.post)||void 0===r?void 0:r.videos)&&(null===(s=e.post)||void 0===s?void 0:s.images)===(null===(l=t.post)||void 0===l?void 0:l.images)}},4456:function(e,t,o){o.d(t,{Z:function(){return ke}});var n=o(57437),i=o(2265),r=o(99376),s=o(55788),l=o(21170),a=o(65364),d=o(19902),c=o(46387),u=o(79814),p=o(70870),m=o(49329),x=o(69615),h=o(6684),g=o(51072),v=o(17144),f=o(8275),y=o(37324),b=o(14408),C=o(39155),j=o(8350),k=o(14069),_=o(48236),w=o(74663),Z=o(77501);var I={info:{mt:1.5,mb:.5,"& span":{alignSelf:"flex-start",color:"colors.textSecondary"},"& .MuiSvgIcon-fontSizeSmall":{width:15},"& svg":{color:"colors.textSecondary"}},amountSection:{"& .MuiBox-root":{alignItems:"center"}},controls:{display:"flex",alignItems:"center",mt:1.5,gap:4},rotate:{transform:"scaleX(-1)"}},M=o(7220);const S=(e,t)=>"SET_INTERACTIONS_DATA"===t.type?{...e,...t.payload}:e,T={likesCount:0,commentsCount:0,publicationId:null,likeId:null,isLikeFetching:!1},A=e=>{let{data:t,sharePublication:o,openPreview:r,showComments:a=!0,likePublication:d}=e;const{t:u}=(0,s.$G)(),p=(0,k.TL5)(),m=(0,k.CGy)(k.BY5),{showErrorMessage:x}=(0,M.Z)(),[h,g]=(0,i.useReducer)(S,T),Z=e=>g({type:"SET_INTERACTIONS_DATA",payload:e});(0,i.useEffect)((()=>{Z(t)}),[t]);const{likesCount:A,commentsCount:B,publicationId:L,likeId:E,isLikeFetching:P}=h,R=e=>{m?r(e,!0):p((0,k.L8q)({isModalVisible:!0}))},W=[(0,n.jsxs)(l.Z,{display:"inline-flex",children:[(0,n.jsx)(b.Z,{fontSize:"small"}),(0,n.jsx)(c.Z,{sx:{ml:.5},children:A})]},"1"),(0,n.jsx)(c.Z,{className:B?"pointer":"",onClick:B?R:void 0,children:u("posts.publication_interactions_section.comments_count",{count:B})},"2")],D=Boolean(E);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.Z,{sx:I.info,children:(0,n.jsx)(v.Z,{textArray:W,isSetAsHTML:!1,sx:I.amountSection})}),(0,n.jsx)(j.Z,{}),(0,n.jsxs)(l.Z,{sx:I.controls,children:[(0,n.jsx)(C.Z,{startIcon:(0,n.jsx)(b.Z,{}),onClick:()=>{if(!m)return void p((0,k.L8q)({isModalVisible:!0}));Z({isLikeFetching:!0});const e=E?"delete/".concat(E):"save",o=E?{method:"DELETE"}:{body:{model:t.pageType,item_id:L}};(0,_.k_)("".concat((0,w.t)(),"/api/v1/likes/").concat(e),o).then((e=>{var t,o;return 200===(null===e||void 0===e?void 0:e.code)&&(null===(t=e.data)||void 0===t?void 0:t.done)?(d&&d({publicationId:L,likeId:e.data.id}),o=e.data.id||null,Z({likesCount:o?A+1:A-1,likeId:o})):x(u("error.something_went_wrong"))})).finally((()=>Z({isLikeFetching:!1})))},disabled:P,variant:"text",color:D?"primary":"neutral",children:u(D?"comments.comment_controls.liked":"common.like")}),a&&(0,n.jsx)(C.Z,{"data-tour":"share-button",startIcon:(0,n.jsx)(f.Z,{}),onClick:R,variant:"text",color:"neutral",children:u("posts.publication_interactions_section.comment")}),(0,n.jsx)(C.Z,{"data-tour":"share-button",startIcon:(0,n.jsx)(y.Z,{sx:I.rotate}),onClick:o,variant:"text",color:"neutral",children:u("posts.publication_interactions_section.share")})]})]})};var B=(0,i.memo)(A,((e,t)=>(0,Z.w)(e.data,t.data))),L=o(30592),E=o(89753);var P,R,W={header:{display:"flex",alignItems:"center",justifyContent:"space-between",py:1.5,px:3,backgroundColor:"transparent"},coloredHeader:{backgroundColor:"colors.brand1","& *":{color:e=>"".concat(e.palette.colors.white," !important")}},content:{pb:2,px:3,"& video":{maxHeight:380}},logoWrapper:{display:"flex",flexWrap:"wrap","& > .MuiPaper-root":{width:56,height:56,borderRadius:"50% !important",border:"initial",mr:1.5},"& .MuiAvatar-root":{backgroundColor:"colors.borderGreyLight"}},titleWrapper:{color:"colors.textPrimary",display:"flex",flexDirection:"column",justifyContent:"center"},spans:{"& span":{display:"inherit",fontSize:"0.85rem","&, & + svg":{color:"colors.textSecondary"}}},text:{wordBreak:"break-word"},seeMore:{color:"colors.primary",cursor:"pointer"},articleContent:{py:1.5,borderBottomLeftRadius:"5px",borderBottomRightRadius:"5px","& img":{display:"block",aspectRatio:"unset",m:"0 auto"}},articleContentSpansWithDots:{"& span":{color:"colors.textSecondary",fontSize:"0.875rem","& + svg":{fill:e=>e.palette.colors.textSecondary}}},articleImageWrapper:{"& > .MuiPaper-root.MuiPaper-rounded":{borderRadius:"5px",borderBottomLeftRadius:0,borderBottomRightRadius:0},"& img.MuiCardMedia-root":{aspectRatio:"1.76",backgroundColor:"colors.borderGreyLight"}},whiteSpans:{"span, span + svg":{color:"colors.white"}},headerBg:{backgroundColor:"colors.brand1",color:"colors.white"},postMedia:{"& .MuiPaper-root.MuiPaper-rounded, iframe, video":{borderRadius:"6px",aspectRatio:"1.76",width:"100%",height:"unset"},"& img.MuiCardMedia-root":{backgroundColor:"colors.borderGreyLight"}},notExtendedArticle:{backgroundColor:"colors.statusNeutralLight",px:1.75,"& a":{pointerEvents:"none","&:active":{color:"inherit"}}}},D=o(14932),G=o(6551);
1!function(e){e[e.Root=0]="Root",e[e.SecondLevel=1]="SecondLevel",e[e.MaxDeep=2]="MaxDeep"}(P||(P={})),function(e){e.SetCommentsFromApi="SET_COMMENTS_FROM_API",e.ToggleDeleteModalWindow="TOGGLE_DELETE_MODAL_WINDOW",e.ToggleLikesModalWindow="TOGGLE_LIKES_MODAL_WINDOW",e.SetTotalCommentsCount="SET_TOTAL_COMMENTS_COUNT",e.DeleteComment="DELETE_COMMENT",e.AddComments="ADD_COMMENTS",e.EditComment="EDIT_COMMENT",e.ReplyComment="REPLY_COMMENT",e.SetIsFetching="SET_IS_FETCHING"}(R||(R={}));const F=(e,t)=>{var o,n,i,r,s;return{...e,isMyComment:null!==(o=e.can_edit)&&void 0!==o&&o,likes:null!==(n=e.likes_counter)&&void 0!==n?n:0,currentUserLikeId:null!==(i=e.current_user_like_id)&&void 0!==i?i:null,timestamp:e.update_timestamp||e.create_timestamp||(new Date).getTime(),edited:null!==(r=e.is_edited)&&void 0!==r&&r,parentId:e.parent_id,replyInfo:e.reply_info,nestedIndex:null!==(s=e.comment_level)&&void 0!==s?s:0,hasChildren:e.has_children&&!e.children||e.comments_counter>0&&!e.children&&null!==t&&void 0!==t&&t,childrenCount:e.comments_counter||0,parentLevelId:e.parent_level_id||null,hasNext:null!==t&&void 0!==t&&t||e.comments_counter>0&&!e.children&&null!==t&&void 0!==t&&t}},O=(e,t)=>Array.isArray(e)?e.flatMap(((o,n)=>{let{children:i,...r}=o;return[F({...r,children:i},n===e.length-1&&t&&e.length>4),...(null===i||void 0===i?void 0:i.comments)?O(i.comments,t):[]]}
1)):[],N=(e,t,o)=>Array.isArray(e)&&o&&t?[...e.slice(0,o||0),...Array.isArray(t)?t:[t],...e.slice(o||0)]:[],z=(e,t)=>{switch(t.type){case R.SetCommentsFromApi:{const{comments:o=[],hasNext:n}=t.payload;return{...e,comments:[...e.comments,...o],commentsCounter:e.commentsCounter+o.length,hasNext:null!==n&&void 0!==n?n:e.hasNext}}case R.ToggleDeleteModalWindow:return{...e,deleteModalOpen:!e.deleteModalOpen};case R.ToggleLikesModalWindow:return{...e,likesModalOpen:!e.likesModalOpen};case R.SetTotalCommentsCount:return{...e,totalComments:t.payload||0};case R.DeleteComment:{const{id:o,isReply:n}=t.payload;if(!o)return e;const i=e.comments.find((e=>{let{id:t,index:n}=e;return t===o||n===o}))||{},r=((e,t)=>{const o=new Set;return e.forEach((e=>{let{id:n,parentId:i,index:r}=e;(n===t||i===t||r===t||o.has(i))&&o.add(n||r)})),Array.from(o)})(e.comments,o),s=e.comments.filter((e=>{let{id:t,index:n}=e;return i.nestedIndex===P.MaxDeep?t!==o&&n!==o:!r.includes(t)&&!r.includes(n)}));return{...e,comments:s,commentsCounter:n?e.commentsCounter:e.commentsCounter-1,totalComments:s.length,deleteModalOpen:!1}}case R.AddComments:{const{newComments:o=[],indexOfParent:n=0,fromReplayLoad:i}=t.payload,r=n?N(e.comments,o,n).filter((e=>{let{id:t}=e;return Boolean(t)})):[...e.comments,...o],s=i?0:o.length;return{...e,comments:r,commentsCounter:e.commentsCounter+s,totalComments:e.totalComments+s}}case R.EditComment:{const{id:o,editedComment:n}=t.payload,i=(new Date).getTime(),r=e.comments.map((e=>e.id===o?{...n,timestamp:i}:e));return{...e,comments:r}}case R.ReplyComment:{const{newComment:o,indexOfParent:n}=t.payload;return{...e,comments:N(e.comments,o,n)}}case R.SetIsFetching:return{...e,isFetching:t.payload};default:return e}},H={comments:[],commentsCounter:0,totalComments:0,hasNext:!0,deleteModalOpen:!1,likesModalOpen:!1,isFetching:!1},K={...H,deleteComment:()=>{},saveComment:()=>Promise.resolve({}),editComment:()=>Promise.resolve(),getCommentsFromApi:()=>Promise.resolve(),toggleDeleteModalWindow:()=>{},toggleLikesModalWindow:()=>{},replyComment:()=>{},loadReplies:()=>Promise.resolve()},V=(0,i.createContext)(K);var $=e=>{let{children:t,postId:o,type:r,setCommentsCount:s}=e;const l=(0,k.CGy)(k.Am3),[a,d]=(0,i.useReducer)(z,H),{comments:c,commentsCounter:u,totalComments:p,hasNext:m,deleteModalOpen:x,likesModalOpen:h,isFetching:g}=a;(0,i.useEffect)((()=>{s(p)}),[s,p]);const v=(0,i.useMemo)((()=>c.map((e=>{let{id:t,index:o}=e;return[t,o]})).flat().filter(Boolean)),[c]),f=(0,i.useRef)({0:1}),y=(e,t)=>{if(!m&&!e||g)return Promise.resolve();const n=e||0,i=new URLSearchParams((0,D.stringify)({item_id:o,type:r,page:f.current[n],...e&&{parent_id:e}}));return d({type:R.SetIsFetching,payload:!0}),(0,_.k_)("".concat((0,w.t)(),"/api/v1/comments/list?").concat(i),{method:"GET"}).then((o=>{var i;if(200!==(null===o||void 0===o?void 0:o.code)||!Array.isArray(null===(i=o.data)||void 0===i?void 0:i.comments))return;const{comments:r,has_next:s,total_comments:l}=o.data,a=r.filter((e=>{let{id:t}=e;return!v.includes(t)}));1===f.current[n]&&d({type:R.SetTotalCommentsCount,payload:l}),f.current[n]+=1;const c=O(a,!!e&&s);d(e&&t?{type:R.AddComments,payload:{newComments:c,indexOfParent:t,fromReplayLoad:!0}}:{type:R.SetCommentsFromApi,payload:{comments:c,...!e&&{hasNext:s}}})})).finally((()=>{d({type:R.SetIsFetching,payload:!1})}))},b=(e,t,n)=>{const i={item_id:o,text:e,type:r,...t&&{id:t},...n&&{parent_id:n}};return d({type:R.SetIsFetching,payload:!0}),(0,_.k_)("".concat((0,w.t)(),"/api/v1/comments/save"),{body:i}).then((e=>{if(200!==(null===e||void 0===e?void 0:e.code)||!(0,G.Kn)(e.data))return Promise.reject();const o=n?v.indexOf(n)+1:null,i=F(e.data);return t||d({type:R.AddComments,payload:{newComments:[i],...o&&{indexOfParent:o}}}),i})).finally((()=>{d({type:R.SetIsFetching,payload:!1})}))};return(0,n.jsx)(V.Provider,{value:{comments:c,commentsCounter:u,deleteComment:(e,t)=>{t?d({type:R.DeleteComment,payload:{id:e,isReply:t}}):(0,_.k_)("".concat((0,w.t)(),"/api/v1/comments/delete/").concat(e),{method:"DELETE"}).then((t=>{200===(null===t||void 0===t?void 0:t.code)&&d({type:R.DeleteComment,payload:{id:e}})}))},saveComment:b,editComment:(e,t,o)=>b(t,e,o).then((t=>{o||d({type:R.EditComment,payload:{id:e,editedComment:t}})})),getCommentsFromApi:y,totalComments:p,hasNext:m,deleteModalOpen:x,toggleDeleteModalWindow:()=>{d({type:R.ToggleDeleteModalWindow})},likesModalOpen:h,toggleLikesModalWindow:()=>{d({type:R.ToggleLikesModalWindow})},replyComment:e=>{const t=v.indexOf(e)+1,{nestedIndex:o,author:n}=c.find((t=>{let{id:o,index:n}=t;return o===e||n===e}))||{},i=o+1>P.MaxDeep?P.MaxDeep:o+1,r={author:{...l,logo:l.image||""},index:(0,G.wi)(),nestedIndex:i,parentId:e,isReply:!0,isMyComment:!0,replyInfo:n,edited:!1,likes:0,timestamp:(new Date).getTime(),currentUserLikeId:null};d({type:R.ReplyComment,payload:{indexOfParent:t,newComment:r}})},loadReplies:(e,t,o)=>{if(g)return Promise.reject();f.current[e]||(f.current[e]=1);const n=v.indexOf(o)+1;if(t<P.MaxDeep)return y(e,n);const i=new URLSearchParams((0,D.stringify)({parent_level_id:e,page:f.current[e]}));return d({type:R.SetIsFetching,payload:!0}),(0,_.k_)("".concat((0,w.t)(),"/api/v1/comments/listChildren?").concat(i),{method:"GET"}).then((t=>{var o;if(200!==(null===t||void 0===t?void 0:t.code)||!Array.isArray(null===(o=t.data)||void 0===o?void 0:o.comments))return;const{comments:i,has_next:r}=t.data,s=i.length-1;d({type:R.AddComments,payload:{newComments:i.map(((e,t)=>F(e,t===s&&r))),indexOfParent:n}}),f.current[e]+=1})).finally((()=>{d({type:R.SetIsFetching,payload:!1})}))},isFetching:g},children:t})},U=o(67567),q=o(41530),Y=o(79965),X=o(83739),Q=o(83983),J=o(12824),ee=o(73569),te=o(83543);const oe={userContent:{"&:last-of-type":{hr:{display:"none"}}},user:{"& span.MuiBadge-root":{maxWidth:"32px",maxHeight:"32px"}}};var ne=e=>{let{open:t,onClose:o,id:r,type:a="group_type"}=e;const{t:d}=(0,s.$G)(),[c,u]=(0,i.useState)([]),[p,m]=(0,i.useState)(!1),[x,h]=(0,i.useState)(1),[g,v]=(0,i.useState)(!0),f=(0,i.useCallback)((()=>
1{if(p||!g||!r)return;m(!0);const e=new URLSearchParams((0,D.stringify)({item_id:r,model:a,page:x}));(0,_.k_)("".concat((0,w.t)(),"/api/v1/likes/list?").concat(e),{method:"GET"}).then((e=>{var t,o;200===(null===e||void 0===e?void 0:e.code)&&Array.isArray(null===(t=e.data)||void 0===t?void 0:t.posts)&&(u([...c,...e.data.posts.map((e=>{let{author:t}=e;return(e=>{var t;return{...e,image:e.logo,companyName:null!==(t=e.company)&&void 0!==t?t:""}})(t)}))]),v(Boolean(null===(o=e.data)||void 0===o?void 0:o.has_next)),h(x+1))})).finally((()=>m(!1)))}),[r,g,p]);if((0,i.useEffect)((()=>{t&&f()}),[t]),!r)return null;return(0,n.jsx)(J.Z,{open:t,onClose:o,title:d("shared.likes_modal.liked_by",{count:c.length}),width:"404px",TransitionProps:{onExited:()=>{v(!0),u([]),h(1)}},children:(0,n.jsx)(l.Z,{sx:{maxHeight:"400px",overflow:"auto"},id:"scrollableDiv",children:(0,n.jsx)(Q.Z,{dataLength:c.length,next:f,hasMore:g,loader:(0,n.jsx)(te.Z,{}),style:{overflow:"visible"},scrollableTarget:"scrollableDiv",scrollThreshold:.6,children:c.map((e=>(0,n.jsxs)(l.Z,{sx:oe.userContent,children:[(0,n.jsx)(ee.Z,{sx:oe.user,teamMember:e,positionAndCompanyInOneLine:!0}),(0,n.jsx)(j.Z,{sx:{my:1}})]},"like-".concat(e.id))))})})})},ie=o(18856),re=o(67051),se=o(50290);var le={wrapper:{display:"flex",alignItems:"flex-end"},contentWrapper:{ml:"6px",flex:1},likesAmount:{position:"absolute",right:"10px",bottom:"10px",display:"flex",alignItems:"center",py:.5,px:"6px",boxShadow:"0px 0px 24px rgba(0, 0, 0, 0.103544)",borderRadius:"3px !important","> svg":{height:"11px",width:"10px",mr:"4.5px"}},content:{py:1,px:1.5,backgroundColor:"colors.statusNeutralLight","&.MuiPaper-root.MuiPaper-rounded":{borderRadius:"7px"},"& p":{wordBreak:"break-word"}},contentTopBlock:{display:"flex",alignItems:"center",justifyContent:"space-between"},authorName:{fontSize:"12px",lineHeight:"14.4px"},controls:{mt:"2px",display:"flex",position:"relative","> *":{mx:"6px !important",color:"text.secondary"},"> a":{color:"text.secondary",fontSize:"12px",fontWeight:700,lineHeight:"120%",userSelect:"none"}},nestedDivider:{alignSelf:"stretch",m:"0px 6px 16px 16px",width:"12px",borderLeft:"1px solid",borderBottom:"1px solid",borderColor:"colors.borderGreyLight",borderRadius:"0px 0px 0px 4px"},commentInput:{p:0,border:"none",bgcolor:"colors.white","&:hover":{".MuiOutlinedInput-notchedOutline":{borderColor:"colors.functionalInfo"}}},commentsBlockStyles:{wrapper:{"> div":{"&:not(:first-of-type)":{mt:"12px"}}},sendMessageWrapper:{flexDirection:"row",width:"100%",gap:"4px",marginTop:"12px","& .MuiFormHelperText-root":{ml:"-36px"}},sendMessage:{flexGrow:1,border:"none",p:"0px","& .MuiInputBase-input":{pb:"9px"},flexDirection:{xs:"row"}},viewMoreBlock:{display:"flex",alignItems:"center",justifyContent:"space-between"},linkButton:{userSelect:"none",cursor:"pointer"}}},ae=o(42990);const de={variant:"body1",className:"subtitle4"},ce={isLiked:!1,likesAmount:0,wasEdited:!1,isFetching:!1,likes:[],likesTotal:0},ue=(e,t)=>{switch(t.type){case"setIsLiked":var o;return{...e,isLiked:null!==(o=null===t||void 0===t?void 0:t.isLiked)&&void 0!==o&&o};case"setLikesAmount":var n;return{...e,likesAmount:null!==(n=null===t||void 0===t?void 0:t.likesAmount)&&void 0!==n?n:0};case"setWasEdited":var i;return{...e,wasEdited:null!==(i=null===t||void 0===t?void 0:t.wasEdited)&&void 0!==i&&i};case"setIsFetching":var r;return{...e,isFetching:null!==(r=t.isFetching)&&void 0!==r&&r};case"setLikes":var s,l;return{...e,likes:null!==(s=null===t||void 0===t?void 0:t.likes)&&void 0!==s?s:[],likesTotal:null!==(l=null===t||void 0===t?void 0:t.likesTotal)&&void 0!==l?l:0};case"clearData":return ce;default:throw new Error("Action ".concat(t.type," is not supported"))}},pe=e=>{let{isEdit:t,cancelEdit:o,data:r,sx:a=[],onSave:u,text:p,onLikesClick:x,replyComment:h}=e;const{t:g}=(0,s.$G)(),v=(0,i.useRef)(""),f=(0,i.useRef)(null),y=(0,i.useRef)(!1),[b,C]=(0,i.useReducer)(ue,ce);(0,i.useEffect)((()=>(C({type:"setIsLiked",isLiked:Boolean(r.commentLikeId)}),C({type:"setLikesAmount",likesAmount:r.likesCount}),C({type:"setWasEdited",wasEdited:r.edited}),()=>{C({type:"clearData"})})),[r.edited]),(0,i.useEffect)((()=>{t&&(v.current=p)}),[t]);const{isLiked:j,likesAmount:k,wasEdited:Z,isFetching:I,likes:M,likesTotal:S}=b,[T,A]=(0,i.useMemo)((()=>[(0,m.oq)(r.lastChangeTime),(0,m.xz)(r.lastChangeTime,"LLLL")]),[r.lastChangeTime]),B=()=>(0,n.jsxs)(l.Z,{display:"flex",flexDirection:"column",children:[M.map((e=>(0,n.jsx)(c.Z,{children:e},e))),S>9&&(0,n.jsx)(c.Z,{children:g("comments.comment_controls.and_count_more",{count:S-9})})]}),E=Array.isArray(a)?a:[a];return(0,n.jsxs)(l.Z,{sx:[le.controls,...E],children:[t?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ie.Z,{underline:"none",onClick:()=>{I||(C({type:"setIsFetching",isFetching:!0}),u(p,!1).then((()=>{Z||C({type:"setWasEdited",wasEdited:!0})})).finally((()=>{C({type:"setIsFetching",isFetching:!1})}
1)))},children:g("common.save")}),(0,n.jsx)(ie.Z,{underline:"none",onClick:()=>{u(v.current,!0),o()},children:g("common.cancel")})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ie.Z,{underline:"none",onClick:()=>{if(I)return;var e;C({type:"setIsFetching",isFetching:!0});const[t,o]=j?["DELETE","/api/v1/likes/delete/".concat(null!==(e=f.current)&&void 0!==e?e:r.commentLikeId)]:["POST","/api/v1/likes/save"],n={body:{model:"comment_type",item_id:r.commentId}};(0,_.k_)("".concat((0,w.t)()).concat(o),{method:t,..."POST"===t&&n}).then((e=>{var t;200===(null===e||void 0===e?void 0:e.code)&&(0,G.Kn)(e.data)&&(C({type:"setIsLiked",isLiked:!j}),C({type:"setLikesAmount",likesAmount:j?k-1:k+1}),y.current=!1,j||(f.current=null!==(t=e.data.id)&&void 0!==t?t:null))})).finally((()=>{C({type:"setIsFetching",isFetching:!1})}))},children:g(j?"comments.comment_controls.liked":"common.like")}),(0,n.jsx)(ie.Z,{onClick:()=>{h(r.commentId)},underline:"none",children:g("comments.comment_controls.reply")}),(0,n.jsx)(L.Z,{text:A,arrow:!0,isDark:!0,placement:"bottom",children:(0,n.jsx)(c.Z,{...de,children:T})}),Z&&(0,n.jsx)(c.Z,{...de,children:g("comments.comment_controls.edited")})]}),k>0&&!t&&(0,n.jsx)(L.Z,{text:(0,n.jsx)(B,{}),arrow:!0,isDark:!0,placement:"bottom",children:(0,n.jsxs)(d.Z,{"data-testid":"likes-container",sx:le.likesAmount,onClick:()=>{x(r.commentId)},onMouseEnter:()=>{if(y.current)return;const e=new URLSearchParams((0,D.stringify)({item_id:r.commentId,model:"comment_type"}));(0,_.k_)("".concat((0,w.t)(),"/api/v1/likes/list?").concat(e),{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.posts))return;const o=e.data.posts.map((e=>{let{author:t}=e;return t.name}));C({type:"setLikes",likes:o,likesTotal:e.data.total_likes}),y.current=!0}))},className:"pointer",children:[(0,n.jsx)(ae.Z,{color:"primary"}),(0,n.jsx)(c.Z,{color:"textSecondary",variant:"subtitle4",children:k})]})})]})};var me=(0,i.memo)(pe),xe=o(53144),he=o(35773);var ge=e=>{let{comment:t,onDelete:o,onEdit:r,onLikesClick:a,replyComment:u,loadReplies:m,isFetching:x}=e;const{showErrorMessage:g}=(0,M.Z)(),{t:v}=(0,s.$G)(),[f,b]=(0,i.useState)(!1),[C,j]=(0,i.useState)(""),[k,_]=(0,i.useState)(!1);(0,i.useEffect)((()=>(j(t.text),()=>{j("")})),[t]),(0,i.useEffect)((()=>{const{hasChildren:e,nestedIndex:o,hasNext:n}=t,i=e&&o!==P.MaxDeep;return _(i||n),()=>{_(!1)}}),[t]);const{author:w={}}=t,Z=Boolean(t.parentId);var I;(0,i.useEffect)((()=>(t.isReply&&b(!0),()=>{b(!1)})),[t.isReply]);const{name:S,id:T}=null!==(I=t.replyInfo)&&void 0!==I?I:{},A=(0,i.useCallback)((e=>({pathname:"/participant/".concat(null!==e&&void 0!==e?e:w.id)})),[w.id]),B=()=>{o(t.id||t.index,Boolean(t.isReply))},L=()=>{b(!1),t.isReply&&B()},R=(e,o)=>x?Promise.reject():o?(j(e),L(),Promise.resolve()):r(t.id,e,t.parentId).then((()=>{j(e),L()})).catch((()=>{g(v("error.something_went_wrong"))})),W={edited:t.edited,likesCount:t.likes,commentLikeId:t.currentUserLikeId,commentId:t.id,lastChangeTime:t.timestamp},D=t.nestedIndex===P.SecondLevel?t.nestedIndex+t.childrenCount:t.nestedIndex,G=[{clickHandler:()=>b(!0),itemText:"comments.comment.edit_a_comment",key:"editComment"},{clickHandler:B,itemText:"comments.comment.delete_a_comment",key:"deleteComment"}];return(0,n.jsxs)(l.Z,{sx:{pl:t.nestedIndex===P.MaxDeep?"34px":0},children:[(0,n.jsxs)(l.Z,{sx:le.wrapper,role:"presentation",children:[Z&&(0,n.jsx)(l.Z,{sx:le.nestedDivider}),(0,n.jsx)(he.Z,{href:A(),children:(0,n.jsx)(E.Z,{user:{...w,photo:w.logo},size:32,sx:[{flexShrink:0},h.W0.pointer]})}),(0,n.jsx)(l.Z,{sx:le.contentWrapper,children:(0,n.jsxs)(d.Z,{sx:[le.content,f&&{p:0,"&.MuiPaper-root.MuiPaper-rounded":{borderRadius:"0px"}}],elevation:0,children:[!f&&(0,n.jsxs)(l.Z,{sx:le.contentTopBlock,children:[(0,n.jsx)(c.Z,{color:"textPrimary",variant:"body1",sx:le.authorName,gutterBottom:!0,children:w.name}),t.isMyComment&&(0,n.jsx)(p.Z,{isIconHorizontal:!0,keepMounted:!0,children:G.map(((e,t)=>{let{clickHandler:o,itemText:i,key:r}=e;return(0,n.jsx)(se.Z,{divider:!t,onClick:o,children:(0,n.jsx)(re.Z,{children:(0,n.jsx)(c.Z,{variant:"body2",children:v(i)})})},r)}))})]}),(0,n.jsx)(l.Z,{children:f?(0,n.jsx)(xe.Z,{newMessage:C,setNewMessage:j,handleSendMessage:R,sx:le.commentInput,disabled:x,miniChat:!0,disableKeyPress:!0}):(0,n.jsxs)(n.Fragment,{children:[S&&(0,n.jsx)(he.Z,{href:A(Number(T)),children:(0,n.jsx)(c.Z,{className:"pointer",sx:{color:"colors.functionalInfo",display:"inline"},children:"".concat(S,", ")}
1)}),(0,n.jsx)(c.Z,{color:"textPrimary",variant:"body1",title:C,sx:{lineHeight:"160%",display:"inline"},children:C})]})})]})})]}),(0,n.jsx)(me,{sx:{ml:Z?"70px":"38px"},isEdit:f,cancelEdit:L,data:W,onSave:R,text:C,onLikesClick:a,replyComment:u}),k&&(0,n.jsxs)(l.Z,{display:"flex",mt:2,sx:{pl:t.nestedIndex===P.SecondLevel?"34px":0},children:[(0,n.jsx)(l.Z,{sx:le.nestedDivider}),(0,n.jsx)(l.Z,{sx:le.controls,children:(0,n.jsxs)(ie.Z,{underline:"none",sx:{display:"flex",alignItems:"center"},onClick:()=>{m(D<=P.MaxDeep&&t.parentLevelId||t.id,D,t.id).then((()=>{_(!1)}))},children:[(0,n.jsx)(y.Z,{sx:{transform:"rotate(180deg)",width:"16px"}}),t.childrenCount?v("comments.comment.count_replies",{count:t.childrenCount}):v("comments.comment.load_more")]})})]})]})};const ve=e=>{let{saveComment:t,isFetching:o}=e;const{t:r}=(0,s.$G)(),{showSuccessMessage:l,showErrorMessage:a}=(0,M.Z)(),{commentsBlockStyles:d}=le,[c,u]=(0,i.useState)("");return(0,n.jsx)(xe.Z,{newMessage:c,setNewMessage:u,handleSendMessage:()=>t(c).then((()=>{u(""),l(r("common.sent"))})).catch((()=>a(r("error.something_went_wrong")))),placeholder:r("comments.comments_send.add_a_comment"),helperText:r("comments.comments_send.hint_press_enter_to_send"),sx:d.sendMessage,miniChat:!1,disabled:o})};var fe=(0,i.memo)(ve);const ye=e=>{let{commentsCounter:t,getCommentsFromApi:o,total:i}=e;const{t:r}=(0,s.$G)(),{commentsBlockStyles:a}=le,d=r("comments.comments_view_more.of",{count:t,total:i});return(0,n.jsxs)(l.Z,{sx:a.viewMoreBlock,children:[(0,n.jsx)(c.Z,{variant:"button2",color:"textSecondary",sx:a.linkButton,onClick:()=>o(),children:r("comments.comments_view_more.view_more_comments")}),(0,n.jsx)(l.Z,{children:(0,n.jsx)(c.Z,{variant:"button2",color:"textSecondary",children:d})})]})};var be=(0,i.memo)(ye),Ce=o(13471);var je=()=>{const{t:e}=(0,s.$G)(),{commentsBlockStyles:t}=le,o=(0,i.useRef)(null),r=(0,k.CGy)(Ce.is),{commentsCounter:a,comments:d,getCommentsFromApi:c,deleteComment:u,editComment:p,totalComments:m,hasNext:x,deleteModalOpen:h,toggleDeleteModalWindow:g,likesModalOpen:v,toggleLikesModalWindow:f,saveComment:y,replyComment:b,loadReplies:C,isFetching:_}=(0,i.useContext)(V);(0,i.useEffect)((()=>{c()}),[]);const w=(e,t)=>{t?u(e,t):(o.current=e,g())},Z=e=>{o.current=e,f()};return(0,n.jsxs)(l.Z,{p:3,sx:t.wrapper,id:"comments-block",children:[d.map((e=>(0,n.jsx)(ge,{comment:e,onDelete:w,onEdit:p,onLikesClick:Z,replyComment:b,loadReplies:C,isFetching:_},e.id||e.index))),(0,n.jsx)(j.Z,{sx:{mt:2}}),x&&m>10&&(0,n.jsx)(be,{commentsCounter:a,getCommentsFromApi:c,total:m}),(0,n.jsxs)(q.Z,{sx:t.sendMessageWrapper,children:[(0,n.jsx)(he.Z,{href:{pathname:"/participant/".concat(r.id)},children:(0,n.jsx)(E.Z,{user:{...r,photo:r.photoUrl},size:32,sx:{mt:"4px"}})}),(0,n.jsx)(fe,{saveComment:y,isFetching:_})]}),(0,n.jsx)(X.Z,{open:h,onClose:g,icon:(0,n.jsx)(U.Z,{}),title:e("comments.comments_block.are_you_sure_you_want"),subtitle:e("comments.comments_block.this_action_is_irreversible_and_will"),color:"error",width:"500px",ActionButtons:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Y.Z,{color:"neutral",onClick:g,children:e("common.cancel")}),(0,n.jsx)(Y.Z,{color:"error",onClick:()=>{o.current&&u(o.current)},children:e("common.delete")})]})}),(0,n.jsx)(ne,{open:v,onClose:f,type:"comment_type",id:o.current})]})};var ke=e=>{let{publication:t,togglePage:o,sharePublication:f,likePublication:y,children:b,PublicationConfirmation:C=(()=>null),hideInteractionsSection:j,isGroupPost:k,extended:_,iconData:w,pageType:Z="feed_type",commentsType:I="feed_post",setPublications:M}=e;var S,T,A,P;const{t:R}=(0,s.$G)(),D=((0,r.useSearchParams)()||new URLSearchParams).get("publicationId"),[G,F]=(0,i.useState)(!1),[O,N]=(0,i.useState)(t.comments||0);(0,i.useEffect)((()=>{M&&M((e=>e.map((e=>e.id===t.id?{...e,comments_counter:O}:e))))}),[O,t.id,M]);const z=function(e){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];o&&!_&&(e.preventDefault(),o({publicationId:t.id,ownerId:t.ownerId,comment:n}))},[H,K]=(0,i.useMemo)((()=>[(0,m.oq)(t.creationTimestamp),(0,m.xz)(t.creationTimestamp,"LLLL")]),[t.creationTimestamp]),V=t.author||{},{likes:U=0,likeId:q}=t||{},Y=[{key:"tooltipCreationTime",text:K,children:(0,n.jsx)("span",{children:H})},...w?[{key:"tooltipIcon",text:w.tooltipText,children:(0,n.jsx)(w.Component,{fontSize:"small"})}]:[]].map((e=>{let{key:t,...o}=e;return(0,n.jsx)(L.Z,{...o,arrow:!0,isDark:!0,placement:"bottom"},t)})),X={likesCount:U,commentsCount:O,publicationId:t.id,likeId:q,pageType:Z},Q=(0,i.useMemo)((()=>t.text?u.ContentState.createFromBlockArray((0,u.convertFromHTML)(t.text||"").contentBlocks).getPlainText():""),[t.text]).length>280,J=!_&&Q,ee=!G&&!_&&Q;return(0,n.jsxs)(d.Z,{variant:"outlined",sx:{mb:2},children:[(0,n.jsxs)(l.Z,{sx:[W.header,Boolean(k)&&W.coloredHeader],children:[(0,n.jsxs)(l.Z,{sx:W.logoWrapper,children:[(0,n.jsx)(E.Z,{user:{photo:V.logo},size:56,sx:{mr:1.5}}),(0,n.jsxs)(l.Z,{sx:[W.titleWrapper],children:[V.name&&(0,n.jsx)(c.Z,{variant:"h5",noWrap:!0,children:V.name}),V.jobInfo&&(0,n.jsx)(c.Z,{variant:"subtitle3",noWrap:!0,children:V.jobInfo}),(0,n.jsx)(l.Z,{sx:W.spans,children:(0,n.jsx)(v.Z,{dotSize:4,textArray:Y,isSetAsHTML:!1}
1)})]})]}),(0,n.jsx)(p.Z,{isIconHorizontal:!0,keepMounted:!0,children:b})]}),(0,n.jsxs)(l.Z,{sx:W.content,pt:k?2:0,children:[t.isArticle&&t.headerImage&&(0,n.jsx)(l.Z,{sx:W.articleImageWrapper,children:(0,n.jsx)(g.Z,{image:{url:t.headerImage,width:880,height:0},component:"img"})}),t.isArticle?(0,n.jsxs)(l.Z,{sx:[W.articleContent,!_&&W.notExtendedArticle,!_&&h.W0.pointer],onClick:z,children:[(0,n.jsx)(c.Z,{variant:"h3",children:t.title}),(0,n.jsx)(v.Z,{textArray:[V.name,t.minRead],sx:W.articleContentSpansWithDots}),(0,n.jsx)(l.Z,{sx:[!_&&h.W0.ellipsis(2),h.W0.dangerouslyHtml],dangerouslySetInnerHTML:{__html:(0,x.Z6)(t.text||"")}})]}):(0,n.jsxs)(l.Z,{children:[t.text&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.Z,{sx:[ee&&h.W0.ellipsis(2),h.W0.dangerouslyHtml],dangerouslySetInnerHTML:{__html:(0,x.Z6)(t.text)}}),J&&(0,n.jsx)(l.Z,{display:"flex",justifyContent:"flex-end",children:(0,n.jsx)(c.Z,{sx:W.seeMore,variant:"button",onClick:()=>F(!G),children:R(G?"common.show_less":"common.show_more")})})]}),(0,n.jsxs)(l.Z,{sx:[W.postMedia,{mt:t.text?1.5:0}],children:[t.postImage&&(0,n.jsx)(g.Z,{component:"img",image:{url:t.postImage,width:880,height:0}}),(null===(S=t.video)||void 0===S?void 0:S.url)&&(0,n.jsx)(a.Z,{component:"video",controls:!0,src:null===(T=t.video)||void 0===T?void 0:T.url}),(null===(A=t.video)||void 0===A?void 0:A.embed)&&(0,n.jsx)(l.Z,{sx:[{wordBreak:"break-all"},h.W0.dangerouslyHtml],dangerouslySetInnerHTML:{__html:(0,x.Z6)(null===(P=t.video)||void 0===P?void 0:P.embed,x.v0)}})]})]}),(0,n.jsx)(C,{}),!j&&(0,n.jsx)(B,{data:X,sharePublication:f,openPreview:z,likePublication:y,showComments:Boolean(t.canAddComments)})]}),D&&t.canAddComments&&(0,n.jsx)($,{postId:+D,type:I,setCommentsCount:N,children:(0,n.jsx)(je,{})})]})}},47870:function(e,t,o){var n=o(57437),i=o(2265),r=o(14069),s=o(55788),l=o(61512),a=o(50290),d=o(42525),c=o(46387),u=o(78663),p=o(93569),m=o(83855),x=o(70870),h=o(25960),g=o(50944),v=o(46216),f=o(13411),y=o(57015),b=o(86451);const C={menu:{["& .".concat(d.Z.root,".").concat(d.Z.rounded)]:{minWidth:"154px"},["& .".concat(l.Z.root)]:{p:0,minHeight:"38px","& > *":{display:"flex",alignItems:"center",width:"100%",padding:"8px 16px",gap:"4px"}}}};t.Z=e=>{let{id:t,ownerType:o,hideFavouriteButton:l}=e;const{t:d}=(0,s.$G)(),j=o||"exhibitor",{hide:k}=(0,h.Z)({id:t,ownerType:j}),{hide:_}=(0,g.Z)({id:t,ownerType:j}),{hide:w}=(0,v.Z)({id:t,ownerRole:[],ownerType:j}),Z=(0,i.useMemo)((()=>({id:t})),[t]),I=(0,r.CGy)((e=>(0,r.gH1)(e,Z)));return(l||w)&&k&&_?null:(0,n.jsxs)(x.Z,{sx:C.menu,children:[!l&&(0,n.jsx)(a.Z,{children:(0,n.jsxs)(f.default,{id:t,ownerType:j,children:[(0,n.jsx)(m.Z,{}),(0,n.jsx)(c.Z,{variant:"body2",children:d(I?"profile_common.action_buttons_dropdown.remove_from_favourites":"profile_common.action_buttons_dropdown.add_to_favourite")})]})}),(0,n.jsx)(a.Z,{children:(0,n.jsxs)(y.Z,{id:t,ownerType:j,children:[(0,n.jsx)(p.Z,{}),(0,n.jsx)(c.Z,{variant:"body2",children:d("common.meet")})]})}),(0,n.jsx)(a.Z,{children:(0,n.jsxs)(b.default,{id:t,ownerType:j,children:[(0,n.jsx)(u.Z,{}),(0,n.jsx)(c.Z,{variant:"body2",children:d("common.message")})]})})]})}},1650:function(e,t,o){var n=o(57437),i=o(21170),r=o(46387),s=o(55788);const l={imageFormat:{color:e=>e.palette.text.secondary,fontWeight:400}};t.Z=e=>{let{formats:t=["PNG","JPG","JPEG"],ratio:o="1:1",variant:a="h5",sx:d}=e;const{t:c}=(0,s.$G)();return(0,n.jsxs)(i.Z,{my:1,sx:d,children:[(0,n.jsxs)(r.Z,{variant:a,children:[c("common.supported_formats"),":"," ",(0,n.jsx)(i.Z,{component:"span",sx:l.imageFormat,children:t.join(", ")})]}),(0,n.jsxs)(r.Z,{variant:a,children:[c("common.aspect_ratio")," ",(0,n.jsx)(i.Z,{component:"span",sx:l.imageFormat,children:o})]})]})}},62260:function(e,t,o){var n=o(57437),i=o(21170),r=o(65364),s=o(62069),l=o(46387),a=o(99115),d=o(2265),c=o(55788),u=o(79965),p=o(83739),m=o(13383),x=o(43974),h=o(72608),g=o(85147),v=o(74506),f=o(90154),y=o(82264),b=o(1650),C=o(7927);t.Z=e=>{let{headerImages:t,blockInfo:o,image:j,setImage:k,show:_,toggleShow:w,showSwitcher:Z,tooltip:I,isCircleCropper:M,maxSize:S=2e6,useModalWindow:T,readOnly:A}=e;var B,L,E,P,R,W,D,G;const{t:F}=(0,c.$G)(),{title:O,switcher:N={},variant:z,aspectRatio:H,height:K}=o,V=(0,d.useRef)(null),$=(0,d.useRef)(null),U=(0,d.useRef)(null),[q,Y]=(0,d.useState)([]),[X,Q]=(0,d.useState)([]),[J,ee]=(0,d.useState)([]),[te,oe]=(0,d.useState)(!1),ne=()=>{oe(!te)},ie=e=>()=>{var t,o;null===(o=e.current)||void 0===o||null===(t=o.open)||void 0===t||t.call(o)};(0,d.useEffect)((()=>{q.length&&k({...j,desktop:q[0]})}),[q]),(0,d.useEffect)((()=>{X.length&&k({...j,mobile:X[0]})}),[X]),(0,d.useEffect)((()=>{J.length&&k({...j,tablet:J[0]})}),[J]);const re=(0,d.useMemo)((()=>Object.keys(I||{}).length>0&&(null===I||void 0===I?void 0:I.title)&&(null===I||void 0===I?void 0:I.text)),[I]),se={isCircleCropper:M,aspectRatio:H},le={isCircleCropper:M,aspectRatio:8.2},ae={isCircleCropper:M,aspectRatio:1.5},de=t&&(0,x.K)(null===j||void 0===j?void 0:j.desktop)&&(null===j||void 0===j?void 0:j.desktop.img64)||(null===j||void 0===j||null===(B=j[0])||void 0===B?void 0:B.img64)||A,ce="".concat(H||1," / 1"),ue="".concat(ae.aspectRatio||1," / 1"),pe="".concat(le.aspectRatio||1," / 1"),me=(null===j||void 0===j||null===(L=j.mobile)||void 0===L?void 0:L.img64)||A,xe=(null===j||void 0===j||null===(E=j.tablet)||void 0===E?void 0:E.img64)||A;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(i.Z,{display:"flex",alignItems:"center",justifyContent:"space-between",children:[(0,n.jsx)(l.Z,{variant:"h4",children:F(O||"")}),Z&&!A&&(0,n.jsx)(h.Z,{name:null===N||void 0===N?void 0:N.name,label:F(null===N||void 0===N?void 0:N.label),checked:_,onChange:w,control:(0,n.jsx)(g.Z,{}),slotProps:{typography:{variant:"overline"}}})]}),(0,n.jsxs)(i.Z,{mt:t?0:1,children:[t&&(0,n.jsx)(l.Z,{component:"div",sx:C.V.title,variant:"overline",color:"textSecondary",children:F("profile_sponsorship.add_image_block.desktop")}),(0,n.jsx)(i.Z,{sx:[C.V.dropzoneWrapper({height:K,aspectRatio:ce}),de&&C.V.hide],children:(0,n.jsx)(y.Z,{setImage:t?Y:k,zoneWidth:100,zoneHeight:K,maxSize:S,formats:".png, .jpg",aspectRatio:H,variant:z||"photo",ref:V,cropperProps:se})}),(t&&(null===j||void 0===j||null===(P=j.desktop)||void 0===P?void 0:P.img64)||(null===j||void 0===j||null===(R=j[0])||void 0===R?void 0:R.img64))&&(0,n.jsxs)(i.Z,{sx:C.V.actionButtons({aspectRatio:ce}),children:[(0,n.jsx)(r.Z,{image:t?null===j||void 0===j||null===(W=j.desktop)||void 0===W?void 0:W.img64:j[0].img64,component:"img"}),!A&&(0,n.jsxs)(i.Z,{className:"actionButtons",children:[(0,n.jsx)(f.Z,{onClick:ie(V)}),(0,n.jsx)(v.Z,{sx:{ml:1},onClick:t?()=>{k({...j,desktop:""})}:()=>T?ne():k([])})]})]}),re&&(0,n.jsxs)(i.Z,{mb:1,mt:-6,display:"flex",children:[(0,n.jsx)(l.Z,{variant:"h4",children:null===I||void 0===I?void 0:I.title}),(0,n.jsx)(m.Z,{info:(0,n.jsx)(l.Z,{variant:"subtitle2",children:null===I||void 0===I?void 0:I.text}),arrow:!0,isDark:null===I||void 0===I?void 0:I.isDark,placement:(null===I||void 0===I?void 0:I.placement)||"bottom",iconProps:{sx:C.V.tooltipTriggerIcon}})]}),(0,n.jsx)(b.Z,{variant:"h6",ratio:"".concat(H),sx:C.V.formats})]}),t&&(0,n.jsxs)(s.ZP,{mt:3,container:!0,justifyContent:"space-between",children:[(0,n.jsxs)(s.ZP,{item:!0,xs:12,sm:12,md:3,lg:3,children:[(0,n.jsx)(l.Z,{component:"div",sx:C.V.title,variant:"overline",color:"textSecondary",children:F("profile_sponsorship.add_image_block.mobile")}),(0,n.jsx)(i.Z,{sx:[me&&C.V.hide],children:(0,n.jsx)(y.Z,{setImage:Q,zoneWidth:100,zoneHeight:150,maxSize:S,formats:".png, .jpg",ref:$,cropperProps:ae,variant:"photo"})}),(null===j||void 0===j||null===(D=j.mobile)||void 0===D?void 0:D.img64)&&(0,n.jsxs)(i.Z,{sx:C.V.actionButtons({aspectRatio:ue}),children:[(0,n.jsx)(r.Z,{image:j.mobile.img64,component:"img"}),!A&&(0,n.jsxs)(i.Z,{className:"actionButtons",children:[(0,n.jsx)(f.Z,{onClick:ie($)}),(0,n.jsx)(v.Z,{sx:{ml:1},onClick:()=>{k({...j,mobile:""})}})]})]}),re&&(0,n.jsxs)(i.Z,{mb:1,mt:-6,display:"flex",alignItems:"flex-end",children:[(0,n.jsx)(l.Z,{variant:"h4",children:null===I||void 0===I?void 0:I.title}),(0,n.jsx)(m.Z,{info:(0,n.jsx)(l.Z,{variant:"subtitle2",children:null===I||void 0===I?void 0:I.text}),arrow:!0,iconProps:{sx:C.V.tooltipTriggerIcon}})]}),(0,n.jsx)(b.Z,{ratio:"".concat(1.5)})]}),(0,n.jsxs)(s.ZP,{item:!0,xs:12,sm:12,md:8,lg:8,children:[(0,n.jsx)(l.Z,{component:"div",sx:C.V.title,variant:"overline",color:"textSecondary",children:F("profile_sponsorship.add_image_block.tablet")}),(0,n.jsx)(i.Z,{sx:[xe&&C.V.hide],children:(0,n.jsx)(y.Z,{setImage:ee,zoneWi
1dth:100,zoneHeight:104,maxSize:S,formats:".png, .jpg",ref:U,cropperProps:le,variant:"photo"})}),(null===j||void 0===j||null===(G=j.tablet)||void 0===G?void 0:G.img64)&&(0,n.jsxs)(i.Z,{sx:C.V.actionButtons({aspectRatio:pe}),children:[(0,n.jsx)(r.Z,{image:j.tablet.img64,component:"img"}),!A&&(0,n.jsxs)(i.Z,{className:"actionButtons",children:[(0,n.jsx)(f.Z,{onClick:ie(U)}),(0,n.jsx)(v.Z,{sx:{ml:1},onClick:()=>{k({...j,tablet:""})}})]})]}),re&&(0,n.jsxs)(i.Z,{mb:1,mt:-6,display:"flex",alignItems:"flex-end",children:[(0,n.jsx)(l.Z,{variant:"h4",children:null===I||void 0===I?void 0:I.title}),(0,n.jsx)(m.Z,{info:(0,n.jsx)(l.Z,{variant:"subtitle2",children:null===I||void 0===I?void 0:I.text}),arrow:!0,iconProps:{sx:C.V.tooltipTriggerIcon}})]}),(0,n.jsx)(b.Z,{ratio:"".concat(8.2)})]})]}),te&&(0,n.jsx)(p.Z,{open:te,onClose:ne,title:F("profile_team_members.add_team_member_modal.delete_photo"),subtitle:F("profile_sponsorship.add_image_block.are_you_sure_you_want"),color:"error",width:424,icon:(0,n.jsx)(a.Z,{}),ActionButtons:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.Z,{color:"neutral",onClick:ne,children:F("common.cancel")}),(0,n.jsx)(u.Z,{color:"error",onClick:()=>{k([]),ne()},children:F("common.delete")})]})})]})}},7927:function(e,t,o){o.d(t,{V:function(){return n},$:function(){return i}});var n={tooltipTriggerIcon:{width:"20px",height:"20px",ml:1},actionButtons:e=>{let{aspectRatio:t}=e;return{position:"relative",borderRadius:2.5,overflow:"hidden",border:"1px dashed",borderColor:"colors.primary","& .MuiBox-root":{display:"none",position:"absolute",top:0,bottom:0,right:0,left:0,justifyContent:"center",alignItems:"center"},"&, & > .MuiCardMedia-root":{aspectRatio:t||"unset"},"& .actionButtons > button":{mx:.5},"&:hover .MuiBox-root":{display:"flex",backgroundColor:"rgba(0, 0, 0, 0.3)"}}},dropzoneWrapper:e=>{let{aspectRatio:t,height:o}=e;return{'& .MuiBox-root[role="button"]':{aspectRatio:t||"unset",height:t?"unset":o}}},hide:{display:"none"},title:{mt:2,mb:.5},infoIcon:{color:"colors.iconSecondary"},formats:{"& span":{fontSize:"0.75rem"}}};var i={colorPicker:{width:"162px",display:"flex",justifyContent:"space-between",textTransform:"uppercase",borderColor:"colors.borderGreyLight"},colorPreview:{borderRadius:"50%",width:"37px",height:"37px",ml:1,borderWidth:"1px",borderStyle:"solid",borderColor:"colors.borderGreyLight"}}},21453:function(e,t,o){var n=o(57437),i=o(41530),r=o(46387),s=o(6684),l=o(6551),a=o(89753),d=o(13411),c=o(55734),u=o(57015),p=o(86451),m=o(68714),x=o(35773),h=o(46216),g=o(58880);t.Z=e=>{let{teamMember:t,hideButtons:o,fixedSize:v,className:f,showOnlyFavouriteButton:y,sx:b,avatarSize:C=56}=e;var j;const k=Array.isArray(null===t||void 0===t?void 0:t.role)?t.role:[],{hide:_}=(0,h.Z)({id:t.id,ownerType:"visitor",ownerRole:k}),{name:w="",position:Z="",companyName:I=""}=t,M="exhibitor"===(null===t||void 0===t?void 0:t.memberType)||(null===k||void 0===k?void 0:k.includes("exhibitor")),S=t.url||t.exhId,T={pathname:M?"/exhibitor/".concat(S):"/participant/".concat(t.id)};return(0,n.jsxs)(i.Z,{columnGap:"8px",direction:"row",className:"".concat(f," MuiPaper-root"),"data-testid":"teamMember","data-styleid":"team-member-card",sx:[g.y.root,Boolean(v)&&g.y.fixedSize,...Array.isArray(b)?b:[b]],children:[(0,n.jsx)(x.Z,{href:T,children:(0,n.jsx)(a.Z,{user:{name:w||I||"",photo:t.image,id:t.id},size:C,additionIconType:l.qj[t.memberType]||"empty",categoryTypeIcon:null===t||void 0===t||null===(j=t.icon)||void 0===j?void 0:j.code})}),(0,n.jsxs)(i.Z,{gap:"2px",sx:g.y.content,"data-testid":"infoBlock",children:[(0,n.jsx)(m.Z,{ownerType:"visitor",id:+t.id,full:!0,sx:g.y.viewedButton}),(M&&I||w)&&(0,n.jsx)(x.Z,{href:T,children:(0,n.jsx)(r.Z,{title:w||I,variant:"h4",sx:[s.W0.ellipsis(1),{wordBreak:"break-all"}],children:w||I})}),Z&&(0,n.jsx)(r.Z,{variant:"subtitle3",title:Z,sx:[{color:"colors.textSecondary",wordBreak:"break-all"},s.W0.ellipsis(1)],children:Z}),!M&&I&&(0,n.jsx)(r.Z,{variant:"subtitle3",title:I,sx:[s.W0.ellipsis(1),{wordBreak:"break-all"}],children:I})]}),!o&&(0,n.jsxs)(i.Z,{rowGap:"6px",justifyContent:"center",sx:[g.y.actionsWrapper,Boolean(_)&&{justifyContent:"end"}],children:[!_&&(0,n.jsx)(d.default,{id:t.id,ownerType:"visitor",ownerRole:k}),!y&&(0,n.jsx)(u.Z,{id:t.id,ownerType:"visitor",ownerRole:k}),!y&&(0,n.jsx)(p.default,{id:t.id,ownerType:"visitor",ownerRole:k})]}),t.isNew&&!y&&(0,n.jsx)(c.Z,{sx:g.y.label,variant:"subtitle4"})]})}},91796:function(e,t,o){o.d(t,{c:function(){return i},e:function(){return n}});const n=/^\s*<iframe\b[^>]*src=["'](https?:)?\/\/([^"'\s>]+)["'][^>]*>\s*<\/iframe>\s*$/im,i="helpers.iframe.embed_code_must_contain_iframe"},10657:function(e,t,o){o.d(t,{V:function(){return i}});var n=o(91796);const i=e=>!e||n.e.test(e)},73147:function(e,t,o){o.d(t,{v:function(){return r}});var n=o(14069),i=o(14872);function r(){const e=(0,n.CGy)(n.fO2),t=(0,i.o)();return o=>"".concat(e).concat(("","")).concat(t).concat(o)}}}]);

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