function oxygenVSBInitTabs(element) {
if (element!==undefined) {
jQuery(element).find('.oxy-tabs-wrapper').addBack('.oxy-tabs-wrapper').each(function(index) {
jQuery(this).children('.oxy-tabs-wrapper > div').eq(0).trigger('click');
});
}
else {
jQuery('.oxy-tabs-wrapper').each(function(index) {
jQuery(this).children('.oxy-tabs-wrapper > div').eq(0).trigger('click');
});
}
}
jQuery(document).ready(function() {
let event = new Event('oxygenVSBInitTabsJs');
document.dispatchEvent(event);
});
document.addEventListener("oxygenVSBInitTabsJs",function(){
oxygenVSBInitTabs();
},false);
// handle clicks on tabs
jQuery("body").on('click', '.oxy-tabs-wrapper > div', function(e) {
/* a tab or an element that is a child of a tab has been clicked. prevent any default behavior */
//e.preventDefault();
/* which tab has been clicked? (e.target might be a child of the tab.) */
clicked_tab = jQuery(e.target).closest('.oxy-tabs-wrapper > div');
index = clicked_tab.index();
/* which tabs-wrapper is this tab inside? */
tabs_wrapper = jQuery(e.target).closest('.oxy-tabs-wrapper');
/* what class dp we use to signify an active tob? */
class_for_active_tab = tabs_wrapper.attr('data-oxy-tabs-active-tab-class');
/* make all the other tabs in this tabs-wrapper inactive */
jQuery(tabs_wrapper).children('.oxy-tabs-wrapper > div').removeClass(class_for_active_tab);
/* make the clicked tab the active tab */
jQuery(tabs_wrapper).children('.oxy-tabs-wrapper > div').eq(index).addClass(class_for_active_tab);
/* which tabs-contents-wrapper is used by these tabs? */
tabs_contents_wrapper_id = tabs_wrapper.attr('data-oxy-tabs-contents-wrapper');
/* try to grab the correct content wrapper, in case of duplicated ID's */
$content_wrapper = jQuery(tabs_wrapper).next();
if( $content_wrapper.attr("id") != tabs_contents_wrapper_id ) $content_wrapper = jQuery( '#' + tabs_contents_wrapper_id );
$content_tabs = $content_wrapper.children( "div" );
/* hide all of the content */
$content_tabs.addClass('oxy-tabs-contents-content-hidden');
/* unhide the content corresponding to the active tab*/
$content_tabs.eq(index).removeClass('oxy-tabs-contents-content-hidden');
});
var ForminatorFront = {"ajaxUrl":"https://yesiskiyou.org/wp-admin/admin-ajax.php","cform":{"processing":"Submitting form, please wait","error":"An error occurred while processing the form. Please try again","upload_error":"An upload error occurred while processing the form. Please try again","pagination_prev":"Previous","pagination_next":"Next","pagination_go":"Submit","gateway":{"processing":"Processing payment, please wait","paid":"Success! Payment confirmed. Submitting form, please wait","error":"Error! Something went wrong when verifying the payment"},"captcha_error":"Invalid CAPTCHA","no_file_chosen":"No file chosen","intlTelInput_utils_script":"https://yesiskiyou.org/wp-content/plugins/forminator/assets/js/library/intlTelInputUtils.js","process_error":"Please try again","payment_failed":"Payment failed. Please try again.","payment_cancelled":"Payment was canceled","checkout_session_invalid":"Your payment session was updated. Please try again.","payment_session_refresh_failed":"We could not refresh your payment session. Please refresh the page and try again."},"poll":{"processing":"Submitting vote, please wait","error":"An error occurred saving the vote. Please try again"},"quiz":{"view_results":"View Results"},"select2":{"load_more":"Loading more results\u2026","no_result_found":"No results found","searching":"Searching\u2026","loaded_error":"The results could not be loaded."}};
//# sourceURL=forminator-front-scripts-js-extra
jQuery(function () {
window.Forminator_Cform_Paginations = window.Forminator_Cform_Paginations || [];
window.Forminator_Cform_Paginations[3204] =
{"has-pagination":false,"pagination-header-design":"show","pagination-header":"nav","last-steps":"Finish","last-previous":"Previous","pagination-labels":"default","has-paypal":false,"progress-bar-type":"progress","page-number-text":"Page %1$s of %2$s"};
(function () {
var selector = "#forminator-module-3204[data-forminator-render=\"0\"]",
options = {"form_type":"custom-form","inline_validation":true,"print_value":false,"rules":"\"phone-1\": {},\"email-1\": {\n\"email\": false,},\n","messages":"\"phone-1\": {\n\"phone\": \"Please enter a valid phone number.\",\n},\n\"email-1\": {\n},\n","conditions":{"fields":[],"relations":{"name-1":[],"phone-1":[],"checkbox-1":[],"email-1":[],"textarea-1":[],"hidden-1":[],"submit":[]}},"calendar":"{\"days\":[\"Su\",\"Mo\",\"Tu\",\"We\",\"Th\",\"Fr\",\"Sa\"],\"months\":[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"]}","paypal_config":{"live_id":"","sandbox_id":"","redirect_url":"https:\/\/yesiskiyou.org\/resources","form_id":3204},"forminator_fields":["address","calculation","captcha","consent","currency","custom","date","email","gdprcheckbox","group","hidden","html","checkbox","name","number","page-break","password","paypal","phone","postdata","radio","rating","section","select","slider","stripe-ocs","stripe","text","textarea","time","upload","url"],"general_messages":{"calculation_error":"Failed to calculate field.","payment_require_ssl_error":"SSL required to submit this form, please check your URL.","payment_require_amount_error":"PayPal amount must be greater than 0.","form_has_error":"Please correct the errors before submission."},"payment_require_ssl":false,"has_loader":true,"loader_label":"Submitting...","calcs_memoize_time":300,"is_reset_enabled":true,"has_stripe":false,"has_paypal":false,"submit_button_class":""};
var initForminatorModule = function ( isElementorCall ) {
var $module = jQuery( selector ).not( '.forminator-initialized' );
if ( ! isElementorCall ) {
// Copies inside a popup are initialized on popup show instead. Filtered per
// element since the selector can match a copy in the page and one in a popup.
$module = $module.filter( function () {
return ! jQuery( this ).closest( '[data-elementor-type="popup"]' ).length;
} );
}
if ( ! $module.length ) {
return;
}
$module.addClass( 'forminator-initialized' ).forminatorFront( options );
};
// Small delay to ensure the markup Elementor inserted is ready.
var initFromElementor = function () {
setTimeout( function () {
initForminatorModule( true );
}, 100 );
};
if ( window.elementorFrontend ) {
// Every opening builds a fresh copy that has to be initialized again.
jQuery( document ).on( 'elementor/popup/show', initFromElementor );
// `hooks` only exists once Elementor has run its own ready callback.
if ( typeof elementorFrontend.hooks !== 'undefined' ) {
elementorFrontend.hooks.addAction( 'frontend/element_ready/global', function ( $scope ) {
if ( $scope.find( selector ).length ) {
initFromElementor();
}
} );
}
}
initForminatorModule( false );
})();
if (typeof ForminatorValidationErrors !== 'undefined') {
var forminatorFrontSubmit = jQuery(ForminatorValidationErrors.selector).data('forminatorFrontSubmit');
if (typeof forminatorFrontSubmit !== 'undefined') {
forminatorFrontSubmit.show_messages(ForminatorValidationErrors.errors);
}
}
if (typeof ForminatorFormHider !== 'undefined') {
var forminatorFront = jQuery(ForminatorFormHider.selector).data('forminatorFront');
if (typeof forminatorFront !== 'undefined') {
jQuery(forminatorFront.forminator_selector).find('.forminator-row').hide();
jQuery(forminatorFront.forminator_selector).find('.forminator-pagination-steps').hide();
jQuery(forminatorFront.forminator_selector).find('.forminator-pagination-footer').hide();
}
}
});