Changeset 2477338
- Timestamp:
- 02/18/2021 09:34:14 PM (5 years ago)
- Location:
- weforms
- Files:
-
- 5 deleted
- 20 edited
- 10 copied
-
tags/1.6.5 (copied) (copied from weforms/trunk)
-
tags/1.6.5/assets/components (deleted)
-
tags/1.6.5/assets/images/icon-sprout-invoices.png (copied) (copied from weforms/trunk/assets/images/icon-sprout-invoices.png)
-
tags/1.6.5/assets/images/integrations/secure-database.png (copied) (copied from weforms/trunk/assets/images/integrations/secure-database.png)
-
tags/1.6.5/assets/images/integrations/sprout-invoices.svg (copied) (copied from weforms/trunk/assets/images/integrations/sprout-invoices.svg)
-
tags/1.6.5/assets/images/weforms-logo.png (copied) (copied from weforms/trunk/assets/images/weforms-logo.png)
-
tags/1.6.5/assets/images/wpspin_light.gif (copied) (copied from weforms/trunk/assets/images/wpspin_light.gif)
-
tags/1.6.5/assets/js-templates/spa-components.php (modified) (5 diffs)
-
tags/1.6.5/assets/js/spa-app.js (modified) (1 diff)
-
tags/1.6.5/assets/js/spa-app.min.js (modified) (1 diff)
-
tags/1.6.5/assets/less (deleted)
-
tags/1.6.5/assets/spa (deleted)
-
tags/1.6.5/assets/wpuf/images/wpspin_light.gif (copied) (copied from weforms/trunk/assets/wpuf/images/wpspin_light.gif)
-
tags/1.6.5/assets/wpuf/vendor/sweetalert2/README.md (deleted)
-
tags/1.6.5/assets/wpuf/vendor/sweetalert2/package.json (deleted)
-
tags/1.6.5/includes/admin/class-admin.php (modified) (2 diffs)
-
tags/1.6.5/includes/admin/class-form-builder-assets.php (modified) (2 diffs)
-
tags/1.6.5/includes/admin/class-promotion.php (modified) (5 diffs)
-
tags/1.6.5/includes/admin/views/vue-index.php (modified) (1 diff)
-
tags/1.6.5/includes/functions.php (copied) (copied from weforms/trunk/includes/functions.php)
-
tags/1.6.5/includes/library/appsero/Insights.php (modified) (2 diffs)
-
tags/1.6.5/languages/weforms.pot (modified) (11 diffs)
-
tags/1.6.5/readme.txt (copied) (copied from weforms/trunk/readme.txt) (2 diffs)
-
tags/1.6.5/weforms.php (copied) (copied from weforms/trunk/weforms.php) (2 diffs)
-
trunk/assets/js-templates/spa-components.php (modified) (5 diffs)
-
trunk/assets/js/spa-app.js (modified) (1 diff)
-
trunk/assets/js/spa-app.min.js (modified) (1 diff)
-
trunk/includes/admin/class-admin.php (modified) (2 diffs)
-
trunk/includes/admin/class-form-builder-assets.php (modified) (2 diffs)
-
trunk/includes/admin/class-promotion.php (modified) (5 diffs)
-
trunk/includes/admin/views/vue-index.php (modified) (1 diff)
-
trunk/includes/library/appsero/Insights.php (modified) (2 diffs)
-
trunk/languages/weforms.pot (modified) (11 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/weforms.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
weforms/tags/1.6.5/assets/js-templates/spa-components.php
r2403226 r2477338 174 174 {{ form_title }} 175 175 </span> 176 176 177 177 <select v-if="Object.keys(forms).length" v-model="selected" @change="status='publish'"> 178 178 <option :value="form.id" v-for="form in forms">{{ form.name }}</option> 179 179 </select> 180 180 </h1> 181 <?php if ( ! class_exists( 'WeForms_Pro' ) ) {?>182 <div class="wpuf-premium-cta">183 <img src="<?php echo plugin_dir_url( dirname( __FILE__ ) ) . 'images/weforms-logo.png'?>">184 <p><?php _e( 'You're using weForms Free. For more features, modules and more consider upgrading to Pro.' , 'weforms' ); ?></p>185 <a href="https://weformspro.com/get-premium/?utm_source=Entries&utm_medium=Button&utm_campaign=Upgrade%20Now" target="_blank" class="button"><?php _e( 'UPGRADE NOW!' , 'weforms' ); ?></a>186 </div>187 <?php } ?>188 181 </div> 189 182 … … 787 780 <h1 class="wp-heading-inline"><?php _e( 'All Forms', 'weforms' ); ?></h1> 788 781 <a class="page-title-action add-form" herf="#" v-on:click.prevent="displayModal()"><?php _e( 'Add Form', 'weforms' ); ?></a> 789 <?php if ( ! class_exists( 'WeForms_Pro' ) ) {?>790 <div class="wpuf-premium-cta">791 <img src="<?php echo plugin_dir_url( dirname( __FILE__ ) ) . 'images/weforms-logo.png'?>">792 <p><?php _e( 'You're using weForms Free. For more features, modules and more consider upgrading to Pro.' , 'weforms' ); ?></p>793 <a href="https://weformspro.com/upgrade-now/?utm_source=All%20Forms&utm_medium=Button&utm_campaign=Upgrade%20Now" target="_blank" class="button"><?php _e( 'UPGRADE NOW!' , 'weforms' ); ?></a>794 </div>795 <?php } ?>796 782 <wpuf-template-modal :show.sync="showTemplateModal" :onClose="closeModal"></wpuf-template-modal> 797 783 … … 802 788 <div class="export-import-wrap"> 803 789 <h1><?php _e( 'Tools', 'weforms' ); ?></h1> 804 <?php if ( ! class_exists( 'WeForms_Pro' ) ) {?>805 <div class="wpuf-premium-cta">806 <img src="<?php echo plugin_dir_url( dirname( __FILE__ ) ) . 'images/weforms-logo.png'?>">807 <p><?php _e( 'You're using weForms Free. For more features, modules and more consider upgrading to Pro.' , 'weforms' ); ?></p>808 <a href="https://weformspro.com/get-premium-weforms/?utm_source=Tools&utm_medium=Button&utm_campaign=Upgrade%20Now" target="_blank" class="button"><?php _e( 'UPGRADE NOW!' , 'weforms' ); ?></a>809 </div>810 <?php } ?>811 790 <h2 class="nav-tab-wrapper"> 812 791 <a :class="['nav-tab', isActiveTab( 'export' ) ? 'nav-tab-active' : '']" href="#" v-on:click.prevent="makeActive('export')"><?php _e( 'Export', 'wpuf' ); ?></a> … … 1009 988 1010 989 <p v-if="no_transactions"> 1011 <?php printf( 990 <?php printf( 1012 991 __( 'You don\'t have any transactions yet. Learn how to %sset up payment integration%s and take payments with weFroms.' ), 1013 992 '<a target="_blank" href="https://wedevs.com/docs/weforms/integrations/payment/">', … … 1381 1360 1382 1361 <h1><?php _e( 'Settings', 'weforms' ); ?></h1> 1383 <?php if ( ! class_exists( 'WeForms_Pro' ) ) {?>1384 <div class="wpuf-premium-cta">1385 <img src="<?php echo plugin_dir_url( dirname( __FILE__ ) ) . 'images/weforms-logo.png'?>">1386 <p><?php _e( 'You're using weForms Free. For more features, modules and more consider upgrading to Pro.' , 'weforms' ); ?></p>1387 <a href="https://weformspro.com/premium-weforms/?utm_source=Settings&utm_medium=Button&utm_campaign=Upgrade%20Now" target="_blank" class="button"><?php _e( 'UPGRADE NOW!' , 'weforms' ); ?></a>1388 </div>1389 <?php } ?>1390 1362 <div id="weforms-settings-tabs-warp" class="<?php echo !function_exists( 'weforms_pro' ) ? 'weforms-pro-deactivate' : ''; ?>"> 1391 1363 <div id="weforms-settings-tabs"> -
weforms/tags/1.6.5/assets/js/spa-app.js
r2416759 r2477338 1 1 'use strict'; 2 2 3 var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; 3 var _typeof9 = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; 4 5 var _typeof8 = typeof Symbol === "function" && _typeof9(Symbol.iterator) === "symbol" ? function (obj) { 6 return typeof obj === "undefined" ? "undefined" : _typeof9(obj); 7 } : function (obj) { 8 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof9(obj); 9 }; 10 11 var _typeof7 = typeof Symbol === "function" && _typeof8(Symbol.iterator) === "symbol" ? function (obj) { 12 return typeof obj === "undefined" ? "undefined" : _typeof8(obj); 13 } : function (obj) { 14 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof8(obj); 15 }; 16 17 var _typeof6 = typeof Symbol === "function" && _typeof7(Symbol.iterator) === "symbol" ? function (obj) { 18 return typeof obj === "undefined" ? "undefined" : _typeof7(obj); 19 } : function (obj) { 20 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof7(obj); 21 }; 22 23 var _typeof5 = typeof Symbol === "function" && _typeof6(Symbol.iterator) === "symbol" ? function (obj) { 24 return typeof obj === "undefined" ? "undefined" : _typeof6(obj); 25 } : function (obj) { 26 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof6(obj); 27 }; 28 29 var _typeof4 = typeof Symbol === "function" && _typeof5(Symbol.iterator) === "symbol" ? function (obj) { 30 return typeof obj === "undefined" ? "undefined" : _typeof5(obj); 31 } : function (obj) { 32 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof5(obj); 33 }; 34 35 var _typeof3 = typeof Symbol === "function" && _typeof4(Symbol.iterator) === "symbol" ? function (obj) { 36 return typeof obj === "undefined" ? "undefined" : _typeof4(obj); 37 } : function (obj) { 38 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof4(obj); 39 }; 40 41 var _typeof2 = typeof Symbol === "function" && _typeof3(Symbol.iterator) === "symbol" ? function (obj) { 42 return typeof obj === "undefined" ? "undefined" : _typeof3(obj); 43 } : function (obj) { 44 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof3(obj); 45 }; 4 46 5 47 var _typeof = typeof Symbol === "function" && _typeof2(Symbol.iterator) === "symbol" ? function (obj) { -
weforms/tags/1.6.5/assets/js/spa-app.min.js
r2416759 r2477338 1 "use strict";var _typeof 2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof="function"==typeof Symbol&&"symbol"===_typeof2(Symbol.iterator)?function(e){return void 0===e?"undefined":_typeof2(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":_typeof2(e)};!function(r){Vue.component("wpuf-table",{template:"#tmpl-wpuf-component-table",mixins:[weForms.mixins.Loading,weForms.mixins.Paginate,weForms.mixins.BulkAction],props:{has_export:String,action:String,delete:String,id:[String,Number],status:[String]},data:function(){return{loading:!1,columns:[],items:[],ajaxAction:this.action,nonce:weForms.nonce,index:"id",bulkDeleteAction:this.delete?this.delete:"weforms_form_entry_trash_bulk"}},created:function(){this.fetchData()},computed:{columnLength:function(){return Object.keys(this.columns).length}},methods:{fetchData:function(){var t=this;this.loading=!0,wp.ajax.send(t.action,{data:{id:t.id,page:t.currentPage,status:t.status,_wpnonce:weForms.nonce},success:function(e){t.loading=!1,t.columns=e.columns,t.items=e.entries,t.form_title=e.form_title,t.totalItems=e.pagination.total,t.perPage=e.pagination.per_page,t.totalPage=e.pagination.pages,t.$emit("ajaxsuccess",e)},error:function(e){t.loading=!1,alert(e)}})},handleBulkAction:function(){if("-1"!==this.bulkAction){if("delete"===this.bulkAction){if(!this.checkedItems.length)return void alert("Please select atleast one entry to delete.");confirm("Are you sure to delete the entries?")&&this.deleteBulk()}if("restore"===this.bulkAction){if(!this.checkedItems.length)return void alert("Please select atleast one entry to restore.");this.restoreBulk()}}else alert("Please chose a bulk action to perform")},restore:function(e){var t=this;t.loading=!0,wp.ajax.send("weforms_form_entry_restore",{data:{entry_id:e,_wpnonce:weForms.nonce},success:function(e){t.loading=!1,t.fetchData()},error:function(e){t.loading=!1,alert(e)}})},deletePermanently:function(e){if(confirm("Are you sure to delete this entry?")){var t=this;t.loading=!0,wp.ajax.send("weforms_form_entry_delete",{data:{entry_id:e,_wpnonce:weForms.nonce},success:function(e){t.loading=!1,t.fetchData()},error:function(e){t.loading=!1,alert(e)}})}}},watch:{id:function(){this.fetchData()},status:function(){this.currentPage=1,this.bulkAction=-1,this.fetchData()}}}),weForms.routeComponents.Entries={template:"#tmpl-wpuf-entries",data:function(){return{selected:0,forms:{},form_title:"Loading...",status:"publish",total:0,totalTrash:0}},created:function(){this.get_forms()},methods:{get_forms:function(){var t=this;wp.ajax.send("weforms_form_list",{data:{_wpnonce:weForms.nonce,page:t.currentPage,posts_per_page:-1,filter:"entries"},success:function(e){Object.keys(e.forms).length?(t.forms=e.forms,t.selected=t.forms[Object.keys(t.forms)[0]].id):t.form_title="No entry found"},error:function(e){alert(e)}})}}},weForms.routeComponents.FormEditComponent={template:"#tmpl-wpuf-form-builder",mixins:wpuf_form_builder_mixins(wpuf_mixins.root),data:function(){return{is_form_saving:!1,is_form_saved:!1,is_form_switcher:!1,post_title_editing:!1,loading:!1,activeTab:"editor",activeSettingsTab:"form",activePaymentTab:"paypal"}},watch:{loading:function(e){e?(NProgress.configure({parent:"#wpadminbar"}),NProgress.start()):NProgress.done()},form_fields:{handler:function(){window.weFormsBuilderisDirty=!0},deep:!0},notifications:{handler:function(){window.weFormsBuilderisDirty=!0},deep:!0},integrations:{handler:function(){window.weFormsBuilderisDirty=!0},deep:!0},settings:{handler:function(){window.weFormsBuilderisDirty=!0},deep:!0},payment:{handler:function(){window.weFormsBuilderisDirty=!0},deep:!0}},created:function(){this.set_current_panel("form-fields"),this.fetchForm(),this.$store.commit("panel_add_show_prop"),wpuf_form_builder.event_hub=new Vue},computed:{current_panel:function(){return this.$store.state.current_panel},post:function(){return this.$store.state.post},form_fields_count:function(){return this.$store.state.form_fields.length},form_fields:function(){return this.$store.state.form_fields},notifications:function(){return this.$store.state.notifications},integrations:function(){return this.$store.state.integrations},settings:function(){return this.$store.state.settings},payment:function(){return this.$store.state.payment}},mounted:function(){var e=new window.Clipboard(".form-id");r(".form-id").tooltip();var t=this;this.started=!0,e.on("success",function(e){r(e.trigger).attr("data-original-title","Copied!").tooltip("show"),setTimeout(function(){r(e.trigger).tooltip("hide").attr("data-original-title",t.i18n.copy_shortcode)},1e3),e.clearSelection()}),this.initSharingClipBoard(),setTimeout(function(){window.weFormsBuilderisDirty=!1},500),window.onbeforeunload=function(){if(window.weFormsBuilderisDirty)return t.i18n.unsaved_changes}},methods:{makeActive:function(e){this.activeTab=e},isActiveTab:function(e){return this.activeTab===e},isActiveSettingsTab:function(e){return this.activeSettingsTab===e},makeActiveSettingsTab:function(e){this.activeSettingsTab=e},isActivePaymentTab:function(e){return this.activePaymentTab===e},makeActivePaymentTab:function(e){this.activePaymentTab=e},fetchForm:function(){var t=this;t.loading=!0,wp.ajax.send("weforms_get_form",{data:{form_id:this.$route.params.id,_wpnonce:weForms.nonce},success:function(e){t.$store.commit("set_form_post",e.post),t.$store.commit("set_form_fields",e.form_fields),t.$store.commit("set_form_notification",e.notifications),t.$store.commit("set_form_settings",e.settings),void 0!==e.integrations.length?t.$store.commit("set_form_integrations",{}):t.$store.commit("set_form_integrations",e.integrations)},error:function(e){alert(e)},complete:function(){t.loading=!1}})},set_current_panel:function(e){this.$store.commit("set_current_panel",e)},save_form_builder:function(){var t=this;!_.isFunction(this.validate_form_before_submit)||this.validate_form_before_submit()?(t.is_form_saving=!0,t.set_current_panel("form-fields"),wp.ajax.send("wpuf_form_builder_save_form",{data:{form_data:r("#wpuf-form-builder").serialize(),form_fields:JSON.stringify(t.form_fields),notifications:JSON.stringify(t.notifications),settings:JSON.stringify(t.settings),payment:JSON.stringify(t.payment),integrations:JSON.stringify(t.integrations)},success:function(e){e.form_fields&&t.$store.commit("set_form_fields",e.form_fields),t.is_form_saving=!1,t.is_form_saved=!0,setTimeout(function(){window.weFormsBuilderisDirty=!1},500),toastr.success(t.i18n.saved_form_data)},error:function(){t.is_form_saving=!1}})):this.warn({text:this.validation_error_msg})},save_settings:function(){toastr.options.preventDuplicates=!0,this.save_form_builder()},shareForm:function(e,t){var n=this;if("on"===n.settings.sharing_on){var i=e+"?weforms="+btoa(n.getSharingHash()+"_"+Math.floor(Date.now()/1e3)+"_"+t.ID);swal({title:n.i18n.shareYourForm,html:"<p>"+n.i18n.shareYourFormText+'</p> <p><input onClick="this.setSelectionRange(0, this.value.length)" type="text" class="regular-text" value="'+i+'"/> <button class="anonymous-share-btn button button-primary" title="Copy URL" data-clipboard-text="'+i+'"><i class="fa fa-clipboard" aria-hidden="true"></i></button></p>',showCloseButton:!0,showCancelButton:!0,confirmButtonClass:"btn btn-success",cancelButtonClass:"btn btn-danger",confirmButtonColor:"#d54e21",confirmButtonText:n.i18n.disableSharing,cancelButtonText:n.i18n.close,focusCancel:!0}).then(function(){swal({title:n.i18n.areYouSure,html:"<p>"+n.i18n.areYouSureDesc+"</p>",type:"info",confirmButtonColor:"#d54e21",showCancelButton:!0,confirmButtonText:n.i18n.disable,cancelButtonText:n.i18n.cancel}).then(function(){n.disableSharing()})})}else swal({title:n.i18n.shareYourForm,html:n.i18n.shareYourFormDesc,type:"info",showCancelButton:!0,confirmButtonText:"Enable",cancelButtonText:"Cancel"}).then(function(){n.enableSharing(e,t)})},enableSharing:function(e,t){this.settings.sharing_on="on",this.save_settings(),this.shareForm(e,t)},disableSharing:function(){this.settings.sharing_on=!1,this.save_settings()},getSharingHash:function(){return this.settings.sharing_hash||(this.settings.sharing_hash=this.makeRandomString(8),this.save_settings()),this.settings.sharing_hash},makeRandomString:function(e){e=e||8;for(var t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i=0;i<e;i++)t+=n.charAt(Math.floor(Math.random()*n.length));return t},initSharingClipBoard:function(e){var t=new window.Clipboard(".anonymous-share-btn");r(".anonymous-share-btn").tooltip(),t.on("success",function(e){r(e.trigger).attr("data-original-title","Copied!").tooltip("show"),setTimeout(function(){r(e.trigger).tooltip("hide").attr("data-original-title","Copy URL")},1e3),e.clearSelection()})}}},weForms.routeComponents.FormEntries={props:{id:[String,Number]},template:"#tmpl-wpuf-form-entries",data:function(){return{selected:0,form_title:"Loading...",status:"publish",total:0,totalTrash:0}}},weForms.routeComponents.FormEntriesSingle={template:"#tmpl-wpuf-form-entry-single",mixins:[weForms.mixins.Loading,weForms.mixins.Cookie],data:function(){return{loading:!1,hideEmpty:!0,hasEmpty:!1,show_payment_data:!1,entry:{form_fields:{},meta_data:{},payment_data:{}},form_settings:{},respondent_points:0,answers:{},countries:weForms.countries}},created:function(){this.hideEmpty=this.hideEmptyStatus(),this.fetchData()},computed:{hasFormFields:function(){return Object.keys(this.entry.form_fields).length}},methods:{fetchData:function(){var t=this;this.loading=!0,wp.ajax.send("weforms_form_entry_details",{data:{entry_id:t.$route.params.entryid,form_id:t.$route.params.id,_wpnonce:weForms.nonce},success:function(e){t.loading=!1,t.entry=e,t.hasEmpty=e.has_empty,t.form_settings=e.form_settings,t.respondent_points=e.respondent_points,t.answers=e.answers},error:function(e){t.loading=!1,alert(e)}})},trashEntry:function(){var t=this;confirm(weForms.confirm)&&wp.ajax.send("weforms_form_entry_trash",{data:{entry_id:t.$route.params.entryid,_wpnonce:weForms.nonce},success:function(){t.loading=!1,t.$router.push({name:"formEntries",params:{id:t.$route.params.id}})},error:function(e){t.loading=!1,alert(e)}})},hideEmptyStatus:function(){return"false"!==this.getCookie("weFormsEntryHideEmpty")},findCountry:function(t){return this.countries.find(function(e){return e.code===t})},getCountryName:function(e){if(this.findCountry(e))return this.findCountry(e).name},getAddressFieldValue:function(e){var t=e.match(/Country Select:(\s([A-Z])\w+)/g);if(null===t)return e;var n=t[0].substring(15,t[0].length).trim(),i=this.getCountryName(n),o=n;return e.replace(o,i)}},watch:{hideEmpty:function(e){this.setCookie("weFormsEntryHideEmpty",e,356)}}},Vue.component("form-list-table",{template:"#tmpl-wpuf-form-list-table",mixins:[weForms.mixins.Loading,weForms.mixins.Paginate,weForms.mixins.BulkAction],data:function(){return{loading:!1,index:"ID",items:[],bulkDeleteAction:"weforms_form_delete_bulk"}},created:function(){this.fetchData()},computed:{is_pro:function(){return"true"===weForms.is_pro},has_payment:function(){return"true"===weForms.has_payment}},methods:{fetchData:function(){var t=this;this.loading=!0,wp.ajax.send("weforms_form_list",{data:{_wpnonce:weForms.nonce,page:t.currentPage},success:function(e){t.loading=!1,t.items=e.forms,t.totalItems=e.meta.total,t.totalPage=e.meta.pages},error:function(e){t.loading=!1,alert(e)}})},deleteForm:function(t){var n=this;confirm("Are you sure?")&&(n.loading=!0,wp.ajax.send("weforms_form_delete",{data:{form_id:this.items[t].id,_wpnonce:weForms.nonce},success:function(e){n.items.splice(t,1),n.loading=!1},error:function(e){alert(e),n.loading=!1}}))},duplicate:function(e,t){var n=this;this.loading=!0,wp.ajax.send("weforms_form_duplicate",{data:{form_id:e,_wpnonce:weForms.nonce},success:function(e){n.items.splice(0,0,e),n.loading=!1},error:function(e){alert(e),n.loading=!1}})},handleBulkAction:function(){if("-1"!==this.bulkAction){if("delete"===this.bulkAction){if(!this.checkedItems.length)return void alert("Please select atleast one form to delete.");confirm("Are you sure to delete the forms?")&&this.deleteBulk()}}else alert("Please chose a bulk action to perform")},isPendingForm:function(e){return Math.round((new Date).getTime()/1e3)<Math.round(new Date(e).getTime()/1e3)},isExpiredForm:function(e){var t=Math.round((new Date).getTime()/1e3);return Math.round(new Date(e).getTime()/1e3)<t},isOpenForm:function(e,t){var n=Math.round((new Date).getTime()/1e3),i=Math.round(new Date(e).getTime()/1e3),o=Math.round(new Date(t).getTime()/1e3);return i<n&&n<o},isFormStatusClosed:function(e,t){return!("true"!==e.schedule_form||!this.isPendingForm(e.schedule_start))||(!("true"!==e.schedule_form||!this.isExpiredForm(e.schedule_end))||("true"===e.limit_entries&&t>=e.limit_number||void 0))},formatTime:function(e){var t=new Date(e);return t.toLocaleString("en-us",{month:"short"})+" "+t.getDate()+", "+t.getFullYear()}}}),weForms.routeComponents.FormPayments={props:{id:[String,Number]},template:"#tmpl-wpuf-form-payments",data:function(){return{form_title:"Loading..."}}},weForms.routeComponents.Home={template:"#tmpl-wpuf-home-page",data:function(){return{showTemplateModal:!1}},methods:{displayModal:function(){this.showTemplateModal=!0},closeModal:function(){this.showTemplateModal=!1}}},weForms.routeComponents.Tools={template:"#tmpl-wpuf-tools",mixins:[weForms.mixins.Tabs,weForms.mixins.Loading],data:function(){return{activeTab:"export",exportType:"all",loading:!1,forms:[],importButton:"Import",currentStatus:0,responseMessage:"",logs:[],ximport:{current:"",title:"",action:"",message:"",type:"updated",refs:{}}}},computed:{isInitial:function(){return 0===this.currentStatus},isSaving:function(){return 1===this.currentStatus},isSuccess:function(){return 2===this.currentStatus},isFailed:function(){return 3===this.currentStatus},hasRefs:function(){return Object.keys(this.ximport.refs).length},hasLogs:function(){return Object.keys(this.logs).length}},created:function(){this.fetchData(),this.fetchLogs()},methods:{fetchLogs:function(t){var n=this;n.startLoading(t),wp.ajax.send("weforms_read_logs",{data:{_wpnonce:weForms.nonce},success:function(e){n.stopLoading(t),n.logs=e},error:function(){n.stopLoading(t),n.logs=[]}})},deleteLogs:function(t){var n=this;confirm("Are you sure to clear the log file?")&&(n.startLoading(t),wp.ajax.send("weforms_delete_logs",{data:{_wpnonce:weForms.nonce},success:function(e){n.logs=[],n.stopLoading(t),n.fetchLogs()},error:function(e){n.logs=[],n.stopLoading(t),n.fetchLogs()}}))},stopLoading:function(e){(e=r(e)).is("button")?e.removeClass("updating-message").find("span").show():e.is("span")&&e.show().parent().removeClass("updating-message")},startLoading:function(e){(e=r(e)).is("button")?e.addClass("updating-message").find("span").hide():e.is("span")&&e.hide().parent().addClass("updating-message")},fetchData:function(){var t=this;this.loading=!0,wp.ajax.send("weforms_form_names",{data:{_wpnonce:weForms.nonce},success:function(e){t.loading=!1,t.forms=e},error:function(e){t.loading=!1,alert(e)}})},importForm:function(e,t,n){if(t.length){var i=new FormData,o=this;i.append(e,t[0],t[0].name),i.append("action","weforms_import_form"),i.append("_wpnonce",weForms.nonce),o.currentStatus=1,r.ajax({type:"POST",url:window.ajaxurl,data:i,processData:!1,contentType:!1,success:function(e){o.responseMessage=e.data,e.success?o.currentStatus=2:o.currentStatus=3,r(n.target).val("")},error:function(e){console.log(e),o.currentStatus=3},complete:function(){r(n.target).val("")}})}},importx:function(e,t){var n=r(e),i=this;i.ximport.current=t,n.addClass("updating-message").text(n.data("importing")),wp.ajax.send("weforms_import_xforms_"+t,{data:{_wpnonce:weForms.nonce},success:function(e){i.ximport.title=e.title,i.ximport.message=e.message,i.ximport.action=e.action,i.ximport.refs=e.refs},error:function(e){alert(e.message)},complete:function(){n.removeClass("updating-message").text(n.data("original"))}})},replaceX:function(e,t){var n=r(e),i=this;n.addClass("updating-message"),wp.ajax.send("weforms_import_xreplace_"+i.ximport.current,{data:{type:t,_wpnonce:weForms.nonce},success:function(e){"replace"===n.data("type")&&alert(e)},error:function(e){alert(e)},complete:function(){i.ximport.current="",i.ximport.title=""}})}}},weForms.routeComponents.Transactions={template:"#tmpl-wpuf-transactions",data:function(){return{selected:0,no_transactions:!1,forms:{},form_title:"Loading..."}},created:function(){this.get_forms()},methods:{get_forms:function(){var t=this;wp.ajax.send("weforms_form_list",{data:{_wpnonce:weForms.nonce,page:t.currentPage,filter:"transactions"},success:function(e){Object.keys(e.forms).length?(t.forms=e.forms,t.selected=t.forms[Object.keys(t.forms)[0]].id):(t.form_title="No transaction found",t.no_transactions=!0)},error:function(e){alert(e)}})}}},weForms.routeComponents.Help={template:"#tmpl-wpuf-weforms-page-help"},weForms.routeComponents.Privacy={template:"#tmpl-wpuf-weforms-page-privacy"},weForms.routeComponents.Premium={template:"#tmpl-wpuf-weforms-premium",data:function(){return{showModal:!1}}},weForms.routeComponents.Settings={template:"#tmpl-wpuf-weforms-settings",mixins:[weForms.mixins.Loading,weForms.mixins.Cookie],data:function(){return{loading:!1,settings:{email_gateway:"wordpress",credit:!1,permission:"manage_options",gateways:{sendgrid:"",mailgun:"",sparkpost:""},recaptcha:{type:"v2",key:"",secret:""}},activeTab:"general"}},computed:{is_pro:function(){return"true"===weForms.is_pro}},created:function(){this.fetchSettings(),this.getCookie("weforms_settings_active_tab")&&(this.activeTab=this.getCookie("weforms_settings_active_tab"))},methods:{makeActive:function(e){this.activeTab=e},isActiveTab:function(e){return this.activeTab===e},fetchSettings:function(){var e=this;e.loading=!0,wp.ajax.send("weforms_get_settings",{data:{_wpnonce:weForms.nonce},success:function(n){void 0!==n&&(r.each(e.settings,function(e,t){void 0===n[e]&&(n[e]=t)}),e.settings=n)},complete:function(){e.loading=!1}})},saveSettings:function(e){r(e).addClass("updating-message"),wp.ajax.send("weforms_save_settings",{data:{settings:JSON.stringify(this.settings),_wpnonce:weForms.nonce},success:function(e){toastr.options.timeOut=1e3,toastr.success("Settings has been updated"),weForms.settings=e},error:function(e){console.log(e)},complete:function(){r(e).removeClass("updating-message")}})},post:function(e,t,n){n=n||function(){},(t=t||{})._wpnonce=weForms.nonce,wp.ajax.send(e,{data:t,success:function(e){n(e)},error:function(e){console.log(e)},complete:function(){}})}},watch:{activeTab:function(e){this.setCookie("weforms_settings_active_tab",e,"365")}}},Array.prototype.hasOwnProperty("swap")||(Array.prototype.swap=function(e,t){this.splice(t,0,this.splice(e,1)[0])}),Vue.component("datepicker",{template:'<input type="text" v-bind:value="value" />',props:["value"],mounted:function(){r(this.$el).datetimepicker({dateFormat:"yy-mm-dd",timeFormat:"HH:mm:ss",onClose:this.onClose})},methods:{onClose:function(e){this.$emit("input",e)}}}),Vue.component("weforms-colorpicker",{template:'<input type="text" v-bind:value="value" />',props:["value"],mounted:function(){r(this.$el).wpColorPicker({change:this.onChange})},methods:{onChange:function(e,t){this.$emit("input",t.color.toString())}}});var e=new Vuex.Store({state:{post:{},form_fields:[],panel_sections:wpuf_form_builder.panel_sections,field_settings:wpuf_form_builder.field_settings,notifications:[],settings:{},integrations:{},current_panel:"form-fields",editing_field_id:0},mutations:{set_form_fields:function(e,t){Vue.set(e,"form_fields",t)},set_form_post:function(e,t){Vue.set(e,"post",t)},set_form_notification:function(e,t){Vue.set(e,"notifications",t)},set_form_integrations:function(e,t){Vue.set(e,"integrations",t)},set_form_settings:function(e,t){Vue.set(e,"settings",t)},set_current_panel:function(e,t){"field-options"!==e.current_panel&&"field-options"===t&&e.form_fields.length&&(e.editing_field_id=e.form_fields[0].id),"form-fields"===(e.current_panel=t)&&(e.editing_field_id=0)},panel_add_show_prop:function(n){n.panel_sections.map(function(e,t){e.hasOwnProperty("show")||Vue.set(n.panel_sections[t],"show",!0)})},panel_toggle:function(e,t){e.panel_sections[t].show=!e.panel_sections[t].show},open_field_settings:function(e,t){var n=e.form_fields.filter(function(e){return parseInt(t)===parseInt(e.id)});"field-options"===e.current_panel&&n[0].id===e.editing_field_id||n.length&&(e.editing_field_id=0,e.current_panel="field-options",setTimeout(function(){e.editing_field_id=n[0].id},400))},update_editing_form_field:function(e,t){var n=0;for(n=0;n<e.form_fields.length;n++)if(e.form_fields[n].id===parseInt(t.editing_field_id)&&(e.form_fields[n][t.field_name]=t.value),"column_field"===e.form_fields[n].template){var i=e.form_fields[n].inner_fields;for(var o in i)if(i.hasOwnProperty(o))for(var s=0;s<i[o].length;)i[o][s].id===parseInt(t.editing_field_id)&&(i[o][s][t.field_name]=t.value),s++}},add_form_field_element:function(e,t){e.form_fields.splice(t.toIndex,0,t.field),Vue.nextTick(function(){var e=r("#form-preview-stage .wpuf-form .field-items").eq(t.toIndex);e&&!function(e){"function"==typeof jQuery&&e instanceof jQuery&&(e=e[0]);var t=e.getBoundingClientRect();return 0<=t.top&&0<=t.left&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}(e.get(0))&&r("#builder-stage section").scrollTo(e,800,{offset:-50})})},swap_form_field_elements:function(e,t){e.form_fields.swap(t.fromIndex,t.toIndex)},clone_form_field_element:function(e,t){var n=_.find(e.form_fields,function(e){return parseInt(e.id)===parseInt(t.field_id)}),i=r.extend(!0,{},n),o=parseInt(t.index)+1;i.id=t.new_id,i.name=i.name+"_copy",i.is_new=!0,e.form_fields.splice(o,0,i)},delete_form_field_element:function(e,t){e.current_panel="form-fields",e.form_fields.splice(t,1)},set_panel_section_fields:function(e,t){_.find(e.panel_sections,function(e){return e.id===t.id}).fields=t.fields},addNotification:function(e,t){e.notifications.push(_.clone(t))},deleteNotification:function(e,t){e.notifications.splice(t,1)},cloneNotification:function(e,t){var n=r.extend(!0,{},e.notifications[t]);t=parseInt(t)+1,e.notifications.splice(t,0,n)},updateNotificationProperty:function(e,t){e.notifications[t.index][t.property]=t.value},updateNotification:function(e,t){e.notifications[t.index]=t.value},updateIntegration:function(e,t){Vue.set(e.integrations,t.index,t.value)},add_column_inner_field_element:function(e,t){var n=e.form_fields.findIndex(function(e){return e.id===t.toWhichColumnField});(void 0===e.form_fields[n].inner_fields[t.toWhichColumn]&&(e.form_fields[n].inner_fields[t.toWhichColumn]=[]),void 0!==e.form_fields[n].inner_fields[t.toWhichColumn])&&(e.form_fields[n].inner_fields[t.toWhichColumn].filter(function(e){return e.name===t.field.name}).length<=0&&e.form_fields[n].inner_fields[t.toWhichColumn].splice(t.toIndex,0,t.field))},move_column_inner_fields:function(t,n){var i=t.form_fields.findIndex(function(e){return e.id===n.field_id}),o=n.inner_fields,s=[];Object.keys(o).forEach(function(e){"column-1"===n.move_to&&(o[e].forEach(function(e){s.push(e)}),t.form_fields[i].inner_fields[e].splice(0,o[e].length)),"column-2"===n.move_to&&("column-2"!==e&&"column-3"!==e||(o[e].forEach(function(e){s.push(e)}),t.form_fields[i].inner_fields[e].splice(0,o[e].length)))}),0!==s.length&&s.forEach(function(e){t.form_fields[i].inner_fields[n.move_to].splice(0,0,e)})},swap_column_field_elements:function(e,t){var n=e.form_fields.findIndex(function(e){return e.id===t.field_id}),i=e.form_fields[n].inner_fields[t.fromColumn][t.fromIndex];t.fromColumn!==t.toColumn?(e.form_fields[n].inner_fields[t.toColumn].splice(t.toIndex,0,i),e.form_fields[n].inner_fields[t.fromColumn].splice(t.fromIndex,1)):e.form_fields[n].inner_fields[t.toColumn].swap(t.fromIndex,t.toIndex)},open_column_field_settings:function(e,t){var n=t.column_field;"field-options"===e.current_panel&&n.id===e.editing_field_id||n&&(e.editing_field_id=0,e.current_panel="field-options",e.editing_field_type="column_field",e.editing_column_field_id=t.field_id,e.edting_field_column=t.column,e.editing_inner_field_index=t.index,setTimeout(function(){e.editing_field_id=n.id},400))},clone_column_field_element:function(e,t){var n=e.form_fields.findIndex(function(e){return e.id===t.field_id}),i=_.find(e.form_fields[n].inner_fields[t.toColumn],function(e){return parseInt(e.id)===parseInt(t.column_field_id)}),o=r.extend(!0,{},i),s=parseInt(t.index)+1;o.id=t.new_id,o.name=o.name+"_copy",o.is_new=!0,e.form_fields[n].inner_fields[t.toColumn].splice(s,0,o)},delete_column_field_element:function(e,t){var n=e.form_fields.findIndex(function(e){return e.id===t.field_id});e.current_panel="form-fields",e.form_fields[n].inner_fields[t.fromColumn].splice(t.index,1)}}});weForms.routeComponents.FormHome={template:'<div><router-view class="child"></router-view></div>'},weForms.routeComponents.SingleForm={template:"#tmpl-wpuf-form-editor"},weForms.routeComponents.FormEntriesHome={template:'<div><router-view class="grand-child"></router-view></div>'},function e(t){for(var n=0;n<t.length;n++)"object"===_typeof(t[n].children)?(e(t[n].children),void 0!==t[n].component&&(t[n].component=weForms.routeComponents[t[n].component])):t[n].component=weForms.routeComponents[t[n].component]}(weForms.routes);var t=new VueRouter({routes:weForms.routes,scrollBehavior:function(e,t,n){return n||{x:0,y:0}}});window.weFormsBuilderisDirty=!1,t.beforeEach(function(e,t,n){if(window.weFormsBuilderisDirty){if(!confirm(wpuf_form_builder.i18n.unsaved_changes+" "+wpuf_form_builder.i18n.areYouSureToLeave))return n(t.path),!1;window.weFormsBuilderisDirty=!1}n()}),weForms.validators={is_recaptcha_v2:function(){return"v2"===weForms.settings.recaptcha.type}};new Vue({router:t,store:e}).$mount("#wpuf-contact-form-app");var i=r("#toplevel_page_weforms");i.on("click","a",function(){var e=r(this);r("ul.wp-submenu li",i).removeClass("current"),e.hasClass("wp-has-submenu")?r("li.wp-first-item",i).addClass("current"):e.parents("li").addClass("current")}),r(function(){var e=window.location.href,n=e.substr(e.indexOf("admin.php"));r("ul.wp-submenu a",i).each(function(e,t){r(t).attr("href")!==n||r(t).parent().addClass("current")})})}(jQuery);1 "use strict";var _typeof9="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof8="function"==typeof Symbol&&"symbol"===_typeof9(Symbol.iterator)?function(e){return void 0===e?"undefined":_typeof9(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":_typeof9(e)},_typeof7="function"==typeof Symbol&&"symbol"===_typeof8(Symbol.iterator)?function(e){return void 0===e?"undefined":_typeof8(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":_typeof8(e)},_typeof6="function"==typeof Symbol&&"symbol"===_typeof7(Symbol.iterator)?function(e){return void 0===e?"undefined":_typeof7(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":_typeof7(e)},_typeof5="function"==typeof Symbol&&"symbol"===_typeof6(Symbol.iterator)?function(e){return void 0===e?"undefined":_typeof6(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":_typeof6(e)},_typeof4="function"==typeof Symbol&&"symbol"===_typeof5(Symbol.iterator)?function(e){return void 0===e?"undefined":_typeof5(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":_typeof5(e)},_typeof3="function"==typeof Symbol&&"symbol"===_typeof4(Symbol.iterator)?function(e){return void 0===e?"undefined":_typeof4(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":_typeof4(e)},_typeof2="function"==typeof Symbol&&"symbol"===_typeof3(Symbol.iterator)?function(e){return void 0===e?"undefined":_typeof3(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":_typeof3(e)},_typeof="function"==typeof Symbol&&"symbol"===_typeof2(Symbol.iterator)?function(e){return void 0===e?"undefined":_typeof2(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":_typeof2(e)};!function(s){Vue.component("wpuf-table",{template:"#tmpl-wpuf-component-table",mixins:[weForms.mixins.Loading,weForms.mixins.Paginate,weForms.mixins.BulkAction],props:{has_export:String,action:String,delete:String,id:[String,Number],status:[String]},data:function(){return{loading:!1,columns:[],items:[],ajaxAction:this.action,nonce:weForms.nonce,index:"id",bulkDeleteAction:this.delete?this.delete:"weforms_form_entry_trash_bulk"}},created:function(){this.fetchData()},computed:{columnLength:function(){return Object.keys(this.columns).length}},methods:{fetchData:function(){var t=this;this.loading=!0,wp.ajax.send(t.action,{data:{id:t.id,page:t.currentPage,status:t.status,_wpnonce:weForms.nonce},success:function(e){t.loading=!1,t.columns=e.columns,t.items=e.entries,t.form_title=e.form_title,t.totalItems=e.pagination.total,t.perPage=e.pagination.per_page,t.totalPage=e.pagination.pages,t.$emit("ajaxsuccess",e)},error:function(e){t.loading=!1,alert(e)}})},handleBulkAction:function(){if("-1"!==this.bulkAction){if("delete"===this.bulkAction){if(!this.checkedItems.length)return void alert("Please select atleast one entry to delete.");confirm("Are you sure to delete the entries?")&&this.deleteBulk()}if("restore"===this.bulkAction){if(!this.checkedItems.length)return void alert("Please select atleast one entry to restore.");this.restoreBulk()}}else alert("Please chose a bulk action to perform")},restore:function(e){var t=this;t.loading=!0,wp.ajax.send("weforms_form_entry_restore",{data:{entry_id:e,_wpnonce:weForms.nonce},success:function(e){t.loading=!1,t.fetchData()},error:function(e){t.loading=!1,alert(e)}})},deletePermanently:function(e){if(confirm("Are you sure to delete this entry?")){var t=this;t.loading=!0,wp.ajax.send("weforms_form_entry_delete",{data:{entry_id:e,_wpnonce:weForms.nonce},success:function(e){t.loading=!1,t.fetchData()},error:function(e){t.loading=!1,alert(e)}})}}},watch:{id:function(){this.fetchData()},status:function(){this.currentPage=1,this.bulkAction=-1,this.fetchData()}}}),weForms.routeComponents.Entries={template:"#tmpl-wpuf-entries",data:function(){return{selected:0,forms:{},form_title:"Loading...",status:"publish",total:0,totalTrash:0}},created:function(){this.get_forms()},methods:{get_forms:function(){var t=this;wp.ajax.send("weforms_form_list",{data:{_wpnonce:weForms.nonce,page:t.currentPage,posts_per_page:-1,filter:"entries"},success:function(e){Object.keys(e.forms).length?(t.forms=e.forms,t.selected=t.forms[Object.keys(t.forms)[0]].id):t.form_title="No entry found"},error:function(e){alert(e)}})}}},weForms.routeComponents.FormEditComponent={template:"#tmpl-wpuf-form-builder",mixins:wpuf_form_builder_mixins(wpuf_mixins.root),data:function(){return{is_form_saving:!1,is_form_saved:!1,is_form_switcher:!1,post_title_editing:!1,loading:!1,activeTab:"editor",activeSettingsTab:"form",activePaymentTab:"paypal"}},watch:{loading:function(e){e?(NProgress.configure({parent:"#wpadminbar"}),NProgress.start()):NProgress.done()},form_fields:{handler:function(){window.weFormsBuilderisDirty=!0},deep:!0},notifications:{handler:function(){window.weFormsBuilderisDirty=!0},deep:!0},integrations:{handler:function(){window.weFormsBuilderisDirty=!0},deep:!0},settings:{handler:function(){window.weFormsBuilderisDirty=!0},deep:!0},payment:{handler:function(){window.weFormsBuilderisDirty=!0},deep:!0}},created:function(){this.set_current_panel("form-fields"),this.fetchForm(),this.$store.commit("panel_add_show_prop"),wpuf_form_builder.event_hub=new Vue},computed:{current_panel:function(){return this.$store.state.current_panel},post:function(){return this.$store.state.post},form_fields_count:function(){return this.$store.state.form_fields.length},form_fields:function(){return this.$store.state.form_fields},notifications:function(){return this.$store.state.notifications},integrations:function(){return this.$store.state.integrations},settings:function(){return this.$store.state.settings},payment:function(){return this.$store.state.payment}},mounted:function(){var e=new window.Clipboard(".form-id");s(".form-id").tooltip();var t=this;this.started=!0,e.on("success",function(e){s(e.trigger).attr("data-original-title","Copied!").tooltip("show"),setTimeout(function(){s(e.trigger).tooltip("hide").attr("data-original-title",t.i18n.copy_shortcode)},1e3),e.clearSelection()}),this.initSharingClipBoard(),setTimeout(function(){window.weFormsBuilderisDirty=!1},500),window.onbeforeunload=function(){if(window.weFormsBuilderisDirty)return t.i18n.unsaved_changes}},methods:{makeActive:function(e){this.activeTab=e},isActiveTab:function(e){return this.activeTab===e},isActiveSettingsTab:function(e){return this.activeSettingsTab===e},makeActiveSettingsTab:function(e){this.activeSettingsTab=e},isActivePaymentTab:function(e){return this.activePaymentTab===e},makeActivePaymentTab:function(e){this.activePaymentTab=e},fetchForm:function(){var t=this;t.loading=!0,wp.ajax.send("weforms_get_form",{data:{form_id:this.$route.params.id,_wpnonce:weForms.nonce},success:function(e){t.$store.commit("set_form_post",e.post),t.$store.commit("set_form_fields",e.form_fields),t.$store.commit("set_form_notification",e.notifications),t.$store.commit("set_form_settings",e.settings),void 0!==e.integrations.length?t.$store.commit("set_form_integrations",{}):t.$store.commit("set_form_integrations",e.integrations)},error:function(e){alert(e)},complete:function(){t.loading=!1}})},set_current_panel:function(e){this.$store.commit("set_current_panel",e)},save_form_builder:function(){var t=this;!_.isFunction(this.validate_form_before_submit)||this.validate_form_before_submit()?(t.is_form_saving=!0,t.set_current_panel("form-fields"),wp.ajax.send("wpuf_form_builder_save_form",{data:{form_data:s("#wpuf-form-builder").serialize(),form_fields:JSON.stringify(t.form_fields),notifications:JSON.stringify(t.notifications),settings:JSON.stringify(t.settings),payment:JSON.stringify(t.payment),integrations:JSON.stringify(t.integrations)},success:function(e){e.form_fields&&t.$store.commit("set_form_fields",e.form_fields),t.is_form_saving=!1,t.is_form_saved=!0,setTimeout(function(){window.weFormsBuilderisDirty=!1},500),toastr.success(t.i18n.saved_form_data)},error:function(){t.is_form_saving=!1}})):this.warn({text:this.validation_error_msg})},save_settings:function(){toastr.options.preventDuplicates=!0,this.save_form_builder()},shareForm:function(e,t){var n=this;if("on"===n.settings.sharing_on){var o=e+"?weforms="+btoa(n.getSharingHash()+"_"+Math.floor(Date.now()/1e3)+"_"+t.ID);swal({title:n.i18n.shareYourForm,html:"<p>"+n.i18n.shareYourFormText+'</p> <p><input onClick="this.setSelectionRange(0, this.value.length)" type="text" class="regular-text" value="'+o+'"/> <button class="anonymous-share-btn button button-primary" title="Copy URL" data-clipboard-text="'+o+'"><i class="fa fa-clipboard" aria-hidden="true"></i></button></p>',showCloseButton:!0,showCancelButton:!0,confirmButtonClass:"btn btn-success",cancelButtonClass:"btn btn-danger",confirmButtonColor:"#d54e21",confirmButtonText:n.i18n.disableSharing,cancelButtonText:n.i18n.close,focusCancel:!0}).then(function(){swal({title:n.i18n.areYouSure,html:"<p>"+n.i18n.areYouSureDesc+"</p>",type:"info",confirmButtonColor:"#d54e21",showCancelButton:!0,confirmButtonText:n.i18n.disable,cancelButtonText:n.i18n.cancel}).then(function(){n.disableSharing()})})}else swal({title:n.i18n.shareYourForm,html:n.i18n.shareYourFormDesc,type:"info",showCancelButton:!0,confirmButtonText:"Enable",cancelButtonText:"Cancel"}).then(function(){n.enableSharing(e,t)})},enableSharing:function(e,t){this.settings.sharing_on="on",this.save_settings(),this.shareForm(e,t)},disableSharing:function(){this.settings.sharing_on=!1,this.save_settings()},getSharingHash:function(){return this.settings.sharing_hash||(this.settings.sharing_hash=this.makeRandomString(8),this.save_settings()),this.settings.sharing_hash},makeRandomString:function(e){e=e||8;for(var t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",o=0;o<e;o++)t+=n.charAt(Math.floor(Math.random()*n.length));return t},initSharingClipBoard:function(e){var t=new window.Clipboard(".anonymous-share-btn");s(".anonymous-share-btn").tooltip(),t.on("success",function(e){s(e.trigger).attr("data-original-title","Copied!").tooltip("show"),setTimeout(function(){s(e.trigger).tooltip("hide").attr("data-original-title","Copy URL")},1e3),e.clearSelection()})}}},weForms.routeComponents.FormEntries={props:{id:[String,Number]},template:"#tmpl-wpuf-form-entries",data:function(){return{selected:0,form_title:"Loading...",status:"publish",total:0,totalTrash:0}}},weForms.routeComponents.FormEntriesSingle={template:"#tmpl-wpuf-form-entry-single",mixins:[weForms.mixins.Loading,weForms.mixins.Cookie],data:function(){return{loading:!1,hideEmpty:!0,hasEmpty:!1,show_payment_data:!1,entry:{form_fields:{},meta_data:{},payment_data:{}},form_settings:{},respondent_points:0,answers:{},countries:weForms.countries}},created:function(){this.hideEmpty=this.hideEmptyStatus(),this.fetchData()},computed:{hasFormFields:function(){return Object.keys(this.entry.form_fields).length}},methods:{fetchData:function(){var t=this;this.loading=!0,wp.ajax.send("weforms_form_entry_details",{data:{entry_id:t.$route.params.entryid,form_id:t.$route.params.id,_wpnonce:weForms.nonce},success:function(e){t.loading=!1,t.entry=e,t.hasEmpty=e.has_empty,t.form_settings=e.form_settings,t.respondent_points=e.respondent_points,t.answers=e.answers},error:function(e){t.loading=!1,alert(e)}})},trashEntry:function(){var t=this;confirm(weForms.confirm)&&wp.ajax.send("weforms_form_entry_trash",{data:{entry_id:t.$route.params.entryid,_wpnonce:weForms.nonce},success:function(){t.loading=!1,t.$router.push({name:"formEntries",params:{id:t.$route.params.id}})},error:function(e){t.loading=!1,alert(e)}})},hideEmptyStatus:function(){return"false"!==this.getCookie("weFormsEntryHideEmpty")},findCountry:function(t){return this.countries.find(function(e){return e.code===t})},getCountryName:function(e){if(this.findCountry(e))return this.findCountry(e).name},getAddressFieldValue:function(e){var t=e.match(/Country Select:(\s([A-Z])\w+)/g);if(null===t)return e;var n=t[0].substring(15,t[0].length).trim(),o=this.getCountryName(n),i=n;return e.replace(i,o)}},watch:{hideEmpty:function(e){this.setCookie("weFormsEntryHideEmpty",e,356)}}},Vue.component("form-list-table",{template:"#tmpl-wpuf-form-list-table",mixins:[weForms.mixins.Loading,weForms.mixins.Paginate,weForms.mixins.BulkAction],data:function(){return{loading:!1,index:"ID",items:[],bulkDeleteAction:"weforms_form_delete_bulk"}},created:function(){this.fetchData()},computed:{is_pro:function(){return"true"===weForms.is_pro},has_payment:function(){return"true"===weForms.has_payment}},methods:{fetchData:function(){var t=this;this.loading=!0,wp.ajax.send("weforms_form_list",{data:{_wpnonce:weForms.nonce,page:t.currentPage},success:function(e){t.loading=!1,t.items=e.forms,t.totalItems=e.meta.total,t.totalPage=e.meta.pages},error:function(e){t.loading=!1,alert(e)}})},deleteForm:function(t){var n=this;confirm("Are you sure?")&&(n.loading=!0,wp.ajax.send("weforms_form_delete",{data:{form_id:this.items[t].id,_wpnonce:weForms.nonce},success:function(e){n.items.splice(t,1),n.loading=!1},error:function(e){alert(e),n.loading=!1}}))},duplicate:function(e,t){var n=this;this.loading=!0,wp.ajax.send("weforms_form_duplicate",{data:{form_id:e,_wpnonce:weForms.nonce},success:function(e){n.items.splice(0,0,e),n.loading=!1},error:function(e){alert(e),n.loading=!1}})},handleBulkAction:function(){if("-1"!==this.bulkAction){if("delete"===this.bulkAction){if(!this.checkedItems.length)return void alert("Please select atleast one form to delete.");confirm("Are you sure to delete the forms?")&&this.deleteBulk()}}else alert("Please chose a bulk action to perform")},isPendingForm:function(e){return Math.round((new Date).getTime()/1e3)<Math.round(new Date(e).getTime()/1e3)},isExpiredForm:function(e){var t=Math.round((new Date).getTime()/1e3);return Math.round(new Date(e).getTime()/1e3)<t},isOpenForm:function(e,t){var n=Math.round((new Date).getTime()/1e3),o=Math.round(new Date(e).getTime()/1e3),i=Math.round(new Date(t).getTime()/1e3);return o<n&&n<i},isFormStatusClosed:function(e,t){return!("true"!==e.schedule_form||!this.isPendingForm(e.schedule_start))||(!("true"!==e.schedule_form||!this.isExpiredForm(e.schedule_end))||("true"===e.limit_entries&&t>=e.limit_number||void 0))},formatTime:function(e){var t=new Date(e);return t.toLocaleString("en-us",{month:"short"})+" "+t.getDate()+", "+t.getFullYear()}}}),weForms.routeComponents.FormPayments={props:{id:[String,Number]},template:"#tmpl-wpuf-form-payments",data:function(){return{form_title:"Loading..."}}},weForms.routeComponents.Home={template:"#tmpl-wpuf-home-page",data:function(){return{showTemplateModal:!1}},methods:{displayModal:function(){this.showTemplateModal=!0},closeModal:function(){this.showTemplateModal=!1}}},weForms.routeComponents.Tools={template:"#tmpl-wpuf-tools",mixins:[weForms.mixins.Tabs,weForms.mixins.Loading],data:function(){return{activeTab:"export",exportType:"all",loading:!1,forms:[],importButton:"Import",currentStatus:0,responseMessage:"",logs:[],ximport:{current:"",title:"",action:"",message:"",type:"updated",refs:{}}}},computed:{isInitial:function(){return 0===this.currentStatus},isSaving:function(){return 1===this.currentStatus},isSuccess:function(){return 2===this.currentStatus},isFailed:function(){return 3===this.currentStatus},hasRefs:function(){return Object.keys(this.ximport.refs).length},hasLogs:function(){return Object.keys(this.logs).length}},created:function(){this.fetchData(),this.fetchLogs()},methods:{fetchLogs:function(t){var n=this;n.startLoading(t),wp.ajax.send("weforms_read_logs",{data:{_wpnonce:weForms.nonce},success:function(e){n.stopLoading(t),n.logs=e},error:function(){n.stopLoading(t),n.logs=[]}})},deleteLogs:function(t){var n=this;confirm("Are you sure to clear the log file?")&&(n.startLoading(t),wp.ajax.send("weforms_delete_logs",{data:{_wpnonce:weForms.nonce},success:function(e){n.logs=[],n.stopLoading(t),n.fetchLogs()},error:function(e){n.logs=[],n.stopLoading(t),n.fetchLogs()}}))},stopLoading:function(e){(e=s(e)).is("button")?e.removeClass("updating-message").find("span").show():e.is("span")&&e.show().parent().removeClass("updating-message")},startLoading:function(e){(e=s(e)).is("button")?e.addClass("updating-message").find("span").hide():e.is("span")&&e.hide().parent().addClass("updating-message")},fetchData:function(){var t=this;this.loading=!0,wp.ajax.send("weforms_form_names",{data:{_wpnonce:weForms.nonce},success:function(e){t.loading=!1,t.forms=e},error:function(e){t.loading=!1,alert(e)}})},importForm:function(e,t,n){if(t.length){var o=new FormData,i=this;o.append(e,t[0],t[0].name),o.append("action","weforms_import_form"),o.append("_wpnonce",weForms.nonce),i.currentStatus=1,s.ajax({type:"POST",url:window.ajaxurl,data:o,processData:!1,contentType:!1,success:function(e){i.responseMessage=e.data,e.success?i.currentStatus=2:i.currentStatus=3,s(n.target).val("")},error:function(e){console.log(e),i.currentStatus=3},complete:function(){s(n.target).val("")}})}},importx:function(e,t){var n=s(e),o=this;o.ximport.current=t,n.addClass("updating-message").text(n.data("importing")),wp.ajax.send("weforms_import_xforms_"+t,{data:{_wpnonce:weForms.nonce},success:function(e){o.ximport.title=e.title,o.ximport.message=e.message,o.ximport.action=e.action,o.ximport.refs=e.refs},error:function(e){alert(e.message)},complete:function(){n.removeClass("updating-message").text(n.data("original"))}})},replaceX:function(e,t){var n=s(e),o=this;n.addClass("updating-message"),wp.ajax.send("weforms_import_xreplace_"+o.ximport.current,{data:{type:t,_wpnonce:weForms.nonce},success:function(e){"replace"===n.data("type")&&alert(e)},error:function(e){alert(e)},complete:function(){o.ximport.current="",o.ximport.title=""}})}}},weForms.routeComponents.Transactions={template:"#tmpl-wpuf-transactions",data:function(){return{selected:0,no_transactions:!1,forms:{},form_title:"Loading..."}},created:function(){this.get_forms()},methods:{get_forms:function(){var t=this;wp.ajax.send("weforms_form_list",{data:{_wpnonce:weForms.nonce,page:t.currentPage,filter:"transactions"},success:function(e){Object.keys(e.forms).length?(t.forms=e.forms,t.selected=t.forms[Object.keys(t.forms)[0]].id):(t.form_title="No transaction found",t.no_transactions=!0)},error:function(e){alert(e)}})}}},weForms.routeComponents.Help={template:"#tmpl-wpuf-weforms-page-help"},weForms.routeComponents.Privacy={template:"#tmpl-wpuf-weforms-page-privacy"},weForms.routeComponents.Premium={template:"#tmpl-wpuf-weforms-premium",data:function(){return{showModal:!1}}},weForms.routeComponents.Settings={template:"#tmpl-wpuf-weforms-settings",mixins:[weForms.mixins.Loading,weForms.mixins.Cookie],data:function(){return{loading:!1,settings:{email_gateway:"wordpress",credit:!1,permission:"manage_options",gateways:{sendgrid:"",mailgun:"",sparkpost:""},recaptcha:{type:"v2",key:"",secret:""}},activeTab:"general"}},computed:{is_pro:function(){return"true"===weForms.is_pro}},created:function(){this.fetchSettings(),this.getCookie("weforms_settings_active_tab")&&(this.activeTab=this.getCookie("weforms_settings_active_tab"))},methods:{makeActive:function(e){this.activeTab=e},isActiveTab:function(e){return this.activeTab===e},fetchSettings:function(){var e=this;e.loading=!0,wp.ajax.send("weforms_get_settings",{data:{_wpnonce:weForms.nonce},success:function(n){void 0!==n&&(s.each(e.settings,function(e,t){void 0===n[e]&&(n[e]=t)}),e.settings=n)},complete:function(){e.loading=!1}})},saveSettings:function(e){s(e).addClass("updating-message"),wp.ajax.send("weforms_save_settings",{data:{settings:JSON.stringify(this.settings),_wpnonce:weForms.nonce},success:function(e){toastr.options.timeOut=1e3,toastr.success("Settings has been updated"),weForms.settings=e},error:function(e){console.log(e)},complete:function(){s(e).removeClass("updating-message")}})},post:function(e,t,n){n=n||function(){},(t=t||{})._wpnonce=weForms.nonce,wp.ajax.send(e,{data:t,success:function(e){n(e)},error:function(e){console.log(e)},complete:function(){}})}},watch:{activeTab:function(e){this.setCookie("weforms_settings_active_tab",e,"365")}}},Array.prototype.hasOwnProperty("swap")||(Array.prototype.swap=function(e,t){this.splice(t,0,this.splice(e,1)[0])}),Vue.component("datepicker",{template:'<input type="text" v-bind:value="value" />',props:["value"],mounted:function(){s(this.$el).datetimepicker({dateFormat:"yy-mm-dd",timeFormat:"HH:mm:ss",onClose:this.onClose})},methods:{onClose:function(e){this.$emit("input",e)}}}),Vue.component("weforms-colorpicker",{template:'<input type="text" v-bind:value="value" />',props:["value"],mounted:function(){s(this.$el).wpColorPicker({change:this.onChange})},methods:{onChange:function(e,t){this.$emit("input",t.color.toString())}}});var e=new Vuex.Store({state:{post:{},form_fields:[],panel_sections:wpuf_form_builder.panel_sections,field_settings:wpuf_form_builder.field_settings,notifications:[],settings:{},integrations:{},current_panel:"form-fields",editing_field_id:0},mutations:{set_form_fields:function(e,t){Vue.set(e,"form_fields",t)},set_form_post:function(e,t){Vue.set(e,"post",t)},set_form_notification:function(e,t){Vue.set(e,"notifications",t)},set_form_integrations:function(e,t){Vue.set(e,"integrations",t)},set_form_settings:function(e,t){Vue.set(e,"settings",t)},set_current_panel:function(e,t){"field-options"!==e.current_panel&&"field-options"===t&&e.form_fields.length&&(e.editing_field_id=e.form_fields[0].id),"form-fields"===(e.current_panel=t)&&(e.editing_field_id=0)},panel_add_show_prop:function(n){n.panel_sections.map(function(e,t){e.hasOwnProperty("show")||Vue.set(n.panel_sections[t],"show",!0)})},panel_toggle:function(e,t){e.panel_sections[t].show=!e.panel_sections[t].show},open_field_settings:function(e,t){var n=e.form_fields.filter(function(e){return parseInt(t)===parseInt(e.id)});"field-options"===e.current_panel&&n[0].id===e.editing_field_id||n.length&&(e.editing_field_id=0,e.current_panel="field-options",setTimeout(function(){e.editing_field_id=n[0].id},400))},update_editing_form_field:function(e,t){var n=0;for(n=0;n<e.form_fields.length;n++)if(e.form_fields[n].id===parseInt(t.editing_field_id)&&(e.form_fields[n][t.field_name]=t.value),"column_field"===e.form_fields[n].template){var o=e.form_fields[n].inner_fields;for(var i in o)if(o.hasOwnProperty(i))for(var r=0;r<o[i].length;)o[i][r].id===parseInt(t.editing_field_id)&&(o[i][r][t.field_name]=t.value),r++}},add_form_field_element:function(e,t){e.form_fields.splice(t.toIndex,0,t.field),Vue.nextTick(function(){var e=s("#form-preview-stage .wpuf-form .field-items").eq(t.toIndex);e&&!function(e){"function"==typeof jQuery&&e instanceof jQuery&&(e=e[0]);var t=e.getBoundingClientRect();return 0<=t.top&&0<=t.left&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}(e.get(0))&&s("#builder-stage section").scrollTo(e,800,{offset:-50})})},swap_form_field_elements:function(e,t){e.form_fields.swap(t.fromIndex,t.toIndex)},clone_form_field_element:function(e,t){var n=_.find(e.form_fields,function(e){return parseInt(e.id)===parseInt(t.field_id)}),o=s.extend(!0,{},n),i=parseInt(t.index)+1;o.id=t.new_id,o.name=o.name+"_copy",o.is_new=!0,e.form_fields.splice(i,0,o)},delete_form_field_element:function(e,t){e.current_panel="form-fields",e.form_fields.splice(t,1)},set_panel_section_fields:function(e,t){_.find(e.panel_sections,function(e){return e.id===t.id}).fields=t.fields},addNotification:function(e,t){e.notifications.push(_.clone(t))},deleteNotification:function(e,t){e.notifications.splice(t,1)},cloneNotification:function(e,t){var n=s.extend(!0,{},e.notifications[t]);t=parseInt(t)+1,e.notifications.splice(t,0,n)},updateNotificationProperty:function(e,t){e.notifications[t.index][t.property]=t.value},updateNotification:function(e,t){e.notifications[t.index]=t.value},updateIntegration:function(e,t){Vue.set(e.integrations,t.index,t.value)},add_column_inner_field_element:function(e,t){var n=e.form_fields.findIndex(function(e){return e.id===t.toWhichColumnField});(void 0===e.form_fields[n].inner_fields[t.toWhichColumn]&&(e.form_fields[n].inner_fields[t.toWhichColumn]=[]),void 0!==e.form_fields[n].inner_fields[t.toWhichColumn])&&(e.form_fields[n].inner_fields[t.toWhichColumn].filter(function(e){return e.name===t.field.name}).length<=0&&e.form_fields[n].inner_fields[t.toWhichColumn].splice(t.toIndex,0,t.field))},move_column_inner_fields:function(t,n){var o=t.form_fields.findIndex(function(e){return e.id===n.field_id}),i=n.inner_fields,r=[];Object.keys(i).forEach(function(e){"column-1"===n.move_to&&(i[e].forEach(function(e){r.push(e)}),t.form_fields[o].inner_fields[e].splice(0,i[e].length)),"column-2"===n.move_to&&("column-2"!==e&&"column-3"!==e||(i[e].forEach(function(e){r.push(e)}),t.form_fields[o].inner_fields[e].splice(0,i[e].length)))}),0!==r.length&&r.forEach(function(e){t.form_fields[o].inner_fields[n.move_to].splice(0,0,e)})},swap_column_field_elements:function(e,t){var n=e.form_fields.findIndex(function(e){return e.id===t.field_id}),o=e.form_fields[n].inner_fields[t.fromColumn][t.fromIndex];t.fromColumn!==t.toColumn?(e.form_fields[n].inner_fields[t.toColumn].splice(t.toIndex,0,o),e.form_fields[n].inner_fields[t.fromColumn].splice(t.fromIndex,1)):e.form_fields[n].inner_fields[t.toColumn].swap(t.fromIndex,t.toIndex)},open_column_field_settings:function(e,t){var n=t.column_field;"field-options"===e.current_panel&&n.id===e.editing_field_id||n&&(e.editing_field_id=0,e.current_panel="field-options",e.editing_field_type="column_field",e.editing_column_field_id=t.field_id,e.edting_field_column=t.column,e.editing_inner_field_index=t.index,setTimeout(function(){e.editing_field_id=n.id},400))},clone_column_field_element:function(e,t){var n=e.form_fields.findIndex(function(e){return e.id===t.field_id}),o=_.find(e.form_fields[n].inner_fields[t.toColumn],function(e){return parseInt(e.id)===parseInt(t.column_field_id)}),i=s.extend(!0,{},o),r=parseInt(t.index)+1;i.id=t.new_id,i.name=i.name+"_copy",i.is_new=!0,e.form_fields[n].inner_fields[t.toColumn].splice(r,0,i)},delete_column_field_element:function(e,t){var n=e.form_fields.findIndex(function(e){return e.id===t.field_id});e.current_panel="form-fields",e.form_fields[n].inner_fields[t.fromColumn].splice(t.index,1)}}});weForms.routeComponents.FormHome={template:'<div><router-view class="child"></router-view></div>'},weForms.routeComponents.SingleForm={template:"#tmpl-wpuf-form-editor"},weForms.routeComponents.FormEntriesHome={template:'<div><router-view class="grand-child"></router-view></div>'},function e(t){for(var n=0;n<t.length;n++)"object"===_typeof(t[n].children)?(e(t[n].children),void 0!==t[n].component&&(t[n].component=weForms.routeComponents[t[n].component])):t[n].component=weForms.routeComponents[t[n].component]}(weForms.routes);var t=new VueRouter({routes:weForms.routes,scrollBehavior:function(e,t,n){return n||{x:0,y:0}}});window.weFormsBuilderisDirty=!1,t.beforeEach(function(e,t,n){if(window.weFormsBuilderisDirty){if(!confirm(wpuf_form_builder.i18n.unsaved_changes+" "+wpuf_form_builder.i18n.areYouSureToLeave))return n(t.path),!1;window.weFormsBuilderisDirty=!1}n()}),weForms.validators={is_recaptcha_v2:function(){return"v2"===weForms.settings.recaptcha.type}};new Vue({router:t,store:e}).$mount("#wpuf-contact-form-app");var o=s("#toplevel_page_weforms");o.on("click","a",function(){var e=s(this);s("ul.wp-submenu li",o).removeClass("current"),e.hasClass("wp-has-submenu")?s("li.wp-first-item",o).addClass("current"):e.parents("li").addClass("current")}),s(function(){var e=window.location.href,n=e.substr(e.indexOf("admin.php"));s("ul.wp-submenu a",o).each(function(e,t){s(t).attr("href")!==n||s(t).parent().addClass("current")})})}(jQuery); -
weforms/tags/1.6.5/includes/admin/class-admin.php
r2403226 r2477338 10 10 add_action( 'admin_menu', [ $this, 'register_admin_menu' ] ); 11 11 add_action( 'pre_update_option_wpuf_general', [ $this, 'watch_wpuf_settings' ] ); 12 13 add_action( 'admin_notices', array( $this, 'wpuf_premium_cta' ) ); 12 14 13 15 add_filter( 'admin_footer_text', [ $this, 'admin_footer_text' ] ); … … 388 390 include __DIR__ . '/views/weforms-settings-privacy.php'; 389 391 } 392 393 /** 394 * WeForms Pro CTA notice 395 * 396 * @since 1.6.5 397 */ 398 public function wpuf_premium_cta() { 399 $screen = get_current_screen(); 400 if ( $screen && $screen->base && 'toplevel_page_weforms' !== $screen->base ) { 401 return; 402 } 403 404 if ( ! class_exists( 'WeForms_Pro' ) ) { 405 ?> 406 <div class="notice updated premium-cta"> 407 <p style="display: flex;align-items: center;"> 408 <img style="padding-right:15px;" src="<?php echo WEFORMS_ASSET_URI . '/images/weforms-logo.png'; ?>"> 409 <?php _e( 'You're using weForms Free. For more features, modules and more consider upgrading to Pro.' , 'weforms' ); ?> 410 </p> 411 <p class="submit"> 412 <a href="https://weformspro.com/get-premium/?utm_source=Entries&utm_medium=Button&utm_campaign=Upgrade%20Now" target="_blank" class="button-primary"><?php _e( 'UPGRADE NOW!' , 'weforms' ); ?></a> 413 </p> 414 </div> 415 <?php 416 } 417 } 390 418 } -
weforms/tags/1.6.5/includes/admin/class-form-builder-assets.php
r2403226 r2477338 11 11 12 12 public function init_actions() { 13 add_action( 'in_admin_header', [ $this, 'remove_admin_notices' ] );14 13 add_action( 'admin_enqueue_scripts', [ $this, 'builder_enqueue_scripts' ], 2000 ); 15 14 add_action( 'admin_print_scripts', [ $this, 'builder_mixins_script' ] ); … … 25 24 26 25 do_action( 'weforms_form_builder_init' ); 27 }28 29 /**30 * Remove all kinds of admin notices31 *32 * Since we don't have much space left on top of the page,33 * we have to remove all kinds of admin notices34 *35 * @since 1.2.636 *37 * @return void38 */39 public function remove_admin_notices() {40 remove_all_actions( 'network_admin_notices' );41 remove_all_actions( 'user_admin_notices' );42 remove_all_actions( 'admin_notices' );43 remove_all_actions( 'all_admin_notices' );44 26 } 45 27 -
weforms/tags/1.6.5/includes/admin/class-promotion.php
r2403226 r2477338 164 164 } 165 165 166 $screen = get_current_screen(); 167 if ( $screen && $screen->base && 'toplevel_page_weforms' !== $screen->base ) { 168 return; 169 } 170 166 171 $dismiss_notice = get_option( 'weforms_review_notice_dismiss', 'no' ); 167 172 $activation_time = get_option( 'weforms_installed' ); … … 189 194 return; 190 195 } ?> 191 <div id="weforms-review-notice" class="weforms-review-notice"> 192 <div class="weforms-review-thumbnail"> 193 <img src="<?php echo esc_attr( WEFORMS_ASSET_URI ) . '/images/icon-weforms.png' ?>" alt=""> 194 </div> 195 <div class="weforms-review-text"> 196 <?php if ( $total_entries >= 25 ) : ?> 197 <h3><?php wp_kses_post( __( 'Enjoying <strong>weForms</strong>?', 'weforms' ) ) ?></h3> 198 <p><?php wp_kses_post( __('Seems like you are getting a good response using <strong>weForms</strong>. Would you please show us a little love by rating us in the <a href="https://wordpress.org/support/plugin/weforms/reviews/#postform" target="_blank"><strong>WordPress.org</strong></a>?', 'weforms') ) ?></p> 199 <?php else: ?> 200 <h3><?php wp_kses_post( __( 'Enjoying <strong>weForms</strong>?', 'weforms' ) ) ?></h3> 201 <p><?php wp_kses_post( __( 'Hope that you had a neat and snappy experience with the tool. Would you please show us a little love by rating us in the <a href="https://wordpress.org/support/plugin/weforms/reviews/#postform" target="_blank"><strong>WordPress.org</strong></a>?', 'weforms' ) ) ?></p> 202 <?php endif; ?> 203 204 <ul class="weforms-review-ul"> 205 <li><a href="https://wordpress.org/support/plugin/weforms/reviews/#postform" target="_blank"><span 206 class="dashicons dashicons-external"></span><?php esc_html_e( 'Sure! I\'d love to!', 'weforms' ) ?> 207 </a></li> 208 <li><a href="#" class="notice-dismiss"><span 209 class="dashicons dashicons-smiley"></span><?php esc_html_e( 'I\'ve already left a review', 'weforms' ) ?> 210 </a></li> 211 <li><a href="#" class="notice-dismiss"><span 212 class="dashicons dashicons-dismiss"></span><?php esc_html_e( 'Never show again', 'weforms' ) ?> 213 </a> 214 </li> 215 </ul> 216 </div> 196 <div id="weforms-review-notice" class="weforms-review-notice updated notice"> 197 <div class="weforms-review-top"> 198 <p><img src="<?php echo esc_attr( WEFORMS_ASSET_URI ) . '/images/weforms-logo.png'; ?>" alt=""></p> 199 <div class="weforms-review-text"> 200 <?php if ( $total_entries >= 25 ) : ?> 201 <h3><?php printf( __( 'Enjoying %sweForms%s?', 'weforms' ), '<strong>', '</strong>' ); ?></h3> 202 <p><?php 203 printf( 204 // translators: opening <a>tag, closing </a> tag. 205 __( 206 'Seems like you are getting a good response using weForms. Would you please show us a little love by rating us in the %sWordPress.org%s?', 207 'weforms' 208 ), 209 '<a href="https://wordpress.org/support/plugin/weforms/reviews/#postform" target="_blank"><strong>', 210 '</strong></a>' 211 ); ?></p> 212 <?php else: ?> 213 <h3><?php printf( 214 // translators: opening <strong> tag, closing </strong> tag. 215 __( 'Enjoying %sweForms%s?', 'weforms' ), 216 '<strong>', 217 '</strong>' ); ?></h3> 218 <p><?php 219 printf( 220 // translators: opening <a> tag, closing </a> tag 221 __( 222 'Hope that you had a neat and snappy experience with the tool. Would you please show us a little love by rating us in the %sWordPress.org%s?', 223 'weforms' 224 ), 225 '<a href="https://wordpress.org/support/plugin/weforms/reviews/#postform" target="_blank"><strong>', 226 '</strong></a>' 227 ); ?></p> 228 <?php endif; ?> 229 </div> 230 </div> 231 <div class="weforms-review-links"> 232 <ul class="weforms-review-ul"> 233 <li><a class="button-primary button" href="https://wordpress.org/support/plugin/weforms/reviews/#postform" target="_blank"><span 234 class="dashicons dashicons-external"></span><?php esc_html_e( 'Sure! I\'d love to!', 'weforms' ) ?> 235 </a></li> 236 <li><a href="#" class="button notice-dismiss"><span 237 class="dashicons dashicons-smiley"></span><?php esc_html_e( 'I\'ve already left a review', 'weforms' ) ?> 238 </a></li> 239 <li><a href="#" class="button notice-dismiss"><span 240 class="dashicons dashicons-dismiss"></span><?php esc_html_e( 'Never show again', 'weforms' ) ?> 241 </a> 242 </li> 243 </ul> 244 </div> 217 245 </div> 218 246 <style type="text/css"> 219 #weforms-review-notice .notice-dismiss {220 padding: 0 0 0 26px;221 }222 247 223 248 #weforms-review-notice .notice-dismiss:before { … … 226 251 227 252 #weforms-review-notice.weforms-review-notice { 228 padding: 15px 15px 15px 0;229 253 background-color: #fff; 230 254 border-radius: 3px; 231 margin: 20px 20px 0 0; 232 border-left: 4px solid transparent; 233 } 255 margin: 5px 0 15px; 256 } 257 258 #weforms-review-notice .weforms-review-top { 259 display: flex; 260 margin: 0.5em 0; 261 } 262 263 #weforms-review-notice .weforms-review-top > p { 264 padding-right: 15px; 265 } 234 266 235 267 #weforms-review-notice .weforms-review-thumbnail { … … 257 289 } 258 290 291 #weforms-review-notice .weforms-review-links { 292 margin: 0.5em 0; 293 } 294 259 295 #weforms-review-notice .weforms-review-text p { 260 296 font-size: 13px; … … 273 309 274 310 #weforms-review-notice .weforms-review-ul li a { 275 display: inline-block; 276 color: #82C776; 311 display: flex; 312 align-items: center; 313 justify-content: space-between; 277 314 text-decoration: none; 278 padding-left: 26px;279 315 position: relative; 280 316 } 281 317 282 318 #weforms-review-notice .weforms-review-ul li a span { 283 position: absolute; 284 left: 0; 285 top: -2px; 319 margin-right: 10px; 286 320 } 287 321 </style> -
weforms/tags/1.6.5/includes/admin/views/vue-index.php
r2403226 r2477338 1 1 <div class="wrap"> 2 <h1></h1> 2 3 <div id="wpuf-contact-form-app"> 3 4 <router-view></router-view> -
weforms/tags/1.6.5/includes/library/appsero/Insights.php
r2403226 r2477338 141 141 */ 142 142 protected function init_common() { 143 144 if ( $this->show_notice ) {145 // tracking notice146 add_action( 'admin_notices', array( $this, 'admin_notice' ) );147 }148 149 143 add_action( 'admin_init', array( $this, 'handle_optin_optout' ) ); 150 144 … … 341 335 private function clear_schedule_event() { 342 336 wp_clear_scheduled_hook( $this->client->slug . '_tracker_send_event' ); 343 }344 345 /**346 * Display the admin notice to users that have not opted-in or out347 *348 * @return void349 */350 public function admin_notice() {351 352 if ( $this->notice_dismissed() ) {353 return;354 }355 356 if ( ! current_user_can( 'manage_options' ) ) {357 return;358 }359 360 // don't show tracking if a local server361 if ( ! $this->is_local_server() ) {362 $learn_url = admin_url('admin.php?page=weforms#/settings');363 $optout_url = add_query_arg( $this->client->slug . '_hide_fortressdb', 'true' );364 365 if ( empty( $this->notice ) ) {366 $notice = sprintf( __( "Want to better secure your contact form's valuable data? Check out FortressDB!", $this->client->textdomain, 'weforms' ), $this->client->name );367 } else {368 $notice = $this->notice;369 }370 371 echo '<div class="updated"><p>';372 echo $notice;373 echo '</p><p class="submit">';374 echo ' <a href="' . esc_url( $learn_url ) . '" class="button-primary button-large">' . __( 'Learn More', $this->client->textdomain, 'weforms' ) . '</a>';375 echo ' <a href="' . esc_url( $optout_url ) . '" class="button-secondary button-large">' . __( 'Hide', $this->client->textdomain, 'weforms' ) . '</a>';376 echo '</p></div>';377 }378 337 } 379 338 -
weforms/tags/1.6.5/languages/weforms.pot
r2416759 r2477338 1 # Copyright (C) 202 0weForms1 # Copyright (C) 2021 weForms 2 2 # This file is distributed under the GPL2 or later. 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: weForms 1.6. 2\n"5 "Project-Id-Version: weForms 1.6.5\n" 6 6 "Report-Msgid-Bugs-To: https://wedevs.com/contact/\n" 7 "POT-Creation-Date: 202 0-11-11 16:37:27+00:00\n"7 "POT-Creation-Date: 2021-02-18 21:24:28+00:00\n" 8 8 "MIME-Version: 1.0\n" 9 9 "Content-Type: text/plain; charset=utf-8\n" 10 10 "Content-Transfer-Encoding: 8bit\n" 11 "PO-Revision-Date: 202 0-MO-DA HO:MI+ZONE\n"11 "PO-Revision-Date: 2021-MO-DA HO:MI+ZONE\n" 12 12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 13 13 "Language-Team: LANGUAGE <EMAIL@ADDRESS>\n" … … 59 59 msgstr "" 60 60 61 #: includes/admin/class-admin.php:3 4 includes/admin/class-admin.php:5661 #: includes/admin/class-admin.php:36 includes/admin/class-admin.php:58 62 62 msgid "Contact Forms" 63 63 msgstr "" 64 64 65 #: includes/admin/class-admin.php:5 465 #: includes/admin/class-admin.php:56 66 66 msgid "Forms" 67 67 msgstr "" 68 68 69 #: includes/admin/class-admin.php:5 5includes/class-form-widget.php:4969 #: includes/admin/class-admin.php:57 includes/class-form-widget.php:49 70 70 #: includes/functions.php:753 71 71 msgid "Form" 72 72 msgstr "" 73 73 74 #: includes/admin/class-admin.php:5 774 #: includes/admin/class-admin.php:59 75 75 msgid "Add Form" 76 76 msgstr "" 77 77 78 #: includes/admin/class-admin.php: 5878 #: includes/admin/class-admin.php:60 79 79 msgid "Add New Form" 80 80 msgstr "" 81 81 82 #: includes/admin/class-admin.php: 5982 #: includes/admin/class-admin.php:61 83 83 msgid "Edit" 84 84 msgstr "" 85 85 86 #: includes/admin/class-admin.php:6 086 #: includes/admin/class-admin.php:62 87 87 msgid "Edit Form" 88 88 msgstr "" 89 89 90 #: includes/admin/class-admin.php:6 190 #: includes/admin/class-admin.php:63 91 91 msgid "New Form" 92 92 msgstr "" 93 93 94 #: includes/admin/class-admin.php:6 2 includes/admin/class-admin.php:6394 #: includes/admin/class-admin.php:64 includes/admin/class-admin.php:65 95 95 msgid "View Form" 96 96 msgstr "" 97 97 98 #: includes/admin/class-admin.php:6 498 #: includes/admin/class-admin.php:66 99 99 msgid "Search Form" 100 100 msgstr "" 101 101 102 #: includes/admin/class-admin.php:6 5102 #: includes/admin/class-admin.php:67 103 103 msgid "No Form Found" 104 104 msgstr "" 105 105 106 #: includes/admin/class-admin.php:6 6106 #: includes/admin/class-admin.php:68 107 107 msgid "No Form Found in Trash" 108 108 msgstr "" 109 109 110 #: includes/admin/class-admin.php:6 7110 #: includes/admin/class-admin.php:69 111 111 msgid "Parent Form" 112 112 msgstr "" 113 113 114 #: includes/admin/class-admin.php:8 2114 #: includes/admin/class-admin.php:84 115 115 msgid "weForms - The Best Contact Form" 116 116 msgstr "" 117 117 118 #: includes/admin/class-admin.php:8 5118 #: includes/admin/class-admin.php:87 119 119 msgid "All Forms" 120 120 msgstr "" 121 121 122 #: includes/admin/class-admin.php:8 6122 #: includes/admin/class-admin.php:88 123 123 msgid "Entries" 124 124 msgstr "" 125 125 126 #: includes/admin/class-admin.php:8 7126 #: includes/admin/class-admin.php:89 127 127 msgid "Tools" 128 128 msgstr "" 129 129 130 #: includes/admin/class-admin.php:9 1130 #: includes/admin/class-admin.php:93 131 131 msgid "Modules" 132 132 msgstr "" 133 133 134 #: includes/admin/class-admin.php:9 4134 #: includes/admin/class-admin.php:96 135 135 #: includes/admin/views/weforms-settings-general.php:14 136 136 #: includes/admin/views/weforms-settings-general.php:15 … … 139 139 msgstr "" 140 140 141 #: includes/admin/class-admin.php: 99141 #: includes/admin/class-admin.php:101 142 142 msgid "<span style=\"color:#f18500\">Help</span>" 143 143 msgstr "" 144 144 145 #: includes/admin/class-admin.php:10 0 includes/admin/class-admin.php:341145 #: includes/admin/class-admin.php:102 includes/admin/class-admin.php:343 146 146 #: includes/admin/views/weforms-settings-privacy.php:1 147 147 msgid "Privacy" 148 148 msgstr "" 149 149 150 #: includes/admin/class-admin.php:10 5weforms.php:394150 #: includes/admin/class-admin.php:107 weforms.php:394 151 151 msgid "Settings" 152 152 msgstr "" 153 153 154 #: includes/admin/class-admin.php:18 4154 #: includes/admin/class-admin.php:186 155 155 #: includes/api/class-weforms-forms-controller.php:1368 156 156 #: includes/functions.php:773 … … 158 158 msgstr "" 159 159 160 #: includes/admin/class-admin.php:18 5160 #: includes/admin/class-admin.php:187 161 161 #: includes/api/class-weforms-forms-controller.php:1369 162 162 #: includes/functions.php:764 … … 165 165 msgstr "" 166 166 167 #: includes/admin/class-admin.php:30 6167 #: includes/admin/class-admin.php:308 168 168 msgid "If you like %1$s please leave us a %2$s rating." 169 169 msgstr "" … … 173 173 msgstr "" 174 174 175 #: includes/admin/class-admin.php:32 4175 #: includes/admin/class-admin.php:326 176 176 #: includes/admin/views/weforms-settings-general.php:1 177 177 msgid "General Settings" 178 178 msgstr "" 179 179 180 #: includes/admin/class-admin.php:3 29180 #: includes/admin/class-admin.php:331 181 181 #: includes/admin/views/weforms-settings-recaptcha.php:1 182 182 #: includes/fields/class-field-recaptcha.php:9 … … 184 184 msgstr "" 185 185 186 #: includes/admin/class-admin.php:33 4186 #: includes/admin/class-admin.php:336 187 187 #: includes/admin/views/weforms-settings-secure-database.php:1 188 188 msgid "Secure Database" 189 189 msgstr "" 190 190 191 #: includes/admin/class-form-builder-assets.php:63 includes/functions.php:1167 191 #: includes/admin/class-admin.php:409 192 msgid "" 193 "You're using weForms Free. For more features, modules and more consider " 194 "upgrading to Pro." 195 msgstr "" 196 197 #: includes/admin/class-admin.php:412 198 msgid "UPGRADE NOW!" 199 msgstr "" 200 201 #: includes/admin/class-form-builder-assets.php:45 includes/functions.php:1167 192 202 #: includes/functions.php:1170 193 203 msgid "New Form Submission" 194 204 msgstr "" 195 205 196 #: includes/admin/class-form-builder-assets.php: 100197 #: includes/admin/class-form-builder-assets.php: 309206 #: includes/admin/class-form-builder-assets.php:82 207 #: includes/admin/class-form-builder-assets.php:291 198 208 #: includes/class-scripts-styles.php:426 199 209 msgid "Are you sure?" 200 210 msgstr "" 201 211 202 #: includes/admin/class-form-builder-assets.php:2 79212 #: includes/admin/class-form-builder-assets.php:261 203 213 msgid "Advanced Options" 204 214 msgstr "" 205 215 206 #: includes/admin/class-form-builder-assets.php:2 80216 #: includes/admin/class-form-builder-assets.php:262 207 217 msgid "Quiz Options" 208 218 msgstr "" 209 219 210 #: includes/admin/class-form-builder-assets.php:2 81220 #: includes/admin/class-form-builder-assets.php:263 211 221 msgid "Are you sure you want to delete this field?" 212 222 msgstr "" 213 223 214 #: includes/admin/class-form-builder-assets.php:2 82224 #: includes/admin/class-form-builder-assets.php:264 215 225 #: includes/class-scripts-styles.php:427 216 226 msgid "Yes, delete it" 217 227 msgstr "" 218 228 219 #: includes/admin/class-form-builder-assets.php:2 83229 #: includes/admin/class-form-builder-assets.php:265 220 230 #: includes/class-scripts-styles.php:428 221 231 msgid "No, cancel it" 222 232 msgstr "" 223 233 224 #: includes/admin/class-form-builder-assets.php:2 84234 #: includes/admin/class-form-builder-assets.php:266 225 235 msgid "OK" 226 236 msgstr "" 227 237 228 #: includes/admin/class-form-builder-assets.php:2 85229 #: includes/library/appsero/Insights.php: 718238 #: includes/admin/class-form-builder-assets.php:267 239 #: includes/library/appsero/Insights.php:677 230 240 msgid "Cancel" 231 241 msgstr "" 232 242 233 #: includes/admin/class-form-builder-assets.php:2 86243 #: includes/admin/class-form-builder-assets.php:268 234 244 #: includes/admin/class-shortcode-button.php:84 235 245 msgid "Close" 236 246 msgstr "" 237 247 238 #: includes/admin/class-form-builder-assets.php:2 87248 #: includes/admin/class-form-builder-assets.php:269 239 249 msgid "Disable" 240 250 msgstr "" 241 251 242 #: includes/admin/class-form-builder-assets.php:2 88252 #: includes/admin/class-form-builder-assets.php:270 243 253 msgid "This field must contain at least one choice" 244 254 msgstr "" 245 255 246 #: includes/admin/class-form-builder-assets.php:2 89256 #: includes/admin/class-form-builder-assets.php:271 247 257 #: includes/fields/class-field-checkbox.php:90 248 258 #: includes/fields/class-field-dropdown.php:93 … … 252 262 msgstr "" 253 263 254 #: includes/admin/class-form-builder-assets.php:2 90264 #: includes/admin/class-form-builder-assets.php:272 255 265 msgid "Row" 256 266 msgstr "" 257 267 258 #: includes/admin/class-form-builder-assets.php:2 91268 #: includes/admin/class-form-builder-assets.php:273 259 269 msgid "Column" 260 270 msgstr "" 261 271 262 #: includes/admin/class-form-builder-assets.php:2 92272 #: includes/admin/class-form-builder-assets.php:274 263 273 msgid "This field must contain at least one column" 264 274 msgstr "" 265 275 266 #: includes/admin/class-form-builder-assets.php:2 93276 #: includes/admin/class-form-builder-assets.php:275 267 277 msgid "is available in Pro version" 268 278 msgstr "" 269 279 270 #: includes/admin/class-form-builder-assets.php:2 94280 #: includes/admin/class-form-builder-assets.php:276 271 281 msgid "Please upgrade to the Pro version to unlock all these awesome features" 272 282 msgstr "" 273 283 274 #: includes/admin/class-form-builder-assets.php:2 95284 #: includes/admin/class-form-builder-assets.php:277 275 285 msgid "Get the Pro version" 276 286 msgstr "" 277 287 278 #: includes/admin/class-form-builder-assets.php:2 96288 #: includes/admin/class-form-builder-assets.php:278 279 289 msgid "Select" 280 290 msgstr "" 281 291 282 #: includes/admin/class-form-builder-assets.php:2 97292 #: includes/admin/class-form-builder-assets.php:279 283 293 msgid "Saved form data" 284 294 msgstr "" 285 295 286 #: includes/admin/class-form-builder-assets.php:2 98296 #: includes/admin/class-form-builder-assets.php:280 287 297 msgid "You have unsaved changes." 288 298 msgstr "" 289 299 290 #: includes/admin/class-form-builder-assets.php:2 99300 #: includes/admin/class-form-builder-assets.php:281 291 301 msgid "Are you sure to leave this page?" 292 302 msgstr "" 293 303 294 #: includes/admin/class-form-builder-assets.php: 300304 #: includes/admin/class-form-builder-assets.php:282 295 305 msgid "Click to copy shortcode" 296 306 msgstr "" 297 307 298 #: includes/admin/class-form-builder-assets.php: 302308 #: includes/admin/class-form-builder-assets.php:284 299 309 msgid "Select an image" 300 310 msgstr "" 301 311 302 #: includes/admin/class-form-builder-assets.php: 303312 #: includes/admin/class-form-builder-assets.php:285 303 313 msgid "Please select an image" 304 314 msgstr "" 305 315 306 #: includes/admin/class-form-builder-assets.php: 304316 #: includes/admin/class-form-builder-assets.php:286 307 317 msgid "Upload an image" 308 318 msgstr "" 309 319 310 #: includes/admin/class-form-builder-assets.php: 306320 #: includes/admin/class-form-builder-assets.php:288 311 321 msgid "Share Your Form" 312 322 msgstr "" 313 323 314 #: includes/admin/class-form-builder-assets.php: 307324 #: includes/admin/class-form-builder-assets.php:289 315 325 msgid "" 316 326 "Sharing your form enables <strong>anyone</strong> to view and submit the " … … 318 328 msgstr "" 319 329 320 #: includes/admin/class-form-builder-assets.php: 308330 #: includes/admin/class-form-builder-assets.php:290 321 331 msgid "Anyone with this URL will be able to view and submit this form." 322 332 msgstr "" 323 333 324 #: includes/admin/class-form-builder-assets.php: 310334 #: includes/admin/class-form-builder-assets.php:292 325 335 msgid "You must select a notification" 326 336 msgstr "" 327 337 328 #: includes/admin/class-form-builder-assets.php: 311338 #: includes/admin/class-form-builder-assets.php:293 329 339 msgid "Anyone with existing URL won't be able to view and submit the form anymore." 330 340 msgstr "" 331 341 332 #: includes/admin/class-form-builder-assets.php: 312342 #: includes/admin/class-form-builder-assets.php:294 333 343 msgid "Disable Sharing" 334 344 msgstr "" 335 345 336 #: includes/admin/class-form-builder-assets.php:3 34346 #: includes/admin/class-form-builder-assets.php:316 337 347 msgid "Notifications" 338 348 msgstr "" 339 349 340 #: includes/admin/class-form-builder-assets.php:3 35350 #: includes/admin/class-form-builder-assets.php:317 341 351 msgid "Integrations" 342 352 msgstr "" 343 353 344 #: includes/admin/class-form-builder-assets.php:3 57354 #: includes/admin/class-form-builder-assets.php:339 345 355 msgid "Form Settings" 346 356 msgstr "" 347 357 348 #: includes/admin/class-form-builder-assets.php:3 58358 #: includes/admin/class-form-builder-assets.php:340 349 359 msgid "Submission Restriction" 350 360 msgstr "" 351 361 352 #: includes/admin/class-form-builder-assets.php:3 59362 #: includes/admin/class-form-builder-assets.php:341 353 363 msgid "Display Settings" 354 364 msgstr "" 355 365 356 #: includes/admin/class-form-builder-assets.php:3 94366 #: includes/admin/class-form-builder-assets.php:376 357 367 #: includes/admin/class-privacy.php:242 includes/functions.php:771 358 368 msgid "User" 359 369 msgstr "" 360 370 361 #: includes/admin/class-form-builder-assets.php:3 96includes/functions.php:775371 #: includes/admin/class-form-builder-assets.php:378 includes/functions.php:775 362 372 #: includes/integrations/mailpoet/component/template.php:38 363 373 #: includes/templates/class-template-conference-proposal.php:33 … … 763 773 msgstr "" 764 774 765 #: includes/admin/class-promotion.php:197766 #: includes/admin/class-promotion.php:200767 msgid "Enjoying <strong>weForms</strong>?"768 msgstr ""769 770 #: includes/admin/class-promotion.php:198771 msgid ""772 "Seems like you are getting a good response using <strong>weForms</strong>. "773 "Would you please show us a little love by rating us in the <a "774 "href=\"https://wordpress.org/support/plugin/weforms/reviews/#postform\" "775 "target=\"_blank\"><strong>WordPress.org</strong></a>?"776 msgstr ""777 778 775 #: includes/admin/class-promotion.php:201 776 #: includes/admin/class-promotion.php:215 777 #. translators: opening <strong> tag, closing </strong> tag. 778 msgid "Enjoying %sweForms%s?" 779 msgstr "" 780 781 #: includes/admin/class-promotion.php:205 782 #. translators: opening <a>tag, closing </a> tag. 783 msgid "" 784 "Seems like you are getting a good response using weForms. Would you please " 785 "show us a little love by rating us in the %sWordPress.org%s?" 786 msgstr "" 787 788 #: includes/admin/class-promotion.php:221 789 #. translators: opening <a> tag, closing </a> tag 779 790 msgid "" 780 791 "Hope that you had a neat and snappy experience with the tool. Would you " 781 "please show us a little love by rating us in the <a " 782 "href=\"https://wordpress.org/support/plugin/weforms/reviews/#postform\" " 783 "target=\"_blank\"><strong>WordPress.org</strong></a>?" 784 msgstr "" 785 786 #: includes/admin/class-promotion.php:206 792 "please show us a little love by rating us in the %sWordPress.org%s?" 793 msgstr "" 794 795 #: includes/admin/class-promotion.php:234 787 796 msgid "Sure! I'd love to!" 788 797 msgstr "" 789 798 790 #: includes/admin/class-promotion.php:2 09799 #: includes/admin/class-promotion.php:237 791 800 msgid "I've already left a review" 792 801 msgstr "" 793 802 794 #: includes/admin/class-promotion.php:2 12803 #: includes/admin/class-promotion.php:240 795 804 msgid "Never show again" 796 805 msgstr "" 797 806 798 #: includes/admin/class-promotion.php:3 11799 #: includes/admin/class-promotion.php:3 15800 #: includes/admin/class-promotion.php:3 37801 #: includes/admin/class-promotion.php:3 41includes/class-ajax.php:99807 #: includes/admin/class-promotion.php:345 808 #: includes/admin/class-promotion.php:349 809 #: includes/admin/class-promotion.php:371 810 #: includes/admin/class-promotion.php:375 includes/class-ajax.php:99 802 811 #: includes/fields/class-abstract-fields.php:533 803 812 #: includes/fields/class-abstract-fields.php:537 … … 2546 2555 msgstr "" 2547 2556 2548 #: includes/library/appsero/Insights.php:366 2549 msgid "" 2550 "Want to better secure your contact form's valuable data? Check out " 2551 "FortressDB!" 2552 msgstr "" 2553 2554 #: includes/library/appsero/Insights.php:374 2555 msgid "Learn More" 2556 msgstr "" 2557 2558 #: includes/library/appsero/Insights.php:375 2559 msgid "Hide" 2560 msgstr "" 2561 2562 #: includes/library/appsero/Insights.php:701 2557 #: includes/library/appsero/Insights.php:660 2563 2558 msgid "If you have a moment, please let us know why you are deactivating:" 2564 2559 msgstr "" 2565 2560 2566 #: includes/library/appsero/Insights.php: 7162561 #: includes/library/appsero/Insights.php:675 2567 2562 msgid "I rather wouldn't say" 2568 2563 msgstr "" 2569 2564 2570 #: includes/library/appsero/Insights.php: 7172565 #: includes/library/appsero/Insights.php:676 2571 2566 msgid "Submit & Deactivate" 2572 2567 msgstr "" -
weforms/tags/1.6.5/readme.txt
r2445228 r2477338 5 5 Requires PHP: 5.6.20 6 6 Tested up to: 5.6 7 Stable tag: 1.6. 47 Stable tag: 1.6.5 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 250 250 == Changelog == 251 251 252 = Version 1.6.5 (18 February, 2021) = 253 * **Fix:** Updated admin notices to better conform to WordPress design standards, and configured them to only show on WeForms pages. 254 * **Update:** Removed FortressDB admin notice. 255 * **Update:** Updated axios dependancy 256 252 257 = Version 1.6.4 (23 December, 2020) = 253 258 * **Fix:** Added spreadsheet functione escaping to prevent CSV exploits. [#50] (https://github.com/BoldGrid/weforms/pull/50) -
weforms/tags/1.6.5/weforms.php
r2445228 r2477338 6 6 * Author: weForms 7 7 * Author URI: https://weformspro.com/ 8 * Version: 1.6. 48 * Version: 1.6.5 9 9 * License: GPL2 or later 10 10 * License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 56 56 * @var string 57 57 */ 58 public $version = '1.6. 4';58 public $version = '1.6.5'; 59 59 60 60 /** -
weforms/trunk/assets/js-templates/spa-components.php
r2403226 r2477338 174 174 {{ form_title }} 175 175 </span> 176 176 177 177 <select v-if="Object.keys(forms).length" v-model="selected" @change="status='publish'"> 178 178 <option :value="form.id" v-for="form in forms">{{ form.name }}</option> 179 179 </select> 180 180 </h1> 181 <?php if ( ! class_exists( 'WeForms_Pro' ) ) {?>182 <div class="wpuf-premium-cta">183 <img src="<?php echo plugin_dir_url( dirname( __FILE__ ) ) . 'images/weforms-logo.png'?>">184 <p><?php _e( 'You're using weForms Free. For more features, modules and more consider upgrading to Pro.' , 'weforms' ); ?></p>185 <a href="https://weformspro.com/get-premium/?utm_source=Entries&utm_medium=Button&utm_campaign=Upgrade%20Now" target="_blank" class="button"><?php _e( 'UPGRADE NOW!' , 'weforms' ); ?></a>186 </div>187 <?php } ?>188 181 </div> 189 182 … … 787 780 <h1 class="wp-heading-inline"><?php _e( 'All Forms', 'weforms' ); ?></h1> 788 781 <a class="page-title-action add-form" herf="#" v-on:click.prevent="displayModal()"><?php _e( 'Add Form', 'weforms' ); ?></a> 789 <?php if ( ! class_exists( 'WeForms_Pro' ) ) {?>790 <div class="wpuf-premium-cta">791 <img src="<?php echo plugin_dir_url( dirname( __FILE__ ) ) . 'images/weforms-logo.png'?>">792 <p><?php _e( 'You're using weForms Free. For more features, modules and more consider upgrading to Pro.' , 'weforms' ); ?></p>793 <a href="https://weformspro.com/upgrade-now/?utm_source=All%20Forms&utm_medium=Button&utm_campaign=Upgrade%20Now" target="_blank" class="button"><?php _e( 'UPGRADE NOW!' , 'weforms' ); ?></a>794 </div>795 <?php } ?>796 782 <wpuf-template-modal :show.sync="showTemplateModal" :onClose="closeModal"></wpuf-template-modal> 797 783 … … 802 788 <div class="export-import-wrap"> 803 789 <h1><?php _e( 'Tools', 'weforms' ); ?></h1> 804 <?php if ( ! class_exists( 'WeForms_Pro' ) ) {?>805 <div class="wpuf-premium-cta">806 <img src="<?php echo plugin_dir_url( dirname( __FILE__ ) ) . 'images/weforms-logo.png'?>">807 <p><?php _e( 'You're using weForms Free. For more features, modules and more consider upgrading to Pro.' , 'weforms' ); ?></p>808 <a href="https://weformspro.com/get-premium-weforms/?utm_source=Tools&utm_medium=Button&utm_campaign=Upgrade%20Now" target="_blank" class="button"><?php _e( 'UPGRADE NOW!' , 'weforms' ); ?></a>809 </div>810 <?php } ?>811 790 <h2 class="nav-tab-wrapper"> 812 791 <a :class="['nav-tab', isActiveTab( 'export' ) ? 'nav-tab-active' : '']" href="#" v-on:click.prevent="makeActive('export')"><?php _e( 'Export', 'wpuf' ); ?></a> … … 1009 988 1010 989 <p v-if="no_transactions"> 1011 <?php printf( 990 <?php printf( 1012 991 __( 'You don\'t have any transactions yet. Learn how to %sset up payment integration%s and take payments with weFroms.' ), 1013 992 '<a target="_blank" href="https://wedevs.com/docs/weforms/integrations/payment/">', … … 1381 1360 1382 1361 <h1><?php _e( 'Settings', 'weforms' ); ?></h1> 1383 <?php if ( ! class_exists( 'WeForms_Pro' ) ) {?>1384 <div class="wpuf-premium-cta">1385 <img src="<?php echo plugin_dir_url( dirname( __FILE__ ) ) . 'images/weforms-logo.png'?>">1386 <p><?php _e( 'You're using weForms Free. For more features, modules and more consider upgrading to Pro.' , 'weforms' ); ?></p>1387 <a href="https://weformspro.com/premium-weforms/?utm_source=Settings&utm_medium=Button&utm_campaign=Upgrade%20Now" target="_blank" class="button"><?php _e( 'UPGRADE NOW!' , 'weforms' ); ?></a>1388 </div>1389 <?php } ?>1390 1362 <div id="weforms-settings-tabs-warp" class="<?php echo !function_exists( 'weforms_pro' ) ? 'weforms-pro-deactivate' : ''; ?>"> 1391 1363 <div id="weforms-settings-tabs"> -
weforms/trunk/assets/js/spa-app.js
r2416759 r2477338 1 1 'use strict'; 2 2 3 var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; 3 var _typeof9 = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; 4 5 var _typeof8 = typeof Symbol === "function" && _typeof9(Symbol.iterator) === "symbol" ? function (obj) { 6 return typeof obj === "undefined" ? "undefined" : _typeof9(obj); 7 } : function (obj) { 8 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof9(obj); 9 }; 10 11 var _typeof7 = typeof Symbol === "function" && _typeof8(Symbol.iterator) === "symbol" ? function (obj) { 12 return typeof obj === "undefined" ? "undefined" : _typeof8(obj); 13 } : function (obj) { 14 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof8(obj); 15 }; 16 17 var _typeof6 = typeof Symbol === "function" && _typeof7(Symbol.iterator) === "symbol" ? function (obj) { 18 return typeof obj === "undefined" ? "undefined" : _typeof7(obj); 19 } : function (obj) { 20 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof7(obj); 21 }; 22 23 var _typeof5 = typeof Symbol === "function" && _typeof6(Symbol.iterator) === "symbol" ? function (obj) { 24 return typeof obj === "undefined" ? "undefined" : _typeof6(obj); 25 } : function (obj) { 26 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof6(obj); 27 }; 28 29 var _typeof4 = typeof Symbol === "function" && _typeof5(Symbol.iterator) === "symbol" ? function (obj) { 30 return typeof obj === "undefined" ? "undefined" : _typeof5(obj); 31 } : function (obj) { 32 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof5(obj); 33 }; 34 35 var _typeof3 = typeof Symbol === "function" && _typeof4(Symbol.iterator) === "symbol" ? function (obj) { 36 return typeof obj === "undefined" ? "undefined" : _typeof4(obj); 37 } : function (obj) { 38 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof4(obj); 39 }; 40 41 var _typeof2 = typeof Symbol === "function" && _typeof3(Symbol.iterator) === "symbol" ? function (obj) { 42 return typeof obj === "undefined" ? "undefined" : _typeof3(obj); 43 } : function (obj) { 44 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof3(obj); 45 }; 4 46 5 47 var _typeof = typeof Symbol === "function" && _typeof2(Symbol.iterator) === "symbol" ? function (obj) { -
weforms/trunk/assets/js/spa-app.min.js
r2416759 r2477338 1 "use strict";var _typeof 2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof="function"==typeof Symbol&&"symbol"===_typeof2(Symbol.iterator)?function(e){return void 0===e?"undefined":_typeof2(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":_typeof2(e)};!function(r){Vue.component("wpuf-table",{template:"#tmpl-wpuf-component-table",mixins:[weForms.mixins.Loading,weForms.mixins.Paginate,weForms.mixins.BulkAction],props:{has_export:String,action:String,delete:String,id:[String,Number],status:[String]},data:function(){return{loading:!1,columns:[],items:[],ajaxAction:this.action,nonce:weForms.nonce,index:"id",bulkDeleteAction:this.delete?this.delete:"weforms_form_entry_trash_bulk"}},created:function(){this.fetchData()},computed:{columnLength:function(){return Object.keys(this.columns).length}},methods:{fetchData:function(){var t=this;this.loading=!0,wp.ajax.send(t.action,{data:{id:t.id,page:t.currentPage,status:t.status,_wpnonce:weForms.nonce},success:function(e){t.loading=!1,t.columns=e.columns,t.items=e.entries,t.form_title=e.form_title,t.totalItems=e.pagination.total,t.perPage=e.pagination.per_page,t.totalPage=e.pagination.pages,t.$emit("ajaxsuccess",e)},error:function(e){t.loading=!1,alert(e)}})},handleBulkAction:function(){if("-1"!==this.bulkAction){if("delete"===this.bulkAction){if(!this.checkedItems.length)return void alert("Please select atleast one entry to delete.");confirm("Are you sure to delete the entries?")&&this.deleteBulk()}if("restore"===this.bulkAction){if(!this.checkedItems.length)return void alert("Please select atleast one entry to restore.");this.restoreBulk()}}else alert("Please chose a bulk action to perform")},restore:function(e){var t=this;t.loading=!0,wp.ajax.send("weforms_form_entry_restore",{data:{entry_id:e,_wpnonce:weForms.nonce},success:function(e){t.loading=!1,t.fetchData()},error:function(e){t.loading=!1,alert(e)}})},deletePermanently:function(e){if(confirm("Are you sure to delete this entry?")){var t=this;t.loading=!0,wp.ajax.send("weforms_form_entry_delete",{data:{entry_id:e,_wpnonce:weForms.nonce},success:function(e){t.loading=!1,t.fetchData()},error:function(e){t.loading=!1,alert(e)}})}}},watch:{id:function(){this.fetchData()},status:function(){this.currentPage=1,this.bulkAction=-1,this.fetchData()}}}),weForms.routeComponents.Entries={template:"#tmpl-wpuf-entries",data:function(){return{selected:0,forms:{},form_title:"Loading...",status:"publish",total:0,totalTrash:0}},created:function(){this.get_forms()},methods:{get_forms:function(){var t=this;wp.ajax.send("weforms_form_list",{data:{_wpnonce:weForms.nonce,page:t.currentPage,posts_per_page:-1,filter:"entries"},success:function(e){Object.keys(e.forms).length?(t.forms=e.forms,t.selected=t.forms[Object.keys(t.forms)[0]].id):t.form_title="No entry found"},error:function(e){alert(e)}})}}},weForms.routeComponents.FormEditComponent={template:"#tmpl-wpuf-form-builder",mixins:wpuf_form_builder_mixins(wpuf_mixins.root),data:function(){return{is_form_saving:!1,is_form_saved:!1,is_form_switcher:!1,post_title_editing:!1,loading:!1,activeTab:"editor",activeSettingsTab:"form",activePaymentTab:"paypal"}},watch:{loading:function(e){e?(NProgress.configure({parent:"#wpadminbar"}),NProgress.start()):NProgress.done()},form_fields:{handler:function(){window.weFormsBuilderisDirty=!0},deep:!0},notifications:{handler:function(){window.weFormsBuilderisDirty=!0},deep:!0},integrations:{handler:function(){window.weFormsBuilderisDirty=!0},deep:!0},settings:{handler:function(){window.weFormsBuilderisDirty=!0},deep:!0},payment:{handler:function(){window.weFormsBuilderisDirty=!0},deep:!0}},created:function(){this.set_current_panel("form-fields"),this.fetchForm(),this.$store.commit("panel_add_show_prop"),wpuf_form_builder.event_hub=new Vue},computed:{current_panel:function(){return this.$store.state.current_panel},post:function(){return this.$store.state.post},form_fields_count:function(){return this.$store.state.form_fields.length},form_fields:function(){return this.$store.state.form_fields},notifications:function(){return this.$store.state.notifications},integrations:function(){return this.$store.state.integrations},settings:function(){return this.$store.state.settings},payment:function(){return this.$store.state.payment}},mounted:function(){var e=new window.Clipboard(".form-id");r(".form-id").tooltip();var t=this;this.started=!0,e.on("success",function(e){r(e.trigger).attr("data-original-title","Copied!").tooltip("show"),setTimeout(function(){r(e.trigger).tooltip("hide").attr("data-original-title",t.i18n.copy_shortcode)},1e3),e.clearSelection()}),this.initSharingClipBoard(),setTimeout(function(){window.weFormsBuilderisDirty=!1},500),window.onbeforeunload=function(){if(window.weFormsBuilderisDirty)return t.i18n.unsaved_changes}},methods:{makeActive:function(e){this.activeTab=e},isActiveTab:function(e){return this.activeTab===e},isActiveSettingsTab:function(e){return this.activeSettingsTab===e},makeActiveSettingsTab:function(e){this.activeSettingsTab=e},isActivePaymentTab:function(e){return this.activePaymentTab===e},makeActivePaymentTab:function(e){this.activePaymentTab=e},fetchForm:function(){var t=this;t.loading=!0,wp.ajax.send("weforms_get_form",{data:{form_id:this.$route.params.id,_wpnonce:weForms.nonce},success:function(e){t.$store.commit("set_form_post",e.post),t.$store.commit("set_form_fields",e.form_fields),t.$store.commit("set_form_notification",e.notifications),t.$store.commit("set_form_settings",e.settings),void 0!==e.integrations.length?t.$store.commit("set_form_integrations",{}):t.$store.commit("set_form_integrations",e.integrations)},error:function(e){alert(e)},complete:function(){t.loading=!1}})},set_current_panel:function(e){this.$store.commit("set_current_panel",e)},save_form_builder:function(){var t=this;!_.isFunction(this.validate_form_before_submit)||this.validate_form_before_submit()?(t.is_form_saving=!0,t.set_current_panel("form-fields"),wp.ajax.send("wpuf_form_builder_save_form",{data:{form_data:r("#wpuf-form-builder").serialize(),form_fields:JSON.stringify(t.form_fields),notifications:JSON.stringify(t.notifications),settings:JSON.stringify(t.settings),payment:JSON.stringify(t.payment),integrations:JSON.stringify(t.integrations)},success:function(e){e.form_fields&&t.$store.commit("set_form_fields",e.form_fields),t.is_form_saving=!1,t.is_form_saved=!0,setTimeout(function(){window.weFormsBuilderisDirty=!1},500),toastr.success(t.i18n.saved_form_data)},error:function(){t.is_form_saving=!1}})):this.warn({text:this.validation_error_msg})},save_settings:function(){toastr.options.preventDuplicates=!0,this.save_form_builder()},shareForm:function(e,t){var n=this;if("on"===n.settings.sharing_on){var i=e+"?weforms="+btoa(n.getSharingHash()+"_"+Math.floor(Date.now()/1e3)+"_"+t.ID);swal({title:n.i18n.shareYourForm,html:"<p>"+n.i18n.shareYourFormText+'</p> <p><input onClick="this.setSelectionRange(0, this.value.length)" type="text" class="regular-text" value="'+i+'"/> <button class="anonymous-share-btn button button-primary" title="Copy URL" data-clipboard-text="'+i+'"><i class="fa fa-clipboard" aria-hidden="true"></i></button></p>',showCloseButton:!0,showCancelButton:!0,confirmButtonClass:"btn btn-success",cancelButtonClass:"btn btn-danger",confirmButtonColor:"#d54e21",confirmButtonText:n.i18n.disableSharing,cancelButtonText:n.i18n.close,focusCancel:!0}).then(function(){swal({title:n.i18n.areYouSure,html:"<p>"+n.i18n.areYouSureDesc+"</p>",type:"info",confirmButtonColor:"#d54e21",showCancelButton:!0,confirmButtonText:n.i18n.disable,cancelButtonText:n.i18n.cancel}).then(function(){n.disableSharing()})})}else swal({title:n.i18n.shareYourForm,html:n.i18n.shareYourFormDesc,type:"info",showCancelButton:!0,confirmButtonText:"Enable",cancelButtonText:"Cancel"}).then(function(){n.enableSharing(e,t)})},enableSharing:function(e,t){this.settings.sharing_on="on",this.save_settings(),this.shareForm(e,t)},disableSharing:function(){this.settings.sharing_on=!1,this.save_settings()},getSharingHash:function(){return this.settings.sharing_hash||(this.settings.sharing_hash=this.makeRandomString(8),this.save_settings()),this.settings.sharing_hash},makeRandomString:function(e){e=e||8;for(var t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i=0;i<e;i++)t+=n.charAt(Math.floor(Math.random()*n.length));return t},initSharingClipBoard:function(e){var t=new window.Clipboard(".anonymous-share-btn");r(".anonymous-share-btn").tooltip(),t.on("success",function(e){r(e.trigger).attr("data-original-title","Copied!").tooltip("show"),setTimeout(function(){r(e.trigger).tooltip("hide").attr("data-original-title","Copy URL")},1e3),e.clearSelection()})}}},weForms.routeComponents.FormEntries={props:{id:[String,Number]},template:"#tmpl-wpuf-form-entries",data:function(){return{selected:0,form_title:"Loading...",status:"publish",total:0,totalTrash:0}}},weForms.routeComponents.FormEntriesSingle={template:"#tmpl-wpuf-form-entry-single",mixins:[weForms.mixins.Loading,weForms.mixins.Cookie],data:function(){return{loading:!1,hideEmpty:!0,hasEmpty:!1,show_payment_data:!1,entry:{form_fields:{},meta_data:{},payment_data:{}},form_settings:{},respondent_points:0,answers:{},countries:weForms.countries}},created:function(){this.hideEmpty=this.hideEmptyStatus(),this.fetchData()},computed:{hasFormFields:function(){return Object.keys(this.entry.form_fields).length}},methods:{fetchData:function(){var t=this;this.loading=!0,wp.ajax.send("weforms_form_entry_details",{data:{entry_id:t.$route.params.entryid,form_id:t.$route.params.id,_wpnonce:weForms.nonce},success:function(e){t.loading=!1,t.entry=e,t.hasEmpty=e.has_empty,t.form_settings=e.form_settings,t.respondent_points=e.respondent_points,t.answers=e.answers},error:function(e){t.loading=!1,alert(e)}})},trashEntry:function(){var t=this;confirm(weForms.confirm)&&wp.ajax.send("weforms_form_entry_trash",{data:{entry_id:t.$route.params.entryid,_wpnonce:weForms.nonce},success:function(){t.loading=!1,t.$router.push({name:"formEntries",params:{id:t.$route.params.id}})},error:function(e){t.loading=!1,alert(e)}})},hideEmptyStatus:function(){return"false"!==this.getCookie("weFormsEntryHideEmpty")},findCountry:function(t){return this.countries.find(function(e){return e.code===t})},getCountryName:function(e){if(this.findCountry(e))return this.findCountry(e).name},getAddressFieldValue:function(e){var t=e.match(/Country Select:(\s([A-Z])\w+)/g);if(null===t)return e;var n=t[0].substring(15,t[0].length).trim(),i=this.getCountryName(n),o=n;return e.replace(o,i)}},watch:{hideEmpty:function(e){this.setCookie("weFormsEntryHideEmpty",e,356)}}},Vue.component("form-list-table",{template:"#tmpl-wpuf-form-list-table",mixins:[weForms.mixins.Loading,weForms.mixins.Paginate,weForms.mixins.BulkAction],data:function(){return{loading:!1,index:"ID",items:[],bulkDeleteAction:"weforms_form_delete_bulk"}},created:function(){this.fetchData()},computed:{is_pro:function(){return"true"===weForms.is_pro},has_payment:function(){return"true"===weForms.has_payment}},methods:{fetchData:function(){var t=this;this.loading=!0,wp.ajax.send("weforms_form_list",{data:{_wpnonce:weForms.nonce,page:t.currentPage},success:function(e){t.loading=!1,t.items=e.forms,t.totalItems=e.meta.total,t.totalPage=e.meta.pages},error:function(e){t.loading=!1,alert(e)}})},deleteForm:function(t){var n=this;confirm("Are you sure?")&&(n.loading=!0,wp.ajax.send("weforms_form_delete",{data:{form_id:this.items[t].id,_wpnonce:weForms.nonce},success:function(e){n.items.splice(t,1),n.loading=!1},error:function(e){alert(e),n.loading=!1}}))},duplicate:function(e,t){var n=this;this.loading=!0,wp.ajax.send("weforms_form_duplicate",{data:{form_id:e,_wpnonce:weForms.nonce},success:function(e){n.items.splice(0,0,e),n.loading=!1},error:function(e){alert(e),n.loading=!1}})},handleBulkAction:function(){if("-1"!==this.bulkAction){if("delete"===this.bulkAction){if(!this.checkedItems.length)return void alert("Please select atleast one form to delete.");confirm("Are you sure to delete the forms?")&&this.deleteBulk()}}else alert("Please chose a bulk action to perform")},isPendingForm:function(e){return Math.round((new Date).getTime()/1e3)<Math.round(new Date(e).getTime()/1e3)},isExpiredForm:function(e){var t=Math.round((new Date).getTime()/1e3);return Math.round(new Date(e).getTime()/1e3)<t},isOpenForm:function(e,t){var n=Math.round((new Date).getTime()/1e3),i=Math.round(new Date(e).getTime()/1e3),o=Math.round(new Date(t).getTime()/1e3);return i<n&&n<o},isFormStatusClosed:function(e,t){return!("true"!==e.schedule_form||!this.isPendingForm(e.schedule_start))||(!("true"!==e.schedule_form||!this.isExpiredForm(e.schedule_end))||("true"===e.limit_entries&&t>=e.limit_number||void 0))},formatTime:function(e){var t=new Date(e);return t.toLocaleString("en-us",{month:"short"})+" "+t.getDate()+", "+t.getFullYear()}}}),weForms.routeComponents.FormPayments={props:{id:[String,Number]},template:"#tmpl-wpuf-form-payments",data:function(){return{form_title:"Loading..."}}},weForms.routeComponents.Home={template:"#tmpl-wpuf-home-page",data:function(){return{showTemplateModal:!1}},methods:{displayModal:function(){this.showTemplateModal=!0},closeModal:function(){this.showTemplateModal=!1}}},weForms.routeComponents.Tools={template:"#tmpl-wpuf-tools",mixins:[weForms.mixins.Tabs,weForms.mixins.Loading],data:function(){return{activeTab:"export",exportType:"all",loading:!1,forms:[],importButton:"Import",currentStatus:0,responseMessage:"",logs:[],ximport:{current:"",title:"",action:"",message:"",type:"updated",refs:{}}}},computed:{isInitial:function(){return 0===this.currentStatus},isSaving:function(){return 1===this.currentStatus},isSuccess:function(){return 2===this.currentStatus},isFailed:function(){return 3===this.currentStatus},hasRefs:function(){return Object.keys(this.ximport.refs).length},hasLogs:function(){return Object.keys(this.logs).length}},created:function(){this.fetchData(),this.fetchLogs()},methods:{fetchLogs:function(t){var n=this;n.startLoading(t),wp.ajax.send("weforms_read_logs",{data:{_wpnonce:weForms.nonce},success:function(e){n.stopLoading(t),n.logs=e},error:function(){n.stopLoading(t),n.logs=[]}})},deleteLogs:function(t){var n=this;confirm("Are you sure to clear the log file?")&&(n.startLoading(t),wp.ajax.send("weforms_delete_logs",{data:{_wpnonce:weForms.nonce},success:function(e){n.logs=[],n.stopLoading(t),n.fetchLogs()},error:function(e){n.logs=[],n.stopLoading(t),n.fetchLogs()}}))},stopLoading:function(e){(e=r(e)).is("button")?e.removeClass("updating-message").find("span").show():e.is("span")&&e.show().parent().removeClass("updating-message")},startLoading:function(e){(e=r(e)).is("button")?e.addClass("updating-message").find("span").hide():e.is("span")&&e.hide().parent().addClass("updating-message")},fetchData:function(){var t=this;this.loading=!0,wp.ajax.send("weforms_form_names",{data:{_wpnonce:weForms.nonce},success:function(e){t.loading=!1,t.forms=e},error:function(e){t.loading=!1,alert(e)}})},importForm:function(e,t,n){if(t.length){var i=new FormData,o=this;i.append(e,t[0],t[0].name),i.append("action","weforms_import_form"),i.append("_wpnonce",weForms.nonce),o.currentStatus=1,r.ajax({type:"POST",url:window.ajaxurl,data:i,processData:!1,contentType:!1,success:function(e){o.responseMessage=e.data,e.success?o.currentStatus=2:o.currentStatus=3,r(n.target).val("")},error:function(e){console.log(e),o.currentStatus=3},complete:function(){r(n.target).val("")}})}},importx:function(e,t){var n=r(e),i=this;i.ximport.current=t,n.addClass("updating-message").text(n.data("importing")),wp.ajax.send("weforms_import_xforms_"+t,{data:{_wpnonce:weForms.nonce},success:function(e){i.ximport.title=e.title,i.ximport.message=e.message,i.ximport.action=e.action,i.ximport.refs=e.refs},error:function(e){alert(e.message)},complete:function(){n.removeClass("updating-message").text(n.data("original"))}})},replaceX:function(e,t){var n=r(e),i=this;n.addClass("updating-message"),wp.ajax.send("weforms_import_xreplace_"+i.ximport.current,{data:{type:t,_wpnonce:weForms.nonce},success:function(e){"replace"===n.data("type")&&alert(e)},error:function(e){alert(e)},complete:function(){i.ximport.current="",i.ximport.title=""}})}}},weForms.routeComponents.Transactions={template:"#tmpl-wpuf-transactions",data:function(){return{selected:0,no_transactions:!1,forms:{},form_title:"Loading..."}},created:function(){this.get_forms()},methods:{get_forms:function(){var t=this;wp.ajax.send("weforms_form_list",{data:{_wpnonce:weForms.nonce,page:t.currentPage,filter:"transactions"},success:function(e){Object.keys(e.forms).length?(t.forms=e.forms,t.selected=t.forms[Object.keys(t.forms)[0]].id):(t.form_title="No transaction found",t.no_transactions=!0)},error:function(e){alert(e)}})}}},weForms.routeComponents.Help={template:"#tmpl-wpuf-weforms-page-help"},weForms.routeComponents.Privacy={template:"#tmpl-wpuf-weforms-page-privacy"},weForms.routeComponents.Premium={template:"#tmpl-wpuf-weforms-premium",data:function(){return{showModal:!1}}},weForms.routeComponents.Settings={template:"#tmpl-wpuf-weforms-settings",mixins:[weForms.mixins.Loading,weForms.mixins.Cookie],data:function(){return{loading:!1,settings:{email_gateway:"wordpress",credit:!1,permission:"manage_options",gateways:{sendgrid:"",mailgun:"",sparkpost:""},recaptcha:{type:"v2",key:"",secret:""}},activeTab:"general"}},computed:{is_pro:function(){return"true"===weForms.is_pro}},created:function(){this.fetchSettings(),this.getCookie("weforms_settings_active_tab")&&(this.activeTab=this.getCookie("weforms_settings_active_tab"))},methods:{makeActive:function(e){this.activeTab=e},isActiveTab:function(e){return this.activeTab===e},fetchSettings:function(){var e=this;e.loading=!0,wp.ajax.send("weforms_get_settings",{data:{_wpnonce:weForms.nonce},success:function(n){void 0!==n&&(r.each(e.settings,function(e,t){void 0===n[e]&&(n[e]=t)}),e.settings=n)},complete:function(){e.loading=!1}})},saveSettings:function(e){r(e).addClass("updating-message"),wp.ajax.send("weforms_save_settings",{data:{settings:JSON.stringify(this.settings),_wpnonce:weForms.nonce},success:function(e){toastr.options.timeOut=1e3,toastr.success("Settings has been updated"),weForms.settings=e},error:function(e){console.log(e)},complete:function(){r(e).removeClass("updating-message")}})},post:function(e,t,n){n=n||function(){},(t=t||{})._wpnonce=weForms.nonce,wp.ajax.send(e,{data:t,success:function(e){n(e)},error:function(e){console.log(e)},complete:function(){}})}},watch:{activeTab:function(e){this.setCookie("weforms_settings_active_tab",e,"365")}}},Array.prototype.hasOwnProperty("swap")||(Array.prototype.swap=function(e,t){this.splice(t,0,this.splice(e,1)[0])}),Vue.component("datepicker",{template:'<input type="text" v-bind:value="value" />',props:["value"],mounted:function(){r(this.$el).datetimepicker({dateFormat:"yy-mm-dd",timeFormat:"HH:mm:ss",onClose:this.onClose})},methods:{onClose:function(e){this.$emit("input",e)}}}),Vue.component("weforms-colorpicker",{template:'<input type="text" v-bind:value="value" />',props:["value"],mounted:function(){r(this.$el).wpColorPicker({change:this.onChange})},methods:{onChange:function(e,t){this.$emit("input",t.color.toString())}}});var e=new Vuex.Store({state:{post:{},form_fields:[],panel_sections:wpuf_form_builder.panel_sections,field_settings:wpuf_form_builder.field_settings,notifications:[],settings:{},integrations:{},current_panel:"form-fields",editing_field_id:0},mutations:{set_form_fields:function(e,t){Vue.set(e,"form_fields",t)},set_form_post:function(e,t){Vue.set(e,"post",t)},set_form_notification:function(e,t){Vue.set(e,"notifications",t)},set_form_integrations:function(e,t){Vue.set(e,"integrations",t)},set_form_settings:function(e,t){Vue.set(e,"settings",t)},set_current_panel:function(e,t){"field-options"!==e.current_panel&&"field-options"===t&&e.form_fields.length&&(e.editing_field_id=e.form_fields[0].id),"form-fields"===(e.current_panel=t)&&(e.editing_field_id=0)},panel_add_show_prop:function(n){n.panel_sections.map(function(e,t){e.hasOwnProperty("show")||Vue.set(n.panel_sections[t],"show",!0)})},panel_toggle:function(e,t){e.panel_sections[t].show=!e.panel_sections[t].show},open_field_settings:function(e,t){var n=e.form_fields.filter(function(e){return parseInt(t)===parseInt(e.id)});"field-options"===e.current_panel&&n[0].id===e.editing_field_id||n.length&&(e.editing_field_id=0,e.current_panel="field-options",setTimeout(function(){e.editing_field_id=n[0].id},400))},update_editing_form_field:function(e,t){var n=0;for(n=0;n<e.form_fields.length;n++)if(e.form_fields[n].id===parseInt(t.editing_field_id)&&(e.form_fields[n][t.field_name]=t.value),"column_field"===e.form_fields[n].template){var i=e.form_fields[n].inner_fields;for(var o in i)if(i.hasOwnProperty(o))for(var s=0;s<i[o].length;)i[o][s].id===parseInt(t.editing_field_id)&&(i[o][s][t.field_name]=t.value),s++}},add_form_field_element:function(e,t){e.form_fields.splice(t.toIndex,0,t.field),Vue.nextTick(function(){var e=r("#form-preview-stage .wpuf-form .field-items").eq(t.toIndex);e&&!function(e){"function"==typeof jQuery&&e instanceof jQuery&&(e=e[0]);var t=e.getBoundingClientRect();return 0<=t.top&&0<=t.left&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}(e.get(0))&&r("#builder-stage section").scrollTo(e,800,{offset:-50})})},swap_form_field_elements:function(e,t){e.form_fields.swap(t.fromIndex,t.toIndex)},clone_form_field_element:function(e,t){var n=_.find(e.form_fields,function(e){return parseInt(e.id)===parseInt(t.field_id)}),i=r.extend(!0,{},n),o=parseInt(t.index)+1;i.id=t.new_id,i.name=i.name+"_copy",i.is_new=!0,e.form_fields.splice(o,0,i)},delete_form_field_element:function(e,t){e.current_panel="form-fields",e.form_fields.splice(t,1)},set_panel_section_fields:function(e,t){_.find(e.panel_sections,function(e){return e.id===t.id}).fields=t.fields},addNotification:function(e,t){e.notifications.push(_.clone(t))},deleteNotification:function(e,t){e.notifications.splice(t,1)},cloneNotification:function(e,t){var n=r.extend(!0,{},e.notifications[t]);t=parseInt(t)+1,e.notifications.splice(t,0,n)},updateNotificationProperty:function(e,t){e.notifications[t.index][t.property]=t.value},updateNotification:function(e,t){e.notifications[t.index]=t.value},updateIntegration:function(e,t){Vue.set(e.integrations,t.index,t.value)},add_column_inner_field_element:function(e,t){var n=e.form_fields.findIndex(function(e){return e.id===t.toWhichColumnField});(void 0===e.form_fields[n].inner_fields[t.toWhichColumn]&&(e.form_fields[n].inner_fields[t.toWhichColumn]=[]),void 0!==e.form_fields[n].inner_fields[t.toWhichColumn])&&(e.form_fields[n].inner_fields[t.toWhichColumn].filter(function(e){return e.name===t.field.name}).length<=0&&e.form_fields[n].inner_fields[t.toWhichColumn].splice(t.toIndex,0,t.field))},move_column_inner_fields:function(t,n){var i=t.form_fields.findIndex(function(e){return e.id===n.field_id}),o=n.inner_fields,s=[];Object.keys(o).forEach(function(e){"column-1"===n.move_to&&(o[e].forEach(function(e){s.push(e)}),t.form_fields[i].inner_fields[e].splice(0,o[e].length)),"column-2"===n.move_to&&("column-2"!==e&&"column-3"!==e||(o[e].forEach(function(e){s.push(e)}),t.form_fields[i].inner_fields[e].splice(0,o[e].length)))}),0!==s.length&&s.forEach(function(e){t.form_fields[i].inner_fields[n.move_to].splice(0,0,e)})},swap_column_field_elements:function(e,t){var n=e.form_fields.findIndex(function(e){return e.id===t.field_id}),i=e.form_fields[n].inner_fields[t.fromColumn][t.fromIndex];t.fromColumn!==t.toColumn?(e.form_fields[n].inner_fields[t.toColumn].splice(t.toIndex,0,i),e.form_fields[n].inner_fields[t.fromColumn].splice(t.fromIndex,1)):e.form_fields[n].inner_fields[t.toColumn].swap(t.fromIndex,t.toIndex)},open_column_field_settings:function(e,t){var n=t.column_field;"field-options"===e.current_panel&&n.id===e.editing_field_id||n&&(e.editing_field_id=0,e.current_panel="field-options",e.editing_field_type="column_field",e.editing_column_field_id=t.field_id,e.edting_field_column=t.column,e.editing_inner_field_index=t.index,setTimeout(function(){e.editing_field_id=n.id},400))},clone_column_field_element:function(e,t){var n=e.form_fields.findIndex(function(e){return e.id===t.field_id}),i=_.find(e.form_fields[n].inner_fields[t.toColumn],function(e){return parseInt(e.id)===parseInt(t.column_field_id)}),o=r.extend(!0,{},i),s=parseInt(t.index)+1;o.id=t.new_id,o.name=o.name+"_copy",o.is_new=!0,e.form_fields[n].inner_fields[t.toColumn].splice(s,0,o)},delete_column_field_element:function(e,t){var n=e.form_fields.findIndex(function(e){return e.id===t.field_id});e.current_panel="form-fields",e.form_fields[n].inner_fields[t.fromColumn].splice(t.index,1)}}});weForms.routeComponents.FormHome={template:'<div><router-view class="child"></router-view></div>'},weForms.routeComponents.SingleForm={template:"#tmpl-wpuf-form-editor"},weForms.routeComponents.FormEntriesHome={template:'<div><router-view class="grand-child"></router-view></div>'},function e(t){for(var n=0;n<t.length;n++)"object"===_typeof(t[n].children)?(e(t[n].children),void 0!==t[n].component&&(t[n].component=weForms.routeComponents[t[n].component])):t[n].component=weForms.routeComponents[t[n].component]}(weForms.routes);var t=new VueRouter({routes:weForms.routes,scrollBehavior:function(e,t,n){return n||{x:0,y:0}}});window.weFormsBuilderisDirty=!1,t.beforeEach(function(e,t,n){if(window.weFormsBuilderisDirty){if(!confirm(wpuf_form_builder.i18n.unsaved_changes+" "+wpuf_form_builder.i18n.areYouSureToLeave))return n(t.path),!1;window.weFormsBuilderisDirty=!1}n()}),weForms.validators={is_recaptcha_v2:function(){return"v2"===weForms.settings.recaptcha.type}};new Vue({router:t,store:e}).$mount("#wpuf-contact-form-app");var i=r("#toplevel_page_weforms");i.on("click","a",function(){var e=r(this);r("ul.wp-submenu li",i).removeClass("current"),e.hasClass("wp-has-submenu")?r("li.wp-first-item",i).addClass("current"):e.parents("li").addClass("current")}),r(function(){var e=window.location.href,n=e.substr(e.indexOf("admin.php"));r("ul.wp-submenu a",i).each(function(e,t){r(t).attr("href")!==n||r(t).parent().addClass("current")})})}(jQuery);1 "use strict";var _typeof9="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof8="function"==typeof Symbol&&"symbol"===_typeof9(Symbol.iterator)?function(e){return void 0===e?"undefined":_typeof9(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":_typeof9(e)},_typeof7="function"==typeof Symbol&&"symbol"===_typeof8(Symbol.iterator)?function(e){return void 0===e?"undefined":_typeof8(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":_typeof8(e)},_typeof6="function"==typeof Symbol&&"symbol"===_typeof7(Symbol.iterator)?function(e){return void 0===e?"undefined":_typeof7(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":_typeof7(e)},_typeof5="function"==typeof Symbol&&"symbol"===_typeof6(Symbol.iterator)?function(e){return void 0===e?"undefined":_typeof6(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":_typeof6(e)},_typeof4="function"==typeof Symbol&&"symbol"===_typeof5(Symbol.iterator)?function(e){return void 0===e?"undefined":_typeof5(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":_typeof5(e)},_typeof3="function"==typeof Symbol&&"symbol"===_typeof4(Symbol.iterator)?function(e){return void 0===e?"undefined":_typeof4(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":_typeof4(e)},_typeof2="function"==typeof Symbol&&"symbol"===_typeof3(Symbol.iterator)?function(e){return void 0===e?"undefined":_typeof3(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":_typeof3(e)},_typeof="function"==typeof Symbol&&"symbol"===_typeof2(Symbol.iterator)?function(e){return void 0===e?"undefined":_typeof2(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":_typeof2(e)};!function(s){Vue.component("wpuf-table",{template:"#tmpl-wpuf-component-table",mixins:[weForms.mixins.Loading,weForms.mixins.Paginate,weForms.mixins.BulkAction],props:{has_export:String,action:String,delete:String,id:[String,Number],status:[String]},data:function(){return{loading:!1,columns:[],items:[],ajaxAction:this.action,nonce:weForms.nonce,index:"id",bulkDeleteAction:this.delete?this.delete:"weforms_form_entry_trash_bulk"}},created:function(){this.fetchData()},computed:{columnLength:function(){return Object.keys(this.columns).length}},methods:{fetchData:function(){var t=this;this.loading=!0,wp.ajax.send(t.action,{data:{id:t.id,page:t.currentPage,status:t.status,_wpnonce:weForms.nonce},success:function(e){t.loading=!1,t.columns=e.columns,t.items=e.entries,t.form_title=e.form_title,t.totalItems=e.pagination.total,t.perPage=e.pagination.per_page,t.totalPage=e.pagination.pages,t.$emit("ajaxsuccess",e)},error:function(e){t.loading=!1,alert(e)}})},handleBulkAction:function(){if("-1"!==this.bulkAction){if("delete"===this.bulkAction){if(!this.checkedItems.length)return void alert("Please select atleast one entry to delete.");confirm("Are you sure to delete the entries?")&&this.deleteBulk()}if("restore"===this.bulkAction){if(!this.checkedItems.length)return void alert("Please select atleast one entry to restore.");this.restoreBulk()}}else alert("Please chose a bulk action to perform")},restore:function(e){var t=this;t.loading=!0,wp.ajax.send("weforms_form_entry_restore",{data:{entry_id:e,_wpnonce:weForms.nonce},success:function(e){t.loading=!1,t.fetchData()},error:function(e){t.loading=!1,alert(e)}})},deletePermanently:function(e){if(confirm("Are you sure to delete this entry?")){var t=this;t.loading=!0,wp.ajax.send("weforms_form_entry_delete",{data:{entry_id:e,_wpnonce:weForms.nonce},success:function(e){t.loading=!1,t.fetchData()},error:function(e){t.loading=!1,alert(e)}})}}},watch:{id:function(){this.fetchData()},status:function(){this.currentPage=1,this.bulkAction=-1,this.fetchData()}}}),weForms.routeComponents.Entries={template:"#tmpl-wpuf-entries",data:function(){return{selected:0,forms:{},form_title:"Loading...",status:"publish",total:0,totalTrash:0}},created:function(){this.get_forms()},methods:{get_forms:function(){var t=this;wp.ajax.send("weforms_form_list",{data:{_wpnonce:weForms.nonce,page:t.currentPage,posts_per_page:-1,filter:"entries"},success:function(e){Object.keys(e.forms).length?(t.forms=e.forms,t.selected=t.forms[Object.keys(t.forms)[0]].id):t.form_title="No entry found"},error:function(e){alert(e)}})}}},weForms.routeComponents.FormEditComponent={template:"#tmpl-wpuf-form-builder",mixins:wpuf_form_builder_mixins(wpuf_mixins.root),data:function(){return{is_form_saving:!1,is_form_saved:!1,is_form_switcher:!1,post_title_editing:!1,loading:!1,activeTab:"editor",activeSettingsTab:"form",activePaymentTab:"paypal"}},watch:{loading:function(e){e?(NProgress.configure({parent:"#wpadminbar"}),NProgress.start()):NProgress.done()},form_fields:{handler:function(){window.weFormsBuilderisDirty=!0},deep:!0},notifications:{handler:function(){window.weFormsBuilderisDirty=!0},deep:!0},integrations:{handler:function(){window.weFormsBuilderisDirty=!0},deep:!0},settings:{handler:function(){window.weFormsBuilderisDirty=!0},deep:!0},payment:{handler:function(){window.weFormsBuilderisDirty=!0},deep:!0}},created:function(){this.set_current_panel("form-fields"),this.fetchForm(),this.$store.commit("panel_add_show_prop"),wpuf_form_builder.event_hub=new Vue},computed:{current_panel:function(){return this.$store.state.current_panel},post:function(){return this.$store.state.post},form_fields_count:function(){return this.$store.state.form_fields.length},form_fields:function(){return this.$store.state.form_fields},notifications:function(){return this.$store.state.notifications},integrations:function(){return this.$store.state.integrations},settings:function(){return this.$store.state.settings},payment:function(){return this.$store.state.payment}},mounted:function(){var e=new window.Clipboard(".form-id");s(".form-id").tooltip();var t=this;this.started=!0,e.on("success",function(e){s(e.trigger).attr("data-original-title","Copied!").tooltip("show"),setTimeout(function(){s(e.trigger).tooltip("hide").attr("data-original-title",t.i18n.copy_shortcode)},1e3),e.clearSelection()}),this.initSharingClipBoard(),setTimeout(function(){window.weFormsBuilderisDirty=!1},500),window.onbeforeunload=function(){if(window.weFormsBuilderisDirty)return t.i18n.unsaved_changes}},methods:{makeActive:function(e){this.activeTab=e},isActiveTab:function(e){return this.activeTab===e},isActiveSettingsTab:function(e){return this.activeSettingsTab===e},makeActiveSettingsTab:function(e){this.activeSettingsTab=e},isActivePaymentTab:function(e){return this.activePaymentTab===e},makeActivePaymentTab:function(e){this.activePaymentTab=e},fetchForm:function(){var t=this;t.loading=!0,wp.ajax.send("weforms_get_form",{data:{form_id:this.$route.params.id,_wpnonce:weForms.nonce},success:function(e){t.$store.commit("set_form_post",e.post),t.$store.commit("set_form_fields",e.form_fields),t.$store.commit("set_form_notification",e.notifications),t.$store.commit("set_form_settings",e.settings),void 0!==e.integrations.length?t.$store.commit("set_form_integrations",{}):t.$store.commit("set_form_integrations",e.integrations)},error:function(e){alert(e)},complete:function(){t.loading=!1}})},set_current_panel:function(e){this.$store.commit("set_current_panel",e)},save_form_builder:function(){var t=this;!_.isFunction(this.validate_form_before_submit)||this.validate_form_before_submit()?(t.is_form_saving=!0,t.set_current_panel("form-fields"),wp.ajax.send("wpuf_form_builder_save_form",{data:{form_data:s("#wpuf-form-builder").serialize(),form_fields:JSON.stringify(t.form_fields),notifications:JSON.stringify(t.notifications),settings:JSON.stringify(t.settings),payment:JSON.stringify(t.payment),integrations:JSON.stringify(t.integrations)},success:function(e){e.form_fields&&t.$store.commit("set_form_fields",e.form_fields),t.is_form_saving=!1,t.is_form_saved=!0,setTimeout(function(){window.weFormsBuilderisDirty=!1},500),toastr.success(t.i18n.saved_form_data)},error:function(){t.is_form_saving=!1}})):this.warn({text:this.validation_error_msg})},save_settings:function(){toastr.options.preventDuplicates=!0,this.save_form_builder()},shareForm:function(e,t){var n=this;if("on"===n.settings.sharing_on){var o=e+"?weforms="+btoa(n.getSharingHash()+"_"+Math.floor(Date.now()/1e3)+"_"+t.ID);swal({title:n.i18n.shareYourForm,html:"<p>"+n.i18n.shareYourFormText+'</p> <p><input onClick="this.setSelectionRange(0, this.value.length)" type="text" class="regular-text" value="'+o+'"/> <button class="anonymous-share-btn button button-primary" title="Copy URL" data-clipboard-text="'+o+'"><i class="fa fa-clipboard" aria-hidden="true"></i></button></p>',showCloseButton:!0,showCancelButton:!0,confirmButtonClass:"btn btn-success",cancelButtonClass:"btn btn-danger",confirmButtonColor:"#d54e21",confirmButtonText:n.i18n.disableSharing,cancelButtonText:n.i18n.close,focusCancel:!0}).then(function(){swal({title:n.i18n.areYouSure,html:"<p>"+n.i18n.areYouSureDesc+"</p>",type:"info",confirmButtonColor:"#d54e21",showCancelButton:!0,confirmButtonText:n.i18n.disable,cancelButtonText:n.i18n.cancel}).then(function(){n.disableSharing()})})}else swal({title:n.i18n.shareYourForm,html:n.i18n.shareYourFormDesc,type:"info",showCancelButton:!0,confirmButtonText:"Enable",cancelButtonText:"Cancel"}).then(function(){n.enableSharing(e,t)})},enableSharing:function(e,t){this.settings.sharing_on="on",this.save_settings(),this.shareForm(e,t)},disableSharing:function(){this.settings.sharing_on=!1,this.save_settings()},getSharingHash:function(){return this.settings.sharing_hash||(this.settings.sharing_hash=this.makeRandomString(8),this.save_settings()),this.settings.sharing_hash},makeRandomString:function(e){e=e||8;for(var t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",o=0;o<e;o++)t+=n.charAt(Math.floor(Math.random()*n.length));return t},initSharingClipBoard:function(e){var t=new window.Clipboard(".anonymous-share-btn");s(".anonymous-share-btn").tooltip(),t.on("success",function(e){s(e.trigger).attr("data-original-title","Copied!").tooltip("show"),setTimeout(function(){s(e.trigger).tooltip("hide").attr("data-original-title","Copy URL")},1e3),e.clearSelection()})}}},weForms.routeComponents.FormEntries={props:{id:[String,Number]},template:"#tmpl-wpuf-form-entries",data:function(){return{selected:0,form_title:"Loading...",status:"publish",total:0,totalTrash:0}}},weForms.routeComponents.FormEntriesSingle={template:"#tmpl-wpuf-form-entry-single",mixins:[weForms.mixins.Loading,weForms.mixins.Cookie],data:function(){return{loading:!1,hideEmpty:!0,hasEmpty:!1,show_payment_data:!1,entry:{form_fields:{},meta_data:{},payment_data:{}},form_settings:{},respondent_points:0,answers:{},countries:weForms.countries}},created:function(){this.hideEmpty=this.hideEmptyStatus(),this.fetchData()},computed:{hasFormFields:function(){return Object.keys(this.entry.form_fields).length}},methods:{fetchData:function(){var t=this;this.loading=!0,wp.ajax.send("weforms_form_entry_details",{data:{entry_id:t.$route.params.entryid,form_id:t.$route.params.id,_wpnonce:weForms.nonce},success:function(e){t.loading=!1,t.entry=e,t.hasEmpty=e.has_empty,t.form_settings=e.form_settings,t.respondent_points=e.respondent_points,t.answers=e.answers},error:function(e){t.loading=!1,alert(e)}})},trashEntry:function(){var t=this;confirm(weForms.confirm)&&wp.ajax.send("weforms_form_entry_trash",{data:{entry_id:t.$route.params.entryid,_wpnonce:weForms.nonce},success:function(){t.loading=!1,t.$router.push({name:"formEntries",params:{id:t.$route.params.id}})},error:function(e){t.loading=!1,alert(e)}})},hideEmptyStatus:function(){return"false"!==this.getCookie("weFormsEntryHideEmpty")},findCountry:function(t){return this.countries.find(function(e){return e.code===t})},getCountryName:function(e){if(this.findCountry(e))return this.findCountry(e).name},getAddressFieldValue:function(e){var t=e.match(/Country Select:(\s([A-Z])\w+)/g);if(null===t)return e;var n=t[0].substring(15,t[0].length).trim(),o=this.getCountryName(n),i=n;return e.replace(i,o)}},watch:{hideEmpty:function(e){this.setCookie("weFormsEntryHideEmpty",e,356)}}},Vue.component("form-list-table",{template:"#tmpl-wpuf-form-list-table",mixins:[weForms.mixins.Loading,weForms.mixins.Paginate,weForms.mixins.BulkAction],data:function(){return{loading:!1,index:"ID",items:[],bulkDeleteAction:"weforms_form_delete_bulk"}},created:function(){this.fetchData()},computed:{is_pro:function(){return"true"===weForms.is_pro},has_payment:function(){return"true"===weForms.has_payment}},methods:{fetchData:function(){var t=this;this.loading=!0,wp.ajax.send("weforms_form_list",{data:{_wpnonce:weForms.nonce,page:t.currentPage},success:function(e){t.loading=!1,t.items=e.forms,t.totalItems=e.meta.total,t.totalPage=e.meta.pages},error:function(e){t.loading=!1,alert(e)}})},deleteForm:function(t){var n=this;confirm("Are you sure?")&&(n.loading=!0,wp.ajax.send("weforms_form_delete",{data:{form_id:this.items[t].id,_wpnonce:weForms.nonce},success:function(e){n.items.splice(t,1),n.loading=!1},error:function(e){alert(e),n.loading=!1}}))},duplicate:function(e,t){var n=this;this.loading=!0,wp.ajax.send("weforms_form_duplicate",{data:{form_id:e,_wpnonce:weForms.nonce},success:function(e){n.items.splice(0,0,e),n.loading=!1},error:function(e){alert(e),n.loading=!1}})},handleBulkAction:function(){if("-1"!==this.bulkAction){if("delete"===this.bulkAction){if(!this.checkedItems.length)return void alert("Please select atleast one form to delete.");confirm("Are you sure to delete the forms?")&&this.deleteBulk()}}else alert("Please chose a bulk action to perform")},isPendingForm:function(e){return Math.round((new Date).getTime()/1e3)<Math.round(new Date(e).getTime()/1e3)},isExpiredForm:function(e){var t=Math.round((new Date).getTime()/1e3);return Math.round(new Date(e).getTime()/1e3)<t},isOpenForm:function(e,t){var n=Math.round((new Date).getTime()/1e3),o=Math.round(new Date(e).getTime()/1e3),i=Math.round(new Date(t).getTime()/1e3);return o<n&&n<i},isFormStatusClosed:function(e,t){return!("true"!==e.schedule_form||!this.isPendingForm(e.schedule_start))||(!("true"!==e.schedule_form||!this.isExpiredForm(e.schedule_end))||("true"===e.limit_entries&&t>=e.limit_number||void 0))},formatTime:function(e){var t=new Date(e);return t.toLocaleString("en-us",{month:"short"})+" "+t.getDate()+", "+t.getFullYear()}}}),weForms.routeComponents.FormPayments={props:{id:[String,Number]},template:"#tmpl-wpuf-form-payments",data:function(){return{form_title:"Loading..."}}},weForms.routeComponents.Home={template:"#tmpl-wpuf-home-page",data:function(){return{showTemplateModal:!1}},methods:{displayModal:function(){this.showTemplateModal=!0},closeModal:function(){this.showTemplateModal=!1}}},weForms.routeComponents.Tools={template:"#tmpl-wpuf-tools",mixins:[weForms.mixins.Tabs,weForms.mixins.Loading],data:function(){return{activeTab:"export",exportType:"all",loading:!1,forms:[],importButton:"Import",currentStatus:0,responseMessage:"",logs:[],ximport:{current:"",title:"",action:"",message:"",type:"updated",refs:{}}}},computed:{isInitial:function(){return 0===this.currentStatus},isSaving:function(){return 1===this.currentStatus},isSuccess:function(){return 2===this.currentStatus},isFailed:function(){return 3===this.currentStatus},hasRefs:function(){return Object.keys(this.ximport.refs).length},hasLogs:function(){return Object.keys(this.logs).length}},created:function(){this.fetchData(),this.fetchLogs()},methods:{fetchLogs:function(t){var n=this;n.startLoading(t),wp.ajax.send("weforms_read_logs",{data:{_wpnonce:weForms.nonce},success:function(e){n.stopLoading(t),n.logs=e},error:function(){n.stopLoading(t),n.logs=[]}})},deleteLogs:function(t){var n=this;confirm("Are you sure to clear the log file?")&&(n.startLoading(t),wp.ajax.send("weforms_delete_logs",{data:{_wpnonce:weForms.nonce},success:function(e){n.logs=[],n.stopLoading(t),n.fetchLogs()},error:function(e){n.logs=[],n.stopLoading(t),n.fetchLogs()}}))},stopLoading:function(e){(e=s(e)).is("button")?e.removeClass("updating-message").find("span").show():e.is("span")&&e.show().parent().removeClass("updating-message")},startLoading:function(e){(e=s(e)).is("button")?e.addClass("updating-message").find("span").hide():e.is("span")&&e.hide().parent().addClass("updating-message")},fetchData:function(){var t=this;this.loading=!0,wp.ajax.send("weforms_form_names",{data:{_wpnonce:weForms.nonce},success:function(e){t.loading=!1,t.forms=e},error:function(e){t.loading=!1,alert(e)}})},importForm:function(e,t,n){if(t.length){var o=new FormData,i=this;o.append(e,t[0],t[0].name),o.append("action","weforms_import_form"),o.append("_wpnonce",weForms.nonce),i.currentStatus=1,s.ajax({type:"POST",url:window.ajaxurl,data:o,processData:!1,contentType:!1,success:function(e){i.responseMessage=e.data,e.success?i.currentStatus=2:i.currentStatus=3,s(n.target).val("")},error:function(e){console.log(e),i.currentStatus=3},complete:function(){s(n.target).val("")}})}},importx:function(e,t){var n=s(e),o=this;o.ximport.current=t,n.addClass("updating-message").text(n.data("importing")),wp.ajax.send("weforms_import_xforms_"+t,{data:{_wpnonce:weForms.nonce},success:function(e){o.ximport.title=e.title,o.ximport.message=e.message,o.ximport.action=e.action,o.ximport.refs=e.refs},error:function(e){alert(e.message)},complete:function(){n.removeClass("updating-message").text(n.data("original"))}})},replaceX:function(e,t){var n=s(e),o=this;n.addClass("updating-message"),wp.ajax.send("weforms_import_xreplace_"+o.ximport.current,{data:{type:t,_wpnonce:weForms.nonce},success:function(e){"replace"===n.data("type")&&alert(e)},error:function(e){alert(e)},complete:function(){o.ximport.current="",o.ximport.title=""}})}}},weForms.routeComponents.Transactions={template:"#tmpl-wpuf-transactions",data:function(){return{selected:0,no_transactions:!1,forms:{},form_title:"Loading..."}},created:function(){this.get_forms()},methods:{get_forms:function(){var t=this;wp.ajax.send("weforms_form_list",{data:{_wpnonce:weForms.nonce,page:t.currentPage,filter:"transactions"},success:function(e){Object.keys(e.forms).length?(t.forms=e.forms,t.selected=t.forms[Object.keys(t.forms)[0]].id):(t.form_title="No transaction found",t.no_transactions=!0)},error:function(e){alert(e)}})}}},weForms.routeComponents.Help={template:"#tmpl-wpuf-weforms-page-help"},weForms.routeComponents.Privacy={template:"#tmpl-wpuf-weforms-page-privacy"},weForms.routeComponents.Premium={template:"#tmpl-wpuf-weforms-premium",data:function(){return{showModal:!1}}},weForms.routeComponents.Settings={template:"#tmpl-wpuf-weforms-settings",mixins:[weForms.mixins.Loading,weForms.mixins.Cookie],data:function(){return{loading:!1,settings:{email_gateway:"wordpress",credit:!1,permission:"manage_options",gateways:{sendgrid:"",mailgun:"",sparkpost:""},recaptcha:{type:"v2",key:"",secret:""}},activeTab:"general"}},computed:{is_pro:function(){return"true"===weForms.is_pro}},created:function(){this.fetchSettings(),this.getCookie("weforms_settings_active_tab")&&(this.activeTab=this.getCookie("weforms_settings_active_tab"))},methods:{makeActive:function(e){this.activeTab=e},isActiveTab:function(e){return this.activeTab===e},fetchSettings:function(){var e=this;e.loading=!0,wp.ajax.send("weforms_get_settings",{data:{_wpnonce:weForms.nonce},success:function(n){void 0!==n&&(s.each(e.settings,function(e,t){void 0===n[e]&&(n[e]=t)}),e.settings=n)},complete:function(){e.loading=!1}})},saveSettings:function(e){s(e).addClass("updating-message"),wp.ajax.send("weforms_save_settings",{data:{settings:JSON.stringify(this.settings),_wpnonce:weForms.nonce},success:function(e){toastr.options.timeOut=1e3,toastr.success("Settings has been updated"),weForms.settings=e},error:function(e){console.log(e)},complete:function(){s(e).removeClass("updating-message")}})},post:function(e,t,n){n=n||function(){},(t=t||{})._wpnonce=weForms.nonce,wp.ajax.send(e,{data:t,success:function(e){n(e)},error:function(e){console.log(e)},complete:function(){}})}},watch:{activeTab:function(e){this.setCookie("weforms_settings_active_tab",e,"365")}}},Array.prototype.hasOwnProperty("swap")||(Array.prototype.swap=function(e,t){this.splice(t,0,this.splice(e,1)[0])}),Vue.component("datepicker",{template:'<input type="text" v-bind:value="value" />',props:["value"],mounted:function(){s(this.$el).datetimepicker({dateFormat:"yy-mm-dd",timeFormat:"HH:mm:ss",onClose:this.onClose})},methods:{onClose:function(e){this.$emit("input",e)}}}),Vue.component("weforms-colorpicker",{template:'<input type="text" v-bind:value="value" />',props:["value"],mounted:function(){s(this.$el).wpColorPicker({change:this.onChange})},methods:{onChange:function(e,t){this.$emit("input",t.color.toString())}}});var e=new Vuex.Store({state:{post:{},form_fields:[],panel_sections:wpuf_form_builder.panel_sections,field_settings:wpuf_form_builder.field_settings,notifications:[],settings:{},integrations:{},current_panel:"form-fields",editing_field_id:0},mutations:{set_form_fields:function(e,t){Vue.set(e,"form_fields",t)},set_form_post:function(e,t){Vue.set(e,"post",t)},set_form_notification:function(e,t){Vue.set(e,"notifications",t)},set_form_integrations:function(e,t){Vue.set(e,"integrations",t)},set_form_settings:function(e,t){Vue.set(e,"settings",t)},set_current_panel:function(e,t){"field-options"!==e.current_panel&&"field-options"===t&&e.form_fields.length&&(e.editing_field_id=e.form_fields[0].id),"form-fields"===(e.current_panel=t)&&(e.editing_field_id=0)},panel_add_show_prop:function(n){n.panel_sections.map(function(e,t){e.hasOwnProperty("show")||Vue.set(n.panel_sections[t],"show",!0)})},panel_toggle:function(e,t){e.panel_sections[t].show=!e.panel_sections[t].show},open_field_settings:function(e,t){var n=e.form_fields.filter(function(e){return parseInt(t)===parseInt(e.id)});"field-options"===e.current_panel&&n[0].id===e.editing_field_id||n.length&&(e.editing_field_id=0,e.current_panel="field-options",setTimeout(function(){e.editing_field_id=n[0].id},400))},update_editing_form_field:function(e,t){var n=0;for(n=0;n<e.form_fields.length;n++)if(e.form_fields[n].id===parseInt(t.editing_field_id)&&(e.form_fields[n][t.field_name]=t.value),"column_field"===e.form_fields[n].template){var o=e.form_fields[n].inner_fields;for(var i in o)if(o.hasOwnProperty(i))for(var r=0;r<o[i].length;)o[i][r].id===parseInt(t.editing_field_id)&&(o[i][r][t.field_name]=t.value),r++}},add_form_field_element:function(e,t){e.form_fields.splice(t.toIndex,0,t.field),Vue.nextTick(function(){var e=s("#form-preview-stage .wpuf-form .field-items").eq(t.toIndex);e&&!function(e){"function"==typeof jQuery&&e instanceof jQuery&&(e=e[0]);var t=e.getBoundingClientRect();return 0<=t.top&&0<=t.left&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}(e.get(0))&&s("#builder-stage section").scrollTo(e,800,{offset:-50})})},swap_form_field_elements:function(e,t){e.form_fields.swap(t.fromIndex,t.toIndex)},clone_form_field_element:function(e,t){var n=_.find(e.form_fields,function(e){return parseInt(e.id)===parseInt(t.field_id)}),o=s.extend(!0,{},n),i=parseInt(t.index)+1;o.id=t.new_id,o.name=o.name+"_copy",o.is_new=!0,e.form_fields.splice(i,0,o)},delete_form_field_element:function(e,t){e.current_panel="form-fields",e.form_fields.splice(t,1)},set_panel_section_fields:function(e,t){_.find(e.panel_sections,function(e){return e.id===t.id}).fields=t.fields},addNotification:function(e,t){e.notifications.push(_.clone(t))},deleteNotification:function(e,t){e.notifications.splice(t,1)},cloneNotification:function(e,t){var n=s.extend(!0,{},e.notifications[t]);t=parseInt(t)+1,e.notifications.splice(t,0,n)},updateNotificationProperty:function(e,t){e.notifications[t.index][t.property]=t.value},updateNotification:function(e,t){e.notifications[t.index]=t.value},updateIntegration:function(e,t){Vue.set(e.integrations,t.index,t.value)},add_column_inner_field_element:function(e,t){var n=e.form_fields.findIndex(function(e){return e.id===t.toWhichColumnField});(void 0===e.form_fields[n].inner_fields[t.toWhichColumn]&&(e.form_fields[n].inner_fields[t.toWhichColumn]=[]),void 0!==e.form_fields[n].inner_fields[t.toWhichColumn])&&(e.form_fields[n].inner_fields[t.toWhichColumn].filter(function(e){return e.name===t.field.name}).length<=0&&e.form_fields[n].inner_fields[t.toWhichColumn].splice(t.toIndex,0,t.field))},move_column_inner_fields:function(t,n){var o=t.form_fields.findIndex(function(e){return e.id===n.field_id}),i=n.inner_fields,r=[];Object.keys(i).forEach(function(e){"column-1"===n.move_to&&(i[e].forEach(function(e){r.push(e)}),t.form_fields[o].inner_fields[e].splice(0,i[e].length)),"column-2"===n.move_to&&("column-2"!==e&&"column-3"!==e||(i[e].forEach(function(e){r.push(e)}),t.form_fields[o].inner_fields[e].splice(0,i[e].length)))}),0!==r.length&&r.forEach(function(e){t.form_fields[o].inner_fields[n.move_to].splice(0,0,e)})},swap_column_field_elements:function(e,t){var n=e.form_fields.findIndex(function(e){return e.id===t.field_id}),o=e.form_fields[n].inner_fields[t.fromColumn][t.fromIndex];t.fromColumn!==t.toColumn?(e.form_fields[n].inner_fields[t.toColumn].splice(t.toIndex,0,o),e.form_fields[n].inner_fields[t.fromColumn].splice(t.fromIndex,1)):e.form_fields[n].inner_fields[t.toColumn].swap(t.fromIndex,t.toIndex)},open_column_field_settings:function(e,t){var n=t.column_field;"field-options"===e.current_panel&&n.id===e.editing_field_id||n&&(e.editing_field_id=0,e.current_panel="field-options",e.editing_field_type="column_field",e.editing_column_field_id=t.field_id,e.edting_field_column=t.column,e.editing_inner_field_index=t.index,setTimeout(function(){e.editing_field_id=n.id},400))},clone_column_field_element:function(e,t){var n=e.form_fields.findIndex(function(e){return e.id===t.field_id}),o=_.find(e.form_fields[n].inner_fields[t.toColumn],function(e){return parseInt(e.id)===parseInt(t.column_field_id)}),i=s.extend(!0,{},o),r=parseInt(t.index)+1;i.id=t.new_id,i.name=i.name+"_copy",i.is_new=!0,e.form_fields[n].inner_fields[t.toColumn].splice(r,0,i)},delete_column_field_element:function(e,t){var n=e.form_fields.findIndex(function(e){return e.id===t.field_id});e.current_panel="form-fields",e.form_fields[n].inner_fields[t.fromColumn].splice(t.index,1)}}});weForms.routeComponents.FormHome={template:'<div><router-view class="child"></router-view></div>'},weForms.routeComponents.SingleForm={template:"#tmpl-wpuf-form-editor"},weForms.routeComponents.FormEntriesHome={template:'<div><router-view class="grand-child"></router-view></div>'},function e(t){for(var n=0;n<t.length;n++)"object"===_typeof(t[n].children)?(e(t[n].children),void 0!==t[n].component&&(t[n].component=weForms.routeComponents[t[n].component])):t[n].component=weForms.routeComponents[t[n].component]}(weForms.routes);var t=new VueRouter({routes:weForms.routes,scrollBehavior:function(e,t,n){return n||{x:0,y:0}}});window.weFormsBuilderisDirty=!1,t.beforeEach(function(e,t,n){if(window.weFormsBuilderisDirty){if(!confirm(wpuf_form_builder.i18n.unsaved_changes+" "+wpuf_form_builder.i18n.areYouSureToLeave))return n(t.path),!1;window.weFormsBuilderisDirty=!1}n()}),weForms.validators={is_recaptcha_v2:function(){return"v2"===weForms.settings.recaptcha.type}};new Vue({router:t,store:e}).$mount("#wpuf-contact-form-app");var o=s("#toplevel_page_weforms");o.on("click","a",function(){var e=s(this);s("ul.wp-submenu li",o).removeClass("current"),e.hasClass("wp-has-submenu")?s("li.wp-first-item",o).addClass("current"):e.parents("li").addClass("current")}),s(function(){var e=window.location.href,n=e.substr(e.indexOf("admin.php"));s("ul.wp-submenu a",o).each(function(e,t){s(t).attr("href")!==n||s(t).parent().addClass("current")})})}(jQuery); -
weforms/trunk/includes/admin/class-admin.php
r2403226 r2477338 10 10 add_action( 'admin_menu', [ $this, 'register_admin_menu' ] ); 11 11 add_action( 'pre_update_option_wpuf_general', [ $this, 'watch_wpuf_settings' ] ); 12 13 add_action( 'admin_notices', array( $this, 'wpuf_premium_cta' ) ); 12 14 13 15 add_filter( 'admin_footer_text', [ $this, 'admin_footer_text' ] ); … … 388 390 include __DIR__ . '/views/weforms-settings-privacy.php'; 389 391 } 392 393 /** 394 * WeForms Pro CTA notice 395 * 396 * @since 1.6.5 397 */ 398 public function wpuf_premium_cta() { 399 $screen = get_current_screen(); 400 if ( $screen && $screen->base && 'toplevel_page_weforms' !== $screen->base ) { 401 return; 402 } 403 404 if ( ! class_exists( 'WeForms_Pro' ) ) { 405 ?> 406 <div class="notice updated premium-cta"> 407 <p style="display: flex;align-items: center;"> 408 <img style="padding-right:15px;" src="<?php echo WEFORMS_ASSET_URI . '/images/weforms-logo.png'; ?>"> 409 <?php _e( 'You're using weForms Free. For more features, modules and more consider upgrading to Pro.' , 'weforms' ); ?> 410 </p> 411 <p class="submit"> 412 <a href="https://weformspro.com/get-premium/?utm_source=Entries&utm_medium=Button&utm_campaign=Upgrade%20Now" target="_blank" class="button-primary"><?php _e( 'UPGRADE NOW!' , 'weforms' ); ?></a> 413 </p> 414 </div> 415 <?php 416 } 417 } 390 418 } -
weforms/trunk/includes/admin/class-form-builder-assets.php
r2403226 r2477338 11 11 12 12 public function init_actions() { 13 add_action( 'in_admin_header', [ $this, 'remove_admin_notices' ] );14 13 add_action( 'admin_enqueue_scripts', [ $this, 'builder_enqueue_scripts' ], 2000 ); 15 14 add_action( 'admin_print_scripts', [ $this, 'builder_mixins_script' ] ); … … 25 24 26 25 do_action( 'weforms_form_builder_init' ); 27 }28 29 /**30 * Remove all kinds of admin notices31 *32 * Since we don't have much space left on top of the page,33 * we have to remove all kinds of admin notices34 *35 * @since 1.2.636 *37 * @return void38 */39 public function remove_admin_notices() {40 remove_all_actions( 'network_admin_notices' );41 remove_all_actions( 'user_admin_notices' );42 remove_all_actions( 'admin_notices' );43 remove_all_actions( 'all_admin_notices' );44 26 } 45 27 -
weforms/trunk/includes/admin/class-promotion.php
r2403226 r2477338 164 164 } 165 165 166 $screen = get_current_screen(); 167 if ( $screen && $screen->base && 'toplevel_page_weforms' !== $screen->base ) { 168 return; 169 } 170 166 171 $dismiss_notice = get_option( 'weforms_review_notice_dismiss', 'no' ); 167 172 $activation_time = get_option( 'weforms_installed' ); … … 189 194 return; 190 195 } ?> 191 <div id="weforms-review-notice" class="weforms-review-notice"> 192 <div class="weforms-review-thumbnail"> 193 <img src="<?php echo esc_attr( WEFORMS_ASSET_URI ) . '/images/icon-weforms.png' ?>" alt=""> 194 </div> 195 <div class="weforms-review-text"> 196 <?php if ( $total_entries >= 25 ) : ?> 197 <h3><?php wp_kses_post( __( 'Enjoying <strong>weForms</strong>?', 'weforms' ) ) ?></h3> 198 <p><?php wp_kses_post( __('Seems like you are getting a good response using <strong>weForms</strong>. Would you please show us a little love by rating us in the <a href="https://wordpress.org/support/plugin/weforms/reviews/#postform" target="_blank"><strong>WordPress.org</strong></a>?', 'weforms') ) ?></p> 199 <?php else: ?> 200 <h3><?php wp_kses_post( __( 'Enjoying <strong>weForms</strong>?', 'weforms' ) ) ?></h3> 201 <p><?php wp_kses_post( __( 'Hope that you had a neat and snappy experience with the tool. Would you please show us a little love by rating us in the <a href="https://wordpress.org/support/plugin/weforms/reviews/#postform" target="_blank"><strong>WordPress.org</strong></a>?', 'weforms' ) ) ?></p> 202 <?php endif; ?> 203 204 <ul class="weforms-review-ul"> 205 <li><a href="https://wordpress.org/support/plugin/weforms/reviews/#postform" target="_blank"><span 206 class="dashicons dashicons-external"></span><?php esc_html_e( 'Sure! I\'d love to!', 'weforms' ) ?> 207 </a></li> 208 <li><a href="#" class="notice-dismiss"><span 209 class="dashicons dashicons-smiley"></span><?php esc_html_e( 'I\'ve already left a review', 'weforms' ) ?> 210 </a></li> 211 <li><a href="#" class="notice-dismiss"><span 212 class="dashicons dashicons-dismiss"></span><?php esc_html_e( 'Never show again', 'weforms' ) ?> 213 </a> 214 </li> 215 </ul> 216 </div> 196 <div id="weforms-review-notice" class="weforms-review-notice updated notice"> 197 <div class="weforms-review-top"> 198 <p><img src="<?php echo esc_attr( WEFORMS_ASSET_URI ) . '/images/weforms-logo.png'; ?>" alt=""></p> 199 <div class="weforms-review-text"> 200 <?php if ( $total_entries >= 25 ) : ?> 201 <h3><?php printf( __( 'Enjoying %sweForms%s?', 'weforms' ), '<strong>', '</strong>' ); ?></h3> 202 <p><?php 203 printf( 204 // translators: opening <a>tag, closing </a> tag. 205 __( 206 'Seems like you are getting a good response using weForms. Would you please show us a little love by rating us in the %sWordPress.org%s?', 207 'weforms' 208 ), 209 '<a href="https://wordpress.org/support/plugin/weforms/reviews/#postform" target="_blank"><strong>', 210 '</strong></a>' 211 ); ?></p> 212 <?php else: ?> 213 <h3><?php printf( 214 // translators: opening <strong> tag, closing </strong> tag. 215 __( 'Enjoying %sweForms%s?', 'weforms' ), 216 '<strong>', 217 '</strong>' ); ?></h3> 218 <p><?php 219 printf( 220 // translators: opening <a> tag, closing </a> tag 221 __( 222 'Hope that you had a neat and snappy experience with the tool. Would you please show us a little love by rating us in the %sWordPress.org%s?', 223 'weforms' 224 ), 225 '<a href="https://wordpress.org/support/plugin/weforms/reviews/#postform" target="_blank"><strong>', 226 '</strong></a>' 227 ); ?></p> 228 <?php endif; ?> 229 </div> 230 </div> 231 <div class="weforms-review-links"> 232 <ul class="weforms-review-ul"> 233 <li><a class="button-primary button" href="https://wordpress.org/support/plugin/weforms/reviews/#postform" target="_blank"><span 234 class="dashicons dashicons-external"></span><?php esc_html_e( 'Sure! I\'d love to!', 'weforms' ) ?> 235 </a></li> 236 <li><a href="#" class="button notice-dismiss"><span 237 class="dashicons dashicons-smiley"></span><?php esc_html_e( 'I\'ve already left a review', 'weforms' ) ?> 238 </a></li> 239 <li><a href="#" class="button notice-dismiss"><span 240 class="dashicons dashicons-dismiss"></span><?php esc_html_e( 'Never show again', 'weforms' ) ?> 241 </a> 242 </li> 243 </ul> 244 </div> 217 245 </div> 218 246 <style type="text/css"> 219 #weforms-review-notice .notice-dismiss {220 padding: 0 0 0 26px;221 }222 247 223 248 #weforms-review-notice .notice-dismiss:before { … … 226 251 227 252 #weforms-review-notice.weforms-review-notice { 228 padding: 15px 15px 15px 0;229 253 background-color: #fff; 230 254 border-radius: 3px; 231 margin: 20px 20px 0 0; 232 border-left: 4px solid transparent; 233 } 255 margin: 5px 0 15px; 256 } 257 258 #weforms-review-notice .weforms-review-top { 259 display: flex; 260 margin: 0.5em 0; 261 } 262 263 #weforms-review-notice .weforms-review-top > p { 264 padding-right: 15px; 265 } 234 266 235 267 #weforms-review-notice .weforms-review-thumbnail { … … 257 289 } 258 290 291 #weforms-review-notice .weforms-review-links { 292 margin: 0.5em 0; 293 } 294 259 295 #weforms-review-notice .weforms-review-text p { 260 296 font-size: 13px; … … 273 309 274 310 #weforms-review-notice .weforms-review-ul li a { 275 display: inline-block; 276 color: #82C776; 311 display: flex; 312 align-items: center; 313 justify-content: space-between; 277 314 text-decoration: none; 278 padding-left: 26px;279 315 position: relative; 280 316 } 281 317 282 318 #weforms-review-notice .weforms-review-ul li a span { 283 position: absolute; 284 left: 0; 285 top: -2px; 319 margin-right: 10px; 286 320 } 287 321 </style> -
weforms/trunk/includes/admin/views/vue-index.php
r2403226 r2477338 1 1 <div class="wrap"> 2 <h1></h1> 2 3 <div id="wpuf-contact-form-app"> 3 4 <router-view></router-view> -
weforms/trunk/includes/library/appsero/Insights.php
r2403226 r2477338 141 141 */ 142 142 protected function init_common() { 143 144 if ( $this->show_notice ) {145 // tracking notice146 add_action( 'admin_notices', array( $this, 'admin_notice' ) );147 }148 149 143 add_action( 'admin_init', array( $this, 'handle_optin_optout' ) ); 150 144 … … 341 335 private function clear_schedule_event() { 342 336 wp_clear_scheduled_hook( $this->client->slug . '_tracker_send_event' ); 343 }344 345 /**346 * Display the admin notice to users that have not opted-in or out347 *348 * @return void349 */350 public function admin_notice() {351 352 if ( $this->notice_dismissed() ) {353 return;354 }355 356 if ( ! current_user_can( 'manage_options' ) ) {357 return;358 }359 360 // don't show tracking if a local server361 if ( ! $this->is_local_server() ) {362 $learn_url = admin_url('admin.php?page=weforms#/settings');363 $optout_url = add_query_arg( $this->client->slug . '_hide_fortressdb', 'true' );364 365 if ( empty( $this->notice ) ) {366 $notice = sprintf( __( "Want to better secure your contact form's valuable data? Check out FortressDB!", $this->client->textdomain, 'weforms' ), $this->client->name );367 } else {368 $notice = $this->notice;369 }370 371 echo '<div class="updated"><p>';372 echo $notice;373 echo '</p><p class="submit">';374 echo ' <a href="' . esc_url( $learn_url ) . '" class="button-primary button-large">' . __( 'Learn More', $this->client->textdomain, 'weforms' ) . '</a>';375 echo ' <a href="' . esc_url( $optout_url ) . '" class="button-secondary button-large">' . __( 'Hide', $this->client->textdomain, 'weforms' ) . '</a>';376 echo '</p></div>';377 }378 337 } 379 338 -
weforms/trunk/languages/weforms.pot
r2416759 r2477338 1 # Copyright (C) 202 0weForms1 # Copyright (C) 2021 weForms 2 2 # This file is distributed under the GPL2 or later. 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: weForms 1.6. 2\n"5 "Project-Id-Version: weForms 1.6.5\n" 6 6 "Report-Msgid-Bugs-To: https://wedevs.com/contact/\n" 7 "POT-Creation-Date: 202 0-11-11 16:37:27+00:00\n"7 "POT-Creation-Date: 2021-02-18 21:24:28+00:00\n" 8 8 "MIME-Version: 1.0\n" 9 9 "Content-Type: text/plain; charset=utf-8\n" 10 10 "Content-Transfer-Encoding: 8bit\n" 11 "PO-Revision-Date: 202 0-MO-DA HO:MI+ZONE\n"11 "PO-Revision-Date: 2021-MO-DA HO:MI+ZONE\n" 12 12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 13 13 "Language-Team: LANGUAGE <EMAIL@ADDRESS>\n" … … 59 59 msgstr "" 60 60 61 #: includes/admin/class-admin.php:3 4 includes/admin/class-admin.php:5661 #: includes/admin/class-admin.php:36 includes/admin/class-admin.php:58 62 62 msgid "Contact Forms" 63 63 msgstr "" 64 64 65 #: includes/admin/class-admin.php:5 465 #: includes/admin/class-admin.php:56 66 66 msgid "Forms" 67 67 msgstr "" 68 68 69 #: includes/admin/class-admin.php:5 5includes/class-form-widget.php:4969 #: includes/admin/class-admin.php:57 includes/class-form-widget.php:49 70 70 #: includes/functions.php:753 71 71 msgid "Form" 72 72 msgstr "" 73 73 74 #: includes/admin/class-admin.php:5 774 #: includes/admin/class-admin.php:59 75 75 msgid "Add Form" 76 76 msgstr "" 77 77 78 #: includes/admin/class-admin.php: 5878 #: includes/admin/class-admin.php:60 79 79 msgid "Add New Form" 80 80 msgstr "" 81 81 82 #: includes/admin/class-admin.php: 5982 #: includes/admin/class-admin.php:61 83 83 msgid "Edit" 84 84 msgstr "" 85 85 86 #: includes/admin/class-admin.php:6 086 #: includes/admin/class-admin.php:62 87 87 msgid "Edit Form" 88 88 msgstr "" 89 89 90 #: includes/admin/class-admin.php:6 190 #: includes/admin/class-admin.php:63 91 91 msgid "New Form" 92 92 msgstr "" 93 93 94 #: includes/admin/class-admin.php:6 2 includes/admin/class-admin.php:6394 #: includes/admin/class-admin.php:64 includes/admin/class-admin.php:65 95 95 msgid "View Form" 96 96 msgstr "" 97 97 98 #: includes/admin/class-admin.php:6 498 #: includes/admin/class-admin.php:66 99 99 msgid "Search Form" 100 100 msgstr "" 101 101 102 #: includes/admin/class-admin.php:6 5102 #: includes/admin/class-admin.php:67 103 103 msgid "No Form Found" 104 104 msgstr "" 105 105 106 #: includes/admin/class-admin.php:6 6106 #: includes/admin/class-admin.php:68 107 107 msgid "No Form Found in Trash" 108 108 msgstr "" 109 109 110 #: includes/admin/class-admin.php:6 7110 #: includes/admin/class-admin.php:69 111 111 msgid "Parent Form" 112 112 msgstr "" 113 113 114 #: includes/admin/class-admin.php:8 2114 #: includes/admin/class-admin.php:84 115 115 msgid "weForms - The Best Contact Form" 116 116 msgstr "" 117 117 118 #: includes/admin/class-admin.php:8 5118 #: includes/admin/class-admin.php:87 119 119 msgid "All Forms" 120 120 msgstr "" 121 121 122 #: includes/admin/class-admin.php:8 6122 #: includes/admin/class-admin.php:88 123 123 msgid "Entries" 124 124 msgstr "" 125 125 126 #: includes/admin/class-admin.php:8 7126 #: includes/admin/class-admin.php:89 127 127 msgid "Tools" 128 128 msgstr "" 129 129 130 #: includes/admin/class-admin.php:9 1130 #: includes/admin/class-admin.php:93 131 131 msgid "Modules" 132 132 msgstr "" 133 133 134 #: includes/admin/class-admin.php:9 4134 #: includes/admin/class-admin.php:96 135 135 #: includes/admin/views/weforms-settings-general.php:14 136 136 #: includes/admin/views/weforms-settings-general.php:15 … … 139 139 msgstr "" 140 140 141 #: includes/admin/class-admin.php: 99141 #: includes/admin/class-admin.php:101 142 142 msgid "<span style=\"color:#f18500\">Help</span>" 143 143 msgstr "" 144 144 145 #: includes/admin/class-admin.php:10 0 includes/admin/class-admin.php:341145 #: includes/admin/class-admin.php:102 includes/admin/class-admin.php:343 146 146 #: includes/admin/views/weforms-settings-privacy.php:1 147 147 msgid "Privacy" 148 148 msgstr "" 149 149 150 #: includes/admin/class-admin.php:10 5weforms.php:394150 #: includes/admin/class-admin.php:107 weforms.php:394 151 151 msgid "Settings" 152 152 msgstr "" 153 153 154 #: includes/admin/class-admin.php:18 4154 #: includes/admin/class-admin.php:186 155 155 #: includes/api/class-weforms-forms-controller.php:1368 156 156 #: includes/functions.php:773 … … 158 158 msgstr "" 159 159 160 #: includes/admin/class-admin.php:18 5160 #: includes/admin/class-admin.php:187 161 161 #: includes/api/class-weforms-forms-controller.php:1369 162 162 #: includes/functions.php:764 … … 165 165 msgstr "" 166 166 167 #: includes/admin/class-admin.php:30 6167 #: includes/admin/class-admin.php:308 168 168 msgid "If you like %1$s please leave us a %2$s rating." 169 169 msgstr "" … … 173 173 msgstr "" 174 174 175 #: includes/admin/class-admin.php:32 4175 #: includes/admin/class-admin.php:326 176 176 #: includes/admin/views/weforms-settings-general.php:1 177 177 msgid "General Settings" 178 178 msgstr "" 179 179 180 #: includes/admin/class-admin.php:3 29180 #: includes/admin/class-admin.php:331 181 181 #: includes/admin/views/weforms-settings-recaptcha.php:1 182 182 #: includes/fields/class-field-recaptcha.php:9 … … 184 184 msgstr "" 185 185 186 #: includes/admin/class-admin.php:33 4186 #: includes/admin/class-admin.php:336 187 187 #: includes/admin/views/weforms-settings-secure-database.php:1 188 188 msgid "Secure Database" 189 189 msgstr "" 190 190 191 #: includes/admin/class-form-builder-assets.php:63 includes/functions.php:1167 191 #: includes/admin/class-admin.php:409 192 msgid "" 193 "You're using weForms Free. For more features, modules and more consider " 194 "upgrading to Pro." 195 msgstr "" 196 197 #: includes/admin/class-admin.php:412 198 msgid "UPGRADE NOW!" 199 msgstr "" 200 201 #: includes/admin/class-form-builder-assets.php:45 includes/functions.php:1167 192 202 #: includes/functions.php:1170 193 203 msgid "New Form Submission" 194 204 msgstr "" 195 205 196 #: includes/admin/class-form-builder-assets.php: 100197 #: includes/admin/class-form-builder-assets.php: 309206 #: includes/admin/class-form-builder-assets.php:82 207 #: includes/admin/class-form-builder-assets.php:291 198 208 #: includes/class-scripts-styles.php:426 199 209 msgid "Are you sure?" 200 210 msgstr "" 201 211 202 #: includes/admin/class-form-builder-assets.php:2 79212 #: includes/admin/class-form-builder-assets.php:261 203 213 msgid "Advanced Options" 204 214 msgstr "" 205 215 206 #: includes/admin/class-form-builder-assets.php:2 80216 #: includes/admin/class-form-builder-assets.php:262 207 217 msgid "Quiz Options" 208 218 msgstr "" 209 219 210 #: includes/admin/class-form-builder-assets.php:2 81220 #: includes/admin/class-form-builder-assets.php:263 211 221 msgid "Are you sure you want to delete this field?" 212 222 msgstr "" 213 223 214 #: includes/admin/class-form-builder-assets.php:2 82224 #: includes/admin/class-form-builder-assets.php:264 215 225 #: includes/class-scripts-styles.php:427 216 226 msgid "Yes, delete it" 217 227 msgstr "" 218 228 219 #: includes/admin/class-form-builder-assets.php:2 83229 #: includes/admin/class-form-builder-assets.php:265 220 230 #: includes/class-scripts-styles.php:428 221 231 msgid "No, cancel it" 222 232 msgstr "" 223 233 224 #: includes/admin/class-form-builder-assets.php:2 84234 #: includes/admin/class-form-builder-assets.php:266 225 235 msgid "OK" 226 236 msgstr "" 227 237 228 #: includes/admin/class-form-builder-assets.php:2 85229 #: includes/library/appsero/Insights.php: 718238 #: includes/admin/class-form-builder-assets.php:267 239 #: includes/library/appsero/Insights.php:677 230 240 msgid "Cancel" 231 241 msgstr "" 232 242 233 #: includes/admin/class-form-builder-assets.php:2 86243 #: includes/admin/class-form-builder-assets.php:268 234 244 #: includes/admin/class-shortcode-button.php:84 235 245 msgid "Close" 236 246 msgstr "" 237 247 238 #: includes/admin/class-form-builder-assets.php:2 87248 #: includes/admin/class-form-builder-assets.php:269 239 249 msgid "Disable" 240 250 msgstr "" 241 251 242 #: includes/admin/class-form-builder-assets.php:2 88252 #: includes/admin/class-form-builder-assets.php:270 243 253 msgid "This field must contain at least one choice" 244 254 msgstr "" 245 255 246 #: includes/admin/class-form-builder-assets.php:2 89256 #: includes/admin/class-form-builder-assets.php:271 247 257 #: includes/fields/class-field-checkbox.php:90 248 258 #: includes/fields/class-field-dropdown.php:93 … … 252 262 msgstr "" 253 263 254 #: includes/admin/class-form-builder-assets.php:2 90264 #: includes/admin/class-form-builder-assets.php:272 255 265 msgid "Row" 256 266 msgstr "" 257 267 258 #: includes/admin/class-form-builder-assets.php:2 91268 #: includes/admin/class-form-builder-assets.php:273 259 269 msgid "Column" 260 270 msgstr "" 261 271 262 #: includes/admin/class-form-builder-assets.php:2 92272 #: includes/admin/class-form-builder-assets.php:274 263 273 msgid "This field must contain at least one column" 264 274 msgstr "" 265 275 266 #: includes/admin/class-form-builder-assets.php:2 93276 #: includes/admin/class-form-builder-assets.php:275 267 277 msgid "is available in Pro version" 268 278 msgstr "" 269 279 270 #: includes/admin/class-form-builder-assets.php:2 94280 #: includes/admin/class-form-builder-assets.php:276 271 281 msgid "Please upgrade to the Pro version to unlock all these awesome features" 272 282 msgstr "" 273 283 274 #: includes/admin/class-form-builder-assets.php:2 95284 #: includes/admin/class-form-builder-assets.php:277 275 285 msgid "Get the Pro version" 276 286 msgstr "" 277 287 278 #: includes/admin/class-form-builder-assets.php:2 96288 #: includes/admin/class-form-builder-assets.php:278 279 289 msgid "Select" 280 290 msgstr "" 281 291 282 #: includes/admin/class-form-builder-assets.php:2 97292 #: includes/admin/class-form-builder-assets.php:279 283 293 msgid "Saved form data" 284 294 msgstr "" 285 295 286 #: includes/admin/class-form-builder-assets.php:2 98296 #: includes/admin/class-form-builder-assets.php:280 287 297 msgid "You have unsaved changes." 288 298 msgstr "" 289 299 290 #: includes/admin/class-form-builder-assets.php:2 99300 #: includes/admin/class-form-builder-assets.php:281 291 301 msgid "Are you sure to leave this page?" 292 302 msgstr "" 293 303 294 #: includes/admin/class-form-builder-assets.php: 300304 #: includes/admin/class-form-builder-assets.php:282 295 305 msgid "Click to copy shortcode" 296 306 msgstr "" 297 307 298 #: includes/admin/class-form-builder-assets.php: 302308 #: includes/admin/class-form-builder-assets.php:284 299 309 msgid "Select an image" 300 310 msgstr "" 301 311 302 #: includes/admin/class-form-builder-assets.php: 303312 #: includes/admin/class-form-builder-assets.php:285 303 313 msgid "Please select an image" 304 314 msgstr "" 305 315 306 #: includes/admin/class-form-builder-assets.php: 304316 #: includes/admin/class-form-builder-assets.php:286 307 317 msgid "Upload an image" 308 318 msgstr "" 309 319 310 #: includes/admin/class-form-builder-assets.php: 306320 #: includes/admin/class-form-builder-assets.php:288 311 321 msgid "Share Your Form" 312 322 msgstr "" 313 323 314 #: includes/admin/class-form-builder-assets.php: 307324 #: includes/admin/class-form-builder-assets.php:289 315 325 msgid "" 316 326 "Sharing your form enables <strong>anyone</strong> to view and submit the " … … 318 328 msgstr "" 319 329 320 #: includes/admin/class-form-builder-assets.php: 308330 #: includes/admin/class-form-builder-assets.php:290 321 331 msgid "Anyone with this URL will be able to view and submit this form." 322 332 msgstr "" 323 333 324 #: includes/admin/class-form-builder-assets.php: 310334 #: includes/admin/class-form-builder-assets.php:292 325 335 msgid "You must select a notification" 326 336 msgstr "" 327 337 328 #: includes/admin/class-form-builder-assets.php: 311338 #: includes/admin/class-form-builder-assets.php:293 329 339 msgid "Anyone with existing URL won't be able to view and submit the form anymore." 330 340 msgstr "" 331 341 332 #: includes/admin/class-form-builder-assets.php: 312342 #: includes/admin/class-form-builder-assets.php:294 333 343 msgid "Disable Sharing" 334 344 msgstr "" 335 345 336 #: includes/admin/class-form-builder-assets.php:3 34346 #: includes/admin/class-form-builder-assets.php:316 337 347 msgid "Notifications" 338 348 msgstr "" 339 349 340 #: includes/admin/class-form-builder-assets.php:3 35350 #: includes/admin/class-form-builder-assets.php:317 341 351 msgid "Integrations" 342 352 msgstr "" 343 353 344 #: includes/admin/class-form-builder-assets.php:3 57354 #: includes/admin/class-form-builder-assets.php:339 345 355 msgid "Form Settings" 346 356 msgstr "" 347 357 348 #: includes/admin/class-form-builder-assets.php:3 58358 #: includes/admin/class-form-builder-assets.php:340 349 359 msgid "Submission Restriction" 350 360 msgstr "" 351 361 352 #: includes/admin/class-form-builder-assets.php:3 59362 #: includes/admin/class-form-builder-assets.php:341 353 363 msgid "Display Settings" 354 364 msgstr "" 355 365 356 #: includes/admin/class-form-builder-assets.php:3 94366 #: includes/admin/class-form-builder-assets.php:376 357 367 #: includes/admin/class-privacy.php:242 includes/functions.php:771 358 368 msgid "User" 359 369 msgstr "" 360 370 361 #: includes/admin/class-form-builder-assets.php:3 96includes/functions.php:775371 #: includes/admin/class-form-builder-assets.php:378 includes/functions.php:775 362 372 #: includes/integrations/mailpoet/component/template.php:38 363 373 #: includes/templates/class-template-conference-proposal.php:33 … … 763 773 msgstr "" 764 774 765 #: includes/admin/class-promotion.php:197766 #: includes/admin/class-promotion.php:200767 msgid "Enjoying <strong>weForms</strong>?"768 msgstr ""769 770 #: includes/admin/class-promotion.php:198771 msgid ""772 "Seems like you are getting a good response using <strong>weForms</strong>. "773 "Would you please show us a little love by rating us in the <a "774 "href=\"https://wordpress.org/support/plugin/weforms/reviews/#postform\" "775 "target=\"_blank\"><strong>WordPress.org</strong></a>?"776 msgstr ""777 778 775 #: includes/admin/class-promotion.php:201 776 #: includes/admin/class-promotion.php:215 777 #. translators: opening <strong> tag, closing </strong> tag. 778 msgid "Enjoying %sweForms%s?" 779 msgstr "" 780 781 #: includes/admin/class-promotion.php:205 782 #. translators: opening <a>tag, closing </a> tag. 783 msgid "" 784 "Seems like you are getting a good response using weForms. Would you please " 785 "show us a little love by rating us in the %sWordPress.org%s?" 786 msgstr "" 787 788 #: includes/admin/class-promotion.php:221 789 #. translators: opening <a> tag, closing </a> tag 779 790 msgid "" 780 791 "Hope that you had a neat and snappy experience with the tool. Would you " 781 "please show us a little love by rating us in the <a " 782 "href=\"https://wordpress.org/support/plugin/weforms/reviews/#postform\" " 783 "target=\"_blank\"><strong>WordPress.org</strong></a>?" 784 msgstr "" 785 786 #: includes/admin/class-promotion.php:206 792 "please show us a little love by rating us in the %sWordPress.org%s?" 793 msgstr "" 794 795 #: includes/admin/class-promotion.php:234 787 796 msgid "Sure! I'd love to!" 788 797 msgstr "" 789 798 790 #: includes/admin/class-promotion.php:2 09799 #: includes/admin/class-promotion.php:237 791 800 msgid "I've already left a review" 792 801 msgstr "" 793 802 794 #: includes/admin/class-promotion.php:2 12803 #: includes/admin/class-promotion.php:240 795 804 msgid "Never show again" 796 805 msgstr "" 797 806 798 #: includes/admin/class-promotion.php:3 11799 #: includes/admin/class-promotion.php:3 15800 #: includes/admin/class-promotion.php:3 37801 #: includes/admin/class-promotion.php:3 41includes/class-ajax.php:99807 #: includes/admin/class-promotion.php:345 808 #: includes/admin/class-promotion.php:349 809 #: includes/admin/class-promotion.php:371 810 #: includes/admin/class-promotion.php:375 includes/class-ajax.php:99 802 811 #: includes/fields/class-abstract-fields.php:533 803 812 #: includes/fields/class-abstract-fields.php:537 … … 2546 2555 msgstr "" 2547 2556 2548 #: includes/library/appsero/Insights.php:366 2549 msgid "" 2550 "Want to better secure your contact form's valuable data? Check out " 2551 "FortressDB!" 2552 msgstr "" 2553 2554 #: includes/library/appsero/Insights.php:374 2555 msgid "Learn More" 2556 msgstr "" 2557 2558 #: includes/library/appsero/Insights.php:375 2559 msgid "Hide" 2560 msgstr "" 2561 2562 #: includes/library/appsero/Insights.php:701 2557 #: includes/library/appsero/Insights.php:660 2563 2558 msgid "If you have a moment, please let us know why you are deactivating:" 2564 2559 msgstr "" 2565 2560 2566 #: includes/library/appsero/Insights.php: 7162561 #: includes/library/appsero/Insights.php:675 2567 2562 msgid "I rather wouldn't say" 2568 2563 msgstr "" 2569 2564 2570 #: includes/library/appsero/Insights.php: 7172565 #: includes/library/appsero/Insights.php:676 2571 2566 msgid "Submit & Deactivate" 2572 2567 msgstr "" -
weforms/trunk/readme.txt
r2445228 r2477338 5 5 Requires PHP: 5.6.20 6 6 Tested up to: 5.6 7 Stable tag: 1.6. 47 Stable tag: 1.6.5 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 250 250 == Changelog == 251 251 252 = Version 1.6.5 (18 February, 2021) = 253 * **Fix:** Updated admin notices to better conform to WordPress design standards, and configured them to only show on WeForms pages. 254 * **Update:** Removed FortressDB admin notice. 255 * **Update:** Updated axios dependancy 256 252 257 = Version 1.6.4 (23 December, 2020) = 253 258 * **Fix:** Added spreadsheet functione escaping to prevent CSV exploits. [#50] (https://github.com/BoldGrid/weforms/pull/50) -
weforms/trunk/weforms.php
r2445228 r2477338 6 6 * Author: weForms 7 7 * Author URI: https://weformspro.com/ 8 * Version: 1.6. 48 * Version: 1.6.5 9 9 * License: GPL2 or later 10 10 * License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 56 56 * @var string 57 57 */ 58 public $version = '1.6. 4';58 public $version = '1.6.5'; 59 59 60 60 /**
Note: See TracChangeset
for help on using the changeset viewer.