PageSourceSearch

https://masshire-nscareers.org/wp-content/plugins/registrations-fo…/frontend/js/rtec-scripts.min.js?ver=3.2.2

js masshire-nscareers.org collected 2026-09-28 11:02:38 UTC 27,260 bytes, 73 lines download raw bytes

1window.rtecRecaptchaCallback=function(){if(typeof jQuery!=='undefined'){var $=jQuery;rtecInitializeRecaptcha()}else{if(document.readyState==='loading'){document.addEventListener('DOMContentLoaded',function(){if(typeof jQuery!=='undefined'){rtecInitializeRecaptcha()}})}else{setTimeout(function(){if(typeof jQuery!=='undefined'){rtecInitializeRecaptcha()}},100)}}};function rtecInitializeRecaptcha(){if(typeof grecaptcha==='undefined'||typeof grecaptcha.render!=='function'){return}
2var $=jQuery;if(typeof window.rtec==='undefined'){window.rtec={}}
3window.rtec.recaptchas={};$('.rtec-form-field.rtec-recaptcha').each(function(index){$(this).find('.rtec-g-recaptcha').attr('id','rtec-recaptcha-'+index);window.rtec.recaptchas['rtec-recaptcha-'+index]=grecaptcha.render('rtec-recaptcha-'+index,{sitekey:$('.rtec-form-field.rtec-recaptcha').first().find('.rtec-g-recaptcha').attr('data-sitekey'),'theme':'light'})})}
4jQuery(document).ready(function($){var SPINNER_HTML='<div class="rtec-spinner-container"><div class="rtec-spinner-circle"></div></div>';var RtecCommon={spinnerHTML:function(){return SPINNER_HTML},startProcessing:function($target,context,before){if(before===undefined){before=!1}
5if(context==='button'){$target.attr('aria-busy','true');$target.wrap('<div class="rtec-processing-wrap-flex rtec-is-processing"></div>');$target.addClass('rtec-fade').prop('disabled',!0);if(before){$target.before(SPINNER_HTML)}else{$target.after(SPINNER_HTML)}}else if(context==='area'){$target.wrap('<div class="rtec-processing-wrap rtec-is-processing"></div>');$target.addClass('rtec-fade');$target.after(SPINNER_HTML)}else if(context==='element'){$target.addClass('rtec-fade rtec-is-processing');$target.append(SPINNER_HTML)}},stopProcessing:function($target,context){setTimeout(function(){if(context==='button'){$target.closest('.rtec-processing-wrap-flex').find('.rtec-spinner-container').remove();$target.unwrap('.rtec-processing-wrap-flex');$target.removeClass('rtec-fade').prop('disabled',!1).attr('aria-busy','false')}else if(context==='area'){$target.closest('.rtec-processing-wrap').find('.rtec-spinner-container').remove();$target.removeClass('rtec-fade');$target.unwrap('.rtec-processing-wrap')}else if(context==='element'){$target.find('.rtec-spinner-container').remove();$target.removeClass('rtec-fade rtec-is-processing')}},500)},showLoading:function($element){$element.addClass('rtec-is-processing');if($element.find('.rtec-spinner-container').length===0){$element.append(SPINNER_HTML)}},hideLoading:function($element){$element.removeClass('rtec-is-processing rtec-fade');$element.find('.rtec-spinner-container').fadeOut(200,function(){$(this).remove()})}};window.RtecCommon=RtecCommon;function rtecHandleServerError($context,opts){opts=opts||{};var msg=(typeof rtec!=='undefined'&&rtec.translations&&rtec.translations.serverError)?rtec.translations.serverError:'Something went wrong. Please try again.';var $notice=$('<div class="rtec-attendance tribe-events-notices rtec-warning" role="alert"><strong>'+msg+'</strong></div>');if($context&&$context.length){$context.find('.rtec-attendance.rtec-warning').remove();$context.prepend($notice)}else if($('.rtec').length){$('.rtec').first().find('.rtec-attendance.rtec-warning').remove();$('.rtec').first().prepend($notice)}
6if(opts.stopProcessing&&opts.stopProcessing.length&&window.RtecCommon){window.RtecCommon.stopProcessing(opts.stopProcessing,opts.processingContext||'area')}
7if(opts.enableButtons&&opts.enableButtons.length){opts.enableButtons.prop('disabled',!1).css('opacity',1)}}
8if(typeof window.rtecInit==='undefined'){window.rtecInit=function(){$('.rtec').addClass('rtec-initialized');$('.rtec-js-show').show();$('.rtec-js-hide').hide();if($('#rtec-js-move-flag').length||$('.rtec-js-placement').length||$('footer').find('.rtec').length||$('footer').find('.rtec-outer-wrap').length||$('footer').find('.rtec-success-message').length){var $moveEl=$('#rtec-js-move-flag'),rtecLocation=typeof $('.rtec-outer-wrap').attr('data-location')!=='undefined'?$('.rtec-outer-wrap').attr('data-location'):!1;if(!rtecLocation){rtecLocation=typeof $('#rtec-js-move-flag').attr('data-location')!=='undefined'?$('#rtec-js-move-flag').attr('data-location'):'tribe_events_single_event_before_the_content'}
9if($('.rtec-outer-wrap.rtec-js-placement').length){$moveEl=$('.rtec-outer-wrap.rtec-js-placement')}else if($('.rtec').length){$moveEl=$('.rtec')}
9else if($('.rtec-success-message').length){$moveEl=$('.rtec-success-message')}
10if($('.tribe-events-single-event-description').length){if(rtecLocation==='tribe_events_single_event_after_the_content'){$('.tribe-events-single-event-description').first().after($moveEl)}else{$('.tribe-events-single-event-description').first().before($moveEl)}}else if($('.tribe-events-single-section.tribe-events-event-meta').length&&rtecLocation==='tribe_events_single_event_after_the_content'){$('.tribe-events-single-section.tribe-events-event-meta').first().before($moveEl)}else if($('.tribe-events-schedule').length){if(rtecLocation==='tribe_events_single_event_after_the_content'){if($('.tribe-block.tribe-block__event-price').prev('p').length){$('.tribe-block.tribe-block__event-price').prev('p').after($moveEl)}else if($('.tribe-block.tribe-block__organizer__details').prev('p').length){$('.tribe-block.tribe-block__organizer__details').prev('p').after($moveEl)}else if($('.tribe-block.tribe-block__venue').prev('p').length){$('.tribe-block.tribe-block__venue').prev('p').after($moveEl)}else{$('.tribe-events-schedule').first().after($moveEl)}}else{$('.tribe-events-schedule').first().after($moveEl)}}else if($('.tribe-events-single .tribe_events').length){$('.tribe-events-single .tribe_events').first().prepend($moveEl)}else if($('.tribe-events-single h1').length){$('.tribe-events-single h1').first().after($moveEl)}else if($('.tribe-events-single h2').length){$('.tribe-events-single h2').first().after($moveEl)}else if($('.elementor-widget-theme-post-content').length){if(rtecLocation==='tribe_events_single_event_after_the_content'){$('.elementor-widget-theme-post-content').first().after($moveEl)}else{$('.elementor-widget-theme-post-content').first().before($moveEl)}
11$moveEl.addClass('elementor-element')}else if($('.tec-events-elementor-event-widget__title').length){$('.tec-events-elementor-event-widget__title').first().after($moveEl);$moveEl.addClass('elementor-element')}
12if($('.rtec-login-wrap').length){$('.rtec-login-wrap').each(function(){var $context=$(this).closest($('.tribe-events-single'));$context.find('.rtec-success-message').first().after($('.rtec-login-wrap').closest('.rtec-event-meta'))})}}
13$('.rtec').each(function(index){var $rtec=$(this);rtecCheckHoneypot($rtec);if($(this).closest('.rtec-outer-wrap').length&&$(this).closest('.rtec-outer-wrap').find('.rtec-already-registered-options').length){var $outerWrap=$(this).closest('.rtec-outer-wrap'),$form=$(this).closest('.rtec-outer-wrap').find('.rtec-already-registered-options form'),sendUnregisterText='';$form.find('input[type=submit]').each(function(){sendUnregisterText=$(this).val()});$form.on('submit',function(event){event.preventDefault();var action='rtec_send_unregister_link';if(window.RtecCommon){window.RtecCommon.startProcessing($form,'area')}
14$form.find('input[type=submit]').prop('disabled',!0).css('opacity',.1);var submittedData={'action':action,'event_id':$outerWrap.find('.rtec').attr('data-event'),'email':$form.find('input[name=rtec-visitor_email]').val()};$.ajax({url:rtec.ajaxUrl,type:'post',data:submittedData,success:function(data){if(window.RtecCommon){var $processingWrap=$form.closest('.rtec-processing-wrap');$form.removeClass('rtec-fade');window.RtecCommon.stopProcessing($processingWrap.length?$processingWrap:$form,'area')}
15$form.find('input[type=submit]').prop('disabled',!1).css('opacity',1);if(data.trim().indexOf('{')>-1){var response=JSON.parse(data.trim());if(typeof response.success!=='undefined'){$form.replaceWith(response.success)}else if(typeof response.error!=='undefined'){var $formField=$form.find('input[name=rtec-visitor_email]').closest('.rtec-input-wrapper');if(!$formField.find('.rtec-error-message').length){$formField.append('<p class="rtec-error-message" role="alert">'+response.error+'</p>')}
16$form.find('input[name=rtec-visitor_email]').attr('aria-invalid','true')}}},error:function(){rtecHandleServerError($outerWrap.length?$outerWrap:$form.closest('.rtec'),{stopProcessing:$form,processingContext:'area',enableButtons:$form.find('input[type=submit]')})}})});$form.find('input[type=submit]').on('click',function(){$("input[type=submit]",$(this).parents("form")).prop("clicked",!1);$(this).prop("clicked","true")})}
17$rtec.find('.rtec-unregister-link').on('click',function(event){event.preventDefault();var $link=$(this);if($link.hasClass('rtec-processing')){return}
18$link.addClass('rtec-processing');var $wrapEl=$link.closest('.rtec-already-registered-options'),$rtecWrap=$wrapEl.closest('.rtec-outer-wrap'),submittedData={'event_id':$link.attr('data-event-id'),'action':'rtec_unregister_by_event_id_for_logged_in_user'};if(rtec.loggedInUnregisterNonce){submittedData.nonce=rtec.loggedInUnregisterNonce}
19if(!$wrapEl.closest('.rtec-outer-wrap').length){$rtecWrap=$('.rtec').closest('div')}
20if(window.RtecCommon){window.RtecCommon.showLoading($wrapEl)}
21$.ajax({url:rtec.ajaxUrl,type:'post',data:submittedData,success:function(data){var response=data;if(typeof data==='string'){try{response=JSON.parse(data)}catch(e){console.error('Failed to parse JSON response:',e);return}}
22if(response&&response.success&&response.data){var attendeeList=response.data.attendee_list;var attendanceCount=response.data.attendance_count;var successMessage=response.data.success_message;$rtecWrap.find('.rtec').fadeOut(400,'linear',function(){$(this).remove();if(successMessage){if($rtecWrap.find('.rtec-attendance.tribe-events-notices').length){$rtecWrap.find('.rtec-attendance.tribe-events-notices').replaceWith(successMessage)}else{$rtecWrap.append(successMessage)}
23$rtecWrap.find('.rtec-attendance').fadeIn()}});if(rtecDynamicElementsExist($rtecWrap)){var dynamicElements=rtecGetDynamicElements($rtecWrap);
23if(Array.isArray(dynamicElements)){dynamicElements.forEach(function($element){var elementType=$element.hasClass('rtec-attendee-list-meta')?'attendee-list':'attendance';if(elementType==='attendee-list'&&attendeeList){$element.replaceWith($(attendeeList))}else if(elementType==='attendance'&&attendanceCount){$element.replaceWith($(attendanceCount))}})}}}else if(response&&!response.success){var errorMessage=response.data&&response.data.message?response.data.message:'An error occurred';$wrapEl.append('<p class="rtec-error">'+errorMessage+'</p>')}
24$link.removeClass('rtec-processing');if(window.RtecCommon){window.RtecCommon.hideLoading($wrapEl)}},error:function(){$wrapEl.append('<p class="rtec-error">An error occurred while processing your request.</p>');$link.removeClass('rtec-processing');if(window.RtecCommon){window.RtecCommon.hideLoading($wrapEl)}}})})});$('.rtec-form-toggle-button').on('click',function(){$rtecEl=$(this).closest('.rtec');var useModal=typeof $rtecEl.attr('data-modal')!=='undefined';if(useModal){$rtecEl.wrap('<div class="rtec-modal-placeholder"></div>');$rtecEl.find('.rtec-form-wrapper').show();$('.rtec-modal-content').empty().prepend($rtecEl);rtecToggleModal()}else{$rtecEl.find('.rtec-toggle-on-click').toggle('slow');if($(this).hasClass('tribe-bar-filters-open')){$(this).removeClass('tribe-bar-filters-open')}else{$(this).addClass('tribe-bar-filters-open')}}});function rtecCheckHoneypot($rtecEl){if($rtecEl.find('input[name=rtec_user_comments]').length&&$rtecEl.find('input[name=rtec_user_comments]').val()!==''){if(!$rtecEl.find('.rtec-honeypot-clear-wrap').length){var errorText='I am not a robot';if(typeof rtec.translations!=='undefined'){errorText=rtec.translations.honeypotClear}
25$rtecEl.find('#rtec-form .rtec-form-field').last().after('<div class="rtec-honeypot-clear-wrap">'+'<button class="rtec-honeypot-clear rtec-error">'+errorText+'</button>'+'</div>');$rtecEl.find('.rtec-honeypot-clear').on('click',function(){$(this).closest('.rtec-error').remove();$rtecEl.find('input[name=rtec_user_comments]').val('')})}}}
26var RtecForm={validClass:'rtec-valid',invalidClass:'rtec-error',showErrorMessage:function(formEl){var $formField=formEl.closest($('.rtec-input-wrapper'));if(!$formField.find('.rtec-error-message').length){$formField.append('<p class="rtec-error-message" role="alert">'+formEl.closest($('.rtec-form-field')).attr('data-rtec-error-message')+'</p>')}
27formEl.attr('aria-invalid','true')},removeErrorMessage:function(formEl){formEl.closest($('.rtec-input-wrapper')).find('.rtec-error-message').remove();formEl.attr('aria-invalid','false')},addScreenReaderError:function(){$('#rtec .rtec-form-wrapper').prepend('<div class="rtec-screen-reader rtec-screen-reader-error" role="alert" aria-live="assertive">There were errors with your submission. Please try again.</div>')},validateLength:function(formEl,min,max){if(formEl.val().length>max||formEl.val().length<min){if(formEl.hasClass(RtecForm.validClass)){formEl.removeClass(RtecForm.validClass)}
28formEl.addClass(RtecForm.invalidClass);RtecForm.showErrorMessage(formEl)}else{if(formEl.hasClass(RtecForm.invalidClass)){formEl.removeClass(RtecForm.invalidClass)}
29formEl.addClass(RtecForm.validClass);RtecForm.removeErrorMessage(formEl)}},validateOption:function($input){var eqTest=!1;if(!$input.find('option').length){if($input.is(':checked')){eqTest=!0}
30var formEl=$input.closest('.rtec-input-wrapper')}else{if($input.find('option:selected').val()!==''){eqTest=!0}
31var formEl=$input}
32if(eqTest){if(formEl.hasClass(RtecForm.invalidClass)){formEl.removeClass(RtecForm.invalidClass)}
33formEl.addClass(RtecForm.validClass);RtecForm.removeErrorMessage(formEl)}else{if(formEl.hasClass(RtecForm.validClass)){formEl.removeClass(RtecForm.validClass)}
34formEl.addClass(RtecForm.invalidClass);RtecForm.showErrorMessage(formEl)}},validateRecapthca:function(val,formEl){if(val.length>0){if(formEl.hasClass(RtecForm.invalidClass)){formEl.removeClass(RtecForm.invalidClass)}
35formEl.addClass(RtecForm.validClass);RtecForm.removeErrorMessage(formEl)}else{if(formEl.hasClass(RtecForm.validClass)){formEl.removeClass(RtecForm.validClass)}
36formEl.addClass(RtecForm.invalidClass);RtecForm.showErrorMessage(formEl)}},isValidEmail:function(val){var regEx=/[^\s@]+@[^\s@]+\.[^\s@]+/;return regEx.test(val.trim())},validateEmail:function(formEl){if(RtecForm.isValidEmail(formEl.val())&&!formEl.closest('form').find('#rtec-error-duplicate').length){if(formEl.hasClass(RtecForm.invalidClass)){formEl.removeClass(RtecForm.invalidClass)}
37formEl.addClass(RtecForm.validClass);RtecForm.removeErrorMessage(formEl)}else{if(formEl.hasClass(RtecForm.validClass)){formEl.removeClass(RtecForm.validClass)}
38formEl.addClass(RtecForm.invalidClass);RtecForm.showErrorMessage(formEl)}},validateCount:function(formEl,validCountArr){var strippedNumString=formEl.val().replace(/\D/g,''),formElCount=strippedNumString.length,validCountNumbers=validCountArr.map(function(x){return parseInt(x)}),countTest=validCountNumbers.indexOf(formElCount);if(validCountArr[0]===''){countTest=formElCount-1}
39if(countTest!==-1){if(formEl.hasClass(RtecForm.invalidClass)){formEl.removeClass(RtecForm.invalidClass)}
40formEl.addClass(RtecForm.validClass);RtecForm.removeErrorMessage(formEl)}else{if(formEl.hasClass(RtecForm.validClass)){formEl.removeClass(RtecForm.validClass)}
41formEl.addClass(RtecForm.invalidClass);RtecForm.showErrorMessage(formEl)}},validateSum:function(formEl,val1,val2){var eqTest=(parseInt(val1)===parseInt(val2));if(eqTest){if(formEl.hasClass(RtecForm.invalidClass)){formEl.removeClass(RtecForm.invalidClass)}
42formEl.addClass(RtecForm.validClass);RtecForm.removeErrorMessage(formEl)}else{if(formEl.hasClass(RtecForm.validClass)){formEl.removeClass(RtecForm.validClass)}
43formEl.addClass(RtecForm.invalidClass);RtecForm.showErrorMessage(formEl)}},enableSubmitButton:function(_callback,$context){if(_callback()){$context.find('input[name=rtec_submit]').prop('disabled',!1).css('opacity',1)}},isDuplicateEmail:function(email,eventID,$context){var $emailEl=$context.find('input[name=rtec_email]'),spinnerHtml=(window.RtecCommon&&window.RtecCommon.spinnerHTML)?window.RtecCommon.spinnerHTML():'',$spinner='<span class="rtec-email-spinner">'+spinnerHtml+'</span>';$emailEl.closest('div').append($spinner);var submittedData={'action':'rtec_registrant_check_for_duplicate_email','event_id':eventID,'email':email.trim()};$.ajax({url:rtec.ajaxUrl,type:'post',data:submittedData,success:function(data){var json={'approved':!0,'message':''};if(data.trim().indexOf('{')===0){json=JSON.parse(data)}else if(data.indexOf('<p class=')>-1){json={'approved':!1,'message':data}}
44if(!json.approved){RtecForm.removeErrorMessage($emailEl);if($emailEl.hasClass(RtecForm.validClass)){$emailEl.removeClass(RtecForm.validClass)}
45$emailEl.addClass(RtecForm.invalidClass);$emailEl.closest($('.rtec-input-wrapper')).append(json.message)}else{if($emailEl.hasClass(RtecForm.invalidClass)){$emailEl.removeClass(RtecForm.invalidClass)}
46RtecForm.removeErrorMessage($emailEl)}
47$context.find('input[name=rtec_submit]').prop('disabled',!1).css('opacity',1);$context.find('.rtec-email-spinner').remove()},error:function(){$context.find('input[name=rtec_submit]').prop('disabled',!1).css('opacity',1);$context.find('.rtec-email-spinner').remove()}})}};if(typeof rtec.checkForDuplicates!=='undefined'&&rtec.checkForDuplicates==='1'){var $rtecEmailField=$('input[name=rtec_email]'),typingTimer,doneTypingInterval=1500;$rtecEmailField.on('input',function(){var $this=$(this),$context=$this.closest('.rtec');$context.find('input[name=rtec_submit]').prop('disabled',!0).css('opacity','.5');clearTimeout(typingTimer);typingTimer=setTimeout(function(){var $eventID=$context.find('input[name=rtec_event_id]').val();if(RtecForm.isValidEmail($this.val())){RtecForm.isDuplicateEmail($this.val(),$eventID,$context)}},doneTypingInterval)});$rtecEmailField.each(function(){var $this=$(this),$context=$this.closest('.rtec'),$eventID=$context.find('input[name=rtec_event_id]').val();if(RtecForm.isValidEmail($this.val())){RtecForm.isDuplicateEmail($this.val(),$eventID,$context)}})}
48$('.rtec-form').on('submit',function(event){event.preventDefault();var $form=$(this),$rtecEl=$(this).closest('.rtec');rtecCheckHoneypot($rtecEl);$rtecEl.find('input[name=rtec_submit]').prop('disabled',!0);if($rtecEl.find('.rtec-screen-reader-error').length){$rtecEl.find('.rtec-screen-reader-error').remove()}
49var required=[];$rtecEl.find('#rtec-form .rtec-form-field').each(function(){var $input=$(this).find('.rtec-field-input');if($input.attr('aria-required')=='true'){if($input.attr('data-rtec-valid-email')=='true'){RtecForm.validateEmail($input)}else if(typeof $input.attr('data-rtec-valid-count')=='string'){RtecForm.validateCount($input,$input.attr('data-rtec-valid-count').replace(' ','').split(','),$input.attr('data-rtec-count-what'))}else if(typeof $input.attr('data-rtec-recaptcha')=='string'){RtecForm.validateSum($input,$input.val(),$input.closest('.rtec-form').find('input[name='+$input.attr('name')+'_sum]').val())}else if($input.attr('data-rtec-valid-options')=='true'){RtecForm.validateOption($input)}else{RtecForm.validateLength($input,1,10000)}}else if($(this).find('.g-recaptcha').length){var recaptchaVal=typeof grecaptcha!=='undefined'?grecaptcha.getResponse($(this).find('.rtec-g-recaptcha').first().attr('id')):'';RtecForm.validateRecapthca(recaptchaVal,$(this))}});if(!$rtecEl.find('.rtec-error').length&&!$rtecEl.find('#rtec-error-duplicate').length){var $formWrap=$rtecEl.find('.rtec-form-wrapper');if(window.RtecCommon){window.RtecCommon.showLoading($formWrap)}
50$formWrap.find('#rtec-form, p').fadeTo(500,.3);$rtecEl.find('#rtec-form-toggle-button').css('visibility','hidden');var submittedData={};$rtecEl.find('#rtec-form :input').each(function(){var name=$(this).attr('name');if($(this).attr('type')==='checkbox'){if($(this).is(':checked')){submittedData[name]=$(this).val()}}else{submittedData[name]=$(this).val().trim()}});submittedData.action='rtec_process_form_submission';
50if($('input[name=lang]').length){submittedData.lang=$('input[name=lang]').val()}
51$.ajax({url:rtec.ajaxUrl,type:'post',data:submittedData,success:function(data){if(window.RtecCommon){window.RtecCommon.hideLoading($formWrap)}
52$rtecEl.find('#rtec-form-toggle-button').remove();$rtecEl.find('.rtec-form-wrapper').slideUp(400,function(){$rtecEl.find('.rtec-form-wrapper').remove()});$('html, body').animate({scrollTop:$rtecEl.offset().top-200},750);if(data!==''){$rtecEl.prepend(data);$('.rtec-already-registered-reveal, .rtec-already-registered-options').remove();if(typeof rtecAfterSubmit==='function'){rtecAfterSubmit()}
53var evt=$.Event('rtecsubmissionajax');evt.el=$rtecEl;$(window).trigger(evt)}else{console.log('no data')}},error:function(){if(window.RtecCommon){window.RtecCommon.hideLoading($formWrap)}
54$formWrap.find('#rtec-form, p').fadeTo(500,1);$rtecEl.find('#rtec-form-toggle-button').css('visibility','');$rtecEl.find('input[name=rtec_submit]').prop('disabled',!1).css('opacity',1);rtecHandleServerError($rtecEl)}})}else{$rtecEl.find('input[name=rtec_submit]').prop('disabled',!1).css('opacity',1);RtecForm.addScreenReaderError();if($('.rtec-error-message').length){$('html, body').animate({scrollTop:$rtecEl.find('.rtec-error-message').first().closest('.rtec-input-wrapper').offset().top-200},750)}}});var $rtecReveal=$('.rtec-already-registered-reveal'),$rtecOptions=$('.rtec-already-registered-options.rtec-is-visitor'),$rtecOptionsRemove=$('.rtec-already-registered-js-remove');$rtecReveal.show();$rtecOptions.hide();$rtecOptionsRemove.remove();$rtecReveal.each(function(){$(this).on('click',function(){var $thisOptions=$(this).closest('.rtec-outer-wrap').find('.rtec-already-registered-options.rtec-is-visitor');if($thisOptions.is(':visible')){$thisOptions.slideUp()}else{$thisOptions.slideDown()}})});function rtecToggleModal(){$('body').toggleClass('rtec-modal-is-open');$('.rtec-modal').each(function(){if(!$(this).hasClass('rtec-form-modal')){$(this).hide()}});$('.rtec-form-modal').show();$('.rtec-modal-backdrop, .rtec-action-modal-close').on('click',function(){var $modalRtec=$('.rtec-form-modal .rtec-modal-content').find('.rtec');$modalRtec.find('.rtec-form-wrapper').hide();$('.rtec-modal-placeholder').replaceWith($modalRtec);$('.rtec-register-button').show();$('body').removeClass('rtec-modal-is-open')})}
55function rtecToggleActionModal(){$('.rtec-modal').each(function(){if($(this).hasClass('rtec-form-modal')){$(this).hide()}});$('body').toggleClass('rtec-modal-is-open');$('.rtec-modal-backdrop, .rtec-action-modal-close').on('click',function(){$('.rtec-modal').hide();$('body').removeClass('rtec-modal-is-open');var evt=$.Event('rtecAfterModalClose');evt.el=$(this);$(window).trigger(evt)})}
56function rtecMaybeModalInit(){if($('.rtec-modal').length){$('.rtec-modal').each(function(){if(!$(this).hasClass('rtec-form-modal')){rtecToggleActionModal();var evt=$.Event('rtecAfterModalInit');evt.el=$(this);$(window).trigger(evt)}})}}rtecMaybeModalInit();function rtecDynamicElementsExist($context){if($context.find('.rtec-attendee-list-meta').length){return!0}
57if($context.find('.rtec-attendance-display').length){return!0}
58return!1}
59function rtecGetDynamicElements($context){var dynamicElements=[];if($context.find('.rtec-attendee-list-meta').length){dynamicElements.push($context.find('.rtec-attendee-list-meta'))}
60if($context.find('.rtec-attendance-display').length){dynamicElements.push($context.find('.rtec-attendance-display'))}
61return dynamicElements}
62function rtecSetToPending($elements){if(window.RtecCommon){if(Array.isArray($elements)){$elements.forEach(function($element){window.RtecCommon.showLoading($element)})}else{window.RtecCommon.showLoading($elements)}}}
63function rtecSetToReady($elements){if(window.RtecCommon){if(Array.isArray($elements)){$elements.forEach(function($element){window.RtecCommon.hideLoading($element)})}else{window.RtecCommon.hideLoading($elements)}}}
64$('#rtec-confirm-unregister-form').on('submit',function(event){event.preventDefault();var $form=$(this);if(window.RtecCommon){window.RtecCommon.startProcessing($form,'area')}
65$form.find('button').prop('disabled',!0).css('opacity',.1);var submittedData={'action':'rtec_confirm_unregistration','event_id':$form.find('input[name=event_id]').val(),'rtec_unregister_confirm':$form.find('input[name=rtec_unregister_confirm]').val()};$.ajax({url:rtec.ajaxUrl,type:'post',data:submittedData,success:function(data){if(window.RtecCommon){window.RtecCommon.stopProcessing($form,'area')}
66$form.find('button').prop('disabled',!1).css('opacity',1);if(data.trim().indexOf('<')>-1){$form.empty().append(data);$('#rtec-confirm-unregister').find('.rtec-attendance').fadeIn()}
67var eventId=$form.find('input[name=event_id]').val();var $wrap=$form.closest('.rtec-outer-wrap').length?$form.closest('.rtec-outer-wrap'):$('.rtec-outer-wrap').first();if(eventId&&$wrap.length){var evt=$.Event('rtecregistrationchange');evt.el=$wrap;evt.eventId=eventId;$(window).trigger(evt)}},error:function(){if(window.RtecCommon){window.RtecCommon.stopProcessing($form,'area')}
68$form.find('button').prop('disabled',!1).css('opacity',1);rtecHandleServerError($form.closest('#rtec-confirm-unregister').length?$form.closest('#rtec-confirm-unregister'):$('.rtec').first())}})});function rtecRefreshOnRegistrationChange(event){var $rtecEl=event.el&&event.el.closest('.rtec-outer-wrap').length?event.el.closest('.rtec-outer-wrap'):(event.el||$());var eventId=(event.eventId!=null&&event.eventId!=='')?String(event.eventId):(typeof $rtecEl.find('.rtec').attr('data-event')!=='undefined'?$rtecEl.find('.rtec').attr('data-event'):(event.el&&event.el.attr('data-event')));if(!eventId){return}
69if(!rtecDynamicElementsExist($rtecEl)){return}
70dynamicElements=rtecGetDynamicElements($rtecEl);rtecSetToPending(dynamicElements);$.ajax({url:rtec.ajaxUrl,type:'post',data:{'action':'rtec_refresh_event_info','event_id':eventId},success:function(data){rtecSetToReady(dynamicElements);var response=data;if(typeof data==='string'){try{response=JSON.parse(data)}catch(e){console.error('Failed to parse JSON response:',e);return}}
71if(response&&response.success&&response.data){var attendeeList=response.data.attendee_list;var attendanceCount=response.data.attendance_count;
71if(Array.isArray(dynamicElements)){dynamicElements.forEach(function($element){var elementType=$element.hasClass('rtec-attendee-list-meta')?'attendee-list':'attendance';if(elementType==='attendee-list'&&attendeeList){$element.replaceWith($(attendeeList))}else if(elementType==='attendance'&&attendanceCount){$element.replaceWith($(attendanceCount))}})}}}})}
72$(window).on('rtecsubmissionajax',function(event){var $rtecEl=event.el.closest('.rtec-outer-wrap').length?event.el.closest('.rtec-outer-wrap'):event.el;var eventId=typeof $rtecEl.attr('data-event')!=='undefined'?$rtecEl.attr('data-event'):event.el.attr('data-event');if(eventId&&$rtecEl.length){var changeEvt=$.Event('rtecregistrationchange');changeEvt.el=$rtecEl;changeEvt.eventId=eventId;$(window).trigger(changeEvt)}});$(window).on('rtecregistrationchange',rtecRefreshOnRegistrationChange)}}
73if($('.rtec').length&&!$('.rtec').hasClass('rtec-initialized')){rtecInit()}})

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.