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 0.2.2 to 0.2.3

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 e(t){t.forEach(n)}function i(t){return"function"==typeof t}function c(t,n){return t!=t?n==n:t!==n||t&&"object"==typeof t||"function"==typeof t}function s(t,n){t.appendChild(n)}function l(t,n,o){t.insertBefore(n,o||null)}function r(t){t.parentNode.removeChild(t)}function a(t){return document.createElement(t)}function d(t){return document.createTextNode(t)}function p(){return d(" ")}function u(t,n,o,e){return t.addEventListener(n,o,e),()=>t.removeEventListener(n,o,e)}function g(t,n,o){null==o?t.removeAttribute(n):t.getAttribute(n)!==o&&t.setAttribute(n,o)}function h(t){return""===t?null:+t}function m(t,n){t.value=null==n?"":n}function f(t,n,o,e){null===o?t.style.removeProperty(n):t.style.setProperty(n,o,e?"important":"")}function b(t){const n={};for(const o of t)n[o.name]=o.value;return n}let y;function k(t){y=t}const w=[],$=[],v=[],x=[],_=Promise.resolve();let E=!1;function T(t){v.push(t)}const j=new Set;let O=0;function S(){const t=y;do{for(;O<w.length;){const t=w[O];O++,k(t),C(t.$$)}for(k(null),w.length=0,O=0;$.length;)$.pop()();for(let t=0;t<v.length;t+=1){const n=v[t];j.has(n)||(j.add(n),n())}v.length=0}while(w.length);for(;x.length;)x.pop()();E=!1,j.clear(),k(t)}function C(t){if(null!==t.fragment){t.update(),e(t.before_update);const n=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,n),t.after_update.forEach(T)}}const L=new Set;const M="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function B(t,n){-1===t.$$.dirty[0]&&(w.push(t),E||(E=!0,_.then(S)),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<<n%31}function H(c,s,l,a,d,p,u,g=[-1]){const h=y;k(c);const m=c.$$={fragment:null,ctx:null,props:p,update:t,not_equal:d,bound:o(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(s.context||(h?h.$$.context:[])),callbacks:o(),dirty:g,skip_bound:!1,root:s.target||h.$$.root};u&&u(m.root);let f=!1;if(m.ctx=l?l(c,s.props||{},(t,n,...o)=>{const e=o.length?o[0]:n;return m.ctx&&d(m.ctx[t],m.ctx[t]=e)&&(!m.skip_bound&&m.bound[t]&&m.bound[t](e),f&&B(c,t)),n}):[],m.update(),f=!0,e(m.before_update),m.fragment=!!a&&a(m.ctx),s.target){if(s.hydrate){const t=function(t){return Array.from(t.childNodes)}(s.target);m.fragment&&m.fragment.l(t),t.forEach(r)}else m.fragment&&m.fragment.c();s.intro&&((b=c.$$.fragment)&&b.i&&(L.delete(b),b.i(w))),function(t,o,c,s){const{fragment:l,on_mount:r,on_destroy:a,after_update:d}=t.$$;l&&l.m(o,c),s||T(()=>{const o=r.map(n).filter(i);a?a.push(...o):e(o),t.$$.on_mount=[]}),d.forEach(T)}(c,s.target,s.anchor,s.customElement),S()}var b,w;k(h)}let N;"function"==typeof HTMLElement&&(N=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(n).filter(i);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,n,o){this[t]=o}disconnectedCallback(){e(this.$$.on_disconnect)}$destroy(){!function(t,n){const o=t.$$;null!==o.fragment&&(e(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:P}=M;function A(t){let n,o;return{c(){n=a("div"),o=d(t[3]),g(n,"class","red")},m(t,e){l(t,n,e),s(n,o)},p(t,n){8&n&&function(t,n){n=""+n,t.wholeText!==n&&(t.data=n)}(o,t[3])},d(t){t&&r(n)}}}function F(t){let n,o,i,c,h,f,b;return{c(){n=a("input"),o=p(),i=a("button"),c=d("Sign In"),g(n,"type","email"),g(n,"placeholder","Enter Email"),g(n,"class","w-100 mb-4"),g(i,"class","btn btn-primary w-100"),i.disabled=h=!t[0]},m(e,r){l(e,n,r),m(n,t[0]),l(e,o,r),l(e,i,r),s(i,c),f||(b=[u(n,"input",t[9]),u(i,"click",t[6])],f=!0)},p(t,o){1&o&&n.value!==t[0]&&m(n,t[0]),1&o&&h!==(h=!t[0])&&(i.disabled=h)},d(t){t&&r(n),t&&r(o),t&&r(i),f=!1,e(b)}}}function z(t){let n,o,i,c,f,b,y;return{c(){n=a("input"),o=p(),i=a("button"),c=d("Verify OTP"),g(n,"type","number"),g(n,"placeholder","Enter OTP"),g(n,"class","w-100 mb-4"),g(i,"class","btn btn-primary w-100"),i.disabled=f=!t[1]},m(e,r){l(e,n,r),m(n,t[1]),l(e,o,r),l(e,i,r),s(i,c),b||(y=[u(n,"input",t[8]),u(i,"click",t[7])],b=!0)},p(t,o){2&o&&h(n.value)!==t[1]&&m(n,t[1]),2&o&&f!==(f=!t[1])&&(i.disabled=f)},d(t){t&&r(n),t&&r(o),t&&r(i),b=!1,e(y)}}}function I(n){let o,i,c,d,h,m,b,y,k,w,$,v,x,_,E,T,j,O,S,C,L,M,B,H,N,I,R,J,q,G,V,X=n[3]&&A(n);function K(t,n){return t[2]?z:F}let Q=K(n),U=Q(n);return{c(){o=a("link"),i=a("link"),c=a("link"),d=p(),h=a("div"),m=p(),b=a("div"),y=a("div"),k=a("h2"),k.textContent="Login / Signup",w=p(),$=a("button"),$.textContent="X",v=p(),x=a("div"),x.textContent="Sign In with Email",_=p(),X&&X.c(),E=p(),U.c(),T=p(),j=a("div"),j.innerHTML='<span class="hr"></span> \n <span class="px-5">OR</span> \n <span class="hr"></span>',O=p(),S=a("a"),C=a("button"),C.innerHTML='<img class="logo" src="https://minio.codingblocks.com/public/google-logo.png" alt=""/> \n <span class="logo-text">Sign in with Google</span>',L=p(),M=a("a"),B=a("button"),B.innerHTML='<img class="logo" src="https://minio.codingblocks.com/public/facebook-logo.png" alt=""/> \n <span class="logo-text">Sign in with facebook</span>',H=p(),N=a("div"),N.innerHTML='<div class="header">Find your dream job</div> \n <div class="sub-header mb-4">Trsuted by 100k+ students</div> \n <img src="https://minio.codingblocks.com/public/company-logo-group.png" alt=""/>',I=p(),R=a("div"),R.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>',J=p(),q=a("link"),this.c=t,g(o,"rel","preconnect"),g(o,"href","https://fonts.googleapis.com"),g(i,"rel","preconnect"),g(i,"href","https://fonts.gstatic.com"),g(i,"crossorigin",""),g(c,"href","https://fonts.googleapis.com/css2?family=Mulish:wght@400;600&display=swap"),g(c,"rel","stylesheet"),g(h,"class","blurrer"),f($,"color","#3B4254"),g(y,"class","d-flex justify-content-between align-items-center mb-5"),g(x,"class","mb-4"),g(j,"class","d-flex justify-content-center align-items-center"),f(j,"margin","30px 0px"),g(C,"class","btn btn-secondary white w-100 mb-3"),g(S,"href",n[4]),g(B,"class","btn btn-secondary white w-100 mb-5"),g(M,"href",n[5]),g(N,"class","mb-5"),g(R,"class","position-absolute"),g(b,"id","cb-login-signup"),g(b,"class","cb-login-signup-container"),g(q,"rel","stylesheet"),g(q,"href","https://unpkg.com/@coding-blocks/motley@2.8.6/dist/account/app.min.css")},m(t,n){s(P.head,o),s(P.head,i),s(P.head,c),l(t,d,n),l(t,h,n),l(t,m,n),l(t,b,n),s(b,y),s(y,k),s(y,w),s(y,$),s(b,v),s(b,x),s(b,_),X&&X.m(b,null),s(b,E),U.m(b,null),s(b,T),s(b,j),s(b,O),s(b,S),s(S,C),s(b,L),s(b,M),s(M,B),s(b,H),s(b,N),s(b,I),s(b,R),l(t,J,n),l(t,q,n),G||(V=[u(h,"click",D),u($,"click",D)],G=!0)},p(t,[n]){t[3]?X?X.p(t,n):(X=A(t),X.c(),X.m(b,E)):X&&(X.d(1),X=null),Q===(Q=K(t))&&U?U.p(t,n):(U.d(1),U=Q(t),U&&(U.c(),U.m(b,T)))},i:t,o:t,d(t){r(o),r(i),r(c),t&&r(d),t&&r(h),t&&r(m),t&&r(b),X&&X.d(),U.d(),t&&r(J),t&&r(q),G=!1,e(V)}}}function D(){document.getElementsByTagName("cb-login-signup")[0].classList.add("hide-cb-login-signup-prompt")}function R(t,n,o){const e=window.location.host.split(".")[0],i={hack:2146237097,online:5633768694,hire:4190457915,"code-gym":9706874989},c={sendOtp:{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","code-gym":"https://code-gym-api.codingblocks.com/api/jwt/otp"},verifyOtp:{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","code-gym":"https://code-gym-api.codingblocks.com/api/jwt/verify"}};let s=null,l=null,r=null,a=null;localStorage.getItem("cb_login_prompt");return[s,l,r,a,`https://account.codingblocks.com/login/google/v2?redirect_uri=https://${e}.codingblocks.com&client=${e}-codingblocks&client_id=${i[e]}`,`https://account.codingblocks.com/login/facebook/v2?redirect_uri=https://${e}.codingblocks.com&client=${e}-codingblocks&client_id=${i[e]}`,async function(){const t=await fetch(c.sendOtp[e]||"http://localhost:3000/api/v2/jwt/otp",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:s})});let{id:n}=await t.json();o(2,r=n)},async function(){o(3,a=null);const t=await fetch(c.verifyOtp[e]||"http://localhost:3000/api/v2/jwt/otp/verify",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({email:s,otp_id:r,otp:l})});if(t.ok)window.location.reload();else{const{message:n}=await t.json();n&&o(3,a=n)}},function(){l=h(this.value),o(1,l)},function(){s=this.value,o(0,s)}]}class J extends N{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>",H(this,{target:this.shadowRoot,props:b(this.attributes),customElement:!0},R,I,c,{},null),t&&t.target&&l(t.target,this,t.anchor)}}return customElements.define("cb-login-signup",J),J}));
!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 e(t){t.forEach(n)}function i(t){return"function"==typeof t}function c(t,n){return t!=t?n==n:t!==n||t&&"object"==typeof t||"function"==typeof t}function s(t,n){t.appendChild(n)}function l(t,n,o){t.insertBefore(n,o||null)}function r(t){t.parentNode.removeChild(t)}function a(t){return document.createElement(t)}function d(t){return document.createTextNode(t)}function p(){return d(" ")}function u(t,n,o,e){return t.addEventListener(n,o,e),()=>t.removeEventListener(n,o,e)}function g(t,n,o){null==o?t.removeAttribute(n):t.getAttribute(n)!==o&&t.setAttribute(n,o)}function h(t){return""===t?null:+t}function m(t,n){t.value=null==n?"":n}function f(t,n,o,e){null===o?t.style.removeProperty(n):t.style.setProperty(n,o,e?"important":"")}function b(t){const n={};for(const o of t)n[o.name]=o.value;return n}let y;function k(t){y=t}const w=[],$=[],v=[],x=[],_=Promise.resolve();let E=!1;function T(t){v.push(t)}const j=new Set;let L=0;function O(){const t=y;do{for(;L<w.length;){const t=w[L];L++,k(t),S(t.$$)}for(k(null),w.length=0,L=0;$.length;)$.pop()();for(let t=0;t<v.length;t+=1){const n=v[t];j.has(n)||(j.add(n),n())}v.length=0}while(w.length);for(;x.length;)x.pop()();E=!1,j.clear(),k(t)}function S(t){if(null!==t.fragment){t.update(),e(t.before_update);const n=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,n),t.after_update.forEach(T)}}const C=new Set;const M="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function H(t,n){-1===t.$$.dirty[0]&&(w.push(t),E||(E=!0,_.then(O)),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<<n%31}function B(c,s,l,a,d,p,u,g=[-1]){const h=y;k(c);const m=c.$$={fragment:null,ctx:null,props:p,update:t,not_equal:d,bound:o(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(s.context||(h?h.$$.context:[])),callbacks:o(),dirty:g,skip_bound:!1,root:s.target||h.$$.root};u&&u(m.root);let f=!1;if(m.ctx=l?l(c,s.props||{},(t,n,...o)=>{const e=o.length?o[0]:n;return m.ctx&&d(m.ctx[t],m.ctx[t]=e)&&(!m.skip_bound&&m.bound[t]&&m.bound[t](e),f&&H(c,t)),n}):[],m.update(),f=!0,e(m.before_update),m.fragment=!!a&&a(m.ctx),s.target){if(s.hydrate){const t=function(t){return Array.from(t.childNodes)}(s.target);m.fragment&&m.fragment.l(t),t.forEach(r)}else m.fragment&&m.fragment.c();s.intro&&((b=c.$$.fragment)&&b.i&&(C.delete(b),b.i(w))),function(t,o,c,s){const{fragment:l,on_mount:r,on_destroy:a,after_update:d}=t.$$;l&&l.m(o,c),s||T(()=>{const o=r.map(n).filter(i);a?a.push(...o):e(o),t.$$.on_mount=[]}),d.forEach(T)}(c,s.target,s.anchor,s.customElement),O()}var b,w;k(h)}let N;"function"==typeof HTMLElement&&(N=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(n).filter(i);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,n,o){this[t]=o}disconnectedCallback(){e(this.$$.on_disconnect)}$destroy(){!function(t,n){const o=t.$$;null!==o.fragment&&(e(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:P}=M;function A(t){let n,o;return{c(){n=a("div"),o=d(t[3]),g(n,"class","red")},m(t,e){l(t,n,e),s(n,o)},p(t,n){8&n&&function(t,n){n=""+n,t.wholeText!==n&&(t.data=n)}(o,t[3])},d(t){t&&r(n)}}}function F(t){let n,o,i,c,h,f,b;return{c(){n=a("input"),o=p(),i=a("button"),c=d("Sign In"),g(n,"type","email"),g(n,"placeholder","Enter Email"),g(n,"class","w-100 mb-4"),g(i,"class","btn btn-primary w-100"),i.disabled=h=!t[0]},m(e,r){l(e,n,r),m(n,t[0]),l(e,o,r),l(e,i,r),s(i,c),f||(b=[u(n,"input",t[9]),u(i,"click",t[6])],f=!0)},p(t,o){1&o&&n.value!==t[0]&&m(n,t[0]),1&o&&h!==(h=!t[0])&&(i.disabled=h)},d(t){t&&r(n),t&&r(o),t&&r(i),f=!1,e(b)}}}function z(t){let n,o,i,c,f,b,y;return{c(){n=a("input"),o=p(),i=a("button"),c=d("Verify OTP"),g(n,"type","number"),g(n,"placeholder","Enter OTP"),g(n,"class","w-100 mb-4"),g(i,"class","btn btn-primary w-100"),i.disabled=f=!t[1]},m(e,r){l(e,n,r),m(n,t[1]),l(e,o,r),l(e,i,r),s(i,c),b||(y=[u(n,"input",t[8]),u(i,"click",t[7])],b=!0)},p(t,o){2&o&&h(n.value)!==t[1]&&m(n,t[1]),2&o&&f!==(f=!t[1])&&(i.disabled=f)},d(t){t&&r(n),t&&r(o),t&&r(i),b=!1,e(y)}}}function I(n){let o,i,c,d,h,m,b,y,k,w,$,v,x,_,E,T,j,L,O,S,C,M,H,B,N,I,R,J,q,G,V,K=n[3]&&A(n);function Q(t,n){return t[2]?z:F}let U=Q(n),W=U(n);return{c(){o=a("link"),i=a("link"),c=a("link"),d=p(),h=a("div"),m=p(),b=a("div"),y=a("div"),k=a("h2"),k.textContent="Login / Signup",w=p(),$=a("button"),$.innerHTML='<img src="https://minio.codingblocks.com/public/cross-black.png" alt=""/>',v=p(),x=a("div"),x.textContent="Sign In with Email",_=p(),K&&K.c(),E=p(),W.c(),T=p(),j=a("div"),j.innerHTML='<span class="hr"></span> \n <span class="px-5">OR</span> \n <span class="hr"></span>',L=p(),O=a("a"),S=a("button"),S.innerHTML='<img class="logo" src="https://minio.codingblocks.com/public/google-logo.png" alt=""/> \n <span class="logo-text">Sign in with Google</span>',C=p(),M=a("a"),H=a("button"),H.innerHTML='<img class="logo" src="https://minio.codingblocks.com/public/facebook-logo.png" alt=""/> \n <span class="logo-text">Sign in with facebook</span>',B=p(),N=a("div"),N.innerHTML='<div class="header">Find your dream job</div> \n <div class="sub-header mb-4">Trsuted by 100k+ students</div> \n <img src="https://minio.codingblocks.com/public/company-logo-group.png" alt=""/>',I=p(),R=a("div"),R.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>',J=p(),q=a("link"),this.c=t,g(o,"rel","preconnect"),g(o,"href","https://fonts.googleapis.com"),g(i,"rel","preconnect"),g(i,"href","https://fonts.gstatic.com"),g(i,"crossorigin",""),g(c,"href","https://fonts.googleapis.com/css2?family=Mulish:wght@400;600&display=swap"),g(c,"rel","stylesheet"),g(h,"class","blurrer"),f($,"color","#3B4254"),g(y,"class","d-flex justify-content-between align-items-center mb-5"),g(x,"class","mb-4"),g(j,"class","d-flex justify-content-center align-items-center"),f(j,"margin","30px 0px"),g(S,"class","btn btn-secondary white w-100 mb-3"),g(O,"href",n[4]),g(H,"class","btn btn-secondary white w-100 mb-5"),g(M,"href",n[5]),g(N,"class","mb-5 pt-5"),g(R,"class","position-absolute"),g(b,"id","cb-login-signup"),g(b,"class","cb-login-signup-container"),g(q,"rel","stylesheet"),g(q,"href","https://unpkg.com/@coding-blocks/motley@2.8.6/dist/account/app.min.css")},m(t,n){s(P.head,o),s(P.head,i),s(P.head,c),l(t,d,n),l(t,h,n),l(t,m,n),l(t,b,n),s(b,y),s(y,k),s(y,w),s(y,$),s(b,v),s(b,x),s(b,_),K&&K.m(b,null),s(b,E),W.m(b,null),s(b,T),s(b,j),s(b,L),s(b,O),s(O,S),s(b,C),s(b,M),s(M,H),s(b,B),s(b,N),s(b,I),s(b,R),l(t,J,n),l(t,q,n),G||(V=[u(h,"click",D),u($,"click",D)],G=!0)},p(t,[n]){t[3]?K?K.p(t,n):(K=A(t),K.c(),K.m(b,E)):K&&(K.d(1),K=null),U===(U=Q(t))&&W?W.p(t,n):(W.d(1),W=U(t),W&&(W.c(),W.m(b,T)))},i:t,o:t,d(t){r(o),r(i),r(c),t&&r(d),t&&r(h),t&&r(m),t&&r(b),K&&K.d(),W.d(),t&&r(J),t&&r(q),G=!1,e(V)}}}function D(){document.getElementsByTagName("cb-login-signup")[0].classList.add("hide-cb-login-signup-prompt")}function R(t,n,o){const e=window.location.host.split(".")[0],i={hack:2146237097,online:5633768694,hire:4190457915,"code-gym":9706874989},c={sendOtp:{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","code-gym":"https://code-gym-api.codingblocks.com/api/jwt/otp"},verifyOtp:{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","code-gym":"https://code-gym-api.codingblocks.com/api/jwt/verify"}};let s=null,l=null,r=null,a=null;localStorage.getItem("cb_login_prompt");return[s,l,r,a,`https://account.codingblocks.com/login/google/v2?redirect_uri=https://${e}.codingblocks.com&client=${e}-codingblocks&client_id=${i[e]}`,`https://account.codingblocks.com/login/facebook/v2?redirect_uri=https://${e}.codingblocks.com&client=${e}-codingblocks&client_id=${i[e]}`,async function(){const t=await fetch(c.sendOtp[e]||"http://localhost:3000/api/v2/jwt/otp",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:s})});let{id:n}=await t.json();o(2,r=n)},async function(){o(3,a=null);const t=await fetch(c.verifyOtp[e]||"http://localhost:3000/api/v2/jwt/otp/verify",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({email:s,otp_id:r,otp:l})});if(t.ok)window.location.reload();else{const{message:n}=await t.json();n&&o(3,a=n)}},function(){l=h(this.value),o(1,l)},function(){s=this.value,o(0,s)}]}class J extends N{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>",B(this,{target:this.shadowRoot,props:b(this.attributes),customElement:!0},R,I,c,{},null),t&&t.target&&l(t.target,this,t.anchor)}}return customElements.define("cb-login-signup",J),J}));

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

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(((e=e||self).index=e.index||{},e.index.js={}))}(this,(function(e){"use strict";function t(){}function n(e){return e()}function s(){return Object.create(null)}function o(e){e.forEach(n)}function i(e){return"function"==typeof e}function l(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let c,r;function a(e,t){return c||(c=document.createElement("a")),c.href=t,e===c.href}function d(e,t){e.appendChild(t)}function u(e,t,n){e.insertBefore(t,n||null)}function m(e){e.parentNode.removeChild(e)}function h(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function p(e){return document.createElement(e)}function g(e){return document.createTextNode(e)}function b(){return g(" ")}function f(){return g("")}function v(e,t,n,s){return e.addEventListener(t,n,s),()=>e.removeEventListener(t,n,s)}function k(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function y(e){return""===e?null:+e}function $(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function w(e,t){e.value=null==t?"":t}function x(e,t,n,s){null===n?e.style.removeProperty(t):e.style.setProperty(t,n,s?"important":"")}function _(e,t){for(let n=0;n<e.options.length;n+=1){const s=e.options[n];if(s.__value===t)return void(s.selected=!0)}e.selectedIndex=-1}function C(e){const t=e.querySelector(":checked")||e.options[0];return t&&t.__value}function j(e){const t={};for(const n of e)t[n.name]=n.value;return t}function E(e){r=e}function T(){if(!r)throw new Error("Function called outside component initialization");return r}function M(e){T().$$.on_mount.push(e)}function L(){const e=T();return(t,n,{cancelable:s=!1}={})=>{const o=e.$$.callbacks[t];if(o){const i=function(e,t,{bubbles:n=!1,cancelable:s=!1}={}){const o=document.createEvent("CustomEvent");return o.initCustomEvent(e,n,s,t),o}(t,n,{cancelable:s});return o.slice().forEach(t=>{t.call(e,i)}),!i.defaultPrevented}return!0}}const A=[],P=[],H=[],B=[],O=Promise.resolve();let D=!1;function z(e){H.push(e)}const I=new Set;let U=0;function S(){const e=r;do{for(;U<A.length;){const e=A[U];U++,E(e),R(e.$$)}for(E(null),A.length=0,U=0;P.length;)P.pop()();for(let e=0;e<H.length;e+=1){const t=H[e];I.has(t)||(I.add(t),t())}H.length=0}while(A.length);for(;B.length;)B.pop()();D=!1,I.clear(),E(e)}function R(e){if(null!==e.fragment){e.update(),o(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(z)}}const N=new Set;let J;function F(){J={r:0,c:[],p:J}}function G(){J.r||o(J.c),J=J.p}function W(e,t){e&&e.i&&(N.delete(e),e.i(t))}function q(e,t,n,s){if(e&&e.o){if(N.has(e))return;N.add(e),J.c.push(()=>{N.delete(e),s&&(n&&e.d(1),s())}),e.o(t)}else s&&s()}const Y="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function Z(e){e&&e.c()}function K(e,t,s,l){const{fragment:c,on_mount:r,on_destroy:a,after_update:d}=e.$$;c&&c.m(t,s),l||z(()=>{const t=r.map(n).filter(i);a?a.push(...t):o(t),e.$$.on_mount=[]}),d.forEach(z)}function V(e,t){const n=e.$$;null!==n.fragment&&(o(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function X(e,t){-1===e.$$.dirty[0]&&(A.push(e),D||(D=!0,O.then(S)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Q(e,n,i,l,c,a,d,u=[-1]){const h=r;E(e);const p=e.$$={fragment:null,ctx:null,props:a,update:t,not_equal:c,bound:s(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(h?h.$$.context:[])),callbacks:s(),dirty:u,skip_bound:!1,root:n.target||h.$$.root};d&&d(p.root);let g=!1;if(p.ctx=i?i(e,n.props||{},(t,n,...s)=>{const o=s.length?s[0]:n;return p.ctx&&c(p.ctx[t],p.ctx[t]=o)&&(!p.skip_bound&&p.bound[t]&&p.bound[t](o),g&&X(e,t)),n}):[],p.update(),g=!0,o(p.before_update),p.fragment=!!l&&l(p.ctx),n.target){if(n.hydrate){const e=function(e){return Array.from(e.childNodes)}(n.target);p.fragment&&p.fragment.l(e),e.forEach(m)}else p.fragment&&p.fragment.c();n.intro&&W(e.$$.fragment),K(e,n.target,n.anchor,n.customElement),S()}E(h)}let ee;function te(e,t,n){const s=e.slice();return s[9]=t[n].img_url,s[10]=t[n].img_url_mobile,s[11]=t[n].link,s[13]=n,s}function ne(e){let t,n=e[3],s=[];for(let t=0;t<n.length;t+=1)s[t]=ie(te(e,n,t));return{c(){t=p("div");for(let e=0;e<s.length;e+=1)s[e].c();k(t,"class","carousel")},m(e,n){u(e,t,n);for(let e=0;e<s.length;e+=1)s[e].m(t,null)},p(e,o){if(61&o){let i;for(n=e[3],i=0;i<n.length;i+=1){const l=te(e,n,i);s[i]?s[i].p(l,o):(s[i]=ie(l),s[i].c(),s[i].m(t,null))}for(;i<s.length;i+=1)s[i].d(1);s.length=n.length}},d(e){e&&m(t),h(s,e)}}}function se(e){let t,n,s,o,i,l,c,r,h,g=e[0]&&oe(e);return{c(){t=p("a"),g&&g.c(),n=b(),s=p("img"),i=b(),l=p("img"),r=b(),k(s,"class","d-md-block"),a(s.src,o=e[9])||k(s,"src",o),k(s,"alt",""),k(s,"width","100%"),k(l,"class","d-md-none"),a(l.src,c=e[10])||k(l,"src",c),k(l,"alt",""),k(l,"width","100%"),k(t,"class","d-block"),k(t,"target","_blank"),k(t,"href",h=e[11])},m(e,o){u(e,t,o),g&&g.m(t,null),d(t,n),d(t,s),d(t,i),d(t,l),d(t,r)},p(e,i){e[0]?g?g.p(e,i):(g=oe(e),g.c(),g.m(t,n)):g&&(g.d(1),g=null),8&i&&!a(s.src,o=e[9])&&k(s,"src",o),8&i&&!a(l.src,c=e[10])&&k(l,"src",c),8&i&&h!==(h=e[11])&&k(t,"href",h)},d(e){e&&m(t),g&&g.d()}}}function oe(e){let t,n,s,o;return{c(){t=p("img"),k(t,"class","close-icon"),a(t.src,n=e[2])||k(t,"src",n),k(t,"alt","close")},m(n,i){var l;u(n,t,i),s||(o=v(t,"click",function(e){return function(t){return t.stopPropagation(),e.call(this,t)}}((l=e[5],function(e){return e.preventDefault(),l.call(this,e)})),!0),s=!0)},p(e,s){4&s&&!a(t.src,n=e[2])&&k(t,"src",n)},d(e){e&&m(t),s=!1,o()}}}function ie(e){let t,n=e[4]==e[13]&&se(e);return{c(){n&&n.c(),t=f()},m(e,s){n&&n.m(e,s),u(e,t,s)},p(e,s){e[4]==e[13]?n?n.p(e,s):(n=se(e),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&m(t)}}}function le(e){let n,s=e[1]&&ne(e);return{c(){s&&s.c(),n=f(),this.c=t},m(e,t){s&&s.m(e,t),u(e,n,t)},p(e,[t]){e[1]?s?s.p(e,t):(s=ne(e),s.c(),s.m(n.parentNode,n)):s&&(s.d(1),s=null)},i:t,o:t,d(e){s&&s.d(e),e&&m(n)}}}function ce(e,t,n){let s=!1,o="",i=[],l=0,c=!1,{showToggle:r=!0}=t,{theme:a="light"}=t;M(async()=>{const e=await fetch("https://hack-api.codingblocks.com/api/v2/dashboard-banners",{headers:{client:"hack-admin"}}),{data:t}=await e.json();n(3,i=t.map(e=>({img_url:e.attributes["image-url"],img_url_mobile:e.attributes["mobile-image-url"],link:e.attributes.link}))),n(2,o="light"===a?"https://minio.codingblocks.com/motley/wrong_g_white.min.png":"https://minio.codingblocks.com/motley/wrong_g.png"),n(1,s=!!i.length),c||d()});const d=e=>{c&&clearInterval(c),c=setInterval(()=>{l==i.length-1?n(4,l=0):n(4,l+=1)},7e3)};return e.$$set=e=>{"showToggle"in e&&n(0,r=e.showToggle),"theme"in e&&n(6,a=e.theme)},[r,s,o,i,l,()=>{n(1,s=!s)},a]}"function"==typeof HTMLElement&&(ee=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(n).filter(i);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){o(this.$$.on_disconnect)}$destroy(){V(this,1),this.$destroy=t}$on(e,t){const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});class re extends ee{constructor(e){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{height:116px;overflow:hidden}@media(min-width:768px){.d-md-none{display:none}.d-md-block{display:block}}</style>",Q(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},ce,le,l,{showToggle:0,theme:6},null),e&&(e.target&&u(e.target,this,e.anchor),e.props&&(this.$set(e.props),S()))}static get observedAttributes(){return["showToggle","theme"]}get showToggle(){return this.$$.ctx[0]}set showToggle(e){this.$$set({showToggle:e}),S()}get theme(){return this.$$.ctx[6]}set theme(e){this.$$set({theme:e}),S()}}customElements.define("promotion-banner",re);var ae=new class{constructor(e){this.url=e}fetchUser(){return fetch(this.url+"/users/me?include=demographic",{credentials:"include"}).then(e=>e.json())}fetchColleges(){return fetch(this.url+"/colleges").then(e=>e.json())}fetchBranches(){return fetch(this.url+"/branches").then(e=>e.json())}updateUser(e){return fetch(this.url+"/users/me/edit",{method:"PATCH",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then(e=>e.json())}}("https://account.codingblocks.com/api");function de(e,t,n){const s=e.slice();return s[15]=t[n],s}function ue(e,t,n){const s=e.slice();return s[18]=t[n],s}function me(e,t,n){const s=e.slice();return s[21]=t[n],s}function he(e){let t,n,s;function o(e,t){return e[7].success?ge:pe}let i=o(e),l=i(e);return{c(){t=p("div"),n=p("div"),n.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>',s=b(),l.c(),k(n,"class","bg-gradient-pink white p-4"),k(t,"class","border-card b-red p-0")},m(e,o){u(e,t,o),d(t,n),d(t,s),l.m(t,null)},p(e,n){i===(i=o(e))&&l?l.p(e,n):(l.d(1),l=i(e),l&&(l.c(),l.m(t,null)))},d(e){e&&m(t),l.d()}}}function pe(e){let t,n,s,i,l,c,r,a,g,f,y,$,w,x,C,j,E=e[4],T=[];for(let t=0;t<E.length;t+=1)T[t]=be(me(e,E,t));let M=1===e[0]&&fe(e),L=e[8],A=[];for(let t=0;t<L.length;t+=1)A[t]=ve(ue(e,L,t));let P=e[5],H=[];for(let t=0;t<P.length;t+=1)H[t]=ke(de(e,P,t));let B=e[7].error&&ye(e);return{c(){t=p("div"),n=p("select"),s=p("option"),s.textContent="-- College --";for(let e=0;e<T.length;e+=1)T[e].c();i=b(),M&&M.c(),l=b(),c=p("select"),r=p("option"),r.textContent="-- Graduation Year --";for(let e=0;e<A.length;e+=1)A[e].c();a=b(),g=p("select"),f=p("option"),f.textContent="-- Branch --";for(let e=0;e<H.length;e+=1)H[e].c();y=b(),$=p("div"),w=p("button"),w.textContent="Update Profile",x=b(),B&&B.c(),s.disabled=!0,s.selected=!0,s.__value="",s.value=s.__value,k(n,"class","input-text br-50 my-2"),void 0===e[0]&&z(()=>e[10].call(n)),r.disabled=!0,r.selected=!0,r.__value="",r.value=r.__value,k(c,"class","input-text br-50 my-2"),void 0===e[2]&&z(()=>e[12].call(c)),f.disabled=!0,f.selected=!0,f.__value="",f.value=f.__value,k(g,"class","input-text br-50 my-2"),void 0===e[1]&&z(()=>e[13].call(g)),k(w,"id","updatedButton"),k(w,"class","button-solid button-orange"),k($,"class","d-flex justify-content-center mt-5"),k(t,"class","py-4 px-5 t-align-center")},m(o,m){u(o,t,m),d(t,n),d(n,s);for(let e=0;e<T.length;e+=1)T[e].m(n,null);_(n,e[0]),d(t,i),M&&M.m(t,null),d(t,l),d(t,c),d(c,r);for(let e=0;e<A.length;e+=1)A[e].m(c,null);_(c,e[2]),d(t,a),d(t,g),d(g,f);for(let e=0;e<H.length;e+=1)H[e].m(g,null);_(g,e[1]),d(t,y),d(t,$),d($,w),d(t,x),B&&B.m(t,null),C||(j=[v(n,"change",e[10]),v(c,"change",e[12]),v(g,"change",e[13]),v(w,"click",e[9])],C=!0)},p(e,s){if(17&s){let t;for(E=e[4],t=0;t<E.length;t+=1){const o=me(e,E,t);T[t]?T[t].p(o,s):(T[t]=be(o),T[t].c(),T[t].m(n,null))}for(;t<T.length;t+=1)T[t].d(1);T.length=E.length}if(17&s&&_(n,e[0]),1===e[0]?M?M.p(e,s):(M=fe(e),M.c(),M.m(t,l)):M&&(M.d(1),M=null),260&s){let t;for(L=e[8],t=0;t<L.length;t+=1){const n=ue(e,L,t);A[t]?A[t].p(n,s):(A[t]=ve(n),A[t].c(),A[t].m(c,null))}for(;t<A.length;t+=1)A[t].d(1);A.length=L.length}if(260&s&&_(c,e[2]),34&s){let t;for(P=e[5],t=0;t<P.length;t+=1){const n=de(e,P,t);H[t]?H[t].p(n,s):(H[t]=ke(n),H[t].c(),H[t].m(g,null))}for(;t<H.length;t+=1)H[t].d(1);H.length=P.length}34&s&&_(g,e[1]),e[7].error?B?B.p(e,s):(B=ye(e),B.c(),B.m(t,null)):B&&(B.d(1),B=null)},d(e){e&&m(t),h(T,e),M&&M.d(),h(A,e),h(H,e),B&&B.d(),C=!1,o(j)}}}function ge(e){let n;return{c(){n=p("div"),n.innerHTML='<div class="font-md gradient-text extra-bold mt-4">Your profile has been updated !</div>',k(n,"class","my-5 t-align-c")},m(e,t){u(e,n,t)},p:t,d(e){e&&m(n)}}}function be(e){let t,n,s,o,i,l=e[21].name+"";return{c(){t=p("option"),n=g(l),s=b(),t.__value=o=e[21].id,t.value=t.__value,t.selected=i=e[21].id===e[0]},m(e,o){u(e,t,o),d(t,n),d(t,s)},p(e,s){16&s&&l!==(l=e[21].name+"")&&$(n,l),16&s&&o!==(o=e[21].id)&&(t.__value=o,t.value=t.__value),17&s&&i!==(i=e[21].id===e[0])&&(t.selected=i)},d(e){e&&m(t)}}}function fe(e){let t,n,s;return{c(){t=p("input"),k(t,"type","text"),k(t,"placeholder","Other College Name"),k(t,"class","input-text br-50 my-2")},m(o,i){u(o,t,i),w(t,e[3]),n||(s=v(t,"input",e[11]),n=!0)},p(e,n){8&n&&t.value!==e[3]&&w(t,e[3])},d(e){e&&m(t),n=!1,s()}}}function ve(e){let t,n,s,o,i,l=e[18]+"";return{c(){t=p("option"),n=g(l),s=b(),t.__value=o=e[18],t.value=t.__value,t.selected=i=e[18]===e[2]},m(e,o){u(e,t,o),d(t,n),d(t,s)},p(e,n){260&n&&i!==(i=e[18]===e[2])&&(t.selected=i)},d(e){e&&m(t)}}}function ke(e){let t,n,s,o,i,l=e[15].name+"";return{c(){t=p("option"),n=g(l),s=b(),t.__value=o=e[15].id,t.value=t.__value,t.selected=i=e[15].id===e[1]},m(e,o){u(e,t,o),d(t,n),d(t,s)},p(e,s){32&s&&l!==(l=e[15].name+"")&&$(n,l),32&s&&o!==(o=e[15].id)&&(t.__value=o,t.value=t.__value),34&s&&i!==(i=e[15].id===e[1])&&(t.selected=i)},d(e){e&&m(t)}}}function ye(e){let t,n,s,o=e[7].error+"";return{c(){t=p("div"),n=p("p"),s=g(o),k(n,"class","red"),k(t,"class","row justify-content-center")},m(e,o){u(e,t,o),d(t,n),d(n,s)},p(e,t){128&t&&o!==(o=e[7].error+"")&&$(s,o)},d(e){e&&m(t)}}}function $e(e){let n,s,o=e[6].id&&1===e[6].demographic.collegeId&&!e[6].demographic.otherCollege&&he(e);return{c(){o&&o.c(),n=b(),s=p("link"),this.c=t,k(s,"rel","stylesheet"),k(s,"href","https://unpkg.com/@coding-blocks/motley@0.7.4/dist/online-cb/app.min.css")},m(e,t){o&&o.m(e,t),u(e,n,t),u(e,s,t)},p(e,[t]){e[6].id&&1===e[6].demographic.collegeId&&!e[6].demographic.otherCollege?o?o.p(e,t):(o=he(e),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},i:t,o:t,d(e){o&&o.d(e),e&&m(n),e&&m(s)}}}function we(e,t,n){let s=null,o=null,i=null,l="",c=[],r=[],a=[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 m=L();M(async()=>{n(6,d=await ae.fetchUser()),d.id&&(n(4,c=await ae.fetchColleges()),n(5,r=await ae.fetchBranches()),n(2,i=d.graduationYear),n(0,s=d.demographic.collegeId),n(1,o=d.demographic.branchId),n(3,l=d.demographic.otherCollege))});return[s,o,i,l,c,r,d,u,a,async()=>{try{const e=await ae.updateUser({gradYear:i,collegeId:s,branchId:o,otherCollege:l});m("updated",e),n(7,u={success:e.success}),setTimeout(async()=>{n(6,d=await ae.fetchUser())},2e3)}catch(e){n(7,u={error:e})}},function(){s=C(this),n(0,s),n(4,c)},function(){l=this.value,n(3,l)},function(){i=C(this),n(2,i),n(8,a)},function(){o=C(this),n(1,o),n(5,r)}]}class xe extends ee{constructor(e){super(),Q(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},we,$e,l,{},null),e&&e.target&&u(e.target,this,e.anchor)}}function _e(e){let n;return{c(){n=p("div"),n.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=t,k(n,"class","pl-4")},m(e,t){u(e,n,t)},p:t,i:t,o:t,d(e){e&&m(n)}}}customElements.define("demographic-form",xe);class Ce extends ee{constructor(e){super(),Q(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},null,_e,l,{},null),e&&e.target&&u(e.target,this,e.anchor)}}function je(e){let n;return{c(){n=p("div"),n.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=t,k(n,"class","pl-4")},m(e,t){u(e,n,t)},p:t,i:t,o:t,d(e){e&&m(n)}}}customElements.define("mobile-classroom-courses",Ce);class Ee extends ee{constructor(e){super(),Q(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},null,je,l,{},null),e&&e.target&&u(e.target,this,e.anchor)}}function Te(e){let t,n;return t=new Ce({}),{c(){Z(t.$$.fragment)},m(e,s){K(t,e,s),n=!0},i(e){n||(W(t.$$.fragment,e),n=!0)},o(e){q(t.$$.fragment,e),n=!1},d(e){V(t,e)}}}function Me(e){let t,n;return t=new Ee({}),{c(){Z(t.$$.fragment)},m(e,s){K(t,e,s),n=!0},i(e){n||(W(t.$$.fragment,e),n=!0)},o(e){q(t.$$.fragment,e),n=!1},d(e){V(t,e)}}}function Le(e){let n,s,i,l,c,r,h,g,f,y,$,w,x,_,C,j,E,T,M,L,A,P,H,B,O,D,z,I,U,S,R,N,J,Y,Z,K,V,X,Q,ee,te,ne,se,oe,ie="classroom"==e[0]&&Te(),le="online"==e[0]&&Me();return{c(){n=p("link"),s=b(),i=p("link"),l=b(),c=p("div"),r=p("div"),h=p("img"),f=b(),y=p("img"),w=b(),x=p("div"),_=b(),C=p("slot"),j=b(),E=p("div"),T=p("div"),T.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(),L=p("div"),A=p("div"),P=p("div"),P.textContent="Classroom Courses",H=b(),B=p("div"),B.innerHTML='<a href="#" class="orange">Explore All</a>',D=b(),ie&&ie.c(),z=b(),I=p("div"),U=p("div"),S=p("div"),S.textContent="Online Courses",R=b(),N=p("div"),N.innerHTML='<a href="#" class="orange">Explore All</a>',Y=b(),le&&le.c(),Z=b(),K=p("div"),K.innerHTML='<a href="https://codingblocks.com/campus-ambassador-program.html" target="blank">Campus Ambassadors</a>',V=b(),X=p("div"),X.innerHTML='<a href="https://codingblocks.com/about" target="blank">About Us</a>',Q=b(),ee=p("div"),ee.innerHTML='<a href="https://codingblocks.com/centres" target="blank">Contact Us</a>',this.c=t,k(n,"rel","stylesheet"),k(n,"href",e[2]),k(i,"href","https://minio.codingblocks.com/hackerblocks-images/Gilroy.ttf"),k(i,"rel","stylesheet"),a(h.src,g=e[3])||k(h,"src",g),k(h,"alt","HB"),k(h,"class","hamburger-nav__ham-logo ml-4"),a(y.src,$="https://minio.codingblocks.com/amoeba/wrong-close.png")||k(y,"src","https://minio.codingblocks.com/amoeba/wrong-close.png"),k(y,"alt","#"),k(y,"class","mr-4 hamburger-nav__cross pointer"),k(r,"class","d-flex py-3 justify-content-between align-items-center hamburger-nav__top-bar"),k(x,"class","divider-h"),k(T,"class","d-flex justify-content-between"),k(P,"class","card-md extra-bold"),k(B,"class","card-sm light"),k(A,"class",O="hamburger-nav__menu-element "+("classroom"==e[0]&&"active")),k(L,"class","my-4 pl-4"),k(S,"class","card-md extra-bold"),k(N,"class","card-sm light"),k(U,"class",J="hamburger-nav__menu-element "+("online"==e[0]&&"active")),k(I,"class","my-4 pl-4"),k(K,"class","card-md light my-4"),k(X,"class","card-md light my-4"),k(ee,"class","card-md light my-4"),k(E,"class","mt-4 px-4 overflow-y-auto no-scrollbar"),k(c,"class",te="hamburger-nav b-right overflow-y-auto no-scrollbar "+(!e[1]&&"hamburger-nav--hidden"))},m(t,o){u(t,n,o),u(t,s,o),u(t,i,o),u(t,l,o),u(t,c,o),d(c,r),d(r,h),d(r,f),d(r,y),d(c,w),d(c,x),d(c,_),d(c,C),d(c,j),d(c,E),d(E,T),d(E,M),d(E,L),d(L,A),d(A,P),d(A,H),d(A,B),d(L,D),ie&&ie.m(L,null),d(E,z),d(E,I),d(I,U),d(U,S),d(U,R),d(U,N),d(I,Y),le&&le.m(I,null),d(E,Z),d(E,K),d(E,V),d(E,X),d(E,Q),d(E,ee),ne=!0,se||(oe=[v(y,"click",e[4]),v(P,"click",e[5]),v(S,"click",e[6])],se=!0)},p(e,[t]){(!ne||4&t)&&k(n,"href",e[2]),(!ne||8&t&&!a(h.src,g=e[3]))&&k(h,"src",g),(!ne||1&t&&O!==(O="hamburger-nav__menu-element "+("classroom"==e[0]&&"active")))&&k(A,"class",O),"classroom"==e[0]?ie?1&t&&W(ie,1):(ie=Te(),ie.c(),W(ie,1),ie.m(L,null)):ie&&(F(),q(ie,1,1,()=>{ie=null}),G()),(!ne||1&t&&J!==(J="hamburger-nav__menu-element "+("online"==e[0]&&"active")))&&k(U,"class",J),"online"==e[0]?le?1&t&&W(le,1):(le=Me(),le.c(),W(le,1),le.m(I,null)):le&&(F(),q(le,1,1,()=>{le=null}),G()),(!ne||2&t&&te!==(te="hamburger-nav b-right overflow-y-auto no-scrollbar "+(!e[1]&&"hamburger-nav--hidden")))&&k(c,"class",te)},i(e){ne||(W(ie),W(le),ne=!0)},o(e){q(ie),q(le),ne=!1},d(e){e&&m(n),e&&m(s),e&&m(i),e&&m(l),e&&m(c),ie&&ie.d(),le&&le.d(),se=!1,o(oe)}}}function Ae(e,t,n){let{css:s="https://unpkg.com/@coding-blocks/motley/dist/app.min.css"}=t,{tab:o="classroom"}=t,{showhamburger:i=!1}=t,{logo:l="https://codingblocks.com/assets/images/cb/cblogo.png"}=t;return e.$$set=e=>{"css"in e&&n(2,s=e.css),"tab"in e&&n(0,o=e.tab),"showhamburger"in e&&n(1,i=e.showhamburger),"logo"in e&&n(3,l=e.logo)},[o,i,s,l,()=>n(1,i=!i),()=>n(0,o="classroom"),()=>n(0,o="online")]}customElements.define("mobile-online-courses",Ee);class Pe extends ee{constructor(e){super(),Q(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},Ae,Le,l,{css:2,tab:0,showhamburger:1,logo:3},null),e&&(e.target&&u(e.target,this,e.anchor),e.props&&(this.$set(e.props),S()))}static get observedAttributes(){return["css","tab","showhamburger","logo"]}get css(){return this.$$.ctx[2]}set css(e){this.$$set({css:e}),S()}get tab(){return this.$$.ctx[0]}set tab(e){this.$$set({tab:e}),S()}get showhamburger(){return this.$$.ctx[1]}set showhamburger(e){this.$$set({showhamburger:e}),S()}get logo(){return this.$$.ctx[3]}set logo(e){this.$$set({logo:e}),S()}}function He(e){let n;return{c(){n=p("div"),n.innerHTML='<ul class="col-4"><li class="bold">Beginner Courses</li> \n <li><a href="https://codingblocks.com/classroom-courses/c-plus-plus-for-beginners.html" target="_blank">C++ For Beginners</a></li> \n <li><a href="https://codingblocks.com/classroom-courses/java-for-beginners.html" target="_blank">Java For Beginners</a></li> \n <li><a 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">Development Courses</li> \n <li><a href="https://codingblocks.com/classroom-courses/android-app-development-using-kotlin-and-java.html" target="_blank">Android App Dev</a></li> \n <li><a href="https://codingblocks.com/classroom-courses/web-development-nodejs.html" target="_blank">Full Stack Web Dev</a></li> \n <li><a href="https://codingblocks.com/classroom-courses/web-development-django.html" target="_blank">Python Django</a></li> \n <li><a 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">Advanced Courses</li> \n <li><a href="https://codingblocks.com/classroom-courses/advanced-data-structures-and-algorithms-for-interviews.html" target="_blank">Algo++</a></li> \n <li><a href="https://codingblocks.com/classroom-courses/advanced-data-structures-and-algorithms-using-java.html" target="_blank">Algo.Java</a></li> \n <li><a href="https://codingblocks.com/classroom-courses/competitive-programming.html" target="_blank">Competitive Programming</a></li> \n <li><a 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">Junior Courses</li> \n <li><a href="https://codingblocks.com/classroom-courses/code4kids.html" target="_blank">Code 4 Kids</a></li> \n <li><a href="https://codingblocks.com/classroom-courses/mathsgeeks.html" target="_blank">Maths Geek</a></li></ul> \n <ul class="col-4"><li class="bold">Bootcamps</li> \n <li><a href="https://codingblocks.com/bootcamps/react.html" target="_blank">React JS</a></li> \n <li><a href="https://codingblocks.com/bootcamps/blockchain.html" target="_blank">Blockchain</a></li> \n <li><a href="https://codingblocks.com/bootcamps/coding-interview-preparation.html" target="_blank">Interview Preparation</a></li> \n <li><a href="https://codingblocks.com/bootcamps/gamedev.html" target="_blank">Game Dev</a></li> \n <li><a href="https://codingblocks.com/bootcamps/chatbots.html" target="_blank">Chatbot</a></li></ul> \n <ul class="col-4"><li class="bold">Professional</li> \n <li><a href="https://codingblocks.com/classroom-courses/six_months_ind_training.html" target="_blank">Industrial Training</a></li></ul>',this.c=t,k(n,"class","row justify-content-around m-5")},m(e,t){u(e,n,t)},p:t,i:t,o:t,d(e){e&&m(n)}}}customElements.define("cb-mobile-navbar",Pe);class Be extends ee{constructor(e){super(),Q(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},null,He,l,{},null),e&&e.target&&u(e.target,this,e.anchor)}}function Oe(e){let n;return{c(){n=p("div"),n.innerHTML='<ul class="col-4"><li class="bold mb-3">Beginner Courses</li> \n <li><a href="https://online.codingblocks.com/courses/c-plus-plus-online-course-for-beginners">C++ Master Course | Launchpad</a></li> \n <li><a href="https://online.codingblocks.com/courses/complete-java-course-online">Java Master Course | Crux</a></li> \n <li><a 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">Advanced Courses</li> \n <li><a href="https://online.codingblocks.com/courses/python-django">Web Dev with Python-Django</a></li> \n <li><a href="https://online.codingblocks.com/courses/coding-interview-preparation-online">Interview Prep Bootcamp</a></li> \n <li><a href="https://online.codingblocks.com/courses/data-structures-and-algorithms-online-course-java-algo">Algo.Java Online</a></li> \n <li><a href="https://online.codingblocks.com/courses/android-app-training-online">Android App Development Online</a></li> \n <li><a 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">Expert Courses</li> \n <li><a href="https://online.codingblocks.com/courses/competitive-programming-course-online">Competitive Programming Online</a></li> \n <li><a href="https://online.codingblocks.com/courses/coding-interview-preparation-course-online-c-plus-plus">Interview Preparation - C++</a></li> \n <li><a href="https://online.codingblocks.com/courses/machine-learning-course-online">Machine Learning Master Course</a></li> \n <li><a href="https://online.codingblocks.com/courses/coding-interview-preparation-course-online-java">Interview Preparation - Java</a></li></ul>',this.c=t,k(n,"class","row justify-content-around m-5")},m(e,t){u(e,n,t)},p:t,i:t,o:t,d(e){e&&m(n)}}}customElements.define("classroom-courses",Be);class De extends ee{constructor(e){super(),Q(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},null,Oe,l,{},null),e&&e.target&&u(e.target,this,e.anchor)}}function ze(e){let t,n,s,i,l,c,r,a,h,g,f,y,$,w,_,C,j,E;const T=[Ue,Ie],M=[];function L(e,t){return"classroom"==e[1]?0:1}return w=L(e),_=M[w]=T[w](e),{c(){t=p("div"),n=p("div"),s=p("div"),s.innerHTML='<div class="font-lg my-4 offset-3">Our Courses</div>',i=b(),l=p("div"),c=p("div"),c.innerHTML='<div>Online Courses</div> \n <a href="https://online.codingblocks.com/courses" target="_blank" class="font-mds orange">Explore all</a>',a=b(),h=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>',y=b(),$=p("div"),_.c(),k(s,"class","py-5 font-md bold hover-grey"),k(c,"class","offset-3"),k(l,"class",r="py-4 font-md bold hover-grey "+("online"==e[1]&&"selected")),k(g,"class","offset-3"),k(h,"class",f="py-4 font-md bold hover-grey "+("classroom"==e[1]&&"selected")),k(n,"class","cb-navbar-side col-3"),k($,"class","col-9 font-mds"),k(t,"class","row no-gutters cb-navbar-expanded"),x(t,"overflow","hidden")},m(o,r){u(o,t,r),d(t,n),d(n,s),d(n,i),d(n,l),d(l,c),d(n,a),d(n,h),d(h,g),d(t,y),d(t,$),M[w].m($,null),C=!0,j||(E=[v(l,"click",e[6]),v(h,"click",e[7])],j=!0)},p(e,t){(!C||2&t&&r!==(r="py-4 font-md bold hover-grey "+("online"==e[1]&&"selected")))&&k(l,"class",r),(!C||2&t&&f!==(f="py-4 font-md bold hover-grey "+("classroom"==e[1]&&"selected")))&&k(h,"class",f);let n=w;w=L(e),w!==n&&(F(),q(M[n],1,1,()=>{M[n]=null}),G(),_=M[w],_||(_=M[w]=T[w](e),_.c()),W(_,1),_.m($,null))},i(e){C||(W(_),C=!0)},o(e){q(_),C=!1},d(e){e&&m(t),M[w].d(),j=!1,o(E)}}}function Ie(e){let t,n;return t=new De({}),{c(){Z(t.$$.fragment)},m(e,s){K(t,e,s),n=!0},i(e){n||(W(t.$$.fragment,e),n=!0)},o(e){q(t.$$.fragment,e),n=!1},d(e){V(t,e)}}}function Ue(e){let t,n;return t=new Be({}),{c(){Z(t.$$.fragment)},m(e,s){K(t,e,s),n=!0},i(e){n||(W(t.$$.fragment,e),n=!0)},o(e){q(t.$$.fragment,e),n=!1},d(e){V(t,e)}}}function Se(e){let n,s,o,i,l,c,r,h,f,y,$,w,x,_,C,j,E,T,M,L,A,P,H,B,O,D,z,I,U=e[0]&&ze(e);return{c(){n=p("div"),s=p("div"),o=p("div"),i=p("span"),l=g("Courses\n "),c=p("img"),h=b(),f=p("div"),f.innerHTML='<a href="https://codingblocks.com/about.html" target="_blank">About Us</a>',y=b(),$=p("div"),$.innerHTML='<a href="https://codingblocks.com/resources" target="_blank">Resources</a>',w=b(),x=p("div"),x.innerHTML='<a href="https://codingblocks.com/campus-ambassador-program.html" target="_blank">Campus Ambassadors</a>',_=b(),C=p("div"),C.innerHTML='<a href="https://codingblocks.com/centres/" target="_blank">Contact Us</a>',j=b(),E=p("slot"),M=b(),U&&U.c(),L=b(),A=p("link"),P=b(),H=p("link"),B=b(),O=p("link"),this.c=t,a(c.src,r="https://minio.cb.lk/public/fa-5.13/svgs/solid/chevron-"+(e[0]?"up":"down")+".svg")||k(c,"src",r),k(c,"alt","chevron"),k(c,"class","d-inline s-10x10"),k(i,"class","px-3 pointer"),k(f,"class","px-3"),k($,"class","px-3"),k(x,"class","px-3"),k(C,"class","px-3"),k(E,"name","header"),k(o,"class",T="d-flex "+e[3]+" py-3 pr-5"),k(s,"class","border"),k(n,"class","a-hb d-md-block d-none"),k(A,"rel","stylesheet"),k(A,"href",e[2]),k(H,"href","https://fonts.googleapis.com/css?family=Nunito+Sans:400,600,700,800"),k(H,"rel","stylesheet"),k(O,"href","https://minio.codingblocks.com/hackerblocks-images/Gilroy.ttf"),k(O,"rel","stylesheet")},m(t,r){u(t,n,r),d(n,s),d(s,o),d(o,i),d(i,l),d(i,c),d(o,h),d(o,f),d(o,y),d(o,$),d(o,w),d(o,x),d(o,_),d(o,C),d(o,j),d(o,E),d(n,M),U&&U.m(n,null),u(t,L,r),u(t,A,r),u(t,P,r),u(t,H,r),u(t,B,r),u(t,O,r),D=!0,z||(I=v(i,"click",e[4]),z=!0)},p(e,[t]){(!D||1&t&&!a(c.src,r="https://minio.cb.lk/public/fa-5.13/svgs/solid/chevron-"+(e[0]?"up":"down")+".svg"))&&k(c,"src",r),(!D||8&t&&T!==(T="d-flex "+e[3]+" py-3 pr-5"))&&k(o,"class",T),e[0]?U?(U.p(e,t),1&t&&W(U,1)):(U=ze(e),U.c(),W(U,1),U.m(n,null)):U&&(F(),q(U,1,1,()=>{U=null}),G()),(!D||4&t)&&k(A,"href",e[2])},i(e){D||(W(U),D=!0)},o(e){q(U),D=!1},d(e){e&&m(n),U&&U.d(),e&&m(L),e&&m(A),e&&m(P),e&&m(H),e&&m(B),e&&m(O),z=!1,I()}}}function Re(e,t,n){let{topalign:s="center"}=t,{expanded:o=!1}=t,{tab:i="online"}=t,{css:l="https://unpkg.com/@coding-blocks/motley/dist/app.min.css"}=t,c="justify-content-center";return e.$$set=e=>{"topalign"in e&&n(5,s=e.topalign),"expanded"in e&&n(0,o=e.expanded),"tab"in e&&n(1,i=e.tab),"css"in e&&n(2,l=e.css)},e.$$.update=()=>{if(32&e.$$.dirty)switch(s){case"left":n(3,c="justify-content-start");break;case"right":n(3,c="justify-content-end");break;default:n(3,c="justify-content-center")}},[o,i,l,c,()=>n(0,o=!o),s,()=>n(1,i="online"),()=>n(1,i="classroom")]}customElements.define("online-courses",De);class Ne extends ee{constructor(e){super(),this.shadowRoot.innerHTML="<style>a:hover{text-decoration:underline}.hover-grey.selected:hover{background:unset}.a-hb{display:none}</style>",Q(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},Re,Se,l,{topalign:5,expanded:0,tab:1,css:2},null),e&&(e.target&&u(e.target,this,e.anchor),e.props&&(this.$set(e.props),S()))}static get observedAttributes(){return["topalign","expanded","tab","css"]}get topalign(){return this.$$.ctx[5]}set topalign(e){this.$$set({topalign:e}),S()}get expanded(){return this.$$.ctx[0]}set expanded(e){this.$$set({expanded:e}),S()}get tab(){return this.$$.ctx[1]}set tab(e){this.$$set({tab:e}),S()}get css(){return this.$$.ctx[2]}set css(e){this.$$set({css:e}),S()}}function Je(e){let n,s,o,i,l,c,r,u,h,g,b,f,v,y;return{c(){n=p("script"),o=p("script"),l=p("script"),r=p("script"),h=p("script"),b=p("script"),v=p("script"),this.c=t,a(n.src,s="https://source.zoom.us/1.8.5/lib/vendor/react.min.js")||k(n,"src","https://source.zoom.us/1.8.5/lib/vendor/react.min.js"),a(o.src,i="https://source.zoom.us/1.8.5/lib/vendor/react-dom.min.js")||k(o,"src","https://source.zoom.us/1.8.5/lib/vendor/react-dom.min.js"),a(l.src,c="https://source.zoom.us/1.8.5/lib/vendor/redux.min.js")||k(l,"src","https://source.zoom.us/1.8.5/lib/vendor/redux.min.js"),a(r.src,u="https://source.zoom.us/1.8.5/lib/vendor/redux-thunk.min.js")||k(r,"src","https://source.zoom.us/1.8.5/lib/vendor/redux-thunk.min.js"),a(h.src,g="https://source.zoom.us/1.8.5/lib/vendor/jquery.min.js")||k(h,"src","https://source.zoom.us/1.8.5/lib/vendor/jquery.min.js"),a(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"),a(v.src,y="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(t,s){d(document.head,n),d(document.head,o),d(document.head,l),d(document.head,r),d(document.head,h),d(document.head,b),d(document.head,v),e[7](v)},p:t,i:t,o:t,d(t){m(n),m(o),m(l),m(r),m(h),m(b),m(v),e[7](null)}}}function Fe(e,t,n){let s,{leaveUrl:o="/"}=t,{meetingnumber:i}=t,{signature:l}=t,{apikey:c}=t,{username:r}=t,{useremail:a}=t;return M(async()=>{s.addEventListener("load",()=>{ZoomMtg.preLoadWasm(),ZoomMtg.prepareJssdk(),ZoomMtg.init({leaveUrl:o,success(){ZoomMtg.join({meetingNumber:i,userName:r,signature:l,apiKey:c,userEmail:a,success(e){console.log("success")},error(e){console.log(e)}})},error(e){console.log(e)}})})}),e.$$set=e=>{"leaveUrl"in e&&n(1,o=e.leaveUrl),"meetingnumber"in e&&n(2,i=e.meetingnumber),"signature"in e&&n(3,l=e.signature),"apikey"in e&&n(4,c=e.apikey),"username"in e&&n(5,r=e.username),"useremail"in e&&n(6,a=e.useremail)},[s,o,i,l,c,r,a,function(e){P[e?"unshift":"push"](()=>{s=e,n(0,s)})}]}customElements.define("cb-navbar",Ne);class Ge extends ee{constructor(e){super(),Q(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},Fe,Je,l,{leaveUrl:1,meetingnumber:2,signature:3,apikey:4,username:5,useremail:6},null),e&&(e.target&&u(e.target,this,e.anchor),e.props&&(this.$set(e.props),S()))}static get observedAttributes(){return["leaveUrl","meetingnumber","signature","apikey","username","useremail"]}get leaveUrl(){return this.$$.ctx[1]}set leaveUrl(e){this.$$set({leaveUrl:e}),S()}get meetingnumber(){return this.$$.ctx[2]}set meetingnumber(e){this.$$set({meetingnumber:e}),S()}get signature(){return this.$$.ctx[3]}set signature(e){this.$$set({signature:e}),S()}get apikey(){return this.$$.ctx[4]}set apikey(e){this.$$set({apikey:e}),S()}get username(){return this.$$.ctx[5]}set username(e){this.$$set({username:e}),S()}get useremail(){return this.$$.ctx[6]}set useremail(e){this.$$set({useremail:e}),S()}}customElements.define("zoom-meeting",Ge);const{document:We}=Y;function qe(e){let t,n;return{c(){t=p("div"),n=g(e[3]),k(t,"class","red")},m(e,s){u(e,t,s),d(t,n)},p(e,t){8&t&&$(n,e[3])},d(e){e&&m(t)}}}function Ye(e){let t,n,s,i,l,c,r;return{c(){t=p("input"),n=b(),s=p("button"),i=g("Sign In"),k(t,"type","email"),k(t,"placeholder","Enter Email"),k(t,"class","w-100 mb-4"),k(s,"class","btn btn-primary w-100"),s.disabled=l=!e[0]},m(o,l){u(o,t,l),w(t,e[0]),u(o,n,l),u(o,s,l),d(s,i),c||(r=[v(t,"input",e[9]),v(s,"click",e[6])],c=!0)},p(e,n){1&n&&t.value!==e[0]&&w(t,e[0]),1&n&&l!==(l=!e[0])&&(s.disabled=l)},d(e){e&&m(t),e&&m(n),e&&m(s),c=!1,o(r)}}}function Ze(e){let t,n,s,i,l,c,r;return{c(){t=p("input"),n=b(),s=p("button"),i=g("Verify OTP"),k(t,"type","number"),k(t,"placeholder","Enter OTP"),k(t,"class","w-100 mb-4"),k(s,"class","btn btn-primary w-100"),s.disabled=l=!e[1]},m(o,l){u(o,t,l),w(t,e[1]),u(o,n,l),u(o,s,l),d(s,i),c||(r=[v(t,"input",e[8]),v(s,"click",e[7])],c=!0)},p(e,n){2&n&&y(t.value)!==e[1]&&w(t,e[1]),2&n&&l!==(l=!e[1])&&(s.disabled=l)},d(e){e&&m(t),e&&m(n),e&&m(s),c=!1,o(r)}}}function Ke(e){let n,s,i,l,c,r,a,h,g,f,y,$,w,_,C,j,E,T,M,L,A,P,H,B,O,D,z,I,U,S,R,N=e[3]&&qe(e);function J(e,t){return e[2]?Ze:Ye}let F=J(e),G=F(e);return{c(){n=p("link"),s=p("link"),i=p("link"),l=b(),c=p("div"),r=b(),a=p("div"),h=p("div"),g=p("h2"),g.textContent="Login / Signup",f=b(),y=p("button"),y.textContent="X",$=b(),w=p("div"),w.textContent="Sign In with Email",_=b(),N&&N.c(),C=b(),G.c(),j=b(),E=p("div"),E.innerHTML='<span class="hr"></span> \n <span class="px-5">OR</span> \n <span class="hr"></span>',T=b(),M=p("a"),L=p("button"),L.innerHTML='<img class="logo" src="https://minio.codingblocks.com/public/google-logo.png" alt=""/> \n <span class="logo-text">Sign in with Google</span>',A=b(),P=p("a"),H=p("button"),H.innerHTML='<img class="logo" src="https://minio.codingblocks.com/public/facebook-logo.png" alt=""/> \n <span class="logo-text">Sign in with facebook</span>',B=b(),O=p("div"),O.innerHTML='<div class="header">Find your dream job</div> \n <div class="sub-header mb-4">Trsuted by 100k+ students</div> \n <img src="https://minio.codingblocks.com/public/company-logo-group.png" alt=""/>',D=b(),z=p("div"),z.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>',I=b(),U=p("link"),this.c=t,k(n,"rel","preconnect"),k(n,"href","https://fonts.googleapis.com"),k(s,"rel","preconnect"),k(s,"href","https://fonts.gstatic.com"),k(s,"crossorigin",""),k(i,"href","https://fonts.googleapis.com/css2?family=Mulish:wght@400;600&display=swap"),k(i,"rel","stylesheet"),k(c,"class","blurrer"),x(y,"color","#3B4254"),k(h,"class","d-flex justify-content-between align-items-center mb-5"),k(w,"class","mb-4"),k(E,"class","d-flex justify-content-center align-items-center"),x(E,"margin","30px 0px"),k(L,"class","btn btn-secondary white w-100 mb-3"),k(M,"href",e[4]),k(H,"class","btn btn-secondary white w-100 mb-5"),k(P,"href",e[5]),k(O,"class","mb-5"),k(z,"class","position-absolute"),k(a,"id","cb-login-signup"),k(a,"class","cb-login-signup-container"),k(U,"rel","stylesheet"),k(U,"href","https://unpkg.com/@coding-blocks/motley@2.8.6/dist/account/app.min.css")},m(e,t){d(We.head,n),d(We.head,s),d(We.head,i),u(e,l,t),u(e,c,t),u(e,r,t),u(e,a,t),d(a,h),d(h,g),d(h,f),d(h,y),d(a,$),d(a,w),d(a,_),N&&N.m(a,null),d(a,C),G.m(a,null),d(a,j),d(a,E),d(a,T),d(a,M),d(M,L),d(a,A),d(a,P),d(P,H),d(a,B),d(a,O),d(a,D),d(a,z),u(e,I,t),u(e,U,t),S||(R=[v(c,"click",Ve),v(y,"click",Ve)],S=!0)},p(e,[t]){e[3]?N?N.p(e,t):(N=qe(e),N.c(),N.m(a,C)):N&&(N.d(1),N=null),F===(F=J(e))&&G?G.p(e,t):(G.d(1),G=F(e),G&&(G.c(),G.m(a,j)))},i:t,o:t,d(e){m(n),m(s),m(i),e&&m(l),e&&m(c),e&&m(r),e&&m(a),N&&N.d(),G.d(),e&&m(I),e&&m(U),S=!1,o(R)}}}function Ve(){document.getElementsByTagName("cb-login-signup")[0].classList.add("hide-cb-login-signup-prompt")}function Xe(e,t,n){const s=window.location.host.split(".")[0],o={hack:2146237097,online:5633768694,hire:4190457915,"code-gym":9706874989},i={sendOtp:{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","code-gym":"https://code-gym-api.codingblocks.com/api/jwt/otp"},verifyOtp:{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","code-gym":"https://code-gym-api.codingblocks.com/api/jwt/verify"}};let l=null,c=null,r=null,a=null;localStorage.getItem("cb_login_prompt");return[l,c,r,a,`https://account.codingblocks.com/login/google/v2?redirect_uri=https://${s}.codingblocks.com&client=${s}-codingblocks&client_id=${o[s]}`,`https://account.codingblocks.com/login/facebook/v2?redirect_uri=https://${s}.codingblocks.com&client=${s}-codingblocks&client_id=${o[s]}`,async function(){const e=await fetch(i.sendOtp[s]||"http://localhost:3000/api/v2/jwt/otp",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:l})});let{id:t}=await e.json();n(2,r=t)},async function(){n(3,a=null);const e=await fetch(i.verifyOtp[s]||"http://localhost:3000/api/v2/jwt/otp/verify",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({email:l,otp_id:r,otp:c})});if(e.ok)window.location.reload();else{const{message:t}=await e.json();t&&n(3,a=t)}},function(){c=y(this.value),n(1,c)},function(){l=this.value,n(0,l)}]}class Qe extends ee{constructor(e){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>",Q(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},Xe,Ke,l,{},null),e&&e.target&&u(e.target,this,e.anchor)}}customElements.define("cb-login-signup",Qe),e.banner=re,e.cb_login_signup=Qe,e.cb_navbar=Ne,e.demographic_form=xe,e.mobile_cb_navbar=Pe,e.zoom_meeting=Ge,Object.defineProperty(e,"__esModule",{value:!0})}));
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(((e=e||self).index=e.index||{},e.index.js={}))}(this,(function(e){"use strict";function t(){}function n(e){return e()}function s(){return Object.create(null)}function o(e){e.forEach(n)}function i(e){return"function"==typeof e}function l(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let c,r;function a(e,t){return c||(c=document.createElement("a")),c.href=t,e===c.href}function d(e,t){e.appendChild(t)}function u(e,t,n){e.insertBefore(t,n||null)}function m(e){e.parentNode.removeChild(e)}function h(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function p(e){return document.createElement(e)}function g(e){return document.createTextNode(e)}function b(){return g(" ")}function f(){return g("")}function v(e,t,n,s){return e.addEventListener(t,n,s),()=>e.removeEventListener(t,n,s)}function k(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function y(e){return""===e?null:+e}function $(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function w(e,t){e.value=null==t?"":t}function x(e,t,n,s){null===n?e.style.removeProperty(t):e.style.setProperty(t,n,s?"important":"")}function _(e,t){for(let n=0;n<e.options.length;n+=1){const s=e.options[n];if(s.__value===t)return void(s.selected=!0)}e.selectedIndex=-1}function C(e){const t=e.querySelector(":checked")||e.options[0];return t&&t.__value}function j(e){const t={};for(const n of e)t[n.name]=n.value;return t}function E(e){r=e}function T(){if(!r)throw new Error("Function called outside component initialization");return r}function M(e){T().$$.on_mount.push(e)}function L(){const e=T();return(t,n,{cancelable:s=!1}={})=>{const o=e.$$.callbacks[t];if(o){const i=function(e,t,{bubbles:n=!1,cancelable:s=!1}={}){const o=document.createEvent("CustomEvent");return o.initCustomEvent(e,n,s,t),o}(t,n,{cancelable:s});return o.slice().forEach(t=>{t.call(e,i)}),!i.defaultPrevented}return!0}}const A=[],P=[],H=[],B=[],O=Promise.resolve();let D=!1;function z(e){H.push(e)}const I=new Set;let U=0;function S(){const e=r;do{for(;U<A.length;){const e=A[U];U++,E(e),R(e.$$)}for(E(null),A.length=0,U=0;P.length;)P.pop()();for(let e=0;e<H.length;e+=1){const t=H[e];I.has(t)||(I.add(t),t())}H.length=0}while(A.length);for(;B.length;)B.pop()();D=!1,I.clear(),E(e)}function R(e){if(null!==e.fragment){e.update(),o(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(z)}}const N=new Set;let J;function F(){J={r:0,c:[],p:J}}function G(){J.r||o(J.c),J=J.p}function W(e,t){e&&e.i&&(N.delete(e),e.i(t))}function q(e,t,n,s){if(e&&e.o){if(N.has(e))return;N.add(e),J.c.push(()=>{N.delete(e),s&&(n&&e.d(1),s())}),e.o(t)}else s&&s()}const Y="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function Z(e){e&&e.c()}function K(e,t,s,l){const{fragment:c,on_mount:r,on_destroy:a,after_update:d}=e.$$;c&&c.m(t,s),l||z(()=>{const t=r.map(n).filter(i);a?a.push(...t):o(t),e.$$.on_mount=[]}),d.forEach(z)}function V(e,t){const n=e.$$;null!==n.fragment&&(o(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Q(e,t){-1===e.$$.dirty[0]&&(A.push(e),D||(D=!0,O.then(S)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function X(e,n,i,l,c,a,d,u=[-1]){const h=r;E(e);const p=e.$$={fragment:null,ctx:null,props:a,update:t,not_equal:c,bound:s(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(h?h.$$.context:[])),callbacks:s(),dirty:u,skip_bound:!1,root:n.target||h.$$.root};d&&d(p.root);let g=!1;if(p.ctx=i?i(e,n.props||{},(t,n,...s)=>{const o=s.length?s[0]:n;return p.ctx&&c(p.ctx[t],p.ctx[t]=o)&&(!p.skip_bound&&p.bound[t]&&p.bound[t](o),g&&Q(e,t)),n}):[],p.update(),g=!0,o(p.before_update),p.fragment=!!l&&l(p.ctx),n.target){if(n.hydrate){const e=function(e){return Array.from(e.childNodes)}(n.target);p.fragment&&p.fragment.l(e),e.forEach(m)}else p.fragment&&p.fragment.c();n.intro&&W(e.$$.fragment),K(e,n.target,n.anchor,n.customElement),S()}E(h)}let ee;function te(e,t,n){const s=e.slice();return s[9]=t[n].img_url,s[10]=t[n].img_url_mobile,s[11]=t[n].link,s[13]=n,s}function ne(e){let t,n=e[3],s=[];for(let t=0;t<n.length;t+=1)s[t]=ie(te(e,n,t));return{c(){t=p("div");for(let e=0;e<s.length;e+=1)s[e].c();k(t,"class","carousel")},m(e,n){u(e,t,n);for(let e=0;e<s.length;e+=1)s[e].m(t,null)},p(e,o){if(61&o){let i;for(n=e[3],i=0;i<n.length;i+=1){const l=te(e,n,i);s[i]?s[i].p(l,o):(s[i]=ie(l),s[i].c(),s[i].m(t,null))}for(;i<s.length;i+=1)s[i].d(1);s.length=n.length}},d(e){e&&m(t),h(s,e)}}}function se(e){let t,n,s,o,i,l,c,r,h,g=e[0]&&oe(e);return{c(){t=p("a"),g&&g.c(),n=b(),s=p("img"),i=b(),l=p("img"),r=b(),k(s,"class","d-md-block"),a(s.src,o=e[9])||k(s,"src",o),k(s,"alt",""),k(s,"width","100%"),k(l,"class","d-md-none"),a(l.src,c=e[10])||k(l,"src",c),k(l,"alt",""),k(l,"width","100%"),k(t,"class","d-block"),k(t,"target","_blank"),k(t,"href",h=e[11])},m(e,o){u(e,t,o),g&&g.m(t,null),d(t,n),d(t,s),d(t,i),d(t,l),d(t,r)},p(e,i){e[0]?g?g.p(e,i):(g=oe(e),g.c(),g.m(t,n)):g&&(g.d(1),g=null),8&i&&!a(s.src,o=e[9])&&k(s,"src",o),8&i&&!a(l.src,c=e[10])&&k(l,"src",c),8&i&&h!==(h=e[11])&&k(t,"href",h)},d(e){e&&m(t),g&&g.d()}}}function oe(e){let t,n,s,o;return{c(){t=p("img"),k(t,"class","close-icon"),a(t.src,n=e[2])||k(t,"src",n),k(t,"alt","close")},m(n,i){var l;u(n,t,i),s||(o=v(t,"click",function(e){return function(t){return t.stopPropagation(),e.call(this,t)}}((l=e[5],function(e){return e.preventDefault(),l.call(this,e)})),!0),s=!0)},p(e,s){4&s&&!a(t.src,n=e[2])&&k(t,"src",n)},d(e){e&&m(t),s=!1,o()}}}function ie(e){let t,n=e[4]==e[13]&&se(e);return{c(){n&&n.c(),t=f()},m(e,s){n&&n.m(e,s),u(e,t,s)},p(e,s){e[4]==e[13]?n?n.p(e,s):(n=se(e),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&m(t)}}}function le(e){let n,s=e[1]&&ne(e);return{c(){s&&s.c(),n=f(),this.c=t},m(e,t){s&&s.m(e,t),u(e,n,t)},p(e,[t]){e[1]?s?s.p(e,t):(s=ne(e),s.c(),s.m(n.parentNode,n)):s&&(s.d(1),s=null)},i:t,o:t,d(e){s&&s.d(e),e&&m(n)}}}function ce(e,t,n){let s=!1,o="",i=[],l=0,c=!1,{showToggle:r=!0}=t,{theme:a="light"}=t;M(async()=>{const e=await fetch("https://hack-api.codingblocks.com/api/v2/dashboard-banners",{headers:{client:"hack-admin"}}),{data:t}=await e.json();n(3,i=t.map(e=>({img_url:e.attributes["image-url"],img_url_mobile:e.attributes["mobile-image-url"],link:e.attributes.link}))),n(2,o="light"===a?"https://minio.codingblocks.com/motley/wrong_g_white.min.png":"https://minio.codingblocks.com/motley/wrong_g.png"),n(1,s=!!i.length),c||d()});const d=e=>{c&&clearInterval(c),c=setInterval(()=>{l==i.length-1?n(4,l=0):n(4,l+=1)},7e3)};return e.$$set=e=>{"showToggle"in e&&n(0,r=e.showToggle),"theme"in e&&n(6,a=e.theme)},[r,s,o,i,l,()=>{n(1,s=!s)},a]}"function"==typeof HTMLElement&&(ee=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(n).filter(i);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){o(this.$$.on_disconnect)}$destroy(){V(this,1),this.$destroy=t}$on(e,t){const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});class re extends ee{constructor(e){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{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},ce,le,l,{showToggle:0,theme:6},null),e&&(e.target&&u(e.target,this,e.anchor),e.props&&(this.$set(e.props),S()))}static get observedAttributes(){return["showToggle","theme"]}get showToggle(){return this.$$.ctx[0]}set showToggle(e){this.$$set({showToggle:e}),S()}get theme(){return this.$$.ctx[6]}set theme(e){this.$$set({theme:e}),S()}}customElements.define("promotion-banner",re);var ae=new class{constructor(e){this.url=e}fetchUser(){return fetch(this.url+"/users/me?include=demographic",{credentials:"include"}).then(e=>e.json())}fetchColleges(){return fetch(this.url+"/colleges").then(e=>e.json())}fetchBranches(){return fetch(this.url+"/branches").then(e=>e.json())}updateUser(e){return fetch(this.url+"/users/me/edit",{method:"PATCH",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then(e=>e.json())}}("https://account.codingblocks.com/api");function de(e,t,n){const s=e.slice();return s[15]=t[n],s}function ue(e,t,n){const s=e.slice();return s[18]=t[n],s}function me(e,t,n){const s=e.slice();return s[21]=t[n],s}function he(e){let t,n,s;function o(e,t){return e[7].success?ge:pe}let i=o(e),l=i(e);return{c(){t=p("div"),n=p("div"),n.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>',s=b(),l.c(),k(n,"class","bg-gradient-pink white p-4"),k(t,"class","border-card b-red p-0")},m(e,o){u(e,t,o),d(t,n),d(t,s),l.m(t,null)},p(e,n){i===(i=o(e))&&l?l.p(e,n):(l.d(1),l=i(e),l&&(l.c(),l.m(t,null)))},d(e){e&&m(t),l.d()}}}function pe(e){let t,n,s,i,l,c,r,a,g,f,y,$,w,x,C,j,E=e[4],T=[];for(let t=0;t<E.length;t+=1)T[t]=be(me(e,E,t));let M=1===e[0]&&fe(e),L=e[8],A=[];for(let t=0;t<L.length;t+=1)A[t]=ve(ue(e,L,t));let P=e[5],H=[];for(let t=0;t<P.length;t+=1)H[t]=ke(de(e,P,t));let B=e[7].error&&ye(e);return{c(){t=p("div"),n=p("select"),s=p("option"),s.textContent="-- College --";for(let e=0;e<T.length;e+=1)T[e].c();i=b(),M&&M.c(),l=b(),c=p("select"),r=p("option"),r.textContent="-- Graduation Year --";for(let e=0;e<A.length;e+=1)A[e].c();a=b(),g=p("select"),f=p("option"),f.textContent="-- Branch --";for(let e=0;e<H.length;e+=1)H[e].c();y=b(),$=p("div"),w=p("button"),w.textContent="Update Profile",x=b(),B&&B.c(),s.disabled=!0,s.selected=!0,s.__value="",s.value=s.__value,k(n,"class","input-text br-50 my-2"),void 0===e[0]&&z(()=>e[10].call(n)),r.disabled=!0,r.selected=!0,r.__value="",r.value=r.__value,k(c,"class","input-text br-50 my-2"),void 0===e[2]&&z(()=>e[12].call(c)),f.disabled=!0,f.selected=!0,f.__value="",f.value=f.__value,k(g,"class","input-text br-50 my-2"),void 0===e[1]&&z(()=>e[13].call(g)),k(w,"id","updatedButton"),k(w,"class","button-solid button-orange"),k($,"class","d-flex justify-content-center mt-5"),k(t,"class","py-4 px-5 t-align-center")},m(o,m){u(o,t,m),d(t,n),d(n,s);for(let e=0;e<T.length;e+=1)T[e].m(n,null);_(n,e[0]),d(t,i),M&&M.m(t,null),d(t,l),d(t,c),d(c,r);for(let e=0;e<A.length;e+=1)A[e].m(c,null);_(c,e[2]),d(t,a),d(t,g),d(g,f);for(let e=0;e<H.length;e+=1)H[e].m(g,null);_(g,e[1]),d(t,y),d(t,$),d($,w),d(t,x),B&&B.m(t,null),C||(j=[v(n,"change",e[10]),v(c,"change",e[12]),v(g,"change",e[13]),v(w,"click",e[9])],C=!0)},p(e,s){if(17&s){let t;for(E=e[4],t=0;t<E.length;t+=1){const o=me(e,E,t);T[t]?T[t].p(o,s):(T[t]=be(o),T[t].c(),T[t].m(n,null))}for(;t<T.length;t+=1)T[t].d(1);T.length=E.length}if(17&s&&_(n,e[0]),1===e[0]?M?M.p(e,s):(M=fe(e),M.c(),M.m(t,l)):M&&(M.d(1),M=null),260&s){let t;for(L=e[8],t=0;t<L.length;t+=1){const n=ue(e,L,t);A[t]?A[t].p(n,s):(A[t]=ve(n),A[t].c(),A[t].m(c,null))}for(;t<A.length;t+=1)A[t].d(1);A.length=L.length}if(260&s&&_(c,e[2]),34&s){let t;for(P=e[5],t=0;t<P.length;t+=1){const n=de(e,P,t);H[t]?H[t].p(n,s):(H[t]=ke(n),H[t].c(),H[t].m(g,null))}for(;t<H.length;t+=1)H[t].d(1);H.length=P.length}34&s&&_(g,e[1]),e[7].error?B?B.p(e,s):(B=ye(e),B.c(),B.m(t,null)):B&&(B.d(1),B=null)},d(e){e&&m(t),h(T,e),M&&M.d(),h(A,e),h(H,e),B&&B.d(),C=!1,o(j)}}}function ge(e){let n;return{c(){n=p("div"),n.innerHTML='<div class="font-md gradient-text extra-bold mt-4">Your profile has been updated !</div>',k(n,"class","my-5 t-align-c")},m(e,t){u(e,n,t)},p:t,d(e){e&&m(n)}}}function be(e){let t,n,s,o,i,l=e[21].name+"";return{c(){t=p("option"),n=g(l),s=b(),t.__value=o=e[21].id,t.value=t.__value,t.selected=i=e[21].id===e[0]},m(e,o){u(e,t,o),d(t,n),d(t,s)},p(e,s){16&s&&l!==(l=e[21].name+"")&&$(n,l),16&s&&o!==(o=e[21].id)&&(t.__value=o,t.value=t.__value),17&s&&i!==(i=e[21].id===e[0])&&(t.selected=i)},d(e){e&&m(t)}}}function fe(e){let t,n,s;return{c(){t=p("input"),k(t,"type","text"),k(t,"placeholder","Other College Name"),k(t,"class","input-text br-50 my-2")},m(o,i){u(o,t,i),w(t,e[3]),n||(s=v(t,"input",e[11]),n=!0)},p(e,n){8&n&&t.value!==e[3]&&w(t,e[3])},d(e){e&&m(t),n=!1,s()}}}function ve(e){let t,n,s,o,i,l=e[18]+"";return{c(){t=p("option"),n=g(l),s=b(),t.__value=o=e[18],t.value=t.__value,t.selected=i=e[18]===e[2]},m(e,o){u(e,t,o),d(t,n),d(t,s)},p(e,n){260&n&&i!==(i=e[18]===e[2])&&(t.selected=i)},d(e){e&&m(t)}}}function ke(e){let t,n,s,o,i,l=e[15].name+"";return{c(){t=p("option"),n=g(l),s=b(),t.__value=o=e[15].id,t.value=t.__value,t.selected=i=e[15].id===e[1]},m(e,o){u(e,t,o),d(t,n),d(t,s)},p(e,s){32&s&&l!==(l=e[15].name+"")&&$(n,l),32&s&&o!==(o=e[15].id)&&(t.__value=o,t.value=t.__value),34&s&&i!==(i=e[15].id===e[1])&&(t.selected=i)},d(e){e&&m(t)}}}function ye(e){let t,n,s,o=e[7].error+"";return{c(){t=p("div"),n=p("p"),s=g(o),k(n,"class","red"),k(t,"class","row justify-content-center")},m(e,o){u(e,t,o),d(t,n),d(n,s)},p(e,t){128&t&&o!==(o=e[7].error+"")&&$(s,o)},d(e){e&&m(t)}}}function $e(e){let n,s,o=e[6].id&&1===e[6].demographic.collegeId&&!e[6].demographic.otherCollege&&he(e);return{c(){o&&o.c(),n=b(),s=p("link"),this.c=t,k(s,"rel","stylesheet"),k(s,"href","https://unpkg.com/@coding-blocks/motley@0.7.4/dist/online-cb/app.min.css")},m(e,t){o&&o.m(e,t),u(e,n,t),u(e,s,t)},p(e,[t]){e[6].id&&1===e[6].demographic.collegeId&&!e[6].demographic.otherCollege?o?o.p(e,t):(o=he(e),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},i:t,o:t,d(e){o&&o.d(e),e&&m(n),e&&m(s)}}}function we(e,t,n){let s=null,o=null,i=null,l="",c=[],r=[],a=[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 m=L();M(async()=>{n(6,d=await ae.fetchUser()),d.id&&(n(4,c=await ae.fetchColleges()),n(5,r=await ae.fetchBranches()),n(2,i=d.graduationYear),n(0,s=d.demographic.collegeId),n(1,o=d.demographic.branchId),n(3,l=d.demographic.otherCollege))});return[s,o,i,l,c,r,d,u,a,async()=>{try{const e=await ae.updateUser({gradYear:i,collegeId:s,branchId:o,otherCollege:l});m("updated",e),n(7,u={success:e.success}),setTimeout(async()=>{n(6,d=await ae.fetchUser())},2e3)}catch(e){n(7,u={error:e})}},function(){s=C(this),n(0,s),n(4,c)},function(){l=this.value,n(3,l)},function(){i=C(this),n(2,i),n(8,a)},function(){o=C(this),n(1,o),n(5,r)}]}class xe extends ee{constructor(e){super(),X(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},we,$e,l,{},null),e&&e.target&&u(e.target,this,e.anchor)}}function _e(e){let n;return{c(){n=p("div"),n.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=t,k(n,"class","pl-4")},m(e,t){u(e,n,t)},p:t,i:t,o:t,d(e){e&&m(n)}}}customElements.define("demographic-form",xe);class Ce extends ee{constructor(e){super(),X(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},null,_e,l,{},null),e&&e.target&&u(e.target,this,e.anchor)}}function je(e){let n;return{c(){n=p("div"),n.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=t,k(n,"class","pl-4")},m(e,t){u(e,n,t)},p:t,i:t,o:t,d(e){e&&m(n)}}}customElements.define("mobile-classroom-courses",Ce);class Ee extends ee{constructor(e){super(),X(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},null,je,l,{},null),e&&e.target&&u(e.target,this,e.anchor)}}function Te(e){let t,n;return t=new Ce({}),{c(){Z(t.$$.fragment)},m(e,s){K(t,e,s),n=!0},i(e){n||(W(t.$$.fragment,e),n=!0)},o(e){q(t.$$.fragment,e),n=!1},d(e){V(t,e)}}}function Me(e){let t,n;return t=new Ee({}),{c(){Z(t.$$.fragment)},m(e,s){K(t,e,s),n=!0},i(e){n||(W(t.$$.fragment,e),n=!0)},o(e){q(t.$$.fragment,e),n=!1},d(e){V(t,e)}}}function Le(e){let n,s,i,l,c,r,h,g,f,y,$,w,x,_,C,j,E,T,M,L,A,P,H,B,O,D,z,I,U,S,R,N,J,Y,Z,K,V,Q,X,ee,te,ne,se,oe,ie="classroom"==e[0]&&Te(),le="online"==e[0]&&Me();return{c(){n=p("link"),s=b(),i=p("link"),l=b(),c=p("div"),r=p("div"),h=p("img"),f=b(),y=p("img"),w=b(),x=p("div"),_=b(),C=p("slot"),j=b(),E=p("div"),T=p("div"),T.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(),L=p("div"),A=p("div"),P=p("div"),P.textContent="Classroom Courses",H=b(),B=p("div"),B.innerHTML='<a href="#" class="orange">Explore All</a>',D=b(),ie&&ie.c(),z=b(),I=p("div"),U=p("div"),S=p("div"),S.textContent="Online Courses",R=b(),N=p("div"),N.innerHTML='<a href="#" class="orange">Explore All</a>',Y=b(),le&&le.c(),Z=b(),K=p("div"),K.innerHTML='<a href="https://codingblocks.com/campus-ambassador-program.html" target="blank">Campus Ambassadors</a>',V=b(),Q=p("div"),Q.innerHTML='<a href="https://codingblocks.com/about" target="blank">About Us</a>',X=b(),ee=p("div"),ee.innerHTML='<a href="https://codingblocks.com/centres" target="blank">Contact Us</a>',this.c=t,k(n,"rel","stylesheet"),k(n,"href",e[2]),k(i,"href","https://minio.codingblocks.com/hackerblocks-images/Gilroy.ttf"),k(i,"rel","stylesheet"),a(h.src,g=e[3])||k(h,"src",g),k(h,"alt","HB"),k(h,"class","hamburger-nav__ham-logo ml-4"),a(y.src,$="https://minio.codingblocks.com/amoeba/wrong-close.png")||k(y,"src","https://minio.codingblocks.com/amoeba/wrong-close.png"),k(y,"alt","#"),k(y,"class","mr-4 hamburger-nav__cross pointer"),k(r,"class","d-flex py-3 justify-content-between align-items-center hamburger-nav__top-bar"),k(x,"class","divider-h"),k(T,"class","d-flex justify-content-between"),k(P,"class","card-md extra-bold"),k(B,"class","card-sm light"),k(A,"class",O="hamburger-nav__menu-element "+("classroom"==e[0]&&"active")),k(L,"class","my-4 pl-4"),k(S,"class","card-md extra-bold"),k(N,"class","card-sm light"),k(U,"class",J="hamburger-nav__menu-element "+("online"==e[0]&&"active")),k(I,"class","my-4 pl-4"),k(K,"class","card-md light my-4"),k(Q,"class","card-md light my-4"),k(ee,"class","card-md light my-4"),k(E,"class","mt-4 px-4 overflow-y-auto no-scrollbar"),k(c,"class",te="hamburger-nav b-right overflow-y-auto no-scrollbar "+(!e[1]&&"hamburger-nav--hidden"))},m(t,o){u(t,n,o),u(t,s,o),u(t,i,o),u(t,l,o),u(t,c,o),d(c,r),d(r,h),d(r,f),d(r,y),d(c,w),d(c,x),d(c,_),d(c,C),d(c,j),d(c,E),d(E,T),d(E,M),d(E,L),d(L,A),d(A,P),d(A,H),d(A,B),d(L,D),ie&&ie.m(L,null),d(E,z),d(E,I),d(I,U),d(U,S),d(U,R),d(U,N),d(I,Y),le&&le.m(I,null),d(E,Z),d(E,K),d(E,V),d(E,Q),d(E,X),d(E,ee),ne=!0,se||(oe=[v(y,"click",e[4]),v(P,"click",e[5]),v(S,"click",e[6])],se=!0)},p(e,[t]){(!ne||4&t)&&k(n,"href",e[2]),(!ne||8&t&&!a(h.src,g=e[3]))&&k(h,"src",g),(!ne||1&t&&O!==(O="hamburger-nav__menu-element "+("classroom"==e[0]&&"active")))&&k(A,"class",O),"classroom"==e[0]?ie?1&t&&W(ie,1):(ie=Te(),ie.c(),W(ie,1),ie.m(L,null)):ie&&(F(),q(ie,1,1,()=>{ie=null}),G()),(!ne||1&t&&J!==(J="hamburger-nav__menu-element "+("online"==e[0]&&"active")))&&k(U,"class",J),"online"==e[0]?le?1&t&&W(le,1):(le=Me(),le.c(),W(le,1),le.m(I,null)):le&&(F(),q(le,1,1,()=>{le=null}),G()),(!ne||2&t&&te!==(te="hamburger-nav b-right overflow-y-auto no-scrollbar "+(!e[1]&&"hamburger-nav--hidden")))&&k(c,"class",te)},i(e){ne||(W(ie),W(le),ne=!0)},o(e){q(ie),q(le),ne=!1},d(e){e&&m(n),e&&m(s),e&&m(i),e&&m(l),e&&m(c),ie&&ie.d(),le&&le.d(),se=!1,o(oe)}}}function Ae(e,t,n){let{css:s="https://unpkg.com/@coding-blocks/motley/dist/app.min.css"}=t,{tab:o="classroom"}=t,{showhamburger:i=!1}=t,{logo:l="https://codingblocks.com/assets/images/cb/cblogo.png"}=t;return e.$$set=e=>{"css"in e&&n(2,s=e.css),"tab"in e&&n(0,o=e.tab),"showhamburger"in e&&n(1,i=e.showhamburger),"logo"in e&&n(3,l=e.logo)},[o,i,s,l,()=>n(1,i=!i),()=>n(0,o="classroom"),()=>n(0,o="online")]}customElements.define("mobile-online-courses",Ee);class Pe extends ee{constructor(e){super(),X(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},Ae,Le,l,{css:2,tab:0,showhamburger:1,logo:3},null),e&&(e.target&&u(e.target,this,e.anchor),e.props&&(this.$set(e.props),S()))}static get observedAttributes(){return["css","tab","showhamburger","logo"]}get css(){return this.$$.ctx[2]}set css(e){this.$$set({css:e}),S()}get tab(){return this.$$.ctx[0]}set tab(e){this.$$set({tab:e}),S()}get showhamburger(){return this.$$.ctx[1]}set showhamburger(e){this.$$set({showhamburger:e}),S()}get logo(){return this.$$.ctx[3]}set logo(e){this.$$set({logo:e}),S()}}function He(e){let n;return{c(){n=p("div"),n.innerHTML='<ul class="col-4"><li class="bold">Beginner Courses</li> \n <li><a href="https://codingblocks.com/classroom-courses/c-plus-plus-for-beginners.html" target="_blank">C++ For Beginners</a></li> \n <li><a href="https://codingblocks.com/classroom-courses/java-for-beginners.html" target="_blank">Java For Beginners</a></li> \n <li><a 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">Development Courses</li> \n <li><a href="https://codingblocks.com/classroom-courses/android-app-development-using-kotlin-and-java.html" target="_blank">Android App Dev</a></li> \n <li><a href="https://codingblocks.com/classroom-courses/web-development-nodejs.html" target="_blank">Full Stack Web Dev</a></li> \n <li><a href="https://codingblocks.com/classroom-courses/web-development-django.html" target="_blank">Python Django</a></li> \n <li><a 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">Advanced Courses</li> \n <li><a href="https://codingblocks.com/classroom-courses/advanced-data-structures-and-algorithms-for-interviews.html" target="_blank">Algo++</a></li> \n <li><a href="https://codingblocks.com/classroom-courses/advanced-data-structures-and-algorithms-using-java.html" target="_blank">Algo.Java</a></li> \n <li><a href="https://codingblocks.com/classroom-courses/competitive-programming.html" target="_blank">Competitive Programming</a></li> \n <li><a 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">Junior Courses</li> \n <li><a href="https://codingblocks.com/classroom-courses/code4kids.html" target="_blank">Code 4 Kids</a></li> \n <li><a href="https://codingblocks.com/classroom-courses/mathsgeeks.html" target="_blank">Maths Geek</a></li></ul> \n <ul class="col-4"><li class="bold">Bootcamps</li> \n <li><a href="https://codingblocks.com/bootcamps/react.html" target="_blank">React JS</a></li> \n <li><a href="https://codingblocks.com/bootcamps/blockchain.html" target="_blank">Blockchain</a></li> \n <li><a href="https://codingblocks.com/bootcamps/coding-interview-preparation.html" target="_blank">Interview Preparation</a></li> \n <li><a href="https://codingblocks.com/bootcamps/gamedev.html" target="_blank">Game Dev</a></li> \n <li><a href="https://codingblocks.com/bootcamps/chatbots.html" target="_blank">Chatbot</a></li></ul> \n <ul class="col-4"><li class="bold">Professional</li> \n <li><a href="https://codingblocks.com/classroom-courses/six_months_ind_training.html" target="_blank">Industrial Training</a></li></ul>',this.c=t,k(n,"class","row justify-content-around m-5")},m(e,t){u(e,n,t)},p:t,i:t,o:t,d(e){e&&m(n)}}}customElements.define("cb-mobile-navbar",Pe);class Be extends ee{constructor(e){super(),X(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},null,He,l,{},null),e&&e.target&&u(e.target,this,e.anchor)}}function Oe(e){let n;return{c(){n=p("div"),n.innerHTML='<ul class="col-4"><li class="bold mb-3">Beginner Courses</li> \n <li><a href="https://online.codingblocks.com/courses/c-plus-plus-online-course-for-beginners">C++ Master Course | Launchpad</a></li> \n <li><a href="https://online.codingblocks.com/courses/complete-java-course-online">Java Master Course | Crux</a></li> \n <li><a 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">Advanced Courses</li> \n <li><a href="https://online.codingblocks.com/courses/python-django">Web Dev with Python-Django</a></li> \n <li><a href="https://online.codingblocks.com/courses/coding-interview-preparation-online">Interview Prep Bootcamp</a></li> \n <li><a href="https://online.codingblocks.com/courses/data-structures-and-algorithms-online-course-java-algo">Algo.Java Online</a></li> \n <li><a href="https://online.codingblocks.com/courses/android-app-training-online">Android App Development Online</a></li> \n <li><a 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">Expert Courses</li> \n <li><a href="https://online.codingblocks.com/courses/competitive-programming-course-online">Competitive Programming Online</a></li> \n <li><a href="https://online.codingblocks.com/courses/coding-interview-preparation-course-online-c-plus-plus">Interview Preparation - C++</a></li> \n <li><a href="https://online.codingblocks.com/courses/machine-learning-course-online">Machine Learning Master Course</a></li> \n <li><a href="https://online.codingblocks.com/courses/coding-interview-preparation-course-online-java">Interview Preparation - Java</a></li></ul>',this.c=t,k(n,"class","row justify-content-around m-5")},m(e,t){u(e,n,t)},p:t,i:t,o:t,d(e){e&&m(n)}}}customElements.define("classroom-courses",Be);class De extends ee{constructor(e){super(),X(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},null,Oe,l,{},null),e&&e.target&&u(e.target,this,e.anchor)}}function ze(e){let t,n,s,i,l,c,r,a,h,g,f,y,$,w,_,C,j,E;const T=[Ue,Ie],M=[];function L(e,t){return"classroom"==e[1]?0:1}return w=L(e),_=M[w]=T[w](e),{c(){t=p("div"),n=p("div"),s=p("div"),s.innerHTML='<div class="font-lg my-4 offset-3">Our Courses</div>',i=b(),l=p("div"),c=p("div"),c.innerHTML='<div>Online Courses</div> \n <a href="https://online.codingblocks.com/courses" target="_blank" class="font-mds orange">Explore all</a>',a=b(),h=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>',y=b(),$=p("div"),_.c(),k(s,"class","py-5 font-md bold hover-grey"),k(c,"class","offset-3"),k(l,"class",r="py-4 font-md bold hover-grey "+("online"==e[1]&&"selected")),k(g,"class","offset-3"),k(h,"class",f="py-4 font-md bold hover-grey "+("classroom"==e[1]&&"selected")),k(n,"class","cb-navbar-side col-3"),k($,"class","col-9 font-mds"),k(t,"class","row no-gutters cb-navbar-expanded"),x(t,"overflow","hidden")},m(o,r){u(o,t,r),d(t,n),d(n,s),d(n,i),d(n,l),d(l,c),d(n,a),d(n,h),d(h,g),d(t,y),d(t,$),M[w].m($,null),C=!0,j||(E=[v(l,"click",e[6]),v(h,"click",e[7])],j=!0)},p(e,t){(!C||2&t&&r!==(r="py-4 font-md bold hover-grey "+("online"==e[1]&&"selected")))&&k(l,"class",r),(!C||2&t&&f!==(f="py-4 font-md bold hover-grey "+("classroom"==e[1]&&"selected")))&&k(h,"class",f);let n=w;w=L(e),w!==n&&(F(),q(M[n],1,1,()=>{M[n]=null}),G(),_=M[w],_||(_=M[w]=T[w](e),_.c()),W(_,1),_.m($,null))},i(e){C||(W(_),C=!0)},o(e){q(_),C=!1},d(e){e&&m(t),M[w].d(),j=!1,o(E)}}}function Ie(e){let t,n;return t=new De({}),{c(){Z(t.$$.fragment)},m(e,s){K(t,e,s),n=!0},i(e){n||(W(t.$$.fragment,e),n=!0)},o(e){q(t.$$.fragment,e),n=!1},d(e){V(t,e)}}}function Ue(e){let t,n;return t=new Be({}),{c(){Z(t.$$.fragment)},m(e,s){K(t,e,s),n=!0},i(e){n||(W(t.$$.fragment,e),n=!0)},o(e){q(t.$$.fragment,e),n=!1},d(e){V(t,e)}}}function Se(e){let n,s,o,i,l,c,r,h,f,y,$,w,x,_,C,j,E,T,M,L,A,P,H,B,O,D,z,I,U=e[0]&&ze(e);return{c(){n=p("div"),s=p("div"),o=p("div"),i=p("span"),l=g("Courses\n "),c=p("img"),h=b(),f=p("div"),f.innerHTML='<a href="https://codingblocks.com/about.html" target="_blank">About Us</a>',y=b(),$=p("div"),$.innerHTML='<a href="https://codingblocks.com/resources" target="_blank">Resources</a>',w=b(),x=p("div"),x.innerHTML='<a href="https://codingblocks.com/campus-ambassador-program.html" target="_blank">Campus Ambassadors</a>',_=b(),C=p("div"),C.innerHTML='<a href="https://codingblocks.com/centres/" target="_blank">Contact Us</a>',j=b(),E=p("slot"),M=b(),U&&U.c(),L=b(),A=p("link"),P=b(),H=p("link"),B=b(),O=p("link"),this.c=t,a(c.src,r="https://minio.cb.lk/public/fa-5.13/svgs/solid/chevron-"+(e[0]?"up":"down")+".svg")||k(c,"src",r),k(c,"alt","chevron"),k(c,"class","d-inline s-10x10"),k(i,"class","px-3 pointer"),k(f,"class","px-3"),k($,"class","px-3"),k(x,"class","px-3"),k(C,"class","px-3"),k(E,"name","header"),k(o,"class",T="d-flex "+e[3]+" py-3 pr-5"),k(s,"class","border"),k(n,"class","a-hb d-md-block d-none"),k(A,"rel","stylesheet"),k(A,"href",e[2]),k(H,"href","https://fonts.googleapis.com/css?family=Nunito+Sans:400,600,700,800"),k(H,"rel","stylesheet"),k(O,"href","https://minio.codingblocks.com/hackerblocks-images/Gilroy.ttf"),k(O,"rel","stylesheet")},m(t,r){u(t,n,r),d(n,s),d(s,o),d(o,i),d(i,l),d(i,c),d(o,h),d(o,f),d(o,y),d(o,$),d(o,w),d(o,x),d(o,_),d(o,C),d(o,j),d(o,E),d(n,M),U&&U.m(n,null),u(t,L,r),u(t,A,r),u(t,P,r),u(t,H,r),u(t,B,r),u(t,O,r),D=!0,z||(I=v(i,"click",e[4]),z=!0)},p(e,[t]){(!D||1&t&&!a(c.src,r="https://minio.cb.lk/public/fa-5.13/svgs/solid/chevron-"+(e[0]?"up":"down")+".svg"))&&k(c,"src",r),(!D||8&t&&T!==(T="d-flex "+e[3]+" py-3 pr-5"))&&k(o,"class",T),e[0]?U?(U.p(e,t),1&t&&W(U,1)):(U=ze(e),U.c(),W(U,1),U.m(n,null)):U&&(F(),q(U,1,1,()=>{U=null}),G()),(!D||4&t)&&k(A,"href",e[2])},i(e){D||(W(U),D=!0)},o(e){q(U),D=!1},d(e){e&&m(n),U&&U.d(),e&&m(L),e&&m(A),e&&m(P),e&&m(H),e&&m(B),e&&m(O),z=!1,I()}}}function Re(e,t,n){let{topalign:s="center"}=t,{expanded:o=!1}=t,{tab:i="online"}=t,{css:l="https://unpkg.com/@coding-blocks/motley/dist/app.min.css"}=t,c="justify-content-center";return e.$$set=e=>{"topalign"in e&&n(5,s=e.topalign),"expanded"in e&&n(0,o=e.expanded),"tab"in e&&n(1,i=e.tab),"css"in e&&n(2,l=e.css)},e.$$.update=()=>{if(32&e.$$.dirty)switch(s){case"left":n(3,c="justify-content-start");break;case"right":n(3,c="justify-content-end");break;default:n(3,c="justify-content-center")}},[o,i,l,c,()=>n(0,o=!o),s,()=>n(1,i="online"),()=>n(1,i="classroom")]}customElements.define("online-courses",De);class Ne extends ee{constructor(e){super(),this.shadowRoot.innerHTML="<style>a:hover{text-decoration:underline}.hover-grey.selected:hover{background:unset}.a-hb{display:none}</style>",X(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},Re,Se,l,{topalign:5,expanded:0,tab:1,css:2},null),e&&(e.target&&u(e.target,this,e.anchor),e.props&&(this.$set(e.props),S()))}static get observedAttributes(){return["topalign","expanded","tab","css"]}get topalign(){return this.$$.ctx[5]}set topalign(e){this.$$set({topalign:e}),S()}get expanded(){return this.$$.ctx[0]}set expanded(e){this.$$set({expanded:e}),S()}get tab(){return this.$$.ctx[1]}set tab(e){this.$$set({tab:e}),S()}get css(){return this.$$.ctx[2]}set css(e){this.$$set({css:e}),S()}}function Je(e){let n,s,o,i,l,c,r,u,h,g,b,f,v,y;return{c(){n=p("script"),o=p("script"),l=p("script"),r=p("script"),h=p("script"),b=p("script"),v=p("script"),this.c=t,a(n.src,s="https://source.zoom.us/1.8.5/lib/vendor/react.min.js")||k(n,"src","https://source.zoom.us/1.8.5/lib/vendor/react.min.js"),a(o.src,i="https://source.zoom.us/1.8.5/lib/vendor/react-dom.min.js")||k(o,"src","https://source.zoom.us/1.8.5/lib/vendor/react-dom.min.js"),a(l.src,c="https://source.zoom.us/1.8.5/lib/vendor/redux.min.js")||k(l,"src","https://source.zoom.us/1.8.5/lib/vendor/redux.min.js"),a(r.src,u="https://source.zoom.us/1.8.5/lib/vendor/redux-thunk.min.js")||k(r,"src","https://source.zoom.us/1.8.5/lib/vendor/redux-thunk.min.js"),a(h.src,g="https://source.zoom.us/1.8.5/lib/vendor/jquery.min.js")||k(h,"src","https://source.zoom.us/1.8.5/lib/vendor/jquery.min.js"),a(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"),a(v.src,y="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(t,s){d(document.head,n),d(document.head,o),d(document.head,l),d(document.head,r),d(document.head,h),d(document.head,b),d(document.head,v),e[7](v)},p:t,i:t,o:t,d(t){m(n),m(o),m(l),m(r),m(h),m(b),m(v),e[7](null)}}}function Fe(e,t,n){let s,{leaveUrl:o="/"}=t,{meetingnumber:i}=t,{signature:l}=t,{apikey:c}=t,{username:r}=t,{useremail:a}=t;return M(async()=>{s.addEventListener("load",()=>{ZoomMtg.preLoadWasm(),ZoomMtg.prepareJssdk(),ZoomMtg.init({leaveUrl:o,success(){ZoomMtg.join({meetingNumber:i,userName:r,signature:l,apiKey:c,userEmail:a,success(e){console.log("success")},error(e){console.log(e)}})},error(e){console.log(e)}})})}),e.$$set=e=>{"leaveUrl"in e&&n(1,o=e.leaveUrl),"meetingnumber"in e&&n(2,i=e.meetingnumber),"signature"in e&&n(3,l=e.signature),"apikey"in e&&n(4,c=e.apikey),"username"in e&&n(5,r=e.username),"useremail"in e&&n(6,a=e.useremail)},[s,o,i,l,c,r,a,function(e){P[e?"unshift":"push"](()=>{s=e,n(0,s)})}]}customElements.define("cb-navbar",Ne);class Ge extends ee{constructor(e){super(),X(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},Fe,Je,l,{leaveUrl:1,meetingnumber:2,signature:3,apikey:4,username:5,useremail:6},null),e&&(e.target&&u(e.target,this,e.anchor),e.props&&(this.$set(e.props),S()))}static get observedAttributes(){return["leaveUrl","meetingnumber","signature","apikey","username","useremail"]}get leaveUrl(){return this.$$.ctx[1]}set leaveUrl(e){this.$$set({leaveUrl:e}),S()}get meetingnumber(){return this.$$.ctx[2]}set meetingnumber(e){this.$$set({meetingnumber:e}),S()}get signature(){return this.$$.ctx[3]}set signature(e){this.$$set({signature:e}),S()}get apikey(){return this.$$.ctx[4]}set apikey(e){this.$$set({apikey:e}),S()}get username(){return this.$$.ctx[5]}set username(e){this.$$set({username:e}),S()}get useremail(){return this.$$.ctx[6]}set useremail(e){this.$$set({useremail:e}),S()}}customElements.define("zoom-meeting",Ge);const{document:We}=Y;function qe(e){let t,n;return{c(){t=p("div"),n=g(e[3]),k(t,"class","red")},m(e,s){u(e,t,s),d(t,n)},p(e,t){8&t&&$(n,e[3])},d(e){e&&m(t)}}}function Ye(e){let t,n,s,i,l,c,r;return{c(){t=p("input"),n=b(),s=p("button"),i=g("Sign In"),k(t,"type","email"),k(t,"placeholder","Enter Email"),k(t,"class","w-100 mb-4"),k(s,"class","btn btn-primary w-100"),s.disabled=l=!e[0]},m(o,l){u(o,t,l),w(t,e[0]),u(o,n,l),u(o,s,l),d(s,i),c||(r=[v(t,"input",e[9]),v(s,"click",e[6])],c=!0)},p(e,n){1&n&&t.value!==e[0]&&w(t,e[0]),1&n&&l!==(l=!e[0])&&(s.disabled=l)},d(e){e&&m(t),e&&m(n),e&&m(s),c=!1,o(r)}}}function Ze(e){let t,n,s,i,l,c,r;return{c(){t=p("input"),n=b(),s=p("button"),i=g("Verify OTP"),k(t,"type","number"),k(t,"placeholder","Enter OTP"),k(t,"class","w-100 mb-4"),k(s,"class","btn btn-primary w-100"),s.disabled=l=!e[1]},m(o,l){u(o,t,l),w(t,e[1]),u(o,n,l),u(o,s,l),d(s,i),c||(r=[v(t,"input",e[8]),v(s,"click",e[7])],c=!0)},p(e,n){2&n&&y(t.value)!==e[1]&&w(t,e[1]),2&n&&l!==(l=!e[1])&&(s.disabled=l)},d(e){e&&m(t),e&&m(n),e&&m(s),c=!1,o(r)}}}function Ke(e){let n,s,i,l,c,r,a,h,g,f,y,$,w,_,C,j,E,T,M,L,A,P,H,B,O,D,z,I,U,S,R,N=e[3]&&qe(e);function J(e,t){return e[2]?Ze:Ye}let F=J(e),G=F(e);return{c(){n=p("link"),s=p("link"),i=p("link"),l=b(),c=p("div"),r=b(),a=p("div"),h=p("div"),g=p("h2"),g.textContent="Login / Signup",f=b(),y=p("button"),y.innerHTML='<img src="https://minio.codingblocks.com/public/cross-black.png" alt=""/>',$=b(),w=p("div"),w.textContent="Sign In with Email",_=b(),N&&N.c(),C=b(),G.c(),j=b(),E=p("div"),E.innerHTML='<span class="hr"></span> \n <span class="px-5">OR</span> \n <span class="hr"></span>',T=b(),M=p("a"),L=p("button"),L.innerHTML='<img class="logo" src="https://minio.codingblocks.com/public/google-logo.png" alt=""/> \n <span class="logo-text">Sign in with Google</span>',A=b(),P=p("a"),H=p("button"),H.innerHTML='<img class="logo" src="https://minio.codingblocks.com/public/facebook-logo.png" alt=""/> \n <span class="logo-text">Sign in with facebook</span>',B=b(),O=p("div"),O.innerHTML='<div class="header">Find your dream job</div> \n <div class="sub-header mb-4">Trsuted by 100k+ students</div> \n <img src="https://minio.codingblocks.com/public/company-logo-group.png" alt=""/>',D=b(),z=p("div"),z.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>',I=b(),U=p("link"),this.c=t,k(n,"rel","preconnect"),k(n,"href","https://fonts.googleapis.com"),k(s,"rel","preconnect"),k(s,"href","https://fonts.gstatic.com"),k(s,"crossorigin",""),k(i,"href","https://fonts.googleapis.com/css2?family=Mulish:wght@400;600&display=swap"),k(i,"rel","stylesheet"),k(c,"class","blurrer"),x(y,"color","#3B4254"),k(h,"class","d-flex justify-content-between align-items-center mb-5"),k(w,"class","mb-4"),k(E,"class","d-flex justify-content-center align-items-center"),x(E,"margin","30px 0px"),k(L,"class","btn btn-secondary white w-100 mb-3"),k(M,"href",e[4]),k(H,"class","btn btn-secondary white w-100 mb-5"),k(P,"href",e[5]),k(O,"class","mb-5 pt-5"),k(z,"class","position-absolute"),k(a,"id","cb-login-signup"),k(a,"class","cb-login-signup-container"),k(U,"rel","stylesheet"),k(U,"href","https://unpkg.com/@coding-blocks/motley@2.8.6/dist/account/app.min.css")},m(e,t){d(We.head,n),d(We.head,s),d(We.head,i),u(e,l,t),u(e,c,t),u(e,r,t),u(e,a,t),d(a,h),d(h,g),d(h,f),d(h,y),d(a,$),d(a,w),d(a,_),N&&N.m(a,null),d(a,C),G.m(a,null),d(a,j),d(a,E),d(a,T),d(a,M),d(M,L),d(a,A),d(a,P),d(P,H),d(a,B),d(a,O),d(a,D),d(a,z),u(e,I,t),u(e,U,t),S||(R=[v(c,"click",Ve),v(y,"click",Ve)],S=!0)},p(e,[t]){e[3]?N?N.p(e,t):(N=qe(e),N.c(),N.m(a,C)):N&&(N.d(1),N=null),F===(F=J(e))&&G?G.p(e,t):(G.d(1),G=F(e),G&&(G.c(),G.m(a,j)))},i:t,o:t,d(e){m(n),m(s),m(i),e&&m(l),e&&m(c),e&&m(r),e&&m(a),N&&N.d(),G.d(),e&&m(I),e&&m(U),S=!1,o(R)}}}function Ve(){document.getElementsByTagName("cb-login-signup")[0].classList.add("hide-cb-login-signup-prompt")}function Qe(e,t,n){const s=window.location.host.split(".")[0],o={hack:2146237097,online:5633768694,hire:4190457915,"code-gym":9706874989},i={sendOtp:{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","code-gym":"https://code-gym-api.codingblocks.com/api/jwt/otp"},verifyOtp:{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","code-gym":"https://code-gym-api.codingblocks.com/api/jwt/verify"}};let l=null,c=null,r=null,a=null;localStorage.getItem("cb_login_prompt");return[l,c,r,a,`https://account.codingblocks.com/login/google/v2?redirect_uri=https://${s}.codingblocks.com&client=${s}-codingblocks&client_id=${o[s]}`,`https://account.codingblocks.com/login/facebook/v2?redirect_uri=https://${s}.codingblocks.com&client=${s}-codingblocks&client_id=${o[s]}`,async function(){const e=await fetch(i.sendOtp[s]||"http://localhost:3000/api/v2/jwt/otp",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:l})});let{id:t}=await e.json();n(2,r=t)},async function(){n(3,a=null);const e=await fetch(i.verifyOtp[s]||"http://localhost:3000/api/v2/jwt/otp/verify",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({email:l,otp_id:r,otp:c})});if(e.ok)window.location.reload();else{const{message:t}=await e.json();t&&n(3,a=t)}},function(){c=y(this.value),n(1,c)},function(){l=this.value,n(0,l)}]}class Xe extends ee{constructor(e){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},Qe,Ke,l,{},null),e&&e.target&&u(e.target,this,e.anchor)}}customElements.define("cb-login-signup",Xe),e.banner=re,e.cb_login_signup=Xe,e.cb_navbar=Ne,e.demographic_form=xe,e.mobile_cb_navbar=Pe,e.zoom_meeting=Ge,Object.defineProperty(e,"__esModule",{value:!0})}));

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

"outDir": "dist/",
"version": "0.2.2",
"version": "0.2.3",
"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