1window.StudentRenderer=(function(){"use strict";function setText(root,selector,value){if(value){var el=root.querySelector(selector);el&&(el.textContent=value)}}function setImage(root,selector,src,alt){var el=root.querySelector(selector);if(el){if(!src){el.hidden=!0;return}el.src=src,alt&&(el.alt=alt),el.hidden=!1}}function setLink(root,selector,href,text){var el=root.querySelector(selector);el&&(href&&(el.href=href),text&&(el.textContent=text))}function fillList(root,itemSelector,items,fillItemFn){var slots=root.querySelectorAll(itemSelector);slots.forEach(function(slot,index){var data=items&&items[index];if(!data){slot.hidden=!0;return}slot.hidden=!1,fillItemFn(slot,data)})}function renderAccentTheme(root,config){var theme=config.accentTheme;theme&&(theme.primary&&root.style.setProperty("--nj-primary",theme.primary),theme.secondary&&root.style.setProperty("--nj-secondary",theme.secondary),theme.accent&&root.style.setProperty("--nj-accent",theme.accent),theme.highlight&&root.style.setProperty("--nj-highlight",theme.highlight))}function renderHero(root,config){if(setText(root,"[data-nj-badge]",config.hero.badgeText),setText(root,"[data-nj-hero-title]",config.hero.title),setText(root,"[data-nj-hero-subtitle]",config.hero.subtitle),setImage(root,"[data-nj-hero-logo]",config.hero.logoImage,config.hero.logoAlt),config.hero.backgroundGradient){var heroEl=root.querySelector("[data-nj-hero]");heroEl&&(heroEl.style.background=config.hero.backgroundGradient)}}function renderBenefits(root,config){var benefits=config.benefits;benefits&&(setText(root,"[data-nj-benefits-heading]",benefits.headingText),setText(root,"[data-nj-benefits-value]",benefits.totalValueText),fillList(root,"[data-nj-benefit-item]",benefits.items,function(slot,item){setImage(slot,"[data-nj-benefit-icon]",item.iconImage,item.title),setText(slot,"[data-nj-benefit-title]",item.title),setText(slot,"[data-nj-benefit-desc]",item.description)}))}function renderCoupon(root,config){var coupon=config.coupon;if(coupon){setText(root,"[data-nj-coupon-code]",coupon.code),setText(root,"[data-nj-coupon-discount]",coupon.discountText),setText(root,"[data-nj-coupon-desc]",coupon.description),setText(root,"[data-nj-coupon-expiry]",coupon.expiryText);var copyBtn=root.querySelector("[data-nj-coupon-copy]"),codeEl=root.querySelector("[data-nj-coupon-code]");copyBtn&&codeEl&&!copyBtn.dataset.njBound&&(copyBtn.dataset.njBound="true",copyBtn.addEventListener("click",function(){var code=codeEl.textContent;code&&(navigator.clipboard&&navigator.clipboard.writeText?navigator.clipboard.writeText(code).then(function(){announceCopy(copyBtn)}):announceCopy(copyBtn))}))}}function announceCopy(button){var original=button.getAttribute("data-nj-copy-label")||button.textContent;button.setAttribute("data-nj-copy-label",original),button.textContent="Copied!",window.setTimeout(function(){button.textContent=original},1800)}function renderEmi(root,config){var emi=config.emi;if(emi){setText(root,"[data-nj-emi-title]",emi.title),setText(root,"[data-nj-emi-desc]",emi.description),setText(root,"[data-nj-emi-tenure]",emi.minTenureText);var highlightEl=root.querySelector("[data-nj-emi-highlight]");highlightEl&&(emi.highlightText?(highlightEl.textContent=emi.highlightText,highlightEl.hidden=!1):highlightEl.hidden=!0)}}
1function renderServiceCenter(root,config){var center=config.serviceCenter;center&&(setText(root,"[data-nj-service-center-title]",center.title),setText(root,"[data-nj-service-center-name]",center.name),setText(root,"[data-nj-service-center-city]",center.cityLabel),setText(root,"[data-nj-service-center-address]",center.address),setText(root,"[data-nj-service-center-hours]",center.hours),center.phone&&setLink(root,"[data-nj-service-center-call]","tel:+"+center.phone,null),center.whatsappNumber&&setLink(root,"[data-nj-service-center-whatsapp]","https://wa.me/"+center.whatsappNumber,null),center.mapsUrl&&setLink(root,"[data-nj-service-center-maps]",center.mapsUrl,null))}function renderSupport(root,config){var support=config.support;support&&(setText(root,"[data-nj-support-title]",support.title),setText(root,"[data-nj-support-desc]",support.description),setText(root,"[data-nj-support-response]",support.responseTimeText),setLink(root,"[data-nj-support-link]",support.whatsappLink,null),support.callNumber&&setLink(root,"[data-nj-support-call]","tel:+"+support.callNumber,null))}function renderDelivery(root,config){var delivery=config.delivery;delivery&&(setText(root,"[data-nj-delivery-title]",delivery.title),setText(root,"[data-nj-delivery-desc]",delivery.description),setText(root,"[data-nj-delivery-days]",delivery.estimatedDaysText))}function renderPlacement(root,config){var placement=config.placement;placement&&(setText(root,"[data-nj-placement-title]",placement.title),setText(root,"[data-nj-placement-desc]",placement.description),fillList(root,"[data-nj-placement-item]",placement.technologies,function(slot,techName){slot.textContent=techName}))}
1function renderSuccessStories(root,config){var stories=config.successStories,section=root.querySelector("[data-nj-success-stories-section]");if(section){if(!stories||!stories.length){section.hidden=!0;return}section.hidden=!1,fillList(root,"[data-nj-story-item]",stories,function(slot,story){setImage(slot,"[data-nj-story-avatar]",story.avatarImage,story.studentName),setText(slot,"[data-nj-story-quote]",story.quote),setText(slot,"[data-nj-story-name]",story.studentName),setText(slot,"[data-nj-story-course]",story.course)})}}function renderAccessories(root,config){fillList(root,"[data-nj-accessory-item]",config.accessories,function(slot,item){setImage(slot,"[data-nj-accessory-image]",item.image,item.title),setText(slot,"[data-nj-accessory-title]",item.title),setText(slot,"[data-nj-accessory-desc]",item.description)})}function renderFaq(root,config){fillList(root,"[data-nj-faq-item]",config.faq,function(slot,item){setText(slot,"[data-nj-faq-question-text]",item.question),setText(slot,"[data-nj-faq-answer]",item.answer)}),bindFaqAccordion(root)}function bindFaqAccordion(root){var faqList=root.querySelector("[data-nj-faq-list]");!faqList||faqList.dataset.njBound||(faqList.dataset.njBound="true",faqList.addEventListener("click",function(event){var trigger=event.target.closest("[data-nj-faq-question]");if(trigger){var item=trigger.closest("[data-nj-faq-item]");if(item){var isOpen=item.getAttribute("data-nj-open")==="true";faqList.querySelectorAll("[data-nj-faq-item]").forEach(function(other){other.setAttribute("data-nj-open","false")}),isOpen||item.setAttribute("data-nj-open","true")}}}))}function renderFinalCta(root,config){var finalCta=config.finalCta;finalCta&&(setText(root,"[data-nj-final-title]",finalCta.title),setText(root,"[data-nj-final-subtitle]",finalCta.subtitle),setLink(root,"[data-nj-final-primary]",finalCta.primaryCtaUrl,finalCta.primaryCtaText),setLink(root,"[data-nj-final-secondary]",finalCta.secondaryCtaUrl,finalCta.secondaryCtaText))}function render(config,root){!config||!root||(renderAccentTheme(root,config),renderHero(root,config),renderBenefits(root,config),renderCoupon(root,config),renderEmi(root,config),renderServiceCenter(root,config),renderSupport(root,config),renderPlacement(root,config),renderSuccessStories(root,config),renderAccessories(root,config),renderDelivery(root,config),renderFaq(root,config),renderFinalCta(root,config))}return{render:render}})(); 2//# sourceMappingURL=/cdn/shop/t/409/assets/student-renderer.js.map?v=72602656075556618271791177283
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.