Everest Forms – Easy Contact Form and Form Builder - Version 1.5.10

Version Description

  • 25-11-2019 =
  • Fix - Google reCAPTCHA v2 invisible settings bug.
  • Fix - DB unwanted data erase for fields data save.
  • Fix - Multi-part submit button hidden due to theme style conflict.
Download this release

Release Info

Developer everestforms
Plugin Icon 128x128 Everest Forms – Easy Contact Form and Form Builder
Version 1.5.10
Comparing to
See all releases

Code changes from version 1.5.9 to 1.5.10

assets/css/everest-forms-rtl.css CHANGED
@@ -1 +1 @@
1
- @-webkit-keyframes spin{100%{-webkit-transform:rotate(-360deg);transform:rotate(-360deg)}}@keyframes spin{100%{-webkit-transform:rotate(-360deg);transform:rotate(-360deg)}}@-webkit-keyframes rotating{25%{-webkit-transform:rotate(2deg);transform:rotate(2deg)}75%{-webkit-transform:rotate(-2deg);transform:rotate(-2deg)}100%{-webkit-transform:rotate(0);transform:rotate(0)}}@keyframes rotating{25%{-webkit-transform:rotate(2deg);transform:rotate(2deg)}75%{-webkit-transform:rotate(-2deg);transform:rotate(-2deg)}100%{-webkit-transform:rotate(0);transform:rotate(0)}}@font-face{font-family:EverestForms;src:url(../fonts/EverestForms.eot?94dwsf);src:url(../fonts/EverestForms.eot?94dwsf#iefix) format("embedded-opentype"),url(../fonts/EverestForms.ttf?94dwsf) format("truetype"),url(../fonts/EverestForms.woff?94dwsf) format("woff"),url(../fonts/EverestForms.svg?94dwsf#EverestForms) format("svg");font-weight:400;font-style:normal}.clearfix::after,.clearfix::before,.evf-row::after,.evf-row::before{display:table;content:''}.clearfix::after,.evf-row::after{clear:both}.screen-reader-text{clip:rect(1px,1px,1px,1px);height:1px;overflow:hidden;position:absolute!important;width:1px;word-wrap:normal!important}.clear{clear:both}.everest-forms *,.everest-forms ::after,.everest-forms ::before{box-sizing:border-box}.everest-forms ul{margin-right:0}.everest-forms .blockUI.blockOverlay{position:relative}.everest-forms .blockUI.blockOverlay::before{height:1em;width:1em;display:block;position:absolute;top:50%;right:50%;content:'';-webkit-animation:spin 1s ease-in-out infinite;animation:spin 1s ease-in-out infinite;background:url(../images/icons/loader.svg) center center;background-size:cover;background-repeat:no-repeat;line-height:1;text-align:center;font-size:2em;color:rgba(0,0,0,.75)}.everest-forms .loader::before{height:1em;width:1em;display:block;position:absolute;top:50%;right:50%;content:'';-webkit-animation:spin 1s ease-in-out infinite;animation:spin 1s ease-in-out infinite;background:url(../images/icons/loader.svg) center center;background-size:cover;background-repeat:no-repeat;line-height:1;text-align:center;font-size:2em;color:rgba(0,0,0,.75)}.everest-forms .evf-container{margin-bottom:30px}.everest-forms label{display:block;line-height:1.7;margin:0 0 10px 0;color:#494d50;font-size:14px}.everest-forms label .required{color:#fa5252;font-weight:700;border:0!important;text-decoration:none}.everest-forms label.evf-field-label{font-weight:600}.everest-forms label.evf-error{color:#fa5252;font-weight:400}.everest-forms label.everest-forms-field-sublabel{font-size:12px;font-weight:400;line-height:1.5;margin:0 0 10px 0}.everest-forms .StripeElement,.everest-forms canvas.evf-signature-canvas,.everest-forms input[type=date],.everest-forms input[type=datetime-local],.everest-forms input[type=email],.everest-forms input[type=file],.everest-forms input[type=image],.everest-forms input[type=month],.everest-forms input[type=number],.everest-forms input[type=password],.everest-forms input[type=range],.everest-forms input[type=search],.everest-forms input[type=tel],.everest-forms input[type=text],.everest-forms input[type=time],.everest-forms input[type=url],.everest-forms input[type=week],.everest-forms select,.everest-forms textarea{width:100%;height:auto;font-size:14px;outline:0;box-shadow:none;margin-bottom:10px;padding:6px 12px;color:#494d50;border:1px solid #8e98a2}.everest-forms input:focus{outline:0;border:1px solid #0095ff}.everest-forms .everest-form::after{content:'';clear:both;display:table}.everest-forms .everest-forms-field-row::after,.everest-forms .everest-forms-field-row::before{content:'';clear:both;display:table}.everest-forms .everest-forms-field-row:last-child .everest-forms-field-sublabel{margin-bottom:0}.everest-forms .evf-title-container .everest-forms--title{font-size:26px;margin:0 0 10px 0}.everest-forms .evf-title-container .everest-forms--description{margin:0 0 10px 0}.everest-forms .evf-field-container .evf-frontend-row{display:-webkit-box;display:flex;flex-wrap:wrap;margin-right:-15px;margin-left:-15px}.everest-forms .evf-field-container .evf-frontend-row .everest-forms-one-half{width:48%;float:right;margin-right:4%}.everest-forms .evf-field-container .evf-frontend-row .everest-forms-one-half:first-child{margin-right:0}.everest-forms .evf-field-container .evf-frontend-row .everest-forms-first{margin-right:0}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid{width:100%;padding-right:15px;padding-left:15px}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field{display:block;margin-bottom:10px}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field .everest-forms-sublabel-hide,.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field .evf-label-hide{display:none}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field .validate-required canvas.evf-signature-canvas{border-color:#fa5252}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field ul{margin-bottom:10px;padding:0;list-style:none}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field ul li{margin:0;display:block}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field ul li input,.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field ul li label{margin:0}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field ul li input[type=checkbox],.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field ul li input[type=radio]{padding:0;margin-top:2px;margin-left:8px}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.evf-field-title h3{margin:25px 0;font-size:16px;line-height:1.5}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.everest-forms-invalid>label{color:#fa5252}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.everest-forms-invalid .evf-signature-canvas,.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.everest-forms-invalid .select2-container,.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.everest-forms-invalid input.evf-error,.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.everest-forms-invalid select.evf-error,.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.everest-forms-invalid textarea{border-color:#fa5252}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.everest-forms-invalid input.evf-error{border-color:#fa5252}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.everest-forms-invalid input.evf-error~.everest-forms-field-sublabel{color:#fa5252}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.everest-forms-validated .evf-signature-canvas,.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.everest-forms-validated .select2-container,.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.everest-forms-validated input.input-text,.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.everest-forms-validated select,.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.everest-forms-validated textarea{border-color:#4bce61}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field ::-webkit-input-placeholder{line-height:normal}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field :-moz-placeholder{line-height:normal}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field :-ms-input-placeholder{line-height:normal}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.evf-field-checkbox ul li,.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.evf-field-payment-checkbox ul li,.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.evf-field-payment-multiple ul li,.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.evf-field-radio ul li{display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center;margin-bottom:5px}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.evf-field-captcha .everest-forms-captcha-equation{font-size:16px}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.evf-field-captcha .everest-forms-captcha-question{margin:0 0 4px 0}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.evf-field-captcha .everest-forms-captcha-math input{width:70px;margin:0 5px 0 0;display:inline-block;vertical-align:inherit}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field .iti.iti--allow-dropdown+.evf-error{margin-top:10px}.everest-forms .evf-field-container .evf-frontend-row input[type=checkbox],.everest-forms .evf-field-container .evf-frontend-row input[type=radio]{box-shadow:none}.everest-forms .evf-field-container .evf-frontend-row input[type=checkbox]{-webkit-appearance:checkbox;-moz-appearance:checkbox;appearance:checkbox}.everest-forms .evf-field-container .evf-frontend-row input[type=radio]{-webkit-appearance:radio;-moz-appearance:radio;appearance:radio}.everest-forms .evf-field-container .evf-frontend-row input[type=checkbox]:checked{background-color:#0095ff}.everest-forms .evf-field-container .evf-frontend-row input[type=checkbox]:checked::before{color:#fff;background-color:transparent}.everest-forms .evf-field-container .evf-frontend-row input[type=radio]:checked::before{background-color:#0095ff}.everest-forms .evf-field-container .evf-frontend-row input::-webkit-input-placeholder{color:#8e98a2}.everest-forms .evf-field-container .evf-frontend-row input::-moz-placeholder{color:#8e98a2}.everest-forms .evf-field-container .evf-frontend-row input:-ms-input-placeholder{color:#8e98a2}.everest-forms .evf-field-container .evf-frontend-row input::-ms-input-placeholder{color:#8e98a2}.everest-forms .evf-field-container .evf-frontend-row input::placeholder{color:#8e98a2}.everest-forms .evf-field-container .evf-frontend-row select{-webkit-appearance:menulist;-moz-appearance:menulist;appearance:menulist}.everest-forms .evf-field-container .evf-frontend-row textarea{width:100%;max-width:100%;min-width:100%;height:120px}.everest-forms .evf-field-container .evf-frontend-row textarea::-webkit-input-placeholder{color:#8e98a2}.everest-forms .evf-field-container .evf-frontend-row textarea::-moz-placeholder{color:#8e98a2}.everest-forms .evf-field-container .evf-frontend-row textarea:-ms-input-placeholder{color:#8e98a2}.everest-forms .evf-field-container .evf-frontend-row textarea::-ms-input-placeholder{color:#8e98a2}.everest-forms .evf-field-container .evf-frontend-row textarea::placeholder{color:#8e98a2}.everest-forms .evf-field-container .evf-frontend-row .evf-field-description{line-height:1.7;margin-bottom:10px;font-size:14px}.everest-forms .everest-forms-part-button,.everest-forms button,.everest-forms button[type=submit],.everest-forms input[type=submit]{color:#555;height:auto;cursor:pointer;background:0 0;box-shadow:none;font-size:inherit;font-weight:400;line-height:1.5;padding:10px 15px;border-radius:3px;border:1px solid #ccc;background-color:#f7f7f7}.everest-forms .everest-forms-part-button:active,.everest-forms .everest-forms-part-button:hover,.everest-forms button:active,.everest-forms button:hover,.everest-forms button[type=submit]:active,.everest-forms button[type=submit]:hover,.everest-forms input[type=submit]:active,.everest-forms input[type=submit]:hover{outline:0;color:#23282d;background-color:#eee}.everest-forms .everest-forms-part-button:disabled,.everest-forms button:disabled,.everest-forms button[type=submit]:disabled,.everest-forms input[type=submit]:disabled{opacity:.5;cursor:not-allowed}.everest-forms .everest-forms-part-button:disabled:hover,.everest-forms button:disabled:hover,.everest-forms button[type=submit]:disabled:hover,.everest-forms input[type=submit]:disabled:hover{color:#555;background-color:#f7f7f7}.everest-forms .layout-two label{margin-bottom:0}.everest-forms .layout-two .evf-field-checkbox label,.everest-forms .layout-two .evf-field-radio label{margin-bottom:20px}.everest-forms .layout-two canvas.evf-signature-canvas,.everest-forms .layout-two input,.everest-forms .layout-two select,.everest-forms .layout-two textarea{border-radius:0;border-top:none transparent;border-left:none transparent;border-right:none transparent;border-bottom:1px solid #8e98a2;height:40px;padding:10px 0}.everest-forms .layout-two canvas.evf-signature-canvas:focus,.everest-forms .layout-two input:focus,.everest-forms .layout-two select:focus,.everest-forms .layout-two textarea:focus{outline:0;border-top:none transparent;border-left:none transparent;border-right:none transparent}.everest-forms .layout-two textarea{height:100px}.everest-forms .everest-forms-notice{padding:1em 3em;margin:0 0 2em;position:relative;background-color:#0095ff;color:#fff;border-radius:5px}.everest-forms .everest-forms-notice::after,.everest-forms .everest-forms-notice::before{content:' ';display:table}.everest-forms .everest-forms-notice::after{clear:both}.everest-forms .everest-forms-notice::before{font-family:dashicons;content:'\f348';position:absolute;top:1em;right:1.5em;color:inherit}.everest-forms .everest-forms-notice .button{float:left}.everest-forms .everest-forms-notice p{margin-bottom:0}.everest-forms .everest-forms-notice a{color:#fff}.everest-forms .everest-forms-notice li{list-style:none outside!important;padding-right:0!important;margin-right:0!important}.everest-forms .everest-forms-notice.everst-forms-form-disable-notice{color:#494d50;background:#fffbf0;border:1px solid #f4d071}.everest-forms .everest-forms-notice--success{background-color:#4bce61}.everest-forms .everest-forms-notice--success::before{content:'\f147'}.everest-forms .everest-forms-notice--error{background-color:#fa5252}.everest-forms .everest-forms-notice--error::before{content:'\f534';color:inherit}.everest-forms .everest-forms-notice--error .everest-forms-notice-list{margin:0;list-style:none outside}.everest-forms .everest-forms-notice--error .everest-forms-notice-list .everest-forms-notice-list__item{margin-bottom:.5em}.everest-forms .everest-forms-notice--error .everest-forms-notice-list .everest-forms-notice-list__item:last-child{margin-bottom:0}.edit-post-visual-editor .everest-form-gutenberg-form-selector-wrap .components-placeholder__label{margin-bottom:0}.edit-post-visual-editor .everest-form-gutenberg-form-selector-wrap .components-placeholder__label svg{width:75px;height:75px;color:#7e3bd0}.edit-post-visual-editor .everest-form-gutenberg-form-selector-wrap .components-placeholder__instructions{color:#23282d;font-size:1.3em;font-weight:600}.edit-post-visual-editor .everest-form-gutenberg-form-selector-wrap .components-placeholder__fieldset .components-base-control{width:100%}div.evf-gutenberg-form-selector .evf-frontend-row button[type=submit]:disabled,div.evf-gutenberg-form-selector .evf-frontend-row input:disabled,div.evf-gutenberg-form-selector .evf-frontend-row select:disabled,div.evf-gutenberg-form-selector .evf-frontend-row textarea:disabled{cursor:not-allowed}.evf-honeypot-container{display:none!important;position:absolute!important;right:-9000px!important}.evf-recaptcha-container{clear:both;margin-bottom:30px}.evf-recaptcha-container .evf-error{margin-top:15px;margin-bottom:0;font-weight:300;line-height:1.7;padding:7px 10px;border-radius:3px;display:inline-block;color:#f92020;border:1px solid #fa5252;background-color:#fff}.evf-recaptcha-container.recaptcha-hidden{margin:0}@media only screen and (max-width:600px){.evf-container .evf-field>*{max-width:100%}.evf-container .evf-field:not(.evf-field-phone){overflow-x:hidden}}@media screen and (min-width:768px){.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid.evf-grid-2{-webkit-box-flex:0;flex:0 0 50%;max-width:50%}}@media screen and (max-width:768px){.everest-forms .evf-field-container .evf-frontend-row{-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;margin:0}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid{padding:0}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid:last-child{margin-bottom:0}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid.evf-grid-2,.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid.evf-grid-3{width:100%;max-width:100%}.everest-forms .evf-recaptcha-container{margin:25px 0}}
1
+ @-webkit-keyframes spin{100%{-webkit-transform:rotate(-360deg);transform:rotate(-360deg)}}@keyframes spin{100%{-webkit-transform:rotate(-360deg);transform:rotate(-360deg)}}@-webkit-keyframes rotating{25%{-webkit-transform:rotate(2deg);transform:rotate(2deg)}75%{-webkit-transform:rotate(-2deg);transform:rotate(-2deg)}100%{-webkit-transform:rotate(0);transform:rotate(0)}}@keyframes rotating{25%{-webkit-transform:rotate(2deg);transform:rotate(2deg)}75%{-webkit-transform:rotate(-2deg);transform:rotate(-2deg)}100%{-webkit-transform:rotate(0);transform:rotate(0)}}@font-face{font-family:EverestForms;src:url(../fonts/EverestForms.eot?94dwsf);src:url(../fonts/EverestForms.eot?94dwsf#iefix) format("embedded-opentype"),url(../fonts/EverestForms.ttf?94dwsf) format("truetype"),url(../fonts/EverestForms.woff?94dwsf) format("woff"),url(../fonts/EverestForms.svg?94dwsf#EverestForms) format("svg");font-weight:400;font-style:normal}.clearfix::after,.clearfix::before,.evf-row::after,.evf-row::before{display:table;content:''}.clearfix::after,.evf-row::after{clear:both}.screen-reader-text{clip:rect(1px,1px,1px,1px);height:1px;overflow:hidden;position:absolute!important;width:1px;word-wrap:normal!important}.clear{clear:both}.everest-forms *,.everest-forms ::after,.everest-forms ::before{box-sizing:border-box}.everest-forms ul{margin-right:0}.everest-forms .blockUI.blockOverlay{position:relative}.everest-forms .blockUI.blockOverlay::before{height:1em;width:1em;display:block;position:absolute;top:50%;right:50%;content:'';-webkit-animation:spin 1s ease-in-out infinite;animation:spin 1s ease-in-out infinite;background:url(../images/icons/loader.svg) center center;background-size:cover;background-repeat:no-repeat;line-height:1;text-align:center;font-size:2em;color:rgba(0,0,0,.75)}.everest-forms .clear{height:auto;width:auto;visibility:visible}.everest-forms .loader::before{height:1em;width:1em;display:block;position:absolute;top:50%;right:50%;content:'';-webkit-animation:spin 1s ease-in-out infinite;animation:spin 1s ease-in-out infinite;background:url(../images/icons/loader.svg) center center;background-size:cover;background-repeat:no-repeat;line-height:1;text-align:center;font-size:2em;color:rgba(0,0,0,.75)}.everest-forms .evf-container{margin-bottom:30px}.everest-forms label{display:block;line-height:1.7;margin:0 0 10px 0;color:#494d50;font-size:14px}.everest-forms label .required{color:#fa5252;font-weight:700;border:0!important;text-decoration:none}.everest-forms label.evf-field-label{font-weight:600}.everest-forms label.evf-error{color:#fa5252;font-weight:400}.everest-forms label.everest-forms-field-sublabel{font-size:12px;font-weight:400;line-height:1.5;margin:0 0 10px 0}.everest-forms .StripeElement,.everest-forms canvas.evf-signature-canvas,.everest-forms input[type=date],.everest-forms input[type=datetime-local],.everest-forms input[type=email],.everest-forms input[type=file],.everest-forms input[type=image],.everest-forms input[type=month],.everest-forms input[type=number],.everest-forms input[type=password],.everest-forms input[type=range],.everest-forms input[type=search],.everest-forms input[type=tel],.everest-forms input[type=text],.everest-forms input[type=time],.everest-forms input[type=url],.everest-forms input[type=week],.everest-forms select,.everest-forms textarea{width:100%;height:auto;font-size:14px;outline:0;box-shadow:none;margin-bottom:10px;padding:6px 12px;color:#494d50;border:1px solid #8e98a2}.everest-forms input:focus{outline:0;border:1px solid #0095ff}.everest-forms .everest-form::after{content:'';clear:both;display:table}.everest-forms .everest-forms-field-row::after,.everest-forms .everest-forms-field-row::before{content:'';clear:both;display:table}.everest-forms .everest-forms-field-row:last-child .everest-forms-field-sublabel{margin-bottom:0}.everest-forms .evf-title-container .everest-forms--title{font-size:26px;margin:0 0 10px 0}.everest-forms .evf-title-container .everest-forms--description{margin:0 0 10px 0}.everest-forms .evf-field-container .evf-frontend-row{display:-webkit-box;display:flex;flex-wrap:wrap;margin-right:-15px;margin-left:-15px}.everest-forms .evf-field-container .evf-frontend-row .everest-forms-one-half{width:48%;float:right;margin-right:4%}.everest-forms .evf-field-container .evf-frontend-row .everest-forms-one-half:first-child{margin-right:0}.everest-forms .evf-field-container .evf-frontend-row .everest-forms-first{margin-right:0}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid{width:100%;padding-right:15px;padding-left:15px}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field{display:block;margin-bottom:10px}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field .everest-forms-sublabel-hide,.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field .evf-label-hide{display:none}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field .validate-required canvas.evf-signature-canvas{border-color:#fa5252}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field ul{margin-bottom:10px;padding:0;list-style:none}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field ul li{margin:0;display:block}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field ul li input,.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field ul li label{margin:0}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field ul li input[type=checkbox],.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field ul li input[type=radio]{padding:0;margin-top:2px;margin-left:8px}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.evf-field-title h3{margin:25px 0;font-size:16px;line-height:1.5}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.everest-forms-invalid>label{color:#fa5252}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.everest-forms-invalid .evf-signature-canvas,.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.everest-forms-invalid .select2-container,.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.everest-forms-invalid input.evf-error,.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.everest-forms-invalid select.evf-error,.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.everest-forms-invalid textarea{border-color:#fa5252}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.everest-forms-invalid input.evf-error{border-color:#fa5252}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.everest-forms-invalid input.evf-error~.everest-forms-field-sublabel{color:#fa5252}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.everest-forms-validated .evf-signature-canvas,.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.everest-forms-validated .select2-container,.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.everest-forms-validated input.input-text,.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.everest-forms-validated select,.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.everest-forms-validated textarea{border-color:#4bce61}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field ::-webkit-input-placeholder{line-height:normal}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field :-moz-placeholder{line-height:normal}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field :-ms-input-placeholder{line-height:normal}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.evf-field-checkbox ul li,.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.evf-field-payment-checkbox ul li,.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.evf-field-payment-multiple ul li,.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.evf-field-radio ul li{display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center;margin-bottom:5px}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.evf-field-captcha .everest-forms-captcha-equation{font-size:16px}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.evf-field-captcha .everest-forms-captcha-question{margin:0 0 4px 0}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.evf-field-captcha .everest-forms-captcha-math input{width:70px;margin:0 5px 0 0;display:inline-block;vertical-align:inherit}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field .iti.iti--allow-dropdown+.evf-error{margin-top:10px}.everest-forms .evf-field-container .evf-frontend-row input[type=checkbox],.everest-forms .evf-field-container .evf-frontend-row input[type=radio]{box-shadow:none}.everest-forms .evf-field-container .evf-frontend-row input[type=checkbox]{-webkit-appearance:checkbox;-moz-appearance:checkbox;appearance:checkbox}.everest-forms .evf-field-container .evf-frontend-row input[type=radio]{-webkit-appearance:radio;-moz-appearance:radio;appearance:radio}.everest-forms .evf-field-container .evf-frontend-row input[type=checkbox]:checked{background-color:#0095ff}.everest-forms .evf-field-container .evf-frontend-row input[type=checkbox]:checked::before{color:#fff;background-color:transparent}.everest-forms .evf-field-container .evf-frontend-row input[type=radio]:checked::before{background-color:#0095ff}.everest-forms .evf-field-container .evf-frontend-row input::-webkit-input-placeholder{color:#8e98a2}.everest-forms .evf-field-container .evf-frontend-row input::-moz-placeholder{color:#8e98a2}.everest-forms .evf-field-container .evf-frontend-row input:-ms-input-placeholder{color:#8e98a2}.everest-forms .evf-field-container .evf-frontend-row input::-ms-input-placeholder{color:#8e98a2}.everest-forms .evf-field-container .evf-frontend-row input::placeholder{color:#8e98a2}.everest-forms .evf-field-container .evf-frontend-row select{-webkit-appearance:menulist;-moz-appearance:menulist;appearance:menulist}.everest-forms .evf-field-container .evf-frontend-row textarea{width:100%;max-width:100%;min-width:100%;height:120px}.everest-forms .evf-field-container .evf-frontend-row textarea::-webkit-input-placeholder{color:#8e98a2}.everest-forms .evf-field-container .evf-frontend-row textarea::-moz-placeholder{color:#8e98a2}.everest-forms .evf-field-container .evf-frontend-row textarea:-ms-input-placeholder{color:#8e98a2}.everest-forms .evf-field-container .evf-frontend-row textarea::-ms-input-placeholder{color:#8e98a2}.everest-forms .evf-field-container .evf-frontend-row textarea::placeholder{color:#8e98a2}.everest-forms .evf-field-container .evf-frontend-row .evf-field-description{line-height:1.7;margin-bottom:10px;font-size:14px}.everest-forms .everest-forms-part-button,.everest-forms button,.everest-forms button[type=submit],.everest-forms input[type=submit]{color:#555;height:auto;cursor:pointer;background:0 0;box-shadow:none;font-size:inherit;font-weight:400;line-height:1.5;padding:10px 15px;border-radius:3px;border:1px solid #ccc;background-color:#f7f7f7}.everest-forms .everest-forms-part-button:active,.everest-forms .everest-forms-part-button:hover,.everest-forms button:active,.everest-forms button:hover,.everest-forms button[type=submit]:active,.everest-forms button[type=submit]:hover,.everest-forms input[type=submit]:active,.everest-forms input[type=submit]:hover{outline:0;color:#23282d;background-color:#eee}.everest-forms .everest-forms-part-button:disabled,.everest-forms button:disabled,.everest-forms button[type=submit]:disabled,.everest-forms input[type=submit]:disabled{opacity:.5;cursor:not-allowed}.everest-forms .everest-forms-part-button:disabled:hover,.everest-forms button:disabled:hover,.everest-forms button[type=submit]:disabled:hover,.everest-forms input[type=submit]:disabled:hover{color:#555;background-color:#f7f7f7}.everest-forms .layout-two label{margin-bottom:0}.everest-forms .layout-two .evf-field-checkbox label,.everest-forms .layout-two .evf-field-radio label{margin-bottom:20px}.everest-forms .layout-two canvas.evf-signature-canvas,.everest-forms .layout-two input,.everest-forms .layout-two select,.everest-forms .layout-two textarea{border-radius:0;border-top:none transparent;border-left:none transparent;border-right:none transparent;border-bottom:1px solid #8e98a2;height:40px;padding:10px 0}.everest-forms .layout-two canvas.evf-signature-canvas:focus,.everest-forms .layout-two input:focus,.everest-forms .layout-two select:focus,.everest-forms .layout-two textarea:focus{outline:0;border-top:none transparent;border-left:none transparent;border-right:none transparent}.everest-forms .layout-two textarea{height:100px}.everest-forms .everest-forms-notice{padding:1em 3em;margin:0 0 2em;position:relative;background-color:#0095ff;color:#fff;border-radius:5px}.everest-forms .everest-forms-notice::after,.everest-forms .everest-forms-notice::before{content:' ';display:table}.everest-forms .everest-forms-notice::after{clear:both}.everest-forms .everest-forms-notice::before{font-family:dashicons;content:'\f348';position:absolute;top:1em;right:1.5em;color:inherit}.everest-forms .everest-forms-notice .button{float:left}.everest-forms .everest-forms-notice p{margin-bottom:0}.everest-forms .everest-forms-notice a{color:#fff}.everest-forms .everest-forms-notice li{list-style:none outside!important;padding-right:0!important;margin-right:0!important}.everest-forms .everest-forms-notice.everst-forms-form-disable-notice{color:#494d50;background:#fffbf0;border:1px solid #f4d071}.everest-forms .everest-forms-notice--success{background-color:#4bce61}.everest-forms .everest-forms-notice--success::before{content:'\f147'}.everest-forms .everest-forms-notice--error{background-color:#fa5252}.everest-forms .everest-forms-notice--error::before{content:'\f534';color:inherit}.everest-forms .everest-forms-notice--error .everest-forms-notice-list{margin:0;list-style:none outside}.everest-forms .everest-forms-notice--error .everest-forms-notice-list .everest-forms-notice-list__item{margin-bottom:.5em}.everest-forms .everest-forms-notice--error .everest-forms-notice-list .everest-forms-notice-list__item:last-child{margin-bottom:0}.edit-post-visual-editor .everest-form-gutenberg-form-selector-wrap .components-placeholder__label{margin-bottom:0}.edit-post-visual-editor .everest-form-gutenberg-form-selector-wrap .components-placeholder__label svg{width:75px;height:75px;color:#7e3bd0}.edit-post-visual-editor .everest-form-gutenberg-form-selector-wrap .components-placeholder__instructions{color:#23282d;font-size:1.3em;font-weight:600}.edit-post-visual-editor .everest-form-gutenberg-form-selector-wrap .components-placeholder__fieldset .components-base-control{width:100%}div.evf-gutenberg-form-selector .evf-frontend-row button[type=submit]:disabled,div.evf-gutenberg-form-selector .evf-frontend-row input:disabled,div.evf-gutenberg-form-selector .evf-frontend-row select:disabled,div.evf-gutenberg-form-selector .evf-frontend-row textarea:disabled{cursor:not-allowed}.evf-honeypot-container{display:none!important;position:absolute!important;right:-9000px!important}.evf-recaptcha-container{clear:both;margin-bottom:30px}.evf-recaptcha-container .evf-error{margin-top:15px;margin-bottom:0;font-weight:300;line-height:1.7;padding:7px 10px;border-radius:3px;display:inline-block;color:#f92020;border:1px solid #fa5252;background-color:#fff}.evf-recaptcha-container.recaptcha-hidden{margin:0}@media only screen and (max-width:600px){.evf-container .evf-field>*{max-width:100%}.evf-container .evf-field:not(.evf-field-phone){overflow-x:hidden}}@media screen and (min-width:768px){.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid.evf-grid-2{-webkit-box-flex:0;flex:0 0 50%;max-width:50%}}@media screen and (max-width:768px){.everest-forms .evf-field-container .evf-frontend-row{-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;margin:0}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid{padding:0}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid:last-child{margin-bottom:0}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid.evf-grid-2,.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid.evf-grid-3{width:100%;max-width:100%}.everest-forms .evf-recaptcha-container{margin:25px 0}}
assets/css/everest-forms.css CHANGED
@@ -1 +1 @@
1
- @-webkit-keyframes spin{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes spin{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes rotating{25%{-webkit-transform:rotate(-2deg);transform:rotate(-2deg)}75%{-webkit-transform:rotate(2deg);transform:rotate(2deg)}100%{-webkit-transform:rotate(0);transform:rotate(0)}}@keyframes rotating{25%{-webkit-transform:rotate(-2deg);transform:rotate(-2deg)}75%{-webkit-transform:rotate(2deg);transform:rotate(2deg)}100%{-webkit-transform:rotate(0);transform:rotate(0)}}@font-face{font-family:EverestForms;src:url(../fonts/EverestForms.eot?94dwsf);src:url(../fonts/EverestForms.eot?94dwsf#iefix) format("embedded-opentype"),url(../fonts/EverestForms.ttf?94dwsf) format("truetype"),url(../fonts/EverestForms.woff?94dwsf) format("woff"),url(../fonts/EverestForms.svg?94dwsf#EverestForms) format("svg");font-weight:400;font-style:normal}.clearfix::after,.clearfix::before,.evf-row::after,.evf-row::before{display:table;content:''}.clearfix::after,.evf-row::after{clear:both}.screen-reader-text{clip:rect(1px,1px,1px,1px);height:1px;overflow:hidden;position:absolute!important;width:1px;word-wrap:normal!important}.clear{clear:both}.everest-forms *,.everest-forms ::after,.everest-forms ::before{box-sizing:border-box}.everest-forms ul{margin-left:0}.everest-forms .blockUI.blockOverlay{position:relative}.everest-forms .blockUI.blockOverlay::before{height:1em;width:1em;display:block;position:absolute;top:50%;left:50%;content:'';-webkit-animation:spin 1s ease-in-out infinite;animation:spin 1s ease-in-out infinite;background:url(../images/icons/loader.svg) center center;background-size:cover;background-repeat:no-repeat;line-height:1;text-align:center;font-size:2em;color:rgba(0,0,0,.75)}.everest-forms .loader::before{height:1em;width:1em;display:block;position:absolute;top:50%;left:50%;content:'';-webkit-animation:spin 1s ease-in-out infinite;animation:spin 1s ease-in-out infinite;background:url(../images/icons/loader.svg) center center;background-size:cover;background-repeat:no-repeat;line-height:1;text-align:center;font-size:2em;color:rgba(0,0,0,.75)}.everest-forms .evf-container{margin-bottom:30px}.everest-forms label{display:block;line-height:1.7;margin:0 0 10px 0;color:#494d50;font-size:14px}.everest-forms label .required{color:#fa5252;font-weight:700;border:0!important;text-decoration:none}.everest-forms label.evf-field-label{font-weight:600}.everest-forms label.evf-error{color:#fa5252;font-weight:400}.everest-forms label.everest-forms-field-sublabel{font-size:12px;font-weight:400;line-height:1.5;margin:0 0 10px 0}.everest-forms .StripeElement,.everest-forms canvas.evf-signature-canvas,.everest-forms input[type=date],.everest-forms input[type=datetime-local],.everest-forms input[type=email],.everest-forms input[type=file],.everest-forms input[type=image],.everest-forms input[type=month],.everest-forms input[type=number],.everest-forms input[type=password],.everest-forms input[type=range],.everest-forms input[type=search],.everest-forms input[type=tel],.everest-forms input[type=text],.everest-forms input[type=time],.everest-forms input[type=url],.everest-forms input[type=week],.everest-forms select,.everest-forms textarea{width:100%;height:auto;font-size:14px;outline:0;box-shadow:none;margin-bottom:10px;padding:6px 12px;color:#494d50;border:1px solid #8e98a2}.everest-forms input:focus{outline:0;border:1px solid #0095ff}.everest-forms .everest-form::after{content:'';clear:both;display:table}.everest-forms .everest-forms-field-row::after,.everest-forms .everest-forms-field-row::before{content:'';clear:both;display:table}.everest-forms .everest-forms-field-row:last-child .everest-forms-field-sublabel{margin-bottom:0}.everest-forms .evf-title-container .everest-forms--title{font-size:26px;margin:0 0 10px 0}.everest-forms .evf-title-container .everest-forms--description{margin:0 0 10px 0}.everest-forms .evf-field-container .evf-frontend-row{display:-webkit-box;display:flex;flex-wrap:wrap;margin-left:-15px;margin-right:-15px}.everest-forms .evf-field-container .evf-frontend-row .everest-forms-one-half{width:48%;float:left;margin-left:4%}.everest-forms .evf-field-container .evf-frontend-row .everest-forms-one-half:first-child{margin-left:0}.everest-forms .evf-field-container .evf-frontend-row .everest-forms-first{margin-left:0}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid{width:100%;padding-left:15px;padding-right:15px}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field{display:block;margin-bottom:10px}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field .everest-forms-sublabel-hide,.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field .evf-label-hide{display:none}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field .validate-required canvas.evf-signature-canvas{border-color:#fa5252}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field ul{margin-bottom:10px;padding:0;list-style:none}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field ul li{margin:0;display:block}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field ul li input,.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field ul li label{margin:0}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field ul li input[type=checkbox],.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field ul li input[type=radio]{padding:0;margin-top:2px;margin-right:8px}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.evf-field-title h3{margin:25px 0;font-size:16px;line-height:1.5}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.everest-forms-invalid>label{color:#fa5252}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.everest-forms-invalid .evf-signature-canvas,.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.everest-forms-invalid .select2-container,.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.everest-forms-invalid input.evf-error,.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.everest-forms-invalid select.evf-error,.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.everest-forms-invalid textarea{border-color:#fa5252}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.everest-forms-invalid input.evf-error{border-color:#fa5252}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.everest-forms-invalid input.evf-error~.everest-forms-field-sublabel{color:#fa5252}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.everest-forms-validated .evf-signature-canvas,.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.everest-forms-validated .select2-container,.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.everest-forms-validated input.input-text,.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.everest-forms-validated select,.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.everest-forms-validated textarea{border-color:#4bce61}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field ::-webkit-input-placeholder{line-height:normal}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field :-moz-placeholder{line-height:normal}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field :-ms-input-placeholder{line-height:normal}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.evf-field-checkbox ul li,.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.evf-field-payment-checkbox ul li,.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.evf-field-payment-multiple ul li,.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.evf-field-radio ul li{display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center;margin-bottom:5px}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.evf-field-captcha .everest-forms-captcha-equation{font-size:16px}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.evf-field-captcha .everest-forms-captcha-question{margin:0 0 4px 0}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.evf-field-captcha .everest-forms-captcha-math input{width:70px;margin:0 0 0 5px;display:inline-block;vertical-align:inherit}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field .iti.iti--allow-dropdown+.evf-error{margin-top:10px}.everest-forms .evf-field-container .evf-frontend-row input[type=checkbox],.everest-forms .evf-field-container .evf-frontend-row input[type=radio]{box-shadow:none}.everest-forms .evf-field-container .evf-frontend-row input[type=checkbox]{-webkit-appearance:checkbox;-moz-appearance:checkbox;appearance:checkbox}.everest-forms .evf-field-container .evf-frontend-row input[type=radio]{-webkit-appearance:radio;-moz-appearance:radio;appearance:radio}.everest-forms .evf-field-container .evf-frontend-row input[type=checkbox]:checked{background-color:#0095ff}.everest-forms .evf-field-container .evf-frontend-row input[type=checkbox]:checked::before{color:#fff;background-color:transparent}.everest-forms .evf-field-container .evf-frontend-row input[type=radio]:checked::before{background-color:#0095ff}.everest-forms .evf-field-container .evf-frontend-row input::-webkit-input-placeholder{color:#8e98a2}.everest-forms .evf-field-container .evf-frontend-row input::-moz-placeholder{color:#8e98a2}.everest-forms .evf-field-container .evf-frontend-row input:-ms-input-placeholder{color:#8e98a2}.everest-forms .evf-field-container .evf-frontend-row input::-ms-input-placeholder{color:#8e98a2}.everest-forms .evf-field-container .evf-frontend-row input::placeholder{color:#8e98a2}.everest-forms .evf-field-container .evf-frontend-row select{-webkit-appearance:menulist;-moz-appearance:menulist;appearance:menulist}.everest-forms .evf-field-container .evf-frontend-row textarea{width:100%;max-width:100%;min-width:100%;height:120px}.everest-forms .evf-field-container .evf-frontend-row textarea::-webkit-input-placeholder{color:#8e98a2}.everest-forms .evf-field-container .evf-frontend-row textarea::-moz-placeholder{color:#8e98a2}.everest-forms .evf-field-container .evf-frontend-row textarea:-ms-input-placeholder{color:#8e98a2}.everest-forms .evf-field-container .evf-frontend-row textarea::-ms-input-placeholder{color:#8e98a2}.everest-forms .evf-field-container .evf-frontend-row textarea::placeholder{color:#8e98a2}.everest-forms .evf-field-container .evf-frontend-row .evf-field-description{line-height:1.7;margin-bottom:10px;font-size:14px}.everest-forms .everest-forms-part-button,.everest-forms button,.everest-forms button[type=submit],.everest-forms input[type=submit]{color:#555;height:auto;cursor:pointer;background:0 0;box-shadow:none;font-size:inherit;font-weight:400;line-height:1.5;padding:10px 15px;border-radius:3px;border:1px solid #ccc;background-color:#f7f7f7}.everest-forms .everest-forms-part-button:active,.everest-forms .everest-forms-part-button:hover,.everest-forms button:active,.everest-forms button:hover,.everest-forms button[type=submit]:active,.everest-forms button[type=submit]:hover,.everest-forms input[type=submit]:active,.everest-forms input[type=submit]:hover{outline:0;color:#23282d;background-color:#eee}.everest-forms .everest-forms-part-button:disabled,.everest-forms button:disabled,.everest-forms button[type=submit]:disabled,.everest-forms input[type=submit]:disabled{opacity:.5;cursor:not-allowed}.everest-forms .everest-forms-part-button:disabled:hover,.everest-forms button:disabled:hover,.everest-forms button[type=submit]:disabled:hover,.everest-forms input[type=submit]:disabled:hover{color:#555;background-color:#f7f7f7}.everest-forms .layout-two label{margin-bottom:0}.everest-forms .layout-two .evf-field-checkbox label,.everest-forms .layout-two .evf-field-radio label{margin-bottom:20px}.everest-forms .layout-two canvas.evf-signature-canvas,.everest-forms .layout-two input,.everest-forms .layout-two select,.everest-forms .layout-two textarea{border-radius:0;border-top:none transparent;border-right:none transparent;border-left:none transparent;border-bottom:1px solid #8e98a2;height:40px;padding:10px 0}.everest-forms .layout-two canvas.evf-signature-canvas:focus,.everest-forms .layout-two input:focus,.everest-forms .layout-two select:focus,.everest-forms .layout-two textarea:focus{outline:0;border-top:none transparent;border-right:none transparent;border-left:none transparent}.everest-forms .layout-two textarea{height:100px}.everest-forms .everest-forms-notice{padding:1em 3em;margin:0 0 2em;position:relative;background-color:#0095ff;color:#fff;border-radius:5px}.everest-forms .everest-forms-notice::after,.everest-forms .everest-forms-notice::before{content:' ';display:table}.everest-forms .everest-forms-notice::after{clear:both}.everest-forms .everest-forms-notice::before{font-family:dashicons;content:'\f348';position:absolute;top:1em;left:1.5em;color:inherit}.everest-forms .everest-forms-notice .button{float:right}.everest-forms .everest-forms-notice p{margin-bottom:0}.everest-forms .everest-forms-notice a{color:#fff}.everest-forms .everest-forms-notice li{list-style:none outside!important;padding-left:0!important;margin-left:0!important}.everest-forms .everest-forms-notice.everst-forms-form-disable-notice{color:#494d50;background:#fffbf0;border:1px solid #f4d071}.everest-forms .everest-forms-notice--success{background-color:#4bce61}.everest-forms .everest-forms-notice--success::before{content:'\f147'}.everest-forms .everest-forms-notice--error{background-color:#fa5252}.everest-forms .everest-forms-notice--error::before{content:'\f534';color:inherit}.everest-forms .everest-forms-notice--error .everest-forms-notice-list{margin:0;list-style:none outside}.everest-forms .everest-forms-notice--error .everest-forms-notice-list .everest-forms-notice-list__item{margin-bottom:.5em}.everest-forms .everest-forms-notice--error .everest-forms-notice-list .everest-forms-notice-list__item:last-child{margin-bottom:0}.edit-post-visual-editor .everest-form-gutenberg-form-selector-wrap .components-placeholder__label{margin-bottom:0}.edit-post-visual-editor .everest-form-gutenberg-form-selector-wrap .components-placeholder__label svg{width:75px;height:75px;color:#7e3bd0}.edit-post-visual-editor .everest-form-gutenberg-form-selector-wrap .components-placeholder__instructions{color:#23282d;font-size:1.3em;font-weight:600}.edit-post-visual-editor .everest-form-gutenberg-form-selector-wrap .components-placeholder__fieldset .components-base-control{width:100%}div.evf-gutenberg-form-selector .evf-frontend-row button[type=submit]:disabled,div.evf-gutenberg-form-selector .evf-frontend-row input:disabled,div.evf-gutenberg-form-selector .evf-frontend-row select:disabled,div.evf-gutenberg-form-selector .evf-frontend-row textarea:disabled{cursor:not-allowed}.evf-honeypot-container{display:none!important;position:absolute!important;left:-9000px!important}.evf-recaptcha-container{clear:both;margin-bottom:30px}.evf-recaptcha-container .evf-error{margin-top:15px;margin-bottom:0;font-weight:300;line-height:1.7;padding:7px 10px;border-radius:3px;display:inline-block;color:#f92020;border:1px solid #fa5252;background-color:#fff}.evf-recaptcha-container.recaptcha-hidden{margin:0}@media only screen and (max-width:600px){.evf-container .evf-field>*{max-width:100%}.evf-container .evf-field:not(.evf-field-phone){overflow-x:hidden}}@media screen and (min-width:768px){.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid.evf-grid-2{-webkit-box-flex:0;flex:0 0 50%;max-width:50%}}@media screen and (max-width:768px){.everest-forms .evf-field-container .evf-frontend-row{-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;margin:0}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid{padding:0}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid:last-child{margin-bottom:0}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid.evf-grid-2,.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid.evf-grid-3{width:100%;max-width:100%}.everest-forms .evf-recaptcha-container{margin:25px 0}}
1
+ @-webkit-keyframes spin{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes spin{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes rotating{25%{-webkit-transform:rotate(-2deg);transform:rotate(-2deg)}75%{-webkit-transform:rotate(2deg);transform:rotate(2deg)}100%{-webkit-transform:rotate(0);transform:rotate(0)}}@keyframes rotating{25%{-webkit-transform:rotate(-2deg);transform:rotate(-2deg)}75%{-webkit-transform:rotate(2deg);transform:rotate(2deg)}100%{-webkit-transform:rotate(0);transform:rotate(0)}}@font-face{font-family:EverestForms;src:url(../fonts/EverestForms.eot?94dwsf);src:url(../fonts/EverestForms.eot?94dwsf#iefix) format("embedded-opentype"),url(../fonts/EverestForms.ttf?94dwsf) format("truetype"),url(../fonts/EverestForms.woff?94dwsf) format("woff"),url(../fonts/EverestForms.svg?94dwsf#EverestForms) format("svg");font-weight:400;font-style:normal}.clearfix::after,.clearfix::before,.evf-row::after,.evf-row::before{display:table;content:''}.clearfix::after,.evf-row::after{clear:both}.screen-reader-text{clip:rect(1px,1px,1px,1px);height:1px;overflow:hidden;position:absolute!important;width:1px;word-wrap:normal!important}.clear{clear:both}.everest-forms *,.everest-forms ::after,.everest-forms ::before{box-sizing:border-box}.everest-forms ul{margin-left:0}.everest-forms .blockUI.blockOverlay{position:relative}.everest-forms .blockUI.blockOverlay::before{height:1em;width:1em;display:block;position:absolute;top:50%;left:50%;content:'';-webkit-animation:spin 1s ease-in-out infinite;animation:spin 1s ease-in-out infinite;background:url(../images/icons/loader.svg) center center;background-size:cover;background-repeat:no-repeat;line-height:1;text-align:center;font-size:2em;color:rgba(0,0,0,.75)}.everest-forms .clear{height:auto;width:auto;visibility:visible}.everest-forms .loader::before{height:1em;width:1em;display:block;position:absolute;top:50%;left:50%;content:'';-webkit-animation:spin 1s ease-in-out infinite;animation:spin 1s ease-in-out infinite;background:url(../images/icons/loader.svg) center center;background-size:cover;background-repeat:no-repeat;line-height:1;text-align:center;font-size:2em;color:rgba(0,0,0,.75)}.everest-forms .evf-container{margin-bottom:30px}.everest-forms label{display:block;line-height:1.7;margin:0 0 10px 0;color:#494d50;font-size:14px}.everest-forms label .required{color:#fa5252;font-weight:700;border:0!important;text-decoration:none}.everest-forms label.evf-field-label{font-weight:600}.everest-forms label.evf-error{color:#fa5252;font-weight:400}.everest-forms label.everest-forms-field-sublabel{font-size:12px;font-weight:400;line-height:1.5;margin:0 0 10px 0}.everest-forms .StripeElement,.everest-forms canvas.evf-signature-canvas,.everest-forms input[type=date],.everest-forms input[type=datetime-local],.everest-forms input[type=email],.everest-forms input[type=file],.everest-forms input[type=image],.everest-forms input[type=month],.everest-forms input[type=number],.everest-forms input[type=password],.everest-forms input[type=range],.everest-forms input[type=search],.everest-forms input[type=tel],.everest-forms input[type=text],.everest-forms input[type=time],.everest-forms input[type=url],.everest-forms input[type=week],.everest-forms select,.everest-forms textarea{width:100%;height:auto;font-size:14px;outline:0;box-shadow:none;margin-bottom:10px;padding:6px 12px;color:#494d50;border:1px solid #8e98a2}.everest-forms input:focus{outline:0;border:1px solid #0095ff}.everest-forms .everest-form::after{content:'';clear:both;display:table}.everest-forms .everest-forms-field-row::after,.everest-forms .everest-forms-field-row::before{content:'';clear:both;display:table}.everest-forms .everest-forms-field-row:last-child .everest-forms-field-sublabel{margin-bottom:0}.everest-forms .evf-title-container .everest-forms--title{font-size:26px;margin:0 0 10px 0}.everest-forms .evf-title-container .everest-forms--description{margin:0 0 10px 0}.everest-forms .evf-field-container .evf-frontend-row{display:-webkit-box;display:flex;flex-wrap:wrap;margin-left:-15px;margin-right:-15px}.everest-forms .evf-field-container .evf-frontend-row .everest-forms-one-half{width:48%;float:left;margin-left:4%}.everest-forms .evf-field-container .evf-frontend-row .everest-forms-one-half:first-child{margin-left:0}.everest-forms .evf-field-container .evf-frontend-row .everest-forms-first{margin-left:0}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid{width:100%;padding-left:15px;padding-right:15px}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field{display:block;margin-bottom:10px}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field .everest-forms-sublabel-hide,.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field .evf-label-hide{display:none}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field .validate-required canvas.evf-signature-canvas{border-color:#fa5252}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field ul{margin-bottom:10px;padding:0;list-style:none}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field ul li{margin:0;display:block}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field ul li input,.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field ul li label{margin:0}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field ul li input[type=checkbox],.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field ul li input[type=radio]{padding:0;margin-top:2px;margin-right:8px}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.evf-field-title h3{margin:25px 0;font-size:16px;line-height:1.5}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.everest-forms-invalid>label{color:#fa5252}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.everest-forms-invalid .evf-signature-canvas,.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.everest-forms-invalid .select2-container,.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.everest-forms-invalid input.evf-error,.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.everest-forms-invalid select.evf-error,.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.everest-forms-invalid textarea{border-color:#fa5252}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.everest-forms-invalid input.evf-error{border-color:#fa5252}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.everest-forms-invalid input.evf-error~.everest-forms-field-sublabel{color:#fa5252}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.everest-forms-validated .evf-signature-canvas,.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.everest-forms-validated .select2-container,.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.everest-forms-validated input.input-text,.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.everest-forms-validated select,.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.everest-forms-validated textarea{border-color:#4bce61}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field ::-webkit-input-placeholder{line-height:normal}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field :-moz-placeholder{line-height:normal}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field :-ms-input-placeholder{line-height:normal}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.evf-field-checkbox ul li,.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.evf-field-payment-checkbox ul li,.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.evf-field-payment-multiple ul li,.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.evf-field-radio ul li{display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center;margin-bottom:5px}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.evf-field-captcha .everest-forms-captcha-equation{font-size:16px}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.evf-field-captcha .everest-forms-captcha-question{margin:0 0 4px 0}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field.evf-field-captcha .everest-forms-captcha-math input{width:70px;margin:0 0 0 5px;display:inline-block;vertical-align:inherit}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid .evf-field .iti.iti--allow-dropdown+.evf-error{margin-top:10px}.everest-forms .evf-field-container .evf-frontend-row input[type=checkbox],.everest-forms .evf-field-container .evf-frontend-row input[type=radio]{box-shadow:none}.everest-forms .evf-field-container .evf-frontend-row input[type=checkbox]{-webkit-appearance:checkbox;-moz-appearance:checkbox;appearance:checkbox}.everest-forms .evf-field-container .evf-frontend-row input[type=radio]{-webkit-appearance:radio;-moz-appearance:radio;appearance:radio}.everest-forms .evf-field-container .evf-frontend-row input[type=checkbox]:checked{background-color:#0095ff}.everest-forms .evf-field-container .evf-frontend-row input[type=checkbox]:checked::before{color:#fff;background-color:transparent}.everest-forms .evf-field-container .evf-frontend-row input[type=radio]:checked::before{background-color:#0095ff}.everest-forms .evf-field-container .evf-frontend-row input::-webkit-input-placeholder{color:#8e98a2}.everest-forms .evf-field-container .evf-frontend-row input::-moz-placeholder{color:#8e98a2}.everest-forms .evf-field-container .evf-frontend-row input:-ms-input-placeholder{color:#8e98a2}.everest-forms .evf-field-container .evf-frontend-row input::-ms-input-placeholder{color:#8e98a2}.everest-forms .evf-field-container .evf-frontend-row input::placeholder{color:#8e98a2}.everest-forms .evf-field-container .evf-frontend-row select{-webkit-appearance:menulist;-moz-appearance:menulist;appearance:menulist}.everest-forms .evf-field-container .evf-frontend-row textarea{width:100%;max-width:100%;min-width:100%;height:120px}.everest-forms .evf-field-container .evf-frontend-row textarea::-webkit-input-placeholder{color:#8e98a2}.everest-forms .evf-field-container .evf-frontend-row textarea::-moz-placeholder{color:#8e98a2}.everest-forms .evf-field-container .evf-frontend-row textarea:-ms-input-placeholder{color:#8e98a2}.everest-forms .evf-field-container .evf-frontend-row textarea::-ms-input-placeholder{color:#8e98a2}.everest-forms .evf-field-container .evf-frontend-row textarea::placeholder{color:#8e98a2}.everest-forms .evf-field-container .evf-frontend-row .evf-field-description{line-height:1.7;margin-bottom:10px;font-size:14px}.everest-forms .everest-forms-part-button,.everest-forms button,.everest-forms button[type=submit],.everest-forms input[type=submit]{color:#555;height:auto;cursor:pointer;background:0 0;box-shadow:none;font-size:inherit;font-weight:400;line-height:1.5;padding:10px 15px;border-radius:3px;border:1px solid #ccc;background-color:#f7f7f7}.everest-forms .everest-forms-part-button:active,.everest-forms .everest-forms-part-button:hover,.everest-forms button:active,.everest-forms button:hover,.everest-forms button[type=submit]:active,.everest-forms button[type=submit]:hover,.everest-forms input[type=submit]:active,.everest-forms input[type=submit]:hover{outline:0;color:#23282d;background-color:#eee}.everest-forms .everest-forms-part-button:disabled,.everest-forms button:disabled,.everest-forms button[type=submit]:disabled,.everest-forms input[type=submit]:disabled{opacity:.5;cursor:not-allowed}.everest-forms .everest-forms-part-button:disabled:hover,.everest-forms button:disabled:hover,.everest-forms button[type=submit]:disabled:hover,.everest-forms input[type=submit]:disabled:hover{color:#555;background-color:#f7f7f7}.everest-forms .layout-two label{margin-bottom:0}.everest-forms .layout-two .evf-field-checkbox label,.everest-forms .layout-two .evf-field-radio label{margin-bottom:20px}.everest-forms .layout-two canvas.evf-signature-canvas,.everest-forms .layout-two input,.everest-forms .layout-two select,.everest-forms .layout-two textarea{border-radius:0;border-top:none transparent;border-right:none transparent;border-left:none transparent;border-bottom:1px solid #8e98a2;height:40px;padding:10px 0}.everest-forms .layout-two canvas.evf-signature-canvas:focus,.everest-forms .layout-two input:focus,.everest-forms .layout-two select:focus,.everest-forms .layout-two textarea:focus{outline:0;border-top:none transparent;border-right:none transparent;border-left:none transparent}.everest-forms .layout-two textarea{height:100px}.everest-forms .everest-forms-notice{padding:1em 3em;margin:0 0 2em;position:relative;background-color:#0095ff;color:#fff;border-radius:5px}.everest-forms .everest-forms-notice::after,.everest-forms .everest-forms-notice::before{content:' ';display:table}.everest-forms .everest-forms-notice::after{clear:both}.everest-forms .everest-forms-notice::before{font-family:dashicons;content:'\f348';position:absolute;top:1em;left:1.5em;color:inherit}.everest-forms .everest-forms-notice .button{float:right}.everest-forms .everest-forms-notice p{margin-bottom:0}.everest-forms .everest-forms-notice a{color:#fff}.everest-forms .everest-forms-notice li{list-style:none outside!important;padding-left:0!important;margin-left:0!important}.everest-forms .everest-forms-notice.everst-forms-form-disable-notice{color:#494d50;background:#fffbf0;border:1px solid #f4d071}.everest-forms .everest-forms-notice--success{background-color:#4bce61}.everest-forms .everest-forms-notice--success::before{content:'\f147'}.everest-forms .everest-forms-notice--error{background-color:#fa5252}.everest-forms .everest-forms-notice--error::before{content:'\f534';color:inherit}.everest-forms .everest-forms-notice--error .everest-forms-notice-list{margin:0;list-style:none outside}.everest-forms .everest-forms-notice--error .everest-forms-notice-list .everest-forms-notice-list__item{margin-bottom:.5em}.everest-forms .everest-forms-notice--error .everest-forms-notice-list .everest-forms-notice-list__item:last-child{margin-bottom:0}.edit-post-visual-editor .everest-form-gutenberg-form-selector-wrap .components-placeholder__label{margin-bottom:0}.edit-post-visual-editor .everest-form-gutenberg-form-selector-wrap .components-placeholder__label svg{width:75px;height:75px;color:#7e3bd0}.edit-post-visual-editor .everest-form-gutenberg-form-selector-wrap .components-placeholder__instructions{color:#23282d;font-size:1.3em;font-weight:600}.edit-post-visual-editor .everest-form-gutenberg-form-selector-wrap .components-placeholder__fieldset .components-base-control{width:100%}div.evf-gutenberg-form-selector .evf-frontend-row button[type=submit]:disabled,div.evf-gutenberg-form-selector .evf-frontend-row input:disabled,div.evf-gutenberg-form-selector .evf-frontend-row select:disabled,div.evf-gutenberg-form-selector .evf-frontend-row textarea:disabled{cursor:not-allowed}.evf-honeypot-container{display:none!important;position:absolute!important;left:-9000px!important}.evf-recaptcha-container{clear:both;margin-bottom:30px}.evf-recaptcha-container .evf-error{margin-top:15px;margin-bottom:0;font-weight:300;line-height:1.7;padding:7px 10px;border-radius:3px;display:inline-block;color:#f92020;border:1px solid #fa5252;background-color:#fff}.evf-recaptcha-container.recaptcha-hidden{margin:0}@media only screen and (max-width:600px){.evf-container .evf-field>*{max-width:100%}.evf-container .evf-field:not(.evf-field-phone){overflow-x:hidden}}@media screen and (min-width:768px){.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid.evf-grid-2{-webkit-box-flex:0;flex:0 0 50%;max-width:50%}}@media screen and (max-width:768px){.everest-forms .evf-field-container .evf-frontend-row{-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;margin:0}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid{padding:0}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid:last-child{margin-bottom:0}.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid.evf-grid-2,.everest-forms .evf-field-container .evf-frontend-row .evf-frontend-grid.evf-grid-3{width:100%;max-width:100%}.everest-forms .evf-recaptcha-container{margin:25px 0}}
assets/css/everest-forms.scss CHANGED
@@ -51,6 +51,12 @@
51
  @include loader();
52
  }
53
 
 
 
 
 
 
 
54
  .loader {
55
  @include loader();
56
  }
51
  @include loader();
52
  }
53
 
54
+ .clear {
55
+ height: auto;
56
+ width: auto;
57
+ visibility: visible;
58
+ }
59
+
60
  .loader {
61
  @include loader();
62
  }
assets/js/admin/form-builder.js CHANGED
@@ -770,6 +770,28 @@
770
  }
771
  });
772
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
773
  var new_form_data = form_data.concat( structure );
774
  var data = {
775
  action: 'everest_forms_save_form',
770
  }
771
  });
772
 
773
+ /* DB unwanted data erase start */
774
+ var rfields_ids = [];
775
+ $( '.everest-forms-field[data-field-id]' ).each( function() {
776
+ rfields_ids.push( $( this ).attr( 'data-field-id' ) );
777
+ });
778
+
779
+ var form_data_length = form_data.length;
780
+ while ( form_data_length-- ) {
781
+ if ( form_data[ form_data_length ].name.startsWith( 'form_fields' ) ) {
782
+ var idflag = false;
783
+ rfields_ids.forEach( function( element ) {
784
+ if ( form_data[ form_data_length ].name.startsWith( 'form_fields[' + element + ']' ) ) {
785
+ idflag = true;
786
+ }
787
+ });
788
+ if ( form_data_length > -1 && idflag === false ) {
789
+ form_data.splice( form_data_length, 1 );
790
+ }
791
+ }
792
+ }
793
+ /* DB fix end */
794
+
795
  var new_form_data = form_data.concat( structure );
796
  var data = {
797
  action: 'everest_forms_save_form',
assets/js/admin/form-builder.min.js CHANGED
@@ -1 +1 @@
1
- !function(m,p){var i,u={init:function(){m(document).ready(function(e){e("evf-panel-integrations-button a").hasClass("active")||(e("#everest-forms-panel-integrations").find(".everest-forms-panel-sidebar a").first().addClass("active"),e("#everest-forms-panel-integrations").find(".everest-forms-panel-sidebar a").hasClass("active")&&e("#everest-forms-panel-integrations").find(".everest-forms-panel-sidebar a").next(".everest-forms-active-connections").first().addClass("active"),e(".everest-forms-panel-content").find(".evf-panel-content-section").first().addClass("active"))}),m(document).ready(function(s){"1"===s(".everest-forms-min-max-date-format input").val()&&s(".everest-forms-min-max-date-option").find("input").datepicker({defaultDate:"",dateFormat:"yy-mm-dd",numberOfMonths:1,showButtonPanel:!0,onSelect:function(){var e=s(this).is(".everest-forms-min-date")?"minDate":"maxDate",t=s(this).closest(".everest-forms-min-max-date-option").find("input"),i=s(this).datepicker("getDate");t.not(this).datepicker("option",e,i),s(this).change()}}),s("evf-panel-payments-button a").hasClass("active")||(s("#everest-forms-panel-payments").find(".everest-forms-panel-sidebar a").first().addClass("active"),s(".everest-forms-panel-content").find(".evf-payment-setting-content").first().addClass("active"))}),m(document.body).on("click","#copy-shortcode",this.copyShortcode).on("aftercopy","#copy-shortcode",this.copySuccess).on("aftercopyfailure","#copy-shortcode",this.copyFail),m(document).ready(u.ready),m(window).on("load",u.load),m(document.body).on("evf-init-builder-fields",function(){u.bindFields()}).trigger("evf-init-builder-fields"),m(document.body).on("adjust_builder_width",function(){var e=m("#adminmenuwrap").width();m("#everest-forms-builder-form").css({width:"calc(100% - "+e+"px)"})}).trigger("adjust_builder_width"),m(document.body).on("click","#collapse-button",function(){m("#everest-forms-builder-form").width(""),m(document.body).trigger("adjust_builder_width")}),m(window).on("resize orientationchange",function(){var e;clearTimeout(e),e=setTimeout(function(){m("#everest-forms-builder").width(""),m(document.body).trigger("adjust_builder_width")},250)}).trigger("resize")},copyShortcode:function(e){evfClearClipboard(),evfSetClipboard(m(".evf-shortcode-field").find("input").val(),m(this)),e.preventDefault()},copySuccess:function(){m("#copy-shortcode").tooltipster("content",m(this).attr("data-copied")).trigger("mouseenter").on("mouseleave",function(){var e=m(this);setTimeout(function(){e.tooltipster("content",e.attr("data-tip"))},1e3)})},copyFail:function(){m(".evf-shortcode-field").find("input").focus().select()},load:function(){m(".everest-forms-overlay").fadeOut()},ready:function(){if(i=m("#everest-forms-builder"),u.bindUIActions(),jconfirm.defaults={closeIcon:!0,backgroundDismiss:!0,escapeKey:!0,animationBounce:1,useBootstrap:!1,theme:"modern",boxWidth:"400px",columnClass:"evf-responsive-class"},"undefined"!=typeof PerfectScrollbar){var e=m(".everest-forms-tab-content"),t=m("#everest-forms-panel-settings .everest-forms-panel-sidebar");1<=e.length&&(window.evf_tab_scroller=new PerfectScrollbar(e.selector)),1<=t.length&&(window.evf_setting_scroller=new PerfectScrollbar(t.selector))}m(document).trigger("everest_forms_ready")},bindUIActions:function(){u.bindDefaultTabs(),u.checkEmptyGrid(),u.bindFields(),u.bindFormPreview(),u.bindGridSwitcher(),u.bindFieldSettings(),u.bindFieldDelete(),u.bindCloneField(),u.bindSaveOption(),u.bindAddNewRow(),u.bindRemoveRow(),u.bindFormSettings(),u.bindFormEmail(),u.bindFormIntegrations(),u.bindFormPayment(),u.choicesInit(),u.choicesUpdate(),u.bindUIActionsFields(),"field-options"===p.tab&&m(".evf-panel-field-options-button").trigger("click")},bindUIActionsFields:function(){i.on("click",".everest-forms-fields-tab a",function(e){e.preventDefault(),u.fieldTabChoice(m(this).attr("id"))}),i.on("change",".everest-forms-field-option-address input.hide",function(){var e=m(this),t=e.parent().parent().data("field-id"),i=e.parent().parent().data("subfield");m("#everest-forms-field-"+t).find(".everest-forms-"+i).toggleClass("hidden")}),i.on("input",".everest-forms-field-option-row-label input",function(){var e=m(this),t=e.val(),i=e.parent().data("field-id");m("#everest-forms-field-"+i).find(".label-title .text").text(t)}),i.on("input",".everest-forms-field-option-row-description textarea",function(){var e=m(this),t=e.val(),i=e.parent().data("field-id"),s=m("#everest-forms-field-"+i).find(".description");s.hasClass("nl2br")?s.html(t.replace(/\n/g,"<br>")):s.html(t)}),i.on("change",".everest-forms-field-option-row-required input",function(e){var t=m(this).parent().data("field-id");m("#everest-forms-field-"+t).toggleClass("required")}),i.on("change",".everest-forms-field-option-row-confirmation input",function(){var e=m(this).parent().data("field-id");m("#everest-forms-field-"+e).find(".everest-forms-confirm").toggleClass("everest-forms-confirm-enabled everest-forms-confirm-disabled"),m("#everest-forms-field-option-"+e).toggleClass("everest-forms-confirm-enabled everest-forms-confirm-disabled")}),i.on("input",".everest-forms-field-option-row-placeholder input",function(e){var t=m(this),i=t.val(),s=t.parent().data("field-id"),n=m("#everest-forms-field-"+s).find(".primary-input");n.is("select")?i.length?n.find(".placeholder").length?n.find(".placeholder").text(i):n.prepend('<option class="placeholder" selected>'+i+"</option>"):n.find(".placeholder").remove():n.attr("placeholder",i)}),i.on("input",".everest-forms-field-option-address input.placeholder",function(e){var t=m(this),i=t.val(),s=t.parent().parent().data("field-id"),n=t.parent().parent().data("subfield");m("#everest-forms-field-"+s).find(".everest-forms-"+n+" input").attr("placeholder",i)}),i.on("input",".everest-forms-field-option-row-confirmation_placeholder input",function(){var e=m(this),t=e.val(),i=e.parent().data("field-id");m("#everest-forms-field-"+i).find(".secondary-input").attr("placeholder",t)}),i.on("change",".everest-forms-field-option-row-label_hide input",function(){var e=m(this).parent().data("field-id");m("#everest-forms-field-"+e).toggleClass("label_hide")}),i.on("change",".everest-forms-field-option-row-sublabel_hide input",function(){var e=m(this).parent().data("field-id");m("#everest-forms-field-"+e).toggleClass("sublabel_hide")}),i.on("change",".everest-forms-field-option-row-datetime_format select, .everest-forms-field-option-row-phone_format select, .everest-forms-field-option-row-format select",function(e){var t=m(this),i=t.val(),s=t.parent().data("field-id");m("#everest-forms-field-"+s).find(".format-selected").removeClass().addClass("format-selected format-selected-"+i),m("#everest-forms-field-option-"+s).find(".format-selected").removeClass().addClass("format-selected format-selected-"+i)})},choicesInit:function(){m("ul.evf-choices-list").sortable({items:"li",axis:"y",cursor:"move",scrollSensitivity:40,helper:"clone",out:function(e){var t=m(e.target).attr("data-field-id");u.choiceChange(t)}})},choiceChange:function(e){var t=m("#everest-forms-field-option-row-"+e+"-choices"),i=m("#everest-forms-field-"+e),s=i.find("ul.primary-input"),n=t.find("ul.evf-choices-list").attr("data-field-type");"select"===n&&(s=i.find("select.primary-input")),s.html(""),m.each(t.find("ul.evf-choices-list").find("li"),function(){var e=m(this).find(".default").attr("type"),t=e?'<input type="'+e+'" disabled="">':"",i=m("<li/>").append(t);"select"===n&&(i=m("<option/>"),m(this).find(".default").is(":checked")&&i.attr("selected","selected")),i.append(m(this).find(".label").val()),m(this).find(".default").is(":checked")&&i.find("input").prop("checked",!0),s.append(i)})},choicesUpdate:function(){m("body").on("click",".evf-choices-list a.add",function(){var e=m(this).closest("li").clone();e.find('input[type="text"]').val("");var t=m(this).closest(".evf-choices-list"),i=t.attr("data-field-id"),s=t.attr("data-next-id");e.find('input[type="checkbox"],input[type="radio"]').prop("checked",!1),e.attr("data-key",s),e.find(".default").attr("name","form_fields["+i+"][choices]["+s+"][default]"),e.find(".label").attr("name","form_fields["+i+"][choices]["+s+"][label]"),e.find(".value").attr("name","form_fields["+i+"][choices]["+s+"][value]"),m(this).closest("li").after(e),s++,m(this).closest(".evf-choices-list").attr("data-next-id",s),u.choiceChange(i)}),m("body").on("click",".evf-choices-list a.remove",function(){var e=m(this).closest(".evf-choices-list"),t=e.attr("data-field-id");e.find("li").length<2?m.alert({title:!1,content:p.i18n_field_error_choice,icon:"dashicons dashicons-info",type:"blue",buttons:{ok:{text:p.i18n_ok,btnClass:"btn-confirm",keys:["enter"]}}}):(m(this).closest("li").remove(),u.choiceChange(t))});m("body").on("keyup paste click",".evf-choices-list input",function(){var e=m(this).closest(".evf-choices-list").attr("data-field-id");"radio"===m(this).attr("type").toLowerCase()&&m(this).is(":checked")&&(m(this).closest(".evf-choices-list").find('input[type="radio"]').prop("checked",!1),m(this).prop("checked",!0)),u.choiceChange(e)})},bindFormSettings:function(){m("body").on("click",".evf-setting-panel",function(e){var t=m(this).attr("data-section");m(".evf-setting-panel").removeClass("active"),m(".everest-forms-active-email").removeClass("active"),m(".evf-content-section").removeClass("active"),m(this).addClass("active"),m(".evf-content-"+t+"-settings").addClass("active"),e.preventDefault()}),m(".evf-setting-panel").eq(0).trigger("click")},bindFormEmail:function(){m("body").on("click",".everest-forms-panel-sidebar-section-email",function(e){m(this).siblings(".everest-forms-active-email").removeClass("active"),m(this).next(".everest-forms-active-email").addClass("active");var t=m(this).siblings(".everest-forms-active-email.active").find(".everest-forms-active-email-connections-list li");t.length&&t.children(".user-nickname").first().trigger("click"),e.preventDefault()})},bindFormIntegrations:function(){m("body").on("click",".evf-integrations-panel",function(e){var t=m(this).attr("data-section");m(".evf-integrations-panel").removeClass("active"),m("#everest-forms-panel-integrations").find(".evf-panel-content-section").removeClass("active"),m(this).addClass("active"),m(this).parent().find(".everest-forms-active-connections").removeClass("active"),m(this).next(".everest-forms-active-connections").addClass("active");var i=m(this).siblings(".everest-forms-active-connections.active").find(".everest-forms-active-connections-list li");i.length&&i.children(".user-nickname").first().trigger("click"),m(".evf-panel-content-section-"+t).addClass("active"),e.preventDefault()}),m(".evf-setting-panel").eq(0).trigger("click")},bindFormPayment:function(){m("body").on("click",".evf-payments-panel",function(e){var t=m(this).attr("data-section");m(".evf-payments-panel").removeClass("active"),m(this).siblings().removeClass("icon active"),m(this).addClass("active"),m(this).parents("#everest-forms-panel-payments").find(".evf-payment-setting-content").removeClass("active").hide(),m(".evf-content-"+t+"-settings").addClass("active").show(),e.preventDefault()}),m(".evf-setting-panel").eq(0).trigger("click")},removeRow:function(e){m.each(e.find(".everest-forms-field"),function(){var e=m(this).attr("data-field-id"),t=m("#everest-forms-field-option-"+e);m(this).remove(),t.remove()}),e.remove()},bindRemoveRow:function(){m("body").on("click",".evf-delete-row",function(){var e=m(this),t=m(".evf-admin-row").length,i=e.closest(".evf-admin-row"),s=e.parents(".evf-admin-field-container").attr("data-current-part"),n=m("#everest-forms-builder").hasClass("multi-part-activated");s&&n&&(t=m("#part_"+s).find(".evf-admin-row").length),t<2?m.alert({title:p.i18n_row_locked,content:p.i18n_row_locked_msg,icon:"dashicons dashicons-info",type:"blue",buttons:{confirm:{text:p.i18n_close,btnClass:"btn-confirm",keys:["enter"]}}}):m.confirm({title:!1,content:p.i18n_delete_row_confirm,type:"red",closeIcon:!1,backgroundDismiss:!1,icon:"dashicons dashicons-warning",buttons:{confirm:{text:p.i18n_ok,btnClass:"btn-confirm",keys:["enter"],action:function(){u.removeRow(i)}},cancel:{text:p.i18n_cancel}}})})},bindAddNewRow:function(){m("body").on("click",".evf-add-row span",function(){var e=m(this),t=m(".evf-admin-field-wrapper"),i=m(".evf-admin-row").eq(0).clone(),s=e.parent().attr("data-total-rows"),n=e.parents(".evf-admin-field-container").attr("data-current-part");s++,n&&(t=m(".evf-admin-field-wrapper").find("#part_"+n)),i.find(".evf-admin-grid").html(""),i.attr("data-row-id",s),e.parent().attr("data-total-rows",s),t.append(i),u.bindFields(),u.checkEmptyGrid()})},bindCloneField:function(){m("body").on("click",".everest-forms-preview .everest-forms-field .everest-forms-field-duplicate",function(){var e=m(this).closest(".everest-forms-field");e.hasClass("no-duplicate")?m.alert({title:p.i18n_field_locked,content:p.i18n_field_locked_msg,icon:"dashicons dashicons-info",type:"blue",buttons:{confirm:{text:p.i18n_close,btnClass:"btn-confirm",keys:["enter"]}}}):m.confirm({title:!1,content:p.i18n_duplicate_field_confirm,type:"orange",closeIcon:!1,backgroundDismiss:!1,icon:"dashicons dashicons-warning",buttons:{confirm:{text:p.i18n_ok,btnClass:"btn-confirm",keys:["enter"],action:function(){u.cloneFieldAction(e)}},cancel:{text:p.i18n_cancel}}})})},cloneFieldAction:function(s){var n=s.attr("data-field-id"),e=p.form_id,t={action:"everest_forms_get_next_id",security:p.evf_get_next_id,form_id:e};m.ajax({url:p.ajax_url,data:t,type:"POST",beforeSend:function(){m(document.body).trigger("init_field_options_toggle")},success:function(e){if("boolean"==typeof e.success&&!0===e.success){var t=e.data.field_id,i=e.data.field_key;m("#everest-forms-field-id").val(t),u.render_node(s,n,i),m(document.body).trigger("init_field_options_toggle")}}})},render_node:function(e,n,o){var t=m(".everest-forms-field-options #everest-forms-field-option-"+n),i=m("#everest-forms-field-option-"+n+"-label").val(),s=m("#everest-forms-field-option-"+n+"-meta-key").val(),a=e.attr("data-field-type"),r=t.html(),d=i+" "+p.i18n_copy,l="html"!==a?s.replace(/\(|\)/g,"").toLowerCase().substring(0,s.lastIndexOf("_"))+"_"+Math.floor(1e3+9e3*Math.random()):"",f=e.clone(),c=new RegExp(n,"g");r=r.replace(c,o);var v=m('<div class="everest-forms-field-option everest-forms-field-option-'+a+'" id="everest-forms-field-option-'+o+'" data-field-id="'+o+'" />');v.append(r),m.each(t.find(":input"),function(){var e=m(this).attr("type"),t=m(this).attr("name").replace(c,o),i="";if("text"===e||"hidden"===e)i=m(this).val(),v.find('input[name="'+t+'"]').val(i),v.find('input[value="'+n+'"]').val(o);else if("checkbox"===e||"radio"===e)m(this).is(":checked")?v.find('input[name="'+t+'"]').prop("checked",!0).attr("checked","checked"):v.find('[name="'+t+'"]').prop("checked",!1).attr("checked",!1);else if(m(this).is("select")){if(m(this).find("option:selected").length){var s=m(this).find("option:selected").val();v.find('[name="'+t+'"]').find('[value="'+s+'"]').prop("selected",!0)}}else""!==m(this).val()&&v.find('[name="'+t+'"]').val(m(this).val())}),m(".everest-forms-field-options").append(v),m("#everest-forms-field-option-"+o+"-label").val(d),m("#everest-forms-field-option-"+o+"-meta-key").val(l),f.attr("class",e.attr("class")),f.attr("id","everest-forms-field-"+o),f.attr("data-field-id",o),f.attr("data-field-type",a),f.find(".label-title .text").text(d),e.closest(".evf-admin-grid").find('[data-field-id="'+n+'"]').after(f),m(document).trigger("everest-form-cloned",[o,a]),u.switchToFieldOptionPanel(o)},bindFieldDelete:function(){m("body").on("click",".everest-forms-preview .everest-forms-field .everest-forms-field-delete",function(){var t=m(this).closest(".everest-forms-field"),e=t.attr("data-field-id"),i=m("#everest-forms-field-option-"+e);m(this).closest(".evf-admin-grid");t.hasClass("no-delete")?m.alert({title:p.i18n_field_locked,content:p.i18n_field_locked_msg,icon:"dashicons dashicons-info",type:"blue",buttons:{confirm:{text:p.i18n_close,btnClass:"btn-confirm",keys:["enter"]}}}):m.confirm({title:!1,content:p.i18n_delete_field_confirm,type:"red",closeIcon:!1,backgroundDismiss:!1,icon:"dashicons dashicons-warning",buttons:{confirm:{text:p.i18n_ok,btnClass:"btn-confirm",keys:["enter"],action:function(){m(".evf-panel-fields-button").trigger("click"),t.fadeOut("slow",function(){var e=t.attr("data-field-id");m(document.body).trigger("evf_before_field_deleted",[e]),t.remove(),i.remove(),u.checkEmptyGrid(),m(".everest-forms-fields-tab").find("a").removeClass("active"),m(".everest-forms-fields-tab").find("a").first().addClass("active"),m(".everest-forms-add-fields").show(),u.conditionalLogicRemoveField(e),u.conditionalLogicRemoveFieldIntegration(e)})}},cancel:{text:p.i18n_cancel}}})})},bindSaveOption:function(){m("body").on("click",".everest-forms-save-button",function(){var t=m(this),e=m("form#everest-forms-builder-form"),i=u.getStructure(),s=e.serializeArray();e.triggerHandler("everest_forms_process_ajax_data",[t,s])&&(s=e.triggerHandler("everest_forms_process_ajax_data",[t,s])),m(".everest-forms-panel-content-wrap").block({message:null,overlayCSS:{background:"#fff",opacity:.6}});var n=s.concat(i),o={action:"everest_forms_save_form",security:p.evf_save_form,form_data:JSON.stringify(n)};m.ajax({url:p.ajax_url,data:o,type:"POST",beforeSend:function(){t.addClass("processing"),t.find(".loading-dot").remove(),t.append('<span class="loading-dot"></span>')},success:function(e){t.removeClass("processing"),t.find(".loading-dot").remove(),e.success||m.alert({title:e.data.errorTitle,content:e.data.errorMessage,icon:"dashicons dashicons-warning",type:"red",buttons:{ok:{text:p.i18n_ok,btnClass:"btn-confirm",keys:["enter"]}}}),m(".everest-forms-panel-content-wrap").unblock()}})})},getStructure:function(){var e=m(".evf-admin-field-wrapper"),o=[];return m.each(e.find(".evf-admin-row"),function(){var e=m(this),n=e.attr("data-row-id");m.each(e.find(".evf-admin-grid"),function(){var e=m(this),i=e.attr("data-grid-id"),s=0;m.each(e.find(".everest-forms-field"),function(){var e={name:"",value:""},t=m(this).attr("data-field-id");e.name="structure[row_"+n+"][grid_"+i+"]["+s+"]",s++,e.value=t,o.push(e)}),e.find(".everest-forms-field").length<1&&o.push({name:"structure[row_"+n+"][grid_"+i+"]",value:""})})}),o},getFieldArray:function(e){var t=[];return m.each(e.find(".everest-forms-field"),function(){var e=m(this).attr("data-field-id");t.push(e)}),t},checkEmptyGrid:function(e){m.each(m(".evf-admin-grid"),function(){m(this).find(".everest-forms-field, .evf-registered-item:not(.ui-draggable-dragging)").not(".ui-sortable-helper").length<1?m(this).addClass("evf-empty-grid"):m(this).removeClass("evf-empty-grid")}),u.choicesInit()},bindDefaultTabs:function(){m(document).on("click",".evf-nav-tab-wrapper a",function(e){e.preventDefault(),u.switchTab(m(this).data("panel"))})},switchTab:function(e){var t=m("#everest-forms-panel-"+e),i=m(".evf-panel-"+e+"-button");m(".evf-nav-tab-wrapper").find("a").removeClass("nav-tab-active"),i.addClass("nav-tab-active"),t.closest(".evf-tab-content").find(".everest-forms-panel").removeClass("active"),t.addClass("active"),"integrations"!==e&&"payments"!==e||(t.find(".everest-forms-panel-sidebar a").hasClass("active")||t.find(".everest-forms-panel-sidebar a").first().addClass("active"),m(".everest-forms-panel-content").find(".evf-panel-content-section").hasClass("active")||m(".everest-forms-panel-content").find(".evf-panel-content-section").first().addClass("active")),history.replaceState({},null,u.updateQueryString("tab",e)),u.switchPanel(e)},updateQueryString:function(e,t,i){i=i||window.location.href;var s,n=new RegExp("([?&])"+e+"=.*?(&|#|$)(.*)","gi");if(n.test(i))return null!=t?i.replace(n,"$1"+e+"="+t+"$2$3"):(i=(s=i.split("#"))[0].replace(n,"$1$3").replace(/(&|\?)$/,""),"undefined"!=typeof s[1]&&null!==s[1]&&(i+="#"+s[1]),i);if(null==t)return i;var o=-1!==i.indexOf("?")?"&":"?";return i=(s=i.split("#"))[0]+o+e+"="+t,"undefined"!=typeof s[1]&&null!==s[1]&&(i+="#"+s[1]),i},switchPanel:function(e){"field-options"===e&&u.switchToFieldOptionPanel()},switchToFieldOptionPanel:function(e){m(".everest-forms-field-options").find(".no-fields").hide(),m(".evf-admin-field-wrapper .everest-forms-field").removeClass("active"),m("#everest-forms-panel-fields").addClass("active"),m(".everest-forms-fields-tab").find("a").removeClass("active"),m(".everest-forms-fields-tab").find("a").last().addClass("active"),m(".everest-forms-add-fields").hide(),m(".everest-forms-field-options").show(),m(".everest-forms-field-options").find(".everest-forms-field-option").hide(),m(".evf-tab-lists").find("li a").removeClass("active"),m(".evf-tab-lists").find("li.evf-panel-field-options-button a").addClass("active"),m(document.body).trigger("evf-init-switch-field-options"),void 0!==e?(m("#everest-forms-field-option-"+e).show(),m("#everest-forms-field-"+e).addClass("active")):0<m(".evf-admin-field-wrapper .everest-forms-field").length?(m(".evf-admin-field-wrapper .everest-forms-field").eq(0).addClass("active"),m("#everest-forms-field-option-"+m(".evf-admin-field-wrapper .everest-forms-field").eq(0).attr("data-field-id")).show()):m(".everest-forms-field-options").find(".no-fields").show()},bindFields:function(){m(".evf-admin-field-wrapper").sortable({items:".evf-admin-row",axis:"y",cursor:"move",opacity:.65,scrollSensitivity:40,forcePlaceholderSize:!0,placeholder:"evf-sortable-placeholder",containment:".everest-forms-panel-content",start:function(e,t){t.item.css({"background-color":"#f7fafc",border:"1px dashed #5d96ee"})},stop:function(e,t){t.item.removeAttr("style")}}).disableSelection(),m(".evf-admin-grid").sortable({items:"> .everest-forms-field",delay:100,opacity:.65,cursor:"move",scrollSensitivity:40,forcePlaceholderSize:!0,connectWith:".evf-admin-grid",containment:".everest-forms-field-wrap",out:function(e){m(".evf-admin-grid").removeClass("evf-hover"),m(e.target).removeClass("evf-item-hover"),m(e.target).closest(".evf-admin-row").removeClass("evf-hover"),u.checkEmptyGrid()},over:function(e,t){m(".evf-admin-grid").addClass("evf-hover"),m(e.target).addClass("evf-item-hover"),m(e.target).closest(".evf-admin-row").addClass("evf-hover"),u.checkEmptyGrid()},receive:function(e,t){t.sender.is("button")&&u.fieldDrop(t.helper)},stop:function(e,t){t.item.removeAttr("style"),u.checkEmptyGrid()}}).disableSelection(),m(".evf-registered-buttons button.evf-registered-item").draggable({delay:200,cancel:!1,scroll:!1,revert:"invalid",scrollSensitivity:40,forcePlaceholderSize:!0,helper:function(){return m(this).clone().insertAfter(m(this).closest(".everest-forms-tab-content").siblings(".everest-forms-fields-tab"))},opacity:.75,containment:"#everest-forms-builder",connectToSortable:".evf-admin-grid"}).disableSelection(),m(".evf-admin-row").on("mouseenter mouseleave",function(e){e.buttons<1&&("mouseenter"===e.type?m(this).addClass("evf-hover"):m(".evf-admin-row").removeClass("evf-hover"))}),m(".everest-forms-panel-content").on("scroll",function(){m(".evf-admin-grid").sortable("refreshPositions"),m(".evf-admin-field-wrapper").sortable("refreshPositions")})},fieldTabChoice:function(e){m(".everest-forms-tab-content").scrollTop(0),m(".everest-forms-fields-tab a").removeClass("active"),m(".everest-forms-field, .everest-forms-title-desc").removeClass("active"),m("#"+e).addClass("active"),"add-fields"===e?(m(".everest-forms-add-fields").show(),m(".everest-forms-field-options").hide()):("field-options"===e?(e=m(".everest-forms-field").first().data("field-id"),m(".everest-forms-field-options").show(),m(".everest-forms-field").first().addClass("active")):m("#everest-forms-field-"+e).addClass("active"),m(".everest-forms-field-option").hide(),m("#everest-forms-field-option-"+e).show(),m(".everest-forms-add-fields").hide())},bindFormPreview:function(){},bindGridSwitcher:function(){m("body").on("click",".evf-show-grid",function(e){e.stopPropagation(),u.checkEmptyGrid(),m(this).closest(".evf-toggle-row").find(".evf-toggle-row-content").stop(!0).slideToggle(200)}),m(document).click(function(){u.checkEmptyGrid(),m(".evf-show-grid").closest(".evf-toggle-row").find(".evf-toggle-row-content").stop(!0).slideUp(200)});m("body").on("click",".evf-grid-selector",function(){var e=m(this).closest(".evf-admin-row");if(!m(this).hasClass("active")){var t=parseInt(m(this).attr("data-evf-grid"),10);if(!(2<t)){var i=m('<div class="evf-admin-grid evf-grid-'+t+' ui-sortable evf-empty-grid" />'),s=m("<div/>");m.each(e.find(".evf-admin-grid"),function(){m(this).children("*").each(function(){s.append(m(this).clone())})}),e.find(".evf-admin-grid").remove(),e.find(".evf-clear ").remove(),e.append('<div class="clear evf-clear"></div>');for(var n=1;n<=t;n++)i.attr("data-grid-id",n),e.append(i.clone());e.append('<div class="clear evf-clear"></div>'),e.find(".evf-admin-grid").eq(0).append(s.html()),e.find(".evf-grid-selector").removeClass("active"),m(this).addClass("active"),u.bindFields()}}})},fieldDrop:function(a){var e=a.attr("data-field-type");a.css({left:"0",width:"100%"}).append('<i class="spinner is-active"></i>'),m.ajax({url:p.ajax_url,type:"POST",data:{action:"everest_forms_new_field_"+e,security:p.evf_field_drop_nonce,field_type:e,form_id:p.form_id},beforeSend:function(){m(document.body).trigger("init_field_options_toggle")},success:function(e){var t=e.data.preview,i=e.data.options,s=e.data.form_field_id,n=m(t).attr("id"),o=m(t).attr("data-field-id");m("#everest-forms-field-id").val(s),m(".everest-forms-field-options").find(".no-fields").hide(),m(".everest-forms-field-options").append(i),m(".everest-forms-field-option-row-icon_color input.colorpicker").wpColorPicker({change:function(e){var t=m(this),i=t.val(),s=t.closest(".everest-forms-field-option-row").data("field-id");m("#everest-forms-field-"+s+" .rating-icon svg").css("fill",i)}}),a.after(t),null!==m("#everest-forms-panel-field-settings-enable_survey")&&m("#everest-forms-panel-field-settings-enable_survey").prop("checked")&&m("#everest-forms-field-option-"+o+"-survey_status").prop("checked",!0),null!==m("#everest-forms-panel-field-settings-enable_quiz")&&m("#everest-forms-panel-field-settings-enable_quiz").prop("checked")&&(m("#everest-forms-field-option-"+o+"-quiz_status").prop("checked",!0),m("#everest-forms-field-option-"+o+"-quiz_status").closest(".everest-forms-field-option-row-quiz_status").siblings(".everst-forms-field-quiz-settings").removeClass("everest-forms-hidden").addClass("everest-forms-show")),a.remove(),u.checkEmptyGrid(),m(document.body).trigger("init_tooltips"),m(document.body).trigger("init_field_options_toggle"),m(document.body).trigger("evf_after_field_append",[n]),u.conditionalLogicAppendField(n),u.conditionalLogicAppendFieldIntegration(n)}})},conditionalLogicAppendField:function(a){var e=m("#"+a),r=e.index(),d=m(".evf-field-conditional-field-select"),l=e.attr("data-field-type"),f=e.attr("data-field-id"),c=e.find(".label-title .text ").text();m.fn.insertAt=function(e,t,i){var s=m.makeArray(this.children().clone(!0));s.splice(t,0,e),m.each(s,function(e,t){i===m(t)[0].value&&(m(t)[0].selected=!0,s[e]=t)}),this.empty().append(s)};var v=f;d.each(function(s,e){var t=m(e).val(),i=a.replace("everest-forms-field-",""),n=m(e).attr("name");if(i===n.substring(n.indexOf("[")+1,n.indexOf("]")))m(".evf-admin-row .evf-admin-grid .everest-forms-field").each(function(){var e=m(this).data("field-type"),t=m(this).data("field-id"),i=m(this).find(".label-title span").first().text();field_to_be_restricted=[],field_to_be_restricted=["html","title","address","image-upload","file-upload","date-time","hidden","scale-rating","likert"],-1===m.inArray(e,field_to_be_restricted)&&v!==t&&d.eq(s).append('<option class="evf-conditional-fields" data-field_type="'+e+'" data-field_id="'+t+'" value="'+t+'">'+i+"</option>")});else{var o='<option class="evf-conditional-fields" data-field_type="'+l+'" data-field_id="'+f+'" value="'+f+'">'+c+"</option>";"html"!==l&&"title"!==l&&"address"!==l&&"image-upload"!==l&&"file-upload"!==l&&"date-time"!==l&&"hidden"!==l&&"likert"!==l&&"scale-rating"!==l&&d.eq(s).insertAt(o,r,t)}})},conditionalLogicAppendFieldIntegration:function(o){var a=m("#"+o),r=a.index(),d=m(".evf-provider-conditional").find(".evf-conditional-field-select"),l=a.attr("data-field-type"),f=a.attr("data-field-id"),c=a.find(".label-title .text ").text();m.fn.insertAt=function(e,t){var i=m.makeArray(this.children().clone(!0));i.splice(t,0,e),this.empty().append(i)},d.each(function(s,e){var t=o.replace("everest-forms-field-",""),i=m(e).attr("name");if(t===i.substring(i.indexOf("[")+1,i.indexOf("]")))m(".evf-admin-row .evf-admin-grid .everest-forms-field").each(function(){var e=m(this).data("field-type"),t=m(this).data("field-id"),i=m(this).find(".label-title span").first().text();field_to_be_restricted=[],field_to_be_restricted=["html","title","address","image-upload","file-upload","date-time","hidden","scale-rating","likert",a.attr("data-field-type")],-1===m.inArray(e,field_to_be_restricted)&&d.eq(s).append('<option class="evf-conditional-fields" data-field_type="'+e+'" data-field_id="'+t+'" value="'+t+'">'+i+"</option>")});else{var n='<option class="evf-conditional-fields" data-field_type="'+l+'" data-field_id="'+f+'" value="'+f+'">'+c+"</option>";"html"!==l&&"title"!==l&&"address"!==l&&"image-upload"!==l&&"file-upload"!==l&&"date-time"!==l&&"hidden"!==l&&"likert"!==l&&"scale-rating"!==l&&d.eq(s).insertAt(n,r)}})},conditionalLogicRemoveField:function(e){m(".evf-field-conditional-field-select option[value = "+e+" ]").remove()},conditionalLogicRemoveFieldIntegration:function(e){m(".evf-provider-conditional .evf-conditional-field-select option[value = "+e+" ]").remove()},bindFieldSettings:function(){m("body").on("click",".everest-forms-preview .everest-forms-field, .everest-forms-preview .everest-forms-field .everest-forms-field-setting",function(e){e.preventDefault();var t=m(this).closest(".everest-forms-field").attr("data-field-id");m(".everest-forms-tab-content").scrollTop(0),u.switchToFieldOptionPanel(t)})}};m(function(){u.init()})}(jQuery,window.evf_data),jQuery(function(){"checked"!=jQuery("#everest-forms-panel-field-settingsemail-evf_send_confirmation_email").attr("checked")&&jQuery("#everest-forms-panel-field-settingsemail-evf_send_confirmation_email-wrap").nextAll().hide(),jQuery("#everest-forms-panel-field-settingsemail-evf_send_confirmation_email").on("change",function(){"checked"!=jQuery(this).attr("checked")?jQuery("#everest-forms-panel-field-settingsemail-evf_send_confirmation_email-wrap").nextAll().hide():jQuery("#everest-forms-panel-field-settingsemail-evf_send_confirmation_email-wrap").nextAll().show()});var e=jQuery("#everest-forms-panel-field-settings-redirect_to option:selected").val();"0"==e?(jQuery("#everest-forms-panel-field-settings-custom_page-wrap").hide(),jQuery("#everest-forms-panel-field-settings-external_url-wrap").hide()):"1"==e?(jQuery("#everest-forms-panel-field-settings-custom_page-wrap").show(),jQuery("#everest-forms-panel-field-settings-external_url-wrap").hide()):"2"==e&&(jQuery("#everest-forms-panel-field-settings-external_url-wrap").show(),jQuery("#everest-forms-panel-field-settings-custom_page-wrap").hide()),jQuery("#everest-forms-panel-field-settings-redirect_to").on("change",function(){"0"==this.value?(jQuery("#everest-forms-panel-field-settings-custom_page-wrap").hide(),jQuery("#everest-forms-panel-field-settings-external_url-wrap").hide()):"1"==this.value?(jQuery("#everest-forms-panel-field-settings-custom_page-wrap").show(),jQuery("#everest-forms-panel-field-settings-external_url-wrap").hide()):"2"==this.value&&(jQuery("#everest-forms-panel-field-settings-custom_page-wrap").hide(),jQuery("#everest-forms-panel-field-settings-external_url-wrap").show())}),jQuery(".evf-panel-field-options-button.evf-disabled-tab").hide()}),jQuery(function(f){f(document.body).on("init_add_fields_toogle",function(){f(".everest-forms-add-fields").on("click",".everest-forms-add-fields-group > a",function(e){e.preventDefault(),f(this).parent(".everest-forms-add-fields-group").toggleClass("closed").toggleClass("open")}),f(".everest-forms-add-fields").on("click",".everest-forms-add-fields-group a",function(){f(this).next(".evf-registered-buttons").stop().slideToggle()}),f(".everest-forms-add-fields-group.closed").each(function(){f(this).find(".evf-registered-buttons").hide()})}).trigger("init_add_fields_toogle"),f(document.body).on("init_field_options_toggle",function(){f(".everest-forms-field-option").on("click",".everest-forms-field-option-group > a",function(e){e.preventDefault(),f(this).parent(".everest-forms-field-option-group").toggleClass("closed").toggleClass("open")}),f(".everest-forms-field-option").on("click",".everest-forms-field-option-group a",function(e){f(e.target).filter(":input, option, .sort").length||f(this).next(".everest-forms-field-option-group-inner").stop().slideToggle()}),f(".everest-forms-field-option-group.closed").each(function(){f(this).find(".everest-forms-field-option-group-inner").hide()})}).trigger("init_field_options_toggle"),f(document).click(function(){f(".evf-smart-tag-lists").hide()}),f(document.body).on("click",".evf-toggle-smart-tag-display",function(e){e.stopPropagation(),f(".evf-smart-tag-lists").hide(),f(".evf-smart-tag-lists ul").empty(),f(this).parent().find(".evf-smart-tag-lists").toggle("show");var t=f(this).data("type");!function l(n,e,t){var o=[],a=[],r=[];if(f(".evf-admin-row .evf-admin-grid .everest-forms-field").each(function(){var e=f(this).data("field-type"),t=f(this).data("field-id");if(n===e){var i=f(this).find(".label-title span").first().text();r[t]=i}else{var s=f(this).find(".label-title span").first().text();o[t]=s}a[t]=f(this).find(".label-title span").first().text()}),"other"===e||"all"===e){var i=evf_data.smart_tags_other;for(var s in i)f(t).parent().find(".evf-smart-tag-lists .evf-others").append('<li class = "smart-tag-field" data-type="other" data-field_id="'+s+'">'+i[s]+"</li>")}if("fields"===e||"all"===e)if("email"===n)for(var s in Object.keys(r).length<1?f(t).parent().find('.evf-smart-tag-lists .smart-tag-title:not(".other-tag-title")').addClass("everest-forms-hidden"):f(t).parent().find('.evf-smart-tag-lists .smart-tag-title:not(".other-tag-title")').removeClass("everest-forms-hidden"),f(t).parent().find(".evf-smart-tag-lists .other-tag-title").remove(),f(t).parent().find(".evf-smart-tag-lists .evf-others").remove(),f(t).parent().find(".evf-smart-tag-lists").append('<div class="smart-tag-title other-tag-title">Others</div><ul class="evf-others"></ul>'),f(t).parent().find(".evf-smart-tag-lists .evf-others").append('<li class="smart-tag-field" data-type="other" data-field_id="admin_email">Site Admin Email</li><li class="smart-tag-field" data-type="other" data-field_id="user_email">User Email</li>'),r)f(t).parent().find(".evf-smart-tag-lists .evf-fields").append('<li class = "smart-tag-field" data-type="field" data-field_id="'+s+'">'+r[s]+"</li>");else for(var d in Object.keys(a).length<1?f(t).parent().find('.evf-smart-tag-lists .smart-tag-title:not(".other-tag-title")').addClass("everest-forms-hidden"):f(t).parent().find('.evf-smart-tag-lists .smart-tag-title:not(".other-tag-title")').removeClass("everest-forms-hidden"),a)f(t).parent().find(".evf-smart-tag-lists .evf-fields").append('<li class = "smart-tag-field" data-type="field" data-field_id="'+d+'">'+a[d]+"</li>")}(f(this).data("fields"),t,f(this))}),f(document.body).on("change",".everest-forms-toggle-form input",function(e){e.stopPropagation(),f.post(evf_data.ajax_url,{action:"everest_forms_enabled_form",security:evf_data.evf_enabled_form,form_id:f(this).data("form_id"),enabled:f(this).attr("checked")?1:0})}),f(document.body).on("click",".smart-tag-field",function(e){var t=f(this).data("field_id"),i=f(this).text(),s=f(this).data("type"),n=f(this).parent().parent().parent(),o=n.find("input[type=text]"),a=n.find("textarea");if("fullname"!==t&&"email"!==t&&"subject"!==t&&"message"!==t&&"other"!==s){i=i.split(/[\s-_]/);for(var r=0;r<i.length;r++)i[r]=0===r?i[r].charAt(0).toLowerCase()+i[r].substr(1):i[r].charAt(0).toUpperCase()+i[r].substr(1);t=(i=i.join(""))+"_"+t}else t=t;"field"===s?(o.val(o.val()+'{field_id="'+t+'"}'),a.val(a.val()+'{field_id="'+t+'"}')):"other"===s&&(o.val(o.val()+"{"+t+"}"),a.val(a.val()+"{"+t+"}"))}),f(document).on("change",".evf-content-email-settings .evf-toggle-switch input",function(e){var t=f(this),i=t.prop("checked");!1===i?(f(this).closest("#everest-forms-panel-settings").find(".everest-forms-active-email").addClass("everest-forms-hidden"),t.closest(".evf-content-email-settings").find(".email-disable-message").remove(),t.closest(".evf-content-section-title").siblings(".evf-content-email-settings-inner").addClass("everest-forms-hidden"),f('<p class="email-disable-message everest-forms-notice everest-forms-notice-info">'+evf_data.i18n_email_disable_message+"</p>").insertAfter(t.closest(".evf-content-section-title"))):!0===i&&(f(this).closest("#everest-forms-panel-settings").find(".everest-forms-active-email").removeClass("everest-forms-hidden"),t.closest(".evf-content-section-title").siblings(".evf-content-email-settings-inner").removeClass("everest-forms-hidden"),t.closest(".evf-content-email-settings").find(".email-disable-message").remove())}),f(document).on("click",".everest-forms-min-max-date-format input",function(){f(this).is(":checked")?f(".everest-forms-min-max-date-option").removeClass("everest-forms-hidden"):f(".everest-forms-min-max-date-option").addClass("everest-forms-hidden")})});
1
+ !function(m,p){var i,u={init:function(){m(document).ready(function(e){e("evf-panel-integrations-button a").hasClass("active")||(e("#everest-forms-panel-integrations").find(".everest-forms-panel-sidebar a").first().addClass("active"),e("#everest-forms-panel-integrations").find(".everest-forms-panel-sidebar a").hasClass("active")&&e("#everest-forms-panel-integrations").find(".everest-forms-panel-sidebar a").next(".everest-forms-active-connections").first().addClass("active"),e(".everest-forms-panel-content").find(".evf-panel-content-section").first().addClass("active"))}),m(document).ready(function(s){"1"===s(".everest-forms-min-max-date-format input").val()&&s(".everest-forms-min-max-date-option").find("input").datepicker({defaultDate:"",dateFormat:"yy-mm-dd",numberOfMonths:1,showButtonPanel:!0,onSelect:function(){var e=s(this).is(".everest-forms-min-date")?"minDate":"maxDate",t=s(this).closest(".everest-forms-min-max-date-option").find("input"),i=s(this).datepicker("getDate");t.not(this).datepicker("option",e,i),s(this).change()}}),s("evf-panel-payments-button a").hasClass("active")||(s("#everest-forms-panel-payments").find(".everest-forms-panel-sidebar a").first().addClass("active"),s(".everest-forms-panel-content").find(".evf-payment-setting-content").first().addClass("active"))}),m(document.body).on("click","#copy-shortcode",this.copyShortcode).on("aftercopy","#copy-shortcode",this.copySuccess).on("aftercopyfailure","#copy-shortcode",this.copyFail),m(document).ready(u.ready),m(window).on("load",u.load),m(document.body).on("evf-init-builder-fields",function(){u.bindFields()}).trigger("evf-init-builder-fields"),m(document.body).on("adjust_builder_width",function(){var e=m("#adminmenuwrap").width();m("#everest-forms-builder-form").css({width:"calc(100% - "+e+"px)"})}).trigger("adjust_builder_width"),m(document.body).on("click","#collapse-button",function(){m("#everest-forms-builder-form").width(""),m(document.body).trigger("adjust_builder_width")}),m(window).on("resize orientationchange",function(){var e;clearTimeout(e),e=setTimeout(function(){m("#everest-forms-builder").width(""),m(document.body).trigger("adjust_builder_width")},250)}).trigger("resize")},copyShortcode:function(e){evfClearClipboard(),evfSetClipboard(m(".evf-shortcode-field").find("input").val(),m(this)),e.preventDefault()},copySuccess:function(){m("#copy-shortcode").tooltipster("content",m(this).attr("data-copied")).trigger("mouseenter").on("mouseleave",function(){var e=m(this);setTimeout(function(){e.tooltipster("content",e.attr("data-tip"))},1e3)})},copyFail:function(){m(".evf-shortcode-field").find("input").focus().select()},load:function(){m(".everest-forms-overlay").fadeOut()},ready:function(){if(i=m("#everest-forms-builder"),u.bindUIActions(),jconfirm.defaults={closeIcon:!0,backgroundDismiss:!0,escapeKey:!0,animationBounce:1,useBootstrap:!1,theme:"modern",boxWidth:"400px",columnClass:"evf-responsive-class"},"undefined"!=typeof PerfectScrollbar){var e=m(".everest-forms-tab-content"),t=m("#everest-forms-panel-settings .everest-forms-panel-sidebar");1<=e.length&&(window.evf_tab_scroller=new PerfectScrollbar(e.selector)),1<=t.length&&(window.evf_setting_scroller=new PerfectScrollbar(t.selector))}m(document).trigger("everest_forms_ready")},bindUIActions:function(){u.bindDefaultTabs(),u.checkEmptyGrid(),u.bindFields(),u.bindFormPreview(),u.bindGridSwitcher(),u.bindFieldSettings(),u.bindFieldDelete(),u.bindCloneField(),u.bindSaveOption(),u.bindAddNewRow(),u.bindRemoveRow(),u.bindFormSettings(),u.bindFormEmail(),u.bindFormIntegrations(),u.bindFormPayment(),u.choicesInit(),u.choicesUpdate(),u.bindUIActionsFields(),"field-options"===p.tab&&m(".evf-panel-field-options-button").trigger("click")},bindUIActionsFields:function(){i.on("click",".everest-forms-fields-tab a",function(e){e.preventDefault(),u.fieldTabChoice(m(this).attr("id"))}),i.on("change",".everest-forms-field-option-address input.hide",function(){var e=m(this),t=e.parent().parent().data("field-id"),i=e.parent().parent().data("subfield");m("#everest-forms-field-"+t).find(".everest-forms-"+i).toggleClass("hidden")}),i.on("input",".everest-forms-field-option-row-label input",function(){var e=m(this),t=e.val(),i=e.parent().data("field-id");m("#everest-forms-field-"+i).find(".label-title .text").text(t)}),i.on("input",".everest-forms-field-option-row-description textarea",function(){var e=m(this),t=e.val(),i=e.parent().data("field-id"),s=m("#everest-forms-field-"+i).find(".description");s.hasClass("nl2br")?s.html(t.replace(/\n/g,"<br>")):s.html(t)}),i.on("change",".everest-forms-field-option-row-required input",function(e){var t=m(this).parent().data("field-id");m("#everest-forms-field-"+t).toggleClass("required")}),i.on("change",".everest-forms-field-option-row-confirmation input",function(){var e=m(this).parent().data("field-id");m("#everest-forms-field-"+e).find(".everest-forms-confirm").toggleClass("everest-forms-confirm-enabled everest-forms-confirm-disabled"),m("#everest-forms-field-option-"+e).toggleClass("everest-forms-confirm-enabled everest-forms-confirm-disabled")}),i.on("input",".everest-forms-field-option-row-placeholder input",function(e){var t=m(this),i=t.val(),s=t.parent().data("field-id"),n=m("#everest-forms-field-"+s).find(".primary-input");n.is("select")?i.length?n.find(".placeholder").length?n.find(".placeholder").text(i):n.prepend('<option class="placeholder" selected>'+i+"</option>"):n.find(".placeholder").remove():n.attr("placeholder",i)}),i.on("input",".everest-forms-field-option-address input.placeholder",function(e){var t=m(this),i=t.val(),s=t.parent().parent().data("field-id"),n=t.parent().parent().data("subfield");m("#everest-forms-field-"+s).find(".everest-forms-"+n+" input").attr("placeholder",i)}),i.on("input",".everest-forms-field-option-row-confirmation_placeholder input",function(){var e=m(this),t=e.val(),i=e.parent().data("field-id");m("#everest-forms-field-"+i).find(".secondary-input").attr("placeholder",t)}),i.on("change",".everest-forms-field-option-row-label_hide input",function(){var e=m(this).parent().data("field-id");m("#everest-forms-field-"+e).toggleClass("label_hide")}),i.on("change",".everest-forms-field-option-row-sublabel_hide input",function(){var e=m(this).parent().data("field-id");m("#everest-forms-field-"+e).toggleClass("sublabel_hide")}),i.on("change",".everest-forms-field-option-row-datetime_format select, .everest-forms-field-option-row-phone_format select, .everest-forms-field-option-row-format select",function(e){var t=m(this),i=t.val(),s=t.parent().data("field-id");m("#everest-forms-field-"+s).find(".format-selected").removeClass().addClass("format-selected format-selected-"+i),m("#everest-forms-field-option-"+s).find(".format-selected").removeClass().addClass("format-selected format-selected-"+i)})},choicesInit:function(){m("ul.evf-choices-list").sortable({items:"li",axis:"y",cursor:"move",scrollSensitivity:40,helper:"clone",out:function(e){var t=m(e.target).attr("data-field-id");u.choiceChange(t)}})},choiceChange:function(e){var t=m("#everest-forms-field-option-row-"+e+"-choices"),i=m("#everest-forms-field-"+e),s=i.find("ul.primary-input"),n=t.find("ul.evf-choices-list").attr("data-field-type");"select"===n&&(s=i.find("select.primary-input")),s.html(""),m.each(t.find("ul.evf-choices-list").find("li"),function(){var e=m(this).find(".default").attr("type"),t=e?'<input type="'+e+'" disabled="">':"",i=m("<li/>").append(t);"select"===n&&(i=m("<option/>"),m(this).find(".default").is(":checked")&&i.attr("selected","selected")),i.append(m(this).find(".label").val()),m(this).find(".default").is(":checked")&&i.find("input").prop("checked",!0),s.append(i)})},choicesUpdate:function(){m("body").on("click",".evf-choices-list a.add",function(){var e=m(this).closest("li").clone();e.find('input[type="text"]').val("");var t=m(this).closest(".evf-choices-list"),i=t.attr("data-field-id"),s=t.attr("data-next-id");e.find('input[type="checkbox"],input[type="radio"]').prop("checked",!1),e.attr("data-key",s),e.find(".default").attr("name","form_fields["+i+"][choices]["+s+"][default]"),e.find(".label").attr("name","form_fields["+i+"][choices]["+s+"][label]"),e.find(".value").attr("name","form_fields["+i+"][choices]["+s+"][value]"),m(this).closest("li").after(e),s++,m(this).closest(".evf-choices-list").attr("data-next-id",s),u.choiceChange(i)}),m("body").on("click",".evf-choices-list a.remove",function(){var e=m(this).closest(".evf-choices-list"),t=e.attr("data-field-id");e.find("li").length<2?m.alert({title:!1,content:p.i18n_field_error_choice,icon:"dashicons dashicons-info",type:"blue",buttons:{ok:{text:p.i18n_ok,btnClass:"btn-confirm",keys:["enter"]}}}):(m(this).closest("li").remove(),u.choiceChange(t))});m("body").on("keyup paste click",".evf-choices-list input",function(){var e=m(this).closest(".evf-choices-list").attr("data-field-id");"radio"===m(this).attr("type").toLowerCase()&&m(this).is(":checked")&&(m(this).closest(".evf-choices-list").find('input[type="radio"]').prop("checked",!1),m(this).prop("checked",!0)),u.choiceChange(e)})},bindFormSettings:function(){m("body").on("click",".evf-setting-panel",function(e){var t=m(this).attr("data-section");m(".evf-setting-panel").removeClass("active"),m(".everest-forms-active-email").removeClass("active"),m(".evf-content-section").removeClass("active"),m(this).addClass("active"),m(".evf-content-"+t+"-settings").addClass("active"),e.preventDefault()}),m(".evf-setting-panel").eq(0).trigger("click")},bindFormEmail:function(){m("body").on("click",".everest-forms-panel-sidebar-section-email",function(e){m(this).siblings(".everest-forms-active-email").removeClass("active"),m(this).next(".everest-forms-active-email").addClass("active");var t=m(this).siblings(".everest-forms-active-email.active").find(".everest-forms-active-email-connections-list li");t.length&&t.children(".user-nickname").first().trigger("click"),e.preventDefault()})},bindFormIntegrations:function(){m("body").on("click",".evf-integrations-panel",function(e){var t=m(this).attr("data-section");m(".evf-integrations-panel").removeClass("active"),m("#everest-forms-panel-integrations").find(".evf-panel-content-section").removeClass("active"),m(this).addClass("active"),m(this).parent().find(".everest-forms-active-connections").removeClass("active"),m(this).next(".everest-forms-active-connections").addClass("active");var i=m(this).siblings(".everest-forms-active-connections.active").find(".everest-forms-active-connections-list li");i.length&&i.children(".user-nickname").first().trigger("click"),m(".evf-panel-content-section-"+t).addClass("active"),e.preventDefault()}),m(".evf-setting-panel").eq(0).trigger("click")},bindFormPayment:function(){m("body").on("click",".evf-payments-panel",function(e){var t=m(this).attr("data-section");m(".evf-payments-panel").removeClass("active"),m(this).siblings().removeClass("icon active"),m(this).addClass("active"),m(this).parents("#everest-forms-panel-payments").find(".evf-payment-setting-content").removeClass("active").hide(),m(".evf-content-"+t+"-settings").addClass("active").show(),e.preventDefault()}),m(".evf-setting-panel").eq(0).trigger("click")},removeRow:function(e){m.each(e.find(".everest-forms-field"),function(){var e=m(this).attr("data-field-id"),t=m("#everest-forms-field-option-"+e);m(this).remove(),t.remove()}),e.remove()},bindRemoveRow:function(){m("body").on("click",".evf-delete-row",function(){var e=m(this),t=m(".evf-admin-row").length,i=e.closest(".evf-admin-row"),s=e.parents(".evf-admin-field-container").attr("data-current-part"),n=m("#everest-forms-builder").hasClass("multi-part-activated");s&&n&&(t=m("#part_"+s).find(".evf-admin-row").length),t<2?m.alert({title:p.i18n_row_locked,content:p.i18n_row_locked_msg,icon:"dashicons dashicons-info",type:"blue",buttons:{confirm:{text:p.i18n_close,btnClass:"btn-confirm",keys:["enter"]}}}):m.confirm({title:!1,content:p.i18n_delete_row_confirm,type:"red",closeIcon:!1,backgroundDismiss:!1,icon:"dashicons dashicons-warning",buttons:{confirm:{text:p.i18n_ok,btnClass:"btn-confirm",keys:["enter"],action:function(){u.removeRow(i)}},cancel:{text:p.i18n_cancel}}})})},bindAddNewRow:function(){m("body").on("click",".evf-add-row span",function(){var e=m(this),t=m(".evf-admin-field-wrapper"),i=m(".evf-admin-row").eq(0).clone(),s=e.parent().attr("data-total-rows"),n=e.parents(".evf-admin-field-container").attr("data-current-part");s++,n&&(t=m(".evf-admin-field-wrapper").find("#part_"+n)),i.find(".evf-admin-grid").html(""),i.attr("data-row-id",s),e.parent().attr("data-total-rows",s),t.append(i),u.bindFields(),u.checkEmptyGrid()})},bindCloneField:function(){m("body").on("click",".everest-forms-preview .everest-forms-field .everest-forms-field-duplicate",function(){var e=m(this).closest(".everest-forms-field");e.hasClass("no-duplicate")?m.alert({title:p.i18n_field_locked,content:p.i18n_field_locked_msg,icon:"dashicons dashicons-info",type:"blue",buttons:{confirm:{text:p.i18n_close,btnClass:"btn-confirm",keys:["enter"]}}}):m.confirm({title:!1,content:p.i18n_duplicate_field_confirm,type:"orange",closeIcon:!1,backgroundDismiss:!1,icon:"dashicons dashicons-warning",buttons:{confirm:{text:p.i18n_ok,btnClass:"btn-confirm",keys:["enter"],action:function(){u.cloneFieldAction(e)}},cancel:{text:p.i18n_cancel}}})})},cloneFieldAction:function(s){var n=s.attr("data-field-id"),e=p.form_id,t={action:"everest_forms_get_next_id",security:p.evf_get_next_id,form_id:e};m.ajax({url:p.ajax_url,data:t,type:"POST",beforeSend:function(){m(document.body).trigger("init_field_options_toggle")},success:function(e){if("boolean"==typeof e.success&&!0===e.success){var t=e.data.field_id,i=e.data.field_key;m("#everest-forms-field-id").val(t),u.render_node(s,n,i),m(document.body).trigger("init_field_options_toggle")}}})},render_node:function(e,n,a){var t=m(".everest-forms-field-options #everest-forms-field-option-"+n),i=m("#everest-forms-field-option-"+n+"-label").val(),s=m("#everest-forms-field-option-"+n+"-meta-key").val(),o=e.attr("data-field-type"),r=t.html(),d=i+" "+p.i18n_copy,l="html"!==o?s.replace(/\(|\)/g,"").toLowerCase().substring(0,s.lastIndexOf("_"))+"_"+Math.floor(1e3+9e3*Math.random()):"",f=e.clone(),c=new RegExp(n,"g");r=r.replace(c,a);var v=m('<div class="everest-forms-field-option everest-forms-field-option-'+o+'" id="everest-forms-field-option-'+a+'" data-field-id="'+a+'" />');v.append(r),m.each(t.find(":input"),function(){var e=m(this).attr("type"),t=m(this).attr("name").replace(c,a),i="";if("text"===e||"hidden"===e)i=m(this).val(),v.find('input[name="'+t+'"]').val(i),v.find('input[value="'+n+'"]').val(a);else if("checkbox"===e||"radio"===e)m(this).is(":checked")?v.find('input[name="'+t+'"]').prop("checked",!0).attr("checked","checked"):v.find('[name="'+t+'"]').prop("checked",!1).attr("checked",!1);else if(m(this).is("select")){if(m(this).find("option:selected").length){var s=m(this).find("option:selected").val();v.find('[name="'+t+'"]').find('[value="'+s+'"]').prop("selected",!0)}}else""!==m(this).val()&&v.find('[name="'+t+'"]').val(m(this).val())}),m(".everest-forms-field-options").append(v),m("#everest-forms-field-option-"+a+"-label").val(d),m("#everest-forms-field-option-"+a+"-meta-key").val(l),f.attr("class",e.attr("class")),f.attr("id","everest-forms-field-"+a),f.attr("data-field-id",a),f.attr("data-field-type",o),f.find(".label-title .text").text(d),e.closest(".evf-admin-grid").find('[data-field-id="'+n+'"]').after(f),m(document).trigger("everest-form-cloned",[a,o]),u.switchToFieldOptionPanel(a)},bindFieldDelete:function(){m("body").on("click",".everest-forms-preview .everest-forms-field .everest-forms-field-delete",function(){var t=m(this).closest(".everest-forms-field"),e=t.attr("data-field-id"),i=m("#everest-forms-field-option-"+e);m(this).closest(".evf-admin-grid");t.hasClass("no-delete")?m.alert({title:p.i18n_field_locked,content:p.i18n_field_locked_msg,icon:"dashicons dashicons-info",type:"blue",buttons:{confirm:{text:p.i18n_close,btnClass:"btn-confirm",keys:["enter"]}}}):m.confirm({title:!1,content:p.i18n_delete_field_confirm,type:"red",closeIcon:!1,backgroundDismiss:!1,icon:"dashicons dashicons-warning",buttons:{confirm:{text:p.i18n_ok,btnClass:"btn-confirm",keys:["enter"],action:function(){m(".evf-panel-fields-button").trigger("click"),t.fadeOut("slow",function(){var e=t.attr("data-field-id");m(document.body).trigger("evf_before_field_deleted",[e]),t.remove(),i.remove(),u.checkEmptyGrid(),m(".everest-forms-fields-tab").find("a").removeClass("active"),m(".everest-forms-fields-tab").find("a").first().addClass("active"),m(".everest-forms-add-fields").show(),u.conditionalLogicRemoveField(e),u.conditionalLogicRemoveFieldIntegration(e)})}},cancel:{text:p.i18n_cancel}}})})},bindSaveOption:function(){m("body").on("click",".everest-forms-save-button",function(){var t=m(this),e=m("form#everest-forms-builder-form"),i=u.getStructure(),s=e.serializeArray();e.triggerHandler("everest_forms_process_ajax_data",[t,s])&&(s=e.triggerHandler("everest_forms_process_ajax_data",[t,s])),m(".everest-forms-panel-content-wrap").block({message:null,overlayCSS:{background:"#fff",opacity:.6}});var n=[];m(".everest-forms-field[data-field-id]").each(function(){n.push(m(this).attr("data-field-id"))});for(var a=s.length;a--;)if(s[a].name.startsWith("form_fields")){var o=!1;n.forEach(function(e){s[a].name.startsWith("form_fields["+e+"]")&&(o=!0)}),-1<a&&!1===o&&s.splice(a,1)}var r=s.concat(i),d={action:"everest_forms_save_form",security:p.evf_save_form,form_data:JSON.stringify(r)};m.ajax({url:p.ajax_url,data:d,type:"POST",beforeSend:function(){t.addClass("processing"),t.find(".loading-dot").remove(),t.append('<span class="loading-dot"></span>')},success:function(e){t.removeClass("processing"),t.find(".loading-dot").remove(),e.success||m.alert({title:e.data.errorTitle,content:e.data.errorMessage,icon:"dashicons dashicons-warning",type:"red",buttons:{ok:{text:p.i18n_ok,btnClass:"btn-confirm",keys:["enter"]}}}),m(".everest-forms-panel-content-wrap").unblock()}})})},getStructure:function(){var e=m(".evf-admin-field-wrapper"),a=[];return m.each(e.find(".evf-admin-row"),function(){var e=m(this),n=e.attr("data-row-id");m.each(e.find(".evf-admin-grid"),function(){var e=m(this),i=e.attr("data-grid-id"),s=0;m.each(e.find(".everest-forms-field"),function(){var e={name:"",value:""},t=m(this).attr("data-field-id");e.name="structure[row_"+n+"][grid_"+i+"]["+s+"]",s++,e.value=t,a.push(e)}),e.find(".everest-forms-field").length<1&&a.push({name:"structure[row_"+n+"][grid_"+i+"]",value:""})})}),a},getFieldArray:function(e){var t=[];return m.each(e.find(".everest-forms-field"),function(){var e=m(this).attr("data-field-id");t.push(e)}),t},checkEmptyGrid:function(e){m.each(m(".evf-admin-grid"),function(){m(this).find(".everest-forms-field, .evf-registered-item:not(.ui-draggable-dragging)").not(".ui-sortable-helper").length<1?m(this).addClass("evf-empty-grid"):m(this).removeClass("evf-empty-grid")}),u.choicesInit()},bindDefaultTabs:function(){m(document).on("click",".evf-nav-tab-wrapper a",function(e){e.preventDefault(),u.switchTab(m(this).data("panel"))})},switchTab:function(e){var t=m("#everest-forms-panel-"+e),i=m(".evf-panel-"+e+"-button");m(".evf-nav-tab-wrapper").find("a").removeClass("nav-tab-active"),i.addClass("nav-tab-active"),t.closest(".evf-tab-content").find(".everest-forms-panel").removeClass("active"),t.addClass("active"),"integrations"!==e&&"payments"!==e||(t.find(".everest-forms-panel-sidebar a").hasClass("active")||t.find(".everest-forms-panel-sidebar a").first().addClass("active"),m(".everest-forms-panel-content").find(".evf-panel-content-section").hasClass("active")||m(".everest-forms-panel-content").find(".evf-panel-content-section").first().addClass("active")),history.replaceState({},null,u.updateQueryString("tab",e)),u.switchPanel(e)},updateQueryString:function(e,t,i){i=i||window.location.href;var s,n=new RegExp("([?&])"+e+"=.*?(&|#|$)(.*)","gi");if(n.test(i))return null!=t?i.replace(n,"$1"+e+"="+t+"$2$3"):(i=(s=i.split("#"))[0].replace(n,"$1$3").replace(/(&|\?)$/,""),"undefined"!=typeof s[1]&&null!==s[1]&&(i+="#"+s[1]),i);if(null==t)return i;var a=-1!==i.indexOf("?")?"&":"?";return i=(s=i.split("#"))[0]+a+e+"="+t,"undefined"!=typeof s[1]&&null!==s[1]&&(i+="#"+s[1]),i},switchPanel:function(e){"field-options"===e&&u.switchToFieldOptionPanel()},switchToFieldOptionPanel:function(e){m(".everest-forms-field-options").find(".no-fields").hide(),m(".evf-admin-field-wrapper .everest-forms-field").removeClass("active"),m("#everest-forms-panel-fields").addClass("active"),m(".everest-forms-fields-tab").find("a").removeClass("active"),m(".everest-forms-fields-tab").find("a").last().addClass("active"),m(".everest-forms-add-fields").hide(),m(".everest-forms-field-options").show(),m(".everest-forms-field-options").find(".everest-forms-field-option").hide(),m(".evf-tab-lists").find("li a").removeClass("active"),m(".evf-tab-lists").find("li.evf-panel-field-options-button a").addClass("active"),m(document.body).trigger("evf-init-switch-field-options"),void 0!==e?(m("#everest-forms-field-option-"+e).show(),m("#everest-forms-field-"+e).addClass("active")):0<m(".evf-admin-field-wrapper .everest-forms-field").length?(m(".evf-admin-field-wrapper .everest-forms-field").eq(0).addClass("active"),m("#everest-forms-field-option-"+m(".evf-admin-field-wrapper .everest-forms-field").eq(0).attr("data-field-id")).show()):m(".everest-forms-field-options").find(".no-fields").show()},bindFields:function(){m(".evf-admin-field-wrapper").sortable({items:".evf-admin-row",axis:"y",cursor:"move",opacity:.65,scrollSensitivity:40,forcePlaceholderSize:!0,placeholder:"evf-sortable-placeholder",containment:".everest-forms-panel-content",start:function(e,t){t.item.css({"background-color":"#f7fafc",border:"1px dashed #5d96ee"})},stop:function(e,t){t.item.removeAttr("style")}}).disableSelection(),m(".evf-admin-grid").sortable({items:"> .everest-forms-field",delay:100,opacity:.65,cursor:"move",scrollSensitivity:40,forcePlaceholderSize:!0,connectWith:".evf-admin-grid",containment:".everest-forms-field-wrap",out:function(e){m(".evf-admin-grid").removeClass("evf-hover"),m(e.target).removeClass("evf-item-hover"),m(e.target).closest(".evf-admin-row").removeClass("evf-hover"),u.checkEmptyGrid()},over:function(e,t){m(".evf-admin-grid").addClass("evf-hover"),m(e.target).addClass("evf-item-hover"),m(e.target).closest(".evf-admin-row").addClass("evf-hover"),u.checkEmptyGrid()},receive:function(e,t){t.sender.is("button")&&u.fieldDrop(t.helper)},stop:function(e,t){t.item.removeAttr("style"),u.checkEmptyGrid()}}).disableSelection(),m(".evf-registered-buttons button.evf-registered-item").draggable({delay:200,cancel:!1,scroll:!1,revert:"invalid",scrollSensitivity:40,forcePlaceholderSize:!0,helper:function(){return m(this).clone().insertAfter(m(this).closest(".everest-forms-tab-content").siblings(".everest-forms-fields-tab"))},opacity:.75,containment:"#everest-forms-builder",connectToSortable:".evf-admin-grid"}).disableSelection(),m(".evf-admin-row").on("mouseenter mouseleave",function(e){e.buttons<1&&("mouseenter"===e.type?m(this).addClass("evf-hover"):m(".evf-admin-row").removeClass("evf-hover"))}),m(".everest-forms-panel-content").on("scroll",function(){m(".evf-admin-grid").sortable("refreshPositions"),m(".evf-admin-field-wrapper").sortable("refreshPositions")})},fieldTabChoice:function(e){m(".everest-forms-tab-content").scrollTop(0),m(".everest-forms-fields-tab a").removeClass("active"),m(".everest-forms-field, .everest-forms-title-desc").removeClass("active"),m("#"+e).addClass("active"),"add-fields"===e?(m(".everest-forms-add-fields").show(),m(".everest-forms-field-options").hide()):("field-options"===e?(e=m(".everest-forms-field").first().data("field-id"),m(".everest-forms-field-options").show(),m(".everest-forms-field").first().addClass("active")):m("#everest-forms-field-"+e).addClass("active"),m(".everest-forms-field-option").hide(),m("#everest-forms-field-option-"+e).show(),m(".everest-forms-add-fields").hide())},bindFormPreview:function(){},bindGridSwitcher:function(){m("body").on("click",".evf-show-grid",function(e){e.stopPropagation(),u.checkEmptyGrid(),m(this).closest(".evf-toggle-row").find(".evf-toggle-row-content").stop(!0).slideToggle(200)}),m(document).click(function(){u.checkEmptyGrid(),m(".evf-show-grid").closest(".evf-toggle-row").find(".evf-toggle-row-content").stop(!0).slideUp(200)});m("body").on("click",".evf-grid-selector",function(){var e=m(this).closest(".evf-admin-row");if(!m(this).hasClass("active")){var t=parseInt(m(this).attr("data-evf-grid"),10);if(!(2<t)){var i=m('<div class="evf-admin-grid evf-grid-'+t+' ui-sortable evf-empty-grid" />'),s=m("<div/>");m.each(e.find(".evf-admin-grid"),function(){m(this).children("*").each(function(){s.append(m(this).clone())})}),e.find(".evf-admin-grid").remove(),e.find(".evf-clear ").remove(),e.append('<div class="clear evf-clear"></div>');for(var n=1;n<=t;n++)i.attr("data-grid-id",n),e.append(i.clone());e.append('<div class="clear evf-clear"></div>'),e.find(".evf-admin-grid").eq(0).append(s.html()),e.find(".evf-grid-selector").removeClass("active"),m(this).addClass("active"),u.bindFields()}}})},fieldDrop:function(o){var e=o.attr("data-field-type");o.css({left:"0",width:"100%"}).append('<i class="spinner is-active"></i>'),m.ajax({url:p.ajax_url,type:"POST",data:{action:"everest_forms_new_field_"+e,security:p.evf_field_drop_nonce,field_type:e,form_id:p.form_id},beforeSend:function(){m(document.body).trigger("init_field_options_toggle")},success:function(e){var t=e.data.preview,i=e.data.options,s=e.data.form_field_id,n=m(t).attr("id"),a=m(t).attr("data-field-id");m("#everest-forms-field-id").val(s),m(".everest-forms-field-options").find(".no-fields").hide(),m(".everest-forms-field-options").append(i),m(".everest-forms-field-option-row-icon_color input.colorpicker").wpColorPicker({change:function(e){var t=m(this),i=t.val(),s=t.closest(".everest-forms-field-option-row").data("field-id");m("#everest-forms-field-"+s+" .rating-icon svg").css("fill",i)}}),o.after(t),null!==m("#everest-forms-panel-field-settings-enable_survey")&&m("#everest-forms-panel-field-settings-enable_survey").prop("checked")&&m("#everest-forms-field-option-"+a+"-survey_status").prop("checked",!0),null!==m("#everest-forms-panel-field-settings-enable_quiz")&&m("#everest-forms-panel-field-settings-enable_quiz").prop("checked")&&(m("#everest-forms-field-option-"+a+"-quiz_status").prop("checked",!0),m("#everest-forms-field-option-"+a+"-quiz_status").closest(".everest-forms-field-option-row-quiz_status").siblings(".everst-forms-field-quiz-settings").removeClass("everest-forms-hidden").addClass("everest-forms-show")),o.remove(),u.checkEmptyGrid(),m(document.body).trigger("init_tooltips"),m(document.body).trigger("init_field_options_toggle"),m(document.body).trigger("evf_after_field_append",[n]),u.conditionalLogicAppendField(n),u.conditionalLogicAppendFieldIntegration(n)}})},conditionalLogicAppendField:function(o){var e=m("#"+o),r=e.index(),d=m(".evf-field-conditional-field-select"),l=e.attr("data-field-type"),f=e.attr("data-field-id"),c=e.find(".label-title .text ").text();m.fn.insertAt=function(e,t,i){var s=m.makeArray(this.children().clone(!0));s.splice(t,0,e),m.each(s,function(e,t){i===m(t)[0].value&&(m(t)[0].selected=!0,s[e]=t)}),this.empty().append(s)};var v=f;d.each(function(s,e){var t=m(e).val(),i=o.replace("everest-forms-field-",""),n=m(e).attr("name");if(i===n.substring(n.indexOf("[")+1,n.indexOf("]")))m(".evf-admin-row .evf-admin-grid .everest-forms-field").each(function(){var e=m(this).data("field-type"),t=m(this).data("field-id"),i=m(this).find(".label-title span").first().text();field_to_be_restricted=[],field_to_be_restricted=["html","title","address","image-upload","file-upload","date-time","hidden","scale-rating","likert"],-1===m.inArray(e,field_to_be_restricted)&&v!==t&&d.eq(s).append('<option class="evf-conditional-fields" data-field_type="'+e+'" data-field_id="'+t+'" value="'+t+'">'+i+"</option>")});else{var a='<option class="evf-conditional-fields" data-field_type="'+l+'" data-field_id="'+f+'" value="'+f+'">'+c+"</option>";"html"!==l&&"title"!==l&&"address"!==l&&"image-upload"!==l&&"file-upload"!==l&&"date-time"!==l&&"hidden"!==l&&"likert"!==l&&"scale-rating"!==l&&d.eq(s).insertAt(a,r,t)}})},conditionalLogicAppendFieldIntegration:function(a){var o=m("#"+a),r=o.index(),d=m(".evf-provider-conditional").find(".evf-conditional-field-select"),l=o.attr("data-field-type"),f=o.attr("data-field-id"),c=o.find(".label-title .text ").text();m.fn.insertAt=function(e,t){var i=m.makeArray(this.children().clone(!0));i.splice(t,0,e),this.empty().append(i)},d.each(function(s,e){var t=a.replace("everest-forms-field-",""),i=m(e).attr("name");if(t===i.substring(i.indexOf("[")+1,i.indexOf("]")))m(".evf-admin-row .evf-admin-grid .everest-forms-field").each(function(){var e=m(this).data("field-type"),t=m(this).data("field-id"),i=m(this).find(".label-title span").first().text();field_to_be_restricted=[],field_to_be_restricted=["html","title","address","image-upload","file-upload","date-time","hidden","scale-rating","likert",o.attr("data-field-type")],-1===m.inArray(e,field_to_be_restricted)&&d.eq(s).append('<option class="evf-conditional-fields" data-field_type="'+e+'" data-field_id="'+t+'" value="'+t+'">'+i+"</option>")});else{var n='<option class="evf-conditional-fields" data-field_type="'+l+'" data-field_id="'+f+'" value="'+f+'">'+c+"</option>";"html"!==l&&"title"!==l&&"address"!==l&&"image-upload"!==l&&"file-upload"!==l&&"date-time"!==l&&"hidden"!==l&&"likert"!==l&&"scale-rating"!==l&&d.eq(s).insertAt(n,r)}})},conditionalLogicRemoveField:function(e){m(".evf-field-conditional-field-select option[value = "+e+" ]").remove()},conditionalLogicRemoveFieldIntegration:function(e){m(".evf-provider-conditional .evf-conditional-field-select option[value = "+e+" ]").remove()},bindFieldSettings:function(){m("body").on("click",".everest-forms-preview .everest-forms-field, .everest-forms-preview .everest-forms-field .everest-forms-field-setting",function(e){e.preventDefault();var t=m(this).closest(".everest-forms-field").attr("data-field-id");m(".everest-forms-tab-content").scrollTop(0),u.switchToFieldOptionPanel(t)})}};m(function(){u.init()})}(jQuery,window.evf_data),jQuery(function(){"checked"!=jQuery("#everest-forms-panel-field-settingsemail-evf_send_confirmation_email").attr("checked")&&jQuery("#everest-forms-panel-field-settingsemail-evf_send_confirmation_email-wrap").nextAll().hide(),jQuery("#everest-forms-panel-field-settingsemail-evf_send_confirmation_email").on("change",function(){"checked"!=jQuery(this).attr("checked")?jQuery("#everest-forms-panel-field-settingsemail-evf_send_confirmation_email-wrap").nextAll().hide():jQuery("#everest-forms-panel-field-settingsemail-evf_send_confirmation_email-wrap").nextAll().show()});var e=jQuery("#everest-forms-panel-field-settings-redirect_to option:selected").val();"0"==e?(jQuery("#everest-forms-panel-field-settings-custom_page-wrap").hide(),jQuery("#everest-forms-panel-field-settings-external_url-wrap").hide()):"1"==e?(jQuery("#everest-forms-panel-field-settings-custom_page-wrap").show(),jQuery("#everest-forms-panel-field-settings-external_url-wrap").hide()):"2"==e&&(jQuery("#everest-forms-panel-field-settings-external_url-wrap").show(),jQuery("#everest-forms-panel-field-settings-custom_page-wrap").hide()),jQuery("#everest-forms-panel-field-settings-redirect_to").on("change",function(){"0"==this.value?(jQuery("#everest-forms-panel-field-settings-custom_page-wrap").hide(),jQuery("#everest-forms-panel-field-settings-external_url-wrap").hide()):"1"==this.value?(jQuery("#everest-forms-panel-field-settings-custom_page-wrap").show(),jQuery("#everest-forms-panel-field-settings-external_url-wrap").hide()):"2"==this.value&&(jQuery("#everest-forms-panel-field-settings-custom_page-wrap").hide(),jQuery("#everest-forms-panel-field-settings-external_url-wrap").show())}),jQuery(".evf-panel-field-options-button.evf-disabled-tab").hide()}),jQuery(function(f){f(document.body).on("init_add_fields_toogle",function(){f(".everest-forms-add-fields").on("click",".everest-forms-add-fields-group > a",function(e){e.preventDefault(),f(this).parent(".everest-forms-add-fields-group").toggleClass("closed").toggleClass("open")}),f(".everest-forms-add-fields").on("click",".everest-forms-add-fields-group a",function(){f(this).next(".evf-registered-buttons").stop().slideToggle()}),f(".everest-forms-add-fields-group.closed").each(function(){f(this).find(".evf-registered-buttons").hide()})}).trigger("init_add_fields_toogle"),f(document.body).on("init_field_options_toggle",function(){f(".everest-forms-field-option").on("click",".everest-forms-field-option-group > a",function(e){e.preventDefault(),f(this).parent(".everest-forms-field-option-group").toggleClass("closed").toggleClass("open")}),f(".everest-forms-field-option").on("click",".everest-forms-field-option-group a",function(e){f(e.target).filter(":input, option, .sort").length||f(this).next(".everest-forms-field-option-group-inner").stop().slideToggle()}),f(".everest-forms-field-option-group.closed").each(function(){f(this).find(".everest-forms-field-option-group-inner").hide()})}).trigger("init_field_options_toggle"),f(document).click(function(){f(".evf-smart-tag-lists").hide()}),f(document.body).on("click",".evf-toggle-smart-tag-display",function(e){e.stopPropagation(),f(".evf-smart-tag-lists").hide(),f(".evf-smart-tag-lists ul").empty(),f(this).parent().find(".evf-smart-tag-lists").toggle("show");var t=f(this).data("type");!function l(n,e,t){var a=[],o=[],r=[];if(f(".evf-admin-row .evf-admin-grid .everest-forms-field").each(function(){var e=f(this).data("field-type"),t=f(this).data("field-id");if(n===e){var i=f(this).find(".label-title span").first().text();r[t]=i}else{var s=f(this).find(".label-title span").first().text();a[t]=s}o[t]=f(this).find(".label-title span").first().text()}),"other"===e||"all"===e){var i=evf_data.smart_tags_other;for(var s in i)f(t).parent().find(".evf-smart-tag-lists .evf-others").append('<li class = "smart-tag-field" data-type="other" data-field_id="'+s+'">'+i[s]+"</li>")}if("fields"===e||"all"===e)if("email"===n)for(var s in Object.keys(r).length<1?f(t).parent().find('.evf-smart-tag-lists .smart-tag-title:not(".other-tag-title")').addClass("everest-forms-hidden"):f(t).parent().find('.evf-smart-tag-lists .smart-tag-title:not(".other-tag-title")').removeClass("everest-forms-hidden"),f(t).parent().find(".evf-smart-tag-lists .other-tag-title").remove(),f(t).parent().find(".evf-smart-tag-lists .evf-others").remove(),f(t).parent().find(".evf-smart-tag-lists").append('<div class="smart-tag-title other-tag-title">Others</div><ul class="evf-others"></ul>'),f(t).parent().find(".evf-smart-tag-lists .evf-others").append('<li class="smart-tag-field" data-type="other" data-field_id="admin_email">Site Admin Email</li><li class="smart-tag-field" data-type="other" data-field_id="user_email">User Email</li>'),r)f(t).parent().find(".evf-smart-tag-lists .evf-fields").append('<li class = "smart-tag-field" data-type="field" data-field_id="'+s+'">'+r[s]+"</li>");else for(var d in Object.keys(o).length<1?f(t).parent().find('.evf-smart-tag-lists .smart-tag-title:not(".other-tag-title")').addClass("everest-forms-hidden"):f(t).parent().find('.evf-smart-tag-lists .smart-tag-title:not(".other-tag-title")').removeClass("everest-forms-hidden"),o)f(t).parent().find(".evf-smart-tag-lists .evf-fields").append('<li class = "smart-tag-field" data-type="field" data-field_id="'+d+'">'+o[d]+"</li>")}(f(this).data("fields"),t,f(this))}),f(document.body).on("change",".everest-forms-toggle-form input",function(e){e.stopPropagation(),f.post(evf_data.ajax_url,{action:"everest_forms_enabled_form",security:evf_data.evf_enabled_form,form_id:f(this).data("form_id"),enabled:f(this).attr("checked")?1:0})}),f(document.body).on("click",".smart-tag-field",function(e){var t=f(this).data("field_id"),i=f(this).text(),s=f(this).data("type"),n=f(this).parent().parent().parent(),a=n.find("input[type=text]"),o=n.find("textarea");if("fullname"!==t&&"email"!==t&&"subject"!==t&&"message"!==t&&"other"!==s){i=i.split(/[\s-_]/);for(var r=0;r<i.length;r++)i[r]=0===r?i[r].charAt(0).toLowerCase()+i[r].substr(1):i[r].charAt(0).toUpperCase()+i[r].substr(1);t=(i=i.join(""))+"_"+t}else t=t;"field"===s?(a.val(a.val()+'{field_id="'+t+'"}'),o.val(o.val()+'{field_id="'+t+'"}')):"other"===s&&(a.val(a.val()+"{"+t+"}"),o.val(o.val()+"{"+t+"}"))}),f(document).on("change",".evf-content-email-settings .evf-toggle-switch input",function(e){var t=f(this),i=t.prop("checked");!1===i?(f(this).closest("#everest-forms-panel-settings").find(".everest-forms-active-email").addClass("everest-forms-hidden"),t.closest(".evf-content-email-settings").find(".email-disable-message").remove(),t.closest(".evf-content-section-title").siblings(".evf-content-email-settings-inner").addClass("everest-forms-hidden"),f('<p class="email-disable-message everest-forms-notice everest-forms-notice-info">'+evf_data.i18n_email_disable_message+"</p>").insertAfter(t.closest(".evf-content-section-title"))):!0===i&&(f(this).closest("#everest-forms-panel-settings").find(".everest-forms-active-email").removeClass("everest-forms-hidden"),t.closest(".evf-content-section-title").siblings(".evf-content-email-settings-inner").removeClass("everest-forms-hidden"),t.closest(".evf-content-email-settings").find(".email-disable-message").remove())}),f(document).on("click",".everest-forms-min-max-date-format input",function(){f(this).is(":checked")?f(".everest-forms-min-max-date-option").removeClass("everest-forms-hidden"):f(".everest-forms-min-max-date-option").addClass("everest-forms-hidden")})});
assets/js/admin/settings.js CHANGED
@@ -136,6 +136,6 @@
136
  $( '#everest_forms_recaptcha_v2_invisible_site_key' ).parents( 'tr' ).eq( 0 ).hide();
137
  $( '#everest_forms_recaptcha_v2_invisible_secret_key' ).parents( 'tr' ).eq( 0 ).hide();
138
  }
139
- }).change();
140
 
141
  })( jQuery, everest_forms_settings_params );
136
  $( '#everest_forms_recaptcha_v2_invisible_site_key' ).parents( 'tr' ).eq( 0 ).hide();
137
  $( '#everest_forms_recaptcha_v2_invisible_secret_key' ).parents( 'tr' ).eq( 0 ).hide();
138
  }
