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

Version Description

  • 19-07-2022
  • Fix - Enhanced select issue in single select.
  • Dev - Yes/No field.
  • Dev - Row setting compatibility.
Download this release

Release Info

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

Code changes from version 1.9.0.1 to 1.9.1

assets/css/menu-rtl.css CHANGED
@@ -1 +1 @@
1
- @font-face{font-family:EverestForms;src:url("../fonts/EverestForms.eot?q9mcqj");src:url("../fonts/EverestForms.eot?q9mcqj#iefix") format("embedded-opentype"),url("../fonts/EverestForms.ttf?q9mcqj") format("truetype"),url("../fonts/EverestForms.woff?q9mcqj") format("woff"),url("../fonts/EverestForms.svg?q9mcqj#EverestForms") format("svg");font-weight:400;font-style:normal;font-display:block}.evf-icon{padding:8px;border-radius:4px}.evf-icon *{display:block}.evf-h2{font-size:28px;font-weight:600}.evf-text-center{text-align:center}#evf-modal-wrap{display:none;background-color:#fff;box-shadow:0 3px 6px rgba(0,0,0,.3);width:500px;height:250px;overflow:hidden;margin-right:-250px;margin-top:-125px;position:fixed;top:50%;right:50%;z-index:100105;transition:height .2s,margin-top .2s}#evf-modal-wrap #evf-modal{height:100%;position:relative}#evf-modal-wrap #evf-modal #evf-modal-title{background:#fcfcfc;border-bottom:1px solid #dfdfdf;height:36px;font-size:18px;font-weight:600;line-height:36px;padding:0 16px 0 36px;top:0;left:0;right:0}#evf-modal-wrap #evf-modal #evf-modal-close{color:#666;padding:0;position:absolute;top:0;left:0;width:36px;height:36px;text-align:center;background:100% 0;border:none;cursor:pointer}#evf-modal-wrap #evf-modal #evf-modal-close:focus,#evf-modal-wrap #evf-modal #evf-modal-close:hover{color:#2ea2cc}#evf-modal-wrap #evf-modal #evf-modal-close:focus{outline:0;box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}#evf-modal-wrap #evf-modal #evf-modal-close::before{content:'\f158';font:normal 20px/36px dashicons;vertical-align:top;speak:none;width:36px;height:36px}#evf-modal-wrap #evf-modal #evf-modal-inner{padding:0 16px 50px}#evf-modal-wrap #evf-modal #evf-modal-inner #evf-modal-notice{padding:10px;color:#31708f;background-color:#d9edf7;border:1px solid #bce8f1}#evf-modal-wrap #evf-modal #evf-modal-inner #evf-modal-options{padding:8px 0 12px}#evf-modal-wrap #evf-modal #evf-modal-inner #evf-modal-options .evf-modal-inline{margin:0;padding:0 0 0 20px;display:inline-block}#evf-modal-wrap #evf-modal #evf-modal-inner #evf-modal-options #evf-modal-select-form{max-width:100%;margin-bottom:1em}#evf-modal-wrap #evf-modal .submitbox{padding:8px 16px;background:#fcfcfc;border-top:1px solid #dfdfdf;position:absolute;bottom:0;right:0;left:0}#evf-modal-wrap #evf-modal .submitbox #evf-modal-cancel{float:right;line-height:25px}#evf-modal-wrap #evf-modal .submitbox #evf-modal-update{float:left;line-height:23px}#evf-modal-wrap #evf-modal .submitbox #evf-modal-update #evf-modal-submit{float:left;margin-bottom:0}#evf-modal-backdrop{display:none;position:fixed;top:0;right:0;left:0;bottom:0;min-height:360px;background:#000;opacity:.7;z-index:100100}@media screen and (max-width:782px){#evf-modal-wrap{height:280px;margin-top:-140px}#evf-modal-inner{padding:0 16px 60px}#evf-modal-cancel{line-height:32px}}@media screen and (max-width:520px){#evf-modal-wrap{width:auto;margin-right:0;right:10px;left:10px;max-width:500px}}@media screen and (max-height:520px){#evf-modal-wrap{transition:none}}@media screen and (max-height:290px){#evf-modal-wrap{height:auto;margin-top:0;top:10px;bottom:10px}#evf-modal-inner{overflow:auto;height:calc(100% - 92px);padding-bottom:2px}}[class*=' evf-icon-'],[class^=evf-icon-]{font-family:EverestForms!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;letter-spacing:0;-webkit-font-feature-settings:'liga';-ms-font-feature-settings:'liga' 1;font-feature-settings:'liga';-webkit-font-variant-ligatures:discretionary-ligatures;font-variant-ligatures:discretionary-ligatures;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.evf-icon-captcha::before{content:'\e004'}.evf-icon-password::before{content:'\e004'}.evf-icon-email::before{content:'\e005'}.evf-icon-map-marker::before{content:'\e007'}.evf-icon-flag::before{content:'\e00a'}.evf-icon-first-name::before{content:'\e00d'}.evf-icon-last-name::before{content:'\e00e'}.evf-icon-text::before{content:'\e00f'}.evf-icon-paragraph::before{content:'\e010'}.evf-icon-dropdown::before{content:'\e011'}.evf-icon-checkbox::before{content:'\e012'}.evf-icon-multiple-choices::before{content:'\e013'}.evf-icon-multiple-choices-radio::before{content:'\e014'}.evf-icon-number::before{content:'\e015'}.evf-icon-website::before{content:'\e016'}.evf-icon-calendar::before{content:'\e017'}.evf-icon-single-item::before{content:'\e018'}.evf-icon-file-upload::before{content:'\e019'}.evf-icon-hidden::before{content:'\e01a'}.evf-icon-phone::before{content:'\e01b'}.evf-icon-custom-html::before{content:'\e01c'}.evf-icon-section-divider::before{content:'\e01d'}.evf-icon-payment::before{content:'\e01f'}.evf-icon-total::before{content:'\e020'}.evf-icon-img-upload::before{content:'\e022'}.evf-icon-star::before{content:'\e024'}.evf-icon-likert::before{content:'\e025'}.evf-icon-scale-rating::before{content:'\e026'}.evf-icon-signature::before{content:'\e028'}.evf-icon-privacy-policy::before{content:'\e02c'}.evf-icon-repeater::before{content:'\e032'}.evf-icon-range-slider::before{content:'\e02b'}.evf-icon-divider::before{content:'\e031'}.evf-icon-wysiwyg::before{content:'\e901'}.evf-icon-eye::before{content:'\e903'}.evf-icon-coupon::before{content:'\e904'}
1
+ @font-face{font-family:EverestForms;src:url("../fonts/EverestForms.eot?q9mcqj");src:url("../fonts/EverestForms.eot?q9mcqj#iefix") format("embedded-opentype"),url("../fonts/EverestForms.ttf?q9mcqj") format("truetype"),url("../fonts/EverestForms.woff?q9mcqj") format("woff"),url("../fonts/EverestForms.svg?q9mcqj#EverestForms") format("svg");font-weight:400;font-style:normal;font-display:block}.evf-icon{padding:8px;border-radius:4px}.evf-icon *{display:block}.evf-h2{font-size:28px;font-weight:600}.evf-text-center{text-align:center}#evf-modal-wrap{display:none;background-color:#fff;box-shadow:0 3px 6px rgba(0,0,0,.3);width:500px;height:250px;overflow:hidden;margin-right:-250px;margin-top:-125px;position:fixed;top:50%;right:50%;z-index:100105;transition:height .2s,margin-top .2s}#evf-modal-wrap #evf-modal{height:100%;position:relative}#evf-modal-wrap #evf-modal #evf-modal-title{background:#fcfcfc;border-bottom:1px solid #dfdfdf;height:36px;font-size:18px;font-weight:600;line-height:36px;padding:0 16px 0 36px;top:0;left:0;right:0}#evf-modal-wrap #evf-modal #evf-modal-close{color:#666;padding:0;position:absolute;top:0;left:0;width:36px;height:36px;text-align:center;background:100% 0;border:none;cursor:pointer}#evf-modal-wrap #evf-modal #evf-modal-close:focus,#evf-modal-wrap #evf-modal #evf-modal-close:hover{color:#2ea2cc}#evf-modal-wrap #evf-modal #evf-modal-close:focus{outline:0;box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}#evf-modal-wrap #evf-modal #evf-modal-close::before{content:'\f158';font:normal 20px/36px dashicons;vertical-align:top;speak:none;width:36px;height:36px}#evf-modal-wrap #evf-modal #evf-modal-inner{padding:0 16px 50px}#evf-modal-wrap #evf-modal #evf-modal-inner #evf-modal-notice{padding:10px;color:#31708f;background-color:#d9edf7;border:1px solid #bce8f1}#evf-modal-wrap #evf-modal #evf-modal-inner #evf-modal-options{padding:8px 0 12px}#evf-modal-wrap #evf-modal #evf-modal-inner #evf-modal-options .evf-modal-inline{margin:0;padding:0 0 0 20px;display:inline-block}#evf-modal-wrap #evf-modal #evf-modal-inner #evf-modal-options #evf-modal-select-form{max-width:100%;margin-bottom:1em}#evf-modal-wrap #evf-modal .submitbox{padding:8px 16px;background:#fcfcfc;border-top:1px solid #dfdfdf;position:absolute;bottom:0;right:0;left:0}#evf-modal-wrap #evf-modal .submitbox #evf-modal-cancel{float:right;line-height:25px}#evf-modal-wrap #evf-modal .submitbox #evf-modal-update{float:left;line-height:23px}#evf-modal-wrap #evf-modal .submitbox #evf-modal-update #evf-modal-submit{float:left;margin-bottom:0}#evf-modal-backdrop{display:none;position:fixed;top:0;right:0;left:0;bottom:0;min-height:360px;background:#000;opacity:.7;z-index:100100}@media screen and (max-width:782px){#evf-modal-wrap{height:280px;margin-top:-140px}#evf-modal-inner{padding:0 16px 60px}#evf-modal-cancel{line-height:32px}}@media screen and (max-width:520px){#evf-modal-wrap{width:auto;margin-right:0;right:10px;left:10px;max-width:500px}}@media screen and (max-height:520px){#evf-modal-wrap{transition:none}}@media screen and (max-height:290px){#evf-modal-wrap{height:auto;margin-top:0;top:10px;bottom:10px}#evf-modal-inner{overflow:auto;height:calc(100% - 92px);padding-bottom:2px}}[class*=' evf-icon-'],[class^=evf-icon-]{font-family:EverestForms!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;letter-spacing:0;-webkit-font-feature-settings:'liga';-ms-font-feature-settings:'liga' 1;font-feature-settings:'liga';-webkit-font-variant-ligatures:discretionary-ligatures;font-variant-ligatures:discretionary-ligatures;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.evf-icon-captcha::before{content:'\e004'}.evf-icon-password::before{content:'\e004'}.evf-icon-email::before{content:'\e005'}.evf-icon-map-marker::before{content:'\e007'}.evf-icon-flag::before{content:'\e00a'}.evf-icon-first-name::before{content:'\e00d'}.evf-icon-last-name::before{content:'\e00e'}.evf-icon-text::before{content:'\e00f'}.evf-icon-paragraph::before{content:'\e010'}.evf-icon-dropdown::before{content:'\e011'}.evf-icon-checkbox::before{content:'\e012'}.evf-icon-multiple-choices::before{content:'\e013'}.evf-icon-multiple-choices-radio::before{content:'\e014'}.evf-icon-number::before{content:'\e015'}.evf-icon-website::before{content:'\e016'}.evf-icon-calendar::before{content:'\e017'}.evf-icon-single-item::before{content:'\e018'}.evf-icon-file-upload::before{content:'\e019'}.evf-icon-hidden::before{content:'\e01a'}.evf-icon-phone::before{content:'\e01b'}.evf-icon-custom-html::before{content:'\e01c'}.evf-icon-section-divider::before{content:'\e01d'}.evf-icon-payment::before{content:'\e01f'}.evf-icon-total::before{content:'\e020'}.evf-icon-img-upload::before{content:'\e022'}.evf-icon-star::before{content:'\e024'}.evf-icon-likert::before{content:'\e025'}.evf-icon-scale-rating::before{content:'\e026'}.evf-icon-signature::before{content:'\e028'}.evf-icon-privacy-policy::before{content:'\e02c'}.evf-icon-repeater::before{content:'\e032'}.evf-icon-range-slider::before{content:'\e02b'}.evf-icon-divider::before{content:'\e031'}.evf-icon-wysiwyg::before{content:'\e901'}.evf-icon-eye::before{content:'\e903'}.evf-icon-coupon::before{content:'\e904'}.evf-icon-yes-no::before{content:'\e905'}
assets/css/menu.css CHANGED
@@ -1 +1 @@
1
- @font-face{font-family:EverestForms;src:url("../fonts/EverestForms.eot?q9mcqj");src:url("../fonts/EverestForms.eot?q9mcqj#iefix") format("embedded-opentype"),url("../fonts/EverestForms.ttf?q9mcqj") format("truetype"),url("../fonts/EverestForms.woff?q9mcqj") format("woff"),url("../fonts/EverestForms.svg?q9mcqj#EverestForms") format("svg");font-weight:400;font-style:normal;font-display:block}.evf-icon{padding:8px;border-radius:4px}.evf-icon *{display:block}.evf-h2{font-size:28px;font-weight:600}.evf-text-center{text-align:center}#evf-modal-wrap{display:none;background-color:#fff;box-shadow:0 3px 6px rgba(0,0,0,.3);width:500px;height:250px;overflow:hidden;margin-left:-250px;margin-top:-125px;position:fixed;top:50%;left:50%;z-index:100105;transition:height .2s,margin-top .2s}#evf-modal-wrap #evf-modal{height:100%;position:relative}#evf-modal-wrap #evf-modal #evf-modal-title{background:#fcfcfc;border-bottom:1px solid #dfdfdf;height:36px;font-size:18px;font-weight:600;line-height:36px;padding:0 36px 0 16px;top:0;right:0;left:0}#evf-modal-wrap #evf-modal #evf-modal-close{color:#666;padding:0;position:absolute;top:0;right:0;width:36px;height:36px;text-align:center;background:0 0;border:none;cursor:pointer}#evf-modal-wrap #evf-modal #evf-modal-close:focus,#evf-modal-wrap #evf-modal #evf-modal-close:hover{color:#2ea2cc}#evf-modal-wrap #evf-modal #evf-modal-close:focus{outline:0;box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}#evf-modal-wrap #evf-modal #evf-modal-close::before{content:'\f158';font:normal 20px/36px dashicons;vertical-align:top;speak:none;width:36px;height:36px}#evf-modal-wrap #evf-modal #evf-modal-inner{padding:0 16px 50px}#evf-modal-wrap #evf-modal #evf-modal-inner #evf-modal-notice{padding:10px;color:#31708f;background-color:#d9edf7;border:1px solid #bce8f1}#evf-modal-wrap #evf-modal #evf-modal-inner #evf-modal-options{padding:8px 0 12px}#evf-modal-wrap #evf-modal #evf-modal-inner #evf-modal-options .evf-modal-inline{margin:0;padding:0 20px 0 0;display:inline-block}#evf-modal-wrap #evf-modal #evf-modal-inner #evf-modal-options #evf-modal-select-form{max-width:100%;margin-bottom:1em}#evf-modal-wrap #evf-modal .submitbox{padding:8px 16px;background:#fcfcfc;border-top:1px solid #dfdfdf;position:absolute;bottom:0;left:0;right:0}#evf-modal-wrap #evf-modal .submitbox #evf-modal-cancel{float:left;line-height:25px}#evf-modal-wrap #evf-modal .submitbox #evf-modal-update{float:right;line-height:23px}#evf-modal-wrap #evf-modal .submitbox #evf-modal-update #evf-modal-submit{float:right;margin-bottom:0}#evf-modal-backdrop{display:none;position:fixed;top:0;left:0;right:0;bottom:0;min-height:360px;background:#000;opacity:.7;z-index:100100}@media screen and (max-width:782px){#evf-modal-wrap{height:280px;margin-top:-140px}#evf-modal-inner{padding:0 16px 60px}#evf-modal-cancel{line-height:32px}}@media screen and (max-width:520px){#evf-modal-wrap{width:auto;margin-left:0;left:10px;right:10px;max-width:500px}}@media screen and (max-height:520px){#evf-modal-wrap{transition:none}}@media screen and (max-height:290px){#evf-modal-wrap{height:auto;margin-top:0;top:10px;bottom:10px}#evf-modal-inner{overflow:auto;height:calc(100% - 92px);padding-bottom:2px}}[class*=' evf-icon-'],[class^=evf-icon-]{font-family:EverestForms!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;letter-spacing:0;-webkit-font-feature-settings:'liga';-ms-font-feature-settings:'liga' 1;font-feature-settings:'liga';-webkit-font-variant-ligatures:discretionary-ligatures;font-variant-ligatures:discretionary-ligatures;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.evf-icon-captcha::before{content:'\e004'}.evf-icon-password::before{content:'\e004'}.evf-icon-email::before{content:'\e005'}.evf-icon-map-marker::before{content:'\e007'}.evf-icon-flag::before{content:'\e00a'}.evf-icon-first-name::before{content:'\e00d'}.evf-icon-last-name::before{content:'\e00e'}.evf-icon-text::before{content:'\e00f'}.evf-icon-paragraph::before{content:'\e010'}.evf-icon-dropdown::before{content:'\e011'}.evf-icon-checkbox::before{content:'\e012'}.evf-icon-multiple-choices::before{content:'\e013'}.evf-icon-multiple-choices-radio::before{content:'\e014'}.evf-icon-number::before{content:'\e015'}.evf-icon-website::before{content:'\e016'}.evf-icon-calendar::before{content:'\e017'}.evf-icon-single-item::before{content:'\e018'}.evf-icon-file-upload::before{content:'\e019'}.evf-icon-hidden::before{content:'\e01a'}.evf-icon-phone::before{content:'\e01b'}.evf-icon-custom-html::before{content:'\e01c'}.evf-icon-section-divider::before{content:'\e01d'}.evf-icon-payment::before{content:'\e01f'}.evf-icon-total::before{content:'\e020'}.evf-icon-img-upload::before{content:'\e022'}.evf-icon-star::before{content:'\e024'}.evf-icon-likert::before{content:'\e025'}.evf-icon-scale-rating::before{content:'\e026'}.evf-icon-signature::before{content:'\e028'}.evf-icon-privacy-policy::before{content:'\e02c'}.evf-icon-repeater::before{content:'\e032'}.evf-icon-range-slider::before{content:'\e02b'}.evf-icon-divider::before{content:'\e031'}.evf-icon-wysiwyg::before{content:'\e901'}.evf-icon-eye::before{content:'\e903'}.evf-icon-coupon::before{content:'\e904'}
1
+ @font-face{font-family:EverestForms;src:url("../fonts/EverestForms.eot?q9mcqj");src:url("../fonts/EverestForms.eot?q9mcqj#iefix") format("embedded-opentype"),url("../fonts/EverestForms.ttf?q9mcqj") format("truetype"),url("../fonts/EverestForms.woff?q9mcqj") format("woff"),url("../fonts/EverestForms.svg?q9mcqj#EverestForms") format("svg");font-weight:400;font-style:normal;font-display:block}.evf-icon{padding:8px;border-radius:4px}.evf-icon *{display:block}.evf-h2{font-size:28px;font-weight:600}.evf-text-center{text-align:center}#evf-modal-wrap{display:none;background-color:#fff;box-shadow:0 3px 6px rgba(0,0,0,.3);width:500px;height:250px;overflow:hidden;margin-left:-250px;margin-top:-125px;position:fixed;top:50%;left:50%;z-index:100105;transition:height .2s,margin-top .2s}#evf-modal-wrap #evf-modal{height:100%;position:relative}#evf-modal-wrap #evf-modal #evf-modal-title{background:#fcfcfc;border-bottom:1px solid #dfdfdf;height:36px;font-size:18px;font-weight:600;line-height:36px;padding:0 36px 0 16px;top:0;right:0;left:0}#evf-modal-wrap #evf-modal #evf-modal-close{color:#666;padding:0;position:absolute;top:0;right:0;width:36px;height:36px;text-align:center;background:0 0;border:none;cursor:pointer}#evf-modal-wrap #evf-modal #evf-modal-close:focus,#evf-modal-wrap #evf-modal #evf-modal-close:hover{color:#2ea2cc}#evf-modal-wrap #evf-modal #evf-modal-close:focus{outline:0;box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}#evf-modal-wrap #evf-modal #evf-modal-close::before{content:'\f158';font:normal 20px/36px dashicons;vertical-align:top;speak:none;width:36px;height:36px}#evf-modal-wrap #evf-modal #evf-modal-inner{padding:0 16px 50px}#evf-modal-wrap #evf-modal #evf-modal-inner #evf-modal-notice{padding:10px;color:#31708f;background-color:#d9edf7;border:1px solid #bce8f1}#evf-modal-wrap #evf-modal #evf-modal-inner #evf-modal-options{padding:8px 0 12px}#evf-modal-wrap #evf-modal #evf-modal-inner #evf-modal-options .evf-modal-inline{margin:0;padding:0 20px 0 0;display:inline-block}#evf-modal-wrap #evf-modal #evf-modal-inner #evf-modal-options #evf-modal-select-form{max-width:100%;margin-bottom:1em}#evf-modal-wrap #evf-modal .submitbox{padding:8px 16px;background:#fcfcfc;border-top:1px solid #dfdfdf;position:absolute;bottom:0;left:0;right:0}#evf-modal-wrap #evf-modal .submitbox #evf-modal-cancel{float:left;line-height:25px}#evf-modal-wrap #evf-modal .submitbox #evf-modal-update{float:right;line-height:23px}#evf-modal-wrap #evf-modal .submitbox #evf-modal-update #evf-modal-submit{float:right;margin-bottom:0}#evf-modal-backdrop{display:none;position:fixed;top:0;left:0;right:0;bottom:0;min-height:360px;background:#000;opacity:.7;z-index:100100}@media screen and (max-width:782px){#evf-modal-wrap{height:280px;margin-top:-140px}#evf-modal-inner{padding:0 16px 60px}#evf-modal-cancel{line-height:32px}}@media screen and (max-width:520px){#evf-modal-wrap{width:auto;margin-left:0;left:10px;right:10px;max-width:500px}}@media screen and (max-height:520px){#evf-modal-wrap{transition:none}}@media screen and (max-height:290px){#evf-modal-wrap{height:auto;margin-top:0;top:10px;bottom:10px}#evf-modal-inner{overflow:auto;height:calc(100% - 92px);padding-bottom:2px}}[class*=' evf-icon-'],[class^=evf-icon-]{font-family:EverestForms!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;letter-spacing:0;-webkit-font-feature-settings:'liga';-ms-font-feature-settings:'liga' 1;font-feature-settings:'liga';-webkit-font-variant-ligatures:discretionary-ligatures;font-variant-ligatures:discretionary-ligatures;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.evf-icon-captcha::before{content:'\e004'}.evf-icon-password::before{content:'\e004'}.evf-icon-email::before{content:'\e005'}.evf-icon-map-marker::before{content:'\e007'}.evf-icon-flag::before{content:'\e00a'}.evf-icon-first-name::before{content:'\e00d'}.evf-icon-last-name::before{content:'\e00e'}.evf-icon-text::before{content:'\e00f'}.evf-icon-paragraph::before{content:'\e010'}.evf-icon-dropdown::before{content:'\e011'}.evf-icon-checkbox::before{content:'\e012'}.evf-icon-multiple-choices::before{content:'\e013'}.evf-icon-multiple-choices-radio::before{content:'\e014'}.evf-icon-number::before{content:'\e015'}.evf-icon-website::before{content:'\e016'}.evf-icon-calendar::before{content:'\e017'}.evf-icon-single-item::before{content:'\e018'}.evf-icon-file-upload::before{content:'\e019'}.evf-icon-hidden::before{content:'\e01a'}.evf-icon-phone::before{content:'\e01b'}.evf-icon-custom-html::before{content:'\e01c'}.evf-icon-section-divider::before{content:'\e01d'}.evf-icon-payment::before{content:'\e01f'}.evf-icon-total::before{content:'\e020'}.evf-icon-img-upload::before{content:'\e022'}.evf-icon-star::before{content:'\e024'}.evf-icon-likert::before{content:'\e025'}.evf-icon-scale-rating::before{content:'\e026'}.evf-icon-signature::before{content:'\e028'}.evf-icon-privacy-policy::before{content:'\e02c'}.evf-icon-repeater::before{content:'\e032'}.evf-icon-range-slider::before{content:'\e02b'}.evf-icon-divider::before{content:'\e031'}.evf-icon-wysiwyg::before{content:'\e901'}.evf-icon-eye::before{content:'\e903'}.evf-icon-coupon::before{content:'\e904'}.evf-icon-yes-no::before{content:'\e905'}
assets/css/menu.scss CHANGED
@@ -331,4 +331,7 @@
331
  &coupon::before {
332
  content: '\e904';
333
  }
 
 
 
334
  }
331
  &coupon::before {
332
  content: '\e904';
333
  }
334
+ &yes-no::before {
335
+ content: '\e905';
336
+ }
337
  }
assets/extensions-json/sections/all_extensions.json CHANGED
@@ -369,6 +369,18 @@
369
  "professional",
370
  "agency"
371
  ]
 
 
 
 
 
 
 
 
 
 
 
 
372
  }
373
  ]
374
  }
369
  "professional",
370
  "agency"
371
  ]
372
+ },
373
+ {
374
+ "title": "Zoho",
375
+ "slug": "everest-forms-zoho",
376
+ "name": "Everest Forms Zoho",
377
+ "image": "extensions-json/sections/images/zoho.png",
378
+ "excerpt": "Everest Forms Zoho CRM add-on is a WordPress Zoho CRM integration plugin that allows you to easily send Everest Forms entries directly to your Zoho CRM account. ",
379
+ "link": "https://wpeverest.com/wordpress-plugins/everest-forms/zoho-crm/?utm_source=addons-page&utm_medium=banner&utm_campaign=evf-upgrade-to-pro&utm_content=zoho-crm",
380
+ "plan": [
381
+ "professional",
382
+ "agency"
383
+ ]
384
  }
385
  ]
386
  }
assets/extensions-json/sections/images/zoho.png ADDED
Binary file
assets/fonts/EverestForms.eot CHANGED
Binary file
assets/fonts/EverestForms.svg CHANGED
@@ -83,4 +83,5 @@
83
  <glyph unicode="&#xe902;" glyph-name="everest-icon" data-tags="everest-icon" d="M960 544h-167.36l-56.64 97.92h167.68zM792.32 835.2l55.68-96h-167.36l-56.96 96zM64 59.84l448 776.32 279.68-484.16h-335.68l56 96h112l-112 193.92-280-485.12h672l56.32-96z" />
84
  <glyph unicode="&#xe903;" glyph-name="eye" data-tags="everest-icon-1px-strok-eye" d="M952 457.28c-65.63 70.333-144.265 127.562-232.208 168.026l-4.592 1.894c-9.28 4.16-18.56 7.68-28.48 11.52-51.775 20.741-111.774 32.926-174.576 33.279l-0.144 0.001c-248.64 0-432.32-206.080-440-214.72l-8-9.28 8-9.28c65.63-70.333 144.265-127.562 232.208-168.026l4.592-1.894c9.28-4.16 18.56-7.68 28.48-11.52 51.775-20.741 111.774-32.926 174.576-33.279l0.144-0.001c248.64 0 432.32 206.080 440 214.72l8 9.28zM512 252.16c-54.765 0.526-107.049 10.451-155.543 28.234l3.223-1.034c-9.6 3.52-19.2 7.040-28.48 11.2-89.052 39.144-164.982 92.215-228.673 157.31l-0.127 0.13c38.4 39.68 203.2 195.84 409.6 195.84 54.765-0.526 107.049-10.451 155.543-28.234l-3.223 1.034c9.6-3.52 19.2-7.040 28.48-11.2 89.052-39.144 164.982-92.215 228.673-157.31l0.127-0.13c-38.4-39.68-203.2-195.84-409.6-195.84zM602.24 516.48c-5.637 7.74-12.306 14.308-19.893 19.661l-0.267 0.179c-19.123 14.746-43.422 23.634-69.797 23.634-62.418 0-113.209-49.779-114.84-111.803l-0.003-0.151c0-0.010 0-0.021 0-0.033 0-26.043 9.177-49.942 24.473-68.64l-0.153 0.193c5.637-7.74 12.306-14.308 19.893-19.661l0.267-0.179c19.123-14.746 43.422-23.634 69.797-23.634 62.418 0 113.209 49.779 114.84 111.803l0.003 0.151c0 0.077 0 0.169 0 0.26 0 25.969-9.179 49.794-24.47 68.408l0.15-0.188zM512 364.16c-18.637 0.032-35.927 5.769-50.225 15.558l0.305-0.198c-21.482 15.509-35.413 40.324-35.839 68.413l-0.001 0.067c0.72 46.458 38.549 83.842 85.11 83.842 0.228 0 0.457-0.001 0.685-0.003h-0.035c18.637-0.032 35.927-5.769 50.225-15.558l-0.305 0.198c21.482-15.509 35.413-40.324 35.839-68.413l0.001-0.067c-0.72-46.458-38.549-83.842-85.11-83.842-0.228 0-0.457 0.001-0.685 0.003h0.035zM359.68 279.36l-22.4-22.080c-9.92 3.84-19.2 7.36-28.48 11.52l22.4 21.76c9.28-4.16 18.88-7.68 28.48-11.2zM462.080 379.52l-20.16-19.84c-7.854 5.532-14.523 12.1-19.992 19.598l-0.168 0.242 20.48 19.84c5.531-7.742 12.098-14.309 19.588-19.668l0.252-0.172zM602.24 516.48l-20.48-19.84c-5.531 7.742-12.098 14.309-19.588 19.668l-0.252 0.172 20.16 19.84c7.854-5.532 14.523-12.1 19.992-19.598l0.168-0.242zM715.2 627.2l-22.4-21.76c-9.28 4.16-18.88 7.68-28.48 11.2l22.4 22.080c9.92-3.84 19.2-7.36 28.48-11.52z" />
85
  <glyph unicode="&#xe904;" glyph-name="coupon" data-tags="coupon" d="M946.24 542.4l13.76 1.6v160h-896v-160l13.76-2.24c44.988-8.541 78.546-47.552 78.546-94.4s-33.558-85.859-77.947-94.305l-0.599-0.095-13.76-0.96v-160h896v160h-13.76c-44.988 8.541-78.546 47.552-78.546 94.4s33.558 85.859 77.947 94.305l0.599 0.095zM832 448c0.198-59.151 40.488-108.837 95.107-123.319l0.893-0.201v-100.48h-608v48c0 8.837-7.163 16-16 16s-16-7.163-16-16v0-48h-192v100.48c54.851 15.264 94.432 64.77 94.432 123.52s-39.581 108.256-93.532 123.306l-0.9 0.214v100.48h192v-48c0-8.837 7.163-16 16-16s16 7.163 16 16v0 48h608v-100.48c-55.512-14.683-95.802-64.369-96-123.497v-0.023zM304 576c-8.837 0-16-7.163-16-16v0-32c0-8.837 7.163-16 16-16s16 7.163 16 16v0 32c0 8.837-7.163 16-16 16v0zM304 480c-8.837 0-16-7.163-16-16v0-32c0-8.837 7.163-16 16-16s16 7.163 16 16v0 32c0 8.837-7.163 16-16 16v0zM304 384c-8.837 0-16-7.163-16-16v0-32c0-8.837 7.163-16 16-16s16 7.163 16 16v0 32c0 8.837-7.163 16-16 16v0z" />
 
86
  </font></defs></svg>
83
  <glyph unicode="&#xe902;" glyph-name="everest-icon" data-tags="everest-icon" d="M960 544h-167.36l-56.64 97.92h167.68zM792.32 835.2l55.68-96h-167.36l-56.96 96zM64 59.84l448 776.32 279.68-484.16h-335.68l56 96h112l-112 193.92-280-485.12h672l56.32-96z" />
84
  <glyph unicode="&#xe903;" glyph-name="eye" data-tags="everest-icon-1px-strok-eye" d="M952 457.28c-65.63 70.333-144.265 127.562-232.208 168.026l-4.592 1.894c-9.28 4.16-18.56 7.68-28.48 11.52-51.775 20.741-111.774 32.926-174.576 33.279l-0.144 0.001c-248.64 0-432.32-206.080-440-214.72l-8-9.28 8-9.28c65.63-70.333 144.265-127.562 232.208-168.026l4.592-1.894c9.28-4.16 18.56-7.68 28.48-11.52 51.775-20.741 111.774-32.926 174.576-33.279l0.144-0.001c248.64 0 432.32 206.080 440 214.72l8 9.28zM512 252.16c-54.765 0.526-107.049 10.451-155.543 28.234l3.223-1.034c-9.6 3.52-19.2 7.040-28.48 11.2-89.052 39.144-164.982 92.215-228.673 157.31l-0.127 0.13c38.4 39.68 203.2 195.84 409.6 195.84 54.765-0.526 107.049-10.451 155.543-28.234l-3.223 1.034c9.6-3.52 19.2-7.040 28.48-11.2 89.052-39.144 164.982-92.215 228.673-157.31l0.127-0.13c-38.4-39.68-203.2-195.84-409.6-195.84zM602.24 516.48c-5.637 7.74-12.306 14.308-19.893 19.661l-0.267 0.179c-19.123 14.746-43.422 23.634-69.797 23.634-62.418 0-113.209-49.779-114.84-111.803l-0.003-0.151c0-0.010 0-0.021 0-0.033 0-26.043 9.177-49.942 24.473-68.64l-0.153 0.193c5.637-7.74 12.306-14.308 19.893-19.661l0.267-0.179c19.123-14.746 43.422-23.634 69.797-23.634 62.418 0 113.209 49.779 114.84 111.803l0.003 0.151c0 0.077 0 0.169 0 0.26 0 25.969-9.179 49.794-24.47 68.408l0.15-0.188zM512 364.16c-18.637 0.032-35.927 5.769-50.225 15.558l0.305-0.198c-21.482 15.509-35.413 40.324-35.839 68.413l-0.001 0.067c0.72 46.458 38.549 83.842 85.11 83.842 0.228 0 0.457-0.001 0.685-0.003h-0.035c18.637-0.032 35.927-5.769 50.225-15.558l-0.305 0.198c21.482-15.509 35.413-40.324 35.839-68.413l0.001-0.067c-0.72-46.458-38.549-83.842-85.11-83.842-0.228 0-0.457 0.001-0.685 0.003h0.035zM359.68 279.36l-22.4-22.080c-9.92 3.84-19.2 7.36-28.48 11.52l22.4 21.76c9.28-4.16 18.88-7.68 28.48-11.2zM462.080 379.52l-20.16-19.84c-7.854 5.532-14.523 12.1-19.992 19.598l-0.168 0.242 20.48 19.84c5.531-7.742 12.098-14.309 19.588-19.668l0.252-0.172zM602.24 516.48l-20.48-19.84c-5.531 7.742-12.098 14.309-19.588 19.668l-0.252 0.172 20.16 19.84c7.854-5.532 14.523-12.1 19.992-19.598l0.168-0.242zM715.2 627.2l-22.4-21.76c-9.28 4.16-18.88 7.68-28.48 11.2l22.4 22.080c9.92-3.84 19.2-7.36 28.48-11.52z" />
85
  <glyph unicode="&#xe904;" glyph-name="coupon" data-tags="coupon" d="M946.24 542.4l13.76 1.6v160h-896v-160l13.76-2.24c44.988-8.541 78.546-47.552 78.546-94.4s-33.558-85.859-77.947-94.305l-0.599-0.095-13.76-0.96v-160h896v160h-13.76c-44.988 8.541-78.546 47.552-78.546 94.4s33.558 85.859 77.947 94.305l0.599 0.095zM832 448c0.198-59.151 40.488-108.837 95.107-123.319l0.893-0.201v-100.48h-608v48c0 8.837-7.163 16-16 16s-16-7.163-16-16v0-48h-192v100.48c54.851 15.264 94.432 64.77 94.432 123.52s-39.581 108.256-93.532 123.306l-0.9 0.214v100.48h192v-48c0-8.837 7.163-16 16-16s16 7.163 16 16v0 48h608v-100.48c-55.512-14.683-95.802-64.369-96-123.497v-0.023zM304 576c-8.837 0-16-7.163-16-16v0-32c0-8.837 7.163-16 16-16s16 7.163 16 16v0 32c0 8.837-7.163 16-16 16v0zM304 480c-8.837 0-16-7.163-16-16v0-32c0-8.837 7.163-16 16-16s16 7.163 16 16v0 32c0 8.837-7.163 16-16 16v0zM304 384c-8.837 0-16-7.163-16-16v0-32c0-8.837 7.163-16 16-16s16 7.163 16 16v0 32c0 8.837-7.163 16-16 16v0z" />
