PluginProbe
FireBox – WooCommerce Popup Builder, Exit Intent Popup, Email Optin & Cart Abandonment / 1.0.13
FireBox – WooCommerce Popup Builder, Exit Intent Popup, Email Optin & Cart Abandonment v1.0.13
3.1.13 3.1.12 3.1.11 3.1.10 3.1.9 3.1.8 3.1.7 trunk 1.0.0 1.0.1 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.1 All 122 releases
firebox / media / admin / js / fb_blocks_extend.js

fb_blocks_extend.js in FireBox – WooCommerce Popup Builder, Exit Intent Popup, Email Optin & Cart Abandonment 1.0.13, at media/admin/js/fb_blocks_extend.js

3 lines 2.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 !function(e,t,o){var s=window.wp.i18n.__,a=wp.hooks.addFilter,u=e.Fragment,b=t.InspectorControls,t=wp.compose.createHigherOrderComponent,d=o.TextControl,f=o.SelectControl,x=o.ToggleControl,p=o.PanelBody,m=["core/button","core/image"],h=[];h.push({value:"none",label:s("Select a box","firebox")}),h.push({value:"current",label:s("Current box","firebox")}),wp.apiFetch({path:"/fireplugins/firebox/boxes"}).then(function(e){var t;(t=[],e.map(function(e){t.push({label:e.title,value:e.id})}),t).forEach(function(e){h.push({value:e.value,label:e.label})})}),t=t(function(i){return function(e){var t=e.name,o=e.attributes,a=e.setAttributes,l=o.dataFBox,n=o.dataFBoxCmd,r=o.dataFBoxEnabled,c=o.dataFBoxPreventDefault,o=o.dataFBoxClass;return React.createElement(u,null,React.createElement(i,e),m.includes(t)&&React.createElement(b,null,React.createElement(p,{title:s("FireBox","firebox")},React.createElement(x,{label:s("Enable FireBox Settings","firebox"),checked:!!r,onChange:function(){return a({dataFBoxEnabled:!r})},help:s("Enable to trigger a FireBox or define custom CSS Classes.","firebox")}),r&&React.createElement("div",null,React.createElement(f,{label:s("Select a FireBox","firebox"),value:l,options:h,onChange:function(e){return a({dataFBox:e})},help:s("Select the box to trigger.","firebox")}),!l||"none"!=l&&React.createElement(u,null,React.createElement(f,{label:s("FireBox Action","firebox"),value:n,options:[{label:"Open",value:"open"},{label:"Close",value:"close"},{label:"Toggle",value:"toggle"}],onChange:function(e){return a({dataFBoxCmd:e})},help:s("Set the action of the box. Open, Close or Toggle.","firebox")}),React.createElement(x,{label:s("Prevent Default Action","firebox"),checked:!!c,onChange:function(){return a({dataFBoxPreventDefault:!c})},help:s("If enabled, stops the default action of the element from occuring. For example: Prevents a link from following the URL.","firebox")})),React.createElement(d,{label:s("CSS Classes","firebox"),value:o,onChange:function(e){return a({dataFBoxClass:e})},help:s("Set custom CSS Classes to this block. Separate multiple classes with spaces.","firebox")})))))}},"FBox_Block_Set_Advanced_Controls"),a("blocks.registerBlockType","fbox/core-blocks-custom-attributes",function(e){return m.includes(e.name)&&void 0!==e.attributes&&(e.attributes=Object.assign(e.attributes,{dataFBox:{type:"string"},dataFBoxCmd:{type:"string",default:"close"},dataFBoxEnabled:{type:"boolean",default:!1},dataFBoxPreventDefault:{type:"boolean",default:!0},dataFBoxClass:{type:"string",default:""}})),e}),a("editor.BlockEdit","fbox/core-blocks-custom-controls",t)}((window.wp.blocks,window.wp.element),window.wp.blockEditor,window.wp.components);
2
3