(()=>{"use strict";var e,t={720:(e,t,r)=>{const o=window.React,n=window.wp.i18n;function a(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=a(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}const l=function(){for(var e,t,r=0,o="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=a(e))&&(o&&(o+=" "),o+=t);return o},s=window.wp.blocks,i=window.wp.blockEditor,c=window.wp.serverSideRender;var u=r.n(c);const d=window.wp.components,p=window.wp.element,b=window.lodash,{createBlock:f}=wp.blocks,w={from:[{type:"block",blocks:["oik-block/address"],transform:function(e){return f("oik/address",{tag:e.tag})}},{type:"shortcode",tag:"bw_address",attributes:{tag:{type:"string",shortcode:({named:{tag:e}})=>e}}}]},v={div:(0,n.__)("Block","oik"),span:(0,n.__)("Inline","oik")};(0,s.registerBlockType)("oik/address",{example:{},transforms:w,edit:e=>{const{attributes:t,setAttributes:r,instanceId:a,focus:s,isSelected:c}=e,{textAlign:f,label:w}=e.attributes,k=(0,i.useBlockProps)({className:l({[`has-text-align-${f}`]:f})});return(0,o.createElement)(p.Fragment,null,(0,o.createElement)(i.InspectorControls,null,(0,o.createElement)(d.PanelBody,null,(0,o.createElement)(d.PanelRow,null,(0,o.createElement)(d.SelectControl,{label:(0,n.__)("Display","oik"),value:e.attributes.tag,options:(0,b.map)(v,((e,t)=>({value:t,label:e}))),onChange:(0,b.partial)((function(t,r){e.setAttributes({[t]:r})}),"tag")})),(0,o.createElement)(d.PanelRow,null,(0,n.__)("Equivalent shortcode","oik"),(0,o.createElement)("br",null),"[bw_address tag=",e.attributes.tag,"]"))),(0,o.createElement)("div",{...k},(0,o.createElement)(u(),{block:"oik/address",attributes:e.attributes})))},save:()=>null})}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var a=r[e]={exports:{}};return t[e](a,a.exports,o),a.exports}o.m=t,e=[],o.O=(t,r,n,a)=>{if(!r){var l=1/0;for(u=0;u<e.length;u++){for(var[r,n,a]=e[u],s=!0,i=0;i<r.length;i++)(!1&a||l>=a)&&Object.keys(o.O).every((e=>o.O[e](r[i])))?r.splice(i--,1):(s=!1,a<l&&(l=a));if(s){e.splice(u--,1);var c=n();void 0!==c&&(t=c)}}return t}a=a||0;for(var u=e.length;u>0&&e[u-1][2]>a;u--)e[u]=e[u-1];e[u]=[r,n,a]},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={409:0,322:0};o.O.j=t=>0===e[t];var t=(t,r)=>{var n,a,[l,s,i]=r,c=0;if(l.some((t=>0!==e[t]))){for(n in s)o.o(s,n)&&(o.m[n]=s[n]);if(i)var u=i(o)}for(t&&t(r);c<l.length;c++)a=l[c],o.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return o.O(u)},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,[322],(()=>o(720)));n=o.O(n)})();