86
+ <glyph unicode="&#xe905;" glyph-name="yes-no" data-tags="thumbs-up" d="M791.040 0h-617.92c-56.554 0-102.4 45.846-102.4 102.4v0 302.4c0.181 56.481 45.919 102.219 102.383 102.4h119.377l168.64 379.52c2.643 5.439 8.073 9.15 14.383 9.28h0.017c80.413 0 145.6-65.187 145.6-145.6v0-156.8h228.8c2.439 0.151 5.289 0.238 8.16 0.238s5.721-0.086 8.549-0.256l-0.389 0.019c49.496-7.789 86.903-50.136 86.903-101.221 0-5.385-0.416-10.673-1.217-15.834l0.073 0.575-59.52-390.080c-7.995-49.493-50.327-86.861-101.421-87.040h-0.019zM320 32h470.4c0.4-0.008 0.871-0.013 1.344-0.013 35.209 0 64.354 25.965 69.33 59.792l0.046 0.381 59.52 387.84c0.491 3.132 0.772 6.744 0.772 10.421 0 35.264-25.81 64.5-59.571 69.846l-0.401 0.052h-256c-0.095-0.002-0.207-0.003-0.32-0.003-8.66 0-15.68 7.020-15.68 15.68 0 0.001 0 0.002 0 0.003v0 174.4c-0.081 59.311-45.348 108.024-103.218 113.564l-0.462 0.036-165.76-376zM173.12 475.52c-39.058 0-70.72-31.662-70.72-70.72v0-302.4c0.182-38.92 31.774-70.4 70.719-70.4 0 0 0.001 0 0.001 0h114.88v443.52z" />
87
  </font></defs></svg>
assets/fonts/EverestForms.ttf CHANGED
Binary file
assets/fonts/EverestForms.woff CHANGED
Binary file
assets/js/admin/form-builder.js CHANGED
@@ -1377,6 +1377,7 @@
1377
  var $this = $( this ),
1378
  total_rows = $( '.evf-admin-row' ).length,
1379
  current_row = $this.closest( '.evf-admin-row' ),
 
1380
  current_part = $this.parents( '.evf-admin-field-container' ).attr( 'data-current-part' ),
1381
  multipart_active = $( '#everest-forms-builder' ).hasClass( 'multi-part-activated' );
1382
 
@@ -1416,6 +1417,7 @@
1416
  $( '.everest-forms-fields-tab' ).find( 'a' ).removeClass( 'active' );
1417
  $( '.everest-forms-fields-tab' ).find( 'a' ).first().addClass( 'active' );
1418
  $( '.everest-forms-add-fields' ).show();
 
1419
  }
1420
  },
1421
  cancel: {
@@ -1428,6 +1430,7 @@
1428
  },
1429
  bindAddNewRow: function() {
1430
  $( 'body' ).on( 'click', '.evf-add-row span', function() {
 
1431
  var $this = $( this ),
1432
  wrapper = $( '.evf-admin-field-wrapper' ),
1433
  row_ids = $( '.evf-admin-row' ).map( function() {
@@ -1453,15 +1456,64 @@
1453
  $this.parent().attr( 'data-total-rows', total_rows );
1454
  $this.parent().attr( 'data-next-row-id', max_row_id );
1455
 
1456
- // Row append.
1457
- wrapper.append( row_clone );
1458
 
1459
- // Initialize fields UI.
1460
- EVFPanelBuilder.bindFields();
1461
- EVFPanelBuilder.checkEmptyGrid();
1462
- // Trigger event after row add.
1463
- $this.trigger('everest-forms-after-add-row', row_clone);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1464
  });
 
1465
  },
1466
  bindCloneField: function () {
1467
  $( 'body' ).on( 'click', '.everest-forms-preview .everest-forms-field .everest-forms-field-duplicate', function() {
@@ -2486,6 +2538,7 @@
2486
  'hidden',
2487
  'scale-rating',
2488
  'likert',
 
2489
  ];
2490
  if( $.inArray( form_field_type, field_to_be_restricted ) === -1 && dragged_field_id !== form_field_id ){
2491
  fields.eq(index).append('<option class="evf-conditional-fields" data-field_type="'+form_field_type+'" data-field_id="'+form_field_id+'" value="'+form_field_id+'">'+form_field_label+'</option>');
@@ -2493,12 +2546,35 @@
2493
  });
2494
  } else {
2495
  var el_to_append = '<option class="evf-conditional-fields" data-field_type="'+field_type+'" data-field_id="'+field_id+'" value="'+field_id+'">'+field_label+'</option>';
2496
- if( 'html' !== field_type && 'title' !== field_type && 'address' !== field_type && 'image-upload' !== field_type && 'file-upload' !== field_type && 'date-time' !== field_type && 'hidden' !== field_type && 'likert' !== field_type && 'scale-rating' !== field_type ) {
2497
  fields.eq(index).insertAt( el_to_append, dragged_index, selected_id );
2498
  }
2499
  }
2500
  });
2501
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2502
 
2503
  paymentFieldAppendToQuantity: function( id ) {
2504
  var dragged_el = $( '#' + id );
@@ -2578,6 +2654,7 @@
2578
  'hidden',
2579
  'scale-rating',
2580
  'likert',
 
2581
  dragged_el.attr('data-field-type'),
2582
  ];
2583
 
@@ -2587,7 +2664,7 @@
2587
  });
2588
  } else {
2589
  var el_to_append = '<option class="evf-conditional-fields" data-field_type="'+field_type+'" data-field_id="'+field_id+'" value="'+field_id+'">'+field_label+'</option>';
2590
- if( 'html' !== field_type && 'title' !== field_type && 'address' !== field_type && 'image-upload' !== field_type && 'file-upload' !== field_type && 'date-time' !== field_type && 'hidden' !== field_type && 'likert' !== field_type && 'scale-rating' !== field_type ) {
2591
  fields.eq(index).insertAt( el_to_append, dragged_index );
2592
  }
2593
  }
1377
  var $this = $( this ),
1378
  total_rows = $( '.evf-admin-row' ).length,
1379
  current_row = $this.closest( '.evf-admin-row' ),
1380
+ row_id = current_row.attr('data-row-id'),
1381
  current_part = $this.parents( '.evf-admin-field-container' ).attr( 'data-current-part' ),
1382
  multipart_active = $( '#everest-forms-builder' ).hasClass( 'multi-part-activated' );
1383
 
1417
  $( '.everest-forms-fields-tab' ).find( 'a' ).removeClass( 'active' );
1418
  $( '.everest-forms-fields-tab' ).find( 'a' ).first().addClass( 'active' );
1419
  $( '.everest-forms-add-fields' ).show();
1420
+ $( '#everest-forms-row-option-row_' + row_id ).remove();
1421
  }
1422
  },
1423
  cancel: {
1430
  },
1431
  bindAddNewRow: function() {
1432
  $( 'body' ).on( 'click', '.evf-add-row span', function() {
1433
+ $( '#add-fields').trigger( 'click' );
1434
  var $this = $( this ),
1435
  wrapper = $( '.evf-admin-field-wrapper' ),
1436
  row_ids = $( '.evf-admin-row' ).map( function() {
1456
  $this.parent().attr( 'data-total-rows', total_rows );
1457
  $this.parent().attr( 'data-next-row-id', max_row_id );
1458
 
1459
+ if( 0 < $( '.everest-forms-row-options' ).length && false === $this.closest( '.evf-add-row' ).hasClass('repeater-row') ) {
 
1460
 
1461
+ row_clone.find( 'div' ).hide();
1462
+
1463
+ row_clone.css({
1464
+ 'padding': '40px'
1465
+ }).append( '<i class="spinner is-active" style="margin:0px auto;"></i>' );
1466
+
1467
+ // Row append.
1468
+ wrapper.append( row_clone );
1469
+
1470
+
1471
+ // Initialize fields UI.
1472
+ EVFPanelBuilder.bindFields();
1473
+ EVFPanelBuilder.checkEmptyGrid();
1474
+
1475
+ var row_id = row_clone.attr('data-row-id'),
1476
+ evf_data = window.evf_data;
1477
+ $.ajax({
1478
+ url: evf_data.ajax_url,
1479
+ type: 'POST',
1480
+ data: {
1481
+ action: 'everest_forms_new_row',
1482
+ security: evf_data.evf_add_row_nonce,
1483
+ form_id: evf_data.form_id,
1484
+ row_id: row_id
1485
+ },
1486
+ success: function( xhr ) {
1487
+ if( true === xhr.success ) {
1488
+ if( 'undefined' !== typeof xhr.data.html ) {
1489
+ $( document ).find( '.everest-forms-row-option-group' ).append( xhr.data.html );
1490
+ EVFPanelBuilder.conditionalLogicAppendRow( row_id );
1491
+ }
1492
+ }
1493
+ }
1494
+ }).always( function() {
1495
+ row_clone.css( {'padding':0 } );
1496
+
1497
+ row_clone.find( 'div' ).show();
1498
+
1499
+ row_clone.find( '.evf-toggle-row-content' ).css( 'display', 'none' );
1500
+
1501
+ row_clone.find( 'i' ).remove();
1502
+
1503
+ // Trigger event after row add.
1504
+ $this.trigger('everest-forms-after-add-row', row_clone);
1505
+ } );
1506
+ } else {
1507
+ // Row append.
1508
+ wrapper.append( row_clone );
1509
+ // Initialize fields UI.
1510
+ EVFPanelBuilder.bindFields();
1511
+ EVFPanelBuilder.checkEmptyGrid();
1512
+ // Trigger event after row add.
1513
+ $this.trigger('everest-forms-after-add-row', row_clone);
1514
+ }
1515
  });
1516
+
1517
  },
1518
  bindCloneField: function () {
1519
  $( 'body' ).on( 'click', '.everest-forms-preview .everest-forms-field .everest-forms-field-duplicate', function() {
2538
  'hidden',
2539
  'scale-rating',
2540
  'likert',
2541
+ 'yes-no',
2542
  ];
2543
  if( $.inArray( form_field_type, field_to_be_restricted ) === -1 && dragged_field_id !== form_field_id ){
2544
  fields.eq(index).append('<option class="evf-conditional-fields" data-field_type="'+form_field_type+'" data-field_id="'+form_field_id+'" value="'+form_field_id+'">'+form_field_label+'</option>');
2546
  });
2547
  } else {
2548
  var el_to_append = '<option class="evf-conditional-fields" data-field_type="'+field_type+'" data-field_id="'+field_id+'" value="'+field_id+'">'+field_label+'</option>';
2549
+ if( 'html' !== field_type && 'title' !== field_type && 'address' !== field_type && 'image-upload' !== field_type && 'file-upload' !== field_type && 'date-time' !== field_type && 'hidden' !== field_type && 'likert' !== field_type && 'scale-rating' !== field_type && 'yes-no' !== field_type ) {
2550
  fields.eq(index).insertAt( el_to_append, dragged_index, selected_id );
2551
  }
2552
  }
2553
  });
2554
  },
2555
+ conditionalLogicAppendRow: function( id ){
2556
+
2557
+ var new_row_option = $('#everest-forms-row-option-row_' + id);
2558
+
2559
+ var fields = $( '.everest-forms-field' );
2560
+
2561
+ fields.each( function() {
2562
+ var field = $(this),
2563
+ field_id = field.attr( 'data-field-id' ),
2564
+ field_type = field.attr( 'data-field-type' ),
2565
+ field_label = '';
2566
+
2567
+
2568
+ field.find( '.required').remove()
2569
+ field_label = field.find( '.label-title').html();
2570
+
2571
+ var el_to_append = '<option class="evf-conditional-fields" data-field_type="'+field_type+'" data-field_id="'+field_id+'" value="'+field_id+'">'+field_label+'</option>';
2572
+
2573
+ if( 0 === $( document ).find( '.evf-admin-row[data-row-id="'+ id +'"] #everest-forms-field-' + field_id ).length && 0 === new_row_option.find( '.evf-field-conditional-field-select option[data-field_id="'+ field_id +'"]').length && 'html' !== field_type && 'title' !== field_type && 'address' !== field_type && 'image-upload' !== field_type && 'file-upload' !== field_type && 'date-time' !== field_type && 'hidden' !== field_type && 'likert' !== field_type && 'scale-rating' !== field_type ) {
2574
+ new_row_option.find( '.evf-field-conditional-field-select' ).append( el_to_append );
2575
+ }
2576
+ })
2577
+ },
2578
 
2579
  paymentFieldAppendToQuantity: function( id ) {
2580
  var dragged_el = $( '#' + id );
2654
  'hidden',
2655
  'scale-rating',
2656
  'likert',
2657
+ 'yes-no',
2658
  dragged_el.attr('data-field-type'),
2659
  ];
2660
 
2664
  });
2665
  } else {
2666
  var el_to_append = '<option class="evf-conditional-fields" data-field_type="'+field_type+'" data-field_id="'+field_id+'" value="'+field_id+'">'+field_label+'</option>';
2667
+ if( 'html' !== field_type && 'title' !== field_type && 'address' !== field_type && 'image-upload' !== field_type && 'file-upload' !== field_type && 'date-time' !== field_type && 'hidden' !== field_type && 'likert' !== field_type && 'scale-rating' !== field_type && 'yes-no' !== field_type ) {
2668
  fields.eq(index).insertAt( el_to_append, dragged_index );
2669
  }
2670
  }
