Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@coding-blocks/web-components

Package Overview
Dependencies
Maintainers
6
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@coding-blocks/web-components - npm Package Compare versions

Comparing version 1.8.3 to 1.8.4

2

dist/cbLoginSignup.js

@@ -1,1 +0,1 @@

!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(t=t||self).cbLoginSignup=n()}(this,(function(){"use strict";function t(){}function n(t){return t()}function o(){return Object.create(null)}function i(t){t.forEach(n)}function e(t){return"function"==typeof t}function c(t,n){return t!=t?n==n:t!==n||t&&"object"==typeof t||"function"==typeof t}function l(t,n){t.appendChild(n)}function s(t,n,o){t.insertBefore(n,o||null)}function a(t){t.parentNode.removeChild(t)}function r(t){return document.createElement(t)}function p(t){return document.createTextNode(t)}function d(){return p(" ")}function u(t,n,o,i){return t.addEventListener(n,o,i),()=>t.removeEventListener(n,o,i)}function h(t,n,o){null==o?t.removeAttribute(n):t.getAttribute(n)!==o&&t.setAttribute(n,o)}function g(t){return""===t?null:+t}function m(t,n){t.value=null==n?"":n}function b(t,n,o,i){null===o?t.style.removeProperty(n):t.style.setProperty(n,o,i?"important":"")}function f(t){const n={};for(const o of t)n[o.name]=o.value;return n}let k;function y(t){k=t}const w=[],v=[],$=[],x=[],_=Promise.resolve();let E=!1;function j(t){$.push(t)}const T=new Set;let O=0;function M(){const t=k;do{for(;O<w.length;){const t=w[O];O++,y(t),S(t.$$)}for(y(null),w.length=0,O=0;v.length;)v.pop()();for(let t=0;t<$.length;t+=1){const n=$[t];T.has(n)||(T.add(n),n())}$.length=0}while(w.length);for(;x.length;)x.pop()();E=!1,T.clear(),y(t)}function S(t){if(null!==t.fragment){t.update(),i(t.before_update);const n=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,n),t.after_update.forEach(j)}}const L=new Set;const z="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function C(t,n){-1===t.$$.dirty[0]&&(w.push(t),E||(E=!0,_.then(M)),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<<n%31}function P(c,l,s,r,p,d,u,h=[-1]){const g=k;y(c);const m=c.$$={fragment:null,ctx:null,props:d,update:t,not_equal:p,bound:o(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(l.context||(g?g.$$.context:[])),callbacks:o(),dirty:h,skip_bound:!1,root:l.target||g.$$.root};u&&u(m.root);let b=!1;if(m.ctx=s?s(c,l.props||{},(t,n,...o)=>{const i=o.length?o[0]:n;return m.ctx&&p(m.ctx[t],m.ctx[t]=i)&&(!m.skip_bound&&m.bound[t]&&m.bound[t](i),b&&C(c,t)),n}):[],m.update(),b=!0,i(m.before_update),m.fragment=!!r&&r(m.ctx),l.target){if(l.hydrate){const t=function(t){return Array.from(t.childNodes)}(l.target);m.fragment&&m.fragment.l(t),t.forEach(a)}else m.fragment&&m.fragment.c();l.intro&&((f=c.$$.fragment)&&f.i&&(L.delete(f),f.i(w))),function(t,o,c,l){const{fragment:s,on_mount:a,on_destroy:r,after_update:p}=t.$$;s&&s.m(o,c),l||j(()=>{const o=a.map(n).filter(e);r?r.push(...o):i(o),t.$$.on_mount=[]}),p.forEach(j)}(c,l.target,l.anchor,l.customElement),M()}var f,w;y(g)}let H;"function"==typeof HTMLElement&&(H=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(n).filter(e);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,n,o){this[t]=o}disconnectedCallback(){i(this.$$.on_disconnect)}$destroy(){!function(t,n){const o=t.$$;null!==o.fragment&&(i(o.on_destroy),o.fragment&&o.fragment.d(n),o.on_destroy=o.fragment=null,o.ctx=[])}(this,1),this.$destroy=t}$on(t,n){const o=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return o.push(n),()=>{const t=o.indexOf(n);-1!==t&&o.splice(t,1)}}$set(t){var n;this.$$set&&(n=t,0!==Object.keys(n).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});const{document:N}=z;function B(t){let n,o;return{c(){n=r("div"),o=p(t[4]),h(n,"class","red")},m(t,i){s(t,n,i),l(n,o)},p(t,n){16&n&&function(t,n){n=""+n,t.wholeText!==n&&(t.data=n)}(o,t[4])},d(t){t&&a(n)}}}function D(t){let n,o,e,c,b,f,k;return{c(){n=r("input"),o=d(),e=r("button"),c=p("Send OTP"),h(n,"type","number"),h(n,"placeholder","Enter 10 digit Mobile Number"),h(n,"class","w-100 mb-4"),h(e,"type","button"),h(e,"class","btn btn-primary w-100"),e.disabled=b=!t[1]},m(i,a){s(i,n,a),m(n,t[1]),s(i,o,a),s(i,e,a),l(e,c),f||(k=[u(n,"input",t[14]),u(e,"click",t[8])],f=!0)},p(t,o){2&o&&g(n.value)!==t[1]&&m(n,t[1]),2&o&&b!==(b=!t[1])&&(e.disabled=b)},d(t){t&&a(n),t&&a(o),t&&a(e),f=!1,i(k)}}}function A(t){let n,o,e,c,b,f,k;return{c(){n=r("input"),o=d(),e=r("button"),c=p("Verify OTP"),h(n,"type","number"),h(n,"placeholder","Enter OTP"),h(n,"class","w-100 mb-4"),h(e,"type","button"),h(e,"class","btn btn-primary w-100"),e.disabled=b=!t[2]},m(i,a){s(i,n,a),m(n,t[2]),s(i,o,a),s(i,e,a),l(e,c),f||(k=[u(n,"input",t[13]),u(e,"click",t[9])],f=!0)},p(t,o){4&o&&g(n.value)!==t[2]&&m(n,t[2]),4&o&&b!==(b=!t[2])&&(e.disabled=b)},d(t){t&&a(n),t&&a(o),t&&a(e),f=!1,i(k)}}}function F(t){let n;function o(t,n){return t[3]?I:q}let i=o(t),e=i(t);return{c(){e.c(),n=p("")},m(t,o){e.m(t,o),s(t,n,o)},p(t,c){i===(i=o(t))&&e?e.p(t,c):(e.d(1),e=i(t),e&&(e.c(),e.m(n.parentNode,n)))},d(t){e.d(t),t&&a(n)}}}function q(t){let n,o,e,c,g,b,f;return{c(){n=r("input"),o=d(),e=r("button"),c=p("Send OTP"),h(n,"type","email"),h(n,"placeholder","Enter Email"),h(n,"class","w-100 mb-4"),h(e,"type","button"),h(e,"class","btn btn-primary w-100"),e.disabled=g=!t[0]},m(i,a){s(i,n,a),m(n,t[0]),s(i,o,a),s(i,e,a),l(e,c),b||(f=[u(n,"input",t[12]),u(e,"click",t[8])],b=!0)},p(t,o){1&o&&n.value!==t[0]&&m(n,t[0]),1&o&&g!==(g=!t[0])&&(e.disabled=g)},d(t){t&&a(n),t&&a(o),t&&a(e),b=!1,i(f)}}}function I(t){let n,o,e,c,b,f,k;return{c(){n=r("input"),o=d(),e=r("button"),c=p("Verify OTP"),h(n,"type","number"),h(n,"placeholder","Enter OTP"),h(n,"class","w-100 mb-4"),h(e,"type","button"),h(e,"class","btn btn-primary w-100"),e.disabled=b=!t[2]},m(i,a){s(i,n,a),m(n,t[2]),s(i,o,a),s(i,e,a),l(e,c),f||(k=[u(n,"input",t[11]),u(e,"click",t[9])],f=!0)},p(t,o){4&o&&g(n.value)!==t[2]&&m(n,t[2]),4&o&&b!==(b=!t[2])&&(e.disabled=b)},d(t){t&&a(n),t&&a(o),t&&a(e),f=!1,i(k)}}}function R(n){let o,e,c,g,m,f,k,y,w,v,$,x,_,E,j,T,O,M,S,L,z,C,P,H,q,I,R,V,G,K,Q,U,W,X,Y,Z,tt,nt,ot,it=n[4]&&B(n);function et(t,n){return"email"===t[5]?F:t[3]?A:D}let ct=et(n),lt=ct(n);return{c(){o=r("link"),e=r("link"),c=r("link"),g=d(),m=r("div"),f=d(),k=r("div"),y=r("div"),w=r("h2"),w.textContent="Login / Signup",v=d(),$=r("button"),$.innerHTML='<img src="https://minio.codingblocks.com/public/cross-black.png" alt=""/>',x=d(),_=r("div"),E=p("Sign In with \n "),j=r("button"),T=p("Email"),M=p("\n Or\n "),S=r("button"),L=p("Mobile"),C=d(),it&&it.c(),P=d(),lt.c(),H=d(),q=r("div"),q.innerHTML='<span class="hr"></span> \n <span class="px-5">OR</span> \n <span class="hr"></span>',I=d(),R=r("a"),V=r("button"),V.innerHTML='<img class="logo" src="https://minio.codingblocks.com/public/google-logo.png" alt=""/> \n <span class="logo-text">Sign in with Google</span>',G=d(),K=r("a"),Q=r("button"),Q.innerHTML='<img class="logo" src="https://minio.codingblocks.com/public/facebook-logo.png" alt=""/> \n <span class="logo-text">Sign in with facebook</span>',U=d(),W=r("div"),W.innerHTML='<div class="header">Find your dream job</div> \n <div class="sub-header mb-4">Trusted by 100k+ students</div> \n <img src="https://minio.codingblocks.com/public/company-logo-group.png" alt=""/>',X=d(),Y=r("div"),Y.innerHTML='<a href="https://www.linkedin.com/school/codingblocksindia/" target="_blank"><img class="social-media-logo mr-2" src="https://minio.codingblocks.com/public/linkedin-logo.png" alt=""/></a> \n <a href="https://twitter.com/codingblocksIN" target="_blank"><img class="social-media-logo mr-2" src="https://minio.codingblocks.com/public/twitter-logo.png" alt=""/></a> \n <a href="https://github.com/coding-blocks" target="_blank"><img class="social-media-logo" src="https://minio.codingblocks.com/public/github-logo.png" alt=""/></a> \n <div><a href="https://codingblocks.com/tos.html" class="sub-header" target="_blank">Coding Blocks | Terms of service</a></div>',Z=d(),tt=r("link"),this.c=t,h(o,"rel","preconnect"),h(o,"href","https://fonts.googleapis.com"),h(e,"rel","preconnect"),h(e,"href","https://fonts.gstatic.com"),h(e,"crossorigin",""),h(c,"href","https://fonts.googleapis.com/css2?family=Mulish:wght@400;600&display=swap"),h(c,"rel","stylesheet"),h(m,"class","blurrer"),b($,"color","#3B4254"),h(y,"class","d-flex justify-content-between align-items-center mb-5"),h(j,"class",O="email"===n[5]?"red":""),h(S,"class",z="mobile"===n[5]?"red":""),h(_,"class","mb-4"),h(q,"class","d-flex justify-content-center align-items-center"),b(q,"margin","30px 0px"),h(V,"class","btn btn-secondary white w-100 mb-3"),h(R,"href",n[6]),h(Q,"class","btn btn-secondary white w-100 mb-5"),h(K,"href",n[7]),h(W,"class","mb-5 pt-5"),h(Y,"class","position-absolute"),h(k,"id","cb-login-signup"),h(k,"class","cb-login-signup-container"),h(tt,"rel","stylesheet"),h(tt,"href","https://unpkg.com/@coding-blocks/motley@2.8.6/dist/account/app.min.css")},m(t,i){l(N.head,o),l(N.head,e),l(N.head,c),s(t,g,i),s(t,m,i),s(t,f,i),s(t,k,i),l(k,y),l(y,w),l(y,v),l(y,$),l(k,x),l(k,_),l(_,E),l(_,j),l(j,T),l(_,M),l(_,S),l(S,L),l(k,C),it&&it.m(k,null),l(k,P),lt.m(k,null),l(k,H),l(k,q),l(k,I),l(k,R),l(R,V),l(k,G),l(k,K),l(K,Q),l(k,U),l(k,W),l(k,X),l(k,Y),s(t,Z,i),s(t,tt,i),nt||(ot=[u(m,"click",J),u($,"click",J),u(j,"click",n[10]("email")),u(S,"click",n[10]("mobile"))],nt=!0)},p(t,[n]){32&n&&O!==(O="email"===t[5]?"red":"")&&h(j,"class",O),32&n&&z!==(z="mobile"===t[5]?"red":"")&&h(S,"class",z),t[4]?it?it.p(t,n):(it=B(t),it.c(),it.m(k,P)):it&&(it.d(1),it=null),ct===(ct=et(t))&&lt?lt.p(t,n):(lt.d(1),lt=ct(t),lt&&(lt.c(),lt.m(k,H)))},i:t,o:t,d(t){a(o),a(e),a(c),t&&a(g),t&&a(m),t&&a(f),t&&a(k),it&&it.d(),lt.d(),t&&a(Z),t&&a(tt),nt=!1,i(ot)}}}function J(){document.getElementsByTagName("cb-login-signup")[0].classList.add("hide-cb-login-signup-prompt")}function V(t,n,o){const i=window.location.host.split(".")[0],e=window.location.pathname,c=window.location.host.includes("codingblocks.xyz"),l={hack:2146237097,online:5633768694,hire:4190457915,codeskiller:9706874989},s={sendOtpEmail:{hack:"https://hack-api.codingblocks.com/api/v2/jwt/otp",online:"https://online-api.codingblocks.com/api/v2/jwt/otp/email",hire:"https://hire-api.codingblocks.com/login/otp/email",codeskiller:"https://code-gym-api.codingblocks.com/api/jwt/otp",cricket:"https://cricket.codingblocks.com/api/jwt/otp"},sendOtpMobile:{hack:"https://hack-api.codingblocks.com/api/v2/jwt/otp",online:"https://online-api.codingblocks.com/api/v2/jwt/otp/mobile",hire:"https://hire-api.codingblocks.com/login/otp/mobile",codeskiller:"https://code-gym-api.codingblocks.com/api/jwt/otp",cricket:"https://cricket.codingblocks.com/api/jwt/otp"},verifyOtpEmail:{hack:"https://hack-api.codingblocks.com/api/v2/jwt/otp/verify",online:"https://online-api.codingblocks.com/api/v2/jwt/otp/email/verify",hire:"https://hire-api.codingblocks.com/login/otp/email/verify",codeskiller:"https://code-gym-api.codingblocks.com/api/jwt/otp/verify",cricket:"https://cricket.codingblocks.com/api/jwt/otp/verify"},verifyOtpMobile:{hack:"https://hack-api.codingblocks.com/api/v2/jwt/otp/verify",online:"https://online-api.codingblocks.com/api/v2/jwt/otp/mobile/verify",hire:"https://hire-api.codingblocks.com/login/otp/mobile/verify",cricket:"https://cricket.codingblocks.com/api/jwt/otp/verify"}};let a=null,r=null,p=null,d=null,u=null,h="email",m=(localStorage.getItem("cb_login_prompt"),i.includes("localhost")?`http://localhost:3838/login/google/v2?redirect_uri=http://${i}${e}&client=localhost&client_id=1234567890`:c?`https://account.codingblocks.xyz/login/google/v2?redirect_uri=https://${i}.codingblocks.xyz${e}&client=${i}-codingblocks&client_id=1`:`https://account.codingblocks.com/login/google/v2?redirect_uri=https://${i}.codingblocks.com${e}&client=${"cricket"===i?"cricket-quiz-iccwc23":i}-codingblocks&client_id=${l[i]}`),b=i.includes("localhost")?`http://localhost:3838/login/facebook/v2?redirect_uri=http://${i}${e}&client=localhost&client_id=1234567890`:c?`https://account.codingblocks.xyz/login/facebook/v2?redirect_uri=https://${i}.codingblocks.xyz${e}&client=${i}-codingblocks&client_id=1`:`https://account.codingblocks.com/login/facebook/v2?redirect_uri=https://${i}.codingblocks.com${e}&client=${"cricket"===i?"cricket-quiz-iccwc23":i}-codingblocks&client_id=${l[i]}`;return[a,r,p,d,u,h,m,b,async function(){o(4,u=null);const t=await fetch(("email"===h?s.sendOtpEmail[i]:s.sendOtpMobile[i])||"http://localhost:3000/api/jwt/otp",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({email:a,mobile:r})});if(t.ok){let{id:n,Details:i}=await t.json();o(3,d=n||i)}else{const{message:n,Details:i}=await t.json();(n||i)&&o(4,u=n||i)}},async function(){o(4,u=null);const t=await fetch(("email"===h?s.verifyOtpEmail[i]:s.verifyOtpMobile[i])||"http://localhost:3000/api/jwt/otp/verify",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({email:a,mobile:r,otp_id:d,otp:p})});if(t.ok)window.location.reload();else{const{message:n,Details:i}=await t.json();(n||i)&&o(4,u=n||i)}},t=>()=>{o(5,h=t),o(3,d=null)},function(){p=g(this.value),o(2,p)},function(){a=this.value,o(0,a)},function(){p=g(this.value),o(2,p)},function(){r=g(this.value),o(1,r)}]}class G extends H{constructor(t){super(),this.shadowRoot.innerHTML="<style>input{border:none;border-bottom:solid 1px #E95547;background:#15171E;padding:10px 0px}.blurrer{position:fixed;z-index:1000;top:0;left:0;width:100vw;height:100vh;background-color:#939393;opacity:0.5}.cb-login-signup-container{background:#15171E;color:white;width:100vw;min-height:100vh;position:fixed;z-index:1001;top:0;right:0;padding:5rem 3rem 3rem 3rem;font-family:'Mulish';transition:0.5s}:host(.hide-cb-login-signup-prompt) .cb-login-signup-container{right:-100vw}:host(.hide-cb-login-signup-prompt) .blurrer{display:none}@media screen and (min-width: 768px){.cb-login-signup-container{width:35vw}:host(.hide-cb-login-signup-prompt) .cb-login-signup-container{right:-35vw}}.btn{padding:10px 10px;border-radius:3px}.btn.btn-primary{background:linear-gradient(90deg, #F26A3E 0%, #FB8133 100%)}.btn.btn-secondary{background:#15171E;border:1px solid #373E4F}.btn:disabled{background:#939393}.logo{width:20px}.logo-text{display:inline-block;transform:translate(5px, -4px)}.header{font-size:20px}.hr{display:inline-block;width:40%;border:solid 0.5px #373E4F}.sub-header{font-size:12px;color:#BDBDBD}.social-media-logo{width:15px}</style>",P(this,{target:this.shadowRoot,props:f(this.attributes),customElement:!0},V,R,c,{},null),t&&t.target&&s(t.target,this,t.anchor)}}return customElements.define("cb-login-signup",G),G}));
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(t=t||self).cbLoginSignup=n()}(this,(function(){"use strict";function t(){}function n(t){return t()}function o(){return Object.create(null)}function i(t){t.forEach(n)}function e(t){return"function"==typeof t}function c(t,n){return t!=t?n==n:t!==n||t&&"object"==typeof t||"function"==typeof t}function l(t,n){t.appendChild(n)}function s(t,n,o){t.insertBefore(n,o||null)}function a(t){t.parentNode.removeChild(t)}function r(t){return document.createElement(t)}function p(t){return document.createTextNode(t)}function d(){return p(" ")}function u(t,n,o,i){return t.addEventListener(n,o,i),()=>t.removeEventListener(n,o,i)}function h(t,n,o){null==o?t.removeAttribute(n):t.getAttribute(n)!==o&&t.setAttribute(n,o)}function g(t){return""===t?null:+t}function m(t,n){t.value=null==n?"":n}function b(t,n,o,i){null===o?t.style.removeProperty(n):t.style.setProperty(n,o,i?"important":"")}function f(t){const n={};for(const o of t)n[o.name]=o.value;return n}let k;function y(t){k=t}const w=[],v=[],$=[],x=[],_=Promise.resolve();let E=!1;function j(t){$.push(t)}const T=new Set;let O=0;function M(){const t=k;do{for(;O<w.length;){const t=w[O];O++,y(t),S(t.$$)}for(y(null),w.length=0,O=0;v.length;)v.pop()();for(let t=0;t<$.length;t+=1){const n=$[t];T.has(n)||(T.add(n),n())}$.length=0}while(w.length);for(;x.length;)x.pop()();E=!1,T.clear(),y(t)}function S(t){if(null!==t.fragment){t.update(),i(t.before_update);const n=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,n),t.after_update.forEach(j)}}const L=new Set;const z="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function C(t,n){-1===t.$$.dirty[0]&&(w.push(t),E||(E=!0,_.then(M)),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<<n%31}function P(c,l,s,r,p,d,u,h=[-1]){const g=k;y(c);const m=c.$$={fragment:null,ctx:null,props:d,update:t,not_equal:p,bound:o(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(l.context||(g?g.$$.context:[])),callbacks:o(),dirty:h,skip_bound:!1,root:l.target||g.$$.root};u&&u(m.root);let b=!1;if(m.ctx=s?s(c,l.props||{},(t,n,...o)=>{const i=o.length?o[0]:n;return m.ctx&&p(m.ctx[t],m.ctx[t]=i)&&(!m.skip_bound&&m.bound[t]&&m.bound[t](i),b&&C(c,t)),n}):[],m.update(),b=!0,i(m.before_update),m.fragment=!!r&&r(m.ctx),l.target){if(l.hydrate){const t=function(t){return Array.from(t.childNodes)}(l.target);m.fragment&&m.fragment.l(t),t.forEach(a)}else m.fragment&&m.fragment.c();l.intro&&((f=c.$$.fragment)&&f.i&&(L.delete(f),f.i(w))),function(t,o,c,l){const{fragment:s,on_mount:a,on_destroy:r,after_update:p}=t.$$;s&&s.m(o,c),l||j(()=>{const o=a.map(n).filter(e);r?r.push(...o):i(o),t.$$.on_mount=[]}),p.forEach(j)}(c,l.target,l.anchor,l.customElement),M()}var f,w;y(g)}let H;"function"==typeof HTMLElement&&(H=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(n).filter(e);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,n,o){this[t]=o}disconnectedCallback(){i(this.$$.on_disconnect)}$destroy(){!function(t,n){const o=t.$$;null!==o.fragment&&(i(o.on_destroy),o.fragment&&o.fragment.d(n),o.on_destroy=o.fragment=null,o.ctx=[])}(this,1),this.$destroy=t}$on(t,n){const o=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return o.push(n),()=>{const t=o.indexOf(n);-1!==t&&o.splice(t,1)}}$set(t){var n;this.$$set&&(n=t,0!==Object.keys(n).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});const{document:N}=z;function B(t){let n,o;return{c(){n=r("div"),o=p(t[4]),h(n,"class","red")},m(t,i){s(t,n,i),l(n,o)},p(t,n){16&n&&function(t,n){n=""+n,t.wholeText!==n&&(t.data=n)}(o,t[4])},d(t){t&&a(n)}}}function D(t){let n,o,e,c,b,f,k;return{c(){n=r("input"),o=d(),e=r("button"),c=p("Send OTP"),h(n,"type","number"),h(n,"placeholder","Enter 10 digit Mobile Number"),h(n,"class","w-100 mb-4"),h(e,"type","button"),h(e,"class","btn btn-primary w-100"),e.disabled=b=!t[1]},m(i,a){s(i,n,a),m(n,t[1]),s(i,o,a),s(i,e,a),l(e,c),f||(k=[u(n,"input",t[14]),u(e,"click",t[8])],f=!0)},p(t,o){2&o&&g(n.value)!==t[1]&&m(n,t[1]),2&o&&b!==(b=!t[1])&&(e.disabled=b)},d(t){t&&a(n),t&&a(o),t&&a(e),f=!1,i(k)}}}function A(t){let n,o,e,c,b,f,k;return{c(){n=r("input"),o=d(),e=r("button"),c=p("Verify OTP"),h(n,"type","number"),h(n,"placeholder","Enter OTP"),h(n,"class","w-100 mb-4"),h(e,"type","button"),h(e,"class","btn btn-primary w-100"),e.disabled=b=!t[2]},m(i,a){s(i,n,a),m(n,t[2]),s(i,o,a),s(i,e,a),l(e,c),f||(k=[u(n,"input",t[13]),u(e,"click",t[9])],f=!0)},p(t,o){4&o&&g(n.value)!==t[2]&&m(n,t[2]),4&o&&b!==(b=!t[2])&&(e.disabled=b)},d(t){t&&a(n),t&&a(o),t&&a(e),f=!1,i(k)}}}function F(t){let n;function o(t,n){return t[3]?I:q}let i=o(t),e=i(t);return{c(){e.c(),n=p("")},m(t,o){e.m(t,o),s(t,n,o)},p(t,c){i===(i=o(t))&&e?e.p(t,c):(e.d(1),e=i(t),e&&(e.c(),e.m(n.parentNode,n)))},d(t){e.d(t),t&&a(n)}}}function q(t){let n,o,e,c,g,b,f;return{c(){n=r("input"),o=d(),e=r("button"),c=p("Send OTP"),h(n,"type","email"),h(n,"placeholder","Enter Email"),h(n,"class","w-100 mb-4"),h(e,"type","button"),h(e,"class","btn btn-primary w-100"),e.disabled=g=!t[0]},m(i,a){s(i,n,a),m(n,t[0]),s(i,o,a),s(i,e,a),l(e,c),b||(f=[u(n,"input",t[12]),u(e,"click",t[8])],b=!0)},p(t,o){1&o&&n.value!==t[0]&&m(n,t[0]),1&o&&g!==(g=!t[0])&&(e.disabled=g)},d(t){t&&a(n),t&&a(o),t&&a(e),b=!1,i(f)}}}function I(t){let n,o,e,c,b,f,k;return{c(){n=r("input"),o=d(),e=r("button"),c=p("Verify OTP"),h(n,"type","number"),h(n,"placeholder","Enter OTP"),h(n,"class","w-100 mb-4"),h(e,"type","button"),h(e,"class","btn btn-primary w-100"),e.disabled=b=!t[2]},m(i,a){s(i,n,a),m(n,t[2]),s(i,o,a),s(i,e,a),l(e,c),f||(k=[u(n,"input",t[11]),u(e,"click",t[9])],f=!0)},p(t,o){4&o&&g(n.value)!==t[2]&&m(n,t[2]),4&o&&b!==(b=!t[2])&&(e.disabled=b)},d(t){t&&a(n),t&&a(o),t&&a(e),f=!1,i(k)}}}function R(n){let o,e,c,g,m,f,k,y,w,v,$,x,_,E,j,T,O,M,S,L,z,C,P,H,q,I,R,V,G,K,Q,U,W,X,Y,Z,tt,nt,ot,it=n[4]&&B(n);function et(t,n){return"email"===t[5]?F:t[3]?A:D}let ct=et(n),lt=ct(n);return{c(){o=r("link"),e=r("link"),c=r("link"),g=d(),m=r("div"),f=d(),k=r("div"),y=r("div"),w=r("h2"),w.textContent="Login / Signup",v=d(),$=r("button"),$.innerHTML='<img src="https://minio.codingblocks.com/public/cross-black.png" alt=""/>',x=d(),_=r("div"),E=p("Sign In with \n "),j=r("button"),T=p("Email"),M=p("\n Or\n "),S=r("button"),L=p("Mobile"),C=d(),it&&it.c(),P=d(),lt.c(),H=d(),q=r("div"),q.innerHTML='<span class="hr"></span> \n <span class="px-5">OR</span> \n <span class="hr"></span>',I=d(),R=r("a"),V=r("button"),V.innerHTML='<img class="logo" src="https://minio.codingblocks.com/public/google-logo.png" alt=""/> \n <span class="logo-text">Sign in with Google</span>',G=d(),K=r("a"),Q=r("button"),Q.innerHTML='<img class="logo" src="https://minio.codingblocks.com/public/facebook-logo.png" alt=""/> \n <span class="logo-text">Sign in with facebook</span>',U=d(),W=r("div"),W.innerHTML='<div class="header">Find your dream job</div> \n <div class="sub-header mb-4">Trusted by 100k+ students</div> \n <img src="https://minio.codingblocks.com/public/company-logo-group.png" alt=""/>',X=d(),Y=r("div"),Y.innerHTML='<a href="https://www.linkedin.com/school/codingblocksindia/" target="_blank"><img class="social-media-logo mr-2" src="https://minio.codingblocks.com/public/linkedin-logo.png" alt=""/></a> \n <a href="https://twitter.com/codingblocksIN" target="_blank"><img class="social-media-logo mr-2" src="https://minio.codingblocks.com/public/twitter-logo.png" alt=""/></a> \n <a href="https://github.com/coding-blocks" target="_blank"><img class="social-media-logo" src="https://minio.codingblocks.com/public/github-logo.png" alt=""/></a> \n <div><a href="https://codingblocks.com/tos.html" class="sub-header" target="_blank">Coding Blocks | Terms of service</a></div>',Z=d(),tt=r("link"),this.c=t,h(o,"rel","preconnect"),h(o,"href","https://fonts.googleapis.com"),h(e,"rel","preconnect"),h(e,"href","https://fonts.gstatic.com"),h(e,"crossorigin",""),h(c,"href","https://fonts.googleapis.com/css2?family=Mulish:wght@400;600&display=swap"),h(c,"rel","stylesheet"),h(m,"class","blurrer"),b($,"color","#3B4254"),h(y,"class","d-flex justify-content-between align-items-center mb-5"),h(j,"class",O="email"===n[5]?"red":""),h(S,"class",z="mobile"===n[5]?"red":""),h(_,"class","mb-4"),h(q,"class","d-flex justify-content-center align-items-center"),b(q,"margin","30px 0px"),h(V,"class","btn btn-secondary white w-100 mb-3"),h(R,"href",n[6]),h(Q,"class","btn btn-secondary white w-100 mb-5"),h(K,"href",n[7]),h(W,"class","mb-5 pt-5"),h(Y,"class","position-absolute"),h(k,"id","cb-login-signup"),h(k,"class","cb-login-signup-container"),h(tt,"rel","stylesheet"),h(tt,"href","https://unpkg.com/@coding-blocks/motley@2.8.6/dist/account/app.min.css")},m(t,i){l(N.head,o),l(N.head,e),l(N.head,c),s(t,g,i),s(t,m,i),s(t,f,i),s(t,k,i),l(k,y),l(y,w),l(y,v),l(y,$),l(k,x),l(k,_),l(_,E),l(_,j),l(j,T),l(_,M),l(_,S),l(S,L),l(k,C),it&&it.m(k,null),l(k,P),lt.m(k,null),l(k,H),l(k,q),l(k,I),l(k,R),l(R,V),l(k,G),l(k,K),l(K,Q),l(k,U),l(k,W),l(k,X),l(k,Y),s(t,Z,i),s(t,tt,i),nt||(ot=[u(m,"click",J),u($,"click",J),u(j,"click",n[10]("email")),u(S,"click",n[10]("mobile"))],nt=!0)},p(t,[n]){32&n&&O!==(O="email"===t[5]?"red":"")&&h(j,"class",O),32&n&&z!==(z="mobile"===t[5]?"red":"")&&h(S,"class",z),t[4]?it?it.p(t,n):(it=B(t),it.c(),it.m(k,P)):it&&(it.d(1),it=null),ct===(ct=et(t))&&lt?lt.p(t,n):(lt.d(1),lt=ct(t),lt&&(lt.c(),lt.m(k,H)))},i:t,o:t,d(t){a(o),a(e),a(c),t&&a(g),t&&a(m),t&&a(f),t&&a(k),it&&it.d(),lt.d(),t&&a(Z),t&&a(tt),nt=!1,i(ot)}}}function J(){document.getElementsByTagName("cb-login-signup")[0].classList.add("hide-cb-login-signup-prompt")}function V(t,n,o){const i=window.location.host.split(".")[0],e=window.location.pathname,c=window.location.host.includes("codingblocks.xyz"),l={hack:2146237097,online:5633768694,hire:4190457915,codeskiller:9706874989,cricket:3806036015},s={sendOtpEmail:{hack:"https://hack-api.codingblocks.com/api/v2/jwt/otp",online:"https://online-api.codingblocks.com/api/v2/jwt/otp/email",hire:"https://hire-api.codingblocks.com/login/otp/email",codeskiller:"https://code-gym-api.codingblocks.com/api/jwt/otp",cricket:"https://cricket.codingblocks.com/api/jwt/otp"},sendOtpMobile:{hack:"https://hack-api.codingblocks.com/api/v2/jwt/otp",online:"https://online-api.codingblocks.com/api/v2/jwt/otp/mobile",hire:"https://hire-api.codingblocks.com/login/otp/mobile",codeskiller:"https://code-gym-api.codingblocks.com/api/jwt/otp",cricket:"https://cricket.codingblocks.com/api/jwt/otp"},verifyOtpEmail:{hack:"https://hack-api.codingblocks.com/api/v2/jwt/otp/verify",online:"https://online-api.codingblocks.com/api/v2/jwt/otp/email/verify",hire:"https://hire-api.codingblocks.com/login/otp/email/verify",codeskiller:"https://code-gym-api.codingblocks.com/api/jwt/otp/verify",cricket:"https://cricket.codingblocks.com/api/jwt/otp/verify"},verifyOtpMobile:{hack:"https://hack-api.codingblocks.com/api/v2/jwt/otp/verify",online:"https://online-api.codingblocks.com/api/v2/jwt/otp/mobile/verify",hire:"https://hire-api.codingblocks.com/login/otp/mobile/verify",cricket:"https://cricket.codingblocks.com/api/jwt/otp/verify"}};let a=null,r=null,p=null,d=null,u=null,h="email",m=(localStorage.getItem("cb_login_prompt"),i.includes("localhost")?`http://localhost:3838/login/google/v2?redirect_uri=http://${i}${e}&client=localhost&client_id=1234567890`:c?`https://account.codingblocks.xyz/login/google/v2?redirect_uri=https://${i}.codingblocks.xyz${e}&client=${i}-codingblocks&client_id=1`:`https://account.codingblocks.com/login/google/v2?redirect_uri=https://${i}.codingblocks.com${e}&client=${"cricket"===i?"cricket-quiz-iccwc23":i}-codingblocks&client_id=${l[i]}`),b=i.includes("localhost")?`http://localhost:3838/login/facebook/v2?redirect_uri=http://${i}${e}&client=localhost&client_id=1234567890`:c?`https://account.codingblocks.xyz/login/facebook/v2?redirect_uri=https://${i}.codingblocks.xyz${e}&client=${i}-codingblocks&client_id=1`:`https://account.codingblocks.com/login/facebook/v2?redirect_uri=https://${i}.codingblocks.com${e}&client=${"cricket"===i?"cricket-quiz-iccwc23":i}-codingblocks&client_id=${l[i]}`;return[a,r,p,d,u,h,m,b,async function(){o(4,u=null);const t=await fetch(("email"===h?s.sendOtpEmail[i]:s.sendOtpMobile[i])||"http://localhost:3000/api/jwt/otp",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({email:a,mobile:r})});if(t.ok){let{id:n,Details:i}=await t.json();o(3,d=n||i)}else{const{message:n,Details:i}=await t.json();(n||i)&&o(4,u=n||i)}},async function(){o(4,u=null);const t=await fetch(("email"===h?s.verifyOtpEmail[i]:s.verifyOtpMobile[i])||"http://localhost:3000/api/jwt/otp/verify",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({email:a,mobile:r,otp_id:d,otp:p})});if(t.ok)window.location.reload();else{const{message:n,Details:i}=await t.json();(n||i)&&o(4,u=n||i)}},t=>()=>{o(5,h=t),o(3,d=null)},function(){p=g(this.value),o(2,p)},function(){a=this.value,o(0,a)},function(){p=g(this.value),o(2,p)},function(){r=g(this.value),o(1,r)}]}class G extends H{constructor(t){super(),this.shadowRoot.innerHTML="<style>input{border:none;border-bottom:solid 1px #E95547;background:#15171E;padding:10px 0px}.blurrer{position:fixed;z-index:1000;top:0;left:0;width:100vw;height:100vh;background-color:#939393;opacity:0.5}.cb-login-signup-container{background:#15171E;color:white;width:100vw;min-height:100vh;position:fixed;z-index:1001;top:0;right:0;padding:5rem 3rem 3rem 3rem;font-family:'Mulish';transition:0.5s}:host(.hide-cb-login-signup-prompt) .cb-login-signup-container{right:-100vw}:host(.hide-cb-login-signup-prompt) .blurrer{display:none}@media screen and (min-width: 768px){.cb-login-signup-container{width:35vw}:host(.hide-cb-login-signup-prompt) .cb-login-signup-container{right:-35vw}}.btn{padding:10px 10px;border-radius:3px}.btn.btn-primary{background:linear-gradient(90deg, #F26A3E 0%, #FB8133 100%)}.btn.btn-secondary{background:#15171E;border:1px solid #373E4F}.btn:disabled{background:#939393}.logo{width:20px}.logo-text{display:inline-block;transform:translate(5px, -4px)}.header{font-size:20px}.hr{display:inline-block;width:40%;border:solid 0.5px #373E4F}.sub-header{font-size:12px;color:#BDBDBD}.social-media-logo{width:15px}</style>",P(this,{target:this.shadowRoot,props:f(this.attributes),customElement:!0},V,R,c,{},null),t&&t.target&&s(t.target,this,t.anchor)}}return customElements.define("cb-login-signup",G),G}));

@@ -1,1 +0,1 @@

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(((t=t||self).index=t.index||{},t.index.js={}))}(this,(function(t){"use strict";function e(){}function s(t){return t()}function o(){return Object.create(null)}function n(t){t.forEach(s)}function i(t){return"function"==typeof t}function c(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}let l,a;function r(t,e){return l||(l=document.createElement("a")),l.href=e,t===l.href}function d(t,e){t.appendChild(e)}function u(t,e,s){t.insertBefore(e,s||null)}function h(t){t.parentNode.removeChild(t)}function m(t,e){for(let s=0;s<t.length;s+=1)t[s]&&t[s].d(e)}function p(t){return document.createElement(t)}function g(t){return document.createTextNode(t)}function b(){return g(" ")}function f(){return g("")}function v(t,e,s,o){return t.addEventListener(e,s,o),()=>t.removeEventListener(e,s,o)}function k(t,e,s){null==s?t.removeAttribute(e):t.getAttribute(e)!==s&&t.setAttribute(e,s)}function w(t){return""===t?null:+t}function y(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function $(t,e){t.value=null==e?"":e}function x(t,e,s,o){null===s?t.style.removeProperty(e):t.style.setProperty(e,s,o?"important":"")}function _(t,e){for(let s=0;s<t.options.length;s+=1){const o=t.options[s];if(o.__value===e)return void(o.selected=!0)}t.selectedIndex=-1}function C(t){const e=t.querySelector(":checked")||t.options[0];return e&&e.__value}function j(t){const e={};for(const s of t)e[s.name]=s.value;return e}function T(t){a=t}function E(){if(!a)throw new Error("Function called outside component initialization");return a}function M(t){E().$$.on_mount.push(t)}function P(){const t=E();return(e,s,{cancelable:o=!1}={})=>{const n=t.$$.callbacks[e];if(n){const i=function(t,e,{bubbles:s=!1,cancelable:o=!1}={}){const n=document.createEvent("CustomEvent");return n.initCustomEvent(t,s,o,e),n}(e,s,{cancelable:o});return n.slice().forEach(e=>{e.call(t,i)}),!i.defaultPrevented}return!0}}const A=[],L=[],O=[],z=[],B=Promise.resolve();let D=!1;function H(t){O.push(t)}const I=new Set;let U=0;function S(){const t=a;do{for(;U<A.length;){const t=A[U];U++,T(t),N(t.$$)}for(T(null),A.length=0,U=0;L.length;)L.pop()();for(let t=0;t<O.length;t+=1){const e=O[t];I.has(e)||(I.add(e),e())}O.length=0}while(A.length);for(;z.length;)z.pop()();D=!1,I.clear(),T(t)}function N(t){if(null!==t.fragment){t.update(),n(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(H)}}const R=new Set;let F;function J(){F={r:0,c:[],p:F}}function G(){F.r||n(F.c),F=F.p}function q(t,e){t&&t.i&&(R.delete(t),t.i(e))}function W(t,e,s,o){if(t&&t.o){if(R.has(t))return;R.add(t),F.c.push(()=>{R.delete(t),o&&(s&&t.d(1),o())}),t.o(e)}else o&&o()}const Y="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function Z(t){t&&t.c()}function V(t,e,o,c){const{fragment:l,on_mount:a,on_destroy:r,after_update:d}=t.$$;l&&l.m(e,o),c||H(()=>{const e=a.map(s).filter(i);r?r.push(...e):n(e),t.$$.on_mount=[]}),d.forEach(H)}function K(t,e){const s=t.$$;null!==s.fragment&&(n(s.on_destroy),s.fragment&&s.fragment.d(e),s.on_destroy=s.fragment=null,s.ctx=[])}function Q(t,e){-1===t.$$.dirty[0]&&(A.push(t),D||(D=!0,B.then(S)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function X(t,s,i,c,l,r,d,u=[-1]){const m=a;T(t);const p=t.$$={fragment:null,ctx:null,props:r,update:e,not_equal:l,bound:o(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(s.context||(m?m.$$.context:[])),callbacks:o(),dirty:u,skip_bound:!1,root:s.target||m.$$.root};d&&d(p.root);let g=!1;if(p.ctx=i?i(t,s.props||{},(e,s,...o)=>{const n=o.length?o[0]:s;return p.ctx&&l(p.ctx[e],p.ctx[e]=n)&&(!p.skip_bound&&p.bound[e]&&p.bound[e](n),g&&Q(t,e)),s}):[],p.update(),g=!0,n(p.before_update),p.fragment=!!c&&c(p.ctx),s.target){if(s.hydrate){const t=function(t){return Array.from(t.childNodes)}(s.target);p.fragment&&p.fragment.l(t),t.forEach(h)}else p.fragment&&p.fragment.c();s.intro&&q(t.$$.fragment),V(t,s.target,s.anchor,s.customElement),S()}T(m)}let tt;function et(t,e,s){const o=t.slice();return o[9]=e[s].img_url,o[10]=e[s].img_url_mobile,o[11]=e[s].link,o[13]=s,o}function st(t){let e,s=t[3],o=[];for(let e=0;e<s.length;e+=1)o[e]=it(et(t,s,e));return{c(){e=p("div");for(let t=0;t<o.length;t+=1)o[t].c();k(e,"class","carousel")},m(t,s){u(t,e,s);for(let t=0;t<o.length;t+=1)o[t].m(e,null)},p(t,n){if(61&n){let i;for(s=t[3],i=0;i<s.length;i+=1){const c=et(t,s,i);o[i]?o[i].p(c,n):(o[i]=it(c),o[i].c(),o[i].m(e,null))}for(;i<o.length;i+=1)o[i].d(1);o.length=s.length}},d(t){t&&h(e),m(o,t)}}}function ot(t){let e,s,o,n,i,c,l,a,m,g=t[0]&&nt(t);return{c(){e=p("a"),g&&g.c(),s=b(),o=p("img"),i=b(),c=p("img"),a=b(),k(o,"class","d-md-block"),r(o.src,n=t[9])||k(o,"src",n),k(o,"alt",""),k(o,"width","100%"),k(c,"class","d-md-none"),r(c.src,l=t[10])||k(c,"src",l),k(c,"alt",""),k(c,"width","100%"),k(e,"class","d-block"),k(e,"target","_blank"),k(e,"href",m=t[11])},m(t,n){u(t,e,n),g&&g.m(e,null),d(e,s),d(e,o),d(e,i),d(e,c),d(e,a)},p(t,i){t[0]?g?g.p(t,i):(g=nt(t),g.c(),g.m(e,s)):g&&(g.d(1),g=null),8&i&&!r(o.src,n=t[9])&&k(o,"src",n),8&i&&!r(c.src,l=t[10])&&k(c,"src",l),8&i&&m!==(m=t[11])&&k(e,"href",m)},d(t){t&&h(e),g&&g.d()}}}function nt(t){let e,s,o,n;return{c(){e=p("img"),k(e,"class","close-icon"),r(e.src,s=t[2])||k(e,"src",s),k(e,"alt","close")},m(s,i){var c;u(s,e,i),o||(n=v(e,"click",function(t){return function(e){return e.stopPropagation(),t.call(this,e)}}((c=t[5],function(t){return t.preventDefault(),c.call(this,t)})),!0),o=!0)},p(t,o){4&o&&!r(e.src,s=t[2])&&k(e,"src",s)},d(t){t&&h(e),o=!1,n()}}}function it(t){let e,s=t[4]==t[13]&&ot(t);return{c(){s&&s.c(),e=f()},m(t,o){s&&s.m(t,o),u(t,e,o)},p(t,o){t[4]==t[13]?s?s.p(t,o):(s=ot(t),s.c(),s.m(e.parentNode,e)):s&&(s.d(1),s=null)},d(t){s&&s.d(t),t&&h(e)}}}function ct(t){let s,o=t[1]&&st(t);return{c(){o&&o.c(),s=f(),this.c=e},m(t,e){o&&o.m(t,e),u(t,s,e)},p(t,[e]){t[1]?o?o.p(t,e):(o=st(t),o.c(),o.m(s.parentNode,s)):o&&(o.d(1),o=null)},i:e,o:e,d(t){o&&o.d(t),t&&h(s)}}}function lt(t,e,s){let o=!1,n="",i=[],c=0,l=!1,{showToggle:a=!0}=e,{theme:r="light"}=e;M(async()=>{const t=await fetch("https://hack-api.codingblocks.com/api/v2/dashboard-banners",{headers:{client:"hack-admin"}}),{data:e}=await t.json();s(3,i=e.map(t=>({img_url:t.attributes["image-url"],img_url_mobile:t.attributes["mobile-image-url"],link:t.attributes.link}))),s(2,n="light"===r?"https://minio.codingblocks.com/motley/wrong_g_white.min.png":"https://minio.codingblocks.com/motley/wrong_g.png"),s(1,o=!!i.length),l||d()});const d=t=>{l&&clearInterval(l),l=setInterval(()=>{c==i.length-1?s(4,c=0):s(4,c+=1)},7e3)};return t.$$set=t=>{"showToggle"in t&&s(0,a=t.showToggle),"theme"in t&&s(6,r=t.theme)},[a,o,n,i,c,()=>{s(1,o=!o)},r]}"function"==typeof HTMLElement&&(tt=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(s).filter(i);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,s){this[t]=s}disconnectedCallback(){n(this.$$.on_disconnect)}$destroy(){K(this,1),this.$destroy=e}$on(t,e){const s=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return s.push(e),()=>{const t=s.indexOf(e);-1!==t&&s.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});class at extends tt{constructor(t){super(),this.shadowRoot.innerHTML="<style>.d-block{display:block;position:relative}.close-icon{position:absolute;right:10px;cursor:pointer;top:10px;width:15px;transition:width 0.1s}.close-icon:hover{width:18px}.d-md-none{display:block}.d-md-block{display:none}.carousel{max-height:116px;overflow:hidden}@media(min-width:768px){.d-md-none{display:none}.d-md-block{display:block}}</style>",X(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},lt,ct,c,{showToggle:0,theme:6},null),t&&(t.target&&u(t.target,this,t.anchor),t.props&&(this.$set(t.props),S()))}static get observedAttributes(){return["showToggle","theme"]}get showToggle(){return this.$$.ctx[0]}set showToggle(t){this.$$set({showToggle:t}),S()}get theme(){return this.$$.ctx[6]}set theme(t){this.$$set({theme:t}),S()}}customElements.define("promotion-banner",at);var rt=new class{constructor(t){this.url=t}fetchUser(){return fetch(this.url+"/users/me?include=demographic",{credentials:"include"}).then(t=>t.json())}fetchColleges(){return fetch(this.url+"/colleges").then(t=>t.json())}fetchBranches(){return fetch(this.url+"/branches").then(t=>t.json())}updateUser(t){return fetch(this.url+"/users/me/edit",{method:"PATCH",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}).then(t=>t.json())}}("https://account.codingblocks.com/api");function dt(t,e,s){const o=t.slice();return o[15]=e[s],o}function ut(t,e,s){const o=t.slice();return o[18]=e[s],o}function ht(t,e,s){const o=t.slice();return o[21]=e[s],o}function mt(t){let e,s,o;function n(t,e){return t[7].success?gt:pt}let i=n(t),c=i(t);return{c(){e=p("div"),s=p("div"),s.innerHTML='<div class="font-md bold">Get INR 1000 Credits</div> \n <div class="mt-4">Complete your Profile &amp; get INR 1000 credits in your wallet</div>',o=b(),c.c(),k(s,"class","bg-gradient-pink white p-4"),k(e,"class","border-card b-red p-0")},m(t,n){u(t,e,n),d(e,s),d(e,o),c.m(e,null)},p(t,s){i===(i=n(t))&&c?c.p(t,s):(c.d(1),c=i(t),c&&(c.c(),c.m(e,null)))},d(t){t&&h(e),c.d()}}}function pt(t){let e,s,o,i,c,l,a,r,g,f,w,y,$,x,C,j,T=t[4],E=[];for(let e=0;e<T.length;e+=1)E[e]=bt(ht(t,T,e));let M=1===t[0]&&ft(t),P=t[8],A=[];for(let e=0;e<P.length;e+=1)A[e]=vt(ut(t,P,e));let L=t[5],O=[];for(let e=0;e<L.length;e+=1)O[e]=kt(dt(t,L,e));let z=t[7].error&&wt(t);return{c(){e=p("div"),s=p("select"),o=p("option"),o.textContent="-- College --";for(let t=0;t<E.length;t+=1)E[t].c();i=b(),M&&M.c(),c=b(),l=p("select"),a=p("option"),a.textContent="-- Graduation Year --";for(let t=0;t<A.length;t+=1)A[t].c();r=b(),g=p("select"),f=p("option"),f.textContent="-- Branch --";for(let t=0;t<O.length;t+=1)O[t].c();w=b(),y=p("div"),$=p("button"),$.textContent="Update Profile",x=b(),z&&z.c(),o.disabled=!0,o.selected=!0,o.__value="",o.value=o.__value,k(s,"class","input-text br-50 my-2"),void 0===t[0]&&H(()=>t[10].call(s)),a.disabled=!0,a.selected=!0,a.__value="",a.value=a.__value,k(l,"class","input-text br-50 my-2"),void 0===t[2]&&H(()=>t[12].call(l)),f.disabled=!0,f.selected=!0,f.__value="",f.value=f.__value,k(g,"class","input-text br-50 my-2"),void 0===t[1]&&H(()=>t[13].call(g)),k($,"id","updatedButton"),k($,"class","button-solid button-orange"),k(y,"class","d-flex justify-content-center mt-5"),k(e,"class","py-4 px-5 t-align-center")},m(n,h){u(n,e,h),d(e,s),d(s,o);for(let t=0;t<E.length;t+=1)E[t].m(s,null);_(s,t[0]),d(e,i),M&&M.m(e,null),d(e,c),d(e,l),d(l,a);for(let t=0;t<A.length;t+=1)A[t].m(l,null);_(l,t[2]),d(e,r),d(e,g),d(g,f);for(let t=0;t<O.length;t+=1)O[t].m(g,null);_(g,t[1]),d(e,w),d(e,y),d(y,$),d(e,x),z&&z.m(e,null),C||(j=[v(s,"change",t[10]),v(l,"change",t[12]),v(g,"change",t[13]),v($,"click",t[9])],C=!0)},p(t,o){if(17&o){let e;for(T=t[4],e=0;e<T.length;e+=1){const n=ht(t,T,e);E[e]?E[e].p(n,o):(E[e]=bt(n),E[e].c(),E[e].m(s,null))}for(;e<E.length;e+=1)E[e].d(1);E.length=T.length}if(17&o&&_(s,t[0]),1===t[0]?M?M.p(t,o):(M=ft(t),M.c(),M.m(e,c)):M&&(M.d(1),M=null),260&o){let e;for(P=t[8],e=0;e<P.length;e+=1){const s=ut(t,P,e);A[e]?A[e].p(s,o):(A[e]=vt(s),A[e].c(),A[e].m(l,null))}for(;e<A.length;e+=1)A[e].d(1);A.length=P.length}if(260&o&&_(l,t[2]),34&o){let e;for(L=t[5],e=0;e<L.length;e+=1){const s=dt(t,L,e);O[e]?O[e].p(s,o):(O[e]=kt(s),O[e].c(),O[e].m(g,null))}for(;e<O.length;e+=1)O[e].d(1);O.length=L.length}34&o&&_(g,t[1]),t[7].error?z?z.p(t,o):(z=wt(t),z.c(),z.m(e,null)):z&&(z.d(1),z=null)},d(t){t&&h(e),m(E,t),M&&M.d(),m(A,t),m(O,t),z&&z.d(),C=!1,n(j)}}}function gt(t){let s;return{c(){s=p("div"),s.innerHTML='<div class="font-md gradient-text extra-bold mt-4">Your profile has been updated !</div>',k(s,"class","my-5 t-align-c")},m(t,e){u(t,s,e)},p:e,d(t){t&&h(s)}}}function bt(t){let e,s,o,n,i,c=t[21].name+"";return{c(){e=p("option"),s=g(c),o=b(),e.__value=n=t[21].id,e.value=e.__value,e.selected=i=t[21].id===t[0]},m(t,n){u(t,e,n),d(e,s),d(e,o)},p(t,o){16&o&&c!==(c=t[21].name+"")&&y(s,c),16&o&&n!==(n=t[21].id)&&(e.__value=n,e.value=e.__value),17&o&&i!==(i=t[21].id===t[0])&&(e.selected=i)},d(t){t&&h(e)}}}function ft(t){let e,s,o;return{c(){e=p("input"),k(e,"type","text"),k(e,"placeholder","Other College Name"),k(e,"class","input-text br-50 my-2")},m(n,i){u(n,e,i),$(e,t[3]),s||(o=v(e,"input",t[11]),s=!0)},p(t,s){8&s&&e.value!==t[3]&&$(e,t[3])},d(t){t&&h(e),s=!1,o()}}}function vt(t){let e,s,o,n,i,c=t[18]+"";return{c(){e=p("option"),s=g(c),o=b(),e.__value=n=t[18],e.value=e.__value,e.selected=i=t[18]===t[2]},m(t,n){u(t,e,n),d(e,s),d(e,o)},p(t,s){260&s&&i!==(i=t[18]===t[2])&&(e.selected=i)},d(t){t&&h(e)}}}function kt(t){let e,s,o,n,i,c=t[15].name+"";return{c(){e=p("option"),s=g(c),o=b(),e.__value=n=t[15].id,e.value=e.__value,e.selected=i=t[15].id===t[1]},m(t,n){u(t,e,n),d(e,s),d(e,o)},p(t,o){32&o&&c!==(c=t[15].name+"")&&y(s,c),32&o&&n!==(n=t[15].id)&&(e.__value=n,e.value=e.__value),34&o&&i!==(i=t[15].id===t[1])&&(e.selected=i)},d(t){t&&h(e)}}}function wt(t){let e,s,o,n=t[7].error+"";return{c(){e=p("div"),s=p("p"),o=g(n),k(s,"class","red"),k(e,"class","row justify-content-center")},m(t,n){u(t,e,n),d(e,s),d(s,o)},p(t,e){128&e&&n!==(n=t[7].error+"")&&y(o,n)},d(t){t&&h(e)}}}function yt(t){let s,o,n=t[6].id&&1===t[6].demographic.collegeId&&!t[6].demographic.otherCollege&&mt(t);return{c(){n&&n.c(),s=b(),o=p("link"),this.c=e,k(o,"rel","stylesheet"),k(o,"href","https://unpkg.com/@coding-blocks/motley@0.7.4/dist/online-cb/app.min.css")},m(t,e){n&&n.m(t,e),u(t,s,e),u(t,o,e)},p(t,[e]){t[6].id&&1===t[6].demographic.collegeId&&!t[6].demographic.otherCollege?n?n.p(t,e):(n=mt(t),n.c(),n.m(s.parentNode,s)):n&&(n.d(1),n=null)},i:e,o:e,d(t){n&&n.d(t),t&&h(s),t&&h(o)}}}function $t(t,e,s){let o=null,n=null,i=null,c="",l=[],a=[],r=[2025,2024,2023,2022,2021,2020,2019,2018,2017,2016,2015,2014,2013,2012,2011,2010,2009,2008,2007,2006,2005,2004,2003,2002,2001,2e3],d={},u={success:null,error:null};const h=P();M(async()=>{s(6,d=await rt.fetchUser()),d.id&&(s(4,l=await rt.fetchColleges()),s(5,a=await rt.fetchBranches()),s(2,i=d.graduationYear),s(0,o=d.demographic.collegeId),s(1,n=d.demographic.branchId),s(3,c=d.demographic.otherCollege))});return[o,n,i,c,l,a,d,u,r,async()=>{try{const t=await rt.updateUser({gradYear:i,collegeId:o,branchId:n,otherCollege:c});h("updated",t),s(7,u={success:t.success}),setTimeout(async()=>{s(6,d=await rt.fetchUser())},2e3)}catch(t){s(7,u={error:t})}},function(){o=C(this),s(0,o),s(4,l)},function(){c=this.value,s(3,c)},function(){i=C(this),s(2,i),s(8,r)},function(){n=C(this),s(1,n),s(5,a)}]}class xt extends tt{constructor(t){super(),X(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},$t,yt,c,{},null),t&&t.target&&u(t.target,this,t.anchor)}}function _t(t){let s;return{c(){s=p("div"),s.innerHTML='<div class="mt-4"><div class="card-sm light extra-bold">Beginner Courses</div> \n\t\t<div class="card-sm light"><a href="https://codingblocks.com/classroom-courses/c-plus-plus-for-beginners.html">C++ For Beginners</a></div> \n\t\t<div class="card-sm light"><a href="https://codingblocks.com/classroom-courses/java-for-beginners.html">Java For Beginners</a></div> \n\t\t<div class="card-sm light"><a href="https://codingblocks.com/classroom-courses/python-app-dev.html">Python App Development</a></div></div> \n\t<div class="mt-3"><div class="card-sm light extra-bold">Development Courses</div> \n\t\t<div class="card-sm light"><a href="https://codingblocks.com/classroom-courses/android-app-development-using-kotlin-and-java.html">Android App Dev</a></div> \n\t\t<div class="card-sm light"><a href="https://codingblocks.com/classroom-courses/web-development-nodejs.html">Full Stack Web Dev</a></div> \n\t\t<div class="card-sm light"><a href="https://codingblocks.com/classroom-courses/web-development-django.html">Python Django</a></div> \n\t\t<div class="card-sm light"><a href="https://codingblocks.com/classroom-courses/unity-game-development.html">Unity Game Development</a></div></div> \n\t<div class="mt-3"><div class="card-sm light extra-bold">Advanced Courses</div> \n\t\t<div class="card-sm light"><a href="https://codingblocks.com/classroom-courses/android-app-development-using-kotlin-and-java.html">Algo++</a></div> \n\t\t<div class="card-sm light"><a href="https://codingblocks.com/classroom-courses/web-development-nodejs.html">Algo.JAVA</a></div> \n\t\t<div class="card-sm light"><a href="https://codingblocks.com/classroom-courses/web-development-django.html">Competitive Programming</a></div> \n\t\t<div class="card-sm light"><a href="https://codingblocks.com/classroom-courses/unity-game-development.html">Machine Learning</a></div></div>',this.c=e,k(s,"class","pl-4")},m(t,e){u(t,s,e)},p:e,i:e,o:e,d(t){t&&h(s)}}}customElements.define("demographic-form",xt);class Ct extends tt{constructor(t){super(),X(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},null,_t,c,{},null),t&&t.target&&u(t.target,this,t.anchor)}}function jt(t){let s;return{c(){s=p("div"),s.innerHTML='<div class="mt-4"><div class="card-sm light extra-bold">Beginner Courses</div> \n <div class="card-sm light"><a href="https://online.codingblocks.com/courses/c-plus-plus-online-course-for-beginners">C++ Master Course | Launchpad</a></div> \n <div class="card-sm light"><a href="https://online.codingblocks.com/courses/complete-java-course-online">Java Master Course | Crux</a></div> \n <div class="card-sm light"><a href="https://online.codingblocks.com/courses/python-for-beginners-developers">Python For Developers</a></div></div> \n <div class="mt-3"><div class="card-sm light extra-bold">Advanced Courses</div> \n <div class="card-sm light"><a href="https://online.codingblocks.com/courses/python-django">Web Dev with Python-Django</a></div> \n <div class="card-sm light"><a href="https://online.codingblocks.com/courses/coding-interview-preparation-online">Interview Prep Bootcamp</a></div> \n <div class="card-sm light"><a href="https://online.codingblocks.com/courses/data-structures-and-algorithms-online-course-java-algo">Algo.Java Online</a></div> \n <div class="card-sm light"><a href="https://online.codingblocks.com/courses/android-app-training-online">Android App Development Online</a></div> \n <div class="card-sm light"><a href="https://online.codingblocks.com/courses/telegram-chatbot-python-online">Build Chatbots in Python</a></div></div> \n <div class="mt-3"><div class="card-sm light extra-bold">Expert Courses</div> \n <div class="card-sm light"><a href="https://online.codingblocks.com/courses/competitive-programming-course-online">Competitive Programming Online</a></div> \n <div class="card-sm light"><a href="https://online.codingblocks.com/courses/coding-interview-preparation-course-online-c-plus-plus">Interview Preparation - C++</a></div> \n <div class="card-sm light"><a href="https://online.codingblocks.com/courses/machine-learning-course-online">Machine Learning Master Course</a></div> \n <div class="card-sm light"><a href="https://online.codingblocks.com/courses/coding-interview-preparation-course-online-java">Interview Preparation - Java</a></div></div>',this.c=e,k(s,"class","pl-4")},m(t,e){u(t,s,e)},p:e,i:e,o:e,d(t){t&&h(s)}}}customElements.define("mobile-classroom-courses",Ct);class Tt extends tt{constructor(t){super(),X(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},null,jt,c,{},null),t&&t.target&&u(t.target,this,t.anchor)}}function Et(t){let e,s;return e=new Ct({}),{c(){Z(e.$$.fragment)},m(t,o){V(e,t,o),s=!0},i(t){s||(q(e.$$.fragment,t),s=!0)},o(t){W(e.$$.fragment,t),s=!1},d(t){K(e,t)}}}function Mt(t){let e,s;return e=new Tt({}),{c(){Z(e.$$.fragment)},m(t,o){V(e,t,o),s=!0},i(t){s||(q(e.$$.fragment,t),s=!0)},o(t){W(e.$$.fragment,t),s=!1},d(t){K(e,t)}}}function Pt(t){let s,o,i,c,l,a,m,g,f,w,y,$,x,_,C,j,T,E,M,P,A,L,O,z,B,D,H,I,U,S,N,R,F,Y,Z,V,K,Q,X,tt,et,st,ot,nt,it="classroom"==t[0]&&Et(),ct="online"==t[0]&&Mt();return{c(){s=p("link"),o=b(),i=p("link"),c=b(),l=p("div"),a=p("div"),m=p("img"),f=b(),w=p("img"),$=b(),x=p("div"),_=b(),C=p("slot"),j=b(),T=p("div"),E=p("div"),E.innerHTML='<div class="card-md extra-bold orange">Courses</div> \n\t\t\t<a href="#" class="orange"><i class="fas fa-angle-up fa-lg"></i></a>',M=b(),P=p("div"),A=p("div"),L=p("div"),L.textContent="Classroom Courses",O=b(),z=p("div"),z.innerHTML='<a href="#" class="orange">Explore All</a>',D=b(),it&&it.c(),H=b(),I=p("div"),U=p("div"),S=p("div"),S.textContent="Online Courses",N=b(),R=p("div"),R.innerHTML='<a href="#" class="orange">Explore All</a>',Y=b(),ct&&ct.c(),Z=b(),V=p("div"),V.innerHTML='<a href="https://codingblocks.com/campus-ambassador-program.html" target="blank">Campus Ambassadors</a>',K=b(),Q=p("div"),Q.innerHTML='<a href="https://codingblocks.com/about" target="blank">About Us</a>',X=b(),tt=p("div"),tt.innerHTML='<a href="https://codingblocks.com/centres" target="blank">Contact Us</a>',this.c=e,k(s,"rel","stylesheet"),k(s,"href",t[2]),k(i,"href","https://minio.codingblocks.com/hackerblocks-images/Gilroy.ttf"),k(i,"rel","stylesheet"),r(m.src,g=t[3])||k(m,"src",g),k(m,"alt","HB"),k(m,"class","hamburger-nav__ham-logo ml-4"),r(w.src,y="https://minio.codingblocks.com/amoeba/wrong-close.png")||k(w,"src","https://minio.codingblocks.com/amoeba/wrong-close.png"),k(w,"alt","#"),k(w,"class","mr-4 hamburger-nav__cross pointer"),k(a,"class","d-flex py-3 justify-content-between align-items-center hamburger-nav__top-bar"),k(x,"class","divider-h"),k(E,"class","d-flex justify-content-between"),k(L,"class","card-md extra-bold"),k(z,"class","card-sm light"),k(A,"class",B="hamburger-nav__menu-element "+("classroom"==t[0]&&"active")),k(P,"class","my-4 pl-4"),k(S,"class","card-md extra-bold"),k(R,"class","card-sm light"),k(U,"class",F="hamburger-nav__menu-element "+("online"==t[0]&&"active")),k(I,"class","my-4 pl-4"),k(V,"class","card-md light my-4"),k(Q,"class","card-md light my-4"),k(tt,"class","card-md light my-4"),k(T,"class","mt-4 px-4 overflow-y-auto no-scrollbar"),k(l,"class",et="hamburger-nav b-right overflow-y-auto no-scrollbar "+(!t[1]&&"hamburger-nav--hidden"))},m(e,n){u(e,s,n),u(e,o,n),u(e,i,n),u(e,c,n),u(e,l,n),d(l,a),d(a,m),d(a,f),d(a,w),d(l,$),d(l,x),d(l,_),d(l,C),d(l,j),d(l,T),d(T,E),d(T,M),d(T,P),d(P,A),d(A,L),d(A,O),d(A,z),d(P,D),it&&it.m(P,null),d(T,H),d(T,I),d(I,U),d(U,S),d(U,N),d(U,R),d(I,Y),ct&&ct.m(I,null),d(T,Z),d(T,V),d(T,K),d(T,Q),d(T,X),d(T,tt),st=!0,ot||(nt=[v(w,"click",t[4]),v(L,"click",t[5]),v(S,"click",t[6])],ot=!0)},p(t,[e]){(!st||4&e)&&k(s,"href",t[2]),(!st||8&e&&!r(m.src,g=t[3]))&&k(m,"src",g),(!st||1&e&&B!==(B="hamburger-nav__menu-element "+("classroom"==t[0]&&"active")))&&k(A,"class",B),"classroom"==t[0]?it?1&e&&q(it,1):(it=Et(),it.c(),q(it,1),it.m(P,null)):it&&(J(),W(it,1,1,()=>{it=null}),G()),(!st||1&e&&F!==(F="hamburger-nav__menu-element "+("online"==t[0]&&"active")))&&k(U,"class",F),"online"==t[0]?ct?1&e&&q(ct,1):(ct=Mt(),ct.c(),q(ct,1),ct.m(I,null)):ct&&(J(),W(ct,1,1,()=>{ct=null}),G()),(!st||2&e&&et!==(et="hamburger-nav b-right overflow-y-auto no-scrollbar "+(!t[1]&&"hamburger-nav--hidden")))&&k(l,"class",et)},i(t){st||(q(it),q(ct),st=!0)},o(t){W(it),W(ct),st=!1},d(t){t&&h(s),t&&h(o),t&&h(i),t&&h(c),t&&h(l),it&&it.d(),ct&&ct.d(),ot=!1,n(nt)}}}function At(t,e,s){let{css:o="https://unpkg.com/@coding-blocks/motley/dist/app.min.css"}=e,{tab:n="classroom"}=e,{showhamburger:i=!1}=e,{logo:c="https://codingblocks.com/assets/images/cb/cblogo.png"}=e;return t.$$set=t=>{"css"in t&&s(2,o=t.css),"tab"in t&&s(0,n=t.tab),"showhamburger"in t&&s(1,i=t.showhamburger),"logo"in t&&s(3,c=t.logo)},[n,i,o,c,()=>s(1,i=!i),()=>s(0,n="classroom"),()=>s(0,n="online")]}customElements.define("mobile-online-courses",Tt);class Lt extends tt{constructor(t){super(),X(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},At,Pt,c,{css:2,tab:0,showhamburger:1,logo:3},null),t&&(t.target&&u(t.target,this,t.anchor),t.props&&(this.$set(t.props),S()))}static get observedAttributes(){return["css","tab","showhamburger","logo"]}get css(){return this.$$.ctx[2]}set css(t){this.$$set({css:t}),S()}get tab(){return this.$$.ctx[0]}set tab(t){this.$$set({tab:t}),S()}get showhamburger(){return this.$$.ctx[1]}set showhamburger(t){this.$$set({showhamburger:t}),S()}get logo(){return this.$$.ctx[3]}set logo(t){this.$$set({logo:t}),S()}}function Ot(t){let s;return{c(){s=p("div"),s.innerHTML='<ul class="col-4"><li class="bold gradient-text-orange">Beginner Courses</li> \n <li><a class="white" href="https://codingblocks.com/classroom-courses/c-plus-plus-for-beginners.html" target="_blank">C++ For Beginners</a></li> \n <li><a class="white" href="https://codingblocks.com/classroom-courses/java-for-beginners.html" target="_blank">Java For Beginners</a></li> \n <li><a class="white" href="https://codingblocks.com/classroom-courses/python-app-dev.html" target="_blank">Python App Development</a></li></ul> \n <ul class="col-4"><li class="bold gradient-text-orange">Development Courses</li> \n <li><a class="white" href="https://codingblocks.com/classroom-courses/android-app-development-using-kotlin-and-java.html" target="_blank">Android App Dev</a></li> \n <li><a class="white" href="https://codingblocks.com/classroom-courses/web-development-nodejs.html" target="_blank">Full Stack Web Dev</a></li> \n <li><a class="white" href="https://codingblocks.com/classroom-courses/web-development-django.html" target="_blank">Python Django</a></li> \n <li><a class="white" href="https://codingblocks.com/classroom-courses/unity-game-development.html" target="_blank">Unity Game Development</a></li></ul> \n <ul class="col-4"><li class="bold gradient-text-orange">Advanced Courses</li> \n <li><a class="white" href="https://codingblocks.com/classroom-courses/advanced-data-structures-and-algorithms-for-interviews.html" target="_blank">Algo++</a></li> \n <li><a class="white" href="https://codingblocks.com/classroom-courses/advanced-data-structures-and-algorithms-using-java.html" target="_blank">Algo.Java</a></li> \n <li><a class="white" href="https://codingblocks.com/classroom-courses/competitive-programming.html" target="_blank">Competitive Programming</a></li> \n <li><a class="white" href="https://codingblocks.com/classroom-courses/machine-learning-with-deep-learning.html">Machine Learning</a></li></ul> \n <ul class="col-4"><li class="bold gradient-text-orange">Junior Courses</li> \n <li><a class="white" href="https://codingblocks.com/classroom-courses/code4kids.html" target="_blank">Code 4 Kids</a></li> \n <li><a class="white" href="https://codingblocks.com/classroom-courses/mathsgeeks.html" target="_blank">Maths Geek</a></li></ul> \n <ul class="col-4"><li class="bold gradient-text-orange">Bootcamps</li> \n <li><a class="white" href="https://codingblocks.com/bootcamps/react.html" target="_blank">React JS</a></li> \n <li><a class="white" href="https://codingblocks.com/bootcamps/blockchain.html" target="_blank">Blockchain</a></li> \n <li><a class="white" href="https://codingblocks.com/bootcamps/coding-interview-preparation.html" target="_blank">Interview Preparation</a></li> \n <li><a class="white" href="https://codingblocks.com/bootcamps/gamedev.html" target="_blank">Game Dev</a></li> \n <li><a class="white" href="https://codingblocks.com/bootcamps/chatbots.html" target="_blank">Chatbot</a></li></ul> \n <ul class="col-4"><li class="bold gradient-text-orange">Professional</li> \n <li><a class="white" href="https://codingblocks.com/classroom-courses/six_months_ind_training.html" target="_blank">Industrial Training</a></li></ul>',this.c=e,k(s,"class","row justify-content-around m-5")},m(t,e){u(t,s,e)},p:e,i:e,o:e,d(t){t&&h(s)}}}customElements.define("cb-mobile-navbar",Lt);class zt extends tt{constructor(t){super(),X(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},null,Ot,c,{},null),t&&t.target&&u(t.target,this,t.anchor)}}function Bt(t){let s;return{c(){s=p("div"),s.innerHTML='<ul class="col-4"><li class="bold mb-3 gradient-text-orange">Beginner Courses</li> \n <li><a class="white" href="https://online.codingblocks.com/courses/c-plus-plus-online-course-for-beginners">C++ Master Course | Launchpad</a></li> \n <li><a class="white" href="https://online.codingblocks.com/courses/complete-java-course-online">Java Master Course | Crux</a></li> \n <li><a class="white" href="https://online.codingblocks.com/courses/python-for-beginners-developers">Python For Developers</a></li></ul> \n <ul class="col-4"><li class="bold mb-3 gradient-text-orange">Advanced Courses</li> \n <li><a class="white" href="https://online.codingblocks.com/courses/python-django">Web Dev with Python-Django</a></li> \n <li><a class="white" href="https://online.codingblocks.com/courses/coding-interview-preparation-online">Interview Prep Bootcamp</a></li> \n <li><a class="white" href="https://online.codingblocks.com/courses/data-structures-and-algorithms-online-course-java-algo">Algo.Java Online</a></li> \n <li><a class="white" href="https://online.codingblocks.com/courses/android-app-training-online">Android App Development Online</a></li> \n <li><a class="white" href="https://online.codingblocks.com/courses/telegram-chatbot-python-online">Build Chatbots in Python</a></li></ul> \n <ul class="col-4"><li class="bold mb-3 gradient-text-orange">Expert Courses</li> \n <li><a class="white" href="https://online.codingblocks.com/courses/competitive-programming-course-online">Competitive Programming Online</a></li> \n <li><a class="white" href="https://online.codingblocks.com/courses/coding-interview-preparation-course-online-c-plus-plus">Interview Preparation - C++</a></li> \n <li><a class="white" href="https://online.codingblocks.com/courses/machine-learning-course-online">Machine Learning Master Course</a></li> \n <li><a class="white" href="https://online.codingblocks.com/courses/coding-interview-preparation-course-online-java">Interview Preparation - Java</a></li></ul>',this.c=e,k(s,"class","row justify-content-around m-5")},m(t,e){u(t,s,e)},p:e,i:e,o:e,d(t){t&&h(s)}}}customElements.define("classroom-courses",zt);class Dt extends tt{constructor(t){super(),X(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},null,Bt,c,{},null),t&&t.target&&u(t.target,this,t.anchor)}}function Ht(t){let e,s,o,i,c,l,a,r,m,g,f,w,y,$,_,C,j,T;const E=[Ut,It],M=[];function P(t,e){return"classroom"==t[2]?0:1}return $=P(t),_=M[$]=E[$](t),{c(){e=p("div"),s=p("div"),o=p("div"),o.innerHTML='<div class="font-lg my-4 offset-3">Our Courses</div>',i=b(),c=p("div"),l=p("div"),l.innerHTML='<div>Online Courses</div> \n <a href="https://online.codingblocks.com/courses" target="_blank" class="font-mds orange">Explore all</a>',r=b(),m=p("div"),g=p("div"),g.innerHTML='<div>Classroom Courses</div> \n <a href="https://codingblocks.com/classroom-courses/" target="_blank" class="font-mds orange">Explore all</a>',w=b(),y=p("div"),_.c(),k(o,"class","py-5 font-md bold hover-grey"),k(l,"class","offset-3"),k(c,"class",a="py-4 font-md bold hover-grey "+("online"==t[2]&&"selected")),k(g,"class","offset-3"),k(m,"class",f="py-4 font-md bold hover-grey "+("classroom"==t[2]&&"selected")),k(s,"class","cb-navbar-side col-3"),k(y,"class","col-9 font-mds"),k(e,"class","row no-gutters cb-navbar-expanded"),x(e,"overflow","hidden")},m(n,a){u(n,e,a),d(e,s),d(s,o),d(s,i),d(s,c),d(c,l),d(s,r),d(s,m),d(m,g),d(e,w),d(e,y),M[$].m(y,null),C=!0,j||(T=[v(c,"click",t[12]),v(m,"click",t[13])],j=!0)},p(t,e){(!C||4&e&&a!==(a="py-4 font-md bold hover-grey "+("online"==t[2]&&"selected")))&&k(c,"class",a),(!C||4&e&&f!==(f="py-4 font-md bold hover-grey "+("classroom"==t[2]&&"selected")))&&k(m,"class",f);let s=$;$=P(t),$!==s&&(J(),W(M[s],1,1,()=>{M[s]=null}),G(),_=M[$],_||(_=M[$]=E[$](t),_.c()),q(_,1),_.m(y,null))},i(t){C||(q(_),C=!0)},o(t){W(_),C=!1},d(t){t&&h(e),M[$].d(),j=!1,n(T)}}}function It(t){let e,s;return e=new Dt({}),{c(){Z(e.$$.fragment)},m(t,o){V(e,t,o),s=!0},i(t){s||(q(e.$$.fragment,t),s=!0)},o(t){W(e.$$.fragment,t),s=!1},d(t){K(e,t)}}}function Ut(t){let e,s;return e=new zt({}),{c(){Z(e.$$.fragment)},m(t,o){V(e,t,o),s=!0},i(t){s||(q(e.$$.fragment,t),s=!0)},o(t){W(e.$$.fragment,t),s=!1},d(t){K(e,t)}}}function St(t){let s,o,i,c,l,a,m,f,w,y,$,x,_,C,j,T,E,M,P,A,L,O,z,B,D,H,I,U,S,N,R,F,Y,Z,V,K,Q,X=t[0]&&Ht(t);return{c(){s=p("div"),o=p("div"),i=p("div"),c=p("span"),l=g("Courses\n "),a=p("img"),w=b(),y=p("div"),$=p("a"),$.textContent="About Us",_=b(),C=p("div"),j=p("a"),j.textContent="Resources",E=b(),M=p("div"),P=p("a"),P.textContent="Campus Ambassadors",L=b(),O=p("div"),z=p("a"),z.textContent="Contact Us",D=b(),H=p("slot"),U=b(),X&&X.c(),S=b(),N=p("link"),R=b(),F=p("link"),Y=b(),Z=p("link"),this.c=e,r(a.src,m="https://minio.cb.lk/public/fa-5.13/svgs/solid/chevron-"+(t[0]?"up":"down")+".svg")||k(a,"src",m),k(a,"alt","chevron"),k(a,"class","d-inline s-10x10"),k(c,"class",f="px-3 pointer position-relative "+("courses"===t[1]&&"active-tab")),k($,"class","white"),k($,"href","https://codingblocks.com/about.html"),k($,"target","_blank"),k(y,"class",x="px-3 position-relative "+("about"===t[1]&&"active-tab")),k(j,"class","white"),k(j,"href","https://codingblocks.com/resources"),k(j,"target","_blank"),k(C,"class",T="px-3 position-relative "+("resources"===t[1]&&"active-tab")),k(P,"class","white"),k(P,"href","https://codingblocks.com/campus-ambassador-program.html"),k(P,"target","_blank"),k(M,"class",A="px-3 position-relative "+("ca"===t[1]&&"active-tab")),k(z,"class","white"),k(z,"href","https://codingblocks.com/centres/"),k(z,"target","_blank"),k(O,"class",B="px-3 position-relative "+("contact"===t[1]&&"active-tab")),k(H,"name","header"),k(i,"class",I="d-flex "+t[4]+" py-3 pr-5"),k(o,"class","border"),k(s,"class","a-hb d-md-block d-none bg-background-main-3 white"),k(N,"rel","stylesheet"),k(N,"href",t[3]),k(F,"href","https://fonts.googleapis.com/css?family=Nunito+Sans:400,600,700,800"),k(F,"rel","stylesheet"),k(Z,"href","https://minio.codingblocks.com/hackerblocks-images/Gilroy.ttf"),k(Z,"rel","stylesheet")},m(e,n){u(e,s,n),d(s,o),d(o,i),d(i,c),d(c,l),d(c,a),d(i,w),d(i,y),d(y,$),d(i,_),d(i,C),d(C,j),d(i,E),d(i,M),d(M,P),d(i,L),d(i,O),d(O,z),d(i,D),d(i,H),d(s,U),X&&X.m(s,null),u(e,S,n),u(e,N,n),u(e,R,n),u(e,F,n),u(e,Y,n),u(e,Z,n),V=!0,K||(Q=[v(c,"click",t[7]),v($,"click",t[8]),v(j,"click",t[9]),v(P,"click",t[10]),v(z,"click",t[11])],K=!0)},p(t,[e]){(!V||1&e&&!r(a.src,m="https://minio.cb.lk/public/fa-5.13/svgs/solid/chevron-"+(t[0]?"up":"down")+".svg"))&&k(a,"src",m),(!V||2&e&&f!==(f="px-3 pointer position-relative "+("courses"===t[1]&&"active-tab")))&&k(c,"class",f),(!V||2&e&&x!==(x="px-3 position-relative "+("about"===t[1]&&"active-tab")))&&k(y,"class",x),(!V||2&e&&T!==(T="px-3 position-relative "+("resources"===t[1]&&"active-tab")))&&k(C,"class",T),(!V||2&e&&A!==(A="px-3 position-relative "+("ca"===t[1]&&"active-tab")))&&k(M,"class",A),(!V||2&e&&B!==(B="px-3 position-relative "+("contact"===t[1]&&"active-tab")))&&k(O,"class",B),(!V||16&e&&I!==(I="d-flex "+t[4]+" py-3 pr-5"))&&k(i,"class",I),t[0]?X?(X.p(t,e),1&e&&q(X,1)):(X=Ht(t),X.c(),q(X,1),X.m(s,null)):X&&(J(),W(X,1,1,()=>{X=null}),G()),(!V||8&e)&&k(N,"href",t[3])},i(t){V||(q(X),V=!0)},o(t){W(X),V=!1},d(t){t&&h(s),X&&X.d(),t&&h(S),t&&h(N),t&&h(R),t&&h(F),t&&h(Y),t&&h(Z),K=!1,n(Q)}}}function Nt(t,e,s){let{topalign:o="center"}=e,{expanded:n=!1}=e,{activeTab:i=""}=e,{activeCoursesTab:c="online"}=e,{css:l="https://unpkg.com/@coding-blocks/motley/dist/online-cb/app.min.css"}=e,a="justify-content-center";const r=()=>s(0,n=!n);return t.$$set=t=>{"topalign"in t&&s(6,o=t.topalign),"expanded"in t&&s(0,n=t.expanded),"activeTab"in t&&s(1,i=t.activeTab),"activeCoursesTab"in t&&s(2,c=t.activeCoursesTab),"css"in t&&s(3,l=t.css)},t.$$.update=()=>{if(64&t.$$.dirty)switch(o){case"left":s(4,a="justify-content-start");break;case"right":s(4,a="justify-content-end");break;default:s(4,a="justify-content-center")}},[n,i,c,l,a,r,o,()=>{r(),s(1,i="courses")},()=>s(1,i="about"),()=>s(1,i="resources"),()=>s(1,i="ca"),()=>s(1,i="contact"),()=>s(2,c="online"),()=>s(2,c="classroom")]}customElements.define("online-courses",Dt);class Rt extends tt{constructor(t){super(),this.shadowRoot.innerHTML='<style>a:hover{text-decoration:underline}.hover-grey.selected:hover{background:unset}.a-hb{display:none}.active-tab:after{content:"";width:98%;height:2px;position:absolute;left:-2px;bottom:-16px;display:block;background:linear-gradient(90deg, #FB8530 0%, #FEB50B 100%)}</style>',X(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},Nt,St,c,{topalign:6,expanded:0,activeTab:1,activeCoursesTab:2,css:3},null),t&&(t.target&&u(t.target,this,t.anchor),t.props&&(this.$set(t.props),S()))}static get observedAttributes(){return["topalign","expanded","activeTab","activeCoursesTab","css"]}get topalign(){return this.$$.ctx[6]}set topalign(t){this.$$set({topalign:t}),S()}get expanded(){return this.$$.ctx[0]}set expanded(t){this.$$set({expanded:t}),S()}get activeTab(){return this.$$.ctx[1]}set activeTab(t){this.$$set({activeTab:t}),S()}get activeCoursesTab(){return this.$$.ctx[2]}set activeCoursesTab(t){this.$$set({activeCoursesTab:t}),S()}get css(){return this.$$.ctx[3]}set css(t){this.$$set({css:t}),S()}}function Ft(t){let s,o,n,i,c,l,a,u,m,g,b,f,v,w;return{c(){s=p("script"),n=p("script"),c=p("script"),a=p("script"),m=p("script"),b=p("script"),v=p("script"),this.c=e,r(s.src,o="https://source.zoom.us/1.8.5/lib/vendor/react.min.js")||k(s,"src","https://source.zoom.us/1.8.5/lib/vendor/react.min.js"),r(n.src,i="https://source.zoom.us/1.8.5/lib/vendor/react-dom.min.js")||k(n,"src","https://source.zoom.us/1.8.5/lib/vendor/react-dom.min.js"),r(c.src,l="https://source.zoom.us/1.8.5/lib/vendor/redux.min.js")||k(c,"src","https://source.zoom.us/1.8.5/lib/vendor/redux.min.js"),r(a.src,u="https://source.zoom.us/1.8.5/lib/vendor/redux-thunk.min.js")||k(a,"src","https://source.zoom.us/1.8.5/lib/vendor/redux-thunk.min.js"),r(m.src,g="https://source.zoom.us/1.8.5/lib/vendor/jquery.min.js")||k(m,"src","https://source.zoom.us/1.8.5/lib/vendor/jquery.min.js"),r(b.src,f="https://source.zoom.us/1.8.5/lib/vendor/lodash.min.js")||k(b,"src","https://source.zoom.us/1.8.5/lib/vendor/lodash.min.js"),r(v.src,w="https://source.zoom.us/zoom-meeting-1.8.5.min.js")||k(v,"src","https://source.zoom.us/zoom-meeting-1.8.5.min.js")},m(e,o){d(document.head,s),d(document.head,n),d(document.head,c),d(document.head,a),d(document.head,m),d(document.head,b),d(document.head,v),t[7](v)},p:e,i:e,o:e,d(e){h(s),h(n),h(c),h(a),h(m),h(b),h(v),t[7](null)}}}function Jt(t,e,s){let o,{leaveUrl:n="/"}=e,{meetingnumber:i}=e,{signature:c}=e,{apikey:l}=e,{username:a}=e,{useremail:r}=e;return M(async()=>{o.addEventListener("load",()=>{ZoomMtg.preLoadWasm(),ZoomMtg.prepareJssdk(),ZoomMtg.init({leaveUrl:n,success(){ZoomMtg.join({meetingNumber:i,userName:a,signature:c,apiKey:l,userEmail:r,success(t){console.log("success")},error(t){console.log(t)}})},error(t){console.log(t)}})})}),t.$$set=t=>{"leaveUrl"in t&&s(1,n=t.leaveUrl),"meetingnumber"in t&&s(2,i=t.meetingnumber),"signature"in t&&s(3,c=t.signature),"apikey"in t&&s(4,l=t.apikey),"username"in t&&s(5,a=t.username),"useremail"in t&&s(6,r=t.useremail)},[o,n,i,c,l,a,r,function(t){L[t?"unshift":"push"](()=>{o=t,s(0,o)})}]}customElements.define("cb-navbar",Rt);class Gt extends tt{constructor(t){super(),X(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},Jt,Ft,c,{leaveUrl:1,meetingnumber:2,signature:3,apikey:4,username:5,useremail:6},null),t&&(t.target&&u(t.target,this,t.anchor),t.props&&(this.$set(t.props),S()))}static get observedAttributes(){return["leaveUrl","meetingnumber","signature","apikey","username","useremail"]}get leaveUrl(){return this.$$.ctx[1]}set leaveUrl(t){this.$$set({leaveUrl:t}),S()}get meetingnumber(){return this.$$.ctx[2]}set meetingnumber(t){this.$$set({meetingnumber:t}),S()}get signature(){return this.$$.ctx[3]}set signature(t){this.$$set({signature:t}),S()}get apikey(){return this.$$.ctx[4]}set apikey(t){this.$$set({apikey:t}),S()}get username(){return this.$$.ctx[5]}set username(t){this.$$set({username:t}),S()}get useremail(){return this.$$.ctx[6]}set useremail(t){this.$$set({useremail:t}),S()}}customElements.define("zoom-meeting",Gt);const{document:qt}=Y;function Wt(t){let e,s;return{c(){e=p("div"),s=g(t[4]),k(e,"class","red")},m(t,o){u(t,e,o),d(e,s)},p(t,e){16&e&&y(s,t[4])},d(t){t&&h(e)}}}function Yt(t){let e,s,o,i,c,l,a;return{c(){e=p("input"),s=b(),o=p("button"),i=g("Send OTP"),k(e,"type","number"),k(e,"placeholder","Enter 10 digit Mobile Number"),k(e,"class","w-100 mb-4"),k(o,"type","button"),k(o,"class","btn btn-primary w-100"),o.disabled=c=!t[1]},m(n,c){u(n,e,c),$(e,t[1]),u(n,s,c),u(n,o,c),d(o,i),l||(a=[v(e,"input",t[14]),v(o,"click",t[8])],l=!0)},p(t,s){2&s&&w(e.value)!==t[1]&&$(e,t[1]),2&s&&c!==(c=!t[1])&&(o.disabled=c)},d(t){t&&h(e),t&&h(s),t&&h(o),l=!1,n(a)}}}function Zt(t){let e,s,o,i,c,l,a;return{c(){e=p("input"),s=b(),o=p("button"),i=g("Verify OTP"),k(e,"type","number"),k(e,"placeholder","Enter OTP"),k(e,"class","w-100 mb-4"),k(o,"type","button"),k(o,"class","btn btn-primary w-100"),o.disabled=c=!t[2]},m(n,c){u(n,e,c),$(e,t[2]),u(n,s,c),u(n,o,c),d(o,i),l||(a=[v(e,"input",t[13]),v(o,"click",t[9])],l=!0)},p(t,s){4&s&&w(e.value)!==t[2]&&$(e,t[2]),4&s&&c!==(c=!t[2])&&(o.disabled=c)},d(t){t&&h(e),t&&h(s),t&&h(o),l=!1,n(a)}}}function Vt(t){let e;function s(t,e){return t[3]?Qt:Kt}let o=s(t),n=o(t);return{c(){n.c(),e=f()},m(t,s){n.m(t,s),u(t,e,s)},p(t,i){o===(o=s(t))&&n?n.p(t,i):(n.d(1),n=o(t),n&&(n.c(),n.m(e.parentNode,e)))},d(t){n.d(t),t&&h(e)}}}function Kt(t){let e,s,o,i,c,l,a;return{c(){e=p("input"),s=b(),o=p("button"),i=g("Send OTP"),k(e,"type","email"),k(e,"placeholder","Enter Email"),k(e,"class","w-100 mb-4"),k(o,"type","button"),k(o,"class","btn btn-primary w-100"),o.disabled=c=!t[0]},m(n,c){u(n,e,c),$(e,t[0]),u(n,s,c),u(n,o,c),d(o,i),l||(a=[v(e,"input",t[12]),v(o,"click",t[8])],l=!0)},p(t,s){1&s&&e.value!==t[0]&&$(e,t[0]),1&s&&c!==(c=!t[0])&&(o.disabled=c)},d(t){t&&h(e),t&&h(s),t&&h(o),l=!1,n(a)}}}function Qt(t){let e,s,o,i,c,l,a;return{c(){e=p("input"),s=b(),o=p("button"),i=g("Verify OTP"),k(e,"type","number"),k(e,"placeholder","Enter OTP"),k(e,"class","w-100 mb-4"),k(o,"type","button"),k(o,"class","btn btn-primary w-100"),o.disabled=c=!t[2]},m(n,c){u(n,e,c),$(e,t[2]),u(n,s,c),u(n,o,c),d(o,i),l||(a=[v(e,"input",t[11]),v(o,"click",t[9])],l=!0)},p(t,s){4&s&&w(e.value)!==t[2]&&$(e,t[2]),4&s&&c!==(c=!t[2])&&(o.disabled=c)},d(t){t&&h(e),t&&h(s),t&&h(o),l=!1,n(a)}}}function Xt(t){let s,o,i,c,l,a,r,m,f,w,y,$,_,C,j,T,E,M,P,A,L,O,z,B,D,H,I,U,S,N,R,F,J,G,q,W,Y,Z,V,K=t[4]&&Wt(t);function Q(t,e){return"email"===t[5]?Vt:t[3]?Zt:Yt}let X=Q(t),tt=X(t);return{c(){s=p("link"),o=p("link"),i=p("link"),c=b(),l=p("div"),a=b(),r=p("div"),m=p("div"),f=p("h2"),f.textContent="Login / Signup",w=b(),y=p("button"),y.innerHTML='<img src="https://minio.codingblocks.com/public/cross-black.png" alt=""/>',$=b(),_=p("div"),C=g("Sign In with \n "),j=p("button"),T=g("Email"),M=g("\n Or\n "),P=p("button"),A=g("Mobile"),O=b(),K&&K.c(),z=b(),tt.c(),B=b(),D=p("div"),D.innerHTML='<span class="hr"></span> \n <span class="px-5">OR</span> \n <span class="hr"></span>',H=b(),I=p("a"),U=p("button"),U.innerHTML='<img class="logo" src="https://minio.codingblocks.com/public/google-logo.png" alt=""/> \n <span class="logo-text">Sign in with Google</span>',S=b(),N=p("a"),R=p("button"),R.innerHTML='<img class="logo" src="https://minio.codingblocks.com/public/facebook-logo.png" alt=""/> \n <span class="logo-text">Sign in with facebook</span>',F=b(),J=p("div"),J.innerHTML='<div class="header">Find your dream job</div> \n <div class="sub-header mb-4">Trusted by 100k+ students</div> \n <img src="https://minio.codingblocks.com/public/company-logo-group.png" alt=""/>',G=b(),q=p("div"),q.innerHTML='<a href="https://www.linkedin.com/school/codingblocksindia/" target="_blank"><img class="social-media-logo mr-2" src="https://minio.codingblocks.com/public/linkedin-logo.png" alt=""/></a> \n <a href="https://twitter.com/codingblocksIN" target="_blank"><img class="social-media-logo mr-2" src="https://minio.codingblocks.com/public/twitter-logo.png" alt=""/></a> \n <a href="https://github.com/coding-blocks" target="_blank"><img class="social-media-logo" src="https://minio.codingblocks.com/public/github-logo.png" alt=""/></a> \n <div><a href="https://codingblocks.com/tos.html" class="sub-header" target="_blank">Coding Blocks | Terms of service</a></div>',W=b(),Y=p("link"),this.c=e,k(s,"rel","preconnect"),k(s,"href","https://fonts.googleapis.com"),k(o,"rel","preconnect"),k(o,"href","https://fonts.gstatic.com"),k(o,"crossorigin",""),k(i,"href","https://fonts.googleapis.com/css2?family=Mulish:wght@400;600&display=swap"),k(i,"rel","stylesheet"),k(l,"class","blurrer"),x(y,"color","#3B4254"),k(m,"class","d-flex justify-content-between align-items-center mb-5"),k(j,"class",E="email"===t[5]?"red":""),k(P,"class",L="mobile"===t[5]?"red":""),k(_,"class","mb-4"),k(D,"class","d-flex justify-content-center align-items-center"),x(D,"margin","30px 0px"),k(U,"class","btn btn-secondary white w-100 mb-3"),k(I,"href",t[6]),k(R,"class","btn btn-secondary white w-100 mb-5"),k(N,"href",t[7]),k(J,"class","mb-5 pt-5"),k(q,"class","position-absolute"),k(r,"id","cb-login-signup"),k(r,"class","cb-login-signup-container"),k(Y,"rel","stylesheet"),k(Y,"href","https://unpkg.com/@coding-blocks/motley@2.8.6/dist/account/app.min.css")},m(e,n){d(qt.head,s),d(qt.head,o),d(qt.head,i),u(e,c,n),u(e,l,n),u(e,a,n),u(e,r,n),d(r,m),d(m,f),d(m,w),d(m,y),d(r,$),d(r,_),d(_,C),d(_,j),d(j,T),d(_,M),d(_,P),d(P,A),d(r,O),K&&K.m(r,null),d(r,z),tt.m(r,null),d(r,B),d(r,D),d(r,H),d(r,I),d(I,U),d(r,S),d(r,N),d(N,R),d(r,F),d(r,J),d(r,G),d(r,q),u(e,W,n),u(e,Y,n),Z||(V=[v(l,"click",te),v(y,"click",te),v(j,"click",t[10]("email")),v(P,"click",t[10]("mobile"))],Z=!0)},p(t,[e]){32&e&&E!==(E="email"===t[5]?"red":"")&&k(j,"class",E),32&e&&L!==(L="mobile"===t[5]?"red":"")&&k(P,"class",L),t[4]?K?K.p(t,e):(K=Wt(t),K.c(),K.m(r,z)):K&&(K.d(1),K=null),X===(X=Q(t))&&tt?tt.p(t,e):(tt.d(1),tt=X(t),tt&&(tt.c(),tt.m(r,B)))},i:e,o:e,d(t){h(s),h(o),h(i),t&&h(c),t&&h(l),t&&h(a),t&&h(r),K&&K.d(),tt.d(),t&&h(W),t&&h(Y),Z=!1,n(V)}}}function te(){document.getElementsByTagName("cb-login-signup")[0].classList.add("hide-cb-login-signup-prompt")}function ee(t,e,s){const o=window.location.host.split(".")[0],n=window.location.pathname,i=window.location.host.includes("codingblocks.xyz"),c={hack:2146237097,online:5633768694,hire:4190457915,codeskiller:9706874989},l={sendOtpEmail:{hack:"https://hack-api.codingblocks.com/api/v2/jwt/otp",online:"https://online-api.codingblocks.com/api/v2/jwt/otp/email",hire:"https://hire-api.codingblocks.com/login/otp/email",codeskiller:"https://code-gym-api.codingblocks.com/api/jwt/otp",cricket:"https://cricket.codingblocks.com/api/jwt/otp"},sendOtpMobile:{hack:"https://hack-api.codingblocks.com/api/v2/jwt/otp",online:"https://online-api.codingblocks.com/api/v2/jwt/otp/mobile",hire:"https://hire-api.codingblocks.com/login/otp/mobile",codeskiller:"https://code-gym-api.codingblocks.com/api/jwt/otp",cricket:"https://cricket.codingblocks.com/api/jwt/otp"},verifyOtpEmail:{hack:"https://hack-api.codingblocks.com/api/v2/jwt/otp/verify",online:"https://online-api.codingblocks.com/api/v2/jwt/otp/email/verify",hire:"https://hire-api.codingblocks.com/login/otp/email/verify",codeskiller:"https://code-gym-api.codingblocks.com/api/jwt/otp/verify",cricket:"https://cricket.codingblocks.com/api/jwt/otp/verify"},verifyOtpMobile:{hack:"https://hack-api.codingblocks.com/api/v2/jwt/otp/verify",online:"https://online-api.codingblocks.com/api/v2/jwt/otp/mobile/verify",hire:"https://hire-api.codingblocks.com/login/otp/mobile/verify",cricket:"https://cricket.codingblocks.com/api/jwt/otp/verify"}};let a=null,r=null,d=null,u=null,h=null,m="email",p=(localStorage.getItem("cb_login_prompt"),o.includes("localhost")?`http://localhost:3838/login/google/v2?redirect_uri=http://${o}${n}&client=localhost&client_id=1234567890`:i?`https://account.codingblocks.xyz/login/google/v2?redirect_uri=https://${o}.codingblocks.xyz${n}&client=${o}-codingblocks&client_id=1`:`https://account.codingblocks.com/login/google/v2?redirect_uri=https://${o}.codingblocks.com${n}&client=${"cricket"===o?"cricket-quiz-iccwc23":o}-codingblocks&client_id=${c[o]}`),g=o.includes("localhost")?`http://localhost:3838/login/facebook/v2?redirect_uri=http://${o}${n}&client=localhost&client_id=1234567890`:i?`https://account.codingblocks.xyz/login/facebook/v2?redirect_uri=https://${o}.codingblocks.xyz${n}&client=${o}-codingblocks&client_id=1`:`https://account.codingblocks.com/login/facebook/v2?redirect_uri=https://${o}.codingblocks.com${n}&client=${"cricket"===o?"cricket-quiz-iccwc23":o}-codingblocks&client_id=${c[o]}`;return[a,r,d,u,h,m,p,g,async function(){s(4,h=null);const t=await fetch(("email"===m?l.sendOtpEmail[o]:l.sendOtpMobile[o])||"http://localhost:3000/api/jwt/otp",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({email:a,mobile:r})});if(t.ok){let{id:e,Details:o}=await t.json();s(3,u=e||o)}else{const{message:e,Details:o}=await t.json();(e||o)&&s(4,h=e||o)}},async function(){s(4,h=null);const t=await fetch(("email"===m?l.verifyOtpEmail[o]:l.verifyOtpMobile[o])||"http://localhost:3000/api/jwt/otp/verify",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({email:a,mobile:r,otp_id:u,otp:d})});if(t.ok)window.location.reload();else{const{message:e,Details:o}=await t.json();(e||o)&&s(4,h=e||o)}},t=>()=>{s(5,m=t),s(3,u=null)},function(){d=w(this.value),s(2,d)},function(){a=this.value,s(0,a)},function(){d=w(this.value),s(2,d)},function(){r=w(this.value),s(1,r)}]}class se extends tt{constructor(t){super(),this.shadowRoot.innerHTML="<style>input{border:none;border-bottom:solid 1px #E95547;background:#15171E;padding:10px 0px}.blurrer{position:fixed;z-index:1000;top:0;left:0;width:100vw;height:100vh;background-color:#939393;opacity:0.5}.cb-login-signup-container{background:#15171E;color:white;width:100vw;min-height:100vh;position:fixed;z-index:1001;top:0;right:0;padding:5rem 3rem 3rem 3rem;font-family:'Mulish';transition:0.5s}:host(.hide-cb-login-signup-prompt) .cb-login-signup-container{right:-100vw}:host(.hide-cb-login-signup-prompt) .blurrer{display:none}@media screen and (min-width: 768px){.cb-login-signup-container{width:35vw}:host(.hide-cb-login-signup-prompt) .cb-login-signup-container{right:-35vw}}.btn{padding:10px 10px;border-radius:3px}.btn.btn-primary{background:linear-gradient(90deg, #F26A3E 0%, #FB8133 100%)}.btn.btn-secondary{background:#15171E;border:1px solid #373E4F}.btn:disabled{background:#939393}.logo{width:20px}.logo-text{display:inline-block;transform:translate(5px, -4px)}.header{font-size:20px}.hr{display:inline-block;width:40%;border:solid 0.5px #373E4F}.sub-header{font-size:12px;color:#BDBDBD}.social-media-logo{width:15px}</style>",X(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},ee,Xt,c,{},null),t&&t.target&&u(t.target,this,t.anchor)}}customElements.define("cb-login-signup",se),t.banner=at,t.cb_login_signup=se,t.cb_navbar=Rt,t.demographic_form=xt,t.mobile_cb_navbar=Lt,t.zoom_meeting=Gt,Object.defineProperty(t,"__esModule",{value:!0})}));
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(((t=t||self).index=t.index||{},t.index.js={}))}(this,(function(t){"use strict";function e(){}function s(t){return t()}function o(){return Object.create(null)}function n(t){t.forEach(s)}function i(t){return"function"==typeof t}function c(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}let l,a;function r(t,e){return l||(l=document.createElement("a")),l.href=e,t===l.href}function d(t,e){t.appendChild(e)}function u(t,e,s){t.insertBefore(e,s||null)}function h(t){t.parentNode.removeChild(t)}function m(t,e){for(let s=0;s<t.length;s+=1)t[s]&&t[s].d(e)}function p(t){return document.createElement(t)}function g(t){return document.createTextNode(t)}function b(){return g(" ")}function f(){return g("")}function v(t,e,s,o){return t.addEventListener(e,s,o),()=>t.removeEventListener(e,s,o)}function k(t,e,s){null==s?t.removeAttribute(e):t.getAttribute(e)!==s&&t.setAttribute(e,s)}function w(t){return""===t?null:+t}function y(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function $(t,e){t.value=null==e?"":e}function x(t,e,s,o){null===s?t.style.removeProperty(e):t.style.setProperty(e,s,o?"important":"")}function _(t,e){for(let s=0;s<t.options.length;s+=1){const o=t.options[s];if(o.__value===e)return void(o.selected=!0)}t.selectedIndex=-1}function C(t){const e=t.querySelector(":checked")||t.options[0];return e&&e.__value}function j(t){const e={};for(const s of t)e[s.name]=s.value;return e}function T(t){a=t}function E(){if(!a)throw new Error("Function called outside component initialization");return a}function M(t){E().$$.on_mount.push(t)}function P(){const t=E();return(e,s,{cancelable:o=!1}={})=>{const n=t.$$.callbacks[e];if(n){const i=function(t,e,{bubbles:s=!1,cancelable:o=!1}={}){const n=document.createEvent("CustomEvent");return n.initCustomEvent(t,s,o,e),n}(e,s,{cancelable:o});return n.slice().forEach(e=>{e.call(t,i)}),!i.defaultPrevented}return!0}}const A=[],L=[],O=[],z=[],B=Promise.resolve();let D=!1;function H(t){O.push(t)}const I=new Set;let U=0;function S(){const t=a;do{for(;U<A.length;){const t=A[U];U++,T(t),N(t.$$)}for(T(null),A.length=0,U=0;L.length;)L.pop()();for(let t=0;t<O.length;t+=1){const e=O[t];I.has(e)||(I.add(e),e())}O.length=0}while(A.length);for(;z.length;)z.pop()();D=!1,I.clear(),T(t)}function N(t){if(null!==t.fragment){t.update(),n(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(H)}}const R=new Set;let F;function J(){F={r:0,c:[],p:F}}function G(){F.r||n(F.c),F=F.p}function q(t,e){t&&t.i&&(R.delete(t),t.i(e))}function W(t,e,s,o){if(t&&t.o){if(R.has(t))return;R.add(t),F.c.push(()=>{R.delete(t),o&&(s&&t.d(1),o())}),t.o(e)}else o&&o()}const Y="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function Z(t){t&&t.c()}function V(t,e,o,c){const{fragment:l,on_mount:a,on_destroy:r,after_update:d}=t.$$;l&&l.m(e,o),c||H(()=>{const e=a.map(s).filter(i);r?r.push(...e):n(e),t.$$.on_mount=[]}),d.forEach(H)}function K(t,e){const s=t.$$;null!==s.fragment&&(n(s.on_destroy),s.fragment&&s.fragment.d(e),s.on_destroy=s.fragment=null,s.ctx=[])}function Q(t,e){-1===t.$$.dirty[0]&&(A.push(t),D||(D=!0,B.then(S)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function X(t,s,i,c,l,r,d,u=[-1]){const m=a;T(t);const p=t.$$={fragment:null,ctx:null,props:r,update:e,not_equal:l,bound:o(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(s.context||(m?m.$$.context:[])),callbacks:o(),dirty:u,skip_bound:!1,root:s.target||m.$$.root};d&&d(p.root);let g=!1;if(p.ctx=i?i(t,s.props||{},(e,s,...o)=>{const n=o.length?o[0]:s;return p.ctx&&l(p.ctx[e],p.ctx[e]=n)&&(!p.skip_bound&&p.bound[e]&&p.bound[e](n),g&&Q(t,e)),s}):[],p.update(),g=!0,n(p.before_update),p.fragment=!!c&&c(p.ctx),s.target){if(s.hydrate){const t=function(t){return Array.from(t.childNodes)}(s.target);p.fragment&&p.fragment.l(t),t.forEach(h)}else p.fragment&&p.fragment.c();s.intro&&q(t.$$.fragment),V(t,s.target,s.anchor,s.customElement),S()}T(m)}let tt;function et(t,e,s){const o=t.slice();return o[9]=e[s].img_url,o[10]=e[s].img_url_mobile,o[11]=e[s].link,o[13]=s,o}function st(t){let e,s=t[3],o=[];for(let e=0;e<s.length;e+=1)o[e]=it(et(t,s,e));return{c(){e=p("div");for(let t=0;t<o.length;t+=1)o[t].c();k(e,"class","carousel")},m(t,s){u(t,e,s);for(let t=0;t<o.length;t+=1)o[t].m(e,null)},p(t,n){if(61&n){let i;for(s=t[3],i=0;i<s.length;i+=1){const c=et(t,s,i);o[i]?o[i].p(c,n):(o[i]=it(c),o[i].c(),o[i].m(e,null))}for(;i<o.length;i+=1)o[i].d(1);o.length=s.length}},d(t){t&&h(e),m(o,t)}}}function ot(t){let e,s,o,n,i,c,l,a,m,g=t[0]&&nt(t);return{c(){e=p("a"),g&&g.c(),s=b(),o=p("img"),i=b(),c=p("img"),a=b(),k(o,"class","d-md-block"),r(o.src,n=t[9])||k(o,"src",n),k(o,"alt",""),k(o,"width","100%"),k(c,"class","d-md-none"),r(c.src,l=t[10])||k(c,"src",l),k(c,"alt",""),k(c,"width","100%"),k(e,"class","d-block"),k(e,"target","_blank"),k(e,"href",m=t[11])},m(t,n){u(t,e,n),g&&g.m(e,null),d(e,s),d(e,o),d(e,i),d(e,c),d(e,a)},p(t,i){t[0]?g?g.p(t,i):(g=nt(t),g.c(),g.m(e,s)):g&&(g.d(1),g=null),8&i&&!r(o.src,n=t[9])&&k(o,"src",n),8&i&&!r(c.src,l=t[10])&&k(c,"src",l),8&i&&m!==(m=t[11])&&k(e,"href",m)},d(t){t&&h(e),g&&g.d()}}}function nt(t){let e,s,o,n;return{c(){e=p("img"),k(e,"class","close-icon"),r(e.src,s=t[2])||k(e,"src",s),k(e,"alt","close")},m(s,i){var c;u(s,e,i),o||(n=v(e,"click",function(t){return function(e){return e.stopPropagation(),t.call(this,e)}}((c=t[5],function(t){return t.preventDefault(),c.call(this,t)})),!0),o=!0)},p(t,o){4&o&&!r(e.src,s=t[2])&&k(e,"src",s)},d(t){t&&h(e),o=!1,n()}}}function it(t){let e,s=t[4]==t[13]&&ot(t);return{c(){s&&s.c(),e=f()},m(t,o){s&&s.m(t,o),u(t,e,o)},p(t,o){t[4]==t[13]?s?s.p(t,o):(s=ot(t),s.c(),s.m(e.parentNode,e)):s&&(s.d(1),s=null)},d(t){s&&s.d(t),t&&h(e)}}}function ct(t){let s,o=t[1]&&st(t);return{c(){o&&o.c(),s=f(),this.c=e},m(t,e){o&&o.m(t,e),u(t,s,e)},p(t,[e]){t[1]?o?o.p(t,e):(o=st(t),o.c(),o.m(s.parentNode,s)):o&&(o.d(1),o=null)},i:e,o:e,d(t){o&&o.d(t),t&&h(s)}}}function lt(t,e,s){let o=!1,n="",i=[],c=0,l=!1,{showToggle:a=!0}=e,{theme:r="light"}=e;M(async()=>{const t=await fetch("https://hack-api.codingblocks.com/api/v2/dashboard-banners",{headers:{client:"hack-admin"}}),{data:e}=await t.json();s(3,i=e.map(t=>({img_url:t.attributes["image-url"],img_url_mobile:t.attributes["mobile-image-url"],link:t.attributes.link}))),s(2,n="light"===r?"https://minio.codingblocks.com/motley/wrong_g_white.min.png":"https://minio.codingblocks.com/motley/wrong_g.png"),s(1,o=!!i.length),l||d()});const d=t=>{l&&clearInterval(l),l=setInterval(()=>{c==i.length-1?s(4,c=0):s(4,c+=1)},7e3)};return t.$$set=t=>{"showToggle"in t&&s(0,a=t.showToggle),"theme"in t&&s(6,r=t.theme)},[a,o,n,i,c,()=>{s(1,o=!o)},r]}"function"==typeof HTMLElement&&(tt=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(s).filter(i);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,s){this[t]=s}disconnectedCallback(){n(this.$$.on_disconnect)}$destroy(){K(this,1),this.$destroy=e}$on(t,e){const s=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return s.push(e),()=>{const t=s.indexOf(e);-1!==t&&s.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});class at extends tt{constructor(t){super(),this.shadowRoot.innerHTML="<style>.d-block{display:block;position:relative}.close-icon{position:absolute;right:10px;cursor:pointer;top:10px;width:15px;transition:width 0.1s}.close-icon:hover{width:18px}.d-md-none{display:block}.d-md-block{display:none}.carousel{max-height:116px;overflow:hidden}@media(min-width:768px){.d-md-none{display:none}.d-md-block{display:block}}</style>",X(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},lt,ct,c,{showToggle:0,theme:6},null),t&&(t.target&&u(t.target,this,t.anchor),t.props&&(this.$set(t.props),S()))}static get observedAttributes(){return["showToggle","theme"]}get showToggle(){return this.$$.ctx[0]}set showToggle(t){this.$$set({showToggle:t}),S()}get theme(){return this.$$.ctx[6]}set theme(t){this.$$set({theme:t}),S()}}customElements.define("promotion-banner",at);var rt=new class{constructor(t){this.url=t}fetchUser(){return fetch(this.url+"/users/me?include=demographic",{credentials:"include"}).then(t=>t.json())}fetchColleges(){return fetch(this.url+"/colleges").then(t=>t.json())}fetchBranches(){return fetch(this.url+"/branches").then(t=>t.json())}updateUser(t){return fetch(this.url+"/users/me/edit",{method:"PATCH",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}).then(t=>t.json())}}("https://account.codingblocks.com/api");function dt(t,e,s){const o=t.slice();return o[15]=e[s],o}function ut(t,e,s){const o=t.slice();return o[18]=e[s],o}function ht(t,e,s){const o=t.slice();return o[21]=e[s],o}function mt(t){let e,s,o;function n(t,e){return t[7].success?gt:pt}let i=n(t),c=i(t);return{c(){e=p("div"),s=p("div"),s.innerHTML='<div class="font-md bold">Get INR 1000 Credits</div> \n <div class="mt-4">Complete your Profile &amp; get INR 1000 credits in your wallet</div>',o=b(),c.c(),k(s,"class","bg-gradient-pink white p-4"),k(e,"class","border-card b-red p-0")},m(t,n){u(t,e,n),d(e,s),d(e,o),c.m(e,null)},p(t,s){i===(i=n(t))&&c?c.p(t,s):(c.d(1),c=i(t),c&&(c.c(),c.m(e,null)))},d(t){t&&h(e),c.d()}}}function pt(t){let e,s,o,i,c,l,a,r,g,f,w,y,$,x,C,j,T=t[4],E=[];for(let e=0;e<T.length;e+=1)E[e]=bt(ht(t,T,e));let M=1===t[0]&&ft(t),P=t[8],A=[];for(let e=0;e<P.length;e+=1)A[e]=vt(ut(t,P,e));let L=t[5],O=[];for(let e=0;e<L.length;e+=1)O[e]=kt(dt(t,L,e));let z=t[7].error&&wt(t);return{c(){e=p("div"),s=p("select"),o=p("option"),o.textContent="-- College --";for(let t=0;t<E.length;t+=1)E[t].c();i=b(),M&&M.c(),c=b(),l=p("select"),a=p("option"),a.textContent="-- Graduation Year --";for(let t=0;t<A.length;t+=1)A[t].c();r=b(),g=p("select"),f=p("option"),f.textContent="-- Branch --";for(let t=0;t<O.length;t+=1)O[t].c();w=b(),y=p("div"),$=p("button"),$.textContent="Update Profile",x=b(),z&&z.c(),o.disabled=!0,o.selected=!0,o.__value="",o.value=o.__value,k(s,"class","input-text br-50 my-2"),void 0===t[0]&&H(()=>t[10].call(s)),a.disabled=!0,a.selected=!0,a.__value="",a.value=a.__value,k(l,"class","input-text br-50 my-2"),void 0===t[2]&&H(()=>t[12].call(l)),f.disabled=!0,f.selected=!0,f.__value="",f.value=f.__value,k(g,"class","input-text br-50 my-2"),void 0===t[1]&&H(()=>t[13].call(g)),k($,"id","updatedButton"),k($,"class","button-solid button-orange"),k(y,"class","d-flex justify-content-center mt-5"),k(e,"class","py-4 px-5 t-align-center")},m(n,h){u(n,e,h),d(e,s),d(s,o);for(let t=0;t<E.length;t+=1)E[t].m(s,null);_(s,t[0]),d(e,i),M&&M.m(e,null),d(e,c),d(e,l),d(l,a);for(let t=0;t<A.length;t+=1)A[t].m(l,null);_(l,t[2]),d(e,r),d(e,g),d(g,f);for(let t=0;t<O.length;t+=1)O[t].m(g,null);_(g,t[1]),d(e,w),d(e,y),d(y,$),d(e,x),z&&z.m(e,null),C||(j=[v(s,"change",t[10]),v(l,"change",t[12]),v(g,"change",t[13]),v($,"click",t[9])],C=!0)},p(t,o){if(17&o){let e;for(T=t[4],e=0;e<T.length;e+=1){const n=ht(t,T,e);E[e]?E[e].p(n,o):(E[e]=bt(n),E[e].c(),E[e].m(s,null))}for(;e<E.length;e+=1)E[e].d(1);E.length=T.length}if(17&o&&_(s,t[0]),1===t[0]?M?M.p(t,o):(M=ft(t),M.c(),M.m(e,c)):M&&(M.d(1),M=null),260&o){let e;for(P=t[8],e=0;e<P.length;e+=1){const s=ut(t,P,e);A[e]?A[e].p(s,o):(A[e]=vt(s),A[e].c(),A[e].m(l,null))}for(;e<A.length;e+=1)A[e].d(1);A.length=P.length}if(260&o&&_(l,t[2]),34&o){let e;for(L=t[5],e=0;e<L.length;e+=1){const s=dt(t,L,e);O[e]?O[e].p(s,o):(O[e]=kt(s),O[e].c(),O[e].m(g,null))}for(;e<O.length;e+=1)O[e].d(1);O.length=L.length}34&o&&_(g,t[1]),t[7].error?z?z.p(t,o):(z=wt(t),z.c(),z.m(e,null)):z&&(z.d(1),z=null)},d(t){t&&h(e),m(E,t),M&&M.d(),m(A,t),m(O,t),z&&z.d(),C=!1,n(j)}}}function gt(t){let s;return{c(){s=p("div"),s.innerHTML='<div class="font-md gradient-text extra-bold mt-4">Your profile has been updated !</div>',k(s,"class","my-5 t-align-c")},m(t,e){u(t,s,e)},p:e,d(t){t&&h(s)}}}function bt(t){let e,s,o,n,i,c=t[21].name+"";return{c(){e=p("option"),s=g(c),o=b(),e.__value=n=t[21].id,e.value=e.__value,e.selected=i=t[21].id===t[0]},m(t,n){u(t,e,n),d(e,s),d(e,o)},p(t,o){16&o&&c!==(c=t[21].name+"")&&y(s,c),16&o&&n!==(n=t[21].id)&&(e.__value=n,e.value=e.__value),17&o&&i!==(i=t[21].id===t[0])&&(e.selected=i)},d(t){t&&h(e)}}}function ft(t){let e,s,o;return{c(){e=p("input"),k(e,"type","text"),k(e,"placeholder","Other College Name"),k(e,"class","input-text br-50 my-2")},m(n,i){u(n,e,i),$(e,t[3]),s||(o=v(e,"input",t[11]),s=!0)},p(t,s){8&s&&e.value!==t[3]&&$(e,t[3])},d(t){t&&h(e),s=!1,o()}}}function vt(t){let e,s,o,n,i,c=t[18]+"";return{c(){e=p("option"),s=g(c),o=b(),e.__value=n=t[18],e.value=e.__value,e.selected=i=t[18]===t[2]},m(t,n){u(t,e,n),d(e,s),d(e,o)},p(t,s){260&s&&i!==(i=t[18]===t[2])&&(e.selected=i)},d(t){t&&h(e)}}}function kt(t){let e,s,o,n,i,c=t[15].name+"";return{c(){e=p("option"),s=g(c),o=b(),e.__value=n=t[15].id,e.value=e.__value,e.selected=i=t[15].id===t[1]},m(t,n){u(t,e,n),d(e,s),d(e,o)},p(t,o){32&o&&c!==(c=t[15].name+"")&&y(s,c),32&o&&n!==(n=t[15].id)&&(e.__value=n,e.value=e.__value),34&o&&i!==(i=t[15].id===t[1])&&(e.selected=i)},d(t){t&&h(e)}}}function wt(t){let e,s,o,n=t[7].error+"";return{c(){e=p("div"),s=p("p"),o=g(n),k(s,"class","red"),k(e,"class","row justify-content-center")},m(t,n){u(t,e,n),d(e,s),d(s,o)},p(t,e){128&e&&n!==(n=t[7].error+"")&&y(o,n)},d(t){t&&h(e)}}}function yt(t){let s,o,n=t[6].id&&1===t[6].demographic.collegeId&&!t[6].demographic.otherCollege&&mt(t);return{c(){n&&n.c(),s=b(),o=p("link"),this.c=e,k(o,"rel","stylesheet"),k(o,"href","https://unpkg.com/@coding-blocks/motley@0.7.4/dist/online-cb/app.min.css")},m(t,e){n&&n.m(t,e),u(t,s,e),u(t,o,e)},p(t,[e]){t[6].id&&1===t[6].demographic.collegeId&&!t[6].demographic.otherCollege?n?n.p(t,e):(n=mt(t),n.c(),n.m(s.parentNode,s)):n&&(n.d(1),n=null)},i:e,o:e,d(t){n&&n.d(t),t&&h(s),t&&h(o)}}}function $t(t,e,s){let o=null,n=null,i=null,c="",l=[],a=[],r=[2025,2024,2023,2022,2021,2020,2019,2018,2017,2016,2015,2014,2013,2012,2011,2010,2009,2008,2007,2006,2005,2004,2003,2002,2001,2e3],d={},u={success:null,error:null};const h=P();M(async()=>{s(6,d=await rt.fetchUser()),d.id&&(s(4,l=await rt.fetchColleges()),s(5,a=await rt.fetchBranches()),s(2,i=d.graduationYear),s(0,o=d.demographic.collegeId),s(1,n=d.demographic.branchId),s(3,c=d.demographic.otherCollege))});return[o,n,i,c,l,a,d,u,r,async()=>{try{const t=await rt.updateUser({gradYear:i,collegeId:o,branchId:n,otherCollege:c});h("updated",t),s(7,u={success:t.success}),setTimeout(async()=>{s(6,d=await rt.fetchUser())},2e3)}catch(t){s(7,u={error:t})}},function(){o=C(this),s(0,o),s(4,l)},function(){c=this.value,s(3,c)},function(){i=C(this),s(2,i),s(8,r)},function(){n=C(this),s(1,n),s(5,a)}]}class xt extends tt{constructor(t){super(),X(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},$t,yt,c,{},null),t&&t.target&&u(t.target,this,t.anchor)}}function _t(t){let s;return{c(){s=p("div"),s.innerHTML='<div class="mt-4"><div class="card-sm light extra-bold">Beginner Courses</div> \n\t\t<div class="card-sm light"><a href="https://codingblocks.com/classroom-courses/c-plus-plus-for-beginners.html">C++ For Beginners</a></div> \n\t\t<div class="card-sm light"><a href="https://codingblocks.com/classroom-courses/java-for-beginners.html">Java For Beginners</a></div> \n\t\t<div class="card-sm light"><a href="https://codingblocks.com/classroom-courses/python-app-dev.html">Python App Development</a></div></div> \n\t<div class="mt-3"><div class="card-sm light extra-bold">Development Courses</div> \n\t\t<div class="card-sm light"><a href="https://codingblocks.com/classroom-courses/android-app-development-using-kotlin-and-java.html">Android App Dev</a></div> \n\t\t<div class="card-sm light"><a href="https://codingblocks.com/classroom-courses/web-development-nodejs.html">Full Stack Web Dev</a></div> \n\t\t<div class="card-sm light"><a href="https://codingblocks.com/classroom-courses/web-development-django.html">Python Django</a></div> \n\t\t<div class="card-sm light"><a href="https://codingblocks.com/classroom-courses/unity-game-development.html">Unity Game Development</a></div></div> \n\t<div class="mt-3"><div class="card-sm light extra-bold">Advanced Courses</div> \n\t\t<div class="card-sm light"><a href="https://codingblocks.com/classroom-courses/android-app-development-using-kotlin-and-java.html">Algo++</a></div> \n\t\t<div class="card-sm light"><a href="https://codingblocks.com/classroom-courses/web-development-nodejs.html">Algo.JAVA</a></div> \n\t\t<div class="card-sm light"><a href="https://codingblocks.com/classroom-courses/web-development-django.html">Competitive Programming</a></div> \n\t\t<div class="card-sm light"><a href="https://codingblocks.com/classroom-courses/unity-game-development.html">Machine Learning</a></div></div>',this.c=e,k(s,"class","pl-4")},m(t,e){u(t,s,e)},p:e,i:e,o:e,d(t){t&&h(s)}}}customElements.define("demographic-form",xt);class Ct extends tt{constructor(t){super(),X(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},null,_t,c,{},null),t&&t.target&&u(t.target,this,t.anchor)}}function jt(t){let s;return{c(){s=p("div"),s.innerHTML='<div class="mt-4"><div class="card-sm light extra-bold">Beginner Courses</div> \n <div class="card-sm light"><a href="https://online.codingblocks.com/courses/c-plus-plus-online-course-for-beginners">C++ Master Course | Launchpad</a></div> \n <div class="card-sm light"><a href="https://online.codingblocks.com/courses/complete-java-course-online">Java Master Course | Crux</a></div> \n <div class="card-sm light"><a href="https://online.codingblocks.com/courses/python-for-beginners-developers">Python For Developers</a></div></div> \n <div class="mt-3"><div class="card-sm light extra-bold">Advanced Courses</div> \n <div class="card-sm light"><a href="https://online.codingblocks.com/courses/python-django">Web Dev with Python-Django</a></div> \n <div class="card-sm light"><a href="https://online.codingblocks.com/courses/coding-interview-preparation-online">Interview Prep Bootcamp</a></div> \n <div class="card-sm light"><a href="https://online.codingblocks.com/courses/data-structures-and-algorithms-online-course-java-algo">Algo.Java Online</a></div> \n <div class="card-sm light"><a href="https://online.codingblocks.com/courses/android-app-training-online">Android App Development Online</a></div> \n <div class="card-sm light"><a href="https://online.codingblocks.com/courses/telegram-chatbot-python-online">Build Chatbots in Python</a></div></div> \n <div class="mt-3"><div class="card-sm light extra-bold">Expert Courses</div> \n <div class="card-sm light"><a href="https://online.codingblocks.com/courses/competitive-programming-course-online">Competitive Programming Online</a></div> \n <div class="card-sm light"><a href="https://online.codingblocks.com/courses/coding-interview-preparation-course-online-c-plus-plus">Interview Preparation - C++</a></div> \n <div class="card-sm light"><a href="https://online.codingblocks.com/courses/machine-learning-course-online">Machine Learning Master Course</a></div> \n <div class="card-sm light"><a href="https://online.codingblocks.com/courses/coding-interview-preparation-course-online-java">Interview Preparation - Java</a></div></div>',this.c=e,k(s,"class","pl-4")},m(t,e){u(t,s,e)},p:e,i:e,o:e,d(t){t&&h(s)}}}customElements.define("mobile-classroom-courses",Ct);class Tt extends tt{constructor(t){super(),X(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},null,jt,c,{},null),t&&t.target&&u(t.target,this,t.anchor)}}function Et(t){let e,s;return e=new Ct({}),{c(){Z(e.$$.fragment)},m(t,o){V(e,t,o),s=!0},i(t){s||(q(e.$$.fragment,t),s=!0)},o(t){W(e.$$.fragment,t),s=!1},d(t){K(e,t)}}}function Mt(t){let e,s;return e=new Tt({}),{c(){Z(e.$$.fragment)},m(t,o){V(e,t,o),s=!0},i(t){s||(q(e.$$.fragment,t),s=!0)},o(t){W(e.$$.fragment,t),s=!1},d(t){K(e,t)}}}function Pt(t){let s,o,i,c,l,a,m,g,f,w,y,$,x,_,C,j,T,E,M,P,A,L,O,z,B,D,H,I,U,S,N,R,F,Y,Z,V,K,Q,X,tt,et,st,ot,nt,it="classroom"==t[0]&&Et(),ct="online"==t[0]&&Mt();return{c(){s=p("link"),o=b(),i=p("link"),c=b(),l=p("div"),a=p("div"),m=p("img"),f=b(),w=p("img"),$=b(),x=p("div"),_=b(),C=p("slot"),j=b(),T=p("div"),E=p("div"),E.innerHTML='<div class="card-md extra-bold orange">Courses</div> \n\t\t\t<a href="#" class="orange"><i class="fas fa-angle-up fa-lg"></i></a>',M=b(),P=p("div"),A=p("div"),L=p("div"),L.textContent="Classroom Courses",O=b(),z=p("div"),z.innerHTML='<a href="#" class="orange">Explore All</a>',D=b(),it&&it.c(),H=b(),I=p("div"),U=p("div"),S=p("div"),S.textContent="Online Courses",N=b(),R=p("div"),R.innerHTML='<a href="#" class="orange">Explore All</a>',Y=b(),ct&&ct.c(),Z=b(),V=p("div"),V.innerHTML='<a href="https://codingblocks.com/campus-ambassador-program.html" target="blank">Campus Ambassadors</a>',K=b(),Q=p("div"),Q.innerHTML='<a href="https://codingblocks.com/about" target="blank">About Us</a>',X=b(),tt=p("div"),tt.innerHTML='<a href="https://codingblocks.com/centres" target="blank">Contact Us</a>',this.c=e,k(s,"rel","stylesheet"),k(s,"href",t[2]),k(i,"href","https://minio.codingblocks.com/hackerblocks-images/Gilroy.ttf"),k(i,"rel","stylesheet"),r(m.src,g=t[3])||k(m,"src",g),k(m,"alt","HB"),k(m,"class","hamburger-nav__ham-logo ml-4"),r(w.src,y="https://minio.codingblocks.com/amoeba/wrong-close.png")||k(w,"src","https://minio.codingblocks.com/amoeba/wrong-close.png"),k(w,"alt","#"),k(w,"class","mr-4 hamburger-nav__cross pointer"),k(a,"class","d-flex py-3 justify-content-between align-items-center hamburger-nav__top-bar"),k(x,"class","divider-h"),k(E,"class","d-flex justify-content-between"),k(L,"class","card-md extra-bold"),k(z,"class","card-sm light"),k(A,"class",B="hamburger-nav__menu-element "+("classroom"==t[0]&&"active")),k(P,"class","my-4 pl-4"),k(S,"class","card-md extra-bold"),k(R,"class","card-sm light"),k(U,"class",F="hamburger-nav__menu-element "+("online"==t[0]&&"active")),k(I,"class","my-4 pl-4"),k(V,"class","card-md light my-4"),k(Q,"class","card-md light my-4"),k(tt,"class","card-md light my-4"),k(T,"class","mt-4 px-4 overflow-y-auto no-scrollbar"),k(l,"class",et="hamburger-nav b-right overflow-y-auto no-scrollbar "+(!t[1]&&"hamburger-nav--hidden"))},m(e,n){u(e,s,n),u(e,o,n),u(e,i,n),u(e,c,n),u(e,l,n),d(l,a),d(a,m),d(a,f),d(a,w),d(l,$),d(l,x),d(l,_),d(l,C),d(l,j),d(l,T),d(T,E),d(T,M),d(T,P),d(P,A),d(A,L),d(A,O),d(A,z),d(P,D),it&&it.m(P,null),d(T,H),d(T,I),d(I,U),d(U,S),d(U,N),d(U,R),d(I,Y),ct&&ct.m(I,null),d(T,Z),d(T,V),d(T,K),d(T,Q),d(T,X),d(T,tt),st=!0,ot||(nt=[v(w,"click",t[4]),v(L,"click",t[5]),v(S,"click",t[6])],ot=!0)},p(t,[e]){(!st||4&e)&&k(s,"href",t[2]),(!st||8&e&&!r(m.src,g=t[3]))&&k(m,"src",g),(!st||1&e&&B!==(B="hamburger-nav__menu-element "+("classroom"==t[0]&&"active")))&&k(A,"class",B),"classroom"==t[0]?it?1&e&&q(it,1):(it=Et(),it.c(),q(it,1),it.m(P,null)):it&&(J(),W(it,1,1,()=>{it=null}),G()),(!st||1&e&&F!==(F="hamburger-nav__menu-element "+("online"==t[0]&&"active")))&&k(U,"class",F),"online"==t[0]?ct?1&e&&q(ct,1):(ct=Mt(),ct.c(),q(ct,1),ct.m(I,null)):ct&&(J(),W(ct,1,1,()=>{ct=null}),G()),(!st||2&e&&et!==(et="hamburger-nav b-right overflow-y-auto no-scrollbar "+(!t[1]&&"hamburger-nav--hidden")))&&k(l,"class",et)},i(t){st||(q(it),q(ct),st=!0)},o(t){W(it),W(ct),st=!1},d(t){t&&h(s),t&&h(o),t&&h(i),t&&h(c),t&&h(l),it&&it.d(),ct&&ct.d(),ot=!1,n(nt)}}}function At(t,e,s){let{css:o="https://unpkg.com/@coding-blocks/motley/dist/app.min.css"}=e,{tab:n="classroom"}=e,{showhamburger:i=!1}=e,{logo:c="https://codingblocks.com/assets/images/cb/cblogo.png"}=e;return t.$$set=t=>{"css"in t&&s(2,o=t.css),"tab"in t&&s(0,n=t.tab),"showhamburger"in t&&s(1,i=t.showhamburger),"logo"in t&&s(3,c=t.logo)},[n,i,o,c,()=>s(1,i=!i),()=>s(0,n="classroom"),()=>s(0,n="online")]}customElements.define("mobile-online-courses",Tt);class Lt extends tt{constructor(t){super(),X(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},At,Pt,c,{css:2,tab:0,showhamburger:1,logo:3},null),t&&(t.target&&u(t.target,this,t.anchor),t.props&&(this.$set(t.props),S()))}static get observedAttributes(){return["css","tab","showhamburger","logo"]}get css(){return this.$$.ctx[2]}set css(t){this.$$set({css:t}),S()}get tab(){return this.$$.ctx[0]}set tab(t){this.$$set({tab:t}),S()}get showhamburger(){return this.$$.ctx[1]}set showhamburger(t){this.$$set({showhamburger:t}),S()}get logo(){return this.$$.ctx[3]}set logo(t){this.$$set({logo:t}),S()}}function Ot(t){let s;return{c(){s=p("div"),s.innerHTML='<ul class="col-4"><li class="bold gradient-text-orange">Beginner Courses</li> \n <li><a class="white" href="https://codingblocks.com/classroom-courses/c-plus-plus-for-beginners.html" target="_blank">C++ For Beginners</a></li> \n <li><a class="white" href="https://codingblocks.com/classroom-courses/java-for-beginners.html" target="_blank">Java For Beginners</a></li> \n <li><a class="white" href="https://codingblocks.com/classroom-courses/python-app-dev.html" target="_blank">Python App Development</a></li></ul> \n <ul class="col-4"><li class="bold gradient-text-orange">Development Courses</li> \n <li><a class="white" href="https://codingblocks.com/classroom-courses/android-app-development-using-kotlin-and-java.html" target="_blank">Android App Dev</a></li> \n <li><a class="white" href="https://codingblocks.com/classroom-courses/web-development-nodejs.html" target="_blank">Full Stack Web Dev</a></li> \n <li><a class="white" href="https://codingblocks.com/classroom-courses/web-development-django.html" target="_blank">Python Django</a></li> \n <li><a class="white" href="https://codingblocks.com/classroom-courses/unity-game-development.html" target="_blank">Unity Game Development</a></li></ul> \n <ul class="col-4"><li class="bold gradient-text-orange">Advanced Courses</li> \n <li><a class="white" href="https://codingblocks.com/classroom-courses/advanced-data-structures-and-algorithms-for-interviews.html" target="_blank">Algo++</a></li> \n <li><a class="white" href="https://codingblocks.com/classroom-courses/advanced-data-structures-and-algorithms-using-java.html" target="_blank">Algo.Java</a></li> \n <li><a class="white" href="https://codingblocks.com/classroom-courses/competitive-programming.html" target="_blank">Competitive Programming</a></li> \n <li><a class="white" href="https://codingblocks.com/classroom-courses/machine-learning-with-deep-learning.html">Machine Learning</a></li></ul> \n <ul class="col-4"><li class="bold gradient-text-orange">Junior Courses</li> \n <li><a class="white" href="https://codingblocks.com/classroom-courses/code4kids.html" target="_blank">Code 4 Kids</a></li> \n <li><a class="white" href="https://codingblocks.com/classroom-courses/mathsgeeks.html" target="_blank">Maths Geek</a></li></ul> \n <ul class="col-4"><li class="bold gradient-text-orange">Bootcamps</li> \n <li><a class="white" href="https://codingblocks.com/bootcamps/react.html" target="_blank">React JS</a></li> \n <li><a class="white" href="https://codingblocks.com/bootcamps/blockchain.html" target="_blank">Blockchain</a></li> \n <li><a class="white" href="https://codingblocks.com/bootcamps/coding-interview-preparation.html" target="_blank">Interview Preparation</a></li> \n <li><a class="white" href="https://codingblocks.com/bootcamps/gamedev.html" target="_blank">Game Dev</a></li> \n <li><a class="white" href="https://codingblocks.com/bootcamps/chatbots.html" target="_blank">Chatbot</a></li></ul> \n <ul class="col-4"><li class="bold gradient-text-orange">Professional</li> \n <li><a class="white" href="https://codingblocks.com/classroom-courses/six_months_ind_training.html" target="_blank">Industrial Training</a></li></ul>',this.c=e,k(s,"class","row justify-content-around m-5")},m(t,e){u(t,s,e)},p:e,i:e,o:e,d(t){t&&h(s)}}}customElements.define("cb-mobile-navbar",Lt);class zt extends tt{constructor(t){super(),X(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},null,Ot,c,{},null),t&&t.target&&u(t.target,this,t.anchor)}}function Bt(t){let s;return{c(){s=p("div"),s.innerHTML='<ul class="col-4"><li class="bold mb-3 gradient-text-orange">Beginner Courses</li> \n <li><a class="white" href="https://online.codingblocks.com/courses/c-plus-plus-online-course-for-beginners">C++ Master Course | Launchpad</a></li> \n <li><a class="white" href="https://online.codingblocks.com/courses/complete-java-course-online">Java Master Course | Crux</a></li> \n <li><a class="white" href="https://online.codingblocks.com/courses/python-for-beginners-developers">Python For Developers</a></li></ul> \n <ul class="col-4"><li class="bold mb-3 gradient-text-orange">Advanced Courses</li> \n <li><a class="white" href="https://online.codingblocks.com/courses/python-django">Web Dev with Python-Django</a></li> \n <li><a class="white" href="https://online.codingblocks.com/courses/coding-interview-preparation-online">Interview Prep Bootcamp</a></li> \n <li><a class="white" href="https://online.codingblocks.com/courses/data-structures-and-algorithms-online-course-java-algo">Algo.Java Online</a></li> \n <li><a class="white" href="https://online.codingblocks.com/courses/android-app-training-online">Android App Development Online</a></li> \n <li><a class="white" href="https://online.codingblocks.com/courses/telegram-chatbot-python-online">Build Chatbots in Python</a></li></ul> \n <ul class="col-4"><li class="bold mb-3 gradient-text-orange">Expert Courses</li> \n <li><a class="white" href="https://online.codingblocks.com/courses/competitive-programming-course-online">Competitive Programming Online</a></li> \n <li><a class="white" href="https://online.codingblocks.com/courses/coding-interview-preparation-course-online-c-plus-plus">Interview Preparation - C++</a></li> \n <li><a class="white" href="https://online.codingblocks.com/courses/machine-learning-course-online">Machine Learning Master Course</a></li> \n <li><a class="white" href="https://online.codingblocks.com/courses/coding-interview-preparation-course-online-java">Interview Preparation - Java</a></li></ul>',this.c=e,k(s,"class","row justify-content-around m-5")},m(t,e){u(t,s,e)},p:e,i:e,o:e,d(t){t&&h(s)}}}customElements.define("classroom-courses",zt);class Dt extends tt{constructor(t){super(),X(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},null,Bt,c,{},null),t&&t.target&&u(t.target,this,t.anchor)}}function Ht(t){let e,s,o,i,c,l,a,r,m,g,f,w,y,$,_,C,j,T;const E=[Ut,It],M=[];function P(t,e){return"classroom"==t[2]?0:1}return $=P(t),_=M[$]=E[$](t),{c(){e=p("div"),s=p("div"),o=p("div"),o.innerHTML='<div class="font-lg my-4 offset-3">Our Courses</div>',i=b(),c=p("div"),l=p("div"),l.innerHTML='<div>Online Courses</div> \n <a href="https://online.codingblocks.com/courses" target="_blank" class="font-mds orange">Explore all</a>',r=b(),m=p("div"),g=p("div"),g.innerHTML='<div>Classroom Courses</div> \n <a href="https://codingblocks.com/classroom-courses/" target="_blank" class="font-mds orange">Explore all</a>',w=b(),y=p("div"),_.c(),k(o,"class","py-5 font-md bold hover-grey"),k(l,"class","offset-3"),k(c,"class",a="py-4 font-md bold hover-grey "+("online"==t[2]&&"selected")),k(g,"class","offset-3"),k(m,"class",f="py-4 font-md bold hover-grey "+("classroom"==t[2]&&"selected")),k(s,"class","cb-navbar-side col-3"),k(y,"class","col-9 font-mds"),k(e,"class","row no-gutters cb-navbar-expanded"),x(e,"overflow","hidden")},m(n,a){u(n,e,a),d(e,s),d(s,o),d(s,i),d(s,c),d(c,l),d(s,r),d(s,m),d(m,g),d(e,w),d(e,y),M[$].m(y,null),C=!0,j||(T=[v(c,"click",t[12]),v(m,"click",t[13])],j=!0)},p(t,e){(!C||4&e&&a!==(a="py-4 font-md bold hover-grey "+("online"==t[2]&&"selected")))&&k(c,"class",a),(!C||4&e&&f!==(f="py-4 font-md bold hover-grey "+("classroom"==t[2]&&"selected")))&&k(m,"class",f);let s=$;$=P(t),$!==s&&(J(),W(M[s],1,1,()=>{M[s]=null}),G(),_=M[$],_||(_=M[$]=E[$](t),_.c()),q(_,1),_.m(y,null))},i(t){C||(q(_),C=!0)},o(t){W(_),C=!1},d(t){t&&h(e),M[$].d(),j=!1,n(T)}}}function It(t){let e,s;return e=new Dt({}),{c(){Z(e.$$.fragment)},m(t,o){V(e,t,o),s=!0},i(t){s||(q(e.$$.fragment,t),s=!0)},o(t){W(e.$$.fragment,t),s=!1},d(t){K(e,t)}}}function Ut(t){let e,s;return e=new zt({}),{c(){Z(e.$$.fragment)},m(t,o){V(e,t,o),s=!0},i(t){s||(q(e.$$.fragment,t),s=!0)},o(t){W(e.$$.fragment,t),s=!1},d(t){K(e,t)}}}function St(t){let s,o,i,c,l,a,m,f,w,y,$,x,_,C,j,T,E,M,P,A,L,O,z,B,D,H,I,U,S,N,R,F,Y,Z,V,K,Q,X=t[0]&&Ht(t);return{c(){s=p("div"),o=p("div"),i=p("div"),c=p("span"),l=g("Courses\n "),a=p("img"),w=b(),y=p("div"),$=p("a"),$.textContent="About Us",_=b(),C=p("div"),j=p("a"),j.textContent="Resources",E=b(),M=p("div"),P=p("a"),P.textContent="Campus Ambassadors",L=b(),O=p("div"),z=p("a"),z.textContent="Contact Us",D=b(),H=p("slot"),U=b(),X&&X.c(),S=b(),N=p("link"),R=b(),F=p("link"),Y=b(),Z=p("link"),this.c=e,r(a.src,m="https://minio.cb.lk/public/fa-5.13/svgs/solid/chevron-"+(t[0]?"up":"down")+".svg")||k(a,"src",m),k(a,"alt","chevron"),k(a,"class","d-inline s-10x10"),k(c,"class",f="px-3 pointer position-relative "+("courses"===t[1]&&"active-tab")),k($,"class","white"),k($,"href","https://codingblocks.com/about.html"),k($,"target","_blank"),k(y,"class",x="px-3 position-relative "+("about"===t[1]&&"active-tab")),k(j,"class","white"),k(j,"href","https://codingblocks.com/resources"),k(j,"target","_blank"),k(C,"class",T="px-3 position-relative "+("resources"===t[1]&&"active-tab")),k(P,"class","white"),k(P,"href","https://codingblocks.com/campus-ambassador-program.html"),k(P,"target","_blank"),k(M,"class",A="px-3 position-relative "+("ca"===t[1]&&"active-tab")),k(z,"class","white"),k(z,"href","https://codingblocks.com/centres/"),k(z,"target","_blank"),k(O,"class",B="px-3 position-relative "+("contact"===t[1]&&"active-tab")),k(H,"name","header"),k(i,"class",I="d-flex "+t[4]+" py-3 pr-5"),k(o,"class","border"),k(s,"class","a-hb d-md-block d-none bg-background-main-3 white"),k(N,"rel","stylesheet"),k(N,"href",t[3]),k(F,"href","https://fonts.googleapis.com/css?family=Nunito+Sans:400,600,700,800"),k(F,"rel","stylesheet"),k(Z,"href","https://minio.codingblocks.com/hackerblocks-images/Gilroy.ttf"),k(Z,"rel","stylesheet")},m(e,n){u(e,s,n),d(s,o),d(o,i),d(i,c),d(c,l),d(c,a),d(i,w),d(i,y),d(y,$),d(i,_),d(i,C),d(C,j),d(i,E),d(i,M),d(M,P),d(i,L),d(i,O),d(O,z),d(i,D),d(i,H),d(s,U),X&&X.m(s,null),u(e,S,n),u(e,N,n),u(e,R,n),u(e,F,n),u(e,Y,n),u(e,Z,n),V=!0,K||(Q=[v(c,"click",t[7]),v($,"click",t[8]),v(j,"click",t[9]),v(P,"click",t[10]),v(z,"click",t[11])],K=!0)},p(t,[e]){(!V||1&e&&!r(a.src,m="https://minio.cb.lk/public/fa-5.13/svgs/solid/chevron-"+(t[0]?"up":"down")+".svg"))&&k(a,"src",m),(!V||2&e&&f!==(f="px-3 pointer position-relative "+("courses"===t[1]&&"active-tab")))&&k(c,"class",f),(!V||2&e&&x!==(x="px-3 position-relative "+("about"===t[1]&&"active-tab")))&&k(y,"class",x),(!V||2&e&&T!==(T="px-3 position-relative "+("resources"===t[1]&&"active-tab")))&&k(C,"class",T),(!V||2&e&&A!==(A="px-3 position-relative "+("ca"===t[1]&&"active-tab")))&&k(M,"class",A),(!V||2&e&&B!==(B="px-3 position-relative "+("contact"===t[1]&&"active-tab")))&&k(O,"class",B),(!V||16&e&&I!==(I="d-flex "+t[4]+" py-3 pr-5"))&&k(i,"class",I),t[0]?X?(X.p(t,e),1&e&&q(X,1)):(X=Ht(t),X.c(),q(X,1),X.m(s,null)):X&&(J(),W(X,1,1,()=>{X=null}),G()),(!V||8&e)&&k(N,"href",t[3])},i(t){V||(q(X),V=!0)},o(t){W(X),V=!1},d(t){t&&h(s),X&&X.d(),t&&h(S),t&&h(N),t&&h(R),t&&h(F),t&&h(Y),t&&h(Z),K=!1,n(Q)}}}function Nt(t,e,s){let{topalign:o="center"}=e,{expanded:n=!1}=e,{activeTab:i=""}=e,{activeCoursesTab:c="online"}=e,{css:l="https://unpkg.com/@coding-blocks/motley/dist/online-cb/app.min.css"}=e,a="justify-content-center";const r=()=>s(0,n=!n);return t.$$set=t=>{"topalign"in t&&s(6,o=t.topalign),"expanded"in t&&s(0,n=t.expanded),"activeTab"in t&&s(1,i=t.activeTab),"activeCoursesTab"in t&&s(2,c=t.activeCoursesTab),"css"in t&&s(3,l=t.css)},t.$$.update=()=>{if(64&t.$$.dirty)switch(o){case"left":s(4,a="justify-content-start");break;case"right":s(4,a="justify-content-end");break;default:s(4,a="justify-content-center")}},[n,i,c,l,a,r,o,()=>{r(),s(1,i="courses")},()=>s(1,i="about"),()=>s(1,i="resources"),()=>s(1,i="ca"),()=>s(1,i="contact"),()=>s(2,c="online"),()=>s(2,c="classroom")]}customElements.define("online-courses",Dt);class Rt extends tt{constructor(t){super(),this.shadowRoot.innerHTML='<style>a:hover{text-decoration:underline}.hover-grey.selected:hover{background:unset}.a-hb{display:none}.active-tab:after{content:"";width:98%;height:2px;position:absolute;left:-2px;bottom:-16px;display:block;background:linear-gradient(90deg, #FB8530 0%, #FEB50B 100%)}</style>',X(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},Nt,St,c,{topalign:6,expanded:0,activeTab:1,activeCoursesTab:2,css:3},null),t&&(t.target&&u(t.target,this,t.anchor),t.props&&(this.$set(t.props),S()))}static get observedAttributes(){return["topalign","expanded","activeTab","activeCoursesTab","css"]}get topalign(){return this.$$.ctx[6]}set topalign(t){this.$$set({topalign:t}),S()}get expanded(){return this.$$.ctx[0]}set expanded(t){this.$$set({expanded:t}),S()}get activeTab(){return this.$$.ctx[1]}set activeTab(t){this.$$set({activeTab:t}),S()}get activeCoursesTab(){return this.$$.ctx[2]}set activeCoursesTab(t){this.$$set({activeCoursesTab:t}),S()}get css(){return this.$$.ctx[3]}set css(t){this.$$set({css:t}),S()}}function Ft(t){let s,o,n,i,c,l,a,u,m,g,b,f,v,w;return{c(){s=p("script"),n=p("script"),c=p("script"),a=p("script"),m=p("script"),b=p("script"),v=p("script"),this.c=e,r(s.src,o="https://source.zoom.us/1.8.5/lib/vendor/react.min.js")||k(s,"src","https://source.zoom.us/1.8.5/lib/vendor/react.min.js"),r(n.src,i="https://source.zoom.us/1.8.5/lib/vendor/react-dom.min.js")||k(n,"src","https://source.zoom.us/1.8.5/lib/vendor/react-dom.min.js"),r(c.src,l="https://source.zoom.us/1.8.5/lib/vendor/redux.min.js")||k(c,"src","https://source.zoom.us/1.8.5/lib/vendor/redux.min.js"),r(a.src,u="https://source.zoom.us/1.8.5/lib/vendor/redux-thunk.min.js")||k(a,"src","https://source.zoom.us/1.8.5/lib/vendor/redux-thunk.min.js"),r(m.src,g="https://source.zoom.us/1.8.5/lib/vendor/jquery.min.js")||k(m,"src","https://source.zoom.us/1.8.5/lib/vendor/jquery.min.js"),r(b.src,f="https://source.zoom.us/1.8.5/lib/vendor/lodash.min.js")||k(b,"src","https://source.zoom.us/1.8.5/lib/vendor/lodash.min.js"),r(v.src,w="https://source.zoom.us/zoom-meeting-1.8.5.min.js")||k(v,"src","https://source.zoom.us/zoom-meeting-1.8.5.min.js")},m(e,o){d(document.head,s),d(document.head,n),d(document.head,c),d(document.head,a),d(document.head,m),d(document.head,b),d(document.head,v),t[7](v)},p:e,i:e,o:e,d(e){h(s),h(n),h(c),h(a),h(m),h(b),h(v),t[7](null)}}}function Jt(t,e,s){let o,{leaveUrl:n="/"}=e,{meetingnumber:i}=e,{signature:c}=e,{apikey:l}=e,{username:a}=e,{useremail:r}=e;return M(async()=>{o.addEventListener("load",()=>{ZoomMtg.preLoadWasm(),ZoomMtg.prepareJssdk(),ZoomMtg.init({leaveUrl:n,success(){ZoomMtg.join({meetingNumber:i,userName:a,signature:c,apiKey:l,userEmail:r,success(t){console.log("success")},error(t){console.log(t)}})},error(t){console.log(t)}})})}),t.$$set=t=>{"leaveUrl"in t&&s(1,n=t.leaveUrl),"meetingnumber"in t&&s(2,i=t.meetingnumber),"signature"in t&&s(3,c=t.signature),"apikey"in t&&s(4,l=t.apikey),"username"in t&&s(5,a=t.username),"useremail"in t&&s(6,r=t.useremail)},[o,n,i,c,l,a,r,function(t){L[t?"unshift":"push"](()=>{o=t,s(0,o)})}]}customElements.define("cb-navbar",Rt);class Gt extends tt{constructor(t){super(),X(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},Jt,Ft,c,{leaveUrl:1,meetingnumber:2,signature:3,apikey:4,username:5,useremail:6},null),t&&(t.target&&u(t.target,this,t.anchor),t.props&&(this.$set(t.props),S()))}static get observedAttributes(){return["leaveUrl","meetingnumber","signature","apikey","username","useremail"]}get leaveUrl(){return this.$$.ctx[1]}set leaveUrl(t){this.$$set({leaveUrl:t}),S()}get meetingnumber(){return this.$$.ctx[2]}set meetingnumber(t){this.$$set({meetingnumber:t}),S()}get signature(){return this.$$.ctx[3]}set signature(t){this.$$set({signature:t}),S()}get apikey(){return this.$$.ctx[4]}set apikey(t){this.$$set({apikey:t}),S()}get username(){return this.$$.ctx[5]}set username(t){this.$$set({username:t}),S()}get useremail(){return this.$$.ctx[6]}set useremail(t){this.$$set({useremail:t}),S()}}customElements.define("zoom-meeting",Gt);const{document:qt}=Y;function Wt(t){let e,s;return{c(){e=p("div"),s=g(t[4]),k(e,"class","red")},m(t,o){u(t,e,o),d(e,s)},p(t,e){16&e&&y(s,t[4])},d(t){t&&h(e)}}}function Yt(t){let e,s,o,i,c,l,a;return{c(){e=p("input"),s=b(),o=p("button"),i=g("Send OTP"),k(e,"type","number"),k(e,"placeholder","Enter 10 digit Mobile Number"),k(e,"class","w-100 mb-4"),k(o,"type","button"),k(o,"class","btn btn-primary w-100"),o.disabled=c=!t[1]},m(n,c){u(n,e,c),$(e,t[1]),u(n,s,c),u(n,o,c),d(o,i),l||(a=[v(e,"input",t[14]),v(o,"click",t[8])],l=!0)},p(t,s){2&s&&w(e.value)!==t[1]&&$(e,t[1]),2&s&&c!==(c=!t[1])&&(o.disabled=c)},d(t){t&&h(e),t&&h(s),t&&h(o),l=!1,n(a)}}}function Zt(t){let e,s,o,i,c,l,a;return{c(){e=p("input"),s=b(),o=p("button"),i=g("Verify OTP"),k(e,"type","number"),k(e,"placeholder","Enter OTP"),k(e,"class","w-100 mb-4"),k(o,"type","button"),k(o,"class","btn btn-primary w-100"),o.disabled=c=!t[2]},m(n,c){u(n,e,c),$(e,t[2]),u(n,s,c),u(n,o,c),d(o,i),l||(a=[v(e,"input",t[13]),v(o,"click",t[9])],l=!0)},p(t,s){4&s&&w(e.value)!==t[2]&&$(e,t[2]),4&s&&c!==(c=!t[2])&&(o.disabled=c)},d(t){t&&h(e),t&&h(s),t&&h(o),l=!1,n(a)}}}function Vt(t){let e;function s(t,e){return t[3]?Qt:Kt}let o=s(t),n=o(t);return{c(){n.c(),e=f()},m(t,s){n.m(t,s),u(t,e,s)},p(t,i){o===(o=s(t))&&n?n.p(t,i):(n.d(1),n=o(t),n&&(n.c(),n.m(e.parentNode,e)))},d(t){n.d(t),t&&h(e)}}}function Kt(t){let e,s,o,i,c,l,a;return{c(){e=p("input"),s=b(),o=p("button"),i=g("Send OTP"),k(e,"type","email"),k(e,"placeholder","Enter Email"),k(e,"class","w-100 mb-4"),k(o,"type","button"),k(o,"class","btn btn-primary w-100"),o.disabled=c=!t[0]},m(n,c){u(n,e,c),$(e,t[0]),u(n,s,c),u(n,o,c),d(o,i),l||(a=[v(e,"input",t[12]),v(o,"click",t[8])],l=!0)},p(t,s){1&s&&e.value!==t[0]&&$(e,t[0]),1&s&&c!==(c=!t[0])&&(o.disabled=c)},d(t){t&&h(e),t&&h(s),t&&h(o),l=!1,n(a)}}}function Qt(t){let e,s,o,i,c,l,a;return{c(){e=p("input"),s=b(),o=p("button"),i=g("Verify OTP"),k(e,"type","number"),k(e,"placeholder","Enter OTP"),k(e,"class","w-100 mb-4"),k(o,"type","button"),k(o,"class","btn btn-primary w-100"),o.disabled=c=!t[2]},m(n,c){u(n,e,c),$(e,t[2]),u(n,s,c),u(n,o,c),d(o,i),l||(a=[v(e,"input",t[11]),v(o,"click",t[9])],l=!0)},p(t,s){4&s&&w(e.value)!==t[2]&&$(e,t[2]),4&s&&c!==(c=!t[2])&&(o.disabled=c)},d(t){t&&h(e),t&&h(s),t&&h(o),l=!1,n(a)}}}function Xt(t){let s,o,i,c,l,a,r,m,f,w,y,$,_,C,j,T,E,M,P,A,L,O,z,B,D,H,I,U,S,N,R,F,J,G,q,W,Y,Z,V,K=t[4]&&Wt(t);function Q(t,e){return"email"===t[5]?Vt:t[3]?Zt:Yt}let X=Q(t),tt=X(t);return{c(){s=p("link"),o=p("link"),i=p("link"),c=b(),l=p("div"),a=b(),r=p("div"),m=p("div"),f=p("h2"),f.textContent="Login / Signup",w=b(),y=p("button"),y.innerHTML='<img src="https://minio.codingblocks.com/public/cross-black.png" alt=""/>',$=b(),_=p("div"),C=g("Sign In with \n "),j=p("button"),T=g("Email"),M=g("\n Or\n "),P=p("button"),A=g("Mobile"),O=b(),K&&K.c(),z=b(),tt.c(),B=b(),D=p("div"),D.innerHTML='<span class="hr"></span> \n <span class="px-5">OR</span> \n <span class="hr"></span>',H=b(),I=p("a"),U=p("button"),U.innerHTML='<img class="logo" src="https://minio.codingblocks.com/public/google-logo.png" alt=""/> \n <span class="logo-text">Sign in with Google</span>',S=b(),N=p("a"),R=p("button"),R.innerHTML='<img class="logo" src="https://minio.codingblocks.com/public/facebook-logo.png" alt=""/> \n <span class="logo-text">Sign in with facebook</span>',F=b(),J=p("div"),J.innerHTML='<div class="header">Find your dream job</div> \n <div class="sub-header mb-4">Trusted by 100k+ students</div> \n <img src="https://minio.codingblocks.com/public/company-logo-group.png" alt=""/>',G=b(),q=p("div"),q.innerHTML='<a href="https://www.linkedin.com/school/codingblocksindia/" target="_blank"><img class="social-media-logo mr-2" src="https://minio.codingblocks.com/public/linkedin-logo.png" alt=""/></a> \n <a href="https://twitter.com/codingblocksIN" target="_blank"><img class="social-media-logo mr-2" src="https://minio.codingblocks.com/public/twitter-logo.png" alt=""/></a> \n <a href="https://github.com/coding-blocks" target="_blank"><img class="social-media-logo" src="https://minio.codingblocks.com/public/github-logo.png" alt=""/></a> \n <div><a href="https://codingblocks.com/tos.html" class="sub-header" target="_blank">Coding Blocks | Terms of service</a></div>',W=b(),Y=p("link"),this.c=e,k(s,"rel","preconnect"),k(s,"href","https://fonts.googleapis.com"),k(o,"rel","preconnect"),k(o,"href","https://fonts.gstatic.com"),k(o,"crossorigin",""),k(i,"href","https://fonts.googleapis.com/css2?family=Mulish:wght@400;600&display=swap"),k(i,"rel","stylesheet"),k(l,"class","blurrer"),x(y,"color","#3B4254"),k(m,"class","d-flex justify-content-between align-items-center mb-5"),k(j,"class",E="email"===t[5]?"red":""),k(P,"class",L="mobile"===t[5]?"red":""),k(_,"class","mb-4"),k(D,"class","d-flex justify-content-center align-items-center"),x(D,"margin","30px 0px"),k(U,"class","btn btn-secondary white w-100 mb-3"),k(I,"href",t[6]),k(R,"class","btn btn-secondary white w-100 mb-5"),k(N,"href",t[7]),k(J,"class","mb-5 pt-5"),k(q,"class","position-absolute"),k(r,"id","cb-login-signup"),k(r,"class","cb-login-signup-container"),k(Y,"rel","stylesheet"),k(Y,"href","https://unpkg.com/@coding-blocks/motley@2.8.6/dist/account/app.min.css")},m(e,n){d(qt.head,s),d(qt.head,o),d(qt.head,i),u(e,c,n),u(e,l,n),u(e,a,n),u(e,r,n),d(r,m),d(m,f),d(m,w),d(m,y),d(r,$),d(r,_),d(_,C),d(_,j),d(j,T),d(_,M),d(_,P),d(P,A),d(r,O),K&&K.m(r,null),d(r,z),tt.m(r,null),d(r,B),d(r,D),d(r,H),d(r,I),d(I,U),d(r,S),d(r,N),d(N,R),d(r,F),d(r,J),d(r,G),d(r,q),u(e,W,n),u(e,Y,n),Z||(V=[v(l,"click",te),v(y,"click",te),v(j,"click",t[10]("email")),v(P,"click",t[10]("mobile"))],Z=!0)},p(t,[e]){32&e&&E!==(E="email"===t[5]?"red":"")&&k(j,"class",E),32&e&&L!==(L="mobile"===t[5]?"red":"")&&k(P,"class",L),t[4]?K?K.p(t,e):(K=Wt(t),K.c(),K.m(r,z)):K&&(K.d(1),K=null),X===(X=Q(t))&&tt?tt.p(t,e):(tt.d(1),tt=X(t),tt&&(tt.c(),tt.m(r,B)))},i:e,o:e,d(t){h(s),h(o),h(i),t&&h(c),t&&h(l),t&&h(a),t&&h(r),K&&K.d(),tt.d(),t&&h(W),t&&h(Y),Z=!1,n(V)}}}function te(){document.getElementsByTagName("cb-login-signup")[0].classList.add("hide-cb-login-signup-prompt")}function ee(t,e,s){const o=window.location.host.split(".")[0],n=window.location.pathname,i=window.location.host.includes("codingblocks.xyz"),c={hack:2146237097,online:5633768694,hire:4190457915,codeskiller:9706874989,cricket:3806036015},l={sendOtpEmail:{hack:"https://hack-api.codingblocks.com/api/v2/jwt/otp",online:"https://online-api.codingblocks.com/api/v2/jwt/otp/email",hire:"https://hire-api.codingblocks.com/login/otp/email",codeskiller:"https://code-gym-api.codingblocks.com/api/jwt/otp",cricket:"https://cricket.codingblocks.com/api/jwt/otp"},sendOtpMobile:{hack:"https://hack-api.codingblocks.com/api/v2/jwt/otp",online:"https://online-api.codingblocks.com/api/v2/jwt/otp/mobile",hire:"https://hire-api.codingblocks.com/login/otp/mobile",codeskiller:"https://code-gym-api.codingblocks.com/api/jwt/otp",cricket:"https://cricket.codingblocks.com/api/jwt/otp"},verifyOtpEmail:{hack:"https://hack-api.codingblocks.com/api/v2/jwt/otp/verify",online:"https://online-api.codingblocks.com/api/v2/jwt/otp/email/verify",hire:"https://hire-api.codingblocks.com/login/otp/email/verify",codeskiller:"https://code-gym-api.codingblocks.com/api/jwt/otp/verify",cricket:"https://cricket.codingblocks.com/api/jwt/otp/verify"},verifyOtpMobile:{hack:"https://hack-api.codingblocks.com/api/v2/jwt/otp/verify",online:"https://online-api.codingblocks.com/api/v2/jwt/otp/mobile/verify",hire:"https://hire-api.codingblocks.com/login/otp/mobile/verify",cricket:"https://cricket.codingblocks.com/api/jwt/otp/verify"}};let a=null,r=null,d=null,u=null,h=null,m="email",p=(localStorage.getItem("cb_login_prompt"),o.includes("localhost")?`http://localhost:3838/login/google/v2?redirect_uri=http://${o}${n}&client=localhost&client_id=1234567890`:i?`https://account.codingblocks.xyz/login/google/v2?redirect_uri=https://${o}.codingblocks.xyz${n}&client=${o}-codingblocks&client_id=1`:`https://account.codingblocks.com/login/google/v2?redirect_uri=https://${o}.codingblocks.com${n}&client=${"cricket"===o?"cricket-quiz-iccwc23":o}-codingblocks&client_id=${c[o]}`),g=o.includes("localhost")?`http://localhost:3838/login/facebook/v2?redirect_uri=http://${o}${n}&client=localhost&client_id=1234567890`:i?`https://account.codingblocks.xyz/login/facebook/v2?redirect_uri=https://${o}.codingblocks.xyz${n}&client=${o}-codingblocks&client_id=1`:`https://account.codingblocks.com/login/facebook/v2?redirect_uri=https://${o}.codingblocks.com${n}&client=${"cricket"===o?"cricket-quiz-iccwc23":o}-codingblocks&client_id=${c[o]}`;return[a,r,d,u,h,m,p,g,async function(){s(4,h=null);const t=await fetch(("email"===m?l.sendOtpEmail[o]:l.sendOtpMobile[o])||"http://localhost:3000/api/jwt/otp",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({email:a,mobile:r})});if(t.ok){let{id:e,Details:o}=await t.json();s(3,u=e||o)}else{const{message:e,Details:o}=await t.json();(e||o)&&s(4,h=e||o)}},async function(){s(4,h=null);const t=await fetch(("email"===m?l.verifyOtpEmail[o]:l.verifyOtpMobile[o])||"http://localhost:3000/api/jwt/otp/verify",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({email:a,mobile:r,otp_id:u,otp:d})});if(t.ok)window.location.reload();else{const{message:e,Details:o}=await t.json();(e||o)&&s(4,h=e||o)}},t=>()=>{s(5,m=t),s(3,u=null)},function(){d=w(this.value),s(2,d)},function(){a=this.value,s(0,a)},function(){d=w(this.value),s(2,d)},function(){r=w(this.value),s(1,r)}]}class se extends tt{constructor(t){super(),this.shadowRoot.innerHTML="<style>input{border:none;border-bottom:solid 1px #E95547;background:#15171E;padding:10px 0px}.blurrer{position:fixed;z-index:1000;top:0;left:0;width:100vw;height:100vh;background-color:#939393;opacity:0.5}.cb-login-signup-container{background:#15171E;color:white;width:100vw;min-height:100vh;position:fixed;z-index:1001;top:0;right:0;padding:5rem 3rem 3rem 3rem;font-family:'Mulish';transition:0.5s}:host(.hide-cb-login-signup-prompt) .cb-login-signup-container{right:-100vw}:host(.hide-cb-login-signup-prompt) .blurrer{display:none}@media screen and (min-width: 768px){.cb-login-signup-container{width:35vw}:host(.hide-cb-login-signup-prompt) .cb-login-signup-container{right:-35vw}}.btn{padding:10px 10px;border-radius:3px}.btn.btn-primary{background:linear-gradient(90deg, #F26A3E 0%, #FB8133 100%)}.btn.btn-secondary{background:#15171E;border:1px solid #373E4F}.btn:disabled{background:#939393}.logo{width:20px}.logo-text{display:inline-block;transform:translate(5px, -4px)}.header{font-size:20px}.hr{display:inline-block;width:40%;border:solid 0.5px #373E4F}.sub-header{font-size:12px;color:#BDBDBD}.social-media-logo{width:15px}</style>",X(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},ee,Xt,c,{},null),t&&t.target&&u(t.target,this,t.anchor)}}customElements.define("cb-login-signup",se),t.banner=at,t.cb_login_signup=se,t.cb_navbar=Rt,t.demographic_form=xt,t.mobile_cb_navbar=Lt,t.zoom_meeting=Gt,Object.defineProperty(t,"__esModule",{value:!0})}));

@@ -5,3 +5,3 @@ {

"outDir": "dist/",
"version": "1.8.3",
"version": "1.8.4",
"main": "dist/index.js",

@@ -8,0 +8,0 @@ "scripts": {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc