1"use strict";(self.webpackChunksocialUX=self.webpackChunksocialUX||[]).push([[9974],{9974:function(t,a,e){e.r(a),e.d(a,{default:function(){return s}});var n=e(3964),r=e(7611);function o(t,a){return function(t){if(Array.isArray(t))return t}(t)||function(t,a){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var n,r,o,i,l=[],s=!0,c=!1;try{if(o=(e=e.call(t)).next,0===a){if(Object(e)!==e)return;s=!1}else for(;!(s=(n=o.call(e)).done)&&(l.push(n.value),l.length!==a);s=!0);}catch(t){c=!0,r=t}finally{try{if(!s&&null!=e.return&&(i=e.return(),Object(i)!==i))return}finally{if(c)throw r}}return l}}(t,a)||function(t,a){if(t){if("string"==typeof t)return i(t,a);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?i(t,a):void 0}}(t,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,a){(null==a||a>t.length)&&(a=t.length);for(var e=0,n=Array(a);e<a;e++)n[e]=t[e];return n}var l=(0,n.A)((function(t,a,e,n){var i=t.hooks,l=t.h,s=i.useCallback,c=i.useState;return function(t){var a=t.logo,e=t.uploading,n=t.uploadData,i=t.onNewAvatarFile,u=t.onNewAvatarUrl,d=t.saveChanges,f=o(c(!1),2),p=f[0],v=f[1],m=o(c(!1),2),b=m[0],h=m[1],g=o(c(""),2),y=g[0],k=g[1],C=a||"/res/avatars/default",w=n?n.logo:a,A=s((function(){v(!0)}),[]),j=s((function(t){return t.stopPropagation(),v(!1),!1}),[]),S=s((function(){h(!0)}),[]),U=s((function(){h(!1)}),[]),E=s((function(t){i(t.target.files[0])}),[i]),x=s((function(){y&&u(y)}),[y,u]),I=s((function(t){k(t.target.value)}),[]),M=s((function(){d(n)}),[d,n]);return l("div",{class:"community-site-logo",style:"background-image: url('".concat(C,"')"),onClick:A,onMouseEnter:S,onMouseLeave:U},l("a",{href:"javascript:;",class:"hover-menu edit start-edit".concat(b?"":" hidden"),title:"Edit"},"Edit"),l("div",{class:"edit-mode ".concat(p?"community-site-logo-slide-in":"hidden")},l("div",{class:"edit-mode-inner"},l("div",{class:"community-site-logo logo-preview",style:"background-image: url('".concat(w,"');")}),l("div",{class:"site-avatar"},l("label",null,"Change your avatar photo"),l("form",{class:"avatar-form",enctype:"multipart/form-data",encoding:"multipart/form-data",method:"GET",onSubmit:r.A},l("div",{style:"position:relative;"},l("label",{class:"fake-input"},l("input",{id:"fileInput",class:"input-file",type:"file",name:"logo",disabled:e,onChange:E})),l("a",{class:"ch-cover-upload btn",href:"javascript: void(0)"},l("span",null,l("i",{class:"icons-roar upload-from-pc"})," Upload")),l("div",{class:"progress progress-striped animated-bar ".concat(e?"indeterminate-bar":"hidden")},l("div",{style:"width: 100%;",class:"bar"}),l("span",{class:"status-text"})))),l("span",{class:"or"},"or"),l("div",{class:"input-form"},l("input",{class:"image-by-url",type:"text",placeholder:"Paste URL to upload from web...",value:y,onChange:I}),l("a",{href:"javascript:;",class:"btn add-image-by-src",onClick:x},l("i",{class:"upload-arrow"}))))),l("div",{class:"clearfix buttons"},l("a",{href:"javascript:;",class:"btn cancel cancel-btn",onClick:j},"Cancel"),l("a",{href:"javascript:;",class:"btn save-site-logo-url",disabled:null==n,onClick:M},"Save"))))}}));function s(t){var a=t.preact;return l(a)}}}]); 2//# sourceMappingURL=9974.a5195e38bd79d0554b92.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.