(()=>{"use strict";var e,t={481:(e,t,r)=>{const o=window.React,n=window.wp.i18n;function l(e){var t,r,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=l(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}const a=function(){for(var e,t,r=0,o="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=l(e))&&(o&&(o+=" "),o+=t);return o},s=window.wp.blocks,i=window.wp.blockEditor,u=window.wp.serverSideRender;var c=r.n(u);const b=window.wp.components,m=window.wp.element,w=window.lodash,d={from:[{type:"block",blocks:["oik-block/follow-me"],transform:function(e){return(0,s.createBlock)("oik/follow-me",{user:e.user,alt:e.alt,network:e.network,theme:e.theme})}},{type:"shortcode",tag:"bw_follow_me",attributes:{user:{type:"string",shortcode:({named:{user:e}})=>e},alt:{type:"string",shortcode:({named:{alt:e}})=>e},network:{type:"string",shortcode:({named:{network:e}})=>e},theme:{type:"string",shortcode:({named:{theme:e}})=>e}}}]},f={none:(0,n.__)("None","oik"),gener:(0,n.__)("Genericons","oik"),dash:(0,n.__)("Dashicons","oik"),svg:(0,n.__)("SVG","oik")};(0,s.registerBlockType)("oik/follow-me",{example:{},transforms:d,edit:e=>{const{attributes:t,setAttributes:r,instanceId:l,focus:s,isSelected:u}=e,{textAlign:d,label:k}=e.attributes,p=(0,i.useBlockProps)({className:a({[`has-text-align-${d}`]:d})});var v=e.attributes,h="";for(var g of Object.keys(v)){var _=v[g];_&&(h=h.concat(" ",g,"=",_))}e.attributes.user;var y=`[bw_follow_me${h}]`;return(0,o.createElement)(m.Fragment,null,(0,o.createElement)(i.InspectorControls,null,(0,o.createElement)(b.PanelBody,{key:"pb"},(0,o.createElement)(b.PanelRow,null,(0,o.createElement)(b.TextControl,{label:(0,n.__)("User","oik"),value:e.attributes.user,onChange:t=>{e.setAttributes({user:t})}})),(0,o.createElement)(b.PanelRow,null,(0,o.createElement)(b.TextControl,{label:(0,n.__)("Alt","oik"),value:e.attributes.alt,onChange:t=>{e.setAttributes({alt:t})}})),(0,o.createElement)(b.PanelRow,null,(0,o.createElement)(b.TextControl,{label:(0,n.__)("Network(s)","oik"),value:e.attributes.network,onChange:t=>{e.setAttributes({network:t})}})),(0,o.createElement)(b.PanelRow,null,(0,o.createElement)(b.SelectControl,{label:(0,n.__)("Theme","oik"),value:e.attributes.theme,options:(0,w.map)(f,((e,t)=>({value:t,label:e}))),onChange:t=>{e.setAttributes({theme:t})}})),(0,o.createElement)(b.PanelRow,null,(0,n.__)("Equivalent shortcode","oik"),(0,o.createElement)("br",null),y))),(0,o.createElement)("div",{...p},(0,o.createElement)(c(),{block:"oik/follow-me",attributes:e.attributes})))},save:()=>null})}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var l=r[e]={exports:{}};return t[e](l,l.exports,o),l.exports}o.m=t,e=[],o.O=(t,r,n,l)=>{if(!r){var a=1/0;for(c=0;c<e.length;c++){for(var[r,n,l]=e[c],s=!0,i=0;i<r.length;i++)(!1&l||a>=l)&&Object.keys(o.O).every((e=>o.O[e](r[i])))?r.splice(i--,1):(s=!1,l<a&&(a=l));if(s){e.splice(c--,1);var u=n();void 0!==u&&(t=u)}}return t}l=l||0;for(var c=e.length;c>0&&e[c-1][2]>l;c--)e[c]=e[c-1];e[c]=[r,n,l]},o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={675:0,24:0};o.O.j=t=>0===e[t];var t=(t,r)=>{var n,l,[a,s,i]=r,u=0;if(a.some((t=>0!==e[t]))){for(n in s)o.o(s,n)&&(o.m[n]=s[n]);if(i)var c=i(o)}for(t&&t(r);u<a.length;u++)l=a[u],o.o(e,l)&&e[l]&&e[l][0](),e[l]=0;return o.O(c)},r=globalThis.webpackChunkoik=globalThis.webpackChunkoik||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var n=o.O(void 0,[24],(()=>o(481)));n=o.O(n)})();