X
function sync(){var rows=[];for(var n=2;n<=count;n++){var obj={student:n};box.querySelectorAll('[data-num="'+n+'"]').forEach(function(f){obj[f.getAttribute('data-key')]=f.value});rows.push(obj)}nativeArea.value=JSON.stringify(rows);nativeArea.dispatchEvent(new Event('input',{bubbles:true}));nativeArea.dispatchEvent(new Event('change',{bubbles:true}))}
box.addEventListener('input',sync);sync();
}
function syncRegistrationForm(){fillOrderMeta();addStudents()}new MutationObserver(syncRegistrationForm).observe(document.body,{childList:true,subtree:true});setInterval(syncRegistrationForm,700);
});
+n.toFixed(2)};var s=document.createElement('div');s.className='kido-selection-summary';s.innerHTML='Your selections '+count+' student'+(count>1?'s':'')+' × '+dateList.length+' camp day'+(dateList.length===1?'':'s')+' '+district+' '+loc+' '+dateList.join(' ')+(count>1?' Automatic same-household discount: 10% off tuition at checkout.':'')+'
Tuition subtotal'+money(tuitionSubtotal)+'
'+(count>1?'
Household discount (10%)−'+money(discountAmt)+'
':'')+'
Balance due today'+money(balanceDue)+'
Full payment is collected securely at checkout.
';variants.parentNode.insertBefore(s,variants)}variants.style.display='none'}
}
setTimeout(setup,400);setTimeout(setup,1200);setTimeout(setup,2500);setInterval(function(){var q=document.querySelector('input[aria-label="Quantity"]');if(q){q.value=totalQty;q.setAttribute('value',totalQty);q.readOnly=true;if(q.parentElement)q.parentElement.style.display='none'}},400);
function findFieldItem(text){var labels=[].slice.call(document.querySelectorAll('label,.title,.form-item-title'));var lab=labels.find(function(x){return (x.textContent||'').indexOf(text)>-1});return lab&&(lab.closest('.form-item,.field-list-item,.form-field')||lab.parentElement)}
function fillOrderMeta(){var dateItem=findFieldItem('Selected Camp Dates');if(dateItem){var f=dateItem.querySelector('textarea,input');if(f&&f.value!==dateList.join('\n')){f.value=dateList.join('\n');f.dispatchEvent(new Event('input',{bubbles:true}));f.dispatchEvent(new Event('change',{bubbles:true}))}dateItem.style.display='none';dateItem.querySelectorAll('[required]').forEach(function(x){x.removeAttribute('required')})}if(count===1){['Additional Students','Same-Household Discount Confirmation'].forEach(function(t){var it=findFieldItem(t);if(it){it.style.display='none';it.querySelectorAll('[required]').forEach(function(f){f.removeAttribute('required')})}})}}
function addStudents(){
if(count<2||document.getElementById('kido-extra-students'))return;
var labels=[].slice.call(document.querySelectorAll('label,.title,.form-item-title'));
var autoLabel=labels.find(function(x){return (x.textContent||'').indexOf('Additional Students')>-1});
if(!autoLabel)return;
var item=autoLabel.closest('.form-item,.field-list-item,.form-field')||autoLabel.parentElement;
var nativeArea=item&&item.querySelector('textarea');
if(!nativeArea)return;
item.style.display='none';
var box=document.createElement('div');box.id='kido-extra-students';box.innerHTML='
Additional student details
Please complete one section for every additional student in this household registration.
Campers will learn the basics of computer science while creating their own interactive games and projects. Great for both first-time coders and those ready to level up.