1"use strict";(self.webpackChunksocialUX=self.webpackChunksocialUX||[]).push([[9357],{590:function(n,t,o){o.d(t,{F:function(){return u},O:function(){return r}});var e=o(298);const i="/core/feeds/avatar/";function r(n){return(0,e.af)(i,"POST",{logo:n})}function u(n){const t=new FormData;return t.append("logo",n),(0,e.MF)(i,"POST",t)}},4764:function(n,t,o){o.d(t,{a:function(){return r},v:function(){return u}});var e=o(298);function i(n){return`/core/feeds/site/${n}`}function r(n){return(0,e.mQ)(i(n),"GET")}function u(n,t){return(0,e.af)(i(n),"PUT",{id:n,...t})}},3195:function(n,t,o){function e(n,t){let o,e=null;return function(...i){let r=!0;null!=e&&(r=n.apply(null,e.concat(i))),e=i,r&&(o&&(o(),o=null),o=t.apply(null,i))}}o.d(t,{A:function(){return e}})},1592:function(n,t,o){o.d(t,{A:function(){return r}});var e=o(6382);const i=(0,o(3964).A)((function(n,t,o,e,i){return e().then((t=>t(n))).then((n=>n(t,o,i)))}));function r(n,t,o,r){const u=n in window.RM_OVERRIDES?window.RM_OVERRIDES[n]:null,c=u||r;return(0,e.A)().then((n=>{const e=i(n,t,o),s=u?()=>e(r,null):null;return e(c,s).then((t=>[n,t]))}))}},4868:function(n,t,o){o.d(t,{U:function(){return i}});var e=o(3964);const i=(0,e.A)(((n,t,o,e,i)=>{o.classList.add("loaded","rm-preact");const r=n.preact.h(t,e);return n.preact.render(r,o,i)}));t.A=(0,e.A)((function(n,t,o,e){return i(n,t,o,e,null)}))},5934:function(n,t,o){o.d(t,{N:function(){return h},V:function(){return p}});var e=o(3964),i=o(4764);const r={},u={};function c(n,t){return Boolean(Object.entries(n).find((function([n,o]){return t[n]!==o})))}function s(n){if(!n.permissions.edit_site)throw new Error("You have no permissions to edit this site");return function(n){let t={...n};const o=[];function e(n){n(t)}function r(n){t={...n},o.forEach(e)}return{subscribeToChanges:function(n){o.push(n),n(t)},sendChanges:function(n){if(c(n,t)){const o={...t,...n};(0,i.v)(t.id,o).then(r)}}}}(n)}const f=(0,e.A)((function(n,t,o){const{runnerSite:e,profileSite:r}=o;return t===r.id&&(r.permissions.edit_site||e.permissions.edit_site)?function(n){let t;const o=[];function e(n){n(t)}return n.listenForUserInfo((function(n,i){if(n)return;const{profileSite:r}=i;t={...r},o.forEach(e)})),{subscribeToChanges:function(n){o.push(n),t&&n(t)},sendChanges:function(o){if(c(o,t)){const e={...t,...o};(0,i.v)(t.id,e).then(n.refreshUserInfo)}}}}(n):(0,i.a)(t).then(s)})),a=(0,e.A)((function(n,t){return r[n]=t,t})),l=(0,e.A)((function(n,t){u[n].forEach((([n])=>{n(t)}))})),d=(0,e.A)((function(n,t){u[n].forEach((([n,o])=>{o(t)}))}));function h(n,t){return t in r?Promise.resolve(r[t]):new Promise(((o,e)=>{const i=[o,e];t in u?u[t].push(i):(u[t]=[i],n.getUserInfo().then(f(n,t)).then(a(t)).then(l(t)).catch(d(t)))}))}function p(n,t){const o=t.closest("[data-edit-site-id]");if(o)return parseInt(o.dataset.editSiteId,10);const{settings:{site:e}}=n;return e.isCommunitySite?e.id:void 0}},9357:function(n,t,o){o.r(t),o.d(t,{default:function(){return v},renderEditLogo:function(){return h}});var e=o(3964),i=o(7611),r=o(1592),u=o(4868),c=o(3195),s=o(590),f=o(9124),a=o(5934);function l(n,t){return t.display_logo!==n.display_logo}const d={title:"Error!",body:"An error has occured on uploading",possitiveAction:{text:"OK",callback:i.A}},h=(0,e.A)((function(n,t,o,i){function r(){p(i.display_logo,!1,null),(0,f.A)(t,d)}function u(n){p(i.display_logo,!1,n)}function c(n){const{logo:t,image_id:e}=n;o.sendChanges({logo:t,storage:e})}const a=(0,e.A)((function(n,t){p(i.display_logo,!0,null),n(t).then(u).catch(r)})),l=a(s.F),h=a(s.O);function p(t,o,e){n({logo:t,uploading:o,uploadData:e,saveChanges:c,onNewAvatarFile:l,onNewAvatarUrl:h})}p(i.display_logo,!1,null)})),p=(0,e.A)((function(n,t,o,[e,i]){const r=(0,u.A)(e,i,o);o.innerHTML="",t.subscribeToChanges((0,c.A)(l,h(r,n,t)))})),g=(0,e.A)((function(n,t,o){(0,r.A)("SiteEditLogo",n,{},A).then(p(n,o,t)).catch(console.error)})),A=()=>o.e(9974).then(o.bind(o,9974)).then((n=>n.default));function v(n,t){const o=(0,a.V)(n,t);o&&(0,a.N)(n,o).then(g(n,t)).catch(console.error)}}}]); 2//# sourceMappingURL=9357.d78b91be920d3306b1a8.bundle.mjs.map
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.