!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=5)}([function(e,t,n){var r,o;!function(){"use strict";function n(){for(var e=[],t=0;te?o():!0!==t&&(a=setTimeout(r?c:o,void 0===r?e-i:e))}var a,l=0;return"boolean"!==typeof t&&(r=n,n=t,t=void 0),o}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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=n(1),c=(n.n(l),function(){function e(e,t){for(var n=0;n0&&wp.element.createElement("img",{src:t.images[0].src,alt:t.name}),wp.element.createElement("span",null,t.name))})):wp.element.createElement("p",null,t)))}}]),t}(u);t.a=b},function(e,t,n){"use strict";var r={};r.default=null,r.silver=[{elementType:"geometry",stylers:[{color:"#f5f5f5"}]},{elementType:"labels.icon",stylers:[{visibility:"off"}]},{elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{elementType:"labels.text.stroke",stylers:[{color:"#f5f5f5"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#bdbdbd"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#eeeeee"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#e5e5e5"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#ffffff"}]},{featureType:"road.arterial",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#dadada"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"transit.line",elementType:"geometry",stylers:[{color:"#e5e5e5"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#eeeeee"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#c9c9c9"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]}],r.retro=[{elementType:"geometry",stylers:[{color:"#ebe3cd"}]},{elementType:"labels.text.fill",stylers:[{color:"#523735"}]},{elementType:"labels.text.stroke",stylers:[{color:"#f5f1e6"}]},{featureType:"administrative",elementType:"geometry.stroke",stylers:[{color:"#c9b2a6"}]},{featureType:"administrative.land_parcel",elementType:"geometry.stroke",stylers:[{color:"#dcd2be"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#ae9e90"}]},{featureType:"landscape.natural",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#93817c"}]},{featureType:"poi.park",elementType:"geometry.fill",stylers:[{color:"#a5b076"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#447530"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#f5f1e6"}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#fdfcf8"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#f8c967"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#e9bc62"}]},{featureType:"road.highway.controlled_access",elementType:"geometry",stylers:[{color:"#e98d58"}]},{featureType:"road.highway.controlled_access",elementType:"geometry.stroke",stylers:[{color:"#db8555"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#806b63"}]},{featureType:"transit.line",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"transit.line",elementType:"labels.text.fill",stylers:[{color:"#8f7d77"}]},{featureType:"transit.line",elementType:"labels.text.stroke",stylers:[{color:"#ebe3cd"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"water",elementType:"geometry.fill",stylers:[{color:"#b9d3c2"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#92998d"}]}],r.night=[{elementType:"geometry",stylers:[{color:"#242f3e"}]},{elementType:"labels.text.stroke",stylers:[{color:"#242f3e"}]},{elementType:"labels.text.fill",stylers:[{color:"#746855"}]},{featureType:"administrative.locality",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#263c3f"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#6b9a76"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#38414e"}]},{featureType:"road",elementType:"geometry.stroke",stylers:[{color:"#212a37"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#9ca5b3"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#746855"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#1f2835"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#f3d19c"}]},{featureType:"transit",elementType:"geometry",stylers:[{color:"#2f3948"}]},{featureType:"transit.station",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#17263c"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#515c6d"}]},{featureType:"water",elementType:"labels.text.stroke",stylers:[{color:"#17263c"}]}],r.dark=[{elementType:"geometry",stylers:[{color:"#212121"}]},{elementType:"labels.icon",stylers:[{visibility:"off"}]},{elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{elementType:"labels.text.stroke",stylers:[{color:"#212121"}]},{featureType:"administrative",elementType:"geometry",stylers:[{color:"#757575"}]},{featureType:"administrative.country",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"administrative.land_parcel",stylers:[{visibility:"off"}]},{featureType:"administrative.locality",elementType:"labels.text.fill",stylers:[{color:"#bdbdbd"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#181818"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"poi.park",elementType:"labels.text.stroke",stylers:[{color:"#1b1b1b"}]},{featureType:"road",elementType:"geometry.fill",stylers:[{color:"#2c2c2c"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#8a8a8a"}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#373737"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#3c3c3c"}]},{featureType:"road.highway.controlled_access",elementType:"geometry",stylers:[{color:"#4e4e4e"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"transit",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#000000"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#3d3d3d"}]}],r.aubergine=[{elementType:"geometry",stylers:[{color:"#1d2c4d"}]},{elementType:"labels.text.fill",stylers:[{color:"#8ec3b9"}]},{elementType:"labels.text.stroke",stylers:[{color:"#1a3646"}]},{featureType:"administrative.country",elementType:"geometry.stroke",stylers:[{color:"#4b6878"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#64779e"}]},{featureType:"administrative.province",elementType:"geometry.stroke",stylers:[{color:"#4b6878"}]},{featureType:"landscape.man_made",elementType:"geometry.stroke",stylers:[{color:"#334e87"}]},{featureType:"landscape.natural",elementType:"geometry",stylers:[{color:"#023e58"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#283d6a"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#6f9ba5"}]},{featureType:"poi",elementType:"labels.text.stroke",stylers:[{color:"#1d2c4d"}]},{featureType:"poi.park",elementType:"geometry.fill",stylers:[{color:"#023e58"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#3C7680"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#304a7d"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#98a5be"}]},{featureType:"road",elementType:"labels.text.stroke",stylers:[{color:"#1d2c4d"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#2c6675"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#255763"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#b0d5ce"}]},{featureType:"road.highway",elementType:"labels.text.stroke",stylers:[{color:"#023e58"}]},{featureType:"transit",elementType:"labels.text.fill",stylers:[{color:"#98a5be"}]},{featureType:"transit",elementType:"labels.text.stroke",stylers:[{color:"#1d2c4d"}]},{featureType:"transit.line",elementType:"geometry.fill",stylers:[{color:"#283d6a"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#3a4762"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#0e1626"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#4e6d70"}]}],t.a=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n(6),n(8),n(14),n(21),n(24),n(27),n(34),n(39),n(44),n(50),n(54),n(61),n(66),n(74),n(77),n(82)},function(e,t,n){"use strict";var r=n(7);n.n(r)},function(e,t){},function(e,t,n){"use strict";var r=n(9),o=(n.n(r),n(10)),a=(n.n(o),n(0)),l=n.n(a),c=n(11),s=n(12),i=n(13),u=wp.i18n.__,p=wp.blocks.registerBlockType,d=wp.editor.RichText,b=wp.element.Fragment,m=[{slug:"advice",title:u("Advice","advanced-gutenberg-blocks"),icon:"thumbs-up"},{slug:"info",title:u("Information","advanced-gutenberg-blocks"),icon:"info"},{slug:"warning",title:u("Warning","advanced-gutenberg-blocks"),icon:"warning"},{slug:"avoid",title:u("Avoid","advanced-gutenberg-blocks"),icon:"dismiss"}];p("advanced-gutenberg-blocks/notice",{title:u("Notice","advanced-gutenberg-blocks"),description:u("Put forward a tips or a warning","advanced-gutenberg-blocks"),category:"agb",icon:{background:"#2F313A",foreground:"#DEBB8F",src:"warning"},keywords:[u("warning","advanced-gutenberg-blocks"),u("information","advanced-gutenberg-blocks"),u("tips","advanced-gutenberg-blocks")],styles:[{name:"default",label:u("Top Line","advanced-gutenberg-blocks"),isDefault:!0},{name:"full",label:u("Full","advanced-gutenberg-blocks")}],attributes:{type:{source:"attribute",selector:".wp-block-advanced-gutenberg-blocks-notice",attribute:"data-type",default:m[0].slug},title:{source:"text",type:"string",selector:".wp-block-advanced-gutenberg-blocks-notice__title",default:m[0].title},hasIcon:{type:"boolean",default:!1},content:{type:"array",source:"children",selector:".wp-block-advanced-gutenberg-blocks-notice__content"}},edit:function(e){var t=e.attributes,n=t.type,r=t.content,o=t.title,a=t.hasIcon,p=e.className,f=e.setAttributes;return wp.element.createElement(b,null,wp.element.createElement(c.a,{hasIcon:a,setAttributes:f}),wp.element.createElement(s.a,{type:n,types:m,setAttributes:f}),wp.element.createElement("div",{className:l()(p,"is-variation-"+n,a&&"has-icon")},a&&i.a[n],wp.element.createElement(d,{tagName:"p",value:o,className:"wp-block-advanced-gutenberg-blocks-notice__title",onChange:function(e){return f({title:e})}}),wp.element.createElement(d,{tagName:"p",placeholder:u("Your tip/warning content","advanced-gutenberg-blocks"),value:r,className:"wp-block-advanced-gutenberg-blocks-notice__content",onChange:function(e){return f({content:e})},keepPlaceholderOnFocus:"true"})))},save:function(e){var t=e.attributes,n=t.type,r=t.title,o=t.content,a=t.hasIcon;return wp.element.createElement("div",{className:l()("wp-block-advanced-gutenberg-blocks-notice","is-variation-"+n,a&&"has-icon"),"data-type":n},a&&i.a[n],wp.element.createElement("p",{className:"wp-block-advanced-gutenberg-blocks-notice__title"},r),wp.element.createElement("p",{className:"wp-block-advanced-gutenberg-blocks-notice__content"},o))},deprecated:[{attributes:{type:{source:"attribute",selector:".wp-block-advanced-gutenberg-blocks-notice",attribute:"data-type",default:m[0].slug},title:{source:"text",type:"string",selector:".wp-block-advanced-gutenberg-blocks-notice__title",default:m[0].title},content:{type:"array",source:"children",selector:".wp-block-advanced-gutenberg-blocks-notice__content"}},save:function(e){var t=e.attributes,n=t.type,r=t.title,o=t.content;return wp.element.createElement("div",{className:"wp-block-advanced-gutenberg-blocks-notice--"+n,"data-type":n},wp.element.createElement("p",{className:"wp-block-advanced-gutenberg-blocks-notice__title"},r),wp.element.createElement("p",{className:"wp-block-advanced-gutenberg-blocks-notice__content"},o))}}]})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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=function(){function e(e,t){for(var n=0;n Installed Blocks > Card Preview","advanced-gutenberg-blocks"))):""===r?wp.element.createElement(a.a,{onChange:function(e){return o(e)}}):wp.element.createElement(l.a,{attributes:t})},save:function(e){var t=e.attributes;return wp.element.createElement(l.a,{attributes:t})}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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=n(1),c=(n.n(l),function(){function e(e,t){for(var n=0;n0&&fetch("/wp-json/wp/v2/categories/"+e.categories[0]).then(function(e){return e.json()}).then(function(e){a.setState({category:e.name})}),fetch("/wp-json/wp/v2/media/"+e.featured_media).then(function(e){return e.json()}).then(function(e){a.setState({featuredImage:e.media_details.sizes.large.source_url})})})},l=n,o(a,l)}return a(t,e),l(t,[{key:"componentWillMount",value:function(){this.getPost()}},{key:"componentDidUpdate",value:function(e,t){e.attributes.postID!=this.props.attributes.postID&&this.getPost()}},{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.showImage,r=t.showCategory,o=t.showAuthor,a=this.state,l=a.post,s=a.featuredImage,i=a.category,u=a.author;return l?wp.element.createElement("div",{className:"wp-block-advanced-gutenberg-blocks-post"},!!s&&n&&wp.element.createElement("a",{href:l.link,className:"wp-block-advanced-gutenberg-blocks-post__image",style:{backgroundImage:"url("+s+")"}}),wp.element.createElement("div",{className:"wp-block-advanced-gutenberg-blocks-post__content"},wp.element.createElement("p",{className:"wp-block-advanced-gutenberg-blocks-post__title"},wp.element.createElement("a",{href:l.link},l.title.rendered)),wp.element.createElement("p",{className:"wp-block-advanced-gutenberg-blocks-post__metas"},wp.element.createElement("em",null,!!i&&r&&wp.element.createElement("span",null," ",c("In","advanced-gutenberg-blocks")+" "+i," "),!!u&&o&&wp.element.createElement("span",null," ",c("By","advanced-gutenberg-blocks")+" "+u," "))),wp.element.createElement("div",{className:"wp-block-advanced-gutenberg-blocks-post__excerpt",dangerouslySetInnerHTML:function(){return{__html:e.state.post.excerpt.rendered}}()}),wp.element.createElement("p",{class:"wp-block-advanced-gutenberg-blocks-product__actions"},wp.element.createElement("a",{href:l.link,className:"wp-block-advanced-gutenberg-blocks-post__button"},c("Read more","advanced-gutenberg-blocks"))))):wp.element.createElement("p",{class:"AGB-block-message"},c("Loading post\u2026","advanced-gutenberg-blocks"))}}]),t}(s);t.a=i},function(e,t,n){"use strict";var r=n(51),o=(n.n(r),n(52)),a=(n.n(o),n(0)),l=n.n(a),c=n(53),s=wp.i18n.__,i=wp.blocks.registerBlockType,u=wp.editor,p=u.RichText,d=u.MediaUpload,b=wp.element.Fragment;i("advanced-gutenberg-blocks/testimonial",{title:s("Testimonial","advanced-gutenberg-blocks"),description:s("Display a testimonial with a picture, text, name and company","advanced-gutenberg-blocks"),category:"agb",icon:{background:"#2F313A",foreground:"#DEBB8F",src:"format-status"},keywords:[s("review","advanced-gutenberg-blocks")],attributes:{image:{type:"string"},content:{type:"array",source:"children",selector:".wp-block-advanced-gutenberg-blocks-testimonial__content"},name:{type:"array",source:"children",selector:".wp-block-advanced-gutenberg-blocks-testimonial__name"},company:{type:"array",source:"children",selector:".wp-block-advanced-gutenberg-blocks-testimonial__company"},showCompany:{type:"boolean",default:!0},showImage:{type:"boolean",default:!0}},edit:function(e){var t=e.attributes,n=t.image,r=t.content,o=t.name,a=t.company,i=t.showImage,u=t.showCompany,m=e.setAttributes,f=e.isSelected,g=function(e){var t=e.sizes.medium?e.sizes.medium.url:e.url;m({image:t})};return wp.element.createElement(b,null,wp.element.createElement(c.a,{showCompany:u,showImage:i,setAttributes:m}),wp.element.createElement("div",{className:"wp-block-advanced-gutenberg-blocks-testimonial"},!!i&&wp.element.createElement("div",{className:"wp-block-advanced-gutenberg-blocks-testimonial__picture"},wp.element.createElement(d,{onSelect:g,type:"image",value:n,render:function(e){var t=e.open;return n?wp.element.createElement("div",null,f&&wp.element.createElement("div",{className:"wp-block-advanced-gutenberg-blocks-testimonial__picture__actions"},wp.element.createElement("a",{onClick:function(){return m({image:null})}},s("\xd7 Remove","advanced-gutenberg-blocks"))),wp.element.createElement("div",{className:"wp-block-advanced-gutenberg-blocks-testimonial__picture__image",style:{backgroundImage:"url("+n+")"},onClick:t})):wp.element.createElement("a",{className:"wp-block-advanced-gutenberg-blocks-testimonial__picture__image",onClick:t},s("Select Image","advanced-gutenberg-blocks"))}})),wp.element.createElement("div",{className:l()("wp-block-advanced-gutenberg-blocks-testimonial__bubble",i&&"wp-block-advanced-gutenberg-blocks-testimonial__bubble--with-arrow")},wp.element.createElement(p,{tagName:"div",multiline:"p",placeholder:s("Write testimonial content here","advanced-gutenberg-blocks"),value:r,className:"wp-block-advanced-gutenberg-blocks-testimonial__content",onChange:function(e){return m({content:e})}}),wp.element.createElement("div",{className:"wp-block-advanced-gutenberg-blocks-testimonial__signature"},wp.element.createElement(p,{tagName:"p",placeholder:s("Matt Mullenweg","advanced-gutenberg-blocks"),value:o,className:"wp-block-advanced-gutenberg-blocks-testimonial__name",onChange:function(e){return m({name:e})},keepPlaceholderOnFocus:"true"}),!!u&&wp.element.createElement(p,{tagName:"p",placeholder:s("Automattic","advanced-gutenberg-blocks"),value:a,className:"wp-block-advanced-gutenberg-blocks-testimonial__company",onChange:function(e){return m({company:e})},keepPlaceholderOnFocus:"true"})))))},save:function(e){var t=e.attributes,n=t.image,r=t.content,o=t.name,a=t.company,c=t.showImage,s=t.showCompany;return wp.element.createElement("div",{className:"wp-block-advanced-gutenberg-blocks-testimonial"},c&&wp.element.createElement("div",{className:"wp-block-advanced-gutenberg-blocks-testimonial__picture"},wp.element.createElement("div",{className:"wp-block-advanced-gutenberg-blocks-testimonial__picture__image",style:{backgroundImage:"url("+n+")"}})),wp.element.createElement("div",{className:l()("wp-block-advanced-gutenberg-blocks-testimonial__bubble",c&&"wp-block-advanced-gutenberg-blocks-testimonial__bubble--with-arrow")},wp.element.createElement("div",{className:"wp-block-advanced-gutenberg-blocks-testimonial__content"},r),wp.element.createElement("div",{className:"wp-block-advanced-gutenberg-blocks-testimonial__signature"},wp.element.createElement("p",{className:"wp-block-advanced-gutenberg-blocks-testimonial__name"},o),s&&wp.element.createElement("p",{className:"wp-block-advanced-gutenberg-blocks-testimonial__company"},a))))}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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=function(){function e(e,t){for(var n=0;n Installed Blocks > Google Map","advanced-gutenberg-blocks"))):wp.element.createElement(i,null,wp.element.createElement(a.a,{attributes:t,setAttributes:n}),wp.element.createElement("div",{className:"wp-block-advanced-gutenberg-blocks-gmap"},wp.element.createElement(l.a,{attributes:t})))},save:function(e){return null}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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=n(58),c=n(59),s=function(){function e(e,t){for(var n=0;n"+e.name+"
\n\t\t\t"+e.address+"
\n\t\t"},c=n,o(a,c)}return a(t,e),c(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props.attributes,n=t.latitude,r=t.longitude,o={lat:n,lng:r};this.gmapObj.Gmap=this.createMap(o),this.gmapObj.marker=this.createMarker(this.gmapObj.Gmap,o),this.gmapObj.infoWindow=this.createInfoWindow(),this.gmapObj.marker.addListener("click",function(){infoWindow.open(e.gmapObj.Gmap,e.gmapObj.marker)})}},{key:"componentWillReceiveProps",value:function(e){var t=this.props.attributes,n=t.address,r=t.zoom,o=t.style,a=t.name,c=this.gmapObj,s=c.Gmap,i=c.marker,u=c.infoWindow,p=e.attributes,d=p.address,b=p.zoom,m=p.style,f=p.name,g=p.latitude,y=p.longitude;if(n!=d){var w={lat:g,lng:y};s.setCenter(w),i.setPosition(w)}r!=b&&s.setZoom(b),o!=m&&s.setOptions({styles:l.a[m]}),a!=f&&u.setContent(this.setInfoWindowContent(e.attributes))}},{key:"render",value:function(){var e=this.props.attributes.height;return wp.element.createElement("div",{className:"wp-block-advanced-gutenberg-blocks-gmap__canvas",style:{height:e}})}}]),t}(s);t.a=i},function(e,t,n){"use strict";var r=n(62),o=(n.n(r),n(63)),a=(n.n(o),n(64)),l=n(65),c=n(0),s=(n.n(c),wp.i18n.__),i=wp.blocks.registerBlockType,u=wp.editor.RichText,p=wp.element.Fragment;i("advanced-gutenberg-blocks/clicktotweet",{title:s("Click to tweet","advanced-gutenberg-blocks"),description:s("Display a nice click to tweet box so your user can easily share your most meaningful sentences","advanced-gutenberg-blocks"),category:"agb",icon:{background:"#2F313A",foreground:"#DEBB8F",src:"twitter"},keywords:["twitter"],attributes:{content:{type:"string"},hashtags:{type:"string"}},edit:function(e){var t=e.attributes,n=e.className,r=(e.isSelected,e.setAttributes),o=t.content;return wp.element.createElement(p,null,wp.element.createElement(l.a,{attributes:t,setAttributes:r}),wp.element.createElement("div",{className:n},wp.element.createElement(u,{tagName:"div",format:"string",value:o,className:n+"__content",onChange:function(e){return r({content:e})},placeholder:s("Your tweetable content","advanced-gutenberg-blocks")}),wp.element.createElement("footer",{className:n+"__footer"},wp.element.createElement("span",null,s("Click to tweet","advanced-gutenberg-blocks")),a.a)))},save:function(e){return null}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 400"},wp.element.createElement("path",{fill:"#FFF",d:"M153.62,301.59c94.34,0,145.94-78.16,145.94-145.94,0-2.22,0-4.43-.15-6.63A104.36,104.36,0,0,0,325,122.47a102.38,102.38,0,0,1-29.46,8.07,51.47,51.47,0,0,0,22.55-28.37,102.79,102.79,0,0,1-32.57,12.45,51.34,51.34,0,0,0-87.41,46.78A145.62,145.62,0,0,1,92.4,107.81a51.33,51.33,0,0,0,15.88,68.47A50.91,50.91,0,0,1,85,169.86c0,.21,0,.43,0,.65a51.31,51.31,0,0,0,41.15,50.28,51.21,51.21,0,0,1-23.16.88,51.35,51.35,0,0,0,47.92,35.62,102.92,102.92,0,0,1-63.7,22A104.41,104.41,0,0,1,75,278.55a145.21,145.21,0,0,0,78.62,23"}));t.a=r},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return d(e,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("core/heading"===e.name&&e.hasOwnProperty("attributes")&&e.attributes.hasOwnProperty("content")&&e.attributes.content.length>0){var n=e.attributes.content.toString().toLowerCase().replace(/\s+/g,"-").replace(/[&\/\\#,!+()$~%.'":*?<>{}]/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"");return l.props.updateBlockAttributes(e.clientId,{anchor:n}),Object.assign({},e,{path:t,isEmpty:!e.attributes.content||0===e.attributes.content.length,slug:n})}return l.computeOutlineHeadings(e.innerBlocks,[].concat(r(t),[e]))})},c=n,a(l,c)}return l(t,e),i(t,[{key:"compute",value:function(e){return e.map(function(t,n){var r=t.attributes.level;if(0===r)return Object.assign({},t,{parentId:null});for(var o=null,a=n-1;a>=0;a--){if(r>e[a].attributes.level){o=e[a].clientId;break}}return Object.assign({},t,{parentId:o})})}},{key:"render",value:function(){var e=this.props,t=e.ordered,n=e.blocks,r=e.setAttributes,o=this.computeOutlineHeadings(n),a=this.compute(o),l=Object(c.arrayToTree)(a,{id:"clientId",parentId:"parentId"});return t&&wp.element.createElement("ol",{className:"wp-block-advanced-gutenberg-blocks-summary__list"},wp.element.createElement(s.a,{headings:l,ordered:t,setAttributes:r}))||wp.element.createElement("ul",{className:"wp-block-advanced-gutenberg-blocks-summary__list"},wp.element.createElement(s.a,{headings:l,ordered:t,setAttributes:r}))}}]),t}(u);t.a=b},function(e,t,n){"use strict";function r(e,t){void 0===t&&(t={id:"id",parentId:"parentId"});for(var n=[],r={},o=0,a=e;o Manage Blocks > Giphy","advanced-gutenberg-blocks"))):wp.element.createElement(a.a,{clientId:t,insertBlocksAfter:n})},save:function(){return null}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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=n(1),c=(n.n(l),n(81)),s=function(){function e(e,t){for(var n=0;n Manage Blocks > Unsplash","advanced-gutenberg-blocks"))):wp.element.createElement(a.a,{clientId:t,insertBlocksAfter:n})},save:function(e){return null}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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=n(1),c=(n.n(l),n(86)),s=function(){function e(e,t){for(var n=0;n1?2e3:2e3*t,l=t<1?2e3:2e3/t;r.width=a,r.height=l,o.drawImage(n,0,0,n.width,n.height,0,0,a,l),r.toBlob(e,"image/jpeg",.75)},n.crossOrigin="",n.src=t})}).then(function(e){return new window.File([e],t+".jpg",n)})},c=n,o(a,c)}return a(t,e),s(t,[{key:"uploadPhoto",value:function(e){var t=this;return this.state.image?Promise.resolve(this.state.image):this.download(e.links.download_location,e.id,{type:"image/jpeg"}).then(function(e){return t.createMediaFromFile(e).then(function(e){return t.setState({image:e}),e})})}},{key:"render",value:function(){var e=this,t=this.state,n=t.results,r=t.loading,o=t.previewPic,a=t.isRandom;return r?wp.element.createElement("div",{className:"AGB-block-search"},wp.element.createElement("p",{className:"AGB-block-search__logo"},c.a),wp.element.createElement("div",{className:"AGB-block-search__preview",style:{backgroundImage:'url(" '+o+' ")'}}),wp.element.createElement("p",null,i("Uploading picture in media library, please wait\u2026","advanced-gutenberg-blocks"))):wp.element.createElement("div",{className:"AGB-block-search"},wp.element.createElement("p",{className:"AGB-block-search__logo"},c.a),wp.element.createElement("div",{className:"AGB-block-search__input"},wp.element.createElement(d,{type:"search",placeholder:i("Search a picture","advanced-gutenberg-blocks"),onChange:function(t){return e.onSearch(t)}}),wp.element.createElement("span",null,i("or","advanced-gutenberg-blocks")),wp.element.createElement(b,{isDefault:!0,onClick:function(){return e.getRandom()}},i("Random","advanced-gutenberg-blocks"))),n&&Array.isArray(n)?wp.element.createElement(g,null,wp.element.createElement("ul",{className:"AGB-block-search__results"},n.map(function(t){return wp.element.createElement("li",{key:t.id,onClick:function(){return e.onChange(t)}},wp.element.createElement("img",{src:t.urls.thumb,alt:t.description||""}))})),!a&&wp.element.createElement("p",{className:"AGB-block-search__more"},wp.element.createElement("a",{href:"#",onClick:function(){return e.nextPage()}},i("More images","advanced-gutenberg-blocks")))):wp.element.createElement("p",null,n))}}]),t}(u);t.a=m(function(e){return{removeBlock:e("core/editor").removeBlock}})(y)},function(e,t,n){"use strict";var r=wp.element.createElement("svg",{width:"32",height:"32",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M10 9V0h12v9H10zm12 5h10v18H0V14h10v9h12v-9z",fill:"#000000","fill-rule":"nonzero"}));t.a=r}]);