(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([[7998],{87998(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>t.A});var t=__webpack_require__(659173)}}).call(__webpack_require__._LM_("$root$",{__webpack_require__,__webpack_exports__}))()},103321(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>s});var t=__webpack_require__(48084);var e=__webpack_require__(667855);var n=__webpack_require__(239128);function i(t){return{getSnapName:n=>(0,e.oeg)(t,n).name}}let s=(0,t.Ng)(i,null)(n.A)}}).call(__webpack_require__._LM_("$root$",{__webpack_require__,__webpack_exports__}))()},239128(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>h});var t=__webpack_require__(860012);var e=__webpack_require__(787332);var n=__webpack_require__.n(e);var i=__webpack_require__(252164);var s=__webpack_require__(832514);var c=__webpack_require__(779865);var r=__webpack_require__(608416);var a=__webpack_require__(762430);var o=__webpack_require__(353183);var l=__webpack_require__(776320);var u=__webpack_require__(88320);class h extends t.Component{static contextType=u.g;static propTypes={connectedSubjects:n().arrayOf(n().shape({name:n().string,iconUrl:n().string,origin:n().string})).isRequired,onDisconnect:n().func.isRequired,getSnapName:n().func.isRequired};getConnectedSitesListContent=()=>{let{connectedSubjects:e,onDisconnect:n,getSnapName:r}=this.props;let u=this.context;return e.map(e=>{if((0,i.cX)(e.origin)){let i=r(e.origin);return t.createElement("div",{key:e.origin,className:"connected-sites-list__content-row"},t.createElement("div",{className:"connected-sites-list__subject-info"},t.createElement(l.W,{avatarSize:c.lK.Md,snapId:e.origin}),t.createElement(a.A,{className:"connected-sites-list__subject-name",title:i,siteOrigin:i})),t.createElement(s.A,{className:"connected-sites-list__content-row-link-button",onClick:()=>n(e.origin),type:"link"},u("disconnect")))}return t.createElement("div",{key:e.origin,className:"connected-sites-list__content-row"},t.createElement("div",{className:"connected-sites-list__subject-info"},t.createElement(c.eK,{className:"connected-sites-list__subject-icon",name:e.name,size:o.or.MD,src:e.iconUrl}),t.createElement(a.A,{className:"connected-sites-list__subject-name",title:e.extensionId||e.origin,siteOrigin:this.getSubjectDisplayName(e)})),t.createElement(s.A,{className:"connected-sites-list__content-row-link-button",onClick:()=>n(e.origin),type:"link"},u("disconnect")))})};render(){return t.createElement("main",{className:"connected-sites-list__content-rows"},this.getConnectedSitesListContent())}getSubjectDisplayName(t){return t.extensionId?this.context("externalExtension"):(0,(0,r.u8)(t.origin))}}}}).call(__webpack_require__._LM_("$root$",{__webpack_require__,__webpack_exports__}))()},659173(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>t.A});var t=__webpack_require__(103321)}}).call(__webpack_require__._LM_("$root$",{__webpack_require__,__webpack_exports__}))()}}]);