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/testimonial/index.js
(()=>{var e,t={5271:(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);const s=window.wp.blockEditor,u=window.wp.compose,d=window.lodash,m=window.wp.hooks,g=JSON.parse('{"UU":"gutenify/testimonial","rE":"2","uK":{"blockClientId":{"type":"string","default":""},"blockAdvanceOptions":{"type":"object","default":{"backgroundColor":"#ffffff"}},"quote":{"type":"string","default":"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed sit amet est massa. Sed enim massa, mattis at libero nec, bibendum ultricies augue."},"layout":{"type":"string","default":"layout-1"}}}'),p="gutenify",b=window?.[`_${p}_vars`]?window[`_${p}_vars`]:{},{is_pro_activated:h,pro_account_url:y,pro_license_status:v,title:k,prefix:_,slug:f,authorWebSite:C,authorDemoWebSite:$,authorWebSiteProPage:E,defaultTheme:w,authorWebSiteSupport:A,plugin_directory_url:x,brand_color:B,plugin_main_version:O,documentationsURL:S,pro_title:F,active_blocks:N,plugin_main_camel_case_name:I}=b,U=(b?.siteUrl?b.siteUrl:b.site_url,(0,r.sprintf)("Want to enjoy all feature of blocks? Checkout %1$s%2$s%3$s.",'<a href="'+E+'" target="_blank">',F,"</a>"),{pluginMainSlug:"gutenify",pluginMainCamelCaseName:I,pluginMainFunctionPrefix:"gutenify"}),{UU:T}=g,{pluginMainFunctionPrefix:G}=U,{plugin_directory_url:P}=window[`_${G}_vars`],W={name:T,blockId:T.replace("/","--"),hookPrefix:"testimonial",layouts:[{name:"layout-1",label:"Layout 1",imageAlign:"center",titleAlign:"center",ratingAlign:"center",thumbnailUrl:`${P}/assets/images/testimonial-layouts/layout-1.png`},{name:"layout-2",label:"Layout 2",imageAlign:"center",titleAlign:"left",ratingAlign:"left",thumbnailUrl:`${P}/assets/images/testimonial-layouts/layout-2.png`},{name:"layout-3",label:"Layout 3",imageAlign:"center",titleAlign:"left",ratingAlign:"left",thumbnailUrl:`${P}/assets/images/testimonial-layouts/layout-3.png`}]},{hookPrefix:j,blockId:M,name:R}=W,{pluginMainSlug:L}=U;(0,m.addFilter)(`${L}--inline-styles--${M}`,`${L}--inline-styles--${M}--button`,((e,t,o="")=>{const{attributes:n,name:r}=t;if(r!==R)return e;const{blockAdvanceOptions:l,blockClientId:a}=n;o=o||`.gutenify-section-${a}`;let i="";i+=(0,d.has)(l,"textColor")&&!(0,d.isEmpty)(l.textColor)?`color: ${l.textColor};`:"",i+=(0,d.has)(l,"backgroundColor")&&!(0,d.isEmpty)(l.backgroundColor)?`background: ${l.backgroundColor};`:"",(0,d.has)(l,"backgroundGradient")&&!(0,d.isEmpty)(l.backgroundGradient)&&(i+=`background: ${l.backgroundGradient};`),i+=(0,d.has)(l,"borderColor")&&!(0,d.isEmpty)(l.borderColor)?`border-color: ${l.borderColor};`:"",i+=(0,d.has)(l,"borderWidth")&&l.borderWidth>0?`border-width: ${l.borderWidth}px;`:"",i+=(0,d.has)(l,"borderWidth")&&l.borderWidth>0?"border-style: solid;":"",i+=(0,d.has)(l,"borderRadius")&&!(0,d.isEmpty)(l.borderRadius)?`border-radius: ${l.borderRadius};`:"",i&&(e+=`${o} { ${i} }`);let c="";return c+=(0,d.has)(l,"hoverTextColor")&&!(0,d.isEmpty)(l.hoverTextColor)?`color: ${l.hoverTextColor};`:"",c+=(0,d.has)(l,"hoverBackgroundColor")&&!(0,d.isEmpty)(l.hoverBackgroundColor)?`background: ${l.hoverBackgroundColor};`:"",(0,d.has)(l,"hoverBackgroundGradient")&&!(0,d.isEmpty)(l.hoverBackgroundGradient)&&(c+=`background: ${l.hoverBackgroundGradient};`),c+=(0,d.has)(l,"hoverBorderColor")&&!(0,d.isEmpty)(l.hoverBorderColor)?`border-color: ${l.hoverBorderColor};`:"",c&&(e+=`${o}:hover { ${c} }`),(0,m.applyFilters)(`gutenify--${j}--inline-styles`,e,t)}));const V=window.wp.element,D=({layouts:e,label:t="Layouts",value:o,onChange:r,blockName:a})=>{e=(0,m.applyFilters)(`${f}--layouts--${a}`,e);const i=a.replace(new RegExp(f+"--","gi"),"");return(0,n.createElement)(n.Fragment,null,e&&e.length?(0,n.createElement)("div",{className:`${f}-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=`${f}-template-browser-item`;return o===e.name&&(t+=` ${f}-template-browser-item-active`),(0,n.createElement)("li",{className:t,key:e.name},(0,n.createElement)("button",{className:`${f}-template-browser-selector`,onClick:()=>{r(e)}},(0,n.createElement)("img",{src:e?.thumbnailUrl?e.thumbnailUrl:`${x}/assets/images/layouts/${i}/${e.name}.png`,alt:e.name}),(0,n.createElement)("small",null,e.label)))})))))):"")},J=window.wp.data,{layouts:K,blockId:q}=W,{Accordion:z}=window?.[`_${_}_vars`]?.components,{pluginMainSlug:H}=U;(0,m.addFilter)(`${H}--inspector-controls--${q}--content`,`${H}--inspector-controls--${q}--content--item`,((e,t)=>[...e,(0,n.createElement)(V.Fragment,{key:`${H}--inspector-controls--${q}--content--item`},(0,n.createElement)(z,{tabs:[{name:"testimonial-item",initialOpen:!0,label:()=>(0,r.__)("Testimonial Item"),cb:()=>(0,n.createElement)(V.Fragment,null,(0,m.applyFilters)(`${H}--inspector-controls--${q}--content-item`,[],t))}]}))])),(0,m.addFilter)(`${H}--inspector-controls--${q}--content-item`,`${H}--inspector-controls--${q}--content--layout`,((e,t)=>{const{attributes:o,setAttributes:l}=t,{layout:a}=o;return[...e,(0,n.createElement)(V.Fragment,{key:`${H}--inspector-controls--${q}--content--layout`},(0,n.createElement)(D,{label:(0,r.__)("Layout"),layouts:K,value:a,blockName:q,onChange:e=>{const o={layout:e.name,ratingAlign:e.ratingAlign,imageAlign:e.imageAlign,titleAlign:e.titleAlign};l(o),((e,t)=>{const{clientId:o}=t;(0,J.select)("core/block-editor").getBlocksByClientId(o)[0].innerBlocks.forEach((function(t){"core/image"===t.name&&(0,J.dispatch)("core/block-editor").updateBlockAttributes(t.clientId,{align:e.imageAlign}),"core/heading"===t.name&&(0,J.dispatch)("core/block-editor").updateBlockAttributes(t.clientId,{textAlign:e.titleAlign}),"core/paragraph"===t.name&&(0,J.dispatch)("core/block-editor").updateBlockAttributes(t.clientId,{align:e.titleAlign}),"gutenify/star-rating"===t.name&&(0,J.dispatch)("core/block-editor").updateBlockAttributes(t.clientId,{textAlignment:e.ratingAlign})}))})(e,t)}}))]}));const Q=e=>{const{clearable:t=!0}=e,{colors:o}=(0,J.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}))},X=e=>{const{clearable:t=!0}=e,{colors:o,gradients:r}=(0,J.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)(s.__experimentalColorGradientControl,{label:e.label,colorValue:e.colorValue,gradientValue:e.gradientValue,colors:o,gradients:r,disableCustomColors:!1,disableCustomGradients:!1,onColorChange:t=>{if((0,d.isEmpty)(t))return;const o={backgroundColor:t,backgroundGradient:void 0};e.onChange(o)},onGradientChange:t=>{if((0,d.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")))};V.Component;const{Accordion:Y}=window?.[`_${_}_vars`]?.components,{blockId:Z}=W,{pluginMainSlug:ee}=U;(0,m.addFilter)(`${ee}--inspector-controls--${Z}--style`,`${ee}--inspector-controls--${Z}--style--opitons`,((e,t)=>{const{attributes:o,setAttributes:a}=t,{blockAdvanceOptions:i}=o;return[...e,(0,n.createElement)(V.Fragment,{key:`gutenify-block-${Z}-options-tab-content-basic`},(0,n.createElement)(Y,{tabs:[{name:"testimonial-item",initialOpen:!0,label:()=>(0,r.__)("Testimonial Item Style"),cb:()=>(0,n.createElement)(V.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)(V.Fragment,null,"normal"===e.name&&(0,n.createElement)(V.Fragment,null,(0,n.createElement)(Q,{label:(0,r.__)("Color"),onChange:e=>{const t={blockAdvanceOptions:{...i,textColor:e}};a(t)},value:i.textColor}),(0,n.createElement)(X,{label:(0,r.__)("Background Color"),colorValue:i.backgroundColor,gradientValue:i.backgroundGradient,onChange:e=>{const t={blockAdvanceOptions:{...i,...e}};a(t)}}),(0,n.createElement)(Q,{label:(0,r.__)("Border Color"),onChange:e=>{const t={blockAdvanceOptions:{...i,borderColor:e}};a(t)},value:i.borderColor})),"hover"===e.name&&(0,n.createElement)(V.Fragment,null,(0,n.createElement)(Q,{label:(0,r.__)("Color"),onChange:e=>{const t={blockAdvanceOptions:{...i,hoverTextColor:e}};a(t)},value:i.hoverTextColor}),(0,n.createElement)(X,{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)(Q,{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 te=e=>{const{children:t,name:o,className:r}=e,l=o.replace("/","-")+"-section",a=c()(l,r);return(0,n.createElement)("div",{className:a},t)},oe=["core/social-links","gutenify/star-rating"],{pluginMainFunctionPrefix:ne}=U,{plugin_directory_url:re}=window[`_${ne}_vars`],le=(0,u.compose)([])((e=>{const{attributes:t}=e,{layout:o,blockClientId:l}=t,a=c()("gutenify-testimonial-item",`gutenify-testimonial-${o}`,`gutenify-section-${l}`,`${g.UU.replace(/\//gm,"-")}-version-${g.rE}`),i=(0,s.useBlockProps)({className:a}),{children:u,...d}=(0,s.useInnerBlocksProps)(i,{allowedBlocks:oe,template:[["core/image",{url:`${re}assets/images/profile-pic.jpg`,align:"center",className:"is-style-rounded is-resized",width:"100px",height:"100px"}],["core/paragraph",{content:(0,r.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed sit amet est massa. Sed enim massa, mattis at libero nec, bibendum ultricies augue."),level:3,placeholder:(0,r.__)("Title"),align:"center",className:"gutenify-testimonial-block-content"}],["core/heading",{content:(0,r.__)("Jane Doe"),level:3,placeholder:(0,r.__)("Title"),textAlign:"center",className:"gutenify-testimonial-block-full-name"}],["core/heading",{content:(0,r.__)("Founder/ CEO"),level:4,placeholder:(0,r.__)("Degination"),textAlign:"center",className:"gutenify-testimonial-block-degination"}],["gutenify/star-rating"]],templateInsertUpdatesSelection:!1,renderAppender:!1});return(0,n.createElement)("div",{...d},(0,n.createElement)(te,{...e},u))})),{testimonial:ae}=window?.[`_${_}_vars`]?.components?.Icons,{UU:ie,uK:ce}=g,se={title:(0,r.__)("Testimonial"),description:(0,r.__)("Gutenify Testimonial"),icon:(0,n.createElement)(l.Icon,{icon:ae}),keywords:["gutenify",(0,r.__)("Testimonial"),(0,r.__)("Testimonial Item")],example:{attributes:{image:{url:"",id:""}}},attributes:ce,edit:le,save:function(e){const{attributes:t}=e,{layout:o,blockClientId:r}=t,l=c()("gutenify-testimonial-item",`gutenify-testimonial-${o}`,`gutenify-section-${r}`,`${g.UU.replace(/\//gm,"-")}-version-${g.rE}`),a=s.useBlockProps.save({className:l}),i=s.useInnerBlocksProps.save(a);return(0,n.createElement)("div",{...i},(0,n.createElement)(te,{...e,name:"gutenify/testimonial"},i.children))},supports:{html:!1}};(0,a.registerBlockType)(ie,{...se})},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.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={5649:0,8597: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,[8597],(()=>n(5271)));r=n.O(r)})();
Run Command [Bypass]
Run Command