Version Description
- Released 2020-02-29
- Added option to disable image sizes.
Download this release
Release Info
Developer | madalin.ungureanu |
Plugin | User Profile Picture |
Version | 2.3.11 |
Comparing to | |
See all releases |
Code changes from version 2.3.10 to 2.3.11
- dist/blocks.build.js +1 -1
- dist/blocks.editor.build.css +1 -1
- metronet-profile-picture.php +23 -8
- readme.txt +16 -13
dist/blocks.build.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e){function t(o){if(r[o])return r[o].exports;var n=r[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,t),n.l=!0,n.exports}var r={};t.m=e,t.c=r,t.d=function(e,r,o){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=9)}([function(e,t,r){"use strict";function o(e){return"[object Array]"===T.call(e)}function n(e){return"[object ArrayBuffer]"===T.call(e)}function i(e){return"undefined"!==typeof FormData&&e instanceof FormData}function a(e){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer}function l(e){return"string"===typeof e}function s(e){return"number"===typeof e}function p(e){return"undefined"===typeof e}function c(e){return null!==e&&"object"===typeof e}function u(e){return"[object Date]"===T.call(e)}function m(e){return"[object File]"===T.call(e)}function f(e){return"[object Blob]"===T.call(e)}function h(e){return"[object Function]"===T.call(e)}function d(e){return c(e)&&h(e.pipe)}function g(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams}function b(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function w(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function C(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),o(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}function v(){function e(e,r){"object"===typeof t[r]&&"object"===typeof e?t[r]=v(t[r],e):t[r]=e}for(var t={},r=0,o=arguments.length;r<o;r++)C(arguments[r],e);return t}function E(e,t,r){return C(t,function(t,o){e[o]=r&&"function"===typeof t?_(t,r):t}),e}var _=r(4),y=r(15),T=Object.prototype.toString;e.exports={isArray:o,isArrayBuffer:n,isBuffer:y,isFormData:i,isArrayBufferView:a,isString:l,isNumber:s,isObject:c,isUndefined:p,isDate:u,isFile:m,isBlob:f,isFunction:h,isStream:d,isURLSearchParams:g,isStandardBrowserEnv:w,forEach:C,merge:v,extend:E,trim:b}},function(e,t,r){"use strict";(function(t){function o(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var n=r(0),i=r(18),a={"Content-Type":"application/x-www-form-urlencoded"},l={adapter:function(){var e;return"undefined"!==typeof XMLHttpRequest?e=r(5):"undefined"!==typeof t&&(e=r(5)),e}(),transformRequest:[function(e,t){return i(t,"Content-Type"),n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)?e:n.isArrayBufferView(e)?e.buffer:n.isURLSearchParams(e)?(o(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):n.isObject(e)?(o(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"===typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}};l.headers={common:{Accept:"application/json, text/plain, */*"}},n.forEach(["delete","get","head"],function(e){l.headers[e]={}}),n.forEach(["post","put","patch"],function(e){l.headers[e]=n.merge(a)}),e.exports=l}).call(t,r(17))},function(e,t,r){var o,n;!function(){"use strict";function r(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var n=typeof o;if("string"===n||"number"===n)e.push(o);else if(Array.isArray(o)&&o.length){var a=r.apply(null,o);a&&e.push(a)}else if("object"===n)for(var l in o)i.call(o,l)&&o[l]&&e.push(l)}}return e.join(" ")}var i={}.hasOwnProperty;"undefined"!==typeof e&&e.exports?(r.default=r,e.exports=r):(o=[],void 0!==(n=function(){return r}.apply(t,o))&&(e.exports=n))}()},function(e,t,r){e.exports=r(14)},function(e,t,r){"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),o=0;o<r.length;o++)r[o]=arguments[o];return e.apply(t,r)}}},function(e,t,r){"use strict";var o=r(0),n=r(19),i=r(21),a=r(22),l=r(23),s=r(6);e.exports=function(e){return new Promise(function(t,p){var c=e.data,u=e.headers;o.isFormData(c)&&delete u["Content-Type"];var m=new XMLHttpRequest;if(e.auth){var f=e.auth.username||"",h=e.auth.password||"";u.Authorization="Basic "+btoa(f+":"+h)}if(m.open(e.method.toUpperCase(),i(e.url,e.params,e.paramsSerializer),!0),m.timeout=e.timeout,m.onreadystatechange=function(){if(m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in m?a(m.getAllResponseHeaders()):null,o=e.responseType&&"text"!==e.responseType?m.response:m.responseText,i={data:o,status:m.status,statusText:m.statusText,headers:r,config:e,request:m};n(t,p,i),m=null}},m.onerror=function(){p(s("Network Error",e,null,m)),m=null},m.ontimeout=function(){p(s("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",m)),m=null},o.isStandardBrowserEnv()){var d=r(24),g=(e.withCredentials||l(e.url))&&e.xsrfCookieName?d.read(e.xsrfCookieName):void 0;g&&(u[e.xsrfHeaderName]=g)}if("setRequestHeader"in m&&o.forEach(u,function(e,t){"undefined"===typeof c&&"content-type"===t.toLowerCase()?delete u[t]:m.setRequestHeader(t,e)}),e.withCredentials&&(m.withCredentials=!0),e.responseType)try{m.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"===typeof e.onDownloadProgress&&m.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&m.upload&&m.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){m&&(m.abort(),p(e),m=null)}),void 0===c&&(c=null),m.send(c)})}},function(e,t,r){"use strict";var o=r(20);e.exports=function(e,t,r,n,i){var a=new Error(e);return o(a,t,r,n,i)}},function(e,t,r){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,r){"use strict";function o(e){this.message=e}o.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},o.prototype.__CANCEL__=!0,e.exports=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});r(10)},function(e,t,r){"use strict";var o=r(11),n=(r.n(o),r(12)),i=(r.n(n),r(13)),a=r(32),l=r(2),s=r.n(l),__=wp.i18n.__,p=wp.blocks.registerBlockType,c=wp.element,u=(c.Component,c.Fragment),m=wp.editor.RichText,f={profileName:{type:"string",default:""},profileTitle:{type:"string",default:""},profileContent:{type:"string",default:""},profileAlignment:{type:"string"},profileImgURL:{type:"string",source:"attribute",attribute:"src",selector:"img",default:""},profileImgID:{type:"number",default:""},profileURL:{type:"string",default:""},profileBackgroundColor:{type:"string",default:"#f2f2f2"},profileTextColor:{type:"string",default:"#32373c"},profileViewPostsBackgroundColor:{type:"string",default:"#cf6d38"},profileViewPostsTextColor:{type:"string",default:"#FFFFFF"},profileViewPostsWidth:{type:"number",default:100},profileFontSize:{type:"number",default:18},profileAvatarShape:{type:"string",default:"square"},showName:{type:"bool",default:!0},showTitle:{type:"bool",default:!0},showDescription:{type:"bool",default:!0},showViewPosts:{type:"bool",default:!0},user_id:{type:"number",default:0}};p("mpp/user-profile",{title:__("User Profile Legacy","metronet-profile-picture"),icon:wp.element.createElement("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 753.53 979.74"},wp.element.createElement("title",null,"upp"),wp.element.createElement("path",{d:"M806.37,185.9c0,40.27-30.49,72.9-68.11,72.9s-68.17-32.63-68.17-72.9S700.62,113,738.26,113,806.37,145.64,806.37,185.9Z",transform:"translate(-123.47 -11)",fill:"#4063ad"}),wp.element.createElement("path",{d:"M330.36,183.8c0,40.27-30.49,72.9-68.12,72.9s-68.17-32.63-68.17-72.9,30.52-72.87,68.17-72.87S330.36,143.56,330.36,183.8Z",transform:"translate(-123.47 -11)",fill:"#a34d9c"}),wp.element.createElement("path",{d:"M331.3,888.13V698.21H329c-31.64,0-57.28-27.45-57.28-61.29V336.5a118.37,118.37,0,0,1,5.43-34.79H179.84c-31.94,0-56.37,31.57-56.37,56.34V601.46h48.32V888.13Z",transform:"translate(-123.47 -11)",fill:"#a34d9c"}),wp.element.createElement("path",{d:"M388.59,636.92V990.74H611.88V636.92H671.5V336.5c0-30.63-27.64-69.57-69.6-69.57H398.56c-39.44,0-69.61,38.94-69.61,69.57V636.92Z",transform:"translate(-123.47 -11)",fill:"#f4831f"}),wp.element.createElement("path",{d:"M584.3,101c0,49.69-37.63,90-84,90S416.12,150.67,416.12,101s37.66-90,84.14-90S584.3,51.27,584.3,101Z",transform:"translate(-123.47 -11)",fill:"#f4831f"}),wp.element.createElement("path",{d:"M820.61,303.79H724.08a121.69,121.69,0,0,1,4.7,32.71V636.92c0,33.84-25.64,61.29-57.28,61.29h-2.33v192H828.7V603.54H877V360.16C877,335.36,854.62,303.79,820.61,303.79Z",transform:"translate(-123.47 -11)",fill:"#4063ad"})),category:"mpp",attributes:f,edit:a.a,save:function(e){var t=e.attributes,r=t.profileName,o=t.profileTitle,n=t.profileContent,i=t.profileAlignment,a=t.profileImgURL,l=(t.profileImgID,t.profileFontSize),p=t.profileBackgroundColor,c=t.profileTextColor,f=(t.profileLinkColor,t.profileAvatarShape),h=t.profileViewPostsBackgroundColor,d=t.profileViewPostsTextColor,g=t.profileURL,b=t.showTitle,w=t.showName,C=t.showDescription,v=t.showViewPosts;return wp.element.createElement(u,null,wp.element.createElement("div",{className:s()("mpp-profile-wrap",i,f,"mt-font-size-"+l,"mpp-block-profile"),style:{backgroundColor:p,color:c}},wp.element.createElement("div",{className:s()("mpp-profile-gutenberg-wrap","mpp-block-profile"),style:{backgroundColor:p,color:c}},wp.element.createElement("div",{className:"mpp-profile-image-wrapper"},wp.element.createElement("div",{className:"mpp-profile-image-square"},wp.element.createElement("img",{className:"mpp-profile-avatar",src:a,alt:"avatar"}))),wp.element.createElement("div",{className:"mpp-content-wrap"},r&&!!r.length&&w&&wp.element.createElement(m.Content,{tagName:"h2",className:"mpp-profile-name",style:{color:c},value:r}),o&&!!o.length&&b&&wp.element.createElement(m.Content,{tagName:"p",className:"mpp-profile-title",style:{color:c},value:o}),n&&!!n.length&&C&&wp.element.createElement(m.Content,{tagName:"div",className:"mpp-profile-text",value:n}))),g&&!!g.length&&wp.element.createElement("div",{className:"mpp-gutenberg-view-posts"},v&&wp.element.createElement("div",{className:"mpp-profile-view-posts",style:{backgroundColor:h,color:d}},wp.element.createElement("a",{href:g,style:{backgroundColor:h,color:d}},__("View Posts","metronet-profile-picture"))))))}}),p("mpp/user-profile-enhanced",{title:__("User Profile","metronet-profile-picture"),icon:wp.element.createElement("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 753.53 979.74"},wp.element.createElement("title",null,"upp"),wp.element.createElement("path",{d:"M806.37,185.9c0,40.27-30.49,72.9-68.11,72.9s-68.17-32.63-68.17-72.9S700.62,113,738.26,113,806.37,145.64,806.37,185.9Z",transform:"translate(-123.47 -11)",fill:"#4063ad"}),wp.element.createElement("path",{d:"M330.36,183.8c0,40.27-30.49,72.9-68.12,72.9s-68.17-32.63-68.17-72.9,30.52-72.87,68.17-72.87S330.36,143.56,330.36,183.8Z",transform:"translate(-123.47 -11)",fill:"#a34d9c"}),wp.element.createElement("path",{d:"M331.3,888.13V698.21H329c-31.64,0-57.28-27.45-57.28-61.29V336.5a118.37,118.37,0,0,1,5.43-34.79H179.84c-31.94,0-56.37,31.57-56.37,56.34V601.46h48.32V888.13Z",transform:"translate(-123.47 -11)",fill:"#a34d9c"}),wp.element.createElement("path",{d:"M388.59,636.92V990.74H611.88V636.92H671.5V336.5c0-30.63-27.64-69.57-69.6-69.57H398.56c-39.44,0-69.61,38.94-69.61,69.57V636.92Z",transform:"translate(-123.47 -11)",fill:"#f4831f"}),wp.element.createElement("path",{d:"M584.3,101c0,49.69-37.63,90-84,90S416.12,150.67,416.12,101s37.66-90,84.14-90S584.3,51.27,584.3,101Z",transform:"translate(-123.47 -11)",fill:"#f4831f"}),wp.element.createElement("path",{d:"M820.61,303.79H724.08a121.69,121.69,0,0,1,4.7,32.71V636.92c0,33.84-25.64,61.29-57.28,61.29h-2.33v192H828.7V603.54H877V360.16C877,335.36,854.62,303.79,820.61,303.79Z",transform:"translate(-123.47 -11)",fill:"#4063ad"})),category:"mpp",getEditWrapperProps:function(e){},edit:i.a,save:function(){return null}})},function(e,t){},function(e,t){},function(e,t,r){"use strict";function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=r(3),s=r.n(l),p=r(2),c=r.n(p),u=function(){function e(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}(),m=wp.element,f=m.Component,h=m.Fragment,__=wp.i18n.__,d=wp.components,g=d.PanelBody,b=d.Placeholder,w=(d.QueryControls,d.RangeControl),C=d.SelectControl,v=d.Spinner,E=d.TextControl,_=d.ToggleControl,y=(d.Toolbar,d.withAPIData,d.ColorPalette,d.Button),T=wp.editor,P=T.InspectorControls,S=(T.BlockControls,T.MediaUpload),N=T.RichText,x=(T.AlignmentToolbar,T.PanelColorSettings),k=function(e){function t(){n(this,t);var e=i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));e.get_users=function(){s.a.post(mpp_gutenberg.rest_url+"/get_users",{},{headers:{"X-WP-Nonce":mpp_gutenberg.nonce}}).then(function(t){var r,n=Array(),i=Array(),a=0,l="",s=0,p="",c="",u="",m="",f="";jQuery.each(t.data,function(e,t){n[t.ID]={profile_pictures:t.profile_pictures,has_profile_picture:t.has_profile_picture,display_name:t.display_name,description:t.description,is_user_logged_in:t.is_user_logged_in,profile_picture_id:t.profile_picture_id,default_image:t.default_image,permalink:t.permalink},t.is_user_logged_in&&(a=t.ID),i.push({value:t.ID,label:t.display_name})}),0!==e.props.attributes.user_id&&(a=e.props.attributes.user_id);var h=n[a];h.has_profile_picture?(l=e.props.attributes.profileImgURL.length>0?e.props.attributes.profileImgURL:h.profile_pictures.thumbnail,s=e.props.attributes.profileImgID.length>0?e.props.attributes.profileImgID:h.profile_picture_id,p=e.props.attributes.profileName.length>0?e.props.attributes.profileName:h.display_name,u=e.props.attributes.profileTitle.length>0?e.props.attributes.profileTitle:"",m=h.permalink,c=e.props.attributes.profileContent.length>0?e.props.attributes.profileContent:h.description,f=e.props.attributes.showWebsite):(p=e.props.attributes.profileName.length>0?e.props.attributes.profileName:h.display_name,u=e.props.attributes.profileTitle.length>0?e.props.attributes.profileTitle:"",c=e.props.attributes.profileContent.length>0?e.props.attributes.profileContent:h.description,l=e.props.attributes.profileImgURL.length>0?e.props.attributes.profileImgURL:h.default_image,s=e.props.attributes.profileImgID.length>0?e.props.attributes.profileImgID:0,m=h.permalink,f=e.props.attributes.showWebsite),void 0==c&&(c=""),e.setState((r={loading:!1,users:n,active_user:a,user_list:i,profile_picture:l,profile_picture_id:s},o(r,"active_user",a),o(r,"profile_name",p),o(r,"profile_name_unfiltered",h.display_name),o(r,"profile_title",u),o(r,"profile_description",c),o(r,"profile_url",m),o(r,"show_website",f),r)),e.props.setAttributes(o({profileContent:c,profileName:p,profileTitle:u,profileURL:m,profileImgID:s,profileImgURL:l,showWebsite:f,showSocialMedia:!0},"profileName",h.display_name))})},e.on_user_change=function(t){var r=e.state.users[t],n="",i=0,a="";r.has_profile_picture?(n=e.state.users[t].profile_pictures.thumbnail,i=e.state.users[t].profile_picture_id):(n=mpp_gutenberg.mystery_man,i=0);var l=e.state.users[t].description;void 0===l&&(l=""),a=e.state.users[t].display_name,e.props.setAttributes(o({profileName:a,profileContent:l,profileTitle:"",profileURL:e.state.users[t].permalink,profileImgURL:n,tabbedAuthorSubHeading:"",tabbedAuthorProfileTitle:"",socialFacebook:"",socialGitHub:"",socialInstagram:"",socialLinkedIn:"",socialPinterest:"",socialTwitter:"",socialWordPress:"",socialYouTube:""},"profileName",e.state.users[t].display_name)),e.setState({profile_name_unfiltered:e.state.users[t].display_name,profile_name:a,profile_description:l,profile_title:"",profile_picture:n,profile_picture_id:i,active_user:t,profile_url:e.state.users[t].permalink,socialFacebook:"",socialGitHub:"",socialInstagram:"",socialLinkedIn:"",socialPinterest:"",socialTwitter:"",socialWordPress:"",socialYouTube:""}),e.getLatestPosts()},e.getLatestPosts=function(){e.setState({loadingLatestPosts:!0});s.a.post(mpp_gutenberg.rest_url+"/get_posts",{user_id:e.state.active_user},{headers:{"X-WP-Nonce":mpp_gutenberg.nonce}}).then(function(t){var r=t.data,o=r.map(function(e){return wp.element.createElement("li",{key:e.ID},wp.element.createElement("a",{href:e.permalink},e.post_title))});e.setState({loadingLatestPosts:!1,latestPosts:o})})},e.componentDidMount=function(){e.get_users()},e.handleImageChange=function(t,r){e.setState({profile_picture:r,profile_picture_id:t})},e.onChangeName=function(t){e.setState({profile_name:t})},e.onChangeTitle=function(t){e.setState({profile_title:t})},e.onChangeProfileText=function(t){e.setState({profile_description:t})},e.onThemeChange=function(t){e.setState({theme:t})},e.handleFacebookChange=function(t){e.setState({socialFacebook:t})},e.handleYouTubeChange=function(t){e.setState({socialYouTube:t})},e.handleGitHubChange=function(t){e.setState({socialGitHub:t})},e.handleLinkedInChange=function(t){e.setState({socialLinkedIn:t})},e.handleTwitterChange=function(t){e.setState({socialTwitter:t})},e.handleWordPressChange=function(t){e.setState({socialWordPress:t})},e.handleWebsiteChange=function(t){e.setState({website:t}),""!==t&&e.props.setAttributes({showWebsite:!0})},e.handleInstagramChange=function(t){e.setState({socialInstagram:t})},e.handlePinterestChange=function(t){e.setState({socialPinterest:t})},e.handleSocialMediaChange=function(t){e.setState({showSocialMedia:t}),e.props.setAttributes({showSocialMedia:t})},e.handleSocialMediaOptionChange=function(t){e.setState({socialMediaOptions:t})},e.onChangeTabbedProfileText=function(t){e.setState({tabbedAuthorProfile:t})},e.onChangeTabbedSubHeading=function(t){e.setState({tabbedAuthorSubHeading:t})},e.onChangeActiveProfileTab=function(){e.setState({activeTab:"profile"})},e.onChangeActivePostTab=function(){e.setState({activeTab:"latest",loadingLatestPosts:!0}),e.getLatestPosts()},e.onChangetabbedAuthorProfile=function(t){e.setState({tabbedAuthorProfile:t})},e.onChangetabbedAuthorProfileHeading=function(t){e.setState({tabbedAuthorProfileHeading:t})},e.onChangetabbedAuthorLatestPosts=function(t){e.setState({tabbedAuthorLatestPosts:t})},e.onChangeProfileTabColor=function(t){e.setState({profileTabColor:t}),e.props.setAttributes({profileTabColor:t})},e.onChangePostsTabColor=function(t){e.setState({profileTabPostsColor:t}),e.props.setAttributes({profileTabPostsColor:t})},e.onChangePostsTabHeadlineColor=function(t){e.setState({profileTabHeadlineColor:t}),e.props.setAttributes({profileTabHeadlineColor:t})},e.onChangeProfileTabPostColorText=function(t){e.setState({profileTabPostsTextColor:t}),e.props.setAttributes({profileTabPostsTextColor:t})},e.onChangeProfileTabHeadlineColorText=function(t){e.setState({profileTabHeadlineTextColor:t}),e.props.setAttributes({profileTabHeadlineTextColor:t})},e.onChangeProfileTabColorText=function(t){e.setState({profileTabTextColor:t}),e.props.setAttributes({profileTabTextColor:t})},e.onLatestPostsChange=function(t){e.setState({profileLatestPostsOptionsValue:t})},e.onCompactAlignmentChange=function(t){e.setState({profileCompactAlignment:t})};var r=Array();return r.push({value:"regular",label:__("Regular","metronet-profile-picture")}),r.push({value:"profile",label:__("Profile","metronet-profile-picture")}),r.push({value:"tabbed",label:__("Tabbed","metronet-profile-picture")}),r.push({value:"compact",label:__("Compact","metronet-profile-picture")}),e.state={loading:!0,users:!1,user_list:!1,profile_picture:e.props.attributes.profileImgURL,profile_picture_id:e.props.attributes.profileImgID,active_user:!1,profile_description:"",profile_name:"",profile_name_unfiltered:"",profile_title:"",show_website:e.props.attributes.showWebsite,profileViewPosts:e.props.attributes.profileViewPosts,profileViewWebsite:e.props.attributes.profileViewWebsite,theme:e.props.attributes.theme,themes:r,socialFacebook:e.props.attributes.socialFacebook,socialGitHub:e.props.attributes.socialGitHub,socialLinkedIn:e.props.attributes.socialLinkedIn,socialPinterest:e.props.attributes.socialPinterest,socialTwitter:e.props.attributes.socialTwitter,socialWordPress:e.props.attributes.socialWordPress,socialYouTube:e.props.attributes.socialYouTube,socialInstagram:e.props.attributes.socialInstagram,website:e.props.attributes.website,showSocialMedia:!0,socialMediaOptions:e.props.attributes.socialMediaOptions,socialMediaColors:e.props.attributes.socialMediaColors,tabbedAuthorProfile:e.props.attributes.tabbedAuthorProfile,tabbedAuthorLatestPosts:e.props.attributes.tabbedAuthorLatestPosts,tabbedAuthorSubHeading:e.props.attributes.tabbedAuthorSubHeading,tabbedAuthorProfileHeading:e.props.attributes.tabbedAuthorProfileHeading,activeTab:"profile",loadingLatestPosts:!0,latestPosts:{},profileTabColor:e.props.attributes.profileTabColor,profileTabHeadlineColor:e.props.attributes.profileTabHeadlineColor,profileTabPostsColor:e.props.attributes.profileTabPostsColor,profileTabHeadlineTextColor:e.props.attributes.profileTabHeadlineTextColor,profileTabTextColor:e.props.attributes.profileTabTextColor,profileTabPostsTextColor:e.props.attributes.profileTabPostsTextColor,profileLatestPostsOptionsValue:e.props.attributes.profileLatestPostsOptionsValue,profileCompactAlignment:e.props.attributes.profileCompactAlignment},e}return a(t,e),u(t,[{key:"render",value:function(){var e=this,t=this.props,r=t.attributes,o=r.profileName,n=r.profileTitle,i=r.profileContent,a=r.profileAlignment,l=r.profileImgURL,s=r.profileImgID,p=r.profileURL,u=r.profileFontSize,m=r.buttonFontSize,f=r.headerFontSize,d=r.profileBackgroundColor,T=r.profileTextColor,k=r.profileAvatarShape,A=r.profileViewPostsBackgroundColor,I=r.profileViewPostsTextColor,L=r.profileViewPosts,O=r.profileViewWebsite,V=r.showTitle,H=r.showName,R=r.showDescription,M=r.showViewPosts,B=r.showPostsWidth,U=(r.showSocialMedia,r.showWebsite),D=(r.theme,r.theme_list,r.socialFacebook,r.socialGitHub,r.socialLinkedIn,r.socialPinterest,r.socialTwitter,r.socialWordPress,r.socialYouTube,r.socialMediaColors),F=r.profileWebsiteBackgroundColor,W=r.profileWebsiteTextColor,j=r.padding,z=r.border,q=r.borderRounded,Z=r.borderColor,G=r.profileLinkColor,Y=(r.tabbedAuthorProfile,r.tabbedAuthorSubHeading,r.tabbedAuthorProfileTitle),X=(r.profileLatestPostsOptionsValue,t.attributes,t.isSelected,t.editable,t.className,t.setAttributes);this.state.profile_pictures;s=this.state.profile_picture_id,l=this.state.profile_picture,o=this.state.profile_name,i=this.state.profile_description,n=this.state.profile_title,p=this.state.profile_url,B=""!==this.state.website&&this.props.attributes.showWebsite?"":"100%",X({showPostsWidth:B});var $=function(e){return X({profileBackgroundColor:e})},J=function(e){return X({profileTextColor:e})},Q=function(e){return X({profileViewPostsBackgroundColor:e})},K=function(e){return X({profileViewPostsTextColor:e})},ee=function(e){return X({profileWebsiteBackgroundColor:e})},te=function(e){return X({profileWebsiteTextColor:e})},re=function(e){return X({socialMediaColors:e})},oe=function(e){return X({borderColor:e})},ne=function(e){return X({profileLinkColor:e})},ie=[{value:"square",label:__("Square","metronet-profile-picture")},{value:"round",label:__("Round","metronet-profile-picture")}],ae=[{value:"colors",label:__("Brand Colors","metronet-profile-picture")},{value:"custom",label:__("Custom","metronet-profile-picture")}],le=[{value:"none",label:__("None","metronet-profile-picture")},{value:"white",label:__("White","metronet-profile-picture")},{value:"light",label:__("Light","metronet-profile-picture")},{value:"black",label:__("Black","metronet-profile-picture")},{value:"magenta",label:__("Magenta","metronet-profile-picture")},{value:"blue",label:__("Blue","metronet-profile-picture")},{value:"green",label:__("Green","metronet-profile-picture")}],se=[{value:"left",label:__("Left","metronet-profile-picture")},{value:"center",label:__("Center","metronet-profile-picture")},{value:"right",label:__("Right","metronet-profile-picture")}],pe="none",ce="";return"center"===this.state.profileCompactAlignment&&(pe="none",ce="0 auto"),"left"===this.state.profileCompactAlignment&&(pe="left",ce="0"),"right"===this.state.profileCompactAlignment&&(pe="right",ce="0"),wp.element.createElement(h,null,this.state.loading&&wp.element.createElement(h,null,wp.element.createElement(b,null,wp.element.createElement("div",null,wp.element.createElement("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",width:"125px",height:"125px",viewBox:"0 0 753.53 979.74"},wp.element.createElement("title",null,"upp"),wp.element.createElement("path",{d:"M806.37,185.9c0,40.27-30.49,72.9-68.11,72.9s-68.17-32.63-68.17-72.9S700.62,113,738.26,113,806.37,145.64,806.37,185.9Z",transform:"translate(-123.47 -11)",fill:"#4063ad"}),wp.element.createElement("path",{d:"M330.36,183.8c0,40.27-30.49,72.9-68.12,72.9s-68.17-32.63-68.17-72.9,30.52-72.87,68.17-72.87S330.36,143.56,330.36,183.8Z",transform:"translate(-123.47 -11)",fill:"#a34d9c"}),wp.element.createElement("path",{d:"M331.3,888.13V698.21H329c-31.64,0-57.28-27.45-57.28-61.29V336.5a118.37,118.37,0,0,1,5.43-34.79H179.84c-31.94,0-56.37,31.57-56.37,56.34V601.46h48.32V888.13Z",transform:"translate(-123.47 -11)",fill:"#a34d9c"}),wp.element.createElement("path",{d:"M388.59,636.92V990.74H611.88V636.92H671.5V336.5c0-30.63-27.64-69.57-69.6-69.57H398.56c-39.44,0-69.61,38.94-69.61,69.57V636.92Z",transform:"translate(-123.47 -11)",fill:"#f4831f"}),wp.element.createElement("path",{d:"M584.3,101c0,49.69-37.63,90-84,90S416.12,150.67,416.12,101s37.66-90,84.14-90S584.3,51.27,584.3,101Z",transform:"translate(-123.47 -11)",fill:"#f4831f"}),wp.element.createElement("path",{d:"M820.61,303.79H724.08a121.69,121.69,0,0,1,4.7,32.71V636.92c0,33.84-25.64,61.29-57.28,61.29h-2.33v192H828.7V603.54H877V360.16C877,335.36,854.62,303.79,820.61,303.79Z",transform:"translate(-123.47 -11)",fill:"#4063ad"})),wp.element.createElement("div",{className:"mpp-spinner"},wp.element.createElement(v,null))))),!this.state.loading&&wp.element.createElement(h,null,wp.element.createElement(P,null,wp.element.createElement(g,{title:__("User Profile Settings","metronet-profile-picture")},wp.element.createElement(C,{label:__("Select a user","metronet-profile-picture"),value:this.state.active_user,options:this.state.user_list,onChange:function(t){e.on_user_change(t),X({user_id:Number(t)})}}),wp.element.createElement(C,{label:__("Select a theme","metronet-profile-picture"),value:this.state.theme,options:this.state.themes,onChange:function(t){e.onThemeChange(t),X({theme:t})}}),"compact"===this.state.theme&&wp.element.createElement(C,{label:__("Select an alignment","metronet-profile-picture"),value:this.state.profileCompactAlignment,options:se,onChange:function(t){e.onCompactAlignmentChange(t),X({profileCompactAlignment:t})}}),wp.element.createElement(C,{label:__("Avatar Shape","metronet-profile-picture"),description:__("Choose between a round or square avatar shape.","metronet-profile-picture"),options:ie,value:k,onChange:function(t){return e.props.setAttributes({profileAvatarShape:t})}}),"tabbed"!==this.state.theme&&wp.element.createElement(E,{label:__("Website","metronet-profile-picture"),value:this.state.website,onChange:function(t){e.props.setAttributes({website:t}),e.handleWebsiteChange(t)}}),wp.element.createElement(_,{label:__("Show Name","metronet-profile-picture"),checked:H,onChange:function(){return e.props.setAttributes({showName:!H})}}),wp.element.createElement(_,{label:__("Show Title","metronet-profile-picture"),checked:V,onChange:function(){return e.props.setAttributes({showTitle:!V})}}),wp.element.createElement(_,{label:__("Show Description","metronet-profile-picture"),checked:R,onChange:function(){return e.props.setAttributes({showDescription:!R})}}),"tabbed"!==this.state.theme&&wp.element.createElement(h,null,wp.element.createElement(_,{label:__("Show View Posts","metronet-profile-picture"),checked:M,onChange:function(){return e.props.setAttributes({showViewPosts:!M})}}),M&&wp.element.createElement(E,{label:__("View Posts Text","metronet-profile-picture"),value:L,onChange:function(t){e.props.setAttributes({profileViewPosts:t})}}),wp.element.createElement(_,{label:__("Show Website","metronet-profile-picture"),checked:this.state.show_website,onChange:function(t){e.props.setAttributes({showWebsite:t}),e.setState({show_website:t})}}),this.state.show_website&&wp.element.createElement(E,{label:__("View Website Text","metronet-profile-picture"),value:O,onChange:function(t){e.props.setAttributes({profileViewWebsite:t})}})),wp.element.createElement(_,{label:__("Show Social Media","metronet-profile-picture"),checked:this.state.showSocialMedia,onChange:function(t){e.props.setAttributes({showSocialMedia:t}),e.handleSocialMediaChange(t)}})),"tabbed"===this.state.theme&&wp.element.createElement(g,{title:__("User Profile Settings","metronet-profile-picture")},wp.element.createElement(C,{label:__("Select a theme","metronet-profile-picture"),value:this.state.latestPostsTheme,options:{},onChange:function(t){e.on_user_change(t),X({user_id:Number(t)})}})),wp.element.createElement(g,{title:__("Colors","metronet-profile-picture"),initialOpen:!1},wp.element.createElement(x,{title:__("Background Color","metronet-profile-picture"),initialOpen:!1,colorSettings:[{value:d,onChange:$,label:__("Background Color","metronet-profile-picture")}]}),wp.element.createElement(x,{title:__("Text Color","metronet-profile-picture"),initialOpen:!1,colorSettings:[{value:T,onChange:J,label:__("Text Color","metronet-profile-picture")}]}),"profile"===this.state.theme&&wp.element.createElement(x,{title:__("Link Color","metronet-profile-picture"),initialOpen:!1,colorSettings:[{value:G,onChange:ne,label:__("Link Color","metronet-profile-picture")}]}),"tabbed"===this.state.theme&&wp.element.createElement(h,null,wp.element.createElement(x,{title:__("Profile Tab Color","metronet-profile-picture"),initialOpen:!1,colorSettings:[{value:this.state.profileTabColor,onChange:this.onChangeProfileTabColor,label:__("Color","metronet-profile-picture")}]}),wp.element.createElement(x,{title:__("Profile Tab Color Text","metronet-profile-picture"),initialOpen:!1,colorSettings:[{value:this.state.profileTabTextColor,onChange:this.onChangeProfileTabColorText,label:__("Color","metronet-profile-picture")}]}),wp.element.createElement(x,{title:__("Profile Posts Color","metronet-profile-picture"),initialOpen:!1,colorSettings:[{value:this.state.profileTabPostsColor,onChange:this.onChangePostsTabColor,label:__("Color","metronet-profile-picture")}]}),wp.element.createElement(x,{title:__("Profile Post Color Text","metronet-profile-picture"),initialOpen:!1,colorSettings:[{value:this.state.profileTabPostsTextColor,onChange:this.onChangeProfileTabPostColorText,label:__("Color","metronet-profile-picture")}]}),wp.element.createElement(x,{title:__("Profile Headline Color","metronet-profile-picture"),initialOpen:!1,colorSettings:[{value:this.state.profileTabHeadlineColor,onChange:this.onChangePostsTabHeadlineColor,label:__("Color","metronet-profile-picture")}]}),wp.element.createElement(x,{title:__("Profile Headline Color Text","metronet-profile-picture"),initialOpen:!1,colorSettings:[{value:this.state.profileTabHeadlineColorText,onChange:this.onChangeProfileTabHeadlineColorText,label:__("Color","metronet-profile-picture")}]}),wp.element.createElement(C,{label:__("Select a Post Theme","metronet-profile-picture"),value:this.state.profileLatestPostsOptionsValue,options:le,onChange:function(t){e.onLatestPostsChange(t),X({profileLatestPostsOptionsValue:t})}})),"tabbed"!==this.state.theme&&"profile"!==this.state.theme&&wp.element.createElement(h,null,wp.element.createElement(x,{title:__("View Posts Background Color","metronet-profile-picture"),initialOpen:!1,colorSettings:[{value:A,onChange:Q,label:__("View Posts Background","metronet-profile-picture")}]}),wp.element.createElement(x,{title:__("View Posts Text Color","metronet-profile-picture"),initialOpen:!1,colorSettings:[{value:I,onChange:K,label:__("View Posts Text Color","metronet-profile-picture")}]}),wp.element.createElement(x,{title:__("Website Background Color","metronet-profile-picture"),initialOpen:!1,colorSettings:[{value:F,onChange:ee,label:__("View Website Background","metronet-profile-picture")}]}),wp.element.createElement(x,{title:__("View Website Text Color","metronet-profile-picture"),initialOpen:!1,colorSettings:[{value:W,onChange:te,label:__("View Website Text Color","metronet-profile-picture")}]}))),wp.element.createElement(g,{title:__("Spacing and Font Settings","metronet-profile-picture"),initialOpen:!1},wp.element.createElement(w,{label:__("Header Font Size","metronet-profile-picture"),value:f,onChange:function(t){return e.props.setAttributes({headerFontSize:t})},min:14,max:32,step:1}),wp.element.createElement(w,{label:__("Font Size","metronet-profile-picture"),value:u,onChange:function(t){return e.props.setAttributes({profileFontSize:t})},min:14,max:24,step:1}),"tabbed"!==this.state.theme&&wp.element.createElement(w,{label:__("Button Size","metronet-profile-picture"),value:m,onChange:function(t){return e.props.setAttributes({buttonFontSize:t})},min:10,max:24,step:1}),wp.element.createElement(w,{label:__("Padding","metronet-profile-picture"),value:j,onChange:function(t){return e.props.setAttributes({padding:t})},min:0,max:60,step:1}),wp.element.createElement(w,{label:__("Border","metronet-profile-picture"),value:z,onChange:function(t){return e.props.setAttributes({border:t})},min:0,max:10,step:1}),wp.element.createElement(w,{label:__("Border Rounded","metronet-profile-picture"),value:q,onChange:function(t){return e.props.setAttributes({borderRounded:t})},min:0,max:10,step:1}),wp.element.createElement(x,{title:__("Border Color","metronet-profile-picture"),initialOpen:!1,colorSettings:[{value:Z,onChange:oe,label:__("Border Color","metronet-profile-picture")}]})),wp.element.createElement(g,{title:__("Social Media Settings","metronet-profile-picture"),initialOpen:!1},wp.element.createElement(C,{label:__("Social Media Colors","metronet-profile-picture"),value:this.state.socialMediaOptions,options:ae,onChange:function(t){X({socialMediaOptions:t}),e.handleSocialMediaOptionChange(t)}}),"custom"===this.state.socialMediaOptions&&wp.element.createElement(x,{title:__("Social Media Color","metronet-profile-picture"),initialOpen:!1,colorSettings:[{value:D,onChange:re,label:__("Social Media Color","metronet-profile-picture")}]}),wp.element.createElement(E,{label:__("Facebook","metronet-profile-picture"),value:this.state.socialFacebook,onChange:function(t){e.props.setAttributes({socialFacebook:t}),e.handleFacebookChange(t)}}),wp.element.createElement(E,{label:__("Twitter","metronet-profile-picture"),value:this.state.socialTwitter,onChange:function(t){e.props.setAttributes({socialTwitter:t}),e.handleTwitterChange(t)}}),wp.element.createElement(E,{label:__("Instagram","metronet-profile-picture"),value:this.state.socialInstagram,onChange:function(t){e.props.setAttributes({socialInstagram:t}),e.handleInstagramChange(t)}}),wp.element.createElement(E,{label:__("LinkedIn","metronet-profile-picture"),value:this.state.socialLinkedIn,onChange:function(t){e.props.setAttributes({socialLinkedIn:t}),e.handleLinkedInChange(t)}}),wp.element.createElement(E,{label:__("YouTube","metronet-profile-picture"),value:this.state.socialYouTube,onChange:function(t){e.props.setAttributes({socialYouTube:t}),e.handleYouTubeChange(t)}}),wp.element.createElement(E,{label:__("GitHub","metronet-profile-picture"),value:this.state.socialGitHub,onChange:function(t){e.props.setAttributes({socialGitHub:t}),e.handleGitHubChange(t)}}),wp.element.createElement(E,{label:__("Pinterest","metronet-profile-picture"),value:this.state.socialPinterest,onChange:function(t){e.props.setAttributes({socialPinterest:t}),e.handlePinterestChange(t)}}),wp.element.createElement(E,{label:__("WordPress","metronet-profile-picture"),value:this.state.socialWordPress,onChange:function(t){e.props.setAttributes({socialWordPress:t}),e.handleWordPressChange(t)}}))),"tabbed"!==this.state.theme&&wp.element.createElement("div",{className:c()("mpp-enhanced-profile-wrap",this.state.theme,a,k,"mpp-block-profile"),style:{padding:j+"px",border:z+"px solid "+Z,borderRadius:q+"px",backgroundColor:d,color:T,float:pe,margin:ce}},"regular"===this.state.theme&&wp.element.createElement(h,null,wp.element.createElement("div",{className:c()("mpp-profile-gutenberg-wrap","mt-font-size-"+u)},wp.element.createElement("div",{className:"mpp-profile-image-wrapper"},wp.element.createElement("div",{className:"mpp-profile-image-square"},wp.element.createElement(S,{buttonProps:{className:"change-image"},onSelect:function(t){e.handleImageChange(t.id,t.url),X({profileImgID:t.id,profileImgURL:t.url})},type:"image",value:s,render:function(e){var t=e.open;return wp.element.createElement(y,{onClick:t},s?wp.element.createElement("img",{className:"profile-avatar",src:l,alt:"avatar"}):wp.element.createElement("img",{src:l,alt:"placeholder"}))}}))),wp.element.createElement("div",{className:"mpp-content-wrap"},H&&wp.element.createElement(N,{tagName:"h2",placeholder:__("Add name","metronet-profile-picture"),value:o,className:"mpp-profile-name",style:{color:T,fontSize:f+"px"},onChange:function(t){e.onChangeName(t),X({profileName:t})}}),V&&wp.element.createElement(N,{tagName:"p",placeholder:__("Add title","atomic-blocks"),value:n,className:"mpp-profile-title",style:{color:T},onChange:function(t){e.onChangeTitle(t),X({profileTitle:t})}}),R&&wp.element.createElement(N,{tagName:"div",className:"mpp-profile-text",placeholder:__("Add profile text...","metronet-profile-picture"),value:i,formattingControls:["bold","italic","strikethrough","link"],onChange:function(t){e.onChangeProfileText(t),X({profileContent:t})}}))),p&&!!p.length&&wp.element.createElement("div",{className:"mpp-gutenberg-view-posts",style:{width:B}},M&&wp.element.createElement("div",{className:"mpp-profile-view-posts",style:{backgroundColor:A,color:I,width:B,fontSize:m+"px"}},wp.element.createElement("a",{href:p,style:{backgroundColor:A,color:I}},L)),""!=this.state.website&&U&&wp.element.createElement("div",{className:"mpp-profile-view-website",style:{backgroundColor:F,color:W,fontSize:m+"px"}},wp.element.createElement("a",{href:this.state.website,style:{backgroundColor:F,color:W}},O)))),"profile"===this.state.theme&&wp.element.createElement("div",{className:c()("mpp-profile-gutenberg-wrap","mt-font-size-"+u)},H&&wp.element.createElement(N,{tagName:"h2",placeholder:__("Add name","metronet-profile-picture"),value:o,className:"mpp-profile-name",style:{color:T,fontSize:f+"px"},onChange:function(t){e.onChangeName(t),X({profileName:t})}}),wp.element.createElement("div",{className:"mpp-profile-image-wrapper"},wp.element.createElement("div",{className:"mpp-profile-image-square"},wp.element.createElement(S,{buttonProps:{className:"change-image"},onSelect:function(t){e.handleImageChange(t.id,t.url),X({profileImgID:t.id,profileImgURL:t.url})},type:"image",value:s,render:function(e){var t=e.open;return wp.element.createElement(y,{onClick:t},s?wp.element.createElement("img",{className:"profile-avatar",src:l,alt:"avatar"}):wp.element.createElement("img",{src:l,alt:"placeholder"}))}}))),R&&wp.element.createElement(N,{tagName:"div",className:"mpp-profile-text",placeholder:__("Add profile text...","metronet-profile-picture"),value:i,formattingControls:["bold","italic","strikethrough","link"],onChange:function(t){e.onChangeProfileText(t),X({profileContent:t})}}),wp.element.createElement("div",{className:"mpp-profile-meta",style:{fontSize:m+"px"}},M&&wp.element.createElement("div",{className:"mpp-profile-link alignleft"},wp.element.createElement("a",{href:this.state.profile_url,style:{color:G}},__("View all posts by","metronet-profile-picture")," ",this.state.profile_name_unfiltered)),""!=this.state.website&&U&&wp.element.createElement("div",{className:"mpp-profile-link alignright"},wp.element.createElement("a",{href:this.state.website,style:{color:G}},__("Website","metronet-profile-picture"))))),"compact"===this.state.theme&&wp.element.createElement("div",{className:c()("mpp-profile-gutenberg-wrap","mt-font-size-"+u)},H&&wp.element.createElement(N,{tagName:"h2",placeholder:__("Add name","metronet-profile-picture"),value:o,className:"mpp-profile-name",style:{color:T,fontSize:f+"px"},onChange:function(t){e.onChangeName(t),X({profileName:t})}}),wp.element.createElement("div",{className:"mpp-profile-image-wrapper"},wp.element.createElement("div",{className:"mpp-profile-image-square"},wp.element.createElement(S,{buttonProps:{className:"change-image"},onSelect:function(t){e.handleImageChange(t.id,t.url),X({profileImgID:t.id,profileImgURL:t.url})},type:"image",value:s,render:function(e){var t=e.open;return wp.element.createElement(y,{onClick:t},s?wp.element.createElement("img",{className:"profile-avatar",src:l,alt:"avatar"}):wp.element.createElement("img",{src:l,alt:"placeholder"}))}}))),R&&wp.element.createElement(N,{tagName:"div",className:"mpp-profile-text",placeholder:__("Add profile text...","metronet-profile-picture"),value:i,formattingControls:["bold","italic","strikethrough","link"],onChange:function(t){e.onChangeProfileText(t),X({profileContent:t})}}),wp.element.createElement("div",{className:"mpp-compact-meta"},M&&wp.element.createElement("div",{className:"mpp-profile-view-posts",style:{backgroundColor:A,color:I,width:"90%",margin:"0 auto 10px auto",fontSize:m+"px"}},wp.element.createElement("a",{href:p,style:{backgroundColor:A,color:I}},__("View Posts","metronet-profile-picture"))),""!=this.state.website&&U&&wp.element.createElement("div",{className:"mpp-profile-view-website",style:{backgroundColor:F,color:W,fontSize:m+"px",width:"90%",margin:"0 auto"}},wp.element.createElement("a",{href:this.state.website,style:{backgroundColor:F,color:W}},__("View Website","metronet-profile-picture"))))),1==this.state.showSocialMedia&&("regular"===this.state.theme||"compact"===this.state.theme||"profile"===this.state.theme)&&wp.element.createElement("div",{className:"mpp-social"},""!=this.state.socialFacebook&&wp.element.createElement("a",{href:this.state.socialFacebook},wp.element.createElement("svg",{className:"icon icon-facebook",role:"img",style:{fill:"custom"===this.state.socialMediaOptions?D:""}},wp.element.createElement("use",{href:"#facebook"}))),""!=this.state.socialTwitter&&wp.element.createElement("a",{href:this.state.socialTwitter},wp.element.createElement("svg",{className:"icon icon-twitter",role:"img",style:{fill:"custom"===this.state.socialMediaOptions?D:""}},wp.element.createElement("use",{href:"#twitter"}))),""!=this.state.socialInstagram&&wp.element.createElement("a",{href:this.state.socialInstagram},wp.element.createElement("svg",{className:"icon icon-instagram",role:"img",style:{fill:"custom"===this.state.socialMediaOptions?D:""}},wp.element.createElement("use",{href:"#instagram"}))),""!=this.state.socialPinterest&&wp.element.createElement("a",{href:this.state.socialPinterest},wp.element.createElement("svg",{className:"icon icon-pinterest",role:"img",style:{fill:"custom"===this.state.socialMediaOptions?D:""}},wp.element.createElement("use",{href:"#pinterest"}))),""!=this.state.socialLinkedIn&&wp.element.createElement("a",{href:this.state.socialLinkedIn},wp.element.createElement("svg",{className:"icon icon-linkedin",role:"img",style:{fill:"custom"===this.state.socialMediaOptions?D:""}},wp.element.createElement("use",{href:"#linkedin"}))),""!=this.state.socialYouTube&&wp.element.createElement("a",{href:this.state.socialYouTube},wp.element.createElement("svg",{className:"icon icon-youtube",role:"img",style:{fill:"custom"===this.state.socialMediaOptions?D:""}},wp.element.createElement("use",{href:"#youtube"}))),""!=this.state.socialGitHub&&wp.element.createElement("a",{href:this.state.socialGitHub},wp.element.createElement("svg",{className:"icon icon-github",role:"img",style:{fill:"custom"===this.state.socialMediaOptions?D:""}},wp.element.createElement("use",{href:"#github"}))),""!=this.state.socialWordPress&&wp.element.createElement("a",{href:this.state.socialWordPress},wp.element.createElement("svg",{className:"icon icon-wordpress",role:"img",style:{fill:"custom"===this.state.socialMediaOptions?D:""}},wp.element.createElement("use",{href:"#wordpress"}))))),"tabbed"===this.state.theme&&wp.element.createElement(h,null,wp.element.createElement("div",{className:c()("mpp-author-tabbed",this.state.theme,a,k,"mpp-block-profile")},wp.element.createElement("ul",{className:"mpp-author-tabs"},wp.element.createElement("li",{className:c()("mpp-tab-profile","profile"===this.state.activeTab?"active":""),onClick:this.onChangeActiveProfileTab,style:{backgroundColor:this.state.profileTabColor,color:this.state.profileTabTextColor}},wp.element.createElement(N,{tagName:"span",placeholder:__("Add tab name.","metronet-profile-picture"),value:this.state.tabbedAuthorProfile,formattingControls:[],onChange:function(t){e.onChangetabbedAuthorProfile(t),X({tabbedAuthorProfile:t})}})),wp.element.createElement("li",{className:c()("mpp-tab-posts","latest"===this.state.activeTab?"active":""),onClick:this.onChangeActivePostTab,style:{backgroundColor:this.state.profileTabPostsColor,color:this.state.profileTabPostsTextColor}},wp.element.createElement(N,{tagName:"span",placeholder:__("Add tab name.","metronet-profile-picture"),value:this.state.tabbedAuthorLatestPosts,formattingControls:[],onChange:function(t){e.onChangetabbedAuthorLatestPosts(t),X({tabbedAuthorLatestPosts:t})}}))),wp.element.createElement("div",{className:"mpp-tab-wrapper",style:{padding:j+"px",border:z+"px solid "+Z,borderRadius:q+"px",backgroundColor:d,color:T}},"profile"===this.state.activeTab&&wp.element.createElement(h,null,wp.element.createElement("div",{className:"mpp-author-social-wrapper"},wp.element.createElement("div",{className:"mpp-author-heading"},wp.element.createElement(N,{tagName:"div",className:"mpp-author-profile-heading",value:this.state.tabbedAuthorProfileHeading,formattingControls:[],onChange:function(t){e.onChangetabbedAuthorProfileHeading(t),X({profileTabHeadlineTextColor:t})},style:{backgroundColor:this.state.profileTabHeadlineColor,color:this.state.profileTabHeadlineTextColor}})),this.state.showSocialMedia&&wp.element.createElement("div",{className:"mpp-author-social"},wp.element.createElement("div",{className:"mpp-social"},""!=this.state.socialFacebook&&wp.element.createElement("a",{href:this.state.socialFacebook},wp.element.createElement("svg",{className:"icon icon-facebook",role:"img",style:{fill:"custom"===this.state.socialMediaOptions?D:""}},wp.element.createElement("use",{href:"#facebook"}))),""!=this.state.socialTwitter&&wp.element.createElement("a",{href:this.state.socialTwitter},wp.element.createElement("svg",{className:"icon icon-twitter",role:"img",style:{fill:"custom"===this.state.socialMediaOptions?D:""}},wp.element.createElement("use",{href:"#twitter"}))),""!=this.state.socialInstagram&&wp.element.createElement("a",{href:this.state.socialInstagram},wp.element.createElement("svg",{className:"icon icon-instagram",role:"img",style:{fill:"custom"===this.state.socialMediaOptions?D:""}},wp.element.createElement("use",{href:"#instagram"}))),""!=this.state.socialPinterest&&wp.element.createElement("a",{href:this.state.socialPinterest},wp.element.createElement("svg",{className:"icon icon-pinterest",role:"img",style:{fill:"custom"===this.state.socialMediaOptions?D:""}},wp.element.createElement("use",{href:"#pinterest"}))),""!=this.state.socialLinkedIn&&wp.element.createElement("a",{href:this.state.socialLinkedIn},wp.element.createElement("svg",{className:"icon icon-linkedin",role:"img",style:{fill:"custom"===this.state.socialMediaOptions?D:""}},wp.element.createElement("use",{href:"#linkedin"}))),""!=this.state.socialYouTube&&wp.element.createElement("a",{href:this.state.socialYouTube},wp.element.createElement("svg",{className:"icon icon-youtube",role:"img",style:{fill:"custom"===this.state.socialMediaOptions?D:""}},wp.element.createElement("use",{href:"#youtube"}))),""!=this.state.socialGitHub&&wp.element.createElement("a",{href:this.state.socialGitHub},wp.element.createElement("svg",{className:"icon icon-github",role:"img",style:{fill:"custom"===this.state.socialMediaOptions?D:""}},wp.element.createElement("use",{href:"#github"}))),""!=this.state.socialWordPress&&wp.element.createElement("a",{href:this.state.socialWordPress},wp.element.createElement("svg",{className:"icon icon-wordpress",role:"img",style:{fill:"custom"===this.state.socialMediaOptions?D:""}},wp.element.createElement("use",{href:"#wordpress"})))))),wp.element.createElement("div",{className:"mpp-profile-image-wrapper"},wp.element.createElement("div",{className:"mpp-profile-image-square"},wp.element.createElement(S,{buttonProps:{className:"change-image"},onSelect:function(t){e.handleImageChange(t.id,t.url),X({profileImgID:t.id,profileImgURL:t.url})},type:"image",value:s,render:function(e){var t=e.open;return wp.element.createElement(y,{onClick:t},s?wp.element.createElement("img",{className:"profile-avatar",src:l,alt:"avatar"}):wp.element.createElement("img",{src:l,alt:"placeholder"}))}}),wp.element.createElement(N,{tagName:"div",className:"mpp-author-profile-sub-heading",placeholder:__("Add profile description...","metronet-profile-picture"),value:this.state.tabbedAuthorSubHeading,formattingControls:["bold","italic","strikethrough","link"],onChange:function(t){e.onChangeTabbedSubHeading(t),X({tabbedAuthorSubHeading:t})}}))),wp.element.createElement("div",{className:"mpp-tabbed-profile-information"},V&&wp.element.createElement(N,{tagName:"div",className:"mpp-author-profile-title",placeholder:__("Add profile title...","metronet-profile-picture"),value:Y,formattingControls:["bold","italic","strikethrough","link"],onChange:function(e){X({tabbedAuthorProfileTitle:e})}}),H&&wp.element.createElement(N,{tagName:"h2",placeholder:__("Add name","metronet-profile-picture"),value:o,className:"mpp-profile-name",style:{color:T,fontSize:f+"px"},onChange:function(t){e.onChangeName(t),X({profileName:t})}}),R&&wp.element.createElement(N,{tagName:"div",className:c()("mpp-profile-text","mt-font-size-"+u),placeholder:__("Add profile text...","metronet-profile-picture"),value:i,formattingControls:["bold","italic","strikethrough","link"],onChange:function(t){e.onChangeProfileText(t),X({profileContent:t})}}))),"latest"===this.state.activeTab&&wp.element.createElement(h,null,this.state.loadingLatestPosts&&wp.element.createElement(h,null,wp.element.createElement("div",null,wp.element.createElement("div",{className:"mpp-spinner"},wp.element.createElement(v,null)))),!this.state.loadingLatestPosts&&wp.element.createElement(h,null,wp.element.createElement("ul",{className:c()("mpp-author-tab-content",this.state.profileLatestPostsOptionsValue)},this.state.latestPosts))))))))}}]),t}(f);t.a=k},function(e,t,r){"use strict";function o(e){var t=new a(e),r=i(a.prototype.request,t);return n.extend(r,a.prototype,t),n.extend(r,t),r}var n=r(0),i=r(4),a=r(16),l=r(1),s=o(l);s.Axios=a,s.create=function(e){return o(n.merge(l,e))},s.Cancel=r(8),s.CancelToken=r(30),s.isCancel=r(7),s.all=function(e){return Promise.all(e)},s.spread=r(31),e.exports=s,e.exports.default=s},function(e,t){e.exports=function(e){return null!=e&&null!=e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},function(e,t,r){"use strict";function o(e){this.defaults=e,this.interceptors={request:new a,response:new a}}var n=r(1),i=r(0),a=r(25),l=r(26);o.prototype.request=function(e){"string"===typeof e&&(e=i.merge({url:arguments[0]},arguments[1])),e=i.merge(n,{method:"get"},this.defaults,e),e.method=e.method.toLowerCase();var t=[l,void 0],r=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)r=r.then(t.shift(),t.shift());return r},i.forEach(["delete","get","head","options"],function(e){o.prototype[e]=function(t,r){return this.request(i.merge(r||{},{method:e,url:t}))}}),i.forEach(["post","put","patch"],function(e){o.prototype[e]=function(t,r,o){return this.request(i.merge(o||{},{method:e,url:t,data:r}))}}),e.exports=o},function(e,t){function r(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function n(e){if(c===setTimeout)return setTimeout(e,0);if((c===r||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function i(e){if(u===clearTimeout)return clearTimeout(e);if((u===o||!u)&&clearTimeout)return u=clearTimeout,clearTimeout(e);try{return u(e)}catch(t){try{return u.call(null,e)}catch(t){return u.call(this,e)}}}function a(){d&&f&&(d=!1,f.length?h=f.concat(h):g=-1,h.length&&l())}function l(){if(!d){var e=n(a);d=!0;for(var t=h.length;t;){for(f=h,h=[];++g<t;)f&&f[g].run();g=-1,t=h.length}f=null,d=!1,i(e)}}function s(e,t){this.fun=e,this.array=t}function p(){}var c,u,m=e.exports={};!function(){try{c="function"===typeof setTimeout?setTimeout:r}catch(e){c=r}try{u="function"===typeof clearTimeout?clearTimeout:o}catch(e){u=o}}();var f,h=[],d=!1,g=-1;m.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];h.push(new s(e,t)),1!==h.length||d||n(l)},s.prototype.run=function(){this.fun.apply(null,this.array)},m.title="browser",m.browser=!0,m.env={},m.argv=[],m.version="",m.versions={},m.on=p,m.addListener=p,m.once=p,m.off=p,m.removeListener=p,m.removeAllListeners=p,m.emit=p,m.prependListener=p,m.prependOnceListener=p,m.listeners=function(e){return[]},m.binding=function(e){throw new Error("process.binding is not supported")},m.cwd=function(){return"/"},m.chdir=function(e){throw new Error("process.chdir is not supported")},m.umask=function(){return 0}},function(e,t,r){"use strict";var o=r(0);e.exports=function(e,t){o.forEach(e,function(r,o){o!==t&&o.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[o])})}},function(e,t,r){"use strict";var o=r(6);e.exports=function(e,t,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(o("Request failed with status code "+r.status,r.config,null,r.request,r)):e(r)}},function(e,t,r){"use strict";e.exports=function(e,t,r,o,n){return e.config=t,r&&(e.code=r),e.request=o,e.response=n,e}},function(e,t,r){"use strict";function o(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var n=r(0);e.exports=function(e,t,r){if(!t)return e;var i;if(r)i=r(t);else if(n.isURLSearchParams(t))i=t.toString();else{var a=[];n.forEach(t,function(e,t){null!==e&&"undefined"!==typeof e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))}))}),i=a.join("&")}return i&&(e+=(-1===e.indexOf("?")?"?":"&")+i),e}},function(e,t,r){"use strict";var o=r(0),n=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,r,i,a={};return e?(o.forEach(e.split("\n"),function(e){if(i=e.indexOf(":"),t=o.trim(e.substr(0,i)).toLowerCase(),r=o.trim(e.substr(i+1)),t){if(a[t]&&n.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([r]):a[t]?a[t]+", "+r:r}}),a):a}},function(e,t,r){"use strict";var o=r(0);e.exports=o.isStandardBrowserEnv()?function(){function e(e){var t=e;return r&&(n.setAttribute("href",t),t=n.href),n.setAttribute("href",t),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}var t,r=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");return t=e(window.location.href),function(r){var n=o.isString(r)?e(r):r;return n.protocol===t.protocol&&n.host===t.host}}():function(){return function(){return!0}}()},function(e,t,r){"use strict";var o=r(0);e.exports=o.isStandardBrowserEnv()?function(){return{write:function(e,t,r,n,i,a){var l=[];l.push(e+"="+encodeURIComponent(t)),o.isNumber(r)&&l.push("expires="+new Date(r).toGMTString()),o.isString(n)&&l.push("path="+n),o.isString(i)&&l.push("domain="+i),!0===a&&l.push("secure"),document.cookie=l.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},function(e,t,r){"use strict";function o(){this.handlers=[]}var n=r(0);o.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){n.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=o},function(e,t,r){"use strict";function o(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var n=r(0),i=r(27),a=r(7),l=r(1),s=r(28),p=r(29);e.exports=function(e){return o(e),e.baseURL&&!s(e.url)&&(e.url=p(e.baseURL,e.url)),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),n.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||l.adapter)(e).then(function(t){return o(e),t.data=i(t.data,t.headers,e.transformResponse),t},function(t){return a(t)||(o(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,r){"use strict";var o=r(0);e.exports=function(e,t,r){return o.forEach(r,function(r){e=r(e,t)}),e}},function(e,t,r){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,r){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,r){"use strict";function o(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var r=this;e(function(e){r.reason||(r.reason=new n(e),t(r.reason))})}var n=r(8);o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o(function(t){e=t}),cancel:e}},e.exports=o},function(e,t,r){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,r){"use strict";function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=r(3),s=r.n(l),p=r(2),c=r.n(p),u=function(){function e(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}(),m=wp.element,f=m.Component,h=m.Fragment,__=wp.i18n.__,d=wp.components,g=d.PanelBody,b=d.Placeholder,w=(d.QueryControls,d.RangeControl),C=d.SelectControl,v=d.Spinner,E=(d.TextControl,d.ToggleControl),_=(d.Toolbar,d.withAPIData,d.ColorPalette,d.Button),y=wp.editor,T=y.InspectorControls,P=y.BlockControls,S=y.MediaUpload,N=y.RichText,x=y.AlignmentToolbar,k=y.PanelColorSettings,A=function(e){function t(){n(this,t);var e=i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.get_users=function(){s.a.post(mpp_gutenberg.rest_url+"/get_users",{},{headers:{"X-WP-Nonce":mpp_gutenberg.nonce}}).then(function(t){var r,n=Array(),i=Array(),a=0,l="",s=0,p="",c="",u="",m="";$.each(t.data,function(e,t){n[t.ID]={profile_pictures:t.profile_pictures,has_profile_picture:t.has_profile_picture,display_name:t.display_name,description:t.description,is_user_logged_in:t.is_user_logged_in,profile_picture_id:t.profile_picture_id,default_image:t.default_image,permalink:t.permalink},t.is_user_logged_in&&(a=t.ID),i.push({value:t.ID,label:t.display_name})}),0!==e.props.attributes.user_id&&(a=e.props.attributes.user_id);var f=n[a];f.has_profile_picture?(l=e.props.attributes.profileImgURL.length>0?e.props.attributes.profileImgURL:f.profile_pictures.thumbnail,s=e.props.attributes.profileImgID.length>0?e.props.attributes.profileImgID:f.profile_picture_id,p=e.props.attributes.profileName.length>0?e.props.attributes.profileName:f.display_name,u=e.props.attributes.profileTitle.length>0?e.props.attributes.profileTitle:"",m=f.permalink,c=e.props.attributes.profileContent.length>0?e.props.attributes.profileContent:f.description):(p=e.props.attributes.profileName.length>0?e.props.attributes.profileName:f.display_name,u=e.props.attributes.profileTitle.length>0?e.props.attributes.profileTitle:"",c=e.props.attributes.profileContent.length>0?e.props.attributes.profileContent:f.description,l=e.props.attributes.profileImgURL.length>0?e.props.attributes.profileImgURL:f.default_image,s=e.props.attributes.profileImgID.length>0?e.props.attributes.profileImgID:0,m=f.permalink),void 0==c&&(c=""),e.setState((r={loading:!1,users:n,active_user:a,user_list:i,profile_picture:l,profile_picture_id:s},o(r,"active_user",a),o(r,"profile_name",p),o(r,"profile_title",u),o(r,"profile_description",c),o(r,"profile_url",m),r)),e.props.setAttributes({profileContent:c,profileName:p,profileTitle:u,profileURL:m,profileImgID:s,profileImgURL:l})})},e.on_user_change=function(t){var r=e.state.users[t],o="",n=0;r.has_profile_picture?(o=e.state.users[t].profile_pictures.thumbnail,n=e.state.users[t].profile_picture_id):(o=mpp_gutenberg.mystery_man,n=0);var i=e.state.users[t].description;void 0===i&&(i=""),e.props.setAttributes({profileName:e.state.users[t].display_name,profileContent:i,profileTitle:"",profileURL:e.state.users[t].permalink,profileImgURL:o}),e.setState({profile_name:e.state.users[t].display_name,profile_description:i,profile_title:"",profile_picture:o,profile_picture_id:n,active_user:t,profile_url:e.state.users[t].permalink})},e.componentDidMount=function(){e.get_users()},e.handleImageChange=function(t,r){e.setState({profile_picture:r,profile_picture_id:t})},e.onChangeName=function(t){e.setState({profile_name:t})},e.onChangeTitle=function(t){e.setState({profile_title:t})},e.onChangeProfileText=function(t){e.setState({profile_description:t})},e.state={loading:!0,users:!1,user_list:!1,profile_picture:!1,profile_picture_id:0,active_user:!1,profile_description:"",profile_name:"",profile_title:""},e}return a(t,e),u(t,[{key:"render",value:function(){var e=this,t=this.props,r=t.attributes,o=r.profileName,n=r.profileTitle,i=r.profileContent,a=r.profileAlignment,l=r.profileImgURL,s=r.profileImgID,p=r.profileURL,u=r.profileFontSize,m=r.profileBackgroundColor,f=r.profileTextColor,d=r.profileAvatarShape,y=r.profileViewPostsBackgroundColor,A=r.profileViewPostsTextColor,I=r.showTitle,L=r.showName,O=r.showDescription,V=r.showViewPosts,H=(t.attributes,t.isSelected,t.editable,t.className,t.setAttributes);this.state.profile_pictures;s=this.state.profile_picture_id,l=this.state.profile_picture,o=this.state.profile_name,i=this.state.profile_description,n=this.state.profile_title,p=this.state.profile_url;var R=function(e){return H({profileBackgroundColor:e})},M=function(e){return H({profileTextColor:e})},B=function(e){return H({profileViewPostsBackgroundColor:e})},U=function(e){return H({profileViewPostsTextColor:e})},D=[{value:"square",label:__("Square","metronet-profile-picture")},{value:"round",label:__("Round","metronet-profile-picture")}];return wp.element.createElement(h,null,this.state.loading&&wp.element.createElement(h,null,wp.element.createElement(b,null,__("Loading...","metronet-profile-picture"),wp.element.createElement(v,null))),!this.state.loading&&wp.element.createElement(h,null,wp.element.createElement(T,null,wp.element.createElement(g,{title:__("User Profile Settings","metronet-profile-picture")},wp.element.createElement(C,{label:__("Select a user","metronet-profile-picture"),value:this.state.active_user,options:this.state.user_list,onChange:function(t){e.on_user_change(t),H({user_id:Number(t)})}}),wp.element.createElement(w,{label:__("Font Size","metronet-profile-picture"),value:u,onChange:function(t){return e.props.setAttributes({profileFontSize:t})},min:14,max:24,step:1}),wp.element.createElement(C,{label:__("Avatar Shape","metronet-profile-picture"),description:__("Choose between a round or square avatar shape.","metronet-profile-picture"),options:D,value:d,onChange:function(t){return e.props.setAttributes({profileAvatarShape:t})}}),wp.element.createElement(k,{title:__("Background Color","metronet-profile-picture"),initialOpen:!1,colorSettings:[{value:m,onChange:R,label:__("Background Color","metronet-profile-picture")}]}),wp.element.createElement(k,{title:__("Text Color","metronet-profile-picture"),initialOpen:!1,colorSettings:[{value:f,onChange:M,label:__("Text Color","metronet-profile-picture")}]}),wp.element.createElement(k,{title:__("View Posts Background Color","metronet-profile-picture"),initialOpen:!1,colorSettings:[{value:y,onChange:B,label:__("View Posts Background","metronet-profile-picture")}]}),wp.element.createElement(k,{title:__("View Posts Text Color","metronet-profile-picture"),initialOpen:!1,colorSettings:[{value:A,onChange:U,label:__("View Posts Text Color","metronet-profile-picture")}]}),wp.element.createElement(E,{label:__("Show Name","metronet-profile-picture"),checked:L,onChange:function(){return e.props.setAttributes({showName:!L})}}),wp.element.createElement(E,{label:__("Show Title","metronet-profile-picture"),checked:I,onChange:function(){return e.props.setAttributes({showTitle:!I})}}),wp.element.createElement(E,{label:__("Show Description","metronet-profile-picture"),checked:O,onChange:function(){return e.props.setAttributes({showDescription:!O})}}),wp.element.createElement(E,{label:__("Show View Posts","metronet-profile-picture"),checked:V,onChange:function(){return e.props.setAttributes({showViewPosts:!V})}}))),wp.element.createElement(P,{key:"controls"},wp.element.createElement(x,{value:a,onChange:function(e){return H({profileAlignment:e})}})),wp.element.createElement("div",{className:c()("mpp-profile-wrap","legacy",a,d,"mt-font-size-"+u,"mpp-block-profile"),style:{backgroundColor:m,color:f}},wp.element.createElement("div",{className:c()("mpp-profile-gutenberg-wrap")},wp.element.createElement("div",{className:"mpp-profile-image-wrapper"},wp.element.createElement("div",{className:"mpp-profile-image-square"},wp.element.createElement(S,{buttonProps:{className:"change-image"},onSelect:function(t){e.handleImageChange(t.id,t.url),H({profileImgID:t.id,profileImgURL:t.url})},type:"image",value:s,render:function(e){var t=e.open;return wp.element.createElement(_,{onClick:t},s?wp.element.createElement("img",{class:"profile-avatar",src:l,alt:"avatar"}):wp.element.createElement("img",{src:l,alt:"placeholder"}))}}))),wp.element.createElement("div",{className:"mpp-content-wrap"},L&&wp.element.createElement(N,{tagName:"h2",placeholder:__("Add name","metronet-profile-picture"),value:o,className:"mpp-profile-name",style:{color:f},onChange:function(t){e.onChangeName(t),H({profileName:t})}}),I&&wp.element.createElement(N,{tagName:"p",placeholder:__("Add title","atomic-blocks"),value:n,className:"mpp-profile-title",style:{color:f},onChange:function(t){e.onChangeTitle(t),H({profileTitle:t})}}),O&&wp.element.createElement(N,{tagName:"div",className:"mpp-profile-text",placeholder:__("Add profile text...","metronet-profile-picture"),value:i,formattingControls:["bold","italic","strikethrough","link"],onChange:function(t){e.onChangeProfileText(t),H({profileContent:t})}}))),p&&!!p.length&&wp.element.createElement("div",{className:"mpp-gutenberg-view-posts"},V&&wp.element.createElement("div",{className:"mpp-profile-view-posts",style:{backgroundColor:y,color:A}},wp.element.createElement("a",{href:p,style:{backgroundColor:y,color:A}},__("View Posts","metronet-profile-picture")))))))}}]),t}(f);t.a=A}]);
|
1 |
+
!function(e){function t(o){if(r[o])return r[o].exports;var n=r[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,t),n.l=!0,n.exports}var r={};t.m=e,t.c=r,t.d=function(e,r,o){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=9)}([function(e,t,r){"use strict";function o(e){return"[object Array]"===T.call(e)}function n(e){return"[object ArrayBuffer]"===T.call(e)}function i(e){return"undefined"!==typeof FormData&&e instanceof FormData}function a(e){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer}function l(e){return"string"===typeof e}function s(e){return"number"===typeof e}function p(e){return"undefined"===typeof e}function c(e){return null!==e&&"object"===typeof e}function u(e){return"[object Date]"===T.call(e)}function m(e){return"[object File]"===T.call(e)}function f(e){return"[object Blob]"===T.call(e)}function h(e){return"[object Function]"===T.call(e)}function d(e){return c(e)&&h(e.pipe)}function g(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams}function b(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function w(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function C(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),o(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}function v(){function e(e,r){"object"===typeof t[r]&&"object"===typeof e?t[r]=v(t[r],e):t[r]=e}for(var t={},r=0,o=arguments.length;r<o;r++)C(arguments[r],e);return t}function E(e,t,r){return C(t,function(t,o){e[o]=r&&"function"===typeof t?_(t,r):t}),e}var _=r(4),y=r(15),T=Object.prototype.toString;e.exports={isArray:o,isArrayBuffer:n,isBuffer:y,isFormData:i,isArrayBufferView:a,isString:l,isNumber:s,isObject:c,isUndefined:p,isDate:u,isFile:m,isBlob:f,isFunction:h,isStream:d,isURLSearchParams:g,isStandardBrowserEnv:w,forEach:C,merge:v,extend:E,trim:b}},function(e,t,r){"use strict";(function(t){function o(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var n=r(0),i=r(18),a={"Content-Type":"application/x-www-form-urlencoded"},l={adapter:function(){var e;return"undefined"!==typeof XMLHttpRequest?e=r(5):"undefined"!==typeof t&&(e=r(5)),e}(),transformRequest:[function(e,t){return i(t,"Content-Type"),n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)?e:n.isArrayBufferView(e)?e.buffer:n.isURLSearchParams(e)?(o(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):n.isObject(e)?(o(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"===typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}};l.headers={common:{Accept:"application/json, text/plain, */*"}},n.forEach(["delete","get","head"],function(e){l.headers[e]={}}),n.forEach(["post","put","patch"],function(e){l.headers[e]=n.merge(a)}),e.exports=l}).call(t,r(17))},function(e,t,r){var o,n;!function(){"use strict";function r(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var n=typeof o;if("string"===n||"number"===n)e.push(o);else if(Array.isArray(o)&&o.length){var a=r.apply(null,o);a&&e.push(a)}else if("object"===n)for(var l in o)i.call(o,l)&&o[l]&&e.push(l)}}return e.join(" ")}var i={}.hasOwnProperty;"undefined"!==typeof e&&e.exports?(r.default=r,e.exports=r):(o=[],void 0!==(n=function(){return r}.apply(t,o))&&(e.exports=n))}()},function(e,t,r){e.exports=r(14)},function(e,t,r){"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),o=0;o<r.length;o++)r[o]=arguments[o];return e.apply(t,r)}}},function(e,t,r){"use strict";var o=r(0),n=r(19),i=r(21),a=r(22),l=r(23),s=r(6);e.exports=function(e){return new Promise(function(t,p){var c=e.data,u=e.headers;o.isFormData(c)&&delete u["Content-Type"];var m=new XMLHttpRequest;if(e.auth){var f=e.auth.username||"",h=e.auth.password||"";u.Authorization="Basic "+btoa(f+":"+h)}if(m.open(e.method.toUpperCase(),i(e.url,e.params,e.paramsSerializer),!0),m.timeout=e.timeout,m.onreadystatechange=function(){if(m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in m?a(m.getAllResponseHeaders()):null,o=e.responseType&&"text"!==e.responseType?m.response:m.responseText,i={data:o,status:m.status,statusText:m.statusText,headers:r,config:e,request:m};n(t,p,i),m=null}},m.onerror=function(){p(s("Network Error",e,null,m)),m=null},m.ontimeout=function(){p(s("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",m)),m=null},o.isStandardBrowserEnv()){var d=r(24),g=(e.withCredentials||l(e.url))&&e.xsrfCookieName?d.read(e.xsrfCookieName):void 0;g&&(u[e.xsrfHeaderName]=g)}if("setRequestHeader"in m&&o.forEach(u,function(e,t){"undefined"===typeof c&&"content-type"===t.toLowerCase()?delete u[t]:m.setRequestHeader(t,e)}),e.withCredentials&&(m.withCredentials=!0),e.responseType)try{m.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"===typeof e.onDownloadProgress&&m.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&m.upload&&m.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){m&&(m.abort(),p(e),m=null)}),void 0===c&&(c=null),m.send(c)})}},function(e,t,r){"use strict";var o=r(20);e.exports=function(e,t,r,n,i){var a=new Error(e);return o(a,t,r,n,i)}},function(e,t,r){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,r){"use strict";function o(e){this.message=e}o.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},o.prototype.__CANCEL__=!0,e.exports=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});r(10)},function(e,t,r){"use strict";var o=r(11),n=(r.n(o),r(12)),i=(r.n(n),r(13)),a=r(32),l=r(2),s=r.n(l),p=wp.i18n.__,c=wp.blocks.registerBlockType,u=wp.element,m=(u.Component,u.Fragment),f=wp.editor.RichText,h={profileName:{type:"string",default:""},profileTitle:{type:"string",default:""},profileContent:{type:"string",default:""},profileAlignment:{type:"string"},profileImgURL:{type:"string",source:"attribute",attribute:"src",selector:"img",default:""},profileImgID:{type:"number",default:""},profileURL:{type:"string",default:""},profileBackgroundColor:{type:"string",default:"#f2f2f2"},profileTextColor:{type:"string",default:"#32373c"},profileViewPostsBackgroundColor:{type:"string",default:"#cf6d38"},profileViewPostsTextColor:{type:"string",default:"#FFFFFF"},profileViewPostsWidth:{type:"number",default:100},profileFontSize:{type:"number",default:18},profileAvatarShape:{type:"string",default:"square"},showName:{type:"bool",default:!0},showTitle:{type:"bool",default:!0},showDescription:{type:"bool",default:!0},showViewPosts:{type:"bool",default:!0},user_id:{type:"number",default:0}};c("mpp/user-profile",{title:p("User Profile Legacy","metronet-profile-picture"),icon:wp.element.createElement("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 753.53 979.74"},wp.element.createElement("title",null,"upp"),wp.element.createElement("path",{d:"M806.37,185.9c0,40.27-30.49,72.9-68.11,72.9s-68.17-32.63-68.17-72.9S700.62,113,738.26,113,806.37,145.64,806.37,185.9Z",transform:"translate(-123.47 -11)",fill:"#4063ad"}),wp.element.createElement("path",{d:"M330.36,183.8c0,40.27-30.49,72.9-68.12,72.9s-68.17-32.63-68.17-72.9,30.52-72.87,68.17-72.87S330.36,143.56,330.36,183.8Z",transform:"translate(-123.47 -11)",fill:"#a34d9c"}),wp.element.createElement("path",{d:"M331.3,888.13V698.21H329c-31.64,0-57.28-27.45-57.28-61.29V336.5a118.37,118.37,0,0,1,5.43-34.79H179.84c-31.94,0-56.37,31.57-56.37,56.34V601.46h48.32V888.13Z",transform:"translate(-123.47 -11)",fill:"#a34d9c"}),wp.element.createElement("path",{d:"M388.59,636.92V990.74H611.88V636.92H671.5V336.5c0-30.63-27.64-69.57-69.6-69.57H398.56c-39.44,0-69.61,38.94-69.61,69.57V636.92Z",transform:"translate(-123.47 -11)",fill:"#f4831f"}),wp.element.createElement("path",{d:"M584.3,101c0,49.69-37.63,90-84,90S416.12,150.67,416.12,101s37.66-90,84.14-90S584.3,51.27,584.3,101Z",transform:"translate(-123.47 -11)",fill:"#f4831f"}),wp.element.createElement("path",{d:"M820.61,303.79H724.08a121.69,121.69,0,0,1,4.7,32.71V636.92c0,33.84-25.64,61.29-57.28,61.29h-2.33v192H828.7V603.54H877V360.16C877,335.36,854.62,303.79,820.61,303.79Z",transform:"translate(-123.47 -11)",fill:"#4063ad"})),category:"mpp",attributes:h,edit:a.a,save:function(e){var t=e.attributes,r=t.profileName,o=t.profileTitle,n=t.profileContent,i=t.profileAlignment,a=t.profileImgURL,l=(t.profileImgID,t.profileFontSize),c=t.profileBackgroundColor,u=t.profileTextColor,h=(t.profileLinkColor,t.profileAvatarShape),d=t.profileViewPostsBackgroundColor,g=t.profileViewPostsTextColor,b=t.profileURL,w=t.showTitle,C=t.showName,v=t.showDescription,E=t.showViewPosts;return wp.element.createElement(m,null,wp.element.createElement("div",{className:s()("mpp-profile-wrap",i,h,"mt-font-size-"+l,"mpp-block-profile"),style:{backgroundColor:c,color:u}},wp.element.createElement("div",{className:s()("mpp-profile-gutenberg-wrap","mpp-block-profile"),style:{backgroundColor:c,color:u}},wp.element.createElement("div",{className:"mpp-profile-image-wrapper"},wp.element.createElement("div",{className:"mpp-profile-image-square"},wp.element.createElement("img",{className:"mpp-profile-avatar",src:a,alt:"avatar"}))),wp.element.createElement("div",{className:"mpp-content-wrap"},r&&!!r.length&&C&&wp.element.createElement(f.Content,{tagName:"h2",className:"mpp-profile-name",style:{color:u},value:r}),o&&!!o.length&&w&&wp.element.createElement(f.Content,{tagName:"p",className:"mpp-profile-title",style:{color:u},value:o}),n&&!!n.length&&v&&wp.element.createElement(f.Content,{tagName:"div",className:"mpp-profile-text",value:n}))),b&&!!b.length&&wp.element.createElement("div",{className:"mpp-gutenberg-view-posts"},E&&wp.element.createElement("div",{className:"mpp-profile-view-posts",style:{backgroundColor:d,color:g}},wp.element.createElement("a",{href:b,style:{backgroundColor:d,color:g}},p("View Posts","metronet-profile-picture"))))))}}),c("mpp/user-profile-enhanced",{title:p("User Profile","metronet-profile-picture"),icon:wp.element.createElement("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 753.53 979.74"},wp.element.createElement("title",null,"upp"),wp.element.createElement("path",{d:"M806.37,185.9c0,40.27-30.49,72.9-68.11,72.9s-68.17-32.63-68.17-72.9S700.62,113,738.26,113,806.37,145.64,806.37,185.9Z",transform:"translate(-123.47 -11)",fill:"#4063ad"}),wp.element.createElement("path",{d:"M330.36,183.8c0,40.27-30.49,72.9-68.12,72.9s-68.17-32.63-68.17-72.9,30.52-72.87,68.17-72.87S330.36,143.56,330.36,183.8Z",transform:"translate(-123.47 -11)",fill:"#a34d9c"}),wp.element.createElement("path",{d:"M331.3,888.13V698.21H329c-31.64,0-57.28-27.45-57.28-61.29V336.5a118.37,118.37,0,0,1,5.43-34.79H179.84c-31.94,0-56.37,31.57-56.37,56.34V601.46h48.32V888.13Z",transform:"translate(-123.47 -11)",fill:"#a34d9c"}),wp.element.createElement("path",{d:"M388.59,636.92V990.74H611.88V636.92H671.5V336.5c0-30.63-27.64-69.57-69.6-69.57H398.56c-39.44,0-69.61,38.94-69.61,69.57V636.92Z",transform:"translate(-123.47 -11)",fill:"#f4831f"}),wp.element.createElement("path",{d:"M584.3,101c0,49.69-37.63,90-84,90S416.12,150.67,416.12,101s37.66-90,84.14-90S584.3,51.27,584.3,101Z",transform:"translate(-123.47 -11)",fill:"#f4831f"}),wp.element.createElement("path",{d:"M820.61,303.79H724.08a121.69,121.69,0,0,1,4.7,32.71V636.92c0,33.84-25.64,61.29-57.28,61.29h-2.33v192H828.7V603.54H877V360.16C877,335.36,854.62,303.79,820.61,303.79Z",transform:"translate(-123.47 -11)",fill:"#4063ad"})),category:"mpp",getEditWrapperProps:function(e){},edit:i.a,save:function(){return null}})},function(e,t){},function(e,t){},function(e,t,r){"use strict";function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=r(3),s=r.n(l),p=r(2),c=r.n(p),u=function(){function e(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}(),m=wp.element,f=m.Component,h=m.Fragment,d=wp.i18n.__,g=wp.components,b=g.PanelBody,w=g.Placeholder,C=(g.QueryControls,g.RangeControl),v=g.SelectControl,E=g.Spinner,_=g.TextControl,y=g.ToggleControl,T=(g.Toolbar,g.withAPIData,g.ColorPalette,g.Button),P=wp.editor,S=P.InspectorControls,N=(P.BlockControls,P.MediaUpload),x=P.RichText,k=(P.AlignmentToolbar,P.PanelColorSettings),A=function(e){function t(){n(this,t);var e=i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));e.get_users=function(){s.a.post(mpp_gutenberg.rest_url+"/get_users",{},{headers:{"X-WP-Nonce":mpp_gutenberg.nonce}}).then(function(t){var r,n=Array(),i=Array(),a=0,l="",s=0,p="",c="",u="",m="",f="";jQuery.each(t.data,function(e,t){n[t.ID]={profile_pictures:t.profile_pictures,has_profile_picture:t.has_profile_picture,display_name:t.display_name,description:t.description,is_user_logged_in:t.is_user_logged_in,profile_picture_id:t.profile_picture_id,default_image:t.default_image,permalink:t.permalink},t.is_user_logged_in&&(a=t.ID),i.push({value:t.ID,label:t.display_name})}),0!==e.props.attributes.user_id&&(a=e.props.attributes.user_id);var h=n[a];h.has_profile_picture?(l=e.props.attributes.profileImgURL.length>0?e.props.attributes.profileImgURL:h.profile_pictures.thumbnail,s=e.props.attributes.profileImgID.length>0?e.props.attributes.profileImgID:h.profile_picture_id,p=e.props.attributes.profileName.length>0?e.props.attributes.profileName:h.display_name,u=e.props.attributes.profileTitle.length>0?e.props.attributes.profileTitle:"",m=h.permalink,c=e.props.attributes.profileContent.length>0?e.props.attributes.profileContent:h.description,f=e.props.attributes.showWebsite):(p=e.props.attributes.profileName.length>0?e.props.attributes.profileName:h.display_name,u=e.props.attributes.profileTitle.length>0?e.props.attributes.profileTitle:"",c=e.props.attributes.profileContent.length>0?e.props.attributes.profileContent:h.description,l=e.props.attributes.profileImgURL.length>0?e.props.attributes.profileImgURL:h.default_image,s=e.props.attributes.profileImgID.length>0?e.props.attributes.profileImgID:0,m=h.permalink,f=e.props.attributes.showWebsite),void 0==c&&(c=""),e.setState((r={loading:!1,users:n,active_user:a,user_list:i,profile_picture:l,profile_picture_id:s},o(r,"active_user",a),o(r,"profile_name",p),o(r,"profile_name_unfiltered",h.display_name),o(r,"profile_title",u),o(r,"profile_description",c),o(r,"profile_url",m),o(r,"show_website",f),r)),e.props.setAttributes(o({profileContent:c,profileName:p,profileTitle:u,profileURL:m,profileImgID:s,profileImgURL:l,showWebsite:f,showSocialMedia:!0},"profileName",h.display_name))})},e.on_user_change=function(t){var r=e.state.users[t],n="",i=0,a="";r.has_profile_picture?(n=e.state.users[t].profile_pictures.thumbnail,i=e.state.users[t].profile_picture_id):(n=mpp_gutenberg.mystery_man,i=0);var l=e.state.users[t].description;void 0===l&&(l=""),a=e.state.users[t].display_name,e.props.setAttributes(o({profileName:a,profileContent:l,profileTitle:"",profileURL:e.state.users[t].permalink,profileImgURL:n,tabbedAuthorSubHeading:"",tabbedAuthorProfileTitle:"",socialFacebook:"",socialGitHub:"",socialInstagram:"",socialLinkedIn:"",socialPinterest:"",socialTwitter:"",socialWordPress:"",socialYouTube:""},"profileName",e.state.users[t].display_name)),e.setState({profile_name_unfiltered:e.state.users[t].display_name,profile_name:a,profile_description:l,profile_title:"",profile_picture:n,profile_picture_id:i,active_user:t,profile_url:e.state.users[t].permalink,socialFacebook:"",socialGitHub:"",socialInstagram:"",socialLinkedIn:"",socialPinterest:"",socialTwitter:"",socialWordPress:"",socialYouTube:""}),e.getLatestPosts()},e.getLatestPosts=function(){e.setState({loadingLatestPosts:!0});s.a.post(mpp_gutenberg.rest_url+"/get_posts",{user_id:e.state.active_user},{headers:{"X-WP-Nonce":mpp_gutenberg.nonce}}).then(function(t){var r=t.data,o=r.map(function(e){return wp.element.createElement("li",{key:e.ID},wp.element.createElement("a",{href:e.permalink},e.post_title))});e.setState({loadingLatestPosts:!1,latestPosts:o})})},e.componentDidMount=function(){e.get_users()},e.handleImageChange=function(t,r){e.setState({profile_picture:r,profile_picture_id:t})},e.onChangeName=function(t){e.setState({profile_name:t})},e.onChangeTitle=function(t){e.setState({profile_title:t})},e.onChangeProfileText=function(t){e.setState({profile_description:t})},e.onThemeChange=function(t){e.setState({theme:t})},e.handleFacebookChange=function(t){e.setState({socialFacebook:t})},e.handleYouTubeChange=function(t){e.setState({socialYouTube:t})},e.handleGitHubChange=function(t){e.setState({socialGitHub:t})},e.handleLinkedInChange=function(t){e.setState({socialLinkedIn:t})},e.handleTwitterChange=function(t){e.setState({socialTwitter:t})},e.handleWordPressChange=function(t){e.setState({socialWordPress:t})},e.handleWebsiteChange=function(t){e.setState({website:t}),""!==t&&e.props.setAttributes({showWebsite:!0})},e.handleInstagramChange=function(t){e.setState({socialInstagram:t})},e.handlePinterestChange=function(t){e.setState({socialPinterest:t})},e.handleSocialMediaChange=function(t){e.setState({showSocialMedia:t}),e.props.setAttributes({showSocialMedia:t})},e.handleSocialMediaOptionChange=function(t){e.setState({socialMediaOptions:t})},e.onChangeTabbedProfileText=function(t){e.setState({tabbedAuthorProfile:t})},e.onChangeTabbedSubHeading=function(t){e.setState({tabbedAuthorSubHeading:t})},e.onChangeActiveProfileTab=function(){e.setState({activeTab:"profile"})},e.onChangeActivePostTab=function(){e.setState({activeTab:"latest",loadingLatestPosts:!0}),e.getLatestPosts()},e.onChangetabbedAuthorProfile=function(t){e.setState({tabbedAuthorProfile:t})},e.onChangetabbedAuthorProfileHeading=function(t){e.setState({tabbedAuthorProfileHeading:t})},e.onChangetabbedAuthorLatestPosts=function(t){e.setState({tabbedAuthorLatestPosts:t})},e.onChangeProfileTabColor=function(t){e.setState({profileTabColor:t}),e.props.setAttributes({profileTabColor:t})},e.onChangePostsTabColor=function(t){e.setState({profileTabPostsColor:t}),e.props.setAttributes({profileTabPostsColor:t})},e.onChangePostsTabHeadlineColor=function(t){e.setState({profileTabHeadlineColor:t}),e.props.setAttributes({profileTabHeadlineColor:t})},e.onChangeProfileTabPostColorText=function(t){e.setState({profileTabPostsTextColor:t}),e.props.setAttributes({profileTabPostsTextColor:t})},e.onChangeProfileTabHeadlineColorText=function(t){e.setState({profileTabHeadlineTextColor:t}),e.props.setAttributes({profileTabHeadlineTextColor:t})},e.onChangeProfileTabColorText=function(t){e.setState({profileTabTextColor:t}),e.props.setAttributes({profileTabTextColor:t})},e.onLatestPostsChange=function(t){e.setState({profileLatestPostsOptionsValue:t})},e.onCompactAlignmentChange=function(t){e.setState({profileCompactAlignment:t})};var r=Array();return r.push({value:"regular",label:d("Regular","metronet-profile-picture")}),r.push({value:"profile",label:d("Profile","metronet-profile-picture")}),r.push({value:"tabbed",label:d("Tabbed","metronet-profile-picture")}),r.push({value:"compact",label:d("Compact","metronet-profile-picture")}),e.state={loading:!0,users:!1,user_list:!1,profile_picture:e.props.attributes.profileImgURL,profile_picture_id:e.props.attributes.profileImgID,active_user:!1,profile_description:"",profile_name:"",profile_name_unfiltered:"",profile_title:"",show_website:e.props.attributes.showWebsite,profileViewPosts:e.props.attributes.profileViewPosts,profileViewWebsite:e.props.attributes.profileViewWebsite,theme:e.props.attributes.theme,themes:r,socialFacebook:e.props.attributes.socialFacebook,socialGitHub:e.props.attributes.socialGitHub,socialLinkedIn:e.props.attributes.socialLinkedIn,socialPinterest:e.props.attributes.socialPinterest,socialTwitter:e.props.attributes.socialTwitter,socialWordPress:e.props.attributes.socialWordPress,socialYouTube:e.props.attributes.socialYouTube,socialInstagram:e.props.attributes.socialInstagram,website:e.props.attributes.website,showSocialMedia:!0,socialMediaOptions:e.props.attributes.socialMediaOptions,socialMediaColors:e.props.attributes.socialMediaColors,tabbedAuthorProfile:e.props.attributes.tabbedAuthorProfile,tabbedAuthorLatestPosts:e.props.attributes.tabbedAuthorLatestPosts,tabbedAuthorSubHeading:e.props.attributes.tabbedAuthorSubHeading,tabbedAuthorProfileHeading:e.props.attributes.tabbedAuthorProfileHeading,activeTab:"profile",loadingLatestPosts:!0,latestPosts:{},profileTabColor:e.props.attributes.profileTabColor,profileTabHeadlineColor:e.props.attributes.profileTabHeadlineColor,profileTabPostsColor:e.props.attributes.profileTabPostsColor,profileTabHeadlineTextColor:e.props.attributes.profileTabHeadlineTextColor,profileTabTextColor:e.props.attributes.profileTabTextColor,profileTabPostsTextColor:e.props.attributes.profileTabPostsTextColor,profileLatestPostsOptionsValue:e.props.attributes.profileLatestPostsOptionsValue,profileCompactAlignment:e.props.attributes.profileCompactAlignment},e}return a(t,e),u(t,[{key:"render",value:function(){var e=this,t=this.props,r=t.attributes,o=r.profileName,n=r.profileTitle,i=r.profileContent,a=r.profileAlignment,l=r.profileImgURL,s=r.profileImgID,p=r.profileURL,u=r.profileFontSize,m=r.buttonFontSize,f=r.headerFontSize,g=r.profileBackgroundColor,P=r.profileTextColor,A=r.profileAvatarShape,I=r.profileViewPostsBackgroundColor,L=r.profileViewPostsTextColor,O=r.profileViewPosts,V=r.profileViewWebsite,H=r.showTitle,R=r.showName,M=r.showDescription,B=r.showViewPosts,U=r.showPostsWidth,D=(r.showSocialMedia,r.showWebsite),F=(r.theme,r.theme_list,r.socialFacebook,r.socialGitHub,r.socialLinkedIn,r.socialPinterest,r.socialTwitter,r.socialWordPress,r.socialYouTube,r.socialMediaColors),W=r.profileWebsiteBackgroundColor,j=r.profileWebsiteTextColor,z=r.padding,q=r.border,Z=r.borderRounded,G=r.borderColor,Y=r.profileLinkColor,X=(r.tabbedAuthorProfile,r.tabbedAuthorSubHeading,r.tabbedAuthorProfileTitle),$=(r.profileLatestPostsOptionsValue,t.attributes,t.isSelected,t.editable,t.className,t.setAttributes);this.state.profile_pictures;s=this.state.profile_picture_id,l=this.state.profile_picture,o=this.state.profile_name,i=this.state.profile_description,n=this.state.profile_title,p=this.state.profile_url,U=""!==this.state.website&&this.props.attributes.showWebsite?"":"100%",$({showPostsWidth:U});var J=function(e){return $({profileBackgroundColor:e})},Q=function(e){return $({profileTextColor:e})},K=function(e){return $({profileViewPostsBackgroundColor:e})},ee=function(e){return $({profileViewPostsTextColor:e})},te=function(e){return $({profileWebsiteBackgroundColor:e})},re=function(e){return $({profileWebsiteTextColor:e})},oe=function(e){return $({socialMediaColors:e})},ne=function(e){return $({borderColor:e})},ie=function(e){return $({profileLinkColor:e})},ae=[{value:"square",label:d("Square","metronet-profile-picture")},{value:"round",label:d("Round","metronet-profile-picture")}],le=[{value:"colors",label:d("Brand Colors","metronet-profile-picture")},{value:"custom",label:d("Custom","metronet-profile-picture")}],se=[{value:"none",label:d("None","metronet-profile-picture")},{value:"white",label:d("White","metronet-profile-picture")},{value:"light",label:d("Light","metronet-profile-picture")},{value:"black",label:d("Black","metronet-profile-picture")},{value:"magenta",label:d("Magenta","metronet-profile-picture")},{value:"blue",label:d("Blue","metronet-profile-picture")},{value:"green",label:d("Green","metronet-profile-picture")}],pe=[{value:"left",label:d("Left","metronet-profile-picture")},{value:"center",label:d("Center","metronet-profile-picture")},{value:"right",label:d("Right","metronet-profile-picture")}],ce="none",ue="";return"center"===this.state.profileCompactAlignment&&(ce="none",ue="0 auto"),"left"===this.state.profileCompactAlignment&&(ce="left",ue="0"),"right"===this.state.profileCompactAlignment&&(ce="right",ue="0"),wp.element.createElement(h,null,this.state.loading&&wp.element.createElement(h,null,wp.element.createElement(w,null,wp.element.createElement("div",null,wp.element.createElement("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",width:"125px",height:"125px",viewBox:"0 0 753.53 979.74"},wp.element.createElement("title",null,"upp"),wp.element.createElement("path",{d:"M806.37,185.9c0,40.27-30.49,72.9-68.11,72.9s-68.17-32.63-68.17-72.9S700.62,113,738.26,113,806.37,145.64,806.37,185.9Z",transform:"translate(-123.47 -11)",fill:"#4063ad"}),wp.element.createElement("path",{d:"M330.36,183.8c0,40.27-30.49,72.9-68.12,72.9s-68.17-32.63-68.17-72.9,30.52-72.87,68.17-72.87S330.36,143.56,330.36,183.8Z",transform:"translate(-123.47 -11)",fill:"#a34d9c"}),wp.element.createElement("path",{d:"M331.3,888.13V698.21H329c-31.64,0-57.28-27.45-57.28-61.29V336.5a118.37,118.37,0,0,1,5.43-34.79H179.84c-31.94,0-56.37,31.57-56.37,56.34V601.46h48.32V888.13Z",transform:"translate(-123.47 -11)",fill:"#a34d9c"}),wp.element.createElement("path",{d:"M388.59,636.92V990.74H611.88V636.92H671.5V336.5c0-30.63-27.64-69.57-69.6-69.57H398.56c-39.44,0-69.61,38.94-69.61,69.57V636.92Z",transform:"translate(-123.47 -11)",fill:"#f4831f"}),wp.element.createElement("path",{d:"M584.3,101c0,49.69-37.63,90-84,90S416.12,150.67,416.12,101s37.66-90,84.14-90S584.3,51.27,584.3,101Z",transform:"translate(-123.47 -11)",fill:"#f4831f"}),wp.element.createElement("path",{d:"M820.61,303.79H724.08a121.69,121.69,0,0,1,4.7,32.71V636.92c0,33.84-25.64,61.29-57.28,61.29h-2.33v192H828.7V603.54H877V360.16C877,335.36,854.62,303.79,820.61,303.79Z",transform:"translate(-123.47 -11)",fill:"#4063ad"})),wp.element.createElement("div",{className:"mpp-spinner"},wp.element.createElement(E,null))))),!this.state.loading&&wp.element.createElement(h,null,wp.element.createElement(S,null,wp.element.createElement(b,{title:d("User Profile Settings","metronet-profile-picture")},wp.element.createElement(v,{label:d("Select a user","metronet-profile-picture"),value:this.state.active_user,options:this.state.user_list,onChange:function(t){e.on_user_change(t),$({user_id:Number(t)})}}),wp.element.createElement(v,{label:d("Select a theme","metronet-profile-picture"),value:this.state.theme,options:this.state.themes,onChange:function(t){e.onThemeChange(t),$({theme:t})}}),"compact"===this.state.theme&&wp.element.createElement(v,{label:d("Select an alignment","metronet-profile-picture"),value:this.state.profileCompactAlignment,options:pe,onChange:function(t){e.onCompactAlignmentChange(t),$({profileCompactAlignment:t})}}),wp.element.createElement(v,{label:d("Avatar Shape","metronet-profile-picture"),description:d("Choose between a round or square avatar shape.","metronet-profile-picture"),options:ae,value:A,onChange:function(t){return e.props.setAttributes({profileAvatarShape:t})}}),"tabbed"!==this.state.theme&&wp.element.createElement(_,{label:d("Website","metronet-profile-picture"),value:this.state.website,onChange:function(t){e.props.setAttributes({website:t}),e.handleWebsiteChange(t)}}),wp.element.createElement(y,{label:d("Show Name","metronet-profile-picture"),checked:R,onChange:function(){return e.props.setAttributes({showName:!R})}}),wp.element.createElement(y,{label:d("Show Title","metronet-profile-picture"),checked:H,onChange:function(){return e.props.setAttributes({showTitle:!H})}}),wp.element.createElement(y,{label:d("Show Description","metronet-profile-picture"),checked:M,onChange:function(){return e.props.setAttributes({showDescription:!M})}}),"tabbed"!==this.state.theme&&wp.element.createElement(h,null,wp.element.createElement(y,{label:d("Show View Posts","metronet-profile-picture"),checked:B,onChange:function(){return e.props.setAttributes({showViewPosts:!B})}}),B&&wp.element.createElement(_,{label:d("View Posts Text","metronet-profile-picture"),value:O,onChange:function(t){e.props.setAttributes({profileViewPosts:t})}}),wp.element.createElement(y,{label:d("Show Website","metronet-profile-picture"),checked:this.state.show_website,onChange:function(t){e.props.setAttributes({showWebsite:t}),e.setState({show_website:t})}}),this.state.show_website&&wp.element.createElement(_,{label:d("View Website Text","metronet-profile-picture"),value:V,onChange:function(t){e.props.setAttributes({profileViewWebsite:t})}})),wp.element.createElement(y,{label:d("Show Social Media","metronet-profile-picture"),checked:this.state.showSocialMedia,onChange:function(t){e.props.setAttributes({showSocialMedia:t}),e.handleSocialMediaChange(t)}})),"tabbed"===this.state.theme&&wp.element.createElement(b,{title:d("User Profile Settings","metronet-profile-picture")},wp.element.createElement(v,{label:d("Select a theme","metronet-profile-picture"),value:this.state.latestPostsTheme,options:{},onChange:function(t){e.on_user_change(t),$({user_id:Number(t)})}})),wp.element.createElement(b,{title:d("Colors","metronet-profile-picture"),initialOpen:!1},wp.element.createElement(k,{title:d("Background Color","metronet-profile-picture"),initialOpen:!1,colorSettings:[{value:g,onChange:J,label:d("Background Color","metronet-profile-picture")}]}),wp.element.createElement(k,{title:d("Text Color","metronet-profile-picture"),initialOpen:!1,colorSettings:[{value:P,onChange:Q,label:d("Text Color","metronet-profile-picture")}]}),"profile"===this.state.theme&&wp.element.createElement(k,{title:d("Link Color","metronet-profile-picture"),initialOpen:!1,colorSettings:[{value:Y,onChange:ie,label:d("Link Color","metronet-profile-picture")}]}),"tabbed"===this.state.theme&&wp.element.createElement(h,null,wp.element.createElement(k,{title:d("Profile Tab Color","metronet-profile-picture"),initialOpen:!1,colorSettings:[{value:this.state.profileTabColor,onChange:this.onChangeProfileTabColor,label:d("Color","metronet-profile-picture")}]}),wp.element.createElement(k,{title:d("Profile Tab Color Text","metronet-profile-picture"),initialOpen:!1,colorSettings:[{value:this.state.profileTabTextColor,onChange:this.onChangeProfileTabColorText,label:d("Color","metronet-profile-picture")}]}),wp.element.createElement(k,{title:d("Profile Posts Color","metronet-profile-picture"),initialOpen:!1,colorSettings:[{value:this.state.profileTabPostsColor,onChange:this.onChangePostsTabColor,label:d("Color","metronet-profile-picture")}]}),wp.element.createElement(k,{title:d("Profile Post Color Text","metronet-profile-picture"),initialOpen:!1,colorSettings:[{value:this.state.profileTabPostsTextColor,onChange:this.onChangeProfileTabPostColorText,label:d("Color","metronet-profile-picture")}]}),wp.element.createElement(k,{title:d("Profile Headline Color","metronet-profile-picture"),initialOpen:!1,colorSettings:[{value:this.state.profileTabHeadlineColor,onChange:this.onChangePostsTabHeadlineColor,label:d("Color","metronet-profile-picture")}]}),wp.element.createElement(k,{title:d("Profile Headline Color Text","metronet-profile-picture"),initialOpen:!1,colorSettings:[{value:this.state.profileTabHeadlineColorText,onChange:this.onChangeProfileTabHeadlineColorText,label:d("Color","metronet-profile-picture")}]}),wp.element.createElement(v,{label:d("Select a Post Theme","metronet-profile-picture"),value:this.state.profileLatestPostsOptionsValue,options:se,onChange:function(t){e.onLatestPostsChange(t),$({profileLatestPostsOptionsValue:t})}})),"tabbed"!==this.state.theme&&"profile"!==this.state.theme&&wp.element.createElement(h,null,wp.element.createElement(k,{title:d("View Posts Background Color","metronet-profile-picture"),initialOpen:!1,colorSettings:[{value:I,onChange:K,label:d("View Posts Background","metronet-profile-picture")}]}),wp.element.createElement(k,{title:d("View Posts Text Color","metronet-profile-picture"),initialOpen:!1,colorSettings:[{value:L,onChange:ee,label:d("View Posts Text Color","metronet-profile-picture")}]}),wp.element.createElement(k,{title:d("Website Background Color","metronet-profile-picture"),initialOpen:!1,colorSettings:[{value:W,onChange:te,label:d("View Website Background","metronet-profile-picture")}]}),wp.element.createElement(k,{title:d("View Website Text Color","metronet-profile-picture"),initialOpen:!1,colorSettings:[{value:j,onChange:re,label:d("View Website Text Color","metronet-profile-picture")}]}))),wp.element.createElement(b,{title:d("Spacing and Font Settings","metronet-profile-picture"),initialOpen:!1},wp.element.createElement(C,{label:d("Header Font Size","metronet-profile-picture"),value:f,onChange:function(t){return e.props.setAttributes({headerFontSize:t})},min:14,max:32,step:1}),wp.element.createElement(C,{label:d("Font Size","metronet-profile-picture"),value:u,onChange:function(t){return e.props.setAttributes({profileFontSize:t})},min:14,max:24,step:1}),"tabbed"!==this.state.theme&&wp.element.createElement(C,{label:d("Button Size","metronet-profile-picture"),value:m,onChange:function(t){return e.props.setAttributes({buttonFontSize:t})},min:10,max:24,step:1}),wp.element.createElement(C,{label:d("Padding","metronet-profile-picture"),value:z,onChange:function(t){return e.props.setAttributes({padding:t})},min:0,max:60,step:1}),wp.element.createElement(C,{label:d("Border","metronet-profile-picture"),value:q,onChange:function(t){return e.props.setAttributes({border:t})},min:0,max:10,step:1}),wp.element.createElement(C,{label:d("Border Rounded","metronet-profile-picture"),value:Z,onChange:function(t){return e.props.setAttributes({borderRounded:t})},min:0,max:10,step:1}),wp.element.createElement(k,{title:d("Border Color","metronet-profile-picture"),initialOpen:!1,colorSettings:[{value:G,onChange:ne,label:d("Border Color","metronet-profile-picture")}]})),wp.element.createElement(b,{title:d("Social Media Settings","metronet-profile-picture"),initialOpen:!1},wp.element.createElement(v,{label:d("Social Media Colors","metronet-profile-picture"),value:this.state.socialMediaOptions,options:le,onChange:function(t){$({socialMediaOptions:t}),e.handleSocialMediaOptionChange(t)}}),"custom"===this.state.socialMediaOptions&&wp.element.createElement(k,{title:d("Social Media Color","metronet-profile-picture"),initialOpen:!1,colorSettings:[{value:F,onChange:oe,label:d("Social Media Color","metronet-profile-picture")}]}),wp.element.createElement(_,{label:d("Facebook","metronet-profile-picture"),value:this.state.socialFacebook,onChange:function(t){e.props.setAttributes({socialFacebook:t}),e.handleFacebookChange(t)}}),wp.element.createElement(_,{label:d("Twitter","metronet-profile-picture"),value:this.state.socialTwitter,onChange:function(t){e.props.setAttributes({socialTwitter:t}),e.handleTwitterChange(t)}}),wp.element.createElement(_,{label:d("Instagram","metronet-profile-picture"),value:this.state.socialInstagram,onChange:function(t){e.props.setAttributes({socialInstagram:t}),e.handleInstagramChange(t)}}),wp.element.createElement(_,{label:d("LinkedIn","metronet-profile-picture"),value:this.state.socialLinkedIn,onChange:function(t){e.props.setAttributes({socialLinkedIn:t}),e.handleLinkedInChange(t)}}),wp.element.createElement(_,{label:d("YouTube","metronet-profile-picture"),value:this.state.socialYouTube,onChange:function(t){e.props.setAttributes({socialYouTube:t}),e.handleYouTubeChange(t)}}),wp.element.createElement(_,{label:d("GitHub","metronet-profile-picture"),value:this.state.socialGitHub,onChange:function(t){e.props.setAttributes({socialGitHub:t}),e.handleGitHubChange(t)}}),wp.element.createElement(_,{label:d("Pinterest","metronet-profile-picture"),value:this.state.socialPinterest,onChange:function(t){e.props.setAttributes({socialPinterest:t}),e.handlePinterestChange(t)}}),wp.element.createElement(_,{label:d("WordPress","metronet-profile-picture"),value:this.state.socialWordPress,onChange:function(t){e.props.setAttributes({socialWordPress:t}),e.handleWordPressChange(t)}}))),"tabbed"!==this.state.theme&&wp.element.createElement("div",{className:c()("mpp-enhanced-profile-wrap",this.state.theme,a,A,"mpp-block-profile"),style:{padding:z+"px",border:q+"px solid "+G,borderRadius:Z+"px",backgroundColor:g,color:P,float:ce,margin:ue}},"regular"===this.state.theme&&wp.element.createElement(h,null,wp.element.createElement("div",{className:c()("mpp-profile-gutenberg-wrap","mt-font-size-"+u)},wp.element.createElement("div",{className:"mpp-profile-image-wrapper"},wp.element.createElement("div",{className:"mpp-profile-image-square"},wp.element.createElement(N,{buttonProps:{className:"change-image"},onSelect:function(t){e.handleImageChange(t.id,t.url),$({profileImgID:t.id,profileImgURL:t.url})},type:"image",value:s,render:function(e){var t=e.open;return wp.element.createElement(T,{onClick:t},s?wp.element.createElement("img",{className:"profile-avatar",src:l,alt:"avatar"}):wp.element.createElement("img",{src:l,alt:"placeholder"}))}}))),wp.element.createElement("div",{className:"mpp-content-wrap"},R&&wp.element.createElement(x,{tagName:"h2",placeholder:d("Add name","metronet-profile-picture"),value:o,className:"mpp-profile-name",style:{color:P,fontSize:f+"px"},onChange:function(t){e.onChangeName(t),$({profileName:t})}}),H&&wp.element.createElement(x,{tagName:"p",placeholder:d("Add title","atomic-blocks"),value:n,className:"mpp-profile-title",style:{color:P},onChange:function(t){e.onChangeTitle(t),$({profileTitle:t})}}),M&&wp.element.createElement(x,{tagName:"div",className:"mpp-profile-text",placeholder:d("Add profile text...","metronet-profile-picture"),value:i,formattingControls:["bold","italic","strikethrough","link"],onChange:function(t){e.onChangeProfileText(t),$({profileContent:t})}}))),p&&!!p.length&&wp.element.createElement("div",{className:"mpp-gutenberg-view-posts",style:{width:U}},B&&wp.element.createElement("div",{className:"mpp-profile-view-posts",style:{backgroundColor:I,color:L,width:U,fontSize:m+"px"}},wp.element.createElement("a",{href:p,style:{backgroundColor:I,color:L}},O)),""!=this.state.website&&D&&wp.element.createElement("div",{className:"mpp-profile-view-website",style:{backgroundColor:W,color:j,fontSize:m+"px"}},wp.element.createElement("a",{href:this.state.website,style:{backgroundColor:W,color:j}},V)))),"profile"===this.state.theme&&wp.element.createElement("div",{className:c()("mpp-profile-gutenberg-wrap","mt-font-size-"+u)},R&&wp.element.createElement(x,{tagName:"h2",placeholder:d("Add name","metronet-profile-picture"),value:o,className:"mpp-profile-name",style:{color:P,fontSize:f+"px"},onChange:function(t){e.onChangeName(t),$({profileName:t})}}),wp.element.createElement("div",{className:"mpp-profile-image-wrapper"},wp.element.createElement("div",{className:"mpp-profile-image-square"},wp.element.createElement(N,{buttonProps:{className:"change-image"},onSelect:function(t){e.handleImageChange(t.id,t.url),$({profileImgID:t.id,profileImgURL:t.url})},type:"image",value:s,render:function(e){var t=e.open;return wp.element.createElement(T,{onClick:t},s?wp.element.createElement("img",{className:"profile-avatar",src:l,alt:"avatar"}):wp.element.createElement("img",{src:l,alt:"placeholder"}))}}))),M&&wp.element.createElement(x,{tagName:"div",className:"mpp-profile-text",placeholder:d("Add profile text...","metronet-profile-picture"),value:i,formattingControls:["bold","italic","strikethrough","link"],onChange:function(t){e.onChangeProfileText(t),$({profileContent:t})}}),wp.element.createElement("div",{className:"mpp-profile-meta",style:{fontSize:m+"px"}},B&&wp.element.createElement("div",{className:"mpp-profile-link alignleft"},wp.element.createElement("a",{href:this.state.profile_url,style:{color:Y}},d("View all posts by","metronet-profile-picture")," ",this.state.profile_name_unfiltered)),""!=this.state.website&&D&&wp.element.createElement("div",{className:"mpp-profile-link alignright"},wp.element.createElement("a",{href:this.state.website,style:{color:Y}},d("Website","metronet-profile-picture"))))),"compact"===this.state.theme&&wp.element.createElement("div",{className:c()("mpp-profile-gutenberg-wrap","mt-font-size-"+u)},R&&wp.element.createElement(x,{tagName:"h2",placeholder:d("Add name","metronet-profile-picture"),value:o,className:"mpp-profile-name",style:{color:P,fontSize:f+"px"},onChange:function(t){e.onChangeName(t),$({profileName:t})}}),wp.element.createElement("div",{className:"mpp-profile-image-wrapper"},wp.element.createElement("div",{className:"mpp-profile-image-square"},wp.element.createElement(N,{buttonProps:{className:"change-image"},onSelect:function(t){e.handleImageChange(t.id,t.url),$({profileImgID:t.id,profileImgURL:t.url})},type:"image",value:s,render:function(e){var t=e.open;return wp.element.createElement(T,{onClick:t},s?wp.element.createElement("img",{className:"profile-avatar",src:l,alt:"avatar"}):wp.element.createElement("img",{src:l,alt:"placeholder"}))}}))),M&&wp.element.createElement(x,{tagName:"div",className:"mpp-profile-text",placeholder:d("Add profile text...","metronet-profile-picture"),value:i,formattingControls:["bold","italic","strikethrough","link"],onChange:function(t){e.onChangeProfileText(t),$({profileContent:t})}}),wp.element.createElement("div",{className:"mpp-compact-meta"},B&&wp.element.createElement("div",{className:"mpp-profile-view-posts",style:{backgroundColor:I,color:L,width:"90%",margin:"0 auto 10px auto",fontSize:m+"px"}},wp.element.createElement("a",{href:p,style:{backgroundColor:I,color:L}},d("View Posts","metronet-profile-picture"))),""!=this.state.website&&D&&wp.element.createElement("div",{className:"mpp-profile-view-website",style:{backgroundColor:W,color:j,fontSize:m+"px",width:"90%",margin:"0 auto"}},wp.element.createElement("a",{href:this.state.website,style:{backgroundColor:W,color:j}},d("View Website","metronet-profile-picture"))))),1==this.state.showSocialMedia&&("regular"===this.state.theme||"compact"===this.state.theme||"profile"===this.state.theme)&&wp.element.createElement("div",{className:"mpp-social"},""!=this.state.socialFacebook&&wp.element.createElement("a",{href:this.state.socialFacebook},wp.element.createElement("svg",{className:"icon icon-facebook",role:"img",style:{fill:"custom"===this.state.socialMediaOptions?F:""}},wp.element.createElement("use",{href:"#facebook"}))),""!=this.state.socialTwitter&&wp.element.createElement("a",{href:this.state.socialTwitter},wp.element.createElement("svg",{className:"icon icon-twitter",role:"img",style:{fill:"custom"===this.state.socialMediaOptions?F:""}},wp.element.createElement("use",{href:"#twitter"}))),""!=this.state.socialInstagram&&wp.element.createElement("a",{href:this.state.socialInstagram},wp.element.createElement("svg",{className:"icon icon-instagram",role:"img",style:{fill:"custom"===this.state.socialMediaOptions?F:""}},wp.element.createElement("use",{href:"#instagram"}))),""!=this.state.socialPinterest&&wp.element.createElement("a",{href:this.state.socialPinterest},wp.element.createElement("svg",{className:"icon icon-pinterest",role:"img",style:{fill:"custom"===this.state.socialMediaOptions?F:""}},wp.element.createElement("use",{href:"#pinterest"}))),""!=this.state.socialLinkedIn&&wp.element.createElement("a",{href:this.state.socialLinkedIn},wp.element.createElement("svg",{className:"icon icon-linkedin",role:"img",style:{fill:"custom"===this.state.socialMediaOptions?F:""}},wp.element.createElement("use",{href:"#linkedin"}))),""!=this.state.socialYouTube&&wp.element.createElement("a",{href:this.state.socialYouTube},wp.element.createElement("svg",{className:"icon icon-youtube",role:"img",style:{fill:"custom"===this.state.socialMediaOptions?F:""}},wp.element.createElement("use",{href:"#youtube"}))),""!=this.state.socialGitHub&&wp.element.createElement("a",{href:this.state.socialGitHub},wp.element.createElement("svg",{className:"icon icon-github",role:"img",style:{fill:"custom"===this.state.socialMediaOptions?F:""}},wp.element.createElement("use",{href:"#github"}))),""!=this.state.socialWordPress&&wp.element.createElement("a",{href:this.state.socialWordPress},wp.element.createElement("svg",{className:"icon icon-wordpress",role:"img",style:{fill:"custom"===this.state.socialMediaOptions?F:""}},wp.element.createElement("use",{href:"#wordpress"}))))),"tabbed"===this.state.theme&&wp.element.createElement(h,null,wp.element.createElement("div",{className:c()("mpp-author-tabbed",this.state.theme,a,A,"mpp-block-profile")},wp.element.createElement("ul",{className:"mpp-author-tabs"},wp.element.createElement("li",{className:c()("mpp-tab-profile","profile"===this.state.activeTab?"active":""),onClick:this.onChangeActiveProfileTab,style:{backgroundColor:this.state.profileTabColor,color:this.state.profileTabTextColor}},wp.element.createElement(x,{tagName:"span",placeholder:d("Add tab name.","metronet-profile-picture"),value:this.state.tabbedAuthorProfile,formattingControls:[],onChange:function(t){e.onChangetabbedAuthorProfile(t),$({tabbedAuthorProfile:t})}})),wp.element.createElement("li",{className:c()("mpp-tab-posts","latest"===this.state.activeTab?"active":""),onClick:this.onChangeActivePostTab,style:{backgroundColor:this.state.profileTabPostsColor,color:this.state.profileTabPostsTextColor}},wp.element.createElement(x,{tagName:"span",placeholder:d("Add tab name.","metronet-profile-picture"),value:this.state.tabbedAuthorLatestPosts,formattingControls:[],onChange:function(t){e.onChangetabbedAuthorLatestPosts(t),$({tabbedAuthorLatestPosts:t})}}))),wp.element.createElement("div",{className:"mpp-tab-wrapper",style:{padding:z+"px",border:q+"px solid "+G,borderRadius:Z+"px",backgroundColor:g,color:P}},"profile"===this.state.activeTab&&wp.element.createElement(h,null,wp.element.createElement("div",{className:"mpp-author-social-wrapper"},wp.element.createElement("div",{className:"mpp-author-heading"},wp.element.createElement(x,{tagName:"div",className:"mpp-author-profile-heading",value:this.state.tabbedAuthorProfileHeading,formattingControls:[],onChange:function(t){e.onChangetabbedAuthorProfileHeading(t),$({profileTabHeadlineTextColor:t})},style:{backgroundColor:this.state.profileTabHeadlineColor,color:this.state.profileTabHeadlineTextColor}})),this.state.showSocialMedia&&wp.element.createElement("div",{className:"mpp-author-social"},wp.element.createElement("div",{className:"mpp-social"},""!=this.state.socialFacebook&&wp.element.createElement("a",{href:this.state.socialFacebook},wp.element.createElement("svg",{className:"icon icon-facebook",role:"img",style:{fill:"custom"===this.state.socialMediaOptions?F:""}},wp.element.createElement("use",{href:"#facebook"}))),""!=this.state.socialTwitter&&wp.element.createElement("a",{href:this.state.socialTwitter},wp.element.createElement("svg",{className:"icon icon-twitter",role:"img",style:{fill:"custom"===this.state.socialMediaOptions?F:""}},wp.element.createElement("use",{href:"#twitter"}))),""!=this.state.socialInstagram&&wp.element.createElement("a",{href:this.state.socialInstagram},wp.element.createElement("svg",{className:"icon icon-instagram",role:"img",style:{fill:"custom"===this.state.socialMediaOptions?F:""}},wp.element.createElement("use",{href:"#instagram"}))),""!=this.state.socialPinterest&&wp.element.createElement("a",{href:this.state.socialPinterest},wp.element.createElement("svg",{className:"icon icon-pinterest",role:"img",style:{fill:"custom"===this.state.socialMediaOptions?F:""}},wp.element.createElement("use",{href:"#pinterest"}))),""!=this.state.socialLinkedIn&&wp.element.createElement("a",{href:this.state.socialLinkedIn},wp.element.createElement("svg",{className:"icon icon-linkedin",role:"img",style:{fill:"custom"===this.state.socialMediaOptions?F:""}},wp.element.createElement("use",{href:"#linkedin"}))),""!=this.state.socialYouTube&&wp.element.createElement("a",{href:this.state.socialYouTube},wp.element.createElement("svg",{className:"icon icon-youtube",role:"img",style:{fill:"custom"===this.state.socialMediaOptions?F:""}},wp.element.createElement("use",{href:"#youtube"}))),""!=this.state.socialGitHub&&wp.element.createElement("a",{href:this.state.socialGitHub},wp.element.createElement("svg",{className:"icon icon-github",role:"img",style:{fill:"custom"===this.state.socialMediaOptions?F:""}},wp.element.createElement("use",{href:"#github"}))),""!=this.state.socialWordPress&&wp.element.createElement("a",{href:this.state.socialWordPress},wp.element.createElement("svg",{className:"icon icon-wordpress",role:"img",style:{fill:"custom"===this.state.socialMediaOptions?F:""}},wp.element.createElement("use",{href:"#wordpress"})))))),wp.element.createElement("div",{className:"mpp-profile-image-wrapper"},wp.element.createElement("div",{className:"mpp-profile-image-square"},wp.element.createElement(N,{buttonProps:{className:"change-image"},onSelect:function(t){e.handleImageChange(t.id,t.url),$({profileImgID:t.id,profileImgURL:t.url})},type:"image",value:s,render:function(e){var t=e.open;return wp.element.createElement(T,{onClick:t},s?wp.element.createElement("img",{className:"profile-avatar",src:l,alt:"avatar"}):wp.element.createElement("img",{src:l,alt:"placeholder"}))}}),wp.element.createElement(x,{tagName:"div",className:"mpp-author-profile-sub-heading",placeholder:d("Add profile description...","metronet-profile-picture"),value:this.state.tabbedAuthorSubHeading,formattingControls:["bold","italic","strikethrough","link"],onChange:function(t){e.onChangeTabbedSubHeading(t),$({tabbedAuthorSubHeading:t})}}))),wp.element.createElement("div",{className:"mpp-tabbed-profile-information"},H&&wp.element.createElement(x,{tagName:"div",className:"mpp-author-profile-title",placeholder:d("Add profile title...","metronet-profile-picture"),value:X,formattingControls:["bold","italic","strikethrough","link"],onChange:function(e){$({tabbedAuthorProfileTitle:e})}}),R&&wp.element.createElement(x,{tagName:"h2",placeholder:d("Add name","metronet-profile-picture"),value:o,className:"mpp-profile-name",style:{color:P,fontSize:f+"px"},onChange:function(t){e.onChangeName(t),$({profileName:t})}}),M&&wp.element.createElement(x,{tagName:"div",className:c()("mpp-profile-text","mt-font-size-"+u),placeholder:d("Add profile text...","metronet-profile-picture"),value:i,formattingControls:["bold","italic","strikethrough","link"],onChange:function(t){e.onChangeProfileText(t),$({profileContent:t})}}))),"latest"===this.state.activeTab&&wp.element.createElement(h,null,this.state.loadingLatestPosts&&wp.element.createElement(h,null,wp.element.createElement("div",null,wp.element.createElement("div",{className:"mpp-spinner"},wp.element.createElement(E,null)))),!this.state.loadingLatestPosts&&wp.element.createElement(h,null,wp.element.createElement("ul",{className:c()("mpp-author-tab-content",this.state.profileLatestPostsOptionsValue)},this.state.latestPosts))))))))}}]),t}(f);t.a=A},function(e,t,r){"use strict";function o(e){var t=new a(e),r=i(a.prototype.request,t);return n.extend(r,a.prototype,t),n.extend(r,t),r}var n=r(0),i=r(4),a=r(16),l=r(1),s=o(l);s.Axios=a,s.create=function(e){return o(n.merge(l,e))},s.Cancel=r(8),s.CancelToken=r(30),s.isCancel=r(7),s.all=function(e){return Promise.all(e)},s.spread=r(31),e.exports=s,e.exports.default=s},function(e,t){e.exports=function(e){return null!=e&&null!=e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},function(e,t,r){"use strict";function o(e){this.defaults=e,this.interceptors={request:new a,response:new a}}var n=r(1),i=r(0),a=r(25),l=r(26);o.prototype.request=function(e){"string"===typeof e&&(e=i.merge({url:arguments[0]},arguments[1])),e=i.merge(n,{method:"get"},this.defaults,e),e.method=e.method.toLowerCase();var t=[l,void 0],r=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)r=r.then(t.shift(),t.shift());return r},i.forEach(["delete","get","head","options"],function(e){o.prototype[e]=function(t,r){return this.request(i.merge(r||{},{method:e,url:t}))}}),i.forEach(["post","put","patch"],function(e){o.prototype[e]=function(t,r,o){return this.request(i.merge(o||{},{method:e,url:t,data:r}))}}),e.exports=o},function(e,t){function r(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function n(e){if(c===setTimeout)return setTimeout(e,0);if((c===r||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function i(e){if(u===clearTimeout)return clearTimeout(e);if((u===o||!u)&&clearTimeout)return u=clearTimeout,clearTimeout(e);try{return u(e)}catch(t){try{return u.call(null,e)}catch(t){return u.call(this,e)}}}function a(){d&&f&&(d=!1,f.length?h=f.concat(h):g=-1,h.length&&l())}function l(){if(!d){var e=n(a);d=!0;for(var t=h.length;t;){for(f=h,h=[];++g<t;)f&&f[g].run();g=-1,t=h.length}f=null,d=!1,i(e)}}function s(e,t){this.fun=e,this.array=t}function p(){}var c,u,m=e.exports={};!function(){try{c="function"===typeof setTimeout?setTimeout:r}catch(e){c=r}try{u="function"===typeof clearTimeout?clearTimeout:o}catch(e){u=o}}();var f,h=[],d=!1,g=-1;m.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];h.push(new s(e,t)),1!==h.length||d||n(l)},s.prototype.run=function(){this.fun.apply(null,this.array)},m.title="browser",m.browser=!0,m.env={},m.argv=[],m.version="",m.versions={},m.on=p,m.addListener=p,m.once=p,m.off=p,m.removeListener=p,m.removeAllListeners=p,m.emit=p,m.prependListener=p,m.prependOnceListener=p,m.listeners=function(e){return[]},m.binding=function(e){throw new Error("process.binding is not supported")},m.cwd=function(){return"/"},m.chdir=function(e){throw new Error("process.chdir is not supported")},m.umask=function(){return 0}},function(e,t,r){"use strict";var o=r(0);e.exports=function(e,t){o.forEach(e,function(r,o){o!==t&&o.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[o])})}},function(e,t,r){"use strict";var o=r(6);e.exports=function(e,t,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(o("Request failed with status code "+r.status,r.config,null,r.request,r)):e(r)}},function(e,t,r){"use strict";e.exports=function(e,t,r,o,n){return e.config=t,r&&(e.code=r),e.request=o,e.response=n,e}},function(e,t,r){"use strict";function o(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var n=r(0);e.exports=function(e,t,r){if(!t)return e;var i;if(r)i=r(t);else if(n.isURLSearchParams(t))i=t.toString();else{var a=[];n.forEach(t,function(e,t){null!==e&&"undefined"!==typeof e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))}))}),i=a.join("&")}return i&&(e+=(-1===e.indexOf("?")?"?":"&")+i),e}},function(e,t,r){"use strict";var o=r(0),n=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,r,i,a={};return e?(o.forEach(e.split("\n"),function(e){if(i=e.indexOf(":"),t=o.trim(e.substr(0,i)).toLowerCase(),r=o.trim(e.substr(i+1)),t){if(a[t]&&n.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([r]):a[t]?a[t]+", "+r:r}}),a):a}},function(e,t,r){"use strict";var o=r(0);e.exports=o.isStandardBrowserEnv()?function(){function e(e){var t=e;return r&&(n.setAttribute("href",t),t=n.href),n.setAttribute("href",t),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}var t,r=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");return t=e(window.location.href),function(r){var n=o.isString(r)?e(r):r;return n.protocol===t.protocol&&n.host===t.host}}():function(){return function(){return!0}}()},function(e,t,r){"use strict";var o=r(0);e.exports=o.isStandardBrowserEnv()?function(){return{write:function(e,t,r,n,i,a){var l=[];l.push(e+"="+encodeURIComponent(t)),o.isNumber(r)&&l.push("expires="+new Date(r).toGMTString()),o.isString(n)&&l.push("path="+n),o.isString(i)&&l.push("domain="+i),!0===a&&l.push("secure"),document.cookie=l.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},function(e,t,r){"use strict";function o(){this.handlers=[]}var n=r(0);o.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){n.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=o},function(e,t,r){"use strict";function o(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var n=r(0),i=r(27),a=r(7),l=r(1),s=r(28),p=r(29);e.exports=function(e){return o(e),e.baseURL&&!s(e.url)&&(e.url=p(e.baseURL,e.url)),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),n.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||l.adapter)(e).then(function(t){return o(e),t.data=i(t.data,t.headers,e.transformResponse),t},function(t){return a(t)||(o(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,r){"use strict";var o=r(0);e.exports=function(e,t,r){return o.forEach(r,function(r){e=r(e,t)}),e}},function(e,t,r){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,r){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,r){"use strict";function o(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var r=this;e(function(e){r.reason||(r.reason=new n(e),t(r.reason))})}var n=r(8);o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o(function(t){e=t}),cancel:e}},e.exports=o},function(e,t,r){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,r){"use strict";function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=r(3),s=r.n(l),p=r(2),c=r.n(p),u=function(){function e(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}(),m=wp.element,f=m.Component,h=m.Fragment,d=wp.i18n.__,g=wp.components,b=g.PanelBody,w=g.Placeholder,C=(g.QueryControls,g.RangeControl),v=g.SelectControl,E=g.Spinner,_=(g.TextControl,g.ToggleControl),y=(g.Toolbar,g.withAPIData,g.ColorPalette,g.Button),T=wp.editor,P=T.InspectorControls,S=T.BlockControls,N=T.MediaUpload,x=T.RichText,k=T.AlignmentToolbar,A=T.PanelColorSettings,I=function(e){function t(){n(this,t);var e=i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.get_users=function(){s.a.post(mpp_gutenberg.rest_url+"/get_users",{},{headers:{"X-WP-Nonce":mpp_gutenberg.nonce}}).then(function(t){var r,n=Array(),i=Array(),a=0,l="",s=0,p="",c="",u="",m="";$.each(t.data,function(e,t){n[t.ID]={profile_pictures:t.profile_pictures,has_profile_picture:t.has_profile_picture,display_name:t.display_name,description:t.description,is_user_logged_in:t.is_user_logged_in,profile_picture_id:t.profile_picture_id,default_image:t.default_image,permalink:t.permalink},t.is_user_logged_in&&(a=t.ID),i.push({value:t.ID,label:t.display_name})}),0!==e.props.attributes.user_id&&(a=e.props.attributes.user_id);var f=n[a];f.has_profile_picture?(l=e.props.attributes.profileImgURL.length>0?e.props.attributes.profileImgURL:f.profile_pictures.thumbnail,s=e.props.attributes.profileImgID.length>0?e.props.attributes.profileImgID:f.profile_picture_id,p=e.props.attributes.profileName.length>0?e.props.attributes.profileName:f.display_name,u=e.props.attributes.profileTitle.length>0?e.props.attributes.profileTitle:"",m=f.permalink,c=e.props.attributes.profileContent.length>0?e.props.attributes.profileContent:f.description):(p=e.props.attributes.profileName.length>0?e.props.attributes.profileName:f.display_name,u=e.props.attributes.profileTitle.length>0?e.props.attributes.profileTitle:"",c=e.props.attributes.profileContent.length>0?e.props.attributes.profileContent:f.description,l=e.props.attributes.profileImgURL.length>0?e.props.attributes.profileImgURL:f.default_image,s=e.props.attributes.profileImgID.length>0?e.props.attributes.profileImgID:0,m=f.permalink),void 0==c&&(c=""),e.setState((r={loading:!1,users:n,active_user:a,user_list:i,profile_picture:l,profile_picture_id:s},o(r,"active_user",a),o(r,"profile_name",p),o(r,"profile_title",u),o(r,"profile_description",c),o(r,"profile_url",m),r)),e.props.setAttributes({profileContent:c,profileName:p,profileTitle:u,profileURL:m,profileImgID:s,profileImgURL:l})})},e.on_user_change=function(t){var r=e.state.users[t],o="",n=0;r.has_profile_picture?(o=e.state.users[t].profile_pictures.thumbnail,n=e.state.users[t].profile_picture_id):(o=mpp_gutenberg.mystery_man,n=0);var i=e.state.users[t].description;void 0===i&&(i=""),e.props.setAttributes({profileName:e.state.users[t].display_name,profileContent:i,profileTitle:"",profileURL:e.state.users[t].permalink,profileImgURL:o}),e.setState({profile_name:e.state.users[t].display_name,profile_description:i,profile_title:"",profile_picture:o,profile_picture_id:n,active_user:t,profile_url:e.state.users[t].permalink})},e.componentDidMount=function(){e.get_users()},e.handleImageChange=function(t,r){e.setState({profile_picture:r,profile_picture_id:t})},e.onChangeName=function(t){e.setState({profile_name:t})},e.onChangeTitle=function(t){e.setState({profile_title:t})},e.onChangeProfileText=function(t){e.setState({profile_description:t})},e.state={loading:!0,users:!1,user_list:!1,profile_picture:!1,profile_picture_id:0,active_user:!1,profile_description:"",profile_name:"",profile_title:""},e}return a(t,e),u(t,[{key:"render",value:function(){var e=this,t=this.props,r=t.attributes,o=r.profileName,n=r.profileTitle,i=r.profileContent,a=r.profileAlignment,l=r.profileImgURL,s=r.profileImgID,p=r.profileURL,u=r.profileFontSize,m=r.profileBackgroundColor,f=r.profileTextColor,g=r.profileAvatarShape,T=r.profileViewPostsBackgroundColor,I=r.profileViewPostsTextColor,L=r.showTitle,O=r.showName,V=r.showDescription,H=r.showViewPosts,R=(t.attributes,t.isSelected,t.editable,t.className,t.setAttributes);this.state.profile_pictures;s=this.state.profile_picture_id,l=this.state.profile_picture,o=this.state.profile_name,i=this.state.profile_description,n=this.state.profile_title,p=this.state.profile_url;var M=function(e){return R({profileBackgroundColor:e})},B=function(e){return R({profileTextColor:e})},U=function(e){return R({profileViewPostsBackgroundColor:e})},D=function(e){return R({profileViewPostsTextColor:e})},F=[{value:"square",label:d("Square","metronet-profile-picture")},{value:"round",label:d("Round","metronet-profile-picture")}];return wp.element.createElement(h,null,this.state.loading&&wp.element.createElement(h,null,wp.element.createElement(w,null,d("Loading...","metronet-profile-picture"),wp.element.createElement(E,null))),!this.state.loading&&wp.element.createElement(h,null,wp.element.createElement(P,null,wp.element.createElement(b,{title:d("User Profile Settings","metronet-profile-picture")},wp.element.createElement(v,{label:d("Select a user","metronet-profile-picture"),value:this.state.active_user,options:this.state.user_list,onChange:function(t){e.on_user_change(t),R({user_id:Number(t)})}}),wp.element.createElement(C,{label:d("Font Size","metronet-profile-picture"),value:u,onChange:function(t){return e.props.setAttributes({profileFontSize:t})},min:14,max:24,step:1}),wp.element.createElement(v,{label:d("Avatar Shape","metronet-profile-picture"),description:d("Choose between a round or square avatar shape.","metronet-profile-picture"),options:F,value:g,onChange:function(t){return e.props.setAttributes({profileAvatarShape:t})}}),wp.element.createElement(A,{title:d("Background Color","metronet-profile-picture"),initialOpen:!1,colorSettings:[{value:m,onChange:M,label:d("Background Color","metronet-profile-picture")}]}),wp.element.createElement(A,{title:d("Text Color","metronet-profile-picture"),initialOpen:!1,colorSettings:[{value:f,onChange:B,label:d("Text Color","metronet-profile-picture")}]}),wp.element.createElement(A,{title:d("View Posts Background Color","metronet-profile-picture"),initialOpen:!1,colorSettings:[{value:T,onChange:U,label:d("View Posts Background","metronet-profile-picture")}]}),wp.element.createElement(A,{title:d("View Posts Text Color","metronet-profile-picture"),initialOpen:!1,colorSettings:[{value:I,onChange:D,label:d("View Posts Text Color","metronet-profile-picture")}]}),wp.element.createElement(_,{label:d("Show Name","metronet-profile-picture"),checked:O,onChange:function(){return e.props.setAttributes({showName:!O})}}),wp.element.createElement(_,{label:d("Show Title","metronet-profile-picture"),checked:L,onChange:function(){return e.props.setAttributes({showTitle:!L})}}),wp.element.createElement(_,{label:d("Show Description","metronet-profile-picture"),checked:V,onChange:function(){return e.props.setAttributes({showDescription:!V})}}),wp.element.createElement(_,{label:d("Show View Posts","metronet-profile-picture"),checked:H,onChange:function(){return e.props.setAttributes({showViewPosts:!H})}}))),wp.element.createElement(S,{key:"controls"},wp.element.createElement(k,{value:a,onChange:function(e){return R({profileAlignment:e})}})),wp.element.createElement("div",{className:c()("mpp-profile-wrap","legacy",a,g,"mt-font-size-"+u,"mpp-block-profile"),style:{backgroundColor:m,color:f}},wp.element.createElement("div",{className:c()("mpp-profile-gutenberg-wrap")},wp.element.createElement("div",{className:"mpp-profile-image-wrapper"},wp.element.createElement("div",{className:"mpp-profile-image-square"},wp.element.createElement(N,{buttonProps:{className:"change-image"},onSelect:function(t){e.handleImageChange(t.id,t.url),R({profileImgID:t.id,profileImgURL:t.url})},type:"image",value:s,render:function(e){var t=e.open;return wp.element.createElement(y,{onClick:t},s?wp.element.createElement("img",{class:"profile-avatar",src:l,alt:"avatar"}):wp.element.createElement("img",{src:l,alt:"placeholder"}))}}))),wp.element.createElement("div",{className:"mpp-content-wrap"},O&&wp.element.createElement(x,{tagName:"h2",placeholder:d("Add name","metronet-profile-picture"),value:o,className:"mpp-profile-name",style:{color:f},onChange:function(t){e.onChangeName(t),R({profileName:t})}}),L&&wp.element.createElement(x,{tagName:"p",placeholder:d("Add title","atomic-blocks"),value:n,className:"mpp-profile-title",style:{color:f},onChange:function(t){e.onChangeTitle(t),R({profileTitle:t})}}),V&&wp.element.createElement(x,{tagName:"div",className:"mpp-profile-text",placeholder:d("Add profile text...","metronet-profile-picture"),value:i,formattingControls:["bold","italic","strikethrough","link"],onChange:function(t){e.onChangeProfileText(t),R({profileContent:t})}}))),p&&!!p.length&&wp.element.createElement("div",{className:"mpp-gutenberg-view-posts"},H&&wp.element.createElement("div",{className:"mpp-profile-view-posts",style:{backgroundColor:T,color:I}},wp.element.createElement("a",{href:p,style:{backgroundColor:T,color:I}},d("View Posts","metronet-profile-picture")))))))}}]),t}(f);t.a=I}]);
|
dist/blocks.editor.build.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.mpp-spinner span{display:block;text-align:center;float:none;margin:0 auto}.editor-styles-wrapper .mpp-profile-wrap{margin:0 auto;padding:3%;border-radius:5px;margin-bottom:1.2em;margin-bottom:20px;line-height:1.1}.editor-styles-wrapper .mpp-profile-wrap.round .mpp-profile-image-wrapper{border-radius:50%;overflow:hidden}.editor-styles-wrapper .mpp-profile-wrap.round .mpp-profile-image-wrapper img{border-radius:50%}.editor-styles-wrapper .mpp-profile-wrap h1,.editor-styles-wrapper .mpp-profile-wrap h2,.editor-styles-wrapper .mpp-profile-wrap h3,.editor-styles-wrapper .mpp-profile-wrap h4,.editor-styles-wrapper .mpp-profile-wrap h5,.editor-styles-wrapper .mpp-profile-wrap h6{clear:none}.editor-styles-wrapper .mpp-profile-wrap h2:before{display:none}.editor-styles-wrapper .mpp-profile-wrap .mpp-profile-image-wrapper{position:relative;float:left;line-height:1.1;z-index:1000;background:#ddd;position:relative;min-width:150px;min-height:150px;max-width:150px;max-height:150px;width:100%;margin-right:20px}.editor-styles-wrapper .mpp-profile-wrap .mpp-profile-image-wrapper button{position:relative;min-width:150px;min-height:150px;max-width:150px;max-height:150px;z-index:1000}.editor-styles-wrapper .mpp-profile-wrap .mpp-profile-image-wrapper .mpp-profile-image-square{position:relative;top:0;left:0;height:100%;width:100%;z-index:5}.editor-styles-wrapper .mpp-profile-wrap .mpp-profile-image-wrapper .mpp-profile-image-square img{height:100%;width:100%;position:relative;z-index:5}.editor-styles-wrapper .mpp-profile-wrap .mpp-profile-image-wrapper .mpp-content-wrap{display:block;padding:0 15px 0 15px;-ms-flex:3 0 0px;flex:3 0 0}.editor-styles-wrapper .mpp-profile-wrap .mpp-profile-image-wrapper .mpp-profile-name{font:1.4em;line-height:1.2}@media only screen and (max-width: 600px){.editor-styles-wrapper .mpp-profile-wrap .mpp-profile-image-wrapper{-ms-flex:auto;flex:auto}}.editor-styles-wrapper .mpp-profile-wrap .mpp-profile-view-posts{display:block;width:100%;text-align:center;padding:10px 20px;margin-top:20px;background-color:#cf6d38;color:#FFF}.editor-styles-wrapper .mpp-profile-wrap .mpp-profile-view-posts a,.editor-styles-wrapper .mpp-profile-wrap .mpp-profile-view-posts a:hover,.editor-styles-wrapper .mpp-profile-wrap .mpp-profile-view-posts a:visited{display:block;width:100%;height:100%;color:#FFF;text-decoration:none}.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular{position:relative;margin:0 auto;line-height:1.1}.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular.round .mpp-profile-image-wrapper{border-radius:50%;overflow:hidden}.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular.round .mpp-profile-image-wrapper img{border-radius:50%}.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular h2:before{display:none}.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mpp-profile-image-wrapper{position:relative;float:left;line-height:1.1;z-index:1000;background:#ddd;position:relative;min-width:150px;min-height:150px;max-width:150px;max-height:150px;width:100%;margin-right:20px}.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mpp-profile-image-wrapper button{position:relative;min-width:150px;min-height:150px;max-width:150px;max-height:150px;z-index:1000}.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mpp-profile-image-wrapper .mpp-profile-image-square{position:relative;top:0;left:0;height:100%;width:100%;z-index:5}.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mpp-profile-image-wrapper .mpp-profile-image-square img{height:100%;width:100%;position:relative;z-index:5}.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mpp-profile-image-wrapper .mpp-content-wrap{display:block;padding:0 15px 0 15px;-ms-flex:3 0 0px;flex:3 0 0}.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mpp-profile-image-wrapper .mpp-profile-name{font:1.4em;line-height:1.2}@media only screen and (max-width: 600px){.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mpp-profile-image-wrapper{-ms-flex:auto;flex:auto}}.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mpp-gutenberg-view-posts{clear:both}.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mpp-gutenberg-view-posts:after{content:"";display:table;clear:both}.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mpp-profile-view-posts{clear:both;display:block;float:left;text-align:center;padding:10px 20px;margin-top:20px;margin-right:20px;background-color:#cf6d38;color:#FFF}.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mpp-profile-view-posts a,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mpp-profile-view-posts a:hover,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mpp-profile-view-posts a:visited{display:block;width:100%;height:100%;color:#FFF;text-decoration:none}.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mpp-profile-view-posts:after{content:"";display:table;clear:both}.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mpp-profile-view-website{display:block;float:left;text-align:center;padding:10px 20px;margin-top:20px;background-color:#333;color:#FFF}.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mpp-profile-view-website a,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mpp-profile-view-website a:hover,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mpp-profile-view-website a:visited{display:block;width:100%;height:100%;color:#FFF;text-decoration:none}.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular.right .mpp-profile-view-posts{float:right;margin-left:20px}.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular.center .mpp-profile-view-posts{display:inline-block;float:none;margin-left:20px}.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-10,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-10,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-10,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-10,.editor-styles-wrapper .mpp-profile-text.mt-font-size-10{font-size:10px}.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-10 p,.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-10 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-10 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-10 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-10 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-10 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-10 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-10 div,.editor-styles-wrapper .mpp-profile-text.mt-font-size-10 p,.editor-styles-wrapper .mpp-profile-text.mt-font-size-10 div{font-size:10px}.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-11,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-11,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-11,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-11,.editor-styles-wrapper .mpp-profile-text.mt-font-size-11{font-size:11px}.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-11 p,.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-11 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-11 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-11 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-11 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-11 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-11 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-11 div,.editor-styles-wrapper .mpp-profile-text.mt-font-size-11 p,.editor-styles-wrapper .mpp-profile-text.mt-font-size-11 div{font-size:11px}.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-12,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-12,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-12,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-12,.editor-styles-wrapper .mpp-profile-text.mt-font-size-12{font-size:12px}.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-12 p,.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-12 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-12 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-12 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-12 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-12 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-12 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-12 div,.editor-styles-wrapper .mpp-profile-text.mt-font-size-12 p,.editor-styles-wrapper .mpp-profile-text.mt-font-size-12 div{font-size:12px}.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-13,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-13,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-13,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-13,.editor-styles-wrapper .mpp-profile-text.mt-font-size-13{font-size:13px}.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-13 p,.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-13 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-13 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-13 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-13 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-13 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-13 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-13 div,.editor-styles-wrapper .mpp-profile-text.mt-font-size-13 p,.editor-styles-wrapper .mpp-profile-text.mt-font-size-13 div{font-size:13px}.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-14,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-14,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-14,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-14,.editor-styles-wrapper .mpp-profile-text.mt-font-size-14{font-size:14px}.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-14 p,.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-14 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-14 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-14 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-14 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-14 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-14 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-14 div,.editor-styles-wrapper .mpp-profile-text.mt-font-size-14 p,.editor-styles-wrapper .mpp-profile-text.mt-font-size-14 div{font-size:14px}.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-15,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-15,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-15,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-15,.editor-styles-wrapper .mpp-profile-text.mt-font-size-15{font-size:15px}.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-15 p,.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-15 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-15 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-15 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-15 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-15 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-15 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-15 div,.editor-styles-wrapper .mpp-profile-text.mt-font-size-15 p,.editor-styles-wrapper .mpp-profile-text.mt-font-size-15 div{font-size:15px}.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-16,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-16,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-16,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-16,.editor-styles-wrapper .mpp-profile-text.mt-font-size-16{font-size:16px}.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-16 p,.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-16 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-16 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-16 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-16 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-16 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-16 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-16 div,.editor-styles-wrapper .mpp-profile-text.mt-font-size-16 p,.editor-styles-wrapper .mpp-profile-text.mt-font-size-16 div{font-size:16px}.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-17,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-17,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-17,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-17,.editor-styles-wrapper .mpp-profile-text.mt-font-size-17{font-size:17px}.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-17 p,.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-17 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-17 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-17 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-17 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-17 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-17 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-17 div,.editor-styles-wrapper .mpp-profile-text.mt-font-size-17 p,.editor-styles-wrapper .mpp-profile-text.mt-font-size-17 div{font-size:17px}.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-18,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-18,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-18,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-18,.editor-styles-wrapper .mpp-profile-text.mt-font-size-18{font-size:18px}.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-18 p,.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-18 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-18 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-18 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-18 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-18 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-18 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-18 div,.editor-styles-wrapper .mpp-profile-text.mt-font-size-18 p,.editor-styles-wrapper .mpp-profile-text.mt-font-size-18 div{font-size:18px}.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-19,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-19,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-19,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-19,.editor-styles-wrapper .mpp-profile-text.mt-font-size-19{font-size:19px}.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-19 p,.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-19 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-19 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-19 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-19 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-19 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-19 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-19 div,.editor-styles-wrapper .mpp-profile-text.mt-font-size-19 p,.editor-styles-wrapper .mpp-profile-text.mt-font-size-19 div{font-size:19px}.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-20,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-20,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-20,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-20,.editor-styles-wrapper .mpp-profile-text.mt-font-size-20{font-size:20px}.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-20 p,.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-20 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-20 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-20 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-20 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-20 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-20 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-20 div,.editor-styles-wrapper .mpp-profile-text.mt-font-size-20 p,.editor-styles-wrapper .mpp-profile-text.mt-font-size-20 div{font-size:20px}.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-21,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-21,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-21,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-21,.editor-styles-wrapper .mpp-profile-text.mt-font-size-21{font-size:21px}.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-21 p,.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-21 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-21 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-21 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-21 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-21 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-21 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-21 div,.editor-styles-wrapper .mpp-profile-text.mt-font-size-21 p,.editor-styles-wrapper .mpp-profile-text.mt-font-size-21 div{font-size:21px}.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-22,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-22,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-22,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-22,.editor-styles-wrapper .mpp-profile-text.mt-font-size-22{font-size:22px}.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-22 p,.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-22 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-22 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-22 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-22 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-22 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-22 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-22 div,.editor-styles-wrapper .mpp-profile-text.mt-font-size-22 p,.editor-styles-wrapper .mpp-profile-text.mt-font-size-22 div{font-size:22px}.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-23,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-23,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-23,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-23,.editor-styles-wrapper .mpp-profile-text.mt-font-size-23{font-size:23px}.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-23 p,.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-23 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-23 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-23 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-23 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-23 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-23 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-23 div,.editor-styles-wrapper .mpp-profile-text.mt-font-size-23 p,.editor-styles-wrapper .mpp-profile-text.mt-font-size-23 div{font-size:23px}.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-24,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-24,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-24,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-24,.editor-styles-wrapper .mpp-profile-text.mt-font-size-24{font-size:24px}.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-24 p,.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-24 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-24 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-24 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-24 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-24 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-24 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-24 div,.editor-styles-wrapper .mpp-profile-text.mt-font-size-24 p,.editor-styles-wrapper .mpp-profile-text.mt-font-size-24 div{font-size:24px}.mpp-social{margin-top:15px}.mpp-social svg{max-width:32px;max-height:32px;margin-right:10px}.mpp-social{clear:both}.mpp-social svg.icon-twitter{fill:#00aced}.mpp-social svg.icon-amazon{fill:#000}.mpp-social svg.icon-behance{fill:#0692e9}.mpp-social svg.icon-blogger{fill:#fb8f3d}.mpp-social svg.icon-codepen{fill:#000}.mpp-social svg.icon-dribble{fill:#F46899}.mpp-social svg.icon-dropbox{fill:#018BD3}.mpp-social svg.icon-eventbrite{fill:#f6682F}.mpp-social svg.icon-facebook{fill:#3b5998}.mpp-social svg.icon-flickr{fill:#ff0084}.mpp-social svg.icon-foursquare{fill:#0072b1}.mpp-social svg.icon-ghost{fill:#000}.mpp-social svg.icon-github{fill:#070709}.mpp-social svg.icon-google-plus{fill:#CF3D2E}.mpp-social svg.icon-instagram{fill:#A1755C}.mpp-social svg.icon-linkedin{fill:#0085AE}.mpp-social svg.icon-feed{fill:#f26522}.mpp-social svg.icon-medium{fill:#000}.mpp-social svg.icon-path{fill:#000}.mpp-social svg.icon-pinterest{fill:#CC2127}.mpp-social svg.icon-pocket{fill:#000}.mpp-social svg.icon-polldaddy{fill:#bc0b0b}.mpp-social svg.icon-reddit{fill:#000}.mpp-social svg.icon-skype{fill:#01AEF2}.mpp-social svg.icon-spotify{fill:#1ed760}.mpp-social svg.icon-squarespace{fill:#000}.mpp-social svg.icon-stumbleupon{fill:#EB4823}.mpp-social svg.icon-telegram{fill:#000}.mpp-social svg.icon-tumblr-alt{fill:#314E6C}.mpp-social svg.icon-twitch{fill:#4b367c}.mpp-social svg.icon-twitter-alt{fill:#00aced}.mpp-social svg.icon-vimeo{fill:#1ab7ea}.mpp-social svg.icon-wordpress{fill:#21759b}.mpp-social svg.icon-youtube{fill:#b00}.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile{padding:10px}.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile h2{font-size:0.8em;font-weight:normal;margin-bottom:5px}.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile h2:before{display:none}.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile.round .profile-avatar{border-radius:50%}.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mpp-profile-image-wrapper{position:relative;float:left;line-height:1.0;z-index:1000;min-width:150px;min-height:150px;max-width:150px;max-height:150px;margin-right:15px}.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mpp-profile-meta{clear:both;margin:10px 0}.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mpp-profile-meta:after{content:"";display:table;clear:both}.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .alignleft{max-width:none;float:left}.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .alignright{max-width:none;float:right}.editor-styles-wrapper .mpp-author-tabbed{padding:10px}.editor-styles-wrapper .mpp-author-tabbed:after{content:"";display:table;clear:both}.editor-styles-wrapper .mpp-author-tabbed .mpp-social{margin-top:0}.editor-styles-wrapper .mpp-author-tabbed .mpp-author-social-wrapper{margin-bottom:10px}.editor-styles-wrapper .mpp-author-tabbed .mpp-author-social-wrapper:after{content:"";display:table;clear:both}.editor-styles-wrapper .mpp-author-tabbed h2{font-size:0.8em;font-weight:normal;margin-bottom:5px}.editor-styles-wrapper .mpp-author-tabbed h2:before{display:none}.editor-styles-wrapper .mpp-author-tabbed .mpp-tab-wrapper{clear:both}.editor-styles-wrapper .mpp-author-tabbed .mpp-author-heading{float:left}.editor-styles-wrapper .mpp-author-tabbed .mpp-author-social{float:right}.editor-styles-wrapper .mpp-author-tabbed .mpp-author-heading .mpp-author-profile-heading{display:inline-block;background:#42737b;color:#FFF;padding:10px 20px;font-size:14px;text-transform:uppercase}.editor-styles-wrapper .mpp-author-tabbed .mpp-author-profile-sub-heading{font-size:14px;line-height:1.1;max-width:150px;text-align:center}.editor-styles-wrapper .mpp-author-tabbed.round .profile-avatar{border-radius:50%}.editor-styles-wrapper .mpp-author-tabbed .mpp-profile-image-wrapper{clear:both;position:relative;float:left;line-height:1.0;z-index:1000;margin-right:30px}.editor-styles-wrapper .mpp-author-tabbed .mpp-profile-image-wrapper img{min-width:150px;min-height:150px;max-height:150px;max-width:150px}.editor-styles-wrapper .mpp-author-tabbed .mpp-profile-meta{clear:both;margin:10px 0}.editor-styles-wrapper .mpp-author-tabbed .mpp-profile-meta:after{content:"";display:table;clear:both}.editor-styles-wrapper .mpp-author-tabbed .mpp-author-profile-title{color:gray;text-transform:uppercase;font-size:12px}.editor-styles-wrapper .mpp-author-tabbed .mpp-tabbed-profile-information:after{content:"";display:table;clear:both}.editor-styles-wrapper .mpp-author-tabbed ul.mpp-author-tabs{position:relative;list-style-type:none;margin:0;padding:0;text-align:center}.editor-styles-wrapper .mpp-author-tabbed ul.mpp-author-tabs li{cursor:pointer;position:relative;display:inline-block;min-width:200px;background:#42737b;margin:0 5px 0 0;text-align:center;margin-right:10px;color:#FFF;padding:10px 20px;font-size:16px}.editor-styles-wrapper .mpp-author-tabbed ul.mpp-author-tabs li:last-child{margin-right:0}.editor-styles-wrapper .mpp-author-tabbed ul.mpp-author-tabs li.mpp-tab-posts{background:#30424b}.editor-styles-wrapper .mpp-author-tabbed ul.mpp-author-tab-content{list-style-type:none;margin:0}.editor-styles-wrapper .mpp-author-tabbed ul.mpp-author-tab-content li{margin:0}.editor-styles-wrapper .mpp-author-tabbed ul.mpp-author-tab-content.white a,.editor-styles-wrapper .mpp-author-tabbed ul.mpp-author-tab-content.white a:hover,.editor-styles-wrapper .mpp-author-tabbed ul.mpp-author-tab-content.white a:visited{display:block;background:#FFFFFF;border:1px solid #f2f2f2;padding:10px 20px;text-decoration:none;color:#333}.editor-styles-wrapper .mpp-author-tabbed ul.mpp-author-tab-content.white a:hover{background:#f2f2f2}.editor-styles-wrapper .mpp-author-tabbed ul.mpp-author-tab-content.light a,.editor-styles-wrapper .mpp-author-tabbed ul.mpp-author-tab-content.light a:hover,.editor-styles-wrapper .mpp-author-tabbed ul.mpp-author-tab-content.light a:visited{display:block;background:#f7f7f7;border:1px solid #dedede;padding:10px 20px;text-decoration:none;color:#333}.editor-styles-wrapper .mpp-author-tabbed ul.mpp-author-tab-content.light a:hover{background:#dedede}.editor-styles-wrapper .mpp-author-tabbed ul.mpp-author-tab-content.black a,.editor-styles-wrapper .mpp-author-tabbed ul.mpp-author-tab-content.black a:hover,.editor-styles-wrapper .mpp-author-tabbed ul.mpp-author-tab-content.black a:visited{display:block;background:#333;color:#FFF;border:1px solid #1a1a1a;padding:10px 20px;text-decoration:none}.editor-styles-wrapper .mpp-author-tabbed ul.mpp-author-tab-content.black a:hover{background:#1a1a1a}.editor-styles-wrapper .mpp-author-tabbed ul.mpp-author-tab-content.magenta a,.editor-styles-wrapper .mpp-author-tabbed ul.mpp-author-tab-content.magenta a:hover,.editor-styles-wrapper .mpp-author-tabbed ul.mpp-author-tab-content.magenta a:visited{display:block;background:#FF00FF;color:#FFF;border:1px solid #c0c;padding:10px 20px;text-decoration:none}.editor-styles-wrapper .mpp-author-tabbed ul.mpp-author-tab-content.magenta a:hover{background:#c0c}.editor-styles-wrapper .mpp-author-tabbed ul.mpp-author-tab-content.blue a,.editor-styles-wrapper .mpp-author-tabbed ul.mpp-author-tab-content.blue a:hover,.editor-styles-wrapper .mpp-author-tabbed ul.mpp-author-tab-content.blue a:visited{display:block;background:#0009c1;color:#FFF;border:1px solid #00078e;padding:10px 20px;text-decoration:none}.editor-styles-wrapper .mpp-author-tabbed ul.mpp-author-tab-content.blue a:hover{background:#00078e}.editor-styles-wrapper .mpp-author-tabbed ul.mpp-author-tab-content.green a,.editor-styles-wrapper .mpp-author-tabbed ul.mpp-author-tab-content.green a:hover,.editor-styles-wrapper .mpp-author-tabbed ul.mpp-author-tab-content.green a:visited{display:block;background:#03ac27;color:#FFF;border:1px solid #027a1c;padding:10px 20px;text-decoration:none}.editor-styles-wrapper .mpp-author-tabbed ul.mpp-author-tab-content.green a:hover{background:#027a1c}.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact{text-align:center;padding:10px;max-width:400px;margin:0 auto;line-height:1.1}.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact h2{font-size:0.8em;font-weight:normal;margin-bottom:5px}.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact h2:before{display:none}.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact.round .profile-avatar{border-radius:50%}.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mpp-profile-image-wrapper{position:relative;text-align:center;line-height:1.0;z-index:1000;min-width:150px;min-height:150px;max-width:150px;max-height:150px;margin:0 auto}.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mpp-profile-text{line-height:1.1}.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mpp-compact-meta{clear:both;margin:10px 0}.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mpp-compact-meta:after{content:"";display:table;clear:both}.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mpp-profile-view-posts{clear:both;display:block;text-align:center;padding:10px 20px;margin-top:20px;margin-right:20px;background-color:#cf6d38;color:#FFF;margin-bottom:10px}.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mpp-profile-view-posts a,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mpp-profile-view-posts a:hover,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mpp-profile-view-posts a:visited{display:block;width:100%;height:100%;color:#FFF;text-decoration:none}.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mpp-profile-view-posts:after{content:"";display:table;clear:both}.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mpp-profile-view-website{display:block;text-align:center;padding:10px 20px;margin-top:20px;background-color:#333;color:#FFF}.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mpp-profile-view-website a,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mpp-profile-view-website a:hover,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mpp-profile-view-website a:visited{display:block;width:100%;height:100%;color:#FFF;text-decoration:none}
|
1 |
+
.mpp-spinner span{display:block;text-align:center;float:none;margin:0 auto}.editor-styles-wrapper .mpp-profile-wrap{margin:0 auto;padding:3%;border-radius:5px;margin-bottom:1.2em;margin-bottom:20px;line-height:1.1}.editor-styles-wrapper .mpp-profile-wrap.round .mpp-profile-image-wrapper{border-radius:50%;overflow:hidden}.editor-styles-wrapper .mpp-profile-wrap.round .mpp-profile-image-wrapper img{border-radius:50%}.editor-styles-wrapper .mpp-profile-wrap .mpp-profile-image-wrapper button{height:auto}.editor-styles-wrapper .mpp-profile-wrap h1,.editor-styles-wrapper .mpp-profile-wrap h2,.editor-styles-wrapper .mpp-profile-wrap h3,.editor-styles-wrapper .mpp-profile-wrap h4,.editor-styles-wrapper .mpp-profile-wrap h5,.editor-styles-wrapper .mpp-profile-wrap h6{clear:none}.editor-styles-wrapper .mpp-profile-wrap h2:before{display:none}.editor-styles-wrapper .mpp-profile-wrap .mpp-profile-image-wrapper{position:relative;float:left;line-height:1.1;z-index:1000;background:#ddd;position:relative;min-width:150px;min-height:150px;max-width:150px;max-height:150px;width:100%;margin-right:20px}.editor-styles-wrapper .mpp-profile-wrap .mpp-profile-image-wrapper button.components-button,.editor-styles-wrapper .mpp-profile-wrap .mpp-profile-image-wrapper button{position:relative;min-width:150px;min-height:150px;max-width:150px;max-height:150px;z-index:1000}.editor-styles-wrapper .mpp-profile-wrap .mpp-profile-image-wrapper .mpp-profile-image-square{position:relative;top:0;left:0;height:100%;width:100%;z-index:5}.editor-styles-wrapper .mpp-profile-wrap .mpp-profile-image-wrapper .mpp-profile-image-square img{height:100%;width:100%;position:relative;z-index:5}.editor-styles-wrapper .mpp-profile-wrap .mpp-profile-image-wrapper .mpp-content-wrap{display:block;padding:0 15px 0 15px;-ms-flex:3 0 0px;flex:3 0 0}.editor-styles-wrapper .mpp-profile-wrap .mpp-profile-image-wrapper .mpp-profile-name{font:1.4em;line-height:1.2}@media only screen and (max-width: 600px){.editor-styles-wrapper .mpp-profile-wrap .mpp-profile-image-wrapper{-ms-flex:auto;flex:auto}}.editor-styles-wrapper .mpp-profile-wrap .mpp-profile-view-posts{display:block;width:100%;text-align:center;padding:10px 20px;margin-top:20px;background-color:#cf6d38;color:#FFF}.editor-styles-wrapper .mpp-profile-wrap .mpp-profile-view-posts a,.editor-styles-wrapper .mpp-profile-wrap .mpp-profile-view-posts a:hover,.editor-styles-wrapper .mpp-profile-wrap .mpp-profile-view-posts a:visited{display:block;width:100%;height:100%;color:#FFF;text-decoration:none}.mpp-profile-image-wrapper button{position:relative;min-width:150px;min-height:150px;max-width:150px;max-height:150px;z-index:1000}.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular{position:relative;margin:0 auto;line-height:1.1}.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular.round .mpp-profile-image-wrapper{border-radius:50%;overflow:hidden}.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular.round .mpp-profile-image-wrapper img{border-radius:50%}.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular h2:before{display:none}.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mpp-profile-image-wrapper{position:relative;float:left;line-height:1.1;z-index:1000;background:#ddd;position:relative;min-width:150px;min-height:150px;max-width:150px;max-height:150px;width:100%;margin-right:20px}.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mpp-profile-image-wrapper button{position:relative;min-width:150px;min-height:150px;max-width:150px;max-height:150px;z-index:1000}.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mpp-profile-image-wrapper .mpp-profile-image-square{position:relative;top:0;left:0;height:100%;width:100%;z-index:5}.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mpp-profile-image-wrapper .mpp-profile-image-square img{height:100%;width:100%;position:relative;z-index:5}.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mpp-profile-image-wrapper .mpp-content-wrap{display:block;padding:0 15px 0 15px;-ms-flex:3 0 0px;flex:3 0 0}.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mpp-profile-image-wrapper .mpp-profile-name{font:1.4em;line-height:1.2}@media only screen and (max-width: 600px){.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mpp-profile-image-wrapper{-ms-flex:auto;flex:auto}}.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mpp-gutenberg-view-posts{clear:both}.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mpp-gutenberg-view-posts:after{content:"";display:table;clear:both}.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mpp-profile-view-posts{clear:both;display:block;float:left;text-align:center;padding:10px 20px;margin-top:20px;margin-right:20px;background-color:#cf6d38;color:#FFF}.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mpp-profile-view-posts a,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mpp-profile-view-posts a:hover,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mpp-profile-view-posts a:visited{display:block;width:100%;height:100%;color:#FFF;text-decoration:none}.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mpp-profile-view-posts:after{content:"";display:table;clear:both}.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mpp-profile-view-website{display:block;float:left;text-align:center;padding:10px 20px;margin-top:20px;background-color:#333;color:#FFF}.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mpp-profile-view-website a,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mpp-profile-view-website a:hover,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mpp-profile-view-website a:visited{display:block;width:100%;height:100%;color:#FFF;text-decoration:none}.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular.right .mpp-profile-view-posts{float:right;margin-left:20px}.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular.center .mpp-profile-view-posts{display:inline-block;float:none;margin-left:20px}.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-10,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-10,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-10,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-10,.editor-styles-wrapper .mpp-profile-text.mt-font-size-10{font-size:10px}.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-10 p,.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-10 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-10 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-10 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-10 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-10 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-10 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-10 div,.editor-styles-wrapper .mpp-profile-text.mt-font-size-10 p,.editor-styles-wrapper .mpp-profile-text.mt-font-size-10 div{font-size:10px}.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-11,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-11,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-11,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-11,.editor-styles-wrapper .mpp-profile-text.mt-font-size-11{font-size:11px}.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-11 p,.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-11 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-11 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-11 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-11 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-11 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-11 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-11 div,.editor-styles-wrapper .mpp-profile-text.mt-font-size-11 p,.editor-styles-wrapper .mpp-profile-text.mt-font-size-11 div{font-size:11px}.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-12,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-12,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-12,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-12,.editor-styles-wrapper .mpp-profile-text.mt-font-size-12{font-size:12px}.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-12 p,.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-12 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-12 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-12 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-12 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-12 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-12 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-12 div,.editor-styles-wrapper .mpp-profile-text.mt-font-size-12 p,.editor-styles-wrapper .mpp-profile-text.mt-font-size-12 div{font-size:12px}.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-13,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-13,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-13,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-13,.editor-styles-wrapper .mpp-profile-text.mt-font-size-13{font-size:13px}.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-13 p,.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-13 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-13 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-13 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-13 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-13 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-13 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-13 div,.editor-styles-wrapper .mpp-profile-text.mt-font-size-13 p,.editor-styles-wrapper .mpp-profile-text.mt-font-size-13 div{font-size:13px}.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-14,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-14,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-14,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-14,.editor-styles-wrapper .mpp-profile-text.mt-font-size-14{font-size:14px}.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-14 p,.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-14 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-14 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-14 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-14 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-14 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-14 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-14 div,.editor-styles-wrapper .mpp-profile-text.mt-font-size-14 p,.editor-styles-wrapper .mpp-profile-text.mt-font-size-14 div{font-size:14px}.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-15,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-15,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-15,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-15,.editor-styles-wrapper .mpp-profile-text.mt-font-size-15{font-size:15px}.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-15 p,.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-15 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-15 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-15 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-15 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-15 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-15 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-15 div,.editor-styles-wrapper .mpp-profile-text.mt-font-size-15 p,.editor-styles-wrapper .mpp-profile-text.mt-font-size-15 div{font-size:15px}.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-16,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-16,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-16,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-16,.editor-styles-wrapper .mpp-profile-text.mt-font-size-16{font-size:16px}.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-16 p,.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-16 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-16 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-16 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-16 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-16 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-16 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-16 div,.editor-styles-wrapper .mpp-profile-text.mt-font-size-16 p,.editor-styles-wrapper .mpp-profile-text.mt-font-size-16 div{font-size:16px}.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-17,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-17,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-17,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-17,.editor-styles-wrapper .mpp-profile-text.mt-font-size-17{font-size:17px}.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-17 p,.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-17 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-17 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-17 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-17 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-17 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-17 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-17 div,.editor-styles-wrapper .mpp-profile-text.mt-font-size-17 p,.editor-styles-wrapper .mpp-profile-text.mt-font-size-17 div{font-size:17px}.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-18,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-18,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-18,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-18,.editor-styles-wrapper .mpp-profile-text.mt-font-size-18{font-size:18px}.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-18 p,.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-18 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-18 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-18 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-18 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-18 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-18 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-18 div,.editor-styles-wrapper .mpp-profile-text.mt-font-size-18 p,.editor-styles-wrapper .mpp-profile-text.mt-font-size-18 div{font-size:18px}.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-19,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-19,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-19,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-19,.editor-styles-wrapper .mpp-profile-text.mt-font-size-19{font-size:19px}.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-19 p,.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-19 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-19 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-19 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-19 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-19 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-19 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-19 div,.editor-styles-wrapper .mpp-profile-text.mt-font-size-19 p,.editor-styles-wrapper .mpp-profile-text.mt-font-size-19 div{font-size:19px}.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-20,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-20,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-20,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-20,.editor-styles-wrapper .mpp-profile-text.mt-font-size-20{font-size:20px}.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-20 p,.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-20 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-20 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-20 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-20 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-20 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-20 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-20 div,.editor-styles-wrapper .mpp-profile-text.mt-font-size-20 p,.editor-styles-wrapper .mpp-profile-text.mt-font-size-20 div{font-size:20px}.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-21,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-21,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-21,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-21,.editor-styles-wrapper .mpp-profile-text.mt-font-size-21{font-size:21px}.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-21 p,.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-21 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-21 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-21 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-21 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-21 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-21 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-21 div,.editor-styles-wrapper .mpp-profile-text.mt-font-size-21 p,.editor-styles-wrapper .mpp-profile-text.mt-font-size-21 div{font-size:21px}.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-22,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-22,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-22,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-22,.editor-styles-wrapper .mpp-profile-text.mt-font-size-22{font-size:22px}.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-22 p,.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-22 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-22 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-22 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-22 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-22 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-22 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-22 div,.editor-styles-wrapper .mpp-profile-text.mt-font-size-22 p,.editor-styles-wrapper .mpp-profile-text.mt-font-size-22 div{font-size:22px}.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-23,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-23,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-23,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-23,.editor-styles-wrapper .mpp-profile-text.mt-font-size-23{font-size:23px}.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-23 p,.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-23 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-23 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-23 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-23 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-23 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-23 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-23 div,.editor-styles-wrapper .mpp-profile-text.mt-font-size-23 p,.editor-styles-wrapper .mpp-profile-text.mt-font-size-23 div{font-size:23px}.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-24,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-24,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-24,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-24,.editor-styles-wrapper .mpp-profile-text.mt-font-size-24{font-size:24px}.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-24 p,.editor-styles-wrapper .mpp-profile-wrap.mt-font-size-24 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-24 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.regular .mt-font-size-24 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-24 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mt-font-size-24 div,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-24 p,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mt-font-size-24 div,.editor-styles-wrapper .mpp-profile-text.mt-font-size-24 p,.editor-styles-wrapper .mpp-profile-text.mt-font-size-24 div{font-size:24px}.mpp-social{margin-top:15px}.mpp-social svg{max-width:32px;max-height:32px;margin-right:10px}.mpp-social{clear:both}.mpp-social svg.icon-twitter{fill:#00aced}.mpp-social svg.icon-amazon{fill:#000}.mpp-social svg.icon-behance{fill:#0692e9}.mpp-social svg.icon-blogger{fill:#fb8f3d}.mpp-social svg.icon-codepen{fill:#000}.mpp-social svg.icon-dribble{fill:#F46899}.mpp-social svg.icon-dropbox{fill:#018BD3}.mpp-social svg.icon-eventbrite{fill:#f6682F}.mpp-social svg.icon-facebook{fill:#3b5998}.mpp-social svg.icon-flickr{fill:#ff0084}.mpp-social svg.icon-foursquare{fill:#0072b1}.mpp-social svg.icon-ghost{fill:#000}.mpp-social svg.icon-github{fill:#070709}.mpp-social svg.icon-google-plus{fill:#CF3D2E}.mpp-social svg.icon-instagram{fill:#A1755C}.mpp-social svg.icon-linkedin{fill:#0085AE}.mpp-social svg.icon-feed{fill:#f26522}.mpp-social svg.icon-medium{fill:#000}.mpp-social svg.icon-path{fill:#000}.mpp-social svg.icon-pinterest{fill:#CC2127}.mpp-social svg.icon-pocket{fill:#000}.mpp-social svg.icon-polldaddy{fill:#bc0b0b}.mpp-social svg.icon-reddit{fill:#000}.mpp-social svg.icon-skype{fill:#01AEF2}.mpp-social svg.icon-spotify{fill:#1ed760}.mpp-social svg.icon-squarespace{fill:#000}.mpp-social svg.icon-stumbleupon{fill:#EB4823}.mpp-social svg.icon-telegram{fill:#000}.mpp-social svg.icon-tumblr-alt{fill:#314E6C}.mpp-social svg.icon-twitch{fill:#4b367c}.mpp-social svg.icon-twitter-alt{fill:#00aced}.mpp-social svg.icon-vimeo{fill:#1ab7ea}.mpp-social svg.icon-wordpress{fill:#21759b}.mpp-social svg.icon-youtube{fill:#b00}.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile{padding:10px}.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile h2{font-size:0.8em;font-weight:normal;margin-bottom:5px}.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile h2:before{display:none}.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile.round .profile-avatar{border-radius:50%}.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mpp-profile-image-wrapper{position:relative;float:left;line-height:1.0;z-index:1000;min-width:150px;min-height:150px;max-width:150px;max-height:150px;margin-right:15px}.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mpp-profile-meta{clear:both;margin:10px 0}.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .mpp-profile-meta:after{content:"";display:table;clear:both}.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .alignleft{max-width:none;float:left}.editor-styles-wrapper .mpp-enhanced-profile-wrap.profile .alignright{max-width:none;float:right}.editor-styles-wrapper .mpp-author-tabbed{padding:10px}.editor-styles-wrapper .mpp-author-tabbed:after{content:"";display:table;clear:both}.editor-styles-wrapper .mpp-author-tabbed .mpp-social{margin-top:0}.editor-styles-wrapper .mpp-author-tabbed .mpp-author-social-wrapper{margin-bottom:10px}.editor-styles-wrapper .mpp-author-tabbed .mpp-author-social-wrapper:after{content:"";display:table;clear:both}.editor-styles-wrapper .mpp-author-tabbed h2{font-size:0.8em;font-weight:normal;margin-bottom:5px}.editor-styles-wrapper .mpp-author-tabbed h2:before{display:none}.editor-styles-wrapper .mpp-author-tabbed .mpp-tab-wrapper{clear:both}.editor-styles-wrapper .mpp-author-tabbed .mpp-author-heading{float:left}.editor-styles-wrapper .mpp-author-tabbed .mpp-author-social{float:right}.editor-styles-wrapper .mpp-author-tabbed .mpp-author-heading .mpp-author-profile-heading{display:inline-block;background:#42737b;color:#FFF;padding:10px 20px;font-size:14px;text-transform:uppercase}.editor-styles-wrapper .mpp-author-tabbed .mpp-author-profile-sub-heading{font-size:14px;line-height:1.1;max-width:150px;text-align:center}.editor-styles-wrapper .mpp-author-tabbed.round .profile-avatar{border-radius:50%}.editor-styles-wrapper .mpp-author-tabbed .mpp-profile-image-wrapper{clear:both;position:relative;float:left;line-height:1.0;z-index:1000;margin-right:30px}.editor-styles-wrapper .mpp-author-tabbed .mpp-profile-image-wrapper img{min-width:150px;min-height:150px;max-height:150px;max-width:150px}.editor-styles-wrapper .mpp-author-tabbed .mpp-profile-meta{clear:both;margin:10px 0}.editor-styles-wrapper .mpp-author-tabbed .mpp-profile-meta:after{content:"";display:table;clear:both}.editor-styles-wrapper .mpp-author-tabbed .mpp-author-profile-title{color:gray;text-transform:uppercase;font-size:12px}.editor-styles-wrapper .mpp-author-tabbed .mpp-tabbed-profile-information:after{content:"";display:table;clear:both}.editor-styles-wrapper .mpp-author-tabbed ul.mpp-author-tabs{position:relative;list-style-type:none;margin:0;padding:0;text-align:center}.editor-styles-wrapper .mpp-author-tabbed ul.mpp-author-tabs li{cursor:pointer;position:relative;display:inline-block;min-width:200px;background:#42737b;margin:0 5px 0 0;text-align:center;margin-right:10px;color:#FFF;padding:10px 20px;font-size:16px}.editor-styles-wrapper .mpp-author-tabbed ul.mpp-author-tabs li:last-child{margin-right:0}.editor-styles-wrapper .mpp-author-tabbed ul.mpp-author-tabs li.mpp-tab-posts{background:#30424b}.editor-styles-wrapper .mpp-author-tabbed ul.mpp-author-tab-content{list-style-type:none;margin:0}.editor-styles-wrapper .mpp-author-tabbed ul.mpp-author-tab-content li{margin:0}.editor-styles-wrapper .mpp-author-tabbed ul.mpp-author-tab-content.white a,.editor-styles-wrapper .mpp-author-tabbed ul.mpp-author-tab-content.white a:hover,.editor-styles-wrapper .mpp-author-tabbed ul.mpp-author-tab-content.white a:visited{display:block;background:#FFFFFF;border:1px solid #f2f2f2;padding:10px 20px;text-decoration:none;color:#333}.editor-styles-wrapper .mpp-author-tabbed ul.mpp-author-tab-content.white a:hover{background:#f2f2f2}.editor-styles-wrapper .mpp-author-tabbed ul.mpp-author-tab-content.light a,.editor-styles-wrapper .mpp-author-tabbed ul.mpp-author-tab-content.light a:hover,.editor-styles-wrapper .mpp-author-tabbed ul.mpp-author-tab-content.light a:visited{display:block;background:#f7f7f7;border:1px solid #dedede;padding:10px 20px;text-decoration:none;color:#333}.editor-styles-wrapper .mpp-author-tabbed ul.mpp-author-tab-content.light a:hover{background:#dedede}.editor-styles-wrapper .mpp-author-tabbed ul.mpp-author-tab-content.black a,.editor-styles-wrapper .mpp-author-tabbed ul.mpp-author-tab-content.black a:hover,.editor-styles-wrapper .mpp-author-tabbed ul.mpp-author-tab-content.black a:visited{display:block;background:#333;color:#FFF;border:1px solid #1a1a1a;padding:10px 20px;text-decoration:none}.editor-styles-wrapper .mpp-author-tabbed ul.mpp-author-tab-content.black a:hover{background:#1a1a1a}.editor-styles-wrapper .mpp-author-tabbed ul.mpp-author-tab-content.magenta a,.editor-styles-wrapper .mpp-author-tabbed ul.mpp-author-tab-content.magenta a:hover,.editor-styles-wrapper .mpp-author-tabbed ul.mpp-author-tab-content.magenta a:visited{display:block;background:#FF00FF;color:#FFF;border:1px solid #c0c;padding:10px 20px;text-decoration:none}.editor-styles-wrapper .mpp-author-tabbed ul.mpp-author-tab-content.magenta a:hover{background:#c0c}.editor-styles-wrapper .mpp-author-tabbed ul.mpp-author-tab-content.blue a,.editor-styles-wrapper .mpp-author-tabbed ul.mpp-author-tab-content.blue a:hover,.editor-styles-wrapper .mpp-author-tabbed ul.mpp-author-tab-content.blue a:visited{display:block;background:#0009c1;color:#FFF;border:1px solid #00078e;padding:10px 20px;text-decoration:none}.editor-styles-wrapper .mpp-author-tabbed ul.mpp-author-tab-content.blue a:hover{background:#00078e}.editor-styles-wrapper .mpp-author-tabbed ul.mpp-author-tab-content.green a,.editor-styles-wrapper .mpp-author-tabbed ul.mpp-author-tab-content.green a:hover,.editor-styles-wrapper .mpp-author-tabbed ul.mpp-author-tab-content.green a:visited{display:block;background:#03ac27;color:#FFF;border:1px solid #027a1c;padding:10px 20px;text-decoration:none}.editor-styles-wrapper .mpp-author-tabbed ul.mpp-author-tab-content.green a:hover{background:#027a1c}.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact{text-align:center;padding:10px;max-width:400px;margin:0 auto;line-height:1.1}.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact h2{font-size:0.8em;font-weight:normal;margin-bottom:5px}.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact h2:before{display:none}.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact.round .profile-avatar{border-radius:50%}.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mpp-profile-image-wrapper{position:relative;text-align:center;line-height:1.0;z-index:1000;min-width:150px;min-height:150px;max-width:150px;max-height:150px;margin:0 auto}.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mpp-profile-text{line-height:1.1}.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mpp-compact-meta{clear:both;margin:10px 0}.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mpp-compact-meta:after{content:"";display:table;clear:both}.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mpp-profile-view-posts{clear:both;display:block;text-align:center;padding:10px 20px;margin-top:20px;margin-right:20px;background-color:#cf6d38;color:#FFF;margin-bottom:10px}.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mpp-profile-view-posts a,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mpp-profile-view-posts a:hover,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mpp-profile-view-posts a:visited{display:block;width:100%;height:100%;color:#FFF;text-decoration:none}.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mpp-profile-view-posts:after{content:"";display:table;clear:both}.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mpp-profile-view-website{display:block;text-align:center;padding:10px 20px;margin-top:20px;background-color:#333;color:#FFF}.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mpp-profile-view-website a,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mpp-profile-view-website a:hover,.editor-styles-wrapper .mpp-enhanced-profile-wrap.compact .mpp-profile-view-website a:visited{display:block;width:100%;height:100%;color:#FFF;text-decoration:none}
|
metronet-profile-picture.php
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?php // phpcs:ignore
|
2 |
/*
|
3 |
Plugin Name: User Profile Picture
|
4 |
-
Plugin URI: http://wordpress.org/
|
5 |
Description: Use the native WP uploader on your user profile page.
|
6 |
-
Author:
|
7 |
-
Version: 2.3.
|
8 |
Requires at least: 4.6
|
9 |
-
Author URI: https://www.
|
10 |
Contributors: ronalfy
|
11 |
Text Domain: metronet-profile-picture
|
12 |
Domain Path: /languages
|
13 |
*/
|
14 |
|
15 |
-
define( 'METRONET_PROFILE_PICTURE_VERSION', '2.3.
|
16 |
define( 'METRONET_PROFILE_PICTURE_PLUGIN_NAME', 'User Profile Picture' );
|
17 |
define( 'METRONET_PROFILE_PICTURE_DIR', plugin_dir_path( __FILE__ ) );
|
18 |
define( 'METRONET_PROFILE_PICTURE_URL', plugins_url( '/', __FILE__ ) );
|
@@ -28,7 +28,7 @@ define( 'METRONET_PROFILE_PICTURE_FILE', __FILE__ );
|
|
28 |
* @package User Profile Picture
|
29 |
* @author Ronald Huereca <ronald@mediaron.com>
|
30 |
* @license GPL-2.0+
|
31 |
-
* @link https://github.com/
|
32 |
*
|
33 |
* @since 1.0.0
|
34 |
*/
|
@@ -198,6 +198,14 @@ class Metronet_Profile_Picture {
|
|
198 |
<p class="description"><?php esc_html_e( 'Select this option if you do not want User Profile Picture to show up in Gutenberg or do not plan on using the blocks.', 'metronet-profile-picture' ); ?></p>
|
199 |
</td>
|
200 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
201 |
<?php
|
202 |
/**
|
203 |
* Allow other plugins to run code after the user profile admin Table Row.
|
@@ -281,7 +289,8 @@ class Metronet_Profile_Picture {
|
|
281 |
*/
|
282 |
private function get_defaults() {
|
283 |
$defaults = array(
|
284 |
-
'load_gutenberg'
|
|
|
285 |
);
|
286 |
|
287 |
/**
|
@@ -715,6 +724,12 @@ class Metronet_Profile_Picture {
|
|
715 |
$post_type_args = apply_filters( 'mpp_post_type_args', $post_type_args );
|
716 |
register_post_type( 'mt_pp', $post_type_args );
|
717 |
|
|
|
|
|
|
|
|
|
|
|
|
|
718 |
/**
|
719 |
* Filter the the creation of image sizes.
|
720 |
*
|
@@ -722,7 +737,7 @@ class Metronet_Profile_Picture {
|
|
722 |
*
|
723 |
* @param bool Whether to allow image size creation or not
|
724 |
*/
|
725 |
-
if ( apply_filters( 'mpp_add_image_sizes',
|
726 |
add_image_size( 'profile_24', 24, 24, true );
|
727 |
add_image_size( 'profile_48', 48, 48, true );
|
728 |
add_image_size( 'profile_96', 96, 96, true );
|
1 |
<?php // phpcs:ignore
|
2 |
/*
|
3 |
Plugin Name: User Profile Picture
|
4 |
+
Plugin URI: http://wordpress.org/plugins/metronet-profile-picture/
|
5 |
Description: Use the native WP uploader on your user profile page.
|
6 |
+
Author: Cozmoslabs
|
7 |
+
Version: 2.3.11
|
8 |
Requires at least: 4.6
|
9 |
+
Author URI: https://www.cozmoslabs.com
|
10 |
Contributors: ronalfy
|
11 |
Text Domain: metronet-profile-picture
|
12 |
Domain Path: /languages
|
13 |
*/
|
14 |
|
15 |
+
define( 'METRONET_PROFILE_PICTURE_VERSION', '2.3.11' );
|
16 |
define( 'METRONET_PROFILE_PICTURE_PLUGIN_NAME', 'User Profile Picture' );
|
17 |
define( 'METRONET_PROFILE_PICTURE_DIR', plugin_dir_path( __FILE__ ) );
|
18 |
define( 'METRONET_PROFILE_PICTURE_URL', plugins_url( '/', __FILE__ ) );
|
28 |
* @package User Profile Picture
|
29 |
* @author Ronald Huereca <ronald@mediaron.com>
|
30 |
* @license GPL-2.0+
|
31 |
+
* @link https://github.com/madalinungureanu/user-profile-picture
|
32 |
*
|
33 |
* @since 1.0.0
|
34 |
*/
|
198 |
<p class="description"><?php esc_html_e( 'Select this option if you do not want User Profile Picture to show up in Gutenberg or do not plan on using the blocks.', 'metronet-profile-picture' ); ?></p>
|
199 |
</td>
|
200 |
</tr>
|
201 |
+
<tr>
|
202 |
+
<th scope="row"><?php esc_html_e( 'Disable Image Sizes?', 'metronet-profile-picture' ); ?></th>
|
203 |
+
<td>
|
204 |
+
<input type="hidden" name="options['disable_image_sizes']" value="off" />
|
205 |
+
<input id="mpp-display-image-sizes" type="checkbox" value="on" name="options[disable_image_sizes]" <?php checked( 'on', $options['disable_image_sizes'] ); ?> /> <label for="mpp-display-image-sizes"><?php esc_html_e( 'Disable Image Sizes', 'metronet-profile-picture' ); ?></label>
|
206 |
+
<p class="description"><?php esc_html_e( 'Select this option to disable the four image sizes User Profile Picture Creates.' ); ?></p>
|
207 |
+
</td>
|
208 |
+
</tr>
|
209 |
<?php
|
210 |
/**
|
211 |
* Allow other plugins to run code after the user profile admin Table Row.
|
289 |
*/
|
290 |
private function get_defaults() {
|
291 |
$defaults = array(
|
292 |
+
'load_gutenberg' => 'on',
|
293 |
+
'disable_image_sizes' => 'off',
|
294 |
);
|
295 |
|
296 |
/**
|
724 |
$post_type_args = apply_filters( 'mpp_post_type_args', $post_type_args );
|
725 |
register_post_type( 'mt_pp', $post_type_args );
|
726 |
|
727 |
+
// Determine if to load image sizes or not.
|
728 |
+
$options = $this->get_options();
|
729 |
+
$display_image_sizes = true;
|
730 |
+
if ( 'on' === $options['disable_image_sizes'] ) {
|
731 |
+
$display_image_sizes = false;
|
732 |
+
}
|
733 |
/**
|
734 |
* Filter the the creation of image sizes.
|
735 |
*
|
737 |
*
|
738 |
* @param bool Whether to allow image size creation or not
|
739 |
*/
|
740 |
+
if ( apply_filters( 'mpp_add_image_sizes', $display_image_sizes ) ) {
|
741 |
add_image_size( 'profile_24', 24, 24, true );
|
742 |
add_image_size( 'profile_48', 48, 48, true );
|
743 |
add_image_size( 'profile_96', 96, 96, true );
|
readme.txt
CHANGED
@@ -1,24 +1,24 @@
|
|
1 |
=== User Profile Picture ===
|
2 |
-
Contributors: ronalfy, Alaadiaa
|
3 |
Tags: users, user profile, gravatar, avatar, blocks, block
|
4 |
Requires at least: 3.5
|
5 |
-
Tested up to: 5.
|
6 |
-
Stable tag: 2.3.
|
7 |
Requires PHP: 5.6
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
-
Donate link: https://
|
11 |
|
12 |
Set a custom profile image (avatar) for a user using the standard WordPress media upload tool.
|
13 |
== Description ==
|
14 |
|
15 |
Set or remove a custom profile image for a user using the standard WordPress media upload tool.
|
16 |
|
17 |
-
<a href="https://
|
18 |
|
19 |
https://www.youtube.com/watch?v=9icnOWWZUpA&rel=0
|
20 |
|
21 |
-
Users must have the ability to upload images (typically author role or greater). You can use the plugin <a href="https://wordpress.org/plugins/
|
22 |
|
23 |
A template tag is supplied for outputting to a theme and the option to override a user's default avatar is also available.
|
24 |
|
@@ -32,13 +32,9 @@ https://www.youtube.com/watch?v=k9bDmgunXvM&rel=0
|
|
32 |
|
33 |
== Documentation and Feedback ==
|
34 |
|
35 |
-
See the documentation on <a href="https://github.com/
|
36 |
|
37 |
-
|
38 |
-
|
39 |
-
There is currently one add-on, which <a href="https://wordpress.org/plugins/user-profile-picture-social-networks/">allows you to add social networks</a>.
|
40 |
-
|
41 |
-
> Please <a href="https://wordpress.org/support/plugin/metronet-profile-picture/reviews/#new-post">Rate the Plugin</a> or <a href="https://mediaron.com/give/">Give Back</a> to show support.
|
42 |
|
43 |
== Installation ==
|
44 |
|
@@ -92,7 +88,7 @@ mt_author_box( $post->post_author, array(
|
|
92 |
) );
|
93 |
`
|
94 |
|
95 |
-
View the code on <a href="https://github.com/
|
96 |
|
97 |
The REST API is currently supported for versions of WordPress 4.4 and up.
|
98 |
|
@@ -128,6 +124,10 @@ Yes, but you'll have to set a new profile image per site. This is currently a l
|
|
128 |
|
129 |
== Changelog ==
|
130 |
|
|
|
|
|
|
|
|
|
131 |
= 2.3.10 =
|
132 |
* Released 2019-12-29
|
133 |
* Added new hook for add-on capability.
|
@@ -351,5 +351,8 @@ Yes, but you'll have to set a new profile image per site. This is currently a l
|
|
351 |
|
352 |
== Upgrade Notice ==
|
353 |
|
|
|
|
|
|
|
354 |
= 2.3.10 =
|
355 |
Added new hook for add-on capability.
|
1 |
=== User Profile Picture ===
|
2 |
+
Contributors: cozmoslabs, ronalfy, Alaadiaa
|
3 |
Tags: users, user profile, gravatar, avatar, blocks, block
|
4 |
Requires at least: 3.5
|
5 |
+
Tested up to: 5.4
|
6 |
+
Stable tag: 2.3.11
|
7 |
Requires PHP: 5.6
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
+
Donate link: https://cozmoslabs.com/
|
11 |
|
12 |
Set a custom profile image (avatar) for a user using the standard WordPress media upload tool.
|
13 |
== Description ==
|
14 |
|
15 |
Set or remove a custom profile image for a user using the standard WordPress media upload tool.
|
16 |
|
17 |
+
<a href="https://www.cozmoslabs.com/user-profile-picture/">View Documentation and Examples</a>
|
18 |
|
19 |
https://www.youtube.com/watch?v=9icnOWWZUpA&rel=0
|
20 |
|
21 |
+
Users must have the ability to upload images (typically author role or greater). You can use the plugin <a href="https://wordpress.org/plugins/profile-builder/">Profile Builder</a> to allow other roles (e.g. subscribers) the ability to upload images.
|
22 |
|
23 |
A template tag is supplied for outputting to a theme and the option to override a user's default avatar is also available.
|
24 |
|
32 |
|
33 |
== Documentation and Feedback ==
|
34 |
|
35 |
+
See the documentation on <a href="https://github.com/madalinungureanu/user-profile-picture">GitHub</a>.
|
36 |
|
37 |
+
> Please <a href="https://wordpress.org/support/plugin/metronet-profile-picture/reviews/#new-post">Rate the Plugin</a>.
|
|
|
|
|
|
|
|
|
38 |
|
39 |
== Installation ==
|
40 |
|
88 |
) );
|
89 |
`
|
90 |
|
91 |
+
View the code on <a href="https://github.com/madalinungureanu/user-profile-picture">GitHub</a>.
|
92 |
|
93 |
The REST API is currently supported for versions of WordPress 4.4 and up.
|
94 |
|
124 |
|
125 |
== Changelog ==
|
126 |
|
127 |
+
= 2.3.11 =
|
128 |
+
* Released 2020-02-29
|
129 |
+
* Added option to disable image sizes.
|
130 |
+
|
131 |
= 2.3.10 =
|
132 |
* Released 2019-12-29
|
133 |
* Added new hook for add-on capability.
|
351 |
|
352 |
== Upgrade Notice ==
|
353 |
|
354 |
+
= 2.3.11 =
|
355 |
+
Added option to disable image sizes.
|
356 |
+
|
357 |
= 2.3.10 =
|
358 |
Added new hook for add-on capability.
|