(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([[1365],{211365(__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__(580108)}}).call(__webpack_require__._LM_("$root$",{__webpack_require__,__webpack_exports__}))()},580108(__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__(653302)}}).call(__webpack_require__._LM_("$root$",{__webpack_require__,__webpack_exports__}))()},653302(__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__(833081);var e=__webpack_require__(739506);var n=__webpack_require__(663145);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__}))()},663145(__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:()=>u});var t=__webpack_require__(67659);var e=__webpack_require__(380301);var n=__webpack_require__.n(e);var i=__webpack_require__(201319);var s=__webpack_require__(91195);var c=__webpack_require__(636370);var r=__webpack_require__(958167);var a=__webpack_require__(467757);var o=__webpack_require__(565520);var l=__webpack_require__(105371);class u extends t.Component{static contextTypes={t:n().func};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{t: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.t("externalExtension"):(0,(0,r.u8)(t.origin))}}}}).call(__webpack_require__._LM_("$root$",{__webpack_require__,__webpack_exports__}))()}}]);