Plugin Directory

Changeset 2477338


Ignore:
Timestamp:
02/18/2021 09:34:14 PM (5 years ago)
Author:
jamesros161
Message:

v1.6.5 - Patch release

Location:
weforms
Files:
5 deleted
20 edited
10 copied

Legend:

Unmodified
Added
Removed
  • weforms/tags/1.6.5/assets/js-templates/spa-components.php

    r2403226 r2477338  
    174174                {{ form_title }}
    175175            </span>
    176            
     176
    177177            <select v-if="Object.keys(forms).length" v-model="selected" @change="status='publish'">
    178178                <option :value="form.id" v-for="form in forms">{{ form.name }}</option>
    179179            </select>
    180180        </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&#39;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 } ?>
    188181    </div>
    189182
     
    787780    <h1 class="wp-heading-inline"><?php _e( 'All Forms', 'weforms' ); ?></h1>
    788781    <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&#39;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 } ?>
    796782    <wpuf-template-modal :show.sync="showTemplateModal" :onClose="closeModal"></wpuf-template-modal>
    797783
     
    802788<div class="export-import-wrap">
    803789    <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&#39;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 } ?>
    811790    <h2 class="nav-tab-wrapper">
    812791        <a :class="['nav-tab', isActiveTab( 'export' ) ? 'nav-tab-active' : '']" href="#" v-on:click.prevent="makeActive('export')"><?php _e( 'Export', 'wpuf' ); ?></a>
     
    1009988
    1010989    <p v-if="no_transactions">
    1011        <?php printf( 
     990       <?php printf(
    1012991            __( 'You don\'t have any transactions yet. Learn how to %sset up payment integration%s and take payments with weFroms.' ),
    1013992            '<a target="_blank" href="https://wedevs.com/docs/weforms/integrations/payment/">',
     
    13811360
    13821361    <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&#39;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 } ?>
    13901362    <div id="weforms-settings-tabs-warp" class="<?php echo !function_exists( 'weforms_pro' ) ? 'weforms-pro-deactivate' : ''; ?>">
    13911363        <div id="weforms-settings-tabs">
  • weforms/tags/1.6.5/assets/js/spa-app.js

    r2416759 r2477338  
    11'use strict';
    22
    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; };
     3var _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
     5var _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
     11var _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
     17var _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
     23var _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
     29var _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
     35var _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
     41var _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};
    446
    547var _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 _typeof2="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  
    1010        add_action( 'admin_menu', [ $this, 'register_admin_menu' ] );
    1111        add_action( 'pre_update_option_wpuf_general', [ $this, 'watch_wpuf_settings' ] );
     12
     13        add_action( 'admin_notices', array( $this, 'wpuf_premium_cta' ) );
    1214
    1315        add_filter( 'admin_footer_text', [ $this, 'admin_footer_text' ] );
     
    388390        include __DIR__ . '/views/weforms-settings-privacy.php';
    389391    }
     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&#39;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    }
    390418}
  • weforms/tags/1.6.5/includes/admin/class-form-builder-assets.php

    r2403226 r2477338  
    1111
    1212    public function init_actions() {
    13         add_action( 'in_admin_header', [ $this, 'remove_admin_notices' ] );
    1413        add_action( 'admin_enqueue_scripts', [ $this, 'builder_enqueue_scripts' ], 2000 );
    1514        add_action( 'admin_print_scripts', [ $this, 'builder_mixins_script' ] );
     
    2524
    2625        do_action( 'weforms_form_builder_init' );
    27     }
    28 
    29     /**
    30      * Remove all kinds of admin notices
    31      *
    32      * Since we don't have much space left on top of the page,
    33      * we have to remove all kinds of admin notices
    34      *
    35      * @since 1.2.6
    36      *
    37      * @return void
    38      */
    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' );
    4426    }
    4527
  • weforms/tags/1.6.5/includes/admin/class-promotion.php

    r2403226 r2477338  
    164164        }
    165165
     166        $screen = get_current_screen();
     167        if ( $screen && $screen->base && 'toplevel_page_weforms' !== $screen->base ) {
     168            return;
     169        }
     170
    166171        $dismiss_notice  = get_option( 'weforms_review_notice_dismiss', 'no' );
    167172        $activation_time = get_option( 'weforms_installed' );
     
    189194            return;
    190195        } ?>
    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>
    217245        </div>
    218246        <style type="text/css">
    219             #weforms-review-notice .notice-dismiss {
    220                 padding: 0 0 0 26px;
    221             }
    222247
    223248            #weforms-review-notice .notice-dismiss:before {
     
    226251
    227252            #weforms-review-notice.weforms-review-notice {
    228                 padding: 15px 15px 15px 0;
    229253                background-color: #fff;
    230254                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            }
    234266
    235267            #weforms-review-notice .weforms-review-thumbnail {
     
    257289            }
    258290
     291            #weforms-review-notice .weforms-review-links {
     292                margin: 0.5em 0;
     293            }
     294
    259295            #weforms-review-notice .weforms-review-text p {
    260296                font-size: 13px;
     
    273309
    274310            #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;
    277314                text-decoration: none;
    278                 padding-left: 26px;
    279315                position: relative;
    280316            }
    281317
    282318            #weforms-review-notice .weforms-review-ul li a span {
    283                 position: absolute;
    284                 left: 0;
    285                 top: -2px;
     319                margin-right: 10px;
    286320            }
    287321        </style>
  • weforms/tags/1.6.5/includes/admin/views/vue-index.php

    r2403226 r2477338  
    11<div class="wrap">
     2    <h1></h1>
    23    <div id="wpuf-contact-form-app">
    34        <router-view></router-view>
  • weforms/tags/1.6.5/includes/library/appsero/Insights.php

    r2403226 r2477338  
    141141     */
    142142    protected function init_common() {
    143 
    144         if ( $this->show_notice ) {
    145             // tracking notice
    146             add_action( 'admin_notices', array( $this, 'admin_notice' ) );
    147         }
    148 
    149143        add_action( 'admin_init', array( $this, 'handle_optin_optout' ) );
    150144
     
    341335    private function clear_schedule_event() {
    342336        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 out
    347      *
    348      * @return void
    349      */
    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 server
    361         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 '&nbsp;<a href="' . esc_url( $learn_url ) . '" class="button-primary button-large">' . __( 'Learn More', $this->client->textdomain, 'weforms' ) . '</a>';
    375                 echo '&nbsp;<a href="' . esc_url( $optout_url ) . '" class="button-secondary button-large">' . __( 'Hide', $this->client->textdomain, 'weforms' ) . '</a>';
    376             echo '</p></div>';
    377         }
    378337    }
    379338
  • weforms/tags/1.6.5/languages/weforms.pot

    r2416759 r2477338  
    1 # Copyright (C) 2020 weForms
     1# Copyright (C) 2021 weForms
    22# This file is distributed under the GPL2 or later.
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: weForms 1.6.2\n"
     5"Project-Id-Version: weForms 1.6.5\n"
    66"Report-Msgid-Bugs-To: https://wedevs.com/contact/\n"
    7 "POT-Creation-Date: 2020-11-11 16:37:27+00:00\n"
     7"POT-Creation-Date: 2021-02-18 21:24:28+00:00\n"
    88"MIME-Version: 1.0\n"
    99"Content-Type: text/plain; charset=utf-8\n"
    1010"Content-Transfer-Encoding: 8bit\n"
    11 "PO-Revision-Date: 2020-MO-DA HO:MI+ZONE\n"
     11"PO-Revision-Date: 2021-MO-DA HO:MI+ZONE\n"
    1212"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
    1313"Language-Team: LANGUAGE <EMAIL@ADDRESS>\n"
     
    5959msgstr ""
    6060
    61 #: includes/admin/class-admin.php:34 includes/admin/class-admin.php:56
     61#: includes/admin/class-admin.php:36 includes/admin/class-admin.php:58
    6262msgid "Contact Forms"
    6363msgstr ""
    6464
    65 #: includes/admin/class-admin.php:54
     65#: includes/admin/class-admin.php:56
    6666msgid "Forms"
    6767msgstr ""
    6868
    69 #: includes/admin/class-admin.php:55 includes/class-form-widget.php:49
     69#: includes/admin/class-admin.php:57 includes/class-form-widget.php:49
    7070#: includes/functions.php:753
    7171msgid "Form"
    7272msgstr ""
    7373
    74 #: includes/admin/class-admin.php:57
     74#: includes/admin/class-admin.php:59
    7575msgid "Add Form"
    7676msgstr ""
    7777
    78 #: includes/admin/class-admin.php:58
     78#: includes/admin/class-admin.php:60
    7979msgid "Add New Form"
    8080msgstr ""
    8181
    82 #: includes/admin/class-admin.php:59
     82#: includes/admin/class-admin.php:61
    8383msgid "Edit"
    8484msgstr ""
    8585
    86 #: includes/admin/class-admin.php:60
     86#: includes/admin/class-admin.php:62
    8787msgid "Edit Form"
    8888msgstr ""
    8989
    90 #: includes/admin/class-admin.php:61
     90#: includes/admin/class-admin.php:63
    9191msgid "New Form"
    9292msgstr ""
    9393
    94 #: includes/admin/class-admin.php:62 includes/admin/class-admin.php:63
     94#: includes/admin/class-admin.php:64 includes/admin/class-admin.php:65
    9595msgid "View Form"
    9696msgstr ""
    9797
    98 #: includes/admin/class-admin.php:64
     98#: includes/admin/class-admin.php:66
    9999msgid "Search Form"
    100100msgstr ""
    101101
    102 #: includes/admin/class-admin.php:65
     102#: includes/admin/class-admin.php:67
    103103msgid "No Form Found"
    104104msgstr ""
    105105
    106 #: includes/admin/class-admin.php:66
     106#: includes/admin/class-admin.php:68
    107107msgid "No Form Found in Trash"
    108108msgstr ""
    109109
    110 #: includes/admin/class-admin.php:67
     110#: includes/admin/class-admin.php:69
    111111msgid "Parent Form"
    112112msgstr ""
    113113
    114 #: includes/admin/class-admin.php:82
     114#: includes/admin/class-admin.php:84
    115115msgid "weForms - The Best Contact Form"
    116116msgstr ""
    117117
    118 #: includes/admin/class-admin.php:85
     118#: includes/admin/class-admin.php:87
    119119msgid "All Forms"
    120120msgstr ""
    121121
    122 #: includes/admin/class-admin.php:86
     122#: includes/admin/class-admin.php:88
    123123msgid "Entries"
    124124msgstr ""
    125125
    126 #: includes/admin/class-admin.php:87
     126#: includes/admin/class-admin.php:89
    127127msgid "Tools"
    128128msgstr ""
    129129
    130 #: includes/admin/class-admin.php:91
     130#: includes/admin/class-admin.php:93
    131131msgid "Modules"
    132132msgstr ""
    133133
    134 #: includes/admin/class-admin.php:94
     134#: includes/admin/class-admin.php:96
    135135#: includes/admin/views/weforms-settings-general.php:14
    136136#: includes/admin/views/weforms-settings-general.php:15
     
    139139msgstr ""
    140140
    141 #: includes/admin/class-admin.php:99
     141#: includes/admin/class-admin.php:101
    142142msgid "<span style=\"color:#f18500\">Help</span>"
    143143msgstr ""
    144144
    145 #: includes/admin/class-admin.php:100 includes/admin/class-admin.php:341
     145#: includes/admin/class-admin.php:102 includes/admin/class-admin.php:343
    146146#: includes/admin/views/weforms-settings-privacy.php:1
    147147msgid "Privacy"
    148148msgstr ""
    149149
    150 #: includes/admin/class-admin.php:105 weforms.php:394
     150#: includes/admin/class-admin.php:107 weforms.php:394
    151151msgid "Settings"
    152152msgstr ""
    153153
    154 #: includes/admin/class-admin.php:184
     154#: includes/admin/class-admin.php:186
    155155#: includes/api/class-weforms-forms-controller.php:1368
    156156#: includes/functions.php:773
     
    158158msgstr ""
    159159
    160 #: includes/admin/class-admin.php:185
     160#: includes/admin/class-admin.php:187
    161161#: includes/api/class-weforms-forms-controller.php:1369
    162162#: includes/functions.php:764
     
    165165msgstr ""
    166166
    167 #: includes/admin/class-admin.php:306
     167#: includes/admin/class-admin.php:308
    168168msgid "If you like %1$s please leave us a %2$s rating."
    169169msgstr ""
     
    173173msgstr ""
    174174
    175 #: includes/admin/class-admin.php:324
     175#: includes/admin/class-admin.php:326
    176176#: includes/admin/views/weforms-settings-general.php:1
    177177msgid "General Settings"
    178178msgstr ""
    179179
    180 #: includes/admin/class-admin.php:329
     180#: includes/admin/class-admin.php:331
    181181#: includes/admin/views/weforms-settings-recaptcha.php:1
    182182#: includes/fields/class-field-recaptcha.php:9
     
    184184msgstr ""
    185185
    186 #: includes/admin/class-admin.php:334
     186#: includes/admin/class-admin.php:336
    187187#: includes/admin/views/weforms-settings-secure-database.php:1
    188188msgid "Secure Database"
    189189msgstr ""
    190190
    191 #: includes/admin/class-form-builder-assets.php:63 includes/functions.php:1167
     191#: includes/admin/class-admin.php:409
     192msgid ""
     193"You&#39;re using weForms Free. For more features, modules and more consider "
     194"upgrading to Pro."
     195msgstr ""
     196
     197#: includes/admin/class-admin.php:412
     198msgid "UPGRADE NOW!"
     199msgstr ""
     200
     201#: includes/admin/class-form-builder-assets.php:45 includes/functions.php:1167
    192202#: includes/functions.php:1170
    193203msgid "New Form Submission"
    194204msgstr ""
    195205
    196 #: includes/admin/class-form-builder-assets.php:100
    197 #: includes/admin/class-form-builder-assets.php:309
     206#: includes/admin/class-form-builder-assets.php:82
     207#: includes/admin/class-form-builder-assets.php:291
    198208#: includes/class-scripts-styles.php:426
    199209msgid "Are you sure?"
    200210msgstr ""
    201211
    202 #: includes/admin/class-form-builder-assets.php:279
     212#: includes/admin/class-form-builder-assets.php:261
    203213msgid "Advanced Options"
    204214msgstr ""
    205215
    206 #: includes/admin/class-form-builder-assets.php:280
     216#: includes/admin/class-form-builder-assets.php:262
    207217msgid "Quiz Options"
    208218msgstr ""
    209219
    210 #: includes/admin/class-form-builder-assets.php:281
     220#: includes/admin/class-form-builder-assets.php:263
    211221msgid "Are you sure you want to delete this field?"
    212222msgstr ""
    213223
    214 #: includes/admin/class-form-builder-assets.php:282
     224#: includes/admin/class-form-builder-assets.php:264
    215225#: includes/class-scripts-styles.php:427
    216226msgid "Yes, delete it"
    217227msgstr ""
    218228
    219 #: includes/admin/class-form-builder-assets.php:283
     229#: includes/admin/class-form-builder-assets.php:265
    220230#: includes/class-scripts-styles.php:428
    221231msgid "No, cancel it"
    222232msgstr ""
    223233
    224 #: includes/admin/class-form-builder-assets.php:284
     234#: includes/admin/class-form-builder-assets.php:266
    225235msgid "OK"
    226236msgstr ""
    227237
    228 #: includes/admin/class-form-builder-assets.php:285
    229 #: includes/library/appsero/Insights.php:718
     238#: includes/admin/class-form-builder-assets.php:267
     239#: includes/library/appsero/Insights.php:677
    230240msgid "Cancel"
    231241msgstr ""
    232242
    233 #: includes/admin/class-form-builder-assets.php:286
     243#: includes/admin/class-form-builder-assets.php:268
    234244#: includes/admin/class-shortcode-button.php:84
    235245msgid "Close"
    236246msgstr ""
    237247
    238 #: includes/admin/class-form-builder-assets.php:287
     248#: includes/admin/class-form-builder-assets.php:269
    239249msgid "Disable"
    240250msgstr ""
    241251
    242 #: includes/admin/class-form-builder-assets.php:288
     252#: includes/admin/class-form-builder-assets.php:270
    243253msgid "This field must contain at least one choice"
    244254msgstr ""
    245255
    246 #: includes/admin/class-form-builder-assets.php:289
     256#: includes/admin/class-form-builder-assets.php:271
    247257#: includes/fields/class-field-checkbox.php:90
    248258#: includes/fields/class-field-dropdown.php:93
     
    252262msgstr ""
    253263
    254 #: includes/admin/class-form-builder-assets.php:290
     264#: includes/admin/class-form-builder-assets.php:272
    255265msgid "Row"
    256266msgstr ""
    257267
    258 #: includes/admin/class-form-builder-assets.php:291
     268#: includes/admin/class-form-builder-assets.php:273
    259269msgid "Column"
    260270msgstr ""
    261271
    262 #: includes/admin/class-form-builder-assets.php:292
     272#: includes/admin/class-form-builder-assets.php:274
    263273msgid "This field must contain at least one column"
    264274msgstr ""
    265275
    266 #: includes/admin/class-form-builder-assets.php:293
     276#: includes/admin/class-form-builder-assets.php:275
    267277msgid "is available in Pro version"
    268278msgstr ""
    269279
    270 #: includes/admin/class-form-builder-assets.php:294
     280#: includes/admin/class-form-builder-assets.php:276
    271281msgid "Please upgrade to the Pro version to unlock all these awesome features"
    272282msgstr ""
    273283
    274 #: includes/admin/class-form-builder-assets.php:295
     284#: includes/admin/class-form-builder-assets.php:277
    275285msgid "Get the Pro version"
    276286msgstr ""
    277287
    278 #: includes/admin/class-form-builder-assets.php:296
     288#: includes/admin/class-form-builder-assets.php:278
    279289msgid "Select"
    280290msgstr ""
    281291
    282 #: includes/admin/class-form-builder-assets.php:297
     292#: includes/admin/class-form-builder-assets.php:279
    283293msgid "Saved form data"
    284294msgstr ""
    285295
    286 #: includes/admin/class-form-builder-assets.php:298
     296#: includes/admin/class-form-builder-assets.php:280
    287297msgid "You have unsaved changes."
    288298msgstr ""
    289299
    290 #: includes/admin/class-form-builder-assets.php:299
     300#: includes/admin/class-form-builder-assets.php:281
    291301msgid "Are you sure to leave this page?"
    292302msgstr ""
    293303
    294 #: includes/admin/class-form-builder-assets.php:300
     304#: includes/admin/class-form-builder-assets.php:282
    295305msgid "Click to copy shortcode"
    296306msgstr ""
    297307
    298 #: includes/admin/class-form-builder-assets.php:302
     308#: includes/admin/class-form-builder-assets.php:284
    299309msgid "Select an image"
    300310msgstr ""
    301311
    302 #: includes/admin/class-form-builder-assets.php:303
     312#: includes/admin/class-form-builder-assets.php:285
    303313msgid "Please select an image"
    304314msgstr ""
    305315
    306 #: includes/admin/class-form-builder-assets.php:304
     316#: includes/admin/class-form-builder-assets.php:286
    307317msgid "Upload an image"
    308318msgstr ""
    309319
    310 #: includes/admin/class-form-builder-assets.php:306
     320#: includes/admin/class-form-builder-assets.php:288
    311321msgid "Share Your Form"
    312322msgstr ""
    313323
    314 #: includes/admin/class-form-builder-assets.php:307
     324#: includes/admin/class-form-builder-assets.php:289
    315325msgid ""
    316326"Sharing your form enables <strong>anyone</strong> to view and submit the "
     
    318328msgstr ""
    319329
    320 #: includes/admin/class-form-builder-assets.php:308
     330#: includes/admin/class-form-builder-assets.php:290
    321331msgid "Anyone with this URL will be able to view and submit this form."
    322332msgstr ""
    323333
    324 #: includes/admin/class-form-builder-assets.php:310
     334#: includes/admin/class-form-builder-assets.php:292
    325335msgid "You must select a notification"
    326336msgstr ""
    327337
    328 #: includes/admin/class-form-builder-assets.php:311
     338#: includes/admin/class-form-builder-assets.php:293
    329339msgid "Anyone with existing URL won't be able to view and submit the form anymore."
    330340msgstr ""
    331341
    332 #: includes/admin/class-form-builder-assets.php:312
     342#: includes/admin/class-form-builder-assets.php:294
    333343msgid "Disable Sharing"
    334344msgstr ""
    335345
    336 #: includes/admin/class-form-builder-assets.php:334
     346#: includes/admin/class-form-builder-assets.php:316
    337347msgid "Notifications"
    338348msgstr ""
    339349
    340 #: includes/admin/class-form-builder-assets.php:335
     350#: includes/admin/class-form-builder-assets.php:317
    341351msgid "Integrations"
    342352msgstr ""
    343353
    344 #: includes/admin/class-form-builder-assets.php:357
     354#: includes/admin/class-form-builder-assets.php:339
    345355msgid "Form Settings"
    346356msgstr ""
    347357
    348 #: includes/admin/class-form-builder-assets.php:358
     358#: includes/admin/class-form-builder-assets.php:340
    349359msgid "Submission Restriction"
    350360msgstr ""
    351361
    352 #: includes/admin/class-form-builder-assets.php:359
     362#: includes/admin/class-form-builder-assets.php:341
    353363msgid "Display Settings"
    354364msgstr ""
    355365
    356 #: includes/admin/class-form-builder-assets.php:394
     366#: includes/admin/class-form-builder-assets.php:376
    357367#: includes/admin/class-privacy.php:242 includes/functions.php:771
    358368msgid "User"
    359369msgstr ""
    360370
    361 #: includes/admin/class-form-builder-assets.php:396 includes/functions.php:775
     371#: includes/admin/class-form-builder-assets.php:378 includes/functions.php:775
    362372#: includes/integrations/mailpoet/component/template.php:38
    363373#: includes/templates/class-template-conference-proposal.php:33
     
    763773msgstr ""
    764774
    765 #: includes/admin/class-promotion.php:197
    766 #: includes/admin/class-promotion.php:200
    767 msgid "Enjoying <strong>weForms</strong>?"
    768 msgstr ""
    769 
    770 #: includes/admin/class-promotion.php:198
    771 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 
    778775#: includes/admin/class-promotion.php:201
     776#: includes/admin/class-promotion.php:215
     777#. translators: opening <strong> tag, closing </strong> tag.
     778msgid "Enjoying %sweForms%s?"
     779msgstr ""
     780
     781#: includes/admin/class-promotion.php:205
     782#. translators: opening <a>tag, closing </a> tag.
     783msgid ""
     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?"
     786msgstr ""
     787
     788#: includes/admin/class-promotion.php:221
     789#. translators: opening <a> tag, closing </a> tag
    779790msgid ""
    780791"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?"
     793msgstr ""
     794
     795#: includes/admin/class-promotion.php:234
    787796msgid "Sure! I'd love to!"
    788797msgstr ""
    789798
    790 #: includes/admin/class-promotion.php:209
     799#: includes/admin/class-promotion.php:237
    791800msgid "I've already left a review"
    792801msgstr ""
    793802
    794 #: includes/admin/class-promotion.php:212
     803#: includes/admin/class-promotion.php:240
    795804msgid "Never show again"
    796805msgstr ""
    797806
    798 #: includes/admin/class-promotion.php:311
    799 #: includes/admin/class-promotion.php:315
    800 #: includes/admin/class-promotion.php:337
    801 #: includes/admin/class-promotion.php:341 includes/class-ajax.php:99
     807#: 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
    802811#: includes/fields/class-abstract-fields.php:533
    803812#: includes/fields/class-abstract-fields.php:537
     
    25462555msgstr ""
    25472556
    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
    25632558msgid "If you have a moment, please let us know why you are deactivating:"
    25642559msgstr ""
    25652560
    2566 #: includes/library/appsero/Insights.php:716
     2561#: includes/library/appsero/Insights.php:675
    25672562msgid "I rather wouldn't say"
    25682563msgstr ""
    25692564
    2570 #: includes/library/appsero/Insights.php:717
     2565#: includes/library/appsero/Insights.php:676
    25712566msgid "Submit & Deactivate"
    25722567msgstr ""
  • weforms/tags/1.6.5/readme.txt

    r2445228 r2477338  
    55Requires PHP: 5.6.20
    66Tested up to: 5.6
    7 Stable tag: 1.6.4
     7Stable tag: 1.6.5
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    250250== Changelog ==
    251251
     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
    252257= Version 1.6.4 (23 December, 2020) =
    253258* **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  
    66 * Author: weForms
    77 * Author URI: https://weformspro.com/
    8  * Version: 1.6.4
     8 * Version: 1.6.5
    99 * License: GPL2 or later
    1010 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    5656     * @var string
    5757     */
    58     public $version = '1.6.4';
     58    public $version = '1.6.5';
    5959
    6060    /**
  • weforms/trunk/assets/js-templates/spa-components.php

    r2403226 r2477338  
    174174                {{ form_title }}
    175175            </span>
    176            
     176
    177177            <select v-if="Object.keys(forms).length" v-model="selected" @change="status='publish'">
    178178                <option :value="form.id" v-for="form in forms">{{ form.name }}</option>
    179179            </select>
    180180        </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&#39;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 } ?>
    188181    </div>
    189182
     
    787780    <h1 class="wp-heading-inline"><?php _e( 'All Forms', 'weforms' ); ?></h1>
    788781    <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&#39;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 } ?>
    796782    <wpuf-template-modal :show.sync="showTemplateModal" :onClose="closeModal"></wpuf-template-modal>
    797783
     
    802788<div class="export-import-wrap">
    803789    <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&#39;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 } ?>
    811790    <h2 class="nav-tab-wrapper">
    812791        <a :class="['nav-tab', isActiveTab( 'export' ) ? 'nav-tab-active' : '']" href="#" v-on:click.prevent="makeActive('export')"><?php _e( 'Export', 'wpuf' ); ?></a>
     
    1009988
    1010989    <p v-if="no_transactions">
    1011        <?php printf( 
     990       <?php printf(
    1012991            __( 'You don\'t have any transactions yet. Learn how to %sset up payment integration%s and take payments with weFroms.' ),
    1013992            '<a target="_blank" href="https://wedevs.com/docs/weforms/integrations/payment/">',
     
    13811360
    13821361    <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&#39;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 } ?>
    13901362    <div id="weforms-settings-tabs-warp" class="<?php echo !function_exists( 'weforms_pro' ) ? 'weforms-pro-deactivate' : ''; ?>">
    13911363        <div id="weforms-settings-tabs">
  • weforms/trunk/assets/js/spa-app.js

    r2416759 r2477338  
    11'use strict';
    22
    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; };
     3var _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
     5var _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
     11var _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
     17var _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
     23var _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
     29var _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
     35var _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
     41var _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};
    446
    547var _typeof = typeof Symbol === "function" && _typeof2(Symbol.iterator) === "symbol" ? function (obj) {
  • weforms/trunk/assets/js/spa-app.min.js

    r2416759 r2477338  
    1 "use strict";var _typeof2="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  
    1010        add_action( 'admin_menu', [ $this, 'register_admin_menu' ] );
    1111        add_action( 'pre_update_option_wpuf_general', [ $this, 'watch_wpuf_settings' ] );
     12
     13        add_action( 'admin_notices', array( $this, 'wpuf_premium_cta' ) );
    1214
    1315        add_filter( 'admin_footer_text', [ $this, 'admin_footer_text' ] );
     
    388390        include __DIR__ . '/views/weforms-settings-privacy.php';
    389391    }
     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&#39;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    }
    390418}
  • weforms/trunk/includes/admin/class-form-builder-assets.php

    r2403226 r2477338  
    1111
    1212    public function init_actions() {
    13         add_action( 'in_admin_header', [ $this, 'remove_admin_notices' ] );
    1413        add_action( 'admin_enqueue_scripts', [ $this, 'builder_enqueue_scripts' ], 2000 );
    1514        add_action( 'admin_print_scripts', [ $this, 'builder_mixins_script' ] );
     
    2524
    2625        do_action( 'weforms_form_builder_init' );
    27     }
    28 
    29     /**
    30      * Remove all kinds of admin notices
    31      *
    32      * Since we don't have much space left on top of the page,
    33      * we have to remove all kinds of admin notices
    34      *
    35      * @since 1.2.6
    36      *
    37      * @return void
    38      */
    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' );
    4426    }
    4527
  • weforms/trunk/includes/admin/class-promotion.php

    r2403226 r2477338  
    164164        }
    165165
     166        $screen = get_current_screen();
     167        if ( $screen && $screen->base && 'toplevel_page_weforms' !== $screen->base ) {
     168            return;
     169        }
     170
    166171        $dismiss_notice  = get_option( 'weforms_review_notice_dismiss', 'no' );
    167172        $activation_time = get_option( 'weforms_installed' );
     
    189194            return;
    190195        } ?>
    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>
    217245        </div>
    218246        <style type="text/css">
    219             #weforms-review-notice .notice-dismiss {
    220                 padding: 0 0 0 26px;
    221             }
    222247
    223248            #weforms-review-notice .notice-dismiss:before {
     
    226251
    227252            #weforms-review-notice.weforms-review-notice {
    228                 padding: 15px 15px 15px 0;
    229253                background-color: #fff;
    230254                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            }
    234266
    235267            #weforms-review-notice .weforms-review-thumbnail {
     
    257289            }
    258290
     291            #weforms-review-notice .weforms-review-links {
     292                margin: 0.5em 0;
     293            }
     294
    259295            #weforms-review-notice .weforms-review-text p {
    260296                font-size: 13px;
     
    273309
    274310            #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;
    277314                text-decoration: none;
    278                 padding-left: 26px;
    279315                position: relative;
    280316            }
    281317
    282318            #weforms-review-notice .weforms-review-ul li a span {
    283                 position: absolute;
    284                 left: 0;
    285                 top: -2px;
     319                margin-right: 10px;
    286320            }
    287321        </style>
  • weforms/trunk/includes/admin/views/vue-index.php

    r2403226 r2477338  
    11<div class="wrap">
     2    <h1></h1>
    23    <div id="wpuf-contact-form-app">
    34        <router-view></router-view>
  • weforms/trunk/includes/library/appsero/Insights.php

    r2403226 r2477338  
    141141     */
    142142    protected function init_common() {
    143 
    144         if ( $this->show_notice ) {
    145             // tracking notice
    146             add_action( 'admin_notices', array( $this, 'admin_notice' ) );
    147         }
    148 
    149143        add_action( 'admin_init', array( $this, 'handle_optin_optout' ) );
    150144
     
    341335    private function clear_schedule_event() {
    342336        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 out
    347      *
    348      * @return void
    349      */
    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 server
    361         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 '&nbsp;<a href="' . esc_url( $learn_url ) . '" class="button-primary button-large">' . __( 'Learn More', $this->client->textdomain, 'weforms' ) . '</a>';
    375                 echo '&nbsp;<a href="' . esc_url( $optout_url ) . '" class="button-secondary button-large">' . __( 'Hide', $this->client->textdomain, 'weforms' ) . '</a>';
    376             echo '</p></div>';
    377         }
    378337    }
    379338
  • weforms/trunk/languages/weforms.pot

    r2416759 r2477338  
    1 # Copyright (C) 2020 weForms
     1# Copyright (C) 2021 weForms
    22# This file is distributed under the GPL2 or later.
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: weForms 1.6.2\n"
     5"Project-Id-Version: weForms 1.6.5\n"
    66"Report-Msgid-Bugs-To: https://wedevs.com/contact/\n"
    7 "POT-Creation-Date: 2020-11-11 16:37:27+00:00\n"
     7"POT-Creation-Date: 2021-02-18 21:24:28+00:00\n"
    88"MIME-Version: 1.0\n"
    99"Content-Type: text/plain; charset=utf-8\n"
    1010"Content-Transfer-Encoding: 8bit\n"
    11 "PO-Revision-Date: 2020-MO-DA HO:MI+ZONE\n"
     11"PO-Revision-Date: 2021-MO-DA HO:MI+ZONE\n"
    1212"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
    1313"Language-Team: LANGUAGE <EMAIL@ADDRESS>\n"
     
    5959msgstr ""
    6060
    61 #: includes/admin/class-admin.php:34 includes/admin/class-admin.php:56
     61#: includes/admin/class-admin.php:36 includes/admin/class-admin.php:58
    6262msgid "Contact Forms"
    6363msgstr ""
    6464
    65 #: includes/admin/class-admin.php:54
     65#: includes/admin/class-admin.php:56
    6666msgid "Forms"
    6767msgstr ""
    6868
    69 #: includes/admin/class-admin.php:55 includes/class-form-widget.php:49
     69#: includes/admin/class-admin.php:57 includes/class-form-widget.php:49
    7070#: includes/functions.php:753
    7171msgid "Form"
    7272msgstr ""
    7373
    74 #: includes/admin/class-admin.php:57
     74#: includes/admin/class-admin.php:59
    7575msgid "Add Form"
    7676msgstr ""
    7777
    78 #: includes/admin/class-admin.php:58
     78#: includes/admin/class-admin.php:60
    7979msgid "Add New Form"
    8080msgstr ""
    8181
    82 #: includes/admin/class-admin.php:59
     82#: includes/admin/class-admin.php:61
    8383msgid "Edit"
    8484msgstr ""
    8585
    86 #: includes/admin/class-admin.php:60
     86#: includes/admin/class-admin.php:62
    8787msgid "Edit Form"
    8888msgstr ""
    8989
    90 #: includes/admin/class-admin.php:61
     90#: includes/admin/class-admin.php:63
    9191msgid "New Form"
    9292msgstr ""
    9393
    94 #: includes/admin/class-admin.php:62 includes/admin/class-admin.php:63
     94#: includes/admin/class-admin.php:64 includes/admin/class-admin.php:65
    9595msgid "View Form"
    9696msgstr ""
    9797
    98 #: includes/admin/class-admin.php:64
     98#: includes/admin/class-admin.php:66
    9999msgid "Search Form"
    100100msgstr ""
    101101
    102 #: includes/admin/class-admin.php:65
     102#: includes/admin/class-admin.php:67
    103103msgid "No Form Found"
    104104msgstr ""
    105105
    106 #: includes/admin/class-admin.php:66
     106#: includes/admin/class-admin.php:68
    107107msgid "No Form Found in Trash"
    108108msgstr ""
    109109
    110 #: includes/admin/class-admin.php:67
     110#: includes/admin/class-admin.php:69
    111111msgid "Parent Form"
    112112msgstr ""
    113113
    114 #: includes/admin/class-admin.php:82
     114#: includes/admin/class-admin.php:84
    115115msgid "weForms - The Best Contact Form"
    116116msgstr ""
    117117
    118 #: includes/admin/class-admin.php:85
     118#: includes/admin/class-admin.php:87
    119119msgid "All Forms"
    120120msgstr ""
    121121
    122 #: includes/admin/class-admin.php:86
     122#: includes/admin/class-admin.php:88
    123123msgid "Entries"
    124124msgstr ""
    125125
    126 #: includes/admin/class-admin.php:87
     126#: includes/admin/class-admin.php:89
    127127msgid "Tools"
    128128msgstr ""
    129129
    130 #: includes/admin/class-admin.php:91
     130#: includes/admin/class-admin.php:93
    131131msgid "Modules"
    132132msgstr ""
    133133
    134 #: includes/admin/class-admin.php:94
     134#: includes/admin/class-admin.php:96
    135135#: includes/admin/views/weforms-settings-general.php:14
    136136#: includes/admin/views/weforms-settings-general.php:15
     
    139139msgstr ""
    140140
    141 #: includes/admin/class-admin.php:99
     141#: includes/admin/class-admin.php:101
    142142msgid "<span style=\"color:#f18500\">Help</span>"
    143143msgstr ""
    144144
    145 #: includes/admin/class-admin.php:100 includes/admin/class-admin.php:341
     145#: includes/admin/class-admin.php:102 includes/admin/class-admin.php:343
    146146#: includes/admin/views/weforms-settings-privacy.php:1
    147147msgid "Privacy"
    148148msgstr ""
    149149
    150 #: includes/admin/class-admin.php:105 weforms.php:394
     150#: includes/admin/class-admin.php:107 weforms.php:394
    151151msgid "Settings"
    152152msgstr ""
    153153
    154 #: includes/admin/class-admin.php:184
     154#: includes/admin/class-admin.php:186
    155155#: includes/api/class-weforms-forms-controller.php:1368
    156156#: includes/functions.php:773
     
    158158msgstr ""
    159159
    160 #: includes/admin/class-admin.php:185
     160#: includes/admin/class-admin.php:187
    161161#: includes/api/class-weforms-forms-controller.php:1369
    162162#: includes/functions.php:764
     
    165165msgstr ""
    166166
    167 #: includes/admin/class-admin.php:306
     167#: includes/admin/class-admin.php:308
    168168msgid "If you like %1$s please leave us a %2$s rating."
    169169msgstr ""
     
    173173msgstr ""
    174174
    175 #: includes/admin/class-admin.php:324
     175#: includes/admin/class-admin.php:326
    176176#: includes/admin/views/weforms-settings-general.php:1
    177177msgid "General Settings"
    178178msgstr ""
    179179
    180 #: includes/admin/class-admin.php:329
     180#: includes/admin/class-admin.php:331
    181181#: includes/admin/views/weforms-settings-recaptcha.php:1
    182182#: includes/fields/class-field-recaptcha.php:9
     
    184184msgstr ""
    185185
    186 #: includes/admin/class-admin.php:334
     186#: includes/admin/class-admin.php:336
    187187#: includes/admin/views/weforms-settings-secure-database.php:1
    188188msgid "Secure Database"
    189189msgstr ""
    190190
    191 #: includes/admin/class-form-builder-assets.php:63 includes/functions.php:1167
     191#: includes/admin/class-admin.php:409
     192msgid ""
     193"You&#39;re using weForms Free. For more features, modules and more consider "
     194"upgrading to Pro."
     195msgstr ""
     196
     197#: includes/admin/class-admin.php:412
     198msgid "UPGRADE NOW!"
     199msgstr ""
     200
     201#: includes/admin/class-form-builder-assets.php:45 includes/functions.php:1167
    192202#: includes/functions.php:1170
    193203msgid "New Form Submission"
    194204msgstr ""
    195205
    196 #: includes/admin/class-form-builder-assets.php:100
    197 #: includes/admin/class-form-builder-assets.php:309
     206#: includes/admin/class-form-builder-assets.php:82
     207#: includes/admin/class-form-builder-assets.php:291
    198208#: includes/class-scripts-styles.php:426
    199209msgid "Are you sure?"
    200210msgstr ""
    201211
    202 #: includes/admin/class-form-builder-assets.php:279
     212#: includes/admin/class-form-builder-assets.php:261
    203213msgid "Advanced Options"
    204214msgstr ""
    205215
    206 #: includes/admin/class-form-builder-assets.php:280
     216#: includes/admin/class-form-builder-assets.php:262
    207217msgid "Quiz Options"
    208218msgstr ""
    209219
    210 #: includes/admin/class-form-builder-assets.php:281
     220#: includes/admin/class-form-builder-assets.php:263
    211221msgid "Are you sure you want to delete this field?"
    212222msgstr ""
    213223
    214 #: includes/admin/class-form-builder-assets.php:282
     224#: includes/admin/class-form-builder-assets.php:264
    215225#: includes/class-scripts-styles.php:427
    216226msgid "Yes, delete it"
    217227msgstr ""
    218228
    219 #: includes/admin/class-form-builder-assets.php:283
     229#: includes/admin/class-form-builder-assets.php:265
    220230#: includes/class-scripts-styles.php:428
    221231msgid "No, cancel it"
    222232msgstr ""
    223233
    224 #: includes/admin/class-form-builder-assets.php:284
     234#: includes/admin/class-form-builder-assets.php:266
    225235msgid "OK"
    226236msgstr ""
    227237
    228 #: includes/admin/class-form-builder-assets.php:285
    229 #: includes/library/appsero/Insights.php:718
     238#: includes/admin/class-form-builder-assets.php:267
     239#: includes/library/appsero/Insights.php:677
    230240msgid "Cancel"
    231241msgstr ""
    232242
    233 #: includes/admin/class-form-builder-assets.php:286
     243#: includes/admin/class-form-builder-assets.php:268
    234244#: includes/admin/class-shortcode-button.php:84
    235245msgid "Close"
    236246msgstr ""
    237247
    238 #: includes/admin/class-form-builder-assets.php:287
     248#: includes/admin/class-form-builder-assets.php:269
    239249msgid "Disable"
    240250msgstr ""
    241251
    242 #: includes/admin/class-form-builder-assets.php:288
     252#: includes/admin/class-form-builder-assets.php:270
    243253msgid "This field must contain at least one choice"
    244254msgstr ""
    245255
    246 #: includes/admin/class-form-builder-assets.php:289
     256#: includes/admin/class-form-builder-assets.php:271
    247257#: includes/fields/class-field-checkbox.php:90
    248258#: includes/fields/class-field-dropdown.php:93
     
    252262msgstr ""
    253263
    254 #: includes/admin/class-form-builder-assets.php:290
     264#: includes/admin/class-form-builder-assets.php:272
    255265msgid "Row"
    256266msgstr ""
    257267
    258 #: includes/admin/class-form-builder-assets.php:291
     268#: includes/admin/class-form-builder-assets.php:273
    259269msgid "Column"
    260270msgstr ""
    261271
    262 #: includes/admin/class-form-builder-assets.php:292
     272#: includes/admin/class-form-builder-assets.php:274
    263273msgid "This field must contain at least one column"
    264274msgstr ""
    265275
    266 #: includes/admin/class-form-builder-assets.php:293
     276#: includes/admin/class-form-builder-assets.php:275
    267277msgid "is available in Pro version"
    268278msgstr ""
    269279
    270 #: includes/admin/class-form-builder-assets.php:294
     280#: includes/admin/class-form-builder-assets.php:276
    271281msgid "Please upgrade to the Pro version to unlock all these awesome features"
    272282msgstr ""
    273283
    274 #: includes/admin/class-form-builder-assets.php:295
     284#: includes/admin/class-form-builder-assets.php:277
    275285msgid "Get the Pro version"
    276286msgstr ""
    277287
    278 #: includes/admin/class-form-builder-assets.php:296
     288#: includes/admin/class-form-builder-assets.php:278
    279289msgid "Select"
    280290msgstr ""
    281291
    282 #: includes/admin/class-form-builder-assets.php:297
     292#: includes/admin/class-form-builder-assets.php:279
    283293msgid "Saved form data"
    284294msgstr ""
    285295
    286 #: includes/admin/class-form-builder-assets.php:298
     296#: includes/admin/class-form-builder-assets.php:280
    287297msgid "You have unsaved changes."
    288298msgstr ""
    289299
    290 #: includes/admin/class-form-builder-assets.php:299
     300#: includes/admin/class-form-builder-assets.php:281
    291301msgid "Are you sure to leave this page?"
    292302msgstr ""
    293303
    294 #: includes/admin/class-form-builder-assets.php:300
     304#: includes/admin/class-form-builder-assets.php:282
    295305msgid "Click to copy shortcode"
    296306msgstr ""
    297307
    298 #: includes/admin/class-form-builder-assets.php:302
     308#: includes/admin/class-form-builder-assets.php:284
    299309msgid "Select an image"
    300310msgstr ""
    301311
    302 #: includes/admin/class-form-builder-assets.php:303
     312#: includes/admin/class-form-builder-assets.php:285
    303313msgid "Please select an image"
    304314msgstr ""
    305315
    306 #: includes/admin/class-form-builder-assets.php:304
     316#: includes/admin/class-form-builder-assets.php:286
    307317msgid "Upload an image"
    308318msgstr ""
    309319
    310 #: includes/admin/class-form-builder-assets.php:306
     320#: includes/admin/class-form-builder-assets.php:288
    311321msgid "Share Your Form"
    312322msgstr ""
    313323
    314 #: includes/admin/class-form-builder-assets.php:307
     324#: includes/admin/class-form-builder-assets.php:289
    315325msgid ""
    316326"Sharing your form enables <strong>anyone</strong> to view and submit the "
     
    318328msgstr ""
    319329
    320 #: includes/admin/class-form-builder-assets.php:308
     330#: includes/admin/class-form-builder-assets.php:290
    321331msgid "Anyone with this URL will be able to view and submit this form."
    322332msgstr ""
    323333
    324 #: includes/admin/class-form-builder-assets.php:310
     334#: includes/admin/class-form-builder-assets.php:292
    325335msgid "You must select a notification"
    326336msgstr ""
    327337
    328 #: includes/admin/class-form-builder-assets.php:311
     338#: includes/admin/class-form-builder-assets.php:293
    329339msgid "Anyone with existing URL won't be able to view and submit the form anymore."
    330340msgstr ""
    331341
    332 #: includes/admin/class-form-builder-assets.php:312
     342#: includes/admin/class-form-builder-assets.php:294
    333343msgid "Disable Sharing"
    334344msgstr ""
    335345
    336 #: includes/admin/class-form-builder-assets.php:334
     346#: includes/admin/class-form-builder-assets.php:316
    337347msgid "Notifications"
    338348msgstr ""
    339349
    340 #: includes/admin/class-form-builder-assets.php:335
     350#: includes/admin/class-form-builder-assets.php:317
    341351msgid "Integrations"
    342352msgstr ""
    343353
    344 #: includes/admin/class-form-builder-assets.php:357
     354#: includes/admin/class-form-builder-assets.php:339
    345355msgid "Form Settings"
    346356msgstr ""
    347357
    348 #: includes/admin/class-form-builder-assets.php:358
     358#: includes/admin/class-form-builder-assets.php:340
    349359msgid "Submission Restriction"
    350360msgstr ""
    351361
    352 #: includes/admin/class-form-builder-assets.php:359
     362#: includes/admin/class-form-builder-assets.php:341
    353363msgid "Display Settings"
    354364msgstr ""
    355365
    356 #: includes/admin/class-form-builder-assets.php:394
     366#: includes/admin/class-form-builder-assets.php:376
    357367#: includes/admin/class-privacy.php:242 includes/functions.php:771
    358368msgid "User"
    359369msgstr ""
    360370
    361 #: includes/admin/class-form-builder-assets.php:396 includes/functions.php:775
     371#: includes/admin/class-form-builder-assets.php:378 includes/functions.php:775
    362372#: includes/integrations/mailpoet/component/template.php:38
    363373#: includes/templates/class-template-conference-proposal.php:33
     
    763773msgstr ""
    764774
    765 #: includes/admin/class-promotion.php:197
    766 #: includes/admin/class-promotion.php:200
    767 msgid "Enjoying <strong>weForms</strong>?"
    768 msgstr ""
    769 
    770 #: includes/admin/class-promotion.php:198
    771 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 
    778775#: includes/admin/class-promotion.php:201
     776#: includes/admin/class-promotion.php:215
     777#. translators: opening <strong> tag, closing </strong> tag.
     778msgid "Enjoying %sweForms%s?"
     779msgstr ""
     780
     781#: includes/admin/class-promotion.php:205
     782#. translators: opening <a>tag, closing </a> tag.
     783msgid ""
     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?"
     786msgstr ""
     787
     788#: includes/admin/class-promotion.php:221
     789#. translators: opening <a> tag, closing </a> tag
    779790msgid ""
    780791"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?"
     793msgstr ""
     794
     795#: includes/admin/class-promotion.php:234
    787796msgid "Sure! I'd love to!"
    788797msgstr ""
    789798
    790 #: includes/admin/class-promotion.php:209
     799#: includes/admin/class-promotion.php:237
    791800msgid "I've already left a review"
    792801msgstr ""
    793802
    794 #: includes/admin/class-promotion.php:212
     803#: includes/admin/class-promotion.php:240
    795804msgid "Never show again"
    796805msgstr ""
    797806
    798 #: includes/admin/class-promotion.php:311
    799 #: includes/admin/class-promotion.php:315
    800 #: includes/admin/class-promotion.php:337
    801 #: includes/admin/class-promotion.php:341 includes/class-ajax.php:99
     807#: 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
    802811#: includes/fields/class-abstract-fields.php:533
    803812#: includes/fields/class-abstract-fields.php:537
     
    25462555msgstr ""
    25472556
    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
    25632558msgid "If you have a moment, please let us know why you are deactivating:"
    25642559msgstr ""
    25652560
    2566 #: includes/library/appsero/Insights.php:716
     2561#: includes/library/appsero/Insights.php:675
    25672562msgid "I rather wouldn't say"
    25682563msgstr ""
    25692564
    2570 #: includes/library/appsero/Insights.php:717
     2565#: includes/library/appsero/Insights.php:676
    25712566msgid "Submit & Deactivate"
    25722567msgstr ""
  • weforms/trunk/readme.txt

    r2445228 r2477338  
    55Requires PHP: 5.6.20
    66Tested up to: 5.6
    7 Stable tag: 1.6.4
     7Stable tag: 1.6.5
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    250250== Changelog ==
    251251
     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
    252257= Version 1.6.4 (23 December, 2020) =
    253258* **Fix:** Added spreadsheet functione escaping to prevent CSV exploits. [#50] (https://github.com/BoldGrid/weforms/pull/50)
  • weforms/trunk/weforms.php

    r2445228 r2477338  
    66 * Author: weForms
    77 * Author URI: https://weformspro.com/
    8  * Version: 1.6.4
     8 * Version: 1.6.5
    99 * License: GPL2 or later
    1010 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    5656     * @var string
    5757     */
    58     public $version = '1.6.4';
     58    public $version = '1.6.5';
    5959
    6060    /**
Note: See TracChangeset for help on using the changeset viewer.