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

@coding-blocks/web-components

Package Overview
Dependencies
Maintainers
6
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 0.0.15 to 0.1.0

dist/carousel.js

2

dist/banner.js

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

var banner=function(){"use strict";function t(){}function e(t){return t()}function n(){return Object.create(null)}function o(t){t.forEach(e)}function r(t){return"function"==typeof t}function c(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function i(t,e){t.appendChild(e)}function s(t,e,n){t.insertBefore(e,n||null)}function l(t){t.parentNode.removeChild(t)}function a(t){return document.createElement(t)}function u(t){return document.createTextNode(t)}function d(){return u(" ")}function h(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}let f;function m(t){f=t}function p(t){(function(){if(!f)throw new Error("Function called outside component initialization");return f})().$$.on_mount.push(t)}const g=[],$=[],b=[],w=[],y=Promise.resolve();let k=!1;function x(t){b.push(t)}const _=new Set;function v(){do{for(;g.length;){const t=g.shift();m(t),T(t.$$)}for(;$.length;)$.pop()();for(let t=0;t<b.length;t+=1){const e=b[t];_.has(e)||(_.add(e),e())}b.length=0}while(g.length);for(;w.length;)w.pop()();k=!1,_.clear()}function T(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(x)}}const E=new Set;function C(t,e){-1===t.$$.dirty[0]&&(g.push(t),k||(k=!0,y.then(v)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function A(c,i,s,l,a,u,d=[-1]){const h=f;m(c);const p=i.props||{},g=c.$$={fragment:null,ctx:null,props:u,update:t,not_equal:a,bound:n(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(h?h.$$.context:[]),callbacks:n(),dirty:d};let $=!1;var b,w;g.ctx=s?s(c,p,(t,e,...n)=>{const o=n.length?n[0]:e;return g.ctx&&a(g.ctx[t],g.ctx[t]=o)&&(g.bound[t]&&g.bound[t](o),$&&C(c,t)),e}):[],g.update(),$=!0,o(g.before_update),g.fragment=!!l&&l(g.ctx),i.target&&(i.hydrate?g.fragment&&g.fragment.l(function(t){return Array.from(t.childNodes)}(i.target)):g.fragment&&g.fragment.c(),i.intro&&((b=c.$$.fragment)&&b.i&&(E.delete(b),b.i(w))),function(t,n,c){const{fragment:i,on_mount:s,on_destroy:l,after_update:a}=t.$$;i&&i.m(n,c),x(()=>{const n=s.map(e).filter(r);l?l.push(...n):o(n),t.$$.on_mount=[]}),a.forEach(x)}(c,i.target,i.anchor),v()),m(h)}let L;function M(t){let e,n,o,r,c,u,f,m=t[0]&&N(t);return{c(){e=a("a"),m&&m.c(),n=d(),o=a("img"),c=d(),u=a("img"),h(o,"class","d-md-block"),o.src!==(r=t[1])&&h(o,"src",r),h(o,"alt",""),h(o,"width","100%"),h(u,"class","d-md-none"),u.src!==(f=t[2])&&h(u,"src",f),h(u,"alt",""),h(u,"width","100%"),h(e,"class","d-block"),h(e,"target","_blank"),h(e,"href",t[3])},m(t,r){s(t,e,r),m&&m.m(e,null),i(e,n),i(e,o),i(e,c),i(e,u)},p(t,c){t[0]?m?m.p(t,c):(m=N(t),m.c(),m.m(e,n)):m&&(m.d(1),m=null),2&c&&o.src!==(r=t[1])&&h(o,"src",r),4&c&&u.src!==(f=t[2])&&h(u,"src",f),8&c&&h(e,"href",t[3])},d(t){t&&l(e),m&&m.d()}}}function N(t){let e,n,o;return{c(){e=a("img"),h(e,"class","close-icon"),e.src!==(n=t[5])&&h(e,"src",n),h(e,"alt","close")},m(n,r){var c;s(n,e,r),o=function(t,e,n,o){return t.addEventListener(e,n,o),()=>t.removeEventListener(e,n,o)}(e,"click",function(t){return function(e){return e.stopPropagation(),t.call(this,e)}}((c=t[6],function(t){return t.preventDefault(),c.call(this,t)})),!0)},p(t,o){32&o&&e.src!==(n=t[5])&&h(e,"src",n)},d(t){t&&l(e),o()}}}function j(e){let n,o=e[4]&&M(e);return{c(){o&&o.c(),n=u(""),this.c=t},m(t,e){o&&o.m(t,e),s(t,n,e)},p(t,[e]){t[4]?o?o.p(t,e):(o=M(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&&l(n)}}}function H(t,e,n){let o="",r="",c="",i=!0,s="",{showToggle:l=!0}=e,{theme:a="light"}=e;p(async()=>{const t=await fetch("https://hack-api.codingblocks.com/api/v2/dashboard-banners",{headers:{client:"hack-admin"}}),{data:[e]}=await t.json(),l=e.attributes;n(1,o=l["image-url"]),n(3,c=l.link),n(2,r=l["mobile-image-url"]),n(4,i=!!o),n(5,s="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,l=t.showToggle),"theme"in t&&n(7,a=t.theme)},[l,o,r,c,i,s,()=>{n(4,i=!i)},a]}"function"==typeof HTMLElement&&(L=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(){}});class S extends L{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}@media(min-width:768px){.d-md-none{display:none}.d-md-block{display:block}}</style>",A(this,{target:this.shadowRoot},H,j,c,{showToggle:0,theme:7}),t&&(t.target&&s(t.target,this,t.anchor),t.props&&(this.$set(t.props),v()))}static get observedAttributes(){return["showToggle","theme"]}get showToggle(){return this.$$.ctx[0]}set showToggle(t){this.$set({showToggle:t}),v()}get theme(){return this.$$.ctx[7]}set theme(t){this.$set({theme:t}),v()}}return customElements.define("promotion-banner",S),S}();
var banner=function(){"use strict";function t(){}function e(t){return t()}function n(){return Object.create(null)}function o(t){t.forEach(e)}function r(t){return"function"==typeof t}function c(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function i(t,e){t.appendChild(e)}function l(t,e,n){t.insertBefore(e,n||null)}function s(t){t.parentNode.removeChild(t)}function a(t){return document.createElement(t)}function u(t){return document.createTextNode(t)}function d(){return u(" ")}function h(){return u("")}function f(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}let m;function g(t){m=t}function p(t){(function(){if(!m)throw new Error("Function called outside component initialization");return m})().$$.on_mount.push(t)}const b=[],$=[],w=[],y=[],_=Promise.resolve();let k=!1;function x(t){w.push(t)}const v=new Set;function T(){do{for(;b.length;){const t=b.shift();g(t),E(t.$$)}for(;$.length;)$.pop()();for(let t=0;t<w.length;t+=1){const e=w[t];v.has(e)||(v.add(e),e())}w.length=0}while(b.length);for(;y.length;)y.pop()();k=!1,v.clear()}function E(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(x)}}const C=new Set;function A(t,e){-1===t.$$.dirty[0]&&(b.push(t),k||(k=!0,_.then(T)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function L(c,i,l,s,a,u,d=[-1]){const h=m;g(c);const f=i.props||{},p=c.$$={fragment:null,ctx:null,props:u,update:t,not_equal:a,bound:n(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(h?h.$$.context:[]),callbacks:n(),dirty:d};let b=!1;var $,w;p.ctx=l?l(c,f,(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),b&&A(c,t)),e}):[],p.update(),b=!0,o(p.before_update),p.fragment=!!s&&s(p.ctx),i.target&&(i.hydrate?p.fragment&&p.fragment.l(function(t){return Array.from(t.childNodes)}(i.target)):p.fragment&&p.fragment.c(),i.intro&&(($=c.$$.fragment)&&$.i&&(C.delete($),$.i(w))),function(t,n,c){const{fragment:i,on_mount:l,on_destroy:s,after_update:a}=t.$$;i&&i.m(n,c),x(()=>{const n=l.map(e).filter(r);s?s.push(...n):o(n),t.$$.on_mount=[]}),a.forEach(x)}(c,i.target,i.anchor),T()),g(h)}let N;function M(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 j(t){let e,n=t[3],o=[];for(let e=0;e<n.length;e+=1)o[e]=I(M(t,n,e));return{c(){e=a("div");for(let t=0;t<o.length;t+=1)o[t].c();f(e,"class","carousel")},m(t,n){l(t,e,n);for(let t=0;t<o.length;t+=1)o[t].m(e,null)},p(t,r){if(61&r){let c;for(n=t[3],c=0;c<n.length;c+=1){const i=M(t,n,c);o[c]?o[c].p(i,r):(o[c]=I(i),o[c].c(),o[c].m(e,null))}for(;c<o.length;c+=1)o[c].d(1);o.length=n.length}},d(t){t&&s(e),function(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}(o,t)}}}function H(t){let e,n,o,r,c,u,h,m,g,p=t[0]&&S(t);return{c(){e=a("a"),p&&p.c(),n=d(),o=a("img"),c=d(),u=a("img"),m=d(),f(o,"class","d-md-block"),o.src!==(r=t[9])&&f(o,"src",r),f(o,"alt",""),f(o,"width","100%"),f(u,"class","d-md-none"),u.src!==(h=t[10])&&f(u,"src",h),f(u,"alt",""),f(u,"width","100%"),f(e,"class","d-block"),f(e,"target","_blank"),f(e,"href",g=t[11])},m(t,r){l(t,e,r),p&&p.m(e,null),i(e,n),i(e,o),i(e,c),i(e,u),i(e,m)},p(t,c){t[0]?p?p.p(t,c):(p=S(t),p.c(),p.m(e,n)):p&&(p.d(1),p=null),8&c&&o.src!==(r=t[9])&&f(o,"src",r),8&c&&u.src!==(h=t[10])&&f(u,"src",h),8&c&&g!==(g=t[11])&&f(e,"href",g)},d(t){t&&s(e),p&&p.d()}}}function S(t){let e,n,o;return{c(){e=a("img"),f(e,"class","close-icon"),e.src!==(n=t[2])&&f(e,"src",n),f(e,"alt","close")},m(n,r){var c;l(n,e,r),o=function(t,e,n,o){return t.addEventListener(e,n,o),()=>t.removeEventListener(e,n,o)}(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)},p(t,o){4&o&&e.src!==(n=t[2])&&f(e,"src",n)},d(t){t&&s(e),o()}}}function I(t){let e,n=t[4]==t[13]&&H(t);return{c(){n&&n.c(),e=h()},m(t,o){n&&n.m(t,o),l(t,e,o)},p(t,o){t[4]==t[13]?n?n.p(t,o):(n=H(t),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(t){n&&n.d(t),t&&s(e)}}}function O(e){let n,o=e[1]&&j(e);return{c(){o&&o.c(),n=h(),this.c=t},m(t,e){o&&o.m(t,e),l(t,n,e)},p(t,[e]){t[1]?o?o.p(t,e):(o=j(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&&s(n)}}}function P(t,e,n){let o=!1,r="",c=[],i=0,l=!1,{showToggle:s=!0}=e,{theme:a="light"}=e;p(async()=>{const t=await fetch("http://test.hackbackend/api/v2/dashboard-banners",{headers:{client:"hack-admin"}}),{data:e}=await t.json();n(3,c=e.map(t=>({img_url:t.attributes["image-url"],img_url_mobile:t.attributes["mobile-image-url"],link:t.attributes.link}))),n(2,r="light"===a?"https://minio.codingblocks.com/motley/wrong_g_white.min.png":"https://minio.codingblocks.com/motley/wrong_g.png"),n(1,o=!!c.length),console.log(o),l||u()});const u=t=>{l&&(console.log(l),clearInterval(l)),l=setInterval(()=>{i==c.length-1?n(4,i=0):n(4,i+=1)},7e3)};return t.$set=t=>{"showToggle"in t&&n(0,s=t.showToggle),"theme"in t&&n(6,a=t.theme)},[s,o,r,c,i,()=>{n(1,o=!o)},a]}"function"==typeof HTMLElement&&(N=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(){}});class R extends N{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{height:116px;overflow:hidden}@media(min-width:768px){.d-md-none{display:none}.d-md-block{display:block}}</style>",L(this,{target:this.shadowRoot},P,O,c,{showToggle:0,theme:6}),t&&(t.target&&l(t.target,this,t.anchor),t.props&&(this.$set(t.props),T()))}static get observedAttributes(){return["showToggle","theme"]}get showToggle(){return this.$$.ctx[0]}set showToggle(t){this.$set({showToggle:t}),T()}get theme(){return this.$$.ctx[6]}set theme(t){this.$set({theme:t}),T()}}return customElements.define("promotion-banner",R),R}();

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

this.index=this.index||{},this.index.js=function(e){"use strict";function t(){}function n(e){return e()}function s(){return Object.create(null)}function o(e){e.forEach(n)}function r(e){return"function"==typeof e}function l(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function c(e,t){e.appendChild(t)}function i(e,t,n){e.insertBefore(t,n||null)}function a(e){e.parentNode.removeChild(e)}function d(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function u(e){return document.createElement(e)}function m(e){return document.createTextNode(e)}function h(){return m(" ")}function g(e,t,n,s){return e.addEventListener(t,n,s),()=>e.removeEventListener(t,n,s)}function p(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function b(e,t){t=""+t,e.data!==t&&(e.data=t)}function v(e,t){(null!=t||e.value)&&(e.value=t)}function f(e,t){for(let n=0;n<e.options.length;n+=1){const s=e.options[n];if(s.__value===t)return void(s.selected=!0)}}function k(e){const t=e.querySelector(":checked")||e.options[0];return t&&t.__value}let y;function $(e){y=e}function x(){if(!y)throw new Error("Function called outside component initialization");return y}function _(e){x().$$.on_mount.push(e)}function w(){const e=x();return(t,n)=>{const s=e.$$.callbacks[t];if(s){const o=function(e,t){const n=document.createEvent("CustomEvent");return n.initCustomEvent(e,!1,!1,t),n}(t,n);s.slice().forEach(t=>{t.call(e,o)})}}}const C=[],j=[],M=[],A=[],T=Promise.resolve();let L=!1;function E(e){M.push(e)}const P=new Set;function H(){do{for(;C.length;){const e=C.shift();$(e),D(e.$$)}for(;j.length;)j.pop()();for(let e=0;e<M.length;e+=1){const t=M[e];P.has(t)||(P.add(t),t())}M.length=0}while(C.length);for(;A.length;)A.pop()();L=!1,P.clear()}function D(e){if(null!==e.fragment){e.update(),o(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(E)}}const U=new Set;let B,z;function I(){B={r:0,c:[],p:B}}function R(){B.r||o(B.c),B=B.p}function J(e,t){e&&e.i&&(U.delete(e),e.i(t))}function O(e,t,n,s){if(e&&e.o){if(U.has(e))return;U.add(e),B.c.push(()=>{U.delete(e),s&&(n&&e.d(1),s())}),e.o(t)}}function N(e){e&&e.c()}function F(e,t,s){const{fragment:l,on_mount:c,on_destroy:i,after_update:a}=e.$$;l&&l.m(t,s),E(()=>{const t=c.map(n).filter(r);i?i.push(...t):o(t),e.$$.on_mount=[]}),a.forEach(E)}function S(e,t){const n=e.$$;null!==n.fragment&&(o(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function G(e,t){-1===e.$$.dirty[0]&&(C.push(e),L||(L=!0,T.then(H)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function W(e,n,r,l,c,i,a=[-1]){const d=y;$(e);const u=n.props||{},m=e.$$={fragment:null,ctx:null,props:i,update:t,not_equal:c,bound:s(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(d?d.$$.context:[]),callbacks:s(),dirty:a};let h=!1;m.ctx=r?r(e,u,(t,n,...s)=>{const o=s.length?s[0]:n;return m.ctx&&c(m.ctx[t],m.ctx[t]=o)&&(m.bound[t]&&m.bound[t](o),h&&G(e,t)),n}):[],m.update(),h=!0,o(m.before_update),m.fragment=!!l&&l(m.ctx),n.target&&(n.hydrate?m.fragment&&m.fragment.l(function(e){return Array.from(e.childNodes)}(n.target)):m.fragment&&m.fragment.c(),n.intro&&J(e.$$.fragment),F(e,n.target,n.anchor),H()),$(d)}function q(e){let t,n,s,o,r,l,d,m=e[0]&&Y(e);return{c(){t=u("a"),m&&m.c(),n=h(),s=u("img"),r=h(),l=u("img"),p(s,"class","d-md-block"),s.src!==(o=e[1])&&p(s,"src",o),p(s,"alt",""),p(s,"width","100%"),p(l,"class","d-md-none"),l.src!==(d=e[2])&&p(l,"src",d),p(l,"alt",""),p(l,"width","100%"),p(t,"class","d-block"),p(t,"target","_blank"),p(t,"href",e[3])},m(e,o){i(e,t,o),m&&m.m(t,null),c(t,n),c(t,s),c(t,r),c(t,l)},p(e,r){e[0]?m?m.p(e,r):(m=Y(e),m.c(),m.m(t,n)):m&&(m.d(1),m=null),2&r&&s.src!==(o=e[1])&&p(s,"src",o),4&r&&l.src!==(d=e[2])&&p(l,"src",d),8&r&&p(t,"href",e[3])},d(e){e&&a(t),m&&m.d()}}}function Y(e){let t,n,s;return{c(){t=u("img"),p(t,"class","close-icon"),t.src!==(n=e[5])&&p(t,"src",n),p(t,"alt","close")},m(n,o){var r;i(n,t,o),s=g(t,"click",function(e){return function(t){return t.stopPropagation(),e.call(this,t)}}((r=e[6],function(e){return e.preventDefault(),r.call(this,e)})),!0)},p(e,s){32&s&&t.src!==(n=e[5])&&p(t,"src",n)},d(e){e&&a(t),s()}}}function Z(e){let n,s=e[4]&&q(e);return{c(){s&&s.c(),n=m(""),this.c=t},m(e,t){s&&s.m(e,t),i(e,n,t)},p(e,[t]){e[4]?s?s.p(e,t):(s=q(e),s.c(),s.m(n.parentNode,n)):s&&(s.d(1),s=null)},i:t,o:t,d(e){s&&s.d(e),e&&a(n)}}}function K(e,t,n){let s="",o="",r="",l=!0,c="",{showToggle:i=!0}=t,{theme:a="light"}=t;_(async()=>{const e=await fetch("https://hack-api.codingblocks.com/api/v2/dashboard-banners",{headers:{client:"hack-admin"}}),{data:[t]}=await e.json(),i=t.attributes;n(1,s=i["image-url"]),n(3,r=i.link),n(2,o=i["mobile-image-url"]),n(4,l=!!s),n(5,c="light"===a?"https://minio.codingblocks.com/motley/wrong_g_white.min.png":"https://minio.codingblocks.com/motley/wrong_g.png")});return e.$set=e=>{"showToggle"in e&&n(0,i=e.showToggle),"theme"in e&&n(7,a=e.theme)},[i,s,o,r,l,c,()=>{n(4,l=!l)},a]}"function"==typeof HTMLElement&&(z=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}$destroy(){S(this,1),this.$destroy=t}$on(e,t){const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(){}});class V extends z{constructor(e){super(),this.shadowRoot.innerHTML="<style>.d-block{display:block;position:relative}.close-icon{position:absolute;right:10px;cursor:pointer;top:10px;width:15px;transition:width 0.1s}.close-icon:hover{width:18px}.d-md-none{display:block}.d-md-block{display:none}@media(min-width:768px){.d-md-none{display:none}.d-md-block{display:block}}</style>",W(this,{target:this.shadowRoot},K,Z,l,{showToggle:0,theme:7}),e&&(e.target&&i(e.target,this,e.anchor),e.props&&(this.$set(e.props),H()))}static get observedAttributes(){return["showToggle","theme"]}get showToggle(){return this.$$.ctx[0]}set showToggle(e){this.$set({showToggle:e}),H()}get theme(){return this.$$.ctx[7]}set theme(e){this.$set({theme:e}),H()}}customElements.define("promotion-banner",V);var Q=new class{constructor(e){this.url=e}fetchUser(){return fetch(this.url+"/users/me?include=demographic",{credentials:"include"}).then(e=>e.json())}fetchColleges(){return fetch(this.url+"/colleges").then(e=>e.json())}fetchBranches(){return fetch(this.url+"/branches").then(e=>e.json())}updateUser(e){return fetch(this.url+"/users/me/edit",{method:"PATCH",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then(e=>e.json())}}("https://account.codingblocks.com/api");function X(e,t,n){const s=e.slice();return s[15]=t[n],s}function ee(e,t,n){const s=e.slice();return s[18]=t[n],s}function te(e,t,n){const s=e.slice();return s[21]=t[n],s}function ne(e){let t,n,s;function o(e,t){return e[7].success?oe:se}let r=o(e),l=r(e);return{c(){t=u("div"),n=u("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=h(),l.c(),p(n,"class","bg-gradient-pink white p-4"),p(t,"class","border-card b-red p-0")},m(e,o){i(e,t,o),c(t,n),c(t,s),l.m(t,null)},p(e,n){r===(r=o(e))&&l?l.p(e,n):(l.d(1),l=r(e),l&&(l.c(),l.m(t,null)))},d(e){e&&a(t),l.d()}}}function se(e){let t,n,s,r,l,m,b,v,k,y,$,x,_,w,C,j=e[4],M=[];for(let t=0;t<j.length;t+=1)M[t]=re(te(e,j,t));let A=1===e[0]&&le(e),T=e[8],L=[];for(let t=0;t<T.length;t+=1)L[t]=ce(ee(e,T,t));let P=e[5],H=[];for(let t=0;t<P.length;t+=1)H[t]=ie(X(e,P,t));let D=e[7].error&&ae(e);return{c(){t=u("div"),n=u("select"),s=u("option"),s.textContent="-- College --";for(let e=0;e<M.length;e+=1)M[e].c();r=h(),A&&A.c(),l=h(),m=u("select"),b=u("option"),b.textContent="-- Graduation Year --";for(let e=0;e<L.length;e+=1)L[e].c();v=h(),k=u("select"),y=u("option"),y.textContent="-- Branch --";for(let e=0;e<H.length;e+=1)H[e].c();$=h(),x=u("div"),_=u("button"),_.textContent="Update Profile",w=h(),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===e[0]&&E(()=>e[11].call(n)),b.disabled=!0,b.selected=!0,b.__value="",b.value=b.__value,p(m,"class","input-text br-50 my-2"),void 0===e[2]&&E(()=>e[13].call(m)),y.disabled=!0,y.selected=!0,y.__value="",y.value=y.__value,p(k,"class","input-text br-50 my-2"),void 0===e[1]&&E(()=>e[14].call(k)),p(_,"id","updatedButton"),p(_,"class","button-solid button-orange"),p(x,"class","d-flex justify-content-center mt-5"),p(t,"class","py-4 px-5 t-align-center")},m(o,a){i(o,t,a),c(t,n),c(n,s);for(let e=0;e<M.length;e+=1)M[e].m(n,null);f(n,e[0]),c(t,r),A&&A.m(t,null),c(t,l),c(t,m),c(m,b);for(let e=0;e<L.length;e+=1)L[e].m(m,null);f(m,e[2]),c(t,v),c(t,k),c(k,y);for(let e=0;e<H.length;e+=1)H[e].m(k,null);f(k,e[1]),c(t,$),c(t,x),c(x,_),c(t,w),D&&D.m(t,null),C=[g(n,"change",e[11]),g(m,"change",e[13]),g(k,"change",e[14]),g(_,"click",e[9])]},p(e,s){if(17&s){let t;for(j=e[4],t=0;t<j.length;t+=1){const o=te(e,j,t);M[t]?M[t].p(o,s):(M[t]=re(o),M[t].c(),M[t].m(n,null))}for(;t<M.length;t+=1)M[t].d(1);M.length=j.length}if(1&s&&f(n,e[0]),1===e[0]?A?A.p(e,s):(A=le(e),A.c(),A.m(t,l)):A&&(A.d(1),A=null),260&s){let t;for(T=e[8],t=0;t<T.length;t+=1){const n=ee(e,T,t);L[t]?L[t].p(n,s):(L[t]=ce(n),L[t].c(),L[t].m(m,null))}for(;t<L.length;t+=1)L[t].d(1);L.length=T.length}if(4&s&&f(m,e[2]),34&s){let t;for(P=e[5],t=0;t<P.length;t+=1){const n=X(e,P,t);H[t]?H[t].p(n,s):(H[t]=ie(n),H[t].c(),H[t].m(k,null))}for(;t<H.length;t+=1)H[t].d(1);H.length=P.length}2&s&&f(k,e[1]),e[7].error?D?D.p(e,s):(D=ae(e),D.c(),D.m(t,null)):D&&(D.d(1),D=null)},d(e){e&&a(t),d(M,e),A&&A.d(),d(L,e),d(H,e),D&&D.d(),o(C)}}}function oe(e){let n;return{c(){n=u("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(e,t){i(e,n,t)},p:t,d(e){e&&a(n)}}}function re(e){let t,n,s,o,r,l=e[21].name+"";return{c(){t=u("option"),n=m(l),s=h(),t.__value=o=e[21].id,t.value=t.__value,t.selected=r=e[21].id===e[0]},m(e,o){i(e,t,o),c(t,n),c(t,s)},p(e,s){16&s&&l!==(l=e[21].name+"")&&b(n,l),16&s&&o!==(o=e[21].id)&&(t.__value=o),t.value=t.__value,17&s&&r!==(r=e[21].id===e[0])&&(t.selected=r)},d(e){e&&a(t)}}}function le(e){let t,n;return{c(){t=u("input"),p(t,"type","text"),p(t,"placeholder","Other College Name"),p(t,"class","input-text br-50 my-2")},m(s,o){i(s,t,o),v(t,e[3]),n=g(t,"input",e[12])},p(e,n){8&n&&t.value!==e[3]&&v(t,e[3])},d(e){e&&a(t),n()}}}function ce(e){let t,n,s,o,r,l=e[18]+"";return{c(){t=u("option"),n=m(l),s=h(),t.__value=o=e[18],t.value=t.__value,t.selected=r=e[18]===e[2]},m(e,o){i(e,t,o),c(t,n),c(t,s)},p(e,n){4&n&&r!==(r=e[18]===e[2])&&(t.selected=r)},d(e){e&&a(t)}}}function ie(e){let t,n,s,o,r,l=e[15].name+"";return{c(){t=u("option"),n=m(l),s=h(),t.__value=o=e[15].id,t.value=t.__value,t.selected=r=e[15].id===e[1]},m(e,o){i(e,t,o),c(t,n),c(t,s)},p(e,s){32&s&&l!==(l=e[15].name+"")&&b(n,l),32&s&&o!==(o=e[15].id)&&(t.__value=o),t.value=t.__value,34&s&&r!==(r=e[15].id===e[1])&&(t.selected=r)},d(e){e&&a(t)}}}function ae(e){let t,n,s,o=e[7].error+"";return{c(){t=u("div"),n=u("p"),s=m(o),p(n,"class","red"),p(t,"class","row justify-content-center")},m(e,o){i(e,t,o),c(t,n),c(n,s)},p(e,t){128&t&&o!==(o=e[7].error+"")&&b(s,o)},d(e){e&&a(t)}}}function de(e){let n,s,o=e[6].id&&1===e[6].demographic.collegeId&&!e[6].demographic.otherCollege&&ne(e);return{c(){o&&o.c(),n=h(),s=u("link"),this.c=t,p(s,"rel","stylesheet"),p(s,"href","https://unpkg.com/@coding-blocks/motley@0.7.4/dist/online-cb/app.min.css")},m(e,t){o&&o.m(e,t),i(e,n,t),i(e,s,t)},p(e,[t]){e[6].id&&1===e[6].demographic.collegeId&&!e[6].demographic.otherCollege?o?o.p(e,t):(o=ne(e),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},i:t,o:t,d(e){o&&o.d(e),e&&a(n),e&&a(s)}}}function ue(e,t,n){let s=null,o=null,r=null,l="",c=[],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],d={},u={success:null,error:null};const m=w();_(async()=>{n(6,d=await Q.fetchUser()),d.id&&(n(4,c=await Q.fetchColleges()),n(5,i=await Q.fetchBranches()),n(2,r=d.graduationYear),n(0,s=d.demographic.collegeId),n(1,o=d.demographic.branchId),n(3,l=d.demographic.otherCollege))});return[s,o,r,l,c,i,d,u,a,async()=>{try{const e=await Q.updateUser({gradYear:r,collegeId:s,branchId:o,otherCollege:l});m("updated",e),n(7,u={success:e.success}),setTimeout(async()=>{n(6,d=await Q.fetchUser())},2e3)}catch(e){n(7,u={error:e})}},m,function(){s=k(this),n(0,s),n(4,c)},function(){l=this.value,n(3,l)},function(){r=k(this),n(2,r),n(8,a)},function(){o=k(this),n(1,o),n(5,i)}]}class me extends z{constructor(e){super(),W(this,{target:this.shadowRoot},ue,de,l,{}),e&&e.target&&i(e.target,this,e.anchor)}}function he(e){let n;return{c(){n=u("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=t,p(n,"class","pl-4")},m(e,t){i(e,n,t)},p:t,i:t,o:t,d(e){e&&a(n)}}}customElements.define("demographic-form",me);class ge extends z{constructor(e){super(),W(this,{target:this.shadowRoot},null,he,l,{}),e&&e.target&&i(e.target,this,e.anchor)}}function pe(e){let n;return{c(){n=u("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=t,p(n,"class","pl-4")},m(e,t){i(e,n,t)},p:t,i:t,o:t,d(e){e&&a(n)}}}customElements.define("mobile-classroom-courses",ge);class be extends z{constructor(e){super(),W(this,{target:this.shadowRoot},null,pe,l,{}),e&&e.target&&i(e.target,this,e.anchor)}}function ve(e){let t;const n=new ge({});return{c(){N(n.$$.fragment)},m(e,s){F(n,e,s),t=!0},i(e){t||(J(n.$$.fragment,e),t=!0)},o(e){O(n.$$.fragment,e),t=!1},d(e){S(n,e)}}}function fe(e){let t;const n=new be({});return{c(){N(n.$$.fragment)},m(e,s){F(n,e,s),t=!0},i(e){t||(J(n.$$.fragment,e),t=!0)},o(e){O(n.$$.fragment,e),t=!1},d(e){S(n,e)}}}function ke(e){let n,s,r,l,d,m,b,v,f,k,y,$,x,_,w,C,j,M,A,T,L,E,P,H,D,U,B,z,N,F,S,G,W,q,Y,Z,K,V,Q,X,ee,te,ne,se="classroom"==e[0]&&ve(),oe="online"==e[0]&&fe();return{c(){n=u("link"),s=h(),r=u("link"),l=h(),d=u("div"),m=u("div"),b=u("img"),f=h(),k=u("img"),$=h(),x=u("div"),_=h(),w=u("slot"),C=h(),j=u("div"),M=u("div"),M.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>',A=h(),T=u("div"),L=u("div"),E=u("div"),E.textContent="Classroom Courses",P=h(),H=u("div"),H.innerHTML='<a href="#" class="orange">Explore All</a>',U=h(),se&&se.c(),B=h(),z=u("div"),N=u("div"),F=u("div"),F.textContent="Online Courses",S=h(),G=u("div"),G.innerHTML='<a href="#" class="orange">Explore All</a>',q=h(),oe&&oe.c(),Y=h(),Z=u("div"),Z.innerHTML='<a href="https://codingblocks.com/campus-ambassador-program.html" target="blank">\n Campus Ambassadors\n </a>',K=h(),V=u("div"),V.innerHTML='<a href="https://codingblocks.com/about" target="blank">\n About Us\n </a>',Q=h(),X=u("div"),X.innerHTML='<a href="https://codingblocks.com/centres" target="blank">\n Contact Us\n </a>',this.c=t,p(n,"rel","stylesheet"),p(n,"href",e[2]),p(r,"href","https://minio.codingblocks.com/hackerblocks-images/Gilroy.ttf"),p(r,"rel","stylesheet"),b.src!==(v=e[3])&&p(b,"src",v),p(b,"alt","HB"),p(b,"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(m,"class","d-flex py-3 justify-content-between align-items-center hamburger-nav__top-bar"),p(x,"class","divider-h"),p(M,"class","d-flex justify-content-between"),p(E,"class","card-md extra-bold"),p(H,"class","card-sm light"),p(L,"class",D="hamburger-nav__menu-element "+("classroom"==e[0]&&"active")),p(T,"class","my-4 pl-4"),p(F,"class","card-md extra-bold"),p(G,"class","card-sm light"),p(N,"class",W="hamburger-nav__menu-element "+("online"==e[0]&&"active")),p(z,"class","my-4 pl-4"),p(Z,"class","card-md light my-4"),p(V,"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",ee="hamburger-nav b-right overflow-y-auto no-scrollbar "+(!e[1]&&"hamburger-nav--hidden")+" ")},m(t,o){i(t,n,o),i(t,s,o),i(t,r,o),i(t,l,o),i(t,d,o),c(d,m),c(m,b),c(m,f),c(m,k),c(d,$),c(d,x),c(d,_),c(d,w),c(d,C),c(d,j),c(j,M),c(j,A),c(j,T),c(T,L),c(L,E),c(L,P),c(L,H),c(T,U),se&&se.m(T,null),c(j,B),c(j,z),c(z,N),c(N,F),c(N,S),c(N,G),c(z,q),oe&&oe.m(z,null),c(j,Y),c(j,Z),c(j,K),c(j,V),c(j,Q),c(j,X),te=!0,ne=[g(k,"click",e[4]),g(E,"click",e[5]),g(F,"click",e[6])]},p(e,[t]){(!te||4&t)&&p(n,"href",e[2]),(!te||8&t&&b.src!==(v=e[3]))&&p(b,"src",v),(!te||1&t&&D!==(D="hamburger-nav__menu-element "+("classroom"==e[0]&&"active")))&&p(L,"class",D),"classroom"==e[0]?se?J(se,1):(se=ve(),se.c(),J(se,1),se.m(T,null)):se&&(I(),O(se,1,1,()=>{se=null}),R()),(!te||1&t&&W!==(W="hamburger-nav__menu-element "+("online"==e[0]&&"active")))&&p(N,"class",W),"online"==e[0]?oe?J(oe,1):(oe=fe(),oe.c(),J(oe,1),oe.m(z,null)):oe&&(I(),O(oe,1,1,()=>{oe=null}),R()),(!te||2&t&&ee!==(ee="hamburger-nav b-right overflow-y-auto no-scrollbar "+(!e[1]&&"hamburger-nav--hidden")+" "))&&p(d,"class",ee)},i(e){te||(J(se),J(oe),te=!0)},o(e){O(se),O(oe),te=!1},d(e){e&&a(n),e&&a(s),e&&a(r),e&&a(l),e&&a(d),se&&se.d(),oe&&oe.d(),o(ne)}}}function ye(e,t,n){let{css:s="https://unpkg.com/@coding-blocks/motley/dist/app.min.css"}=t,{tab:o="classroom"}=t,{showhamburger:r=!1}=t,{logo:l="https://codingblocks.com/assets/images/cb/cblogo.png"}=t;return e.$set=e=>{"css"in e&&n(2,s=e.css),"tab"in e&&n(0,o=e.tab),"showhamburger"in e&&n(1,r=e.showhamburger),"logo"in e&&n(3,l=e.logo)},[o,r,s,l,()=>n(1,r=!r),()=>n(0,o="classroom"),()=>n(0,o="online")]}customElements.define("mobile-online-courses",be);class $e extends z{constructor(e){super(),W(this,{target:this.shadowRoot},ye,ke,l,{css:2,tab:0,showhamburger:1,logo:3}),e&&(e.target&&i(e.target,this,e.anchor),e.props&&(this.$set(e.props),H()))}static get observedAttributes(){return["css","tab","showhamburger","logo"]}get css(){return this.$$.ctx[2]}set css(e){this.$set({css:e}),H()}get tab(){return this.$$.ctx[0]}set tab(e){this.$set({tab:e}),H()}get showhamburger(){return this.$$.ctx[1]}set showhamburger(e){this.$set({showhamburger:e}),H()}get logo(){return this.$$.ctx[3]}set logo(e){this.$set({logo:e}),H()}}function xe(e){let n;return{c(){n=u("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=t,p(n,"class","row justify-content-around m-5")},m(e,t){i(e,n,t)},p:t,i:t,o:t,d(e){e&&a(n)}}}customElements.define("cb-mobile-navbar",$e);class _e extends z{constructor(e){super(),W(this,{target:this.shadowRoot},null,xe,l,{}),e&&e.target&&i(e.target,this,e.anchor)}}function we(e){let n;return{c(){n=u("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=t,p(n,"class","row justify-content-around m-5")},m(e,t){i(e,n,t)},p:t,i:t,o:t,d(e){e&&a(n)}}}customElements.define("classroom-courses",_e);class Ce extends z{constructor(e){super(),W(this,{target:this.shadowRoot},null,we,l,{}),e&&e.target&&i(e.target,this,e.anchor)}}function je(e){let t,n,s,r,l,d,m,b,v,f,k,y,$,x,_,w,C;const j=[Ae,Me],M=[];function A(e,t){return"classroom"==e[1]?0:1}return x=A(e),_=M[x]=j[x](e),{c(){var o,c,i;t=u("div"),n=u("div"),s=u("div"),s.innerHTML='<div class="font-lg my-4 offset-3">Our Courses</div>',r=h(),l=u("div"),d=u("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>',b=h(),v=u("div"),f=u("div"),f.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=h(),$=u("div"),_.c(),p(s,"class","py-5 font-md bold hover-grey"),p(d,"class","offset-3"),p(l,"class",m="py-4 font-md bold hover-grey "+("online"==e[1]&&"selected")),p(f,"class","offset-3"),p(v,"class",k="py-4 font-md bold hover-grey "+("classroom"==e[1]&&"selected")),p(n,"class","cb-navbar-side col-3"),p($,"class","col-9 font-mds"),p(t,"class","row no-gutters cb-navbar-expanded"),o="overflow",c="hidden",t.style.setProperty(o,c,i?"important":"")},m(o,a){i(o,t,a),c(t,n),c(n,s),c(n,r),c(n,l),c(l,d),c(n,b),c(n,v),c(v,f),c(t,y),c(t,$),M[x].m($,null),w=!0,C=[g(l,"click",e[6]),g(v,"click",e[7])]},p(e,t){(!w||2&t&&m!==(m="py-4 font-md bold hover-grey "+("online"==e[1]&&"selected")))&&p(l,"class",m),(!w||2&t&&k!==(k="py-4 font-md bold hover-grey "+("classroom"==e[1]&&"selected")))&&p(v,"class",k);let n=x;x=A(e),x!==n&&(I(),O(M[n],1,1,()=>{M[n]=null}),R(),_=M[x],_||(_=M[x]=j[x](e),_.c()),J(_,1),_.m($,null))},i(e){w||(J(_),w=!0)},o(e){O(_),w=!1},d(e){e&&a(t),M[x].d(),o(C)}}}function Me(e){let t;const n=new Ce({});return{c(){N(n.$$.fragment)},m(e,s){F(n,e,s),t=!0},i(e){t||(J(n.$$.fragment,e),t=!0)},o(e){O(n.$$.fragment,e),t=!1},d(e){S(n,e)}}}function Ae(e){let t;const n=new _e({});return{c(){N(n.$$.fragment)},m(e,s){F(n,e,s),t=!0},i(e){t||(J(n.$$.fragment,e),t=!0)},o(e){O(n.$$.fragment,e),t=!1},d(e){S(n,e)}}}function Te(e){let n,s,o,r,l,d,b,v,f,k,y,$,x,_,w,C,j,M,A,T,L,E,P,H,D,U,B,z=e[0]&&je(e);return{c(){n=u("div"),s=u("div"),o=u("div"),r=u("span"),l=m("Courses\n "),d=u("img"),v=h(),f=u("div"),f.innerHTML='<a href="https://codingblocks.com/about.html" target="_blank">About Us</a>',k=h(),y=u("div"),y.innerHTML='<a href="https://codingblocks.com/resources" target="_blank">Resources</a>',$=h(),x=u("div"),x.innerHTML='<a href="https://codingblocks.com/campus-ambassador-program.html" target="_blank">Campus Ambassadors</a>',_=h(),w=u("div"),w.innerHTML='<a href="https://codingblocks.com/centres/" target="_blank">Contact Us</a>',C=h(),j=u("slot"),A=h(),z&&z.c(),T=h(),L=u("link"),E=h(),P=u("link"),H=h(),D=u("link"),this.c=t,d.src!==(b="https://minio.cb.lk/public/fa-5.13/svgs/solid/chevron-"+(e[0]?"up":"down")+".svg")&&p(d,"src",b),p(d,"alt","chevron"),p(d,"class","d-inline s-10x10"),p(r,"class","px-3 pointer"),p(f,"class","px-3"),p(y,"class","px-3"),p(x,"class","px-3"),p(w,"class","px-3"),p(j,"name","header"),p(o,"class",M="d-flex "+e[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",e[2]),p(P,"href","https://fonts.googleapis.com/css?family=Nunito+Sans:400,600,700,800"),p(P,"rel","stylesheet"),p(D,"href","https://minio.codingblocks.com/hackerblocks-images/Gilroy.ttf"),p(D,"rel","stylesheet")},m(t,a){i(t,n,a),c(n,s),c(s,o),c(o,r),c(r,l),c(r,d),c(o,v),c(o,f),c(o,k),c(o,y),c(o,$),c(o,x),c(o,_),c(o,w),c(o,C),c(o,j),c(n,A),z&&z.m(n,null),i(t,T,a),i(t,L,a),i(t,E,a),i(t,P,a),i(t,H,a),i(t,D,a),U=!0,B=g(r,"click",e[4])},p(e,[t]){(!U||1&t&&d.src!==(b="https://minio.cb.lk/public/fa-5.13/svgs/solid/chevron-"+(e[0]?"up":"down")+".svg"))&&p(d,"src",b),(!U||8&t&&M!==(M="d-flex "+e[3]+" py-3 pr-5"))&&p(o,"class",M),e[0]?z?(z.p(e,t),J(z,1)):(z=je(e),z.c(),J(z,1),z.m(n,null)):z&&(I(),O(z,1,1,()=>{z=null}),R()),(!U||4&t)&&p(L,"href",e[2])},i(e){U||(J(z),U=!0)},o(e){O(z),U=!1},d(e){e&&a(n),z&&z.d(),e&&a(T),e&&a(L),e&&a(E),e&&a(P),e&&a(H),e&&a(D),B()}}}function Le(e,t,n){let{topalign:s="center"}=t,{expanded:o=!1}=t,{tab:r="online"}=t,{css:l="https://unpkg.com/@coding-blocks/motley/dist/app.min.css"}=t,c="justify-content-center";return e.$set=e=>{"topalign"in e&&n(5,s=e.topalign),"expanded"in e&&n(0,o=e.expanded),"tab"in e&&n(1,r=e.tab),"css"in e&&n(2,l=e.css)},e.$$.update=()=>{if(32&e.$$.dirty)switch(s){case"left":n(3,c="justify-content-start");break;case"right":n(3,c="justify-content-end");break;default:n(3,c="justify-content-center")}},[o,r,l,c,()=>n(0,o=!o),s,()=>n(1,r="online"),()=>n(1,r="classroom")]}customElements.define("online-courses",Ce);class Ee extends z{constructor(e){super(),this.shadowRoot.innerHTML="<style>a:hover{text-decoration:underline}.hover-grey.selected:hover{background:unset}.a-hb{display:none}</style>",W(this,{target:this.shadowRoot},Le,Te,l,{topalign:5,expanded:0,tab:1,css:2}),e&&(e.target&&i(e.target,this,e.anchor),e.props&&(this.$set(e.props),H()))}static get observedAttributes(){return["topalign","expanded","tab","css"]}get topalign(){return this.$$.ctx[5]}set topalign(e){this.$set({topalign:e}),H()}get expanded(){return this.$$.ctx[0]}set expanded(e){this.$set({expanded:e}),H()}get tab(){return this.$$.ctx[1]}set tab(e){this.$set({tab:e}),H()}get css(){return this.$$.ctx[2]}set css(e){this.$set({css:e}),H()}}function Pe(e){let n,s,o,r,l,i,d,m,h,g,b,v,f,k;return{c(){n=u("script"),o=u("script"),l=u("script"),d=u("script"),h=u("script"),b=u("script"),f=u("script"),this.c=t,n.src!==(s="https://source.zoom.us/1.8.5/lib/vendor/react.min.js")&&p(n,"src","https://source.zoom.us/1.8.5/lib/vendor/react.min.js"),o.src!==(r="https://source.zoom.us/1.8.5/lib/vendor/react-dom.min.js")&&p(o,"src","https://source.zoom.us/1.8.5/lib/vendor/react-dom.min.js"),l.src!==(i="https://source.zoom.us/1.8.5/lib/vendor/redux.min.js")&&p(l,"src","https://source.zoom.us/1.8.5/lib/vendor/redux.min.js"),d.src!==(m="https://source.zoom.us/1.8.5/lib/vendor/redux-thunk.min.js")&&p(d,"src","https://source.zoom.us/1.8.5/lib/vendor/redux-thunk.min.js"),h.src!==(g="https://source.zoom.us/1.8.5/lib/vendor/jquery.min.js")&&p(h,"src","https://source.zoom.us/1.8.5/lib/vendor/jquery.min.js"),b.src!==(v="https://source.zoom.us/1.8.5/lib/vendor/lodash.min.js")&&p(b,"src","https://source.zoom.us/1.8.5/lib/vendor/lodash.min.js"),f.src!==(k="https://source.zoom.us/zoom-meeting-1.8.5.min.js")&&p(f,"src","https://source.zoom.us/zoom-meeting-1.8.5.min.js")},m(t,s){c(document.head,n),c(document.head,o),c(document.head,l),c(document.head,d),c(document.head,h),c(document.head,b),c(document.head,f),e[7](f)},p:t,i:t,o:t,d(t){a(n),a(o),a(l),a(d),a(h),a(b),a(f),e[7](null)}}}function He(e,t,n){let s,{leaveUrl:o="/"}=t,{meetingnumber:r}=t,{signature:l}=t,{apikey:c}=t,{username:i}=t,{useremail:a}=t;return _(async()=>{s.addEventListener("load",()=>{console.log(r),ZoomMtg.preLoadWasm(),ZoomMtg.prepareJssdk(),ZoomMtg.init({leaveUrl:o,success(){ZoomMtg.join({meetingNumber:r,userName:i,signature:l,apiKey:c,userEmail:a,success(e){console.log("success")},error(e){console.log(e)}})},error(e){console.log(e)}})})}),e.$set=e=>{"leaveUrl"in e&&n(1,o=e.leaveUrl),"meetingnumber"in e&&n(2,r=e.meetingnumber),"signature"in e&&n(3,l=e.signature),"apikey"in e&&n(4,c=e.apikey),"username"in e&&n(5,i=e.username),"useremail"in e&&n(6,a=e.useremail)},[s,o,r,l,c,i,a,function(e){j[e?"unshift":"push"](()=>{n(0,s=e)})}]}customElements.define("cb-navbar",Ee);class De extends z{constructor(e){super(),W(this,{target:this.shadowRoot},He,Pe,l,{leaveUrl:1,meetingnumber:2,signature:3,apikey:4,username:5,useremail:6}),e&&(e.target&&i(e.target,this,e.anchor),e.props&&(this.$set(e.props),H()))}static get observedAttributes(){return["leaveUrl","meetingnumber","signature","apikey","username","useremail"]}get leaveUrl(){return this.$$.ctx[1]}set leaveUrl(e){this.$set({leaveUrl:e}),H()}get meetingnumber(){return this.$$.ctx[2]}set meetingnumber(e){this.$set({meetingnumber:e}),H()}get signature(){return this.$$.ctx[3]}set signature(e){this.$set({signature:e}),H()}get apikey(){return this.$$.ctx[4]}set apikey(e){this.$set({apikey:e}),H()}get username(){return this.$$.ctx[5]}set username(e){this.$set({username:e}),H()}get useremail(){return this.$$.ctx[6]}set useremail(e){this.$set({useremail:e}),H()}}return customElements.define("zoom-meeting",De),e.banner=V,e.cb_navbar=Ee,e.demographic_form=me,e.mobile_cb_navbar=$e,e.zoom_meeting=De,e}({});
this.index=this.index||{},this.index.js=function(e){"use strict";function t(){}function n(e){return e()}function s(){return Object.create(null)}function o(e){e.forEach(n)}function r(e){return"function"==typeof e}function l(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function c(e,t){e.appendChild(t)}function i(e,t,n){e.insertBefore(t,n||null)}function a(e){e.parentNode.removeChild(e)}function d(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function u(e){return document.createElement(e)}function m(e){return document.createTextNode(e)}function h(){return m(" ")}function g(){return m("")}function p(e,t,n,s){return e.addEventListener(t,n,s),()=>e.removeEventListener(t,n,s)}function f(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function b(e,t){t=""+t,e.data!==t&&(e.data=t)}function v(e,t){(null!=t||e.value)&&(e.value=t)}function k(e,t){for(let n=0;n<e.options.length;n+=1){const s=e.options[n];if(s.__value===t)return void(s.selected=!0)}}function y(e){const t=e.querySelector(":checked")||e.options[0];return t&&t.__value}let $;function _(e){$=e}function x(){if(!$)throw new Error("Function called outside component initialization");return $}function w(e){x().$$.on_mount.push(e)}function C(){const e=x();return(t,n)=>{const s=e.$$.callbacks[t];if(s){const o=function(e,t){const n=document.createEvent("CustomEvent");return n.initCustomEvent(e,!1,!1,t),n}(t,n);s.slice().forEach(t=>{t.call(e,o)})}}}const j=[],M=[],A=[],T=[],L=Promise.resolve();let E=!1;function P(e){A.push(e)}const H=new Set;function D(){do{for(;j.length;){const e=j.shift();_(e),U(e.$$)}for(;M.length;)M.pop()();for(let e=0;e<A.length;e+=1){const t=A[e];H.has(t)||(H.add(t),t())}A.length=0}while(j.length);for(;T.length;)T.pop()();E=!1,H.clear()}function U(e){if(null!==e.fragment){e.update(),o(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(P)}}const B=new Set;let z,I;function R(){z={r:0,c:[],p:z}}function J(){z.r||o(z.c),z=z.p}function N(e,t){e&&e.i&&(B.delete(e),e.i(t))}function O(e,t,n,s){if(e&&e.o){if(B.has(e))return;B.add(e),z.c.push(()=>{B.delete(e),s&&(n&&e.d(1),s())}),e.o(t)}}function F(e){e&&e.c()}function S(e,t,s){const{fragment:l,on_mount:c,on_destroy:i,after_update:a}=e.$$;l&&l.m(t,s),P(()=>{const t=c.map(n).filter(r);i?i.push(...t):o(t),e.$$.on_mount=[]}),a.forEach(P)}function G(e,t){const n=e.$$;null!==n.fragment&&(o(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function W(e,t){-1===e.$$.dirty[0]&&(j.push(e),E||(E=!0,L.then(D)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function q(e,n,r,l,c,i,a=[-1]){const d=$;_(e);const u=n.props||{},m=e.$$={fragment:null,ctx:null,props:i,update:t,not_equal:c,bound:s(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(d?d.$$.context:[]),callbacks:s(),dirty:a};let h=!1;m.ctx=r?r(e,u,(t,n,...s)=>{const o=s.length?s[0]:n;return m.ctx&&c(m.ctx[t],m.ctx[t]=o)&&(m.bound[t]&&m.bound[t](o),h&&W(e,t)),n}):[],m.update(),h=!0,o(m.before_update),m.fragment=!!l&&l(m.ctx),n.target&&(n.hydrate?m.fragment&&m.fragment.l(function(e){return Array.from(e.childNodes)}(n.target)):m.fragment&&m.fragment.c(),n.intro&&N(e.$$.fragment),S(e,n.target,n.anchor),D()),_(d)}function Y(e,t,n){const s=e.slice();return s[9]=t[n].img_url,s[10]=t[n].img_url_mobile,s[11]=t[n].link,s[13]=n,s}function Z(e){let t,n=e[3],s=[];for(let t=0;t<n.length;t+=1)s[t]=Q(Y(e,n,t));return{c(){t=u("div");for(let e=0;e<s.length;e+=1)s[e].c();f(t,"class","carousel")},m(e,n){i(e,t,n);for(let e=0;e<s.length;e+=1)s[e].m(t,null)},p(e,o){if(61&o){let r;for(n=e[3],r=0;r<n.length;r+=1){const l=Y(e,n,r);s[r]?s[r].p(l,o):(s[r]=Q(l),s[r].c(),s[r].m(t,null))}for(;r<s.length;r+=1)s[r].d(1);s.length=n.length}},d(e){e&&a(t),d(s,e)}}}function K(e){let t,n,s,o,r,l,d,m,g,p=e[0]&&V(e);return{c(){t=u("a"),p&&p.c(),n=h(),s=u("img"),r=h(),l=u("img"),m=h(),f(s,"class","d-md-block"),s.src!==(o=e[9])&&f(s,"src",o),f(s,"alt",""),f(s,"width","100%"),f(l,"class","d-md-none"),l.src!==(d=e[10])&&f(l,"src",d),f(l,"alt",""),f(l,"width","100%"),f(t,"class","d-block"),f(t,"target","_blank"),f(t,"href",g=e[11])},m(e,o){i(e,t,o),p&&p.m(t,null),c(t,n),c(t,s),c(t,r),c(t,l),c(t,m)},p(e,r){e[0]?p?p.p(e,r):(p=V(e),p.c(),p.m(t,n)):p&&(p.d(1),p=null),8&r&&s.src!==(o=e[9])&&f(s,"src",o),8&r&&l.src!==(d=e[10])&&f(l,"src",d),8&r&&g!==(g=e[11])&&f(t,"href",g)},d(e){e&&a(t),p&&p.d()}}}function V(e){let t,n,s;return{c(){t=u("img"),f(t,"class","close-icon"),t.src!==(n=e[2])&&f(t,"src",n),f(t,"alt","close")},m(n,o){var r;i(n,t,o),s=p(t,"click",function(e){return function(t){return t.stopPropagation(),e.call(this,t)}}((r=e[5],function(e){return e.preventDefault(),r.call(this,e)})),!0)},p(e,s){4&s&&t.src!==(n=e[2])&&f(t,"src",n)},d(e){e&&a(t),s()}}}function Q(e){let t,n=e[4]==e[13]&&K(e);return{c(){n&&n.c(),t=g()},m(e,s){n&&n.m(e,s),i(e,t,s)},p(e,s){e[4]==e[13]?n?n.p(e,s):(n=K(e),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&a(t)}}}function X(e){let n,s=e[1]&&Z(e);return{c(){s&&s.c(),n=g(),this.c=t},m(e,t){s&&s.m(e,t),i(e,n,t)},p(e,[t]){e[1]?s?s.p(e,t):(s=Z(e),s.c(),s.m(n.parentNode,n)):s&&(s.d(1),s=null)},i:t,o:t,d(e){s&&s.d(e),e&&a(n)}}}function ee(e,t,n){let s=!1,o="",r=[],l=0,c=!1,{showToggle:i=!0}=t,{theme:a="light"}=t;w(async()=>{const e=await fetch("http://test.hackbackend/api/v2/dashboard-banners",{headers:{client:"hack-admin"}}),{data:t}=await e.json();n(3,r=t.map(e=>({img_url:e.attributes["image-url"],img_url_mobile:e.attributes["mobile-image-url"],link:e.attributes.link}))),n(2,o="light"===a?"https://minio.codingblocks.com/motley/wrong_g_white.min.png":"https://minio.codingblocks.com/motley/wrong_g.png"),n(1,s=!!r.length),console.log(s),c||d()});const d=e=>{c&&(console.log(c),clearInterval(c)),c=setInterval(()=>{l==r.length-1?n(4,l=0):n(4,l+=1)},7e3)};return e.$set=e=>{"showToggle"in e&&n(0,i=e.showToggle),"theme"in e&&n(6,a=e.theme)},[i,s,o,r,l,()=>{n(1,s=!s)},a]}"function"==typeof HTMLElement&&(I=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}$destroy(){G(this,1),this.$destroy=t}$on(e,t){const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(){}});class te extends I{constructor(e){super(),this.shadowRoot.innerHTML="<style>.d-block{display:block;position:relative}.close-icon{position:absolute;right:10px;cursor:pointer;top:10px;width:15px;transition:width 0.1s}.close-icon:hover{width:18px}.d-md-none{display:block}.d-md-block{display:none}.carousel{height:116px;overflow:hidden}@media(min-width:768px){.d-md-none{display:none}.d-md-block{display:block}}</style>",q(this,{target:this.shadowRoot},ee,X,l,{showToggle:0,theme:6}),e&&(e.target&&i(e.target,this,e.anchor),e.props&&(this.$set(e.props),D()))}static get observedAttributes(){return["showToggle","theme"]}get showToggle(){return this.$$.ctx[0]}set showToggle(e){this.$set({showToggle:e}),D()}get theme(){return this.$$.ctx[6]}set theme(e){this.$set({theme:e}),D()}}customElements.define("promotion-banner",te);var ne=new class{constructor(e){this.url=e}fetchUser(){return fetch(this.url+"/users/me?include=demographic",{credentials:"include"}).then(e=>e.json())}fetchColleges(){return fetch(this.url+"/colleges").then(e=>e.json())}fetchBranches(){return fetch(this.url+"/branches").then(e=>e.json())}updateUser(e){return fetch(this.url+"/users/me/edit",{method:"PATCH",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then(e=>e.json())}}("https://account.codingblocks.com/api");function se(e,t,n){const s=e.slice();return s[15]=t[n],s}function oe(e,t,n){const s=e.slice();return s[18]=t[n],s}function re(e,t,n){const s=e.slice();return s[21]=t[n],s}function le(e){let t,n,s;function o(e,t){return e[7].success?ie:ce}let r=o(e),l=r(e);return{c(){t=u("div"),n=u("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=h(),l.c(),f(n,"class","bg-gradient-pink white p-4"),f(t,"class","border-card b-red p-0")},m(e,o){i(e,t,o),c(t,n),c(t,s),l.m(t,null)},p(e,n){r===(r=o(e))&&l?l.p(e,n):(l.d(1),l=r(e),l&&(l.c(),l.m(t,null)))},d(e){e&&a(t),l.d()}}}function ce(e){let t,n,s,r,l,m,g,b,v,y,$,_,x,w,C,j=e[4],M=[];for(let t=0;t<j.length;t+=1)M[t]=ae(re(e,j,t));let A=1===e[0]&&de(e),T=e[8],L=[];for(let t=0;t<T.length;t+=1)L[t]=ue(oe(e,T,t));let E=e[5],H=[];for(let t=0;t<E.length;t+=1)H[t]=me(se(e,E,t));let D=e[7].error&&he(e);return{c(){t=u("div"),n=u("select"),s=u("option"),s.textContent="-- College --";for(let e=0;e<M.length;e+=1)M[e].c();r=h(),A&&A.c(),l=h(),m=u("select"),g=u("option"),g.textContent="-- Graduation Year --";for(let e=0;e<L.length;e+=1)L[e].c();b=h(),v=u("select"),y=u("option"),y.textContent="-- Branch --";for(let e=0;e<H.length;e+=1)H[e].c();$=h(),_=u("div"),x=u("button"),x.textContent="Update Profile",w=h(),D&&D.c(),s.disabled=!0,s.selected=!0,s.__value="",s.value=s.__value,f(n,"class","input-text br-50 my-2"),void 0===e[0]&&P(()=>e[11].call(n)),g.disabled=!0,g.selected=!0,g.__value="",g.value=g.__value,f(m,"class","input-text br-50 my-2"),void 0===e[2]&&P(()=>e[13].call(m)),y.disabled=!0,y.selected=!0,y.__value="",y.value=y.__value,f(v,"class","input-text br-50 my-2"),void 0===e[1]&&P(()=>e[14].call(v)),f(x,"id","updatedButton"),f(x,"class","button-solid button-orange"),f(_,"class","d-flex justify-content-center mt-5"),f(t,"class","py-4 px-5 t-align-center")},m(o,a){i(o,t,a),c(t,n),c(n,s);for(let e=0;e<M.length;e+=1)M[e].m(n,null);k(n,e[0]),c(t,r),A&&A.m(t,null),c(t,l),c(t,m),c(m,g);for(let e=0;e<L.length;e+=1)L[e].m(m,null);k(m,e[2]),c(t,b),c(t,v),c(v,y);for(let e=0;e<H.length;e+=1)H[e].m(v,null);k(v,e[1]),c(t,$),c(t,_),c(_,x),c(t,w),D&&D.m(t,null),C=[p(n,"change",e[11]),p(m,"change",e[13]),p(v,"change",e[14]),p(x,"click",e[9])]},p(e,s){if(17&s){let t;for(j=e[4],t=0;t<j.length;t+=1){const o=re(e,j,t);M[t]?M[t].p(o,s):(M[t]=ae(o),M[t].c(),M[t].m(n,null))}for(;t<M.length;t+=1)M[t].d(1);M.length=j.length}if(1&s&&k(n,e[0]),1===e[0]?A?A.p(e,s):(A=de(e),A.c(),A.m(t,l)):A&&(A.d(1),A=null),260&s){let t;for(T=e[8],t=0;t<T.length;t+=1){const n=oe(e,T,t);L[t]?L[t].p(n,s):(L[t]=ue(n),L[t].c(),L[t].m(m,null))}for(;t<L.length;t+=1)L[t].d(1);L.length=T.length}if(4&s&&k(m,e[2]),34&s){let t;for(E=e[5],t=0;t<E.length;t+=1){const n=se(e,E,t);H[t]?H[t].p(n,s):(H[t]=me(n),H[t].c(),H[t].m(v,null))}for(;t<H.length;t+=1)H[t].d(1);H.length=E.length}2&s&&k(v,e[1]),e[7].error?D?D.p(e,s):(D=he(e),D.c(),D.m(t,null)):D&&(D.d(1),D=null)},d(e){e&&a(t),d(M,e),A&&A.d(),d(L,e),d(H,e),D&&D.d(),o(C)}}}function ie(e){let n;return{c(){n=u("div"),n.innerHTML='<div class="font-md gradient-text extra-bold mt-4">Your profile has been updated !</div>',f(n,"class","my-5 t-align-c")},m(e,t){i(e,n,t)},p:t,d(e){e&&a(n)}}}function ae(e){let t,n,s,o,r,l=e[21].name+"";return{c(){t=u("option"),n=m(l),s=h(),t.__value=o=e[21].id,t.value=t.__value,t.selected=r=e[21].id===e[0]},m(e,o){i(e,t,o),c(t,n),c(t,s)},p(e,s){16&s&&l!==(l=e[21].name+"")&&b(n,l),16&s&&o!==(o=e[21].id)&&(t.__value=o),t.value=t.__value,17&s&&r!==(r=e[21].id===e[0])&&(t.selected=r)},d(e){e&&a(t)}}}function de(e){let t,n;return{c(){t=u("input"),f(t,"type","text"),f(t,"placeholder","Other College Name"),f(t,"class","input-text br-50 my-2")},m(s,o){i(s,t,o),v(t,e[3]),n=p(t,"input",e[12])},p(e,n){8&n&&t.value!==e[3]&&v(t,e[3])},d(e){e&&a(t),n()}}}function ue(e){let t,n,s,o,r,l=e[18]+"";return{c(){t=u("option"),n=m(l),s=h(),t.__value=o=e[18],t.value=t.__value,t.selected=r=e[18]===e[2]},m(e,o){i(e,t,o),c(t,n),c(t,s)},p(e,n){4&n&&r!==(r=e[18]===e[2])&&(t.selected=r)},d(e){e&&a(t)}}}function me(e){let t,n,s,o,r,l=e[15].name+"";return{c(){t=u("option"),n=m(l),s=h(),t.__value=o=e[15].id,t.value=t.__value,t.selected=r=e[15].id===e[1]},m(e,o){i(e,t,o),c(t,n),c(t,s)},p(e,s){32&s&&l!==(l=e[15].name+"")&&b(n,l),32&s&&o!==(o=e[15].id)&&(t.__value=o),t.value=t.__value,34&s&&r!==(r=e[15].id===e[1])&&(t.selected=r)},d(e){e&&a(t)}}}function he(e){let t,n,s,o=e[7].error+"";return{c(){t=u("div"),n=u("p"),s=m(o),f(n,"class","red"),f(t,"class","row justify-content-center")},m(e,o){i(e,t,o),c(t,n),c(n,s)},p(e,t){128&t&&o!==(o=e[7].error+"")&&b(s,o)},d(e){e&&a(t)}}}function ge(e){let n,s,o=e[6].id&&1===e[6].demographic.collegeId&&!e[6].demographic.otherCollege&&le(e);return{c(){o&&o.c(),n=h(),s=u("link"),this.c=t,f(s,"rel","stylesheet"),f(s,"href","https://unpkg.com/@coding-blocks/motley@0.7.4/dist/online-cb/app.min.css")},m(e,t){o&&o.m(e,t),i(e,n,t),i(e,s,t)},p(e,[t]){e[6].id&&1===e[6].demographic.collegeId&&!e[6].demographic.otherCollege?o?o.p(e,t):(o=le(e),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},i:t,o:t,d(e){o&&o.d(e),e&&a(n),e&&a(s)}}}function pe(e,t,n){let s=null,o=null,r=null,l="",c=[],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],d={},u={success:null,error:null};const m=C();w(async()=>{n(6,d=await ne.fetchUser()),d.id&&(n(4,c=await ne.fetchColleges()),n(5,i=await ne.fetchBranches()),n(2,r=d.graduationYear),n(0,s=d.demographic.collegeId),n(1,o=d.demographic.branchId),n(3,l=d.demographic.otherCollege))});return[s,o,r,l,c,i,d,u,a,async()=>{try{const e=await ne.updateUser({gradYear:r,collegeId:s,branchId:o,otherCollege:l});m("updated",e),n(7,u={success:e.success}),setTimeout(async()=>{n(6,d=await ne.fetchUser())},2e3)}catch(e){n(7,u={error:e})}},m,function(){s=y(this),n(0,s),n(4,c)},function(){l=this.value,n(3,l)},function(){r=y(this),n(2,r),n(8,a)},function(){o=y(this),n(1,o),n(5,i)}]}class fe extends I{constructor(e){super(),q(this,{target:this.shadowRoot},pe,ge,l,{}),e&&e.target&&i(e.target,this,e.anchor)}}function be(e){let n;return{c(){n=u("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=t,f(n,"class","pl-4")},m(e,t){i(e,n,t)},p:t,i:t,o:t,d(e){e&&a(n)}}}customElements.define("demographic-form",fe);class ve extends I{constructor(e){super(),q(this,{target:this.shadowRoot},null,be,l,{}),e&&e.target&&i(e.target,this,e.anchor)}}function ke(e){let n;return{c(){n=u("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=t,f(n,"class","pl-4")},m(e,t){i(e,n,t)},p:t,i:t,o:t,d(e){e&&a(n)}}}customElements.define("mobile-classroom-courses",ve);class ye extends I{constructor(e){super(),q(this,{target:this.shadowRoot},null,ke,l,{}),e&&e.target&&i(e.target,this,e.anchor)}}function $e(e){let t;const n=new ve({});return{c(){F(n.$$.fragment)},m(e,s){S(n,e,s),t=!0},i(e){t||(N(n.$$.fragment,e),t=!0)},o(e){O(n.$$.fragment,e),t=!1},d(e){G(n,e)}}}function _e(e){let t;const n=new ye({});return{c(){F(n.$$.fragment)},m(e,s){S(n,e,s),t=!0},i(e){t||(N(n.$$.fragment,e),t=!0)},o(e){O(n.$$.fragment,e),t=!1},d(e){G(n,e)}}}function xe(e){let n,s,r,l,d,m,g,b,v,k,y,$,_,x,w,C,j,M,A,T,L,E,P,H,D,U,B,z,I,F,S,G,W,q,Y,Z,K,V,Q,X,ee,te,ne,se="classroom"==e[0]&&$e(),oe="online"==e[0]&&_e();return{c(){n=u("link"),s=h(),r=u("link"),l=h(),d=u("div"),m=u("div"),g=u("img"),v=h(),k=u("img"),$=h(),_=u("div"),x=h(),w=u("slot"),C=h(),j=u("div"),M=u("div"),M.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>',A=h(),T=u("div"),L=u("div"),E=u("div"),E.textContent="Classroom Courses",P=h(),H=u("div"),H.innerHTML='<a href="#" class="orange">Explore All</a>',U=h(),se&&se.c(),B=h(),z=u("div"),I=u("div"),F=u("div"),F.textContent="Online Courses",S=h(),G=u("div"),G.innerHTML='<a href="#" class="orange">Explore All</a>',q=h(),oe&&oe.c(),Y=h(),Z=u("div"),Z.innerHTML='<a href="https://codingblocks.com/campus-ambassador-program.html" target="blank">\n Campus Ambassadors\n </a>',K=h(),V=u("div"),V.innerHTML='<a href="https://codingblocks.com/about" target="blank">\n About Us\n </a>',Q=h(),X=u("div"),X.innerHTML='<a href="https://codingblocks.com/centres" target="blank">\n Contact Us\n </a>',this.c=t,f(n,"rel","stylesheet"),f(n,"href",e[2]),f(r,"href","https://minio.codingblocks.com/hackerblocks-images/Gilroy.ttf"),f(r,"rel","stylesheet"),g.src!==(b=e[3])&&f(g,"src",b),f(g,"alt","HB"),f(g,"class","hamburger-nav__ham-logo ml-4"),k.src!==(y="https://minio.codingblocks.com/amoeba/wrong-close.png")&&f(k,"src","https://minio.codingblocks.com/amoeba/wrong-close.png"),f(k,"alt","#"),f(k,"class","mr-4 hamburger-nav__cross pointer"),f(m,"class","d-flex py-3 justify-content-between align-items-center hamburger-nav__top-bar"),f(_,"class","divider-h"),f(M,"class","d-flex justify-content-between"),f(E,"class","card-md extra-bold"),f(H,"class","card-sm light"),f(L,"class",D="hamburger-nav__menu-element "+("classroom"==e[0]&&"active")),f(T,"class","my-4 pl-4"),f(F,"class","card-md extra-bold"),f(G,"class","card-sm light"),f(I,"class",W="hamburger-nav__menu-element "+("online"==e[0]&&"active")),f(z,"class","my-4 pl-4"),f(Z,"class","card-md light my-4"),f(V,"class","card-md light my-4"),f(X,"class","card-md light my-4"),f(j,"class","mt-4 px-4 overflow-y-auto no-scrollbar"),f(d,"class",ee="hamburger-nav b-right overflow-y-auto no-scrollbar "+(!e[1]&&"hamburger-nav--hidden")+" ")},m(t,o){i(t,n,o),i(t,s,o),i(t,r,o),i(t,l,o),i(t,d,o),c(d,m),c(m,g),c(m,v),c(m,k),c(d,$),c(d,_),c(d,x),c(d,w),c(d,C),c(d,j),c(j,M),c(j,A),c(j,T),c(T,L),c(L,E),c(L,P),c(L,H),c(T,U),se&&se.m(T,null),c(j,B),c(j,z),c(z,I),c(I,F),c(I,S),c(I,G),c(z,q),oe&&oe.m(z,null),c(j,Y),c(j,Z),c(j,K),c(j,V),c(j,Q),c(j,X),te=!0,ne=[p(k,"click",e[4]),p(E,"click",e[5]),p(F,"click",e[6])]},p(e,[t]){(!te||4&t)&&f(n,"href",e[2]),(!te||8&t&&g.src!==(b=e[3]))&&f(g,"src",b),(!te||1&t&&D!==(D="hamburger-nav__menu-element "+("classroom"==e[0]&&"active")))&&f(L,"class",D),"classroom"==e[0]?se?N(se,1):(se=$e(),se.c(),N(se,1),se.m(T,null)):se&&(R(),O(se,1,1,()=>{se=null}),J()),(!te||1&t&&W!==(W="hamburger-nav__menu-element "+("online"==e[0]&&"active")))&&f(I,"class",W),"online"==e[0]?oe?N(oe,1):(oe=_e(),oe.c(),N(oe,1),oe.m(z,null)):oe&&(R(),O(oe,1,1,()=>{oe=null}),J()),(!te||2&t&&ee!==(ee="hamburger-nav b-right overflow-y-auto no-scrollbar "+(!e[1]&&"hamburger-nav--hidden")+" "))&&f(d,"class",ee)},i(e){te||(N(se),N(oe),te=!0)},o(e){O(se),O(oe),te=!1},d(e){e&&a(n),e&&a(s),e&&a(r),e&&a(l),e&&a(d),se&&se.d(),oe&&oe.d(),o(ne)}}}function we(e,t,n){let{css:s="https://unpkg.com/@coding-blocks/motley/dist/app.min.css"}=t,{tab:o="classroom"}=t,{showhamburger:r=!1}=t,{logo:l="https://codingblocks.com/assets/images/cb/cblogo.png"}=t;return e.$set=e=>{"css"in e&&n(2,s=e.css),"tab"in e&&n(0,o=e.tab),"showhamburger"in e&&n(1,r=e.showhamburger),"logo"in e&&n(3,l=e.logo)},[o,r,s,l,()=>n(1,r=!r),()=>n(0,o="classroom"),()=>n(0,o="online")]}customElements.define("mobile-online-courses",ye);class Ce extends I{constructor(e){super(),q(this,{target:this.shadowRoot},we,xe,l,{css:2,tab:0,showhamburger:1,logo:3}),e&&(e.target&&i(e.target,this,e.anchor),e.props&&(this.$set(e.props),D()))}static get observedAttributes(){return["css","tab","showhamburger","logo"]}get css(){return this.$$.ctx[2]}set css(e){this.$set({css:e}),D()}get tab(){return this.$$.ctx[0]}set tab(e){this.$set({tab:e}),D()}get showhamburger(){return this.$$.ctx[1]}set showhamburger(e){this.$set({showhamburger:e}),D()}get logo(){return this.$$.ctx[3]}set logo(e){this.$set({logo:e}),D()}}function je(e){let n;return{c(){n=u("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=t,f(n,"class","row justify-content-around m-5")},m(e,t){i(e,n,t)},p:t,i:t,o:t,d(e){e&&a(n)}}}customElements.define("cb-mobile-navbar",Ce);class Me extends I{constructor(e){super(),q(this,{target:this.shadowRoot},null,je,l,{}),e&&e.target&&i(e.target,this,e.anchor)}}function Ae(e){let n;return{c(){n=u("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=t,f(n,"class","row justify-content-around m-5")},m(e,t){i(e,n,t)},p:t,i:t,o:t,d(e){e&&a(n)}}}customElements.define("classroom-courses",Me);class Te extends I{constructor(e){super(),q(this,{target:this.shadowRoot},null,Ae,l,{}),e&&e.target&&i(e.target,this,e.anchor)}}function Le(e){let t,n,s,r,l,d,m,g,b,v,k,y,$,_,x,w,C;const j=[Pe,Ee],M=[];function A(e,t){return"classroom"==e[1]?0:1}return _=A(e),x=M[_]=j[_](e),{c(){var o,c,i;t=u("div"),n=u("div"),s=u("div"),s.innerHTML='<div class="font-lg my-4 offset-3">Our Courses</div>',r=h(),l=u("div"),d=u("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>',g=h(),b=u("div"),v=u("div"),v.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=h(),$=u("div"),x.c(),f(s,"class","py-5 font-md bold hover-grey"),f(d,"class","offset-3"),f(l,"class",m="py-4 font-md bold hover-grey "+("online"==e[1]&&"selected")),f(v,"class","offset-3"),f(b,"class",k="py-4 font-md bold hover-grey "+("classroom"==e[1]&&"selected")),f(n,"class","cb-navbar-side col-3"),f($,"class","col-9 font-mds"),f(t,"class","row no-gutters cb-navbar-expanded"),o="overflow",c="hidden",t.style.setProperty(o,c,i?"important":"")},m(o,a){i(o,t,a),c(t,n),c(n,s),c(n,r),c(n,l),c(l,d),c(n,g),c(n,b),c(b,v),c(t,y),c(t,$),M[_].m($,null),w=!0,C=[p(l,"click",e[6]),p(b,"click",e[7])]},p(e,t){(!w||2&t&&m!==(m="py-4 font-md bold hover-grey "+("online"==e[1]&&"selected")))&&f(l,"class",m),(!w||2&t&&k!==(k="py-4 font-md bold hover-grey "+("classroom"==e[1]&&"selected")))&&f(b,"class",k);let n=_;_=A(e),_!==n&&(R(),O(M[n],1,1,()=>{M[n]=null}),J(),x=M[_],x||(x=M[_]=j[_](e),x.c()),N(x,1),x.m($,null))},i(e){w||(N(x),w=!0)},o(e){O(x),w=!1},d(e){e&&a(t),M[_].d(),o(C)}}}function Ee(e){let t;const n=new Te({});return{c(){F(n.$$.fragment)},m(e,s){S(n,e,s),t=!0},i(e){t||(N(n.$$.fragment,e),t=!0)},o(e){O(n.$$.fragment,e),t=!1},d(e){G(n,e)}}}function Pe(e){let t;const n=new Me({});return{c(){F(n.$$.fragment)},m(e,s){S(n,e,s),t=!0},i(e){t||(N(n.$$.fragment,e),t=!0)},o(e){O(n.$$.fragment,e),t=!1},d(e){G(n,e)}}}function He(e){let n,s,o,r,l,d,g,b,v,k,y,$,_,x,w,C,j,M,A,T,L,E,P,H,D,U,B,z=e[0]&&Le(e);return{c(){n=u("div"),s=u("div"),o=u("div"),r=u("span"),l=m("Courses\n "),d=u("img"),b=h(),v=u("div"),v.innerHTML='<a href="https://codingblocks.com/about.html" target="_blank">About Us</a>',k=h(),y=u("div"),y.innerHTML='<a href="https://codingblocks.com/resources" target="_blank">Resources</a>',$=h(),_=u("div"),_.innerHTML='<a href="https://codingblocks.com/campus-ambassador-program.html" target="_blank">Campus Ambassadors</a>',x=h(),w=u("div"),w.innerHTML='<a href="https://codingblocks.com/centres/" target="_blank">Contact Us</a>',C=h(),j=u("slot"),A=h(),z&&z.c(),T=h(),L=u("link"),E=h(),P=u("link"),H=h(),D=u("link"),this.c=t,d.src!==(g="https://minio.cb.lk/public/fa-5.13/svgs/solid/chevron-"+(e[0]?"up":"down")+".svg")&&f(d,"src",g),f(d,"alt","chevron"),f(d,"class","d-inline s-10x10"),f(r,"class","px-3 pointer"),f(v,"class","px-3"),f(y,"class","px-3"),f(_,"class","px-3"),f(w,"class","px-3"),f(j,"name","header"),f(o,"class",M="d-flex "+e[3]+" py-3 pr-5"),f(s,"class","border"),f(n,"class","a-hb d-md-block d-none"),f(L,"rel","stylesheet"),f(L,"href",e[2]),f(P,"href","https://fonts.googleapis.com/css?family=Nunito+Sans:400,600,700,800"),f(P,"rel","stylesheet"),f(D,"href","https://minio.codingblocks.com/hackerblocks-images/Gilroy.ttf"),f(D,"rel","stylesheet")},m(t,a){i(t,n,a),c(n,s),c(s,o),c(o,r),c(r,l),c(r,d),c(o,b),c(o,v),c(o,k),c(o,y),c(o,$),c(o,_),c(o,x),c(o,w),c(o,C),c(o,j),c(n,A),z&&z.m(n,null),i(t,T,a),i(t,L,a),i(t,E,a),i(t,P,a),i(t,H,a),i(t,D,a),U=!0,B=p(r,"click",e[4])},p(e,[t]){(!U||1&t&&d.src!==(g="https://minio.cb.lk/public/fa-5.13/svgs/solid/chevron-"+(e[0]?"up":"down")+".svg"))&&f(d,"src",g),(!U||8&t&&M!==(M="d-flex "+e[3]+" py-3 pr-5"))&&f(o,"class",M),e[0]?z?(z.p(e,t),N(z,1)):(z=Le(e),z.c(),N(z,1),z.m(n,null)):z&&(R(),O(z,1,1,()=>{z=null}),J()),(!U||4&t)&&f(L,"href",e[2])},i(e){U||(N(z),U=!0)},o(e){O(z),U=!1},d(e){e&&a(n),z&&z.d(),e&&a(T),e&&a(L),e&&a(E),e&&a(P),e&&a(H),e&&a(D),B()}}}function De(e,t,n){let{topalign:s="center"}=t,{expanded:o=!1}=t,{tab:r="online"}=t,{css:l="https://unpkg.com/@coding-blocks/motley/dist/app.min.css"}=t,c="justify-content-center";return e.$set=e=>{"topalign"in e&&n(5,s=e.topalign),"expanded"in e&&n(0,o=e.expanded),"tab"in e&&n(1,r=e.tab),"css"in e&&n(2,l=e.css)},e.$$.update=()=>{if(32&e.$$.dirty)switch(s){case"left":n(3,c="justify-content-start");break;case"right":n(3,c="justify-content-end");break;default:n(3,c="justify-content-center")}},[o,r,l,c,()=>n(0,o=!o),s,()=>n(1,r="online"),()=>n(1,r="classroom")]}customElements.define("online-courses",Te);class Ue extends I{constructor(e){super(),this.shadowRoot.innerHTML="<style>a:hover{text-decoration:underline}.hover-grey.selected:hover{background:unset}.a-hb{display:none}</style>",q(this,{target:this.shadowRoot},De,He,l,{topalign:5,expanded:0,tab:1,css:2}),e&&(e.target&&i(e.target,this,e.anchor),e.props&&(this.$set(e.props),D()))}static get observedAttributes(){return["topalign","expanded","tab","css"]}get topalign(){return this.$$.ctx[5]}set topalign(e){this.$set({topalign:e}),D()}get expanded(){return this.$$.ctx[0]}set expanded(e){this.$set({expanded:e}),D()}get tab(){return this.$$.ctx[1]}set tab(e){this.$set({tab:e}),D()}get css(){return this.$$.ctx[2]}set css(e){this.$set({css:e}),D()}}function Be(e){let n,s,o,r,l,i,d,m,h,g,p,b,v,k;return{c(){n=u("script"),o=u("script"),l=u("script"),d=u("script"),h=u("script"),p=u("script"),v=u("script"),this.c=t,n.src!==(s="https://source.zoom.us/1.8.5/lib/vendor/react.min.js")&&f(n,"src","https://source.zoom.us/1.8.5/lib/vendor/react.min.js"),o.src!==(r="https://source.zoom.us/1.8.5/lib/vendor/react-dom.min.js")&&f(o,"src","https://source.zoom.us/1.8.5/lib/vendor/react-dom.min.js"),l.src!==(i="https://source.zoom.us/1.8.5/lib/vendor/redux.min.js")&&f(l,"src","https://source.zoom.us/1.8.5/lib/vendor/redux.min.js"),d.src!==(m="https://source.zoom.us/1.8.5/lib/vendor/redux-thunk.min.js")&&f(d,"src","https://source.zoom.us/1.8.5/lib/vendor/redux-thunk.min.js"),h.src!==(g="https://source.zoom.us/1.8.5/lib/vendor/jquery.min.js")&&f(h,"src","https://source.zoom.us/1.8.5/lib/vendor/jquery.min.js"),p.src!==(b="https://source.zoom.us/1.8.5/lib/vendor/lodash.min.js")&&f(p,"src","https://source.zoom.us/1.8.5/lib/vendor/lodash.min.js"),v.src!==(k="https://source.zoom.us/zoom-meeting-1.8.5.min.js")&&f(v,"src","https://source.zoom.us/zoom-meeting-1.8.5.min.js")},m(t,s){c(document.head,n),c(document.head,o),c(document.head,l),c(document.head,d),c(document.head,h),c(document.head,p),c(document.head,v),e[7](v)},p:t,i:t,o:t,d(t){a(n),a(o),a(l),a(d),a(h),a(p),a(v),e[7](null)}}}function ze(e,t,n){let s,{leaveUrl:o="/"}=t,{meetingnumber:r}=t,{signature:l}=t,{apikey:c}=t,{username:i}=t,{useremail:a}=t;return w(async()=>{s.addEventListener("load",()=>{console.log(r),ZoomMtg.preLoadWasm(),ZoomMtg.prepareJssdk(),ZoomMtg.init({leaveUrl:o,success(){ZoomMtg.join({meetingNumber:r,userName:i,signature:l,apiKey:c,userEmail:a,success(e){console.log("success")},error(e){console.log(e)}})},error(e){console.log(e)}})})}),e.$set=e=>{"leaveUrl"in e&&n(1,o=e.leaveUrl),"meetingnumber"in e&&n(2,r=e.meetingnumber),"signature"in e&&n(3,l=e.signature),"apikey"in e&&n(4,c=e.apikey),"username"in e&&n(5,i=e.username),"useremail"in e&&n(6,a=e.useremail)},[s,o,r,l,c,i,a,function(e){M[e?"unshift":"push"](()=>{n(0,s=e)})}]}customElements.define("cb-navbar",Ue);class Ie extends I{constructor(e){super(),q(this,{target:this.shadowRoot},ze,Be,l,{leaveUrl:1,meetingnumber:2,signature:3,apikey:4,username:5,useremail:6}),e&&(e.target&&i(e.target,this,e.anchor),e.props&&(this.$set(e.props),D()))}static get observedAttributes(){return["leaveUrl","meetingnumber","signature","apikey","username","useremail"]}get leaveUrl(){return this.$$.ctx[1]}set leaveUrl(e){this.$set({leaveUrl:e}),D()}get meetingnumber(){return this.$$.ctx[2]}set meetingnumber(e){this.$set({meetingnumber:e}),D()}get signature(){return this.$$.ctx[3]}set signature(e){this.$set({signature:e}),D()}get apikey(){return this.$$.ctx[4]}set apikey(e){this.$set({apikey:e}),D()}get username(){return this.$$.ctx[5]}set username(e){this.$set({username:e}),D()}get useremail(){return this.$$.ctx[6]}set useremail(e){this.$set({useremail:e}),D()}}return customElements.define("zoom-meeting",Ie),e.banner=te,e.cb_navbar=Ue,e.demographic_form=fe,e.mobile_cb_navbar=Ce,e.zoom_meeting=Ie,e}({});

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

"outDir": "dist/",
"version": "0.0.15",
"version": "0.1.0",
"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