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
5
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 0.0.10 to 0.0.11

2

dist/demographicForm.js

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

var demographicForm=function(){"use strict";function t(){}function e(t){return t()}function n(){return Object.create(null)}function l(t){t.forEach(e)}function o(t){return"function"==typeof t}function r(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function c(t,e){t.appendChild(e)}function u(t,e,n){t.insertBefore(e,n||null)}function i(t){t.parentNode.removeChild(t)}function a(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function s(t){return document.createElement(t)}function d(t){return document.createTextNode(t)}function f(){return d(" ")}function h(t,e,n,l){return t.addEventListener(e,n,l),()=>t.removeEventListener(e,n,l)}function p(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function m(t,e){e=""+e,t.data!==e&&(t.data=e)}function g(t,e){(null!=e||t.value)&&(t.value=e)}function v(t,e){for(let n=0;n<t.options.length;n+=1){const l=t.options[n];if(l.__value===e)return void(l.selected=!0)}}function _(t){const e=t.querySelector(":checked")||t.options[0];return e&&e.__value}let b;function y(t){b=t}function $(){if(!b)throw new Error("Function called outside component initialization");return b}function x(){const t=$();return(e,n)=>{const l=t.$$.callbacks[e];if(l){const o=function(t,e){const n=document.createEvent("CustomEvent");return n.initCustomEvent(t,!1,!1,e),n}(e,n);l.slice().forEach(e=>{e.call(t,o)})}}}const C=[],w=[],E=[],k=[],j=Promise.resolve();let I=!1;function N(t){E.push(t)}const T=new Set;function L(){do{for(;C.length;){const t=C.shift();y(t),U(t.$$)}for(;w.length;)w.pop()();for(let t=0;t<E.length;t+=1){const e=E[t];T.has(e)||(T.add(e),e())}E.length=0}while(C.length);for(;k.length;)k.pop()();I=!1,T.clear()}function U(t){if(null!==t.fragment){t.update(),l(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(N)}}const A=new Set;function B(t,e){-1===t.$$.dirty[0]&&(C.push(t),I||(I=!0,j.then(L)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function H(r,c,u,i,a,s,d=[-1]){const f=b;y(r);const h=c.props||{},p=r.$$={fragment:null,ctx:null,props:s,update:t,not_equal:a,bound:n(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(f?f.$$.context:[]),callbacks:n(),dirty:d};let m=!1;var g,v;p.ctx=u?u(r,h,(t,e,...n)=>{const l=n.length?n[0]:e;return p.ctx&&a(p.ctx[t],p.ctx[t]=l)&&(p.bound[t]&&p.bound[t](l),m&&B(r,t)),e}):[],p.update(),m=!0,l(p.before_update),p.fragment=!!i&&i(p.ctx),c.target&&(c.hydrate?p.fragment&&p.fragment.l(function(t){return Array.from(t.childNodes)}(c.target)):p.fragment&&p.fragment.c(),c.intro&&((g=r.$$.fragment)&&g.i&&(A.delete(g),g.i(v))),function(t,n,r){const{fragment:c,on_mount:u,on_destroy:i,after_update:a}=t.$$;c&&c.m(n,r),N(()=>{const n=u.map(e).filter(o);i?i.push(...n):l(n),t.$$.on_mount=[]}),a.forEach(N)}(r,c.target,c.anchor),L()),y(f)}let M;"function"==typeof HTMLElement&&(M=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}$destroy(){!function(t,e){const n=t.$$;null!==n.fragment&&(l(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}(this,1),this.$destroy=t}$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(){}});var S=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())}}("http://test.oneauth/api");function O(t,e,n){const l=t.slice();return l[15]=e[n],l}function P(t,e,n){const l=t.slice();return l[18]=e[n],l}function Y(t,e,n){const l=t.slice();return l[21]=e[n],l}function R(t){let e,n,l;function o(t,e){return t[7].success?F:q}let r=o(t),a=r(t);return{c(){e=s("div"),n=s("div"),n.innerHTML='<div class="font-md bold">\n Get INR 1000 Credits\n </div> \n <div class="mt-4">\n Complete your Profile &amp; get INR 1000 credits in your wallet\n </div>',l=f(),a.c(),p(n,"class","bg-gradient-pink white p-4"),p(e,"class","border-card b-red p-0")},m(t,o){u(t,e,o),c(e,n),c(e,l),a.m(e,null)},p(t,n){r===(r=o(t))&&a?a.p(t,n):(a.d(1),a=r(t),a&&(a.c(),a.m(e,null)))},d(t){t&&i(e),a.d()}}}function q(t){let e,n,o,r,d,m,g,_,b,y,$,x,C,w,E,k=t[4],j=[];for(let e=0;e<k.length;e+=1)j[e]=G(Y(t,k,e));let I=1===t[0]&&z(t),T=t[8],L=[];for(let e=0;e<T.length;e+=1)L[e]=J(P(t,T,e));let U=t[5],A=[];for(let e=0;e<U.length;e+=1)A[e]=D(O(t,U,e));let B=t[7].error&&K(t);return{c(){e=s("div"),n=s("select"),o=s("option"),o.textContent="-- College --";for(let t=0;t<j.length;t+=1)j[t].c();r=f(),I&&I.c(),d=f(),m=s("select"),g=s("option"),g.textContent="-- Graduation Year --";for(let t=0;t<L.length;t+=1)L[t].c();_=f(),b=s("select"),y=s("option"),y.textContent="-- Branch --";for(let t=0;t<A.length;t+=1)A[t].c();$=f(),x=s("div"),C=s("button"),C.textContent="Update Profile",w=f(),B&&B.c(),o.disabled=!0,o.selected=!0,o.__value="",o.value=o.__value,p(n,"class","input-text br-50 my-2"),void 0===t[0]&&N(()=>t[11].call(n)),g.disabled=!0,g.selected=!0,g.__value="",g.value=g.__value,p(m,"class","input-text br-50 my-2"),void 0===t[2]&&N(()=>t[13].call(m)),y.disabled=!0,y.selected=!0,y.__value="",y.value=y.__value,p(b,"class","input-text br-50 my-2"),void 0===t[1]&&N(()=>t[14].call(b)),p(C,"id","updatedButton"),p(C,"class","button-solid button-orange"),p(x,"class","d-flex justify-content-center mt-5"),p(e,"class","py-4 px-5 t-align-center")},m(l,i){u(l,e,i),c(e,n),c(n,o);for(let t=0;t<j.length;t+=1)j[t].m(n,null);v(n,t[0]),c(e,r),I&&I.m(e,null),c(e,d),c(e,m),c(m,g);for(let t=0;t<L.length;t+=1)L[t].m(m,null);v(m,t[2]),c(e,_),c(e,b),c(b,y);for(let t=0;t<A.length;t+=1)A[t].m(b,null);v(b,t[1]),c(e,$),c(e,x),c(x,C),c(e,w),B&&B.m(e,null),E=[h(n,"change",t[11]),h(m,"change",t[13]),h(b,"change",t[14]),h(C,"click",t[9])]},p(t,l){if(17&l){let e;for(k=t[4],e=0;e<k.length;e+=1){const o=Y(t,k,e);j[e]?j[e].p(o,l):(j[e]=G(o),j[e].c(),j[e].m(n,null))}for(;e<j.length;e+=1)j[e].d(1);j.length=k.length}if(1&l&&v(n,t[0]),1===t[0]?I?I.p(t,l):(I=z(t),I.c(),I.m(e,d)):I&&(I.d(1),I=null),260&l){let e;for(T=t[8],e=0;e<T.length;e+=1){const n=P(t,T,e);L[e]?L[e].p(n,l):(L[e]=J(n),L[e].c(),L[e].m(m,null))}for(;e<L.length;e+=1)L[e].d(1);L.length=T.length}if(4&l&&v(m,t[2]),34&l){let e;for(U=t[5],e=0;e<U.length;e+=1){const n=O(t,U,e);A[e]?A[e].p(n,l):(A[e]=D(n),A[e].c(),A[e].m(b,null))}for(;e<A.length;e+=1)A[e].d(1);A.length=U.length}2&l&&v(b,t[1]),t[7].error?B?B.p(t,l):(B=K(t),B.c(),B.m(e,null)):B&&(B.d(1),B=null)},d(t){t&&i(e),a(j,t),I&&I.d(),a(L,t),a(A,t),B&&B.d(),l(E)}}}function F(e){let n;return{c(){n=s("div"),n.innerHTML='<div class="font-md gradient-text extra-bold mt-4">Your profile has been updated !</div>',p(n,"class","my-5 t-align-c")},m(t,e){u(t,n,e)},p:t,d(t){t&&i(n)}}}function G(t){let e,n,l,o,r,a=t[21].name+"";return{c(){e=s("option"),n=d(a),l=f(),e.__value=o=t[21].id,e.value=e.__value,e.selected=r=t[21].id===t[0]},m(t,o){u(t,e,o),c(e,n),c(e,l)},p(t,l){16&l&&a!==(a=t[21].name+"")&&m(n,a),16&l&&o!==(o=t[21].id)&&(e.__value=o),e.value=e.__value,17&l&&r!==(r=t[21].id===t[0])&&(e.selected=r)},d(t){t&&i(e)}}}function z(t){let e,n;return{c(){e=s("input"),p(e,"type","text"),p(e,"placeholder","Other College Name"),p(e,"class","input-text br-50 my-2")},m(l,o){u(l,e,o),g(e,t[3]),n=h(e,"input",t[12])},p(t,n){8&n&&e.value!==t[3]&&g(e,t[3])},d(t){t&&i(e),n()}}}function J(t){let e,n,l,o,r,a=t[18]+"";return{c(){e=s("option"),n=d(a),l=f(),e.__value=o=t[18],e.value=e.__value,e.selected=r=t[18]===t[2]},m(t,o){u(t,e,o),c(e,n),c(e,l)},p(t,n){4&n&&r!==(r=t[18]===t[2])&&(e.selected=r)},d(t){t&&i(e)}}}function D(t){let e,n,l,o,r,a=t[15].name+"";return{c(){e=s("option"),n=d(a),l=f(),e.__value=o=t[15].id,e.value=e.__value,e.selected=r=t[15].id===t[1]},m(t,o){u(t,e,o),c(e,n),c(e,l)},p(t,l){32&l&&a!==(a=t[15].name+"")&&m(n,a),32&l&&o!==(o=t[15].id)&&(e.__value=o),e.value=e.__value,34&l&&r!==(r=t[15].id===t[1])&&(e.selected=r)},d(t){t&&i(e)}}}function K(t){let e,n,l,o=t[7].error+"";return{c(){e=s("div"),n=s("p"),l=d(o),p(n,"class","red"),p(e,"class","row justify-content-center")},m(t,o){u(t,e,o),c(e,n),c(n,l)},p(t,e){128&e&&o!==(o=t[7].error+"")&&m(l,o)},d(t){t&&i(e)}}}function Q(e){let n,l,o=e[6].id&&1===e[6].demographic.collegeId&&R(e);return{c(){o&&o.c(),n=f(),l=s("link"),this.c=t,p(l,"rel","stylesheet"),p(l,"href","https://unpkg.com/@coding-blocks/motley@0.7.4/dist/online-cb/app.min.css")},m(t,e){o&&o.m(t,e),u(t,n,e),u(t,l,e)},p(t,[e]){t[6].id&&1===t[6].demographic.collegeId?o?o.p(t,e):(o=R(t),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},i:t,o:t,d(t){o&&o.d(t),t&&i(n),t&&i(l)}}}function V(t,e,n){let l=null,o=null,r=null,c="",u=[],i=[],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],s={},d={success:null,error:null};const f=x();var h;h=async()=>{n(6,s=await S.fetchUser()),s.id&&(n(4,u=await S.fetchColleges()),n(5,i=await S.fetchBranches()),n(2,r=s.graduationYear),n(0,l=s.demographic.collegeId),n(1,o=s.demographic.branchId),n(3,c=s.demographic.otherCollege))},$().$$.on_mount.push(h);return[l,o,r,c,u,i,s,d,a,async()=>{try{const t=await S.updateUser({gradYear:r,collegeId:l,branchId:o,otherCollege:c});f("updated",t),n(7,d={success:t.success}),setTimeout(async()=>{n(6,s=await S.fetchUser())},2e3)}catch(t){n(7,d={error:t})}},f,function(){l=_(this),n(0,l),n(4,u)},function(){c=this.value,n(3,c)},function(){r=_(this),n(2,r),n(8,a)},function(){o=_(this),n(1,o),n(5,i)}]}class W extends M{constructor(t){super(),H(this,{target:this.shadowRoot},V,Q,r,{}),t&&t.target&&u(t.target,this,t.anchor)}}return customElements.define("demographic-form",W),W}();
var demographicForm=function(){"use strict";function t(){}function e(t){return t()}function n(){return Object.create(null)}function o(t){t.forEach(e)}function l(t){return"function"==typeof t}function r(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function c(t,e){t.appendChild(e)}function u(t,e,n){t.insertBefore(e,n||null)}function i(t){t.parentNode.removeChild(t)}function a(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function s(t){return document.createElement(t)}function d(t){return document.createTextNode(t)}function f(){return d(" ")}function h(t,e,n,o){return t.addEventListener(e,n,o),()=>t.removeEventListener(e,n,o)}function p(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function m(t,e){e=""+e,t.data!==e&&(t.data=e)}function g(t,e){(null!=e||t.value)&&(t.value=e)}function v(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)}}function _(t){const e=t.querySelector(":checked")||t.options[0];return e&&e.__value}let b;function y(t){b=t}function $(){if(!b)throw new Error("Function called outside component initialization");return b}function x(){const t=$();return(e,n)=>{const o=t.$$.callbacks[e];if(o){const l=function(t,e){const n=document.createEvent("CustomEvent");return n.initCustomEvent(t,!1,!1,e),n}(e,n);o.slice().forEach(e=>{e.call(t,l)})}}}const C=[],w=[],E=[],k=[],j=Promise.resolve();let I=!1;function N(t){E.push(t)}const T=new Set;function L(){do{for(;C.length;){const t=C.shift();y(t),U(t.$$)}for(;w.length;)w.pop()();for(let t=0;t<E.length;t+=1){const e=E[t];T.has(e)||(T.add(e),e())}E.length=0}while(C.length);for(;k.length;)k.pop()();I=!1,T.clear()}function U(t){if(null!==t.fragment){t.update(),o(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(N)}}const A=new Set;function B(t,e){-1===t.$$.dirty[0]&&(C.push(t),I||(I=!0,j.then(L)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function H(r,c,u,i,a,s,d=[-1]){const f=b;y(r);const h=c.props||{},p=r.$$={fragment:null,ctx:null,props:s,update:t,not_equal:a,bound:n(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(f?f.$$.context:[]),callbacks:n(),dirty:d};let m=!1;var g,v;p.ctx=u?u(r,h,(t,e,...n)=>{const o=n.length?n[0]:e;return p.ctx&&a(p.ctx[t],p.ctx[t]=o)&&(p.bound[t]&&p.bound[t](o),m&&B(r,t)),e}):[],p.update(),m=!0,o(p.before_update),p.fragment=!!i&&i(p.ctx),c.target&&(c.hydrate?p.fragment&&p.fragment.l(function(t){return Array.from(t.childNodes)}(c.target)):p.fragment&&p.fragment.c(),c.intro&&((g=r.$$.fragment)&&g.i&&(A.delete(g),g.i(v))),function(t,n,r){const{fragment:c,on_mount:u,on_destroy:i,after_update:a}=t.$$;c&&c.m(n,r),N(()=>{const n=u.map(e).filter(l);i?i.push(...n):o(n),t.$$.on_mount=[]}),a.forEach(N)}(r,c.target,c.anchor),L()),y(f)}let M;"function"==typeof HTMLElement&&(M=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}$destroy(){!function(t,e){const n=t.$$;null!==n.fragment&&(o(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}(this,1),this.$destroy=t}$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(){}});var S=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 O(t,e,n){const o=t.slice();return o[15]=e[n],o}function P(t,e,n){const o=t.slice();return o[18]=e[n],o}function Y(t,e,n){const o=t.slice();return o[21]=e[n],o}function R(t){let e,n,o;function l(t,e){return t[7].success?F:q}let r=l(t),a=r(t);return{c(){e=s("div"),n=s("div"),n.innerHTML='<div class="font-md bold">\n Get INR 1000 Credits\n </div> \n <div class="mt-4">\n Complete your Profile &amp; get INR 1000 credits in your wallet\n </div>',o=f(),a.c(),p(n,"class","bg-gradient-pink white p-4"),p(e,"class","border-card b-red p-0")},m(t,l){u(t,e,l),c(e,n),c(e,o),a.m(e,null)},p(t,n){r===(r=l(t))&&a?a.p(t,n):(a.d(1),a=r(t),a&&(a.c(),a.m(e,null)))},d(t){t&&i(e),a.d()}}}function q(t){let e,n,l,r,d,m,g,_,b,y,$,x,C,w,E,k=t[4],j=[];for(let e=0;e<k.length;e+=1)j[e]=G(Y(t,k,e));let I=1===t[0]&&z(t),T=t[8],L=[];for(let e=0;e<T.length;e+=1)L[e]=J(P(t,T,e));let U=t[5],A=[];for(let e=0;e<U.length;e+=1)A[e]=D(O(t,U,e));let B=t[7].error&&K(t);return{c(){e=s("div"),n=s("select"),l=s("option"),l.textContent="-- College --";for(let t=0;t<j.length;t+=1)j[t].c();r=f(),I&&I.c(),d=f(),m=s("select"),g=s("option"),g.textContent="-- Graduation Year --";for(let t=0;t<L.length;t+=1)L[t].c();_=f(),b=s("select"),y=s("option"),y.textContent="-- Branch --";for(let t=0;t<A.length;t+=1)A[t].c();$=f(),x=s("div"),C=s("button"),C.textContent="Update Profile",w=f(),B&&B.c(),l.disabled=!0,l.selected=!0,l.__value="",l.value=l.__value,p(n,"class","input-text br-50 my-2"),void 0===t[0]&&N(()=>t[11].call(n)),g.disabled=!0,g.selected=!0,g.__value="",g.value=g.__value,p(m,"class","input-text br-50 my-2"),void 0===t[2]&&N(()=>t[13].call(m)),y.disabled=!0,y.selected=!0,y.__value="",y.value=y.__value,p(b,"class","input-text br-50 my-2"),void 0===t[1]&&N(()=>t[14].call(b)),p(C,"id","updatedButton"),p(C,"class","button-solid button-orange"),p(x,"class","d-flex justify-content-center mt-5"),p(e,"class","py-4 px-5 t-align-center")},m(o,i){u(o,e,i),c(e,n),c(n,l);for(let t=0;t<j.length;t+=1)j[t].m(n,null);v(n,t[0]),c(e,r),I&&I.m(e,null),c(e,d),c(e,m),c(m,g);for(let t=0;t<L.length;t+=1)L[t].m(m,null);v(m,t[2]),c(e,_),c(e,b),c(b,y);for(let t=0;t<A.length;t+=1)A[t].m(b,null);v(b,t[1]),c(e,$),c(e,x),c(x,C),c(e,w),B&&B.m(e,null),E=[h(n,"change",t[11]),h(m,"change",t[13]),h(b,"change",t[14]),h(C,"click",t[9])]},p(t,o){if(17&o){let e;for(k=t[4],e=0;e<k.length;e+=1){const l=Y(t,k,e);j[e]?j[e].p(l,o):(j[e]=G(l),j[e].c(),j[e].m(n,null))}for(;e<j.length;e+=1)j[e].d(1);j.length=k.length}if(1&o&&v(n,t[0]),1===t[0]?I?I.p(t,o):(I=z(t),I.c(),I.m(e,d)):I&&(I.d(1),I=null),260&o){let e;for(T=t[8],e=0;e<T.length;e+=1){const n=P(t,T,e);L[e]?L[e].p(n,o):(L[e]=J(n),L[e].c(),L[e].m(m,null))}for(;e<L.length;e+=1)L[e].d(1);L.length=T.length}if(4&o&&v(m,t[2]),34&o){let e;for(U=t[5],e=0;e<U.length;e+=1){const n=O(t,U,e);A[e]?A[e].p(n,o):(A[e]=D(n),A[e].c(),A[e].m(b,null))}for(;e<A.length;e+=1)A[e].d(1);A.length=U.length}2&o&&v(b,t[1]),t[7].error?B?B.p(t,o):(B=K(t),B.c(),B.m(e,null)):B&&(B.d(1),B=null)},d(t){t&&i(e),a(j,t),I&&I.d(),a(L,t),a(A,t),B&&B.d(),o(E)}}}function F(e){let n;return{c(){n=s("div"),n.innerHTML='<div class="font-md gradient-text extra-bold mt-4">Your profile has been updated !</div>',p(n,"class","my-5 t-align-c")},m(t,e){u(t,n,e)},p:t,d(t){t&&i(n)}}}function G(t){let e,n,o,l,r,a=t[21].name+"";return{c(){e=s("option"),n=d(a),o=f(),e.__value=l=t[21].id,e.value=e.__value,e.selected=r=t[21].id===t[0]},m(t,l){u(t,e,l),c(e,n),c(e,o)},p(t,o){16&o&&a!==(a=t[21].name+"")&&m(n,a),16&o&&l!==(l=t[21].id)&&(e.__value=l),e.value=e.__value,17&o&&r!==(r=t[21].id===t[0])&&(e.selected=r)},d(t){t&&i(e)}}}function z(t){let e,n;return{c(){e=s("input"),p(e,"type","text"),p(e,"placeholder","Other College Name"),p(e,"class","input-text br-50 my-2")},m(o,l){u(o,e,l),g(e,t[3]),n=h(e,"input",t[12])},p(t,n){8&n&&e.value!==t[3]&&g(e,t[3])},d(t){t&&i(e),n()}}}function J(t){let e,n,o,l,r,a=t[18]+"";return{c(){e=s("option"),n=d(a),o=f(),e.__value=l=t[18],e.value=e.__value,e.selected=r=t[18]===t[2]},m(t,l){u(t,e,l),c(e,n),c(e,o)},p(t,n){4&n&&r!==(r=t[18]===t[2])&&(e.selected=r)},d(t){t&&i(e)}}}function D(t){let e,n,o,l,r,a=t[15].name+"";return{c(){e=s("option"),n=d(a),o=f(),e.__value=l=t[15].id,e.value=e.__value,e.selected=r=t[15].id===t[1]},m(t,l){u(t,e,l),c(e,n),c(e,o)},p(t,o){32&o&&a!==(a=t[15].name+"")&&m(n,a),32&o&&l!==(l=t[15].id)&&(e.__value=l),e.value=e.__value,34&o&&r!==(r=t[15].id===t[1])&&(e.selected=r)},d(t){t&&i(e)}}}function K(t){let e,n,o,l=t[7].error+"";return{c(){e=s("div"),n=s("p"),o=d(l),p(n,"class","red"),p(e,"class","row justify-content-center")},m(t,l){u(t,e,l),c(e,n),c(n,o)},p(t,e){128&e&&l!==(l=t[7].error+"")&&m(o,l)},d(t){t&&i(e)}}}function Q(e){let n,o,l=e[6].id&&1===e[6].demographic.collegeId&&!e[6].demographic.otherCollege&&R(e);return{c(){l&&l.c(),n=f(),o=s("link"),this.c=t,p(o,"rel","stylesheet"),p(o,"href","https://unpkg.com/@coding-blocks/motley@0.7.4/dist/online-cb/app.min.css")},m(t,e){l&&l.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?l?l.p(t,e):(l=R(t),l.c(),l.m(n.parentNode,n)):l&&(l.d(1),l=null)},i:t,o:t,d(t){l&&l.d(t),t&&i(n),t&&i(o)}}}function V(t,e,n){let o=null,l=null,r=null,c="",u=[],i=[],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],s={},d={success:null,error:null};const f=x();var h;h=async()=>{n(6,s=await S.fetchUser()),s.id&&(n(4,u=await S.fetchColleges()),n(5,i=await S.fetchBranches()),n(2,r=s.graduationYear),n(0,o=s.demographic.collegeId),n(1,l=s.demographic.branchId),n(3,c=s.demographic.otherCollege))},$().$$.on_mount.push(h);return[o,l,r,c,u,i,s,d,a,async()=>{try{const t=await S.updateUser({gradYear:r,collegeId:o,branchId:l,otherCollege:c});f("updated",t),n(7,d={success:t.success}),setTimeout(async()=>{n(6,s=await S.fetchUser())},2e3)}catch(t){n(7,d={error:t})}},f,function(){o=_(this),n(0,o),n(4,u)},function(){c=this.value,n(3,c)},function(){r=_(this),n(2,r),n(8,a)},function(){l=_(this),n(1,l),n(5,i)}]}class W extends M{constructor(t){super(),H(this,{target:this.shadowRoot},V,Q,r,{}),t&&t.target&&u(t.target,this,t.anchor)}}return customElements.define("demographic-form",W),W}();

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

this.index=this.index||{},this.index.js=function(t){"use strict";function e(){}function n(t){return t()}function s(){return Object.create(null)}function o(t){t.forEach(n)}function l(t){return"function"==typeof t}function c(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function r(t,e){t.appendChild(e)}function a(t,e,n){t.insertBefore(e,n||null)}function i(t){t.parentNode.removeChild(t)}function d(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function h(t){return document.createElement(t)}function u(t){return document.createTextNode(t)}function m(){return u(" ")}function g(t,e,n,s){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n,s)}function p(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function f(t,e){e=""+e,t.data!==e&&(t.data=e)}function v(t,e){(null!=e||t.value)&&(t.value=e)}function b(t,e){for(let n=0;n<t.options.length;n+=1){const s=t.options[n];if(s.__value===e)return void(s.selected=!0)}}function k(t){const e=t.querySelector(":checked")||t.options[0];return e&&e.__value}let y;function $(t){y=t}function _(){if(!y)throw new Error("Function called outside component initialization");return y}function w(t){_().$$.on_mount.push(t)}function x(){const t=_();return(e,n)=>{const s=t.$$.callbacks[e];if(s){const o=function(t,e){const n=document.createEvent("CustomEvent");return n.initCustomEvent(t,!1,!1,e),n}(e,n);s.slice().forEach(e=>{e.call(t,o)})}}}const C=[],j=[],A=[],T=[],M=Promise.resolve();let L=!1;function P(t){A.push(t)}const E=new Set;function H(){do{for(;C.length;){const t=C.shift();$(t),D(t.$$)}for(;j.length;)j.pop()();for(let t=0;t<A.length;t+=1){const e=A[t];E.has(e)||(E.add(e),e())}A.length=0}while(C.length);for(;T.length;)T.pop()();L=!1,E.clear()}function D(t){if(null!==t.fragment){t.update(),o(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(P)}}const B=new Set;let I,U;function J(){I={r:0,c:[],p:I}}function R(){I.r||o(I.c),I=I.p}function O(t,e){t&&t.i&&(B.delete(t),t.i(e))}function N(t,e,n,s){if(t&&t.o){if(B.has(t))return;B.add(t),I.c.push(()=>{B.delete(t),s&&(n&&t.d(1),s())}),t.o(e)}}function F(t){t&&t.c()}function S(t,e,s){const{fragment:c,on_mount:r,on_destroy:a,after_update:i}=t.$$;c&&c.m(e,s),P(()=>{const e=r.map(n).filter(l);a?a.push(...e):o(e),t.$$.on_mount=[]}),i.forEach(P)}function G(t,e){const n=t.$$;null!==n.fragment&&(o(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function W(t,e){-1===t.$$.dirty[0]&&(C.push(t),L||(L=!0,M.then(H)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Y(t,n,l,c,r,a,i=[-1]){const d=y;$(t);const h=n.props||{},u=t.$$={fragment:null,ctx:null,props:a,update:e,not_equal:r,bound:s(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(d?d.$$.context:[]),callbacks:s(),dirty:i};let m=!1;u.ctx=l?l(t,h,(e,n,...s)=>{const o=s.length?s[0]:n;return u.ctx&&r(u.ctx[e],u.ctx[e]=o)&&(u.bound[e]&&u.bound[e](o),m&&W(t,e)),n}):[],u.update(),m=!0,o(u.before_update),u.fragment=!!c&&c(u.ctx),n.target&&(n.hydrate?u.fragment&&u.fragment.l(function(t){return Array.from(t.childNodes)}(n.target)):u.fragment&&u.fragment.c(),n.intro&&O(t.$$.fragment),S(t,n.target,n.anchor),H()),$(d)}function K(t){let e,n,s,o,l=t[0]&&q(t);return{c(){e=h("a"),l&&l.c(),n=m(),s=h("img"),s.src!==(o=t[1])&&p(s,"src",o),p(s,"alt",""),p(s,"width","100%"),p(e,"class","d-block"),p(e,"target","_blank"),p(e,"href",t[2])},m(t,o){a(t,e,o),l&&l.m(e,null),r(e,n),r(e,s)},p(t,c){t[0]?l?l.p(t,c):(l=q(t),l.c(),l.m(e,n)):l&&(l.d(1),l=null),2&c&&s.src!==(o=t[1])&&p(s,"src",o),4&c&&p(e,"href",t[2])},d(t){t&&i(e),l&&l.d()}}}function q(t){let e,n,s;return{c(){e=h("img"),p(e,"class","close-icon"),e.src!==(n=t[4])&&p(e,"src",n),p(e,"alt","close")},m(n,o){var l;a(n,e,o),s=g(e,"click",function(t){return function(e){return e.stopPropagation(),t.call(this,e)}}((l=t[5],function(t){return t.preventDefault(),l.call(this,t)})),!0)},p(t,s){16&s&&e.src!==(n=t[4])&&p(e,"src",n)},d(t){t&&i(e),s()}}}function z(t){let n,s=t[3]&&K(t);return{c(){s&&s.c(),n=u(""),this.c=e},m(t,e){s&&s.m(t,e),a(t,n,e)},p(t,[e]){t[3]?s?s.p(t,e):(s=K(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&&i(n)}}}function V(t,e,n){let s="",o="",l=!0,c="",{showToggle:r=!0}=e,{theme:a="light"}=e;w(async()=>{const t=await fetch("https://hack-api.codingblocks.com/api/v2/dashboard-banners"),{data:[e]}=await t.json(),l=e.attributes;n(1,s=l["image-url"]),n(2,o=l.link),n(4,c="light"===a?"https://minio.codingblocks.com/motley/wrong_g_white.min.png":"https://minio.codingblocks.com/motley/wrong_g.png")});return t.$set=t=>{"showToggle"in t&&n(0,r=t.showToggle),"theme"in t&&n(6,a=t.theme)},[r,s,o,l,c,()=>{n(3,l=!l)},a]}"function"==typeof HTMLElement&&(U=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}$destroy(){G(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(){}});class Q extends U{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}</style>",Y(this,{target:this.shadowRoot},V,z,c,{showToggle:0,theme:6}),t&&(t.target&&a(t.target,this,t.anchor),t.props&&(this.$set(t.props),H()))}static get observedAttributes(){return["showToggle","theme"]}get showToggle(){return this.$$.ctx[0]}set showToggle(t){this.$set({showToggle:t}),H()}get theme(){return this.$$.ctx[6]}set theme(t){this.$set({theme:t}),H()}}customElements.define("promotion-banner",Q);var Z=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())}}("http://test.oneauth/api");function X(t,e,n){const s=t.slice();return s[15]=e[n],s}function tt(t,e,n){const s=t.slice();return s[18]=e[n],s}function et(t,e,n){const s=t.slice();return s[21]=e[n],s}function nt(t){let e,n,s;function o(t,e){return t[7].success?ot:st}let l=o(t),c=l(t);return{c(){e=h("div"),n=h("div"),n.innerHTML='<div class="font-md bold">\n Get INR 1000 Credits\n </div> \n <div class="mt-4">\n Complete your Profile &amp; get INR 1000 credits in your wallet\n </div>',s=m(),c.c(),p(n,"class","bg-gradient-pink white p-4"),p(e,"class","border-card b-red p-0")},m(t,o){a(t,e,o),r(e,n),r(e,s),c.m(e,null)},p(t,n){l===(l=o(t))&&c?c.p(t,n):(c.d(1),c=l(t),c&&(c.c(),c.m(e,null)))},d(t){t&&i(e),c.d()}}}function st(t){let e,n,s,l,c,u,f,v,k,y,$,_,w,x,C,j=t[4],A=[];for(let e=0;e<j.length;e+=1)A[e]=lt(et(t,j,e));let T=1===t[0]&&ct(t),M=t[8],L=[];for(let e=0;e<M.length;e+=1)L[e]=rt(tt(t,M,e));let E=t[5],H=[];for(let e=0;e<E.length;e+=1)H[e]=at(X(t,E,e));let D=t[7].error&&it(t);return{c(){e=h("div"),n=h("select"),s=h("option"),s.textContent="-- College --";for(let t=0;t<A.length;t+=1)A[t].c();l=m(),T&&T.c(),c=m(),u=h("select"),f=h("option"),f.textContent="-- Graduation Year --";for(let t=0;t<L.length;t+=1)L[t].c();v=m(),k=h("select"),y=h("option"),y.textContent="-- Branch --";for(let t=0;t<H.length;t+=1)H[t].c();$=m(),_=h("div"),w=h("button"),w.textContent="Update Profile",x=m(),D&&D.c(),s.disabled=!0,s.selected=!0,s.__value="",s.value=s.__value,p(n,"class","input-text br-50 my-2"),void 0===t[0]&&P(()=>t[11].call(n)),f.disabled=!0,f.selected=!0,f.__value="",f.value=f.__value,p(u,"class","input-text br-50 my-2"),void 0===t[2]&&P(()=>t[13].call(u)),y.disabled=!0,y.selected=!0,y.__value="",y.value=y.__value,p(k,"class","input-text br-50 my-2"),void 0===t[1]&&P(()=>t[14].call(k)),p(w,"id","updatedButton"),p(w,"class","button-solid button-orange"),p(_,"class","d-flex justify-content-center mt-5"),p(e,"class","py-4 px-5 t-align-center")},m(o,i){a(o,e,i),r(e,n),r(n,s);for(let t=0;t<A.length;t+=1)A[t].m(n,null);b(n,t[0]),r(e,l),T&&T.m(e,null),r(e,c),r(e,u),r(u,f);for(let t=0;t<L.length;t+=1)L[t].m(u,null);b(u,t[2]),r(e,v),r(e,k),r(k,y);for(let t=0;t<H.length;t+=1)H[t].m(k,null);b(k,t[1]),r(e,$),r(e,_),r(_,w),r(e,x),D&&D.m(e,null),C=[g(n,"change",t[11]),g(u,"change",t[13]),g(k,"change",t[14]),g(w,"click",t[9])]},p(t,s){if(17&s){let e;for(j=t[4],e=0;e<j.length;e+=1){const o=et(t,j,e);A[e]?A[e].p(o,s):(A[e]=lt(o),A[e].c(),A[e].m(n,null))}for(;e<A.length;e+=1)A[e].d(1);A.length=j.length}if(1&s&&b(n,t[0]),1===t[0]?T?T.p(t,s):(T=ct(t),T.c(),T.m(e,c)):T&&(T.d(1),T=null),260&s){let e;for(M=t[8],e=0;e<M.length;e+=1){const n=tt(t,M,e);L[e]?L[e].p(n,s):(L[e]=rt(n),L[e].c(),L[e].m(u,null))}for(;e<L.length;e+=1)L[e].d(1);L.length=M.length}if(4&s&&b(u,t[2]),34&s){let e;for(E=t[5],e=0;e<E.length;e+=1){const n=X(t,E,e);H[e]?H[e].p(n,s):(H[e]=at(n),H[e].c(),H[e].m(k,null))}for(;e<H.length;e+=1)H[e].d(1);H.length=E.length}2&s&&b(k,t[1]),t[7].error?D?D.p(t,s):(D=it(t),D.c(),D.m(e,null)):D&&(D.d(1),D=null)},d(t){t&&i(e),d(A,t),T&&T.d(),d(L,t),d(H,t),D&&D.d(),o(C)}}}function ot(t){let n;return{c(){n=h("div"),n.innerHTML='<div class="font-md gradient-text extra-bold mt-4">Your profile has been updated !</div>',p(n,"class","my-5 t-align-c")},m(t,e){a(t,n,e)},p:e,d(t){t&&i(n)}}}function lt(t){let e,n,s,o,l,c=t[21].name+"";return{c(){e=h("option"),n=u(c),s=m(),e.__value=o=t[21].id,e.value=e.__value,e.selected=l=t[21].id===t[0]},m(t,o){a(t,e,o),r(e,n),r(e,s)},p(t,s){16&s&&c!==(c=t[21].name+"")&&f(n,c),16&s&&o!==(o=t[21].id)&&(e.__value=o),e.value=e.__value,17&s&&l!==(l=t[21].id===t[0])&&(e.selected=l)},d(t){t&&i(e)}}}function ct(t){let e,n;return{c(){e=h("input"),p(e,"type","text"),p(e,"placeholder","Other College Name"),p(e,"class","input-text br-50 my-2")},m(s,o){a(s,e,o),v(e,t[3]),n=g(e,"input",t[12])},p(t,n){8&n&&e.value!==t[3]&&v(e,t[3])},d(t){t&&i(e),n()}}}function rt(t){let e,n,s,o,l,c=t[18]+"";return{c(){e=h("option"),n=u(c),s=m(),e.__value=o=t[18],e.value=e.__value,e.selected=l=t[18]===t[2]},m(t,o){a(t,e,o),r(e,n),r(e,s)},p(t,n){4&n&&l!==(l=t[18]===t[2])&&(e.selected=l)},d(t){t&&i(e)}}}function at(t){let e,n,s,o,l,c=t[15].name+"";return{c(){e=h("option"),n=u(c),s=m(),e.__value=o=t[15].id,e.value=e.__value,e.selected=l=t[15].id===t[1]},m(t,o){a(t,e,o),r(e,n),r(e,s)},p(t,s){32&s&&c!==(c=t[15].name+"")&&f(n,c),32&s&&o!==(o=t[15].id)&&(e.__value=o),e.value=e.__value,34&s&&l!==(l=t[15].id===t[1])&&(e.selected=l)},d(t){t&&i(e)}}}function it(t){let e,n,s,o=t[7].error+"";return{c(){e=h("div"),n=h("p"),s=u(o),p(n,"class","red"),p(e,"class","row justify-content-center")},m(t,o){a(t,e,o),r(e,n),r(n,s)},p(t,e){128&e&&o!==(o=t[7].error+"")&&f(s,o)},d(t){t&&i(e)}}}function dt(t){let n,s,o=t[6].id&&1===t[6].demographic.collegeId&&nt(t);return{c(){o&&o.c(),n=m(),s=h("link"),this.c=e,p(s,"rel","stylesheet"),p(s,"href","https://unpkg.com/@coding-blocks/motley@0.7.4/dist/online-cb/app.min.css")},m(t,e){o&&o.m(t,e),a(t,n,e),a(t,s,e)},p(t,[e]){t[6].id&&1===t[6].demographic.collegeId?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&&i(n),t&&i(s)}}}function ht(t,e,n){let s=null,o=null,l=null,c="",r=[],a=[],i=[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={},h={success:null,error:null};const u=x();w(async()=>{n(6,d=await Z.fetchUser()),d.id&&(n(4,r=await Z.fetchColleges()),n(5,a=await Z.fetchBranches()),n(2,l=d.graduationYear),n(0,s=d.demographic.collegeId),n(1,o=d.demographic.branchId),n(3,c=d.demographic.otherCollege))});return[s,o,l,c,r,a,d,h,i,async()=>{try{const t=await Z.updateUser({gradYear:l,collegeId:s,branchId:o,otherCollege:c});u("updated",t),n(7,h={success:t.success}),setTimeout(async()=>{n(6,d=await Z.fetchUser())},2e3)}catch(t){n(7,h={error:t})}},u,function(){s=k(this),n(0,s),n(4,r)},function(){c=this.value,n(3,c)},function(){l=k(this),n(2,l),n(8,i)},function(){o=k(this),n(1,o),n(5,a)}]}class ut extends U{constructor(t){super(),Y(this,{target:this.shadowRoot},ht,dt,c,{}),t&&t.target&&a(t.target,this,t.anchor)}}function mt(t){let n;return{c(){n=h("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">\n\t\t\t\tC++ For Beginners\n\t\t\t</a></div> \n\t\t<div class="card-sm light"><a href="https://codingblocks.com/classroom-courses/java-for-beginners.html">\n\t\t\t\tJava For Beginners\n\t\t\t</a></div> \n\t\t<div class="card-sm light"><a href="https://codingblocks.com/classroom-courses/python-app-dev.html">\n\t\t\t\tPython App Development\n\t\t\t</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">\n\t\t\t\tAndroid App Dev\n\t\t\t</a></div> \n\t\t<div class="card-sm light"><a href="https://codingblocks.com/classroom-courses/web-development-nodejs.html">\n\t\t\t\tFull Stack Web Dev\n\t\t\t</a></div> \n\t\t<div class="card-sm light"><a href="https://codingblocks.com/classroom-courses/web-development-django.html">\n\t\t\t\tPython Django\n\t\t\t</a></div> \n\t\t<div class="card-sm light"><a href="https://codingblocks.com/classroom-courses/unity-game-development.html">\n\t\t\t\tUnity Game Development\n\t\t\t</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">\n\t\t\t\tAlgo++\n\t\t\t</a></div> \n\t\t<div class="card-sm light"><a href="https://codingblocks.com/classroom-courses/web-development-nodejs.html">\n\t\t\t\tAlgo.JAVA\n\t\t\t</a></div> \n\t\t<div class="card-sm light"><a href="https://codingblocks.com/classroom-courses/web-development-django.html">\n\t\t\t\tCompetitive Programming\n\t\t\t</a></div> \n\t\t<div class="card-sm light"><a href="https://codingblocks.com/classroom-courses/unity-game-development.html">\n\t\t\t\tMachine Learning\n\t\t\t</a></div></div>',this.c=e,p(n,"class","pl-4")},m(t,e){a(t,n,e)},p:e,i:e,o:e,d(t){t&&i(n)}}}customElements.define("demographic-form",ut);class gt extends U{constructor(t){super(),Y(this,{target:this.shadowRoot},null,mt,c,{}),t&&t.target&&a(t.target,this,t.anchor)}}function pt(t){let n;return{c(){n=h("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">\n C++ Master Course | Launchpad\n </a></div> \n <div class="card-sm light"><a href="https://online.codingblocks.com/courses/complete-java-course-online">\n Java Master Course | Crux\n </a></div> \n <div class="card-sm light"><a href="https://online.codingblocks.com/courses/python-for-beginners-developers">\n Python For Developers\n </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">\n Web Dev with Python-Django\n </a></div> \n <div class="card-sm light"><a href="https://online.codingblocks.com/courses/coding-interview-preparation-online">\n Interview Prep Bootcamp\n </a></div> \n <div class="card-sm light"><a href="https://online.codingblocks.com/courses/data-structures-and-algorithms-online-course-java-algo">\n Algo.Java Online\n </a></div> \n <div class="card-sm light"><a href="https://online.codingblocks.com/courses/android-app-training-online">\n Android App Development Online\n </a></div> \n <div class="card-sm light"><a href="https://online.codingblocks.com/courses/telegram-chatbot-python-online">\n Build Chatbots in Python\n </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">\n Competitive Programming Online\n </a></div> \n <div class="card-sm light"><a href="https://online.codingblocks.com/courses/coding-interview-preparation-course-online-c-plus-plus">\n Interview Preparation - C++\n </a></div> \n <div class="card-sm light"><a href="https://online.codingblocks.com/courses/machine-learning-course-online">\n Machine Learning Master Course\n </a></div> \n <div class="card-sm light"><a href="https://online.codingblocks.com/courses/coding-interview-preparation-course-online-java">\n Interview Preparation - Java\n </a></div></div>',this.c=e,p(n,"class","pl-4")},m(t,e){a(t,n,e)},p:e,i:e,o:e,d(t){t&&i(n)}}}customElements.define("mobile-classroom-courses",gt);class ft extends U{constructor(t){super(),Y(this,{target:this.shadowRoot},null,pt,c,{}),t&&t.target&&a(t.target,this,t.anchor)}}function vt(t){let e;const n=new gt({});return{c(){F(n.$$.fragment)},m(t,s){S(n,t,s),e=!0},i(t){e||(O(n.$$.fragment,t),e=!0)},o(t){N(n.$$.fragment,t),e=!1},d(t){G(n,t)}}}function bt(t){let e;const n=new ft({});return{c(){F(n.$$.fragment)},m(t,s){S(n,t,s),e=!0},i(t){e||(O(n.$$.fragment,t),e=!0)},o(t){N(n.$$.fragment,t),e=!1},d(t){G(n,t)}}}function kt(t){let n,s,l,c,d,u,f,v,b,k,y,$,_,w,x,C,j,A,T,M,L,P,E,H,D,B,I,U,F,S,G,W,Y,K,q,z,V,Q,Z,X,tt,et,nt,st="classroom"==t[0]&&vt(),ot="online"==t[0]&&bt();return{c(){n=h("link"),s=m(),l=h("link"),c=m(),d=h("div"),u=h("div"),f=h("img"),b=m(),k=h("img"),$=m(),_=h("div"),w=m(),x=h("slot"),C=m(),j=h("div"),A=h("div"),A.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>',T=m(),M=h("div"),L=h("div"),P=h("div"),P.textContent="Classroom Courses",E=m(),H=h("div"),H.innerHTML='<a href="#" class="orange">Explore All</a>',B=m(),st&&st.c(),I=m(),U=h("div"),F=h("div"),S=h("div"),S.textContent="Online Courses",G=m(),W=h("div"),W.innerHTML='<a href="#" class="orange">Explore All</a>',K=m(),ot&&ot.c(),q=m(),z=h("div"),z.innerHTML='<a href="https://codingblocks.com/campus-ambassador-program.html" target="blank">\n Campus Ambassadors\n </a>',V=m(),Q=h("div"),Q.innerHTML='<a href="https://codingblocks.com/about" target="blank">\n About Us\n </a>',Z=m(),X=h("div"),X.innerHTML='<a href="https://codingblocks.com/centres" target="blank">\n Contact Us\n </a>',this.c=e,p(n,"rel","stylesheet"),p(n,"href",t[2]),p(l,"href","https://minio.codingblocks.com/hackerblocks-images/Gilroy.ttf"),p(l,"rel","stylesheet"),f.src!==(v=t[3])&&p(f,"src",v),p(f,"alt","HB"),p(f,"class","hamburger-nav__ham-logo ml-4"),k.src!==(y="https://minio.codingblocks.com/amoeba/wrong-close.png")&&p(k,"src","https://minio.codingblocks.com/amoeba/wrong-close.png"),p(k,"alt","#"),p(k,"class","mr-4 hamburger-nav__cross pointer"),p(u,"class","d-flex py-3 justify-content-between align-items-center hamburger-nav__top-bar"),p(_,"class","divider-h"),p(A,"class","d-flex justify-content-between"),p(P,"class","card-md extra-bold"),p(H,"class","card-sm light"),p(L,"class",D="hamburger-nav__menu-element "+("classroom"==t[0]&&"active")),p(M,"class","my-4 pl-4"),p(S,"class","card-md extra-bold"),p(W,"class","card-sm light"),p(F,"class",Y="hamburger-nav__menu-element "+("online"==t[0]&&"active")),p(U,"class","my-4 pl-4"),p(z,"class","card-md light my-4"),p(Q,"class","card-md light my-4"),p(X,"class","card-md light my-4"),p(j,"class","mt-4 px-4 overflow-y-auto no-scrollbar"),p(d,"class",tt="hamburger-nav b-right overflow-y-auto no-scrollbar "+(!t[1]&&"hamburger-nav--hidden")+" ")},m(e,o){a(e,n,o),a(e,s,o),a(e,l,o),a(e,c,o),a(e,d,o),r(d,u),r(u,f),r(u,b),r(u,k),r(d,$),r(d,_),r(d,w),r(d,x),r(d,C),r(d,j),r(j,A),r(j,T),r(j,M),r(M,L),r(L,P),r(L,E),r(L,H),r(M,B),st&&st.m(M,null),r(j,I),r(j,U),r(U,F),r(F,S),r(F,G),r(F,W),r(U,K),ot&&ot.m(U,null),r(j,q),r(j,z),r(j,V),r(j,Q),r(j,Z),r(j,X),et=!0,nt=[g(k,"click",t[4]),g(P,"click",t[5]),g(S,"click",t[6])]},p(t,[e]){(!et||4&e)&&p(n,"href",t[2]),(!et||8&e&&f.src!==(v=t[3]))&&p(f,"src",v),(!et||1&e&&D!==(D="hamburger-nav__menu-element "+("classroom"==t[0]&&"active")))&&p(L,"class",D),"classroom"==t[0]?st?O(st,1):(st=vt(),st.c(),O(st,1),st.m(M,null)):st&&(J(),N(st,1,1,()=>{st=null}),R()),(!et||1&e&&Y!==(Y="hamburger-nav__menu-element "+("online"==t[0]&&"active")))&&p(F,"class",Y),"online"==t[0]?ot?O(ot,1):(ot=bt(),ot.c(),O(ot,1),ot.m(U,null)):ot&&(J(),N(ot,1,1,()=>{ot=null}),R()),(!et||2&e&&tt!==(tt="hamburger-nav b-right overflow-y-auto no-scrollbar "+(!t[1]&&"hamburger-nav--hidden")+" "))&&p(d,"class",tt)},i(t){et||(O(st),O(ot),et=!0)},o(t){N(st),N(ot),et=!1},d(t){t&&i(n),t&&i(s),t&&i(l),t&&i(c),t&&i(d),st&&st.d(),ot&&ot.d(),o(nt)}}}function yt(t,e,n){let{css:s="https://unpkg.com/@coding-blocks/motley/dist/app.min.css"}=e,{tab:o="classroom"}=e,{showhamburger:l=!1}=e,{logo:c="https://codingblocks.com/assets/images/cb/cblogo.png"}=e;return t.$set=t=>{"css"in t&&n(2,s=t.css),"tab"in t&&n(0,o=t.tab),"showhamburger"in t&&n(1,l=t.showhamburger),"logo"in t&&n(3,c=t.logo)},[o,l,s,c,()=>n(1,l=!l),()=>n(0,o="classroom"),()=>n(0,o="online")]}customElements.define("mobile-online-courses",ft);class $t extends U{constructor(t){super(),Y(this,{target:this.shadowRoot},yt,kt,c,{css:2,tab:0,showhamburger:1,logo:3}),t&&(t.target&&a(t.target,this,t.anchor),t.props&&(this.$set(t.props),H()))}static get observedAttributes(){return["css","tab","showhamburger","logo"]}get css(){return this.$$.ctx[2]}set css(t){this.$set({css:t}),H()}get tab(){return this.$$.ctx[0]}set tab(t){this.$set({tab:t}),H()}get showhamburger(){return this.$$.ctx[1]}set showhamburger(t){this.$set({showhamburger:t}),H()}get logo(){return this.$$.ctx[3]}set logo(t){this.$set({logo:t}),H()}}function _t(t){let n;return{c(){n=h("div"),n.innerHTML='<ul class="col-4"><li class="bold">Beginner Courses</li> \n <li><a href="https://codingblocks.com/classroom-courses/c-plus-plus-for-beginners.html" target="_blank">\n C++ For Beginners\n </a></li> \n <li><a href="https://codingblocks.com/classroom-courses/java-for-beginners.html" target="_blank">\n Java For Beginners\n </a></li> \n <li><a href="https://codingblocks.com/classroom-courses/python-app-dev.html" target="_blank">\n Python App Development\n </a></li></ul> \n <ul class="col-4"><li class="bold">Development Courses</li> \n <li><a href="https://codingblocks.com/classroom-courses/android-app-development-using-kotlin-and-java.html" target="_blank">\n Android App Dev\n </a></li> \n <li><a href="https://codingblocks.com/classroom-courses/web-development-nodejs.html" target="_blank">\n Full Stack Web Dev\n </a></li> \n <li><a href="https://codingblocks.com/classroom-courses/web-development-django.html" target="_blank">\n Python Django\n </a></li> \n <li><a href="https://codingblocks.com/classroom-courses/unity-game-development.html" target="_blank">\n Unity Game Development\n </a></li></ul> \n <ul class="col-4"><li class="bold">Advanced Courses</li> \n <li><a href="https://codingblocks.com/classroom-courses/advanced-data-structures-and-algorithms-for-interviews.html" target="_blank">\n Algo++\n </a></li> \n <li><a href="https://codingblocks.com/classroom-courses/advanced-data-structures-and-algorithms-using-java.html" target="_blank">\n Algo.Java\n </a></li> \n <li><a href="https://codingblocks.com/classroom-courses/competitive-programming.html" target="_blank">\n Competitive Programming\n </a></li> \n <li><a href="https://codingblocks.com/classroom-courses/machine-learning-with-deep-learning.html">\n Machine Learning\n </a></li></ul> \n <ul class="col-4"><li class="bold">Junior Courses</li> \n <li><a href="https://codingblocks.com/classroom-courses/code4kids.html" target="_blank">\n Code 4 Kids\n </a></li> \n <li><a href="https://codingblocks.com/classroom-courses/mathsgeeks.html" target="_blank">\n Maths Geek\n </a></li></ul> \n <ul class="col-4"><li class="bold">Bootcamps</li> \n <li><a href="https://codingblocks.com/bootcamps/react.html" target="_blank">React JS\n </a></li> \n <li><a href="https://codingblocks.com/bootcamps/blockchain.html" target="_blank">Blockchain\n </a></li> \n <li><a href="https://codingblocks.com/bootcamps/coding-interview-preparation.html" target="_blank">Interview Preparation\n </a></li> \n <li><a href="https://codingblocks.com/bootcamps/gamedev.html" target="_blank">Game Dev\n </a></li> \n <li><a href="https://codingblocks.com/bootcamps/chatbots.html" target="_blank">Chatbot\n </a></li></ul> \n <ul class="col-4"><li class="bold">\n Professional\n </li> \n <li><a href="https://codingblocks.com/classroom-courses/six_months_ind_training.html" target="_blank">Industrial Training\n </a></li></ul>',this.c=e,p(n,"class","row justify-content-around m-5")},m(t,e){a(t,n,e)},p:e,i:e,o:e,d(t){t&&i(n)}}}customElements.define("cb-mobile-navbar",$t);class wt extends U{constructor(t){super(),Y(this,{target:this.shadowRoot},null,_t,c,{}),t&&t.target&&a(t.target,this,t.anchor)}}function xt(t){let n;return{c(){n=h("div"),n.innerHTML='<ul class="col-4"><li class="bold mb-3">Beginner Courses</li> \n <li><a href="https://online.codingblocks.com/courses/c-plus-plus-online-course-for-beginners">\n C++ Master Course | Launchpad\n </a></li> \n <li><a href="https://online.codingblocks.com/courses/complete-java-course-online">\n Java Master Course | Crux\n </a></li> \n <li><a href="https://online.codingblocks.com/courses/python-for-beginners-developers">\n Python For Developers\n </a></li></ul> \n <ul class="col-4"><li class="bold mb-3">Advanced Courses</li> \n <li><a href="https://online.codingblocks.com/courses/python-django">\n Web Dev with Python-Django\n </a></li> \n <li><a href="https://online.codingblocks.com/courses/coding-interview-preparation-online">\n Interview Prep Bootcamp\n </a></li> \n <li><a href="https://online.codingblocks.com/courses/data-structures-and-algorithms-online-course-java-algo">\n Algo.Java Online\n </a></li> \n <li><a href="https://online.codingblocks.com/courses/android-app-training-online">\n Android App Development Online\n </a></li> \n <li><a href="https://online.codingblocks.com/courses/telegram-chatbot-python-online">\n Build Chatbots in Python\n </a></li></ul> \n <ul class="col-4"><li class="bold mb-3">Expert Courses</li> \n <li><a href="https://online.codingblocks.com/courses/competitive-programming-course-online">\n Competitive Programming Online\n </a></li> \n <li><a href="https://online.codingblocks.com/courses/coding-interview-preparation-course-online-c-plus-plus">\n Interview Preparation - C++\n </a></li> \n <li><a href="https://online.codingblocks.com/courses/machine-learning-course-online">\n Machine Learning Master Course\n </a></li> \n <li><a href="https://online.codingblocks.com/courses/coding-interview-preparation-course-online-java">\n Interview Preparation - Java\n </a></li></ul>',this.c=e,p(n,"class","row justify-content-around m-5")},m(t,e){a(t,n,e)},p:e,i:e,o:e,d(t){t&&i(n)}}}customElements.define("classroom-courses",wt);class Ct extends U{constructor(t){super(),Y(this,{target:this.shadowRoot},null,xt,c,{}),t&&t.target&&a(t.target,this,t.anchor)}}function jt(t){let e,n,s,l,c,d,u,f,v,b,k,y,$,_,w,x,C;const j=[Tt,At],A=[];function T(t,e){return"classroom"==t[1]?0:1}return _=T(t),w=A[_]=j[_](t),{c(){var o,r,a;e=h("div"),n=h("div"),s=h("div"),s.innerHTML='<div class="font-lg my-4 offset-3">Our Courses</div>',l=m(),c=h("div"),d=h("div"),d.innerHTML='<div>Online Courses</div> \n <a href="https://online.codingblocks.com/courses" target="_blank" class="font-mds orange"> \n Explore all \n </a>',f=m(),v=h("div"),b=h("div"),b.innerHTML='<div>Classroom Courses</div> \n <a href="https://codingblocks.com/classroom-courses/" target="_blank" class="font-mds orange"> \n Explore all \n </a>',y=m(),$=h("div"),w.c(),p(s,"class","py-5 font-md bold hover-grey"),p(d,"class","offset-3"),p(c,"class",u="py-4 font-md bold hover-grey "+("online"==t[1]&&"selected")),p(b,"class","offset-3"),p(v,"class",k="py-4 font-md bold hover-grey "+("classroom"==t[1]&&"selected")),p(n,"class","cb-navbar-side col-3"),p($,"class","col-9 font-mds"),p(e,"class","row no-gutters cb-navbar-expanded"),o="overflow",r="hidden",e.style.setProperty(o,r,a?"important":"")},m(o,i){a(o,e,i),r(e,n),r(n,s),r(n,l),r(n,c),r(c,d),r(n,f),r(n,v),r(v,b),r(e,y),r(e,$),A[_].m($,null),x=!0,C=[g(c,"click",t[6]),g(v,"click",t[7])]},p(t,e){(!x||2&e&&u!==(u="py-4 font-md bold hover-grey "+("online"==t[1]&&"selected")))&&p(c,"class",u),(!x||2&e&&k!==(k="py-4 font-md bold hover-grey "+("classroom"==t[1]&&"selected")))&&p(v,"class",k);let n=_;_=T(t),_!==n&&(J(),N(A[n],1,1,()=>{A[n]=null}),R(),w=A[_],w||(w=A[_]=j[_](t),w.c()),O(w,1),w.m($,null))},i(t){x||(O(w),x=!0)},o(t){N(w),x=!1},d(t){t&&i(e),A[_].d(),o(C)}}}function At(t){let e;const n=new Ct({});return{c(){F(n.$$.fragment)},m(t,s){S(n,t,s),e=!0},i(t){e||(O(n.$$.fragment,t),e=!0)},o(t){N(n.$$.fragment,t),e=!1},d(t){G(n,t)}}}function Tt(t){let e;const n=new wt({});return{c(){F(n.$$.fragment)},m(t,s){S(n,t,s),e=!0},i(t){e||(O(n.$$.fragment,t),e=!0)},o(t){N(n.$$.fragment,t),e=!1},d(t){G(n,t)}}}function Mt(t){let n,s,o,l,c,d,f,v,b,k,y,$,_,w,x,C,j,A,T,M,L,P,E,H,D,B,I,U,F,S=t[0]&&jt(t);return{c(){n=h("div"),s=h("div"),o=h("div"),l=h("span"),c=u("Courses\n "),d=h("i"),v=m(),b=h("div"),b.innerHTML='<a href="https://codingblocks.com/about.html" target="_blank">About Us</a>',k=m(),y=h("div"),y.innerHTML='<a href="https://codingblocks.com/resources" target="_blank">Resources</a>',$=m(),_=h("div"),_.innerHTML='<a href="https://codingblocks.com/campus-ambassador-program.html" target="_blank">Campus Ambassadors</a>',w=m(),x=h("div"),x.innerHTML='<a href="https://codingblocks.com/centres/" target="_blank">Contact Us</a>',C=m(),j=h("slot"),T=m(),S&&S.c(),M=m(),L=h("link"),P=m(),E=h("link"),H=m(),D=h("link"),B=m(),I=h("link"),this.c=e,p(d,"class",f="ml-1 fas fa-chevron-"+(t[0]?"up":"down")),p(l,"class","px-3 pointer"),p(b,"class","px-3"),p(y,"class","px-3"),p(_,"class","px-3"),p(x,"class","px-3"),p(j,"name","header"),p(o,"class",A="d-flex "+t[3]+" py-3 pr-5"),p(s,"class","border"),p(n,"class","a-hb d-md-block d-none"),p(L,"rel","stylesheet"),p(L,"href",t[2]),p(E,"rel","stylesheet"),p(E,"href","https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.9.0/css/all.min.css"),p(E,"integrity","sha256-UzFD2WYH2U1dQpKDjjZK72VtPeWP50NoJjd26rnAdUI="),p(E,"crossorigin","anonymous"),p(D,"href","https://fonts.googleapis.com/css?family=Nunito+Sans:400,600,700,800"),p(D,"rel","stylesheet"),p(I,"href","https://minio.codingblocks.com/hackerblocks-images/Gilroy.ttf"),p(I,"rel","stylesheet")},m(e,i){a(e,n,i),r(n,s),r(s,o),r(o,l),r(l,c),r(l,d),r(o,v),r(o,b),r(o,k),r(o,y),r(o,$),r(o,_),r(o,w),r(o,x),r(o,C),r(o,j),r(n,T),S&&S.m(n,null),a(e,M,i),a(e,L,i),a(e,P,i),a(e,E,i),a(e,H,i),a(e,D,i),a(e,B,i),a(e,I,i),U=!0,F=g(l,"click",t[4])},p(t,[e]){(!U||1&e&&f!==(f="ml-1 fas fa-chevron-"+(t[0]?"up":"down")))&&p(d,"class",f),(!U||8&e&&A!==(A="d-flex "+t[3]+" py-3 pr-5"))&&p(o,"class",A),t[0]?S?(S.p(t,e),O(S,1)):(S=jt(t),S.c(),O(S,1),S.m(n,null)):S&&(J(),N(S,1,1,()=>{S=null}),R()),(!U||4&e)&&p(L,"href",t[2])},i(t){U||(O(S),U=!0)},o(t){N(S),U=!1},d(t){t&&i(n),S&&S.d(),t&&i(M),t&&i(L),t&&i(P),t&&i(E),t&&i(H),t&&i(D),t&&i(B),t&&i(I),F()}}}function Lt(t,e,n){let{topalign:s="center"}=e,{expanded:o=!1}=e,{tab:l="online"}=e,{css:c="https://unpkg.com/@coding-blocks/motley/dist/app.min.css"}=e,r="justify-content-center";return t.$set=t=>{"topalign"in t&&n(5,s=t.topalign),"expanded"in t&&n(0,o=t.expanded),"tab"in t&&n(1,l=t.tab),"css"in t&&n(2,c=t.css)},t.$$.update=()=>{if(32&t.$$.dirty)switch(s){case"left":n(3,r="justify-content-start");break;case"right":n(3,r="justify-content-end");break;default:n(3,r="justify-content-center")}},[o,l,c,r,()=>n(0,o=!o),s,()=>n(1,l="online"),()=>n(1,l="classroom")]}customElements.define("online-courses",Ct);class Pt extends U{constructor(t){super(),this.shadowRoot.innerHTML="<style>a:hover{text-decoration:underline}.hover-grey.selected:hover{background:unset}.a-hb{display:none}</style>",Y(this,{target:this.shadowRoot},Lt,Mt,c,{topalign:5,expanded:0,tab:1,css:2}),t&&(t.target&&a(t.target,this,t.anchor),t.props&&(this.$set(t.props),H()))}static get observedAttributes(){return["topalign","expanded","tab","css"]}get topalign(){return this.$$.ctx[5]}set topalign(t){this.$set({topalign:t}),H()}get expanded(){return this.$$.ctx[0]}set expanded(t){this.$set({expanded:t}),H()}get tab(){return this.$$.ctx[1]}set tab(t){this.$set({tab:t}),H()}get css(){return this.$$.ctx[2]}set css(t){this.$set({css:t}),H()}}return customElements.define("cb-navbar",Pt),t.banner=Q,t.cb_navbar=Pt,t.demographic_form=ut,t.mobile_cb_navbar=$t,t}({});
this.index=this.index||{},this.index.js=function(t){"use strict";function e(){}function n(t){return t()}function s(){return Object.create(null)}function o(t){t.forEach(n)}function l(t){return"function"==typeof t}function c(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function r(t,e){t.appendChild(e)}function a(t,e,n){t.insertBefore(e,n||null)}function i(t){t.parentNode.removeChild(t)}function d(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function h(t){return document.createElement(t)}function u(t){return document.createTextNode(t)}function m(){return u(" ")}function g(t,e,n,s){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n,s)}function p(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function f(t,e){e=""+e,t.data!==e&&(t.data=e)}function v(t,e){(null!=e||t.value)&&(t.value=e)}function b(t,e){for(let n=0;n<t.options.length;n+=1){const s=t.options[n];if(s.__value===e)return void(s.selected=!0)}}function k(t){const e=t.querySelector(":checked")||t.options[0];return e&&e.__value}let y;function $(t){y=t}function _(){if(!y)throw new Error("Function called outside component initialization");return y}function w(t){_().$$.on_mount.push(t)}function x(){const t=_();return(e,n)=>{const s=t.$$.callbacks[e];if(s){const o=function(t,e){const n=document.createEvent("CustomEvent");return n.initCustomEvent(t,!1,!1,e),n}(e,n);s.slice().forEach(e=>{e.call(t,o)})}}}const C=[],j=[],A=[],T=[],M=Promise.resolve();let L=!1;function P(t){A.push(t)}const E=new Set;function H(){do{for(;C.length;){const t=C.shift();$(t),D(t.$$)}for(;j.length;)j.pop()();for(let t=0;t<A.length;t+=1){const e=A[t];E.has(e)||(E.add(e),e())}A.length=0}while(C.length);for(;T.length;)T.pop()();L=!1,E.clear()}function D(t){if(null!==t.fragment){t.update(),o(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(P)}}const B=new Set;let I,U;function J(){I={r:0,c:[],p:I}}function R(){I.r||o(I.c),I=I.p}function O(t,e){t&&t.i&&(B.delete(t),t.i(e))}function N(t,e,n,s){if(t&&t.o){if(B.has(t))return;B.add(t),I.c.push(()=>{B.delete(t),s&&(n&&t.d(1),s())}),t.o(e)}}function F(t){t&&t.c()}function S(t,e,s){const{fragment:c,on_mount:r,on_destroy:a,after_update:i}=t.$$;c&&c.m(e,s),P(()=>{const e=r.map(n).filter(l);a?a.push(...e):o(e),t.$$.on_mount=[]}),i.forEach(P)}function G(t,e){const n=t.$$;null!==n.fragment&&(o(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function W(t,e){-1===t.$$.dirty[0]&&(C.push(t),L||(L=!0,M.then(H)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Y(t,n,l,c,r,a,i=[-1]){const d=y;$(t);const h=n.props||{},u=t.$$={fragment:null,ctx:null,props:a,update:e,not_equal:r,bound:s(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(d?d.$$.context:[]),callbacks:s(),dirty:i};let m=!1;u.ctx=l?l(t,h,(e,n,...s)=>{const o=s.length?s[0]:n;return u.ctx&&r(u.ctx[e],u.ctx[e]=o)&&(u.bound[e]&&u.bound[e](o),m&&W(t,e)),n}):[],u.update(),m=!0,o(u.before_update),u.fragment=!!c&&c(u.ctx),n.target&&(n.hydrate?u.fragment&&u.fragment.l(function(t){return Array.from(t.childNodes)}(n.target)):u.fragment&&u.fragment.c(),n.intro&&O(t.$$.fragment),S(t,n.target,n.anchor),H()),$(d)}function K(t){let e,n,s,o,l=t[0]&&q(t);return{c(){e=h("a"),l&&l.c(),n=m(),s=h("img"),s.src!==(o=t[1])&&p(s,"src",o),p(s,"alt",""),p(s,"width","100%"),p(e,"class","d-block"),p(e,"target","_blank"),p(e,"href",t[2])},m(t,o){a(t,e,o),l&&l.m(e,null),r(e,n),r(e,s)},p(t,c){t[0]?l?l.p(t,c):(l=q(t),l.c(),l.m(e,n)):l&&(l.d(1),l=null),2&c&&s.src!==(o=t[1])&&p(s,"src",o),4&c&&p(e,"href",t[2])},d(t){t&&i(e),l&&l.d()}}}function q(t){let e,n,s;return{c(){e=h("img"),p(e,"class","close-icon"),e.src!==(n=t[4])&&p(e,"src",n),p(e,"alt","close")},m(n,o){var l;a(n,e,o),s=g(e,"click",function(t){return function(e){return e.stopPropagation(),t.call(this,e)}}((l=t[5],function(t){return t.preventDefault(),l.call(this,t)})),!0)},p(t,s){16&s&&e.src!==(n=t[4])&&p(e,"src",n)},d(t){t&&i(e),s()}}}function z(t){let n,s=t[3]&&K(t);return{c(){s&&s.c(),n=u(""),this.c=e},m(t,e){s&&s.m(t,e),a(t,n,e)},p(t,[e]){t[3]?s?s.p(t,e):(s=K(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&&i(n)}}}function V(t,e,n){let s="",o="",l=!0,c="",{showToggle:r=!0}=e,{theme:a="light"}=e;w(async()=>{const t=await fetch("https://hack-api.codingblocks.com/api/v2/dashboard-banners"),{data:[e]}=await t.json(),l=e.attributes;n(1,s=l["image-url"]),n(2,o=l.link),n(4,c="light"===a?"https://minio.codingblocks.com/motley/wrong_g_white.min.png":"https://minio.codingblocks.com/motley/wrong_g.png")});return t.$set=t=>{"showToggle"in t&&n(0,r=t.showToggle),"theme"in t&&n(6,a=t.theme)},[r,s,o,l,c,()=>{n(3,l=!l)},a]}"function"==typeof HTMLElement&&(U=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}$destroy(){G(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(){}});class Q extends U{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}</style>",Y(this,{target:this.shadowRoot},V,z,c,{showToggle:0,theme:6}),t&&(t.target&&a(t.target,this,t.anchor),t.props&&(this.$set(t.props),H()))}static get observedAttributes(){return["showToggle","theme"]}get showToggle(){return this.$$.ctx[0]}set showToggle(t){this.$set({showToggle:t}),H()}get theme(){return this.$$.ctx[6]}set theme(t){this.$set({theme:t}),H()}}customElements.define("promotion-banner",Q);var Z=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 X(t,e,n){const s=t.slice();return s[15]=e[n],s}function tt(t,e,n){const s=t.slice();return s[18]=e[n],s}function et(t,e,n){const s=t.slice();return s[21]=e[n],s}function nt(t){let e,n,s;function o(t,e){return t[7].success?ot:st}let l=o(t),c=l(t);return{c(){e=h("div"),n=h("div"),n.innerHTML='<div class="font-md bold">\n Get INR 1000 Credits\n </div> \n <div class="mt-4">\n Complete your Profile &amp; get INR 1000 credits in your wallet\n </div>',s=m(),c.c(),p(n,"class","bg-gradient-pink white p-4"),p(e,"class","border-card b-red p-0")},m(t,o){a(t,e,o),r(e,n),r(e,s),c.m(e,null)},p(t,n){l===(l=o(t))&&c?c.p(t,n):(c.d(1),c=l(t),c&&(c.c(),c.m(e,null)))},d(t){t&&i(e),c.d()}}}function st(t){let e,n,s,l,c,u,f,v,k,y,$,_,w,x,C,j=t[4],A=[];for(let e=0;e<j.length;e+=1)A[e]=lt(et(t,j,e));let T=1===t[0]&&ct(t),M=t[8],L=[];for(let e=0;e<M.length;e+=1)L[e]=rt(tt(t,M,e));let E=t[5],H=[];for(let e=0;e<E.length;e+=1)H[e]=at(X(t,E,e));let D=t[7].error&&it(t);return{c(){e=h("div"),n=h("select"),s=h("option"),s.textContent="-- College --";for(let t=0;t<A.length;t+=1)A[t].c();l=m(),T&&T.c(),c=m(),u=h("select"),f=h("option"),f.textContent="-- Graduation Year --";for(let t=0;t<L.length;t+=1)L[t].c();v=m(),k=h("select"),y=h("option"),y.textContent="-- Branch --";for(let t=0;t<H.length;t+=1)H[t].c();$=m(),_=h("div"),w=h("button"),w.textContent="Update Profile",x=m(),D&&D.c(),s.disabled=!0,s.selected=!0,s.__value="",s.value=s.__value,p(n,"class","input-text br-50 my-2"),void 0===t[0]&&P(()=>t[11].call(n)),f.disabled=!0,f.selected=!0,f.__value="",f.value=f.__value,p(u,"class","input-text br-50 my-2"),void 0===t[2]&&P(()=>t[13].call(u)),y.disabled=!0,y.selected=!0,y.__value="",y.value=y.__value,p(k,"class","input-text br-50 my-2"),void 0===t[1]&&P(()=>t[14].call(k)),p(w,"id","updatedButton"),p(w,"class","button-solid button-orange"),p(_,"class","d-flex justify-content-center mt-5"),p(e,"class","py-4 px-5 t-align-center")},m(o,i){a(o,e,i),r(e,n),r(n,s);for(let t=0;t<A.length;t+=1)A[t].m(n,null);b(n,t[0]),r(e,l),T&&T.m(e,null),r(e,c),r(e,u),r(u,f);for(let t=0;t<L.length;t+=1)L[t].m(u,null);b(u,t[2]),r(e,v),r(e,k),r(k,y);for(let t=0;t<H.length;t+=1)H[t].m(k,null);b(k,t[1]),r(e,$),r(e,_),r(_,w),r(e,x),D&&D.m(e,null),C=[g(n,"change",t[11]),g(u,"change",t[13]),g(k,"change",t[14]),g(w,"click",t[9])]},p(t,s){if(17&s){let e;for(j=t[4],e=0;e<j.length;e+=1){const o=et(t,j,e);A[e]?A[e].p(o,s):(A[e]=lt(o),A[e].c(),A[e].m(n,null))}for(;e<A.length;e+=1)A[e].d(1);A.length=j.length}if(1&s&&b(n,t[0]),1===t[0]?T?T.p(t,s):(T=ct(t),T.c(),T.m(e,c)):T&&(T.d(1),T=null),260&s){let e;for(M=t[8],e=0;e<M.length;e+=1){const n=tt(t,M,e);L[e]?L[e].p(n,s):(L[e]=rt(n),L[e].c(),L[e].m(u,null))}for(;e<L.length;e+=1)L[e].d(1);L.length=M.length}if(4&s&&b(u,t[2]),34&s){let e;for(E=t[5],e=0;e<E.length;e+=1){const n=X(t,E,e);H[e]?H[e].p(n,s):(H[e]=at(n),H[e].c(),H[e].m(k,null))}for(;e<H.length;e+=1)H[e].d(1);H.length=E.length}2&s&&b(k,t[1]),t[7].error?D?D.p(t,s):(D=it(t),D.c(),D.m(e,null)):D&&(D.d(1),D=null)},d(t){t&&i(e),d(A,t),T&&T.d(),d(L,t),d(H,t),D&&D.d(),o(C)}}}function ot(t){let n;return{c(){n=h("div"),n.innerHTML='<div class="font-md gradient-text extra-bold mt-4">Your profile has been updated !</div>',p(n,"class","my-5 t-align-c")},m(t,e){a(t,n,e)},p:e,d(t){t&&i(n)}}}function lt(t){let e,n,s,o,l,c=t[21].name+"";return{c(){e=h("option"),n=u(c),s=m(),e.__value=o=t[21].id,e.value=e.__value,e.selected=l=t[21].id===t[0]},m(t,o){a(t,e,o),r(e,n),r(e,s)},p(t,s){16&s&&c!==(c=t[21].name+"")&&f(n,c),16&s&&o!==(o=t[21].id)&&(e.__value=o),e.value=e.__value,17&s&&l!==(l=t[21].id===t[0])&&(e.selected=l)},d(t){t&&i(e)}}}function ct(t){let e,n;return{c(){e=h("input"),p(e,"type","text"),p(e,"placeholder","Other College Name"),p(e,"class","input-text br-50 my-2")},m(s,o){a(s,e,o),v(e,t[3]),n=g(e,"input",t[12])},p(t,n){8&n&&e.value!==t[3]&&v(e,t[3])},d(t){t&&i(e),n()}}}function rt(t){let e,n,s,o,l,c=t[18]+"";return{c(){e=h("option"),n=u(c),s=m(),e.__value=o=t[18],e.value=e.__value,e.selected=l=t[18]===t[2]},m(t,o){a(t,e,o),r(e,n),r(e,s)},p(t,n){4&n&&l!==(l=t[18]===t[2])&&(e.selected=l)},d(t){t&&i(e)}}}function at(t){let e,n,s,o,l,c=t[15].name+"";return{c(){e=h("option"),n=u(c),s=m(),e.__value=o=t[15].id,e.value=e.__value,e.selected=l=t[15].id===t[1]},m(t,o){a(t,e,o),r(e,n),r(e,s)},p(t,s){32&s&&c!==(c=t[15].name+"")&&f(n,c),32&s&&o!==(o=t[15].id)&&(e.__value=o),e.value=e.__value,34&s&&l!==(l=t[15].id===t[1])&&(e.selected=l)},d(t){t&&i(e)}}}function it(t){let e,n,s,o=t[7].error+"";return{c(){e=h("div"),n=h("p"),s=u(o),p(n,"class","red"),p(e,"class","row justify-content-center")},m(t,o){a(t,e,o),r(e,n),r(n,s)},p(t,e){128&e&&o!==(o=t[7].error+"")&&f(s,o)},d(t){t&&i(e)}}}function dt(t){let n,s,o=t[6].id&&1===t[6].demographic.collegeId&&!t[6].demographic.otherCollege&&nt(t);return{c(){o&&o.c(),n=m(),s=h("link"),this.c=e,p(s,"rel","stylesheet"),p(s,"href","https://unpkg.com/@coding-blocks/motley@0.7.4/dist/online-cb/app.min.css")},m(t,e){o&&o.m(t,e),a(t,n,e),a(t,s,e)},p(t,[e]){t[6].id&&1===t[6].demographic.collegeId&&!t[6].demographic.otherCollege?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&&i(n),t&&i(s)}}}function ht(t,e,n){let s=null,o=null,l=null,c="",r=[],a=[],i=[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={},h={success:null,error:null};const u=x();w(async()=>{n(6,d=await Z.fetchUser()),d.id&&(n(4,r=await Z.fetchColleges()),n(5,a=await Z.fetchBranches()),n(2,l=d.graduationYear),n(0,s=d.demographic.collegeId),n(1,o=d.demographic.branchId),n(3,c=d.demographic.otherCollege))});return[s,o,l,c,r,a,d,h,i,async()=>{try{const t=await Z.updateUser({gradYear:l,collegeId:s,branchId:o,otherCollege:c});u("updated",t),n(7,h={success:t.success}),setTimeout(async()=>{n(6,d=await Z.fetchUser())},2e3)}catch(t){n(7,h={error:t})}},u,function(){s=k(this),n(0,s),n(4,r)},function(){c=this.value,n(3,c)},function(){l=k(this),n(2,l),n(8,i)},function(){o=k(this),n(1,o),n(5,a)}]}class ut extends U{constructor(t){super(),Y(this,{target:this.shadowRoot},ht,dt,c,{}),t&&t.target&&a(t.target,this,t.anchor)}}function mt(t){let n;return{c(){n=h("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">\n\t\t\t\tC++ For Beginners\n\t\t\t</a></div> \n\t\t<div class="card-sm light"><a href="https://codingblocks.com/classroom-courses/java-for-beginners.html">\n\t\t\t\tJava For Beginners\n\t\t\t</a></div> \n\t\t<div class="card-sm light"><a href="https://codingblocks.com/classroom-courses/python-app-dev.html">\n\t\t\t\tPython App Development\n\t\t\t</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">\n\t\t\t\tAndroid App Dev\n\t\t\t</a></div> \n\t\t<div class="card-sm light"><a href="https://codingblocks.com/classroom-courses/web-development-nodejs.html">\n\t\t\t\tFull Stack Web Dev\n\t\t\t</a></div> \n\t\t<div class="card-sm light"><a href="https://codingblocks.com/classroom-courses/web-development-django.html">\n\t\t\t\tPython Django\n\t\t\t</a></div> \n\t\t<div class="card-sm light"><a href="https://codingblocks.com/classroom-courses/unity-game-development.html">\n\t\t\t\tUnity Game Development\n\t\t\t</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">\n\t\t\t\tAlgo++\n\t\t\t</a></div> \n\t\t<div class="card-sm light"><a href="https://codingblocks.com/classroom-courses/web-development-nodejs.html">\n\t\t\t\tAlgo.JAVA\n\t\t\t</a></div> \n\t\t<div class="card-sm light"><a href="https://codingblocks.com/classroom-courses/web-development-django.html">\n\t\t\t\tCompetitive Programming\n\t\t\t</a></div> \n\t\t<div class="card-sm light"><a href="https://codingblocks.com/classroom-courses/unity-game-development.html">\n\t\t\t\tMachine Learning\n\t\t\t</a></div></div>',this.c=e,p(n,"class","pl-4")},m(t,e){a(t,n,e)},p:e,i:e,o:e,d(t){t&&i(n)}}}customElements.define("demographic-form",ut);class gt extends U{constructor(t){super(),Y(this,{target:this.shadowRoot},null,mt,c,{}),t&&t.target&&a(t.target,this,t.anchor)}}function pt(t){let n;return{c(){n=h("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">\n C++ Master Course | Launchpad\n </a></div> \n <div class="card-sm light"><a href="https://online.codingblocks.com/courses/complete-java-course-online">\n Java Master Course | Crux\n </a></div> \n <div class="card-sm light"><a href="https://online.codingblocks.com/courses/python-for-beginners-developers">\n Python For Developers\n </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">\n Web Dev with Python-Django\n </a></div> \n <div class="card-sm light"><a href="https://online.codingblocks.com/courses/coding-interview-preparation-online">\n Interview Prep Bootcamp\n </a></div> \n <div class="card-sm light"><a href="https://online.codingblocks.com/courses/data-structures-and-algorithms-online-course-java-algo">\n Algo.Java Online\n </a></div> \n <div class="card-sm light"><a href="https://online.codingblocks.com/courses/android-app-training-online">\n Android App Development Online\n </a></div> \n <div class="card-sm light"><a href="https://online.codingblocks.com/courses/telegram-chatbot-python-online">\n Build Chatbots in Python\n </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">\n Competitive Programming Online\n </a></div> \n <div class="card-sm light"><a href="https://online.codingblocks.com/courses/coding-interview-preparation-course-online-c-plus-plus">\n Interview Preparation - C++\n </a></div> \n <div class="card-sm light"><a href="https://online.codingblocks.com/courses/machine-learning-course-online">\n Machine Learning Master Course\n </a></div> \n <div class="card-sm light"><a href="https://online.codingblocks.com/courses/coding-interview-preparation-course-online-java">\n Interview Preparation - Java\n </a></div></div>',this.c=e,p(n,"class","pl-4")},m(t,e){a(t,n,e)},p:e,i:e,o:e,d(t){t&&i(n)}}}customElements.define("mobile-classroom-courses",gt);class ft extends U{constructor(t){super(),Y(this,{target:this.shadowRoot},null,pt,c,{}),t&&t.target&&a(t.target,this,t.anchor)}}function vt(t){let e;const n=new gt({});return{c(){F(n.$$.fragment)},m(t,s){S(n,t,s),e=!0},i(t){e||(O(n.$$.fragment,t),e=!0)},o(t){N(n.$$.fragment,t),e=!1},d(t){G(n,t)}}}function bt(t){let e;const n=new ft({});return{c(){F(n.$$.fragment)},m(t,s){S(n,t,s),e=!0},i(t){e||(O(n.$$.fragment,t),e=!0)},o(t){N(n.$$.fragment,t),e=!1},d(t){G(n,t)}}}function kt(t){let n,s,l,c,d,u,f,v,b,k,y,$,_,w,x,C,j,A,T,M,L,P,E,H,D,B,I,U,F,S,G,W,Y,K,q,z,V,Q,Z,X,tt,et,nt,st="classroom"==t[0]&&vt(),ot="online"==t[0]&&bt();return{c(){n=h("link"),s=m(),l=h("link"),c=m(),d=h("div"),u=h("div"),f=h("img"),b=m(),k=h("img"),$=m(),_=h("div"),w=m(),x=h("slot"),C=m(),j=h("div"),A=h("div"),A.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>',T=m(),M=h("div"),L=h("div"),P=h("div"),P.textContent="Classroom Courses",E=m(),H=h("div"),H.innerHTML='<a href="#" class="orange">Explore All</a>',B=m(),st&&st.c(),I=m(),U=h("div"),F=h("div"),S=h("div"),S.textContent="Online Courses",G=m(),W=h("div"),W.innerHTML='<a href="#" class="orange">Explore All</a>',K=m(),ot&&ot.c(),q=m(),z=h("div"),z.innerHTML='<a href="https://codingblocks.com/campus-ambassador-program.html" target="blank">\n Campus Ambassadors\n </a>',V=m(),Q=h("div"),Q.innerHTML='<a href="https://codingblocks.com/about" target="blank">\n About Us\n </a>',Z=m(),X=h("div"),X.innerHTML='<a href="https://codingblocks.com/centres" target="blank">\n Contact Us\n </a>',this.c=e,p(n,"rel","stylesheet"),p(n,"href",t[2]),p(l,"href","https://minio.codingblocks.com/hackerblocks-images/Gilroy.ttf"),p(l,"rel","stylesheet"),f.src!==(v=t[3])&&p(f,"src",v),p(f,"alt","HB"),p(f,"class","hamburger-nav__ham-logo ml-4"),k.src!==(y="https://minio.codingblocks.com/amoeba/wrong-close.png")&&p(k,"src","https://minio.codingblocks.com/amoeba/wrong-close.png"),p(k,"alt","#"),p(k,"class","mr-4 hamburger-nav__cross pointer"),p(u,"class","d-flex py-3 justify-content-between align-items-center hamburger-nav__top-bar"),p(_,"class","divider-h"),p(A,"class","d-flex justify-content-between"),p(P,"class","card-md extra-bold"),p(H,"class","card-sm light"),p(L,"class",D="hamburger-nav__menu-element "+("classroom"==t[0]&&"active")),p(M,"class","my-4 pl-4"),p(S,"class","card-md extra-bold"),p(W,"class","card-sm light"),p(F,"class",Y="hamburger-nav__menu-element "+("online"==t[0]&&"active")),p(U,"class","my-4 pl-4"),p(z,"class","card-md light my-4"),p(Q,"class","card-md light my-4"),p(X,"class","card-md light my-4"),p(j,"class","mt-4 px-4 overflow-y-auto no-scrollbar"),p(d,"class",tt="hamburger-nav b-right overflow-y-auto no-scrollbar "+(!t[1]&&"hamburger-nav--hidden")+" ")},m(e,o){a(e,n,o),a(e,s,o),a(e,l,o),a(e,c,o),a(e,d,o),r(d,u),r(u,f),r(u,b),r(u,k),r(d,$),r(d,_),r(d,w),r(d,x),r(d,C),r(d,j),r(j,A),r(j,T),r(j,M),r(M,L),r(L,P),r(L,E),r(L,H),r(M,B),st&&st.m(M,null),r(j,I),r(j,U),r(U,F),r(F,S),r(F,G),r(F,W),r(U,K),ot&&ot.m(U,null),r(j,q),r(j,z),r(j,V),r(j,Q),r(j,Z),r(j,X),et=!0,nt=[g(k,"click",t[4]),g(P,"click",t[5]),g(S,"click",t[6])]},p(t,[e]){(!et||4&e)&&p(n,"href",t[2]),(!et||8&e&&f.src!==(v=t[3]))&&p(f,"src",v),(!et||1&e&&D!==(D="hamburger-nav__menu-element "+("classroom"==t[0]&&"active")))&&p(L,"class",D),"classroom"==t[0]?st?O(st,1):(st=vt(),st.c(),O(st,1),st.m(M,null)):st&&(J(),N(st,1,1,()=>{st=null}),R()),(!et||1&e&&Y!==(Y="hamburger-nav__menu-element "+("online"==t[0]&&"active")))&&p(F,"class",Y),"online"==t[0]?ot?O(ot,1):(ot=bt(),ot.c(),O(ot,1),ot.m(U,null)):ot&&(J(),N(ot,1,1,()=>{ot=null}),R()),(!et||2&e&&tt!==(tt="hamburger-nav b-right overflow-y-auto no-scrollbar "+(!t[1]&&"hamburger-nav--hidden")+" "))&&p(d,"class",tt)},i(t){et||(O(st),O(ot),et=!0)},o(t){N(st),N(ot),et=!1},d(t){t&&i(n),t&&i(s),t&&i(l),t&&i(c),t&&i(d),st&&st.d(),ot&&ot.d(),o(nt)}}}function yt(t,e,n){let{css:s="https://unpkg.com/@coding-blocks/motley/dist/app.min.css"}=e,{tab:o="classroom"}=e,{showhamburger:l=!1}=e,{logo:c="https://codingblocks.com/assets/images/cb/cblogo.png"}=e;return t.$set=t=>{"css"in t&&n(2,s=t.css),"tab"in t&&n(0,o=t.tab),"showhamburger"in t&&n(1,l=t.showhamburger),"logo"in t&&n(3,c=t.logo)},[o,l,s,c,()=>n(1,l=!l),()=>n(0,o="classroom"),()=>n(0,o="online")]}customElements.define("mobile-online-courses",ft);class $t extends U{constructor(t){super(),Y(this,{target:this.shadowRoot},yt,kt,c,{css:2,tab:0,showhamburger:1,logo:3}),t&&(t.target&&a(t.target,this,t.anchor),t.props&&(this.$set(t.props),H()))}static get observedAttributes(){return["css","tab","showhamburger","logo"]}get css(){return this.$$.ctx[2]}set css(t){this.$set({css:t}),H()}get tab(){return this.$$.ctx[0]}set tab(t){this.$set({tab:t}),H()}get showhamburger(){return this.$$.ctx[1]}set showhamburger(t){this.$set({showhamburger:t}),H()}get logo(){return this.$$.ctx[3]}set logo(t){this.$set({logo:t}),H()}}function _t(t){let n;return{c(){n=h("div"),n.innerHTML='<ul class="col-4"><li class="bold">Beginner Courses</li> \n <li><a href="https://codingblocks.com/classroom-courses/c-plus-plus-for-beginners.html" target="_blank">\n C++ For Beginners\n </a></li> \n <li><a href="https://codingblocks.com/classroom-courses/java-for-beginners.html" target="_blank">\n Java For Beginners\n </a></li> \n <li><a href="https://codingblocks.com/classroom-courses/python-app-dev.html" target="_blank">\n Python App Development\n </a></li></ul> \n <ul class="col-4"><li class="bold">Development Courses</li> \n <li><a href="https://codingblocks.com/classroom-courses/android-app-development-using-kotlin-and-java.html" target="_blank">\n Android App Dev\n </a></li> \n <li><a href="https://codingblocks.com/classroom-courses/web-development-nodejs.html" target="_blank">\n Full Stack Web Dev\n </a></li> \n <li><a href="https://codingblocks.com/classroom-courses/web-development-django.html" target="_blank">\n Python Django\n </a></li> \n <li><a href="https://codingblocks.com/classroom-courses/unity-game-development.html" target="_blank">\n Unity Game Development\n </a></li></ul> \n <ul class="col-4"><li class="bold">Advanced Courses</li> \n <li><a href="https://codingblocks.com/classroom-courses/advanced-data-structures-and-algorithms-for-interviews.html" target="_blank">\n Algo++\n </a></li> \n <li><a href="https://codingblocks.com/classroom-courses/advanced-data-structures-and-algorithms-using-java.html" target="_blank">\n Algo.Java\n </a></li> \n <li><a href="https://codingblocks.com/classroom-courses/competitive-programming.html" target="_blank">\n Competitive Programming\n </a></li> \n <li><a href="https://codingblocks.com/classroom-courses/machine-learning-with-deep-learning.html">\n Machine Learning\n </a></li></ul> \n <ul class="col-4"><li class="bold">Junior Courses</li> \n <li><a href="https://codingblocks.com/classroom-courses/code4kids.html" target="_blank">\n Code 4 Kids\n </a></li> \n <li><a href="https://codingblocks.com/classroom-courses/mathsgeeks.html" target="_blank">\n Maths Geek\n </a></li></ul> \n <ul class="col-4"><li class="bold">Bootcamps</li> \n <li><a href="https://codingblocks.com/bootcamps/react.html" target="_blank">React JS\n </a></li> \n <li><a href="https://codingblocks.com/bootcamps/blockchain.html" target="_blank">Blockchain\n </a></li> \n <li><a href="https://codingblocks.com/bootcamps/coding-interview-preparation.html" target="_blank">Interview Preparation\n </a></li> \n <li><a href="https://codingblocks.com/bootcamps/gamedev.html" target="_blank">Game Dev\n </a></li> \n <li><a href="https://codingblocks.com/bootcamps/chatbots.html" target="_blank">Chatbot\n </a></li></ul> \n <ul class="col-4"><li class="bold">\n Professional\n </li> \n <li><a href="https://codingblocks.com/classroom-courses/six_months_ind_training.html" target="_blank">Industrial Training\n </a></li></ul>',this.c=e,p(n,"class","row justify-content-around m-5")},m(t,e){a(t,n,e)},p:e,i:e,o:e,d(t){t&&i(n)}}}customElements.define("cb-mobile-navbar",$t);class wt extends U{constructor(t){super(),Y(this,{target:this.shadowRoot},null,_t,c,{}),t&&t.target&&a(t.target,this,t.anchor)}}function xt(t){let n;return{c(){n=h("div"),n.innerHTML='<ul class="col-4"><li class="bold mb-3">Beginner Courses</li> \n <li><a href="https://online.codingblocks.com/courses/c-plus-plus-online-course-for-beginners">\n C++ Master Course | Launchpad\n </a></li> \n <li><a href="https://online.codingblocks.com/courses/complete-java-course-online">\n Java Master Course | Crux\n </a></li> \n <li><a href="https://online.codingblocks.com/courses/python-for-beginners-developers">\n Python For Developers\n </a></li></ul> \n <ul class="col-4"><li class="bold mb-3">Advanced Courses</li> \n <li><a href="https://online.codingblocks.com/courses/python-django">\n Web Dev with Python-Django\n </a></li> \n <li><a href="https://online.codingblocks.com/courses/coding-interview-preparation-online">\n Interview Prep Bootcamp\n </a></li> \n <li><a href="https://online.codingblocks.com/courses/data-structures-and-algorithms-online-course-java-algo">\n Algo.Java Online\n </a></li> \n <li><a href="https://online.codingblocks.com/courses/android-app-training-online">\n Android App Development Online\n </a></li> \n <li><a href="https://online.codingblocks.com/courses/telegram-chatbot-python-online">\n Build Chatbots in Python\n </a></li></ul> \n <ul class="col-4"><li class="bold mb-3">Expert Courses</li> \n <li><a href="https://online.codingblocks.com/courses/competitive-programming-course-online">\n Competitive Programming Online\n </a></li> \n <li><a href="https://online.codingblocks.com/courses/coding-interview-preparation-course-online-c-plus-plus">\n Interview Preparation - C++\n </a></li> \n <li><a href="https://online.codingblocks.com/courses/machine-learning-course-online">\n Machine Learning Master Course\n </a></li> \n <li><a href="https://online.codingblocks.com/courses/coding-interview-preparation-course-online-java">\n Interview Preparation - Java\n </a></li></ul>',this.c=e,p(n,"class","row justify-content-around m-5")},m(t,e){a(t,n,e)},p:e,i:e,o:e,d(t){t&&i(n)}}}customElements.define("classroom-courses",wt);class Ct extends U{constructor(t){super(),Y(this,{target:this.shadowRoot},null,xt,c,{}),t&&t.target&&a(t.target,this,t.anchor)}}function jt(t){let e,n,s,l,c,d,u,f,v,b,k,y,$,_,w,x,C;const j=[Tt,At],A=[];function T(t,e){return"classroom"==t[1]?0:1}return _=T(t),w=A[_]=j[_](t),{c(){var o,r,a;e=h("div"),n=h("div"),s=h("div"),s.innerHTML='<div class="font-lg my-4 offset-3">Our Courses</div>',l=m(),c=h("div"),d=h("div"),d.innerHTML='<div>Online Courses</div> \n <a href="https://online.codingblocks.com/courses" target="_blank" class="font-mds orange"> \n Explore all \n </a>',f=m(),v=h("div"),b=h("div"),b.innerHTML='<div>Classroom Courses</div> \n <a href="https://codingblocks.com/classroom-courses/" target="_blank" class="font-mds orange"> \n Explore all \n </a>',y=m(),$=h("div"),w.c(),p(s,"class","py-5 font-md bold hover-grey"),p(d,"class","offset-3"),p(c,"class",u="py-4 font-md bold hover-grey "+("online"==t[1]&&"selected")),p(b,"class","offset-3"),p(v,"class",k="py-4 font-md bold hover-grey "+("classroom"==t[1]&&"selected")),p(n,"class","cb-navbar-side col-3"),p($,"class","col-9 font-mds"),p(e,"class","row no-gutters cb-navbar-expanded"),o="overflow",r="hidden",e.style.setProperty(o,r,a?"important":"")},m(o,i){a(o,e,i),r(e,n),r(n,s),r(n,l),r(n,c),r(c,d),r(n,f),r(n,v),r(v,b),r(e,y),r(e,$),A[_].m($,null),x=!0,C=[g(c,"click",t[6]),g(v,"click",t[7])]},p(t,e){(!x||2&e&&u!==(u="py-4 font-md bold hover-grey "+("online"==t[1]&&"selected")))&&p(c,"class",u),(!x||2&e&&k!==(k="py-4 font-md bold hover-grey "+("classroom"==t[1]&&"selected")))&&p(v,"class",k);let n=_;_=T(t),_!==n&&(J(),N(A[n],1,1,()=>{A[n]=null}),R(),w=A[_],w||(w=A[_]=j[_](t),w.c()),O(w,1),w.m($,null))},i(t){x||(O(w),x=!0)},o(t){N(w),x=!1},d(t){t&&i(e),A[_].d(),o(C)}}}function At(t){let e;const n=new Ct({});return{c(){F(n.$$.fragment)},m(t,s){S(n,t,s),e=!0},i(t){e||(O(n.$$.fragment,t),e=!0)},o(t){N(n.$$.fragment,t),e=!1},d(t){G(n,t)}}}function Tt(t){let e;const n=new wt({});return{c(){F(n.$$.fragment)},m(t,s){S(n,t,s),e=!0},i(t){e||(O(n.$$.fragment,t),e=!0)},o(t){N(n.$$.fragment,t),e=!1},d(t){G(n,t)}}}function Mt(t){let n,s,o,l,c,d,f,v,b,k,y,$,_,w,x,C,j,A,T,M,L,P,E,H,D,B,I,U,F,S=t[0]&&jt(t);return{c(){n=h("div"),s=h("div"),o=h("div"),l=h("span"),c=u("Courses\n "),d=h("i"),v=m(),b=h("div"),b.innerHTML='<a href="https://codingblocks.com/about.html" target="_blank">About Us</a>',k=m(),y=h("div"),y.innerHTML='<a href="https://codingblocks.com/resources" target="_blank">Resources</a>',$=m(),_=h("div"),_.innerHTML='<a href="https://codingblocks.com/campus-ambassador-program.html" target="_blank">Campus Ambassadors</a>',w=m(),x=h("div"),x.innerHTML='<a href="https://codingblocks.com/centres/" target="_blank">Contact Us</a>',C=m(),j=h("slot"),T=m(),S&&S.c(),M=m(),L=h("link"),P=m(),E=h("link"),H=m(),D=h("link"),B=m(),I=h("link"),this.c=e,p(d,"class",f="ml-1 fas fa-chevron-"+(t[0]?"up":"down")),p(l,"class","px-3 pointer"),p(b,"class","px-3"),p(y,"class","px-3"),p(_,"class","px-3"),p(x,"class","px-3"),p(j,"name","header"),p(o,"class",A="d-flex "+t[3]+" py-3 pr-5"),p(s,"class","border"),p(n,"class","a-hb d-md-block d-none"),p(L,"rel","stylesheet"),p(L,"href",t[2]),p(E,"rel","stylesheet"),p(E,"href","https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.9.0/css/all.min.css"),p(E,"integrity","sha256-UzFD2WYH2U1dQpKDjjZK72VtPeWP50NoJjd26rnAdUI="),p(E,"crossorigin","anonymous"),p(D,"href","https://fonts.googleapis.com/css?family=Nunito+Sans:400,600,700,800"),p(D,"rel","stylesheet"),p(I,"href","https://minio.codingblocks.com/hackerblocks-images/Gilroy.ttf"),p(I,"rel","stylesheet")},m(e,i){a(e,n,i),r(n,s),r(s,o),r(o,l),r(l,c),r(l,d),r(o,v),r(o,b),r(o,k),r(o,y),r(o,$),r(o,_),r(o,w),r(o,x),r(o,C),r(o,j),r(n,T),S&&S.m(n,null),a(e,M,i),a(e,L,i),a(e,P,i),a(e,E,i),a(e,H,i),a(e,D,i),a(e,B,i),a(e,I,i),U=!0,F=g(l,"click",t[4])},p(t,[e]){(!U||1&e&&f!==(f="ml-1 fas fa-chevron-"+(t[0]?"up":"down")))&&p(d,"class",f),(!U||8&e&&A!==(A="d-flex "+t[3]+" py-3 pr-5"))&&p(o,"class",A),t[0]?S?(S.p(t,e),O(S,1)):(S=jt(t),S.c(),O(S,1),S.m(n,null)):S&&(J(),N(S,1,1,()=>{S=null}),R()),(!U||4&e)&&p(L,"href",t[2])},i(t){U||(O(S),U=!0)},o(t){N(S),U=!1},d(t){t&&i(n),S&&S.d(),t&&i(M),t&&i(L),t&&i(P),t&&i(E),t&&i(H),t&&i(D),t&&i(B),t&&i(I),F()}}}function Lt(t,e,n){let{topalign:s="center"}=e,{expanded:o=!1}=e,{tab:l="online"}=e,{css:c="https://unpkg.com/@coding-blocks/motley/dist/app.min.css"}=e,r="justify-content-center";return t.$set=t=>{"topalign"in t&&n(5,s=t.topalign),"expanded"in t&&n(0,o=t.expanded),"tab"in t&&n(1,l=t.tab),"css"in t&&n(2,c=t.css)},t.$$.update=()=>{if(32&t.$$.dirty)switch(s){case"left":n(3,r="justify-content-start");break;case"right":n(3,r="justify-content-end");break;default:n(3,r="justify-content-center")}},[o,l,c,r,()=>n(0,o=!o),s,()=>n(1,l="online"),()=>n(1,l="classroom")]}customElements.define("online-courses",Ct);class Pt extends U{constructor(t){super(),this.shadowRoot.innerHTML="<style>a:hover{text-decoration:underline}.hover-grey.selected:hover{background:unset}.a-hb{display:none}</style>",Y(this,{target:this.shadowRoot},Lt,Mt,c,{topalign:5,expanded:0,tab:1,css:2}),t&&(t.target&&a(t.target,this,t.anchor),t.props&&(this.$set(t.props),H()))}static get observedAttributes(){return["topalign","expanded","tab","css"]}get topalign(){return this.$$.ctx[5]}set topalign(t){this.$set({topalign:t}),H()}get expanded(){return this.$$.ctx[0]}set expanded(t){this.$set({expanded:t}),H()}get tab(){return this.$$.ctx[1]}set tab(t){this.$set({tab:t}),H()}get css(){return this.$$.ctx[2]}set css(t){this.$set({css:t}),H()}}return customElements.define("cb-navbar",Pt),t.banner=Q,t.cb_navbar=Pt,t.demographic_form=ut,t.mobile_cb_navbar=$t,t}({});

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

"outDir": "dist/",
"version": "0.0.10",
"version": "0.0.11",
"main": "dist/index.js",

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

@@ -36,3 +36,2 @@ class OneauthService {

// export default new OneauthService('https://account.codingblocks.com/api')
export default new OneauthService('http://test.oneauth/api')
export default new OneauthService('https://account.codingblocks.com/api')

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