PluginProbe
FireBox – WooCommerce Popup Builder, Exit Intent Popup, Email Optin & Cart Abandonment / 3.1.14
FireBox – WooCommerce Popup Builder, Exit Intent Popup, Email Optin & Cart Abandonment v3.1.14
3.1.14 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 All 123 releases
firebox / media / admin / js / blocks / blocks-free.js

blocks-free.js in FireBox – WooCommerce Popup Builder, Exit Intent Popup, Email Optin & Cart Abandonment 3.1.14, at media/admin/js/blocks/blocks-free.js

1 lines 3.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 (()=>{"use strict";const e=window.React,t=window.wp.i18n,l=window.wp.plugins,r=window.wp.components,a=window.wp.data,n=l=>{const n=l.plan||l.upgradePlan||"";let o=l.label?l.label:(0,t.sprintf)((0,t.__)("Unlock %s Feature","firebox"),n||(0,t.__)("Pro","firebox"));const{setUpgradeFeatureModal:i,setShowUpgradeModal:s}=(0,a.dispatch)("firebox_editor");return(0,e.createElement)(r.Button,{variant:"primary",isDestructive:!0,className:"firebox-upgrade-pro-button",size:l?.size||"default",onClick:e=>{e.preventDefault(),l.feature?i({key:l.feature,label:l.feature,upgradePlan:n}):s(!0)}},(0,e.createElement)("svg",{className:"fb-locks-icon lock-closed",xmlns:"http://www.w3.org/2000/svg",height:"18px",viewBox:"0 -960 960 960",width:"18px",fill:"#e8eaed"},(0,e.createElement)("path",{d:"M263.72-96Q234-96 213-117.15T192-168v-384q0-29.7 21.15-50.85Q234.3-624 264-624h24v-96q0-79.68 56.23-135.84 56.22-56.16 136-56.16Q560-912 616-855.84q56 56.16 56 135.84v96h24q29.7 0 50.85 21.15Q768-581.7 768-552v384q0 29.7-21.16 50.85Q725.68-96 695.96-96H263.72Zm.28-72h432v-384H264v384Zm216.21-120Q510-288 531-309.21t21-51Q552-390 530.79-411t-51-21Q450-432 429-410.79t-21 51Q408-330 429.21-309t51 21ZM360-624h240v-96q0-50-35-85t-85-35q-50 0-85 35t-35 85v96Zm-96 456v-384 384Z"})),(0,e.createElement)("svg",{className:"fb-locks-icon lock-open",xmlns:"http://www.w3.org/2000/svg",height:"18px",viewBox:"0 -960 960 960",width:"18px",fill:"#e8eaed"},(0,e.createElement)("path",{d:"M264-624h336v-96q0-50-35-85t-85-35q-50 0-85 35t-35 85h-72q0-80 56.23-136 56.22-56 136-56Q560-912 616-855.84q56 56.16 56 135.84v96h24q29.7 0 50.85 21.15Q768-581.7 768-552v384q0 29.7-21.16 50.85Q725.68-96 695.96-96H263.72Q234-96 213-117.15T192-168v-384q0-29.7 21.15-50.85Q234.3-624 264-624Zm0 456h432v-384H264v384Zm216.21-120Q510-288 531-309.21t21-51Q552-390 530.79-411t-51-21Q450-432 429-410.79t-21 51Q408-330 429.21-309t51 21ZM264-168v-384 384Z"})),(0,e.createElement)("span",{className:"text"},o))},{Fill:o,Slot:i}=(0,r.createSlotFill)("FireBox_Map_Repeater_Slotfill"),s=({children:t})=>(0,e.createElement)(o,null,t);s.Slot=({fillProps:t})=>(0,e.createElement)(i,{fillProps:t},(e=>e.length?e:null));const{Fill:c,Slot:m}=(0,r.createSlotFill)("FireBox_Map_Inspector_Controls_Controls_Slotfill"),p=({children:t})=>(0,e.createElement)(c,null,t);p.Slot=({fillProps:t})=>(0,e.createElement)(m,{fillProps:t},(e=>e.length?e:null)),(0,l.registerPlugin)("firebox-general-free-slot-fills",{render:()=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)(s,null,(({markers:l,onNewItemAdd:a})=>(0,e.createElement)(e.Fragment,null,0===l.length&&(0,e.createElement)(r.Button,{variant:"primary",className:"fpframework-button-fullwidth",onClick:a},(0,t.__)("Add Marker","firebox")),1===l.length&&(0,e.createElement)(r.Button,{variant:"primary",disabled:!0,className:"fpframework-button-fullwidth",onClick:a},(0,t.__)("Add Marker","firebox")),(0,e.createElement)(r.BaseControl,{label:(0,t.__)("Map Markers","firebox"),help:(0,t.__)("Upgrade to add multiple markers.","firebox")},(0,e.createElement)(n,{feature:(0,t.__)("More Map Markers","firebox"),plugin:"FireBox"}))))),(0,e.createElement)(p,null,(({attributes:l,setAttributes:a})=>(0,e.createElement)(r.BaseControl,{label:(0,t.__)("Scale","firebox"),help:(0,t.__)("Select whether to have a map scale in metric or imperial system.","firebox")},(0,e.createElement)(n,{feature:(0,t.__)("Scale","firebox"),plugin:"FireBox"})))))})})();