"use strict";(("undefined"!=typeof self?self:this).webpackJsonp__wix_profile_card_tpa_ooi=("undefined"!=typeof self?self:this).webpackJsonp__wix_profile_card_tpa_ooi||[]).push([[89],{8308:(e,t,a)=>{a.d(t,{Z:()=>R});var n=a(8638),o=a(2451),i=a(4533),l=a(5685),r=a.n(l),s=a(7762),c=a.n(s),d=a(9460),m=a(8916),h=a(9179),u=a(3653);const p="Ag3_Z0",g="RVtfcy",f="eH02we",E="ond_oU",w="pchXCh",v="dHFhA2",C="pUnWVZ",y="r91QVv",b="uwjtJt",N="EWdhy1",x="bV2AQU",R=e=>{let{url:t,imageType:a,className:l="",name:R,onClick:k,canUpload:I,profileLayout:L,imageSize:M,isMobile:A=!1}=e;const{t:S}=(0,o.$)(),{widgetId:B}=(0,i.O)(),O=(0,s.useRef)(null),D=(0,h.n)(B,u.ElementId.ProfilePhotoInput),_="object"==typeof t?null==t?void 0:t.file_name:((e,t)=>(e=>!e.includes("v1/fill")&&(e.includes("static.wixstatic.com/media")||e.includes("images-wixmp")))(e)?`${e}/v1/fill/w_${t},h_${t},q_80/file.webp`:e)(t,M);if(a===u.ProfileImage.None)return null;const T=a===u.ProfileImage.Square,H={[p]:!0,[g]:I,[y]:L===u.ProfileLayout.FullWidth,[b]:L===u.ProfileLayout.Card,[f]:A,[E]:T},z={[v]:!0,[C]:T},Z=S(_?"profile-widget.change-profile-photo":"profile-widget.add-profile-photo.aria-label");return c().createElement("div",null,I&&c().createElement("input",{id:D,className:N,type:"file",accept:m.r5,onChange:k,ref:O,tabIndex:-1}),c().createElement("button",{className:r()(H,l),onClick:()=>{var e;return null==(e=O.current)?void 0:e.click()},"aria-label":Z,disabled:!I},c().createElement(d.q,{name:R,src:_,"data-hook":u.DataHook.ProfilePhoto,className:r()(z)}),!A&&c().createElement("div",{className:w},c().createElement("div",{className:x},c().createElement(n.Z,null)))))}},386:(e,t,a)=>{a.d(t,{k:()=>L});var n=a(448),o=a.n(n),i=a(5685),l=a.n(i),r=a(7762),s=a.n(r);const c=()=>r.createElement("svg",{width:"18",height:"19",xmlns:"http://www.w3.org/2000/svg"},r.createElement("defs",null,r.createElement("filter",{x:"-1%",y:"-.8%",width:"102%",height:"101.6%",filterUnits:"objectBoundingBox",id:"a"},r.createElement("feOffset",{dy:"1",in:"SourceAlpha",result:"shadowOffsetOuter1"}),r.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0",in:"shadowOffsetOuter1",result:"shadowMatrixOuter1"}),r.createElement("feMerge",null,r.createElement("feMergeNode",{in:"shadowMatrixOuter1"}),r.createElement("feMergeNode",{in:"SourceGraphic"})))),r.createElement("g",{filter:"url(#a)",transform:"translate(-96 -169)",fill:"#000010",fillRule:"nonzero",stroke:"#FFF",fillOpacity:".2",strokeOpacity:".3"},r.createElement("path",{d:"M106.594 170.487v.002l1.48 2.99c.116.23.341.393.593.43l3.305.483c1.46.206 2.045 1.994.99 3.036l-2.394 2.324a.786.786 0 0 0-.226.688l.562 3.284c.26 1.454-1.275 2.563-2.57 1.874l-2.968-1.554a.762.762 0 0 0-.716.004l-2.97 1.55c-1.307.687-2.832-.419-2.572-1.87l.562-3.296a.779.779 0 0 0-.22-.684l-2.407-2.328c-1.061-1.02-.482-2.805.985-3.038l3.319-.484c.25-.035.476-.2.59-.427l1.47-2.98c.646-1.32 2.528-1.32 3.187-.004z"})));class d extends r.PureComponent{constructor(){super(...arguments),this.state={iconContent:"",hasLoadFailed:!1},this.isWixMediaManagerIcon=()=>new URL(this.props.badgeIcon??"").hostname===d.WIX_STATICS_HOSTNAME,this.fetchIcon=async()=>{const{badgeIcon:e}=this.props;if(e&&this.isWixMediaManagerIcon()){const t=await(async e=>{try{const t=await fetch(e),a=200!==t.status;return{hasLoadFailed:a,iconContent:a?"":await t.text()}}catch{return{hasLoadFailed:!0,iconContent:""}}})(e);this.setState(t)}},this.setIconRef=e=>{this.iconRef=e},this.setSvgAttributes=e=>{const t=e.getBBox(),a=[t.x,t.y,t.width,t.height].join(" ");e.setAttribute("viewBox",a),e.setAttribute("width",`${t.width}px`),e.setAttribute("height",`${t.height}px`)}}async componentDidMount(){await this.fetchIcon()}async componentDidUpdate(e,t){if(e.badgeIcon!==this.props.badgeIcon&&await this.fetchIcon(),!this.iconRef)return;const a=this.iconRef.getElementsByTagName("svg")[0];a&&a.parentNode&&a.parentNode.offsetParent&&this.setSvgAttributes(a),t.iconContent!==this.state.iconContent&&this.props.onLoadIcon&&this.props.onLoadIcon()}render(){const{size:e,layout:t,badgeIcon:a,hideDefaultIcon:n}=this.props,o=l()("icon",e,t);if("name-only"===t)return null;if(a&&!this.isWixMediaManagerIcon())return r.createElement("img",{className:o,src:a});if(a&&!this.state.hasLoadFailed){const e={__html:this.state.iconContent};return r.createElement("div",{ref:this.setIconRef,className:o,dangerouslySetInnerHTML:e})}return"icon-only"!==t||n?null:r.createElement(c,null)}}d.WIX_STATICS_HOSTNAME="static.wixstatic.com";var m=a(2248),h=a(6347),u=a(52);class p extends r.Component{constructor(){super(...arguments),this.state={show:!1},this.showTooltip=()=>this.setState({show:!0}),this.hideTooltip=()=>this.setState({show:!1})}render(){return r.createElement(m.dK,null,r.createElement("div",{className:"members-badges-lib-tooltip-style-wrapper"},r.createElement(h.s,null,(({ref:e})=>r.createElement("div",{style:{position:"relative"},onMouseEnter:this.showTooltip,onMouseLeave:this.hideTooltip,ref:e},this.props.children))),r.createElement(u.r,{placement:"top",strategy:"fixed"},(({ref:e,style:t,placement:a})=>this.state.show&&r.createElement("div",{className:"tooltip-wrapper",ref:e,style:t,"data-placement":a},this.props.message)))))}}const g=({badge:e,layout:t,children:a})=>"icon-only"===t?r.createElement(p,{message:e.title},r.createElement("div",{className:"members-badges-lib-style-wrapper"},a)):r.createElement("div",{className:"members-badges-lib-style-wrapper"},a),f=({badge:e,size:t,layout:a,background:n,borderRadius:o,font:i,textStyle:s,truncateTitle:c,hideDefaultIcon:m,onClick:h,onLoadIcon:u})=>{const p=n?"":"no-background",f=h?"pointer":"",E=l()("wrapper",t,a,p,f),w="icon-only"!==a,v=l()("text",c&&"truncated");return r.createElement(g,{badge:e,layout:a},r.createElement("div",{onClick:()=>{h&&h(e)},className:E,style:{backgroundColor:e.backgroundColor,borderRadius:`${o}px`}},r.createElement("div",{className:"inner"},r.createElement(d,{layout:a,size:t,badgeIcon:e.icon,hideDefaultIcon:m,onLoadIcon:u}),w&&r.createElement("span",{className:v,style:{color:e.textColor,fontFamily:i,...s}},e.title))))};var E=a(4722),w=a(7607),v=a(4664);const C=async(e,t="en")=>e.createInstance().init((e=>({lng:e,resources:{[e]:{translation:a(5424)}}}))(t)),y=()=>r.createElement("svg",{width:"5",height:"11",xmlns:"http://www.w3.org/2000/svg"},r.createElement("defs",null,r.createElement("filter",{x:"-1%",y:"-.7%",width:"102%",height:"101.5%",filterUnits:"objectBoundingBox",id:"a"},r.createElement("feOffset",{dy:"1",in:"SourceAlpha",result:"shadowOffsetOuter1"}),r.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0",in:"shadowOffsetOuter1",result:"shadowMatrixOuter1"}),r.createElement("feMerge",null,r.createElement("feMergeNode",{in:"shadowMatrixOuter1"}),r.createElement("feMergeNode",{in:"SourceGraphic"})))),r.createElement("g",{filter:"url(#a)",transform:"translate(-174 -195)",fill:"currentColor",fillRule:"evenodd"},r.createElement("path",{d:"M174.22 196.113l4.077 4.285-4.077 4.253.33.364 4.465-4.617-4.464-4.618z"})));class b extends s().Component{constructor(e){super(e),this.siteColors=this.props.siteColors,this.setWrapperRef=e=>{this.wrapperRef=e},this.setRemainderRef=e=>{this.remainderRef=e},this.getBadgeHeight=()=>{const e=this.wrapperRef;if(e){const t=e.childNodes[0];if(!t)return 0;return t.scrollHeight+parseInt(window.getComputedStyle(t).getPropertyValue("margin-bottom"),10)}return 0},this.getColor=e=>this.siteColors&&this.siteColors.find((t=>t.reference===e))?this.siteColors.find((t=>t.reference===e))?.value:"black",this.getRemainderColor=()=>this.props.remainderColor||this.getColor("color-5"),this.filterBadges=()=>{const{filteredBadges:e}=this.state,{badges:t,maxRows:a,maxBadges:n}=this.props;if(n&&n>0)return void this.setState({wrapperHeight:void 0,remainder:t.length-n,filteredBadges:e.length!==n?t.slice(0,n):e});const o=this.wrapperRef;if(o){this.remainderRef&&o.removeChild(this.remainderRef);const e=[];for(let t=0;te>i)).length;const s=o.childNodes[e.length-r];o.insertBefore(this.remainderRef,s);const c=t=>{if(this.remainderRef?.offsetTop>=l&&t{o.insertBefore(this.remainderRef,a),c(t+1)}))}};this.setState({wrapperHeight:l,remainder:r,filteredBadges:t},(()=>c(1)))}},this.renderRemainder=()=>{const{borderRadius:e,layout:t,size:a,font:n,useTextRemainder:o,onClickMore:i,background:r}=this.props,c=i?"pointer":"",d=r?"":"no-border",m=r?"":"no-background",h=l()("remainder",t,a,m,c,d),u=this.getRemainderColor();return this.state.remainder>0&&!o?s().createElement("div",{onClick:i,className:h,style:{borderRadius:e,color:u,borderColor:u,fontFamily:n}},"+",this.state.remainder):s().createElement("div",null)};const{maxBadges:t,badges:a}=e;this.state={wrapperHeight:0,remainder:4,filteredBadges:t&&t>0?a.slice(0,t):e.badges}}async componentDidMount(){this.filterBadges(),this.props.siteColors||(this.siteColors=E.Wix.Styles.getSiteColors(),E.Wix.addEventListener(E.Wix.Events.STYLE_PARAMS_CHANGE,(()=>{this.siteColors=E.Wix.Styles.getSiteColors(),this.filterBadges()}))),this.t||(this.t=await C(this.props.i18n,this.props.language))}componentDidUpdate(e){(0,w.isEqual)(this.props,e)||this.filterBadges()}render(){const{filteredBadges:e}=this.state,{layout:t,size:a,borderRadius:n,font:o,background:i,align:r,useTextRemainder:c,onClickMore:d,hideDefaultIcon:m}=this.props,h=i?"":"no-background",u=l()("badge-list-wrapper",t,a,r,h),p=this.getRemainderColor(),g=this.t?.("view_all_badges");return s().createElement(v.ZP,{handleWidth:!0,handleHeight:!0,onResize:this.filterBadges},(()=>s().createElement("div",{className:"members-badge-list-lib-style-wrapper"},s().createElement("div",{className:u,ref:this.setWrapperRef,style:{height:this.state.wrapperHeight}},e.map((e=>s().createElement(f,{key:e.id,badge:e,layout:t,size:a,borderRadius:n,font:o,background:i,onLoadIcon:this.filterBadges,onClick:this.props.onBadgeClick,hideDefaultIcon:m}))),s().createElement("span",{ref:this.setRemainderRef},this.renderRemainder())),c&&this.state.remainder>0&&!!d&&s().createElement("div",{className:"textRemainderWrapper"},s().createElement("span",{onClick:d,style:{fontFamily:o,color:p}},s().createElement("span",null,g),s().createElement(y,null))))))}}var N=a(3352),x=a(1949),R=a(3653);const k={[R.BadgeLayout.IconOnly]:"icon-only",[R.BadgeLayout.NameOnly]:"name-only",[R.BadgeLayout.NameAndIcon]:"name-icon"},I={[R.BadgeSize.Small]:"small",[R.BadgeSize.Medium]:"medium",[R.BadgeSize.Large]:"large"},L=e=>{let{size:t,widgetLayout:a,maxRows:n,...i}=e;const l=(0,N.y)(),r=l.get(x.default.badgeSize),c=l.get(x.default.badgeLayout),d=a===R.ProfileLayout.Card&&c===R.BadgeLayout.IconOnly?3:n;return s().createElement(b,o()({},i,{borderRadius:l.get(x.default.badgeCornerRadius),font:l.get(x.default.badgeFont).family??"",background:l.get(x.default.showBadgeBackground),remainderColor:l.get(x.default.memberNameResponsiveColor).value,size:t?I[t]:I[r],layout:k[c],maxRows:d}))}},8468:(e,t,a)=>{a.d(t,{Z:()=>s});var n=a(5685),o=a.n(n),i=a(7762),l=a.n(i);const r="fEZExj",s=e=>{let{className:t,t:a}=e;return l().createElement("span",{className:o()(t,r)},a("MemberRoles.badge.blocked"))}},4398:(e,t,a)=>{a.d(t,{Z:()=>c});var n=a(5685),o=a.n(n),i=a(7762),l=a.n(i);const r="A2jgHO",s="nUeowe",c=e=>{let{className:t="",dataHook:a,ariaLive:n,isMenuItem:i=!1,isDisabled:c=!1,children:d,onClick:m}=e;return l().createElement("button",{className:o()(r,t,i?s:void 0),"data-hook":a,type:"button",role:i?"menuitem":void 0,tabIndex:i?-1:0,"aria-live":n,disabled:c,onClick:m},d)}},8387:(e,t,a)=>{a.d(t,{Z:()=>w});var n=a(5685),o=a.n(n),i=a(7762),l=a.n(i),r=a(4398);const s="uPqNgx",c="Vl7Kh5",d="avNYon",m="nD_ewh",h="wDDBnW",u="mF65Eo",p="wC4Oam";var g=a(448),f=a.n(g);const E=e=>l().createElement("svg",f()({width:"23px",height:"18px",viewBox:"0 0 23 17",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},e),l().createElement("title",null,"Following icon"),l().createElement("g",{id:"Direct-Message-Final",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},l().createElement("g",{id:"Artboard",fillRule:"nonzero"},l().createElement("g",{id:"Following-icon"},l().createElement("path",{d:"M3,8.18527872 L10.496095,8.18527872 C12.1529493,8.18527872 13.496095,9.52842447 13.496095,11.1852787 L13.496095,16 C13.496095,16.5522847 13.0483798,17 12.496095,17 L1,17 C0.44771525,17 1.78591498e-13,16.5522847 1.78523862e-13,16 L1.78523862e-13,11.1852787 C1.78320956e-13,9.52842447 1.34314575,8.18527872 3,8.18527872 Z",id:"Rectangle-2-Copy-2"}),l().createElement("ellipse",{id:"Oval-2-Copy-3",cx:"7.09859155",cy:"3.30552048",rx:"3.68075117",ry:"3.30552048"}),l().createElement("path",{d:"M19.3909524,2.75486582 L19.2897372,2.76189795 C18.9269311,2.81286142 18.6607437,3.13413327 18.6607437,3.50591904 L18.66,7.985 L15.8917811,7.98514116 C15.4987329,7.98514116 15.2076141,8.31584797 15.2076141,8.69435217 L15.2076141,9.32198521 C15.2076141,9.70048941 15.4987329,10.0311962 15.8917811,10.0311962 L20.12762,10.0311962 C20.5206682,10.0311962 20.8117869,9.70048941 20.8117869,9.32198521 L20.8117869,3.50591904 C20.8117869,3.10033456 20.4950019,2.75486582 20.0815783,2.75486582 L19.3909524,2.75486582 Z",id:"Path",transform:"translate(18.009701, 6.393031) rotate(-315.000000) translate(-18.009701, -6.393031) "}))))),w=e=>{let t,{className:a,dataHook:n,isFollowing:i,isDisabled:g,followText:f,unfollowText:w,primaryButtonClass:v,secondaryButtonClass:C,type:y,onClick:b}=e;return t="animated"===y&&!i||"text"===y?o()(d,a,m,v):o()(d,a,h,C),l().createElement(r.Z,{dataHook:n,className:t,isDisabled:g,onClick:b},l().createElement("div",{className:o()(c,"animated"===y?u:"")},l().createElement("div",{className:p},i?w:f)),l().createElement(E,{className:s}))}},5579:(e,t,a)=>{a.d(t,{Z:()=>d});var n=a(5685),o=a.n(n),i=a(7762),l=a.n(i);const r={loader:"KeZzT6","wheel-rotate-semi":"U4gKpz",wheelRotateSemi:"U4gKpz","wheel-rotate-inner":"DjtvJd",wheelRotateInner:"DjtvJd",small:"BAhs0Y",medium:"vUtskN",large:"RLHjMI"},s=e=>{let{dataHook:t,className:a,size:n="medium"}=e;return l().createElement("i",{"data-hook":t,className:o()(a,r.loader,r[n])})},c="LdPyDp",d=e=>l().createElement("div",{className:o()(c,e.backdropClassName)},l().createElement(s,e))},509:(e,t,a)=>{a.d(t,{T:()=>B});var n=a(2451),o=a(4533),i=a(5685),l=a.n(i),r=a(7762),s=a.n(r),c=a(5460),d=a(6538),m=a(8065),h=a(1007),u=a(6933),p=a(9630),g=a(3653);const f="TX0r8z",E="VOODhe",w="nm61go",v="ZQXYoe",C="C0JBod",y="tvkKhx",b="bKmtI9",N="wESabr",x="pJoARy",R="bMxdSV",k="xHV_yU",I="zfrDJj",L="lEdml_",M="knguOq",A="DwvxzH",S="profile-widget.edit-details-modal.error-message.required-field",B=e=>{let{onClose:t,isOpen:a}=e;const{t:i}=(0,n.$)(),{isRTL:B,isMobile:O}=(0,o.O)(),{member:D,handlers:_,computed:T}=(0,p.F)(),{updateProfileDisplayInfo:H}=_,{showTitle:z}=T,Z=D.name,P=D.title,[F,W]=(0,r.useState)(Z),[U,j]=(0,r.useState)(P??""),[$,J]=(0,r.useState)(!1),[V,q]=(0,r.useState)(""),G=(0,r.useRef)(null);return s().createElement(c.V,{isOpen:a,onClose:t,contentClassName:l()({[f]:!0,[E]:B,[A]:O}),childrenWrapperClassName:w},s().createElement("div",{className:v,"data-hook":g.DataHook.EditProfileDetailsModal},s().createElement(d.x,{className:C,tagName:"h2"},i("profile-widget.edit-details-modal.heading")),s().createElement("div",{className:y},s().createElement(m.n,{className:b,inputClassName:N,label:i("profile-widget.edit-details-modal.display-name.label"),maxLength:255,value:F,required:!0,ref:G,onChange:e=>{const{value:t}=e.target;$&&(t.trim()?q(""):q(i(S))),W(t)},error:!!V,errorMessage:V??""}),z&&s().createElement(m.n,{className:b,inputClassName:N,label:i("profile-widget.edit-details-modal.title.label"),value:U,onChange:e=>{j(e.target.value)}})),O&&s().createElement("div",{className:M}),s().createElement("div",{className:x},s().createElement("div",{className:R},s().createElement(h.z,{upgrade:!0,priority:u.Ji.basicSecondary,className:l()({[k]:!0,[L]:!0}),onClick:t},i("profile-widget.edit-details-modal.cancel-button")),s().createElement(h.z,{upgrade:!0,priority:u.Ji.basic,className:l()({[k]:!0,[I]:!0}),onClick:()=>{if(!(()=>{const e=F.trim()!==Z,t=z&&U.trim()!==P;return e||t})())return t();var e;($||J(!0),F.trim()||(null==(e=G.current)||e.focus(),q(i(S)),0))&&(H({id:D.uid,profile:{nickname:F.trim(),...z&&{title:U.trim()}}}),t())}},i("profile-widget.edit-details-modal.save-button"))))))}},810:(e,t,a)=>{a.d(t,{Z:()=>C});var n=a(6978),o=a(2451),i=a(7762),l=a.n(i),r=a(8270),s=a(4314),c=a(7052),d=a(3653),m=a(7737),h=a(5103),u=a(1121);const p="AnIbKL",g="f5SCI5",f="divider",E=e=>{let{additionalActions:t,rolesActions:a,onRoleAction:n,onAdditionalAction:i}=e;const{t:r}=(0,o.$)(),s=Object.keys(u.Z),c=a.filter((e=>{let{roleId:t}=e;return s.includes(t)}));let E=a.filter((e=>{let{roleId:t}=e;return!s.includes(t)}));const w=((e,t)=>{const a=e.length>0,n=t.length>0;return a&&n})(c,[...E,...t]),v=E.find((e=>e.roleId===m.RoleId.MANAGE_BADGES));return v&&(E.push({action:f,roleId:m.RoleId.MANAGE_BADGES,description:""}),E=E.filter((e=>e!==v)),E.push(v)),l().createElement(h.y,{className:g,"data-hook":d.DataHook.Popover,focusedIndex:0},c.map((e=>{let{action:t,roleId:a}=e;const o=u.Z[a];return l().createElement(h.y.Item,{content:r(t),onClick:()=>n(a),key:t,prefixIcon:l().createElement(o,{className:p})})})),w?l().createElement(h.y.Divider,null):l().createElement(l().Fragment,null),t.map((e=>{let{id:t,action:a}=e;return l().createElement(h.y.Item,{content:r(a),onClick:()=>i(t),key:t})})),E.map((e=>{let{action:t,roleId:a}=e;return t===f?l().createElement(h.y.Divider,null):l().createElement(h.y.Item,{content:r(t),onClick:()=>n(a),key:t})})))},w="zg6Bj_",v="NYZpBF",C=e=>{let{alignment:t,isMobile:a,isRtlLocale:m,isDisabled:h,onAdditionalAction:u,additionalActions:p,rolesActions:g,onRoleAction:f}=e;const[C,y]=(0,i.useState)(!1),[b,N]=(0,i.useState)(!1),{t:x}=(0,o.$)(),R=()=>y(!1);return l().createElement(r.J,{"data-hook":d.DataHook.MoreActionsPopover,placement:t===d.Position.Left?"bottom-start":"bottom-end",shown:C,onClickOutside:R,onEscPress:R,"aria-label":x("more-button.more-actions"),dynamicWidth:!0,className:v,onTabOut:R},l().createElement(r.J.Element,null,l().createElement(s.M,{"data-hook":d.DataHook.MoreActionsCTA,icon:l().createElement(n.Z,{className:w}),message:x("more-button.tooltip"),showTooltip:b&&!C&&!a&&!h,tooltipProps:{placement:m?d.Position.Right:d.Position.Left,showDelay:c.I,hideDelay:c.i},onClick:()=>{h||(C?R():y(!0))},onFocus:()=>N(!0),onBlur:()=>N(!1),onMouseEnter:()=>N(!0),onMouseLeave:()=>N(!1),disabled:h})),l().createElement(r.J.Content,null,l().createElement(E,{additionalActions:p,onAdditionalAction:e=>{u(e),R(),N(!1)},isMobile:a,onRoleAction:e=>{f(e),R(),N(!1)},rolesActions:g})))}},4122:(e,t,a)=>{a.d(t,{Z:()=>g});var n=a(7762),o=a.n(n),i=a(1121),l=a(5685),r=a.n(l),s=a(4314);const c="iZgUWT",d="OROEpm",m=e=>{let{className:t,iconClassName:a,icon:n,tooltip:i,t:l}=e;const[m,h]=o().useState(!1);return i?o().createElement(s.M,{message:l(i),icon:n,showTooltip:m,onClick:()=>h(!m),onClickOutside:()=>h(!m),contentClassName:r()(a,d)}):o().createElement("div",{className:r()(c,t)},o().createElement("span",{className:r()(a,d)},n))},h="HvW6_R",u="EGDxBe",p=e=>{const{IconClass:t,role:a,tooltipText:n,iconClassName:i,withNames:l,t:r}=e;return l?o().createElement("div",{key:a,className:h},o().createElement(m,{icon:o().createElement(t,null),iconClassName:i,t:r}),o().createElement("div",{className:u},r(n))):o().createElement(m,{key:a,tooltip:n,icon:o().createElement(t,null),iconClassName:i,t:r})},g=e=>{const{roles:t=[],rolesMap:a,containerClassName:n,iconClassName:l,withNames:r,t:s}=e;if(!a)return null;const c=t.filter((e=>Object.keys(i.Z).includes(e)));return!c||0===c.length?null:o().createElement("div",{className:n},c.filter((e=>e in a)).map(((e,t)=>o().createElement(p,{key:`role-${t}`,role:e,IconClass:i.Z[e],tooltipText:a[e].roleName,iconClassName:l,withNames:r,t:s}))))}},3762:(e,t,a)=>{a.d(t,{U2:()=>n});const n="members-area-page-title"},8916:(e,t,a)=>{a.d(t,{fS:()=>o,q7:()=>n,r5:()=>i});const n=1920,o=4*n,i="image/bmp,image/gif,image/vnd.microsoft.icon,image/jpeg,image/png,image/tiff,image/webp"},1121:(e,t,a)=>{a.d(t,{Z:()=>i});var n=a(7762);a(7607);var o=a(7737);const i={[o.RoleId.ADMIN]:e=>n.createElement("svg",{width:"13",height:"16",viewBox:"0 0 13 16",...e},n.createElement("path",{d:"M12.4,4.5L9.7,6.8c-0.1,0.1-0.2,0.1-0.2,0c0,0,0,0,0,0L6.8,4.1C6.7,4,6.5,4,6.3,4.1c0,0-0.1,0.1-0.1,0.1L3.6,6.8c-0.1,0.1-0.2,0.1-0.2,0c0,0,0,0,0,0L0.6,4.5C0.5,4.4,0.3,4.3,0.1,4.4C0,4.5,0,4.6,0,4.7L1,12h11l1-7.3c0-0.2-0.2-0.3-0.3-0.3C12.5,4.4,12.4,4.4,12.4,4.5z"})),[o.RoleId.SET_BLOG_EDITOR]:e=>n.createElement("svg",{width:"12",height:"19",viewBox:"0 -3 18 21",...e},n.createElement("path",{d:"M3.0299,4.05263158 C7.59702941,1.31578947 11.4029706,1.31578947 15.9701,4.05263158 C16.0788412,11 16.2419529,14.3157895 9.5,17 C2.75804706,14.3157895 2.92115882,11 3.0299,4.05263158 Z M9.39332888,11.2792808 C9.45851262,11.2381732 9.54151575,11.2381732 9.60669949,11.2792808 L11.6016734,12.5373957 C11.7030093,12.6013024 11.8276546,12.6164227 11.9413311,12.5785984 C12.1509459,12.508852 12.2643317,12.2823849 12.1945852,12.07277 L11.4749606,9.91002155 L13.4066196,8.57961581 C13.5127893,8.50649273 13.5772092,8.38668249 13.5796591,8.25779106 C13.5838574,8.03691706 13.408207,7.85445994 13.1873329,7.85026169 L10.7205982,7.80337534 L9.87345622,5.59604095 C9.83283079,5.4901863 9.74919031,5.40654582 9.64333566,5.36592038 C9.43708931,5.28676612 9.20572641,5.38979461 9.12657215,5.59604095 L8.27943019,7.80337534 L5.81269542,7.85026169 C5.68380399,7.85271159 5.56399375,7.91713145 5.49087067,8.02330121 C5.36556375,8.20523836 5.41147163,8.45430889 5.59340879,8.57961581 L7.52506779,9.91002155 L6.80544312,12.07277 C6.76761883,12.1864466 6.78273912,12.3110919 6.84664582,12.4124278 C6.96448715,12.599287 7.21149576,12.655237 7.39835499,12.5373957 L9.39332888,11.2792808 Z"})),[o.RoleId.SET_FORUM_MODERATOR]:e=>n.createElement("svg",{width:"13",height:"16",viewBox:"0 0 13 16",...e},n.createElement("path",{d:"M6.29,11.51,2.9,13.79h0a.4.4,0,0,1-.55-.11.39.39,0,0,1-.05-.35L3.52,9.42.16,7h0A.41.41,0,0,1,.08,6.4a.38.38,0,0,1,.31-.16l4.23-.09L6,2.26H6a.4.4,0,0,1,.75,0l1.4,3.89,4.23.09h0a.4.4,0,0,1,.4.41.42.42,0,0,1-.17.31L9.28,9.42l1.23,3.91h0a.4.4,0,0,1-.26.51.45.45,0,0,1-.34-.05l-3.4-2.28h0A.22.22,0,0,0,6.29,11.51Z"})),[o.RoleId.SET_BLOG_WRITER]:e=>n.createElement("svg",{width:"14",height:"16",viewBox:"0 0 14 16",...e},n.createElement("path",{d:"M3.34,6.5a2.2,2.2,0,0,1,.1-.8c.1-.2.6-.8.9-1.2a3.45,3.45,0,0,1,.9-.8c.3-.2.8-.6,1-.7s.5-.2,1-.4V3.9c0-.1.3-.9.3-1a2,2,0,0,1,.6-.9c.5-.4.7-.8,1.4-1h2.7c.7,0,.8.5.7.8l-1.1,1.4c-.4.3-3.5,3.8-3.7,4a5.84,5.84,0,0,1-1.8.4c0,.5,1.6.2,1.6.4a3.38,3.38,0,0,0-.7,1.1c-.2.3-.5.5-.8.9a1.87,1.87,0,0,1-.6.7c-.2.1-.5.4-.8.6a3.93,3.93,0,0,1-1.3.6l-.6.3c-.1,0-.1.1-.2.2-.2.4-.9,1.3-1.8,2.6l-.6-.1,1.4-2.8c.1-.1,0-.2,0-.3a1.82,1.82,0,0,1-.6-1.4,2.85,2.85,0,0,1,0-1.3,9.38,9.38,0,0,1,.6-1.5c.2-.2.9-1.2,1-1.2.1,1.2.6,1.2.6,1.2C3.34,7.4,3.34,6.7,3.34,6.5Z"}))}},7052:(e,t,a)=>{a.d(t,{I:()=>n,i:()=>o});const n=500,o=200},2035:(e,t,a)=>{a.d(t,{Vj:()=>o,Xj:()=>l,eH:()=>r,F$:()=>i});var n=a(8916);const o=e=>()=>e(),i=e=>async t=>{let{target:a}=t;const o=a&&a.files&&a.files[0];if(o){const{width:t,height:i,imageUrl:l}=await function(e,t,a){void 0===t&&(t=n.q7),void 0===a&&(a=n.fS);const o=document.createElement("canvas"),i=document.createElement("img"),l=new FileReader;let r;return l.onload=e=>{let{target:t}=e;return i.src=null==t?void 0:t.result},i.onload=async()=>{let e=i.width,n=i.height;e>n&&e>t?(n=Math.round(n*t/e),e=t):n>a&&(e=Math.round(e*a/n),n=a),o.width=e,o.height=n;const l={width:e,height:n,imageUrl:i.currentSrc};r(l)},l.readAsDataURL(e),new Promise((e=>{r=e}))}(o);a.value="",e({width:t,height:i,imageUrl:l,name:o.name})}},l=(e,t)=>a=>{const{movementX:n,movementY:o}=a;e({coverWidth:t,movement:{x:n,y:o},isMobile:!1})},r=(e,t)=>a=>{let{key:n,shiftKey:o,preventDefault:i}=a;if("ArrowUp"===n||"ArrowDown"===n){i();const a=o?2:1;e({coverWidth:t,movement:{x:0,y:"ArrowUp"===n?-a:a},isMobile:!1})}}},9179:(e,t,a)=>{a.d(t,{n:()=>n});const n=(e,t)=>`ProfileCard-${e}-${t}`},3734:(e,t,a)=>{a.d(t,{a:()=>n});const n=async(e,t,a)=>{if(!e)return;const n=`${a?"https://manage.editorx.com":"https://www.wix.com"}/my-account/sites/${e}/contacts/view/${t}`;window.open(n)}},5424:e=>{e.exports=JSON.parse('{"view_all_badges":"View all badges"}')}}]); //# sourceMappingURL=89.chunk.min.js.map