HEX
Server: Apache
System: Linux ebs-107629 5.10.0-14-amd64 #1 SMP Debian 5.10.113-1 (2022-04-29) x86_64
User: shredder (65669)
PHP: 8.3.8
Disabled: link,symlink
Upload Files
File: /home/wwwroot/shredder/wwwroot/wp-content/plugins/easy-maps-block/build/index.js
!function(e){var t={};function o(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,o),r.l=!0,r.exports}o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=5)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.components}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.wp.blocks}()},function(e,t){!function(){e.exports=this.wp.blockEditor}()},function(e,t,o){"use strict";o.r(t);var n=o(0),r=o(3),i=o(1),l=o(4),a=o(2);function c(e){var t={border:0,height:e.height,width:"100%"},o="https://maps.google.com/maps?"+new URLSearchParams({q:e.location,z:e.zoom||1,t:e.type,output:"embed"}).toString();return e.editor?Object(n.createElement)("div",{style:{position:"relative"}},Object(n.createElement)(u,null),Object(n.createElement)("iframe",{src:o,style:t})):Object(n.createElement)("div",null,Object(n.createElement)("iframe",{src:o,style:t}))}function u(){return Object(n.createElement)(i.IconButton,{style:{position:"absolute",borderRadius:"50%",top:"-1rem",right:"-1rem",color:"#fff",background:"var(--wp-admin-theme-color)"},icon:"edit"})}Object(r.registerBlockType)("boldgrid-block/map",{title:Object(a.__)("Map","boldgrid-map-block"),icon:"location",category:"common",attributes:{location:{type:"string",default:"New York, NY"},height:{type:"number",default:300},type:{type:"string",default:"m"},zoom:{type:"number",default:12}},keywords:[Object(a.__)("google","boldgrid-map-block"),Object(a.__)("location","boldgrid-map-block"),"BoldGrid"],example:{attributes:{location:"New York, NY",zoom:12,type:"m",height:300}},edit:function(e){return Object(n.createElement)(n.Fragment,null,Object(n.createElement)(c,{editor:!0,zoom:e.attributes.zoom,height:e.attributes.height,type:e.attributes.type,location:e.attributes.location}),Object(n.createElement)(l.InspectorControls,null,Object(n.createElement)(i.TextControl,{label:"Address",placeholder:Object(a.__)("Type the address","boldgrid-map-block"),value:e.attributes.location,onChange:function(t){return e.setAttributes({location:t})}}),Object(n.createElement)(i.RangeControl,{label:"Zoom",beforeIcon:"search",value:e.attributes.zoom,onChange:function(t){return e.setAttributes({zoom:t})},min:1,max:22}),Object(n.createElement)(i.RangeControl,{label:"Height",beforeIcon:"align-center",value:e.attributes.height,onChange:function(t){return e.setAttributes({height:t})},min:0,max:1e3}),Object(n.createElement)(i.RadioControl,{label:Object(a.__)("Map Type:","boldgrid-map-block"),selected:e.attributes.type,options:[{label:"Roadmap",value:"m"},{label:"Satellite",value:"k"}],onChange:function(t){e.setAttributes({type:t})}})))},save:function(e){return Object(n.createElement)(c,{editor:!1,zoom:e.attributes.zoom,height:e.attributes.height,type:e.attributes.type,location:e.attributes.location})}})}]);