PluginProbe ʕ •ᴥ•ʔ
Superb Addons: Blocks, Patterns, Pre-built Pages, Sliders, Popups, Free Forms, Animations & More / 4.0.7
Superb Addons: Blocks, Patterns, Pre-built Pages, Sliders, Popups, Free Forms, Animations & More v4.0.7
4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 4.0.2 4.0.1 4.0.0 trunk 1.0.0 2.0.0 2.0.1 2.0.2 2.0.3 3.0 3.0.1 3.0.2 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.2 3.1.3 3.2.0 3.2.1 3.2.2 3.2.4 3.2.5 3.2.7 3.2.8 3.2.9 3.3.0 3.3.1 3.3.2 3.4.0 3.4.1 3.4.2 3.4.5 3.4.6 3.5.0 3.5.1 3.5.2 3.5.3 3.5.4 3.5.6 3.5.7 3.5.8 3.5.9 3.6.0 3.6.1 3.6.2 3.7.0 3.7.1
superb-blocks / blocks / reveal-buttons / index.js
superb-blocks / blocks / reveal-buttons Last commit date
block.json 1 week ago index.asset.php 1 week ago index.js 1 week ago
index.js
1 lines
1 (()=>{var t={942(t,e){var r;!function(){"use strict";var o={}.hasOwnProperty;function n(){for(var t="",e=0;e<arguments.length;e++){var r=arguments[e];r&&(t=s(t,a(r)))}return t}function a(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return n.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var e="";for(var r in t)o.call(t,r)&&t[r]&&(e=s(e,r));return e}function s(t,e){return e?t?t+" "+e:t+e:t}t.exports?(n.default=n,t.exports=n):void 0===(r=function(){return n}.apply(e,[]))||(t.exports=r)}()}},e={};function r(o){var n=e[o];if(void 0!==n)return n.exports;var a=e[o]={exports:{}};return t[o](a,a.exports,r),a.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var o in e)r.o(e,o)&&!r.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";const t=JSON.parse('{"UU":"superb-addons/reveal-button"}'),e=JSON.parse('{"UU":"superb-addons/reveal-buttons"}'),o=window.React;var n,a;function s(){return s=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var o in r)({}).hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},s.apply(null,arguments)}const i=window.wp.blocks;window.wp.i18n;var l=r(942),u=r.n(l);const c=window.wp.blockEditor,p=window.ReactJSXRuntime,v={name:t.UU,attributesToCopy:["backgroundColor","border","className","fontFamily","fontSize","gradient","style","textColor","width"]},d={innerBlocks:[{name:t.UU,attributes:{buttonText:"Reveal Button",hideRevealTeaser:!1,couponCode:"SUPERB"}},{name:t.UU,attributes:{buttonText:"Get Coupon",hideRevealTeaser:!1,couponCode:"COUPON"}}]};(0,i.registerBlockType)(e.UU,{allowedBlocks:[t.UU],icon:{src:function(t){return o.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 256 256"},t),n||(n=o.createElement("path",{fill:"#6448e7",d:"M216 152v40a8 8 0 0 1-8 8H48a8 8 0 0 1-8-8v-40a8 8 0 0 1 8-8h160a8 8 0 0 1 8 8m-8-96H48a8 8 0 0 0-8 8v40a8 8 0 0 0 8 8h160a8 8 0 0 0 8-8V64a8 8 0 0 0-8-8",opacity:.2})),a||(a=o.createElement("path",{fill:"#6448e7",d:"M208 136H48a16 16 0 0 0-16 16v40a16 16 0 0 0 16 16h160a16 16 0 0 0 16-16v-40a16 16 0 0 0-16-16m0 56H48v-40h160zm0-144H48a16 16 0 0 0-16 16v40a16 16 0 0 0 16 16h160a16 16 0 0 0 16-16V64a16 16 0 0 0-16-16m0 56H48V64h160z"})))}},example:d,edit:function({attributes:e,className:r}){var o;const{fontSize:n,layout:a,style:s}=e,i=(0,c.useBlockProps)({className:u()(r,{"has-custom-font-size":n||s?.typography?.fontSize})}),l=(0,c.useInnerBlocksProps)(i,{defaultBlock:v,directInsert:!0,template:[[t.UU]],templateInsertUpdatesSelection:!0,orientation:null!==(o=a?.orientation)&&void 0!==o?o:"horizontal"});return(0,p.jsx)("div",{...l})},save:function({attributes:t,className:e}){const{fontSize:r,style:o}=t,n=c.useBlockProps.save({className:u()(e,{"has-custom-font-size":r||o?.typography?.fontSize})}),a=c.useInnerBlocksProps.save(n);return(0,p.jsx)("div",{...a})}})})()})();