(()=>{var t,e={2689:(t,e,n)=>{"use strict";const o=window.React,r=window.wp.i18n,i=window.wp.components,a=window.wp.blocks;var s=n(6942),l=n.n(s);const u=window.wp.blockEditor,c=window.wp.compose,p=window.wp.data,f=JSON.parse('{"UU":"gutenify/buttons","uK":{"blockClientId":{"type":"string","default":""},"blockAdvanceOptions":{"type":"object","default":{}},"contentJustification":{"type":"string"},"orientation":{"type":"string","default":"horizontal"}}}'),d=window.wp.element,b=window.wp.hooks,{UU:g}=f,v={blockId:g.replace("/","--")},w="gutenify",y=window?.[`_${w}_vars`]?window[`_${w}_vars`]:{},{is_pro_activated:_,pro_account_url:m,pro_license_status:h,title:k,prefix:S,slug:O,authorWebSite:$,authorDemoWebSite:x,authorWebSiteProPage:P,defaultTheme:j,authorWebSiteSupport:C,plugin_directory_url:B,brand_color:U,plugin_main_version:E,documentationsURL:I,pro_title:J,active_blocks:N,plugin_main_camel_case_name:A}=y,M=(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="'+P+'" target="_blank">',J,"</a>"),{pluginMainSlug:"gutenify",pluginMainCamelCaseName:A,pluginMainFunctionPrefix:"gutenify"}),{hookPrefix:W,blockId:T}=v,{pluginMainSlug:F}=M;(0,b.addFilter)(`${F}--block-controls--${T}`,`${F}--block-controls--${T}--add-slides`,((t,e)=>{const{attributes:n,setAttributes:r}=e,{contentJustification:i,orientation:a}=n,s="vertical"===a?["left","center","right"]:["left","center","right","space-between"];return[...t,(0,o.createElement)(d.Fragment,{key:`gutenify-block-${W}-options-tab-content-basic`},(0,o.createElement)(u.JustifyContentControl,{allowedControls:s,value:i,onChange:t=>r({contentJustification:t}),popoverProps:{position:"bottom right",isAlternate:!0}}))]}));const K=["gutenify/button"],L={type:"default",alignments:[]},R=(0,c.compose)([(0,p.withSelect)((t=>{const e=t(u.store).getSettings().__experimentalPreferredStyleVariations;return{preferredStyle:e?.value?.["gutenify/button"]}}))])((t=>{const{attributes:e,preferredStyle:n}=t,{contentJustification:r,orientation:i}=e,a=(0,u.useBlockProps)({className:l()({[`is-content-justification-${r}`]:r,"is-vertical":"vertical"===i},"wp-block-buttons")}),{children:s,...c}=(0,u.useInnerBlocksProps)(a,{allowedBlocks:K,__experimentalLayout:L,template:[["gutenify/button",{className:n&&`is-style-${n}`}]],orientation:i});return(0,o.createElement)("div",{...c},s)})),{buttons:z}=window?.[`_${S}_vars`]?.components?.Icons,{UU:D,uK:G}=f,V={title:(0,r.__)("Buttons"),description:(0,r.__)("Gutenify button."),icon:(0,o.createElement)(i.Icon,{icon:z}),keywords:["gutenify",(0,r.__)("Button"),(0,r.__)("Buttons")],example:{attributes:{image:{url:"",id:""}}},attributes:G,edit:R,save:function(t){const{attributes:{contentJustification:e,orientation:n},className:r}=t,i=l()(r,{[`is-content-justification-${e}`]:e,"is-vertical":"vertical"===n},"wp-block-buttons"),a=u.useBlockProps.save({className:i}),s=u.useInnerBlocksProps.save(a);return(0,o.createElement)("div",{...s},s.children)}};(0,a.registerBlockType)(D,{...V})},6942:(t,e)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var t="",e=0;e<arguments.length;e++){var n=arguments[e];n&&(t=a(t,i(n)))}return t}function i(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return r.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var e="";for(var n in t)o.call(t,n)&&t[n]&&(e=a(e,n));return e}function a(t,e){return e?t?t+" "+e:t+e:t}t.exports?(r.default=r,t.exports=r):void 0===(n=function(){return r}.apply(e,[]))||(t.exports=n)}()}},n={};function o(t){var r=n[t];if(void 0!==r)return r.exports;var i=n[t]={exports:{}};return e[t](i,i.exports,o),i.exports}o.m=e,t=[],o.O=(e,n,r,i)=>{if(!n){var a=1/0;for(c=0;c<t.length;c++){for(var[n,r,i]=t[c],s=!0,l=0;l<n.length;l++)(!1&i||a>=i)&&Object.keys(o.O).every((t=>o.O[t](n[l])))?n.splice(l--,1):(s=!1,i<a&&(a=i));if(s){t.splice(c--,1);var u=r();void 0!==u&&(e=u)}}return e}i=i||0;for(var c=t.length;c>0&&t[c-1][2]>i;c--)t[c]=t[c-1];t[c]=[n,r,i]},o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t={6739:0,3435:0};o.O.j=e=>0===t[e];var e=(e,n)=>{var r,i,[a,s,l]=n,u=0;if(a.some((e=>0!==t[e]))){for(r in s)o.o(s,r)&&(o.m[r]=s[r]);if(l)var c=l(o)}for(e&&e(n);u<a.length;u++)i=a[u],o.o(t,i)&&t[i]&&t[i][0](),t[i]=0;return o.O(c)},n=globalThis.webpackChunkgutenify=globalThis.webpackChunkgutenify||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))})();var r=o.O(void 0,[3435],(()=>o(2689)));r=o.O(r)})();