Funnel Builder by CartFlows – Create High Converting Sales Funnels For WordPress - Version 1.11.3

Version Description

Download this release

Release Info

Developer cartflowswp
Plugin Icon Funnel Builder by CartFlows – Create High Converting Sales Funnels For WordPress
Version 1.11.3
Comparing to
See all releases

Code changes from version 1.11.2 to 1.11.3

admin-core/assets/build/settings-app.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('react', 'react-dom', 'wp-api-fetch', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => '3bfca93b8e58ca79844f0b408a194920');
1
+ <?php return array('dependencies' => array('react', 'react-dom', 'wp-api-fetch', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => '1c991aa303e356748d8c28ca65d3e38a');
admin-core/assets/build/settings-app.js CHANGED
@@ -8,4 +8,4 @@
8
  (0,pe.__)('If you are using the CartFlows Shortcode and using the Design Settings, then this option will regenerate the steps inline CSS. To learn more, <a href="https://cartflows.com/docs/regenerate-the-steps-dynamic-css-for-shortcodes/" target="_blank"> Click here </a>.',"cartflows")))),(0,e.createElement)(Hl,{settings:o}),(0,e.createElement)("div",{className:"wcf-other-settings__save-button"},(0,e.createElement)(Te,null)))},Jl=function(){const[{globaldata:t},r]=s(),[{},n]=d();let a=0;const o=t.settings["user-role-management"],i=function(e){e.stopPropagation();const t=e.target.getAttribute("data-name"),r=document.getElementById(`wcf-user-role-main_access_${t}`),n=document.getElementById(`wcf-user-role-accordion_${t}`),a=document.getElementById(`wcf-user-role-main_${t}`);r.classList.contains("hidden")?(r.classList.remove("hidden"),n.classList.remove("dashicons-arrow-right"),n.classList.add("dashicons-arrow-down"),a.classList.add("accordion-tab")):(r.classList.add("hidden"),n.classList.add("dashicons-arrow-right"),n.classList.remove("dashicons-arrow-down"),a.classList.remove("accordion-tab"))};return(0,e.createElement)("form",{className:"wcf-user-role-management-settings",onSubmit:function(e){e.preventDefault();const t=new window.FormData(e.target);t.append("action","cartflows_save_global_settings"),t.append("security",cartflows_admin.save_global_settings_nonce),t.append("setting_tab","user_role_manager"),ue()({url:cartflows_admin.ajax_url,method:"POST",body:t}).then((e=>{n({status:"SAVED"}),e.success?ue()({path:"/cartflows/v1/admin/commonsettings/"}).then((e=>{r({type:"SET_SETTINGS",commondata:e})})):console.log(e)}))}},(0,e.createElement)("h3",{className:"wcf-user-role-management-settings__title"},o.title),(0,e.createElement)("div",{className:"wcf-user-role-wrapper"},Object.keys(o.roles).map((t=>{const r=`wcf-user-role-main_access_${t}`;let n="dashicons dashicons-arrow-right",s="wcf-user-role-main_access hidden",l="wcf-user-role-accordion";a++,1===a&&(s="wcf-user-role-main_access",l="wcf-user-role-accordion accordion-tab",n="dashicons dashicons-arrow-down");const c=`wcf-user-role-accordion_${t}`,u=`wcf-user-role-main_${t}`;return(0,e.createElement)("div",{className:"wcf-user-role-main",key:t},(0,e.createElement)("div",{className:"wcf-user-role-main_name","data-name":t,onClick:i},(0,e.createElement)("span",{id:u,className:l,"data-name":t,onClick:i},(0,e.createElement)("span",{id:c,className:n,"data-name":t,onClick:i}),(0,e.createElement)("label",{className:"wcf-user-role-main_label","data-name":t},o.roles[t].role_name))),(0,e.createElement)("div",{id:r,className:s},(0,e.createElement)(Hl,{settings:o.roles[t]})))}))),(0,e.createElement)("div",{className:"wcf-user-role-management-settings__doc"},(0,e.createElement)(sl,{content:(0,pe.sprintf)(// translators: %1$s: anchor tag start, %2$s: anchor tag end.
9
  (0,pe.__)("For more information about the user role management please %1$1s Click here %2$2s.","cartflows"),'<a href="https://cartflows.com/docs/user-role-manager/" target="_blank">',"</a>")})),(0,e.createElement)("div",{className:"wcf-user-role-management-settings__save-button"},(0,e.createElement)(Te,null)))},Kl=function(){const[{globaldata:t},r]=s(),[{},n]=d(),a=t.settings["global-checkout"];return(0,e.createElement)("form",{className:"wcf-global-checkout-settings",onSubmit:e=>{e.preventDefault();const t=new window.FormData(e.target);t.append("action","cartflows_save_global_settings"),t.append("security",cartflows_admin.save_global_settings_nonce),t.append("setting_tab",""),ue()({url:cartflows_admin.ajax_url,method:"POST",body:t}).then((e=>{n({status:"SAVED"}),e.success?ue()({path:"/cartflows/v1/admin/commonsettings/"}).then((e=>{r({type:"SET_SETTINGS",commondata:e})})):console.log("Error")}))}},(0,e.createElement)("h3",{className:"wcf-global-checkout-settings__title"},(0,pe.__)("Store Checkout Settings","cartflows")),(0,e.createElement)(Hl,{settings:a,meta_key:"_cartflows_common"}),(0,e.createElement)("div",{className:"wcf-global-checkout-settings__save-button"},(0,e.createElement)(Te,null)))},ec=function(){return(0,e.createElement)("div",{className:"wcf-settings-nav"},(0,e.createElement)("div",{className:"wcf-settings-nav__tabs"},Array(5).fill().map((t=>(0,e.createElement)("div",{className:"wcf-settings-nav__tab",key:t},(0,e.createElement)(me,{height:"45px"}))))),(0,e.createElement)("div",{className:"wcf-settings-nav__content"},(0,e.createElement)(de,{fontSize:"35px",width:"225px"}),(0,e.createElement)(de,{width:"80%"}),(0,e.createElement)(de,{width:"80%"}),(0,e.createElement)(de,{width:"80%"}),(0,e.createElement)(de,{width:"65%"}),(0,e.createElement)(he,null),(0,e.createElement)(de,{fontSize:"35px",width:"300px"}),(0,e.createElement)(de,{width:"60%"}),(0,e.createElement)(de,{width:"60%"}),(0,e.createElement)(de,{width:"45%"}),(0,e.createElement)(he,null),(0,e.createElement)(de,{fontSize:"35px",width:"210px"}),(0,e.createElement)(de,{width:"65%"}),(0,e.createElement)(de,{width:"65%"}),(0,e.createElement)(de,{width:"45%"})))},tc=function(){const[{globaldata:r},n]=s(),a=K();let o=!0;if(void 0===r.length&&(o=!1),(0,t.useEffect)((()=>{let e=!0;return r.length<1&&(async()=>{ue()({path:"/cartflows/v1/admin/commonsettings/"}).then((t=>{e&&n({type:"SET_SETTINGS",commondata:t})}))})(),()=>{e=!1}}),[]),!cartflows_admin.current_user_can_manage_catflows)return(0,e.createElement)("div",{className:"wcf-no-access-error-wrapper"},(0,e.createElement)("div",{className:"wcf-no-access--icon"},(0,e.createElement)("img",{src:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAxNi4wLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB3aWR0aD0iOTVweCIgaGVpZ2h0PSI5NXB4IiB2aWV3Qm94PSIwIDAgOTUgOTUiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDk1IDk1IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxnPg0KCTxwYXRoIGZpbGw9IiNmMDYzMzUiIGQ9Ik01OC45NDIsNS42MDljLTMuNDQ0LDMuMzU0LTUuNTg3LDguMDM2LTUuNTg3LDEzLjIydjMwLjcxOGMwLDQuNTIxLTMuNjY4LDguMTg4LTguMTg4LDguMTg4SDI0LjU3NA0KCQljLTQuNTIsMC04LjE4OC0zLjY2OC04LjE4OC04LjE4OGMwLTQuNTIsMy42NjgtOC4xODgsOC4xODgtOC4xODhoMjIuNTgzVjI0Ljk3NEgyNC41NzRjLTEuMzk5LDAtMi43NjMsMC4xMTUtNC4wOTksMC4zNA0KCQlDOC44NiwyNy4yNiwwLDM3LjM3NywwLDQ5LjU0N2MwLDEwLjcsNi44NDMsMTkuODAzLDE2LjM4NiwyMy4xNzZjMS4zMTgsMC40NjYsMi42ODEsMC44MjUsNC4wOSwxLjA1OA0KCQljMS4zMzYsMC4yMjUsMi42OTksMC4zNDEsNC4wOTksMC4zNDFoMjAuNTkyYzEuMzk5LDAsMi43NjMtMC4xMTYsNC4wOTktMC4zNDFjMS40MDktMC4yMzIsMi43NzEtMC41OTIsNC4wOS0xLjA1OA0KCQlDNjIuODk3LDY5LjM1LDY5Ljc0LDYwLjI0Nyw2OS43NCw0OS41NDd2LTguMTg4YzkuMDUsMCwxNi4zODYtNy4zMzcsMTYuMzg2LTE2LjM4Nkg2OS43NHYtNi4xNDVjMC0xLjEzLDAuOTE1LTIuMDQ0LDIuMDQ1LTIuMDQ0DQoJCWg0LjA5OGM0Ljk5NiwwLDkuNTI1LTEuOTgyLDEyLjg0My01LjIxMmMyLjk4Ny0yLjkwNSw0Ljk5Ni02LjgwNyw1LjQ3MS0xMS4xNzRINzEuNzg2QzY2Ljc5OSwwLjM5OSw2Mi4yNjEsMi4zODEsNTguOTQyLDUuNjA5Ii8+DQoJPHBhdGggZmlsbD0iI2YwNjMzNSIgZD0iTTI0LjU3NSw3OC4yMThjLTQuNTIzLDAtOC4xOTEsMy42NjctOC4xOTEsOC4xOTFjMCw0LjUyMywzLjY2Nyw4LjE5MSw4LjE5MSw4LjE5MXM4LjE5MS0zLjY2OCw4LjE5MS04LjE5MQ0KCQlDMzIuNzY2LDgxLjg4NSwyOS4wOTgsNzguMjE4LDI0LjU3NSw3OC4yMTgiLz4NCgk8cGF0aCBmaWxsPSIjZjA2MzM1IiBkPSJNNDkuMTQ5LDc4LjIxOGMtNC41MjQsMC04LjE5MiwzLjY2Ny04LjE5Miw4LjE5MWMwLDQuNTIzLDMuNjY3LDguMTkxLDguMTkyLDguMTkxDQoJCWM0LjUyMywwLDguMTkxLTMuNjY4LDguMTkxLTguMTkxQzU3LjM0LDgxLjg4NSw1My42NzIsNzguMjE4LDQ5LjE0OSw3OC4yMTgiLz4NCjwvZz4NCjwvc3ZnPg0K",alt:(0,pe.__)("CartFlows Icon","cartflows")})),(0,e.createElement)("h2",{className:"wcf-no-access--title"},(0,pe.__)("No Access","cartflows")),(0,e.createElement)("div",{className:"wcf-no-access--message"},(0,pe.__)("You don't have permission to access this page.","cartflows")),(0,e.createElement)("div",{className:"wcf-no-access--action-link"},(0,e.createElement)(ie,{key:"wcf-back-to-home",to:{pathname:"admin.php",search:"?page=cartflows"},className:"wcf-no-access-link"},(0,pe.__)("Go back home","cartflows"),(0,e.createElement)("span",{className:"dashicons dashicons-arrow-right-alt"}))));const i=a.hash;let l="";if(o)return(0,e.createElement)(ec,null);switch(i){case"#general_settings":default:l=(0,e.createElement)(Gl,{data:r.general});break;case"#global_checkout":l=(0,e.createElement)(Kl,null);break;case"#facebook_pixel":l=(0,e.createElement)(Yl,{data:r.fb_pixel});break;case"#google_analytics":l=(0,e.createElement)(Wl,{data:r.ga_analytics});break;case"#miscellaneous_settings":l=(0,e.createElement)($l,{data:r.miscellaneous_settings});break;case"#permalink":l=(0,e.createElement)(Zl,{data:r.permalink});break;case"#auto_fields":l=(0,e.createElement)(Ql,{data:r.g_address_autocomplete});break;case"#other_settings":l=(0,e.createElement)(Xl,{data:r.other_setttings});break;case"#user_role_manager":l=(0,e.createElement)(Jl,{data:r.user_role_management})}return(0,e.createElement)("div",{className:"wcf-global-settings-metabox"},(0,e.createElement)("div",{className:"wcf-global-settings-metabox__tabs"},(0,e.createElement)("nav",{className:"wcf-global-settings-metabox__tabs-menu"},(0,e.createElement)(Vl,{title:(0,pe.__)("General Settings","cartflows"),slug:"#general_settings"}),(0,e.createElement)(Vl,{title:(0,pe.__)("Store Checkout","cartflows"),slug:"#global_checkout"}),(0,e.createElement)(Vl,{title:(0,pe.__)("Permalink","cartflows"),slug:"#permalink"}),(0,e.createElement)(Vl,{title:(0,pe.__)("Facebook Pixel","cartflows"),slug:"#facebook_pixel"}),(0,e.createElement)(Vl,{title:(0,pe.__)("Google Analytics","cartflows"),slug:"#google_analytics"}),(0,e.createElement)(Vl,{title:(0,pe.__)("Google Address Autocomplete","cartflows"),slug:"#auto_fields"}),(0,e.createElement)(Vl,{title:(0,pe.__)("User Role Manager","cartflows"),slug:"#user_role_manager"}),(0,e.createElement)(Vl,{title:(0,pe.__)("Other Settings","cartflows"),slug:"#other_settings"}),wcfCartflowsTypePlusPro()&&(0,e.createElement)(Vl,{title:(0,pe.__)("Miscellaneous Settings","cartflows"),slug:"#miscellaneous_settings"})),(0,e.createElement)("div",{className:"wcf-global-settings-metabox__current-tab"},(0,e.createElement)(e.Fragment,null,l))))},rc=function(){const t=J();return(0,e.createElement)("div",{className:"wcf-display--popup"},(0,e.createElement)("div",{className:"wcf-metabox wcf-welcome"},(0,e.createElement)("div",{className:"wcf-metabox__header"},(0,e.createElement)("div",{className:"wcf-metabox__title"},(0,e.createElement)("div",{className:"wcf-popup-header-title"},(0,e.createElement)("span",{className:"cartflows-logo-icon"})," ",(0,pe.__)("Getting Started","cartflows"))),(0,e.createElement)("div",{className:"wcf-popup-header-action wcf-welcome-box__actions-menu",title:"Hide this",onClick:e=>{e.preventDefault(),t.push("admin.php?page="+cartflows_admin.home_slug)}},(0,e.createElement)("span",{className:"dashicons dashicons-no"}))),(0,e.createElement)("div",{className:"wcf-metabox__body"},(0,e.createElement)("div",{className:"iframe-wrap"},(0,e.createElement)("iframe",{width:"100%",height:"400",src:"https://www.youtube.com/embed/SlE0moPKjMY",frameBorder:"0",allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:"",title:(0,pe.__)("Introduction to CartFlows","cartflows")}))),(0,e.createElement)("div",{className:"wcf-metabox__footer"},(0,e.createElement)("p",null,(0,pe.__)("Modernizing WordPress eCommerce!","cartflows")),(0,e.createElement)("div",{className:"wcf-welcome__action-buttons"},(0,e.createElement)(ie,{key:`?page=${cartflows_admin.home_slug}&path=flows`,to:{pathname:"admin.php",search:`?page=${cartflows_admin.home_slug}&path=library`},className:"button wcf-welcome--button button-primary",title:(0,pe.__)("Create Your First Flow","cartflows")},(0,e.createElement)("span",{className:""},(0,pe.__)("Create Your First Flow","cartflows"))),(0,e.createElement)("a",{className:"button wcf-welcome--button",href:cartflows_admin.admin_base_url+"index.php?page=cartflow-setup"},(0,e.createElement)("span",{className:""},(0,pe.__)("Go To Setup Wizard","cartflows")))))))},nc=function(){return(0,e.createElement)("div",{className:"wcf-section wcf-store-checkout-section"},(0,e.createElement)("div",{className:"wcf-section-icon"},(0,e.createElement)("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTIiIGhlaWdodD0iNTIiIHZpZXdCb3g9IjAgMCA1MiA1MiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxyZWN0IG9wYWNpdHk9IjAuMSIgd2lkdGg9IjUyIiBoZWlnaHQ9IjUyIiByeD0iMjYiIGZpbGw9IiNFRTVBMkYiLz4NCjxwYXRoIGQ9Ik00MC44NTE2IDIwLjgzNUwzOC43MzU5IDEySDMzLjEwOTFIMzAuMDkzMUgyNy40OTczSDI0LjQ5NjNIMjEuOTE1NUgxOC44ODQ1SDEzLjI1NzdMMTEuMTQyIDIwLjgzNUMxMC43ODE5IDIyLjM2NSAxMS4xMTIgMjMuOTI1IDEyLjA3MjMgMjUuMTU1QzEyLjE5MjMgMjUuMzIgMTIuMzU3NCAyNS40NCAxMi40OTI0IDI1LjU5VjM5SDM5LjUwMTFWMjUuNTlDMzkuNjM2MiAyNS40NTUgMzkuODAxMiAyNS4zMiAzOS45MjEzIDI1LjE3QzQwLjg4MTYgMjMuOTQgNDEuMjI2NyAyMi4zNjUgNDAuODUxNiAyMC44MzVaTTE4LjUyNDQgMTVMMTcuNjU0MSAyMi4yOUMxNy41MzQxIDIzLjI2NSAxNi43NTM4IDI0IDE1LjgzODUgMjRDMTUuMTAzMyAyNCAxNC42MzgxIDIzLjU2NSAxNC40NDMxIDIzLjI5NUMxNC4wNTI5IDIyLjggMTMuOTE3OSAyMi4xNTUgMTQuMDY3OSAyMS41NEwxNS42Mjg0IDE1SDE4LjUyNDRaTTM2LjM2NTEgMTVMMzcuOTQwNiAyMS41NEMzOC4wOTA3IDIyLjE3IDM3Ljk1NTYgMjIuOCAzNy41NjU1IDIzLjI5NUMzNy4zNTU0IDIzLjU2NSAzNi45MDUzIDI0IDM2LjE1NTEgMjRDMzUuMjM5OCAyNCAzNC40NDQ1IDIzLjI2NSAzNC4zMzk1IDIyLjI5TDMzLjQ2OTIgMTVIMzYuMzY1MVpNMzEuMjYzNSAyMS43OEMzMS4zMzg1IDIyLjM2NSAzMS4xNTg0IDIyLjk1IDMwLjc2ODMgMjMuMzg1QzMwLjQyMzIgMjMuNzc1IDI5Ljk0MyAyNCAyOS4zMjc5IDI0QzI4LjMyMjUgMjQgMjcuNDk3MyAyMy4xMTUgMjcuNDk3MyAyMi4wMzVWMTVIMzAuNDM4MkwzMS4yNjM1IDIxLjc4Wk0yNC40OTYzIDIyLjAzNUMyNC40OTYzIDIzLjExNSAyMy42NzEgMjQgMjIuNTYwNyAyNEMyMi4wNTA1IDI0IDIxLjU4NTQgMjMuNzc1IDIxLjIyNTIgMjMuMzg1QzIwLjg1MDEgMjIuOTUgMjAuNjcwMSAyMi4zNjUgMjAuNzMwMSAyMS43OEwyMS41NTUzIDE1SDI0LjQ5NjNWMjIuMDM1Wk0xNS40OTM0IDM2VjI2Ljk1NUMxNS42MTM0IDI2Ljk3IDE1LjcxODUgMjcgMTUuODM4NSAyN0MxNy4xNDM5IDI3IDE4LjMyOTMgMjYuNDYgMTkuMTk5NiAyNS41NzVDMjAuMDk5OSAyNi40NzUgMjEuMzAwMyAyNyAyMi42NjU3IDI3QzIzLjk3MTEgMjcgMjUuMTQxNSAyNi40NiAyNi4wMTE4IDI1LjYwNUMyNi44OTcxIDI2LjQ2IDI4LjA5NzUgMjcgMjkuNDQ3OSAyN0MzMC43MDgzIDI3IDMxLjkwODcgMjYuNDc1IDMyLjgwOSAyNS41NzVDMzMuNjc5MyAyNi40NiAzNC44NjQ2IDI3IDM2LjE3MDEgMjdDMzYuMjkwMSAyNyAzNi4zOTUxIDI2Ljk3IDM2LjUxNTIgMjYuOTU1VjM2SDE1LjQ5MzRaIiBmaWxsPSIjRUU1QTJGIi8+DQo8L3N2Zz4NCg==",alt:"Store Checkout Logo"})),(0,e.createElement)("div",{className:"wcf-section-info"},(0,e.createElement)("h2",{className:"wcf-section-title wcf-store-checkout-section__title"},(0,pe.__)("Setup Store Checkout","cartflows")),(0,e.createElement)("div",{className:"wcf-section-content wcf-store-checkout-section__content"},(0,e.createElement)("span",{className:"wcf-section-content-text wcf-store-checkout-section__content-text"},(0,pe.__)("By setting up the store checkout, your default checkout page will be replaced by the CartFlows modern checkout which will lead to more conversion and leads.","cartflows"))),(0,e.createElement)("div",{className:"wcf-button wcf-button--primary wcf-redirect-to-store-checkout",onClick:e=>{e.preventDefault(),window.location.replace(cartflows_admin.admin_base_url+"admin.php?page=cartflows&path=store-checkout")}},(0,pe.__)("Get Started","cartflows"))))},ac=function(){const[r,n]=(0,t.useState)((0,pe.__)("Connect with Stripe","cartflows"));return(0,e.createElement)("div",{className:"wcf-section wcf-store-stripe-connect-section"},(0,e.createElement)("div",{className:"wcf-section-icon"},(0,e.createElement)("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTIiIGhlaWdodD0iNTIiIHZpZXdCb3g9IjAgMCA1MiA1MiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxyZWN0IG9wYWNpdHk9IjAuMSIgd2lkdGg9IjUyIiBoZWlnaHQ9IjUyIiByeD0iMjYiIGZpbGw9IiNFRTVBMkYiLz4NCjxwYXRoIGQ9Ik0yNiAxMUMxNy43MiAxMSAxMSAxNy43MiAxMSAyNkMxMSAzNC4yOCAxNy43MiA0MSAyNiA0MUMzNC4yOCA0MSA0MSAzNC4yOCA0MSAyNkM0MSAxNy43MiAzNC4yOCAxMSAyNiAxMVpNMjYgMzhDMTkuMzg1IDM4IDE0IDMyLjYxNSAxNCAyNkMxNCAxOS4zODUgMTkuMzg1IDE0IDI2IDE0QzMyLjYxNSAxNCAzOCAxOS4zODUgMzggMjZDMzggMzIuNjE1IDMyLjYxNSAzOCAyNiAzOFpNMjYuNDY1IDI0LjcxQzIzLjgxIDI0LjAzNSAyMi45NTUgMjMuMyAyMi45NTUgMjIuMjA1QzIyLjk1NSAyMC45NDUgMjQuMTQgMjAuMDYgMjYuMTA1IDIwLjA2QzI4LjE3NSAyMC4wNiAyOC45NTUgMjEuMDUgMjkuMDE1IDIyLjUySDMxLjU4QzMxLjUwNSAyMC41MSAzMC4yNzUgMTguNjY1IDI3Ljg0NSAxOC4wNjVWMTUuNUgyNC4zNVYxOC4wMzVDMjIuMDg1IDE4LjUxNSAyMC4yNyAxOS45ODUgMjAuMjcgMjIuMjVDMjAuMjcgMjQuOTM1IDIyLjUwNSAyNi4yODUgMjUuNzYgMjcuMDY1QzI4LjY4NSAyNy43NTUgMjkuMjcgMjguNzkgMjkuMjcgMjkuODdDMjkuMjcgMzAuNjY1IDI4LjY4NSAzMS45NTUgMjYuMTIgMzEuOTU1QzIzLjcyIDMxLjk1NSAyMi43NzUgMzAuODc1IDIyLjY0IDI5LjQ5NUgyMC4wNkMyMC4yMSAzMi4wNDUgMjIuMSAzMy40ODUgMjQuMzUgMzMuOTVWMzYuNUgyNy44NlYzMy45OTVDMzAuMTQgMzMuNTYgMzEuOTQgMzIuMjU1IDMxLjk1NSAyOS44NEMzMS45NCAyNi41NCAyOS4xMDUgMjUuNCAyNi40NjUgMjQuNzFaIiBmaWxsPSIjRUU1QTJGIi8+DQo8L3N2Zz4NCg==",alt:"Connect Stripe Logo"})),(0,e.createElement)("div",{className:"wcf-section-info"},(0,e.createElement)("h2",{className:"wcf-section-title"},(0,pe.__)("Connect a Payment Gateway","cartflows")),(0,e.createElement)("div",{className:"wcf-section-content"},(0,e.createElement)("span",{className:"wcf-section-content-text"},(0,pe.__)("Stripe for WooCommerce delivers a simple, secure way to accept credit card payments in your WooCommerce store. Reduce payment friction and boost conversions using this free plugin! ","cartflows"),(0,xe.ZP)((0,pe.__)('Want to use a different gateway? CartFlows has support for many others including Authorize.net, Square, Mollie and more! <a href="https://cartflows.com/docs/supported-payment-gateways-by-cartflows/" target="_blank">See here.</a>',"cartflows")))),(0,e.createElement)("div",{className:"wcf-button wcf-stripe-connect-button",onClick:e=>{if(e.preventDefault(),n((0,pe.__)("Redirecting…","cartflows")),"not-installed"===cartflows_admin.cpsw_status)wp.updates.queue.push({action:"install-plugin",data:{slug:"checkout-plugins-stripe-woo"}}),wp.updates.queueChecker();else{const e=new window.FormData;e.append("action","cartflows_activate_plugin"),e.append("init","checkout-plugins-stripe-woo/checkout-plugins-stripe-woo.php"),e.append("security",cartflows_admin.activate_plugin_nonce),ue()({url:cartflows_admin.ajax_url,method:"POST",body:e}).then((e=>{e.data&&e.data.success&&window.location.replace(cartflows_admin.admin_base_url+"index.php?page=cpsw-onboarding")}))}}},r)))},oc=function(){return(0,e.createElement)("div",{className:"wcf-section wcf-email-report-section"},(0,e.createElement)("div",{className:"wcf-section-icon"},(0,e.createElement)("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTIiIGhlaWdodD0iNTIiIHZpZXdCb3g9IjAgMCA1MiA1MiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxyZWN0IG9wYWNpdHk9IjAuMSIgd2lkdGg9IjUyIiBoZWlnaHQ9IjUyIiByeD0iMjYiIGZpbGw9IiNFRTVBMkYiLz4NCjxwYXRoIGQ9Ik00MCAxNi44NzVDNDAgMTUuMjkzNyAzOC43NCAxNCAzNy4yIDE0SDE0LjhDMTMuMjYgMTQgMTIgMTUuMjkzNyAxMiAxNi44NzVWMzQuMTI1QzEyIDM1LjcwNjIgMTMuMjYgMzcgMTQuOCAzN0gzNy4yQzM4Ljc0IDM3IDQwIDM1LjcwNjIgNDAgMzQuMTI1VjE2Ljg3NVpNMzcuMiAxNi44NzVMMjYgMjQuMDYyNUwxNC44IDE2Ljg3NUgzNy4yWk0zNy4yIDM0LjEyNUgxNC44VjE5Ljc1TDI2IDI2LjkzNzVMMzcuMiAxOS43NVYzNC4xMjVaIiBmaWxsPSIjRUU1QTJGIi8+DQo8L3N2Zz4NCg==",alt:"Email Logo"})),(0,e.createElement)("div",{className:"wcf-section-info"},(0,e.createElement)("h2",{className:"wcf-section-title "},(0,pe.__)("Setup Email Reports","cartflows")),(0,e.createElement)("div",{className:"wcf-section-content "},(0,e.createElement)("span",{className:"wcf-section-content-text "},(0,pe.__)("Let CartFlows take the guesswork out of your checkout results. Each week your store will send you an email report with key metrics and insights. You also will receive emails from us to help your store sell more.","cartflows"))),(0,e.createElement)("div",{className:"wcf-button wcf-button--primary wcf-email-report-button",onClick:e=>{e.preventDefault(),window.location.replace(cartflows_admin.admin_base_url+"admin.php?page=cartflows&path=settings#other_settings")}},(0,pe.__)("Add Email Address","cartflows"))))},ic=function(){const[r,n]=(0,t.useState)((0,pe.__)("Get Started","cartflows"));return(0,e.createElement)("div",{className:"wcf-section .wcf-required-plugin-section"},(0,e.createElement)("div",{className:"wcf-section-icon"},(0,e.createElement)("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTIiIGhlaWdodD0iNTIiIHZpZXdCb3g9IjAgMCA1MiA1MiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxyZWN0IG9wYWNpdHk9IjAuMSIgd2lkdGg9IjUyIiBoZWlnaHQ9IjUyIiByeD0iMjYiIGZpbGw9IiNFRTVBMkYiLz4NCjxwYXRoIGQ9Ik0zMi4zNjI0IDI3LjRDMzMuNDEyMSAyNy40IDM0LjMzNTcgMjYuODI2IDM0LjgxMTUgMjUuOTU4TDM5LjgyMTcgMTYuODcyQzQwLjMzOTUgMTUuOTQ4IDM5LjY2NzcgMTQuOCAzOC42MDQxIDE0LjhIMTcuODkxOEwxNi41NzYzIDEySDEyVjE0LjhIMTQuNzk5TDE5LjgzNzEgMjUuNDI2TDE3Ljk0NzggMjguODQyQzE2LjkyNjIgMzAuNzE4IDE4LjI2OTcgMzMgMjAuMzk2OSAzM0gzNy4xOTA2VjMwLjJIMjAuMzk2OUwyMS45MzYzIDI3LjRIMzIuMzYyNFpNMTkuMjIxMyAxNy42SDM2LjIyNUwzMi4zNjI0IDI0LjZIMjIuNTM4MUwxOS4yMjEzIDE3LjZaTTIwLjM5NjkgMzQuNEMxOC44NTc1IDM0LjQgMTcuNjExOSAzNS42NiAxNy42MTE5IDM3LjJDMTcuNjExOSAzOC43NCAxOC44NTc1IDQwIDIwLjM5NjkgNDBDMjEuOTM2MyA0MCAyMy4xOTU4IDM4Ljc0IDIzLjE5NTggMzcuMkMyMy4xOTU4IDM1LjY2IDIxLjkzNjMgMzQuNCAyMC4zOTY5IDM0LjRaTTM0LjM5MTcgMzQuNEMzMi44NTIzIDM0LjQgMzEuNjA2NyAzNS42NiAzMS42MDY3IDM3LjJDMzEuNjA2NyAzOC43NCAzMi44NTIzIDQwIDM0LjM5MTcgNDBDMzUuOTMxMSA0MCAzNy4xOTA2IDM4Ljc0IDM3LjE5MDYgMzcuMkMzNy4xOTA2IDM1LjY2IDM1LjkzMTEgMzQuNCAzNC4zOTE3IDM0LjRaIiBmaWxsPSIjRUU1QTJGIi8+DQo8L3N2Zz4NCg==",alt:"Required plugin Logo"})),(0,e.createElement)("div",{className:"wcf-section-info"},(0,e.createElement)("h2",{className:"wcf-section-title "},(0,pe.__)("Recover Abandoned Carts","cartflows")),(0,e.createElement)("div",{className:"wcf-section-content "},(0,e.createElement)("span",{className:"wcf-section-content-text "},(0,pe.__)("Over 70% of buyers are abandoning your checkout, but we can automatically get them back into the checkout to complete their purchase. Use our cart abandonment plugin and automatically recover your lost revenue absolutely free.","cartflows"))),(0,e.createElement)("div",{className:"wcf-button wcf-button--primary ",onClick:e=>{if(e.preventDefault(),n((0,pe.__)("Please wait…","cartflows")),"not-installed"===cartflows_admin.ca_status)wp.updates.queue.push({action:"install-plugin",data:{slug:"woo-cart-abandonment-recovery"}}),wp.updates.queueChecker();else{const e=new window.FormData;e.append("action","cartflows_activate_plugin"),e.append("init","woo-cart-abandonment-recovery/woo-cart-abandonment-recovery.php"),e.append("security",cartflows_admin.activate_plugin_nonce),ue()({url:cartflows_admin.ajax_url,method:"POST",body:e}).then((e=>{e.data&&e.data.success&&n((0,pe.__)("Completed","cartflows")),window.location.reload()}))}}},r)))},sc=function(){return(0,e.createElement)("div",{className:"wcf-setup-page-wrapper"},""===cartflows_admin.global_checkout&&(0,e.createElement)(nc,null),("active"!==cartflows_admin.cpsw_status||!cartflows_admin.cpsw_connection_status)&&(0,e.createElement)(ac,null),"active"!==cartflows_admin.ca_status&&(0,e.createElement)(ic,null),""===cartflows_admin.is_set_report_email_ids&&(0,e.createElement)(oc,null),(0,e.createElement)("div",{className:"wcf-setup-page-dismiss-wrapper"},(0,e.createElement)("span",{onClick:e=>{e.preventDefault();const t=new window.FormData;t.append("action","cartflows_dismiss_setup_page"),t.append("security",cartflows_admin.dismiss_setup_page_nonce),ue()({url:cartflows_admin.ajax_url,method:"POST",body:t}).then((()=>{window.location.replace(cartflows_admin.admin_base_url+"admin.php?page=cartflows")}))}},(0,pe.__)("Dismiss Setup Screen","cartflows"))))};const lc=cartflows_admin.default_page_builder,cc=cartflows_admin.required_plugins,uc=cartflows_admin.required_plugins[lc],pc={};pc[lc]=Object.values(cartflows_admin.flows_and_steps);const fc={};fc[lc]=Object.values(cartflows_admin.store_checkout_flows_and_steps);const dc={default_page_builder:lc,page_builder_group_data:cc,page_builder_group:uc,preview:{},woocommerce_status:cartflows_admin.woocommerce_status,requiredPluginsData:cartflows_admin.required_plugins_data,missingPlugins:cartflows_admin.is_any_required_plugins_missing,flow_count:4,cf_pro_status:cartflows_admin.cf_pro_status,all_flows:{...pc},store_checkout_flows:{...fc},all_step_templates:(()=>{const e=[],t=cartflows_admin.flows_and_steps;return t&&t.forEach((t=>{t.steps.forEach((r=>{r.template_ID=t.ID,r.template_type=t.type,e.push(r)}))})),e})(),currentFlowSteps:Object.values(cartflows_admin.currentFlowSteps).length?cartflows_admin.currentFlowSteps["wcf-steps"]:[],flowsCount:(()=>{if(!Object.values(cartflows_admin.flows_count).length)return 0;let e=0;for(status in cartflows_admin.flows_count)"publish"===status&&(e+=parseInt(cartflows_admin.flows_count[status]));return e})(),currentFlowId:cartflows_admin.flow_id,selectedStep:"",license_status:cartflows_admin.license_status,stepTypes:{landing:"Landing",checkout:"Checkout (Woo)",upsell:"Upsell (Woo)",downsell:"Downsell (Woo)",thankyou:"Thank You (Woo)",optin:"Optin (Woo)"},storeStepTypes:{upsell:"Upsell (Woo)",downsell:"Downsell (Woo)",thankyou:"Thank You (Woo)"}};const hc={getCount(e){let{age:t}=e;return t},getAllFlows(e){let{all_flows:t}=e;return t},getStoreCheckoutFlows(e){let{store_checkout_flows:t}=e;return t},getFlowsList(e,t){let{all_flows:r}=e;return r[t]?r[t]:[]},getStoreCheckoutFlowsList(e,t){let{store_checkout_flows:r}=e;return r[t]?r[t]:[]},getAllStepTemplates(e){let{all_step_templates:t}=e;return t},isLimitReached(e){let{cf_pro_status:t,flow_count:r}=e;return("not-installed"===t||"inactive"===t)&&r>=3},getFlowsCount(e){let{}=e;return 0},getcurrentFlowId(e){let{currentFlowId:t}=e;return t},getLicenseStatus(e){let{license_status:t}=e;return t},getselectedStepTitle(e){let{stepTypes:t,selectedStep:r}=e;return t[r]||""},getselectedStep(e){let{selectedStep:t}=e;return t},getstepTypes(e){let{stepTypes:t}=e;return t},getStoreStepTypes(e){let{storeStepTypes:t}=e;return t},getcurrentFlowSteps(e){let{currentFlowSteps:t}=e;return t},getMissingPlugins(e){let{missingPlugins:t}=e;return t},getPreview(e){let{preview:t}=e;return t},getWooCommerceStatus(e){let{woocommerce_status:t}=e;return t},getDefaultPageBuilder(e){let{default_page_builder:t}=e;return t},getPageBuilderGroup(e){let{page_builder_group:t}=e;return t},getFlowCount(e){let{flow_count:t}=e;return t},getCFProStatus(e){let{cf_pro_status:t}=e;return t},getCurrentPageBuilderData(e,t){let{page_builder_group_data:r}=e;return r[t]},getRequiredPluginsData(e){let{requiredPluginsData:t}=e;return t}};var mc=hc;const{registerStore:gc}=wp.data;gc("wcf/importer",{reducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:dc,t=arguments.length>1?arguments[1]:void 0;return"SET_MISSING_PLUGINS"===t.type?(console.log("SET_MISSING_PLUGINS",t),{...e,missingPlugins:t.missingPlugins}):"UPDATE_WOOCOMMERCE_STATUS"===t.type?(console.log("UPDATE_WOOCOMMERCE_STATUS",t),{...e,woocommerce_status:t.woocommerce_status}):"UPDATE_CF_PRO_STATUS"===t.type?(console.log("UPDATE_CF_PRO_STATUS",t),{...e,cf_pro_status:t.cf_pro_status}):"SET_SELECTED_STEP"===t.type?(console.log("SET_SELECTED_STEP",t),{...e,selectedStep:t.selectedStep}):"SET_PREVIEW"===t.type?(console.log("SET_PREVIEW",t),{...e,preview:t.preview}):"SET_REQUIRED_PLUGINS"===t.type?(e.requiredPluginsData[t.page_builder]=t.value,{...e}):"SET_ALL_FLOWS"===t.type?(e.all_flows[t.page_builder]=t.flows,{...e}):e},actions:{updateWooCommerceStatus:e=>({type:"UPDATE_WOOCOMMERCE_STATUS",woocommerce_status:e}),updateCFProStatus:e=>({type:"UPDATE_CF_PRO_STATUS",cf_pro_status:e}),setMissingPlugins:e=>({type:"SET_MISSING_PLUGINS",missingPlugins:e}),setPreview:e=>({type:"SET_PREVIEW",preview:e}),setSelectedStep:e=>({type:"SET_SELECTED_STEP",selectedStep:e}),setRequiredPlugins:(e,t)=>({type:"SET_REQUIRED_PLUGINS",page_builder:e,value:t}),setAllFlows:(e,t)=>({type:"SET_ALL_FLOWS",flows:e,page_builder:t})},selectors:mc});var wc=(0,Nl.compose)((0,Cl.withDispatch)((e=>{const{setPreview:t}=e("wcf/importer");return{setPreview(e){t(e)}}})))((function(t){let{item:r,setPreview:n}=t;const{thumbnail_image_url:a,title:o,type:i}=r;return(0,e.createElement)("div",{className:"wcf-item",onClick:()=>n(r)},"pro"===i?(0,e.createElement)("span",{className:`wcf-item__type wcf-item__type--${i}`},i):"",(0,e.createElement)("div",{className:"wcf-item__inner "},(0,e.createElement)("div",{className:"wcf-item__thumbnail-wrap"},(0,e.createElement)("div",{className:"wcf-item__thumbnail",style:{backgroundImage:`url("${a}")`}})),(0,e.createElement)("span",{className:"wcf-item__view"},(0,e.createElement)("span",{className:"wcf-item__btn"},(0,pe.__)("View All Steps","cartflows"))),(0,e.createElement)("div",{className:"wcf-item__heading-wrap"},(0,e.createElement)("div",{className:"wcf-item__heading"},o))))})),bc=(0,Nl.compose)((0,Cl.withSelect)((e=>{const{getFlowsCount:t,getCFProStatus:r,getWooCommerceStatus:n}=e("wcf/importer");return{flowsCount:t(),cf_pro_status:r(),woocommerce_status:n()}})))((r=>{let{preview:n,cf_pro_status:a,woocommerce_status:o,flowName:i,setInputFieldVisibility:s}=r;const[l,c]=(0,t.useState)({cta:"",error_msg:""}),{cta:u,error_msg:p}=l,[f,d]=(0,t.useState)({isProcessing:!1,buttonText:(0,pe.__)("Import Flow","cartflows")}),{isProcessing:h,buttonText:m}=f,[g,w]=(0,t.useState)(!1),b=function(){w(!0),document.addEventListener("click",v)},v=function(){w(!1),document.removeEventListener("click",v)};if(u)return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",{className:"wcf-message wcf-message--error",dangerouslySetInnerHTML:{__html:u}}),(0,e.createElement)("a",{className:"wcf-error-message--toggle",onClick:function(e){e.preventDefault(),g?v():b()}},(0,pe.__)("Show Error info","cartflows")),g&&(0,e.createElement)("div",{className:"wcf-error--info",dangerouslySetInnerHTML:{__html:p}}));if("active"!==o)return"inactive"===o?(s("hidden"),(0,e.createElement)(Ol,null)):(s("hidden"),(0,e.createElement)(Tl,null));if("pro"===n.type){if(!wcfCartflowsTypePro())return"inactive"===a&&"pro"===wcfInactivepluginType()?(s("hidden"),(0,e.createElement)(Al,{description:(0,pe.__)("Access all of our pro templates by activating CartFlows Pro.","cartflows")})):(s("hidden"),(0,e.createElement)(Ml,{title:(0,pe.__)("Get CartFlows Pro","cartflows"),desc:(0,pe.__)("Access all of our pro templates when you upgrade your plan to CartFlows Pro today.","cartflows")}))}else if(wcfCartflowsTypePro()&&"Activated"!==cartflows_admin.license_status)return s("hidden"),(0,e.createElement)("div",{className:"wcf-name-your-flow__actions wcf-pro--required"},(0,e.createElement)("div",{className:"wcf-flow-import__message"},(0,e.createElement)("p",null,(0,pe.__)("Activate license for adding more flows and other features.","cartflows"))),(0,e.createElement)("div",{className:"wcf-flow-import__button"},(0,e.createElement)(Ll,null)));return(0,e.createElement)("div",{className:"wcf-flow-import__button"},(0,e.createElement)("button",{className:"wcf-button wcf-button--primary",onClick:e=>{e.preventDefault(),jQuery(e.target).closest(".wcf-name-your-flow__inner").find(".input-field").attr("disabled","disabled"),h||(d({isProcessing:!0,buttonText:(0,pe.__)("Importing Complete Flow..","carflows")}),((e,t,r,n)=>{console.log(e);const a=new window.FormData;a.append("action","cartflows_import_flow"),a.append("flow_name",n),a.append("security",cartflows_admin.import_flow_nonce),a.append("flow",JSON.stringify(e)),ue()({url:cartflows_admin.ajax_url,method:"POST",body:a}).then((e=>{console.log(e),e.success?(t({isProcessing:!1,buttonText:(0,pe.__)("Imported! Redirecting…","cartflows")}),setTimeout((()=>{window.location=`${cartflows_admin.admin_base_url}admin.php?page=cartflows&action=wcf-edit-flow&flow_id=${e.data.new_flow_id}`}),3e3)):"call_to_action"in e.data?r({cta:e.data.call_to_action,error_msg:e.data.message}):t({isProcessing:!1,buttonText:e.data.message})}))})(n,d,c,i))}},h?(0,e.createElement)(Dl,null):""," ",m))})),vc=(0,Nl.compose)((0,Cl.withSelect)((e=>{const{getFlowsCount:t,getCFProStatus:r,getLicenseStatus:n,getWooCommerceStatus:a}=e("wcf/importer");return{flowsCount:t(),cf_pro_status:r(),license_status:n(),woocommerce_status:a()}})))((r=>{let{flowName:n,isStoreCheckout:a}=r;const[o,i]=(0,t.useState)((0,pe.__)("Design Your Flow","cartflows"));console.log(a);const[s,l]=(0,t.useState)(!1);return(0,e.createElement)("div",{className:"wcf-name-your-flow__actions"},(0,e.createElement)("div",{className:"wcf-flow-import__button"},(0,e.createElement)("button",{className:"wcf-button wcf-button--primary",onClick:e=>{e.preventDefault(),jQuery(e.target).closest(".wcf-name-your-flow__inner").find(".input-field").attr("disabled","disabled"),((e,t,r,n,a)=>{if(r)return;e("Creating Flow.."),n(!0);const o=new window.FormData;o.append("action","cartflows_create_flow"),o.append("security",cartflows_admin.create_flow_nonce),o.append("flow_name",t),o.append("store_checkout",a),ue()({url:cartflows_admin.ajax_url,method:"POST",body:o}).then((t=>{console.log(t),t.success?(e((0,pe.__)("Created! Redirecting…","cartflows")),n(!1),setTimeout((()=>{let e=`admin.php?page=cartflows&action=wcf-edit-flow&flow_id=${t.data.flow_id}`;a&&(e="admin.php?page=cartflows&action=wcf-edit-store-checkout"),window.location=`${cartflows_admin.admin_base_url+e}`}),3e3)):e((0,pe.__)("Failed to Create Flow!","cartflows"))}))})(i,n,s,l,a)}},o)))}));const _c=t=>{let{preview:r,type:n,flowName:a,setInputFieldVisibility:o}=t;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wcf-name-your-flow__footer"},"import"===n&&(0,e.createElement)(bc,{preview:r,flowName:a,setInputFieldVisibility:o}),"blank"===n&&(0,e.createElement)(vc,{flowName:a,setInputFieldVisibility:o,isStoreCheckout:!1})))},yc=r=>{const{cf_pro_status:n,setVisibility:a,preview:o,type:i,flowName:l,setFlowName:c}=r,[u,p]=(0,t.useState)(""),[{flows_limit_over:f}]=s();return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wcf-name-your-flow__header"},(0,e.createElement)("div",{className:"wcf-name-your-flow__title"},(0,e.createElement)("h2",{className:"wcf-name-your-flow-popup__title"},(0,e.createElement)("span",{className:"cartflows-logo-icon"}),f?(0,pe.__)("Upgrade To CartFlows Pro","cartflows"):(0,pe.__)("Name Your Flow","cartflows"))),(0,e.createElement)("div",{className:"wcf-name-your-flow__menu",title:"Hide this",onClick:()=>a("hide")},(0,e.createElement)("span",{className:"dashicons dashicons-no"}))),(0,e.createElement)("div",{className:"wcf-name-your-flow__body"},(0,e.createElement)("div",{className:"wcf-text-field"},(0,e.createElement)("input",{type:"text",className:`input-field ${u}`,value:l,onChange:e=>c(e.target.value),placeholder:(0,pe.__)("Enter Flow Name","cartflows")})),(0,e.createElement)(_c,{cf_pro_status:n,setVisibility:a,preview:o,type:i,flowName:l,setFlowName:c,setInputFieldVisibility:p})))};var Ec=(0,Nl.compose)((0,Cl.withSelect)((e=>{const{getFlowsCount:t,getCFProStatus:r,getLicenseStatus:n}=e("wcf/importer");return{flowsCount:t(),cf_pro_status:r(),license_status:n()}})))((t=>{let{visibility:r,setVisibility:n,preview:o,type:i,flowName:s,setFlowName:l,cf_pro_status:c}=t;return(0,a.createPortal)((0,e.createElement)("div",{className:`wcf-name-your-flow ${r}`},(0,e.createElement)("div",{className:"wcf-name-your-flow__overlay",onClick:()=>n("hide")}),(0,e.createElement)("div",{className:"wcf-name-your-flow__inner"},(0,e.createElement)(yc,{cf_pro_status:c,setVisibility:n,preview:o,type:i,flowName:s,setFlowName:l}))),document.getElementById("wcf-json-importer"))})),xc=function(t){let{item:r,setPreviewImageURL:n,currentPreviewID:a,setCurrentPreviewID:o}=t;const{ID:i,title:s,type:l,thumbnail_image_url:c,featured_image_url:u}=r,p="wcf-item__inner "+(a===i?"wcf-item__inner--active":"");return(0,e.createElement)("div",{className:"wcf-item wcf-item--preview"},"pro"===l?(0,e.createElement)("span",{className:`wcf-item__type wcf-item__type--${l}`},l):"",(0,e.createElement)("div",{className:p,onClick:()=>{n(u),o(i)}},(0,e.createElement)("div",{className:"wcf-item__thumbnail-wrap"},(0,e.createElement)("div",{className:"wcf-item__thumbnail"},(0,e.createElement)("img",{className:"wcf-item__thumbnail-image",src:`${c}`,alt:(0,pe.__)("Flow thumbnail image","cartflows")}))),(0,e.createElement)("div",{className:"wcf-item__heading-wrap"},(0,e.createElement)("div",{className:"wcf-item__heading"},s))))},Sc=(0,Nl.compose)((0,Cl.withSelect)((e=>{const{getPreview:t}=e("wcf/importer");return{preview:t()}})),(0,Cl.withDispatch)((e=>{const{setPreview:t}=e("wcf/importer");return{setPreview:t}})))((function(r){let{preview:n,setPreview:a}=r;const{featured_image_url:o,steps:i,title:s}=n,l=cartflows_admin.template_library_url+"preview/?flow="+n.ID,c=Object.values(i),u=c.length?c[0].ID:"",[p,f]=(0,t.useState)(o),[d,h]=(0,t.useState)(u),[m,g]=(0,t.useState)("hide"),[w,b]=(0,t.useState)("");return window.scrollTo(0,0),(0,e.createElement)(t.Fragment,null,(0,e.createElement)("div",{className:"wcf-flow-preview-wrap"},(0,e.createElement)("div",{className:"wcf-flex"},(0,e.createElement)("span",{className:"wcf-button wcf-button--secondary wcf-button--back",onClick:()=>a({})},(0,e.createElement)("span",{className:"wcf-flows-header__text"},(0,pe.__)("Back","cartflows"))),(0,e.createElement)("div",{className:"wcf-flow-preview__heading"},s),(0,e.createElement)("div",{className:"wcf-flow-preview__actions"},(0,e.createElement)("a",{className:"wcf-button wcf-button--secondary",href:l,target:"_blank",rel:"noreferrer"},"Preview"),(0,e.createElement)("span",{className:"wcf-button wcf-button--primary",onClick:()=>{g("hide"===m?"show":"hide")}},(0,pe.__)("Import Flow","cartflows")),(0,e.createElement)(Ec,{visibility:m,setVisibility:g,preview:n,type:"import",flowName:w,setFlowName:b}))),(0,e.createElement)("div",{className:"wcf-flow-preview"},(0,e.createElement)("div",{className:"wcf-flow-preview__item"},(0,e.createElement)("div",{className:"wcf-flow-preview__inner"},(0,e.createElement)("div",{className:"wcf-flow-preview__thumbnail-wrap"},(0,e.createElement)("img",{className:"wcf-flow-preview__thumbnail",src:p,alt:(0,pe.__)("Flow Preview","cartflows")})))),(0,e.createElement)("div",{className:"wcf-flow-preview__list wcf-items-list"},c.map((t=>(0,e.createElement)(xc,{key:t.ID,item:t,setPreviewImageURL:f,currentPreviewID:d,setCurrentPreviewID:h})))))))})),Nc=(0,Nl.compose)((0,Cl.withSelect)((()=>{const[{page_builder:e,page_builder_group_data:t}]=s();return{page_builder_group:t[e],default_page_builder:e}})),(0,Cl.withDispatch)((e=>{const{setRequiredPlugins:t,setAllFlows:r}=e("wcf/importer");return{setRequiredPlugins:t,setAllFlows:r}})))((r=>{let{setRequiredPlugins:n,setAllFlows:a,default_page_builder:o,page_builder_group:i}=r;const[{page_builder:l}]=s(),[c,u]=(0,t.useState)(!1),p=i.title;let f=`Please click here and activate ${p}`,d="";if("divi"===o){d=i["theme-status"];const e=i["plugin-status"];"deactivate"===d||"install"===e?f=`Please activate ${p}`:"deactivate"!==d&&"not-installed"!==d||"install"!==e||(f=`Please install and activate ${p}`)}function h(e){const t=new window.FormData;t.append("action","cartflows_activate_plugin"),t.append("init",e.init),t.append("security",cartflows_admin.activate_plugin_nonce),ue()({url:cartflows_admin.ajax_url,method:"POST",body:t}).then((()=>{u(!1),n(l,"no"),a([])}))}const[m,g]=(0,t.useState)("hide"),[w,b]=(0,t.useState)("");return(0,e.createElement)("div",{className:"wcf-flow-importer wcf-flow-library--other"},(0,e.createElement)("div",{className:"wcf-flow-importer__header"},(0,e.createElement)("div",{className:"wcf-flow-importer__header-title"},(0,e.createElement)("span",{className:"cartflows-logo-icon"}),(0,pe.__)("Flow Templates","cartflows"))),(0,e.createElement)("div",{className:"wcf-flow-importer__list wcf-items-list wcf-row wcf-flow-row"},(0,e.createElement)(Ec,{visibility:m,setVisibility:g,type:"blank",flowName:w,setFlowName:b}),(0,e.createElement)("div",{className:"wcf-item wcf-item__start-from-blank"},(0,e.createElement)("div",{className:"wcf-item__inner",onClick:()=>{g("hide"===m?"show":"hide")}},(0,e.createElement)("div",{className:"wcf-item__thumbnail-wrap"},(0,e.createElement)("div",{className:"wcf-item__thumbnail"},(0,e.createElement)("div",{className:"wcf-flow-importer__start-from-blank-icon"},(0,e.createElement)("span",{className:"wcf-icon dashicons dashicons-plus wcf-icon-start-from-blank"})))),(0,e.createElement)("div",{className:"wcf-item__heading-wrap"},(0,e.createElement)("div",{className:"wcf-item__heading"},(0,pe.__)("Start from scratch","cartflows")))),(0,e.createElement)("div",{className:"wcf_item__info"},(0,e.createElement)("h3",{className:"wcf_item__info--title"},(0,pe.__)("It seems that the page builder you selected is inactive.","cartflows")),(0,e.createElement)("p",{className:"wcf_item__info--notice"},c?(0,e.createElement)(Dl,null):"",(0,e.createElement)("a",{href:"#",onClick:function(e){e.preventDefault(),console.log("clicked"),u(!0);const t=cartflows_admin.required_plugins[o].plugins;let r=0,n=0;for(const e of t)"install"===e.status&&r++,"activate"===e.status&&n++;r?function(e){console.log("Installing all plugins",e);for(const t of e)"install"===t.status&&(console.log("plugin.slug",t.slug),wp.updates.queue.push({action:"install-plugin",data:{slug:t.slug,init:t.init,name:t.name,success(){console.log("Installed Successfully! Activating plugin ",t.slug),h(t)},error(){}}}));wp.updates.queueChecker()}(t):n&&(console.log("remaining_active_plugins",n),function(e){for(const t of e)"activate"===t.status&&h(t)}(t))}},f)," ","to see CartFlows templates. If you prefer another page builder tool, you can"," ",(0,e.createElement)(ie,{key:`?page=${cartflows_admin.home_slug}&path=settings`,to:{pathname:"admin.php",search:`?page=${cartflows_admin.home_slug}&path=settings`}},"select it here"),"."),(0,e.createElement)("span",{className:"wcf_item__info--desc"},(0,pe.__)("Are you using any other page builder? No worries. CartFlows works well with every other page builder. Right now we do not have ready templates for every page builder but we are planning to add it very soon.","cartflows")),(0,e.createElement)("a",{className:"wcf_item__info--doc",href:"https://cartflows.com/docs/how-to-use-cartflows-with-your-own-template/",target:"_blank",rel:"noreferrer"},(0,pe.__)("Learn How ","cartflows"),(0,e.createElement)("i",{className:"dashicons dashicons-external"}))))))}));const Cc=t=>{let{text:r}=t;return(0,e.createElement)("span",{className:"wcf-sync__title"}," ",r)};var kc=(0,t.memo)((r=>{const n=(0,pe.__)("Sync Library","cartflows"),{template:a}=r,o=a||"",[i,s]=(0,t.useState)({isProcessing:!1,buttonText:n}),{isProcessing:l,buttonText:c}=i,u=async(e,t)=>{const r=new window.FormData;r.append("action","cartflows_import_sites"),r.append("page_no",e),r.append("template",o),r.append("security",cartflows_admin.import_sites_nonce),await ue()({url:cartflows_admin.ajax_url,method:"POST",body:r}).then((r=>{console.log(r),r.success?(console.log("SUCCESS: processImportSites"),s({isProcessing:!0,buttonText:(0,pe.sprintf)(
10
  /* translators: %d is replaced with the condition number */
11
- (0,pe.__)("Importing page %d","cartflows"),e)}),console.log("i === total"),console.log(`${e} === ${t}`),console.log(e===t),e===t&&(async()=>{const e=new window.FormData;e.append("action","cartflows_update_library_complete"),e.append("template",o),e.append("security",cartflows_admin.update_library_complete_nonce),s({isProcessing:!0,buttonText:(0,pe.__)("Sync Complete","cartflows")}),await ue()({url:cartflows_admin.ajax_url,method:"POST",body:e}).then((e=>{console.log(e),e.success?(console.log("SUCCESS: processupdateLibraryComplete"),console.log("=== SYNC COMPLETE ==="),s({isProcessing:!1,buttonText:(0,pe.__)("Sync Complete","cartflows")})):console.log("FAILED: processupdateLibraryComplete")})).catch((e=>{console.log(e),console.log("ERROR: processupdateLibraryComplete")}))})()):console.log("FAILED: processImportSites")})).catch((e=>{console.log(e),console.log("ERROR: processImportSites")}))};return(0,e.createElement)("span",{className:"wcf-sync wcf-button wcf-button--secondary",onClick:e=>{e.preventDefault(),s({isProcessing:!0,buttonText:(0,pe.__)("Syncing Libray…","cartflows")}),(async()=>{console.log("Started");try{console.log("=== SYNC STARTED ===");const e=new window.FormData;e.append("action","cartflows_sync_library"),e.append("template",o),e.append("security",cartflows_admin.sync_library_nonce),await ue()({url:cartflows_admin.ajax_url,method:"POST",body:e}).then((e=>{console.log(e),e.success?(console.log("SUCCESS: processSyncLibrary"),"updated"===e.data?(s({isProcessing:!1,buttonText:(0,pe.__)("Library Synced","cartflows")}),setTimeout((()=>{s({isProcessing:!1,buttonText:n})}),5e3)):(async()=>{const e=new window.FormData;e.append("action","cartflows_request_count"),e.append("template",o),e.append("security",cartflows_admin.request_count_nonce),await ue()({url:cartflows_admin.ajax_url,method:"POST",body:e}).then((async e=>{if(console.log(e),e.success){console.log("SUCCESS: processRequestCount"),console.log(e),s({isProcessing:!0,buttonText:"Importing Pages.."});const t=e.data.count;console.log("total",t);for(let e=1;e<=t;e++)console.log("i",e),u(e,t)}else console.log("FAILED: processRequestCount")})).catch((e=>{console.log(e),console.log("ERROR: processRequestCount")}))})()):(console.log(e),console.log("FAILED: processSyncLibrary"))})).catch((e=>{console.log(e),console.log("ERROR: processSyncLibrary")}))}catch(e){console.log("Complete: Failed"),console.log(e)}})()}},l?(0,e.createElement)(Dl,null):(0,e.createElement)("span",{className:"wcf-icon dashicons dashicons-update"}),(0,e.createElement)(Cc,{text:c}))})),Dc=()=>{const[r,n]=(0,t.useState)("hide"),[a,o]=(0,t.useState)("");return(0,e.createElement)("div",{className:"wcf-flow-importer wcf-search-404"},(0,e.createElement)("div",{className:"wcf-flow-importer__list wcf-items-list wcf-row wcf-flow-row"},(0,e.createElement)(Ec,{visibility:r,setVisibility:n,type:"blank",flowName:a,setFlowName:o}),(0,e.createElement)("div",{className:"wcf-item wcf-item__start-from-blank"},(0,e.createElement)("div",{className:"wcf-item__inner",onClick:()=>{n("hide"===r?"show":"hide")}},(0,e.createElement)("div",{className:"wcf-item__thumbnail-wrap"},(0,e.createElement)("div",{className:"wcf-item__thumbnail"},(0,e.createElement)("div",{className:"wcf-flow-importer__start-from-blank-icon"},(0,e.createElement)("span",{className:"wcf-icon dashicons dashicons-plus wcf-icon-start-from-blank"})))),(0,e.createElement)("div",{className:"wcf-item__heading-wrap"},(0,e.createElement)("div",{className:"wcf-item__heading"},(0,pe.__)("Start from scratch","cartflows")))),(0,e.createElement)("div",{className:"wcf_item__info"},(0,e.createElement)("h3",{className:"wcf_item__info--title"},(0,pe.__)("No Results Found.","cartflows")),(0,e.createElement)("span",{className:"wcf_item__info--desc"},(0,pe.__)("Don't see a funnel that you would like to import?","cartflows")),(0,e.createElement)("a",{className:"wcf_item__info--doc",href:"https://cartflows.com/funnel-suggestions/",target:"_blank",rel:"noreferrer"},(0,pe.__)("Please suggest us ","cartflows"),(0,e.createElement)("i",{className:"dashicons dashicons-external"}))))))},Oc=function(){return(0,e.createElement)("div",{className:"wcf-flow-importer__list wcf-items-list wcf-row wcf-flow-row is-placeholder"},(()=>{const t=[];for(let r=0;r<12;r++)t.push((0,e.createElement)("div",{className:"wcf-item"},(0,e.createElement)("div",{className:"wcf-item__thumbnail-wrap"},(0,e.createElement)(me,{height:"240px"})),(0,e.createElement)("div",{className:"wcf-item__heading-wrap"},(0,e.createElement)(me,{width:"100%",height:"35px"}))));return t})())},Tc=(0,Nl.compose)((0,Cl.withSelect)((e=>{const[{page_builder:t}]=s(),{getPreview:r,getAllFlows:n,getFlowsList:a,getCurrentPageBuilderData:o,getRequiredPluginsData:i}=e("wcf/importer");return{page_builder:t,currentPageBuilderData:o(t),requiredPluginsData:i(),preview:r(),all_flows:n(),flows_list:a(t)}})),(0,Cl.withDispatch)((e=>{const{setAllFlows:t}=e("wcf/importer");return{setAllFlows:t}})))((function(r){let{page_builder:n,currentPageBuilderData:a,requiredPluginsData:o,preview:i,all_flows:s,flows_list:l,setAllFlows:c}=r,u="no";if("yes"===o[n]&&a&&null!=a&&a.plugins&&(null==a||a.plugins.map((function(e){return"install"!==e.status&&"activate"!==e.status||(u="yes"),""}))),"yes"===u)return(0,e.createElement)(Nc,null);(0,t.useEffect)((()=>{let e=!0;if(!s[n]){const t=new window.FormData;t.append("action","cartflows_get_flows_list"),t.append("security",cartflows_admin.get_flows_list_nonce),(async()=>{ue()({url:cartflows_admin.ajax_url,method:"POST",body:t}).then((t=>{var r;if(console.log(t),e&&null!=t&&null!==(r=t.data)&&void 0!==r&&r.flows){const e=Object.values(t.data.flows);d(e),c(e,n)}}))})()}return()=>{e=!1}}),[s]);const p=(0,t.createRef)(),[f,d]=(0,t.useState)(l),[h,m]=(0,t.useState)("search"),g=function(e){if(e){m("cancel");const t=e.toLowerCase(),r=l.filter((function(e){return(e.title&&e.title.toLowerCase()||"").includes(t)}));d(r)}else m("search"),d(l)},[w,b]=(0,t.useState)("hide"),[v,_]=(0,t.useState)("");return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wcf-flow-importer"},Object.keys(i).length?(0,e.createElement)(Sc,null):(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wcf-flow-importer__header"},(0,e.createElement)("div",{className:"wcf-flow-importer__header-title"},(0,e.createElement)("span",{className:"cartflows-logo-icon"}),(0,pe.__)("Flow Templates","cartflows")),(0,e.createElement)("div",{className:"wcf-flow-importer__actions"},(0,e.createElement)("div",{className:"wcf-flow-importer__actions-content-left"},(0,e.createElement)("div",{className:"wcf-flow-importer__actions-search"},(0,e.createElement)("form",{className:"wcf-search__form",onSubmit:function(e){e.preventDefault(),"cancel"===h&&(p.current.value="",g(""))}},(0,e.createElement)(De,{attr:{ref:p},label:"",placeholder:(0,pe.__)("Search Templates","cartflows"),class:"input-field",id:"s",value:"",onChangeCB:g}),(0,e.createElement)("button",{className:"wcf-search__button"},"search"===h&&(0,e.createElement)("span",{className:"dashicons dashicons-search"}),"cancel"===h&&(0,e.createElement)("span",{className:"dashicons dashicons-no"}))))),(0,e.createElement)("div",{className:"wcf-flow-importer__actions-content-right"},(0,e.createElement)("div",{className:"wcf-flow-importer__actions-buttons"},(0,e.createElement)(kc,null))))),l.length<1&&f.length<1&&(0,e.createElement)(Oc,null),l.length>0&&0===f.length&&(0,e.createElement)(Dc,null),l.length>0&&0<f.length&&(0,e.createElement)("div",{className:"wcf-flow-importer__list wcf-items-list wcf-row wcf-flow-row"},(0,e.createElement)(Ec,{visibility:w,setVisibility:b,type:"blank",flowName:v,setFlowName:_}),(0,e.createElement)("div",{className:"wcf-item wcf-item__start-from-blank"},(0,e.createElement)("div",{className:"wcf-item__inner",onClick:()=>{b("hide"===w?"show":"hide")}},(0,e.createElement)("div",{className:"wcf-item__thumbnail-wrap"},(0,e.createElement)("div",{className:"wcf-item__thumbnail"},(0,e.createElement)("div",{className:"wcf-flow-importer__start-from-blank-icon"},(0,e.createElement)("span",{className:"wcf-icon dashicons dashicons-plus wcf-icon-start-from-blank"})))),(0,e.createElement)("div",{className:"wcf-item__heading-wrap"},(0,e.createElement)("div",{className:"wcf-item__heading"},(0,pe.__)("Start from scratch","cartflows"))))),f.map((t=>(0,e.createElement)(wc,{key:t.ID,item:t})))))))})),Ac=()=>{const[r,n]=(0,t.useState)("hide"),[a,o]=(0,t.useState)("");return(0,e.createElement)("div",{className:"wcf-flow-importer wcf-flow-library--other"},(0,e.createElement)("div",{className:"wcf-flow-importer__header"},(0,e.createElement)("div",{className:"wcf-flow-importer__header-title"},(0,e.createElement)("span",{className:"cartflows-logo-icon"}),(0,pe.__)("Flow Templates","cartflows"))),(0,e.createElement)("div",{className:"wcf-flow-importer__list wcf-items-list wcf-row wcf-flow-row"},(0,e.createElement)(Ec,{visibility:r,setVisibility:n,type:"blank",flowName:a,setFlowName:o}),(0,e.createElement)("div",{className:"wcf-item wcf-item__start-from-blank"},(0,e.createElement)("div",{className:"wcf-item__inner",onClick:()=>{n("hide"===r?"show":"hide")}},(0,e.createElement)("div",{className:"wcf-item__thumbnail-wrap"},(0,e.createElement)("div",{className:"wcf-item__thumbnail"},(0,e.createElement)("div",{className:"wcf-flow-importer__start-from-blank-icon"},(0,e.createElement)("span",{className:"wcf-icon dashicons dashicons-plus wcf-icon-start-from-blank"})))),(0,e.createElement)("div",{className:"wcf-item__heading-wrap"},(0,e.createElement)("div",{className:"wcf-item__heading"},(0,pe.__)("Start from scratch","cartflows")))),(0,e.createElement)("div",{className:"wcf_item__info"},(0,e.createElement)("h3",{className:"wcf_item__info--title"},(0,pe.__)("It seems that you are using the page builder other than Elementor, Beaver Builder, Divi & Gutenberg.","cartflows")),(0,e.createElement)("span",{className:"wcf_item__info--desc"},(0,pe.__)("Are you using any other page builder? No worries. CartFlows works well with every other page builder. Right now we do not have ready templates for every page builder but we are planning to add it very soon.","cartflows")),(0,e.createElement)("a",{className:"wcf_item__info--doc",href:"https://cartflows.com/docs/how-to-use-cartflows-with-your-own-template/",target:"_blank",rel:"noreferrer"},(0,pe.__)("Learn How ","cartflows"),(0,e.createElement)("i",{className:"dashicons dashicons-external"}))))))},Mc=()=>{const[{page_builder:t}]=s();return"other"!==t?(0,e.createElement)(Tc,null):(0,e.createElement)(Ac,null)},Lc=function(t){let{item:r,setPreviewImageURL:n,currentPreviewID:a,setCurrentPreviewID:o}=t;const{ID:i,title:s,type:l,thumbnail_image_url:c,featured_image_url:u}=r,p="wcf-item__inner "+(a===i?"wcf-item__inner--active":"");return(0,e.createElement)("div",{className:"wcf-item wcf-item--preview"},"pro"===l?(0,e.createElement)("span",{className:`wcf-item__type wcf-item__type--${l}`},l):"",(0,e.createElement)("div",{className:p,onClick:()=>{n(u),o(i)}},(0,e.createElement)("div",{className:"wcf-item__thumbnail-wrap"},(0,e.createElement)("div",{className:"wcf-item__thumbnail"},(0,e.createElement)("img",{className:"wcf-item__thumbnail-image",src:`${c}`,alt:(0,pe.__)("Flow thumbnail image","cartflows")}))),(0,e.createElement)("div",{className:"wcf-item__heading-wrap"},(0,e.createElement)("div",{className:"wcf-item__heading"},s))))},Ic=(0,Nl.compose)((0,Cl.withSelect)((e=>{const{getPreview:t}=e("wcf/importer");return{preview:t()}})),(0,Cl.withDispatch)((e=>{const{setPreview:t}=e("wcf/importer");return{setPreview:t}})))((function(r){let{preview:n,setPreview:a}=r;const{featured_image_url:o,steps:i,title:s}=n,l=cartflows_admin.template_library_url+"preview/?flow="+n.ID,c=[];Object.values(i).forEach((function(e){["checkout","thankyou"].includes(e.type)&&c.push(e)})),console.log(c);const u=c.length?c[0].ID:"",[p,f]=(0,t.useState)(o),[d,h]=(0,t.useState)(u),[m,g]=(0,t.useState)("");return window.scrollTo(0,0),(0,e.createElement)(t.Fragment,null,(0,e.createElement)("div",{className:"wcf-flow-preview-wrap"},(0,e.createElement)("div",{className:"wcf-flex"},(0,e.createElement)("span",{className:"wcf-button wcf-button--secondary wcf-button--back",onClick:()=>a({})},(0,e.createElement)("span",{className:"wcf-flows-header__text"},(0,pe.__)("Back","cartflows"))),(0,e.createElement)("div",{className:"wcf-flow-preview__heading"},s),(0,e.createElement)("div",{className:"wcf-flow-preview__actions"},(0,e.createElement)("a",{className:"wcf-button wcf-button--secondary",href:l,target:"_blank",rel:"noreferrer"},"Preview"),(0,e.createElement)(Pl,{preview:n,flowName:(0,pe.__)("Store Checkout","cartflows"),inputFieldVisibility:m,setInputFieldVisibility:g,isStoreCheckout:!0}))),(0,e.createElement)("div",{className:"wcf-flow-preview"},(0,e.createElement)("div",{className:"wcf-flow-preview__item"},(0,e.createElement)("div",{className:"wcf-flow-preview__inner"},(0,e.createElement)("div",{className:"wcf-flow-preview__thumbnail-wrap"},(0,e.createElement)("img",{className:"wcf-flow-preview__thumbnail",src:p,alt:(0,pe.__)("Flow Preview","cartflows")})))),(0,e.createElement)("div",{className:"wcf-flow-preview__list wcf-items-list"},c.map((t=>(0,e.createElement)(Lc,{key:t.ID,item:t,setPreviewImageURL:f,currentPreviewID:d,setCurrentPreviewID:h})))))))}));const jc=t=>{let{preview:r,type:n,flowName:a,setInputFieldVisibility:o}=t;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wcf-name-your-flow__footer"},"import"===n&&(0,e.createElement)(Pl,{preview:r,flowName:a,setInputFieldVisibility:o}),"blank"===n&&(0,e.createElement)(ql,{flowName:a,setInputFieldVisibility:o,isStoreCheckout:!1})))},Pc=r=>{const{cf_pro_status:n,setVisibility:a,preview:o,type:i,flowName:l,setFlowName:c}=r,[u,p]=(0,t.useState)(""),[{flows_limit_over:f}]=s();return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wcf-name-your-flow__header"},(0,e.createElement)("div",{className:"wcf-name-your-flow__title"},(0,e.createElement)("h2",{className:"wcf-name-your-flow-popup__title"},(0,e.createElement)("span",{className:"cartflows-logo-icon"}),f?(0,pe.__)("Upgrade To CartFlows Pro","cartflows"):(0,pe.__)("Name Store Checkout","cartflows"))),(0,e.createElement)("div",{className:"wcf-name-your-flow__menu",title:"Hide this",onClick:()=>a("hide")},(0,e.createElement)("span",{className:"dashicons dashicons-no"}))),(0,e.createElement)("div",{className:"wcf-name-your-flow__body"},f?(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wcf-name-your-flow__footer"},(0,e.createElement)("div",{className:"wcf-name-your-flow__actions wcf-pro--required wcf-upgrade-pro"},(0,e.createElement)("div",{className:"wcf-flow-import__message"},(0,e.createElement)("p",null,(0,pe.__)("You can't create more than 3 flows in free version. Upgrade to CartFlows Pro for adding more flows and other features.","cartflows"))),(0,e.createElement)("div",{className:"wcf-flow-import__button"},(0,e.createElement)("div",{className:"wcf-name-your-flow__actions wcf-pro--required"},(0,e.createElement)("div",{className:"wcf-flow-import__button"},(0,e.createElement)("a",{href:"https://cartflows.com/",target:"_blank",className:"wcf-button wcf-button--primary",rel:"noreferrer"},(0,pe.__)("Upgrade To Cartflows Pro","cartflows")))))))):(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wcf-text-field"},(0,e.createElement)("input",{type:"text",className:`input-field ${u}`,value:l,onChange:e=>c(e.target.value),placeholder:(0,pe.__)("Enter Flow Name","cartflows")})),(0,e.createElement)(jc,{cf_pro_status:n,setVisibility:a,preview:o,type:i,flowName:l,setFlowName:c,setInputFieldVisibility:p}))))};var qc=(0,Nl.compose)((0,Cl.withSelect)((e=>{const{getFlowsCount:t,getCFProStatus:r,getLicenseStatus:n}=e("wcf/importer");return{flowsCount:t(),cf_pro_status:r(),license_status:n()}})))((t=>{let{visibility:r,setVisibility:n,preview:o,type:i,flowName:s,setFlowName:l,cf_pro_status:c}=t;return(0,a.createPortal)((0,e.createElement)("div",{className:`wcf-name-your-flow ${r}`},(0,e.createElement)("div",{className:"wcf-name-your-flow__overlay",onClick:()=>n("hide")}),(0,e.createElement)("div",{className:"wcf-name-your-flow__inner"},(0,e.createElement)(Pc,{cf_pro_status:c,setVisibility:n,preview:o,type:i,flowName:s,setFlowName:l}))),document.getElementById("wcf-json-importer"))})),Rc=()=>{const[r,n]=(0,t.useState)("hide"),[a,o]=(0,t.useState)("");return(0,e.createElement)("div",{className:"wcf-flow-importer wcf-search-404"},(0,e.createElement)("div",{className:"wcf-flow-importer__list wcf-items-list wcf-row wcf-flow-row"},(0,e.createElement)(Bl,{visibility:r,setVisibility:n,type:"blank",flowName:a,setFlowName:o}),(0,e.createElement)("div",{className:"wcf-item wcf-item__start-from-blank"},(0,e.createElement)("div",{className:"wcf-item__inner",onClick:()=>{n("hide"===r?"show":"hide")}},(0,e.createElement)("div",{className:"wcf-item__thumbnail-wrap"},(0,e.createElement)("div",{className:"wcf-item__thumbnail"},(0,e.createElement)("div",{className:"wcf-flow-importer__start-from-blank-icon"},(0,e.createElement)("span",{className:"wcf-icon dashicons dashicons-plus wcf-icon-start-from-blank"})))),(0,e.createElement)("div",{className:"wcf-item__heading-wrap"},(0,e.createElement)("div",{className:"wcf-item__heading"},(0,pe.__)("Start from scratch","cartflows")))),(0,e.createElement)("div",{className:"wcf_item__info"},(0,e.createElement)("h3",{className:"wcf_item__info--title"},(0,pe.__)("No Results Found.","cartflows")),(0,e.createElement)("span",{className:"wcf_item__info--desc"},(0,pe.__)("Don't see a funnel that you would like to import?","cartflows")),(0,e.createElement)("a",{className:"wcf_item__info--doc",href:"https://cartflows.com/funnel-suggestions/",target:"_blank",rel:"noreferrer"},(0,pe.__)("Please suggest us ","cartflows"),(0,e.createElement)("i",{className:"dashicons dashicons-external"}))))))},Fc=()=>{const[r,n]=(0,t.useState)("hide"),[a,o]=(0,t.useState)("");return(0,e.createElement)("div",{className:"wcf-flow-importer wcf-search-404"},(0,e.createElement)("div",{className:"wcf-flow-importer__list wcf-items-list wcf-row wcf-flow-row"},(0,e.createElement)(Bl,{visibility:r,setVisibility:n,type:"blank",flowName:a,setFlowName:o}),(0,e.createElement)("div",{className:"wcf-item wcf-item__start-from-blank"},(0,e.createElement)("div",{className:"wcf-item__inner",onClick:()=>{n("hide"===r?"show":"hide")}},(0,e.createElement)("div",{className:"wcf-item__thumbnail-wrap"},(0,e.createElement)("div",{className:"wcf-item__thumbnail"},(0,e.createElement)("div",{className:"wcf-flow-importer__start-from-blank-icon"},(0,e.createElement)("span",{className:"wcf-icon dashicons dashicons-plus wcf-icon-start-from-blank"})))),(0,e.createElement)("div",{className:"wcf-item__heading-wrap"},(0,e.createElement)("div",{className:"wcf-item__heading"},(0,pe.__)("Start from scratch","cartflows")))),(0,e.createElement)("div",{className:"wcf_item__info"},(0,e.createElement)("h3",{className:"wcf_item__info--title"},(0,pe.__)("Oops!!! No template Found.","cartflows")),(0,e.createElement)("span",{className:"wcf_item__info--desc"},(0,pe.__)("Seems like no template is available for chosen editor.","cartflows"))))))},Bc=(0,Nl.compose)((0,Cl.withSelect)((e=>{const[{page_builder:t}]=s(),{getPreview:r,getStoreCheckoutFlows:n,getStoreCheckoutFlowsList:a,getCurrentPageBuilderData:o,getRequiredPluginsData:i}=e("wcf/importer");return{page_builder:t,currentPageBuilderData:o(t),requiredPluginsData:i(),preview:r(),store_checkout_flows:n(),flows_list:a(t)}})),(0,Cl.withDispatch)((e=>{const{setAllFlows:t}=e("wcf/importer");return{setAllFlows:t}})))((function(r){let{page_builder:n,currentPageBuilderData:a,requiredPluginsData:o,preview:i,store_checkout_flows:s,flows_list:l,setAllFlows:c}=r,u="no";"yes"===o[n]&&a&&null!=a&&a.plugins&&(null==a||a.plugins.map((function(e){return"install"!==e.status&&"activate"!==e.status||(u="yes"),""})));const[p,f]=(0,t.useState)(!0);if("yes"===u)return(0,e.createElement)(Nc,null);(0,t.useEffect)((()=>{let e=!0;if(!s[n]){const t=new window.FormData;t.append("action","cartflows_get_flows_list"),t.append("security",cartflows_admin.get_flows_list_nonce),(async()=>{ue()({url:cartflows_admin.ajax_url,method:"POST",body:t}).then((t=>{var r;if(e&&null!=t&&null!==(r=t.data)&&void 0!==r&&r.flows){const e=Object.values(t.data.flows);m(e),c(e,n)}}))})()}return f(!1),()=>{e=!1}}),[s]);const d=(0,t.createRef)(),[h,m]=(0,t.useState)(l),[g,w]=(0,t.useState)("search"),b=function(e){if(e){w("cancel");const t=e.toLowerCase(),r=l.filter((function(e){return(e.title&&e.title.toLowerCase()||"").includes(t)}));m(r)}else w("search"),m(l)},[v,_]=(0,t.useState)("hide"),[y,E]=(0,t.useState)("");return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wcf-flow-importer"},Object.keys(i).length?(0,e.createElement)(Ic,null):(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wcf-flow-importer__header"},(0,e.createElement)("div",{className:"wcf-flow-importer__header-title"},(0,e.createElement)("span",{className:"cartflows-logo-icon"}),(0,pe.__)("Store Checkout Templates","cartflows")),(0,e.createElement)("div",{className:"wcf-flow-importer__actions"},(0,e.createElement)("div",{className:"wcf-flow-importer__actions-content-left"},(0,e.createElement)("div",{className:"wcf-flow-importer__actions-search"},(0,e.createElement)("form",{className:"wcf-search__form",onSubmit:function(e){e.preventDefault(),"cancel"===g&&(d.current.value="",b(""))}},(0,e.createElement)(De,{attr:{ref:d},label:"",placeholder:(0,pe.__)("Search Templates","cartflows"),class:"input-field",id:"s",value:"",onChangeCB:b}),(0,e.createElement)("button",{className:"wcf-search__button"},"search"===g&&(0,e.createElement)("span",{className:"dashicons dashicons-search"}),"cancel"===g&&(0,e.createElement)("span",{className:"dashicons dashicons-no"}))))),(0,e.createElement)("div",{className:"wcf-flow-importer__actions-content-right"},(0,e.createElement)("div",{className:"wcf-flow-importer__actions-buttons"},(0,e.createElement)(kc,{template:"store-checkout"}))))),l.length<1&&h.length<1&&(p?(0,e.createElement)(Oc,null):(0,e.createElement)(Fc,null)),l.length>0&&0===h.length&&(0,e.createElement)(Rc,null),l.length>0&&0<h.length&&(0,e.createElement)("div",{className:"wcf-flow-importer__list wcf-items-list wcf-row wcf-flow-row"},(0,e.createElement)(qc,{visibility:v,setVisibility:_,type:"blank",flowName:y,setFlowName:E}),h.map((t=>(0,e.createElement)(wc,{key:t.ID,item:t})))))))})),Uc=()=>{const[r,n]=(0,t.useState)("hide"),[a,o]=(0,t.useState)("");return(0,e.createElement)("div",{className:"wcf-flow-importer wcf-flow-library--other"},(0,e.createElement)("div",{className:"wcf-flow-importer__header"},(0,e.createElement)("div",{className:"wcf-flow-importer__header-title"},(0,e.createElement)("span",{className:"cartflows-logo-icon"}),(0,pe.__)("Flow Templates","cartflows"))),(0,e.createElement)("div",{className:"wcf-flow-importer__list wcf-items-list wcf-row wcf-flow-row"},(0,e.createElement)(qc,{visibility:r,setVisibility:n,type:"blank",flowName:a,setFlowName:o}),(0,e.createElement)("div",{className:"wcf-item wcf-item__start-from-blank"},(0,e.createElement)("div",{className:"wcf-item__inner",onClick:()=>{n("hide"===r?"show":"hide")}},(0,e.createElement)("div",{className:"wcf-item__thumbnail-wrap"},(0,e.createElement)("div",{className:"wcf-item__thumbnail"},(0,e.createElement)("div",{className:"wcf-flow-importer__start-from-blank-icon"},(0,e.createElement)("span",{className:"wcf-icon dashicons dashicons-plus wcf-icon-start-from-blank"})))),(0,e.createElement)("div",{className:"wcf-item__heading-wrap"},(0,e.createElement)("div",{className:"wcf-item__heading"},(0,pe.__)("Start from scratch","cartflows")))),(0,e.createElement)("div",{className:"wcf_item__info"},(0,e.createElement)("h3",{className:"wcf_item__info--title"},(0,pe.__)("It seems that you are using the page builder other than Elementor, Beaver Builder, Divi & Gutenberg.","cartflows")),(0,e.createElement)("span",{className:"wcf_item__info--desc"},(0,pe.__)("Are you using any other page builder? No worries. CartFlows works well with every other page builder. Right now we do not have ready templates for every page builder but we are planning to add it very soon.","cartflows")),(0,e.createElement)("a",{className:"wcf_item__info--doc",href:"https://cartflows.com/docs/how-to-use-cartflows-with-your-own-template/",target:"_blank",rel:"noreferrer"},(0,pe.__)("Learn How ","cartflows"),(0,e.createElement)("i",{className:"dashicons dashicons-external"}))))))},zc=()=>{const[{page_builder:t}]=s();return"other"!==t?(0,e.createElement)(Bc,null):(0,e.createElement)(Uc,null)},Vc=function(){const t=new URLSearchParams(K().search),r=t.get("page"),n=t.get("path"),a=t.get("event");let o=(0,e.createElement)("p",null,"Default route fallback");if(cartflows_admin.home_slug===r){if("getting-started"===a)o=(0,e.createElement)(rc,null);else switch(n){case"flows":o=(0,e.createElement)(xl,null);break;case"store-checkout":if("inactive"===cartflows_admin.woocommerce_status)o=(0,e.createElement)(Sl,null);else{if(""!==cartflows_admin.global_checkout_id)return void window.location.replace(cartflows_admin.admin_base_url+`admin.php?page=cartflows&action=wcf-store-checkout&flow_id=${cartflows_admin.global_checkout_id}`);o=(0,e.createElement)(zl,null)}break;case"store-checkout-library":o=(0,e.createElement)(zc,null);break;case"setup":o=(0,e.createElement)(sc,null);break;case"settings":o=(0,e.createElement)(tc,null);break;case"library":o=(0,e.createElement)(Mc,null);break;default:o=(0,e.createElement)(be,null)}wcfWpNavMenuChange(n)}return(0,e.createElement)(e.Fragment,null,o)};o().render((0,e.createElement)(n().StrictMode,null,(0,e.createElement)((r=>{let{reducer:n,initialState:a,children:o}=r;return(0,e.createElement)(i.Provider,{value:(0,t.useReducer)(n,a)},o)}),{initialState:p,reducer:(e,t)=>{switch(t.type){case"SET_FLOWS":return t.flows?{...e,flows_data:[...t.flows]}:{...e,flows_data:t.flows};case"SET_FLOWS_DATA":return{...e,flows_data:[...t.flows],flows_pagination:t.pagination,found_posts:t.found_posts,active_flows_count:t.active_flows_count,trash_flows_count:t.trash_flows_count,draft_flows_count:t.draft_flows_count,flows_count:t.found_posts,flows_limit_over:!1};case"SET_SETTINGS":return{...e,globaldata:t.commondata,options:t.commondata.options};case"SET_PAGE_BUILDER":return{...e,page_builder:t.pagebuilder};case"SET_ANALYTICS_DATA":return{...e,analyticsData:t.analyticsData};case"SET_OPTION":const r=e.options;return r[t.name]=t.value,{...e,options:r};default:return e}}},(0,e.createElement)((r=>{let{reducer:n,initialState:a,children:o}=r;return(0,e.createElement)(f.Provider,{value:(0,t.useReducer)(n,a)},o)}),{initialState:{settingsProcess:!1,unsavedChanges:!1},reducer:(e,t)=>{switch(t.status){case"SAVED":return window.wcfUnsavedChanges=!1,{...e,settingsProcess:"saved"};case"PROCESSING":return{...e,settingsProcess:"processing"};case"RESET":return{...e,settingsProcess:!1};case"UNSAVED_CHANGES":return"change"===t.trigger?{...e,unsavedChanges:!0}:{...e,unsavedChanges:!1};default:return e}}},(0,e.createElement)((function(){const[{globaldata:r},n]=s();return function(){const[{options:e},r]=s(),n=function(t){const{name:n,value:a}=t.detail;void 0!==e[n]&&(window.wcfUnsavedChanges=!0,r({type:"SET_OPTION",name:n,value:a}))},a=[{type:"select"},{type:"select2"},{type:"checkbox"},{type:"text"},{type:"textarea"},{type:"number"},{type:"radio"},{type:"color"},{type:"font"},{type:"product"},{type:"coupon"}];(0,t.useEffect)((()=>(e&&a.map((function(e){return document.addEventListener(`wcf:${e.type}:change`,n),""})),()=>{a.map((function(e){return document.removeEventListener(`wcf:${e.type}:change`,n),""}))})),[e])}(),(0,t.useEffect)((()=>{let e=!0;return r.length<1&&(async()=>{ue()({path:"/cartflows/v1/admin/commonsettings/"}).then((t=>{e&&(n({type:"SET_SETTINGS",commondata:t}),n({type:"SET_PAGE_BUILDER",pagebuilder:t.options["_cartflows_common[default_page_builder]"]}))}))})(),()=>{e=!1}}),[]),(0,e.createElement)(ee,null,(0,e.createElement)(fe,null),(0,e.createElement)("div",{className:"mainSettings"},(0,e.createElement)(Q,null,(0,e.createElement)(Z,{path:"/"},(0,e.createElement)(Vc,null)))))}),null)))),document.getElementById("wcf-settings-app"))}()}();
8
  (0,pe.__)('If you are using the CartFlows Shortcode and using the Design Settings, then this option will regenerate the steps inline CSS. To learn more, <a href="https://cartflows.com/docs/regenerate-the-steps-dynamic-css-for-shortcodes/" target="_blank"> Click here </a>.',"cartflows")))),(0,e.createElement)(Hl,{settings:o}),(0,e.createElement)("div",{className:"wcf-other-settings__save-button"},(0,e.createElement)(Te,null)))},Jl=function(){const[{globaldata:t},r]=s(),[{},n]=d();let a=0;const o=t.settings["user-role-management"],i=function(e){e.stopPropagation();const t=e.target.getAttribute("data-name"),r=document.getElementById(`wcf-user-role-main_access_${t}`),n=document.getElementById(`wcf-user-role-accordion_${t}`),a=document.getElementById(`wcf-user-role-main_${t}`);r.classList.contains("hidden")?(r.classList.remove("hidden"),n.classList.remove("dashicons-arrow-right"),n.classList.add("dashicons-arrow-down"),a.classList.add("accordion-tab")):(r.classList.add("hidden"),n.classList.add("dashicons-arrow-right"),n.classList.remove("dashicons-arrow-down"),a.classList.remove("accordion-tab"))};return(0,e.createElement)("form",{className:"wcf-user-role-management-settings",onSubmit:function(e){e.preventDefault();const t=new window.FormData(e.target);t.append("action","cartflows_save_global_settings"),t.append("security",cartflows_admin.save_global_settings_nonce),t.append("setting_tab","user_role_manager"),ue()({url:cartflows_admin.ajax_url,method:"POST",body:t}).then((e=>{n({status:"SAVED"}),e.success?ue()({path:"/cartflows/v1/admin/commonsettings/"}).then((e=>{r({type:"SET_SETTINGS",commondata:e})})):console.log(e)}))}},(0,e.createElement)("h3",{className:"wcf-user-role-management-settings__title"},o.title),(0,e.createElement)("div",{className:"wcf-user-role-wrapper"},Object.keys(o.roles).map((t=>{const r=`wcf-user-role-main_access_${t}`;let n="dashicons dashicons-arrow-right",s="wcf-user-role-main_access hidden",l="wcf-user-role-accordion";a++,1===a&&(s="wcf-user-role-main_access",l="wcf-user-role-accordion accordion-tab",n="dashicons dashicons-arrow-down");const c=`wcf-user-role-accordion_${t}`,u=`wcf-user-role-main_${t}`;return(0,e.createElement)("div",{className:"wcf-user-role-main",key:t},(0,e.createElement)("div",{className:"wcf-user-role-main_name","data-name":t,onClick:i},(0,e.createElement)("span",{id:u,className:l,"data-name":t,onClick:i},(0,e.createElement)("span",{id:c,className:n,"data-name":t,onClick:i}),(0,e.createElement)("label",{className:"wcf-user-role-main_label","data-name":t},o.roles[t].role_name))),(0,e.createElement)("div",{id:r,className:s},(0,e.createElement)(Hl,{settings:o.roles[t]})))}))),(0,e.createElement)("div",{className:"wcf-user-role-management-settings__doc"},(0,e.createElement)(sl,{content:(0,pe.sprintf)(// translators: %1$s: anchor tag start, %2$s: anchor tag end.
9
  (0,pe.__)("For more information about the user role management please %1$1s Click here %2$2s.","cartflows"),'<a href="https://cartflows.com/docs/user-role-manager/" target="_blank">',"</a>")})),(0,e.createElement)("div",{className:"wcf-user-role-management-settings__save-button"},(0,e.createElement)(Te,null)))},Kl=function(){const[{globaldata:t},r]=s(),[{},n]=d(),a=t.settings["global-checkout"];return(0,e.createElement)("form",{className:"wcf-global-checkout-settings",onSubmit:e=>{e.preventDefault();const t=new window.FormData(e.target);t.append("action","cartflows_save_global_settings"),t.append("security",cartflows_admin.save_global_settings_nonce),t.append("setting_tab",""),ue()({url:cartflows_admin.ajax_url,method:"POST",body:t}).then((e=>{n({status:"SAVED"}),e.success?ue()({path:"/cartflows/v1/admin/commonsettings/"}).then((e=>{r({type:"SET_SETTINGS",commondata:e})})):console.log("Error")}))}},(0,e.createElement)("h3",{className:"wcf-global-checkout-settings__title"},(0,pe.__)("Store Checkout Settings","cartflows")),(0,e.createElement)(Hl,{settings:a,meta_key:"_cartflows_common"}),(0,e.createElement)("div",{className:"wcf-global-checkout-settings__save-button"},(0,e.createElement)(Te,null)))},ec=function(){return(0,e.createElement)("div",{className:"wcf-settings-nav"},(0,e.createElement)("div",{className:"wcf-settings-nav__tabs"},Array(5).fill().map((t=>(0,e.createElement)("div",{className:"wcf-settings-nav__tab",key:t},(0,e.createElement)(me,{height:"45px"}))))),(0,e.createElement)("div",{className:"wcf-settings-nav__content"},(0,e.createElement)(de,{fontSize:"35px",width:"225px"}),(0,e.createElement)(de,{width:"80%"}),(0,e.createElement)(de,{width:"80%"}),(0,e.createElement)(de,{width:"80%"}),(0,e.createElement)(de,{width:"65%"}),(0,e.createElement)(he,null),(0,e.createElement)(de,{fontSize:"35px",width:"300px"}),(0,e.createElement)(de,{width:"60%"}),(0,e.createElement)(de,{width:"60%"}),(0,e.createElement)(de,{width:"45%"}),(0,e.createElement)(he,null),(0,e.createElement)(de,{fontSize:"35px",width:"210px"}),(0,e.createElement)(de,{width:"65%"}),(0,e.createElement)(de,{width:"65%"}),(0,e.createElement)(de,{width:"45%"})))},tc=function(){const[{globaldata:r},n]=s(),a=K();let o=!0;if(void 0===r.length&&(o=!1),(0,t.useEffect)((()=>{let e=!0;return r.length<1&&(async()=>{ue()({path:"/cartflows/v1/admin/commonsettings/"}).then((t=>{e&&n({type:"SET_SETTINGS",commondata:t})}))})(),()=>{e=!1}}),[]),!cartflows_admin.current_user_can_manage_catflows)return(0,e.createElement)("div",{className:"wcf-no-access-error-wrapper"},(0,e.createElement)("div",{className:"wcf-no-access--icon"},(0,e.createElement)("img",{src:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAxNi4wLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB3aWR0aD0iOTVweCIgaGVpZ2h0PSI5NXB4IiB2aWV3Qm94PSIwIDAgOTUgOTUiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDk1IDk1IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxnPg0KCTxwYXRoIGZpbGw9IiNmMDYzMzUiIGQ9Ik01OC45NDIsNS42MDljLTMuNDQ0LDMuMzU0LTUuNTg3LDguMDM2LTUuNTg3LDEzLjIydjMwLjcxOGMwLDQuNTIxLTMuNjY4LDguMTg4LTguMTg4LDguMTg4SDI0LjU3NA0KCQljLTQuNTIsMC04LjE4OC0zLjY2OC04LjE4OC04LjE4OGMwLTQuNTIsMy42NjgtOC4xODgsOC4xODgtOC4xODhoMjIuNTgzVjI0Ljk3NEgyNC41NzRjLTEuMzk5LDAtMi43NjMsMC4xMTUtNC4wOTksMC4zNA0KCQlDOC44NiwyNy4yNiwwLDM3LjM3NywwLDQ5LjU0N2MwLDEwLjcsNi44NDMsMTkuODAzLDE2LjM4NiwyMy4xNzZjMS4zMTgsMC40NjYsMi42ODEsMC44MjUsNC4wOSwxLjA1OA0KCQljMS4zMzYsMC4yMjUsMi42OTksMC4zNDEsNC4wOTksMC4zNDFoMjAuNTkyYzEuMzk5LDAsMi43NjMtMC4xMTYsNC4wOTktMC4zNDFjMS40MDktMC4yMzIsMi43NzEtMC41OTIsNC4wOS0xLjA1OA0KCQlDNjIuODk3LDY5LjM1LDY5Ljc0LDYwLjI0Nyw2OS43NCw0OS41NDd2LTguMTg4YzkuMDUsMCwxNi4zODYtNy4zMzcsMTYuMzg2LTE2LjM4Nkg2OS43NHYtNi4xNDVjMC0xLjEzLDAuOTE1LTIuMDQ0LDIuMDQ1LTIuMDQ0DQoJCWg0LjA5OGM0Ljk5NiwwLDkuNTI1LTEuOTgyLDEyLjg0My01LjIxMmMyLjk4Ny0yLjkwNSw0Ljk5Ni02LjgwNyw1LjQ3MS0xMS4xNzRINzEuNzg2QzY2Ljc5OSwwLjM5OSw2Mi4yNjEsMi4zODEsNTguOTQyLDUuNjA5Ii8+DQoJPHBhdGggZmlsbD0iI2YwNjMzNSIgZD0iTTI0LjU3NSw3OC4yMThjLTQuNTIzLDAtOC4xOTEsMy42NjctOC4xOTEsOC4xOTFjMCw0LjUyMywzLjY2Nyw4LjE5MSw4LjE5MSw4LjE5MXM4LjE5MS0zLjY2OCw4LjE5MS04LjE5MQ0KCQlDMzIuNzY2LDgxLjg4NSwyOS4wOTgsNzguMjE4LDI0LjU3NSw3OC4yMTgiLz4NCgk8cGF0aCBmaWxsPSIjZjA2MzM1IiBkPSJNNDkuMTQ5LDc4LjIxOGMtNC41MjQsMC04LjE5MiwzLjY2Ny04LjE5Miw4LjE5MWMwLDQuNTIzLDMuNjY3LDguMTkxLDguMTkyLDguMTkxDQoJCWM0LjUyMywwLDguMTkxLTMuNjY4LDguMTkxLTguMTkxQzU3LjM0LDgxLjg4NSw1My42NzIsNzguMjE4LDQ5LjE0OSw3OC4yMTgiLz4NCjwvZz4NCjwvc3ZnPg0K",alt:(0,pe.__)("CartFlows Icon","cartflows")})),(0,e.createElement)("h2",{className:"wcf-no-access--title"},(0,pe.__)("No Access","cartflows")),(0,e.createElement)("div",{className:"wcf-no-access--message"},(0,pe.__)("You don't have permission to access this page.","cartflows")),(0,e.createElement)("div",{className:"wcf-no-access--action-link"},(0,e.createElement)(ie,{key:"wcf-back-to-home",to:{pathname:"admin.php",search:"?page=cartflows"},className:"wcf-no-access-link"},(0,pe.__)("Go back home","cartflows"),(0,e.createElement)("span",{className:"dashicons dashicons-arrow-right-alt"}))));const i=a.hash;let l="";if(o)return(0,e.createElement)(ec,null);switch(i){case"#general_settings":default:l=(0,e.createElement)(Gl,{data:r.general});break;case"#global_checkout":l=(0,e.createElement)(Kl,null);break;case"#facebook_pixel":l=(0,e.createElement)(Yl,{data:r.fb_pixel});break;case"#google_analytics":l=(0,e.createElement)(Wl,{data:r.ga_analytics});break;case"#miscellaneous_settings":l=(0,e.createElement)($l,{data:r.miscellaneous_settings});break;case"#permalink":l=(0,e.createElement)(Zl,{data:r.permalink});break;case"#auto_fields":l=(0,e.createElement)(Ql,{data:r.g_address_autocomplete});break;case"#other_settings":l=(0,e.createElement)(Xl,{data:r.other_setttings});break;case"#user_role_manager":l=(0,e.createElement)(Jl,{data:r.user_role_management})}return(0,e.createElement)("div",{className:"wcf-global-settings-metabox"},(0,e.createElement)("div",{className:"wcf-global-settings-metabox__tabs"},(0,e.createElement)("nav",{className:"wcf-global-settings-metabox__tabs-menu"},(0,e.createElement)(Vl,{title:(0,pe.__)("General Settings","cartflows"),slug:"#general_settings"}),(0,e.createElement)(Vl,{title:(0,pe.__)("Store Checkout","cartflows"),slug:"#global_checkout"}),(0,e.createElement)(Vl,{title:(0,pe.__)("Permalink","cartflows"),slug:"#permalink"}),(0,e.createElement)(Vl,{title:(0,pe.__)("Facebook Pixel","cartflows"),slug:"#facebook_pixel"}),(0,e.createElement)(Vl,{title:(0,pe.__)("Google Analytics","cartflows"),slug:"#google_analytics"}),(0,e.createElement)(Vl,{title:(0,pe.__)("Google Address Autocomplete","cartflows"),slug:"#auto_fields"}),(0,e.createElement)(Vl,{title:(0,pe.__)("User Role Manager","cartflows"),slug:"#user_role_manager"}),(0,e.createElement)(Vl,{title:(0,pe.__)("Other Settings","cartflows"),slug:"#other_settings"}),wcfCartflowsTypePlusPro()&&(0,e.createElement)(Vl,{title:(0,pe.__)("Miscellaneous Settings","cartflows"),slug:"#miscellaneous_settings"})),(0,e.createElement)("div",{className:"wcf-global-settings-metabox__current-tab"},(0,e.createElement)(e.Fragment,null,l))))},rc=function(){const t=J();return(0,e.createElement)("div",{className:"wcf-display--popup"},(0,e.createElement)("div",{className:"wcf-metabox wcf-welcome"},(0,e.createElement)("div",{className:"wcf-metabox__header"},(0,e.createElement)("div",{className:"wcf-metabox__title"},(0,e.createElement)("div",{className:"wcf-popup-header-title"},(0,e.createElement)("span",{className:"cartflows-logo-icon"})," ",(0,pe.__)("Getting Started","cartflows"))),(0,e.createElement)("div",{className:"wcf-popup-header-action wcf-welcome-box__actions-menu",title:"Hide this",onClick:e=>{e.preventDefault(),t.push("admin.php?page="+cartflows_admin.home_slug)}},(0,e.createElement)("span",{className:"dashicons dashicons-no"}))),(0,e.createElement)("div",{className:"wcf-metabox__body"},(0,e.createElement)("div",{className:"iframe-wrap"},(0,e.createElement)("iframe",{width:"100%",height:"400",src:"https://www.youtube.com/embed/SlE0moPKjMY",frameBorder:"0",allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:"",title:(0,pe.__)("Introduction to CartFlows","cartflows")}))),(0,e.createElement)("div",{className:"wcf-metabox__footer"},(0,e.createElement)("p",null,(0,pe.__)("Modernizing WordPress eCommerce!","cartflows")),(0,e.createElement)("div",{className:"wcf-welcome__action-buttons"},(0,e.createElement)(ie,{key:`?page=${cartflows_admin.home_slug}&path=flows`,to:{pathname:"admin.php",search:`?page=${cartflows_admin.home_slug}&path=library`},className:"button wcf-welcome--button button-primary",title:(0,pe.__)("Create Your First Flow","cartflows")},(0,e.createElement)("span",{className:""},(0,pe.__)("Create Your First Flow","cartflows"))),(0,e.createElement)("a",{className:"button wcf-welcome--button",href:cartflows_admin.admin_base_url+"index.php?page=cartflow-setup"},(0,e.createElement)("span",{className:""},(0,pe.__)("Go To Setup Wizard","cartflows")))))))},nc=function(){return(0,e.createElement)("div",{className:"wcf-section wcf-store-checkout-section"},(0,e.createElement)("div",{className:"wcf-section-icon"},(0,e.createElement)("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTIiIGhlaWdodD0iNTIiIHZpZXdCb3g9IjAgMCA1MiA1MiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxyZWN0IG9wYWNpdHk9IjAuMSIgd2lkdGg9IjUyIiBoZWlnaHQ9IjUyIiByeD0iMjYiIGZpbGw9IiNFRTVBMkYiLz4NCjxwYXRoIGQ9Ik00MC44NTE2IDIwLjgzNUwzOC43MzU5IDEySDMzLjEwOTFIMzAuMDkzMUgyNy40OTczSDI0LjQ5NjNIMjEuOTE1NUgxOC44ODQ1SDEzLjI1NzdMMTEuMTQyIDIwLjgzNUMxMC43ODE5IDIyLjM2NSAxMS4xMTIgMjMuOTI1IDEyLjA3MjMgMjUuMTU1QzEyLjE5MjMgMjUuMzIgMTIuMzU3NCAyNS40NCAxMi40OTI0IDI1LjU5VjM5SDM5LjUwMTFWMjUuNTlDMzkuNjM2MiAyNS40NTUgMzkuODAxMiAyNS4zMiAzOS45MjEzIDI1LjE3QzQwLjg4MTYgMjMuOTQgNDEuMjI2NyAyMi4zNjUgNDAuODUxNiAyMC44MzVaTTE4LjUyNDQgMTVMMTcuNjU0MSAyMi4yOUMxNy41MzQxIDIzLjI2NSAxNi43NTM4IDI0IDE1LjgzODUgMjRDMTUuMTAzMyAyNCAxNC42MzgxIDIzLjU2NSAxNC40NDMxIDIzLjI5NUMxNC4wNTI5IDIyLjggMTMuOTE3OSAyMi4xNTUgMTQuMDY3OSAyMS41NEwxNS42Mjg0IDE1SDE4LjUyNDRaTTM2LjM2NTEgMTVMMzcuOTQwNiAyMS41NEMzOC4wOTA3IDIyLjE3IDM3Ljk1NTYgMjIuOCAzNy41NjU1IDIzLjI5NUMzNy4zNTU0IDIzLjU2NSAzNi45MDUzIDI0IDM2LjE1NTEgMjRDMzUuMjM5OCAyNCAzNC40NDQ1IDIzLjI2NSAzNC4zMzk1IDIyLjI5TDMzLjQ2OTIgMTVIMzYuMzY1MVpNMzEuMjYzNSAyMS43OEMzMS4zMzg1IDIyLjM2NSAzMS4xNTg0IDIyLjk1IDMwLjc2ODMgMjMuMzg1QzMwLjQyMzIgMjMuNzc1IDI5Ljk0MyAyNCAyOS4zMjc5IDI0QzI4LjMyMjUgMjQgMjcuNDk3MyAyMy4xMTUgMjcuNDk3MyAyMi4wMzVWMTVIMzAuNDM4MkwzMS4yNjM1IDIxLjc4Wk0yNC40OTYzIDIyLjAzNUMyNC40OTYzIDIzLjExNSAyMy42NzEgMjQgMjIuNTYwNyAyNEMyMi4wNTA1IDI0IDIxLjU4NTQgMjMuNzc1IDIxLjIyNTIgMjMuMzg1QzIwLjg1MDEgMjIuOTUgMjAuNjcwMSAyMi4zNjUgMjAuNzMwMSAyMS43OEwyMS41NTUzIDE1SDI0LjQ5NjNWMjIuMDM1Wk0xNS40OTM0IDM2VjI2Ljk1NUMxNS42MTM0IDI2Ljk3IDE1LjcxODUgMjcgMTUuODM4NSAyN0MxNy4xNDM5IDI3IDE4LjMyOTMgMjYuNDYgMTkuMTk5NiAyNS41NzVDMjAuMDk5OSAyNi40NzUgMjEuMzAwMyAyNyAyMi42NjU3IDI3QzIzLjk3MTEgMjcgMjUuMTQxNSAyNi40NiAyNi4wMTE4IDI1LjYwNUMyNi44OTcxIDI2LjQ2IDI4LjA5NzUgMjcgMjkuNDQ3OSAyN0MzMC43MDgzIDI3IDMxLjkwODcgMjYuNDc1IDMyLjgwOSAyNS41NzVDMzMuNjc5MyAyNi40NiAzNC44NjQ2IDI3IDM2LjE3MDEgMjdDMzYuMjkwMSAyNyAzNi4zOTUxIDI2Ljk3IDM2LjUxNTIgMjYuOTU1VjM2SDE1LjQ5MzRaIiBmaWxsPSIjRUU1QTJGIi8+DQo8L3N2Zz4NCg==",alt:"Store Checkout Logo"})),(0,e.createElement)("div",{className:"wcf-section-info"},(0,e.createElement)("h2",{className:"wcf-section-title wcf-store-checkout-section__title"},(0,pe.__)("Setup Store Checkout","cartflows")),(0,e.createElement)("div",{className:"wcf-section-content wcf-store-checkout-section__content"},(0,e.createElement)("span",{className:"wcf-section-content-text wcf-store-checkout-section__content-text"},(0,pe.__)("By setting up the store checkout, your default checkout page will be replaced by the CartFlows modern checkout which will lead to more conversion and leads.","cartflows"))),(0,e.createElement)("div",{className:"wcf-button wcf-button--primary wcf-redirect-to-store-checkout",onClick:e=>{e.preventDefault(),window.location.replace(cartflows_admin.admin_base_url+"admin.php?page=cartflows&path=store-checkout")}},(0,pe.__)("Get Started","cartflows"))))},ac=function(){const[r,n]=(0,t.useState)((0,pe.__)("Connect with Stripe","cartflows"));return(0,e.createElement)("div",{className:"wcf-section wcf-store-stripe-connect-section"},(0,e.createElement)("div",{className:"wcf-section-icon"},(0,e.createElement)("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTIiIGhlaWdodD0iNTIiIHZpZXdCb3g9IjAgMCA1MiA1MiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxyZWN0IG9wYWNpdHk9IjAuMSIgd2lkdGg9IjUyIiBoZWlnaHQ9IjUyIiByeD0iMjYiIGZpbGw9IiNFRTVBMkYiLz4NCjxwYXRoIGQ9Ik0yNiAxMUMxNy43MiAxMSAxMSAxNy43MiAxMSAyNkMxMSAzNC4yOCAxNy43MiA0MSAyNiA0MUMzNC4yOCA0MSA0MSAzNC4yOCA0MSAyNkM0MSAxNy43MiAzNC4yOCAxMSAyNiAxMVpNMjYgMzhDMTkuMzg1IDM4IDE0IDMyLjYxNSAxNCAyNkMxNCAxOS4zODUgMTkuMzg1IDE0IDI2IDE0QzMyLjYxNSAxNCAzOCAxOS4zODUgMzggMjZDMzggMzIuNjE1IDMyLjYxNSAzOCAyNiAzOFpNMjYuNDY1IDI0LjcxQzIzLjgxIDI0LjAzNSAyMi45NTUgMjMuMyAyMi45NTUgMjIuMjA1QzIyLjk1NSAyMC45NDUgMjQuMTQgMjAuMDYgMjYuMTA1IDIwLjA2QzI4LjE3NSAyMC4wNiAyOC45NTUgMjEuMDUgMjkuMDE1IDIyLjUySDMxLjU4QzMxLjUwNSAyMC41MSAzMC4yNzUgMTguNjY1IDI3Ljg0NSAxOC4wNjVWMTUuNUgyNC4zNVYxOC4wMzVDMjIuMDg1IDE4LjUxNSAyMC4yNyAxOS45ODUgMjAuMjcgMjIuMjVDMjAuMjcgMjQuOTM1IDIyLjUwNSAyNi4yODUgMjUuNzYgMjcuMDY1QzI4LjY4NSAyNy43NTUgMjkuMjcgMjguNzkgMjkuMjcgMjkuODdDMjkuMjcgMzAuNjY1IDI4LjY4NSAzMS45NTUgMjYuMTIgMzEuOTU1QzIzLjcyIDMxLjk1NSAyMi43NzUgMzAuODc1IDIyLjY0IDI5LjQ5NUgyMC4wNkMyMC4yMSAzMi4wNDUgMjIuMSAzMy40ODUgMjQuMzUgMzMuOTVWMzYuNUgyNy44NlYzMy45OTVDMzAuMTQgMzMuNTYgMzEuOTQgMzIuMjU1IDMxLjk1NSAyOS44NEMzMS45NCAyNi41NCAyOS4xMDUgMjUuNCAyNi40NjUgMjQuNzFaIiBmaWxsPSIjRUU1QTJGIi8+DQo8L3N2Zz4NCg==",alt:"Connect Stripe Logo"})),(0,e.createElement)("div",{className:"wcf-section-info"},(0,e.createElement)("h2",{className:"wcf-section-title"},(0,pe.__)("Connect a Payment Gateway","cartflows")),(0,e.createElement)("div",{className:"wcf-section-content"},(0,e.createElement)("span",{className:"wcf-section-content-text"},(0,pe.__)("Stripe for WooCommerce delivers a simple, secure way to accept credit card payments in your WooCommerce store. Reduce payment friction and boost conversions using this free plugin! ","cartflows"),(0,xe.ZP)((0,pe.__)('Want to use a different gateway? CartFlows has support for many others including Authorize.net, Square, Mollie and more! <a href="https://cartflows.com/docs/supported-payment-gateways-by-cartflows/" target="_blank">See here.</a>',"cartflows")))),(0,e.createElement)("div",{className:"wcf-button wcf-stripe-connect-button",onClick:e=>{if(e.preventDefault(),n((0,pe.__)("Redirecting…","cartflows")),"not-installed"===cartflows_admin.cpsw_status)wp.updates.queue.push({action:"install-plugin",data:{slug:"checkout-plugins-stripe-woo"}}),wp.updates.queueChecker();else{const e=new window.FormData;e.append("action","cartflows_activate_plugin"),e.append("init","checkout-plugins-stripe-woo/checkout-plugins-stripe-woo.php"),e.append("security",cartflows_admin.activate_plugin_nonce),ue()({url:cartflows_admin.ajax_url,method:"POST",body:e}).then((e=>{e.data&&e.data.success&&window.location.replace(cartflows_admin.admin_base_url+"index.php?page=cpsw-onboarding")}))}}},r)))},oc=function(){return(0,e.createElement)("div",{className:"wcf-section wcf-email-report-section"},(0,e.createElement)("div",{className:"wcf-section-icon"},(0,e.createElement)("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTIiIGhlaWdodD0iNTIiIHZpZXdCb3g9IjAgMCA1MiA1MiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxyZWN0IG9wYWNpdHk9IjAuMSIgd2lkdGg9IjUyIiBoZWlnaHQ9IjUyIiByeD0iMjYiIGZpbGw9IiNFRTVBMkYiLz4NCjxwYXRoIGQ9Ik00MCAxNi44NzVDNDAgMTUuMjkzNyAzOC43NCAxNCAzNy4yIDE0SDE0LjhDMTMuMjYgMTQgMTIgMTUuMjkzNyAxMiAxNi44NzVWMzQuMTI1QzEyIDM1LjcwNjIgMTMuMjYgMzcgMTQuOCAzN0gzNy4yQzM4Ljc0IDM3IDQwIDM1LjcwNjIgNDAgMzQuMTI1VjE2Ljg3NVpNMzcuMiAxNi44NzVMMjYgMjQuMDYyNUwxNC44IDE2Ljg3NUgzNy4yWk0zNy4yIDM0LjEyNUgxNC44VjE5Ljc1TDI2IDI2LjkzNzVMMzcuMiAxOS43NVYzNC4xMjVaIiBmaWxsPSIjRUU1QTJGIi8+DQo8L3N2Zz4NCg==",alt:"Email Logo"})),(0,e.createElement)("div",{className:"wcf-section-info"},(0,e.createElement)("h2",{className:"wcf-section-title "},(0,pe.__)("Setup Email Reports","cartflows")),(0,e.createElement)("div",{className:"wcf-section-content "},(0,e.createElement)("span",{className:"wcf-section-content-text "},(0,pe.__)("Let CartFlows take the guesswork out of your checkout results. Each week your store will send you an email report with key metrics and insights. You also will receive emails from us to help your store sell more.","cartflows"))),(0,e.createElement)("div",{className:"wcf-button wcf-button--primary wcf-email-report-button",onClick:e=>{e.preventDefault(),window.location.replace(cartflows_admin.admin_base_url+"admin.php?page=cartflows&path=settings#other_settings")}},(0,pe.__)("Add Email Address","cartflows"))))},ic=function(){const[r,n]=(0,t.useState)((0,pe.__)("Get Started","cartflows"));return(0,e.createElement)("div",{className:"wcf-section .wcf-required-plugin-section"},(0,e.createElement)("div",{className:"wcf-section-icon"},(0,e.createElement)("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTIiIGhlaWdodD0iNTIiIHZpZXdCb3g9IjAgMCA1MiA1MiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxyZWN0IG9wYWNpdHk9IjAuMSIgd2lkdGg9IjUyIiBoZWlnaHQ9IjUyIiByeD0iMjYiIGZpbGw9IiNFRTVBMkYiLz4NCjxwYXRoIGQ9Ik0zMi4zNjI0IDI3LjRDMzMuNDEyMSAyNy40IDM0LjMzNTcgMjYuODI2IDM0LjgxMTUgMjUuOTU4TDM5LjgyMTcgMTYuODcyQzQwLjMzOTUgMTUuOTQ4IDM5LjY2NzcgMTQuOCAzOC42MDQxIDE0LjhIMTcuODkxOEwxNi41NzYzIDEySDEyVjE0LjhIMTQuNzk5TDE5LjgzNzEgMjUuNDI2TDE3Ljk0NzggMjguODQyQzE2LjkyNjIgMzAuNzE4IDE4LjI2OTcgMzMgMjAuMzk2OSAzM0gzNy4xOTA2VjMwLjJIMjAuMzk2OUwyMS45MzYzIDI3LjRIMzIuMzYyNFpNMTkuMjIxMyAxNy42SDM2LjIyNUwzMi4zNjI0IDI0LjZIMjIuNTM4MUwxOS4yMjEzIDE3LjZaTTIwLjM5NjkgMzQuNEMxOC44NTc1IDM0LjQgMTcuNjExOSAzNS42NiAxNy42MTE5IDM3LjJDMTcuNjExOSAzOC43NCAxOC44NTc1IDQwIDIwLjM5NjkgNDBDMjEuOTM2MyA0MCAyMy4xOTU4IDM4Ljc0IDIzLjE5NTggMzcuMkMyMy4xOTU4IDM1LjY2IDIxLjkzNjMgMzQuNCAyMC4zOTY5IDM0LjRaTTM0LjM5MTcgMzQuNEMzMi44NTIzIDM0LjQgMzEuNjA2NyAzNS42NiAzMS42MDY3IDM3LjJDMzEuNjA2NyAzOC43NCAzMi44NTIzIDQwIDM0LjM5MTcgNDBDMzUuOTMxMSA0MCAzNy4xOTA2IDM4Ljc0IDM3LjE5MDYgMzcuMkMzNy4xOTA2IDM1LjY2IDM1LjkzMTEgMzQuNCAzNC4zOTE3IDM0LjRaIiBmaWxsPSIjRUU1QTJGIi8+DQo8L3N2Zz4NCg==",alt:"Required plugin Logo"})),(0,e.createElement)("div",{className:"wcf-section-info"},(0,e.createElement)("h2",{className:"wcf-section-title "},(0,pe.__)("Recover Abandoned Carts","cartflows")),(0,e.createElement)("div",{className:"wcf-section-content "},(0,e.createElement)("span",{className:"wcf-section-content-text "},(0,pe.__)("Over 70% of buyers are abandoning your checkout, but we can automatically get them back into the checkout to complete their purchase. Use our cart abandonment plugin and automatically recover your lost revenue absolutely free.","cartflows"))),(0,e.createElement)("div",{className:"wcf-button wcf-button--primary ",onClick:e=>{if(e.preventDefault(),n((0,pe.__)("Please wait…","cartflows")),"not-installed"===cartflows_admin.ca_status)wp.updates.queue.push({action:"install-plugin",data:{slug:"woo-cart-abandonment-recovery"}}),wp.updates.queueChecker();else{const e=new window.FormData;e.append("action","cartflows_activate_plugin"),e.append("init","woo-cart-abandonment-recovery/woo-cart-abandonment-recovery.php"),e.append("security",cartflows_admin.activate_plugin_nonce),ue()({url:cartflows_admin.ajax_url,method:"POST",body:e}).then((e=>{e.data&&e.data.success&&n((0,pe.__)("Completed","cartflows")),window.location.reload()}))}}},r)))},sc=function(){return(0,e.createElement)("div",{className:"wcf-setup-page-wrapper"},""===cartflows_admin.global_checkout&&(0,e.createElement)(nc,null),("active"!==cartflows_admin.cpsw_status||!cartflows_admin.cpsw_connection_status)&&(0,e.createElement)(ac,null),"active"!==cartflows_admin.ca_status&&(0,e.createElement)(ic,null),""===cartflows_admin.is_set_report_email_ids&&(0,e.createElement)(oc,null),(0,e.createElement)("div",{className:"wcf-setup-page-dismiss-wrapper"},(0,e.createElement)("span",{onClick:e=>{e.preventDefault();const t=new window.FormData;t.append("action","cartflows_dismiss_setup_page"),t.append("security",cartflows_admin.dismiss_setup_page_nonce),ue()({url:cartflows_admin.ajax_url,method:"POST",body:t}).then((()=>{window.location.replace(cartflows_admin.admin_base_url+"admin.php?page=cartflows")}))}},(0,pe.__)("Dismiss Setup Screen","cartflows"))))};const lc=cartflows_admin.default_page_builder,cc=cartflows_admin.required_plugins,uc=cartflows_admin.required_plugins[lc],pc={};pc[lc]=Object.values(cartflows_admin.flows_and_steps);const fc={};fc[lc]=Object.values(cartflows_admin.store_checkout_flows_and_steps);const dc={default_page_builder:lc,page_builder_group_data:cc,page_builder_group:uc,preview:{},woocommerce_status:cartflows_admin.woocommerce_status,requiredPluginsData:cartflows_admin.required_plugins_data,missingPlugins:cartflows_admin.is_any_required_plugins_missing,flow_count:4,cf_pro_status:cartflows_admin.cf_pro_status,all_flows:{...pc},store_checkout_flows:{...fc},all_step_templates:(()=>{const e=[],t=cartflows_admin.flows_and_steps;return t&&t.forEach((t=>{t.steps.forEach((r=>{r.template_ID=t.ID,r.template_type=t.type,e.push(r)}))})),e})(),currentFlowSteps:Object.values(cartflows_admin.currentFlowSteps).length?cartflows_admin.currentFlowSteps["wcf-steps"]:[],flowsCount:(()=>{if(!Object.values(cartflows_admin.flows_count).length)return 0;let e=0;for(status in cartflows_admin.flows_count)"publish"===status&&(e+=parseInt(cartflows_admin.flows_count[status]));return e})(),currentFlowId:cartflows_admin.flow_id,selectedStep:"",license_status:cartflows_admin.license_status,stepTypes:{landing:"Landing",checkout:"Checkout (Woo)",upsell:"Upsell (Woo)",downsell:"Downsell (Woo)",thankyou:"Thank You (Woo)",optin:"Optin (Woo)"},storeStepTypes:{upsell:"Upsell (Woo)",downsell:"Downsell (Woo)",thankyou:"Thank You (Woo)"}};const hc={getCount(e){let{age:t}=e;return t},getAllFlows(e){let{all_flows:t}=e;return t},getStoreCheckoutFlows(e){let{store_checkout_flows:t}=e;return t},getFlowsList(e,t){let{all_flows:r}=e;return r[t]?r[t]:[]},getStoreCheckoutFlowsList(e,t){let{store_checkout_flows:r}=e;return r[t]?r[t]:[]},getAllStepTemplates(e){let{all_step_templates:t}=e;return t},isLimitReached(e){let{cf_pro_status:t,flow_count:r}=e;return("not-installed"===t||"inactive"===t)&&r>=3},getFlowsCount(e){let{}=e;return 0},getcurrentFlowId(e){let{currentFlowId:t}=e;return t},getLicenseStatus(e){let{license_status:t}=e;return t},getselectedStepTitle(e){let{stepTypes:t,selectedStep:r}=e;return t[r]||""},getselectedStep(e){let{selectedStep:t}=e;return t},getstepTypes(e){let{stepTypes:t}=e;return t},getStoreStepTypes(e){let{storeStepTypes:t}=e;return t},getcurrentFlowSteps(e){let{currentFlowSteps:t}=e;return t},getMissingPlugins(e){let{missingPlugins:t}=e;return t},getPreview(e){let{preview:t}=e;return t},getWooCommerceStatus(e){let{woocommerce_status:t}=e;return t},getDefaultPageBuilder(e){let{default_page_builder:t}=e;return t},getPageBuilderGroup(e){let{page_builder_group:t}=e;return t},getFlowCount(e){let{flow_count:t}=e;return t},getCFProStatus(e){let{cf_pro_status:t}=e;return t},getCurrentPageBuilderData(e,t){let{page_builder_group_data:r}=e;return r[t]},getRequiredPluginsData(e){let{requiredPluginsData:t}=e;return t}};var mc=hc;const{registerStore:gc}=wp.data;gc("wcf/importer",{reducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:dc,t=arguments.length>1?arguments[1]:void 0;return"SET_MISSING_PLUGINS"===t.type?(console.log("SET_MISSING_PLUGINS",t),{...e,missingPlugins:t.missingPlugins}):"UPDATE_WOOCOMMERCE_STATUS"===t.type?(console.log("UPDATE_WOOCOMMERCE_STATUS",t),{...e,woocommerce_status:t.woocommerce_status}):"UPDATE_CF_PRO_STATUS"===t.type?(console.log("UPDATE_CF_PRO_STATUS",t),{...e,cf_pro_status:t.cf_pro_status}):"SET_SELECTED_STEP"===t.type?(console.log("SET_SELECTED_STEP",t),{...e,selectedStep:t.selectedStep}):"SET_PREVIEW"===t.type?(console.log("SET_PREVIEW",t),{...e,preview:t.preview}):"SET_REQUIRED_PLUGINS"===t.type?(e.requiredPluginsData[t.page_builder]=t.value,{...e}):"SET_ALL_FLOWS"===t.type?(e.all_flows[t.page_builder]=t.flows,{...e}):e},actions:{updateWooCommerceStatus:e=>({type:"UPDATE_WOOCOMMERCE_STATUS",woocommerce_status:e}),updateCFProStatus:e=>({type:"UPDATE_CF_PRO_STATUS",cf_pro_status:e}),setMissingPlugins:e=>({type:"SET_MISSING_PLUGINS",missingPlugins:e}),setPreview:e=>({type:"SET_PREVIEW",preview:e}),setSelectedStep:e=>({type:"SET_SELECTED_STEP",selectedStep:e}),setRequiredPlugins:(e,t)=>({type:"SET_REQUIRED_PLUGINS",page_builder:e,value:t}),setAllFlows:(e,t)=>({type:"SET_ALL_FLOWS",flows:e,page_builder:t})},selectors:mc});var wc=(0,Nl.compose)((0,Cl.withDispatch)((e=>{const{setPreview:t}=e("wcf/importer");return{setPreview(e){t(e)}}})))((function(t){let{item:r,setPreview:n}=t;const{thumbnail_image_url:a,title:o,type:i}=r;return(0,e.createElement)("div",{className:"wcf-item",onClick:()=>n(r)},"pro"===i?(0,e.createElement)("span",{className:`wcf-item__type wcf-item__type--${i}`},i):"",(0,e.createElement)("div",{className:"wcf-item__inner "},(0,e.createElement)("div",{className:"wcf-item__thumbnail-wrap"},(0,e.createElement)("div",{className:"wcf-item__thumbnail",style:{backgroundImage:`url("${a}")`}})),(0,e.createElement)("span",{className:"wcf-item__view"},(0,e.createElement)("span",{className:"wcf-item__btn"},(0,pe.__)("View All Steps","cartflows"))),(0,e.createElement)("div",{className:"wcf-item__heading-wrap"},(0,e.createElement)("div",{className:"wcf-item__heading"},o))))})),bc=(0,Nl.compose)((0,Cl.withSelect)((e=>{const{getFlowsCount:t,getCFProStatus:r,getWooCommerceStatus:n}=e("wcf/importer");return{flowsCount:t(),cf_pro_status:r(),woocommerce_status:n()}})))((r=>{let{preview:n,cf_pro_status:a,woocommerce_status:o,flowName:i,setInputFieldVisibility:s}=r;const[l,c]=(0,t.useState)({cta:"",error_msg:""}),{cta:u,error_msg:p}=l,[f,d]=(0,t.useState)({isProcessing:!1,buttonText:(0,pe.__)("Import Flow","cartflows")}),{isProcessing:h,buttonText:m}=f,[g,w]=(0,t.useState)(!1),b=function(){w(!0),document.addEventListener("click",v)},v=function(){w(!1),document.removeEventListener("click",v)};if(u)return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",{className:"wcf-message wcf-message--error",dangerouslySetInnerHTML:{__html:u}}),(0,e.createElement)("a",{className:"wcf-error-message--toggle",onClick:function(e){e.preventDefault(),g?v():b()}},(0,pe.__)("Show Error info","cartflows")),g&&(0,e.createElement)("div",{className:"wcf-error--info",dangerouslySetInnerHTML:{__html:p}}));if("active"!==o)return"inactive"===o?(s("hidden"),(0,e.createElement)(Ol,null)):(s("hidden"),(0,e.createElement)(Tl,null));if("pro"===n.type){if(!wcfCartflowsTypePro())return"inactive"===a&&"pro"===wcfInactivepluginType()?(s("hidden"),(0,e.createElement)(Al,{description:(0,pe.__)("Access all of our pro templates by activating CartFlows Pro.","cartflows")})):(s("hidden"),(0,e.createElement)(Ml,{title:(0,pe.__)("Get CartFlows Pro","cartflows"),desc:(0,pe.__)("Access all of our pro templates when you upgrade your plan to CartFlows Pro today.","cartflows")}))}else if(wcfCartflowsTypePro()&&"Activated"!==cartflows_admin.license_status)return s("hidden"),(0,e.createElement)("div",{className:"wcf-name-your-flow__actions wcf-pro--required"},(0,e.createElement)("div",{className:"wcf-flow-import__message"},(0,e.createElement)("p",null,(0,pe.__)("Activate license for adding more flows and other features.","cartflows"))),(0,e.createElement)("div",{className:"wcf-flow-import__button"},(0,e.createElement)(Ll,null)));return(0,e.createElement)("div",{className:"wcf-flow-import__button"},(0,e.createElement)("button",{className:"wcf-button wcf-button--primary",onClick:e=>{e.preventDefault(),jQuery(e.target).closest(".wcf-name-your-flow__inner").find(".input-field").attr("disabled","disabled"),h||(d({isProcessing:!0,buttonText:(0,pe.__)("Importing Complete Flow..","carflows")}),((e,t,r,n)=>{console.log(e);const a=new window.FormData;a.append("action","cartflows_import_flow"),a.append("flow_name",n),a.append("security",cartflows_admin.import_flow_nonce),a.append("flow",JSON.stringify(e)),ue()({url:cartflows_admin.ajax_url,method:"POST",body:a}).then((e=>{console.log(e),e.success?(t({isProcessing:!1,buttonText:(0,pe.__)("Imported! Redirecting…","cartflows")}),setTimeout((()=>{window.location=`${cartflows_admin.admin_base_url}admin.php?page=cartflows&action=wcf-edit-flow&flow_id=${e.data.new_flow_id}`}),3e3)):"call_to_action"in e.data?r({cta:e.data.call_to_action,error_msg:e.data.message}):t({isProcessing:!1,buttonText:e.data.message})}))})(n,d,c,i))}},h?(0,e.createElement)(Dl,null):""," ",m))})),vc=(0,Nl.compose)((0,Cl.withSelect)((e=>{const{getFlowsCount:t,getCFProStatus:r,getLicenseStatus:n,getWooCommerceStatus:a}=e("wcf/importer");return{flowsCount:t(),cf_pro_status:r(),license_status:n(),woocommerce_status:a()}})))((r=>{let{flowName:n,isStoreCheckout:a}=r;const[o,i]=(0,t.useState)((0,pe.__)("Design Your Flow","cartflows"));console.log(a);const[s,l]=(0,t.useState)(!1);return(0,e.createElement)("div",{className:"wcf-name-your-flow__actions"},(0,e.createElement)("div",{className:"wcf-flow-import__button"},(0,e.createElement)("button",{className:"wcf-button wcf-button--primary",onClick:e=>{e.preventDefault(),jQuery(e.target).closest(".wcf-name-your-flow__inner").find(".input-field").attr("disabled","disabled"),((e,t,r,n,a)=>{if(r)return;e("Creating Flow.."),n(!0);const o=new window.FormData;o.append("action","cartflows_create_flow"),o.append("security",cartflows_admin.create_flow_nonce),o.append("flow_name",t),o.append("store_checkout",a),ue()({url:cartflows_admin.ajax_url,method:"POST",body:o}).then((t=>{console.log(t),t.success?(e((0,pe.__)("Created! Redirecting…","cartflows")),n(!1),setTimeout((()=>{let e=`admin.php?page=cartflows&action=wcf-edit-flow&flow_id=${t.data.flow_id}`;a&&(e="admin.php?page=cartflows&action=wcf-edit-store-checkout"),window.location=`${cartflows_admin.admin_base_url+e}`}),3e3)):e((0,pe.__)("Failed to Create Flow!","cartflows"))}))})(i,n,s,l,a)}},o)))}));const _c=t=>{let{preview:r,type:n,flowName:a,setInputFieldVisibility:o}=t;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wcf-name-your-flow__footer"},"import"===n&&(0,e.createElement)(bc,{preview:r,flowName:a,setInputFieldVisibility:o}),"blank"===n&&(0,e.createElement)(vc,{flowName:a,setInputFieldVisibility:o,isStoreCheckout:!1})))},yc=r=>{const{cf_pro_status:n,setVisibility:a,preview:o,type:i,flowName:l,setFlowName:c}=r,[u,p]=(0,t.useState)(""),[{flows_limit_over:f}]=s();return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wcf-name-your-flow__header"},(0,e.createElement)("div",{className:"wcf-name-your-flow__title"},(0,e.createElement)("h2",{className:"wcf-name-your-flow-popup__title"},(0,e.createElement)("span",{className:"cartflows-logo-icon"}),f?(0,pe.__)("Upgrade To CartFlows Pro","cartflows"):(0,pe.__)("Name Your Flow","cartflows"))),(0,e.createElement)("div",{className:"wcf-name-your-flow__menu",title:"Hide this",onClick:()=>a("hide")},(0,e.createElement)("span",{className:"dashicons dashicons-no"}))),(0,e.createElement)("div",{className:"wcf-name-your-flow__body"},(0,e.createElement)("div",{className:"wcf-text-field"},(0,e.createElement)("input",{type:"text",className:`input-field ${u}`,value:l,onChange:e=>c(e.target.value),placeholder:(0,pe.__)("Enter Flow Name","cartflows")})),(0,e.createElement)(_c,{cf_pro_status:n,setVisibility:a,preview:o,type:i,flowName:l,setFlowName:c,setInputFieldVisibility:p})))};var Ec=(0,Nl.compose)((0,Cl.withSelect)((e=>{const{getFlowsCount:t,getCFProStatus:r,getLicenseStatus:n}=e("wcf/importer");return{flowsCount:t(),cf_pro_status:r(),license_status:n()}})))((t=>{let{visibility:r,setVisibility:n,preview:o,type:i,flowName:s,setFlowName:l,cf_pro_status:c}=t;return(0,a.createPortal)((0,e.createElement)("div",{className:`wcf-name-your-flow ${r}`},(0,e.createElement)("div",{className:"wcf-name-your-flow__overlay",onClick:()=>n("hide")}),(0,e.createElement)("div",{className:"wcf-name-your-flow__inner"},(0,e.createElement)(yc,{cf_pro_status:c,setVisibility:n,preview:o,type:i,flowName:s,setFlowName:l}))),document.getElementById("wcf-json-importer"))})),xc=function(t){let{item:r,setPreviewImageURL:n,currentPreviewID:a,setCurrentPreviewID:o}=t;const{ID:i,title:s,type:l,thumbnail_image_url:c,featured_image_url:u}=r,p="wcf-item__inner "+(a===i?"wcf-item__inner--active":"");return(0,e.createElement)("div",{className:"wcf-item wcf-item--preview"},"pro"===l?(0,e.createElement)("span",{className:`wcf-item__type wcf-item__type--${l}`},l):"",(0,e.createElement)("div",{className:p,onClick:()=>{n(u),o(i)}},(0,e.createElement)("div",{className:"wcf-item__thumbnail-wrap"},(0,e.createElement)("div",{className:"wcf-item__thumbnail"},(0,e.createElement)("img",{className:"wcf-item__thumbnail-image",src:`${c}`,alt:(0,pe.__)("Flow thumbnail image","cartflows")}))),(0,e.createElement)("div",{className:"wcf-item__heading-wrap"},(0,e.createElement)("div",{className:"wcf-item__heading"},s))))},Sc=(0,Nl.compose)((0,Cl.withSelect)((e=>{const{getPreview:t}=e("wcf/importer");return{preview:t()}})),(0,Cl.withDispatch)((e=>{const{setPreview:t}=e("wcf/importer");return{setPreview:t}})))((function(r){let{preview:n,setPreview:a}=r;const{featured_image_url:o,steps:i,title:s}=n,l=cartflows_admin.template_library_url+"preview/?flow="+n.ID,c=Object.values(i),u=c.length?c[0].ID:"",[p,f]=(0,t.useState)(o),[d,h]=(0,t.useState)(u),[m,g]=(0,t.useState)("hide"),[w,b]=(0,t.useState)("");return window.scrollTo(0,0),(0,e.createElement)(t.Fragment,null,(0,e.createElement)("div",{className:"wcf-flow-preview-wrap"},(0,e.createElement)("div",{className:"wcf-flex"},(0,e.createElement)("span",{className:"wcf-button wcf-button--secondary wcf-button--back",onClick:()=>a({})},(0,e.createElement)("span",{className:"wcf-flows-header__text"},(0,pe.__)("Back","cartflows"))),(0,e.createElement)("div",{className:"wcf-flow-preview__heading"},s),(0,e.createElement)("div",{className:"wcf-flow-preview__actions"},(0,e.createElement)("a",{className:"wcf-button wcf-button--secondary",href:l,target:"_blank",rel:"noreferrer"},"Preview"),(0,e.createElement)("span",{className:"wcf-button wcf-button--primary",onClick:()=>{g("hide"===m?"show":"hide")}},(0,pe.__)("Import Flow","cartflows")),(0,e.createElement)(Ec,{visibility:m,setVisibility:g,preview:n,type:"import",flowName:w,setFlowName:b}))),(0,e.createElement)("div",{className:"wcf-flow-preview"},(0,e.createElement)("div",{className:"wcf-flow-preview__item"},(0,e.createElement)("div",{className:"wcf-flow-preview__inner"},(0,e.createElement)("div",{className:"wcf-flow-preview__thumbnail-wrap"},(0,e.createElement)("img",{className:"wcf-flow-preview__thumbnail",src:p,alt:(0,pe.__)("Flow Preview","cartflows")})))),(0,e.createElement)("div",{className:"wcf-flow-preview__list wcf-items-list"},c.map((t=>(0,e.createElement)(xc,{key:t.ID,item:t,setPreviewImageURL:f,currentPreviewID:d,setCurrentPreviewID:h})))))))})),Nc=(0,Nl.compose)((0,Cl.withSelect)((()=>{const[{page_builder:e,page_builder_group_data:t}]=s();return{page_builder_group:t[e],default_page_builder:e}})),(0,Cl.withDispatch)((e=>{const{setRequiredPlugins:t,setAllFlows:r}=e("wcf/importer");return{setRequiredPlugins:t,setAllFlows:r}})))((r=>{let{setRequiredPlugins:n,setAllFlows:a,default_page_builder:o,page_builder_group:i}=r;const[{page_builder:l}]=s(),[c,u]=(0,t.useState)(!1),p=i.title;let f=`Please click here and activate ${p}`,d="";if("divi"===o){d=i["theme-status"];const e=i["plugin-status"];"deactivate"===d||"install"===e?f=`Please activate ${p}`:"deactivate"!==d&&"not-installed"!==d||"install"!==e||(f=`Please install and activate ${p}`)}function h(e){const t=new window.FormData;t.append("action","cartflows_activate_plugin"),t.append("init",e.init),t.append("security",cartflows_admin.activate_plugin_nonce),ue()({url:cartflows_admin.ajax_url,method:"POST",body:t}).then((()=>{u(!1),n(l,"no"),a([])}))}const[m,g]=(0,t.useState)("hide"),[w,b]=(0,t.useState)("");return(0,e.createElement)("div",{className:"wcf-flow-importer wcf-flow-library--other"},(0,e.createElement)("div",{className:"wcf-flow-importer__header"},(0,e.createElement)("div",{className:"wcf-flow-importer__header-title"},(0,e.createElement)("span",{className:"cartflows-logo-icon"}),(0,pe.__)("Flow Templates","cartflows"))),(0,e.createElement)("div",{className:"wcf-flow-importer__list wcf-items-list wcf-row wcf-flow-row"},(0,e.createElement)(Ec,{visibility:m,setVisibility:g,type:"blank",flowName:w,setFlowName:b}),(0,e.createElement)("div",{className:"wcf-item wcf-item__start-from-blank"},(0,e.createElement)("div",{className:"wcf-item__inner",onClick:()=>{g("hide"===m?"show":"hide")}},(0,e.createElement)("div",{className:"wcf-item__thumbnail-wrap"},(0,e.createElement)("div",{className:"wcf-item__thumbnail"},(0,e.createElement)("div",{className:"wcf-flow-importer__start-from-blank-icon"},(0,e.createElement)("span",{className:"wcf-icon dashicons dashicons-plus wcf-icon-start-from-blank"})))),(0,e.createElement)("div",{className:"wcf-item__heading-wrap"},(0,e.createElement)("div",{className:"wcf-item__heading"},(0,pe.__)("Start from scratch","cartflows")))),(0,e.createElement)("div",{className:"wcf_item__info"},(0,e.createElement)("h3",{className:"wcf_item__info--title"},(0,pe.__)("It seems that the page builder you selected is inactive.","cartflows")),(0,e.createElement)("p",{className:"wcf_item__info--notice"},c?(0,e.createElement)(Dl,null):"",(0,e.createElement)("a",{href:"#",onClick:function(e){e.preventDefault(),console.log("clicked"),u(!0);const t=cartflows_admin.required_plugins[o].plugins;let r=0,n=0;for(const e of t)"install"===e.status&&r++,"activate"===e.status&&n++;r?function(e){console.log("Installing all plugins",e);for(const t of e)"install"===t.status&&(console.log("plugin.slug",t.slug),wp.updates.queue.push({action:"install-plugin",data:{slug:t.slug,init:t.init,name:t.name,success(){console.log("Installed Successfully! Activating plugin ",t.slug),h(t)},error(){}}}));wp.updates.queueChecker()}(t):n&&(console.log("remaining_active_plugins",n),function(e){for(const t of e)"activate"===t.status&&h(t)}(t))}},f)," ","to see CartFlows templates. If you prefer another page builder tool, you can"," ",(0,e.createElement)(ie,{key:`?page=${cartflows_admin.home_slug}&path=settings`,to:{pathname:"admin.php",search:`?page=${cartflows_admin.home_slug}&path=settings`}},"select it here"),"."),(0,e.createElement)("span",{className:"wcf_item__info--desc"},(0,pe.__)("Are you using any other page builder? No worries. CartFlows works well with every other page builder. Right now we do not have ready templates for every page builder but we are planning to add it very soon.","cartflows")),(0,e.createElement)("a",{className:"wcf_item__info--doc",href:"https://cartflows.com/docs/how-to-use-cartflows-with-your-own-template/",target:"_blank",rel:"noreferrer"},(0,pe.__)("Learn How ","cartflows"),(0,e.createElement)("i",{className:"dashicons dashicons-external"}))))))}));const Cc=t=>{let{text:r}=t;return(0,e.createElement)("span",{className:"wcf-sync__title"}," ",r)};var kc=(0,t.memo)((r=>{const n=(0,pe.__)("Sync Library","cartflows"),{template:a}=r,o=a||"",[i,s]=(0,t.useState)({isProcessing:!1,buttonText:n}),{isProcessing:l,buttonText:c}=i,u=async(e,t)=>{const r=new window.FormData;r.append("action","cartflows_import_sites"),r.append("page_no",e),r.append("template",o),r.append("security",cartflows_admin.import_sites_nonce),await ue()({url:cartflows_admin.ajax_url,method:"POST",body:r}).then((r=>{console.log(r),r.success?(console.log("SUCCESS: processImportSites"),s({isProcessing:!0,buttonText:(0,pe.sprintf)(
10
  /* translators: %d is replaced with the condition number */
11
+ (0,pe.__)("Importing page %d","cartflows"),e)}),console.log("i === total"),console.log(`${e} === ${t}`),console.log(e===t),e===t&&(async()=>{const e=new window.FormData;e.append("action","cartflows_update_library_complete"),e.append("template",o),e.append("security",cartflows_admin.update_library_complete_nonce),s({isProcessing:!0,buttonText:(0,pe.__)("Sync Complete","cartflows")}),await ue()({url:cartflows_admin.ajax_url,method:"POST",body:e}).then((e=>{console.log(e),e.success?(console.log("SUCCESS: processupdateLibraryComplete"),console.log("=== SYNC COMPLETE ==="),s({isProcessing:!1,buttonText:(0,pe.__)("Sync Complete","cartflows")})):console.log("FAILED: processupdateLibraryComplete")})).catch((e=>{console.log(e),console.log("ERROR: processupdateLibraryComplete")}))})()):console.log("FAILED: processImportSites")})).catch((e=>{console.log(e),console.log("ERROR: processImportSites")}))};return(0,e.createElement)("span",{className:"wcf-sync wcf-button wcf-button--secondary",onClick:e=>{e.preventDefault(),s({isProcessing:!0,buttonText:(0,pe.__)("Syncing Libray…","cartflows")}),(async()=>{console.log("Started");try{console.log("=== SYNC STARTED ===");const e=new window.FormData;e.append("action","cartflows_sync_library"),e.append("template",o),e.append("security",cartflows_admin.sync_library_nonce),await ue()({url:cartflows_admin.ajax_url,method:"POST",body:e}).then((e=>{console.log(e),e.success?(console.log("SUCCESS: processSyncLibrary"),"updated"===e.data?(s({isProcessing:!1,buttonText:(0,pe.__)("Library Synced","cartflows")}),setTimeout((()=>{s({isProcessing:!1,buttonText:n})}),5e3)):(async()=>{const e=new window.FormData;e.append("action","cartflows_request_count"),e.append("template",o),e.append("security",cartflows_admin.request_count_nonce),await ue()({url:cartflows_admin.ajax_url,method:"POST",body:e}).then((async e=>{if(console.log(e),e.success){console.log("SUCCESS: processRequestCount"),console.log(e),s({isProcessing:!0,buttonText:"Importing Pages.."});const t=e.data.count;console.log("total",t);for(let e=1;e<=t;e++)console.log("i",e),u(e,t)}else console.log("FAILED: processRequestCount")})).catch((e=>{console.log(e),console.log("ERROR: processRequestCount")}))})()):(console.log(e),console.log("FAILED: processSyncLibrary"))})).catch((e=>{console.log(e),console.log("ERROR: processSyncLibrary")}))}catch(e){console.log("Complete: Failed"),console.log(e)}})()}},l?(0,e.createElement)(Dl,null):(0,e.createElement)("span",{className:"wcf-icon dashicons dashicons-update"}),(0,e.createElement)(Cc,{text:c}))})),Dc=()=>{const[r,n]=(0,t.useState)("hide"),[a,o]=(0,t.useState)("");return(0,e.createElement)("div",{className:"wcf-flow-importer wcf-search-404"},(0,e.createElement)("div",{className:"wcf-flow-importer__list wcf-items-list wcf-row wcf-flow-row"},(0,e.createElement)(Ec,{visibility:r,setVisibility:n,type:"blank",flowName:a,setFlowName:o}),(0,e.createElement)("div",{className:"wcf-item wcf-item__start-from-blank"},(0,e.createElement)("div",{className:"wcf-item__inner",onClick:()=>{n("hide"===r?"show":"hide")}},(0,e.createElement)("div",{className:"wcf-item__thumbnail-wrap"},(0,e.createElement)("div",{className:"wcf-item__thumbnail"},(0,e.createElement)("div",{className:"wcf-flow-importer__start-from-blank-icon"},(0,e.createElement)("span",{className:"wcf-icon dashicons dashicons-plus wcf-icon-start-from-blank"})))),(0,e.createElement)("div",{className:"wcf-item__heading-wrap"},(0,e.createElement)("div",{className:"wcf-item__heading"},(0,pe.__)("Start from scratch","cartflows")))),(0,e.createElement)("div",{className:"wcf_item__info"},(0,e.createElement)("h3",{className:"wcf_item__info--title"},(0,pe.__)("No Results Found.","cartflows")),(0,e.createElement)("span",{className:"wcf_item__info--desc"},(0,pe.__)("Don't see a funnel that you would like to import?","cartflows")),(0,e.createElement)("a",{className:"wcf_item__info--doc",href:"https://cartflows.com/funnel-suggestions/",target:"_blank",rel:"noreferrer"},(0,pe.__)("Please suggest us ","cartflows"),(0,e.createElement)("i",{className:"dashicons dashicons-external"}))))))},Oc=function(){return(0,e.createElement)("div",{className:"wcf-flow-importer__list wcf-items-list wcf-row wcf-flow-row is-placeholder"},(()=>{const t=[];for(let r=0;r<12;r++)t.push((0,e.createElement)("div",{className:"wcf-item"},(0,e.createElement)("div",{className:"wcf-item__thumbnail-wrap"},(0,e.createElement)(me,{height:"240px"})),(0,e.createElement)("div",{className:"wcf-item__heading-wrap"},(0,e.createElement)(me,{width:"100%",height:"35px"}))));return t})())},Tc=(0,Nl.compose)((0,Cl.withDispatch)((e=>{const{setAllFlows:t}=e("wcf/importer");return{setAllFlows:t}})))((function(r){let{setAllFlows:n}=r,a="no";const[{page_builder:o}]=s(),{currentPageBuilderData:i,requiredPluginsData:l,preview:c,all_flows:u,flows_list:p}=(0,Cl.useSelect)((e=>({currentPageBuilderData:e("wcf/importer").getCurrentPageBuilderData(o),requiredPluginsData:e("wcf/importer").getRequiredPluginsData(),preview:e("wcf/importer").getPreview(),all_flows:e("wcf/importer").getAllFlows(),flows_list:e("wcf/importer").getFlowsList(o)})));if("yes"===l[o]&&i&&null!=i&&i.plugins&&(null==i||i.plugins.map((function(e){return"install"!==e.status&&"activate"!==e.status||(a="yes"),""}))),"yes"===a)return(0,e.createElement)(Nc,null);(0,t.useEffect)((()=>{let e=!0;if(!u[o]){const t=new window.FormData;t.append("action","cartflows_get_flows_list"),t.append("security",cartflows_admin.get_flows_list_nonce),(async()=>{ue()({url:cartflows_admin.ajax_url,method:"POST",body:t}).then((t=>{var r;if(console.log(t),e&&null!=t&&null!==(r=t.data)&&void 0!==r&&r.flows){const e=Object.values(t.data.flows);h(e),n(e,o)}}))})()}return()=>{e=!1}}),[u]);const f=(0,t.createRef)(),[d,h]=(0,t.useState)(p),[m,g]=(0,t.useState)("search"),w=function(e){if(e){g("cancel");const t=e.toLowerCase(),r=p.filter((function(e){return(e.title&&e.title.toLowerCase()||"").includes(t)}));h(r)}else g("search"),h(p)},[b,v]=(0,t.useState)("hide"),[_,y]=(0,t.useState)("");return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wcf-flow-importer"},Object.keys(c).length?(0,e.createElement)(Sc,null):(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wcf-flow-importer__header"},(0,e.createElement)("div",{className:"wcf-flow-importer__header-title"},(0,e.createElement)("span",{className:"cartflows-logo-icon"}),(0,pe.__)("Flow Templates","cartflows")),(0,e.createElement)("div",{className:"wcf-flow-importer__actions"},(0,e.createElement)("div",{className:"wcf-flow-importer__actions-content-left"},(0,e.createElement)("div",{className:"wcf-flow-importer__actions-search"},(0,e.createElement)("form",{className:"wcf-search__form",onSubmit:function(e){e.preventDefault(),"cancel"===m&&(f.current.value="",w(""))}},(0,e.createElement)(De,{attr:{ref:f},label:"",placeholder:(0,pe.__)("Search Templates","cartflows"),class:"input-field",id:"s",value:"",onChangeCB:w}),(0,e.createElement)("button",{className:"wcf-search__button"},"search"===m&&(0,e.createElement)("span",{className:"dashicons dashicons-search"}),"cancel"===m&&(0,e.createElement)("span",{className:"dashicons dashicons-no"}))))),(0,e.createElement)("div",{className:"wcf-flow-importer__actions-content-right"},(0,e.createElement)("div",{className:"wcf-flow-importer__actions-buttons"},(0,e.createElement)(kc,null))))),p.length<1&&d.length<1&&(0,e.createElement)(Oc,null),p.length>0&&0===d.length&&(0,e.createElement)(Dc,null),p.length>0&&0<d.length&&(0,e.createElement)("div",{className:"wcf-flow-importer__list wcf-items-list wcf-row wcf-flow-row"},(0,e.createElement)(Ec,{visibility:b,setVisibility:v,type:"blank",flowName:_,setFlowName:y}),(0,e.createElement)("div",{className:"wcf-item wcf-item__start-from-blank"},(0,e.createElement)("div",{className:"wcf-item__inner",onClick:()=>{v("hide"===b?"show":"hide")}},(0,e.createElement)("div",{className:"wcf-item__thumbnail-wrap"},(0,e.createElement)("div",{className:"wcf-item__thumbnail"},(0,e.createElement)("div",{className:"wcf-flow-importer__start-from-blank-icon"},(0,e.createElement)("span",{className:"wcf-icon dashicons dashicons-plus wcf-icon-start-from-blank"})))),(0,e.createElement)("div",{className:"wcf-item__heading-wrap"},(0,e.createElement)("div",{className:"wcf-item__heading"},(0,pe.__)("Start from scratch","cartflows"))))),d.map((t=>(0,e.createElement)(wc,{key:t.ID,item:t})))))))})),Ac=()=>{const[r,n]=(0,t.useState)("hide"),[a,o]=(0,t.useState)("");return(0,e.createElement)("div",{className:"wcf-flow-importer wcf-flow-library--other"},(0,e.createElement)("div",{className:"wcf-flow-importer__header"},(0,e.createElement)("div",{className:"wcf-flow-importer__header-title"},(0,e.createElement)("span",{className:"cartflows-logo-icon"}),(0,pe.__)("Flow Templates","cartflows"))),(0,e.createElement)("div",{className:"wcf-flow-importer__list wcf-items-list wcf-row wcf-flow-row"},(0,e.createElement)(Ec,{visibility:r,setVisibility:n,type:"blank",flowName:a,setFlowName:o}),(0,e.createElement)("div",{className:"wcf-item wcf-item__start-from-blank"},(0,e.createElement)("div",{className:"wcf-item__inner",onClick:()=>{n("hide"===r?"show":"hide")}},(0,e.createElement)("div",{className:"wcf-item__thumbnail-wrap"},(0,e.createElement)("div",{className:"wcf-item__thumbnail"},(0,e.createElement)("div",{className:"wcf-flow-importer__start-from-blank-icon"},(0,e.createElement)("span",{className:"wcf-icon dashicons dashicons-plus wcf-icon-start-from-blank"})))),(0,e.createElement)("div",{className:"wcf-item__heading-wrap"},(0,e.createElement)("div",{className:"wcf-item__heading"},(0,pe.__)("Start from scratch","cartflows")))),(0,e.createElement)("div",{className:"wcf_item__info"},(0,e.createElement)("h3",{className:"wcf_item__info--title"},(0,pe.__)("It seems that you are using the page builder other than Elementor, Beaver Builder, Divi & Gutenberg.","cartflows")),(0,e.createElement)("span",{className:"wcf_item__info--desc"},(0,pe.__)("Are you using any other page builder? No worries. CartFlows works well with every other page builder. Right now we do not have ready templates for every page builder but we are planning to add it very soon.","cartflows")),(0,e.createElement)("a",{className:"wcf_item__info--doc",href:"https://cartflows.com/docs/how-to-use-cartflows-with-your-own-template/",target:"_blank",rel:"noreferrer"},(0,pe.__)("Learn How ","cartflows"),(0,e.createElement)("i",{className:"dashicons dashicons-external"}))))))},Mc=()=>{const[{page_builder:t}]=s();return"other"!==t?(0,e.createElement)(Tc,null):(0,e.createElement)(Ac,null)},Lc=function(t){let{item:r,setPreviewImageURL:n,currentPreviewID:a,setCurrentPreviewID:o}=t;const{ID:i,title:s,type:l,thumbnail_image_url:c,featured_image_url:u}=r,p="wcf-item__inner "+(a===i?"wcf-item__inner--active":"");return(0,e.createElement)("div",{className:"wcf-item wcf-item--preview"},"pro"===l?(0,e.createElement)("span",{className:`wcf-item__type wcf-item__type--${l}`},l):"",(0,e.createElement)("div",{className:p,onClick:()=>{n(u),o(i)}},(0,e.createElement)("div",{className:"wcf-item__thumbnail-wrap"},(0,e.createElement)("div",{className:"wcf-item__thumbnail"},(0,e.createElement)("img",{className:"wcf-item__thumbnail-image",src:`${c}`,alt:(0,pe.__)("Flow thumbnail image","cartflows")}))),(0,e.createElement)("div",{className:"wcf-item__heading-wrap"},(0,e.createElement)("div",{className:"wcf-item__heading"},s))))},Ic=(0,Nl.compose)((0,Cl.withSelect)((e=>{const{getPreview:t}=e("wcf/importer");return{preview:t()}})),(0,Cl.withDispatch)((e=>{const{setPreview:t}=e("wcf/importer");return{setPreview:t}})))((function(r){let{preview:n,setPreview:a}=r;const{featured_image_url:o,steps:i,title:s}=n,l=cartflows_admin.template_library_url+"preview/?flow="+n.ID,c=[];Object.values(i).forEach((function(e){["checkout","thankyou"].includes(e.type)&&c.push(e)})),console.log(c);const u=c.length?c[0].ID:"",[p,f]=(0,t.useState)(o),[d,h]=(0,t.useState)(u),[m,g]=(0,t.useState)("");return window.scrollTo(0,0),(0,e.createElement)(t.Fragment,null,(0,e.createElement)("div",{className:"wcf-flow-preview-wrap"},(0,e.createElement)("div",{className:"wcf-flex"},(0,e.createElement)("span",{className:"wcf-button wcf-button--secondary wcf-button--back",onClick:()=>a({})},(0,e.createElement)("span",{className:"wcf-flows-header__text"},(0,pe.__)("Back","cartflows"))),(0,e.createElement)("div",{className:"wcf-flow-preview__heading"},s),(0,e.createElement)("div",{className:"wcf-flow-preview__actions"},(0,e.createElement)("a",{className:"wcf-button wcf-button--secondary",href:l,target:"_blank",rel:"noreferrer"},"Preview"),(0,e.createElement)(Pl,{preview:n,flowName:(0,pe.__)("Store Checkout","cartflows"),inputFieldVisibility:m,setInputFieldVisibility:g,isStoreCheckout:!0}))),(0,e.createElement)("div",{className:"wcf-flow-preview"},(0,e.createElement)("div",{className:"wcf-flow-preview__item"},(0,e.createElement)("div",{className:"wcf-flow-preview__inner"},(0,e.createElement)("div",{className:"wcf-flow-preview__thumbnail-wrap"},(0,e.createElement)("img",{className:"wcf-flow-preview__thumbnail",src:p,alt:(0,pe.__)("Flow Preview","cartflows")})))),(0,e.createElement)("div",{className:"wcf-flow-preview__list wcf-items-list"},c.map((t=>(0,e.createElement)(Lc,{key:t.ID,item:t,setPreviewImageURL:f,currentPreviewID:d,setCurrentPreviewID:h})))))))}));const jc=t=>{let{preview:r,type:n,flowName:a,setInputFieldVisibility:o}=t;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wcf-name-your-flow__footer"},"import"===n&&(0,e.createElement)(Pl,{preview:r,flowName:a,setInputFieldVisibility:o}),"blank"===n&&(0,e.createElement)(ql,{flowName:a,setInputFieldVisibility:o,isStoreCheckout:!1})))},Pc=r=>{const{cf_pro_status:n,setVisibility:a,preview:o,type:i,flowName:l,setFlowName:c}=r,[u,p]=(0,t.useState)(""),[{flows_limit_over:f}]=s();return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wcf-name-your-flow__header"},(0,e.createElement)("div",{className:"wcf-name-your-flow__title"},(0,e.createElement)("h2",{className:"wcf-name-your-flow-popup__title"},(0,e.createElement)("span",{className:"cartflows-logo-icon"}),f?(0,pe.__)("Upgrade To CartFlows Pro","cartflows"):(0,pe.__)("Name Store Checkout","cartflows"))),(0,e.createElement)("div",{className:"wcf-name-your-flow__menu",title:"Hide this",onClick:()=>a("hide")},(0,e.createElement)("span",{className:"dashicons dashicons-no"}))),(0,e.createElement)("div",{className:"wcf-name-your-flow__body"},f?(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wcf-name-your-flow__footer"},(0,e.createElement)("div",{className:"wcf-name-your-flow__actions wcf-pro--required wcf-upgrade-pro"},(0,e.createElement)("div",{className:"wcf-flow-import__message"},(0,e.createElement)("p",null,(0,pe.__)("You can't create more than 3 flows in free version. Upgrade to CartFlows Pro for adding more flows and other features.","cartflows"))),(0,e.createElement)("div",{className:"wcf-flow-import__button"},(0,e.createElement)("div",{className:"wcf-name-your-flow__actions wcf-pro--required"},(0,e.createElement)("div",{className:"wcf-flow-import__button"},(0,e.createElement)("a",{href:"https://cartflows.com/",target:"_blank",className:"wcf-button wcf-button--primary",rel:"noreferrer"},(0,pe.__)("Upgrade To Cartflows Pro","cartflows")))))))):(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wcf-text-field"},(0,e.createElement)("input",{type:"text",className:`input-field ${u}`,value:l,onChange:e=>c(e.target.value),placeholder:(0,pe.__)("Enter Flow Name","cartflows")})),(0,e.createElement)(jc,{cf_pro_status:n,setVisibility:a,preview:o,type:i,flowName:l,setFlowName:c,setInputFieldVisibility:p}))))};var qc=(0,Nl.compose)((0,Cl.withSelect)((e=>{const{getFlowsCount:t,getCFProStatus:r,getLicenseStatus:n}=e("wcf/importer");return{flowsCount:t(),cf_pro_status:r(),license_status:n()}})))((t=>{let{visibility:r,setVisibility:n,preview:o,type:i,flowName:s,setFlowName:l,cf_pro_status:c}=t;return(0,a.createPortal)((0,e.createElement)("div",{className:`wcf-name-your-flow ${r}`},(0,e.createElement)("div",{className:"wcf-name-your-flow__overlay",onClick:()=>n("hide")}),(0,e.createElement)("div",{className:"wcf-name-your-flow__inner"},(0,e.createElement)(Pc,{cf_pro_status:c,setVisibility:n,preview:o,type:i,flowName:s,setFlowName:l}))),document.getElementById("wcf-json-importer"))})),Rc=()=>{const[r,n]=(0,t.useState)("hide"),[a,o]=(0,t.useState)("");return(0,e.createElement)("div",{className:"wcf-flow-importer wcf-search-404"},(0,e.createElement)("div",{className:"wcf-flow-importer__list wcf-items-list wcf-row wcf-flow-row"},(0,e.createElement)(Bl,{visibility:r,setVisibility:n,type:"blank",flowName:a,setFlowName:o}),(0,e.createElement)("div",{className:"wcf-item wcf-item__start-from-blank"},(0,e.createElement)("div",{className:"wcf-item__inner",onClick:()=>{n("hide"===r?"show":"hide")}},(0,e.createElement)("div",{className:"wcf-item__thumbnail-wrap"},(0,e.createElement)("div",{className:"wcf-item__thumbnail"},(0,e.createElement)("div",{className:"wcf-flow-importer__start-from-blank-icon"},(0,e.createElement)("span",{className:"wcf-icon dashicons dashicons-plus wcf-icon-start-from-blank"})))),(0,e.createElement)("div",{className:"wcf-item__heading-wrap"},(0,e.createElement)("div",{className:"wcf-item__heading"},(0,pe.__)("Start from scratch","cartflows")))),(0,e.createElement)("div",{className:"wcf_item__info"},(0,e.createElement)("h3",{className:"wcf_item__info--title"},(0,pe.__)("No Results Found.","cartflows")),(0,e.createElement)("span",{className:"wcf_item__info--desc"},(0,pe.__)("Don't see a funnel that you would like to import?","cartflows")),(0,e.createElement)("a",{className:"wcf_item__info--doc",href:"https://cartflows.com/funnel-suggestions/",target:"_blank",rel:"noreferrer"},(0,pe.__)("Please suggest us ","cartflows"),(0,e.createElement)("i",{className:"dashicons dashicons-external"}))))))},Fc=()=>{const[r,n]=(0,t.useState)("hide"),[a,o]=(0,t.useState)("");return(0,e.createElement)("div",{className:"wcf-flow-importer wcf-search-404"},(0,e.createElement)("div",{className:"wcf-flow-importer__list wcf-items-list wcf-row wcf-flow-row"},(0,e.createElement)(Bl,{visibility:r,setVisibility:n,type:"blank",flowName:a,setFlowName:o}),(0,e.createElement)("div",{className:"wcf-item wcf-item__start-from-blank"},(0,e.createElement)("div",{className:"wcf-item__inner",onClick:()=>{n("hide"===r?"show":"hide")}},(0,e.createElement)("div",{className:"wcf-item__thumbnail-wrap"},(0,e.createElement)("div",{className:"wcf-item__thumbnail"},(0,e.createElement)("div",{className:"wcf-flow-importer__start-from-blank-icon"},(0,e.createElement)("span",{className:"wcf-icon dashicons dashicons-plus wcf-icon-start-from-blank"})))),(0,e.createElement)("div",{className:"wcf-item__heading-wrap"},(0,e.createElement)("div",{className:"wcf-item__heading"},(0,pe.__)("Start from scratch","cartflows")))),(0,e.createElement)("div",{className:"wcf_item__info"},(0,e.createElement)("h3",{className:"wcf_item__info--title"},(0,pe.__)("Oops!!! No template Found.","cartflows")),(0,e.createElement)("span",{className:"wcf_item__info--desc"},(0,pe.__)("Seems like no template is available for chosen editor.","cartflows"))))))},Bc=(0,Nl.compose)((0,Cl.withDispatch)((e=>{const{setAllFlows:t}=e("wcf/importer");return{setAllFlows:t}})))((function(r){let{setAllFlows:n}=r,a="no";const[{page_builder:o}]=s(),{currentPageBuilderData:i,requiredPluginsData:l,preview:c,store_checkout_flows:u,flows_list:p}=(0,Cl.useSelect)((e=>({currentPageBuilderData:e("wcf/importer").getCurrentPageBuilderData(o),requiredPluginsData:e("wcf/importer").getRequiredPluginsData(),preview:e("wcf/importer").getPreview(),store_checkout_flows:e("wcf/importer").getStoreCheckoutFlows(),flows_list:e("wcf/importer").getFlowsList(o)})));"yes"===l[o]&&i&&null!=i&&i.plugins&&(null==i||i.plugins.map((function(e){return"install"!==e.status&&"activate"!==e.status||(a="yes"),""})));const[f,d]=(0,t.useState)(!0);if("yes"===a)return(0,e.createElement)(Nc,null);(0,t.useEffect)((()=>{let e=!0;if(!u[o]){const t=new window.FormData;t.append("action","cartflows_get_flows_list"),t.append("security",cartflows_admin.get_flows_list_nonce),(async()=>{ue()({url:cartflows_admin.ajax_url,method:"POST",body:t}).then((t=>{var r;if(e&&null!=t&&null!==(r=t.data)&&void 0!==r&&r.flows){const e=Object.values(t.data.flows);g(e),n(e,o)}}))})()}return d(!1),()=>{e=!1}}),[u]);const h=(0,t.createRef)(),[m,g]=(0,t.useState)(p),[w,b]=(0,t.useState)("search"),v=function(e){if(e){b("cancel");const t=e.toLowerCase(),r=p.filter((function(e){return(e.title&&e.title.toLowerCase()||"").includes(t)}));g(r)}else b("search"),g(p)},[_,y]=(0,t.useState)("hide"),[E,x]=(0,t.useState)("");return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wcf-flow-importer"},Object.keys(c).length?(0,e.createElement)(Ic,null):(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wcf-flow-importer__header"},(0,e.createElement)("div",{className:"wcf-flow-importer__header-title"},(0,e.createElement)("span",{className:"cartflows-logo-icon"}),(0,pe.__)("Store Checkout Templates","cartflows")),(0,e.createElement)("div",{className:"wcf-flow-importer__actions"},(0,e.createElement)("div",{className:"wcf-flow-importer__actions-content-left"},(0,e.createElement)("div",{className:"wcf-flow-importer__actions-search"},(0,e.createElement)("form",{className:"wcf-search__form",onSubmit:function(e){e.preventDefault(),"cancel"===w&&(h.current.value="",v(""))}},(0,e.createElement)(De,{attr:{ref:h},label:"",placeholder:(0,pe.__)("Search Templates","cartflows"),class:"input-field",id:"s",value:"",onChangeCB:v}),(0,e.createElement)("button",{className:"wcf-search__button"},"search"===w&&(0,e.createElement)("span",{className:"dashicons dashicons-search"}),"cancel"===w&&(0,e.createElement)("span",{className:"dashicons dashicons-no"}))))),(0,e.createElement)("div",{className:"wcf-flow-importer__actions-content-right"},(0,e.createElement)("div",{className:"wcf-flow-importer__actions-buttons"},(0,e.createElement)(kc,{template:"store-checkout"}))))),p.length<1&&m.length<1&&(f?(0,e.createElement)(Oc,null):(0,e.createElement)(Fc,null)),p.length>0&&0===m.length&&(0,e.createElement)(Rc,null),p.length>0&&0<m.length&&(0,e.createElement)("div",{className:"wcf-flow-importer__list wcf-items-list wcf-row wcf-flow-row"},(0,e.createElement)(qc,{visibility:_,setVisibility:y,type:"blank",flowName:E,setFlowName:x}),m.map((t=>(0,e.createElement)(wc,{key:t.ID,item:t})))))))})),Uc=()=>{const[r,n]=(0,t.useState)("hide"),[a,o]=(0,t.useState)("");return(0,e.createElement)("div",{className:"wcf-flow-importer wcf-flow-library--other"},(0,e.createElement)("div",{className:"wcf-flow-importer__header"},(0,e.createElement)("div",{className:"wcf-flow-importer__header-title"},(0,e.createElement)("span",{className:"cartflows-logo-icon"}),(0,pe.__)("Flow Templates","cartflows"))),(0,e.createElement)("div",{className:"wcf-flow-importer__list wcf-items-list wcf-row wcf-flow-row"},(0,e.createElement)(qc,{visibility:r,setVisibility:n,type:"blank",flowName:a,setFlowName:o}),(0,e.createElement)("div",{className:"wcf-item wcf-item__start-from-blank"},(0,e.createElement)("div",{className:"wcf-item__inner",onClick:()=>{n("hide"===r?"show":"hide")}},(0,e.createElement)("div",{className:"wcf-item__thumbnail-wrap"},(0,e.createElement)("div",{className:"wcf-item__thumbnail"},(0,e.createElement)("div",{className:"wcf-flow-importer__start-from-blank-icon"},(0,e.createElement)("span",{className:"wcf-icon dashicons dashicons-plus wcf-icon-start-from-blank"})))),(0,e.createElement)("div",{className:"wcf-item__heading-wrap"},(0,e.createElement)("div",{className:"wcf-item__heading"},(0,pe.__)("Start from scratch","cartflows")))),(0,e.createElement)("div",{className:"wcf_item__info"},(0,e.createElement)("h3",{className:"wcf_item__info--title"},(0,pe.__)("It seems that you are using the page builder other than Elementor, Beaver Builder, Divi & Gutenberg.","cartflows")),(0,e.createElement)("span",{className:"wcf_item__info--desc"},(0,pe.__)("Are you using any other page builder? No worries. CartFlows works well with every other page builder. Right now we do not have ready templates for every page builder but we are planning to add it very soon.","cartflows")),(0,e.createElement)("a",{className:"wcf_item__info--doc",href:"https://cartflows.com/docs/how-to-use-cartflows-with-your-own-template/",target:"_blank",rel:"noreferrer"},(0,pe.__)("Learn How ","cartflows"),(0,e.createElement)("i",{className:"dashicons dashicons-external"}))))))},zc=()=>{const[{page_builder:t}]=s();return"other"!==t?(0,e.createElement)(Bc,null):(0,e.createElement)(Uc,null)},Vc=function(){const t=new URLSearchParams(K().search),r=t.get("page"),n=t.get("path"),a=t.get("event");let o=(0,e.createElement)("p",null,"Default route fallback");if(cartflows_admin.home_slug===r){if("getting-started"===a)o=(0,e.createElement)(rc,null);else switch(n){case"flows":o=(0,e.createElement)(xl,null);break;case"store-checkout":if("inactive"===cartflows_admin.woocommerce_status)o=(0,e.createElement)(Sl,null);else{if(""!==cartflows_admin.global_checkout_id)return void window.location.replace(cartflows_admin.admin_base_url+`admin.php?page=cartflows&action=wcf-store-checkout&flow_id=${cartflows_admin.global_checkout_id}`);o=(0,e.createElement)(zl,null)}break;case"store-checkout-library":o=(0,e.createElement)(zc,null);break;case"setup":o=(0,e.createElement)(sc,null);break;case"settings":o=(0,e.createElement)(tc,null);break;case"library":o=(0,e.createElement)(Mc,null);break;default:o=(0,e.createElement)(be,null)}wcfWpNavMenuChange(n)}return(0,e.createElement)(e.Fragment,null,o)};o().render((0,e.createElement)(n().StrictMode,null,(0,e.createElement)((r=>{let{reducer:n,initialState:a,children:o}=r;return(0,e.createElement)(i.Provider,{value:(0,t.useReducer)(n,a)},o)}),{initialState:p,reducer:(e,t)=>{switch(t.type){case"SET_FLOWS":return t.flows?{...e,flows_data:[...t.flows]}:{...e,flows_data:t.flows};case"SET_FLOWS_DATA":return{...e,flows_data:[...t.flows],flows_pagination:t.pagination,found_posts:t.found_posts,active_flows_count:t.active_flows_count,trash_flows_count:t.trash_flows_count,draft_flows_count:t.draft_flows_count,flows_count:t.found_posts,flows_limit_over:!1};case"SET_SETTINGS":return{...e,globaldata:t.commondata,options:t.commondata.options};case"SET_PAGE_BUILDER":return{...e,page_builder:t.pagebuilder};case"SET_ANALYTICS_DATA":return{...e,analyticsData:t.analyticsData};case"SET_OPTION":const r=e.options;return r[t.name]=t.value,{...e,options:r};default:return e}}},(0,e.createElement)((r=>{let{reducer:n,initialState:a,children:o}=r;return(0,e.createElement)(f.Provider,{value:(0,t.useReducer)(n,a)},o)}),{initialState:{settingsProcess:!1,unsavedChanges:!1},reducer:(e,t)=>{switch(t.status){case"SAVED":return window.wcfUnsavedChanges=!1,{...e,settingsProcess:"saved"};case"PROCESSING":return{...e,settingsProcess:"processing"};case"RESET":return{...e,settingsProcess:!1};case"UNSAVED_CHANGES":return"change"===t.trigger?{...e,unsavedChanges:!0}:{...e,unsavedChanges:!1};default:return e}}},(0,e.createElement)((function(){const[{globaldata:r},n]=s();return function(){const[{options:e},r]=s(),n=function(t){const{name:n,value:a}=t.detail;void 0!==e[n]&&(window.wcfUnsavedChanges=!0,r({type:"SET_OPTION",name:n,value:a}))},a=[{type:"select"},{type:"select2"},{type:"checkbox"},{type:"text"},{type:"textarea"},{type:"number"},{type:"radio"},{type:"color"},{type:"font"},{type:"product"},{type:"coupon"}];(0,t.useEffect)((()=>(e&&a.map((function(e){return document.addEventListener(`wcf:${e.type}:change`,n),""})),()=>{a.map((function(e){return document.removeEventListener(`wcf:${e.type}:change`,n),""}))})),[e])}(),(0,t.useEffect)((()=>{let e=!0;return r.length<1&&(async()=>{ue()({path:"/cartflows/v1/admin/commonsettings/"}).then((t=>{e&&(n({type:"SET_SETTINGS",commondata:t}),n({type:"SET_PAGE_BUILDER",pagebuilder:t.options["_cartflows_common[default_page_builder]"]}))}))})(),()=>{e=!1}}),[]),(0,e.createElement)(ee,null,(0,e.createElement)(fe,null),(0,e.createElement)("div",{className:"mainSettings"},(0,e.createElement)(Q,null,(0,e.createElement)(Z,{path:"/"},(0,e.createElement)(Vc,null)))))}),null)))),document.getElementById("wcf-settings-app"))}()}();
cartflows.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: CartFlows
4
  * Plugin URI: https://cartflows.com/
5
  * Description: Create beautiful checkout pages & sales flows for WooCommerce.
6
- * Version: 1.11.2
7
  * Author: CartFlows Inc
8
  * Author URI: https://cartflows.com/
9
  * Text Domain: cartflows
3
  * Plugin Name: CartFlows
4
  * Plugin URI: https://cartflows.com/
5
  * Description: Create beautiful checkout pages & sales flows for WooCommerce.
6
+ * Version: 1.11.3
7
  * Author: CartFlows Inc
8
  * Author URI: https://cartflows.com/
9
  * Text Domain: cartflows
changelog.txt CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  Version 1.11.2 - Thursday, 13th October 2022
2
  - New: Added support of multiple thank you pages in store checkout flow.
3
 
1
+ Version 1.11.3 - Friday, 4th November 2022
2
+ - Fix: Flow templates were not importing while using WordPress Version 6.1.
3
+
4
  Version 1.11.2 - Thursday, 13th October 2022
5
  - New: Added support of multiple thank you pages in store checkout flow.
6
 
classes/class-cartflows-loader.php CHANGED
@@ -140,7 +140,7 @@ if ( ! class_exists( 'Cartflows_Loader' ) ) {
140
  define( 'CARTFLOWS_DIR', plugin_dir_path( CARTFLOWS_FILE ) );
141
  define( 'CARTFLOWS_URL', plugins_url( '/', CARTFLOWS_FILE ) );
142
 
143
- define( 'CARTFLOWS_VER', '1.11.2' );
144
  define( 'CARTFLOWS_SLUG', 'cartflows' );
145
  define( 'CARTFLOWS_SETTINGS', 'cartflows_settings' );
146
  define( 'CARTFLOWS_NAME', 'CartFlows' );
140
  define( 'CARTFLOWS_DIR', plugin_dir_path( CARTFLOWS_FILE ) );
141
  define( 'CARTFLOWS_URL', plugins_url( '/', CARTFLOWS_FILE ) );
142
 
143
+ define( 'CARTFLOWS_VER', '1.11.3' );
144
  define( 'CARTFLOWS_SLUG', 'cartflows' );
145
  define( 'CARTFLOWS_SETTINGS', 'cartflows_settings' );
146
  define( 'CARTFLOWS_NAME', 'CartFlows' );
languages/cartflows.pot CHANGED
@@ -2,14 +2,14 @@
2
  # This file is distributed under the same license as the CartFlows plugin.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: CartFlows 1.11.2\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/cartflows\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "POT-Creation-Date: 2022-10-12T05:30:55+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.5.0\n"
15
  "X-Domain: cartflows\n"
@@ -66,7 +66,7 @@ msgid "Sorry, you are not allowed to do this operation."
66
  msgstr ""
67
 
68
  #: admin-core/ajax/ajax-errors.php:60
69
- #: modules/checkout/classes/class-cartflows-checkout-markup.php:1714
70
  #: wizard/ajax/ajax-errors.php:60
71
  msgid "Nonce validation failed"
72
  msgstr ""
@@ -2253,62 +2253,62 @@ msgstr ""
2253
  msgid " Welcome Back %1$s ( %2$s )"
2254
  msgstr ""
2255
 
2256
- #: modules/checkout/classes/class-cartflows-checkout-markup.php:1638
2257
- #: modules/checkout/classes/class-cartflows-checkout-markup.php:1693
2258
  #: modules/checkout/templates/checkout/collapsed-order-summary.php:41
2259
  msgid "Coupon Code"
2260
  msgstr ""
2261
 
2262
- #: modules/checkout/classes/class-cartflows-checkout-markup.php:1639
2263
- #: modules/checkout/classes/class-cartflows-checkout-markup.php:1702
2264
  #: modules/checkout/templates/checkout/collapsed-order-summary.php:46
2265
  #: admin-core/assets/build/settings-app.js:3
2266
  msgid "Apply"
2267
  msgstr ""
2268
 
2269
- #: modules/checkout/classes/class-cartflows-checkout-markup.php:1671
2270
  #: modules/checkout/classes/class-cartflows-checkout-meta-data.php:1088
2271
  #: modules/checkout/classes/class-cartflows-checkout-meta-data.php:1090
2272
  msgid "Payment"
2273
  msgstr ""
2274
 
2275
- #: modules/checkout/classes/class-cartflows-checkout-markup.php:1760
2276
  msgid "Entered email address is not a valid email."
2277
  msgstr ""
2278
 
2279
- #: modules/checkout/classes/class-cartflows-checkout-markup.php:1761
2280
  msgid "This email is already registered. Please enter the password to continue."
2281
  msgstr ""
2282
 
2283
- #: modules/checkout/classes/class-cartflows-checkout-markup.php:1780
2284
  msgid "Sorry there was a problem removing this coupon."
2285
  msgstr ""
2286
 
2287
- #: modules/checkout/classes/class-cartflows-checkout-markup.php:1783
2288
  msgid "Coupon has been removed."
2289
  msgstr ""
2290
 
2291
- #: modules/checkout/classes/class-cartflows-checkout-markup.php:1801
2292
  msgid "Sorry there was a problem removing "
2293
  msgstr ""
2294
 
2295
- #: modules/checkout/classes/class-cartflows-checkout-markup.php:1804
2296
  msgid " has been removed."
2297
  msgstr ""
2298
 
2299
- #: modules/checkout/classes/class-cartflows-checkout-markup.php:1837
2300
  msgid "Email Exist."
2301
  msgstr ""
2302
 
2303
- #: modules/checkout/classes/class-cartflows-checkout-markup.php:1837
2304
  msgid "Email not exist"
2305
  msgstr ""
2306
 
2307
- #: modules/checkout/classes/class-cartflows-checkout-markup.php:2072
2308
  msgid "Show Order Summary"
2309
  msgstr ""
2310
 
2311
- #: modules/checkout/classes/class-cartflows-checkout-markup.php:2073
2312
  msgid "Hide Order Summary"
2313
  msgstr ""
2314
 
2
  # This file is distributed under the same license as the CartFlows plugin.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: CartFlows 1.11.3\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/cartflows\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "POT-Creation-Date: 2022-11-04T10:10:28+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.5.0\n"
15
  "X-Domain: cartflows\n"
66
  msgstr ""
67
 
68
  #: admin-core/ajax/ajax-errors.php:60
69
+ #: modules/checkout/classes/class-cartflows-checkout-markup.php:1720
70
  #: wizard/ajax/ajax-errors.php:60
71
  msgid "Nonce validation failed"
72
  msgstr ""
2253
  msgid " Welcome Back %1$s ( %2$s )"
2254
  msgstr ""
2255
 
2256
+ #: modules/checkout/classes/class-cartflows-checkout-markup.php:1644
2257
+ #: modules/checkout/classes/class-cartflows-checkout-markup.php:1699
2258
  #: modules/checkout/templates/checkout/collapsed-order-summary.php:41
2259
  msgid "Coupon Code"
2260
  msgstr ""
2261
 
2262
+ #: modules/checkout/classes/class-cartflows-checkout-markup.php:1645
2263
+ #: modules/checkout/classes/class-cartflows-checkout-markup.php:1708
2264
  #: modules/checkout/templates/checkout/collapsed-order-summary.php:46
2265
  #: admin-core/assets/build/settings-app.js:3
2266
  msgid "Apply"
2267
  msgstr ""
2268
 
2269
+ #: modules/checkout/classes/class-cartflows-checkout-markup.php:1677
2270
  #: modules/checkout/classes/class-cartflows-checkout-meta-data.php:1088
2271
  #: modules/checkout/classes/class-cartflows-checkout-meta-data.php:1090
2272
  msgid "Payment"
2273
  msgstr ""
2274
 
2275
+ #: modules/checkout/classes/class-cartflows-checkout-markup.php:1766
2276
  msgid "Entered email address is not a valid email."
2277
  msgstr ""
2278
 
2279
+ #: modules/checkout/classes/class-cartflows-checkout-markup.php:1767
2280
  msgid "This email is already registered. Please enter the password to continue."
2281
  msgstr ""
2282
 
2283
+ #: modules/checkout/classes/class-cartflows-checkout-markup.php:1786
2284
  msgid "Sorry there was a problem removing this coupon."
2285
  msgstr ""
2286
 
2287
+ #: modules/checkout/classes/class-cartflows-checkout-markup.php:1789
2288
  msgid "Coupon has been removed."
2289
  msgstr ""
2290
 
2291
+ #: modules/checkout/classes/class-cartflows-checkout-markup.php:1807
2292
  msgid "Sorry there was a problem removing "
2293
  msgstr ""
2294
 
2295
+ #: modules/checkout/classes/class-cartflows-checkout-markup.php:1810
2296
  msgid " has been removed."
2297
  msgstr ""
2298
 
2299
+ #: modules/checkout/classes/class-cartflows-checkout-markup.php:1843
2300
  msgid "Email Exist."
2301
  msgstr ""
2302
 
2303
+ #: modules/checkout/classes/class-cartflows-checkout-markup.php:1843
2304
  msgid "Email not exist"
2305
  msgstr ""
2306
 
2307
+ #: modules/checkout/classes/class-cartflows-checkout-markup.php:2078
2308
  msgid "Show Order Summary"
2309
  msgstr ""
2310
 
2311
+ #: modules/checkout/classes/class-cartflows-checkout-markup.php:2079
2312
  msgid "Hide Order Summary"
2313
  msgstr ""
2314
 
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: sujaypawar, wpcrafter
3
  Tags: woocommerce, funnel builder, sales funnels, elementor, beaver builder
4
  Requires at least: 5.4
5
- Tested up to: 6.0
6
- Stable tag: 1.11.2
7
  Requires PHP: 5.6
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -322,6 +322,9 @@ This includes, but is not limited to:
322
 
323
  == Changelog ==
324
 
 
 
 
325
  = Version 1.11.2 - Thursday, 13th October 2022 =
326
  * New: Added support of multiple thank you pages in store checkout flow.
327
 
2
  Contributors: sujaypawar, wpcrafter
3
  Tags: woocommerce, funnel builder, sales funnels, elementor, beaver builder
4
  Requires at least: 5.4
5
+ Tested up to: 6.1
6
+ Stable tag: 1.11.3
7
  Requires PHP: 5.6
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
322
 
323
  == Changelog ==
324
 
325
+ = Version 1.11.3 - Friday, 4th November 2022 =
326
+ * Fix: Flow templates were not importing while using WordPress Version 6.1.
327
+
328
  = Version 1.11.2 - Thursday, 13th October 2022 =
329
  * New: Added support of multiple thank you pages in store checkout flow.
330