(()=>{"use strict";var e,t={597:()=>{const e=window.wp.element,t=window.wp.blocks,n=window.wp.i18n,o=window.wp.blockEditor,l=window.wp.components;window.wp.data;const r=JSON.parse('{"u2":"crosswinds-blocks/google-maps"}');(0,t.registerBlockType)(r.u2,{icon:{src:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512"},(0,e.createElement)("path",{fill:"#171247",d:"M192 144a48 48 0 1 0 0 96 48 48 0 1 0 0-96z"}),(0,e.createElement)("path",{fill:"#8200ff",d:"M215.7 499.2C267 435 384 279.4 384 192C384 86 298 0 192 0S0 86 0 192c0 87.4 117 243 168.3 307.2c12.3 15.3 35.1 15.3 47.4 0zM192 112a80 80 0 1 1 0 160 80 80 0 1 1 0-160z"}))},edit:function(t){const{attributes:r,setAttributes:a}=t,{addressLineOne:s,addressLineTwo:i,city:c,stateProvince:d,country:p,zipCode:w,mapContainerSize:b,mapHeight:m}=r;let u,g;"set-height"===b?(u=(0,e.createElement)(l.__experimentalNumberControl,{label:(0,n.__)("Map Height","crosswinds-blocks"),onChange:e=>a({mapHeight:e}),value:m}),g={height:m+"px"}):(u="",g="");const h=(0,e.createElement)(e.Fragment,null,(0,e.createElement)(o.InspectorControls,null,(0,e.createElement)(l.PanelBody,{title:(0,n.__)("Google Maps Settings","crosswinds-blocks")},(0,e.createElement)(l.TextControl,{label:(0,n.__)("Address Line One","crosswinds-blocks"),value:s,onChange:e=>a({addressLineOne:e})}),(0,e.createElement)(l.TextControl,{label:(0,n.__)("Address Line Two","crosswinds-blocks"),value:i,onChange:e=>a({addressLineTwo:e})}),(0,e.createElement)(l.TextControl,{label:(0,n.__)("City","crosswinds-blocks"),value:c,onChange:e=>a({city:e})}),(0,e.createElement)(l.TextControl,{label:(0,n.__)("State/Province","crosswinds-blocks"),value:d,onChange:e=>a({stateProvince:e})}),(0,e.createElement)(l.TextControl,{label:(0,n.__)("Country","crosswinds-blocks"),value:p,onChange:e=>a({country:e})}),(0,e.createElement)(l.TextControl,{label:(0,n.__)("ZIP Code","crosswinds-blocks"),value:w,onChange:e=>a({zipCode:e})}),(0,e.createElement)(l.SelectControl,{label:"Size",value:b,options:[{label:"Specific Height",value:"set-height"},{label:"Fill Parent Container",value:"fill-parent-container"}],onChange:e=>a({mapContainerSize:e})}),u)));return(0,e.createElement)(e.Fragment,null,h,(0,e.createElement)("div",(0,o.useBlockProps)({style:g,className:"map-block-"+b}),(0,e.createElement)("img",{src:"/wp-content/plugins/crosswinds-blocks/admin/images/placeholder-map.jpg",alt:(0,n.__)("Placeholder Google Map","crosswinds-blocks")})))}})}},n={};function o(e){var l=n[e];if(void 0!==l)return l.exports;var r=n[e]={exports:{}};return t[e](r,r.exports,o),r.exports}o.m=t,e=[],o.O=(t,n,l,r)=>{if(!n){var a=1/0;for(d=0;d<e.length;d++){for(var[n,l,r]=e[d],s=!0,i=0;i<n.length;i++)(!1&r||a>=r)&&Object.keys(o.O).every((e=>o.O[e](n[i])))?n.splice(i--,1):(s=!1,r<a&&(a=r));if(s){e.splice(d--,1);var c=l();void 0!==c&&(t=c)}}return t}r=r||0;for(var d=e.length;d>0&&e[d-1][2]>r;d--)e[d]=e[d-1];e[d]=[n,l,r]},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={2840:0,5809:0};o.O.j=t=>0===e[t];var t=(t,n)=>{var l,r,[a,s,i]=n,c=0;if(a.some((t=>0!==e[t]))){for(l in s)o.o(s,l)&&(o.m[l]=s[l]);if(i)var d=i(o)}for(t&&t(n);c<a.length;c++)r=a[c],o.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return o.O(d)},n=globalThis.webpackChunkstarter_block=globalThis.webpackChunkstarter_block||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var l=o.O(void 0,[5809],(()=>o(597)));l=o.O(l)})();