139
+ });
140
 
141
  })( jQuery, everest_forms_settings_params );
assets/js/admin/settings.min.js CHANGED
@@ -1 +1 @@
1
- !function(a,t){a(document).ready(function(){jconfirm.defaults={closeIcon:!0,backgroundDismiss:!0,escapeKey:!0,animationBounce:1,useBootstrap:!1,theme:"modern",boxWidth:"400px",columnClass:"evf-responsive-class"}}),a(".colorpick").iris({change:function(e,t){a(this).parent().find(".colorpickpreview").css({backgroundColor:t.color.toString()})},hide:!0,border:!0}).on("click focus",function(e){e.stopPropagation(),a(".iris-picker").hide(),a(this).closest("td").find(".iris-picker").show(),a(this).data("original-value",a(this).val())}).on("change",function(){a(this).is(".iris-error")&&(a(this).data("original-value").match(/^\#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/)?a(this).val(a(this).data("original-value")).change():a(this).val("").change())}),a("body").on("click",function(){a(".iris-picker").hide()}),a(function(){var e=!1;a("input, textarea, select, checkbox").change(function(){e=!0}),a(".evf-nav-tab-wrapper a").click(function(){window.onbeforeunload=e?function(){return t.i18n_nav_warning}:""}),a(".submit :input").click(function(){window.onbeforeunload=""})}),a(".everest-forms").on("click",".select_all",function(){return a(this).closest("td").find("select option").attr("selected","selected"),a(this).closest("td").find("select").trigger("change"),!1}),a(".everest-forms").on("click",".select_none",function(){return a(this).closest("td").find("select option").removeAttr("selected"),a(this).closest("td").find("select").trigger("change"),!1}),a("input#everest_forms_recaptcha_type").change(function(){var e=a("#everest_forms_recaptcha_v2_site_key").parents("tr").eq(0),t=a("#everest_forms_recaptcha_v2_secret_key").parents("tr").eq(0),s=a("#everest_forms_recaptcha_v2_invisible_site_key").parents("tr").eq(0),r=a("#everest_forms_recaptcha_v2_invisible_secret_key").parents("tr").eq(0),i=a("#everest_forms_recaptcha_v2_invisible").parents("tr").eq(0),c=a("#everest_forms_recaptcha_v3_site_key").parents("tr").eq(0),n=a("#everest_forms_recaptcha_v3_secret_key").parents("tr").eq(0);a(this).is(":checked")&&("v2"===a(this).val()?(a("#everest_forms_recaptcha_v2_invisible").is(":checked")?(e.hide(),t.hide(),s.show(),r.show()):(s.hide(),r.hide(),e.show(),t.show()),i.show(),c.hide(),n.hide()):(e.hide(),t.hide(),i.hide(),s.hide(),r.hide(),c.show(),n.show()))}).change(),a("input#everest_forms_recaptcha_v2_invisible").change(function(){a(this).is(":checked")?(a("#everest_forms_recaptcha_v2_site_key").parents("tr").eq(0).hide(),a("#everest_forms_recaptcha_v2_secret_key").parents("tr").eq(0).hide(),a("#everest_forms_recaptcha_v2_invisible_site_key").parents("tr").eq(0).show(),a("#everest_forms_recaptcha_v2_invisible_secret_key").parents("tr").eq(0).show()):(a("#everest_forms_recaptcha_v2_site_key").parents("tr").eq(0).show(),a("#everest_forms_recaptcha_v2_secret_key").parents("tr").eq(0).show(),a("#everest_forms_recaptcha_v2_invisible_site_key").parents("tr").eq(0).hide(),a("#everest_forms_recaptcha_v2_invisible_secret_key").parents("tr").eq(0).hide())}).change()}(jQuery,everest_forms_settings_params);
1
+ !function(a,t){a(document).ready(function(){jconfirm.defaults={closeIcon:!0,backgroundDismiss:!0,escapeKey:!0,animationBounce:1,useBootstrap:!1,theme:"modern",boxWidth:"400px",columnClass:"evf-responsive-class"}}),a(".colorpick").iris({change:function(e,t){a(this).parent().find(".colorpickpreview").css({backgroundColor:t.color.toString()})},hide:!0,border:!0}).on("click focus",function(e){e.stopPropagation(),a(".iris-picker").hide(),a(this).closest("td").find(".iris-picker").show(),a(this).data("original-value",a(this).val())}).on("change",function(){a(this).is(".iris-error")&&(a(this).data("original-value").match(/^\#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/)?a(this).val(a(this).data("original-value")).change():a(this).val("").change())}),a("body").on("click",function(){a(".iris-picker").hide()}),a(function(){var e=!1;a("input, textarea, select, checkbox").change(function(){e=!0}),a(".evf-nav-tab-wrapper a").click(function(){window.onbeforeunload=e?function(){return t.i18n_nav_warning}:""}),a(".submit :input").click(function(){window.onbeforeunload=""})}),a(".everest-forms").on("click",".select_all",function(){return a(this).closest("td").find("select option").attr("selected","selected"),a(this).closest("td").find("select").trigger("change"),!1}),a(".everest-forms").on("click",".select_none",function(){return a(this).closest("td").find("select option").removeAttr("selected"),a(this).closest("td").find("select").trigger("change"),!1}),a("input#everest_forms_recaptcha_type").change(function(){var e=a("#everest_forms_recaptcha_v2_site_key").parents("tr").eq(0),t=a("#everest_forms_recaptcha_v2_secret_key").parents("tr").eq(0),s=a("#everest_forms_recaptcha_v2_invisible_site_key").parents("tr").eq(0),r=a("#everest_forms_recaptcha_v2_invisible_secret_key").parents("tr").eq(0),i=a("#everest_forms_recaptcha_v2_invisible").parents("tr").eq(0),c=a("#everest_forms_recaptcha_v3_site_key").parents("tr").eq(0),n=a("#everest_forms_recaptcha_v3_secret_key").parents("tr").eq(0);a(this).is(":checked")&&("v2"===a(this).val()?(a("#everest_forms_recaptcha_v2_invisible").is(":checked")?(e.hide(),t.hide(),s.show(),r.show()):(s.hide(),r.hide(),e.show(),t.show()),i.show(),c.hide(),n.hide()):(e.hide(),t.hide(),i.hide(),s.hide(),r.hide(),c.show(),n.show()))}).change(),a("input#everest_forms_recaptcha_v2_invisible").change(function(){a(this).is(":checked")?(a("#everest_forms_recaptcha_v2_site_key").parents("tr").eq(0).hide(),a("#everest_forms_recaptcha_v2_secret_key").parents("tr").eq(0).hide(),a("#everest_forms_recaptcha_v2_invisible_site_key").parents("tr").eq(0).show(),a("#everest_forms_recaptcha_v2_invisible_secret_key").parents("tr").eq(0).show()):(a("#everest_forms_recaptcha_v2_site_key").parents("tr").eq(0).show(),a("#everest_forms_recaptcha_v2_secret_key").parents("tr").eq(0).show(),a("#everest_forms_recaptcha_v2_invisible_site_key").parents("tr").eq(0).hide(),a("#everest_forms_recaptcha_v2_invisible_secret_key").parents("tr").eq(0).hide())})}(jQuery,everest_forms_settings_params);
everest-forms.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Everest Forms
4
  * Plugin URI: https://wpeverest.com/wordpress-plugins/everest-forms/
5
  * Description: Drag and Drop contact form builder to easily create simple to complex forms for any purpose. Lightweight, Beautiful design, responsive and more.
6
- * Version: 1.5.9
7
  * Author: WPEverest
8
  * Author URI: https://wpeverest.com
9
  * Text Domain: everest-forms
3
  * Plugin Name: Everest Forms
4
  * Plugin URI: https://wpeverest.com/wordpress-plugins/everest-forms/
5
  * Description: Drag and Drop contact form builder to easily create simple to complex forms for any purpose. Lightweight, Beautiful design, responsive and more.
6
+ * Version: 1.5.10
7
  * Author: WPEverest
8
  * Author URI: https://wpeverest.com
9
  * Text Domain: everest-forms
includes/admin/settings/class-evf-settings-recaptcha.php CHANGED
@@ -84,7 +84,7 @@ class EVF_Settings_reCAPTCHA extends EVF_Settings_Page {
84
  /* translators: %1$s - Google reCAPTCHA docs url */
85
  'desc' => sprintf( __( 'Please enter your site key for your reCAPTCHA v2. <a href="%1$s" target="_blank">Learn More</a>', 'everest-forms' ), esc_url( 'https://docs.wpeverest.com/docs/everest-forms/tutorials/how-to-integrate-google-recaptcha/' ) ),
86
  'id' => 'everest_forms_recaptcha_v2_invisible_site_key',
87
- 'is_visible' => 'yes' === $invisible,
88
  'default' => '',
89
  'desc_tip' => true,
90
  ),
@@ -94,7 +94,7 @@ class EVF_Settings_reCAPTCHA extends EVF_Settings_Page {
94
  /* translators: %1$s - Google reCAPTCHA docs url */
95
  'desc' => sprintf( __( 'Please enter your secret key for your reCAPTCHA v2. <a href="%1$s" target="_blank">Learn More</a>', 'everest-forms' ), esc_url( 'https://docs.wpeverest.com/docs/everest-forms/tutorials/how-to-integrate-google-recaptcha/' ) ),
96
  'id' => 'everest_forms_recaptcha_v2_invisible_secret_key',
97
- 'is_visible' => 'yes' === $invisible,
98
  'default' => '',
99
  'desc_tip' => true,
100
  ),
84
  /* translators: %1$s - Google reCAPTCHA docs url */
85
  'desc' => sprintf( __( 'Please enter your site key for your reCAPTCHA v2. <a href="%1$s" target="_blank">Learn More</a>', 'everest-forms' ), esc_url( 'https://docs.wpeverest.com/docs/everest-forms/tutorials/how-to-integrate-google-recaptcha/' ) ),
86
  'id' => 'everest_forms_recaptcha_v2_invisible_site_key',
87
+ 'is_visible' => 'yes' === $invisible && 'v2' === $recaptcha_type,
88
  'default' => '',
89
  'desc_tip' => true,
90
  ),
94
  /* translators: %1$s - Google reCAPTCHA docs url */
95
  'desc' => sprintf( __( 'Please enter your secret key for your reCAPTCHA v2. <a href="%1$s" target="_blank">Learn More</a>', 'everest-forms' ), esc_url( 'https://docs.wpeverest.com/docs/everest-forms/tutorials/how-to-integrate-google-recaptcha/' ) ),
96
  'id' => 'everest_forms_recaptcha_v2_invisible_secret_key',
97
+ 'is_visible' => 'yes' === $invisible && 'v2' === $recaptcha_type,
98
  'default' => '',
99
  'desc_tip' => true,
100
  ),
includes/class-everest-forms.php CHANGED
@@ -21,7 +21,7 @@ final class EverestForms {
21
  *
22
  * @var string
23
  */
24
- public $version = '1.5.9';
25
 
26
  /**
27
  * The single instance of the class.
21
  *
22
  * @var string
23
  */
24
+ public $version = '1.5.10';
25
 
26
  /**
27
  * The single instance of the class.
includes/class-evf-form-task.php CHANGED
@@ -115,11 +115,15 @@ class EVF_Form_Task {
115
  }
116
 
117
  // reCAPTCHA check.
118
- $recaptcha_type = get_option( 'everest_forms_recaptcha_type', 'v2' );
 
119
 
120
- if ( 'v2' === $recaptcha_type ) {
121
  $site_key = get_option( 'everest_forms_recaptcha_v2_site_key' );
122
  $secret_key = get_option( 'everest_forms_recaptcha_v2_secret_key' );
 
 
 
123
  } else {
124
  $site_key = get_option( 'everest_forms_recaptcha_v3_site_key' );
125
  $secret_key = get_option( 'everest_forms_recaptcha_v3_secret_key' );
115
  }
116
 
117
  // reCAPTCHA check.
118
+ $recaptcha_type = get_option( 'everest_forms_recaptcha_type', 'v2' );
119
+ $invisible_recaptcha = get_option( 'everest_forms_recaptcha_v2_invisible', 'no' );
120
 
121
+ if ( 'v2' === $recaptcha_type && 'no' === $invisible_recaptcha ) {
122
  $site_key = get_option( 'everest_forms_recaptcha_v2_site_key' );
123
  $secret_key = get_option( 'everest_forms_recaptcha_v2_secret_key' );
124
+ } elseif ( 'v2' === $recaptcha_type && 'yes' === $invisible_recaptcha ) {
125
+ $site_key = get_option( 'everest_forms_recaptcha_v2_invisible_site_key' );
126
+ $secret_key = get_option( 'everest_forms_recaptcha_v2_invisible_secret_key' );
127
  } else {
128
  $site_key = get_option( 'everest_forms_recaptcha_v3_site_key' );
129
  $secret_key = get_option( 'everest_forms_recaptcha_v3_secret_key' );
includes/shortcodes/class-evf-shortcode-form.php CHANGED
@@ -356,12 +356,15 @@ class EVF_Shortcode_Form {
356
  * @param array $form_data Form data and settings.
357
  */
358
  public static function recaptcha( $form_data ) {
359
- $recaptcha_type = get_option( 'everest_forms_recaptcha_type', 'v2' );
360
-
361
- if ( 'v2' === $recaptcha_type ) {
362
- $site_key = get_option( 'everest_forms_recaptcha_v2_site_key' );
363
- $secret_key = get_option( 'everest_forms_recaptcha_v2_secret_key' );
364
- $invisible_recaptcha = get_option( 'everest_forms_recaptcha_v2_invisible', 'no' );
 
 
 
365
  } else {
366
  $site_key = get_option( 'everest_forms_recaptcha_v3_site_key' );
367
  $secret_key = get_option( 'everest_forms_recaptcha_v3_secret_key' );
@@ -385,7 +388,8 @@ class EVF_Shortcode_Form {
385
  // Load reCAPTCHA support if form supports it.
386
  if ( $site_key && $secret_key ) {
387
  if ( 'v2' === $recaptcha_type ) {
388
- $recaptcha_api = apply_filters( 'everest_forms_frontend_recaptcha_url', 'https://www.google.com/recaptcha/api.js?onload=EVFRecaptchaLoad&render=explicit' );
 
389
  if ( 'yes' === $invisible_recaptcha ) {
390
  $recaptcha_inline = 'var EVFRecaptchaLoad = function(){jQuery(".g-recaptcha").each(function(index, el){var recaptchaID = grecaptcha.render(el,{},true); grecaptcha.execute(recaptchaID);});};';
391
  } else {
@@ -393,12 +397,13 @@ class EVF_Shortcode_Form {
393
  $recaptcha_inline .= 'var EVFRecaptchaCallback = function(el){jQuery(el).parent().find(".evf-recaptcha-hidden").val("1").valid();};';
394
  }
395
  } else {
396
- $recaptcha_api = apply_filters( 'everest_forms_frontend_recaptcha_url', 'https://www.google.com/recaptcha/api.js?render=' . $site_key );
397
- $recaptcha_inline = 'grecaptcha.ready( function() { grecaptcha.execute( "' . $site_key . '", { action: "everest_form" } ).then( function( token ) { jQuery( ".evf-recaptcha-hidden" ).val( token ); } ) } )';
 
398
  }
399
 
400
  // Enqueue reCaptcha scripts.
401
- wp_enqueue_script( 'evf-recaptcha', $recaptcha_api, array( 'jquery' ), '2.0.0', false );
402
 
403
  // Load reCaptcha callback once.
404
  static $count = 1;
356
  * @param array $form_data Form data and settings.
357
  */
358
  public static function recaptcha( $form_data ) {
359
+ $recaptcha_type = get_option( 'everest_forms_recaptcha_type', 'v2' );
360
+ $invisible_recaptcha = get_option( 'everest_forms_recaptcha_v2_invisible', 'no' );
361
+
362
+ if ( 'v2' === $recaptcha_type && 'no' === $invisible_recaptcha ) {
363
+ $site_key = get_option( 'everest_forms_recaptcha_v2_site_key' );
364
+ $secret_key = get_option( 'everest_forms_recaptcha_v2_secret_key' );
365
+ } elseif ( 'v2' === $recaptcha_type && 'yes' === $invisible_recaptcha ) {
366
+ $site_key = get_option( 'everest_forms_recaptcha_v2_invisible_site_key' );
367
+ $secret_key = get_option( 'everest_forms_recaptcha_v2_invisible_secret_key' );
368
  } else {
369
  $site_key = get_option( 'everest_forms_recaptcha_v3_site_key' );
370
  $secret_key = get_option( 'everest_forms_recaptcha_v3_secret_key' );
388
  // Load reCAPTCHA support if form supports it.
389
  if ( $site_key && $secret_key ) {
390
  if ( 'v2' === $recaptcha_type ) {
391
+ $recaptcha_version = '2.0.0';
392
+ $recaptcha_api = apply_filters( 'everest_forms_frontend_recaptcha_url', 'https://www.google.com/recaptcha/api.js?onload=EVFRecaptchaLoad&render=explicit' );
393
  if ( 'yes' === $invisible_recaptcha ) {
394
  $recaptcha_inline = 'var EVFRecaptchaLoad = function(){jQuery(".g-recaptcha").each(function(index, el){var recaptchaID = grecaptcha.render(el,{},true); grecaptcha.execute(recaptchaID);});};';
395
  } else {
397
  $recaptcha_inline .= 'var EVFRecaptchaCallback = function(el){jQuery(el).parent().find(".evf-recaptcha-hidden").val("1").valid();};';
398
  }
399
  } else {
400
+ $recaptcha_version = '3.0.0';
401
+ $recaptcha_api = apply_filters( 'everest_forms_frontend_recaptcha_url', 'https://www.google.com/recaptcha/api.js?render=' . $site_key );
402
+ $recaptcha_inline = 'grecaptcha.ready( function() { grecaptcha.execute( "' . $site_key . '", { action: "everest_form" } ).then( function( token ) { jQuery( ".evf-recaptcha-hidden" ).val( token ); } ) } )';
403
  }
404
 
405
  // Enqueue reCaptcha scripts.
406
+ wp_enqueue_script( 'evf-recaptcha', $recaptcha_api, array( 'jquery' ), $recaptcha_version, false );
407
 
408
  // Load reCaptcha callback once.
409
  static $count = 1;
languages/everest-forms.pot CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the same license as the Everest Forms package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Everest Forms 1.5.9\n"
6
  "Report-Msgid-Bugs-To: https://github.com/wpeverest/everest-forms/issues\n"
7
- "POT-Creation-Date: 2019-11-19 11:11:26+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -239,7 +239,7 @@ msgstr ""
239
  #: includes/admin/builder/class-evf-builder-settings.php:77
240
  #: includes/admin/builder/class-evf-builder-settings.php:340
241
  #: includes/admin/builder/class-evf-builder-settings.php:395
242
- #: includes/class-evf-form-task.php:400 includes/evf-update-functions.php:140
243
  #: includes/templates/contact.php:71
244
  msgid "Admin Notification"
245
  msgstr ""
@@ -275,7 +275,7 @@ msgid "Form disabled message"
275
  msgstr ""
276
 
277
  #: includes/admin/builder/class-evf-builder-settings.php:163
278
- #: includes/shortcodes/class-evf-shortcode-form.php:640
279
  msgid "This form is disabled."
280
  msgstr ""
281
 
@@ -1689,36 +1689,36 @@ msgstr ""
1689
  msgid "Invalid form. Please check again."
1690
  msgstr ""
1691
 
1692
- #: includes/class-evf-form-task.php:138
1693
  msgid "Incorrect reCAPTCHA, please try again."
1694
  msgstr ""
1695
 
1696
- #: includes/class-evf-form-task.php:144
1697
  msgid "reCAPTCHA is required."
1698
  msgstr ""
1699
 
1700
- #: includes/class-evf-form-task.php:153 includes/class-evf-form-task.php:202
1701
  msgid "Form has not been submitted, please see the errors below."
1702
  msgstr ""
1703
 
1704
- #: includes/class-evf-form-task.php:161
1705
  msgid "Everest Forms honeypot field triggered."
1706
  msgstr ""
1707
 
1708
- #: includes/class-evf-form-task.php:229 includes/templates/contact.php:61
1709
  msgid "Thanks for contacting us! We will be in touch with you shortly."
1710
  msgstr ""
1711
 
1712
- #: includes/class-evf-form-task.php:422
1713
  #. translators: %s - form name.
1714
  msgid "New %s Entry"
1715
  msgstr ""
1716
 
1717
- #: includes/class-evf-form-task.php:510
1718
  msgid "No form ID was found."
1719
  msgstr ""
1720
 
1721
- #: includes/class-evf-form-task.php:517
1722
  msgid "Could not create an entry"
1723
  msgstr ""
1724
 
2
  # This file is distributed under the same license as the Everest Forms package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Everest Forms 1.5.10\n"
6
  "Report-Msgid-Bugs-To: https://github.com/wpeverest/everest-forms/issues\n"
7
+ "POT-Creation-Date: 2019-11-25 10:45:52+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
239
  #: includes/admin/builder/class-evf-builder-settings.php:77
240
  #: includes/admin/builder/class-evf-builder-settings.php:340
241
  #: includes/admin/builder/class-evf-builder-settings.php:395
242
+ #: includes/class-evf-form-task.php:404 includes/evf-update-functions.php:140
243
  #: includes/templates/contact.php:71
244
  msgid "Admin Notification"
245
  msgstr ""
275
  msgstr ""
276
 
277
  #: includes/admin/builder/class-evf-builder-settings.php:163
278
+ #: includes/shortcodes/class-evf-shortcode-form.php:645
279
  msgid "This form is disabled."
280
  msgstr ""
281
 
1689
  msgid "Invalid form. Please check again."
1690
  msgstr ""
1691
 
1692
+ #: includes/class-evf-form-task.php:142
1693
  msgid "Incorrect reCAPTCHA, please try again."
1694
  msgstr ""
1695
 
1696
+ #: includes/class-evf-form-task.php:148
1697
  msgid "reCAPTCHA is required."
1698
  msgstr ""
1699
 
1700
+ #: includes/class-evf-form-task.php:157 includes/class-evf-form-task.php:206
1701
  msgid "Form has not been submitted, please see the errors below."
1702
  msgstr ""
1703
 
1704
+ #: includes/class-evf-form-task.php:165
1705
  msgid "Everest Forms honeypot field triggered."
1706
  msgstr ""
1707
 
1708
+ #: includes/class-evf-form-task.php:233 includes/templates/contact.php:61
1709
  msgid "Thanks for contacting us! We will be in touch with you shortly."
1710
  msgstr ""
1711
 
1712
+ #: includes/class-evf-form-task.php:426
1713
  #. translators: %s - form name.
1714
  msgid "New %s Entry"
1715
  msgstr ""
1716
 
1717
+ #: includes/class-evf-form-task.php:514
1718
  msgid "No form ID was found."
1719
  msgstr ""
1720
 
1721
+ #: includes/class-evf-form-task.php:521
1722
  msgid "Could not create an entry"
1723
  msgstr ""
1724
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: contact form, form, form builder, contact, custom form
4
  Requires at least: 4.9
5
  Tested up to: 5.3
6
  Requires PHP: 5.4
7
- Stable tag: 1.5.9
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -134,6 +134,11 @@ Yes you can! Join in on our [GitHub repository](https://github.com/wpeverest/eve
134
 
135
  == Changelog ==
136
 
 
 
 
 
 
137
  = 1.5.9 - 19-11-2019 =
138
  * Fix - Fatal error: Called to undefined function.
139
 
4
  Requires at least: 4.9
5
  Tested up to: 5.3
6
  Requires PHP: 5.4
7
+ Stable tag: 1.5.10
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
134
 
135
  == Changelog ==
136
 
137
+ = 1.5.10 - 25-11-2019 =
138
+ * Fix - Google reCAPTCHA v2 invisible settings bug.
139
+ * Fix - DB unwanted data erase for fields data save.
140
+ * Fix - Multi-part submit button hidden due to theme style conflict.
141
+
142
  = 1.5.9 - 19-11-2019 =
143
  * Fix - Fatal error: Called to undefined function.
144