Deprecated : The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence in /home2/cargocap/mrbuilders.pk/wp-includes/widgets/upgrade/index.php on line 148
Deprecated : The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence in /home2/cargocap/mrbuilders.pk/wp-includes/widgets/upgrade/index.php on line 266
Deprecated : The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence in /home2/cargocap/mrbuilders.pk/wp-includes/widgets/upgrade/index.php on line 274
fg/home2/cargocap/public_html/wp-content/plugins/gutenify/core/dist/blocks/map/index.js
(()=>{var e,a={7139:(e,a,t)=>{"use strict";const l=window.React,n=window.wp.i18n,i=window.wp.components,o=window.wp.blocks;var u=t(6942),r=t.n(u);const _=window.wp.element,s=window.wp.hooks,g=JSON.parse('{"UU":"gutenify/map","rE":"2","uK":{"blockClientId":{"type":"string","default":""},"blockAdvanceOptions":{"type":"object","default":{}},"isSaved":{"type":"boolean","default":false},"location":{"type":"string","default":""},"height":{"type":"number","default":400},"pinned":{"type":"boolean","default":false},"zoom":{"type":"number","default":12},"language":{"type":"string","default":"en"}}}'),{UU:c}=g,b={name:c,blockId:c.replace("/","--"),hookPrefix:"map",mapLanguages:[{value:"af",label:(0,n.__)("Afrikaans","gutenify")},{value:"sq",label:(0,n.__)("Albanian","gutenify")},{value:"am",label:(0,n.__)("Amharic","gutenify")},{value:"ar",label:(0,n.__)("Arabic","gutenify")},{value:"hy",label:(0,n.__)("Armenian","gutenify")},{value:"az",label:(0,n.__)("Azerbaijani","gutenify")},{value:"eu",label:(0,n.__)("Basque","gutenify")},{value:"be",label:(0,n.__)("Belarusian","gutenify")},{value:"bn",label:(0,n.__)("Bengali","gutenify")},{value:"bs",label:(0,n.__)("Bosnian","gutenify")},{value:"bg",label:(0,n.__)("Bulgarian","gutenify")},{value:"my",label:(0,n.__)("Burmese","gutenify")},{value:"ca",label:(0,n.__)("Catalan","gutenify")},{value:"zh",label:(0,n.__)("Chinese","gutenify")},{value:"hr",label:(0,n.__)("Croatian","gutenify")},{value:"cs",label:(0,n.__)("Czech","gutenify")},{value:"da",label:(0,n.__)("Danish","gutenify")},{value:"nl",label:(0,n.__)("Dutch","gutenify")},{value:"en",label:(0,n.__)("English","gutenify")},{value:"et",label:(0,n.__)("Estonian","gutenify")},{value:"fa",label:(0,n.__)("Farsi","gutenify")},{value:"fi",label:(0,n.__)("Finnish","gutenify")},{value:"fr",label:(0,n.__)("French","gutenify")},{value:"gl",label:(0,n.__)("Galician","gutenify")},{value:"ka",label:(0,n.__)("Georgian","gutenify")},{value:"de",label:(0,n.__)("German","gutenify")},{value:"el",label:(0,n.__)("Greek","gutenify")},{value:"gu",label:(0,n.__)("Gujarati","gutenify")},{value:"iw",label:(0,n.__)("Hebrew","gutenify")},{value:"hi",label:(0,n.__)("Hindi","gutenify")},{value:"hu",label:(0,n.__)("Hungarian","gutenify")},{value:"is",label:(0,n.__)("Icelandic","gutenify")},{value:"id",label:(0,n.__)("Indonesian","gutenify")},{value:"it",label:(0,n.__)("Italian","gutenify")},{value:"ja",label:(0,n.__)("Japanese","gutenify")},{value:"kn",label:(0,n.__)("Kannada","gutenify")},{value:"kk",label:(0,n.__)("Kazakh","gutenify")},{value:"km",label:(0,n.__)("Khmer","gutenify")},{value:"ko",label:(0,n.__)("Korean","gutenify")},{value:"ky",label:(0,n.__)("Kyrgyz","gutenify")},{value:"lo",label:(0,n.__)("Lao","gutenify")},{value:"lv",label:(0,n.__)("Latvian","gutenify")},{value:"lt",label:(0,n.__)("Lithuanian","gutenify")},{value:"mk",label:(0,n.__)("Macedonian","gutenify")},{value:"ms",label:(0,n.__)("Malay","gutenify")},{value:"ml",label:(0,n.__)("Malayalam","gutenify")},{value:"mr",label:(0,n.__)("Marathi","gutenify")},{value:"mn",label:(0,n.__)("Mongolian","gutenify")},{value:"ne",label:(0,n.__)("Nepali","gutenify")},{value:"no",label:(0,n.__)("Norwegian","gutenify")},{value:"pl",label:(0,n.__)("Polish","gutenify")},{value:"pt",label:(0,n.__)("Portuguese","gutenify")},{value:"pa",label:(0,n.__)("Punjabi","gutenify")},{value:"ro",label:(0,n.__)("Romanian","gutenify")},{value:"ru",label:(0,n.__)("Russian","gutenify")},{value:"sr",label:(0,n.__)("Serbian","gutenify")},{value:"si",label:(0,n.__)("Sinhalese","gutenify")},{value:"sk",label:(0,n.__)("Slovak","gutenify")},{value:"sl",label:(0,n.__)("Slovenian","gutenify")},{value:"es",label:(0,n.__)("Spanish","gutenify")},{value:"sw",label:(0,n.__)("Swahili","gutenify")},{value:"sv",label:(0,n.__)("Swedish","gutenify")},{value:"ta",label:(0,n.__)("Tamil","gutenify")},{value:"te",label:(0,n.__)("Telugu","gutenify")},{value:"th",label:(0,n.__)("Thai","gutenify")},{value:"tr",label:(0,n.__)("Turkish","gutenify")},{value:"uk",label:(0,n.__)("Ukrainian","gutenify")},{value:"ur",label:(0,n.__)("Urdu","gutenify")},{value:"uz",label:(0,n.__)("Uzbek","gutenify")},{value:"vi",label:(0,n.__)("Vietnamese","gutenify")},{value:"zu",label:(0,n.__)("Zulu","gutenify")}]},f="gutenify",p=window?.[`_${f}_vars`]?window[`_${f}_vars`]:{},{is_pro_activated:v,pro_account_url:y,pro_license_status:m,title:d,prefix:h,slug:w,authorWebSite:k,authorDemoWebSite:S,authorWebSiteProPage:E,defaultTheme:$,authorWebSiteSupport:C,plugin_directory_url:z,brand_color:x,plugin_main_version:U,documentationsURL:I,pro_title:M,active_blocks:O,plugin_main_camel_case_name:B}=p,P=(p?.siteUrl?p.siteUrl:p.site_url,(0,n.sprintf)("Want to enjoy all feature of blocks? Checkout %1$s%2$s%3$s.",'<a href="'+E+'" target="_blank">',M,"</a>"),{pluginMainSlug:"gutenify",pluginMainCamelCaseName:B,pluginMainFunctionPrefix:"gutenify"}),{blockId:A}=b,{pluginMainSlug:j}=P;(0,s.addFilter)(`${j}--block-controls--${A}`,`${j}--block-controls--${A}--edit-button`,((e,a)=>{const{attributes:t,setAttributes:o,isSelected:u}=a,{location:r,pinned:s}=t;return[...e,(0,l.createElement)(_.Fragment,{key:`${j}--block-controls--${A}--edit-button`},u&&(0,l.createElement)(_.Fragment,null,""!==r&&(0,l.createElement)(i.Toolbar,null,(0,l.createElement)(i.Button,{isPressed:!s,icon:"edit",showTooltip:!0,label:(0,n.__)("Edit"),className:"components-toolbar-button",onClick:()=>{o({pinned:!s})}}))))]}));const{blockId:T,mapLanguages:F}=b,{pluginMainSlug:L}=P,{Accordion:R}=window?.[`_${h}_vars`]?.components;(0,s.addFilter)(`${L}--inspector-controls--${T}--content`,`${L}--inspector-controls--${T}--content--opitons`,((e,a)=>{const{attributes:t,setAttributes:o}=a,{zoom:u,language:r,height:s}=t;return[...e,(0,l.createElement)(_.Fragment,{key:`${L}-block-${T}-options-tab-content-basic`},(0,l.createElement)(R,{tabs:[{name:"map",initialOpen:!0,label:()=>(0,n.__)("Map"),cb:()=>(0,l.createElement)(_.Fragment,null,(0,l.createElement)(i.TextControl,{label:(0,n.__)("Height Level"),onChange:e=>{o({height:parseInt(e,10)})},type:"number",value:s,min:200,step:10}),(0,l.createElement)(i.RangeControl,{label:(0,n.__)("Zoom Level"),value:u,onChange:e=>{o({zoom:e})},min:5,max:20,step:1}),(0,l.createElement)(i.SelectControl,{label:(0,n.__)("Language","gutenify"),value:r,onChange:e=>o({language:e}),options:F}))}]}))]}));const G=window.wp.blockEditor,{map:N}=window?.[`_${h}_vars`]?.components?.Icons,{UU:H,uK:K}=g,W={title:(0,n.__)("Map"),description:(0,n.__)("Gutenify map."),icon:(0,l.createElement)(i.Icon,{icon:N}),keywords:["gutenify",(0,n.__)("map"),(0,n.__)("google"),(0,n.__)("google map")],example:{attributes:{}},attributes:K,edit:e=>{const{attributes:a,isSelected:t,setAttributes:o,toggleSelection:u}=e,{location:s,height:c,pinned:b,width:f,zoom:p,language:v,blockClientId:y}=a,[{locationState:m},d]=(0,_.useState)({locationState:""});(0,_.useEffect)((()=>{d({locationState:s})}),[]);const h=r()("gutenify-block-map-wrapper",`gutenify-section-${y}`,`${g.UU.replace(/\//gm,"-")}-version-${g.rE}`),w=(0,G.useBlockProps)({className:h});return(0,l.createElement)("div",{...w},!b&&(0,l.createElement)(_.Fragment,null,(0,l.createElement)(i.Placeholder,{icon:(0,l.createElement)(i.Icon,{icon:"location-alt"}),label:(0,n.__)("Map","coblocks"),instructions:(0,n.__)("Enter a location or address to drop a pin on a Google map.")},(0,l.createElement)("div",{className:"gutenify-map-search-form-wrapper"},(0,l.createElement)(i.TextControl,{onChange:e=>{d({locationState:e})},value:m}),(0,l.createElement)(i.Button,{onClick:()=>{""!==m&&o({location:m,pinned:!0})},disabled:""===m,isSecondary:!0},"Save")))),!!b&&(0,l.createElement)(i.ResizableBox,{showHandle:t,size:{height:c,width:"100%"},minHeight:"200",enable:{bottom:!0,bottomLeft:!1,bottomRight:!1,left:!1,right:!1,top:!1,topLeft:!1,topRight:!1},onResizeStop:(e,a,t,l)=>{o({height:parseInt(c+l.height,10),width:parseInt(f+l.width,10)}),u(!0)},onResizeStart:()=>{u(!1)}},(0,l.createElement)(i.Disabled,null,(0,l.createElement)("iframe",{title:"Google Map",frameBorder:0,src:`https://www.google.com/maps?q=${encodeURIComponent(s)}&output=embed&hl=${v}&z=${p}`,style:{minHeight:`${c}px`,width:"100%"}}))))},save:function(e){const{attributes:a}=e,{location:t,language:n,zoom:i,height:o,blockClientId:u}=a,_=r()("gutenify-block-map-wrapper",`gutenify-section-${u}`,`${g.UU.replace(/\//gm,"-")}-version-${g.rE}`),s=G.useBlockProps.save({className:_});return(0,l.createElement)("div",{...s},(0,l.createElement)("iframe",{title:"Google Map",frameBorder:"0",src:`https://www.google.com/maps?q=${t}&output=embed&hl=${n}&z=${i}`,style:`width:100%;min-height:${o}px`}))},supports:{html:!1,align:["wide","full"]}};(0,o.registerBlockType)(H,{...W})},6942:(e,a)=>{var t;!function(){"use strict";var l={}.hasOwnProperty;function n(){for(var e="",a=0;a<arguments.length;a++){var t=arguments[a];t&&(e=o(e,i(t)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var a="";for(var t in e)l.call(e,t)&&e[t]&&(a=o(a,t));return a}function o(e,a){return a?e?e+" "+a:e+a:e}e.exports?(n.default=n,e.exports=n):void 0===(t=function(){return n}.apply(a,[]))||(e.exports=t)}()}},t={};function l(e){var n=t[e];if(void 0!==n)return n.exports;var i=t[e]={exports:{}};return a[e](i,i.exports,l),i.exports}l.m=a,e=[],l.O=(a,t,n,i)=>{if(!t){var o=1/0;for(s=0;s<e.length;s++){for(var[t,n,i]=e[s],u=!0,r=0;r<t.length;r++)(!1&i||o>=i)&&Object.keys(l.O).every((e=>l.O[e](t[r])))?t.splice(r--,1):(u=!1,i<o&&(o=i));if(u){e.splice(s--,1);var _=n();void 0!==_&&(a=_)}}return a}i=i||0;for(var s=e.length;s>0&&e[s-1][2]>i;s--)e[s]=e[s-1];e[s]=[t,n,i]},l.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return l.d(a,{a}),a},l.d=(e,a)=>{for(var t in a)l.o(a,t)&&!l.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:a[t]})},l.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),(()=>{var e={9338:0,3406:0};l.O.j=a=>0===e[a];var a=(a,t)=>{var n,i,[o,u,r]=t,_=0;if(o.some((a=>0!==e[a]))){for(n in u)l.o(u,n)&&(l.m[n]=u[n]);if(r)var s=r(l)}for(a&&a(t);_<o.length;_++)i=o[_],l.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return l.O(s)},t=globalThis.webpackChunkgutenify=globalThis.webpackChunkgutenify||[];t.forEach(a.bind(null,0)),t.push=a.bind(null,t.push.bind(t))})();var n=l.O(void 0,[3406],(()=>l(7139)));n=l.O(n)})();
Run Command [Bypass]
Run Command