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
(()=>{"use strict";const e=window.React,t=window.wp.i18n,o=window.wp.components,a=window.wp.blocks,i=window.wp.data,r=window.wp.element,s=window.wp.blockEditor,l="gutenify",n=window?.[`_${l}_vars`]?window[`_${l}_vars`]:{},{is_pro_activated:c,pro_account_url:p,pro_license_status:_,title:u,prefix:w,slug:d,authorWebSite:m,authorDemoWebSite:y,authorWebSiteProPage:f,defaultTheme:b,authorWebSiteSupport:k,plugin_directory_url:g,brand_color:v,plugin_main_version:T,documentationsURL:h,pro_title:B,active_blocks:$,plugin_main_camel_case_name:E}=n,{TemplateBrowser:O}=(n?.siteUrl?n.siteUrl:n.site_url,(0,t.sprintf)("Want to enjoy all feature of blocks? Checkout %1$s%2$s%3$s.",'<a href="'+f+'" target="_blank">',B,"</a>"),window?.[`_${w}_vars`]?.components),S=JSON.parse('{"UU":"gutenify/templates-browser","uK":{"isTemplatesModalOnly":{"type":"boolean","default":false}}}'),{templateBrowser:U}=window?.[`_${w}_vars`]?.components?.Icons,{UU:I,uK:M}=S,W={title:(0,t.__)("Template Browser"),description:(0,t.__)("Browse templates that you have created or pick from Libarary."),icon:(0,e.createElement)(o.Icon,{icon:U}),keywords:["gutenify",(0,t.__)("Template"),(0,t.__)("Library"),(0,t.__)("Templates"),(0,t.__)("Browser")],example:{attributes:{}},attributes:M,edit:a=>{const{className:l,clientId:n,attributes:c}=a,[p,_]=(0,r.useState)(!1),{removeBlock:u}=(0,i.useDispatch)("core/block-editor");(0,r.useEffect)((()=>{c.isTemplatesModalOnly&&p&&u(n)}),[c.isTemplatesModalOnly,n,p,u]);const w=(0,s.useBlockProps)({className:`${l} gutenify--flex gutenify--flex--justify-center`});return(0,e.createElement)("div",{...w},c.isTemplatesModalOnly||p?(0,e.createElement)(O,{initialOpen:!0,onRequestClose:()=>{_(!1),c.isTemplatesModalOnly&&u(n)},replaceBlockId:n}):null,(0,e.createElement)(o.Button,{onClick:()=>{_(!0)},variant:"primary"},(0,e.createElement)(o.Icon,{icon:"grid-view",size:16})," "," ",(0,t.__)("Add Template")))},save:()=>{}};(0,a.registerBlockType)(I,{...W})})();