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/service/index.js
(()=>{var e,t={5444:(e,t,o)=>{"use strict";const n=window.React,r=window.wp.i18n,l=window.wp.components,a=window.wp.blocks;var i=o(6942),c=o.n(i),s=o(6638),u=o.n(s);const d=window.wp.compose,b=window.wp.data,p=window.wp.blockEditor,g=window.lodash,m=window.wp.hooks,v=JSON.parse('{"UU":"gutenify/service","rE":"2","uK":{"blockClientId":{"type":"string","default":""},"blockAdvanceOptions":{"type":"object","default":{"padding":{"desktop":{"top":"20px","bottom":"20px","left":"20px","right":"20px"}}}},"layout":{"type":"string","default":"layout-1"},"columnSize":{"type":"number","default":2},"hideButtons":{"type":"boolean","default":false}},"xY":{"anchor":true,"html":false,"align":["wide","full"]}}'),{UU:f}=v,h={name:f,blockId:f.replace("/","--"),hookPrefix:"service"},k="gutenify",y=window?.[`_${k}_vars`]?window[`_${k}_vars`]:{},{is_pro_activated:C,pro_account_url:_,pro_license_status:x,title:$,prefix:A,slug:E,authorWebSite:w,authorDemoWebSite:B,authorWebSiteProPage:S,defaultTheme:O,authorWebSiteSupport:I,plugin_directory_url:N,brand_color:j,plugin_main_version:U,documentationsURL:F,pro_title:G,active_blocks:P,plugin_main_camel_case_name:T}=y,W=(y?.siteUrl?y.siteUrl:y.site_url,(0,r.sprintf)("Want to enjoy all feature of blocks? Checkout %1$s%2$s%3$s.",'<a href="'+S+'" target="_blank">',G,"</a>"),{pluginMainSlug:"gutenify",pluginMainCamelCaseName:T,pluginMainFunctionPrefix:"gutenify"}),{blockId:R,name:M,hookPrefix:V}=h,{pluginMainSlug:z}=W;(0,m.addFilter)(`${z}--inline-styles--${R}`,`${z}--inline-styles--${R}--service`,((e,t,o="")=>{const{attributes:n,name:r}=t;if(r!==M)return e;const{blockAdvanceOptions:l,blockClientId:a}=n;o=o||`.${z}-section-${a}`;let i="";i+=(0,g.has)(l,"textColor")&&!(0,g.isEmpty)(l.textColor)?`color: ${l.textColor};`:"",i+=(0,g.has)(l,"backgroundColor")&&!(0,g.isEmpty)(l.backgroundColor)?`background: ${l.backgroundColor};`:"",(0,g.has)(l,"backgroundGradient")&&!(0,g.isEmpty)(l.backgroundGradient)&&(i+=`background: ${l.backgroundGradient};`),i+=(0,g.has)(l,"borderColor")&&!(0,g.isEmpty)(l.borderColor)?`border-color: ${l.borderColor};`:"",i+=(0,g.has)(l,"borderWidth")&&l.borderWidth>0?`border-width: ${l.borderWidth}px;`:"",i+=(0,g.has)(l,"borderWidth")&&l.borderWidth>0?"border-style: solid;":"",i+=(0,g.has)(l,"borderRadius")&&!(0,g.isEmpty)(l.borderRadius)?`border-radius: ${l.borderRadius};`:"",i&&(e+=`${o} { ${i} }`);let c="";return c+=(0,g.has)(l,"hoverTextColor")&&!(0,g.isEmpty)(l.hoverTextColor)?`color: ${l.hoverTextColor};`:"",c+=(0,g.has)(l,"hoverBackgroundColor")&&!(0,g.isEmpty)(l.hoverBackgroundColor)?`background: ${l.hoverBackgroundColor};`:"",(0,g.has)(l,"hoverBackgroundGradient")&&!(0,g.isEmpty)(l.hoverBackgroundGradient)&&(c+=`background: ${l.hoverBackgroundGradient};`),c+=(0,g.has)(l,"hoverBorderColor")&&!(0,g.isEmpty)(l.hoverBorderColor)?`border-color: ${l.hoverBorderColor};`:"",c&&(e+=`${o}:hover { ${c} }`),(0,m.applyFilters)(`${z}--${V}--inline-styles`,e,t)}));const J=window.wp.element,{pluginMainSlug:L}=W,D=({layouts:e,label:t="Layouts",value:o,onChange:r,blockName:a})=>{e=(0,m.applyFilters)(`${E}--layouts--${a}`,e);const i=a.replace(new RegExp(E+"--","gi"),"");return(0,n.createElement)(n.Fragment,null,e&&e.length?(0,n.createElement)("div",{className:`${E}-template-browser`},(0,n.createElement)(l.Flex,{direction:"column",gap:"20px"},(0,n.createElement)(l.FlexBlock,null,(0,n.createElement)("h2",null,t)),(0,n.createElement)(l.FlexBlock,null,(0,n.createElement)("ul",null,e.map((e=>{let t=`${E}-template-browser-item`;return o===e.name&&(t+=` ${E}-template-browser-item-active`),(0,n.createElement)("li",{className:t,key:e.name},(0,n.createElement)("button",{className:`${E}-template-browser-selector`,onClick:()=>{r(e)}},(0,n.createElement)("img",{src:e?.thumbnailUrl?e.thumbnailUrl:`${N}/assets/images/layouts/${i}/${e.name}.png`,alt:e.name}),(0,n.createElement)("small",null,e.label)))})))))):"")},H=JSON.parse('{"UU":"gutenify/info-box"}'),{UU:K}=H,Y={name:K,blockId:K.replace("/","--"),hookPrefix:"info-box",layouts:[{name:"layout-1",label:"Layout 1",iconAlign:"center",titleAlign:"center",buttonAlign:"center"},{name:"layout-2",label:"Layout 2",iconAlign:"center",titleAlign:"left",buttonAlign:"left"},{name:"layout-3",label:"Layout 3",iconAlign:"center",titleAlign:"right",buttonAlign:"right"}]},{Accordion:q}=window?.[`_${A}_vars`]?.components,{blockId:Q}=h,{blockId:X,layouts:Z}=Y,{pluginMainSlug:ee}=W;(0,m.addFilter)(`${ee}--inspector-controls--${Q}--content`,`${ee}--inspector-controls--${Q}--content--opitons`,((e,t)=>{const{attributes:o,setAttributes:a}=t,{layout:i,columnSize:c,hideButtons:s}=o;return[...e,(0,n.createElement)(J.Fragment,{key:`${ee}-block-${Q}-options-tab-content-basic`},(0,n.createElement)(q,{tabs:[{name:"service",initialOpen:!0,label:()=>(0,r.__)("Service"),cb:()=>(0,n.createElement)(J.Fragment,null,(0,n.createElement)(l.RangeControl,{value:c,label:(0,r.__)("Columns"),min:1,max:(0,m.applyFilters)(`${ee}--${Q}--max-columns`,4),step:1,onChange:e=>{a({columnSize:e})}}),(0,n.createElement)(l.ToggleControl,{label:(0,r.__)("Hide Buttons"),onChange:()=>{a({hideButtons:!s})},checked:s,help:s?(0,r.__)("All buttons are hidden"):(0,r.__)("All buttons are shown.")}))},{name:"info-box",initialOpen:!0,label:()=>(0,r.__)("Info Box"),cb:()=>(0,n.createElement)(J.Fragment,null,(0,n.createElement)(D,{layouts:Z,value:i,blockName:X,onChange:e=>{const o={layout:e.name,iconAlign:e.iconAlign,titleAlign:e.titleAlign};a(o),((e,t)=>{const{clientId:o}=t;(0,b.select)("core/block-editor").getBlocksByClientId(o)[0].innerBlocks.forEach((function(t){`${L}/info-box`===t.name&&((0,b.dispatch)("core/block-editor").updateBlockAttributes(t.clientId,{layout:e.name,titleAlign:e.titleAlign,iconAlign:e.iconAlign,buttonAlign:e.buttonAlign}),(0,b.select)("core/block-editor").getBlocksByClientId(t.clientId)[0].innerBlocks.forEach((function(t){`${L}/icon`===t.name&&(0,b.dispatch)("core/block-editor").updateBlockAttributes(t.clientId,{contentJustification:e.iconAlign}),"core/heading"===t.name&&(0,b.dispatch)("core/block-editor").updateBlockAttributes(t.clientId,{textAlign:e.titleAlign}),"core/paragraph"===t.name&&(0,b.dispatch)("core/block-editor").updateBlockAttributes(t.clientId,{align:e.titleAlign}),`${L}/buttons`===t.name&&(0,b.dispatch)("core/block-editor").updateBlockAttributes(t.clientId,{contentJustification:e.buttonAlign})})))}))})(e,t)}}))}]}))]}));const te=e=>{const{clearable:t=!0}=e,{colors:o}=(0,b.useSelect)((e=>({colors:e("core/block-editor").getSettings().colors||[]})));return(0,n.createElement)(l.BaseControl,{label:e.label,id:"textcolor-1"},(0,n.createElement)(l.ColorPalette,{colors:o,value:e.value,onChange:t=>{e.onChange(t)},clearable:t}))},oe=e=>{const{clearable:t=!0}=e,{colors:o,gradients:r}=(0,b.useSelect)((e=>({colors:e("core/block-editor").getSettings().colors||[],gradients:e("core/block-editor").getSettings().gradients||[]})));return(0,n.createElement)("div",{className:"gutenify-color-gradient-control-wrapper"},(0,n.createElement)(p.__experimentalColorGradientControl,{label:e.label,colorValue:e.colorValue,gradientValue:e.gradientValue,colors:o,gradients:r,disableCustomColors:!1,disableCustomGradients:!1,onColorChange:t=>{if((0,g.isEmpty)(t))return;const o={backgroundColor:t,backgroundGradient:void 0};e.onChange(o)},onGradientChange:t=>{if((0,g.isEmpty)(t))return;const o={backgroundGradient:t,backgroundColor:void 0};e.onChange(o)},clearable:!1}),t&&(0,n.createElement)("div",{className:"components-circular-option-picker__custom-clear-wrapper"},(0,n.createElement)("button",{type:"button",className:"components-button components-circular-option-picker__clear is-secondary is-small",onClick:()=>{e.onChange({backgroundColor:void 0,backgroundGradient:void 0})}},"Clear")))};J.Component;const{Accordion:ne}=window?.[`_${A}_vars`]?.components,{blockId:re}=h,{pluginMainSlug:le}=W;(0,m.addFilter)(`${le}--inspector-controls--${re}--style`,`${le}--inspector-controls--${re}--style--opitons`,((e,t)=>{const{attributes:o,setAttributes:a}=t,{blockAdvanceOptions:i}=o;return[...e,(0,n.createElement)(J.Fragment,{key:`${le}--inspector-controls--${re}--style--opitons`},(0,n.createElement)(ne,{tabs:[{name:"service",initialOpen:!0,label:()=>(0,r.__)("Service Style"),cb:()=>(0,n.createElement)(J.Fragment,null,(0,n.createElement)(l.TabPanel,{className:"gutenify-editor-tab-panel gutenify-editor-tab-ovel",activeClass:"active-tab",tabs:[{name:"normal",title:(0,r.__)("Normal"),className:"gutenify-color-normal-tab"},{name:"hover",title:(0,r.__)("Hover"),className:"gutenify-color-hover-tab"}]},(e=>(0,n.createElement)(J.Fragment,null,"normal"===e.name&&(0,n.createElement)(J.Fragment,null,(0,n.createElement)(te,{label:(0,r.__)("Color"),onChange:e=>{const t={blockAdvanceOptions:{...i,textColor:e}};a(t)},value:i.textColor}),(0,n.createElement)(oe,{label:(0,r.__)("Background Color"),colorValue:i.backgroundColor,gradientValue:i.backgroundGradient,onChange:e=>{const t={blockAdvanceOptions:{...i,...e}};a(t)}}),(0,n.createElement)(te,{label:(0,r.__)("Border Color"),onChange:e=>{const t={blockAdvanceOptions:{...i,borderColor:e}};a(t)},value:i.borderColor})),"hover"===e.name&&(0,n.createElement)(J.Fragment,null,(0,n.createElement)(te,{label:(0,r.__)("Color"),onChange:e=>{const t={blockAdvanceOptions:{...i,hoverTextColor:e}};a(t)},value:i.hoverTextColor}),(0,n.createElement)(oe,{label:(0,r.__)("Background Color"),colorValue:i.hoverBackgroundColor,gradientValue:i.hoverBackgroundGradient,onChange:e=>{const t={blockAdvanceOptions:{...i,hoverBackgroundColor:e.backgroundColor,hoverBackgroundGradient:e.backgroundGradient}};a(t)}}),(0,n.createElement)(te,{label:(0,r.__)("Border Color"),onChange:e=>{const t={blockAdvanceOptions:{...i,hoverBorderColor:e}};a(t)},value:i.hoverBorderColor})),(0,n.createElement)(l.__experimentalNumberControl,{label:(0,r.__)("Border Width"),value:i.borderWidth,onChange:e=>{const t={blockAdvanceOptions:{...i,borderWidth:e}};a(t)},min:0,max:300}),(0,n.createElement)(l.__experimentalUnitControl,{label:(0,r.__)("Border Radius"),value:i.borderRadius,onChange:e=>{const t={blockAdvanceOptions:{...i,borderRadius:e}};a(t)},min:0,max:300}),(0,n.createElement)(l.__experimentalDivider,null)))))}]}))]}));const ae=["gutenify/info-box"],ie=function(e,t){var o,n,r=0;function l(){var l,a,i=o,c=arguments.length;e:for(;i;){if(i.args.length===arguments.length){for(a=0;a<c;a++)if(i.args[a]!==arguments[a]){i=i.next;continue e}return i!==o&&(i===n&&(n=i.prev),i.prev.next=i.next,i.next&&(i.next.prev=i.prev),i.next=o,i.prev=null,o.prev=i,o=i),i.val}i=i.next}for(l=new Array(c),a=0;a<c;a++)l[a]=arguments[a];return i={args:l,val:e.apply(null,l)},o?(o.prev=i,i.next=o):n=i,r===t.maxSize?(n=n.prev).next=null:r++,o=i,i.val}return t=t||{},l.clear=function(){o=null,n=null,r=0},l}((e=>u()(e,(()=>["gutenify/info-box",{className:"has-shadow-dark"}])))),ce=(0,d.compose)([(0,b.withDispatch)(((e,t)=>{const{clientId:o}=t;return{updateInnerBlocks(t){(0,b.select)("core/block-editor").getBlocksByClientId(o)[0].innerBlocks.forEach((function(o){"gutenify/info-box"===o.name&&(e("core/block-editor").updateBlockAttributes(o.clientId,{layout:t.name,titleAlign:t.titleAlign,iconAlign:t.iconAlign,buttonAlign:t.buttonAlign}),(0,b.select)("core/block-editor").getBlocksByClientId(o.clientId)[0].innerBlocks.forEach((function(o){"gutenify/icon"===o.name&&e("core/block-editor").updateBlockAttributes(o.clientId,{contentJustification:t.iconAlign}),"core/heading"===o.name&&e("core/block-editor").updateBlockAttributes(o.clientId,{textAlign:t.titleAlign}),"core/paragraph"===o.name&&e("core/block-editor").updateBlockAttributes(o.clientId,{align:t.titleAlign}),"gutenify/buttons"===o.name&&e("core/block-editor").updateBlockAttributes(o.clientId,{contentJustification:t.buttonAlign})})))}))}}}))])((e=>{const{attributes:t}=e,{layout:o,columnSize:r,hideButtons:l,blockClientId:a}=t,i=c()(`gutenify-service-${o}`,`gutenify-service-col-${r}`,l?"gutenify--service--hide-button":"",`gutenify-section-${a}`,`${v.UU.replace(/\//gm,"-")}-version-${v.rE}`),s=(0,p.useBlockProps)({className:i}),{children:u,...d}=(0,p.useInnerBlocksProps)(s,{allowedBlocks:ae,template:ie(2),templateInsertUpdatesSelection:!1,orientation:"horizontal"});return(0,n.createElement)("div",{...d},(0,n.createElement)("div",{className:"gutenify-service-block"},u))})),{service:se}=window?.[`_${A}_vars`]?.components?.Icons,{UU:ue,uK:de,xY:be}=v,pe={title:(0,r.__)("Service"),description:(0,r.__)("Gutenify Service."),icon:(0,n.createElement)(l.Icon,{icon:se}),keywords:["gutenify",(0,r.__)("Service"),(0,r.__)("Services")],example:{attributes:{service:{}}},attributes:de,edit:ce,save:function(e){const{attributes:t}=e,{layout:o,columnSize:r,blockClientId:l,hideButtons:a}=t,i=c()(`gutenify-service-${o}`,`gutenify-service-col-${r}`,a?"gutenify--service--hide-button":"",`gutenify-section-${l}`,`${v.UU.replace(/\//gm,"-")}-version-${v.rE}`),s=p.useBlockProps.save({className:i}),u=p.useInnerBlocksProps.save(s);return(0,n.createElement)("div",{...u},(0,n.createElement)("div",{className:"gutenify-service-block"},u.children))},supports:be};(0,a.registerBlockType)(ue,{...pe})},1873:(e,t,o)=>{var n=o(9325).Symbol;e.exports=n},2552:(e,t,o)=>{var n=o(1873),r=o(659),l=o(9350),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?r(e):l(e)}},8096:e=>{e.exports=function(e,t){for(var o=-1,n=Array(e);++o<e;)n[o]=t(o);return n}},4128:(e,t,o)=>{var n=o(1800),r=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(r,""):e}},4066:(e,t,o)=>{var n=o(3488);e.exports=function(e){return"function"==typeof e?e:n}},4840:(e,t,o)=>{var n="object"==typeof o.g&&o.g&&o.g.Object===Object&&o.g;e.exports=n},659:(e,t,o)=>{var n=o(1873),r=Object.prototype,l=r.hasOwnProperty,a=r.toString,i=n?n.toStringTag:void 0;e.exports=function(e){var t=l.call(e,i),o=e[i];try{e[i]=void 0;var n=!0}catch(e){}var r=a.call(e);return n&&(t?e[i]=o:delete e[i]),r}},9350:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},9325:(e,t,o)=>{var n=o(4840),r="object"==typeof self&&self&&self.Object===Object&&self,l=n||r||Function("return this")();e.exports=l},1800:e=>{var t=/\s/;e.exports=function(e){for(var o=e.length;o--&&t.test(e.charAt(o)););return o}},3488:e=>{e.exports=function(e){return e}},3805:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},346:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},4394:(e,t,o)=>{var n=o(2552),r=o(346);e.exports=function(e){return"symbol"==typeof e||r(e)&&"[object Symbol]"==n(e)}},6638:(e,t,o)=>{var n=o(8096),r=o(4066),l=o(1489),a=4294967295,i=Math.min;e.exports=function(e,t){if((e=l(e))<1||e>9007199254740991)return[];var o=a,c=i(e,a);t=r(t),e-=a;for(var s=n(c,t);++o<e;)t(o);return s}},7400:(e,t,o)=>{var n=o(9374),r=1/0;e.exports=function(e){return e?(e=n(e))===r||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},1489:(e,t,o)=>{var n=o(7400);e.exports=function(e){var t=n(e),o=t%1;return t==t?o?t-o:t:0}},9374:(e,t,o)=>{var n=o(4128),r=o(3805),l=o(4394),a=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,c=/^0o[0-7]+$/i,s=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(l(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var o=i.test(e);return o||c.test(e)?s(e.slice(2),o?2:8):a.test(e)?NaN:+e}},6942:(e,t)=>{var o;!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e="",t=0;t<arguments.length;t++){var o=arguments[t];o&&(e=a(e,l(o)))}return e}function l(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return r.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var o in e)n.call(e,o)&&e[o]&&(t=a(t,o));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(r.default=r,e.exports=r):void 0===(o=function(){return r}.apply(t,[]))||(e.exports=o)}()}},o={};function n(e){var r=o[e];if(void 0!==r)return r.exports;var l=o[e]={exports:{}};return t[e](l,l.exports,n),l.exports}n.m=t,e=[],n.O=(t,o,r,l)=>{if(!o){var a=1/0;for(u=0;u<e.length;u++){for(var[o,r,l]=e[u],i=!0,c=0;c<o.length;c++)(!1&l||a>=l)&&Object.keys(n.O).every((e=>n.O[e](o[c])))?o.splice(c--,1):(i=!1,l<a&&(a=l));if(i){e.splice(u--,1);var s=r();void 0!==s&&(t=s)}}return t}l=l||0;for(var u=e.length;u>0&&e[u-1][2]>l;u--)e[u]=e[u-1];e[u]=[o,r,l]},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={6533:0,6761:0};n.O.j=t=>0===e[t];var t=(t,o)=>{var r,l,[a,i,c]=o,s=0;if(a.some((t=>0!==e[t]))){for(r in i)n.o(i,r)&&(n.m[r]=i[r]);if(c)var u=c(n)}for(t&&t(o);s<a.length;s++)l=a[s],n.o(e,l)&&e[l]&&e[l][0](),e[l]=0;return n.O(u)},o=globalThis.webpackChunkgutenify=globalThis.webpackChunkgutenify||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})();var r=n.O(void 0,[6761],(()=>n(5444)));r=n.O(r)})();
Run Command [Bypass]
Run Command