1/*! For license information please see Communities-749c4a11eb779a24f743.chunk.js.LICENSE.txt */ 2"use strict";(self.webpackChunkbiib=self.webpackChunkbiib||[]).push([[1810],{3963(e,t,r){r.r(t),r.d(t,{default:()=>R});var n=r(96540),o=r(75475),i=r(45448),u=r(16355),c=r(15280),a=r(55222),l=r(30539);function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},f.apply(null,arguments)}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,u,c=[],a=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;a=!1}else for(;!(a=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{if(!a&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(l)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(e,t):void 0}}(e,t)||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 p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function y(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var a=n&&n.prototype instanceof c?n:c,l=Object.create(a.prototype);return m(l,"_invoke",function(r,n,o){var i,c,a,l=0,f=o||[],s=!1,p={p:0,n:0,v:e,a:y,f:y.bind(e,4),d:function(t,r){return i=t,c=0,a=e,p.n=r,u}};function y(r,n){for(c=r,a=n,t=0;!s&&l&&!o&&t<f.length;t++){var o,i=f[t],y=p.p,m=i[2];r>3?(o=m===n)&&(a=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=r<2&&y<i[1])?(c=0,p.v=n,p.n=i[1]):y<m&&(o=r<3||i[0]>n||n>m)&&(i[4]=r,i[5]=n,p.n=m,c=0))}if(o||r>1)return u;throw s=!0,n}return function(o,f,m){if(l>1)throw TypeError("Generator is already running");for(s&&1===f&&y(f,m),c=f,a=m;(t=c<2?e:a)||!s;){i||(c?c<3?(c>1&&(p.n=-1),y(c,a)):p.n=a:p.v=a);try{if(l=2,i){if(c||(o="next"),t=i[o]){if(!(t=t.call(i,a)))throw TypeError("iterator result is not an object");if(!t.done)return t;a=t.value,c<2&&(c=0)}else 1===c&&(t=i.return)&&t.call(i),c<2&&(a=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=e}else if((t=(s=p.n<0)?a:r.call(n,p))!==u)break}catch(t){i=e,c=1,a=t}finally{l=1}}return{value:t,done:s}}}(r,o,i),!0),l}var u={};function c(){}function a(){}function l(){}t=Object.getPrototypeOf;var f=[][n]?t(t([][n]())):(m(t={},n,function(){return this}),t),s=l.prototype=c.prototype=Object.create(f);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,m(e,o,"GeneratorFunction")),e.prototype=Object.create(s),e}return a.prototype=l,m(s,"constructor",l),m(l,"constructor",a),a.displayName="GeneratorFunction",m(l,o,"GeneratorFunction"),m(s),m(s,o,"Generator"),m(s,n,function(){return this}),m(s,"toString",function(){return"[object Generator]"}),(y=function(){return{w:i,m:p}})()}function m(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}m=function(e,t,r,n){function i(t,r){m(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},m(e,t,r,n)}function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach(function(t){d(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function d(e,t,r){return(t=j(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(e,t,r,n,o,i,u){try{var c=e[i](u),a=c.value}catch(e){return void r(e)}c.done?t(a):Promise.resolve(a).then(n,o)}function O(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return g(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?g(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function w(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,j(n.key),n)}}function j(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function P(e,t,r){return t=S(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,E()?Reflect.construct(t,r||[],S(e).constructor):t.apply(e,r))}function E(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(E=function(){return!!e})()}
2function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}function T(e,t){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},T(e,t)}var _=(0,n.lazy)(function(){return Promise.all([r.e(3435),r.e(7370),r.e(9209),r.e(1066),r.e(497),r.e(3809),r.e(6997),r.e(547),r.e(9827),r.e(1994),r.e(4494),r.e(6154),r.e(546),r.e(8118),r.e(1847),r.e(8383),r.e(3159),r.e(6273),r.e(8490),r.e(1112),r.e(1676),r.e(3551),r.e(7376),r.e(2756),r.e(2360),r.e(3762),r.e(3894),r.e(1734),r.e(4368),r.e(1381),r.e(6601),r.e(1828),r.e(4489),r.e(9399),r.e(6211),r.e(5540),r.e(5488),r.e(7868),r.e(5903),r.e(6964),r.e(958),r.e(3880),r.e(4255),r.e(9811),r.e(8270),r.e(1615),r.e(7471),r.e(3491),r.e(7752),r.e(6188),r.e(2158),r.e(3154),r.e(3526),r.e(5715),r.e(7697),r.e(6913),r.e(8769),r.e(7435),r.e(3493),r.e(7581),r.e(5828),r.e(304),r.e(7599),r.e(3909),r.e(9522),r.e(4182),r.e(5558),r.e(6326)]).then(()=>r(76326))}),A=o.A.Text,k=o.A.Title,L=i.A.Content,C=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(e=P(this,t,[].concat(n))).state={community:e.props.community,fileList:[]},e.setFileList=function(t){e.setState({fileList:O(t)})},e.onLogoChange=function(t){var r=t.fileList;e.setFileList(r)},e.onRemoveLogo=function(t){e.props.setDirectUploadParams("");var r=e.state.fileList.filter(function(e){return e.uid!==t.uid});e.setFileList(r)},e.onFormSubmit=function(){var t,r=(t=y().m(function t(r){var n,o,i;return y().w(function(t){for(;;)switch(t.n){case 0:return n=e.props.errorsHandledApiCall,o=e.state.community,t.n=1,n(v({id:o.id},r));case 1:i=t.v,e.setState({community:i,fileList:[]});case 2:return t.a(2)}},t)}),function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function u(e){h(i,n,o,u,c,"next",e)}function c(e){h(i,n,o,u,c,"throw",e)}u(void 0)})});return function(e){return r.apply(this,arguments)}}(),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&T(e,t)}(t,e),r=t,(o=[{key:"render",value:function(){var e=this.state.community,t=this.props,r=t.baseErrors,o=t.fieldErrors,i=t.directUploadRequest,c=t.directUploadParams,a={fileList:this.state.fileList,customRequest:i,onRemoveLogo:this.onRemoveLogo,onLogoChange:this.onLogoChange};return n.createElement(n.Suspense,{fallback:n.createElement(u.A,null)},n.createElement(L,{className:"community-edit",style:{backgroundColor:"inherit"}},r.map(function(e){return n.createElement(Alert,{message:e,type:"error",showIcon:!0,closable:!0})}),n.createElement("div",{style:{marginBottom:"24px"}},n.createElement(k,{level:4},"Update community profile"),n.createElement(A,{type:"secondary"},"Tell participants about yourself.")),n.createElement("div",{className:"community-edit-form"},n.createElement(_,{initialValues:c?v(v({},e),{},{logo:c}):e,onFormSubmit:this.onFormSubmit,errors:o,uploadLogoProps:a}))))}}])&&w(r.prototype,o),i&&w(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o,i}(n.Component);const R=(F=(0,a.j)(C,c.P),function(e){var t=s((0,l.m)(""),3),r=t[0],o=t[1],i=t[2];return n.createElement(F,f({},e,{setDirectUploadParams:o,directUploadParams:r,directUploadRequest:i}))});var F},81466(e,t,r){r.r(t);var n=r(96540),o=r(75475);function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u(n.key),n)}}function u(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function c(e,t,r){return t=l(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,r||[],l(e).constructor):t.apply(e,r))}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}var s=(0,n.lazy)(function(){return r.e(6576).then(()=>r(47152))}),p=(0,n.lazy)(function(){return Promise.resolve().then(()=>r(16370))}),y=(0,n.lazy)(function(){return r.e(4857).then(()=>r(36552))}),m=(0,n.lazy)(function(){return Promise.all([r.e(2165),r.e(5888),r.e(4431)]).then(()=>r(16812))}),b=(0,n.lazy)(function(){return Promise.all([r.e(1302),r.e(3419)]).then(()=>r(33419))}),v=(0,n.lazy)(function(){return Promise.all([r.e(3435),r.e(7370),r.e(9209),r.e(1066),r.e(497),r.e(3809),r.e(6997),r.e(547),r.e(9827),r.e(1994),r.e(4494),r.e(6154),r.e(546),r.e(8118),r.e(1847),r.e(8383),r.e(3159),r.e(6273),r.e(8490),r.e(1112),r.e(1676),r.e(3551),r.e(7376),r.e(2756),r.e(2360),r.e(3762),r.e(3894),r.e(1734),r.e(4368),r.e(1381),r.e(6601),r.e(1828),r.e(4489),r.e(9399),r.e(6211),r.e(5540),r.e(5488),r.e(7868),r.e(5903),r.e(6964),r.e(958),r.e(3880),r.e(4255),r.e(9811),r.e(8270),r.e(1615),r.e(7471),r.e(3491),r.e(7752),r.e(6188),r.e(2158),r.e(3154),r.e(3526),r.e(5715),r.e(7697),r.e(6913),r.e(8769),r.e(7435),r.e(3493),r.e(7581),r.e(5828),r.e(304),r.e(7599),r.e(3909),r.e(9522),r.e(4182),r.e(5896),r.e(5888),r.e(6585),r.e(6896)]).then(()=>r(6896))}),d=o.A.Link,h=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),c(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(t,e),r=t,(o=[{key:"render",value:function(){var e=this.props,t=e.community,r=e.communityType,o=e.users,i=e.communityTeams,u=e.token,c=t.membershipsCount>5&&n.createElement(d,{href:"/me/communities/".concat(t.id,"/community_memberships")},"Show more members");return n.createElement(n.Suspense,{fallback:null},n.createElement(n.Fragment,null,n.createElement(m,{community:t,communityType:r}),n.createElement(y,null),n.createElement(s,{gutter:16},n.createElement(p,{span:16},n.createElement(b,{community:t,users:o,showMore:c})),n.createElement(p,{span:8},n.createElement(v,{community:t,communityTeams:i,token:u})))))}}])&&i(r.prototype,o),u&&i(r,u),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o,u}(n.Component);const O=h;r.d(t,["default",0,O])}}]); 3//# sourceMappingURL=Communities-749c4a11eb779a24f743.chunk.js.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.