assets/js/admin/form-builder.min.js CHANGED
@@ -1,4 +1,4 @@
1
- !function(v,c){var a,m={init:function(){v(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"))}),v(document).ready(function(o){"1"===o(".everest-forms-min-max-date-format input").val()&&(o(".everest-forms-min-date").addClass("flatpickr-field").flatpickr({disableMobile:!0,onChange:function(e,t,i){o(".everest-forms-min-date").val(t)},onOpen:function(e,t,i){i.set("maxDate",o(".everest-forms-max-date").val())}}),o(".everest-forms-max-date").addClass("flatpickr-field").flatpickr({disableMobile:!0,onChange:function(e,t,i){o(".everest-forms-max-date").val(t)},onOpen:function(e,t,i){i.set("minDate",o(".everest-forms-min-date").val())}}))}),v("evf-panel-payments-button a").hasClass("active")||(v("#everest-forms-panel-payments").find(".everest-forms-panel-sidebar a").first().addClass("active"),v(".everest-forms-panel-content").find(".evf-payment-setting-content").first().addClass("active")),v(document.body).find("#copy-shortcode").on("click",this.copyShortcode).on("aftercopy",this.copySuccess).on("aftercopyfailure",this.copyFail),v(document.body).find(".evf-copy-shortcode").each(function(){v(this).on("click",m.copyShortcode).on("aftercopy",m.copySuccess).on("aftercopyfailure",m.copyFail)}),v(document).ready(m.ready),v(window).on("load",m.load),v(document.body).on("evf-init-builder-fields",function(){m.bindFields()}).trigger("evf-init-builder-fields"),v(document.body).on("adjust_builder_width",function(){var e=v("#adminmenuwrap").width();v("#everest-forms-builder-form").css({width:"calc(100% - "+e+"px)"})}).trigger("adjust_builder_width"),v(document.body).on("click","#collapse-button",function(){v("#everest-forms-builder-form").width(""),v(document.body).trigger("adjust_builder_width")}),v(window).on("resize orientationchange",function(){clearTimeout(void 0),setTimeout(function(){v("#everest-forms-builder").width(""),v(document.body).trigger("adjust_builder_width")},250)}).trigger("resize")},copyShortcode:function(e){evfClearClipboard(),evfSetClipboard(v(this).closest(".evf-shortcode-field").find("input").val(),v(this)),e.preventDefault()},copySuccess:function(){v(this).tooltipster("content",v(this).attr("data-copied")).trigger("mouseenter").on("mouseleave",function(){var e=v(this);setTimeout(function(){e.tooltipster("content",e.attr("data-tip"))},1e3)})},copyFail:function(){v(this).closest(".evf-shortcode-field").find("input").focus().select()},load:function(){v(".everest-forms-overlay").fadeOut()},ready:function(){var e,t;a=v("#everest-forms-builder"),m.bindUIActions(),m.bindEditActions(),jconfirm.defaults={closeIcon:!0,backgroundDismiss:!0,escapeKey:!0,animationBounce:1,useBootstrap:!1,theme:"modern",boxWidth:"400px",columnClass:"evf-responsive-class"},"undefined"!=typeof PerfectScrollbar&&(e=v(".everest-forms-tab-content"),t=v(".everest-forms-panel"),1<=e.length&&(window.evf_tab_scroller=new PerfectScrollbar(".everest-forms-tab-content",{suppressScrollX:!0})),t.each(function(){var e=v(this),t=e.attr("id");1<=e.find(".everest-forms-panel-sidebar").length&&(window.evf_setting_scroller=new PerfectScrollbar("#"+t+" .everest-forms-panel-sidebar"))})),a.on("change",".everest-forms-field-option-row-limit_enabled input",function(e){m.updateTextFieldsLimitControls(v(e.target).parents(".everest-forms-field-option-row-limit_enabled").data().fieldId,e.target.checked)}),a.on("change",".everest-forms-field-option-row-min_length_enabled input",function(e){m.updateTextFieldsMinLengthControls(v(e.target).parents(".everest-forms-field-option-row-min_length_enabled").data().fieldId,e.target.checked)}),a.on("change",".everest-forms-field-option-select .everest-forms-field-option-row-enhanced_select input",function(e){m.enhancedSelectFieldStyle(v(e.target).parents(".everest-forms-field-option-row-enhanced_select").data().fieldId,e.target.checked)}),a.on("click",".everest-forms-field-option-row-choices .everest-forms-btn-group span",function(e){var t;v(this).hasClass("upgrade-modal")&&"checkbox"===v(this).data("type")?(v(this).parent().find("span").addClass("is-active"),v(this).removeClass("is-active"),m.updateEnhandedSelectField(v(e.target).parents(".everest-forms-field-option-row-choices").data().fieldId,!1)):(v(this).parent().find("span").removeClass("is-active"),v(this).addClass("is-active"),m.updateEnhandedSelectField(v(e.target).parents(".everest-forms-field-option-row-choices").data().fieldId,"multiple"===v(this).data("selection"))),"multiple"===v(this).data("selection")&&"checkbox"===v(this).data("type")&&v(this).hasClass("is-active")?(t=v(this).parent().parent().data("field-id"),v("#everest-forms-field-option-row-"+t+"-select_all").show()):(t=v(this).parent().parent().data("field-id"),v("#everest-forms-field-option-row-"+t+"-select_all").hide())}),v(document.body).on("click",'.everest-forms-field, .everest-forms-field-select[data-field-type="select"]',function(){a.find(".everest-forms-field-option-row-choices .everest-forms-btn-group span").each(function(){var e=v(this).parent().parent().data("field-id");"multiple"===v(this).data("selection")&&"checkbox"===v(this).data("type")&&v(this).hasClass("is-active")?v("#everest-forms-field-option-"+e+"-select_all").parent().show():v("#everest-forms-field-option-"+e+"-select_all").parent().hide()})}),a.on("keyup",".everest-forms-search-fields",function(){var t=v(this).val().toLowerCase();v(".evf-registered-item").each(function(){var e=v(this);field_type=e.data("field-type"),field_label=e.text().toLowerCase(),-1<field_type.search(t)||-1<field_label.search(t)?(e.addClass("evf-searched-item"),e.show()):(e.removeClass("evf-searched-item"),e.hide())}),v(".everest-forms-add-fields-group").each(function(){v(this).find(".evf-registered-item.evf-searched-item").length<=0?v(this).hide():v(this).show()}),v(".evf-registered-item.evf-searched-item").length?v(".everest-forms-fields-not-found").addClass("hidden"):v(".everest-forms-fields-not-found").removeClass("hidden")}),v(document).trigger("everest_forms_ready")},updateTextFieldsLimitControls:function(e,t){t?v("#everest-forms-field-option-row-"+e+"-limit_controls").removeClass("everest-forms-hidden"):v("#everest-forms-field-option-row-"+e+"-limit_controls").addClass("everest-forms-hidden")},updateTextFieldsMinLengthControls:function(e,t){t?v("#everest-forms-field-option-row-"+e+"-min_length_controls").removeClass("everest-forms-hidden"):v("#everest-forms-field-option-row-"+e+"-min_length_controls").addClass("everest-forms-hidden")},enhancedSelectFieldStyle:function(e,t){var i=v("#everest-forms-field-"+e+" .primary-input"),e=v("#everest-forms-field-option-"+e+"-enhanced_select").is(":checked");t&&e&&i.prop("multiple")?(i.addClass("evf-enhanced-select"),v(document.body).trigger("evf-enhanced-select-init")):(i.removeClass("evf-enhanced-select enhanced"),i.filter(".select2-hidden-accessible").selectWoo("destroy"))},updateEnhandedSelectField:function(e,t){var i=v("#everest-forms-field-"+e+" .primary-input"),o=i.find(".placeholder"),s=v("#everest-forms-field-option-"+e+"-multiple_choices"),n=v("#everest-forms-field-option-row-"+e+"-choices input.default"),r=n.filter(":checked");s.val(t?1:0),i.prop("multiple",t),n.prop("type",t?"checkbox":"radio"),!t&&r.length&&(n.prop("checked",!1),v(r.get(0)).prop("checked",!0)),o.length&&t&&o.prop("selected",!t),m.enhancedSelectFieldStyle(e,t)},bindUIActions:function(){m.bindDefaultTabs(),m.checkEmptyGrid(),m.bindFields(),m.bindFormPreview(),m.bindFormPreviewWithKeyEvent(),m.bindFormEntriesWithKeyEvent(),m.bindGridSwitcher(),m.bindFieldSettings(),m.bindFieldDelete(),m.bindFieldDeleteWithKeyEvent(),m.bindCloneField(),m.bindSaveOption(),m.bindSaveOptionWithKeyEvent(),m.bindOpenShortcutKeysModalWithKeyEvent(),m.bindAddNewRow(),m.bindRemoveRow(),m.bindFormSettings(),m.bindFormEmail(),m.bindFormSmsNotifications(),m.bindFormIntegrations(),m.bindFormPayment(),m.choicesInit(),m.bindToggleHandleActions(),m.bindLabelEditInputActions(),m.bindSyncedInputActions(),m.init_datepickers(),m.bindBulkOptionActions(),m.bindUIActionsFields(),"field-options"===c.tab&&v(".evf-panel-field-options-button").trigger("click"),v(document.body).on("everest-forms-field-drop",".evf-registered-buttons .evf-registered-item",function(){m.fieldDrop(v(this).clone())})},bindBulkOptionActions:function(){v(document.body).on("click",".evf-toggle-bulk-options",function(e){v(this).closest(".everest-forms-field-option").find(".everest-forms-field-option-row-add_bulk_options").slideToggle()}),v(document.body).on("click",".evf-toggle-presets-list",function(e){v(this).closest(".everest-forms-field-option").find(".everest-forms-field-option-row .evf-options-presets").slideToggle()}),v(document.body).on("click",".evf-add-bulk-options",function(e){var t,i=v(this).closest(".everest-forms-field-option-row"),o=i.data("field-id");i.length&&(t=i.closest(".everest-forms-field-option").find(".everest-forms-field-option-row-choices .evf-choices-list"),i=(o=i.find("textarea#everest-forms-field-option-"+o+"-add_bulk_options")).val().split("\n"),m.addBulkOptions(i,t),o.val(""))}),v(document.body).on("click",".evf-options-preset-label",function(e){var t,i=v(this).closest(".everest-forms-field-option-row"),o=i.data("field-id");i.length&&(t=v(this).closest(".evf-options-preset").find(".evf-options-preset-value").val(),i.find("textarea#everest-forms-field-option-"+o+"-add_bulk_options").val(t),v(this).closest(".evf-options-presets").slideUp())}),v(document.body).on("click",".everest-forms-field-option-row-password_strength",function(){v(this).find('[type="checkbox"]:first').prop("checked")&&v(this).next().find('[type="checkbox"]:first').prop("checked",!1)}),v(document.body).on("click",".everest-forms-field-option-row-password_validation",function(){v(this).find('[type="checkbox"]:first').prop("checked")&&(v(this).prev().find('[type="checkbox"]:first').prop("checked",!1),v(this).prev().find(".everest-forms-inner-options").addClass("everest-forms-hidden"))})},addBulkOptions:function(e,i){e.forEach(function(e){var t;""!==e&&(t=i.find("li").last().find("a.add"),m.choiceAdd(null,t,e.trim()))})},init_datepickers:function(){var e=v(".everest-forms-disable-dates").data("date-format");v(".everest-forms-disable-dates").each(function(){v(this).get(0)._flatpickr||v(this).flatpickr({dateFormat:e,mode:"multiple"})}),v(document.body).on("change",".evf-date-format",function(e){var t=v(".everest-forms-field-option:visible .everest-forms-disable-dates"),i=t.get(0)._flatpickr,o=i.selectedDates,s=v(this).val(),n=[];o.forEach(function(e){n.push(flatpickr.formatDate(e,s))}),i.set("dateFormat",s),t.val(n.join(", "))}),v(document.body).on("click",".evf-clear-disabled-dates",function(){v(".everest-forms-field-option:visible .everest-forms-disable-dates").get(0)._flatpickr.clear()}),v(".everest-forms-field-date-time").each(function(){var e=v(this).attr("data-field-id");m.dateSettingToggler(e,v("#everest-forms-field-option-"+e+"-datetime_style").val())})},bindEditActions:function(){v("#edit-form-name").on("click",function(e){e.stopPropagation(),""!==v("#evf-edit-form-name").val().trim()&&m.toggleEditTitle(e)}),v("#evf-edit-form-name").on("change keypress",function(e){var t=v(this);e.stopPropagation(),13===e.which&&""!==v(this).val().trim()&&m.toggleEditTitle(e),""!==t.val().trim()&&v("#everest-forms-panel-field-settings-form_title").val(t.val().trim())}).on("click",function(e){e.stopPropagation()}),v(document).not(v(".everest-forms-title-desc")).on("click",function(e){var t=v("#evf-edit-form-name");e.stopPropagation(),!t.prop("disabled")&&t.val()&&""!==t.val().trim()&&m.toggleEditTitle(e)})},toggleEditTitle:function(e){var t=v("#edit-form-name").siblings("#evf-edit-form-name");e.preventDefault(),t.prop("disabled",function(e,t){return!t}),t.hasClass("everst-forms-name-editing")||t.focus(),t.toggleClass("everst-forms-name-editing")},formObject:function(e){for(var t=jQuery(e).find("[name]"),i={},o={},s=0;s<t.length;s++){var n=jQuery(t[s]),r=n.prop("name").replace(/\]/gi,"").split("["),a=n.val(),d={};if(!n.is(":radio")&&!n.is(":checkbox")||n.is(":checked")){for(var l=r.length-1;0<=l;l--){var f=r[l];if(0===(f=void 0===f?"":f).length&&(d=[],"undefined"==typeof o[r[l-1]]?o[r[l-1]]=0:o[r[l-1]]+=1,f=o[r[l-1]]),l===r.length-1){if(a)if("true"===a)a=!0;else if("false"===a)a=!1;else if(isNaN(parseFloat(a))||parseFloat(a).toString()!==a)if("string"!=typeof a||"{"!==a.substr(0,1)&&"["!==a.substr(0,1)){if("object"==typeof a&&a.length&&n.is("select")){for(var c={},l=0;l<a.length;l++)c["n"+l]=a[l];a=c}}else try{a=JSON.parse(a)}catch(p){}else a=parseFloat(a);d[f]=a}else{var m=d;(d={})[f]=m}}v.extend(!0,i,d)}}return i},bindUIActionsFields:function(){a.on("click",".everest-forms-field-option-row-choices .add",function(e){m.choiceAdd(e,v(this))}),a.on("click",".everest-forms-field-option-row-choices .remove",function(e){m.choiceDelete(e,v(this))}),a.on("mousedown",".everest-forms-field-option-row-choices input[type=radio]",function(){var e=v(this);e.is(":checked")?e.attr("data-checked","1"):e.attr("data-checked","0")}),a.on("click",".everest-forms-field-option-row-choices input[type=radio]",function(){var e=v(this),t=e.parent().parent();e.parent().parent().find("input[type=radio]").not(this).prop("checked",!1),"1"===e.attr("data-checked")&&(e.prop("checked",!1),e.attr("data-checked","0")),m.choiceUpdate(t.data("field-type"),t.data("field-id"))}),a.on("change",".everest-forms-field-option-row-choices input[type=checkbox]",function(e){var t=v(this).parent().parent();m.choiceUpdate(t.data("field-type"),t.data("field-id"))}),a.on("keyup paste focusout",".everest-forms-field-option-row-choices input.label, .everest-forms-field-option-row-choices input.value",function(e){var t=v(this).parent().parent().parent();m.choiceUpdate(t.data("field-type"),t.data("field-id"))}),a.on("change",".everest-forms-field-option-row-show_values input",function(e){v(this).closest(".everest-forms-field-option").find(".everest-forms-field-option-row-choices ul").toggleClass("show-values")}),a.on("change",".everest-forms-field-option-row-choices_images input",function(){var e=v(this),t=e.parent().data("field-id"),i=v("#everest-forms-field-option-"+t),o=v("#everest-forms-field-option-"+t+"-input_columns"),s=v("#everest-forms-field-option-"+t).find(".everest-forms-field-option-hidden-type").val();e.parent().find(".notice").toggleClass("hidden"),i.find(".everest-forms-field-option-row-choices ul").toggleClass("show-images"),(e.is(":checked")?o.val("inline"):o.val("")).trigger("change"),m.choiceUpdate(s,t)}),a.on("click",".everest-forms-attachment-media-view .upload-button",function(e){var t,i,o=v(this);e.preventDefault(),i||(i=wp.media.frames.everestforms_media_frame=wp.media({title:c.i18n_upload_image_title,className:"media-frame everest-forms-media-frame",frame:"select",multiple:!1,library:{type:"image"},button:{text:c.i18n_upload_image_button}})).on("select",function(){var e=i.state().get("selection").first().toJSON();(t=o.hasClass("button-add-media")?(o.hide(),o.parent()):o.parent().parent().parent()).find(".source").val(e.url),t.find(".attachment-thumb").remove(),t.find(".thumbnail-image").prepend('<img class="attachment-thumb" src="'+e.url+'">'),t.find(".actions").show(),a.trigger("everestFormsImageUploadAdd",[o,t])}),i.open()}),a.on("click",".everest-forms-attachment-media-view .remove-button",function(e){e.preventDefault();e=v(this).parent().parent();e.find(".attachment-thumb").remove(),e.parent().find(".source").val(""),e.parent().find(".button-add-media").show(),a.trigger("everestFormsImageUploadRemove",[v(this),e])}),a.on("everestFormsImageUploadAdd everestFormsImageUploadRemove",function(e,t,i){var i=i.closest(".evf-choices-list"),o=i.data("field-type"),i=i.data("field-id");m.choiceUpdate(o,i)}),a.on("change",".everest-forms-field-option-row-input_columns select",function(){var e=v(this),t=e.val(),e=e.parent().data("field-id"),i="";"inline"===t?i="everest-forms-list-inline":""!==t&&(i="everest-forms-list-"+t+"-columns"),v("#everest-forms-field-"+e).removeClass("everest-forms-list-inline everest-forms-list-2-columns everest-forms-list-3-columns").addClass(i)}),a.on("click",".everest-forms-fields-tab a",function(e){e.preventDefault(),m.fieldTabChoice(v(this).attr("id"))}),v(document).on("mouseenter",'.everest-forms-tabs li[class*="part_"]',function(){!1===v(this).hasClass("active")&&(v(document).find(".everest-forms-field").hasClass("ui-sortable-helper")||v(document).find(".evf-registered-buttons button.evf-registered-item").hasClass("field-dragged"))&&v(this).find("a").trigger("click")}),a.on("change",".everest-forms-field-option-address input.hide",function(){var e=v(this),t=e.parent().parent().data("field-id"),e=e.parent().parent().data("subfield");v("#everest-forms-field-"+t).find(".everest-forms-"+e).toggleClass("hidden")}),a.on("input",".everest-forms-field-option-row-label input",function(){var e=v(this),t=e.val(),e=e.parent().data("field-id");($label=v("#everest-forms-field-"+e).find(".label-title .text")).hasClass("nl2br")?$label.html(t.replace(/\n/g,"<br>")):$label.html(t)}),a.on("change",".everest-forms-field-option-row-enable_prepopulate input",function(e){var t=v(this).parent().data("field-id");v("#everest-forms-field-"+t).toggleClass("parameter_name"),v(e.target).is(":checked")?v("#everest-forms-field-option-row-"+t+"-parameter_name").show():v("#everest-forms-field-option-row-"+t+"-parameter_name").hide()}),a.on("input",".everest-forms-field-option-row-description textarea",function(){var e=v(this),t=e.val(),e=e.parent().data("field-id"),e=v("#everest-forms-field-"+e).find(".description");e.hasClass("nl2br")?e.html(t.replace(/\n/g,"<br>")):e.html(t)}),a.on("change",".everest-forms-field-option-row-required input",function(e){var t=v(this).parent().data("field-id");v("#everest-forms-field-"+t).toggleClass("required"),v(e.target).is(":checked")?v("#everest-forms-field-option-row-"+t+"-required-field-message").show():v("#everest-forms-field-option-row-"+t+"-required-field-message").hide()}),a.on("change",".everest-forms-field-option-row-confirmation input",function(e){var t=v(this).parent().data("field-id");v(e.target).is(":checked")?(v("#everest-forms-field-"+t).find(".everest-forms-confirm").removeClass("everest-forms-confirm-disabled").addClass("everest-forms-confirm-enabled"),v("#everest-forms-field-option-"+t).removeClass("everest-forms-confirm-disabled").addClass("everest-forms-confirm-enabled")):(v("#everest-forms-field-"+t).find(".everest-forms-confirm").removeClass("everest-forms-confirm-enabled").addClass("everest-forms-confirm-disabled"),v("#everest-forms-field-option-"+t).removeClass("everest-forms-confirm-enabled").addClass("everest-forms-confirm-disabled"))}),a.on("input",".everest-forms-field-option-row-placeholder input",function(e){var t=v(this),i=t.val(),t=t.parent().data("field-id"),t=v("#everest-forms-field-"+t).find(".widefat:not(.secondary-input)");t.is("select")?i.length?(t.find(".placeholder").length?t.find(".placeholder").text(i):t.prepend('<option class="placeholder" selected>'+i+"</option>"),t.data("placeholder",i),t.hasClass("enhanced")&&t.parent().find(".select2-search__field").prop("placeholder",i)):t.find(".placeholder").remove():t.attr("placeholder",i)}),a.on("input",".everest-forms-field-option-address input.placeholder",function(e){var t=v(this),i=t.val(),o=t.parent().parent().data("field-id"),t=t.parent().parent().data("subfield");v("#everest-forms-field-"+o).find(".everest-forms-"+t+" input").attr("placeholder",i)}),a.on("input",".everest-forms-field-option-row-confirmation_placeholder input",function(){var e=v(this),t=e.val(),e=e.parent().data("field-id");v("#everest-forms-field-"+e).find(".secondary-input").attr("placeholder",t)}),a.on("change",".everest-forms-field-option-row-label_hide input",function(){var e=v(this).parent().data("field-id");v("#everest-forms-field-"+e).toggleClass("label_hide")}),a.on("change",".everest-forms-field-option-row-sublabel_hide input",function(){var e=v(this).parent().data("field-id");v("#everest-forms-field-"+e).toggleClass("sublabel_hide")}),a.on("change",".everest-forms-field-option-row-datetime_format select, .everest-forms-field-option-row-phone_format select, .everest-forms-field-option-row-item_price select, .everest-forms-field-option-row-format select",function(e){var t=v(this),i=t.val(),t=t.parent().data("field-id");v("#everest-forms-field-"+t).find(".format-selected").removeClass().addClass("format-selected format-selected-"+i),v("#everest-forms-field-option-"+t).find(".format-selected").removeClass().addClass("format-selected format-selected-"+i)}),a.on("change",".everest-forms-field-option-row-datetime_style select",function(){m.dateSettingToggler(v(this).parent().attr("data-field-id"),v(this).val())}),v(".everest-forms-field-option-row-time_interval_format [id*=enable_min_max_time]").each(function(){v(this).prop("checked")?(v(this).parent().parent().find(".input-group-col-2").has(" [id*=min_time_hour]").show(),v(this).parent().parent().find(".input-group-col-2").has(" [id*=max_time_hour]").show(),v(this).parent().parent().find(".input-group-col-2").has(" [for*=select_min_time]").show(),v(this).parent().parent().find(".input-group-col-2").has("[for*=select_max_time]").show()):(v(this).parent().parent().find(".input-group-col-2").has("[id*=min_time_hour]").hide(),v(this).parent().parent().find(".input-group-col-2").has("[id*=max_time_hour]").hide(),v(this).parent().parent().find("[for*=select_min_time]").hide(),v(this).parent().parent().find("[for*=select_max_time]").hide())}),a.on("click",".everest-forms-field-option-row-time_interval_format [id*=enable_min_max_time]",function(){v(this).prop("checked")?(v(this).parent().parent().find(".input-group-col-2").has(" [id*=min_time_hour]").show(),v(this).parent().parent().find(".input-group-col-2").has(" [id*=max_time_hour]").show(),v(this).parent().parent().find("[for*=select_min_time]").show(),v(this).parent().parent().find("[for*=select_max_time]").show()):(v(this).parent().parent().find(".input-group-col-2").has("[id*=min_time_hour]").hide(),v(this).parent().parent().find(".input-group-col-2").has("[id*=max_time_hour]").hide(),v(this).parent().parent().find("[for*=select_min_time]").hide(),v(this).parent().parent().find("[for*=select_max_time]").hide())}),a.on("change",".everest-forms-field-option-row-time_interval_format select[id*=time_format]",function(){min_hour=v(this).parent().siblings(".input-group-col-2").find("[id*=min_time_hour]"),max_hour=v(this).parent().siblings(".input-group-col-2").find("[id*=max_time_hour]");var e,t,o=min_hour.find("option:selected").val(),s=max_hour.find("option:selected").val(),n="";for(i=0;i<=23;i++)"H:i"===v(this).val()?n+='<option value = "'+i+'">'+(i<10?"0"+i:i)+"</option>":(e=" PM",0==(t=i<12?(e=" AM",i):i-12)&&(t=12),n+='<option value = "'+i+'">'+t+e+"</option>");min_hour.html(n),max_hour.html(n),min_hour.find("option[value="+o+"]").prop("selected",!0),max_hour.find("option[value="+s+"]").prop("selected",!0)})},dateSettingToggler:function(e,t){"picker"==t?(v("#everest-forms-field-option-row-"+e+"-placeholder").show(),v("#everest-forms-field-option-"+e+"-disable_dates").show(),v("label[for=everest-forms-field-option-"+e+"-disable_dates]").show(),v("#everest-forms-field-option-"+e+"-date_mode-range").parents().find("everest-forms-checklist").show(),v(".everest-forms-field-option-row-date_format .time_interval").show(),v("#everest-forms-field-option-"+e+"-date_localization").show(),v("label[for=everest-forms-field-option-"+e+"-date_localization]").show(),v("#everest-forms-field-option-"+e+"-date_default").parent().show(),v("#everest-forms-field-option-"+e+"-past_date_disable").parent().show(),v("#everest-forms-field-option-"+e+"-enable_min_max").parent().show(),v("#everest-forms-field-option-"+e+"-enable_min_max").prop("checked")&&v("#everest-forms-field-option-row-"+e+"-date_format .everest-forms-min-max-date-option").removeClass("everest-forms-hidden"),v("#everest-forms-field-option-"+e+"-time_interval").show(),v("#everest-forms-field-option-"+e+"-enable_min_max_time").hide(),v("label[for=everest-forms-field-option-"+e+"-enable_min_max_time]").hide(),v("label[for=everest-forms-field-option-"+e+"-select_min_time]").hide(),v("label[for=everest-forms-field-option-"+e+"-select_max_time]").hide(),v("#everest-forms-field-option-"+e+"-min_time_hour").parent().hide(),v("#everest-forms-field-option-"+e+"-max_time_hour").parent().hide()):(v("#everest-forms-field-option-"+e+"-date_mode-range").parents().find("everest-forms-checklist").hide(),v("#everest-forms-field-option-"+e+"-date_default").parent().hide(),v("#everest-forms-field-option-"+e+"-past_date_disable").parent().hide(),v("#everest-forms-field-option-row-"+e+"-placeholder").hide(),v("#everest-forms-field-option-"+e+"-enable_min_max").parent().hide(),v("#everest-forms-field-option-row-"+e+"-date_format .everest-forms-min-max-date-option").addClass("everest-forms-hidden"),v("#everest-forms-field-option-"+e+"-disable_dates").hide(),v("label[for=everest-forms-field-option-"+e+"-disable_dates]").hide(),v(".everest-forms-field-option-row-date_format .everest-forms-checklist").hide(),v(".everest-forms-field-option-row-date_format .time_interval").hide(),v("#everest-forms-field-option-"+e+"-date_localization").hide(),v("label[for=everest-forms-field-option-"+e+"-date_localization]").hide(),v("#everest-forms-field-option-"+e+"-time_interval").hide(),v("#everest-forms-field-option-"+e+"-enable_min_max_time").show(),v("label[for=everest-forms-field-option-"+e+"-enable_min_max_time]").show(),v("#everest-forms-field-option-"+e+"-enable_min_max_time").prop("checked")&&(v("label[for=everest-forms-field-option-"+e+"-select_min_time]").show(),v("label[for=everest-forms-field-option-"+e+"-select_max_time]").show(),v("#everest-forms-field-option-"+e+"-min_time_hour").parent().show(),v("#everest-forms-field-option-"+e+"-max_time_hour").parent().show()))},choicesInit:function(e){v(e=e||".everest-forms-field-option-row-choices ul").sortable({items:"li",axis:"y",handle:".sort",scrollSensitivity:40,stop:function(e){var e=v(e.target).attr("data-field-id"),t=v("#everest-forms-field-option-"+e).find(".everest-forms-field-option-hidden-type").val();m.choiceUpdate(t,e)}})},choiceAdd:function(e,t,i){e&&e.preventDefault&&e.preventDefault();var e=v(t),t=e.parent(),o=t.find("input.default").is(":checked"),e=e.closest(".everest-forms-field-option-row-choices").data("field-id"),s=t.parent().attr("data-next-id"),n=t.parent().data("field-type"),r=t.clone().insertAfter(t);r.attr("data-key",s),r.find("input.label").val(i).attr("name","form_fields["+e+"][choices]["+s+"][label]"),r.find("input.value").val(i).attr("name","form_fields["+e+"][choices]["+s+"][value]"),r.find("input.source").val("").attr("name","form_fields["+e+"][choices]["+s+"][image]"),r.find("input.default").attr("name","form_fields["+e+"][choices]["+s+"][default]").prop("checked",!1),r.find(".attachment-thumb").remove(),r.find(".button-add-media").show(),!0===o&&t.find("input.default").prop("checked",!0),s++,t.parent().attr("data-next-id",s),a.trigger("everestFormsChoiceAdd"),m.choiceUpdate(n,e)},choiceDelete:function(e,t){e.preventDefault();e=v(t),t=e.parent().parent();t.find("li").length<2?v.alert({title:!1,content:c.i18n_field_error_choice,icon:"dashicons dashicons-info",type:"blue",buttons:{ok:{text:c.i18n_ok,btnClass:"btn-confirm",keys:["enter"]}}}):(e.parent().remove(),m.choiceUpdate(t.data("field-type"),t.data("field-id")),a.trigger("everestFormsChoiceDelete"))},choiceUpdate:function(s,n){var e,t,r,i=v("#everest-forms-field-option-"+n);if($primary=v("#everest-forms-field-"+n+" .primary-input"),"radio"===s||"checkbox"===s||"payment-multiple"===s||"payment-checkbox"===s)return e=[],i=m.formObject(i).form_fields[n],v("#everest-forms-field-option-"+n).find(".evf-choices-list li").each(function(){e.push(v(this).data("key"))}),t=wp.template("everest-forms-field-preview-choices"),data={type:s="checkbox"===s||"payment-checkbox"===s?"checkbox":"radio",order:e,settings:i,amountFilter:m.amountFilter},void v("#everest-forms-field-"+n).find("ul.primary-input").replaceWith(t(data));"select"===s&&(r="<option>{label}</option>",$primary.find("option").not(".placeholder").remove()),v("#everest-forms-field-option-row-"+n+"-choices .evf-choices-list li").each(function(e){var t=v(this),i=t.find("input.label").val(),t=t.find("input.default").is(":checked"),o=v(r.replace("{label}",i));if(v("#everest-forms-field-"+n+" .primary-input").append(o),i&&!0===t)switch(s){case"select":o.prop("selected",!0);break;case"radio":case"checkbox":o.find("input").prop("checked",!0)}})},amountFilter:function(e,t){return"right"===e.currency_symbol_pos?t+" "+e.currency_symbol:e.currency_symbol+" "+t},bindFormSettings:function(){v("body").on("click",".evf-setting-panel",function(e){var t=v(this).attr("data-section");v(".evf-setting-panel").removeClass("active"),v(".everest-forms-active-email").removeClass("active"),v(".everest-forms-active-sms-notifications").removeClass("active"),v(".evf-content-section").removeClass("active"),v(this).addClass("active"),v(".evf-content-"+t+"-settings").addClass("active"),e.preventDefault()}),v(".evf-setting-panel").eq(0).trigger("click")},bindFormEmail:function(){v("body").on("click",".everest-forms-panel-sidebar-section-email",function(e){v(this).siblings(".everest-forms-active-email").removeClass("active"),v(this).next(".everest-forms-active-email").addClass("active");var t=v(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()})},bindFormSmsNotifications:function(){v("body").on("click",".everest-forms-panel-sidebar-section-sms-notifications",function(e){v(this).siblings(".everest-forms-active-sms-notifications").removeClass("active"),v(this).next(".everest-forms-active-sms-notifications").addClass("active");var t=v(this).siblings(".everest-forms-active-sms-notifications.active").find(".everest-forms-active-sms-notifications-connections-list li");t.length&&t.children(".user-nickname").first().trigger("click"),e.preventDefault()})},bindFormIntegrations:function(){v("body").on("click",".evf-integrations-panel",function(e){var t=v(this).attr("data-section"),i=(v(".evf-integrations-panel").removeClass("active"),v("#everest-forms-panel-integrations").find(".evf-panel-content-section").removeClass("active"),v(this).addClass("active"),v(this).parent().find(".everest-forms-active-connections").removeClass("active"),v(this).next(".everest-forms-active-connections").addClass("active"),v(this).siblings(".everest-forms-active-connections.active").find(".everest-forms-active-connections-list li"));i.length&&i.children(".user-nickname").first().trigger("click"),v(".evf-panel-content-section-"+t).addClass("active"),e.preventDefault()}),v(".evf-setting-panel").eq(0).trigger("click")},bindFormPayment:function(){v("body").on("click",".evf-payments-panel",function(e){var t=v(this).attr("data-section");v(".evf-payments-panel").removeClass("active"),v(this).siblings().removeClass("icon active"),v(this).addClass("active"),v(this).parents("#everest-forms-panel-payments").find(".evf-payment-setting-content").removeClass("active").hide(),v(".evf-content-"+t+"-settings").addClass("active").show(),e.preventDefault()}),v(".evf-setting-panel").eq(0).trigger("click")},removeRow:function(e){v.each(e.find(".everest-forms-field"),function(){var e=v(this).attr("data-field-id"),e=v("#everest-forms-field-option-"+e);v(this).remove(),e.remove()}),e.remove()},bindRemoveRow:function(){v("body").on("click",".evf-delete-row",function(){var e=v(this),t=v(".evf-admin-row").length,i=e.closest(".evf-admin-row"),e=e.parents(".evf-admin-field-container").attr("data-current-part"),o=v("#everest-forms-builder").hasClass("multi-part-activated");(t=e&&o?v("#part_"+e).find(".evf-admin-row").length:t)<2?v.alert({title:c.i18n_row_locked,content:c.i18n_row_locked_msg,icon:"dashicons dashicons-info",type:"blue",buttons:{confirm:{text:c.i18n_close,btnClass:"btn-confirm",keys:["enter"]}}}):v.confirm({title:!1,content:c.i18n_delete_row_confirm,type:"red",closeIcon:!1,backgroundDismiss:!1,icon:"dashicons dashicons-warning",buttons:{confirm:{text:c.i18n_ok,btnClass:"btn-confirm",keys:["enter"],action:function(){m.removeRow(i),v(".everest-forms-fields-tab").find("a").removeClass("active"),v(".everest-forms-fields-tab").find("a").first().addClass("active"),v(".everest-forms-add-fields").show()}},cancel:{text:c.i18n_cancel}}})})},bindAddNewRow:function(){v("body").on("click",".evf-add-row span",function(){var e=v(this),t=v(".evf-admin-field-wrapper"),i=v(".evf-admin-row").map(function(){return v(this).data("row-id")}).get(),i=Math.max.apply(Math,i),o=v(".evf-admin-row").eq(0).clone(),s=e.parent().attr("data-total-rows"),n=e.parents(".evf-admin-field-container").attr("data-current-part");i++,s++,n&&(t=v(".evf-admin-field-wrapper").find("#part_"+n)),o.find(".evf-admin-grid").html(""),o.attr("data-row-id",i),e.parent().attr("data-total-rows",s),e.parent().attr("data-next-row-id",i),t.append(o),m.bindFields(),m.checkEmptyGrid(),e.trigger("everest-forms-after-add-row",o)})},bindCloneField:function(){v("body").on("click",".everest-forms-preview .everest-forms-field .everest-forms-field-duplicate",function(){var e=v(this).closest(".everest-forms-field");e.hasClass("no-duplicate")?v.alert({title:c.i18n_field_locked,content:c.i18n_field_locked_msg,icon:"dashicons dashicons-info",type:"blue",buttons:{confirm:{text:c.i18n_close,btnClass:"btn-confirm",keys:["enter"]}}}):v.confirm({title:!1,content:c.i18n_duplicate_field_confirm,type:"orange",closeIcon:!1,backgroundDismiss:!1,icon:"dashicons dashicons-warning",buttons:{confirm:{text:c.i18n_ok,btnClass:"btn-confirm",keys:["enter"],action:function(){m.cloneFieldAction(e)}},cancel:{text:c.i18n_cancel}}})}),v("body").on("click",".evf-admin-row .evf-duplicate-row",function(){var e=v(this).closest(".evf-admin-row");e.find(".everest-forms-field").hasClass("no-duplicate")?v.alert({title:c.i18n_field_locked,content:c.i18n_row_locked_msg,icon:"dashicons dashicons-info",type:"blue",buttons:{confirm:{text:c.i18n_close,btnClass:"btn-confirm",keys:["enter"]}}}):v.confirm({title:!1,content:c.i18n_duplicate_row_confirm,type:"orange",closeIcon:!1,backgroundDismiss:!1,icon:"dashicons dashicons-warning",buttons:{confirm:{text:c.i18n_ok,btnClass:"btn-confirm",keys:["enter"],action:function(){m.cloneRowAction(e)}},cancel:{text:c.i18n_cancel}}})})},cloneRowAction:function(t){row_ids=v(".evf-admin-row").map(function(){return v(this).data("row-id")}).get(),max_row_id=Math.max.apply(Math,row_ids),row_clone=t.clone(),total_rows=v(".evf-add-row").attr("data-total-rows"),max_row_id++,total_rows++,row_clone.attr("data-row-id",max_row_id),v(".evf-add-row").attr("data-total-rows",total_rows),v(".evf-add-row").attr("data-next-row-id",max_row_id);var e={action:"everest_forms_get_next_id",security:c.evf_get_next_id,form_id:c.form_id,fields:row_clone.find(".everest-forms-field").length};v.ajax({url:c.ajax_url,data:e,type:"POST",beforeSend:function(){v(document.body).trigger("init_field_options_toggle")},success:function(e){"boolean"==typeof e.success&&!0===e.success&&(t.after(row_clone),v.each(e.data,function(e,t){var i=t.field_id,t=t.field_key,i=(v("#everest-forms-field-id").val(i),(field=row_clone.find(".everest-forms-field").eq(e)).attr("data-field-id"));m.render_node(field,i,t),field.remove(),v(document.body).trigger("init_field_options_toggle")}),m.bindFields())}})},cloneFieldAction:function(i){var o=i.attr("data-field-id"),e=c.form_id,e={action:"everest_forms_get_next_id",security:c.evf_get_next_id,form_id:e};v.ajax({url:c.ajax_url,data:e,type:"POST",beforeSend:function(){v(document.body).trigger("init_field_options_toggle")},success:function(e){var t;"boolean"==typeof e.success&&!0===e.success&&(t=e.data.field_id,e=e.data.field_key,v("#everest-forms-field-id").val(t),m.render_node(i,o,e),v(document.body).trigger("init_field_options_toggle"))}})},render_node:function(e,o,s){var t=v(".everest-forms-field-options #everest-forms-field-option-"+o),i=v("#everest-forms-field-option-"+o+"-label").val(),n=v("#everest-forms-field-option-"+o+"-meta-key").length?v("#everest-forms-field-option-"+o+"-meta-key").val():"",r=e.attr("data-field-type"),a=t.html(),i=i+" "+c.i18n_copy,n="html"!==r?n.replace(/\(|\)/g,"").toLowerCase().substring(0,n.lastIndexOf("_"))+"_"+Math.floor(1e3+9e3*Math.random()):"",d=e.clone(),l=new RegExp(o,"g"),a=a.replace(l,s),f=v('<div class="everest-forms-field-option everest-forms-field-option-'+r+'" id="everest-forms-field-option-'+s+'" data-field-id="'+s+'" />');f.append(a),v.each(t.find(":input"),function(){var e,t=v(this).attr("type"),i=(v(this).attr("name")?v(this).attr("name"):"").replace(l,s);"text"===t||"hidden"===t?(e=v(this).val(),f.find('input[name="'+i+'"]').val(e),f.find('input[value="'+o+'"]').val(s)):"checkbox"===t||"radio"===t?v(this).is(":checked")?f.find('input[name="'+i+'"]').prop("checked",!0).attr("checked","checked"):f.find('[name="'+i+'"]').prop("checked",!1).attr("checked",!1):v(this).is("select")?v(this).find("option:selected").length&&(e=v(this).find("option:selected").val(),f.find('[name="'+i+'"]').find('[value="'+e+'"]').prop("selected",!0)):""!==v(this).val()&&f.find('[name="'+i+'"]').val(v(this).val())}),v(".everest-forms-field-options").append(f),v("#everest-forms-field-option-"+s+"-label").val(i),v("#everest-forms-field-option-"+s+"-meta-key").val(n),d.attr("class",e.attr("class")),d.attr("id","everest-forms-field-"+s),d.attr("data-field-id",s),d.attr("data-field-type",r),d.find(".label-title .text").text(i),e.closest(".evf-admin-grid").find('[data-field-id="'+o+'"]').after(d),v(document).trigger("everest-form-cloned",[s,r]),m.switchToFieldOptionPanel(s),v(document.body).trigger("evf_render_node_complete",[r,s,d,f])},bindFieldDelete:function(){v("body").on("click",".everest-forms-preview .everest-forms-field .everest-forms-field-delete",function(){var t=v(this).closest(".everest-forms-field"),e=t.attr("data-field-id"),i=v("#everest-forms-field-option-"+e);v(this).closest(".evf-admin-grid");t.hasClass("no-delete")?v.alert({title:c.i18n_field_locked,content:c.i18n_field_locked_msg,icon:"dashicons dashicons-info",type:"blue",buttons:{confirm:{text:c.i18n_close,btnClass:"btn-confirm",keys:["enter"]}}}):v.confirm({title:!1,content:c.i18n_delete_field_confirm,type:"red",closeIcon:!1,backgroundDismiss:!1,icon:"dashicons dashicons-warning",buttons:{confirm:{text:c.i18n_ok,btnClass:"btn-confirm",keys:["enter"],action:function(){v(".evf-panel-fields-button").trigger("click"),t.fadeOut("slow",function(){var e=t.attr("data-field-id");v(document.body).trigger("evf_before_field_deleted",[e]),t.remove(),i.remove(),m.checkEmptyGrid(),v(".everest-forms-fields-tab").find("a").removeClass("active"),v(".everest-forms-fields-tab").find("a").first().addClass("active"),v(".everest-forms-add-fields").show(),m.conditionalLogicRemoveField(e),m.conditionalLogicRemoveFieldIntegration(e),m.paymentFieldRemoveFromQuantity(e)})}},cancel:{text:c.i18n_cancel}}})})},bindFieldDeleteWithKeyEvent:function(){v("body").on("keyup",function(e){var t,i=v(".everest-forms-preview .everest-forms-field.active");46===e.which&&!0===i.hasClass("active")&&!1===i.hasClass("evf-delete-event-active")&&0!=v(".evf-admin-row").hasClass("evf-hover")&&(i.addClass("evf-delete-event-active"),e=i.attr("data-field-id"),t=v("#everest-forms-field-option-"+e),i.hasClass("no-delete")?v.alert({title:c.i18n_field_locked,content:c.i18n_field_locked_msg,icon:"dashicons dashicons-info",type:"blue",buttons:{confirm:{text:c.i18n_close,btnClass:"btn-confirm",keys:["enter"],action:function(){i.removeClass("evf-delete-event-active")}}}}):v.confirm({title:!1,content:c.i18n_delete_field_confirm,type:"red",closeIcon:!1,backgroundDismiss:!1,icon:"dashicons dashicons-warning",buttons:{confirm:{text:c.i18n_ok,btnClass:"btn-confirm",keys:["enter"],action:function(){v(".evf-panel-fields-button").trigger("click"),i.fadeOut("slow",function(){var e=i.attr("data-field-id");v(document.body).trigger("evf_before_field_deleted",[e]),i.remove(),t.remove(),m.checkEmptyGrid(),v(".everest-forms-fields-tab").find("a").removeClass("active"),v(".everest-forms-fields-tab").find("a").first().addClass("active"),v(".everest-forms-add-fields").show(),m.conditionalLogicRemoveField(e),m.conditionalLogicRemoveFieldIntegration(e),m.paymentFieldRemoveFromQuantity(e)}),i.removeClass("evf-delete-event-active")}},cancel:{text:c.i18n_cancel,action:function(){i.removeClass("evf-delete-event-active")}}}}))})},bindSaveOption:function(){v("body").on("click",".everest-forms-save-button",function(){var t=v(this),e=v("form#everest-forms-builder-form"),i=m.getStructure(),o=e.serializeArray(),s=v("#evf-edit-form-name").val().trim(),n=(v(document).trigger("setEvfProWebHookRequestHeaders",[o]),{});if(v(".everest-forms-field-option-row").find(".evf-select2-multiple").filter(function(){var e=v(this).attr("id"),t=v(this).attr("name"),i=v(this).parent().attr("id");return e.split("-option-")[1]===i.split("-option-row-")[1]&&(n[e]=t),n}),0<Object.keys(n).length&&v.each(n,function(e,t){var i=[];v.each(v("#"+e+" option:selected"),function(){i.push(v(this).val())}),o.push({name:t,value:i.toString()})}),""===s)v.alert({title:c.i18n_field_title_empty,content:c.i18n_field_title_payload,icon:"dashicons dashicons-warning",type:"red",buttons:{ok:{text:c.i18n_ok,btnClass:"btn-confirm",keys:["enter"]}}});else{e.triggerHandler("everest_forms_process_ajax_data",[t,o])&&(o=e.triggerHandler("everest_forms_process_ajax_data",[t,o])),v(".everest-forms-panel-content-wrap").block({message:null,overlayCSS:{background:"#fff",opacity:.6}});for(var r,a=[],d=(v(".everest-forms-field[data-field-id]").each(function(){a.push(v(this).attr("data-field-id"))}),o.length);d--;)o[d].name.startsWith("form_fields")&&(r=!1,a.forEach(function(e){o[d].name.startsWith("form_fields["+e+"]")&&(r=!0)}),-1<d&&!1===r&&o.splice(d,1));s=o.concat(i),e={action:"everest_forms_save_form",security:c.evf_save_form,form_data:JSON.stringify(s)};v.ajax({url:c.ajax_url,data:e,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||v.alert({title:e.data.errorTitle,content:e.data.errorMessage,icon:"dashicons dashicons-warning",type:"red",buttons:{ok:{text:c.i18n_ok,btnClass:"btn-confirm",keys:["enter"]}}}),v(".everest-forms-panel-content-wrap").unblock()}})}})},bindSaveOptionWithKeyEvent:function(){v("body").on("keydown",function(e){!e.ctrlKey&&!e.metaKey||"s"!==String.fromCharCode(e.which).toLowerCase()&&83!==e.which||(e.preventDefault(),v(".everest-forms-save-button").trigger("click"))})},bindOpenShortcutKeysModalWithKeyEvent:function(){v("body").on("keydown",function(e){var i;!e.ctrlKey&&!e.metaKey||"h"!==String.fromCharCode(e.which).toLowerCase()&&72!==e.which||(e.preventDefault(),i="",v.each(c.i18n_shortcut_keys,function(e,t){i+=`
2
  <ul class="evf-shortcut-keyword">
3
  <li>
4
  <div class="evf-shortcut-title">${t}</div>
@@ -8,4 +8,4 @@
8
  </div>
9
  </li>
10
  </ul>
11
- `}),v.alert({title:c.i18n_shortcut_key_title,content:i,icon:"dashicons dashicons-info",type:"blue",boxWidth:"550px",buttons:{confirm:{text:c.i18n_close,btnClass:"btn-confirm",keys:["enter"]}},onContentReady:function(){v("body").on("keydown",function(e){(e.ctrlKey||e.metaKey&&"h"===String.fromCharCode(e.which).toLowerCase()||72===e.which)&&v(".btn-confirm").trigger("click")})}}))})},getStructure:function(){var e=v(".evf-admin-field-wrapper"),n=[];return v.each(e.find(".evf-admin-row"),function(){var e=v(this),s=e.attr("data-row-id");v.each(e.find(".evf-admin-grid"),function(){var e=v(this),i=e.attr("data-grid-id"),o=0;v.each(e.find(".everest-forms-field"),function(){var e={name:"",value:""},t=v(this).attr("data-field-id");e.name="structure[row_"+s+"][grid_"+i+"]["+o+"]",o++,e.value=t,n.push(e)}),e.find(".everest-forms-field").length<1&&n.push({name:"structure[row_"+s+"][grid_"+i+"]",value:""})})}),n},getFieldArray:function(e){var t=[];return v.each(e.find(".everest-forms-field"),function(){var e=v(this).attr("data-field-id");t.push(e)}),t},checkEmptyGrid:function(e){v.each(v(".evf-admin-grid"),function(){v(this).find(".everest-forms-field, .evf-registered-item:not(.ui-draggable-dragging)").not(".ui-sortable-helper").length<1?v(this).addClass("evf-empty-grid"):v(this).removeClass("evf-empty-grid")}),m.choicesInit()},bindDefaultTabs:function(){v(document).on("click",".evf-nav-tab-wrapper a",function(e){e.preventDefault(),m.switchTab(v(this).data("panel"))})},switchTab:function(e){var t=v("#everest-forms-panel-"+e),i=v(".evf-panel-"+e+"-button");v(".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"),v(".everest-forms-panel-content").find(".evf-panel-content-section").hasClass("active")||v(".everest-forms-panel-content").find(".evf-panel-content-section").first().addClass("active")),history.replaceState({},null,m.updateQueryString("tab",e)),m.switchPanel(e)},updateQueryString:function(e,t,i){i=i||window.location.href;var o,s=new RegExp("([?&])"+e+"=.*?(&|#|$)(.*)","gi");return s.test(i)?null!=t?i.replace(s,"$1"+e+"="+t+"$2$3"):(i=(o=i.split("#"))[0].replace(s,"$1$3").replace(/(&|\?)$/,""),"undefined"!=typeof o[1]&&null!==o[1]&&(i+="#"+o[1]),i):(null!=t&&(s=-1!==i.indexOf("?")?"&":"?",i=(o=i.split("#"))[0]+s+e+"="+t,"undefined"!=typeof o[1]&&null!==o[1]&&(i+="#"+o[1])),i)},switchPanel:function(e){"field-options"===e&&m.switchToFieldOptionPanel()},switchToFieldOptionPanel:function(e){v(".everest-forms-field-options").find(".no-fields").hide(),v(".evf-admin-field-wrapper .everest-forms-field").removeClass("active"),v("#everest-forms-panel-fields").addClass("active"),v(".everest-forms-fields-tab").find("a").removeClass("active"),v(".everest-forms-fields-tab").find("a").last().addClass("active"),v(".everest-forms-add-fields").hide(),v(".everest-forms-field-options").show(),v(".everest-forms-field-options").find(".everest-forms-field-option").hide(),v(".evf-tab-lists").find("li a").removeClass("active"),v(".evf-tab-lists").find("li.evf-panel-field-options-button a").addClass("active"),v(document.body).trigger("evf-init-switch-field-options"),void 0!==e?(v("#everest-forms-field-option-"+e).show(),v("#everest-forms-field-"+e).addClass("active")):0<v(".evf-admin-field-wrapper .everest-forms-field").length?(v(".evf-admin-field-wrapper .everest-forms-field").eq(0).addClass("active"),v("#everest-forms-field-option-"+v(".evf-admin-field-wrapper .everest-forms-field").eq(0).attr("data-field-id")).show()):v(".everest-forms-field-options").find(".no-fields").show()},bindFields:function(){v(".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({backgroundColor:"#f7fafc",border:"1px dashed #5d96ee"})},stop:function(e,t){t.item.removeAttr("style")}}).disableSelection(),v(".evf-admin-grid").sortable({items:'> .everest-forms-field[data-field-type!="repeater-fields"]',delay:100,opacity:.65,cursor:"move",scrollSensitivity:40,forcePlaceholderSize:!0,connectWith:".evf-admin-grid",appendTo:document.body,containment:".everest-forms-field-wrap",out:function(e){v(".evf-admin-grid").removeClass("evf-hover"),v(e.target).removeClass("evf-item-hover"),v(e.target).closest(".evf-admin-row").removeClass("evf-hover"),m.checkEmptyGrid()},over:function(e,t){v(".evf-admin-grid").addClass("evf-hover"),v(e.target).addClass("evf-item-hover"),v(e.target).closest(".evf-admin-row").addClass("evf-hover"),m.checkEmptyGrid()},receive:function(e,t){t.sender.is("button")&&m.fieldDrop(t.helper)},update:function(e,t){v(document).trigger("evf_sort_update_complete",{event:e,ui:t})},stop:function(e,t){t.item.removeAttr("style"),m.checkEmptyGrid()}}).disableSelection(),v(".evf-registered-buttons button.evf-registered-item").draggable({delay:200,cancel:!1,scroll:!1,revert:"invalid",scrollSensitivity:40,forcePlaceholderSize:!0,start:function(){v(this).addClass("field-dragged")},helper:function(){return v(this).clone().insertAfter(v(this).closest(".everest-forms-tab-content").siblings(".everest-forms-fields-tab"))},stop:function(){v(this).removeClass("field-dragged")},opacity:.75,containment:"#everest-forms-builder",connectToSortable:".evf-admin-grid"}).disableSelection(),v(".evf-registered-item.evf-repeater-field").draggable("option","connectToSortable",".evf-repeatable-grid"),v(".evf-admin-row").on("mouseenter mouseleave",function(e){e.buttons<1&&("mouseenter"===e.type?v(this).addClass("evf-hover"):v(".evf-admin-row").removeClass("evf-hover"))}),v(".everest-forms-panel-content").on("scroll",function(){v(".evf-admin-grid").sortable("refreshPositions"),v(".evf-admin-field-wrapper").sortable("refreshPositions")})},fieldTabChoice:function(e){v(".everest-forms-tab-content").scrollTop(0),v(".everest-forms-fields-tab a").removeClass("active"),v(".everest-forms-field, .everest-forms-title-desc").removeClass("active"),v("#"+e).addClass("active"),"add-fields"===e?(v(".everest-forms-add-fields").show(),v(".everest-forms-field-options").hide()):("field-options"===e?(e=v(".everest-forms-field").first().data("field-id"),v(".everest-forms-field-options").show(),v(".everest-forms-field").first().addClass("active")):v("#everest-forms-field-"+e).addClass("active"),v(".everest-forms-field-option").hide(),v("#everest-forms-field-option-"+e).show(),v(".everest-forms-add-fields").hide())},bindFormPreview:function(){},bindFormPreviewWithKeyEvent:function(){v("body").on("keydown",function(e){!e.ctrlKey&&!e.metaKey||"p"!==String.fromCharCode(e.which).toLowerCase()&&80!==e.which||(e.preventDefault(),window.open(c.preview_url))})},bindFormEntriesWithKeyEvent:function(){v("body").on("keydown",function(e){!e.ctrlKey&&!e.metaKey||"e"!==String.fromCharCode(e.which).toLowerCase()&&69!==e.which||(e.preventDefault(),window.open(c.entries_url))})},bindGridSwitcher:function(){v("body").on("click",".evf-show-grid",function(e){e.stopPropagation(),m.checkEmptyGrid(),v(this).closest(".evf-toggle-row").find(".evf-toggle-row-content").stop(!0).slideToggle(200)}),v(document).on("click",function(){m.checkEmptyGrid(),v(".evf-show-grid").closest(".evf-toggle-row").find(".evf-toggle-row-content").stop(!0).slideUp(200)});v("body").on("click",".evf-grid-selector",function(){var e=v(this).closest(".evf-admin-row");if(!v(this).hasClass("active")){var t=parseInt(v(this).attr("data-evf-grid"),10);if(!(4<t)){var i=v('<div class="evf-admin-grid evf-grid-'+t+' ui-sortable evf-empty-grid" />'),o=v("<div/>");v.each(e.find(".evf-admin-grid"),function(){v(this).children("*").each(function(){o.append(v(this).clone())})}),e.find(".evf-admin-grid").remove(),e.find(".evf-clear ").remove(),e.append('<div class="clear evf-clear"></div>');for(var s=1;s<=t;s++)i.attr("data-grid-id",s),e.append(i.clone());e.append('<div class="clear evf-clear"></div>'),e.find(".evf-admin-grid").eq(0).append(o.html()),e.find(".evf-grid-selector").removeClass("active"),v(this).addClass("active"),m.bindFields()}}})},fieldDrop:function(r){var e=r.attr("data-field-type");if(["file-upload","payment-total","image-upload","signature"].includes(e)&&r.closest(".evf-admin-row").hasClass("evf-repeater-fields"))return v.confirm({title:!1,content:"This field cannot be added to Repeater Fields",type:"red",closeIcon:!1,backgroundDismiss:!1,icon:"dashicons dashicons-warning",buttons:{cancel:{text:c.i18n_close,btnClass:"btn-default"}}}),r.remove(),!1;r.css({left:"0",width:"100%"}).append('<i class="spinner is-active"></i>'),v.ajax({url:c.ajax_url,type:"POST",data:{action:"everest_forms_new_field_"+e,security:c.evf_field_drop_nonce,field_type:e,form_id:c.form_id},beforeSend:function(){v(document.body).trigger("init_field_options_toggle")},success:function(e){var t=e.data.preview,i=e.data.options,o=e.data.form_field_id,e=e.data.field.type,s=v(t).attr("id"),n=v(t).attr("data-field-id");v("#everest-forms-field-id").val(o),v(".everest-forms-field-options").find(".no-fields").hide(),v(".everest-forms-field-options").append(i),v(".everest-forms-field-option-row-icon_color input.colorpicker").wpColorPicker({change:function(e){var t=v(this),i=t.val(),t=t.closest(".everest-forms-field-option-row").data("field-id");v("#everest-forms-field-"+t+" .rating-icon svg").css("fill",i)}}),r.after(t),null!==v("#everest-forms-panel-field-settings-enable_survey")&&v("#everest-forms-panel-field-settings-enable_survey").prop("checked")&&v("#everest-forms-field-option-"+n+"-survey_status").prop("checked",!0),null!==v("#everest-forms-panel-field-settings-enable_quiz")&&v("#everest-forms-panel-field-settings-enable_quiz").prop("checked")&&(v("#everest-forms-field-option-"+n+"-quiz_status").prop("checked",!0),v("#everest-forms-field-option-"+n+"-quiz_status").closest(".everest-forms-field-option-row-quiz_status").siblings(".everst-forms-field-quiz-settings").removeClass("everest-forms-hidden").addClass("everest-forms-show")),r.remove(),v(document.body).trigger("init_tooltips"),v(document.body).trigger("init_field_options_toggle"),v(document.body).trigger("evf_after_field_append",[s]),m.conditionalLogicAppendField(s),m.conditionalLogicAppendFieldIntegration(s),m.paymentFieldAppendToQuantity(s),m.paymentFieldAppendToDropdown(n,e),m.init_datepickers(),v("#everest-forms-field-option-"+n+"-enable_min_max_time").hide(),v("label[for=everest-forms-field-option-"+n+"-enable_min_max_time]").hide(),v("label[for=everest-forms-field-option-"+n+"-select_min_time]").hide(),v("label[for=everest-forms-field-option-"+n+"-select_max_time]").hide(),v("#everest-forms-field-option-"+n+"-min_time_hour").parent().hide(),v("#everest-forms-field-option-"+n+"-max_time_hour").parent().hide(),v(document.body).trigger("evf_field_drop_complete",[e,n,t,i]),m.checkEmptyGrid()}})},conditionalLogicAppendField:function(s){var e=v("#"+s),n=e.index(),r=v(".evf-field-conditional-field-select"),a=e.attr("data-field-type"),d=e.attr("data-field-id"),l=e.find(".label-title .text ").text(),f=(v.fn.insertAt=function(e,t,i){var o=v.makeArray(this.children().clone(!0));o.splice(t,0,e),v.each(o,function(e,t){i===v(t)[0].value&&(v(t)[0].selected=!0,o[e]=t)}),this.empty().append(o)},d);r.each(function(o,e){var t=v(e).val(),i=s.replace("everest-forms-field-",""),e=v(e).attr("name");i===e.substring(e.indexOf("[")+1,e.indexOf("]"))?v(".evf-admin-row .evf-admin-grid .everest-forms-field").each(function(){var e=v(this).data("field-type"),t=v(this).data("field-id"),i=v(this).find(".label-title span").first().text();field_to_be_restricted=["html","title","address","image-upload","file-upload","date-time","hidden","scale-rating","likert"],-1===v.inArray(e,field_to_be_restricted)&&f!==t&&r.eq(o).append('<option class="evf-conditional-fields" data-field_type="'+e+'" data-field_id="'+t+'" value="'+t+'">'+i+"</option>")}):(i='<option class="evf-conditional-fields" data-field_type="'+a+'" data-field_id="'+d+'" value="'+d+'">'+l+"</option>","html"!==a&&"title"!==a&&"address"!==a&&"image-upload"!==a&&"file-upload"!==a&&"date-time"!==a&&"hidden"!==a&&"likert"!==a&&"scale-rating"!==a&&r.eq(o).insertAt(i,n,t))})},paymentFieldAppendToQuantity:function(e){var e=v("#"+e),t=v(".everest-forms-field-option-row-map_field select"),i=e.attr("data-field-type"),o=e.attr("data-field-id"),e=e.find(".label-title .text ").text();"payment-single"!==i&&"payment-multiple"!==i&&"payment-checkbox"!==i||t.append('<option value="'+o+'">'+e+"</option>")},paymentFieldAppendToDropdown:function(e,t){var i;"payment-quantity"!==t&&"payment-coupon"!==t||(i=v("#everest-forms-field-option-"+e+"-map_field"),["payment-checkbox","payment-multiple","payment-single","range-slider"].forEach(function(e){v(".everest-forms-field-"+e).each(function(){if("range-slider"===v(this).attr("data-field-type")){if("true"!==v(this).find(".evf-range-slider-preview").attr("data-enable-payment-slider"))return;var e='<option value="'+v(this).attr("data-field-id")+'">'+v(this).find(".label-title .text").text()+"</option>"}e='<option value="'+v(this).attr("data-field-id")+'">'+v(this).find(".label-title .text").text()+"</option>";i.append(e)})}))},conditionalLogicAppendFieldIntegration:function(i){var s=v("#"+i),n=s.index(),r=v(".evf-provider-conditional").find(".evf-conditional-field-select"),a=s.attr("data-field-type"),d=s.attr("data-field-id"),l=s.find(".label-title .text ").text();v.fn.insertAt=function(e,t){var i=v.makeArray(this.children().clone(!0));i.splice(t,0,e),this.empty().append(i)},r.each(function(o,e){var t=i.replace("everest-forms-field-",""),e=v(e).attr("name");t===e.substring(e.indexOf("[")+1,e.indexOf("]"))?v(".evf-admin-row .evf-admin-grid .everest-forms-field").each(function(){var e=v(this).data("field-type"),t=v(this).data("field-id"),i=v(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",s.attr("data-field-type")],-1===v.inArray(e,field_to_be_restricted)&&r.eq(o).append('<option class="evf-conditional-fields" data-field_type="'+e+'" data-field_id="'+t+'" value="'+t+'">'+i+"</option>")}):(t='<option class="evf-conditional-fields" data-field_type="'+a+'" data-field_id="'+d+'" value="'+d+'">'+l+"</option>","html"!==a&&"title"!==a&&"address"!==a&&"image-upload"!==a&&"file-upload"!==a&&"date-time"!==a&&"hidden"!==a&&"likert"!==a&&"scale-rating"!==a&&r.eq(o).insertAt(t,n))})},conditionalLogicRemoveField:function(e){v(".evf-field-conditional-field-select option[value = "+e+" ]").remove()},conditionalLogicRemoveFieldIntegration:function(e){v(".evf-provider-conditional .evf-conditional-field-select option[value = "+e+" ]").remove()},paymentFieldRemoveFromQuantity:function(e){v(".everest-forms-field-option-row-map_field select option[value = "+e+" ]").remove()},bindFieldSettings:function(){v("body").on("click",".everest-forms-preview .everest-forms-field, .everest-forms-preview .everest-forms-field .everest-forms-field-setting",function(e){e.preventDefault();e=v(this).closest(".everest-forms-field").attr("data-field-id");v(".everest-forms-tab-content").scrollTop(0),m.switchToFieldOptionPanel(e)})},toggleLabelEdit:function(e,t){v(e).toggleClass("everest-forms-hidden"),v(t).toggleClass("everest-forms-hidden"),v(t).is(":visible")&&v(t).focus()},bindToggleHandleActions:function(){v("body").on("click",".toggle-handle",function(e){var t=v(this).data("label"),i=v(this).data("input");v(i).is(":visible")||m.toggleLabelEdit(t,i)})},bindLabelEditInputActions:function(){v("body").on("focusout",".label-edit-input",function(e){var t=v(this).data("label");m.toggleLabelEdit(t,this)})},bindSyncedInputActions:function(){v("body").on("input",".sync-input",function(e){var t=v(this).val(),i=v(this).data("sync-targets");t&&i&&v(i).text(t)})}};m.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()}),jQuery("#everest-forms-panel-field-settings-enable_redirect_query_string-wrap input").on("change",function(){jQuery(this).is(":checked")?jQuery("#everest-forms-panel-field-settings-query_string-wrap").show():jQuery("#everest-forms-panel-field-settings-query_string-wrap").hide()});var e=jQuery("#everest-forms-panel-field-settings-redirect_to option:selected").val();"same"==e?(jQuery("#everest-forms-panel-field-settings-custom_page-wrap").hide(),jQuery("#everest-forms-panel-field-settings-enable_redirect_query_string-wrap").hide(),jQuery("#everest-forms-panel-field-settings-query_string-wrap").hide(),jQuery("#everest-forms-panel-field-settings-external_url-wrap").hide()):"custom_page"==e?(jQuery("#everest-forms-panel-field-settings-custom_page-wrap").show(),jQuery("#everest-forms-panel-field-settings-external_url-wrap").hide()):"external_url"==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-enable_redirect_query_string-wrap").hide(),jQuery("#everest-forms-panel-field-settings-query_string-wrap").hide()),jQuery("#everest-forms-panel-field-settings-redirect_to").on("change",function(){"same"==this.value?(jQuery("#everest-forms-panel-field-settings-custom_page-wrap").hide(),jQuery("#everest-forms-panel-field-settings-external_url-wrap").hide(),jQuery("#everest-forms-panel-field-settings-enable_redirect_query_string-wrap").hide(),jQuery("#everest-forms-panel-field-settings-query_string-wrap").hide()):"custom_page"==this.value?(jQuery("#everest-forms-panel-field-settings-custom_page-wrap").show(),jQuery("#everest-forms-panel-field-settings-enable_redirect_query_string-wrap").show(),jQuery("#everest-forms-panel-field-settings-external_url-wrap").hide(),jQuery("#everest-forms-panel-field-settings-enable_redirect_query_string").is(":checked")?jQuery("#everest-forms-panel-field-settings-query_string-wrap").show():jQuery("#everest-forms-panel-field-settings-query_string-wrap").hide()):"external_url"==this.value&&(jQuery("#everest-forms-panel-field-settings-custom_page-wrap").hide(),jQuery("#everest-forms-panel-field-settings-enable_redirect_query_string-wrap").hide(),jQuery("#everest-forms-panel-field-settings-query_string-wrap").hide(),jQuery("#everest-forms-panel-field-settings-external_url-wrap").show())}),jQuery(".evf-panel-field-options-button.evf-disabled-tab").hide(),jQuery(".everest-forms-conditional-field-settings-redirect_to").each(function(){var e=this.value;"custom_page"==e?(jQuery(this).parents(".evf-field-conditional-container").find(".everest-forms-conditional-field-settings-custom_page").show(),jQuery(this).parents(".evf-field-conditional-container").find(".everest-forms-conditional-field-settings-external_url").hide()):"external_url"==e?(jQuery(this).parents(".evf-field-conditional-container").find(".everest-forms-conditional-field-settings-custom_page").hide(),jQuery(this).parents(".evf-field-conditional-container").find(".everest-forms-conditional-field-settings-external_url").show()):(jQuery(this).parents(".evf-field-conditional-container").find(".everest-forms-conditional-field-settings-custom_page").hide(),jQuery(this).parents(".evf-field-conditional-container").find(".everest-forms-conditional-field-settings-external_url").hide())}),jQuery(document).on("change",".everest-forms-conditional-field-settings-redirect_to",function(){"custom_page"==this.value?(jQuery(this).parents(".evf-field-conditional-container").find(".everest-forms-conditional-field-settings-custom_page").show(),jQuery(this).parents(".evf-field-conditional-container").find(".everest-forms-conditional-field-settings-external_url").hide()):"external_url"==this.value?(jQuery(this).parents(".evf-field-conditional-container").find(".everest-forms-conditional-field-settings-custom_page").hide(),jQuery(this).parents(".evf-field-conditional-container").find(".everest-forms-conditional-field-settings-external_url").show()):(jQuery(this).parents(".evf-field-conditional-container").find(".everest-forms-conditional-field-settings-custom_page").hide(),jQuery(this).parents(".evf-field-conditional-container").find(".everest-forms-conditional-field-settings-external_url").hide())})}),jQuery(function(c){c(document.body).on("init_add_fields_toogle",function(){c(".everest-forms-add-fields").on("click",".everest-forms-add-fields-group > a",function(e){e.preventDefault(),c(this).parent(".everest-forms-add-fields-group").toggleClass("closed").toggleClass("open")}),c(".everest-forms-add-fields").on("click",".everest-forms-add-fields-group a",function(){c(this).next(".evf-registered-buttons").stop().slideToggle()}),c(".everest-forms-add-fields-group.closed").each(function(){c(this).find(".evf-registered-buttons").hide()})}).trigger("init_add_fields_toogle"),c(document.body).on("click",".everest-forms-field-option .everest-forms-field-option-group > a",function(e){e.preventDefault(),c(this).parent(".everest-forms-field-option-group").toggleClass("closed").toggleClass("open")}),c(document.body).on("click",".everest-forms-field-option .everest-forms-field-option-group a",function(e){c(e.target).filter(":input, option, .sort").length||c(this).next(".everest-forms-field-option-group-inner").stop().slideToggle()}),c(document.body).on("init_field_options_toggle",function(){c(".everest-forms-field-option-group.closed").each(function(){c(this).find(".everest-forms-field-option-group-inner").hide()})}).trigger("init_field_options_toggle"),c(document).on("click",function(){c(".evf-smart-tag-lists").hide()}),c(".evf-smart-tag-lists").hide(),c(document.body).on("click",".evf-toggle-smart-tag-display",function(e){e.stopPropagation(),c(".evf-smart-tag-lists").hide(),c(".evf-smart-tag-lists ul").empty(),c(this).parent().find(".evf-smart-tag-lists").toggle("show");var t,e=c(this).data("type"),i=c(this).data("fields"),o=c(this),s=[],n=[],r=[],a=[];if(c(".evf-admin-row .evf-admin-grid .everest-forms-field").each(function(){var e,t=c(this).data("field-type"),i=c(this).data("field-id");"email"===t?(e=c(this).find(".label-title span").first().text(),r[i]=e):"phone"===t?(e=c(this).find(".label-title span").first().text(),a[i]=e):(t=c(this).find(".label-title span").first().text(),s[i]=t),n[i]=c(this).find(".label-title span").first().text()}),"other"===e||"all"===e){var d=evf_data.smart_tags_other;for(l in d)c(o).parent().find(".evf-smart-tag-lists .evf-others").append('<li class = "smart-tag-field" data-type="other" data-field_id="'+l+'">'+d[l]+"</li>")}if("fields"===e||"all"===e)if("email"===i)for(var l in Object.keys(r).length<1?c(o).parent().find('.evf-smart-tag-lists .smart-tag-title:not(".other-tag-title")').addClass("everest-forms-hidden"):c(o).parent().find('.evf-smart-tag-lists .smart-tag-title:not(".other-tag-title")').removeClass("everest-forms-hidden"),c(o).parent().find(".evf-smart-tag-lists .other-tag-title").remove(),c(o).parent().find(".evf-smart-tag-lists .evf-others").remove(),c(o).parent().find(".evf-smart-tag-lists").append('<div class="smart-tag-title other-tag-title">Others</div><ul class="evf-others"></ul>'),c(o).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)c(o).parent().find(".evf-smart-tag-lists .evf-fields").append('<li class = "smart-tag-field" data-type="field" data-field_id="'+l+'">'+r[l]+"</li>");else if("phone"===i)for(var l in Object.keys(a).length<1?c(o).parent().find('.evf-smart-tag-lists .smart-tag-title:not(".other-tag-title")').addClass("everest-forms-hidden"):c(o).parent().find('.evf-smart-tag-lists .smart-tag-title:not(".other-tag-title")').removeClass("everest-forms-hidden"),c(o).parent().find(".evf-smart-tag-lists .other-tag-title").remove(),c(o).parent().find(".evf-smart-tag-lists .evf-others").remove(),a)c(o).parent().find(".evf-smart-tag-lists .evf-fields").append('<li class = "smart-tag-field" data-type="field" data-field_id="'+l+'">'+a[l]+"</li>");else for(var f in Object.keys(n).length<1?c(o).parent().find('.evf-smart-tag-lists .smart-tag-title:not(".other-tag-title")').addClass("everest-forms-hidden"):c(o).parent().find('.evf-smart-tag-lists .smart-tag-title:not(".other-tag-title")').removeClass("everest-forms-hidden"),n)c(o).parent().find(".evf-smart-tag-lists .evf-fields").append('<li class = "smart-tag-field" data-type="field" data-field_id="'+f+'">'+n[f]+"</li>");"calculations"===e&&(t=["number","payment-single","range-slider"],c(document).find(".everest-forms-field").each(function(){t.includes(c(this).attr("data-field-type"))&&c(o).parents(".everest-forms-field-option-row-calculation_field").attr("data-field-id")!==c(this).attr("data-field-id")&&c(o).parent().find(".evf-smart-tag-lists .calculations").append('<li class = "smart-tag-field" data-type="field" data-field_id="'+c(this).attr("data-field-id")+'">'+c(this).find(".label-title .text").text()+"</li>")}))}),c(document.body).on("click",".smart-tag-field",function(e){var t=c(this).data("field_id"),i=c(this).text(),o=c(this).data("type"),s=c(this).parent().parent().parent(),n=s.find("input[type=text]"),s=s.find("textarea");if("fullname"!==t&&"email"!==t&&"subject"!==t&&"message"!==t&&"other"!==o){for(var i=i.split(/[\s-_]/),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}"field"===o?(n.val(n.val()+'{field_id="'+t+'"}'),s.val(s.val()+'{field_id="'+t+'"}'),s.trigger("change")):"other"===o&&(n.val(n.val()+"{"+t+"}"),s.val(s.val()+"{"+t+"}"))}),c(document).on("change",".wp-list-table .everest-forms-toggle-form input",function(e){e.stopPropagation(),c.post(evf_data.ajax_url,{action:"everest_forms_enabled_form",security:evf_data.evf_enabled_form,form_id:c(this).data("form_id"),enabled:c(this).prop("checked")?1:0})}),c(document).on("change",".evf-content-email-settings .evf-toggle-switch input",function(e){var t=c(this),i=t.prop("checked");!1===i?(t.val(""),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"),c('<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&&(t.val("1"),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())}),c(document).on("click",".everest-forms-min-max-date-format input",function(){var e=c(this).closest(".everest-forms-date").find(".everest-forms-min-date").val(),t=c(this).closest(".everest-forms-date").find(".everest-forms-min-date").val();c(this).is(":checked")?(c(".everest-forms-min-max-date-option").removeClass("everest-forms-hidden"),""===e&&c(".everest-forms-min-date").addClass("flatpickr-field").flatpickr({disableMobile:!0,onChange:function(e,t,i){c(".everest-forms-min-date").val(t)},onOpen:function(e,t,i){i.set("maxDate",c(".everest-forms-max-date").val())}}),""===t&&c(".everest-forms-max-date").addClass("flatpickr-field").flatpickr({disableMobile:!0,onChange:function(e,t,i){c(".everest-forms-max-date").val(t)},onOpen:function(e,t,i){i.set("minDate",c(".everest-forms-min-date").val())}})):c(".everest-forms-min-max-date-option").addClass("everest-forms-hidden")})});
1
+ !function(v,c){var a,m={init:function(){v(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"))}),v(document).ready(function(o){"1"===o(".everest-forms-min-max-date-format input").val()&&(o(".everest-forms-min-date").addClass("flatpickr-field").flatpickr({disableMobile:!0,onChange:function(e,t,i){o(".everest-forms-min-date").val(t)},onOpen:function(e,t,i){i.set("maxDate",o(".everest-forms-max-date").val())}}),o(".everest-forms-max-date").addClass("flatpickr-field").flatpickr({disableMobile:!0,onChange:function(e,t,i){o(".everest-forms-max-date").val(t)},onOpen:function(e,t,i){i.set("minDate",o(".everest-forms-min-date").val())}}))}),v("evf-panel-payments-button a").hasClass("active")||(v("#everest-forms-panel-payments").find(".everest-forms-panel-sidebar a").first().addClass("active"),v(".everest-forms-panel-content").find(".evf-payment-setting-content").first().addClass("active")),v(document.body).find("#copy-shortcode").on("click",this.copyShortcode).on("aftercopy",this.copySuccess).on("aftercopyfailure",this.copyFail),v(document.body).find(".evf-copy-shortcode").each(function(){v(this).on("click",m.copyShortcode).on("aftercopy",m.copySuccess).on("aftercopyfailure",m.copyFail)}),v(document).ready(m.ready),v(window).on("load",m.load),v(document.body).on("evf-init-builder-fields",function(){m.bindFields()}).trigger("evf-init-builder-fields"),v(document.body).on("adjust_builder_width",function(){var e=v("#adminmenuwrap").width();v("#everest-forms-builder-form").css({width:"calc(100% - "+e+"px)"})}).trigger("adjust_builder_width"),v(document.body).on("click","#collapse-button",function(){v("#everest-forms-builder-form").width(""),v(document.body).trigger("adjust_builder_width")}),v(window).on("resize orientationchange",function(){clearTimeout(void 0),setTimeout(function(){v("#everest-forms-builder").width(""),v(document.body).trigger("adjust_builder_width")},250)}).trigger("resize")},copyShortcode:function(e){evfClearClipboard(),evfSetClipboard(v(this).closest(".evf-shortcode-field").find("input").val(),v(this)),e.preventDefault()},copySuccess:function(){v(this).tooltipster("content",v(this).attr("data-copied")).trigger("mouseenter").on("mouseleave",function(){var e=v(this);setTimeout(function(){e.tooltipster("content",e.attr("data-tip"))},1e3)})},copyFail:function(){v(this).closest(".evf-shortcode-field").find("input").focus().select()},load:function(){v(".everest-forms-overlay").fadeOut()},ready:function(){var e,t;a=v("#everest-forms-builder"),m.bindUIActions(),m.bindEditActions(),jconfirm.defaults={closeIcon:!0,backgroundDismiss:!0,escapeKey:!0,animationBounce:1,useBootstrap:!1,theme:"modern",boxWidth:"400px",columnClass:"evf-responsive-class"},"undefined"!=typeof PerfectScrollbar&&(e=v(".everest-forms-tab-content"),t=v(".everest-forms-panel"),1<=e.length&&(window.evf_tab_scroller=new PerfectScrollbar(".everest-forms-tab-content",{suppressScrollX:!0})),t.each(function(){var e=v(this),t=e.attr("id");1<=e.find(".everest-forms-panel-sidebar").length&&(window.evf_setting_scroller=new PerfectScrollbar("#"+t+" .everest-forms-panel-sidebar"))})),a.on("change",".everest-forms-field-option-row-limit_enabled input",function(e){m.updateTextFieldsLimitControls(v(e.target).parents(".everest-forms-field-option-row-limit_enabled").data().fieldId,e.target.checked)}),a.on("change",".everest-forms-field-option-row-min_length_enabled input",function(e){m.updateTextFieldsMinLengthControls(v(e.target).parents(".everest-forms-field-option-row-min_length_enabled").data().fieldId,e.target.checked)}),a.on("change",".everest-forms-field-option-select .everest-forms-field-option-row-enhanced_select input",function(e){m.enhancedSelectFieldStyle(v(e.target).parents(".everest-forms-field-option-row-enhanced_select").data().fieldId,e.target.checked)}),a.on("click",".everest-forms-field-option-row-choices .everest-forms-btn-group span",function(e){var t;v(this).hasClass("upgrade-modal")&&"checkbox"===v(this).data("type")?(v(this).parent().find("span").addClass("is-active"),v(this).removeClass("is-active"),m.updateEnhandedSelectField(v(e.target).parents(".everest-forms-field-option-row-choices").data().fieldId,!1)):(v(this).parent().find("span").removeClass("is-active"),v(this).addClass("is-active"),m.updateEnhandedSelectField(v(e.target).parents(".everest-forms-field-option-row-choices").data().fieldId,"multiple"===v(this).data("selection"))),"multiple"===v(this).data("selection")&&"checkbox"===v(this).data("type")&&v(this).hasClass("is-active")?(t=v(this).parent().parent().data("field-id"),v("#everest-forms-field-option-row-"+t+"-select_all").show()):(t=v(this).parent().parent().data("field-id"),v("#everest-forms-field-option-row-"+t+"-select_all").hide())}),v(document.body).on("click",'.everest-forms-field, .everest-forms-field-select[data-field-type="select"]',function(){a.find(".everest-forms-field-option-row-choices .everest-forms-btn-group span").each(function(){var e=v(this).parent().parent().data("field-id");"multiple"===v(this).data("selection")&&"checkbox"===v(this).data("type")&&v(this).hasClass("is-active")?v("#everest-forms-field-option-"+e+"-select_all").parent().show():v("#everest-forms-field-option-"+e+"-select_all").parent().hide()})}),a.on("keyup",".everest-forms-search-fields",function(){var t=v(this).val().toLowerCase();v(".evf-registered-item").each(function(){var e=v(this);field_type=e.data("field-type"),field_label=e.text().toLowerCase(),-1<field_type.search(t)||-1<field_label.search(t)?(e.addClass("evf-searched-item"),e.show()):(e.removeClass("evf-searched-item"),e.hide())}),v(".everest-forms-add-fields-group").each(function(){v(this).find(".evf-registered-item.evf-searched-item").length<=0?v(this).hide():v(this).show()}),v(".evf-registered-item.evf-searched-item").length?v(".everest-forms-fields-not-found").addClass("hidden"):v(".everest-forms-fields-not-found").removeClass("hidden")}),v(document).trigger("everest_forms_ready")},updateTextFieldsLimitControls:function(e,t){t?v("#everest-forms-field-option-row-"+e+"-limit_controls").removeClass("everest-forms-hidden"):v("#everest-forms-field-option-row-"+e+"-limit_controls").addClass("everest-forms-hidden")},updateTextFieldsMinLengthControls:function(e,t){t?v("#everest-forms-field-option-row-"+e+"-min_length_controls").removeClass("everest-forms-hidden"):v("#everest-forms-field-option-row-"+e+"-min_length_controls").addClass("everest-forms-hidden")},enhancedSelectFieldStyle:function(e,t){var i=v("#everest-forms-field-"+e+" .primary-input"),e=v("#everest-forms-field-option-"+e+"-enhanced_select").is(":checked");t&&e&&i.prop("multiple")?(i.addClass("evf-enhanced-select"),v(document.body).trigger("evf-enhanced-select-init")):(i.removeClass("evf-enhanced-select enhanced"),i.filter(".select2-hidden-accessible").selectWoo("destroy"))},updateEnhandedSelectField:function(e,t){var i=v("#everest-forms-field-"+e+" .primary-input"),o=i.find(".placeholder"),n=v("#everest-forms-field-option-"+e+"-multiple_choices"),s=v("#everest-forms-field-option-row-"+e+"-choices input.default"),r=s.filter(":checked");n.val(t?1:0),i.prop("multiple",t),s.prop("type",t?"checkbox":"radio"),!t&&r.length&&(s.prop("checked",!1),v(r.get(0)).prop("checked",!0)),o.length&&t&&o.prop("selected",!t),m.enhancedSelectFieldStyle(e,t)},bindUIActions:function(){m.bindDefaultTabs(),m.checkEmptyGrid(),m.bindFields(),m.bindFormPreview(),m.bindFormPreviewWithKeyEvent(),m.bindFormEntriesWithKeyEvent(),m.bindGridSwitcher(),m.bindFieldSettings(),m.bindFieldDelete(),m.bindFieldDeleteWithKeyEvent(),m.bindCloneField(),m.bindSaveOption(),m.bindSaveOptionWithKeyEvent(),m.bindOpenShortcutKeysModalWithKeyEvent(),m.bindAddNewRow(),m.bindRemoveRow(),m.bindFormSettings(),m.bindFormEmail(),m.bindFormSmsNotifications(),m.bindFormIntegrations(),m.bindFormPayment(),m.choicesInit(),m.bindToggleHandleActions(),m.bindLabelEditInputActions(),m.bindSyncedInputActions(),m.init_datepickers(),m.bindBulkOptionActions(),m.bindUIActionsFields(),"field-options"===c.tab&&v(".evf-panel-field-options-button").trigger("click"),v(document.body).on("everest-forms-field-drop",".evf-registered-buttons .evf-registered-item",function(){m.fieldDrop(v(this).clone())})},bindBulkOptionActions:function(){v(document.body).on("click",".evf-toggle-bulk-options",function(e){v(this).closest(".everest-forms-field-option").find(".everest-forms-field-option-row-add_bulk_options").slideToggle()}),v(document.body).on("click",".evf-toggle-presets-list",function(e){v(this).closest(".everest-forms-field-option").find(".everest-forms-field-option-row .evf-options-presets").slideToggle()}),v(document.body).on("click",".evf-add-bulk-options",function(e){var t,i=v(this).closest(".everest-forms-field-option-row"),o=i.data("field-id");i.length&&(t=i.closest(".everest-forms-field-option").find(".everest-forms-field-option-row-choices .evf-choices-list"),i=(o=i.find("textarea#everest-forms-field-option-"+o+"-add_bulk_options")).val().split("\n"),m.addBulkOptions(i,t),o.val(""))}),v(document.body).on("click",".evf-options-preset-label",function(e){var t,i=v(this).closest(".everest-forms-field-option-row"),o=i.data("field-id");i.length&&(t=v(this).closest(".evf-options-preset").find(".evf-options-preset-value").val(),i.find("textarea#everest-forms-field-option-"+o+"-add_bulk_options").val(t),v(this).closest(".evf-options-presets").slideUp())}),v(document.body).on("click",".everest-forms-field-option-row-password_strength",function(){v(this).find('[type="checkbox"]:first').prop("checked")&&v(this).next().find('[type="checkbox"]:first').prop("checked",!1)}),v(document.body).on("click",".everest-forms-field-option-row-password_validation",function(){v(this).find('[type="checkbox"]:first').prop("checked")&&(v(this).prev().find('[type="checkbox"]:first').prop("checked",!1),v(this).prev().find(".everest-forms-inner-options").addClass("everest-forms-hidden"))})},addBulkOptions:function(e,i){e.forEach(function(e){var t;""!==e&&(t=i.find("li").last().find("a.add"),m.choiceAdd(null,t,e.trim()))})},init_datepickers:function(){var e=v(".everest-forms-disable-dates").data("date-format");v(".everest-forms-disable-dates").each(function(){v(this).get(0)._flatpickr||v(this).flatpickr({dateFormat:e,mode:"multiple"})}),v(document.body).on("change",".evf-date-format",function(e){var t=v(".everest-forms-field-option:visible .everest-forms-disable-dates"),i=t.get(0)._flatpickr,o=i.selectedDates,n=v(this).val(),s=[];o.forEach(function(e){s.push(flatpickr.formatDate(e,n))}),i.set("dateFormat",n),t.val(s.join(", "))}),v(document.body).on("click",".evf-clear-disabled-dates",function(){v(".everest-forms-field-option:visible .everest-forms-disable-dates").get(0)._flatpickr.clear()}),v(".everest-forms-field-date-time").each(function(){var e=v(this).attr("data-field-id");m.dateSettingToggler(e,v("#everest-forms-field-option-"+e+"-datetime_style").val())})},bindEditActions:function(){v("#edit-form-name").on("click",function(e){e.stopPropagation(),""!==v("#evf-edit-form-name").val().trim()&&m.toggleEditTitle(e)}),v("#evf-edit-form-name").on("change keypress",function(e){var t=v(this);e.stopPropagation(),13===e.which&&""!==v(this).val().trim()&&m.toggleEditTitle(e),""!==t.val().trim()&&v("#everest-forms-panel-field-settings-form_title").val(t.val().trim())}).on("click",function(e){e.stopPropagation()}),v(document).not(v(".everest-forms-title-desc")).on("click",function(e){var t=v("#evf-edit-form-name");e.stopPropagation(),!t.prop("disabled")&&t.val()&&""!==t.val().trim()&&m.toggleEditTitle(e)})},toggleEditTitle:function(e){var t=v("#edit-form-name").siblings("#evf-edit-form-name");e.preventDefault(),t.prop("disabled",function(e,t){return!t}),t.hasClass("everst-forms-name-editing")||t.focus(),t.toggleClass("everst-forms-name-editing")},formObject:function(e){for(var t=jQuery(e).find("[name]"),i={},o={},n=0;n<t.length;n++){var s=jQuery(t[n]),r=s.prop("name").replace(/\]/gi,"").split("["),a=s.val(),d={};if(!s.is(":radio")&&!s.is(":checkbox")||s.is(":checked")){for(var l=r.length-1;0<=l;l--){var f=r[l];if(0===(f=void 0===f?"":f).length&&(d=[],"undefined"==typeof o[r[l-1]]?o[r[l-1]]=0:o[r[l-1]]+=1,f=o[r[l-1]]),l===r.length-1){if(a)if("true"===a)a=!0;else if("false"===a)a=!1;else if(isNaN(parseFloat(a))||parseFloat(a).toString()!==a)if("string"!=typeof a||"{"!==a.substr(0,1)&&"["!==a.substr(0,1)){if("object"==typeof a&&a.length&&s.is("select")){for(var c={},l=0;l<a.length;l++)c["n"+l]=a[l];a=c}}else try{a=JSON.parse(a)}catch(p){}else a=parseFloat(a);d[f]=a}else{var m=d;(d={})[f]=m}}v.extend(!0,i,d)}}return i},bindUIActionsFields:function(){a.on("click",".everest-forms-field-option-row-choices .add",function(e){m.choiceAdd(e,v(this))}),a.on("click",".everest-forms-field-option-row-choices .remove",function(e){m.choiceDelete(e,v(this))}),a.on("mousedown",".everest-forms-field-option-row-choices input[type=radio]",function(){var e=v(this);e.is(":checked")?e.attr("data-checked","1"):e.attr("data-checked","0")}),a.on("click",".everest-forms-field-option-row-choices input[type=radio]",function(){var e=v(this),t=e.parent().parent();e.parent().parent().find("input[type=radio]").not(this).prop("checked",!1),"1"===e.attr("data-checked")&&(e.prop("checked",!1),e.attr("data-checked","0")),m.choiceUpdate(t.data("field-type"),t.data("field-id"))}),a.on("change",".everest-forms-field-option-row-choices input[type=checkbox]",function(e){var t=v(this).parent().parent();m.choiceUpdate(t.data("field-type"),t.data("field-id"))}),a.on("keyup paste focusout",".everest-forms-field-option-row-choices input.label, .everest-forms-field-option-row-choices input.value",function(e){var t=v(this).parent().parent().parent();m.choiceUpdate(t.data("field-type"),t.data("field-id"))}),a.on("change",".everest-forms-field-option-row-show_values input",function(e){v(this).closest(".everest-forms-field-option").find(".everest-forms-field-option-row-choices ul").toggleClass("show-values")}),a.on("change",".everest-forms-field-option-row-choices_images input",function(){var e=v(this),t=e.parent().data("field-id"),i=v("#everest-forms-field-option-"+t),o=v("#everest-forms-field-option-"+t+"-input_columns"),n=v("#everest-forms-field-option-"+t).find(".everest-forms-field-option-hidden-type").val();e.parent().find(".notice").toggleClass("hidden"),i.find(".everest-forms-field-option-row-choices ul").toggleClass("show-images"),(e.is(":checked")?o.val("inline"):o.val("")).trigger("change"),m.choiceUpdate(n,t)}),a.on("click",".everest-forms-attachment-media-view .upload-button",function(e){var t,i,o=v(this);e.preventDefault(),i||(i=wp.media.frames.everestforms_media_frame=wp.media({title:c.i18n_upload_image_title,className:"media-frame everest-forms-media-frame",frame:"select",multiple:!1,library:{type:"image"},button:{text:c.i18n_upload_image_button}})).on("select",function(){var e=i.state().get("selection").first().toJSON();(t=o.hasClass("button-add-media")?(o.hide(),o.parent()):o.parent().parent().parent()).find(".source").val(e.url),t.find(".attachment-thumb").remove(),t.find(".thumbnail-image").prepend('<img class="attachment-thumb" src="'+e.url+'">'),t.find(".actions").show(),a.trigger("everestFormsImageUploadAdd",[o,t])}),i.open()}),a.on("click",".everest-forms-attachment-media-view .remove-button",function(e){e.preventDefault();e=v(this).parent().parent();e.find(".attachment-thumb").remove(),e.parent().find(".source").val(""),e.parent().find(".button-add-media").show(),a.trigger("everestFormsImageUploadRemove",[v(this),e])}),a.on("everestFormsImageUploadAdd everestFormsImageUploadRemove",function(e,t,i){var i=i.closest(".evf-choices-list"),o=i.data("field-type"),i=i.data("field-id");m.choiceUpdate(o,i)}),a.on("change",".everest-forms-field-option-row-input_columns select",function(){var e=v(this),t=e.val(),e=e.parent().data("field-id"),i="";"inline"===t?i="everest-forms-list-inline":""!==t&&(i="everest-forms-list-"+t+"-columns"),v("#everest-forms-field-"+e).removeClass("everest-forms-list-inline everest-forms-list-2-columns everest-forms-list-3-columns").addClass(i)}),a.on("click",".everest-forms-fields-tab a",function(e){e.preventDefault(),m.fieldTabChoice(v(this).attr("id"))}),v(document).on("mouseenter",'.everest-forms-tabs li[class*="part_"]',function(){!1===v(this).hasClass("active")&&(v(document).find(".everest-forms-field").hasClass("ui-sortable-helper")||v(document).find(".evf-registered-buttons button.evf-registered-item").hasClass("field-dragged"))&&v(this).find("a").trigger("click")}),a.on("change",".everest-forms-field-option-address input.hide",function(){var e=v(this),t=e.parent().parent().data("field-id"),e=e.parent().parent().data("subfield");v("#everest-forms-field-"+t).find(".everest-forms-"+e).toggleClass("hidden")}),a.on("input",".everest-forms-field-option-row-label input",function(){var e=v(this),t=e.val(),e=e.parent().data("field-id");($label=v("#everest-forms-field-"+e).find(".label-title .text")).hasClass("nl2br")?$label.html(t.replace(/\n/g,"<br>")):$label.html(t)}),a.on("change",".everest-forms-field-option-row-enable_prepopulate input",function(e){var t=v(this).parent().data("field-id");v("#everest-forms-field-"+t).toggleClass("parameter_name"),v(e.target).is(":checked")?v("#everest-forms-field-option-row-"+t+"-parameter_name").show():v("#everest-forms-field-option-row-"+t+"-parameter_name").hide()}),a.on("input",".everest-forms-field-option-row-description textarea",function(){var e=v(this),t=e.val(),e=e.parent().data("field-id"),e=v("#everest-forms-field-"+e).find(".description");e.hasClass("nl2br")?e.html(t.replace(/\n/g,"<br>")):e.html(t)}),a.on("change",".everest-forms-field-option-row-required input",function(e){var t=v(this).parent().data("field-id");v("#everest-forms-field-"+t).toggleClass("required"),v(e.target).is(":checked")?v("#everest-forms-field-option-row-"+t+"-required-field-message").show():v("#everest-forms-field-option-row-"+t+"-required-field-message").hide()}),a.on("change",".everest-forms-field-option-row-confirmation input",function(e){var t=v(this).parent().data("field-id");v(e.target).is(":checked")?(v("#everest-forms-field-"+t).find(".everest-forms-confirm").removeClass("everest-forms-confirm-disabled").addClass("everest-forms-confirm-enabled"),v("#everest-forms-field-option-"+t).removeClass("everest-forms-confirm-disabled").addClass("everest-forms-confirm-enabled")):(v("#everest-forms-field-"+t).find(".everest-forms-confirm").removeClass("everest-forms-confirm-enabled").addClass("everest-forms-confirm-disabled"),v("#everest-forms-field-option-"+t).removeClass("everest-forms-confirm-enabled").addClass("everest-forms-confirm-disabled"))}),a.on("input",".everest-forms-field-option-row-placeholder input",function(e){var t=v(this),i=t.val(),t=t.parent().data("field-id"),t=v("#everest-forms-field-"+t).find(".widefat:not(.secondary-input)");t.is("select")?i.length?(t.find(".placeholder").length?t.find(".placeholder").text(i):t.prepend('<option class="placeholder" selected>'+i+"</option>"),t.data("placeholder",i),t.hasClass("enhanced")&&t.parent().find(".select2-search__field").prop("placeholder",i)):t.find(".placeholder").remove():t.attr("placeholder",i)}),a.on("input",".everest-forms-field-option-address input.placeholder",function(e){var t=v(this),i=t.val(),o=t.parent().parent().data("field-id"),t=t.parent().parent().data("subfield");v("#everest-forms-field-"+o).find(".everest-forms-"+t+" input").attr("placeholder",i)}),a.on("input",".everest-forms-field-option-row-confirmation_placeholder input",function(){var e=v(this),t=e.val(),e=e.parent().data("field-id");v("#everest-forms-field-"+e).find(".secondary-input").attr("placeholder",t)}),a.on("change",".everest-forms-field-option-row-label_hide input",function(){var e=v(this).parent().data("field-id");v("#everest-forms-field-"+e).toggleClass("label_hide")}),a.on("change",".everest-forms-field-option-row-sublabel_hide input",function(){var e=v(this).parent().data("field-id");v("#everest-forms-field-"+e).toggleClass("sublabel_hide")}),a.on("change",".everest-forms-field-option-row-datetime_format select, .everest-forms-field-option-row-phone_format select, .everest-forms-field-option-row-item_price select, .everest-forms-field-option-row-format select",function(e){var t=v(this),i=t.val(),t=t.parent().data("field-id");v("#everest-forms-field-"+t).find(".format-selected").removeClass().addClass("format-selected format-selected-"+i),v("#everest-forms-field-option-"+t).find(".format-selected").removeClass().addClass("format-selected format-selected-"+i)}),a.on("change",".everest-forms-field-option-row-datetime_style select",function(){m.dateSettingToggler(v(this).parent().attr("data-field-id"),v(this).val())}),v(".everest-forms-field-option-row-time_interval_format [id*=enable_min_max_time]").each(function(){v(this).prop("checked")?(v(this).parent().parent().find(".input-group-col-2").has(" [id*=min_time_hour]").show(),v(this).parent().parent().find(".input-group-col-2").has(" [id*=max_time_hour]").show(),v(this).parent().parent().find(".input-group-col-2").has(" [for*=select_min_time]").show(),v(this).parent().parent().find(".input-group-col-2").has("[for*=select_max_time]").show()):(v(this).parent().parent().find(".input-group-col-2").has("[id*=min_time_hour]").hide(),v(this).parent().parent().find(".input-group-col-2").has("[id*=max_time_hour]").hide(),v(this).parent().parent().find("[for*=select_min_time]").hide(),v(this).parent().parent().find("[for*=select_max_time]").hide())}),a.on("click",".everest-forms-field-option-row-time_interval_format [id*=enable_min_max_time]",function(){v(this).prop("checked")?(v(this).parent().parent().find(".input-group-col-2").has(" [id*=min_time_hour]").show(),v(this).parent().parent().find(".input-group-col-2").has(" [id*=max_time_hour]").show(),v(this).parent().parent().find("[for*=select_min_time]").show(),v(this).parent().parent().find("[for*=select_max_time]").show()):(v(this).parent().parent().find(".input-group-col-2").has("[id*=min_time_hour]").hide(),v(this).parent().parent().find(".input-group-col-2").has("[id*=max_time_hour]").hide(),v(this).parent().parent().find("[for*=select_min_time]").hide(),v(this).parent().parent().find("[for*=select_max_time]").hide())}),a.on("change",".everest-forms-field-option-row-time_interval_format select[id*=time_format]",function(){min_hour=v(this).parent().siblings(".input-group-col-2").find("[id*=min_time_hour]"),max_hour=v(this).parent().siblings(".input-group-col-2").find("[id*=max_time_hour]");var e,t,o=min_hour.find("option:selected").val(),n=max_hour.find("option:selected").val(),s="";for(i=0;i<=23;i++)"H:i"===v(this).val()?s+='<option value = "'+i+'">'+(i<10?"0"+i:i)+"</option>":(e=" PM",0==(t=i<12?(e=" AM",i):i-12)&&(t=12),s+='<option value = "'+i+'">'+t+e+"</option>");min_hour.html(s),max_hour.html(s),min_hour.find("option[value="+o+"]").prop("selected",!0),max_hour.find("option[value="+n+"]").prop("selected",!0)})},dateSettingToggler:function(e,t){"picker"==t?(v("#everest-forms-field-option-row-"+e+"-placeholder").show(),v("#everest-forms-field-option-"+e+"-disable_dates").show(),v("label[for=everest-forms-field-option-"+e+"-disable_dates]").show(),v("#everest-forms-field-option-"+e+"-date_mode-range").parents().find("everest-forms-checklist").show(),v(".everest-forms-field-option-row-date_format .time_interval").show(),v("#everest-forms-field-option-"+e+"-date_localization").show(),v("label[for=everest-forms-field-option-"+e+"-date_localization]").show(),v("#everest-forms-field-option-"+e+"-date_default").parent().show(),v("#everest-forms-field-option-"+e+"-past_date_disable").parent().show(),v("#everest-forms-field-option-"+e+"-enable_min_max").parent().show(),v("#everest-forms-field-option-"+e+"-enable_min_max").prop("checked")&&v("#everest-forms-field-option-row-"+e+"-date_format .everest-forms-min-max-date-option").removeClass("everest-forms-hidden"),v("#everest-forms-field-option-"+e+"-time_interval").show(),v("#everest-forms-field-option-"+e+"-enable_min_max_time").hide(),v("label[for=everest-forms-field-option-"+e+"-enable_min_max_time]").hide(),v("label[for=everest-forms-field-option-"+e+"-select_min_time]").hide(),v("label[for=everest-forms-field-option-"+e+"-select_max_time]").hide(),v("#everest-forms-field-option-"+e+"-min_time_hour").parent().hide(),v("#everest-forms-field-option-"+e+"-max_time_hour").parent().hide()):(v("#everest-forms-field-option-"+e+"-date_mode-range").parents().find("everest-forms-checklist").hide(),v("#everest-forms-field-option-"+e+"-date_default").parent().hide(),v("#everest-forms-field-option-"+e+"-past_date_disable").parent().hide(),v("#everest-forms-field-option-row-"+e+"-placeholder").hide(),v("#everest-forms-field-option-"+e+"-enable_min_max").parent().hide(),v("#everest-forms-field-option-row-"+e+"-date_format .everest-forms-min-max-date-option").addClass("everest-forms-hidden"),v("#everest-forms-field-option-"+e+"-disable_dates").hide(),v("label[for=everest-forms-field-option-"+e+"-disable_dates]").hide(),v(".everest-forms-field-option-row-date_format .everest-forms-checklist").hide(),v(".everest-forms-field-option-row-date_format .time_interval").hide(),v("#everest-forms-field-option-"+e+"-date_localization").hide(),v("label[for=everest-forms-field-option-"+e+"-date_localization]").hide(),v("#everest-forms-field-option-"+e+"-time_interval").hide(),v("#everest-forms-field-option-"+e+"-enable_min_max_time").show(),v("label[for=everest-forms-field-option-"+e+"-enable_min_max_time]").show(),v("#everest-forms-field-option-"+e+"-enable_min_max_time").prop("checked")&&(v("label[for=everest-forms-field-option-"+e+"-select_min_time]").show(),v("label[for=everest-forms-field-option-"+e+"-select_max_time]").show(),v("#everest-forms-field-option-"+e+"-min_time_hour").parent().show(),v("#everest-forms-field-option-"+e+"-max_time_hour").parent().show()))},choicesInit:function(e){v(e=e||".everest-forms-field-option-row-choices ul").sortable({items:"li",axis:"y",handle:".sort",scrollSensitivity:40,stop:function(e){var e=v(e.target).attr("data-field-id"),t=v("#everest-forms-field-option-"+e).find(".everest-forms-field-option-hidden-type").val();m.choiceUpdate(t,e)}})},choiceAdd:function(e,t,i){e&&e.preventDefault&&e.preventDefault();var e=v(t),t=e.parent(),o=t.find("input.default").is(":checked"),e=e.closest(".everest-forms-field-option-row-choices").data("field-id"),n=t.parent().attr("data-next-id"),s=t.parent().data("field-type"),r=t.clone().insertAfter(t);r.attr("data-key",n),r.find("input.label").val(i).attr("name","form_fields["+e+"][choices]["+n+"][label]"),r.find("input.value").val(i).attr("name","form_fields["+e+"][choices]["+n+"][value]"),r.find("input.source").val("").attr("name","form_fields["+e+"][choices]["+n+"][image]"),r.find("input.default").attr("name","form_fields["+e+"][choices]["+n+"][default]").prop("checked",!1),r.find(".attachment-thumb").remove(),r.find(".button-add-media").show(),!0===o&&t.find("input.default").prop("checked",!0),n++,t.parent().attr("data-next-id",n),a.trigger("everestFormsChoiceAdd"),m.choiceUpdate(s,e)},choiceDelete:function(e,t){e.preventDefault();e=v(t),t=e.parent().parent();t.find("li").length<2?v.alert({title:!1,content:c.i18n_field_error_choice,icon:"dashicons dashicons-info",type:"blue",buttons:{ok:{text:c.i18n_ok,btnClass:"btn-confirm",keys:["enter"]}}}):(e.parent().remove(),m.choiceUpdate(t.data("field-type"),t.data("field-id")),a.trigger("everestFormsChoiceDelete"))},choiceUpdate:function(n,s){var e,t,r,i=v("#everest-forms-field-option-"+s);if($primary=v("#everest-forms-field-"+s+" .primary-input"),"radio"===n||"checkbox"===n||"payment-multiple"===n||"payment-checkbox"===n)return e=[],i=m.formObject(i).form_fields[s],v("#everest-forms-field-option-"+s).find(".evf-choices-list li").each(function(){e.push(v(this).data("key"))}),t=wp.template("everest-forms-field-preview-choices"),data={type:n="checkbox"===n||"payment-checkbox"===n?"checkbox":"radio",order:e,settings:i,amountFilter:m.amountFilter},void v("#everest-forms-field-"+s).find("ul.primary-input").replaceWith(t(data));"select"===n&&(r="<option>{label}</option>",$primary.find("option").not(".placeholder").remove()),v("#everest-forms-field-option-row-"+s+"-choices .evf-choices-list li").each(function(e){var t=v(this),i=t.find("input.label").val(),t=t.find("input.default").is(":checked"),o=v(r.replace("{label}",i));if(v("#everest-forms-field-"+s+" .primary-input").append(o),i&&!0===t)switch(n){case"select":o.prop("selected",!0);break;case"radio":case"checkbox":o.find("input").prop("checked",!0)}})},amountFilter:function(e,t){return"right"===e.currency_symbol_pos?t+" "+e.currency_symbol:e.currency_symbol+" "+t},bindFormSettings:function(){v("body").on("click",".evf-setting-panel",function(e){var t=v(this).attr("data-section");v(".evf-setting-panel").removeClass("active"),v(".everest-forms-active-email").removeClass("active"),v(".everest-forms-active-sms-notifications").removeClass("active"),v(".evf-content-section").removeClass("active"),v(this).addClass("active"),v(".evf-content-"+t+"-settings").addClass("active"),e.preventDefault()}),v(".evf-setting-panel").eq(0).trigger("click")},bindFormEmail:function(){v("body").on("click",".everest-forms-panel-sidebar-section-email",function(e){v(this).siblings(".everest-forms-active-email").removeClass("active"),v(this).next(".everest-forms-active-email").addClass("active");var t=v(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()})},bindFormSmsNotifications:function(){v("body").on("click",".everest-forms-panel-sidebar-section-sms-notifications",function(e){v(this).siblings(".everest-forms-active-sms-notifications").removeClass("active"),v(this).next(".everest-forms-active-sms-notifications").addClass("active");var t=v(this).siblings(".everest-forms-active-sms-notifications.active").find(".everest-forms-active-sms-notifications-connections-list li");t.length&&t.children(".user-nickname").first().trigger("click"),e.preventDefault()})},bindFormIntegrations:function(){v("body").on("click",".evf-integrations-panel",function(e){var t=v(this).attr("data-section"),i=(v(".evf-integrations-panel").removeClass("active"),v("#everest-forms-panel-integrations").find(".evf-panel-content-section").removeClass("active"),v(this).addClass("active"),v(this).parent().find(".everest-forms-active-connections").removeClass("active"),v(this).next(".everest-forms-active-connections").addClass("active"),v(this).siblings(".everest-forms-active-connections.active").find(".everest-forms-active-connections-list li"));i.length&&i.children(".user-nickname").first().trigger("click"),v(".evf-panel-content-section-"+t).addClass("active"),e.preventDefault()}),v(".evf-setting-panel").eq(0).trigger("click")},bindFormPayment:function(){v("body").on("click",".evf-payments-panel",function(e){var t=v(this).attr("data-section");v(".evf-payments-panel").removeClass("active"),v(this).siblings().removeClass("icon active"),v(this).addClass("active"),v(this).parents("#everest-forms-panel-payments").find(".evf-payment-setting-content").removeClass("active").hide(),v(".evf-content-"+t+"-settings").addClass("active").show(),e.preventDefault()}),v(".evf-setting-panel").eq(0).trigger("click")},removeRow:function(e){v.each(e.find(".everest-forms-field"),function(){var e=v(this).attr("data-field-id"),e=v("#everest-forms-field-option-"+e);v(this).remove(),e.remove()}),e.remove()},bindRemoveRow:function(){v("body").on("click",".evf-delete-row",function(){var e=v(this),t=v(".evf-admin-row").length,i=e.closest(".evf-admin-row"),o=i.attr("data-row-id"),e=e.parents(".evf-admin-field-container").attr("data-current-part"),n=v("#everest-forms-builder").hasClass("multi-part-activated");(t=e&&n?v("#part_"+e).find(".evf-admin-row").length:t)<2?v.alert({title:c.i18n_row_locked,content:c.i18n_row_locked_msg,icon:"dashicons dashicons-info",type:"blue",buttons:{confirm:{text:c.i18n_close,btnClass:"btn-confirm",keys:["enter"]}}}):v.confirm({title:!1,content:c.i18n_delete_row_confirm,type:"red",closeIcon:!1,backgroundDismiss:!1,icon:"dashicons dashicons-warning",buttons:{confirm:{text:c.i18n_ok,btnClass:"btn-confirm",keys:["enter"],action:function(){m.removeRow(i),v(".everest-forms-fields-tab").find("a").removeClass("active"),v(".everest-forms-fields-tab").find("a").first().addClass("active"),v(".everest-forms-add-fields").show(),v("#everest-forms-row-option-row_"+o).remove()}},cancel:{text:c.i18n_cancel}}})})},bindAddNewRow:function(){v("body").on("click",".evf-add-row span",function(){v("#add-fields").trigger("click");var t,e=v(this),i=v(".evf-admin-field-wrapper"),o=v(".evf-admin-row").map(function(){return v(this).data("row-id")}).get(),o=Math.max.apply(Math,o),n=v(".evf-admin-row").eq(0).clone(),s=e.parent().attr("data-total-rows"),r=e.parents(".evf-admin-field-container").attr("data-current-part");o++,s++,r&&(i=v(".evf-admin-field-wrapper").find("#part_"+r)),n.find(".evf-admin-grid").html(""),n.attr("data-row-id",o),e.parent().attr("data-total-rows",s),e.parent().attr("data-next-row-id",o),0<v(".everest-forms-row-options").length&&!1===e.closest(".evf-add-row").hasClass("repeater-row")?(n.find("div").hide(),n.css({padding:"40px"}).append('<i class="spinner is-active" style="margin:0px auto;"></i>'),i.append(n),m.bindFields(),m.checkEmptyGrid(),t=n.attr("data-row-id"),r=window.evf_data,v.ajax({url:r.ajax_url,type:"POST",data:{action:"everest_forms_new_row",security:r.evf_add_row_nonce,form_id:r.form_id,row_id:t},success:function(e){!0===e.success&&"undefined"!=typeof e.data.html&&(v(document).find(".everest-forms-row-option-group").append(e.data.html),m.conditionalLogicAppendRow(t))}}).always(function(){n.css({padding:0}),n.find("div").show(),n.find(".evf-toggle-row-content").css("display","none"),n.find("i").remove(),e.trigger("everest-forms-after-add-row",n)})):(i.append(n),m.bindFields(),m.checkEmptyGrid(),e.trigger("everest-forms-after-add-row",n))})},bindCloneField:function(){v("body").on("click",".everest-forms-preview .everest-forms-field .everest-forms-field-duplicate",function(){var e=v(this).closest(".everest-forms-field");e.hasClass("no-duplicate")?v.alert({title:c.i18n_field_locked,content:c.i18n_field_locked_msg,icon:"dashicons dashicons-info",type:"blue",buttons:{confirm:{text:c.i18n_close,btnClass:"btn-confirm",keys:["enter"]}}}):v.confirm({title:!1,content:c.i18n_duplicate_field_confirm,type:"orange",closeIcon:!1,backgroundDismiss:!1,icon:"dashicons dashicons-warning",buttons:{confirm:{text:c.i18n_ok,btnClass:"btn-confirm",keys:["enter"],action:function(){m.cloneFieldAction(e)}},cancel:{text:c.i18n_cancel}}})}),v("body").on("click",".evf-admin-row .evf-duplicate-row",function(){var e=v(this).closest(".evf-admin-row");e.find(".everest-forms-field").hasClass("no-duplicate")?v.alert({title:c.i18n_field_locked,content:c.i18n_row_locked_msg,icon:"dashicons dashicons-info",type:"blue",buttons:{confirm:{text:c.i18n_close,btnClass:"btn-confirm",keys:["enter"]}}}):v.confirm({title:!1,content:c.i18n_duplicate_row_confirm,type:"orange",closeIcon:!1,backgroundDismiss:!1,icon:"dashicons dashicons-warning",buttons:{confirm:{text:c.i18n_ok,btnClass:"btn-confirm",keys:["enter"],action:function(){m.cloneRowAction(e)}},cancel:{text:c.i18n_cancel}}})})},cloneRowAction:function(t){row_ids=v(".evf-admin-row").map(function(){return v(this).data("row-id")}).get(),max_row_id=Math.max.apply(Math,row_ids),row_clone=t.clone(),total_rows=v(".evf-add-row").attr("data-total-rows"),max_row_id++,total_rows++,row_clone.attr("data-row-id",max_row_id),v(".evf-add-row").attr("data-total-rows",total_rows),v(".evf-add-row").attr("data-next-row-id",max_row_id);var e={action:"everest_forms_get_next_id",security:c.evf_get_next_id,form_id:c.form_id,fields:row_clone.find(".everest-forms-field").length};v.ajax({url:c.ajax_url,data:e,type:"POST",beforeSend:function(){v(document.body).trigger("init_field_options_toggle")},success:function(e){"boolean"==typeof e.success&&!0===e.success&&(t.after(row_clone),v.each(e.data,function(e,t){var i=t.field_id,t=t.field_key,i=(v("#everest-forms-field-id").val(i),(field=row_clone.find(".everest-forms-field").eq(e)).attr("data-field-id"));m.render_node(field,i,t),field.remove(),v(document.body).trigger("init_field_options_toggle")}),m.bindFields())}})},cloneFieldAction:function(i){var o=i.attr("data-field-id"),e=c.form_id,e={action:"everest_forms_get_next_id",security:c.evf_get_next_id,form_id:e};v.ajax({url:c.ajax_url,data:e,type:"POST",beforeSend:function(){v(document.body).trigger("init_field_options_toggle")},success:function(e){var t;"boolean"==typeof e.success&&!0===e.success&&(t=e.data.field_id,e=e.data.field_key,v("#everest-forms-field-id").val(t),m.render_node(i,o,e),v(document.body).trigger("init_field_options_toggle"))}})},render_node:function(e,o,n){var t=v(".everest-forms-field-options #everest-forms-field-option-"+o),i=v("#everest-forms-field-option-"+o+"-label").val(),s=v("#everest-forms-field-option-"+o+"-meta-key").length?v("#everest-forms-field-option-"+o+"-meta-key").val():"",r=e.attr("data-field-type"),a=t.html(),i=i+" "+c.i18n_copy,s="html"!==r?s.replace(/\(|\)/g,"").toLowerCase().substring(0,s.lastIndexOf("_"))+"_"+Math.floor(1e3+9e3*Math.random()):"",d=e.clone(),l=new RegExp(o,"g"),a=a.replace(l,n),f=v('<div class="everest-forms-field-option everest-forms-field-option-'+r+'" id="everest-forms-field-option-'+n+'" data-field-id="'+n+'" />');f.append(a),v.each(t.find(":input"),function(){var e,t=v(this).attr("type"),i=(v(this).attr("name")?v(this).attr("name"):"").replace(l,n);"text"===t||"hidden"===t?(e=v(this).val(),f.find('input[name="'+i+'"]').val(e),f.find('input[value="'+o+'"]').val(n)):"checkbox"===t||"radio"===t?v(this).is(":checked")?f.find('input[name="'+i+'"]').prop("checked",!0).attr("checked","checked"):f.find('[name="'+i+'"]').prop("checked",!1).attr("checked",!1):v(this).is("select")?v(this).find("option:selected").length&&(e=v(this).find("option:selected").val(),f.find('[name="'+i+'"]').find('[value="'+e+'"]').prop("selected",!0)):""!==v(this).val()&&f.find('[name="'+i+'"]').val(v(this).val())}),v(".everest-forms-field-options").append(f),v("#everest-forms-field-option-"+n+"-label").val(i),v("#everest-forms-field-option-"+n+"-meta-key").val(s),d.attr("class",e.attr("class")),d.attr("id","everest-forms-field-"+n),d.attr("data-field-id",n),d.attr("data-field-type",r),d.find(".label-title .text").text(i),e.closest(".evf-admin-grid").find('[data-field-id="'+o+'"]').after(d),v(document).trigger("everest-form-cloned",[n,r]),m.switchToFieldOptionPanel(n),v(document.body).trigger("evf_render_node_complete",[r,n,d,f])},bindFieldDelete:function(){v("body").on("click",".everest-forms-preview .everest-forms-field .everest-forms-field-delete",function(){var t=v(this).closest(".everest-forms-field"),e=t.attr("data-field-id"),i=v("#everest-forms-field-option-"+e);v(this).closest(".evf-admin-grid");t.hasClass("no-delete")?v.alert({title:c.i18n_field_locked,content:c.i18n_field_locked_msg,icon:"dashicons dashicons-info",type:"blue",buttons:{confirm:{text:c.i18n_close,btnClass:"btn-confirm",keys:["enter"]}}}):v.confirm({title:!1,content:c.i18n_delete_field_confirm,type:"red",closeIcon:!1,backgroundDismiss:!1,icon:"dashicons dashicons-warning",buttons:{confirm:{text:c.i18n_ok,btnClass:"btn-confirm",keys:["enter"],action:function(){v(".evf-panel-fields-button").trigger("click"),t.fadeOut("slow",function(){var e=t.attr("data-field-id");v(document.body).trigger("evf_before_field_deleted",[e]),t.remove(),i.remove(),m.checkEmptyGrid(),v(".everest-forms-fields-tab").find("a").removeClass("active"),v(".everest-forms-fields-tab").find("a").first().addClass("active"),v(".everest-forms-add-fields").show(),m.conditionalLogicRemoveField(e),m.conditionalLogicRemoveFieldIntegration(e),m.paymentFieldRemoveFromQuantity(e)})}},cancel:{text:c.i18n_cancel}}})})},bindFieldDeleteWithKeyEvent:function(){v("body").on("keyup",function(e){var t,i=v(".everest-forms-preview .everest-forms-field.active");46===e.which&&!0===i.hasClass("active")&&!1===i.hasClass("evf-delete-event-active")&&0!=v(".evf-admin-row").hasClass("evf-hover")&&(i.addClass("evf-delete-event-active"),e=i.attr("data-field-id"),t=v("#everest-forms-field-option-"+e),i.hasClass("no-delete")?v.alert({title:c.i18n_field_locked,content:c.i18n_field_locked_msg,icon:"dashicons dashicons-info",type:"blue",buttons:{confirm:{text:c.i18n_close,btnClass:"btn-confirm",keys:["enter"],action:function(){i.removeClass("evf-delete-event-active")}}}}):v.confirm({title:!1,content:c.i18n_delete_field_confirm,type:"red",closeIcon:!1,backgroundDismiss:!1,icon:"dashicons dashicons-warning",buttons:{confirm:{text:c.i18n_ok,btnClass:"btn-confirm",keys:["enter"],action:function(){v(".evf-panel-fields-button").trigger("click"),i.fadeOut("slow",function(){var e=i.attr("data-field-id");v(document.body).trigger("evf_before_field_deleted",[e]),i.remove(),t.remove(),m.checkEmptyGrid(),v(".everest-forms-fields-tab").find("a").removeClass("active"),v(".everest-forms-fields-tab").find("a").first().addClass("active"),v(".everest-forms-add-fields").show(),m.conditionalLogicRemoveField(e),m.conditionalLogicRemoveFieldIntegration(e),m.paymentFieldRemoveFromQuantity(e)}),i.removeClass("evf-delete-event-active")}},cancel:{text:c.i18n_cancel,action:function(){i.removeClass("evf-delete-event-active")}}}}))})},bindSaveOption:function(){v("body").on("click",".everest-forms-save-button",function(){var t=v(this),e=v("form#everest-forms-builder-form"),i=m.getStructure(),o=e.serializeArray(),n=v("#evf-edit-form-name").val().trim(),s=(v(document).trigger("setEvfProWebHookRequestHeaders",[o]),{});if(v(".everest-forms-field-option-row").find(".evf-select2-multiple").filter(function(){var e=v(this).attr("id"),t=v(this).attr("name"),i=v(this).parent().attr("id");return e.split("-option-")[1]===i.split("-option-row-")[1]&&(s[e]=t),s}),0<Object.keys(s).length&&v.each(s,function(e,t){var i=[];v.each(v("#"+e+" option:selected"),function(){i.push(v(this).val())}),o.push({name:t,value:i.toString()})}),""===n)v.alert({title:c.i18n_field_title_empty,content:c.i18n_field_title_payload,icon:"dashicons dashicons-warning",type:"red",buttons:{ok:{text:c.i18n_ok,btnClass:"btn-confirm",keys:["enter"]}}});else{e.triggerHandler("everest_forms_process_ajax_data",[t,o])&&(o=e.triggerHandler("everest_forms_process_ajax_data",[t,o])),v(".everest-forms-panel-content-wrap").block({message:null,overlayCSS:{background:"#fff",opacity:.6}});for(var r,a=[],d=(v(".everest-forms-field[data-field-id]").each(function(){a.push(v(this).attr("data-field-id"))}),o.length);d--;)o[d].name.startsWith("form_fields")&&(r=!1,a.forEach(function(e){o[d].name.startsWith("form_fields["+e+"]")&&(r=!0)}),-1<d&&!1===r&&o.splice(d,1));n=o.concat(i),e={action:"everest_forms_save_form",security:c.evf_save_form,form_data:JSON.stringify(n)};v.ajax({url:c.ajax_url,data:e,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||v.alert({title:e.data.errorTitle,content:e.data.errorMessage,icon:"dashicons dashicons-warning",type:"red",buttons:{ok:{text:c.i18n_ok,btnClass:"btn-confirm",keys:["enter"]}}}),v(".everest-forms-panel-content-wrap").unblock()}})}})},bindSaveOptionWithKeyEvent:function(){v("body").on("keydown",function(e){!e.ctrlKey&&!e.metaKey||"s"!==String.fromCharCode(e.which).toLowerCase()&&83!==e.which||(e.preventDefault(),v(".everest-forms-save-button").trigger("click"))})},bindOpenShortcutKeysModalWithKeyEvent:function(){v("body").on("keydown",function(e){var i;!e.ctrlKey&&!e.metaKey||"h"!==String.fromCharCode(e.which).toLowerCase()&&72!==e.which||(e.preventDefault(),i="",v.each(c.i18n_shortcut_keys,function(e,t){i+=`
2
  <ul class="evf-shortcut-keyword">
3
  <li>
4
  <div class="evf-shortcut-title">${t}</div>
8
  </div>
9
  </li>
10
  </ul>
11
+ `}),v.alert({title:c.i18n_shortcut_key_title,content:i,icon:"dashicons dashicons-info",type:"blue",boxWidth:"550px",buttons:{confirm:{text:c.i18n_close,btnClass:"btn-confirm",keys:["enter"]}},onContentReady:function(){v("body").on("keydown",function(e){(e.ctrlKey||e.metaKey&&"h"===String.fromCharCode(e.which).toLowerCase()||72===e.which)&&v(".btn-confirm").trigger("click")})}}))})},getStructure:function(){var e=v(".evf-admin-field-wrapper"),s=[];return v.each(e.find(".evf-admin-row"),function(){var e=v(this),n=e.attr("data-row-id");v.each(e.find(".evf-admin-grid"),function(){var e=v(this),i=e.attr("data-grid-id"),o=0;v.each(e.find(".everest-forms-field"),function(){var e={name:"",value:""},t=v(this).attr("data-field-id");e.name="structure[row_"+n+"][grid_"+i+"]["+o+"]",o++,e.value=t,s.push(e)}),e.find(".everest-forms-field").length<1&&s.push({name:"structure[row_"+n+"][grid_"+i+"]",value:""})})}),s},getFieldArray:function(e){var t=[];return v.each(e.find(".everest-forms-field"),function(){var e=v(this).attr("data-field-id");t.push(e)}),t},checkEmptyGrid:function(e){v.each(v(".evf-admin-grid"),function(){v(this).find(".everest-forms-field, .evf-registered-item:not(.ui-draggable-dragging)").not(".ui-sortable-helper").length<1?v(this).addClass("evf-empty-grid"):v(this).removeClass("evf-empty-grid")}),m.choicesInit()},bindDefaultTabs:function(){v(document).on("click",".evf-nav-tab-wrapper a",function(e){e.preventDefault(),m.switchTab(v(this).data("panel"))})},switchTab:function(e){var t=v("#everest-forms-panel-"+e),i=v(".evf-panel-"+e+"-button");v(".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"),v(".everest-forms-panel-content").find(".evf-panel-content-section").hasClass("active")||v(".everest-forms-panel-content").find(".evf-panel-content-section").first().addClass("active")),history.replaceState({},null,m.updateQueryString("tab",e)),m.switchPanel(e)},updateQueryString:function(e,t,i){i=i||window.location.href;var o,n=new RegExp("([?&])"+e+"=.*?(&|#|$)(.*)","gi");return n.test(i)?null!=t?i.replace(n,"$1"+e+"="+t+"$2$3"):(i=(o=i.split("#"))[0].replace(n,"$1$3").replace(/(&|\?)$/,""),"undefined"!=typeof o[1]&&null!==o[1]&&(i+="#"+o[1]),i):(null!=t&&(n=-1!==i.indexOf("?")?"&":"?",i=(o=i.split("#"))[0]+n+e+"="+t,"undefined"!=typeof o[1]&&null!==o[1]&&(i+="#"+o[1])),i)},switchPanel:function(e){"field-options"===e&&m.switchToFieldOptionPanel()},switchToFieldOptionPanel:function(e){v(".everest-forms-field-options").find(".no-fields").hide(),v(".evf-admin-field-wrapper .everest-forms-field").removeClass("active"),v("#everest-forms-panel-fields").addClass("active"),v(".everest-forms-fields-tab").find("a").removeClass("active"),v(".everest-forms-fields-tab").find("a").last().addClass("active"),v(".everest-forms-add-fields").hide(),v(".everest-forms-field-options").show(),v(".everest-forms-field-options").find(".everest-forms-field-option").hide(),v(".evf-tab-lists").find("li a").removeClass("active"),v(".evf-tab-lists").find("li.evf-panel-field-options-button a").addClass("active"),v(document.body).trigger("evf-init-switch-field-options"),void 0!==e?(v("#everest-forms-field-option-"+e).show(),v("#everest-forms-field-"+e).addClass("active")):0<v(".evf-admin-field-wrapper .everest-forms-field").length?(v(".evf-admin-field-wrapper .everest-forms-field").eq(0).addClass("active"),v("#everest-forms-field-option-"+v(".evf-admin-field-wrapper .everest-forms-field").eq(0).attr("data-field-id")).show()):v(".everest-forms-field-options").find(".no-fields").show()},bindFields:function(){v(".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({backgroundColor:"#f7fafc",border:"1px dashed #5d96ee"})},stop:function(e,t){t.item.removeAttr("style")}}).disableSelection(),v(".evf-admin-grid").sortable({items:'> .everest-forms-field[data-field-type!="repeater-fields"]',delay:100,opacity:.65,cursor:"move",scrollSensitivity:40,forcePlaceholderSize:!0,connectWith:".evf-admin-grid",appendTo:document.body,containment:".everest-forms-field-wrap",out:function(e){v(".evf-admin-grid").removeClass("evf-hover"),v(e.target).removeClass("evf-item-hover"),v(e.target).closest(".evf-admin-row").removeClass("evf-hover"),m.checkEmptyGrid()},over:function(e,t){v(".evf-admin-grid").addClass("evf-hover"),v(e.target).addClass("evf-item-hover"),v(e.target).closest(".evf-admin-row").addClass("evf-hover"),m.checkEmptyGrid()},receive:function(e,t){t.sender.is("button")&&m.fieldDrop(t.helper)},update:function(e,t){v(document).trigger("evf_sort_update_complete",{event:e,ui:t})},stop:function(e,t){t.item.removeAttr("style"),m.checkEmptyGrid()}}).disableSelection(),v(".evf-registered-buttons button.evf-registered-item").draggable({delay:200,cancel:!1,scroll:!1,revert:"invalid",scrollSensitivity:40,forcePlaceholderSize:!0,start:function(){v(this).addClass("field-dragged")},helper:function(){return v(this).clone().insertAfter(v(this).closest(".everest-forms-tab-content").siblings(".everest-forms-fields-tab"))},stop:function(){v(this).removeClass("field-dragged")},opacity:.75,containment:"#everest-forms-builder",connectToSortable:".evf-admin-grid"}).disableSelection(),v(".evf-registered-item.evf-repeater-field").draggable("option","connectToSortable",".evf-repeatable-grid"),v(".evf-admin-row").on("mouseenter mouseleave",function(e){e.buttons<1&&("mouseenter"===e.type?v(this).addClass("evf-hover"):v(".evf-admin-row").removeClass("evf-hover"))}),v(".everest-forms-panel-content").on("scroll",function(){v(".evf-admin-grid").sortable("refreshPositions"),v(".evf-admin-field-wrapper").sortable("refreshPositions")})},fieldTabChoice:function(e){v(".everest-forms-tab-content").scrollTop(0),v(".everest-forms-fields-tab a").removeClass("active"),v(".everest-forms-field, .everest-forms-title-desc").removeClass("active"),v("#"+e).addClass("active"),"add-fields"===e?(v(".everest-forms-add-fields").show(),v(".everest-forms-field-options").hide()):("field-options"===e?(e=v(".everest-forms-field").first().data("field-id"),v(".everest-forms-field-options").show(),v(".everest-forms-field").first().addClass("active")):v("#everest-forms-field-"+e).addClass("active"),v(".everest-forms-field-option").hide(),v("#everest-forms-field-option-"+e).show(),v(".everest-forms-add-fields").hide())},bindFormPreview:function(){},bindFormPreviewWithKeyEvent:function(){v("body").on("keydown",function(e){!e.ctrlKey&&!e.metaKey||"p"!==String.fromCharCode(e.which).toLowerCase()&&80!==e.which||(e.preventDefault(),window.open(c.preview_url))})},bindFormEntriesWithKeyEvent:function(){v("body").on("keydown",function(e){!e.ctrlKey&&!e.metaKey||"e"!==String.fromCharCode(e.which).toLowerCase()&&69!==e.which||(e.preventDefault(),window.open(c.entries_url))})},bindGridSwitcher:function(){v("body").on("click",".evf-show-grid",function(e){e.stopPropagation(),m.checkEmptyGrid(),v(this).closest(".evf-toggle-row").find(".evf-toggle-row-content").stop(!0).slideToggle(200)}),v(document).on("click",function(){m.checkEmptyGrid(),v(".evf-show-grid").closest(".evf-toggle-row").find(".evf-toggle-row-content").stop(!0).slideUp(200)});v("body").on("click",".evf-grid-selector",function(){var e=v(this).closest(".evf-admin-row");if(!v(this).hasClass("active")){var t=parseInt(v(this).attr("data-evf-grid"),10);if(!(4<t)){var i=v('<div class="evf-admin-grid evf-grid-'+t+' ui-sortable evf-empty-grid" />'),o=v("<div/>");v.each(e.find(".evf-admin-grid"),function(){v(this).children("*").each(function(){o.append(v(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(o.html()),e.find(".evf-grid-selector").removeClass("active"),v(this).addClass("active"),m.bindFields()}}})},fieldDrop:function(r){var e=r.attr("data-field-type");if(["file-upload","payment-total","image-upload","signature"].includes(e)&&r.closest(".evf-admin-row").hasClass("evf-repeater-fields"))return v.confirm({title:!1,content:"This field cannot be added to Repeater Fields",type:"red",closeIcon:!1,backgroundDismiss:!1,icon:"dashicons dashicons-warning",buttons:{cancel:{text:c.i18n_close,btnClass:"btn-default"}}}),r.remove(),!1;r.css({left:"0",width:"100%"}).append('<i class="spinner is-active"></i>'),v.ajax({url:c.ajax_url,type:"POST",data:{action:"everest_forms_new_field_"+e,security:c.evf_field_drop_nonce,field_type:e,form_id:c.form_id},beforeSend:function(){v(document.body).trigger("init_field_options_toggle")},success:function(e){var t=e.data.preview,i=e.data.options,o=e.data.form_field_id,e=e.data.field.type,n=v(t).attr("id"),s=v(t).attr("data-field-id");v("#everest-forms-field-id").val(o),v(".everest-forms-field-options").find(".no-fields").hide(),v(".everest-forms-field-options").append(i),v(".everest-forms-field-option-row-icon_color input.colorpicker").wpColorPicker({change:function(e){var t=v(this),i=t.val(),t=t.closest(".everest-forms-field-option-row").data("field-id");v("#everest-forms-field-"+t+" .rating-icon svg").css("fill",i)}}),r.after(t),null!==v("#everest-forms-panel-field-settings-enable_survey")&&v("#everest-forms-panel-field-settings-enable_survey").prop("checked")&&v("#everest-forms-field-option-"+s+"-survey_status").prop("checked",!0),null!==v("#everest-forms-panel-field-settings-enable_quiz")&&v("#everest-forms-panel-field-settings-enable_quiz").prop("checked")&&(v("#everest-forms-field-option-"+s+"-quiz_status").prop("checked",!0),v("#everest-forms-field-option-"+s+"-quiz_status").closest(".everest-forms-field-option-row-quiz_status").siblings(".everst-forms-field-quiz-settings").removeClass("everest-forms-hidden").addClass("everest-forms-show")),r.remove(),v(document.body).trigger("init_tooltips"),v(document.body).trigger("init_field_options_toggle"),v(document.body).trigger("evf_after_field_append",[n]),m.conditionalLogicAppendField(n),m.conditionalLogicAppendFieldIntegration(n),m.paymentFieldAppendToQuantity(n),m.paymentFieldAppendToDropdown(s,e),m.init_datepickers(),v("#everest-forms-field-option-"+s+"-enable_min_max_time").hide(),v("label[for=everest-forms-field-option-"+s+"-enable_min_max_time]").hide(),v("label[for=everest-forms-field-option-"+s+"-select_min_time]").hide(),v("label[for=everest-forms-field-option-"+s+"-select_max_time]").hide(),v("#everest-forms-field-option-"+s+"-min_time_hour").parent().hide(),v("#everest-forms-field-option-"+s+"-max_time_hour").parent().hide(),v(document.body).trigger("evf_field_drop_complete",[e,s,t,i]),m.checkEmptyGrid()}})},conditionalLogicAppendField:function(n){var e=v("#"+n),s=e.index(),r=v(".evf-field-conditional-field-select"),a=e.attr("data-field-type"),d=e.attr("data-field-id"),l=e.find(".label-title .text ").text(),f=(v.fn.insertAt=function(e,t,i){var o=v.makeArray(this.children().clone(!0));o.splice(t,0,e),v.each(o,function(e,t){i===v(t)[0].value&&(v(t)[0].selected=!0,o[e]=t)}),this.empty().append(o)},d);r.each(function(o,e){var t=v(e).val(),i=n.replace("everest-forms-field-",""),e=v(e).attr("name");i===e.substring(e.indexOf("[")+1,e.indexOf("]"))?v(".evf-admin-row .evf-admin-grid .everest-forms-field").each(function(){var e=v(this).data("field-type"),t=v(this).data("field-id"),i=v(this).find(".label-title span").first().text();field_to_be_restricted=["html","title","address","image-upload","file-upload","date-time","hidden","scale-rating","likert","yes-no"],-1===v.inArray(e,field_to_be_restricted)&&f!==t&&r.eq(o).append('<option class="evf-conditional-fields" data-field_type="'+e+'" data-field_id="'+t+'" value="'+t+'">'+i+"</option>")}):(i='<option class="evf-conditional-fields" data-field_type="'+a+'" data-field_id="'+d+'" value="'+d+'">'+l+"</option>","html"!==a&&"title"!==a&&"address"!==a&&"image-upload"!==a&&"file-upload"!==a&&"date-time"!==a&&"hidden"!==a&&"likert"!==a&&"scale-rating"!==a&&"yes-no"!==a&&r.eq(o).insertAt(i,s,t))})},conditionalLogicAppendRow:function(o){var n=v("#everest-forms-row-option-row_"+o);v(".everest-forms-field").each(function(){var e=v(this),t=e.attr("data-field-id"),i=e.attr("data-field-type"),e=(e.find(".required").remove(),'<option class="evf-conditional-fields" data-field_type="'+i+'" data-field_id="'+t+'" value="'+t+'">'+e.find(".label-title").html()+"</option>");0===v(document).find('.evf-admin-row[data-row-id="'+o+'"] #everest-forms-field-'+t).length&&0===n.find('.evf-field-conditional-field-select option[data-field_id="'+t+'"]').length&&"html"!==i&&"title"!==i&&"address"!==i&&"image-upload"!==i&&"file-upload"!==i&&"date-time"!==i&&"hidden"!==i&&"likert"!==i&&"scale-rating"!==i&&n.find(".evf-field-conditional-field-select").append(e)})},paymentFieldAppendToQuantity:function(e){var e=v("#"+e),t=v(".everest-forms-field-option-row-map_field select"),i=e.attr("data-field-type"),o=e.attr("data-field-id"),e=e.find(".label-title .text ").text();"payment-single"!==i&&"payment-multiple"!==i&&"payment-checkbox"!==i||t.append('<option value="'+o+'">'+e+"</option>")},paymentFieldAppendToDropdown:function(e,t){var i;"payment-quantity"!==t&&"payment-coupon"!==t||(i=v("#everest-forms-field-option-"+e+"-map_field"),["payment-checkbox","payment-multiple","payment-single","range-slider"].forEach(function(e){v(".everest-forms-field-"+e).each(function(){if("range-slider"===v(this).attr("data-field-type")){if("true"!==v(this).find(".evf-range-slider-preview").attr("data-enable-payment-slider"))return;var e='<option value="'+v(this).attr("data-field-id")+'">'+v(this).find(".label-title .text").text()+"</option>"}e='<option value="'+v(this).attr("data-field-id")+'">'+v(this).find(".label-title .text").text()+"</option>";i.append(e)})}))},conditionalLogicAppendFieldIntegration:function(i){var n=v("#"+i),s=n.index(),r=v(".evf-provider-conditional").find(".evf-conditional-field-select"),a=n.attr("data-field-type"),d=n.attr("data-field-id"),l=n.find(".label-title .text ").text();v.fn.insertAt=function(e,t){var i=v.makeArray(this.children().clone(!0));i.splice(t,0,e),this.empty().append(i)},r.each(function(o,e){var t=i.replace("everest-forms-field-",""),e=v(e).attr("name");t===e.substring(e.indexOf("[")+1,e.indexOf("]"))?v(".evf-admin-row .evf-admin-grid .everest-forms-field").each(function(){var e=v(this).data("field-type"),t=v(this).data("field-id"),i=v(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","yes-no",n.attr("data-field-type")],-1===v.inArray(e,field_to_be_restricted)&&r.eq(o).append('<option class="evf-conditional-fields" data-field_type="'+e+'" data-field_id="'+t+'" value="'+t+'">'+i+"</option>")}):(t='<option class="evf-conditional-fields" data-field_type="'+a+'" data-field_id="'+d+'" value="'+d+'">'+l+"</option>","html"!==a&&"title"!==a&&"address"!==a&&"image-upload"!==a&&"file-upload"!==a&&"date-time"!==a&&"hidden"!==a&&"likert"!==a&&"scale-rating"!==a&&"yes-no"!==a&&r.eq(o).insertAt(t,s))})},conditionalLogicRemoveField:function(e){v(".evf-field-conditional-field-select option[value = "+e+" ]").remove()},conditionalLogicRemoveFieldIntegration:function(e){v(".evf-provider-conditional .evf-conditional-field-select option[value = "+e+" ]").remove()},paymentFieldRemoveFromQuantity:function(e){v(".everest-forms-field-option-row-map_field select option[value = "+e+" ]").remove()},bindFieldSettings:function(){v("body").on("click",".everest-forms-preview .everest-forms-field, .everest-forms-preview .everest-forms-field .everest-forms-field-setting",function(e){e.preventDefault();e=v(this).closest(".everest-forms-field").attr("data-field-id");v(".everest-forms-tab-content").scrollTop(0),m.switchToFieldOptionPanel(e)})},toggleLabelEdit:function(e,t){v(e).toggleClass("everest-forms-hidden"),v(t).toggleClass("everest-forms-hidden"),v(t).is(":visible")&&v(t).focus()},bindToggleHandleActions:function(){v("body").on("click",".toggle-handle",function(e){var t=v(this).data("label"),i=v(this).data("input");v(i).is(":visible")||m.toggleLabelEdit(t,i)})},bindLabelEditInputActions:function(){v("body").on("focusout",".label-edit-input",function(e){var t=v(this).data("label");m.toggleLabelEdit(t,this)})},bindSyncedInputActions:function(){v("body").on("input",".sync-input",function(e){var t=v(this).val(),i=v(this).data("sync-targets");t&&i&&v(i).text(t)})}};m.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()}),jQuery("#everest-forms-panel-field-settings-enable_redirect_query_string-wrap input").on("change",function(){jQuery(this).is(":checked")?jQuery("#everest-forms-panel-field-settings-query_string-wrap").show():jQuery("#everest-forms-panel-field-settings-query_string-wrap").hide()});var e=jQuery("#everest-forms-panel-field-settings-redirect_to option:selected").val();"same"==e?(jQuery("#everest-forms-panel-field-settings-custom_page-wrap").hide(),jQuery("#everest-forms-panel-field-settings-enable_redirect_query_string-wrap").hide(),jQuery("#everest-forms-panel-field-settings-query_string-wrap").hide(),jQuery("#everest-forms-panel-field-settings-external_url-wrap").hide()):"custom_page"==e?(jQuery("#everest-forms-panel-field-settings-custom_page-wrap").show(),jQuery("#everest-forms-panel-field-settings-external_url-wrap").hide()):"external_url"==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-enable_redirect_query_string-wrap").hide(),jQuery("#everest-forms-panel-field-settings-query_string-wrap").hide()),jQuery("#everest-forms-panel-field-settings-redirect_to").on("change",function(){"same"==this.value?(jQuery("#everest-forms-panel-field-settings-custom_page-wrap").hide(),jQuery("#everest-forms-panel-field-settings-external_url-wrap").hide(),jQuery("#everest-forms-panel-field-settings-enable_redirect_query_string-wrap").hide(),jQuery("#everest-forms-panel-field-settings-query_string-wrap").hide()):"custom_page"==this.value?(jQuery("#everest-forms-panel-field-settings-custom_page-wrap").show(),jQuery("#everest-forms-panel-field-settings-enable_redirect_query_string-wrap").show(),jQuery("#everest-forms-panel-field-settings-external_url-wrap").hide(),jQuery("#everest-forms-panel-field-settings-enable_redirect_query_string").is(":checked")?jQuery("#everest-forms-panel-field-settings-query_string-wrap").show():jQuery("#everest-forms-panel-field-settings-query_string-wrap").hide()):"external_url"==this.value&&(jQuery("#everest-forms-panel-field-settings-custom_page-wrap").hide(),jQuery("#everest-forms-panel-field-settings-enable_redirect_query_string-wrap").hide(),jQuery("#everest-forms-panel-field-settings-query_string-wrap").hide(),jQuery("#everest-forms-panel-field-settings-external_url-wrap").show())}),jQuery(".evf-panel-field-options-button.evf-disabled-tab").hide(),jQuery(".everest-forms-conditional-field-settings-redirect_to").each(function(){var e=this.value;"custom_page"==e?(jQuery(this).parents(".evf-field-conditional-container").find(".everest-forms-conditional-field-settings-custom_page").show(),jQuery(this).parents(".evf-field-conditional-container").find(".everest-forms-conditional-field-settings-external_url").hide()):"external_url"==e?(jQuery(this).parents(".evf-field-conditional-container").find(".everest-forms-conditional-field-settings-custom_page").hide(),jQuery(this).parents(".evf-field-conditional-container").find(".everest-forms-conditional-field-settings-external_url").show()):(jQuery(this).parents(".evf-field-conditional-container").find(".everest-forms-conditional-field-settings-custom_page").hide(),jQuery(this).parents(".evf-field-conditional-container").find(".everest-forms-conditional-field-settings-external_url").hide())}),jQuery(document).on("change",".everest-forms-conditional-field-settings-redirect_to",function(){"custom_page"==this.value?(jQuery(this).parents(".evf-field-conditional-container").find(".everest-forms-conditional-field-settings-custom_page").show(),jQuery(this).parents(".evf-field-conditional-container").find(".everest-forms-conditional-field-settings-external_url").hide()):"external_url"==this.value?(jQuery(this).parents(".evf-field-conditional-container").find(".everest-forms-conditional-field-settings-custom_page").hide(),jQuery(this).parents(".evf-field-conditional-container").find(".everest-forms-conditional-field-settings-external_url").show()):(jQuery(this).parents(".evf-field-conditional-container").find(".everest-forms-conditional-field-settings-custom_page").hide(),jQuery(this).parents(".evf-field-conditional-container").find(".everest-forms-conditional-field-settings-external_url").hide())})}),jQuery(function(c){c(document.body).on("init_add_fields_toogle",function(){c(".everest-forms-add-fields").on("click",".everest-forms-add-fields-group > a",function(e){e.preventDefault(),c(this).parent(".everest-forms-add-fields-group").toggleClass("closed").toggleClass("open")}),c(".everest-forms-add-fields").on("click",".everest-forms-add-fields-group a",function(){c(this).next(".evf-registered-buttons").stop().slideToggle()}),c(".everest-forms-add-fields-group.closed").each(function(){c(this).find(".evf-registered-buttons").hide()})}).trigger("init_add_fields_toogle"),c(document.body).on("click",".everest-forms-field-option .everest-forms-field-option-group > a",function(e){e.preventDefault(),c(this).parent(".everest-forms-field-option-group").toggleClass("closed").toggleClass("open")}),c(document.body).on("click",".everest-forms-field-option .everest-forms-field-option-group a",function(e){c(e.target).filter(":input, option, .sort").length||c(this).next(".everest-forms-field-option-group-inner").stop().slideToggle()}),c(document.body).on("init_field_options_toggle",function(){c(".everest-forms-field-option-group.closed").each(function(){c(this).find(".everest-forms-field-option-group-inner").hide()})}).trigger("init_field_options_toggle"),c(document).on("click",function(){c(".evf-smart-tag-lists").hide()}),c(".evf-smart-tag-lists").hide(),c(document.body).on("click",".evf-toggle-smart-tag-display",function(e){e.stopPropagation(),c(".evf-smart-tag-lists").hide(),c(".evf-smart-tag-lists ul").empty(),c(this).parent().find(".evf-smart-tag-lists").toggle("show");var t,e=c(this).data("type"),i=c(this).data("fields"),o=c(this),n=[],s=[],r=[],a=[];if(c(".evf-admin-row .evf-admin-grid .everest-forms-field").each(function(){var e,t=c(this).data("field-type"),i=c(this).data("field-id");"email"===t?(e=c(this).find(".label-title span").first().text(),r[i]=e):"phone"===t?(e=c(this).find(".label-title span").first().text(),a[i]=e):(t=c(this).find(".label-title span").first().text(),n[i]=t),s[i]=c(this).find(".label-title span").first().text()}),"other"===e||"all"===e){var d=evf_data.smart_tags_other;for(l in d)c(o).parent().find(".evf-smart-tag-lists .evf-others").append('<li class = "smart-tag-field" data-type="other" data-field_id="'+l+'">'+d[l]+"</li>")}if("fields"===e||"all"===e)if("email"===i)for(var l in Object.keys(r).length<1?c(o).parent().find('.evf-smart-tag-lists .smart-tag-title:not(".other-tag-title")').addClass("everest-forms-hidden"):c(o).parent().find('.evf-smart-tag-lists .smart-tag-title:not(".other-tag-title")').removeClass("everest-forms-hidden"),c(o).parent().find(".evf-smart-tag-lists .other-tag-title").remove(),c(o).parent().find(".evf-smart-tag-lists .evf-others").remove(),c(o).parent().find(".evf-smart-tag-lists").append('<div class="smart-tag-title other-tag-title">Others</div><ul class="evf-others"></ul>'),c(o).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)c(o).parent().find(".evf-smart-tag-lists .evf-fields").append('<li class = "smart-tag-field" data-type="field" data-field_id="'+l+'">'+r[l]+"</li>");else if("phone"===i)for(var l in Object.keys(a).length<1?c(o).parent().find('.evf-smart-tag-lists .smart-tag-title:not(".other-tag-title")').addClass("everest-forms-hidden"):c(o).parent().find('.evf-smart-tag-lists .smart-tag-title:not(".other-tag-title")').removeClass("everest-forms-hidden"),c(o).parent().find(".evf-smart-tag-lists .other-tag-title").remove(),c(o).parent().find(".evf-smart-tag-lists .evf-others").remove(),a)c(o).parent().find(".evf-smart-tag-lists .evf-fields").append('<li class = "smart-tag-field" data-type="field" data-field_id="'+l+'">'+a[l]+"</li>");else for(var f in Object.keys(s).length<1?c(o).parent().find('.evf-smart-tag-lists .smart-tag-title:not(".other-tag-title")').addClass("everest-forms-hidden"):c(o).parent().find('.evf-smart-tag-lists .smart-tag-title:not(".other-tag-title")').removeClass("everest-forms-hidden"),s)c(o).parent().find(".evf-smart-tag-lists .evf-fields").append('<li class = "smart-tag-field" data-type="field" data-field_id="'+f+'">'+s[f]+"</li>");"calculations"===e&&(t=["number","payment-single","range-slider"],c(document).find(".everest-forms-field").each(function(){t.includes(c(this).attr("data-field-type"))&&c(o).parents(".everest-forms-field-option-row-calculation_field").attr("data-field-id")!==c(this).attr("data-field-id")&&c(o).parent().find(".evf-smart-tag-lists .calculations").append('<li class = "smart-tag-field" data-type="field" data-field_id="'+c(this).attr("data-field-id")+'">'+c(this).find(".label-title .text").text()+"</li>")}))}),c(document.body).on("click",".smart-tag-field",function(e){var t=c(this).data("field_id"),i=c(this).text(),o=c(this).data("type"),n=c(this).parent().parent().parent(),s=n.find("input[type=text]"),n=n.find("textarea");if("fullname"!==t&&"email"!==t&&"subject"!==t&&"message"!==t&&"other"!==o){for(var i=i.split(/[\s-_]/),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}"field"===o?(s.val(s.val()+'{field_id="'+t+'"}'),n.val(n.val()+'{field_id="'+t+'"}'),n.trigger("change")):"other"===o&&(s.val(s.val()+"{"+t+"}"),n.val(n.val()+"{"+t+"}"))}),c(document).on("change",".wp-list-table .everest-forms-toggle-form input",function(e){e.stopPropagation(),c.post(evf_data.ajax_url,{action:"everest_forms_enabled_form",security:evf_data.evf_enabled_form,form_id:c(this).data("form_id"),enabled:c(this).prop("checked")?1:0})}),c(document).on("change",".evf-content-email-settings .evf-toggle-switch input",function(e){var t=c(this),i=t.prop("checked");!1===i?(t.val(""),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"),c('<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&&(t.val("1"),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())}),c(document).on("click",".everest-forms-min-max-date-format input",function(){var e=c(this).closest(".everest-forms-date").find(".everest-forms-min-date").val(),t=c(this).closest(".everest-forms-date").find(".everest-forms-min-date").val();c(this).is(":checked")?(c(".everest-forms-min-max-date-option").removeClass("everest-forms-hidden"),""===e&&c(".everest-forms-min-date").addClass("flatpickr-field").flatpickr({disableMobile:!0,onChange:function(e,t,i){c(".everest-forms-min-date").val(t)},onOpen:function(e,t,i){i.set("maxDate",c(".everest-forms-max-date").val())}}),""===t&&c(".everest-forms-max-date").addClass("flatpickr-field").flatpickr({disableMobile:!0,onChange:function(e,t,i){c(".everest-forms-max-date").val(t)},onOpen:function(e,t,i){i.set("minDate",c(".everest-forms-min-date").val())}})):c(".everest-forms-min-max-date-option").addClass("everest-forms-hidden")})});
assets/js/frontend/everest-forms.js CHANGED
@@ -649,7 +649,7 @@ jQuery( function ( $ ) {
649
  if ( 'undefined' !== typeof $.fn.selectWoo ) {
650
  $( 'select.evf-enhanced-select:visible' ).filter( ':not(.evf-enhanced)' ).each( function() {
651
  var select2_args = $.extend({
652
- minimumResultsForSearch: 10,
653
  placeholder: $( this ).attr( 'placeholder' ) || '',
654
  allowClear: $( this ).prop( 'multiple' ) ? false : true,
655
  }, getEnhancedSelectFormatString() );
649
  if ( 'undefined' !== typeof $.fn.selectWoo ) {
650
  $( 'select.evf-enhanced-select:visible' ).filter( ':not(.evf-enhanced)' ).each( function() {
651
  var select2_args = $.extend({
652
+ minimumResultsForSearch: 10 < $( this ).find( 'option' ).length ? 10 : null,
653
  placeholder: $( this ).attr( 'placeholder' ) || '',
654
  allowClear: $( this ).prop( 'multiple' ) ? false : true,
655
  }, getEnhancedSelectFormatString() );
assets/js/frontend/everest-forms.min.js CHANGED
@@ -1 +1 @@
1
- jQuery(function(f){"use strict";if("undefined"==typeof everest_forms_params)return!1;var l={$everest_form:f("form.everest-form"),init:function(){this.init_inputMask(),this.init_mailcheck(),this.init_datepicker(),this.init_datedropdown(),this.load_validation(),this.submission_scroll(),this.randomize_elements(),this.init_enhanced_select(),this.checkUncheckAllcheckbox(),this.validateMinimumWordLength(),this.$everest_form.on("input validate change",".input-text, select, input:checkbox, input:radio",this.validate_field),f(document.body).trigger("everest_forms_loaded")},init_inputMask:function(){"undefined"!=typeof f.fn.inputmask&&f(".evf-masked-input").inputmask()},init_mailcheck:function(){"undefined"!=typeof f.fn.mailcheck&&everest_forms_params.mailcheck_enabled&&(0<everest_forms_params.mailcheck_domains.length&&(Mailcheck.defaultDomains=Mailcheck.defaultDomains.concat(everest_forms_params.mailcheck_domains)),0<everest_forms_params.mailcheck_toplevel_domains.length&&(Mailcheck.defaultTopLevelDomains=Mailcheck.defaultTopLevelDomains.concat(everest_forms_params.mailcheck_toplevel_domains)),f(document).on("blur",".evf-field-email input",function(){var e=f(this),i=e.attr("id");e.mailcheck({suggested:function(e,t){f("#"+i+"_suggestion").remove();t=everest_forms_params.i18n_messages_email_suggestion.replace("{suggestion}",'<a href="#" class="mailcheck-suggestion" data-id="'+i+'" title="'+everest_forms_params.i18n_messages_email_suggestion_title+'">'+t.full+"</a>");(e.parents("span.input-wrapper").length?f(e).parents("span.input-wrapper"):f(e)).after('<label class="evf-error mailcheck-error" id="'+i+'_suggestion">'+t+"</label>")},empty:function(){f("#"+i+"_suggestion").remove()}})}),f(document).on("click",".evf-field-email .mailcheck-suggestion",function(e){var t=f(this),i=t.attr("data-id");e.preventDefault(),f("#"+i).val(t.text()),t.parent().remove()}))},init_datepicker:function(){0<f(".evf-field-date-time").length&&f(".flatpickr-field").each(function(){var e,t=5,i=f(this).data(),a=[];switch(i.disableDates&&(a=i.disableDates.split(",")),e=i.pastDisableDate||"",i.dateTime){case"date":f(this).flatpickr({disableMobile:!0,mode:i.mode,minDate:i.minDate||e,maxDate:i.maxDate,dateFormat:i.dateFormat,disable:a});break;case"time":undefined!==i.timeInterval&&(t=parseInt(i.timeInterval,10)),f(this).flatpickr({enableTime:!0,noCalendar:!0,minuteIncrement:t,dateFormat:i.dateFormat,disableMobile:!0,time_24hr:i.dateFormat.includes("H:i")});break;case"date-time":undefined!==i.timeInterval&&(t=parseInt(i.timeInterval,10)),f(this).flatpickr({enableTime:!0,noCalendar:!1,disableMobile:!0,mode:i.mode,minDate:i.minDate||e,maxDate:i.maxDate,minuteIncrement:t,dateFormat:i.dateFormat,time_24hr:i.dateFormat.includes("H:i"),disable:a})}})},init_datedropdown:function(){f(".date-dropdown-field").each(function(){var e=f(this);e.hide(),l.change_minutes(e)}),f("body").on("change",".date-time-container [id*=hour-select]",function(){var e=f(this).siblings("input.date-dropdown-field");l.change_minutes(e)}),f("body").on("change",".date-time-container [id*=-select]",function(){var e=f(this).siblings("input.date-dropdown-field");e.val(l.format_dropdown_date(e))})},change_minutes:function(e){var t=e.attr("id");if(void 0!==e.siblings("#minute-select-"+t).attr("id")){for(var i=e.attr("data-max-hour"),a=e.attr("data-min-hour"),s=e.attr("data-max-minute"),r=e.attr("data-min-minute"),n=(void 0!==a&&""!=a||(a=0),void 0!==i&&""!=i||(a=23),void 0!==r&&""!=r||(r=0),void 0!==s&&""!=s||(s=59),""),d=0;d<=59;d++)if(!(e.siblings("#hour-select-"+t).val()==a&&d<r)){if(e.siblings("#hour-select-"+t).val()==i&&s<d)break;n+='<option value = "'+d+'"> '+(d<10?"0"+d:d)+"</option>"}e.siblings("#minute-select-"+t).html(n),e.siblings("#minute-select-"+t).attr("value",e.siblings("#minute-select-"+t).find("option:first").val())}e.val(l.format_dropdown_date(e))},format_dropdown_date:function(e){var t=e.attr("id"),t={selected_year:e.siblings("#year-select-"+t).val(),selected_month:e.siblings("#month-select-"+t).val(),selected_day:e.siblings("#day-select-"+t).val(),selected_hour:e.siblings("#hour-select-"+t).val(),selected_minute:e.siblings("#minute-select-"+t).val()},e={date_format:e.attr("data-date-format"),date_time:e.attr("data-date-time")},i="";return"date"!=e.date_time&&"date-time"!=e.date_time||(t.selected_day=t.selected_day<10?"0"+t.selected_day:t.selected_day,i=e.date_format.match(/F j, Y/)?["January","Febuary","March","April","May","June","July","August","September","October","November","December"][parseInt(t.selected_month)-1]+" "+t.selected_day+", "+t.selected_year:(t.selected_month=t.selected_month<10?"0"+t.selected_month:t.selected_month,e.date_format.match(/Y-m-d/)?t.selected_year+"-"+t.selected_month+"-"+t.selected_day:e.date_format.match(/m\/d\/Y/)?t.selected_month+"/"+t.selected_day+"/"+t.selected_year:t.selected_day+"/"+t.selected_month+"/"+t.selected_year)),"time"!=e.date_time&&"date-time"!=e.date_time||(t.selected_minute=t.selected_minute<10?"0"+t.selected_minute:t.selected_minute,e.date_format.match(/H:i/)?(t.selected_hour=t.selected_hour<10?"0"+t.selected_hour:t.selected_hour,i+=" "+t.selected_hour+":"+t.selected_minute):(e="PM",t.selected_hour<12?(e="AM",0==t.selected_hour&&(t.selected_hour=12)):12<t.selected_hour&&(t.selected_hour=t.selected_hour-12),i+=" "+t.selected_hour+":"+t.selected_minute+" "+e)),i.trim()},load_validation:function(){if("undefined"==typeof f.fn.validate)return!1;f(".evf-field-url input[type=url]").on("change",function(){var e=f(this).val();if(!e)return!1;"http://"!==e.substr(0,7)&&"https://"!==e.substr(0,8)&&f(this).val("http://"+e)}),f.extend(f.validator.messages,{required:everest_forms_params.i18n_messages_required,url:everest_forms_params.i18n_messages_url,email:everest_forms_params.i18n_messages_email,number:everest_forms_params.i18n_messages_number}),f.validator.methods.email=function(e,t){var i=new RegExp(/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i);return this.optional(t)||i.test(e)},f.validator.addMethod("confirm",function(e,t,i){return f.validator.methods.equalTo.call(this,e,t,i)},everest_forms_params.i18n_messages_confirm),f.validator.addMethod("check-limit",function(e,t){var t=f(t).closest("ul"),i=t.find('input[type="checkbox"]:checked'),t=parseInt(t.attr("data-choice-limit")||0,10);return 0===t||i.length<=t},function(e,t){t=parseInt(f(t).closest("ul").attr("data-choice-limit")||0,10);return everest_forms_params.i18n_messages_check_limit.replace("{#}",t)}),this.$everest_form.each(function(){var e=f(this),u={};f(".evf-field").each(function(){var e=f(this).closest("form").data("formid"),t=f(this).data("field-id"),i=f(this).data("required-field-message"),a="everest_forms[form_fields]["+t+"]";if(f(this).is(".evf-field-payment-single"))f(this).find(".evf-payment-price").is(".evf-payment-user-input")||(f(this).find(".evf-payment-price").attr("required",!1),i=null);else if(f(this).is(".evf-field-checkbox, .evf-field-payment-checkbox"))a+="[]";else if(f(this).is(".evf-field-image-upload"))a="evf_"+e+"_"+t;else if(f(this).is(".evf-field-signature"))a="everest_forms[form_fields]["+t+"][signature_image]";else if(f(this).is(".evf-field-phone"))a+="[phone_field]";else if(f(this).is(".evf-field-email")||f(this).is(".evf-field-password"))u[a="everest_forms[form_fields]["+t+"]"]={required:i},u[a="everest_forms[form_fields]["+t+"][primary]"]={required:i},u[a="everest_forms[form_fields]["+t+"][secondary]"]={required:i},i=null;else if(f(this).is(".evf-field-address")){for(var s={address1:f(this).data("required-field-message-address1"),city:f(this).data("required-field-message-city"),state:f(this).data("required-field-message-state"),postal:f(this).data("required-field-message-postal"),country:f(this).data("required-field-message-country")},r=Object.keys(s),n=0;n<r.length;n++){var d=r[n],i=s[r[n]];u[a="everest_forms[form_fields]["+t+"]["+d+"]"]={required:i}}i=null}else if(f(this).is(".evf-field-likert")){var l=f(this).data("row-keys"),s={};if(l&&Array.isArray(l)){for(n=0;n<l.length;n++){var o=l[n];s[o]=f(this).data("required-field-message-"+o)}for(n=0;n<l.length;n++)i=s[l[n]],a="everest_forms[form_fields]["+t+"]["+l[n]+"]",u[a]={required:i}}i=null}else f(this).is(".evf-field-file-upload")&&(a="everest_forms_"+e+"_"+t);i&&(u[a]={required:i})}),e.validate({messages:u,ignore:"",errorClass:"evf-error",validClass:"evf-valid",errorPlacement:function(e,t){t.closest(".evf-field").is(".evf-field-privacy-policy")?t.closest(".evf-field").append(e):t.closest(".evf-field").is(".evf-field-range-slider")?t.closest(".evf-field").find(".evf-field-description").length?t.closest(".evf-field").find(".evf-field-description").before(e):t.closest(".evf-field").append(e):t.closest(".evf-field").is(".evf-field-scale-rating")?t.closest(".evf-field").find(".everest-forms-field-scale-rating").after(e):"radio"===t.attr("type")||"checkbox"===t.attr("type")?t.hasClass("everest-forms-likert-field-option")?t.closest("tr").children("th").append(e):(t.closest(".evf-field-checkbox").find("label.evf-error").remove(),t.parent().parent().parent().append(e)):t.is("select")&&t.attr("class").match(/date-month|date-day|date-year/)?0===t.parent().find("label.evf-error:visible").length&&t.parent().find("select:last").after(e):t.is("select")&&t.hasClass("evf-enhanced-select")?0===t.parent().find("label.evf-error:visible").length&&t.parent().find(".select2").after(e):t.hasClass("evf-smart-phone-field")||t.hasClass("everest-forms-field-password-primary")||t.hasClass("everest-forms-field-password-secondary")?(t.parents("span.input-wrapper").length?t.parents("span.input-wrapper"):t.parent()).after(e):t.parents("span.input-wrapper").length?t.parents("span.input-wrapper").after(e):e.insertAfter(t)},highlight:function(e,t,i){var e=f(e),a=e.closest(".form-row"),s=e.attr("name");("radio"===e.attr("type")||"checkbox"===e.attr("type")?a.find('input[name="'+s+'"]'):e).addClass(t).removeClass(i),a.removeClass("everest-forms-validated").addClass("everest-forms-invalid evf-has-error")},unhighlight:function(e,t,i){var e=f(e),a=e.closest(".form-row"),s=e.attr("name");("radio"===e.attr("type")||"checkbox"===e.attr("type")?a.find('input[name="'+s+'"]'):e).addClass(i).removeClass(t),a.removeClass("evf-has-error")},submitHandler:function(e){var t=f(e),i=t.find(".evf-submit"),a=i.data("process-text"),s=i.get(0).recaptchaID,r=t.find("[data-gateway='razorpay']");if(a&&i.text(a).prop("disabled",!0),0===s)return grecaptcha.execute(s),!1;0<r.length||1!==t.data("ajax_submission")&&e.submit()},onkeyup:function(e,t){f(e).hasClass("everest-forms-novalidate-onkeyup")||9===t.which&&""===this.elementValue(e)||-1!==f.inArray(t.keyCode,[16,17,18,20,35,36,37,38,39,40,45,144,225])||(e.name in this.submitted||e.name in this.invalid)&&this.element(e)},onfocusout:function(e){var t=!1;f(e).hasClass("everest-forms-novalidate-onkeyup")&&!e.value&&(t=!0),(t=this.checkable(e)||!(e.name in this.submitted)&&this.optional(e)?t:!0)&&this.element(e)},onclick:function(e){var t=!1,i=(e||{}).type,a=f(e);"checkbox"===i?(a.closest(".evf-field-checkbox").find("label.evf-error").remove(),t=!0):!1===i&&f(e).valid(),t&&this.element(e)}})})},validate_field:function(e){var t=f(this),i=f("body"),a=t.closest(".form-row"),s=!0,r=a.is(".validate-required"),n=a.is(".validate-email"),e=e.type;i.hasClass("everest-forms-is-offline")?a.removeClass("everest-forms-invalid everest-forms-invalid-required-field everest-forms-invalid-email everest-forms-validated"):a.hasClass("evf-field-address")||a.hasClass("evf-field-payment-single")||f("body").hasClass("everest-forms-is-offline")?0===a.find("input.evf-error").length&&a.removeClass("everest-forms-invalid everest-forms-invalid-required-field everest-forms-invalid-email").addClass("everest-forms-validated"):("input"===e&&a.removeClass("everest-forms-invalid everest-forms-invalid-required-field everest-forms-invalid-email everest-forms-validated"),"validate"!==e&&"change"!==e||(r&&(t.hasClass("everest-forms-likert-field-option")?0<a.find("input.evf-error").length&&(a.removeClass("everest-forms-validated").addClass("everest-forms-invalid everest-forms-invalid-required-field"),s=!1):("checkbox"===t.attr("type")&&0===a.find("input:checked").length||""===t.val())&&(a.removeClass("everest-forms-validated").addClass("everest-forms-invalid everest-forms-invalid-required-field"),s=!1)),n&&t.val()&&!new RegExp(/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i).test(t.val())&&(a.removeClass("everest-forms-validated").addClass("everest-forms-invalid everest-forms-invalid-email"),s=!1),s&&a.removeClass("everest-forms-invalid everest-forms-invalid-required-field everest-forms-invalid-email").addClass("everest-forms-validated")))},submission_scroll:function(){f("div.everest-forms-submission-scroll").length&&f("html,body").animate({scrollTop:f("div.everest-forms-submission-scroll").offset().top-100},1e3)},randomize_elements:function(){f(".everest-forms-randomize").each(function(){for(var e=f(this),t=e.children();t.length;)e.append(t.splice(Math.floor(Math.random()*t.length),1)[0])})},init_enhanced_select:function(){try{f(document.body).on("evf-frontend-enhanced-select-init",function(){"undefined"!=typeof f.fn.selectWoo&&f("select.evf-enhanced-select:visible").filter(":not(.evf-enhanced)").each(function(){var e=f.extend({minimumResultsForSearch:10,placeholder:f(this).attr("placeholder")||"",allowClear:!f(this).prop("multiple")},{language:{noResults:function(){return everest_forms_params.i18n_no_matches}}});f(this).selectWoo(e).addClass("evf-enhanced")})}).trigger("evf-frontend-enhanced-select-init")}catch(e){window.console.log(e)}},checkUncheckAllcheckbox:function(){var e=f("form.everest-form").find(".evf-field, .evf-field-checkbox, .form-row").find("ul").find("li.evf-select-all-checkbox-li").find("#evfCheckAll");e.length&&e.each(function(){var i=f(this);i.on("click",function(){1==f(this).prop("checked")?i.parent().parent().find("li").find("input:checkbox").not(i).prop("checked",!0):0==f(this).prop("checked")&&i.parent().parent().find("li").find("input:checkbox").not(i).prop("checked",!1)}),i.parent().parent().find("li").find("input:checkbox").not(i).on("change",function(){var e=i.parent().parent().find("li").find("input:checkbox:checked").not(i).length,t=i.parent().parent().find("li").find("input:checkbox").not(i).length;e===t?i.prop("checked",!0):e<t&&i.prop("checked",!1)})})},validateMinimumWordLength:function(){Array.prototype.slice.call(document.querySelectorAll(".everest-forms-min-words-length-enabled")).map(function(e){var t=parseInt(e.dataset.textMinLength,10)||0;jQuery.validator.addMethod("minWordLength",function(e,t,i){return e.trim().split(/\s+/).length>=i[0]}),jQuery("#"+e.id).each(function(){jQuery(this).rules("add",{minWordLength:[t]})})})}};l.init()});
1
+ jQuery(function(f){"use strict";if("undefined"==typeof everest_forms_params)return!1;var l={$everest_form:f("form.everest-form"),init:function(){this.init_inputMask(),this.init_mailcheck(),this.init_datepicker(),this.init_datedropdown(),this.load_validation(),this.submission_scroll(),this.randomize_elements(),this.init_enhanced_select(),this.checkUncheckAllcheckbox(),this.validateMinimumWordLength(),this.$everest_form.on("input validate change",".input-text, select, input:checkbox, input:radio",this.validate_field),f(document.body).trigger("everest_forms_loaded")},init_inputMask:function(){"undefined"!=typeof f.fn.inputmask&&f(".evf-masked-input").inputmask()},init_mailcheck:function(){"undefined"!=typeof f.fn.mailcheck&&everest_forms_params.mailcheck_enabled&&(0<everest_forms_params.mailcheck_domains.length&&(Mailcheck.defaultDomains=Mailcheck.defaultDomains.concat(everest_forms_params.mailcheck_domains)),0<everest_forms_params.mailcheck_toplevel_domains.length&&(Mailcheck.defaultTopLevelDomains=Mailcheck.defaultTopLevelDomains.concat(everest_forms_params.mailcheck_toplevel_domains)),f(document).on("blur",".evf-field-email input",function(){var e=f(this),i=e.attr("id");e.mailcheck({suggested:function(e,t){f("#"+i+"_suggestion").remove();t=everest_forms_params.i18n_messages_email_suggestion.replace("{suggestion}",'<a href="#" class="mailcheck-suggestion" data-id="'+i+'" title="'+everest_forms_params.i18n_messages_email_suggestion_title+'">'+t.full+"</a>");(e.parents("span.input-wrapper").length?f(e).parents("span.input-wrapper"):f(e)).after('<label class="evf-error mailcheck-error" id="'+i+'_suggestion">'+t+"</label>")},empty:function(){f("#"+i+"_suggestion").remove()}})}),f(document).on("click",".evf-field-email .mailcheck-suggestion",function(e){var t=f(this),i=t.attr("data-id");e.preventDefault(),f("#"+i).val(t.text()),t.parent().remove()}))},init_datepicker:function(){0<f(".evf-field-date-time").length&&f(".flatpickr-field").each(function(){var e,t=5,i=f(this).data(),a=[];switch(i.disableDates&&(a=i.disableDates.split(",")),e=i.pastDisableDate||"",i.dateTime){case"date":f(this).flatpickr({disableMobile:!0,mode:i.mode,minDate:i.minDate||e,maxDate:i.maxDate,dateFormat:i.dateFormat,disable:a});break;case"time":undefined!==i.timeInterval&&(t=parseInt(i.timeInterval,10)),f(this).flatpickr({enableTime:!0,noCalendar:!0,minuteIncrement:t,dateFormat:i.dateFormat,disableMobile:!0,time_24hr:i.dateFormat.includes("H:i")});break;case"date-time":undefined!==i.timeInterval&&(t=parseInt(i.timeInterval,10)),f(this).flatpickr({enableTime:!0,noCalendar:!1,disableMobile:!0,mode:i.mode,minDate:i.minDate||e,maxDate:i.maxDate,minuteIncrement:t,dateFormat:i.dateFormat,time_24hr:i.dateFormat.includes("H:i"),disable:a})}})},init_datedropdown:function(){f(".date-dropdown-field").each(function(){var e=f(this);e.hide(),l.change_minutes(e)}),f("body").on("change",".date-time-container [id*=hour-select]",function(){var e=f(this).siblings("input.date-dropdown-field");l.change_minutes(e)}),f("body").on("change",".date-time-container [id*=-select]",function(){var e=f(this).siblings("input.date-dropdown-field");e.val(l.format_dropdown_date(e))})},change_minutes:function(e){var t=e.attr("id");if(void 0!==e.siblings("#minute-select-"+t).attr("id")){for(var i=e.attr("data-max-hour"),a=e.attr("data-min-hour"),s=e.attr("data-max-minute"),r=e.attr("data-min-minute"),n=(void 0!==a&&""!=a||(a=0),void 0!==i&&""!=i||(a=23),void 0!==r&&""!=r||(r=0),void 0!==s&&""!=s||(s=59),""),d=0;d<=59;d++)if(!(e.siblings("#hour-select-"+t).val()==a&&d<r)){if(e.siblings("#hour-select-"+t).val()==i&&s<d)break;n+='<option value = "'+d+'"> '+(d<10?"0"+d:d)+"</option>"}e.siblings("#minute-select-"+t).html(n),e.siblings("#minute-select-"+t).attr("value",e.siblings("#minute-select-"+t).find("option:first").val())}e.val(l.format_dropdown_date(e))},format_dropdown_date:function(e){var t=e.attr("id"),t={selected_year:e.siblings("#year-select-"+t).val(),selected_month:e.siblings("#month-select-"+t).val(),selected_day:e.siblings("#day-select-"+t).val(),selected_hour:e.siblings("#hour-select-"+t).val(),selected_minute:e.siblings("#minute-select-"+t).val()},e={date_format:e.attr("data-date-format"),date_time:e.attr("data-date-time")},i="";return"date"!=e.date_time&&"date-time"!=e.date_time||(t.selected_day=t.selected_day<10?"0"+t.selected_day:t.selected_day,i=e.date_format.match(/F j, Y/)?["January","Febuary","March","April","May","June","July","August","September","October","November","December"][parseInt(t.selected_month)-1]+" "+t.selected_day+", "+t.selected_year:(t.selected_month=t.selected_month<10?"0"+t.selected_month:t.selected_month,e.date_format.match(/Y-m-d/)?t.selected_year+"-"+t.selected_month+"-"+t.selected_day:e.date_format.match(/m\/d\/Y/)?t.selected_month+"/"+t.selected_day+"/"+t.selected_year:t.selected_day+"/"+t.selected_month+"/"+t.selected_year)),"time"!=e.date_time&&"date-time"!=e.date_time||(t.selected_minute=t.selected_minute<10?"0"+t.selected_minute:t.selected_minute,e.date_format.match(/H:i/)?(t.selected_hour=t.selected_hour<10?"0"+t.selected_hour:t.selected_hour,i+=" "+t.selected_hour+":"+t.selected_minute):(e="PM",t.selected_hour<12?(e="AM",0==t.selected_hour&&(t.selected_hour=12)):12<t.selected_hour&&(t.selected_hour=t.selected_hour-12),i+=" "+t.selected_hour+":"+t.selected_minute+" "+e)),i.trim()},load_validation:function(){if("undefined"==typeof f.fn.validate)return!1;f(".evf-field-url input[type=url]").on("change",function(){var e=f(this).val();if(!e)return!1;"http://"!==e.substr(0,7)&&"https://"!==e.substr(0,8)&&f(this).val("http://"+e)}),f.extend(f.validator.messages,{required:everest_forms_params.i18n_messages_required,url:everest_forms_params.i18n_messages_url,email:everest_forms_params.i18n_messages_email,number:everest_forms_params.i18n_messages_number}),f.validator.methods.email=function(e,t){var i=new RegExp(/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i);return this.optional(t)||i.test(e)},f.validator.addMethod("confirm",function(e,t,i){return f.validator.methods.equalTo.call(this,e,t,i)},everest_forms_params.i18n_messages_confirm),f.validator.addMethod("check-limit",function(e,t){var t=f(t).closest("ul"),i=t.find('input[type="checkbox"]:checked'),t=parseInt(t.attr("data-choice-limit")||0,10);return 0===t||i.length<=t},function(e,t){t=parseInt(f(t).closest("ul").attr("data-choice-limit")||0,10);return everest_forms_params.i18n_messages_check_limit.replace("{#}",t)}),this.$everest_form.each(function(){var e=f(this),u={};f(".evf-field").each(function(){var e=f(this).closest("form").data("formid"),t=f(this).data("field-id"),i=f(this).data("required-field-message"),a="everest_forms[form_fields]["+t+"]";if(f(this).is(".evf-field-payment-single"))f(this).find(".evf-payment-price").is(".evf-payment-user-input")||(f(this).find(".evf-payment-price").attr("required",!1),i=null);else if(f(this).is(".evf-field-checkbox, .evf-field-payment-checkbox"))a+="[]";else if(f(this).is(".evf-field-image-upload"))a="evf_"+e+"_"+t;else if(f(this).is(".evf-field-signature"))a="everest_forms[form_fields]["+t+"][signature_image]";else if(f(this).is(".evf-field-phone"))a+="[phone_field]";else if(f(this).is(".evf-field-email")||f(this).is(".evf-field-password"))u[a="everest_forms[form_fields]["+t+"]"]={required:i},u[a="everest_forms[form_fields]["+t+"][primary]"]={required:i},u[a="everest_forms[form_fields]["+t+"][secondary]"]={required:i},i=null;else if(f(this).is(".evf-field-address")){for(var s={address1:f(this).data("required-field-message-address1"),city:f(this).data("required-field-message-city"),state:f(this).data("required-field-message-state"),postal:f(this).data("required-field-message-postal"),country:f(this).data("required-field-message-country")},r=Object.keys(s),n=0;n<r.length;n++){var d=r[n],i=s[r[n]];u[a="everest_forms[form_fields]["+t+"]["+d+"]"]={required:i}}i=null}else if(f(this).is(".evf-field-likert")){var l=f(this).data("row-keys"),s={};if(l&&Array.isArray(l)){for(n=0;n<l.length;n++){var o=l[n];s[o]=f(this).data("required-field-message-"+o)}for(n=0;n<l.length;n++)i=s[l[n]],a="everest_forms[form_fields]["+t+"]["+l[n]+"]",u[a]={required:i}}i=null}else f(this).is(".evf-field-file-upload")&&(a="everest_forms_"+e+"_"+t);i&&(u[a]={required:i})}),e.validate({messages:u,ignore:"",errorClass:"evf-error",validClass:"evf-valid",errorPlacement:function(e,t){t.closest(".evf-field").is(".evf-field-privacy-policy")?t.closest(".evf-field").append(e):t.closest(".evf-field").is(".evf-field-range-slider")?t.closest(".evf-field").find(".evf-field-description").length?t.closest(".evf-field").find(".evf-field-description").before(e):t.closest(".evf-field").append(e):t.closest(".evf-field").is(".evf-field-scale-rating")?t.closest(".evf-field").find(".everest-forms-field-scale-rating").after(e):"radio"===t.attr("type")||"checkbox"===t.attr("type")?t.hasClass("everest-forms-likert-field-option")?t.closest("tr").children("th").append(e):(t.closest(".evf-field-checkbox").find("label.evf-error").remove(),t.parent().parent().parent().append(e)):t.is("select")&&t.attr("class").match(/date-month|date-day|date-year/)?0===t.parent().find("label.evf-error:visible").length&&t.parent().find("select:last").after(e):t.is("select")&&t.hasClass("evf-enhanced-select")?0===t.parent().find("label.evf-error:visible").length&&t.parent().find(".select2").after(e):t.hasClass("evf-smart-phone-field")||t.hasClass("everest-forms-field-password-primary")||t.hasClass("everest-forms-field-password-secondary")?(t.parents("span.input-wrapper").length?t.parents("span.input-wrapper"):t.parent()).after(e):t.parents("span.input-wrapper").length?t.parents("span.input-wrapper").after(e):e.insertAfter(t)},highlight:function(e,t,i){var e=f(e),a=e.closest(".form-row"),s=e.attr("name");("radio"===e.attr("type")||"checkbox"===e.attr("type")?a.find('input[name="'+s+'"]'):e).addClass(t).removeClass(i),a.removeClass("everest-forms-validated").addClass("everest-forms-invalid evf-has-error")},unhighlight:function(e,t,i){var e=f(e),a=e.closest(".form-row"),s=e.attr("name");("radio"===e.attr("type")||"checkbox"===e.attr("type")?a.find('input[name="'+s+'"]'):e).addClass(i).removeClass(t),a.removeClass("evf-has-error")},submitHandler:function(e){var t=f(e),i=t.find(".evf-submit"),a=i.data("process-text"),s=i.get(0).recaptchaID,r=t.find("[data-gateway='razorpay']");if(a&&i.text(a).prop("disabled",!0),0===s)return grecaptcha.execute(s),!1;0<r.length||1!==t.data("ajax_submission")&&e.submit()},onkeyup:function(e,t){f(e).hasClass("everest-forms-novalidate-onkeyup")||9===t.which&&""===this.elementValue(e)||-1!==f.inArray(t.keyCode,[16,17,18,20,35,36,37,38,39,40,45,144,225])||(e.name in this.submitted||e.name in this.invalid)&&this.element(e)},onfocusout:function(e){var t=!1;f(e).hasClass("everest-forms-novalidate-onkeyup")&&!e.value&&(t=!0),(t=this.checkable(e)||!(e.name in this.submitted)&&this.optional(e)?t:!0)&&this.element(e)},onclick:function(e){var t=!1,i=(e||{}).type,a=f(e);"checkbox"===i?(a.closest(".evf-field-checkbox").find("label.evf-error").remove(),t=!0):!1===i&&f(e).valid(),t&&this.element(e)}})})},validate_field:function(e){var t=f(this),i=f("body"),a=t.closest(".form-row"),s=!0,r=a.is(".validate-required"),n=a.is(".validate-email"),e=e.type;i.hasClass("everest-forms-is-offline")?a.removeClass("everest-forms-invalid everest-forms-invalid-required-field everest-forms-invalid-email everest-forms-validated"):a.hasClass("evf-field-address")||a.hasClass("evf-field-payment-single")||f("body").hasClass("everest-forms-is-offline")?0===a.find("input.evf-error").length&&a.removeClass("everest-forms-invalid everest-forms-invalid-required-field everest-forms-invalid-email").addClass("everest-forms-validated"):("input"===e&&a.removeClass("everest-forms-invalid everest-forms-invalid-required-field everest-forms-invalid-email everest-forms-validated"),"validate"!==e&&"change"!==e||(r&&(t.hasClass("everest-forms-likert-field-option")?0<a.find("input.evf-error").length&&(a.removeClass("everest-forms-validated").addClass("everest-forms-invalid everest-forms-invalid-required-field"),s=!1):("checkbox"===t.attr("type")&&0===a.find("input:checked").length||""===t.val())&&(a.removeClass("everest-forms-validated").addClass("everest-forms-invalid everest-forms-invalid-required-field"),s=!1)),n&&t.val()&&!new RegExp(/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i).test(t.val())&&(a.removeClass("everest-forms-validated").addClass("everest-forms-invalid everest-forms-invalid-email"),s=!1),s&&a.removeClass("everest-forms-invalid everest-forms-invalid-required-field everest-forms-invalid-email").addClass("everest-forms-validated")))},submission_scroll:function(){f("div.everest-forms-submission-scroll").length&&f("html,body").animate({scrollTop:f("div.everest-forms-submission-scroll").offset().top-100},1e3)},randomize_elements:function(){f(".everest-forms-randomize").each(function(){for(var e=f(this),t=e.children();t.length;)e.append(t.splice(Math.floor(Math.random()*t.length),1)[0])})},init_enhanced_select:function(){try{f(document.body).on("evf-frontend-enhanced-select-init",function(){"undefined"!=typeof f.fn.selectWoo&&f("select.evf-enhanced-select:visible").filter(":not(.evf-enhanced)").each(function(){var e=f.extend({minimumResultsForSearch:10<f(this).find("option").length?10:null,placeholder:f(this).attr("placeholder")||"",allowClear:!f(this).prop("multiple")},{language:{noResults:function(){return everest_forms_params.i18n_no_matches}}});f(this).selectWoo(e).addClass("evf-enhanced")})}).trigger("evf-frontend-enhanced-select-init")}catch(e){window.console.log(e)}},checkUncheckAllcheckbox:function(){var e=f("form.everest-form").find(".evf-field, .evf-field-checkbox, .form-row").find("ul").find("li.evf-select-all-checkbox-li").find("#evfCheckAll");e.length&&e.each(function(){var i=f(this);i.on("click",function(){1==f(this).prop("checked")?i.parent().parent().find("li").find("input:checkbox").not(i).prop("checked",!0):0==f(this).prop("checked")&&i.parent().parent().find("li").find("input:checkbox").not(i).prop("checked",!1)}),i.parent().parent().find("li").find("input:checkbox").not(i).on("change",function(){var e=i.parent().parent().find("li").find("input:checkbox:checked").not(i).length,t=i.parent().parent().find("li").find("input:checkbox").not(i).length;e===t?i.prop("checked",!0):e<t&&i.prop("checked",!1)})})},validateMinimumWordLength:function(){Array.prototype.slice.call(document.querySelectorAll(".everest-forms-min-words-length-enabled")).map(function(e){var t=parseInt(e.dataset.textMinLength,10)||0;jQuery.validator.addMethod("minWordLength",function(e,t,i){return e.trim().split(/\s+/).length>=i[0]}),jQuery("#"+e.id).each(function(){jQuery(this).rules("add",{minWordLength:[t]})})})}};l.init()});
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.9.0.1
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.9.1
7
  * Author: WPEverest
8
  * Author URI: https://wpeverest.com
9
  * Text Domain: everest-forms
includes/admin/builder/class-evf-builder-fields.php CHANGED
@@ -256,6 +256,9 @@ class EVF_Builder_Fields extends EVF_Builder_Page {
256
  echo '<div class="evf-duplicate-row"><span class="dashicons dashicons-media-default" title="Duplicate Row"></span></div>';
257
  echo '<div class="evf-delete-row"><span class="dashicons dashicons-trash" title="Delete Row"></span></div>';
258
  echo '<div class="evf-show-grid"><span class="dashicons dashicons-edit" title="Edit"></span></div>';
 
 
 
259
  }
260
  echo '<div class="evf-toggle-row-content">';
261
  echo '<span>' . esc_html__( 'Row Settings', 'everest-forms' ) . '</span>';
256
  echo '<div class="evf-duplicate-row"><span class="dashicons dashicons-media-default" title="Duplicate Row"></span></div>';
257
  echo '<div class="evf-delete-row"><span class="dashicons dashicons-trash" title="Delete Row"></span></div>';
258
  echo '<div class="evf-show-grid"><span class="dashicons dashicons-edit" title="Edit"></span></div>';
259
+ if ( defined( 'EFP_VERSION' ) ) {
260
+ echo '<div class="evf-row-setting"><span class="dashicons dashicons-admin-settings" title="Row Setting"></span></div>';
261
+ }
262
  }
263
  echo '<div class="evf-toggle-row-content">';
264
  echo '<span>' . esc_html__( 'Row Settings', 'everest-forms' ) . '</span>';
includes/admin/class-evf-admin-assets.php CHANGED
@@ -133,6 +133,7 @@ class EVF_Admin_Assets {
133
  'ajax_url' => admin_url( 'admin-ajax.php' ),
134
  'tab' => isset( $_GET['tab'] ) ? sanitize_text_field( wp_unslash( $_GET['tab'] ) ) : '', // phpcs:ignore WordPress.Security.NonceVerification.
135
  'evf_field_drop_nonce' => wp_create_nonce( 'everest_forms_field_drop' ),
 
136
  'evf_save_form' => wp_create_nonce( 'everest_forms_save_form' ),
137
  'evf_get_next_id' => wp_create_nonce( 'everest_forms_get_next_id' ),
138
  'evf_enabled_form' => wp_create_nonce( 'everest_forms_enabled_form' ),
133
  'ajax_url' => admin_url( 'admin-ajax.php' ),
134
  'tab' => isset( $_GET['tab'] ) ? sanitize_text_field( wp_unslash( $_GET['tab'] ) ) : '', // phpcs:ignore WordPress.Security.NonceVerification.
135
  'evf_field_drop_nonce' => wp_create_nonce( 'everest_forms_field_drop' ),
136
+ 'evf_add_row_nonce' => wp_create_nonce( 'everest_forms_add_row' ),
137
  'evf_save_form' => wp_create_nonce( 'everest_forms_save_form' ),
138
  'evf_get_next_id' => wp_create_nonce( 'everest_forms_get_next_id' ),
139
  'evf_enabled_form' => wp_create_nonce( 'everest_forms_enabled_form' ),
includes/class-everest-forms.php CHANGED
@@ -21,7 +21,7 @@ final class EverestForms {
21
  *
22
  * @var string
23
  */
24
- public $version = '1.9.0.1';
25
 
26
  /**
27
  * The single instance of the class.
21
  *
22
  * @var string
23
  */
24
+ public $version = '1.9.1';
25
 
26
  /**
27
  * The single instance of the class.
includes/class-evf-forms-features.php CHANGED
@@ -54,6 +54,7 @@ class EVF_Forms_Features {
54
  'EVF_Field_Rating',
55
  'EVF_Field_Likert',
56
  'EVF_Field_Scale_Rating',
 
57
  );
58
 
59
  return array_merge( $fields, $pro_fields );
54
  'EVF_Field_Rating',
55
  'EVF_Field_Likert',
56
  'EVF_Field_Scale_Rating',
57
+ 'EVF_Field_Yes_No',
58
  );
59
 
60
  return array_merge( $fields, $pro_fields );
includes/fields/class-evf-field-yes-no.php ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Yes/No field
4
+ *
5
+ * @package EverestForms\Fields
6
+ * @since 1.4.3
7
+ */
8
+
9
+ defined( 'ABSPATH' ) || exit;
10
+
11
+ /**
12
+ * EVF_Field_Yes_No Class.
13
+ */
14
+ class EVF_Field_Yes_No extends EVF_Form_Fields {
15
+
16
+ /**
17
+ * Constructor.
18
+ */
19
+ public function __construct() {
20
+ $this->name = esc_html__( 'Yes/No', 'everest-forms' );
21
+ $this->type = 'yes-no';
22
+ $this->icon = 'evf-icon evf-icon-yes-no';
23
+ $this->order = 15;
24
+ $this->group = 'survey';
25
+ $this->is_pro = true;
26
+
27
+ parent::__construct();
28
+ }
29
+ }
includes/shortcodes/class-evf-shortcode-form.php CHANGED
@@ -382,7 +382,13 @@ class EVF_Shortcode_Form {
382
  */
383
  do_action( 'everest_forms_display_row_before', $row_key, $form_data );
384
 
385
- echo '<div class="evf-frontend-row" data-row="' . esc_attr( $row_key ) . '"' . esc_attr( $is_repeater ) . '>'; // @codingStandardsIgnoreLine
 
 
 
 
 
 
386
 
387
  foreach ( $row as $grid_key => $grid ) {
388
  $number_of_grid = count( $row );
382
  */
383
  do_action( 'everest_forms_display_row_before', $row_key, $form_data );
384
 
385
+ $conditions = array();
386
+
387
+ if ( ! empty( $form_data['settings']['form_rows'][ 'connection_' . $row_key ] ) && ! empty( $form_data['settings']['form_rows'][ 'connection_' . $row_key ]['conditional_logic_status'] ) ) {
388
+ $conditions = ! empty( $form_data['settings']['form_rows'][ 'connection_' . $row_key ] ) ? $form_data['settings']['form_rows'][ 'connection_' . $row_key ] : array();
389
+ }
390
+
391
+ echo '<div class="evf-frontend-row" data-row="' . esc_attr( $row_key ) . '"' . esc_attr( $is_repeater ) . ' conditional_rules="' . ( isset( $conditions ) ? esc_attr( wp_json_encode( $conditions ) ) : '' ) . '">'; // @codingStandardsIgnoreLine
392
 
393
  foreach ( $row as $grid_key => $grid ) {
394
  $number_of_grid = count( $row );
languages/everest-forms.pot CHANGED
@@ -2,14 +2,14 @@
2
  # This file is distributed under the same license as the Everest Forms plugin.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Everest Forms 1.9.0.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/everest-forms\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "POT-Creation-Date: 2022-07-06T13:27:14+02:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.6.0\n"
15
  "X-Domain: everest-forms\n"
@@ -654,18 +654,18 @@ msgstr ""
654
 
655
  #: includes/abstracts/class-evf-form-fields.php:2049
656
  #: includes/abstracts/class-evf-form-fields.php:2053
657
- #: includes/admin/builder/class-evf-builder-fields.php:351
658
  msgid "Duplicate Field"
659
  msgstr ""
660
 
661
  #: includes/abstracts/class-evf-form-fields.php:2050
662
  #: includes/abstracts/class-evf-form-fields.php:2054
663
- #: includes/admin/builder/class-evf-builder-fields.php:352
664
  msgid "Delete Field"
665
  msgstr ""
666
 
667
  #: includes/abstracts/class-evf-form-fields.php:2051
668
- #: includes/admin/builder/class-evf-builder-fields.php:353
669
  #: includes/admin/builder/class-evf-builder-settings.php:25
670
  #: includes/admin/class-evf-admin-menus.php:162
671
  #: includes/class-evf-install.php:717
@@ -724,27 +724,27 @@ msgstr ""
724
  msgid "You don't have any fields yet."
725
  msgstr ""
726
 
727
- #: includes/admin/builder/class-evf-builder-fields.php:261
728
  msgid "Row Settings"
729
  msgstr ""
730
 
731
- #: includes/admin/builder/class-evf-builder-fields.php:262
732
  msgid "Select the type of row"
733
  msgstr ""
734
 
735
- #: includes/admin/builder/class-evf-builder-fields.php:324
736
  msgid "Add Row"
737
  msgstr ""
738
 
739
- #: includes/admin/builder/class-evf-builder-fields.php:327
740
  msgid "Add Repeater Row"
741
  msgstr ""
742
 
743
- #: includes/admin/builder/class-evf-builder-fields.php:355
744
  msgid "Duplicate Repeater"
745
  msgstr ""
746
 
747
- #: includes/admin/builder/class-evf-builder-fields.php:356
748
  msgid "Delete Repeater"
749
  msgstr ""
750
 
@@ -803,7 +803,7 @@ msgid "Form disabled message"
803
  msgstr ""
804
 
805
  #: includes/admin/builder/class-evf-builder-settings.php:158
806
- #: includes/shortcodes/class-evf-shortcode-form.php:877
807
  msgid "This form is disabled."
808
  msgstr ""
809
 
@@ -1135,232 +1135,232 @@ msgctxt "enhanced select"
1135
  msgid "Searching&hellip;"
1136
  msgstr ""
1137
 
1138
- #: includes/admin/class-evf-admin-assets.php:140
1139
  msgid "field"
1140
  msgstr ""
1141
 
1142
- #: includes/admin/class-evf-admin-assets.php:141
1143
- #: includes/admin/class-evf-admin-assets.php:220
1144
  msgid "OK"
1145
  msgstr ""
1146
 
1147
- #: includes/admin/class-evf-admin-assets.php:142
1148
  msgid "Installing"
1149
  msgstr ""
1150
 
1151
- #: includes/admin/class-evf-admin-assets.php:143
1152
  msgid "Activating"
1153
  msgstr ""
1154
 
1155
- #: includes/admin/class-evf-admin-assets.php:144
1156
  msgid "Install & Activate"
1157
  msgstr ""
1158
 
1159
- #: includes/admin/class-evf-admin-assets.php:145
1160
  msgid "Activate Plugins"
1161
  msgstr ""
1162
 
1163
- #: includes/admin/class-evf-admin-assets.php:146
1164
  msgid "(copy)"
1165
  msgstr ""
1166
 
1167
- #: includes/admin/class-evf-admin-assets.php:147
1168
  #: includes/admin/class-evf-admin-editor.php:62
1169
  msgid "Close"
1170
  msgstr ""
1171
 
1172
- #: includes/admin/class-evf-admin-assets.php:148
1173
- #: includes/admin/class-evf-admin-assets.php:223
1174
  #: includes/admin/class-evf-admin-editor.php:97
1175
  msgid "Cancel"
1176
  msgstr ""
1177
 
1178
- #: includes/admin/class-evf-admin-assets.php:149
1179
  msgid "Row Locked"
1180
  msgstr ""
1181
 
1182
- #: includes/admin/class-evf-admin-assets.php:150
1183
  msgid "Single row cannot be deleted."
1184
  msgstr ""
1185
 
1186
- #: includes/admin/class-evf-admin-assets.php:151
1187
  msgid "Field Locked"
1188
  msgstr ""
1189
 
1190
- #: includes/admin/class-evf-admin-assets.php:152
1191
  msgid "This field cannot be deleted or duplicated."
1192
  msgstr ""
1193
 
1194
- #: includes/admin/class-evf-admin-assets.php:153
1195
  msgid "This row cannot be deleted or duplicated."
1196
  msgstr ""
1197
 
1198
- #: includes/admin/class-evf-admin-assets.php:154
1199
  msgid "This item must contain at least one choice."
1200
  msgstr ""
1201
 
1202
- #: includes/admin/class-evf-admin-assets.php:155
1203
  msgid "Are you sure you want to delete this row?"
1204
  msgstr ""
1205
 
1206
- #: includes/admin/class-evf-admin-assets.php:156
1207
  msgid "Are you sure you want to delete this field?"
1208
  msgstr ""
1209
 
1210
- #: includes/admin/class-evf-admin-assets.php:157
1211
  msgid "Are you sure you want to duplicate this field?"
1212
  msgstr ""
1213
 
1214
- #: includes/admin/class-evf-admin-assets.php:158
1215
  msgid "Are you sure you want to duplicate this row?"
1216
  msgstr ""
1217
 
1218
- #: includes/admin/class-evf-admin-assets.php:159
1219
  msgid "Turn on Email settings to manage your email notification."
1220
  msgstr ""
1221
 
1222
- #: includes/admin/class-evf-admin-assets.php:160
1223
  msgid "Choose an image"
1224
  msgstr ""
1225
 
1226
- #: includes/admin/class-evf-admin-assets.php:161
1227
  msgid "Use Image"
1228
  msgstr ""
1229
 
1230
- #: includes/admin/class-evf-admin-assets.php:162
1231
  msgid "Remove Image"
1232
  msgstr ""
1233
 
1234
- #: includes/admin/class-evf-admin-assets.php:163
1235
  msgid "Empty Form Name"
1236
  msgstr ""
1237
 
1238
- #: includes/admin/class-evf-admin-assets.php:164
1239
  msgid "keyboard Shortcut Keys"
1240
  msgstr ""
1241
 
1242
- #: includes/admin/class-evf-admin-assets.php:166
1243
  msgid "Save Builder"
1244
  msgstr ""
1245
 
1246
- #: includes/admin/class-evf-admin-assets.php:167
1247
  msgid "Close Builder"
1248
  msgstr ""
1249
 
1250
- #: includes/admin/class-evf-admin-assets.php:168
1251
  msgid "Preview Form"
1252
  msgstr ""
1253
 
1254
- #: includes/admin/class-evf-admin-assets.php:169
1255
  msgid "Go to Entries"
1256
  msgstr ""
1257
 
1258
- #: includes/admin/class-evf-admin-assets.php:170
1259
  msgid "Open Help"
1260
  msgstr ""
1261
 
1262
- #: includes/admin/class-evf-admin-assets.php:172
1263
  msgid "Form name can't be empty."
1264
  msgstr ""
1265
 
1266
- #: includes/admin/class-evf-admin-assets.php:196
1267
  msgid "is a PRO Feature"
1268
  msgstr ""
1269
 
1270
- #: includes/admin/class-evf-admin-assets.php:197
1271
  msgid "We're sorry, the %name% is not available on your plan.<br>Please upgrade to the PRO plan to unlock all these awesome features."
1272
  msgstr ""
1273
 
1274
- #: includes/admin/class-evf-admin-assets.php:198
1275
  msgid "Upgrade to PRO"
1276
  msgstr ""
1277
 
1278
- #: includes/admin/class-evf-admin-assets.php:200
1279
  msgid "Please enable Stripe"
1280
  msgstr ""
1281
 
1282
- #: includes/admin/class-evf-admin-assets.php:201
1283
  msgid "Enable Stripe Payment gateway in payments section to use this field."
1284
  msgstr ""
1285
 
1286
- #: includes/admin/class-evf-admin-assets.php:217
1287
  msgid "Enter a Email nickname"
1288
  msgstr ""
1289
 
1290
- #: includes/admin/class-evf-admin-assets.php:218
1291
  msgid "Eg: Support Email"
1292
  msgstr ""
1293
 
1294
- #: includes/admin/class-evf-admin-assets.php:219
1295
  msgid "You must provide a Email nickname"
1296
  msgstr ""
1297
 
1298
- #: includes/admin/class-evf-admin-assets.php:226
1299
  msgid "New Form Entry"
1300
  msgstr ""
1301
 
1302
- #: includes/admin/class-evf-admin-assets.php:236
1303
  msgid "Please enter in meta key with alphanumeric characters, dashes and underscores."
1304
  msgstr ""
1305
 
1306
- #: includes/admin/class-evf-admin-assets.php:237
1307
  msgid "Minimum value is greater than Maximum value."
1308
  msgstr ""
1309
 
1310
- #: includes/admin/class-evf-admin-assets.php:238
1311
  msgid "Maximum value is smaller than Minimum value."
1312
  msgstr ""
1313
 
1314
- #: includes/admin/class-evf-admin-assets.php:239
1315
  msgid "Default value is greater than Maximum value."
1316
  msgstr ""
1317
 
1318
- #: includes/admin/class-evf-admin-assets.php:240
1319
  msgid "Default value is smaller than Minimum value."
1320
  msgstr ""
1321
 
1322
- #: includes/admin/class-evf-admin-assets.php:241
1323
  msgid "Please select a form which you want to export."
1324
  msgstr ""
1325
 
1326
- #: includes/admin/class-evf-admin-assets.php:266
1327
  msgid "Give it a name."
1328
  msgstr ""
1329
 
1330
- #: includes/admin/class-evf-admin-assets.php:267
1331
  msgid "You must provide a Form name"
1332
  msgstr ""
1333
 
1334
- #: includes/admin/class-evf-admin-assets.php:269
1335
  #: includes/admin/views/html-admin-page-addons.php:133
1336
  msgid "Upgrade Plan"
1337
  msgstr ""
1338
 
1339
- #: includes/admin/class-evf-admin-assets.php:270
1340
  msgid "This template requires premium addons. Please upgrade to the Premium plan to unlock all these awesome Templates."
1341
  msgstr ""
1342
 
1343
- #: includes/admin/class-evf-admin-assets.php:271
1344
  msgid "is a Premium Template"
1345
  msgstr ""
1346
 
1347
- #: includes/admin/class-evf-admin-assets.php:272
1348
  msgid "Continue"
1349
  msgstr ""
1350
 
1351
- #: includes/admin/class-evf-admin-assets.php:273
1352
  msgid "Untitled Form"
1353
  msgstr ""
1354
 
1355
- #: includes/admin/class-evf-admin-assets.php:274
1356
  msgid "Uplift your form experience to the next level."
1357
  msgstr ""
1358
 
1359
- #: includes/admin/class-evf-admin-assets.php:288
1360
  msgid "Are you sure you want to delete this log?"
1361
  msgstr ""
1362
 
1363
- #: includes/admin/class-evf-admin-assets.php:289
1364
  msgid "Are you sure you want to delete all logs?"
1365
  msgstr ""
1366
 
@@ -2749,7 +2749,7 @@ msgstr ""
2749
 
2750
  #: includes/class-evf-form-task.php:91
2751
  #: includes/class-evf-form-task.php:502
2752
- #: includes/shortcodes/class-evf-shortcode-form.php:941
2753
  #: includes/templates/contact.php:61
2754
  msgid "Thanks for contacting us! We will be in touch with you shortly."
2755
  msgstr ""
@@ -4974,8 +4974,12 @@ msgstr ""
4974
  msgid "WYSIWYG"
4975
  msgstr ""
4976
 
 
 
 
 
4977
  #. translators: %s - URL to a non-amp version of a page with the form.
4978
- #: includes/shortcodes/class-evf-shortcode-form.php:914
4979
  msgid "<a href=\"%s\">Go to the full page</a> to view and submit the form."
4980
  msgstr ""
4981
 
2
  # This file is distributed under the same license as the Everest Forms plugin.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Everest Forms 1.9.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/everest-forms\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "POT-Creation-Date: 2022-07-19T09:07:24+02:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.6.0\n"
15
  "X-Domain: everest-forms\n"
654
 
655
  #: includes/abstracts/class-evf-form-fields.php:2049
656
  #: includes/abstracts/class-evf-form-fields.php:2053
657
+ #: includes/admin/builder/class-evf-builder-fields.php:354
658
  msgid "Duplicate Field"
659
  msgstr ""
660
 
661
  #: includes/abstracts/class-evf-form-fields.php:2050
662
  #: includes/abstracts/class-evf-form-fields.php:2054
663
+ #: includes/admin/builder/class-evf-builder-fields.php:355
664
  msgid "Delete Field"
665
  msgstr ""
666
 
667
  #: includes/abstracts/class-evf-form-fields.php:2051
668
+ #: includes/admin/builder/class-evf-builder-fields.php:356
669
  #: includes/admin/builder/class-evf-builder-settings.php:25
670
  #: includes/admin/class-evf-admin-menus.php:162
671
  #: includes/class-evf-install.php:717
724
  msgid "You don't have any fields yet."
725
  msgstr ""
726
 
727
+ #: includes/admin/builder/class-evf-builder-fields.php:264
728
  msgid "Row Settings"
729
  msgstr ""
730
 
731
+ #: includes/admin/builder/class-evf-builder-fields.php:265
732
  msgid "Select the type of row"
733
  msgstr ""
734
 
735
+ #: includes/admin/builder/class-evf-builder-fields.php:327
736
  msgid "Add Row"
737
  msgstr ""
738
 
739
+ #: includes/admin/builder/class-evf-builder-fields.php:330
740
  msgid "Add Repeater Row"
741
  msgstr ""
742
 
743
+ #: includes/admin/builder/class-evf-builder-fields.php:358
744
  msgid "Duplicate Repeater"
745
  msgstr ""
746
 
747
+ #: includes/admin/builder/class-evf-builder-fields.php:359
748
  msgid "Delete Repeater"
749
  msgstr ""
750
 
803
  msgstr ""
804
 
805
  #: includes/admin/builder/class-evf-builder-settings.php:158
806
+ #: includes/shortcodes/class-evf-shortcode-form.php:883
807
  msgid "This form is disabled."
808
  msgstr ""
809
 
1135
  msgid "Searching&hellip;"
1136
  msgstr ""
1137
 
1138
+ #: includes/admin/class-evf-admin-assets.php:141
1139
  msgid "field"
1140
  msgstr ""
1141
 
1142
+ #: includes/admin/class-evf-admin-assets.php:142
1143
+ #: includes/admin/class-evf-admin-assets.php:221
1144
  msgid "OK"
1145
  msgstr ""
1146
 
1147
+ #: includes/admin/class-evf-admin-assets.php:143
1148
  msgid "Installing"
1149
  msgstr ""
1150
 
1151
+ #: includes/admin/class-evf-admin-assets.php:144
1152
  msgid "Activating"
1153
  msgstr ""
1154
 
1155
+ #: includes/admin/class-evf-admin-assets.php:145
1156
  msgid "Install & Activate"
1157
  msgstr ""
1158
 
1159
+ #: includes/admin/class-evf-admin-assets.php:146
1160
  msgid "Activate Plugins"
1161
  msgstr ""
1162
 
1163
+ #: includes/admin/class-evf-admin-assets.php:147
1164
  msgid "(copy)"
1165
  msgstr ""
1166
 
1167
+ #: includes/admin/class-evf-admin-assets.php:148
1168
  #: includes/admin/class-evf-admin-editor.php:62
1169
  msgid "Close"
1170
  msgstr ""
1171
 
1172
+ #: includes/admin/class-evf-admin-assets.php:149
1173
+ #: includes/admin/class-evf-admin-assets.php:224
1174
  #: includes/admin/class-evf-admin-editor.php:97
1175
  msgid "Cancel"
1176
  msgstr ""
1177
 
1178
+ #: includes/admin/class-evf-admin-assets.php:150
1179
  msgid "Row Locked"
1180
  msgstr ""
1181
 
1182
+ #: includes/admin/class-evf-admin-assets.php:151
1183
  msgid "Single row cannot be deleted."
1184
  msgstr ""
1185
 
1186
+ #: includes/admin/class-evf-admin-assets.php:152
1187
  msgid "Field Locked"
1188
  msgstr ""
1189
 
1190
+ #: includes/admin/class-evf-admin-assets.php:153
1191
  msgid "This field cannot be deleted or duplicated."
1192
  msgstr ""
1193
 
1194
+ #: includes/admin/class-evf-admin-assets.php:154
1195
  msgid "This row cannot be deleted or duplicated."
1196
  msgstr ""
1197
 
1198
+ #: includes/admin/class-evf-admin-assets.php:155
1199
  msgid "This item must contain at least one choice."
1200
  msgstr ""
1201
 
1202
+ #: includes/admin/class-evf-admin-assets.php:156
1203
  msgid "Are you sure you want to delete this row?"
1204
  msgstr ""
1205
 
1206
+ #: includes/admin/class-evf-admin-assets.php:157
1207
  msgid "Are you sure you want to delete this field?"
1208
  msgstr ""
1209
 
1210
+ #: includes/admin/class-evf-admin-assets.php:158
1211
  msgid "Are you sure you want to duplicate this field?"
1212
  msgstr ""
1213
 
1214
+ #: includes/admin/class-evf-admin-assets.php:159
1215
  msgid "Are you sure you want to duplicate this row?"
1216
  msgstr ""
1217
 
1218
+ #: includes/admin/class-evf-admin-assets.php:160
1219
  msgid "Turn on Email settings to manage your email notification."
1220
  msgstr ""
1221
 
1222
+ #: includes/admin/class-evf-admin-assets.php:161
1223
  msgid "Choose an image"
1224
  msgstr ""
1225
 
1226
+ #: includes/admin/class-evf-admin-assets.php:162
1227
  msgid "Use Image"
1228
  msgstr ""
1229
 
1230
+ #: includes/admin/class-evf-admin-assets.php:163
1231
  msgid "Remove Image"
1232
  msgstr ""
1233
 
1234
+ #: includes/admin/class-evf-admin-assets.php:164
1235
  msgid "Empty Form Name"
1236
  msgstr ""
1237
 
1238
+ #: includes/admin/class-evf-admin-assets.php:165
1239
  msgid "keyboard Shortcut Keys"
1240
  msgstr ""
1241
 
1242
+ #: includes/admin/class-evf-admin-assets.php:167
1243
  msgid "Save Builder"
1244
  msgstr ""
1245
 
1246
+ #: includes/admin/class-evf-admin-assets.php:168
1247
  msgid "Close Builder"
1248
  msgstr ""
1249
 
1250
+ #: includes/admin/class-evf-admin-assets.php:169
1251
  msgid "Preview Form"
1252
  msgstr ""
1253
 
1254
+ #: includes/admin/class-evf-admin-assets.php:170
1255
  msgid "Go to Entries"
1256
  msgstr ""
1257
 
1258
+ #: includes/admin/class-evf-admin-assets.php:171
1259
  msgid "Open Help"
1260
  msgstr ""
1261
 
1262
+ #: includes/admin/class-evf-admin-assets.php:173
1263
  msgid "Form name can't be empty."
1264
  msgstr ""
1265
 
1266
+ #: includes/admin/class-evf-admin-assets.php:197
1267
  msgid "is a PRO Feature"
1268
  msgstr ""
1269
 
1270
+ #: includes/admin/class-evf-admin-assets.php:198
1271
  msgid "We're sorry, the %name% is not available on your plan.<br>Please upgrade to the PRO plan to unlock all these awesome features."
1272
  msgstr ""
1273
 
1274
+ #: includes/admin/class-evf-admin-assets.php:199
1275
  msgid "Upgrade to PRO"
1276
  msgstr ""
1277
 
1278
+ #: includes/admin/class-evf-admin-assets.php:201
1279
  msgid "Please enable Stripe"
1280
  msgstr ""
1281
 
1282
+ #: includes/admin/class-evf-admin-assets.php:202
1283
  msgid "Enable Stripe Payment gateway in payments section to use this field."
1284
  msgstr ""
1285
 
1286
+ #: includes/admin/class-evf-admin-assets.php:218
1287
  msgid "Enter a Email nickname"
1288
  msgstr ""
1289
 
1290
+ #: includes/admin/class-evf-admin-assets.php:219
1291
  msgid "Eg: Support Email"
1292
  msgstr ""
1293
 
1294
+ #: includes/admin/class-evf-admin-assets.php:220
1295
  msgid "You must provide a Email nickname"
1296
  msgstr ""
1297
 
1298
+ #: includes/admin/class-evf-admin-assets.php:227
1299
  msgid "New Form Entry"
1300
  msgstr ""
1301
 
1302
+ #: includes/admin/class-evf-admin-assets.php:237
1303
  msgid "Please enter in meta key with alphanumeric characters, dashes and underscores."
1304
  msgstr ""
1305
 
1306
+ #: includes/admin/class-evf-admin-assets.php:238
1307
  msgid "Minimum value is greater than Maximum value."
1308
  msgstr ""
1309
 
1310
+ #: includes/admin/class-evf-admin-assets.php:239
1311
  msgid "Maximum value is smaller than Minimum value."
1312
  msgstr ""
1313
 
1314
+ #: includes/admin/class-evf-admin-assets.php:240
1315
  msgid "Default value is greater than Maximum value."
1316
  msgstr ""
1317
 
1318
+ #: includes/admin/class-evf-admin-assets.php:241
1319
  msgid "Default value is smaller than Minimum value."
1320
  msgstr ""
1321
 
1322
+ #: includes/admin/class-evf-admin-assets.php:242
1323
  msgid "Please select a form which you want to export."
1324
  msgstr ""
1325
 
1326
+ #: includes/admin/class-evf-admin-assets.php:267
1327
  msgid "Give it a name."
1328
  msgstr ""
1329
 
1330
+ #: includes/admin/class-evf-admin-assets.php:268
1331
  msgid "You must provide a Form name"
1332
  msgstr ""
1333
 
1334
+ #: includes/admin/class-evf-admin-assets.php:270
1335
  #: includes/admin/views/html-admin-page-addons.php:133
1336
  msgid "Upgrade Plan"
1337
  msgstr ""
1338
 
1339
+ #: includes/admin/class-evf-admin-assets.php:271
1340
  msgid "This template requires premium addons. Please upgrade to the Premium plan to unlock all these awesome Templates."
1341
  msgstr ""
1342
 
1343
+ #: includes/admin/class-evf-admin-assets.php:272
1344
  msgid "is a Premium Template"
1345
  msgstr ""
1346
 
1347
+ #: includes/admin/class-evf-admin-assets.php:273
1348
  msgid "Continue"
1349
  msgstr ""
1350
 
1351
+ #: includes/admin/class-evf-admin-assets.php:274
1352
  msgid "Untitled Form"
1353
  msgstr ""
1354
 
1355
+ #: includes/admin/class-evf-admin-assets.php:275
1356
  msgid "Uplift your form experience to the next level."
1357
  msgstr ""
1358
 
1359
+ #: includes/admin/class-evf-admin-assets.php:289
1360
  msgid "Are you sure you want to delete this log?"
1361
  msgstr ""
1362
 
1363
+ #: includes/admin/class-evf-admin-assets.php:290
1364
  msgid "Are you sure you want to delete all logs?"
1365
  msgstr ""
1366
 
2749
 
2750
  #: includes/class-evf-form-task.php:91
2751
  #: includes/class-evf-form-task.php:502
2752
+ #: includes/shortcodes/class-evf-shortcode-form.php:947
2753
  #: includes/templates/contact.php:61
2754
  msgid "Thanks for contacting us! We will be in touch with you shortly."
2755
  msgstr ""
4974
  msgid "WYSIWYG"
4975
  msgstr ""
4976
 
4977
+ #: includes/fields/class-evf-field-yes-no.php:20
4978
+ msgid "Yes/No"
4979
+ msgstr ""
4980
+
4981
  #. translators: %s - URL to a non-amp version of a page with the form.
4982
+ #: includes/shortcodes/class-evf-shortcode-form.php:920
4983
  msgid "<a href=\"%s\">Go to the full page</a> to view and submit the form."
4984
  msgstr ""
4985
 
readme.txt CHANGED
@@ -1,19 +1,21 @@
1
- === Contact Form, Drag and Drop Form Builder for WordPress - Everest Forms ===
2
  Contributors: WPEverest
3
  Tags: contact form, forms, form builder, contact, custom form
4
  Requires at least: 5.0
5
  Tested up to: 6.0
6
  Requires PHP: 5.4
7
- Stable tag: 1.9.0.1
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
11
- Drag and Drop contact form builder to easily create simple to complex forms for any purpose. Lightweight, Beautiful design, responsive and more.
12
 
13
  == Description ==
14
 
15
  **Everest Forms: #1 Form Building Solution for WordPress Website**
16
 
 
 
17
  Everest Forms is the best WordPress form builder, meticulously designed by our team of experts to take your form-building experience to the next level. It’s a lightweight, fast, and extensible plugin for all, i.e., from the absolute beginners with zero coding skills to the advanced users.
18
 
19
  Creating WordPress forms has never been so easy. All thanks to highly intuitive and clean admin panels and form setting options. You can easily drag and drop fields to create any types of forms imaginable without any restrictions. Multiple column forms can also be designed with a click.
@@ -26,9 +28,6 @@ No time to create forms from the ground? No worries! Choose from beautifully des
26
 
27
  [Try Everest Forms Premium ](https://wpeverest.com/wordpress-plugins/everest-forms/?utm_source=wporg&utm_medium=link&utm_campaign=ur-upgrade-to-pro)
28
 
29
- [Try Live Demo ](https://demo.tastewp.com/everest-forms)
30
-
31
-
32
  **Build Great Forms like a Pro with Everest Forms Awesome Features**
33
 
34
  You'll be delighted to know that Everest Forms lets you create great forms like a pro without prior experience of using such WordPress form plugins. So, ready to explore the awe-striking features of Everest Forms? Here we go!
@@ -47,7 +46,7 @@ You'll be delighted to know that Everest Forms lets you create great forms like
47
 
48
  * **Form Submission without Reload (Ajax Submission):** Users can quickly submit the forms without reloading the page with the Ajax form submission feature.
49
 
50
- * **[Premium] Integrations with Email Marketing Services:** Ensure the success of your marketing campaigns with effective email marketing services like [MailChimp](https://wpeverest.com/wordpress-plugins/everest-forms/mailchimp/?utm_source=wporg&utm_medium=link&utm_campaign=evf-upgrade-to-pro), [ConvertKit](https://wpeverest.com/wordpress-plugins/everest-forms/convertkit/?utm_source=wporg&utm_medium=link&utm_campaign=evf-upgrade-to-pro), [MailerLite](https://wpeverest.com/wordpress-plugins/everest-forms/mailerlite/?utm_source=wporg&utm_medium=link&utm_campaign=evf-upgrade-to-pro), [ActiveCampaign](https://wpeverest.com/wordpress-plugins/everest-forms/activecampaign/?utm_source=wporg&utm_medium=link&utm_campaign=evf-upgrade-to-pro), and [Campaign Monitor](https://wpeverest.com/wordpress-plugins/everest-forms/campaign-monitor/?utm_source=wporg&utm_medium=link&utm_campaign=evf-upgrade-to-pro).
51
 
52
  * **[Premium] [Multi-Step Form with Progress Bar:](https://wpeverest.com/wordpress-plugins/everest-forms/multi-part-forms/?utm_source=wporg&utm_medium=link&utm_campaign=evf-upgrade-to-pro)** Break your complex or overwhelming forms into multi-steps for providing a better user experience. A progress bar in your multi-part forms will guide your users to navigate through your form successively.
53
 
@@ -61,6 +60,11 @@ You'll be delighted to know that Everest Forms lets you create great forms like
61
 
62
  * **[Premium] [Integrate with thousands of web applications:](https://wpeverest.com/wordpress-plugins/everest-forms/zapier/?utm_source=wporg&utm_medium=link&utm_campaign=evf-upgrade-to-pro)** Zapier allows our forms to be connected with thousands of web applications. Automate the data transfer from your form. For example, posting the form data to google docs, posting to twitter, trello, slack, facebook and hundred of other apps.
63
 
 
 
 
 
 
64
 
65
  ### Get All the Essential Form Fields under the Roof of Everest Forms
66
  Everest Forms is loaded with all the crucial form field elements required for creating comprehensive WordPress contact forms to appeal to your visitors. These form fields are as follows:
@@ -94,6 +98,7 @@ Everest Forms is loaded with all the crucial form field elements required for cr
94
  * Rating
95
  * Likert
96
  * Scale Rating
 
97
  * WYSIWYG
98
 
99
  * **Payment Fields**
@@ -125,7 +130,7 @@ Everest Forms has a long list of top-notch features, making it the best WordPres
125
 
126
  * **[Premium] [Email Templates Designer:](https://wpeverest.com/wordpress-plugins/everest-forms/email-templates/?utm_source=wporg&utm_medium=link&utm_campaign=evf-upgrade-to-pro)** Design beautiful email templates to impress your users. Customize color, fonts, spacing, header & footer, etc., of email template in real-time without coding. You've got an option to start from scratch or choose from carefully designed templates to get started.
127
 
128
- * **[Premium] Collect Payments:** Need to collect payments from customers on your forms? With our [PayPal](https://wpeverest.com/wordpress-plugins/everest-forms/paypal-standard/?utm_source=wporg&utm_medium=link&utm_campaign=evf-upgrade-to-pro) and [Stripe](https://wpeverest.com/wordpress-plugins/everest-forms/stripe/?utm_source=wporg&utm_medium=link&utm_campaign=evf-upgrade-to-pro) addon one can easily collect payment. Accept PayPal payments and even credit cards and bank payments(iDeal) via Stripe. Can be useful for collect single item payment, multiple item payment, donation payment and more.
129
 
130
  * **[Premium] [Smart Conditional Logic:](https://wpeverest.com/wordpress-plugins/everest-forms/conditional-logic/?utm_source=wporg&utm_medium=link&utm_campaign=evf-upgrade-to-pro)** Choose to show/hide specific form fields based on your users' interaction with previous fields. Collect all the necessary information from the users without making your form appear overwhelming and complex.
131
 
@@ -135,7 +140,7 @@ Everest Forms has a long list of top-notch features, making it the best WordPres
135
 
136
  * **[Premium] [Form Restriction:](https://wpeverest.com/wordpress-plugins/everest-forms/form-restriction/?utm_source=wporg&utm_medium=link&utm_campaign=evf-upgrade-to-pro)** The power to control and restrict the form submission on your site is now at your fingertips. You can limit the form submission entries, set form submission dates, restrict forms for users who aren't logged in, and password protection for form submission.
137
 
138
- * **[Premium] [PDF Form Submission:](https://wpeverest.com/wordpress-plugins/everest-forms/pdf-form-submission/?utm_source=wporg&utm_medium=link&utm_campaign=evf-upgrade-to-pro)** PDF is the widely used document format for storing and sharing files. Using this add-on, you can now download and send the form submissions in PDF format effortlessly.
139
 
140
  * **[Premium] [Smart Geolocation:](https://wpeverest.com/wordpress-plugins/everest-forms/geolocation/?utm_source=wporg&utm_medium=link&utm_campaign=evf-upgrade-to-pro)** This add-on enables you to track the geolocation data of your users submitting the form. You can collect and save their exact geolocation details like IP address country, city, postal /Zip code, etc.
141
 
@@ -149,6 +154,10 @@ Everest Forms has a long list of top-notch features, making it the best WordPres
149
 
150
  * **[Premium] [Calculation Fields:](https://wpeverest.com/wordpress-plugins/everest-forms/calculations/?utm_source=wporg&utm_medium=link&utm_campaign=evf-upgrade-to-pro)** Calculations addon makes it quite simple to calculate field values that are updated in real-time. It can handle from simple additions, subtractions, or multiplication to complicated geometric operations.
151
 
 
 
 
 
152
 
153
  **Create Different Form Types without Any Coding Skills**
154
  * [Contact Form](https://demo.wpeverest.com/everest-forms/)
@@ -174,7 +183,7 @@ Everest Forms has a long list of top-notch features, making it the best WordPres
174
  * Intuitive drag and drop form builder
175
  * Huge library of form templates to get started
176
  * Create unlimited forms without any restrictions
177
- * Multiple column layouts option
178
  * Form field options
179
  * General, advanced, and payment form fields to create any type of WordPress forms
180
  * Unlimited form field. Use desired form field as many times as you want with no restrictions.
@@ -202,6 +211,7 @@ Everest Forms has a long list of top-notch features, making it the best WordPres
202
  * AJAX form submission, no reload needed
203
  * Spam protection via honeypot
204
  * Support for Google reCAPTCHA V2 and V3
 
205
  * Email setting option
206
  * Multiple email recipient
207
  * Multiple email notifications
@@ -227,6 +237,7 @@ Everest Forms has a long list of top-notch features, making it the best WordPres
227
  * MailerLite
228
  * ActiveCampaign
229
  * Campaign Monitor
 
230
  * Download form submission data in PDF document format
231
  * Form restriction option
232
  * Restrict non logged in user
@@ -313,6 +324,11 @@ Yes you can! Join in on our [GitHub repository](https://github.com/wpeverest/eve
313
 
314
  == Changelog ==
315
 
 
 
 
 
 
316
  = 1.9.0.1 - 06-07-2022
317
  * Fix - Field validation params miss match.
318
 
@@ -487,70 +503,4 @@ Yes you can! Join in on our [GitHub repository](https://github.com/wpeverest/eve
487
  * Tweak - Spacing issue on multi select in admin pages.
488
  * Tweak - Add support for User Display in smart tag filter list.
489
 
490
- = 1.7.2.2 - 29-12-2020 =
491
- * Fix - Form builder not loading in Firefox.
492
-
493
- = 1.7.2.1 - 13-12-2020 =
494
- * Enhancement - Add copy shortcode button in form list table.
495
- * Fix - Form styles not being cloned on import and duplication.
496
- * Fix - AJAX submission conflict with stripe addon in multi-part form.
497
- * Fix - PerfectScrollbar jQuery selector issue in the form builder page.
498
-
499
- = 1.7.2 - 16-10-2020 =
500
- * Enhancement - Add search fields on builder page.
501
- * Enhancement - Add supports for Campaign Monitor Addon.
502
- * Enhancement - Add Plan name instead of PRO label on form templates.
503
- * Fix - Message for the required file upload field.
504
- * Tweak - Improve Jconfirm content for new lines with some css.
505
-
506
- = 1.7.1 - 14-09-2020 =
507
- * Enhancement - Add supports for email Templates Addon.
508
- * Enhancement - Add supports Google Sheets integration Addon.
509
- * Enhancement - Add support for multiple option selection in Pro plan.
510
- * Fix - The default value for a dropdown field not set.
511
- * Fix - Enhanced select required message shown above field.
512
- * Fix - Dropdown single selection for choices should have a radio type.
513
- * Fix - Form status toggle compatiable with WP 5.5+.
514
- * Fix - Navbar design while switching to another language.
515
- * Fix - Enhanced select not working in Multi-part.
516
- * Tweak - Updated selectWoo JS library to v1.0.8.
517
- * Dev - Introduced `evf-frontend-enhanced-select-init` trigger in frontend JS.
518
-
519
- = 1.7.0.3 - 17-08-2020 =
520
- * Fix - Referral URL unicode support.
521
- * Fix - Conditional logic for dropdown broken.
522
- * Fix - PerfectScrollbar issue in builder integration.
523
-
524
- = 1.7.0.2 - 11-08-2020 =
525
- * Fix - Conditional logic on select field.
526
- * Fix - Likert table scroll in responsive.
527
- * Fix - Drag and drop issue in tools page import form area.
528
- * Fix - Conditional logic required message while using on the checkbox.
529
- * Tweak - Upgrade URL to redirect to pricing page rather than product page.
530
-
531
- = 1.7.0.1 - 20-07-2020 =
532
- * Fix - Form status {de}active toggle button.
533
- * Fix - reCAPTCHA working only for logged in user.
534
- * Fix - Email subject while using select field smart tag.
535
- * Fix - Select field placeholder not displayed in enhanced select and not selected in default select.
536
- * Tweak - Modified `everest_forms_logged_in_user_recaptcha_disabled` with `everest_forms_recaptcha_disabled` hook.
537
-
538
- = 1.7.0 - 15-07-2020 =
539
- * Enhancement - Add support for form restriction addon.
540
- * Added - Support for bulk options to Checkbox, Multiple Choice and Dropdown fields.
541
- * Added - Introduce `get_multiple` method in `EVF_Form_Handler` to fetch multiple forms.
542
- * Fix - Number Field validation issue with conditional logic.
543
- * Fix - Modify logic for fetching unread and starred entries.
544
- * Fix - Date/Time field to use local date instead of default UTC.
545
- * Fix - Export of field data with HTML encoded special characters.
546
- * Fix - The field placeholder & default value 0 (zero) does not display on the frontend.
547
- * Tweak - Updated jQuery Validation JS library to v1.19.2.
548
- * Tweak - Parameters for reCAPTCHA URL filter to change language code in v2 type.
549
- * Tweak - Preserve entry status so they are restored correctly after moving to trash.
550
- * Tweak - Add trigger `everest_forms_loaded` to notify plugins that the core was loaded.
551
- * Tweak - Introduced `everest_forms_logged_in_user_recaptcha_disabled` filter to disable reCAPTCHA check for logged-in user.
552
- * Tweak - Modify duplicated action hook `everest_forms_general_settings` to `everest_forms_inline_general_settings` for builder general settings.
553
- * Dev - Introduced `everest_forms_total_entries_count` filter to update total entries count in list table views.
554
- * Dev - Introduced `everest_forms_{$export_type}_export_delimiter` filter to change separator string while exporting CSV files.
555
-
556
  [See changelog for all versions](https://github.com/wpeverest/everest-forms/raw/master/changelog.txt).
1
+ === Contact Form Plugin - Easy Drag and Drop Form Builder for WordPress - Everest Forms ===
2
  Contributors: WPEverest
3
  Tags: contact form, forms, form builder, contact, custom form
4
  Requires at least: 5.0
5
  Tested up to: 6.0
6
  Requires PHP: 5.4
7
+ Stable tag: 1.9.1
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
11
+ Fast, Lightweight & Secure Contact Form plugin. Beautiful & Responsive Pre-Built Templates. Create Contact, Booking, Payment, Quiz, Survey, Multi-Step, Registration and any type of forms.
12
 
13
  == Description ==
14
 
15
  **Everest Forms: #1 Form Building Solution for WordPress Website**
16
 
17
+ 👉 [Give a Try](https://demo.tastewp.com/everest-forms) (Clicking this link creates a demo where you can test Everest Forms.)
18
+
19
  Everest Forms is the best WordPress form builder, meticulously designed by our team of experts to take your form-building experience to the next level. It’s a lightweight, fast, and extensible plugin for all, i.e., from the absolute beginners with zero coding skills to the advanced users.
20
 
21
  Creating WordPress forms has never been so easy. All thanks to highly intuitive and clean admin panels and form setting options. You can easily drag and drop fields to create any types of forms imaginable without any restrictions. Multiple column forms can also be designed with a click.
28
 
29
  [Try Everest Forms Premium ](https://wpeverest.com/wordpress-plugins/everest-forms/?utm_source=wporg&utm_medium=link&utm_campaign=ur-upgrade-to-pro)
30
 
 
 
 
31
  **Build Great Forms like a Pro with Everest Forms Awesome Features**
32
 
33
  You'll be delighted to know that Everest Forms lets you create great forms like a pro without prior experience of using such WordPress form plugins. So, ready to explore the awe-striking features of Everest Forms? Here we go!
46
 
47
  * **Form Submission without Reload (Ajax Submission):** Users can quickly submit the forms without reloading the page with the Ajax form submission feature.
48
 
49
+ * **[Premium] Integrations with Email Marketing Services:** Ensure the success of your marketing campaigns with effective email marketing services like [MailChimp](https://wpeverest.com/wordpress-plugins/everest-forms/mailchimp/?utm_source=wporg&utm_medium=link&utm_campaign=evf-upgrade-to-pro), [ConvertKit](https://wpeverest.com/wordpress-plugins/everest-forms/convertkit/?utm_source=wporg&utm_medium=link&utm_campaign=evf-upgrade-to-pro), [MailerLite](https://wpeverest.com/wordpress-plugins/everest-forms/mailerlite/?utm_source=wporg&utm_medium=link&utm_campaign=evf-upgrade-to-pro), [ActiveCampaign](https://wpeverest.com/wordpress-plugins/everest-forms/activecampaign/?utm_source=wporg&utm_medium=link&utm_campaign=evf-upgrade-to-pro), [Campaign Monitor](https://wpeverest.com/wordpress-plugins/everest-forms/campaign-monitor/?utm_source=wporg&utm_medium=link&utm_campaign=evf-upgrade-to-pro) and [Drip](https://wpeverest.com/wordpress-plugins/everest-forms/drip/?utm_source=wporg&utm_medium=link&utm_campaign=evf-upgrade-to-pro).
50
 
51
  * **[Premium] [Multi-Step Form with Progress Bar:](https://wpeverest.com/wordpress-plugins/everest-forms/multi-part-forms/?utm_source=wporg&utm_medium=link&utm_campaign=evf-upgrade-to-pro)** Break your complex or overwhelming forms into multi-steps for providing a better user experience. A progress bar in your multi-part forms will guide your users to navigate through your form successively.
52
 
60
 
61
  * **[Premium] [Integrate with thousands of web applications:](https://wpeverest.com/wordpress-plugins/everest-forms/zapier/?utm_source=wporg&utm_medium=link&utm_campaign=evf-upgrade-to-pro)** Zapier allows our forms to be connected with thousands of web applications. Automate the data transfer from your form. For example, posting the form data to google docs, posting to twitter, trello, slack, facebook and hundred of other apps.
62
 
63
+ * **[Premium] CRM Integration:** Easily connect Everest Forms with popular CRM softwares like [Pipedrive](https://wpeverest.com/wordpress-plugins/everest-forms/pipedrive/?utm_source=wporg&utm_medium=link&utm_campaign=evf-upgrade-to-pro) and [Hubspot](https://wpeverest.com/wordpress-plugins/everest-forms/hubspot/?utm_source=wporg&utm_medium=link&utm_campaign=evf-upgrade-to-pro). Send form data to your CRM platform to manage, and track activity, contacts and more.
64
+
65
+ * **[Premium] [Frontend Listing:](https://wpeverest.com/wordpress-plugins/everest-forms/frontend-listing/?utm_source=wporg&utm_medium=link&utm_campaign=evf-upgrade-to-pro)** List form entries submitted by your users to any post or page. Visitors can view and check the user entries of any particular form on the frontend.
66
+
67
+
68
 
69
  ### Get All the Essential Form Fields under the Roof of Everest Forms
70
  Everest Forms is loaded with all the crucial form field elements required for creating comprehensive WordPress contact forms to appeal to your visitors. These form fields are as follows:
98
  * Rating
99
  * Likert
100
  * Scale Rating
101
+ * Yes/No or Like/Dislike
102
  * WYSIWYG
103
 
104
  * **Payment Fields**
130
 
131
  * **[Premium] [Email Templates Designer:](https://wpeverest.com/wordpress-plugins/everest-forms/email-templates/?utm_source=wporg&utm_medium=link&utm_campaign=evf-upgrade-to-pro)** Design beautiful email templates to impress your users. Customize color, fonts, spacing, header & footer, etc., of email template in real-time without coding. You've got an option to start from scratch or choose from carefully designed templates to get started.
132
 
133
+ * **[Premium] Collect Payments:** Need to collect payments from customers on your forms? With our [PayPal](https://wpeverest.com/wordpress-plugins/everest-forms/paypal-standard/?utm_source=wporg&utm_medium=link&utm_campaign=evf-upgrade-to-pro) and [Stripe](https://wpeverest.com/wordpress-plugins/everest-forms/stripe/?utm_source=wporg&utm_medium=link&utm_campaign=evf-upgrade-to-pro) addon one can easily collect payment globally. Accept PayPal payments and even credit cards and bank payments(iDeal) via Stripe. Also, support [RazorPay](https://wpeverest.com/wordpress-plugins/everest-forms/razorpay/?utm_source=wporg&utm_medium=link&utm_campaign=evf-upgrade-to-pro) for Indian customers. Can be useful for collect single item payment, multiple item payment, donation payment and more.
134
 
135
  * **[Premium] [Smart Conditional Logic:](https://wpeverest.com/wordpress-plugins/everest-forms/conditional-logic/?utm_source=wporg&utm_medium=link&utm_campaign=evf-upgrade-to-pro)** Choose to show/hide specific form fields based on your users' interaction with previous fields. Collect all the necessary information from the users without making your form appear overwhelming and complex.
136
 
140
 
141
  * **[Premium] [Form Restriction:](https://wpeverest.com/wordpress-plugins/everest-forms/form-restriction/?utm_source=wporg&utm_medium=link&utm_campaign=evf-upgrade-to-pro)** The power to control and restrict the form submission on your site is now at your fingertips. You can limit the form submission entries, set form submission dates, restrict forms for users who aren't logged in, and password protection for form submission.
142
 
143
+ * **[Premium] [PDF Form Submission:](https://wpeverest.com/wordpress-plugins/everest-forms/pdf-form-submission/?utm_source=wporg&utm_medium=link&utm_campaign=evf-upgrade-to-pro)** PDF is the widely used document format for storing and sharing files. Using this add-on, you can now download and send the form submissions in PDF format effortlessly. Also, PDF can be stored directly to cloud storage like Google Drive or Dropbox.
144
 
145
  * **[Premium] [Smart Geolocation:](https://wpeverest.com/wordpress-plugins/everest-forms/geolocation/?utm_source=wporg&utm_medium=link&utm_campaign=evf-upgrade-to-pro)** This add-on enables you to track the geolocation data of your users submitting the form. You can collect and save their exact geolocation details like IP address country, city, postal /Zip code, etc.
146
 
154
 
155
  * **[Premium] [Calculation Fields:](https://wpeverest.com/wordpress-plugins/everest-forms/calculations/?utm_source=wporg&utm_medium=link&utm_campaign=evf-upgrade-to-pro)** Calculations addon makes it quite simple to calculate field values that are updated in real-time. It can handle from simple additions, subtractions, or multiplication to complicated geometric operations.
156
 
157
+ * **[Premium] [Coupons:](https://wpeverest.com/wordpress-plugins/everest-forms/coupons/?utm_source=wporg&utm_medium=link&utm_campaign=evf-upgrade-to-pro)** Quickly create and add coupon code to encourage users to purchase via your form. Everest Forms plugin enables you to create both the fixed and percentage-based coupons.
158
+
159
+ * **[Premium] [SMS Notifications:](https://wpeverest.com/wordpress-plugins/everest-forms/sms-notifications/?utm_source=wporg&utm_medium=link&utm_campaign=evf-upgrade-to-pro)** Want to be notified whenever a form is submitted? Everest Forms supports Twilio SMS integration that allows you to receive SMS notification easily whenever a form is submitted.
160
+
161
 
162
  **Create Different Form Types without Any Coding Skills**
163
  * [Contact Form](https://demo.wpeverest.com/everest-forms/)
183
  * Intuitive drag and drop form builder
184
  * Huge library of form templates to get started
185
  * Create unlimited forms without any restrictions
186
+ * Multiple column layouts option. Supports 2,3 and 4 column layout.
187
  * Form field options
188
  * General, advanced, and payment form fields to create any type of WordPress forms
189
  * Unlimited form field. Use desired form field as many times as you want with no restrictions.
211
  * AJAX form submission, no reload needed
212
  * Spam protection via honeypot
213
  * Support for Google reCAPTCHA V2 and V3
214
+ * Validate field as unique
215
  * Email setting option
216
  * Multiple email recipient
217
  * Multiple email notifications
237
  * MailerLite
238
  * ActiveCampaign
239
  * Campaign Monitor
240
+ * Drip
241
  * Download form submission data in PDF document format
242
  * Form restriction option
243
  * Restrict non logged in user
324
 
325
  == Changelog ==
326
 
327
+ = 1.9.1 - 19-07-2022
328
+ * Fix - Enhanced select issue in single select.
329
+ * Dev - Yes/No field.
330
+ * Dev - Row setting compatibility.
331
+
332
  = 1.9.0.1 - 06-07-2022
333
  * Fix - Field validation params miss match.
334
 
503
  * Tweak - Spacing issue on multi select in admin pages.
504
  * Tweak - Add support for User Display in smart tag filter list.
505
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
506
  [See changelog for all versions](https://github.com/wpeverest/everest-forms/raw/master/changelog.txt).