(()=>{"use strict";var e,o={375:(e,o,t)=>{const n=window.React,i=window.wp.i18n;function r(e){var o,t,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(o=0;o<i;o++)e[o]&&(t=r(e[o]))&&(n&&(n+=" "),n+=t)}else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}const a=function(){for(var e,o,t=0,n="",i=arguments.length;t<i;t++)(e=arguments[t])&&(o=r(e))&&(n&&(n+=" "),n+=o);return n},l=window.wp.blocks,_=window.wp.blockEditor,s=window.wp.serverSideRender;var c=t.n(s);const b=window.wp.components,p=window.wp.element,m=window.lodash,k={bw_admin:(0,i.__)("Display the Admin contact name","oik"),bw_alt_slogan:(0,i.__)("Alternative slogan","oik"),bw_business:(0,i.__)("Display your Business name","oik"),bw_company:(0,i.__)("Company name","oik"),bw_contact:(0,i.__)("Primary contact name","oik"),bw_contact_button:(0,i.__)("Contact form button","oik"),bw_copyright:(0,i.__)("Format a Copyright statement","oik"),bw_directions:(0,i.__)("Display a 'Google directions' button.","oik"),bw_domain:(0,i.__)("Display the domain name","oik"),bw_email:(0,i.__)("Email primary contact (formal)","oik"),bw_emergency:(0,i.__)("Emergency telephone number","oik"),bw_fax:(0,i.__)("Fax number","oik"),bw_formal:(0,i.__)("Formal company name","oik"),bw_geo:(0,i.__)("Latitude and Longitude","oik"),bw_login:(0,i.__)("Display the login form or protected content","oik"),bw_loginout:(0,i.__)("Display the Login or Logout link","oik"),bw_logo:(0,i.__)("Display the company logo","oik"),bw_mailto:(0,i.__)("Mailto (inline)","oik"),bw_mob:(0,i.__)("Mobile phone number (inline)","oik"),bw_mobile:(0,i.__)("Mobile phone number (block)","oik"),bw_more:(0,i.__)("Read more button to progressively reveal content","oik"),bw_parent:(0,i.__)("Display a link back to the parent page","oik"),bw_pdf:(0,i.__)("Display attached PDF files","oik"),bw_portfolio:(0,i.__)("Display matched portfolio files","oik"),bw_power:(0,i.__)("Powered by WordPress","oik"),bw_register:(0,i.__)("Display a link to the Registration form, if Registration is enabled","oik"),bw_skype:(0,i.__)("Skype name","oik"),bw_slogan:(0,i.__)("Primary slogan","oik"),bw_tel:(0,i.__)("Telephone number (inline)","oik"),bw_telephone:(0,i.__)("Telephone number (block)","oik"),bw_wpadmin:(0,i.__)("Site: link to wp-admin","oik"),clear:(0,i.__)("Clear divs ","oik"),paypal:(0,i.__)("Paypal shortcodes","oik"),OIK:(0,i.__)("Spells out the oik backronym","oik")};(0,l.registerBlockType)("oik/shortcode-block",{edit:e=>{const{attributes:o,setAttributes:t,instanceId:r,focus:l,isSelected:s}=e,{textAlign:w,label:d}=e.attributes,u=(0,_.useBlockProps)({className:a({[`has-text-align-${w}`]:w})});return(0,n.createElement)(p.Fragment,null,(0,n.createElement)(_.InspectorControls,null,(0,n.createElement)(b.PanelBody,null,(0,n.createElement)(b.SelectControl,{label:(0,i.__)("Shortcode","oik"),value:o.shortcode,options:(0,m.map)(k,((e,o)=>({value:o,label:o+" - "+e}))),onChange:(0,m.partial)((function(e,o){t({[e]:o})}),"shortcode")}),(0,n.createElement)(b.TextareaControl,{label:(0,i.__)("Parameters","oik"),value:o.parameters,placeholder:(0,i.__)("Enter your shortcode parameters","oik"),onChange:e=>{t({parameters:e})},rows:"1"}),(0,n.createElement)(b.TextareaControl,{label:(0,i.__)("Content","oik"),value:o.content,placeholder:(0,i.__)("Enter your shortcode content","oik"),onChange:e=>{t({content:e})}}))),(0,n.createElement)("div",{...u},(0,n.createElement)(c(),{block:"oik/shortcode-block",attributes:o})))},save:({attributes:e})=>null})}},t={};function n(e){var i=t[e];if(void 0!==i)return i.exports;var r=t[e]={exports:{}};return o[e](r,r.exports,n),r.exports}n.m=o,e=[],n.O=(o,t,i,r)=>{if(!t){var a=1/0;for(c=0;c<e.length;c++){for(var[t,i,r]=e[c],l=!0,_=0;_<t.length;_++)(!1&r||a>=r)&&Object.keys(n.O).every((e=>n.O[e](t[_])))?t.splice(_--,1):(l=!1,r<a&&(a=r));if(l){e.splice(c--,1);var s=i();void 0!==s&&(o=s)}}return o}r=r||0;for(var c=e.length;c>0&&e[c-1][2]>r;c--)e[c]=e[c-1];e[c]=[t,i,r]},n.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return n.d(o,{a:o}),o},n.d=(e,o)=>{for(var t in o)n.o(o,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},n.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={388:0,747:0};n.O.j=o=>0===e[o];var o=(o,t)=>{var i,r,[a,l,_]=t,s=0;if(a.some((o=>0!==e[o]))){for(i in l)n.o(l,i)&&(n.m[i]=l[i]);if(_)var c=_(n)}for(o&&o(t);s<a.length;s++)r=a[s],n.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return n.O(c)},t=globalThis.webpackChunkoik=globalThis.webpackChunkoik||[];t.forEach(o.bind(null,0)),t.push=o.bind(null,t.push.bind(t))})();var i=n.O(void 0,[747],(()=>n(375)));i=n.O(i)})();