PATH:
home
/
lab2454c
/
incforce.com
/
wp-content
/
plugins
/
easy-pricing-tables
/
assets
/
blocks
/
editor
function fca_ept_sidebar_settings(t){var e=window.wp,o=e.element.createElement,a=o("span",{className:"dashicons dashicons-yes"}),l=o(e.components.Button,{variant:"primary",onClick:function(){window.open("https://fatcatapps.com/easypricingtables/","_blank")}},"Upgrade Now");return o(e.blockEditor.InspectorControls,{key:"ept-inspector-controls"},o("div",{className:"fca-ept-sidebar-items"},fca_ept_colorpanel_settings(t),fca_ept_font_settings(t),fca_ept_misc_settings(t),"Free"===fcaEptEditorData.edition?null:fca_ept_css_settings(t),o(e.components.PanelHeader,{},o(e.components.Button,{variant:"tertiary",onClick:function(){t.setAttributes({showLayoutPickerScreen:!0})}},"Change template")),"Free"===fcaEptEditorData.edition?o(e.components.PanelBody,{className:"fca-ept-get-premium",title:"",initialOpen:!0},o("h2",{className:"get-premium-features"},"Upgrade to Premium and Build Better Pricing Tables. You'll Get:"),o("p",{},a,"Nine Gorgeous Designs"),o("p",{},a,"Fully Customizable (Colors, Fonts, CSS etc.)"),o("p",{},a,"700+ Icons to Add to Your Tables"),o("p",{},a,"Priority Email Support"),o("p",{},a,"Tooltips"),o("p",{},a,"Font Picker with 12+ fonts"),o("p",{},a,"Pricing Toggles - switch between currencies or monthly/yearly pricing"),l):null))}function fca_ept_misc_settings(t){var e=window.wp,o=e.element.createElement;t.attributes.selectedLayout;return o(e.components.PanelBody,{title:"Options",className:"fca-ept-misc-settings",initialOpen:!1},fcaEptEditorData.toggle_integration?o(e.components.ToggleControl,{label:"Monthly / yearly toggle",checked:t.attributes.togglePeriodToggle,help:"Add a toggle to the top of your pricing table, giving users the option to switch between yearly / monthly pricing. "+(t.attributes.togglePeriodToggle?"(Enabled)":"(Disabled)"),onChange:function(){t.setAttributes({togglePeriodToggle:!t.attributes.togglePeriodToggle})}}):null,o(e.components.ToggleControl,{label:"Show Images",checked:t.attributes.showImagesToggle,onChange:function(e){var o=!t.attributes.showImagesToggle,a=JSON.parse(t.attributes.columnSettings);if(o)for(l=0;l<a.length;l++)void 0!==a[l].planImage&&""!=a[l].planImage||(a[l].planImage=fca_ept_get_planImage(t,l));else for(var l=0;l<a.length;l++)a[l].planImage="";t.setAttributes({showImagesToggle:o}),t.setAttributes({columnSettings:JSON.stringify(a)})}}),t.attributes.showImagesToggle?o(e.components.ToggleControl,{label:"Match Image Heights",checked:t.attributes.matchHeightsToggle,onChange:function(e){fca_ept_handle_image_heights_toggle(t,e)}}):null,-1!==["layout2","layout7","layout8"].indexOf(t.attributes.selectedLayout)?o(e.components.ToggleControl,{label:"Show plan subtext",checked:t.attributes.showPlanSubtextToggle,onChange:function(){t.setAttributes({showPlanSubtextToggle:!t.attributes.showPlanSubtextToggle})}}):null,-1!==["layout2","layout3","layout4","layout6","layout8","layout9"].indexOf(t.attributes.selectedLayout)?o(e.components.ToggleControl,{label:"Show price subtext",checked:t.attributes.showPriceSubtextToggle,onChange:function(){t.setAttributes({showPriceSubtextToggle:!t.attributes.showPriceSubtextToggle})}}):null,o(e.components.ToggleControl,{label:"Show buttons",checked:t.attributes.showButtonsToggle,onChange:function(){t.setAttributes({showButtonsToggle:!t.attributes.showButtonsToggle})}}),t.attributes.showButtonsToggle?o(e.components.ToggleControl,{label:"Open links in new tab",checked:t.attributes.urlTargetToggle,className:"fca-ept-open-new-tab-toggle",onChange:function(e){t.setAttributes({urlTargetToggle:!t.attributes.urlTargetToggle})}}):null)}function fca_ept_colorpanel_settings(t){var e=window.wp,o=e.element.createElement,a=t.attributes.selectedLayout,l=[{name:"Black",slug:"fca-black",color:"#333333"},{name:"White",slug:"fca-white",color:"#ffffff"},{name:"Gray",slug:"fca-grey",color:"#f2f2f2"},{name:"Dark Gray",slug:"fca-grey",color:"#4c4c4c"},{name:"Light Blue",slug:"fca-lightblue",color:"#3498db"},{name:"Blue",slug:"fca-blue",color:"#0f61d8"},{name:"Purple",slug:"fca-purple",color:"#6236ff"},{name:"Green",slug:"fca-green",color:"#278806"},{name:"Yellow",slug:"fca-yellow",color:"#ffd232"},{name:"Red",slug:"fca-red",color:"#dd4632"},{name:"Orange",slug:"fca-orange",color:"#fa6400"},{name:"Aqua",slug:"fca-aqua",color:"#01a3a4"}],n=[{label:"Background",colors:l,value:t.attributes.layoutBGColor,clearable:!1,onChange:function(e){t.setAttributes({layoutBGColor:e}),"layout1"===t.attributes.selectedLayout&&(t.setAttributes({layoutBGTint1:fca_ept_hexToRGB(e,0,10)}),t.setAttributes({layoutBGTint2:fca_ept_hexToRGB(e,0,15)}),t.setAttributes({layoutBGTint3:fca_ept_hexToRGB(e,0,30)}),t.setAttributes({layoutBGTint4:fca_ept_hexToRGB(e,0,107)}))}},{label:"Text",value:t.attributes.layoutFontColor,colors:l,clearable:!1,onChange:function(e){t.setAttributes({layoutFontColor:e}),t.setAttributes({layoutFontColor1:fca_ept_hexToRGB(e,.4,0)})}},{label:"layout6"===a?"Popular Text":"Plan Text",value:t.attributes.layoutFontColor1,colors:l,clearable:!1,onChange:function(e){t.setAttributes({layoutFontColor1:e})}},{label:"Button",value:t.attributes.buttonColor,colors:l,clearable:!1,onChange:function(e){e||(e=fca_ept_main_attributes.buttonColor.default),t.setAttributes({buttonColor:e}),t.setAttributes({popularBorderColor:fca_ept_hexToRGB(e,0,35)}),t.setAttributes({priceSubtextColor:fca_ept_hexToRGB(e,.4,0)}),t.setAttributes({buttonBorderColor:fca_ept_hexToRGB(e,0,55)})}},{label:"Button Font",value:t.attributes.buttonFontColor,colors:l,clearable:!1,onChange:function(e){t.setAttributes({buttonFontColor:e})}},{label:"Accent",value:t.attributes.accentColor,colors:l,clearable:!1,onChange:function(e){t.setAttributes({accentColor:e}),t.setAttributes({planSvgColor:fca_ept_hexToRGB(e,.3,0)}),t.setAttributes({buttonBorderColorPop:fca_ept_hexToRGB(e,0,55)})}}];return"layout6"!=a&&"layout2"!=a&&delete n[2],o(e.components.PanelBody,{title:"Colors",initialOpen:!1},o(e.blockEditor.PanelColorSettings,{colorSettings:n,initialOpen:!1}))}function fca_ept_font_settings(t){var e=window.wp,o=e.element.createElement;return"Free"===fcaEptEditorData.edition?null:o(e.components.PanelBody,{title:"Font",initialOpen:!1},o(e.components.SelectControl,{label:"Choose a font:",value:t.attributes.fontFamily,options:[{label:"Roboto",value:"Roboto"},{label:"Open Sans",value:"Open Sans"},{label:"Lato",value:"Lato"},{label:"Oswald",value:"Oswald"},{label:"Source Sans Pro",value:"Source Sans Pro"},{label:"Montserrat",value:"Montserrat"},{label:"Merriweather",value:"Merriweather"},{label:"Raleway",value:"Raleway"},{label:"PT Sans",value:"PT Sans"},{label:"Lora",value:"Lora"},{label:"Noto Sans",value:"Noto Sans"},{label:"Nunito Sans",value:"Nunito Sans"},{label:"Concert One",value:"Concert One"},{label:"Prompt",value:"Prompt"},{label:"Work Sans",value:"Work Sans"},{label:"Sans serif",value:"sans-serif"}],onChange:function(e){e&&t.setAttributes({fontFamily:e})}}))}
[-] fca-ept-reusable-block.css
[edit]
[-] fca-ept-toolbar.js
[edit]
[-] fca-ept-editor.min.js
[edit]
[+]
..
[-] fca-ept-reusable-block.min.css
[edit]
[-] fca-ept-sidebar.min.js
[edit]
[-] fca-ept-editor.min.css
[edit]
[-] fca-ept-editor.css
[edit]
[-] fca-ept-editor.js
[edit]
[-] fca-ept-editor-common.js
[edit]
[-] fca-ept-toolbar.min.js
[edit]
[-] fca-ept-editor-common.min.js
[edit]
[-] fca-ept-sidebar.js
[edit]