PageSourceSearch

https://shopnow.hindustantimes.com/static-img/10s/partnership/college-vidya/affiliate-lead-form-sdk.js

js hindustantimes.com collected 2026-10-01 08:00:36 UTC 90,953 bytes, 51 lines download raw bytes

1(function(k,C){typeof exports=="object"&&typeof module<"u"?module.exports=C():typeof define=="function"&&define.amd?define(C):(k=typeof globalThis<"u"?globalThis:k||self,k.AffiliateLeadForm=C())})(this,function(){"use strict";var ro=Object.defineProperty;var no=(k,C,z)=>C in k?ro(k,C,{enumerable:!0,configurable:!0,writable:!0,value:z}):k[C]=z;var Ie=(k,C,z)=>no(k,typeof C!="symbol"?C+"":C,z);const k='@import"https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap";.leadForm{font-family:Lato,sans-serif;display:block}.leadFormContainer{padding-top:10px}.leadFormContainer::-webkit-scrollbar{display:none}.leadForm .form-container{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);overflow-y:auto;width:100%;max-width:500px;margin:0 auto;padding:32px 16px 16px;background-image:url(https://shopnow.hindustantimes.com/static-img/10s/partnership/college-vidya/lfbg.svg);background-size:cover;background-repeat:no-repeat;border-radius:12px;box-shadow:var(--shadow);
1height:100vh;z-index:2147483647}.leadForm .form-container .error-message{margin-top:4px;margin-bottom:24px;border-radius:4px;display:flex;align-items:center;color:#ff4d4f;font-size:12px;font-weight:400;line-height:16px}.leadForm .form-group:has(+.error-message),.leadForm .form-group:has(+.helper-text),.leadForm #dynamic-fields-container .form-group:has(+.error-message){margin-bottom:0}.leadForm .sparkle{position:absolute;top:4px;width:70px;height:70px}.leadForm .sparkle-left{left:17%;transform:rotate(90deg)}.leadForm .sparkle-right{left:64%}.leadForm .form-container .logo{max-width:104px;margin:0 auto 12px}.leadForm .form-container .logo img{width:100%;height:100%}.leadForm .form-container .input-gradient-1{background-image:var(--input-gradient-1)}.leadForm .form-container .input-gradient-2{background-image:var(--input-gradient-2)}.leadForm .close-button{position:absolute;top:8px;right:8px;cursor:pointer;padding:8px;transition:color .2s}.leadForm .close-button:hover{color:var(--text-dark)}.leadForm .heading{text-align:center;margin-bottom:14px}.leadForm .heading h2{color:var(--text-dark);text-align:center;font-family:Lato,sans-serif;font-size:18px;font-weight:700;line-height:28px;padding:0}.leadForm .form-group{position:relative;margin-bottom:24px}.leadForm .form-group input,.leadForm .form-group select{width:100%;padding:12px;border:1px solid var(--border-color);border-radius:10px;font-size:14px;color:var(--text-dark);outline:none;transition:border-color .2s,padding-top .2s;background-color:#fff;height:44px;line-height:20px}.leadForm .form-group input:focus,.leadForm .form-group select:focus{border-color:var(--primary-color)}.leadForm .form-group input:disabled{background-color:#f2f2f2;cursor:not-allowed}.leadForm .cityList input:focus{border-color:var(--primary-color);border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom:0px}.leadForm .afld-city-list-cnt .city-list-item:active,.leadForm .afld-city-list-cnt .city-list-item:hover{background:linear-gradient(95deg,#2256dc1a,#0d9fef1a 60.35%),#fff;margin:4px;padding:8px;border-radius:4px}.leadForm .form-group label{position:absolute;top:50%;left:12px;transform:translateY(-50%);padding:0 2px;color:#616161;font-size:12px;transition:all .2s;pointer-events:none}.leadForm .form-group input:focus+label,.leadForm .form-group input:not(:placeholder-shown)+label,.leadForm .form-group select:focus+label,.leadForm .form-group select:not(:placeholder-shown)+label{top:0;left:12px;font-size:12px;color:#616161;z-index:7}.leadForm .form-group input:focus~span.country-code,.leadForm .form-group input:not(:placeholder-shown)~span.country-code{display:block}.leadForm .form-group .country-code{position:absolute;top:12px;left:12px;font-size:14px;font-weight:400;line-height:20px;display:none}.leadForm .form-group .phone-number{padding-left:44px;font-size:14px;font-weight:400}.leadForm .form-group label:after{content:"";position:absolute;top:50%;left:0;height:25%;width:100%;transform:translateY(-50%);background-color:var(--white);color:var(--white);font-size:12px;line-height:12px;transition:all .2s;z-index:-1}.checkbox-container input[required]+label:before,.radio-container input[required]+label:before{content:"*";color:var(--afld-error-color);font-size:14px;font-weight:700;margin-right:4px;position:static}.leadForm .form-group[data-required=true] .checkbox-container label:before,.leadForm .form-group .radio-container label:before{content:"*";color:var(--afld-error-color);font-size:14px;font-weight:700;margin-right:4px;position:static}.leadForm .form-group input:focus+label:before,.leadForm .form-group input:not(:placeholder-shown)+label:before{display:none}.leadForm .afld-drop-down{position:absolute;top:50%;right:12px;transform:translateY(-50%);display:flex;width:20px;height:20px;padding:1.667px;justify-content:center;align-items:center;width:17px;height:17px;border:none;background:none}.leadForm .afld-drop-down .afld-down-arrow{width:100%;height:100%}.leadForm .helper-text{color:#616161;font-size:12px;font-weight:400;line-height:16px;margin-bottom:24px;padding:0;display:block!important}.leadForm .phone-input{display:flex;align-items:center;gap:.5rem}.leadForm .phone-input .prefix{color:var(--text-medium);font-weight:500}.leadForm .submit-btn{width:100%;height:48px;background:linear-gradient(95deg,#2256dc,#0d9fef 60.35%);color:var(--white);border:none;border-radius:10px;font-size:16px;font-weight:700;line-height:24px;margin-top:4px;cursor:not-allowed;transition:background-color .2s}.leadForm .submit-btn:disabled{background:linear-gradient(0deg,#fff9,#fff9),linear-gradient(95deg,#2256dc,#0d9fef 60.35%);cursor:pointer}.leadForm .submit-btn:hover{background-color:var(--primary-hover)}.leadForm .afld-city-list-cnt{display:none;max-height:167px;overflow:scroll;border-bottom-left-radius:20px;border-bottom-right-radius:20px;border:solid 1px var(--primary-color);background-color:#fff;position:absolute;flex-direction:column;z-index:20;width:100%}.leadForm .afld-city-list-cnt::-webkit-scrollbar{display:none}.leadForm .afld-city-list-cnt .city-list-item{display:block;padding:12px;align-items:center;cursor:pointer}.leadForm .form-group .cityList label{top:15%}.leadForm .form-group .cityList{border-radius:8px 8px 0 0}.leadForm .form-group .input-field.aff-input-error{border-color:var(--afld-error-color)}.leadForm .form-group .error-message{position:absolute;top:75%;padding:13px 16px;left:-17px;border-radius:4px;display:flex;align-items:center;color:var(--afld-error-color);z-index:8;color:#ff4d4f;font-size:12px;font-weight:400;line-height:16px;cursor:default}
1.leadForm .otp-group{display:none}.leadForm .otp-group .resend-otp-btn{color:#2256dc;font-size:14px;font-weight:700;line-height:20px;text-decoration-line:underline;text-decoration-style:dotted;text-decoration-skip-ink:none;text-decoration-thickness:8%;border:none}.leadForm .otp-group .helper-text{color:#555;font-family:Lato,sans-serif;font-size:12px;font-weight:400;line-height:20px;display:flex;align-items:center;gap:8px;margin-bottom:24px;margin-top:12px}.leadForm .otp-group .form-group .otp-inputs{display:flex;height:44px;align-items:center;border:1px solid var(--border-color);border-radius:10px;background-color:#fff}.leadForm .otp-group .form-group .otp-inputs input{width:100%;height:100%;border:none;outline:none;font-size:1rem;color:var(--text-dark);padding:0;display:flex;justify-content:center;align-items:center;text-align:center;background-color:#fff}.leadForm .otp-group .form-group .otp-inputs span{height:20px;padding:0 12px;border-right:1px solid #D9D9D9;border-radius:0;position:relative}.leadForm .otp-group .form-group .otp-inputs span:first-child{padding-left:12px}.leadForm .otp-group .form-group .otp-inputs span:last-child{padding-right:12px;border:none}.leadForm .otp-group .form-group .otp-inputs span:before{content:"";position:absolute;top:97%;left:45%;height:1px;width:7px;transform:translateY(-50%);background-color:#18365f}.leadForm .otp-group .form-group span:has(input:focus):before,.leadForm .otp-group .form-group span:has(input:not(:placeholder-shown)):before{display:none}.leadForm .otp-group .form-group .otp-inputs:has(span input:focus){border:1px solid var(--primary-color)}.leadForm .otp-group .form-group .otp-inputs.approved{border-color:#43a047}.leadForm .otp-group .form-group .otp-inputs.approved span input{color:#43a047}.leadForm .otp-group .form-group label{position:absolute;transform:translateY(-50%);top:0;left:12px;font-size:12px;color:#616161;padding:0 2px;z-index:7}.leadForm .otp-group .form-group label:before{display:none}.leadForm .otp-group .resend-otp-btn span{display:none}.leadForm .otp-group .resend-otp-btn span .wait{display:block}.leadForm .otp-group .resend-otp-btn span .wait .afld-resend-timer{color:var(--primary-color);font-weight:700;font-size:14px;line-height:20px;text-decoration-line:underline;text-decoration-style:dotted;text-decoration-skip-ink:none;text-decoration-thickness:8%}.leadForm .form-group .otp-inputs.otp-verified{border:1px solid #43A047}.leadForm .form-group .otp-inputs.otp-verified span input{color:#43a047}.leadForm .form-group .otp-inputs.wrong-otp,.leadForm .form-group .otp-inputs.wrong-otp:has(span input:focus){border:1px solid var(--afld-otp-invalid)}.leadForm .form-group .otp-inputs.wrong-otp input,.leadForm .otp-inputs .wrong-otp span input{color:var(--afld-otp-invalid)}.leadForm .form-group:nth-child(2){margin-bottom:4px}.leadForm .form-group:nth-child(2):has(.error-message){margin-bottom:16px}
1.leadForm.symbiosis .form-container .logo{min-width:200px;height:42px}.leadForm.symbiosis .sparkle-left{left:7%}.leadForm.symbiosis .sparkle-right{left:77%}.leadForm.gulzar .form-container .logo{min-width:185px;height:56px}.leadForm.gulzar .sparkle-left{left:16%}.leadForm.gulzar .sparkle-right{left:69%}.leadForm.symbiosis .form-group select.input-field{background-image:url(https://shopnow.hindustantimes.com/static-img/10s/partnership/college-vidya/input-down.png);background-repeat:no-repeat;background-position:right 12px center;background-size:14px 14px;appearance:none;-webkit-appearance:none;-moz-appearance:none}#dynamic-fields-container .form-group{margin-bottom:24px}.afld-drop-down.rotate img{transform:rotate(180deg);transition:transform .3s ease}.lead-form-disc-cnt{background:none;background-color:transparent;background-image:none}.lead-form-disc-row{display:flex;align-items:flex-start;gap:8px;margin-bottom:15px;background:none;background-color:transparent;background-image:none}.lead-form-disc-checkbox{width:12px;height:12px;min-width:12px;min-height:12px;margin-top:2px;cursor:pointer;background:none;background-color:transparent;-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}.lead-form-disc-text{font-size:12px;line-height:1.4;color:#666;cursor:pointer;flex:1;background:none;background-color:transparent;background-image:none;border:none;outline:none}.custom-select-wrapper{position:relative;width:100%;margin-bottom:24px;-webkit-user-select:none;user-select:none}.custom-select-trigger{background-color:#fff;border:1px solid var(--border-color);padding:12px;border-radius:10px;display:flex;align-items:center;cursor:text;transition:all .2s ease;position:relative;height:44px;color:var(--text-dark);font-size:14px;line-height:20px}.custom-select-trigger:hover,.custom-select-trigger.active{border-color:var(--primary-color)}.form-group .custom-select-trigger.active:has(input:placeholder-shown){border-bottom-left-radius:0;border-bottom-right-radius:0}.form-group .custom-select-trigger .search-input{flex-grow:1;padding:0;border:none;outline:none;background:transparent;font-size:1rem;transition:transform .2s ease,opacity .2s ease;z-index:1}.form-group .custom-select-trigger:has(input:placeholder-shown) .placeholder{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:#616161;font-size:12px;pointer-events:none;transition:all .2s ease;z-index:0}.form-group .custom-select-trigger:has(input:not(:placeholder-shown)) .placeholder{display:none}.custom-select-trigger.active .placeholder,.custom-select-trigger .search-input:focus+.placeholder,.custom-select-trigger .search-input:not(:placeholder-shown)+.placeholder{top:-.6rem;left:.75rem;font-size:12px;color:#616161;transform:translateY(0);padding:0 2px}.custom-select-trigger .arrow{width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid #0b1c38;transition:transform .2s ease;margin-left:.5rem}.custom-select-trigger.active .arrow{transform:rotate(180deg)}.form-group .custom-options{position:absolute;top:100%;left:0;right:0;background-color:#fff;border:1px solid var(--primary-color);border-bottom-left-radius:20px;border-bottom-right-radius:20px;z-index:10;visibility:hidden;opacity:0;transform:translateY(-10px);transition:all .2s ease;max-height:167px;overflow-y:auto;-ms-overflow-style:none;scrollbar-width:none}.form-group .custom-options::-webkit-scrollbar{display:none}.form-group .custom-options.open{visibility:visible;opacity:1;transform:translateY(0)}.form-group .custom-select-trigger.active+.custom-options{border-top:none}.custom-option{padding:12px;cursor:pointer;transition:background-color .2s ease;display:block}.custom-option.hidden{display:none}.form-group .custom-option:hover{background:linear-gradient(95deg,#2256dc1a,#0d9fef1a 60.35%),#fff;margin:4px;padding:8px;border-radius:4px}.custom-option.selected{background-color:#eff6ff;color:#1d4ed8;font-weight:600}.custom-select-trigger .placeholder:after{content:"";position:absolute;top:50%;left:0;height:20%;width:100%;transform:translateY(-50%);background-color:var(--white);color:var(--white);font-size:12px;line-height:12px;transition:all .2s;z-index:-1}.custom-select-wrapper.form-group:has(.error-message){margin-bottom:44px}.checkbox-container{display:flex;align-items:center;justify-content:center;margin-bottom:12px;position:relative}.checkbox-container:last-child{margin-bottom:0}.checkbox-container input[type=checkbox]{-moz-appearance:none;appearance:none;-webkit-appearance:none;width:16px;height:16px;border:1px solid var(--border-color);border-radius:4px;cursor:pointer;position:relative;top:0}.checkbox-container input[type=checkbox]:checked{background-color:var(--primary-color);border-color:var(--primary-color)}.checkbox-container input[type=checkbox]:checked:after{content:"";position:absolute;top:4px;left:8px;width:5px;height:10px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}.checkbox-container label{color:var(--text-dark);font-size:14px;cursor:pointer;position:static;transform:none;padding:0}.form-group>label:first-child{font-weight:700;color:#616161;font-size:12px;margin-bottom:8px;display:block;position:relative}.leadForm .form-group .checkbox-container input:not(:placeholder-shown)+label,.leadForm .form-group .radio-container input:not(:placeholder-shown)+label{top:45%}.leadForm .form-group .radio-container input{height:25px}.leadForm .form-group[data-required=true] label:before,.leadForm .custom-select-wrapper.form-group[data-required=true] span:before{content:"*";position:absolute;top:50%;right:-4px;transform:translateY(-50%);font-size:14px;font-weight:700;color:var(--afld-error-color);display:block}.custom-select-trigger.aff-input-error{border-color:var(--afld-error-color)}.leadForm .form-group:has(.checkbox-container) .error-message{top:25%}.thank-you-container{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;gap:20px;font-family:Lato,sans-serif}.leadForm .form-container:has(.thank-you-container){padding:0 16px}.thank-you-container .tick{width:120px;height:120px}.thank-you-container .tick img{width:100%;height:100%}.thank-you-container .message{display:flex;flex-direction:column;align-items:center;gap:12px}.thank-you-container .message h1{color:var(--Colors-Neutral-Text-colorTextPrimary, #0B1C38);text-align:center;font-size:20px;font-weight:700;line-height:32px}.thank-you-container .message p{color:#616161;text-align:center;font-size:16px;font-weight:500;line-height:24px}@media (min-width: 1024px){.leadForm .form-container:has(.thank-you-container){min-height:348px;padding:40px 32px}}:root{--primary-color: #7aa5eb;--primary-hover: #6495ed;--text-dark: #0b1c38;--text-medium: #18365f;--text-light: #616161;--border-color: #d9d9d9;--background-light: #f0f4f8;--white: #ffffff;--afld-error-color: #ff0000;--afld-otp-invalid: #d32f2f;
1--shadow: 0 4px 20px rgba(0, 0, 0, .1);--gradient: linear-gradient(to bottom right, #fff, #e6f0ff);--input-gradient-1: linear-gradient(#f1f7ff, #ffffff);--input-gradient-2: linear-gradient(#f1f7ff, #ffffff)}*{margin:0;padding:0;box-sizing:border-box}.grecaptcha-badge{visibility:hidden}.afld-bg-image{position:fixed;top:0;left:0;width:100%;height:100%;filter:blur(5px);-webkit-filter:blur(5px);background-position:center;background-repeat:no-repeat;background-size:cover;z-index:2147483646;-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px)}';class C{constructor(){Ie(this,"_our_document",null);Ie(this,"_our_node")}set document(t){this._our_document=t}get document(){const{_our_document:t}=this;return t??globalThis.document}set Node(t){this._our_node=t}get Node(){const{_our_node:t}=this;return t??globalThis.Node}useGlobalDocument(){this._our_document=null}useGlobalNode(){this._our_node=null}}const z=new C,Ye=["circle","clipPath","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","line","linearGradient","marker","mask","metadata","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use","view"],We="http://www.w3.org/2000/svg";let Ee=!1;function $e(e){return Ye.includes(e)}function ze(e,t,...o){const{document:r,Node:i}=z;Ee||(Ee=!0,console.warn("texsaur SVG support is experimental!"));const n=r.createElementNS(We,e);let a;for(a of Object.keys(t)){a=a.toString();const c=t[a];n.setAttribute(a,c)}for(let c of o){if(Array.isArray(c)){n.append(...c);continue}c instanceof i?n.appendChild(c):n.append(c)}return n}function He(e,t,...o){const{document:r,Node:i}=z;if(typeof e=="function")return e(t??{},o);if($e(e))return ze(e,t??{},...o);const n=r.createElement(e);let a=t??{},c;for(c of Object.keys(a)){const u=(p,_)=>console.warn(e,`received incorrect value type for property '${c}': expected `,typeof p,"instead of",typeof _);c=c.toString();const h=a[c];switch(c){case"style":{if(typeof h=="object")for(const[p,_]of Object.entries(h)){const I=p;typeof _=="string"&&(n.style[I]=_)}else{if(typeof h=="string")break;u("object | string",h)}continue}}if(/^on/.test(c)){typeof h=="function"?n.addEventListener(c.substring(2),a[c]):u("function",h);continue}try{const p=n;typeof p[c]>"u"?n.setAttribute(c,h):p[c]=h}catch(p){console.error(`Could not set ${c} on ${n.tagName}`,p),u(typeof n[c],h)}}for(let u of o.flat()){if(u instanceof i){n.appendChild(u);continue}if(typeof u!="string"&&(u!=null&&u[Symbol.iterator])){n.append(...u);continue}n.append(u)}return n}function je(e,t){return t}const d=He;d.Fragment=je;const H={AFFILIATE_DOMAIN:"https://qa-affiliate-api.hindustantimes.com"},F="https://images.hindustantimes.com/partnership/images",v={DOWN:F+"/college-vidya/input-down.png",COLLEGE_LOGO:F+"/college-vidya/logo.png",SPARKLE:F+"/college-vidya/sparkle.gif",CLOSE:F+"/college-vidya/close.png",SAVE:F+"/college-vidya/save.gif",VC_NOW_LOGO:F+"/vc-now/vc-now-logo.svg",SYMBIOSIS_LOGO:F+"/symbiosis/SSBS-new-logo.webp",CT_UNIVERSITY_LOGO:F+"/ct-university/ct-university.jpg",LARSEN_TOUBRO_LOGO:F+"/larsen-toubro/larsen-toubro-logo.jpg",GREAT_LAKES_LOGO:F+"/great-lakes/great-lakes.jpg",GULZAR_LOGO:F+"/gulzar/gulzar-logo.png",LG_LOGO:F+"/lg/lg-logo.jpg",VENUS_CONSTRUCTIONS_LOGO:"https://www.livehindustan.com/static-content/1y/lh/partnership/images/venus/venus-star.svg"},s={LEAD_FORM_ID:"afld-lead-form",FULL_NAME_ID:"afld-full-name",EMAIL_ID:"afld-email",EMAIL_TEXT_ID:"afld-email-text",CITY_ID:"afld-city",CITY_LIST_CONTAINER:"afld-city-list-cnt",PHONE_ID:"afld-phone",SUBMIT:"afld-submit",IMG_LOGO:"afld-logo",OTP_RESEND_BTN:"afld-otp-resend",LEAD_FORM_SDK_ID:"affiliate-lead-form-sdk",LEAD_FORM_ORGANISATION_ID:"afld-organization",LEAD_FORM_DESIGNATION_ID:"afld-designation",LEAD_FORM_COURSE_DROP_DOWN_ID:"afld-course-dropdown",LEAD_FORM_
1SPECIALISATION_ID:"afld-specialisation",LEAD_FORM_THANK_YOU_ID:"afld-thank-you",LEAD_FORM_CHECKBOX_ID:"afld-checkbox",LEAD_FORM_WORK_EXPERIENCE_ID:"afld-work-experience",LEAD_FORM_TV_TYPE_ID:"afld-lg-tv-type",LEAD_FORM_HEADING_TEXT:"afld-form-heading"},l={COLLEGE_VIDYA:"college-vidya",VC_NOW:"vc-now",SYMBIOSIS:"symbiosis",CT_UNIVERSITY:"ct-university",LARSEN_TOUBRO:"larsen-toubro",GREAT_LAKES:"great-lakes",GULZAR:"gulzar",LG:"lg",VENUS_CONSTRUCTIONS:"venus"};function Ke(){return{data:{"68ca835d6a7b5787b3cf030a":{vendorLogo:"https://catalog-management.s3.ap-south-1.amazonaws.com/college-vidya/uploads/catalog-management/IIMC-APDS.webp",vendorId:"college-vidya",categoryId:"nishant-education",formHeading:"Get Free Counselling",textFieldwithoutvalidation:{type:"text",label:"textFieldwithoutvalidation",id:"textFieldwithoutvalidation",min:1,max:38,required:!0},textFieldAlphanumeric:{type:"text",label:"textFieldAlphanumeric",id:"textFieldAlphanumeric",validation:"alphanumeric",min:1,max:48,required:!0},textFieldNumeric:{type:"text",label:"textFieldNumeric",id:"textFieldNumeric",validation:"numeric",min:1,max:38},textFieldText:{type:"text",label:"textFieldText",id:"textFieldText",validation:"text",min:1,max:27},dropDownStatic:{type:"dropdown",label:"dropDownStatic",id:"dropDownStatic",required:!0,options:[{label:"first",value:"first"},{label:"second",value:"second"}]},dropDownDynamic:{type:"dropdown",label:"dropDownDynamic",id:"dropDownDynamic",apiUrl:"https://api.com/options?static={dropDownStatic}",dependee:"dropDownStatic"},checkBoxStatic:{type:"checkbox",label:"checkBoxStatic",id:"checkBoxStatic",required:!0}}}}}const be=Ke();let Z;const se=()=>{try{if(Z)return Z;const e=new URL(window.location.href),t=window.location.href;let i=(t.split(".com/")[1]||"").split("/")||[],n=i[0]||"",a="";if(i.length>0){const p=i[i.length-1].match(/-(\d+)\.html$/);p&&p[1]&&(a=p[1])}const c=e.searchParams.get("utm_medium"),u=e.searchParams.get("utm_source");Z={sectionName:n,utmMedium:c,utmSource:u,currentUrl:t,storyId:a}}catch(e){console.error(e)}return Z};function N(e){for(var t=e+"=",o=document.cookie.split(";"),r=0;r<o.length;r++){let i=o[r];for(;i.charAt(0)==" ";)i=i.substring(1,i.length);if(i.indexOf(t)==0)return i.substring(t.length,i.length)}return null}function Xe(){let e=localStorage.getItem("deviceId");return e||(e=("10000000-1000-4000-8000"+-1e11).replace(/[018]/g,t=>(t^crypto.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16)),localStorage.setItem("deviceId",e)),e}function X(e){let t=null,o=N("afldOfferDetails");o&&(o=JSON.parse(atob(o)));let r=null;return e===l.VC_NOW?r=N("afldVcNowofferDetails"):e===l.SYMBIOSIS?r=N("afldSymbiosisOfferDetails"):e===l.CT_UNIVERSITY?r=N("afldCtUniversityOfferDetails"):e===l.LARSEN_TOUBRO?r=N("afldLarsenToubroOfferDetails"):e===l.GREAT_LAKES?r=N("afldGreatLakesOfferDetails"):e===l.LG?r=N("afldLgOfferDetails"):e===l.VENUS_CONSTRUCTIONS&&(r=N("afldVenusConstructionsOfferDetails")),r&&(r=JSON.parse(atob(r))),r&&o?t={...o,...r}:(o&&!e||e.includes("vidya")||e.includes("gulzar"))&&(t=o),_e(o,r,e),t}function _e(e,t,o){t&&(o===l.VC_NOW?q("afldVcNowofferDetails",btoa(JSON.stringify(t)),7):o===l.SYMBIOSIS?q("afldSymbiosisOfferDetails",btoa(JSON.stringify(t)),7):o===l.CT_UNIVERSITY?q("afldCtUniversityOfferDetails",btoa(JSON.stringify(t)),7):o===l.LARSEN_TOUBRO?q("afldLarsenToubroOfferDetails",btoa(JSON.stringify(t)),7):o===l.GREAT_LAKES?q("afldGreatLakesOfferDetails",btoa(JSON.stringify(t)),7):o===l.LG?q("afldLgOfferDetails",btoa(JSON.stringify(t)),7):o===l.VENUS_CONSTRUCTIONS&&q("afldVenusConstructionsOfferDetails",btoa(JSON.stringify(t)),7)),e&&(delete e.pageUrl,delete e.storyUrl,delete e.deviceId,delete e.campaign,q("afldOfferDetails",btoa(JSON.stringify(e)),7))}function q(e,t,o){var a,c;let r=new Date;r.setTime(r.getTime()+24*o*60*60*1e3);var i="expires="+r.toUTCString();let n=((a=document==null?void 0:document.location)==null?void 0:a.hostname)||".hindustantimes.com";((c=document==null?void 0:document.location)==null?void 0:c.hostname)==="localhost"&&(n="localhost"),document.cookie=e+"="+t+";"+i+`;domain=${n};path=/`}function Je(){let e="HT";return window.location.hostname.indexOf("livemint.com")>-1&&(e="LM"),e}function Ze(){const e=window.location.hash;if(e){const t=e.split("#")[1];if(t){const o=t.match(/-(\d+)-(\d+)$/);if(o){let r=document.getElementById(t);if(!r){let i="aff-partner-"+o[1]+"-"+o[2];r=document.getElementById(i)}if(r)return{storyId:r.getAttribute("data-vars-storyid"),position:o[2],storyTitle:r.getAttribute("data-vars-title"),authorName:r.getAttribute("data-vars-author"),automated:r.getAttribute("data-vars-automated")}}}}return null}function Qe(e,t,o){let r=null;return e===l.VC_NOW&&(t!=null&&t.designation)&&(t!=null&&t.organisation)&&(t!=null&&t.workExperience||o!=="IIMA EPAIB")?r={organisation:t==null?void 0:t.organisation,designation:t==null?void 0:t.designation,workExperience:t==null?void 0:t.workExperience}:e===l.SYMBIOSIS&&(t!=null&&t.course)?r={course:t==null?void 0:t.course}:e===l.LARSEN_TOUBRO||e===l.VENUS_CONSTRUCTIONS?r=t:e===l.CT_UNIVERSITY?r={...(t==null?void 0:t.course)&&{course:t.course},...(t==null?void 0:t.specialisation)&&{specialisation:t.specialisation}}:e===l.GREAT_LAKES?r={...(t==null?void 0:t.designation)&&{designation:t.designation},...(t==null?void 0:t.workExperience)&&{workExperience:t.workExperience}}:e===l.LG&&(t!=null&&t.tvType)&&(r={tvType:t==null?void 0:t.tvType}),r}function et(e,t){return e===l.VC_NOW?(delete t.designation,delete t.organisation,delete t.workExperience):e===l.SYMBIOSIS?delete t.course:e===l.CT_UNIVERSITY&&(delete t.course,delete t.specialisation),t}async function Q(e){try{const t=await fetch(e,{method:"GET",headers:{"Content-Type":"application/json"}});if(t.ok)return await t.json();console.error("Failed to fetch:",t.status,t.statusText)}catch(t){console.error("Error making GET request:",t)}return null}async function tt(e){try{const t=await fetch(H.AFFILIATE_DOMAIN+"/api/v1/leads",{method:"POST",headers:{"content-type":"application/json","x-device-id":e.deviceId,ht_token:N("ht_token")},body:JSON.stringify(e)});if(t.ok)return await t.json();console.error("Error submitting lead:",t.statusText)}catch(t){console.error("Error:",t)}}async function le(e,t){const o=H.AFFILIATE_DOMAIN+"/api/v1/leads/verification",r={process:t,payload:e};try{const i=await fetch(o,{method:"PUT",headers:{"content-type":"application/json","x-device-id":e.deviceId,ht_token:N("ht_token")},body:JSON.stringify(r)});if(i.ok)return await i.json();console.error("Error updating lead:",i.statusText)}catch(i){console.error("Error:",i)}return null}const ce={PARAMS:{OTP_RESEND:"OTP_RESEND",OTP_VERIFY:"OTP_VERIFY",CAMPAIGN:"CAMPAIGN"}};function ot(e,t){setTimeout(()=>{pe(),o()},1);function o(){const i=document.getElementById(s.LEAD_FORM_THANK_YOU_ID);i&&(e===l.SYMBIOSIS?i.classList.add(l.SYMBIOSIS):e===l.CT_UNIVERSITY?i.classList.add(l.CT_UNIVERSITY):e===l.LARSEN_TOUBRO?i.classList.add(l.LARSEN_TOUBRO):e===l.GULZAR?i.classList.add(l.GULZAR):e===l.VENUS_CONSTRUCTIONS&&i.classList.add(l.VENUS_CONSTRUCTIONS))}function r(){return e===l.VC_NOW?v.VC_NOW_LOGO:e===l.SYMBIOSIS?v.SYMBIOSIS_LOGO:e===l.CT_UNIVERSITY?v.CT_UNIVERSITY_LOGO:e===l.LARSEN_TOUBRO?v.LARSEN_TOUBRO_LOGO:e===l.GREAT_LAKES?v.GREAT_LAKES_LOGO:e===l.GULZAR?v.GULZAR_LOGO:e===l.LG?v.LG_LOGO:e===l.VENUS_CONSTRUCTIONS?v.VENUS_CONSTRUCTIONS_LOGO:(t==null?void 0:t.vendorLogo)||v.COLLEGE_LOGO}return d("div",null,d("div",{className:"leadForm",id:"afld-thank-you"},d("div",{className:"form-container",role:"dialog","aria-labelledby":"form-heading"},d("div",{className:"close-button",id:"afld-close"},d("img",{src:v.CLOSE,"aria-label":"Close form",alt:"close"},"×")),d("div",{className:"thank-you-container"},d("div",{className:"logo"},d("img",{src:r(),alt:"Lead Form Logo"})),d("div",{className:"tick"},d("img",{src:v.SAVE,alt:"save"})),d("div",{className:"message"},d("h1",null,"Thank you for the details!"),d("p",null,"Our representative will get in touch with you soon."))))),d("div",{className:"afld-bg-image"}))}const ve=(e,t,o,r,i="non_amp")=>{try{window.dataLayer=window.dataLayer||[];let n=null,a=rt();a&&(a.client==="HT"?n={event:e,data_source:i,widget_name:t,marketplace_name:a.vendor,cta_text:o,logged_in_status:N("ht_token")?"logged_in":"non_logged_in",user_ID:N("ht_token")?N("_ht_clientid"):"NA",page_type:"story",article_title:a.title,article_category:a.category,article_id:a.storyId,element:r,tracking_id:"NA",product_id:a.productId,position:a.formPosition,is_perpetual_story:a.isPerpetual,product_name:a.productName,is_automated:a.automated,author_name:a.author,target_url:"NA"}:(a.client==="LM"||a.client==="LH")&&(n={event:e,data_source:i,widget_name:t,marketplace_name:a.vendor,cta_text:o,logged_in_status:N("ht_token")?"logged_in":"non_logged_in",user_ID:N("ht_token")?N("_ht_clientid"):"NA",page_type:"story",story_title:a.title,story_category:a.category,storyId:a.storyId,element:r,tracking_id:"NA",product_id:a.productId,position:a.formPosition,is_perpetual_story:a.isPerpetual,product_name:a.productName,is_automated:a.automated,author_name:a.author,target_url:"NA"})),n&&dataLayer.push(n)}catch(n){console.error("GA4 event: ",e,"exception: ",n)}};function rt(){const e=document.getElementById(s.LEAD_FORM_ID);return e?{client:e.getAttribute("data-vars-client"),productId:e.getAttribute("data-vars-product-id"),productName:e.getAttribute("data-vars-product-name"),formPosition:e.getAttribute("data-vars-form-position"),isPerpetual:e.getAttribute("data-vars-is-perpetual"),title:e.getAttribute("data-vars-title"),category:e.getAttribute("data-vars-category"),storyId:e.getAttribute("data-vars-story-id"),automated:e.getAttribute("data-vars-automated"),author:e.getAttribute("data-vars-author"),vendor:nt(e)}:null}function nt(e){if(e){if(e.getAttribute("data-vars-vendor")===l.VC_NOW)return"vcnow";if(e.getAttribute("data-vars-vendor")===l.SYMBIOSIS)return"symbiosis";if(e.getAttribute("data-vars-vendor")===l.CT_UNIVERSITY)return"ct-university";if(e.getAttribute("data-vars-vendor")===l.LARSEN_TOUBRO)return"larsen-toubro";if(e.getAttribute("data-vars-vendor")===l.GREAT_LAKES)return"great lakes";if(e.getAttribute("data-vars-vendor")===l.GULZAR)return"gulzar";if(e.getAttribute("data-vars-vendor")===l.LG)return"lg";if(e.getAttribute("data-vars-vendor")===l.VENUS_CONSTRUCTIONS)return"venus constructions"}return"college vidya"}function ee(){let e=!1;const t=document.getElementById(s.FULL_NAME_ID);if(t){t.value&&t.value.slice(-1)!==" "&&!isNaN(t.value.slice(-1))&&(t.value=t.value.slice(0,-1));let o=t.parentElement;o&&t.value&&t.value.trim().length>2?(P(o,t),e=!0):G(o,t,"Full Name is required")}return e}function it(){const e=document.getElementById(s.FULL_NAME_ID);return!!(e&&e.value&&e.value.trim().length>2)}function at(){const e=document.getElementById(s.LEAD_FORM_ORGANISATION_ID);return!!(e&&e.value&&e.value.trim().length>2)}function st(){const e=document.getElementById(s.LEAD_FORM_DESIGNATION_ID);return!!(e&&e.value&&e.value.trim().length>2)}function lt(){const e=document.getElementById(s.LEAD_FORM_WORK_EXPERIENCE_ID);return!!(e&&xe(e))}function Le(){let e=!1;const t=document.getElementById(s.LEAD_FORM_WORK_EXPERIENCE_ID);if(t){let o=t.parentElement;t.value=t.value.replace(/[^0-9.]/g,""),t.value=t.value.replace(/(\..*)\./g,"$1"),xe(t)?(P(o,t),e=!0):G(o,t,"Please enter valid Work Experience, it must be in years (e.g., 2, 2.5, 2.25, 1.11, etc. up to two decimals)")}return e}function xe(e){var a;const t=/^(?:[0-9]+(?:\.[0-9]{1,2})?)$/,o=e.parentElement,r=60;let i=parseFloat(e.value);const n=parseFloat((a=e.value)==null?void 0:a.split(".")[1])||0;return o&&e.value&&t.test(e.value)&&e.value.trim().length>0&&!isNaN(i)&&i<=r&&!isNaN(n)&&n>=0&&n<=11}function Oe(){let e=!1;const t=document.getElementById(s.LEAD_FORM_ORGANISATION_ID);if(t){let o=t.parentElement;o&&t.value&&t.value.trim().length>2?(P(o,t),e=!0):G(o,t,"Organisation is required")}return e}function Se(){let e=!1;const t=document.getElementById(s.LEAD_FORM_DESIGNATION_ID);if(t){let o=t.parentElement;o&&t.value&&t.value.trim().length>2?(P(o,t),e=!0):G(o,t,"Designation is required")}return e}let Ae=[],Ne=[];function ct(e){Ae=e}function Te(){return Ae}function dt(e){Ne=e}function Ce(){return Ne}function ut(e){const t=document.getElementById(s.LEAD_FORM_COURSE_DROP_DOWN_ID),o=Te();let r=!1;
1if(e==l.CT_UNIVERSITY&&t&&t.value&&Array.isArray(o))o.forEach(i=>{i===t.value.trim()&&(r=!0)});else if(t&&(t!=null&&t.value))return!0;return r}function pt(e){const t=document.getElementById(s.LEAD_FORM_SPECIALISATION_ID),o=Ce();let r=!1;if(t&&t.value&&Array.isArray(o)&&e===l.CT_UNIVERSITY)o.forEach(i=>{i===t.value.trim()&&(r=!0)});else if(t&&t.value)return!0;return r}function Fe(e){var c;const t=document.getElementById(s.LEAD_FORM_COURSE_DROP_DOWN_ID),o=Te();let r=!1;if(!t)return!1;const i=(c=t.value)==null?void 0:c.trim(),n=t.parentElement;let a="Course is required";if(e===l.LG?a="TV Type is required":e===l.CT_UNIVERSITY&&(a="Please select a valid course"),e===l.CT_UNIVERSITY){const u=o==null?void 0:o.includes(i);n&&i&&u?(P(n,t),r=!0):G(n,t,a)}else n&&i?(P(n,t),r=!0):G(n,t,a);return r}function we(){var a;const e=document.getElementById(s.LEAD_FORM_SPECIALISATION_ID),t=Ce();let o=!1;if(!e)return!1;const r=(a=e.value)==null?void 0:a.trim(),i=e.parentElement,n=t==null?void 0:t.includes(r);return i&&r&&n?(P(i,e),o=!0):G(i,e,"Please select a valid specialisation"),o}function mt(){const e=document.getElementById(s.EMAIL_ID),t=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;return!!(e&&e.value&&t.test(e.value))}function de(e){if(A(e,!0))return!1;const t=document.getElementById(s.PHONE_ID),o=/^[6-9]\d{9}$/;let r=!1;if(t){let i=t.parentElement;t.value&&o.test(t.value)&&i?(P(i,t),r=!0):(t.value&&isNaN(t.value.slice(-1))&&(t.value=t.value.slice(0,-1)),G(i,t,"Please enter a valid 10-digit phone number."))}return r}function A(e,t=!1){const o=document.getElementById(s.LEAD_FORM_ID),r=o?o.getAttribute("data-vars-product-id"):null;let i=Me(),n=it(),a=mt(),c=at(),u=st(),h=lt(),p=ut(e),_=pt(e);const I=r==="IIMA EPAIB",f=e===l.VC_NOW?c&&u&&n&&a&&i&&(I?h:!0):!0,b=e===l.SYMBIOSIS?n&&a&&i&&p:!0,M=e===l.CT_UNIVERSITY?n&&a&&i&&p&&_:!0,ie=e===l.GREAT_LAKES?n&&a&&i&&h&&u:!0,ge=e===l.VENUS_CONSTRUCTIONS?n&&a&&i:!0;t&&(j(i),ee(),te(),e===l.LG?De():(Oe(),Se(),Fe(e),we(),Le()));const K=document.getElementById(s.PHONE_ID);return n&&a&&i&&f&&b&&M&&ie&&ge?(K.disabled=!1,K.style.cursor="pointer",!1):(K.disabled=!0,K.style.cursor="not-allowed",!0)}function te(){const e=document.getElementById(s.EMAIL_ID),t=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;let o=!1;if(e){let r=e.parentElement;const i=document.getElementById(s.EMAIL_TEXT_ID);if(e.value&&t.test(e.value)&&r)P(r,e),i&&(i.style.display="block"),o=!0;else return G(r,e,"Please enter a valid email address."),i&&(i.style.display="none"),!1}return o}function j(e){var r;if((((r=document.getElementById(s.LEAD_FORM_ID))==null?void 0:r.getAttribute("data-vars-vendor"))||"college vidya")==l.LARSEN_TOUBRO)return!0;const o=document.getElementById(s.CITY_ID);return Re(o,e,"City is required")}function Re(e,t,o){if(!e)return!1;const r=e.parentElement;return r?(e.style.borderColor=t?"var(--primary-color)":"var(--afld-error-color)",e.parentElement.style.borderColor=t?"var(--primary-color)":"var(--afld-error-color)",t?P(r,e):G(r,e,o),t):!1}function De(e){const t=document.getElementById(e);return Re(t,t==null?void 0:t.value,"TV Type is required")}function G(e,t,o){if(!(e.nextElementSibling&&e.nextElementSibling.classList.contains("error-message"))){let r=document.createElement("div");r.classList.add("error-message"),r.textContent=o,e.insertAdjacentElement("afterend",r),t.classList.add("aff-input-error")}}function P(e,t){if(e.nextElementSibling&&e.nextElementSibling.classList.contains("error-message")){let o=e.nextElementSibling;o&&(o.remove(),t.classList.remove("aff-input-error"))}}function ke(){var r;const e=document.querySelectorAll(".input-field"),t=document.querySelector(".submit-btn"),o=((r=document.getElementById(s.LEAD_FORM_ID))==null?void 0:r.getAttribute("data-vars-vendor"))||"college vidya";e.forEach(i=>{const n=i.id;i.addEventListener("input",function(){ue()?Nt():t.disabled=!0,oe(n,o)}),i.addEventListener("click",function(){oe(n,o)}),n===s.CITY_ID&&i.addEventListener("click",function(){A(o)})}),t.disabled=!0}function ue(){var h;const e=((h=document.getElementById(s.LEAD_FORM_ID))==null?void 0:h.getAttribute("data-vars-vendor"))||"college vidya",t=document.getElementById(s.FULL_NAME_ID).value,o=de(e),r=document.getElementById(s.EMAIL_ID).value;if(e==l.LARSEN_TOUBRO){if(!t||!r||!o)return!1}else{const p=document.getElementById(s.CITY_ID).value;if(!t||!r||!p||!o)return!1}let i=Me(),n=ee(),a=te();return de()&&a&&n&&i}function Me(){var i;if((((i=document.getElementById(s.LEAD_FORM_ID))==null?void 0:i.getAttribute("data-vars-vendor"))||"college vidya")==l.LARSEN_TOUBRO)return!0;const t=document.getElementById(s.CITY_ID).value,o=document.querySelectorAll(".city-list-item");let r=!1;return t&&o.forEach(n=>
1{n.textContent===t&&(r=!0)}),r}function oe(e,t){switch(e){case s.FULL_NAME_ID:ee(),A(t);break;case s.PHONE_ID:de(t);break;case s.EMAIL_ID:te(),A(t);break;case s.LEAD_FORM_ORGANISATION_ID:Oe(),A(t);break;case s.LEAD_FORM_WORK_EXPERIENCE_ID:Le(),A(t);break;case s.LEAD_FORM_DESIGNATION_ID:Se(),A(t);break;case s.LEAD_FORM_COURSE_DROP_DOWN_ID:Fe(t),A(t);break;case s.LEAD_FORM_SPECIALISATION_ID:we(),A(t);break;case s.LEAD_FORM_CHECKBOX_ID:te(),A(t),ee();break;default:t===l.LG&&(De(e),A(t));break}}const ft="real-estate",gt="education",ht="electronics";function yt(){const e=document.querySelector(".afld-drop-down"),t=document.getElementById(s.CITY_ID),o=document.querySelector(`.${s.CITY_LIST_CONTAINER}`);e&&t&&o&&e.addEventListener("click",function(){if(o.style.display==="flex")o.style.display="none",e.style.transform="rotate(0deg)",e.style.top="34%",t.style.setProperty("border-bottom-width","1px"),t.style.borderBottomLeftRadius="10px",t.style.borderBottomRightRadius="10px",t.style.borderColor="var(--primary-color)";else{const i=t.parentElement.querySelector(".error-message");o.style.display="flex",document.querySelectorAll(".city-list-item").forEach(a=>{a.style.display="block"}),t.style.setProperty("border-bottom-width","0px"),t.style.borderBottomLeftRadius="0px",t.style.borderBottomRightRadius="0px",t.style.borderColor="var(--primary-color)",e.style.transform="rotate(180deg)",i&&i.remove(),e.style.top="27%"}})}const Be=()=>{const e=document.querySelectorAll(".otp-inputs .input-field");e.forEach((t,o)=>{t.addEventListener("input",r=>{const i=r.target.value;if(!/^\d$/.test(i)){r.target.value="";return}if(i&&o<e.length-1&&e[o+1].focus(),i&&o>0){let a=o;for(;a>0&&e[a-1].value==="";)e[a-1].value=e[a].value,e[a].value="",a--}if(Array.from(e).every(a=>a.value.length===1)){const a=Array.from(e).map(c=>c.value).join("");It(a)}}),t.addEventListener("keydown",r=>{if(r.key==="Backspace"&&!t.value&&o>0){e[o-1].focus();const i=document.querySelector(".otp-inputs");i&&(i.classList.remove("wrong-otp"),i.querySelector(".helper-text span").textContent="Enter OTP")}})}),Tt()};async function It(e){const t=re();t.otp=e;let o=await le(t,ce.PARAMS.OTP_VERIFY);o&&o.ssoResponse.success?Ge():Et(o)}const Et=e=>{const t=document.querySelector(".helper-text span");if(t){const i=e.ssoResponse?e.ssoResponse.message.text:null;t.textContent=i||"OTP not verified"}const o=document.querySelector(".otp-inputs");o&&(o.classList.add("wrong-otp"),o.classList.remove("otp-verified"));const r=document.getElementById(s.OTP_RESEND_BTN);r&&(r.style.display="block")},Ge=()=>{const e=document.querySelector(".helper-text span");e&&(e.textContent="OTP Approved");const t=document.querySelector(".submit-btn");t.disabled=!1,t.style.cursor="pointer";const o=document.querySelector(".otp-inputs");o&&(o.classList.add("otp-verified"),o.classList.remove("wrong-otp")),document.querySelectorAll(".otp-inputs .input-field").forEach(a=>{a.disabled=!0});const i=document.getElementById(s.OTP_RESEND_BTN);i&&(i.style.display="none");const n=document.getElementById(s.LEAD_FORM_ID);n&&n.setAttribute("data-otp-verified","true")},pe=()=>{const e=document.querySelector(".leadForm"),t=document.getElementById("afld-close"),o=document.body;o&&(o.style.overflow="hidden"),e&&t.addEventListener("click",()=>{if(t){e.style.display="none";const r=document.querySelector(".afld-bg-image");r&&(r.style.display="none")}o&&(o.style.overflow="unset")})};function re(){let e=null;const t=se(),o=document.getElementById(s.LEAD_FORM_ID);o&&(e=o.getAttribute("data-vars-product-id"));let r=null,i=null,n=o.getAttribute("data-vars-vendor");if(n==l.LARSEN_TOUBRO)r=null,i=null;else{const c=document.getElementById(s.CITY_ID);c&&(r=c.getAttribute("data-vars-city-id"),i=c.getAttribute("data-vars-state-id"))}let a={categoryId:n===l.LARSEN_TOUBRO||n===l.VENUS_CONSTRUCTIONS?ft:gt,userName:document.getElementById(s.FULL_NAME_ID).value,email:document.getElementById(s.EMAIL_ID).value,mobile:document.getElementById(s.PHONE_ID).value,otp:"",cityId:r,stateId:i,otpVerified:!1,clientVerified:!1,callVerified:!1,pageUrl:t.currentUrl,storyUrl:t.currentUrl,productId:e,campaign:At(),deviceId:Xe(),medium:t.utmMedium||null,source:t.utmSource||null};return a=bt(a),a.campaign===l.VC_NOW?a=_t(a):a.campaign===l.SYMBIOSIS?a=vt(a):a.campaign===l.CT_UNIVERSITY?a=Lt(a):a.campaign===l.LARSEN_TOUBRO?a=a:a.campaign===l.VENUS_CONSTRUCTIONS?a=xt(a):a.campaign===l.GREAT_LAKES?a=Ot(a):a.campaign===l.LG&&(a=St(a)),a}function bt(e){const t=document.getElementById(s.LEAD_FORM_ID);let o={};if(t){t.querySelectorAll("input, select, textarea").forEach(c=>{const u=c.id,h=c.value;c.type==="checkbox"?c.checked?o={...o,[u]:!0}:o={...o,[u]:!1}:u&&h&&!Object.values(e).includes(h)&&!u.startsWith("afld-")&&(o={...o,[u]:h})});const i=t.getAttribute("data-vars-category");i&&(e.categoryId=i);const n=t.getAttribute("data-vars-product-id");n&&(e.productId=n);const a=t.getAttribute("data-vars-campaign-id");
1if(a&&(e.campaign=a),!e.medium){const c=t.getAttribute("data-vars-utm-medium");c&&(e.medium=c)}if(!e.source){const c=t.getAttribute("data-vars-utm-source");c&&(e.source=c)}}return{...e,extras:o}}function _t(e){const t=document.getElementById(s.LEAD_FORM_ORGANISATION_ID),o=document.getElementById(s.LEAD_FORM_DESIGNATION_ID),r=document.getElementById(s.LEAD_FORM_WORK_EXPERIENCE_ID)||"";return t!=null&&t.value&&(e={organisation:t.value,...e}),o!=null&&o.value&&(e={designation:o.value,...e}),r!=null&&r.value&&(e==null?void 0:e.productId)=="IIMA EPAIB"&&(e={workExperience:r.value,...e}),e}function vt(e){const t=document.getElementById(s.LEAD_FORM_COURSE_DROP_DOWN_ID);return t!=null&&t.value&&(e={course:t.value,...e}),e}function Lt(e){const t=document.getElementById(s.LEAD_FORM_COURSE_DROP_DOWN_ID),o=document.getElementById(s.LEAD_FORM_SPECIALISATION_ID);return t!=null&&t.value&&(e.course=t.value),o!=null&&o.value&&(e.specialisation=o.value),e}function io(e){return e}function xt(e){return e.categoryId="real-estate",e}function Ot(e){const t=document.getElementById(s.LEAD_FORM_WORK_EXPERIENCE_ID),o=document.getElementById(s.LEAD_FORM_DESIGNATION_ID);return t!=null&&t.value&&(e={workExperience:t.value,...e}),o!=null&&o.value&&(e={designation:o.value,...e}),e}function St(e){const t=document.getElementById(s.LEAD_FORM_TV_TYPE_ID);return t!=null&&t.value&&(e={tvType:t.value,...e}),e.categoryId=ht,e}function At(){const e=document.getElementById(s.LEAD_FORM_ID);if(e){if(e.getAttribute("data-vars-vendor")===l.VC_NOW)return l.VC_NOW;if(e.getAttribute("data-vars-vendor")===l.SYMBIOSIS)return l.SYMBIOSIS;if(e.getAttribute("data-vars-vendor")===l.CT_UNIVERSITY)return l.CT_UNIVERSITY;if(e.getAttribute("data-vars-vendor")===l.LARSEN_TOUBRO)return l.LARSEN_TOUBRO;if(e.getAttribute("data-vars-vendor")===l.VENUS_CONSTRUCTIONS)return l.VENUS_CONSTRUCTIONS;if(e.getAttribute("data-vars-vendor")===l.GREAT_LAKES)return l.GREAT_LAKES;if(e.getAttribute("data-vars-vendor")===l.GULZAR)return l.GULZAR;if(e.getAttribute("data-vars-vendor")===l.LG)return l.LG}return l.COLLEGE_VIDYA}
1async function me(){const e=re(),t=await tt(e),o={...e,id:t.id,userId:t.userId,otpVerified:t.otpVerified},r=Qe(e.campaign,o,e==null?void 0:e.productId),i=et(e.campaign,o);if(_e(i,r,e.campaign),o!=null&&o.otpVerified){Ge();const n=document.querySelector(".leadForm .otp-group");n&&(n.style.display="none")}else{const n=document.querySelector(".leadForm .otp-group");if(n){n.style.display="block",document.querySelector(".leadForm .otp-group .otp-inputs").classList.remove("otp-verified");const c=document.querySelector(".helper-text span");c&&(c.textContent="Didn’t receive any OTP?");const u=document.getElementById(s.OTP_RESEND_BTN);u&&(u.style.display="block"),document.querySelectorAll(".otp-inputs .input-field").forEach(p=>{p.value="",p.disabled=!1})}}}function Pe(e,t){const o=document.getElementById(s.SUBMIT);o&&o.addEventListener("click",function(){let r=re(),i=X(e);const n={deviceId:r.deviceId,...i,pageUrl:r.pageUrl,storyUrl:r.storyUrl,productId:r.productId,campaign:r.campaign,source:r.source,medium:r.medium};le(n,ce.PARAMS.CAMPAIGN);const a=document.getElementById(s.LEAD_FORM_SDK_ID);if(a){ve("card_clicked","affiliate-submit","submit","button");const c=ot(e,t);a.innerHTML="",a.appendChild(c)}})}function Nt(){const e=document.querySelector(".otp-group");if(e&&(e.style.display==="none"||e.style.display==="")){e.style.display="block";const t=document.getElementById(s.PHONE_ID);t.addEventListener("input",function(){t.value.length===10&&me()}),me()}}function Tt(){const e=document.getElementById(s.OTP_RESEND_BTN);let t=!1;e&&e.addEventListener("click",function(){const o=document.querySelectorAll(".otp-inputs .input-field"),r=document.querySelector(".leadForm .otp-inputs");if(o&&o.length>0&&r&&(o.forEach(c=>{c.value=""}),r.classList.remove("wrong-otp")),t)return;const i=re();le(i,ce.PARAMS.OTP_RESEND),t=!0,e.disabled=!0,e.textContent="Resend OTP in 30s";let n=30;const a=setInterval(()=>{n--,e.textContent=`Resend OTP in ${n}s`,n<=0&&(clearInterval(a),t=!1,e.disabled=!1,e.textContent="Resend OTP")},1e3)})}function fe(e){if(e){const t=document.getElementById(s.LEAD_FORM_ID);t&&(t.setAttribute("data-vars-city-id",e.cityId),t.setAttribute("data-vars-state-id",e.stateId));const o=document.getElementById(s.CITY_ID);o&&(o.setAttribute("data-vars-city-id",e.cityId),o.setAttribute("data-vars-state-id",e.stateId));const r=document.getElementById(s.PHONE_ID),i=document.getElementById(s.FULL_NAME_ID),n=document.getElementById(s.EMAIL_ID),a=document.getElementById(s.LEAD_FORM_ORGANISATION_ID),c=document.getElementById(s.LEAD_FORM_DESIGNATION_ID),u=document.getElementById(s.LEAD_FORM_WORK_EXPERIENCE_ID),h=document.getElementById(s.LEAD_FORM_COURSE_DROP_DOWN_ID),p=document.getElementById(s.LEAD_FORM_SPECIALISATION_ID),_=document.getElementById(s.LEAD_FORM_TV_TYPE_ID),I=document.querySelectorAll(".city-list-item");if(I&&I.forEach(f=>{const b=f.getAttribute("data-vars-state-id"),M=f.getAttribute("data-vars-city-id");b===e.stateId&&M===e.cityId&&o&&(o.value=f.textContent.trim())}),i&&(i.value=e.userName),n&&(n.value=e.email),a&&e.organisation&&(a.value=e.organisation),u&&e.workExperience&&(u.value=e.workExperience),c&&e.designation&&(c.value=e.designation),h&&e.course&&(h.value=e.course),p&&(e!=null&&e.specialisation)&&(p.value=e==null?void 0:e.specialisation),_&&(_.value=e.tvType),r){r.value=e.mobile;const f=new Event("input",{bubbles:!0});r.dispatchEvent(f)}}}function Ct(e){let t=[{widgetSerialNo:"cv-1",productId:"1",courseTitle:"Online MBA Programme",description:"Get a chance to enhance your leadership and managerial skills and foster your personal development by pursuing online MBA programme.",price:"INR 30,000 to INR 8 Lakhs",logoImage:"https://collegevidya.com/_next/image/?url=https%3A%2F%2Fd1aeya7jd2fyco.cloudfront.net%2Fbatchmate_images%2FPMP_Certification_Training.webp&w=3840&q=75",ctaText:"Unlock Course Offers",ctaLandingPage:"https://online-er.isb.edu/leadership-with-ai/index.php",partnerLogos:["https://images.hindustantimes.com/partnership/images/college-vidya/college-logo/amity.png","https://images.hindustantimes.com/partnership/images/college-vidya/college-logo/jain.png","https://images.hindustantimes.c
1om/partnership/images/college-vidya/college-logo/lpu.png","https://images.hindustantimes.com/partnership/images/college-vidya/college-logo/manipal.png","https://images.hindustantimes.com/partnership/images/college-vidya/college-logo/uttranchal-univ.png"]},{widgetSerialNo:"cv-2",productId:"195",courseTitle:"Online DBA Programme",description:"A unique programme that offers working professionals a chace to enhance their business accumen, stand out as a versatile professional and suitable for ones seeking advancement opportunity in their careers.",price:"INR 6.5 Lakhs to 10 Lakhs",logoImage:"https://collegevidya.com/_next/image/?url=https%3A%2F%2Fd1aeya7jd2fyco.cloudfront.net%2Fbatchmate_images%2FData_Science_Certification.webp&w=3840&q=75",ctaText:"Unlock Course Offers",ctaLandingPage:"https://online-er.isb.edu/leadership-with-ai/index.php",partnerLogos:["https://images.hindustantimes.com/partnership/images/college-vidya/college-logo/edgewood.png","https://images.hindustantimes.com/partnership/images/college-vidya/college-logo/eimt.png","https://images.hindustantimes.com/partnership/images/college-vidya/college-logo/esgci.png","https://images.hindustantimes.com/partnership/images/college-vidya/college-logo/europian-global.png","https://images.hindustantimes.com/partnership/images/college-vidya/college-logo/ggu.png","https://images.hindustantimes.com/partnership/images/college-vidya/college-logo/rushford.png"]},{widgetSerialNo:"cv-3",productId:"9",courseTitle:"B.Tech for Professional",description:"Fast-track your career with a B.Tech for professionals! Upgrade your skills, stay industry-ready, and boost your growth with flexible learning designed for working individuals.",price:"Rs. 60,000/Semester",logoImage:"https://collegevidya.com/_next/image/?url=https%3A%2F%2Fd1aeya7jd2fyco.cloudfront.net%2Fbatchmate_images%2FProfessional_Certificate_Programs.webp&w=3840&q=75",ctaText:"Unlock Course Offers",ctaLandingPage:"https://online-er.isb.edu/leadership-with-ai/index.php",partnerLogos:["https://images.hindustantimes.com/partnership/images/college-vidya/college-logo/lingayas-vidyapeeth.png","https://images.hindustantimes.com/partnership/images/college-vidya/college-logo/sanskriti.png","https://images.hindustantimes.com/partnership/images/college-vidya/college-logo/venkateshwar.jfif"]}];return e===l.VC_NOW?t=[{widgetSerialNo:"1",productId:"IIMI CSBL",courseTitle:"IIM Indore – Advanced Programme in Strategy & Leadership",description:"Experience 100+ hours of live online learning with IIM Indore faculty, real-world business simulations, a hands-on capstone project, and earn Executive Alumni Status from IIM Indore",price:"₹1,88,000* + GST",logoImage:"https://iimindore.vcnow.in/apcsbl/assets/images/layer22.png",ctaText:"Unlock Course Offers"},{widgetSerialNo:"2",productId:"IIMA's APQFRM",courseTitle:"IIMA Advanced Programme in Quantitative Finance and Risk Management",description:"IIM Ahmedabad: 120+ hrs live sessions, Quant Finance, campus immersion, capstone project, peer learning.",price:"₹4,00,000* + GST",logoImage:"https://images.hindustantimes.com/partnership/images/vc-now/IIMA-APQFRM.jpg",ctaText:"Unlock Course Offers"},{widgetSerialNo:"3",productId:"IIMA EPAIB",courseTitle:"IIMA AI for Business Programme",description:"Master AI-driven decision-making with IIM Ahmedabad’s Executive Programme in AI for Business. A 6–7 month course for professionals (3+ yrs exp) to lead in an AI-powered world.",price:"₹3,20,000* + GST",logoImage:"https://images.hindustantimes.com/partnership/images/vc-now/IIMA-EPAIB.png",ctaText:"Enquire Now"},{widgetSerialNo:"4",productId:"IIMC APDS",courseTitle:"IIM Calcutta APDS Programme",description:"Unlock the power of data with IIM Calcutta’s Advanced Programme in Data Sciences. This 1-year course trains professionals in Python, R, Tableau & more, blending theory with hands-on projects to master analytics and make smarter, data-driven business decisions across domains.",logoImage:"https://images.hindustantimes.com/partnership/images/vc-now/IIMC-APDS.webp",ctaText:"Check More Details"}]:e===l.SYMBIOSIS?t=[{widgetSerialNo:"1",productId:"SSBS",courseTitle:"Symbiosis School of Biological Sciences Pune",description:"Live online sessions, industry-focused biotech/biochem curriculum, and a capstone project for hands-on learning.",price:"₹5,00,000* + GST",logoImage:"https://educationpost.
1in/_next/image?url=https%3A%2F%2Fapi.educationpost.in%2Fs3-images%2F1740746022710-symbiosis.jpeg&w=3840&q=75",ctaText:"Unlock Course Offers"}]:e===l.CT_UNIVERSITY?t=[{widgetSerialNo:"1",productId:"B.Tech in AI & DS",courseTitle:"CT University",description:"Focus on research and application-based learning, Faculty with extensive experience in academia and industry, Dr. Manmohan Singh Scholarship Worth `40 Crores",price:"Starts at ₹5,20,000* + GST",logoImage:"https://images.hindustantimes.com/partnership/images/ct-university/ct-university-banner.webp",ctaText:"Unlock Course Offers"},{widgetSerialNo:"2",productId:" BBA++ Corporate programme",courseTitle:"CT University",description:"Focus on research and application-based learning, Faculty with extensive experience in academia and industry, Dr. Manmohan Singh Scholarship Worth `40 Crores",price:"Starts at ₹5,20,000* + GST",logoImage:"https://images.hindustantimes.com/partnership/images/ct-university/ct-university-banner.webp",ctaText:"Unlock Course Offers"},{widgetSerialNo:"3",productId:"School of Hotel Management,Airlines & Tourism",courseTitle:"CT University",description:"Gain industry-relevant knowledge from expert faculty with real-world experience. The program offers courses featuring the latest tools and technologies in hospitality and tourism. Benefit from career services that facilitate placements with leading brands such as Marriott, Hilton, IHG, and Taj. It fosters entrepreneurial thinking, empowering students to launch their own travel or hospitality ventures. Additionally, enjoy an active campus life with student clubs, events, and networking opportunities.",price:"Starts at ₹60,000* per sem + GST",logoImage:"https://images.hindustantimes.com/partnership/images/ct-university/ct-university-banner.webp",ctaText:"Unlock Course Offers"}]:e===l.LARSEN_TOUBRO?t=[{widgetSerialNo:"1",productId:"LT",courseTitle:"The Gateway, Parel Ext.",description:"An architectural icon by L&T Realty featuring iconic design, sky level luxury, ultra spacious residences & premium lifestyle.",price:"₹10cr + GST",logoImage:"https://shopnow.hindustantimes.com/static-img/10s/partnership/larsen-toubro/the-gateway-logo.jpg",ctaText:"Unlock Best Properties"}]:e===l.GREAT_LAKES?t=[{widgetSerialNo:"1",productId:"PGXPM",courseTitle:"PGXPM - 20-month program for professionals to enhance leadership and strategic management skills",description:"This program offers a modern and industry-aligned curriculum focused on cutting-edge technology. Students gain practical experience through hands-on learning, including live projects and internships. The education is delivered by expert faculty from both academia and industry, and is supported by a modern campus with advanced facilities. Graduates benefit from robust placement support with leading recruiters.",price:"₹12,35,460 +taxes",logoImage:"https://images.hindustantimes.com/partnership/images/great-lakes/great-lakes-1.jpg",ctaText:"Learn more"}]:e===l.GULZAR?t=[{widgetSerialNo:"1",productId:"BTech MBA",courseTitle:"BTech MBA",description:"Our program offers an industry-focused curriculum with modern tech specializations to equip you with the latest skills. You'll gain practical experience through live projects and internships, guided by expert faculty with both academic and industry backgrounds. Our state-of-the-art campus supports holistic learning, while our strong placement assistance connects you with top recruiters, ensuring a successful career launch.",price:"",logoImage:"https://images.hindustantimes.com/partnership/images/gulzar/gulzar-1.png",ctaText:"Unlock Course Offers"}]:e===l.VENUS_CONSTRUCTIONS?t=[{widgetSerialNo:"1",productId:"VENUS CONSTRUCTIONS",courseTitle:"Hafeez Contractor Designs India's Tallest Residential Tower",description:"A new residential development, designed by renowned architect Hafeez Contractor, is set to become the tallest residential tower in Bihar & Jharkhand. Spanning 14 acres with 85% open green space, the project features a 34-story, 120-meter tower offering premium 3, 4, and 5 BHK apartments, duplexes, and penthouses. Residents will have access to a 65,000+ sq. ft. clubhouse with a swimming pool, spa, banquet hall, and sports facilities.",price:"Starting Price 1.5cr",logoImage:"https://www.livehindustan.
1com/static-content/1y/lh/partnership/images/venus/vc-banner.jpg",ctaText:"Enquire Now"}]:e===l.LG&&(t=[{widgetSerialNo:"1",productId:"lg-1",courseTitle:"Upgrade to the Future of Entertainment with LG AI LED TVs",description:"Looking to take your entertainment to the next level? Experience crystal-clear visuals, immersive sound, and cutting-edge AI technology with LG’s latest range of AI-powered LED TVs. Upgrade today and transform the way you watch movies, shows, and sports. Click below to know more!",price:"₹45,000 onwards",logoImage:"https://images.hindustantimes.com/partnership/images/lg/products/lg-tv-ai-thinq.png",ctaText:"Know More & Upgrade"}]),t}function Ue(e,t,o,r){const i=document.createElement("div");i.className="custom-select-wrapper form-group";const n=document.createElement("div");n.className="custom-select-trigger";const a=document.createElement("input");a.type="text",a.className="search-input",a.placeholder=" ",a.autocomplete="off",a.id=`afld-${r}-${t.toLowerCase().replace(/\s/g,"-")}`;const c=document.createElement("span");c.className="placeholder",c.textContent=t;const u=document.createElement("div");u.className="arrow",n.appendChild(a),n.appendChild(c),n.appendChild(u);const h=document.createElement("div");h.className="custom-options",h.id=`custom-options-${Date.now()}`,o.forEach(p=>{const _=document.createElement("div");_.className="custom-option",_.textContent=p,_.dataset.value=p.toLowerCase().replace(/\s/g,"-"),h.appendChild(_)}),i.appendChild(n),i.appendChild(h),e.insertAdjacentElement("afterend",i),n.addEventListener("click",()=>{n.classList.toggle("active"),h.classList.toggle("open"),h.querySelectorAll(".custom-option").forEach(p=>p.classList.remove("hidden")),a.focus()}),h.querySelectorAll(".custom-option").forEach(p=>{p.addEventListener("click",()=>{h.querySelectorAll(".custom-option").forEach(_=>_.classList.remove("selected")),p.classList.add("selected"),a.value=p.textContent,n.classList.remove("active"),h.classList.remove("open"),oe(a.id,r)})}),a.addEventListener("input",p=>{const _=p.target.value.toLowerCase();h.querySelectorAll(".custom-option").forEach(I=>{I.textContent.toLowerCase().includes(_)?I.classList.remove("hidden"):I.classList.add("hidden")})}),document.addEventListener("click",p=>{if(!i.contains(p.target)){n.classList.remove("active"),h.classList.remove("open");const _=Array.from(h.querySelectorAll(".custom-option.selected")).map(I=>I.textContent);a.value&&!_.includes(a.value)&&(a.value=""),oe(a.id,r)}})}function Ft(e){switch(e.type){case"text":return wt(e);case"dropdown":return Rt(e);case"checkbox":return Dt(e);case"radio":return kt(e);default:return null}}function wt(e){const t=document.createElement("div");t.className="form-group",e.required&&t.setAttribute("data-required","true");const o=document.createElement("input");o.type="text",o.id=e.id,o.placeholder=" ",o.className="input-field",o.required=!!e.required,o.minLength=e.min||0,o.maxLength=e.max||"",o.setAttribute("data-validation",e.validation||""),e.required&&o.addEventListener("blur",function(){const i=o.closest(".form-group");let n=i.nextElementSibling;n&&!n.classList.contains("error-message")&&(n=null),o.checkValidity()?(n&&n.remove(),o.classList.remove("aff-input-error")):(n||(n=document.createElement("p"),n.className="error-message",i.parentNode.insertBefore(n,i.nextSibling)),n.textContent="This field is required.",o.classList.add("aff-input-error"))}),o.addEventListener("input",Gt);const r=document.createElement("label");return r.htmlFor=e.id,r.textContent=e.label,t.appendChild(o),t.appendChild(r),t}function Rt(e){const t=document.createElement("div");return t.className="form-group-placeholder",t.style.display="none",setTimeout(()=>{const o=document.getElementById("dynamic-fields-container"),r=o.querySelector(".form-group-placeholder");if(o&&r){const i=e.options?e.options.map(u=>u.label):[],a=be[Object.keys(be)[0]].vendorId||"default";Ue(r,e.label,i,a);const c=r.nextElementSibling;if(c&&c.classList.contains("custom-select-wrapper")){e.required&&c.setAttribute("data-required","true");const u=c.querySelector(".search-input");if(u){u.id=e.id,u.required=!!e.required,u.addEventListener("blur",function(){let p=c.nextElementSibling;p&&!p.classList.contains("error-message")&&(p=null,u.parentElement.classList.remove("aff-input-error")),u.checkValidity()?(p&&p.remove(),u.classList.remove("aff-input-error"),u.parentElement.classList.remove("aff-input-error")):(p||(p=document.createElement("p"),p.className="error-message",c.parentNode.insertBefore(p,c.nextSibling)),p.textContent="This field is required.",u.classList.add("aff-input-error"),u.parentElement.classList.add("aff-input-error"))});const h=c.querySelector(".custom-options");h&&h.addEventListener("click",function(p){if(p.target&&p.target.classList.contains("custom-option")){let _=c.nextElementSibling;_&&_.classList.contains("error-message")&&_.remove(),u.classList.remove("aff-input-error"),u.parentElement.classList.remove("aff-input-error")}})}}r.remove()}},0),t}function Dt(e){const t=document.createElement("div");if(t.className="form-group",e.required&&t.setAttribute("data-required","true"),e.options){const o=document.createElement("label");o.textContent=e.label,t.appendChild(o),e.options.forEach(r=>{const i=document.createElement("div");
1i.className="checkbox-container";const n=document.createElement("input");n.type="checkbox",n.id=`${e.id}-${r.value}`,n.name=e.id,n.value=r.value,n.classList.add("input-field"),n.required=!!e.required;const a=document.createElement("label");a.htmlFor=`${e.id}-${r.value}`,a.textContent=r.label,i.appendChild(n),i.appendChild(a),t.appendChild(i),e.required&&(n.addEventListener("change",function(){Y(n,"checkbox")}),n.addEventListener("blur",function(){Y(n,"checkbox")}))})}else{const o=document.createElement("div");o.className="checkbox-container";const r=document.createElement("input");r.type="checkbox",r.id=e.id,r.name=e.id,r.value=e.label,r.required=!!e.required,r.classList.add("input-field");const i=document.createElement("label");i.htmlFor=e.id,i.textContent=e.label,o.appendChild(r),o.appendChild(i),t.appendChild(o),e.required&&(r.addEventListener("change",function(){Y(r,"checkbox")}),r.addEventListener("blur",function(){Y(r,"checkbox")}))}return t}function kt(e){const t=document.createElement("div");if(t.className="form-group",e.required&&t.setAttribute("data-required","true"),e.options){const o=document.createElement("label");o.textContent=e.label,t.appendChild(o),e.options.forEach(r=>{const i=document.createElement("div");i.className="radio-container";const n=document.createElement("input");n.type="radio",n.id=`${e.id}-${r.value}`,n.name=e.id,n.value=r.value,n.required=!!e.required,n.classList.add("input-field");const a=document.createElement("label");a.htmlFor=`${e.id}-${r.value}`,a.textContent=r.label,i.appendChild(n),i.appendChild(a),t.appendChild(i),e.required&&(n.addEventListener("change",function(){Y(n,"radio")}),n.addEventListener("blur",function(){Y(n,"radio")}))})}else{const o=document.createElement("div");o.className="radio-container";const r=document.createElement("input");r.type="radio",r.id=e.id,r.name=e.id,r.value=e.label,r.required=!!e.required,r.classList.add("input-field");const i=document.createElement("label");i.htmlFor=e.id,i.textContent=e.label,o.appendChild(r),o.appendChild(i),t.appendChild(o),e.required&&(r.addEventListener("change",function(){Y(r,"radio")}),r.addEventListener("blur",function(){Y(r,"radio")}))}return t}function Y(e,t){let o=e.parentElement.nextElementSibling,r=!1;if(t==="checkbox")r=e.checked;else if(t==="radio"){const i=document.getElementsByName(e.name);r=Array.from(i).some(n=>n.checked)}if(r){o&&o.classList&&o.classList.contains("error-message")&&o.remove(),(t==="checkbox"||t==="radio")&&e.classList.remove("aff-input-error");return}o&&o.classList&&o.classList.contains("error-message")||(o=document.createElement("p"),o.className="error-message",o.textContent="This field is required.",e.parentElement.parentNode.insertBefore(o,e.parentElement.nextSibling))}async function Mt(e,t){return e.apiUrl.replace(`{${e.dependee}}`,t),Promise.resolve([{label:"Dynamic Option 1",value:"dynamic1"},{label:"Dynamic Option 2",value:"dynamic2"}])}async function Bt(e){const t=await Ut(e),o=t==null?void 0:t.data[e];if(o){const r=document.getElementById(s.LEAD_FORM_ID);if(r){r.setAttribute("data-vars-product-id",o==null?void 0:o.productId);const c=r.querySelector(`#${s.LEAD_FORM_HEADING_TEXT}`);c&&o.formHeading&&(c.textContent=o.formHeading),o.categoryId&&r.setAttribute("data-vars-category",o.categoryId),o.productId&&r.setAttribute("data-vars-product-id",o.productId)}document.querySelectorAll("input.input-field, select.input-field").forEach(c=>{c.parentElement&&c.parentElement.setAttribute("data-required","true")});const n=document.getElementById(s.PHONE_ID);n&&n.addEventListener("click",()=>{let c=ne();c||(A("",!0),document.getElementById("dynamic-fields-container").querySelectorAll("input.input-field, select.input-field").forEach(I=>{if(!I.checkValidity()){let f;if(I.type==="checkbox"||I.type==="radio")f=I.parentElement.nextElementSibling,f&&f.classList&&f.classList.contains("error-message")&&f.remove(),f=I.parentElement.nextElementSibling,f&&f.classList&&f.classList.contains("error-message")||(f=document.createElement("p"),f.className="error-message",f.textContent="This field is required.",I.parentElement.parentNode.insertBefore(f,I.parentElement.nextSibling));else if(I.classList.contains("search-input")){const b=I.closest(".custom-select-wrapper");f=b?b.nextElementSibling:null,f&&f.classList&&f.classList.contains("error-message")&&f.remove(),f=b?b.nextElementSibling:null,f&&f.classList&&f.classList.contains("error-message")||(f=document.createElement("p"),f.className="error-message",f.textContent="This field is required.",b.parentNode.insertBefore(f,b.nextSibling)),I.classList.add("aff-input-error"),I.parentElement.classList.add("aff-input-error")}else{let b=I.closest(".form-group");f=b?b.nextElementSibling:null,f&&!f.classList.contains("error-message")&&(f=null),!f&&b&&(f=document.createElement("p"),f.className="error-message",b.parentNode.insertBefore(f,b.nextSibling)),f&&(I.validity.valueMissing?f.textContent="This field is required.":I.validity.tooShort?f.textContent=`Should be at least ${I.minLength} characters.`:f.textContent="Invalid input."),I.classList.add("aff-input-error")}}}),document.querySelectorAll(".custom-select-wrapper[data-required='true'] .search-input").forEach(I=>
1{if(!I.checkValidity()){const f=I.closest(".custom-select-wrapper");let b=f?f.nextElementSibling:null;b&&b.classList&&b.classList.contains("error-message")&&b.remove(),b=f?f.nextElementSibling:null,b&&b.classList&&b.classList.contains("error-message")||(b=document.createElement("p"),b.className="error-message",b.textContent="This field is required.",f.parentNode.insertBefore(b,f.nextSibling)),I.classList.add("aff-input-error"),I.parentElement.classList.add("aff-input-error")}}));const u=document.getElementById(s.PHONE_ID);c?(u.disabled=!1,u.style.cursor="pointer"):(u.disabled=!0,u.style.cursor="not-allowed")}),o.vendorLogo&&Pt(o.vendorLogo);const a=Object.values(o).filter(c=>typeof c=="object"&&c.type);a.forEach(c=>{var h;const u=Ft(c);u&&((h=document.getElementById("dynamic-fields-container"))==null||h.appendChild(u))}),a.forEach(c=>{if(c.dependee){const u=document.getElementById(c.id),h=document.getElementById(c.dependee);if(u&&h){const p=u.tagName==="SELECT";p||(u.disabled=!0);const _=async()=>{const I=h.value.length>0&&h.checkValidity();if(p||(u.disabled=!I),I&&c.apiUrl){const f=await Mt(c,h.value);if(p){for(;u.options.length>1;)u.remove(1);f.forEach(b=>{const M=document.createElement("option");M.value=b.value,M.textContent=b.label,u.appendChild(M)})}}};h.addEventListener("input",_),h.addEventListener("blur",_)}}}),ne()}return o}function Gt(e){const t=e.target,o=t.getAttribute("data-validation");let r=t.value;switch(o){case"text":r=r.replace(/[^a-zA-Z\s]/g,"");break;case"alphanumeric":r=r.replace(/[^a-zA-Z0-9]/g,"");break;case"numeric":r=r.replace(/[^0-9]/g,"");break}t.value=r;const i=t.closest(".form-group");let n=i.nextElementSibling;n&&!n.classList.contains("error-message")&&(n=null),!t.checkValidity()||t.minLength>0&&t.value.length>0&&t.value.length<t.minLength?(n||(n=document.createElement("p"),n.className="error-message",i.parentNode.insertBefore(n,i.nextSibling)),t.validity.valueMissing?n.textContent="This field is required.":t.minLength>0&&t.value.length>0&&t.value.length<t.minLength?n.textContent=`Should be at least ${t.minLength} characters.`:t.validity.tooShort?n.textContent=`Should be at least ${t.minLength} characters.`:n.textContent="Invalid input.",t.classList.add("aff-input-error")):(n&&n.remove(),t.classList.remove("aff-input-error")),ne()}function ne(){const e=document.getElementById("dynamic-fields-container");if(!e)return;const t=e.querySelectorAll("input.input-field, select.input-field");let o=!0;if(t.forEach(r=>{r.checkValidity()||(o=!1)}),o){const r=document.getElementById(s.PHONE_ID);r&&(r.disabled=!1,r.style.cursor="pointer")}return o}document.addEventListener("blur",()=>{ne()});function Pt(e){if(e){const t=document.getElementById(s.IMG_LOGO);t&&(t.src=e)}}function Ut(e){return Q(`${H.AFFILIATE_DOMAIN}/api/v1/lead-form/campaign/${e}`).then(t=>t).catch(t=>{console.error("Error fetching CMT configuration:",t)})}function Vt({client:e,productId:t,productName:o,formPosition:r,isPerpetual:i,title:n,category:a,storyId:c,automated:u,author:h,vendor:p,campaignId:_,utmSource:I,utmMedium:f}){function b(){const m=document.getElementById(`${s.CITY_ID}`),g=document.querySelector(".afld-drop-down"),E=document.querySelector(`.${s.CITY_LIST_CONTAINER}`);m&&(m.addEventListener("input",()=>{j(!0);const y=document.querySelector(`.${s.CITY_LIST_CONTAINER}`);y&&y.style.display==="none"&&(y.style.display="flex");const x=document.getElementById(`${s.CITY_ID}`).value.toUpperCase();if(x){const O=document.querySelector(`.${s.CITY_LIST_CONTAINER}`),U=O.getElementsByTagName("div");let B=!1;for(let V=0;V<U.length;V++)(U[V].textContent||U[V].innerText).toUpperCase().indexOf(x)>-1?(U[V].style.display="",B=!0):U[V].style.display="none";B||(O.style.display="none"),!B&&O.style.display==="flex"?(m.style.borderRadius="10px",m.style.border="1px solid var(--primary-color)",O.style.display="none",g.style.top="27%",g.style.transform="rotate(180deg)"):B&&O.style.display==="flex"?(m.style.borderBottomLeftRadius="0px",m.style.borderBottomRightRadius="0px",m.style.borderBottomWidth="0px",g.style.top="27%",g.style.transform="rotate(180deg)"):B?(m.style.borderBottomLeftRadius="0px",m.style.borderBottomRightRadius="0px",m.style.borderBottomWidth="0px",g.style.top="34%",g.style.transform="rotate(0deg)"):(m.style.borderRadius="10px",m.style.border="1px solid var(--primary-color)",g.style.top="34%",g.style.transform="rotate(0deg)")}}),m.addEventListener("blur",function(){const y=document.querySelectorAll(".city-list-item");Array.from(y).find(x=>x.textContent.trim()===m.value.trim())?(E.style.display="none",m.style.borderRadius="10px",m.style.border="1px solid var(--primary-color)",g.style.transform="rotate(0deg)",g.style.top="34%",j(!0)):(E.style.display="none",m.value="",m.style.borderRadius="10px",m.style.border="1px solid var(--primary-color)",g.style.transform="rotate(0deg)",g.style.top="34%",j(!1))}),m.addEventListener("click",function(){document.querySelectorAll(".city-list-item").forEach(L=>{L.style.display="block"}),E.style.display="flex",g&&E.style.display==="flex"&&m.value===""&&(g.style.top="27%",g.style.transform="rotate(180deg)"),j(!0)}),m.addEventListener("click",function(){m.style.setProperty("border-bottom","0px"),m.style.borderBottomLeftRadius="0px",m.style.borderBottomRightRadius="0px",E.style.display==="flex"?(g.style.top="27%",g.style.transform="rotate(180deg)"):(g.style.top="34%",g.style.transform="rotate(0deg)")}))}
1function M(){const m=document.querySelector(`.${s.CITY_LIST_CONTAINER}`);m&&Q(`${H.AFFILIATE_DOMAIN}/api/v1/cities`).then(g=>{g&&g.length>0&&(g.forEach(E=>{if(E.city){const y=document.createElement("div");y.classList.add("city-list-item"),y.setAttribute("data-vars-state-id",E.state.id),y.setAttribute("data-vars-city-id",E.id);const L=document.getElementById(s.CITY_ID),x=document.querySelector(".afld-drop-down");if(L&&x){const O=function(){L.value=E.city,L.setAttribute("data-vars-state-id",E.state.id),L.setAttribute("data-vars-city-id",E.id),m.style.display="none",L.style.border="1px solid var(--primary-color)",L.style.borderRadius="10px",x.style.transform="rotate(0deg)",x.style.top="34%",j(!0),A(p)};y.addEventListener("mousedown",O),y.addEventListener("touchstart",O)}y.textContent=E.city,m.appendChild(y)}}),b(),yt(),_||fe(X(p)))}).catch(g=>{console.error("Error fetching cities:",g)})}function ie(m){const g=document.getElementById(s.LEAD_FORM_COURSE_DROP_DOWN_ID),E=document.getElementById(s.LEAD_FORM_SPECIALISATION_ID),y=document.querySelector(".submit-btn");if(!y||!g||!E)return;const L=!!g.value,x=!!E.value,O=document.getElementById(s.LEAD_FORM_ID),U=O&&O.getAttribute("data-otp-verified")==="true";let B=!1;typeof A=="function"&&(B=!A(m,!0)),L&&x&&U&&B?(y.disabled=!1,y.style.cursor="pointer",me()):(y.disabled=!0,y.style.cursor="not-allowed")}function ge(m){switch(m){case l.VC_NOW:Jt();break;case l.SYMBIOSIS:Xt();break;case l.CT_UNIVERSITY:Kt();break;case l.LARSEN_TOUBRO:Zt();break;case l.VENUS_CONSTRUCTIONS:K();break;case l.GREAT_LAKES:Qt();break;case l.GULZAR:eo();break;case l.LG:to();break}}function K(){const m=document.createElement("div");m.className="form-group";const g=document.getElementById(s.IMG_LOGO);g&&(g.src=v.VENUS_CONSTRUCTIONS_LOGO);const E=X(l.VENUS_CONSTRUCTIONS);if(fe(E),E){const y=document.querySelector(".submit-btn");setTimeout(()=>{const L=ue();y&&(y.disabled=!L,y.style.cursor=L?"pointer":"not-allowed")},1e3)}}function Kt(){const m=document.createElement("div");m.className="form-group cityList",m.innerHTML=`
2        <input type="text" placeholder="" id="${s.LEAD_FORM_COURSE_DROP_DOWN_ID}" autocomplete="off" class="input-field" disabled style="cursor:not-allowed;" />
3        <label for="${s.LEAD_FORM_COURSE_DROP_DOWN_ID}">Select Course</label>
4        <div class="${s.CITY_LIST_CONTAINER} course-list-cnt"></div>
5        <button class="afld-drop-down" type="button">
6            <img src="${v.DOWN}" alt="down arrow" class="afld-down-arrow" />
7        </button>
8    `;const g=document.createElement("div");g.className="form-group cityList",g.innerHTML=`
9        <input type="text" placeholder="" id="${s.LEAD_FORM_SPECIALISATION_ID}" autocomplete="off" class="input-field" disabled style="cursor:not-allowed;" />
10        <label for="${s.LEAD_FORM_SPECIALISATION_ID}">Select Specialisation</label>
11        <div class="${s.CITY_LIST_CONTAINER} spec-list-cnt"></div>
12        <button class="afld-drop-down" type="button">
13            <img src="${v.DOWN}" alt="down arrow" class="afld-down-arrow" />
14        </button>
15    `;const E=document.getElementById("leadFormCityList");E&&(E.insertAdjacentElement("afterend",m),m.insertAdjacentElement("afterend",g));const y=document.getElementById(s.LEAD_FORM_COURSE_DROP_DOWN_ID),L=m.querySelector(".course-list-cnt"),x=document.getElementById(s.LEAD_FORM_SPECIALISATION_ID),O=g.querySelector(".spec-list-cnt");Q(`${H.AFFILIATE_DOMAIN}/api/v1/cms/education/courses?client=ct-university`).then(S=>{const T=S||[];ct(S||[]),y.disabled=!1,y.style.cursor="",B(y,L,T,W=>{y.value=W,U(W)}),m.querySelector("button").addEventListener("click",()=>y.focus());const w=X(l.CT_UNIVERSITY);w!=null&&w.course&&T.includes(w.course)&&(y.value=w.course,U(w.course,w.specialisation))});function U(S,T=""){const w=encodeURIComponent(S);x.value="",O.innerHTML="",O.style.display="none",Q(`${H.AFFILIATE_DOMAIN}/api/v1/cms/education/courses/specialisations?client=ct-university&course=${w}`).then(W=>{const J=W||[];x.disabled=!1,x.style.cursor="",dt(W||[]),B(x,O,J,he=>{x.value=he,O.style.display="none",ie(l.CT_UNIVERSITY)}),T&&J.includes(T)&&(x.value=T,ie(l.CT_UNIVERSITY)),g.querySelector("button").addEventListener("click",()=>x.focus()),typeof A=="function"&&A(l.CT_UNIVERSITY,!0);const $=document.querySelector(".submit-btn");$&&($.disabled=!0)})}function B(S,T,w,W){const J=S.closest(".form-group"),$=J.querySelector(".afld-drop-down");function he(R){S.value=R,T.style.display="none",$.classList.remove("rotate"),W(R)}function qe(R=""){T.innerHTML="";const ye=w.filter(D=>D.toLowerCase().includes(R.toLowerCase()));if(ye.forEach(D=>{const ae=document.createElement("div");
15ae.className="city-list-item",ae.textContent=D,ae.addEventListener("mousedown",()=>he(D)),T.appendChild(ae)}),ye.length===0){const D=document.createElement("div");D.className="city-list-item",D.textContent="No results found",D.style.pointerEvents="none",D.style.color="#999",T.appendChild(D)}T.style.display="flex",$.classList.add("rotate")}S.addEventListener("input",()=>{qe(S.value)}),S.addEventListener("focus",()=>{qe("")}),S.addEventListener("blur",()=>{setTimeout(()=>{const R=S.value.trim();w.includes(R),Array.from(T.querySelectorAll(".city-list-item")).find(D=>D.textContent===R)?W(R):S.value="",T.style.display="none",$.classList.remove("rotate")},100)}),$.addEventListener("click",R=>{R.preventDefault(),S.focus()}),document.addEventListener("click",R=>{J.contains(R.target)||(T.style.display="none",$.classList.remove("rotate"))})}const V=document.getElementById(s.IMG_LOGO);if(V){V.src=v.CT_UNIVERSITY_LOGO;const S=document.getElementById(s.LEAD_FORM_ID);S&&S.classList.add(l.CT_UNIVERSITY)}}function Xt(){const m=document.createElement("div");m.className="form-group",m.innerHTML=`
16            <select id="${s.LEAD_FORM_COURSE_DROP_DOWN_ID}" class="input-field">
17                <option value="" disabled selected>Select Course</option>
18                <option value="M.Sc. Biochemistry">M.Sc. Biochemistry</option>
19                <option value="M.Sc. Biotechnology">M.Sc. Biotechnology</option>
20                <option value="M.Sc. Biotechnology (Dual Degree)">M.Sc. Biotechnology (Dual Degree)</option>
21            </select>
22            <label for="${s.LEAD_FORM_COURSE_DROP_DOWN_ID}">Course</label>
23        `;const g=document.getElementById("leadFormCityList");g&&g.insertAdjacentElement("afterend",m);const E=document.getElementById(s.IMG_LOGO);if(E){E.src=v.SYMBIOSIS_LOGO;let y=document.getElementById(s.LEAD_FORM_ID);y&&y.classList.add(l.SYMBIOSIS)}}function Jt(){const m=document.createElement("div");m.className="form-group",m.innerHTML=`
24            <input type="text" id="${s.LEAD_FORM_ORGANISATION_ID}" placeholder=" " class="input-field" />
25            <label for="${s.LEAD_FORM_ORGANISATION_ID}">Organisation</label>
26        `;const g=document.createElement("div");g.className="form-group",g.innerHTML=`
27            <input type="text" id="${s.LEAD_FORM_DESIGNATION_ID}" placeholder=" " class="input-field" />
28            <label for="${s.LEAD_FORM_DESIGNATION_ID}">Designation</label>
29        `;const E=document.createElement("div");E.className="form-group",E.innerHTML=`
30            <input type="text" id="${s.LEAD_FORM_WORK_EXPERIENCE_ID}" placeholder=" " class="input-field" />
31            <label for="${s.LEAD_FORM_WORK_EXPERIENCE_ID}">Work Experience</label>
32        `;const y=document.getElementById("leadFormCityList");y&&(y.insertAdjacentElement("afterend",m),m.insertAdjacentElement("afterend",g),t=="IIMA EPAIB"&&g.insertAdjacentElement("afterend",E));const L=document.getElementById(s.IMG_LOGO);L&&(L.src=v.VC_NOW_LOGO)}function Zt(){const m=document.createElement("div");m.className="form-group";const g=document.getElementById(s.IMG_LOGO);g&&(g.src=v.LARSEN_TOUBRO_LOGO);const E=X(l.LARSEN_TOUBRO);if(fe(E),E){const y=document.querySelector(".submit-btn");setTimeout(()=>{const L=ue();y&&(y.disabled=!L,y.style.cursor=L?"pointer":"not-allowed")},1e3)}}function Qt(){const m=document.createElement("div");m.className="form-group",m.innerHTML=`
33            <input type="text" id="${s.LEAD_FORM_WORK_EXPERIENCE_ID}" placeholder=" " class="input-field" />
34            <label for="${s.LEAD_FORM_WORK_EXPERIENCE_ID}">Work Experience</label>
35        `;const g=document.createElement("div");g.className="form-group",g.innerHTML=`
36            <input type="text" id="${s.LEAD_FORM_DESIGNATION_ID}" placeholder=" " class="input-field" />
37            <label for="${s.LEAD_FORM_DESIGNATION_ID}">Designation</label>
38        `;const E=document.getElementById("leadFormCityList");E&&(E.insertAdjacentElement("afterend",m),m.insertAdjacentElement("afterend",g));const y=document.getElementById(s.IMG_LOGO);y&&(y.src=v.GREAT_LAKES_LOGO)}function eo(){const m=document.getElementById(s.IMG_LOGO);if(m){m.src=v.GULZAR_LOGO;let g=document.getElementById(s.LEAD_FORM_ID);g&&g.classList.add(l.GULZAR)}}
38function to(){const m=document.getElementById("leadFormCityList"),g=document.getElementById(s.IMG_LOGO);if(g){g.src=v.LG_LOGO;let O=document.getElementById(s.LEAD_FORM_ID);O&&O.classList.add(l.LG)}const E=document.getElementById(s.LEAD_FORM_ID),y=document.createElement("div");y.className="lead-form-disc-cnt",y.innerHTML=`
39            <div class="lead-form-disc-row">
40                <input 
41                    type="checkbox" 
42                    id="${s.LEAD_FORM_CHECKBOX_ID}" 
43                    checked
44                    class="lead-form-disc-checkbox"
45                    disabled
46                />
47                <span class="lead-form-disc-text">
48                    I consent to LG Electronics India Ltd. and its authorised partners contacting me via phone, email, or SMS for the purpose of providing information, offers, or assistance regarding LG products. I understand that my personal data will be processed in accordance with <a href="https://www.lg.com/in/privacy/#tabs-privacy-policy" rel="noopener noreferrer nofollow" target="_blank" style="color: #03819a;font-style: italic;">LG's Privacy Policy</a>, and I may withdraw my consent at any time by contacting LG.
49                </span>
50            </div>
51        `;const L=document.getElementById(s.EMAIL_TEXT_ID);L&&(L.innerText="We'll send relevant offers and updates to this Email ID.");const x=E.querySelector("form.leadFormContainer");if(x){const O=x.querySelector(".submit-btn");O&&x.insertBefore(y,O)}Ue(m,"TV Type",["OLEDevo AI TV","QNEDevo AI TV","Not Sure"],l.LG)}function oo(){switch(p){case l.LARSEN_TOUBRO:return"Modern Housing Tailored for You";case l.VENUS_CONSTRUCTIONS:return"Enquire for Modern Living";case l.GREAT_LAKES:return"Hi! Get a call back from an admissions counsellor";case l.LG:return"Looking for your Next TV, Get in touch with us!";default:return"Hi! 👋 Find Personalised Courses!"}}return setTimeout(async()=>{if(_){const m=await Bt(_);ke(),pe(),l.LARSEN_TOUBRO!==p&&M(),Be(),Pe(m==null?void 0:m.vendorId,m)}else ge(p),ke(),pe(),l.LARSEN_TOUBRO!==p&&M(),Be(),Pe(p,null)},1),d(d.Fragment,null,d("div",{className:"leadForm",id:s.LEAD_FORM_ID,"data-vars-client":e,"data-vars-product-id":t,"data-vars-product-name":o,"data-vars-form-position":r,"data-vars-campaign-id":_,"data-vars-is-perpetual":i,"data-vars-title":n,"data-vars-category":a,"data-vars-story-id":c,"data-vars-automated":u,"data-vars-author":h,"data-vars-vendor":p,"data-vars-utm-source":I,"data-vars-utm-medium":f},d("div",{className:"form-container",role:"dialog","aria-labelledby":"form-heading"},d("div",{className:"close-button",id:"afld-close"},d("img",{src:v.CLOSE,"aria-label":"Close form",alt:"close"})),d("img",{src:v.SPARKLE,alt:"sparkle",className:"sparkle sparkle-left"}),d("img",{src:v.SPARKLE,alt:"sparkle",className:"sparkle sparkle-right"}),d("div",{className:"logo"},d("img",{src:v.COLLEGE_LOGO,alt:"Lead Form Logo",id:s.IMG_LOGO})),d("div",{className:"heading"},d("h2",{id:s.LEAD_FORM_HEADING_TEXT},`${oo()}`)),d("form",{className:"leadFormContainer",novalidate:!0},d("div",{className:"form-group","data-required":"true"},d("input",{type:"text",id:s.FULL_NAME_ID,placeholder:" ",className:"input-field"}),d("label",{for:s.FULL_NAME_ID},"Full Name")),d("div",{className:"form-group","data-required":"true"},d("input",{type:"email",id:s.EMAIL_ID,name:"email",placeholder:" ",className:"input-field"}),d("label",{for:s.EMAIL_ID},"Email ID")),d("p",{className:"helper-text",id:s.EMAIL_TEXT_ID},`${p==l.LARSEN_TOUBRO?"":"We'll send relevant courses and updates to this Email ID."}`),p!==l.LARSEN_TOUBRO?d("div",{id:"leadFormCityList",className:"form-group cityList","data-required":"true"},d("input",{type:"text",placeholder:"",id:s.CITY_ID,autocomplete:"off",className:"input-field"}),d("label",{for:s.CITY_ID},"Select City"),d("div",{className:s.CITY_LIST_CONTAINER}),d("button",{className:"afld-drop-down",type:"button"},d("img",{src:v.DOWN,alt:"down arrow",className:"afld-down-arrow"}))):"",d("div",{id:"dynamic-fields-container"}),d("div",{className:"form-group","data-required":"true"},d("input",{type:"tel",id:s.PHONE_ID,className:"phone-number input-field",name:"aff-lead-phone",placeholder:"",maxlength:"10"}),d("label",{for:s.PHONE_ID},"Phone number"),d("span",{className:"country-code"},"+91")),d("div",{className:"otp-group"},d("div",{className:"form-group"},d("div",{className:"otp-inputs"},d("span",null,d("input",{type:"tel",className:"input-field",maxlength:"1",id:"otp1",name:"otp1",placeholder:" ",autocomplete:"off"})),d("span",null,d("input",{type:"tel",className:"input-field",maxlength:"1",id:"otp2",name:"otp2",placeholder:" ",autocomplete:"off"})),d("span",null,d("input",{type:"tel",className:"input-field",maxlength:"1",id:"otp3",name:"otp3",placeholder:" ",autocomplete:"off"})),d("span",null,d("input",{type:"tel",className:"input-field",maxlength:"1",id:"otp4",name:"otp4",placeholder:" ",autocomplete:"off"})),d("span",null,d("input",{type:"tel",className:"input-field",maxlength:"1",id:"otp5",name:"otp5",placeholder:" ",autocomplete:"off"})),d("span",null,d("input",{type:"tel",className:"input-field",maxlength:"1",id:"otp6",
51name:"otp6",placeholder:" ",autocomplete:"off"}))),d("label",{for:"otp"},"Enter OTP"),d("div",{className:"helper-text"},d("span",null,"Didn't receive any OTP? "),d("button",{type:"button",className:"resend-otp-btn",id:s.OTP_RESEND_BTN},"Resend OTP ",d("span",null,"in ",d("p",{className:"afld-resend-timer"})))))),p===l.LARSEN_TOUBRO?d("div",{className:"lead-form-disc-cnt"},d("div",{className:"lead-form-disc-row"},d("input",{type:"checkbox",id:s.LEAD_FORM_CHECKBOX_ID,defaultChecked:!0,className:"lead-form-disc-checkbox",disabled:!0}),d("span",{className:"lead-form-disc-text"},"By submitting an enquiry, I authorise L&T and its subsidiaries including L&T Realty to contact me via call, SMS, WhatsApp, Emailer or any other relevant medium."))):"",d("button",{type:"button",className:"submit-btn",id:s.SUBMIT},"Submit")))),d("div",{className:"afld-bg-image"}))}function qt(e){const{client:t,productId:o,productName:r,position:i,isPerpetual:n,title:a,category:c,storyId:u,automated:h,author:p,vendor:_,campaignId:I,utm_source:f,utm_medium:b}=e;return d("div",null,d(Vt,{client:t,productId:o,productName:r,formPosition:i,isPerpetual:n,title:a,category:c,storyId:u,automated:h,author:p,vendor:_,campaignId:I,utmSource:f,utmMedium:b}))}const Yt={HT_STYLE_SHEET_PATH_PROD:"https://images.hindustantimes.com/partnership/css/lead-form/affiliate-partner-ht.css"},Wt=e=>{var t=document.createElement("link");t.href=e,t.rel="stylesheet",document.head.appendChild(t)},$t=e=>{const t=document.createElement("style");t.appendChild(document.createTextNode(e)),document.head.appendChild(t)};function zt(e){window.addEventListener("message",function(r){(r.data.action==="SHOW_AFFILIATE_LEAD_FORM"&&r.data.productId||r.data.campaignId)&&e.render({element:document.querySelector("#affiliate-lead-form-sdk"),client:r.data.client,productId:r.data.productId,productName:r.data.productName,position:r.data.position,isPerpetual:r.data.isPerpetual,title:r.data.title,category:r.data.category,storyId:r.data.storyId,automated:r.data.automated,author:r.data.author,vendor:r.data.vendor||"college vidya",campaignId:r.data.campaignId||""})});const t=new URLSearchParams(window.location.search);if(t.get("redirect")==="true"){const r=t.get("vendor")||"college vidya",i=t.get("platform")||"non_amp",a=Ct(r).find(c=>c.widgetSerialNo===t.get("widget"));if(a){const c=Ze(),u=se();e.render({element:document.querySelector("#affiliate-lead-form-sdk"),client:Je(),productId:a.productId,productName:a.courseTitle,position:(c==null?void 0:c.position)||"NA",isPerpetual:!1,title:(c==null?void 0:c.storyTitle)||"NA",category:(u==null?void 0:u.sectionName)||"NA",storyId:(c==null?void 0:c.storyId)||"NA",automated:(c==null?void 0:c.automated)||"NA",author:(c==null?void 0:c.authorName)||"NA",vendor:r});let h=r=="venus"?"Enquire Now":"Unlock Course Offers";ve("card_clicked","affiliate-check offers",h,"button",i)}}Ht(),jt(e)}function Ht(){const e=document.querySelectorAll('[class^="afld-open"]');e==null||e.forEach(t=>{t.addEventListener("click",()=>{const o=se(),r=(o==null?void 0:o.storyId)||"",i=t.getAttribute("data-vars-position")||"",n=document.getElementById(`aff-partner-${r}-${i}`);if(n){const a=n.querySelector("iframe");a!=null&&a.contentWindow&&(a==null||a.contentWindow.postMessage({action:"SHOW_AFFILIATE_LEAD_FORM"},"*"))}})})}function jt(e){window.affiliatePartnerLeadFormSdk||(window.affiliatePartnerLeadFormSdk=e)}Wt(Yt.HT_STYLE_SHEET_PATH_PROD);const Ve={render:function(e){const{element:t}=e;$t(k),t.innerHTML="",t.append(qt(e))}};return zt(Ve),Ve});

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.