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

@coding-blocks/web-components

Package Overview
Dependencies
Maintainers
6
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

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

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

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

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

"outDir": "dist/",
"version": "1.12.2",
"version": "1.12.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