!function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/",r(r.s=548)}({548:function(e,t,r){e.exports=r(549)},549:function(e,t){var{__:r}=wp.i18n,{registerBlockType:n}=wp.blocks,{SelectControl:a}=wp.components,l=wp.element.createElement("svg",{width:20,height:20},wp.element.createElement("path",{d:"M9,0C4.3,0,0.4,3.8,0.4,8.6v0c0,4.8,3.8,8.6,8.6,8.6c1.8,0,3.5-0.5,5-1.6c0.2-0.1,0.5-0.2,0.7-0.2c0.6,0.1,1.1,0.5,1.6,1\n    c0.5,0.5,0.9,1.1,1.3,1.5V8.6C17.6,3.8,13.8,0,9,0z M13,7.9l-1.5,1.6c0,0,0,0,0,0l0.4,2.2c0.1,0.3,0,0.6-0.1,0.7\n    c-0.1,0.1-0.2,0.2-0.3,0.2c-0.1,0-0.3-0.1-0.5-0.1l-1.9-1h0l-1.9,1.1c-0.2,0.1-0.3,0.1-0.5,0.1c-0.1,0-0.3-0.1-0.4-0.2\n    c-0.1-0.1-0.2-0.4-0.1-0.7l0.4-2.2c0,0,0,0,0,0L5,7.9c0,0,0,0,0,0C4.8,7.7,4.7,7.5,4.7,7.3c0,0,0-0.1,0-0.1C4.8,7,5,6.8,5.3,6.7\n    l2.1-0.3c0,0,0,0,0,0l0.9-2C8.6,4.1,8.8,3.9,9,3.9c0.2,0,0.4,0.2,0.6,0.5l0.9,2c0,0,0,0,0,0l2.1,0.3c0.3,0.1,0.6,0.2,0.6,0.4\n    C13.4,7.4,13.3,7.6,13,7.9z"}));n("social-ninja/guten-block",{title:r("Social Ninja Templates"),icon:l,category:"formatting",keywords:[r("Social Ninja Templates"),r("social review"),r("wpsr"),r("wpsr-gutenberg-block")],attributes:{templateId:{type:"string"},platformName:{type:"string",default:"reviews"}},edit(e){var{attributes:t,setAttributes:n}=e,l=window.wpsr_block_vars;return React.createElement("div",{className:"wpsr-guten-wrapper"},React.createElement("div",{className:"wpsr-logo"},React.createElement("img",{src:l.logo,alt:"WP Social Ninja"})),React.createElement(a,{label:r("Please Select a template"),value:t.templateId,options:l.templates.map(e=>({value:e.id,label:e.title})),onChange:e=>function(e){var t=l.templates.filter((function(t){return parseInt(t.id)===parseInt(e)}))[0].platform;n({templateId:e}),n({platformName:t})}(e)}))},save(e){var{attributes:t}=e;return"[wp_social_ninja id="+t.templateId+" platform='"+t.platformName+"']"}})}});