@coding-blocks/web-components
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -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 a(t,e){t.appendChild(e)}function r(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 u(t){return document.createElement(t)}function h(t){return document.createTextNode(t)}function m(){return h(" ")}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=[],M=[],T=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(;M.length;)M.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,J;function R(){I={r:0,c:[],p:I}}function U(){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:a,on_destroy:r,after_update:i}=t.$$;c&&c.m(e,s),P(()=>{const e=a.map(n).filter(l);r?r.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,T.then(H)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Y(t,n,l,c,a,r,i=[-1]){const d=y;_(t);const u=n.props||{},h=t.$$={fragment:null,ctx:null,props:r,update:e,not_equal:a,bound:s(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(d?d.$$.context:[]),callbacks:s(),dirty:i};let m=!1;h.ctx=l?l(t,u,(e,n,...s)=>{const o=s.length?s[0]:n;return h.ctx&&a(h.ctx[e],h.ctx[e]=o)&&(h.bound[e]&&h.bound[e](o),m&&W(t,e)),n}):[],h.update(),m=!0,o(h.before_update),h.fragment=!!c&&c(h.ctx),n.target&&(n.hydrate?h.fragment&&h.fragment.l(function(t){return Array.from(t.childNodes)}(n.target)):h.fragment&&h.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=u("a"),l&&l.c(),n=m(),s=u("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){r(t,e,o),l&&l.m(e,null),a(e,n),a(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 n,s,o;return{c(){n=u("img"),p(n,"class","close-icon"),n.src!==(s="https://minio.codingblocks.com/motley/wrong_g.png")&&p(n,"src","https://minio.codingblocks.com/motley/wrong_g.png"),p(n,"alt","close")},m(e,s){var l;r(e,n,s),o=g(n,"click",function(t){return function(e){return e.stopPropagation(),t.call(this,e)}}((l=t[4],function(t){return t.preventDefault(),l.call(this,t)})),!0)},p:e,d(t){t&&i(n),o()}}}function z(t){let n,s=t[3]&&K(t);return{c(){s&&s.c(),n=h(""),this.c=e},m(t,e){s&&s.m(t,e),r(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,{showToggle:c=!0}=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)});return t.$set=t=>{"showToggle"in t&&n(0,c=t.showToggle)},[c,s,o,l,()=>{n(3,l=!l)}]}"function"==typeof HTMLElement&&(J=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 J{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}),t&&(t.target&&r(t.target,this,t.anchor),t.props&&(this.$set(t.props),H()))}static get observedAttributes(){return["showToggle"]}get showToggle(){return this.$$.ctx[0]}set showToggle(t){this.$set({showToggle: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,l,c,h,f,v,k,y,_,$,w,x,C,j,A,M,T=t[4],L=[];for(let e=0;e<T.length;e+=1)L[e]=st(et(t,T,e));let E=1===t[0]&&ot(t),H=t[8],D=[];for(let e=0;e<H.length;e+=1)D[e]=lt(tt(t,H,e));let B=t[5],I=[];for(let e=0;e<B.length;e+=1)I[e]=ct(X(t,B,e));let J=t[7].error&&at(t);return{c(){e=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 & get INR 1000 credits in your wallet\n </div>',s=m(),l=u("div"),c=u("select"),h=u("option"),h.textContent="-- College --";for(let t=0;t<L.length;t+=1)L[t].c();f=m(),E&&E.c(),v=m(),k=u("select"),y=u("option"),y.textContent="-- Graduation Year --";for(let t=0;t<D.length;t+=1)D[t].c();_=m(),$=u("select"),w=u("option"),w.textContent="-- Branch --";for(let t=0;t<I.length;t+=1)I[t].c();x=m(),C=u("div"),j=u("button"),j.textContent="Update Profile",A=m(),J&&J.c(),p(n,"class","bg-gradient-pink white p-4"),h.disabled=!0,h.selected=!0,h.__value="",h.value=h.__value,p(c,"class","input-text br-50 my-2"),void 0===t[0]&&P(()=>t[11].call(c)),y.disabled=!0,y.selected=!0,y.__value="",y.value=y.__value,p(k,"class","input-text br-50 my-2"),void 0===t[2]&&P(()=>t[13].call(k)),w.disabled=!0,w.selected=!0,w.__value="",w.value=w.__value,p($,"class","input-text br-50 my-2"),void 0===t[1]&&P(()=>t[14].call($)),p(j,"id","updatedButton"),p(j,"class","button-solid button-orange"),p(C,"class","d-flex justify-content-center mt-5"),p(l,"class","py-4 px-5 t-align-center"),p(e,"class","border-card b-red p-0")},m(o,i){r(o,e,i),a(e,n),a(e,s),a(e,l),a(l,c),a(c,h);for(let t=0;t<L.length;t+=1)L[t].m(c,null);b(c,t[0]),a(l,f),E&&E.m(l,null),a(l,v),a(l,k),a(k,y);for(let t=0;t<D.length;t+=1)D[t].m(k,null);b(k,t[2]),a(l,_),a(l,$),a($,w);for(let t=0;t<I.length;t+=1)I[t].m($,null);b($,t[1]),a(l,x),a(l,C),a(C,j),a(l,A),J&&J.m(l,null),M=[g(c,"change",t[11]),g(k,"change",t[13]),g($,"change",t[14]),g(j,"click",t[9])]},p(t,e){if(17&e){let n;for(T=t[4],n=0;n<T.length;n+=1){const s=et(t,T,n);L[n]?L[n].p(s,e):(L[n]=st(s),L[n].c(),L[n].m(c,null))}for(;n<L.length;n+=1)L[n].d(1);L.length=T.length}if(1&e&&b(c,t[0]),1===t[0]?E?E.p(t,e):(E=ot(t),E.c(),E.m(l,v)):E&&(E.d(1),E=null),260&e){let n;for(H=t[8],n=0;n<H.length;n+=1){const s=tt(t,H,n);D[n]?D[n].p(s,e):(D[n]=lt(s),D[n].c(),D[n].m(k,null))}for(;n<D.length;n+=1)D[n].d(1);D.length=H.length}if(4&e&&b(k,t[2]),34&e){let n;for(B=t[5],n=0;n<B.length;n+=1){const s=X(t,B,n);I[n]?I[n].p(s,e):(I[n]=ct(s),I[n].c(),I[n].m($,null))}for(;n<I.length;n+=1)I[n].d(1);I.length=B.length}2&e&&b($,t[1]),t[7].error?J?J.p(t,e):(J=at(t),J.c(),J.m(l,null)):J&&(J.d(1),J=null)},d(t){t&&i(e),d(L,t),E&&E.d(),d(D,t),d(I,t),J&&J.d(),o(M)}}}function st(t){let e,n,s,o,l,c=t[21].name+"";return{c(){e=u("option"),n=h(c),s=m(),e.__value=o=t[21].id,e.value=e.__value,e.selected=l=t[21].id===t[0]},m(t,o){r(t,e,o),a(e,n),a(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 ot(t){let e,n;return{c(){e=u("input"),p(e,"type","text"),p(e,"placeholder","Other College Name"),p(e,"class","input-text br-50 my-2")},m(s,o){r(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 lt(t){let e,n,s,o,l,c=t[18]+"";return{c(){e=u("option"),n=h(c),s=m(),e.__value=o=t[18],e.value=e.__value,e.selected=l=t[18]===t[2]},m(t,o){r(t,e,o),a(e,n),a(e,s)},p(t,n){4&n&&l!==(l=t[18]===t[2])&&(e.selected=l)},d(t){t&&i(e)}}}function ct(t){let e,n,s,o,l,c=t[15].name+"";return{c(){e=u("option"),n=h(c),s=m(),e.__value=o=t[15].id,e.value=e.__value,e.selected=l=t[15].id===t[1]},m(t,o){r(t,e,o),a(e,n),a(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 at(t){let e,n,s,o=t[7].error+"";return{c(){e=u("div"),n=u("p"),s=h(o),p(n,"class","red"),p(e,"class","row justify-content-center")},m(t,o){r(t,e,o),a(e,n),a(n,s)},p(t,e){128&e&&o!==(o=t[7].error+"")&&f(s,o)},d(t){t&&i(e)}}}function rt(t){let n,s,o=t[6].id&&nt(t);return{c(){o&&o.c(),n=m(),s=u("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),r(t,n,e),r(t,s,e)},p(t,[e]){t[6].id?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 it(t,e,n){let s=null,o=null,l=null,c="",a=[],r=[],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={},u={success:null,error:null};const h=x();w(async()=>{n(6,d=await Z.fetchUser()),d.id&&(n(4,a=await Z.fetchColleges()),n(5,r=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,a,r,d,u,i,async()=>{try{const t=await Z.updateUser({gradYear:l,collegeId:s,branchId:o,otherCollege:c});h("updated",t),t.success=t.success}catch(t){n(7,u.error=t,u)}},h,function(){s=k(this),n(0,s),n(4,a)},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,r)}]}class dt extends J{constructor(t){super(),Y(this,{target:this.shadowRoot},it,rt,c,{}),t&&t.target&&r(t.target,this,t.anchor)}}function ut(t){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=e,p(n,"class","pl-4")},m(t,e){r(t,n,e)},p:e,i:e,o:e,d(t){t&&i(n)}}}customElements.define("demographic-form",dt);class ht extends J{constructor(t){super(),Y(this,{target:this.shadowRoot},null,ut,c,{}),t&&t.target&&r(t.target,this,t.anchor)}}function mt(t){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=e,p(n,"class","pl-4")},m(t,e){r(t,n,e)},p:e,i:e,o:e,d(t){t&&i(n)}}}customElements.define("mobile-classroom-courses",ht);class gt extends J{constructor(t){super(),Y(this,{target:this.shadowRoot},null,mt,c,{}),t&&t.target&&r(t.target,this,t.anchor)}}function pt(t){let e;const n=new ht({});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 ft(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 vt(t){let n,s,l,c,d,h,f,v,b,k,y,_,$,w,x,C,j,A,M,T,L,P,E,H,D,B,I,J,F,S,G,W,Y,K,q,z,V,Q,Z,X,tt,et="classroom"==t[0]&&pt(),nt="online"==t[0]&&ft();return{c(){n=u("link"),s=m(),l=u("link"),c=m(),d=u("div"),h=u("div"),f=u("img"),b=m(),k=u("img"),_=m(),$=u("div"),w=m(),x=u("div"),C=u("div"),C.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>',j=m(),A=u("div"),M=u("div"),T=u("div"),T.textContent="Classroom Courses",L=m(),P=u("div"),P.innerHTML='<a href="#" class="orange">Explore All</a>',H=m(),et&&et.c(),D=m(),B=u("div"),I=u("div"),J=u("div"),J.textContent="Online Courses",F=m(),S=u("div"),S.innerHTML='<a href="#" class="orange">Explore All</a>',W=m(),nt&&nt.c(),Y=m(),K=u("div"),K.innerHTML='<a href="https://codingblocks.com/campus-ambassador-program.html" target="blank">\n Campus Ambassadors\n </a>',q=m(),z=u("div"),z.innerHTML='<a href="https://codingblocks.com/about" target="blank">\n About Us\n </a>',V=m(),Q=u("div"),Q.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="\\images\\hb_logo_monochrome_full_dg.png")&&p(f,"src","\\images\\hb_logo_monochrome_full_dg.png"),p(f,"alt","HB"),p(f,"class","hamburger-nav__ham-logo ml-4"),k.src!==(y="\\images\\wrong_g.png")&&p(k,"src","\\images\\wrong_g.png"),p(k,"alt","#"),p(k,"class","mr-4 hamburger-nav__cross pointer"),p(h,"class","d-flex py-3 justify-content-between align-items-center hamburger-nav__top-bar"),p($,"class","divider-h"),p(C,"class","d-flex justify-content-between"),p(T,"class","card-md extra-bold"),p(P,"class","card-sm light"),p(M,"class",E="hamburger-nav__menu-element "+("classroom"==t[0]&&"active")),p(A,"class","my-4 pl-4"),p(J,"class","card-md extra-bold"),p(S,"class","card-sm light"),p(I,"class",G="hamburger-nav__menu-element "+("online"==t[0]&&"active")),p(B,"class","my-4 pl-4"),p(K,"class","card-md light my-4"),p(z,"class","card-md light my-4"),p(Q,"class","card-md light my-4"),p(x,"class","mt-5 px-4 overflow-y-auto no-scrollbar"),p(d,"class",Z="hamburger-nav b-right overflow-y-auto no-scrollbar "+(!t[1]&&"hamburger-nav--hidden")+" ")},m(e,o){r(e,n,o),r(e,s,o),r(e,l,o),r(e,c,o),r(e,d,o),a(d,h),a(h,f),a(h,b),a(h,k),a(d,_),a(d,$),a(d,w),a(d,x),a(x,C),a(x,j),a(x,A),a(A,M),a(M,T),a(M,L),a(M,P),a(A,H),et&&et.m(A,null),a(x,D),a(x,B),a(B,I),a(I,J),a(I,F),a(I,S),a(B,W),nt&&nt.m(B,null),a(x,Y),a(x,K),a(x,q),a(x,z),a(x,V),a(x,Q),X=!0,tt=[g(k,"click",t[3]),g(T,"click",t[4]),g(J,"click",t[5])]},p(t,[e]){(!X||4&e)&&p(n,"href",t[2]),(!X||1&e&&E!==(E="hamburger-nav__menu-element "+("classroom"==t[0]&&"active")))&&p(M,"class",E),"classroom"==t[0]?et?O(et,1):(et=pt(),et.c(),O(et,1),et.m(A,null)):et&&(R(),N(et,1,1,()=>{et=null}),U()),(!X||1&e&&G!==(G="hamburger-nav__menu-element "+("online"==t[0]&&"active")))&&p(I,"class",G),"online"==t[0]?nt?O(nt,1):(nt=ft(),nt.c(),O(nt,1),nt.m(B,null)):nt&&(R(),N(nt,1,1,()=>{nt=null}),U()),(!X||2&e&&Z!==(Z="hamburger-nav b-right overflow-y-auto no-scrollbar "+(!t[1]&&"hamburger-nav--hidden")+" "))&&p(d,"class",Z)},i(t){X||(O(et),O(nt),X=!0)},o(t){N(et),N(nt),X=!1},d(t){t&&i(n),t&&i(s),t&&i(l),t&&i(c),t&&i(d),et&&et.d(),nt&&nt.d(),o(tt)}}}function bt(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;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)},[o,l,s,()=>n(1,l=!l),()=>n(0,o="classroom"),()=>n(0,o="online")]}customElements.define("mobile-online-courses",gt);class kt extends J{constructor(t){super(),Y(this,{target:this.shadowRoot},bt,vt,c,{css:2,tab:0,showhamburger:1}),t&&(t.target&&r(t.target,this,t.anchor),t.props&&(this.$set(t.props),H()))}static get observedAttributes(){return["css","tab","showhamburger"]}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()}}function yt(t){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=e,p(n,"class","row justify-content-around m-5")},m(t,e){r(t,n,e)},p:e,i:e,o:e,d(t){t&&i(n)}}}customElements.define("cb-mobile-navbar",kt);class _t extends J{constructor(t){super(),Y(this,{target:this.shadowRoot},null,yt,c,{}),t&&t.target&&r(t.target,this,t.anchor)}}function $t(t){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=e,p(n,"class","row justify-content-around m-5")},m(t,e){r(t,n,e)},p:e,i:e,o:e,d(t){t&&i(n)}}}customElements.define("classroom-courses",_t);class wt extends J{constructor(t){super(),Y(this,{target:this.shadowRoot},null,$t,c,{}),t&&t.target&&r(t.target,this,t.anchor)}}function xt(t){let e,n,s,l,c,d,h,f,v,b,k,y,_,$,w,x,C;const j=[jt,Ct],A=[];function M(t,e){return"classroom"==t[1]?0:1}return $=M(t),w=A[$]=j[$](t),{c(){var o,a,r;e=u("div"),n=u("div"),s=u("div"),s.innerHTML='<div class="font-lg my-4 offset-3">Our Courses</div>',l=m(),c=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>',f=m(),v=u("div"),b=u("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(),_=u("div"),w.c(),p(s,"class","py-5 font-md bold hover-grey"),p(d,"class","offset-3"),p(c,"class",h="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",a="hidden",e.style.setProperty(o,a,r?"important":"")},m(o,i){r(o,e,i),a(e,n),a(n,s),a(n,l),a(n,c),a(c,d),a(n,f),a(n,v),a(v,b),a(e,y),a(e,_),A[$].m(_,null),x=!0,C=[g(c,"click",t[6]),g(v,"click",t[7])]},p(t,e){(!x||2&e&&h!==(h="py-4 font-md bold hover-grey "+("online"==t[1]&&"selected")))&&p(c,"class",h),(!x||2&e&&k!==(k="py-4 font-md bold hover-grey "+("classroom"==t[1]&&"selected")))&&p(v,"class",k);let n=$;$=M(t),$!==n&&(R(),N(A[n],1,1,()=>{A[n]=null}),U(),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 Ct(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 jt(t){let e;const n=new _t({});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 At(t){let n,s,o,l,c,d,f,v,b,k,y,_,$,w,x,C,j,A,M,T,L,P,E,H,D,B,I,J,F,S=t[0]&&xt(t);return{c(){n=u("div"),s=u("div"),o=u("div"),l=u("span"),c=h("Courses\n "),d=u("i"),v=m(),b=u("div"),b.innerHTML='<a href="https://codingblocks.com/about.html" target="_blank">About Us</a>',k=m(),y=u("div"),y.innerHTML='<a href="https://codingblocks.com/resources" target="_blank">Resources</a>',_=m(),$=u("div"),$.innerHTML='<a href="https://codingblocks.com/campus-ambassador-program.html" target="_blank">Campus Ambassadors</a>',w=m(),x=u("div"),x.innerHTML='<a href="https://codingblocks.com/centres/" target="_blank">Contact Us</a>',C=m(),j=u("slot"),M=m(),S&&S.c(),T=m(),L=u("link"),P=m(),E=u("link"),H=m(),D=u("link"),B=m(),I=u("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){r(e,n,i),a(n,s),a(s,o),a(o,l),a(l,c),a(l,d),a(o,v),a(o,b),a(o,k),a(o,y),a(o,_),a(o,$),a(o,w),a(o,x),a(o,C),a(o,j),a(n,M),S&&S.m(n,null),r(e,T,i),r(e,L,i),r(e,P,i),r(e,E,i),r(e,H,i),r(e,D,i),r(e,B,i),r(e,I,i),J=!0,F=g(l,"click",t[4])},p(t,[e]){(!J||1&e&&f!==(f="ml-1 fas fa-chevron-"+(t[0]?"up":"down")))&&p(d,"class",f),(!J||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=xt(t),S.c(),O(S,1),S.m(n,null)):S&&(R(),N(S,1,1,()=>{S=null}),U()),(!J||4&e)&&p(L,"href",t[2])},i(t){J||(O(S),J=!0)},o(t){N(S),J=!1},d(t){t&&i(n),S&&S.d(),t&&i(T),t&&i(L),t&&i(P),t&&i(E),t&&i(H),t&&i(D),t&&i(B),t&&i(I),F()}}}function Mt(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,a="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,a="justify-content-start");break;case"right":n(3,a="justify-content-end");break;default:n(3,a="justify-content-center")}},[o,l,c,a,()=>n(0,o=!o),s,()=>n(1,l="online"),()=>n(1,l="classroom")]}customElements.define("online-courses",wt);class Tt extends J{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},Mt,At,c,{topalign:5,expanded:0,tab:1,css:2}),t&&(t.target&&r(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",Tt),t.banner=Q,t.cb_navbar=Tt,t.demographic_form=dt,t.mobile_cb_navbar=kt,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 a(t,e){t.appendChild(e)}function r(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 u(t){return document.createElement(t)}function h(t){return document.createTextNode(t)}function m(){return h(" ")}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=[],M=[],T=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(;M.length;)M.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,J;function R(){I={r:0,c:[],p:I}}function U(){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:a,on_destroy:r,after_update:i}=t.$$;c&&c.m(e,s),P(()=>{const e=a.map(n).filter(l);r?r.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,T.then(H)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Y(t,n,l,c,a,r,i=[-1]){const d=y;_(t);const u=n.props||{},h=t.$$={fragment:null,ctx:null,props:r,update:e,not_equal:a,bound:s(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(d?d.$$.context:[]),callbacks:s(),dirty:i};let m=!1;h.ctx=l?l(t,u,(e,n,...s)=>{const o=s.length?s[0]:n;return h.ctx&&a(h.ctx[e],h.ctx[e]=o)&&(h.bound[e]&&h.bound[e](o),m&&W(t,e)),n}):[],h.update(),m=!0,o(h.before_update),h.fragment=!!c&&c(h.ctx),n.target&&(n.hydrate?h.fragment&&h.fragment.l(function(t){return Array.from(t.childNodes)}(n.target)):h.fragment&&h.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=u("a"),l&&l.c(),n=m(),s=u("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){r(t,e,o),l&&l.m(e,null),a(e,n),a(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 n,s,o;return{c(){n=u("img"),p(n,"class","close-icon"),n.src!==(s="https://minio.codingblocks.com/motley/wrong_g.png")&&p(n,"src","https://minio.codingblocks.com/motley/wrong_g.png"),p(n,"alt","close")},m(e,s){var l;r(e,n,s),o=g(n,"click",function(t){return function(e){return e.stopPropagation(),t.call(this,e)}}((l=t[4],function(t){return t.preventDefault(),l.call(this,t)})),!0)},p:e,d(t){t&&i(n),o()}}}function z(t){let n,s=t[3]&&K(t);return{c(){s&&s.c(),n=h(""),this.c=e},m(t,e){s&&s.m(t,e),r(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,{showToggle:c=!0}=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)});return t.$set=t=>{"showToggle"in t&&n(0,c=t.showToggle)},[c,s,o,l,()=>{n(3,l=!l)}]}"function"==typeof HTMLElement&&(J=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 J{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}),t&&(t.target&&r(t.target,this,t.anchor),t.props&&(this.$set(t.props),H()))}static get observedAttributes(){return["showToggle"]}get showToggle(){return this.$$.ctx[0]}set showToggle(t){this.$set({showToggle: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,l,c,h,f,v,k,y,_,$,w,x,C,j,A,M,T=t[4],L=[];for(let e=0;e<T.length;e+=1)L[e]=st(et(t,T,e));let E=1===t[0]&&ot(t),H=t[8],D=[];for(let e=0;e<H.length;e+=1)D[e]=lt(tt(t,H,e));let B=t[5],I=[];for(let e=0;e<B.length;e+=1)I[e]=ct(X(t,B,e));let J=t[7].error&&at(t);return{c(){e=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 & get INR 1000 credits in your wallet\n </div>',s=m(),l=u("div"),c=u("select"),h=u("option"),h.textContent="-- College --";for(let t=0;t<L.length;t+=1)L[t].c();f=m(),E&&E.c(),v=m(),k=u("select"),y=u("option"),y.textContent="-- Graduation Year --";for(let t=0;t<D.length;t+=1)D[t].c();_=m(),$=u("select"),w=u("option"),w.textContent="-- Branch --";for(let t=0;t<I.length;t+=1)I[t].c();x=m(),C=u("div"),j=u("button"),j.textContent="Update Profile",A=m(),J&&J.c(),p(n,"class","bg-gradient-pink white p-4"),h.disabled=!0,h.selected=!0,h.__value="",h.value=h.__value,p(c,"class","input-text br-50 my-2"),void 0===t[0]&&P(()=>t[11].call(c)),y.disabled=!0,y.selected=!0,y.__value="",y.value=y.__value,p(k,"class","input-text br-50 my-2"),void 0===t[2]&&P(()=>t[13].call(k)),w.disabled=!0,w.selected=!0,w.__value="",w.value=w.__value,p($,"class","input-text br-50 my-2"),void 0===t[1]&&P(()=>t[14].call($)),p(j,"id","updatedButton"),p(j,"class","button-solid button-orange"),p(C,"class","d-flex justify-content-center mt-5"),p(l,"class","py-4 px-5 t-align-center"),p(e,"class","border-card b-red p-0")},m(o,i){r(o,e,i),a(e,n),a(e,s),a(e,l),a(l,c),a(c,h);for(let t=0;t<L.length;t+=1)L[t].m(c,null);b(c,t[0]),a(l,f),E&&E.m(l,null),a(l,v),a(l,k),a(k,y);for(let t=0;t<D.length;t+=1)D[t].m(k,null);b(k,t[2]),a(l,_),a(l,$),a($,w);for(let t=0;t<I.length;t+=1)I[t].m($,null);b($,t[1]),a(l,x),a(l,C),a(C,j),a(l,A),J&&J.m(l,null),M=[g(c,"change",t[11]),g(k,"change",t[13]),g($,"change",t[14]),g(j,"click",t[9])]},p(t,e){if(17&e){let n;for(T=t[4],n=0;n<T.length;n+=1){const s=et(t,T,n);L[n]?L[n].p(s,e):(L[n]=st(s),L[n].c(),L[n].m(c,null))}for(;n<L.length;n+=1)L[n].d(1);L.length=T.length}if(1&e&&b(c,t[0]),1===t[0]?E?E.p(t,e):(E=ot(t),E.c(),E.m(l,v)):E&&(E.d(1),E=null),260&e){let n;for(H=t[8],n=0;n<H.length;n+=1){const s=tt(t,H,n);D[n]?D[n].p(s,e):(D[n]=lt(s),D[n].c(),D[n].m(k,null))}for(;n<D.length;n+=1)D[n].d(1);D.length=H.length}if(4&e&&b(k,t[2]),34&e){let n;for(B=t[5],n=0;n<B.length;n+=1){const s=X(t,B,n);I[n]?I[n].p(s,e):(I[n]=ct(s),I[n].c(),I[n].m($,null))}for(;n<I.length;n+=1)I[n].d(1);I.length=B.length}2&e&&b($,t[1]),t[7].error?J?J.p(t,e):(J=at(t),J.c(),J.m(l,null)):J&&(J.d(1),J=null)},d(t){t&&i(e),d(L,t),E&&E.d(),d(D,t),d(I,t),J&&J.d(),o(M)}}}function st(t){let e,n,s,o,l,c=t[21].name+"";return{c(){e=u("option"),n=h(c),s=m(),e.__value=o=t[21].id,e.value=e.__value,e.selected=l=t[21].id===t[0]},m(t,o){r(t,e,o),a(e,n),a(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 ot(t){let e,n;return{c(){e=u("input"),p(e,"type","text"),p(e,"placeholder","Other College Name"),p(e,"class","input-text br-50 my-2")},m(s,o){r(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 lt(t){let e,n,s,o,l,c=t[18]+"";return{c(){e=u("option"),n=h(c),s=m(),e.__value=o=t[18],e.value=e.__value,e.selected=l=t[18]===t[2]},m(t,o){r(t,e,o),a(e,n),a(e,s)},p(t,n){4&n&&l!==(l=t[18]===t[2])&&(e.selected=l)},d(t){t&&i(e)}}}function ct(t){let e,n,s,o,l,c=t[15].name+"";return{c(){e=u("option"),n=h(c),s=m(),e.__value=o=t[15].id,e.value=e.__value,e.selected=l=t[15].id===t[1]},m(t,o){r(t,e,o),a(e,n),a(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 at(t){let e,n,s,o=t[7].error+"";return{c(){e=u("div"),n=u("p"),s=h(o),p(n,"class","red"),p(e,"class","row justify-content-center")},m(t,o){r(t,e,o),a(e,n),a(n,s)},p(t,e){128&e&&o!==(o=t[7].error+"")&&f(s,o)},d(t){t&&i(e)}}}function rt(t){let n,s,o=t[6].id&&nt(t);return{c(){o&&o.c(),n=m(),s=u("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),r(t,n,e),r(t,s,e)},p(t,[e]){t[6].id?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 it(t,e,n){let s=null,o=null,l=null,c="",a=[],r=[],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={},u={success:null,error:null};const h=x();w(async()=>{n(6,d=await Z.fetchUser()),d.id&&(n(4,a=await Z.fetchColleges()),n(5,r=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,a,r,d,u,i,async()=>{try{const t=await Z.updateUser({gradYear:l,collegeId:s,branchId:o,otherCollege:c});h("updated",t),t.success=t.success}catch(t){n(7,u.error=t,u)}},h,function(){s=k(this),n(0,s),n(4,a)},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,r)}]}class dt extends J{constructor(t){super(),Y(this,{target:this.shadowRoot},it,rt,c,{}),t&&t.target&&r(t.target,this,t.anchor)}}function ut(t){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=e,p(n,"class","pl-4")},m(t,e){r(t,n,e)},p:e,i:e,o:e,d(t){t&&i(n)}}}customElements.define("demographic-form",dt);class ht extends J{constructor(t){super(),Y(this,{target:this.shadowRoot},null,ut,c,{}),t&&t.target&&r(t.target,this,t.anchor)}}function mt(t){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=e,p(n,"class","pl-4")},m(t,e){r(t,n,e)},p:e,i:e,o:e,d(t){t&&i(n)}}}customElements.define("mobile-classroom-courses",ht);class gt extends J{constructor(t){super(),Y(this,{target:this.shadowRoot},null,mt,c,{}),t&&t.target&&r(t.target,this,t.anchor)}}function pt(t){let e;const n=new ht({});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 ft(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 vt(t){let n,s,l,c,d,h,f,v,b,k,y,_,$,w,x,C,j,A,M,T,L,P,E,H,D,B,I,J,F,S,G,W,Y,K,q,z,V,Q,Z,X,tt,et,nt,st="classroom"==t[0]&&pt(),ot="online"==t[0]&&ft();return{c(){n=u("link"),s=m(),l=u("link"),c=m(),d=u("div"),h=u("div"),f=u("img"),b=m(),k=u("img"),_=m(),$=u("div"),w=m(),x=u("slot"),C=m(),j=u("div"),A=u("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>',M=m(),T=u("div"),L=u("div"),P=u("div"),P.textContent="Classroom Courses",E=m(),H=u("div"),H.innerHTML='<a href="#" class="orange">Explore All</a>',B=m(),st&&st.c(),I=m(),J=u("div"),F=u("div"),S=u("div"),S.textContent="Online Courses",G=m(),W=u("div"),W.innerHTML='<a href="#" class="orange">Explore All</a>',K=m(),ot&&ot.c(),q=m(),z=u("div"),z.innerHTML='<a href="https://codingblocks.com/campus-ambassador-program.html" target="blank">\n Campus Ambassadors\n </a>',V=m(),Q=u("div"),Q.innerHTML='<a href="https://codingblocks.com/about" target="blank">\n About Us\n </a>',Z=m(),X=u("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(h,"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(T,"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(J,"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){r(e,n,o),r(e,s,o),r(e,l,o),r(e,c,o),r(e,d,o),a(d,h),a(h,f),a(h,b),a(h,k),a(d,_),a(d,$),a(d,w),a(d,x),a(d,C),a(d,j),a(j,A),a(j,M),a(j,T),a(T,L),a(L,P),a(L,E),a(L,H),a(T,B),st&&st.m(T,null),a(j,I),a(j,J),a(J,F),a(F,S),a(F,G),a(F,W),a(J,K),ot&&ot.m(J,null),a(j,q),a(j,z),a(j,V),a(j,Q),a(j,Z),a(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=pt(),st.c(),O(st,1),st.m(T,null)):st&&(R(),N(st,1,1,()=>{st=null}),U()),(!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=ft(),ot.c(),O(ot,1),ot.m(J,null)):ot&&(R(),N(ot,1,1,()=>{ot=null}),U()),(!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 bt(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",gt);class kt extends J{constructor(t){super(),Y(this,{target:this.shadowRoot},bt,vt,c,{css:2,tab:0,showhamburger:1,logo:3}),t&&(t.target&&r(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 yt(t){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=e,p(n,"class","row justify-content-around m-5")},m(t,e){r(t,n,e)},p:e,i:e,o:e,d(t){t&&i(n)}}}customElements.define("cb-mobile-navbar",kt);class _t extends J{constructor(t){super(),Y(this,{target:this.shadowRoot},null,yt,c,{}),t&&t.target&&r(t.target,this,t.anchor)}}function $t(t){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=e,p(n,"class","row justify-content-around m-5")},m(t,e){r(t,n,e)},p:e,i:e,o:e,d(t){t&&i(n)}}}customElements.define("classroom-courses",_t);class wt extends J{constructor(t){super(),Y(this,{target:this.shadowRoot},null,$t,c,{}),t&&t.target&&r(t.target,this,t.anchor)}}function xt(t){let e,n,s,l,c,d,h,f,v,b,k,y,_,$,w,x,C;const j=[jt,Ct],A=[];function M(t,e){return"classroom"==t[1]?0:1}return $=M(t),w=A[$]=j[$](t),{c(){var o,a,r;e=u("div"),n=u("div"),s=u("div"),s.innerHTML='<div class="font-lg my-4 offset-3">Our Courses</div>',l=m(),c=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>',f=m(),v=u("div"),b=u("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(),_=u("div"),w.c(),p(s,"class","py-5 font-md bold hover-grey"),p(d,"class","offset-3"),p(c,"class",h="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",a="hidden",e.style.setProperty(o,a,r?"important":"")},m(o,i){r(o,e,i),a(e,n),a(n,s),a(n,l),a(n,c),a(c,d),a(n,f),a(n,v),a(v,b),a(e,y),a(e,_),A[$].m(_,null),x=!0,C=[g(c,"click",t[6]),g(v,"click",t[7])]},p(t,e){(!x||2&e&&h!==(h="py-4 font-md bold hover-grey "+("online"==t[1]&&"selected")))&&p(c,"class",h),(!x||2&e&&k!==(k="py-4 font-md bold hover-grey "+("classroom"==t[1]&&"selected")))&&p(v,"class",k);let n=$;$=M(t),$!==n&&(R(),N(A[n],1,1,()=>{A[n]=null}),U(),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 Ct(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 jt(t){let e;const n=new _t({});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 At(t){let n,s,o,l,c,d,f,v,b,k,y,_,$,w,x,C,j,A,M,T,L,P,E,H,D,B,I,J,F,S=t[0]&&xt(t);return{c(){n=u("div"),s=u("div"),o=u("div"),l=u("span"),c=h("Courses\n "),d=u("i"),v=m(),b=u("div"),b.innerHTML='<a href="https://codingblocks.com/about.html" target="_blank">About Us</a>',k=m(),y=u("div"),y.innerHTML='<a href="https://codingblocks.com/resources" target="_blank">Resources</a>',_=m(),$=u("div"),$.innerHTML='<a href="https://codingblocks.com/campus-ambassador-program.html" target="_blank">Campus Ambassadors</a>',w=m(),x=u("div"),x.innerHTML='<a href="https://codingblocks.com/centres/" target="_blank">Contact Us</a>',C=m(),j=u("slot"),M=m(),S&&S.c(),T=m(),L=u("link"),P=m(),E=u("link"),H=m(),D=u("link"),B=m(),I=u("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){r(e,n,i),a(n,s),a(s,o),a(o,l),a(l,c),a(l,d),a(o,v),a(o,b),a(o,k),a(o,y),a(o,_),a(o,$),a(o,w),a(o,x),a(o,C),a(o,j),a(n,M),S&&S.m(n,null),r(e,T,i),r(e,L,i),r(e,P,i),r(e,E,i),r(e,H,i),r(e,D,i),r(e,B,i),r(e,I,i),J=!0,F=g(l,"click",t[4])},p(t,[e]){(!J||1&e&&f!==(f="ml-1 fas fa-chevron-"+(t[0]?"up":"down")))&&p(d,"class",f),(!J||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=xt(t),S.c(),O(S,1),S.m(n,null)):S&&(R(),N(S,1,1,()=>{S=null}),U()),(!J||4&e)&&p(L,"href",t[2])},i(t){J||(O(S),J=!0)},o(t){N(S),J=!1},d(t){t&&i(n),S&&S.d(),t&&i(T),t&&i(L),t&&i(P),t&&i(E),t&&i(H),t&&i(D),t&&i(B),t&&i(I),F()}}}function Mt(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,a="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,a="justify-content-start");break;case"right":n(3,a="justify-content-end");break;default:n(3,a="justify-content-center")}},[o,l,c,a,()=>n(0,o=!o),s,()=>n(1,l="online"),()=>n(1,l="classroom")]}customElements.define("online-courses",wt);class Tt extends J{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},Mt,At,c,{topalign:5,expanded:0,tab:1,css:2}),t&&(t.target&&r(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",Tt),t.banner=Q,t.cb_navbar=Tt,t.demographic_form=dt,t.mobile_cb_navbar=kt,t}({}); |
@@ -1,1 +0,1 @@ | ||
var mobileCbNavbar=function(){"use strict";function t(){}function n(t){return t()}function e(){return Object.create(null)}function s(t){t.forEach(n)}function o(t){return"function"==typeof t}function r(t,n){return t!=t?n==n:t!==n||t&&"object"==typeof t||"function"==typeof t}function a(t,n){t.appendChild(n)}function c(t,n,e){t.insertBefore(n,e||null)}function i(t){t.parentNode.removeChild(t)}function l(t){return document.createElement(t)}function d(){return t=" ",document.createTextNode(t);var t}function m(t,n,e,s){return t.addEventListener(n,e,s),()=>t.removeEventListener(n,e,s)}function h(t,n,e){null==e?t.removeAttribute(n):t.getAttribute(n)!==e&&t.setAttribute(n,e)}let u;function g(t){u=t}const v=[],p=[],f=[],b=[],$=Promise.resolve();let k=!1;function y(t){f.push(t)}const _=new Set;function x(){do{for(;v.length;){const t=v.shift();g(t),w(t.$$)}for(;p.length;)p.pop()();for(let t=0;t<f.length;t+=1){const n=f[t];_.has(n)||(_.add(n),n())}f.length=0}while(v.length);for(;b.length;)b.pop()();k=!1,_.clear()}function w(t){if(null!==t.fragment){t.update(),s(t.before_update);const n=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,n),t.after_update.forEach(y)}}const C=new Set;let A,j;function M(){A={r:0,c:[],p:A}}function L(){A.r||s(A.c),A=A.p}function E(t,n){t&&t.i&&(C.delete(t),t.i(n))}function H(t,n,e,s){if(t&&t.o){if(C.has(t))return;C.add(t),A.c.push(()=>{C.delete(t),s&&(e&&t.d(1),s())}),t.o(n)}}function P(t){t&&t.c()}function T(t,e,r){const{fragment:a,on_mount:c,on_destroy:i,after_update:l}=t.$$;a&&a.m(e,r),y(()=>{const e=c.map(n).filter(o);i?i.push(...e):s(e),t.$$.on_mount=[]}),l.forEach(y)}function D(t,n){const e=t.$$;null!==e.fragment&&(s(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}function B(t,n){-1===t.$$.dirty[0]&&(v.push(t),k||(k=!0,$.then(x)),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<<n%31}function O(n,o,r,a,c,i,l=[-1]){const d=u;g(n);const m=o.props||{},h=n.$$={fragment:null,ctx:null,props:i,update:t,not_equal:c,bound:e(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(d?d.$$.context:[]),callbacks:e(),dirty:l};let v=!1;h.ctx=r?r(n,m,(t,e,...s)=>{const o=s.length?s[0]:e;return h.ctx&&c(h.ctx[t],h.ctx[t]=o)&&(h.bound[t]&&h.bound[t](o),v&&B(n,t)),e}):[],h.update(),v=!0,s(h.before_update),h.fragment=!!a&&a(h.ctx),o.target&&(o.hydrate?h.fragment&&h.fragment.l(function(t){return Array.from(t.childNodes)}(o.target)):h.fragment&&h.fragment.c(),o.intro&&E(n.$$.fragment),T(n,o.target,o.anchor),x()),g(d)}function J(n){let e;return{c(){e=l("div"),e.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,h(e,"class","pl-4")},m(t,n){c(t,e,n)},p:t,i:t,o:t,d(t){t&&i(e)}}}"function"==typeof HTMLElement&&(j=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,n,e){this[t]=e}$destroy(){D(this,1),this.$destroy=t}$on(t,n){const e=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return e.push(n),()=>{const t=e.indexOf(n);-1!==t&&e.splice(t,1)}}$set(){}});class F extends j{constructor(t){super(),O(this,{target:this.shadowRoot},null,J,r,{}),t&&t.target&&c(t.target,this,t.anchor)}}function N(n){let e;return{c(){e=l("div"),e.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,h(e,"class","pl-4")},m(t,n){c(t,e,n)},p:t,i:t,o:t,d(t){t&&i(e)}}}customElements.define("mobile-classroom-courses",F);class S extends j{constructor(t){super(),O(this,{target:this.shadowRoot},null,N,r,{}),t&&t.target&&c(t.target,this,t.anchor)}}function I(t){let n;const e=new F({});return{c(){P(e.$$.fragment)},m(t,s){T(e,t,s),n=!0},i(t){n||(E(e.$$.fragment,t),n=!0)},o(t){H(e.$$.fragment,t),n=!1},d(t){D(e,t)}}}function R(t){let n;const e=new S({});return{c(){P(e.$$.fragment)},m(t,s){T(e,t,s),n=!0},i(t){n||(E(e.$$.fragment,t),n=!0)},o(t){H(e.$$.fragment,t),n=!1},d(t){D(e,t)}}}function U(n){let e,o,r,u,g,v,p,f,b,$,k,y,_,x,w,C,A,j,P,T,D,B,O,J,F,N,S,U,G,W,q,V,z,K,Q,X,Y,Z,tt,nt,et,st="classroom"==n[0]&&I(),ot="online"==n[0]&&R();return{c(){e=l("link"),o=d(),r=l("link"),u=d(),g=l("div"),v=l("div"),p=l("img"),b=d(),$=l("img"),y=d(),_=l("div"),x=d(),w=l("div"),C=l("div"),C.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=d(),j=l("div"),P=l("div"),T=l("div"),T.textContent="Classroom Courses",D=d(),B=l("div"),B.innerHTML='<a href="#" class="orange">Explore All</a>',J=d(),st&&st.c(),F=d(),N=l("div"),S=l("div"),U=l("div"),U.textContent="Online Courses",G=d(),W=l("div"),W.innerHTML='<a href="#" class="orange">Explore All</a>',V=d(),ot&&ot.c(),z=d(),K=l("div"),K.innerHTML='<a href="https://codingblocks.com/campus-ambassador-program.html" target="blank">\n Campus Ambassadors\n </a>',Q=d(),X=l("div"),X.innerHTML='<a href="https://codingblocks.com/about" target="blank">\n About Us\n </a>',Y=d(),Z=l("div"),Z.innerHTML='<a href="https://codingblocks.com/centres" target="blank">\n Contact Us\n </a>',this.c=t,h(e,"rel","stylesheet"),h(e,"href",n[2]),h(r,"href","https://minio.codingblocks.com/hackerblocks-images/Gilroy.ttf"),h(r,"rel","stylesheet"),p.src!==(f="\\images\\hb_logo_monochrome_full_dg.png")&&h(p,"src","\\images\\hb_logo_monochrome_full_dg.png"),h(p,"alt","HB"),h(p,"class","hamburger-nav__ham-logo ml-4"),$.src!==(k="\\images\\wrong_g.png")&&h($,"src","\\images\\wrong_g.png"),h($,"alt","#"),h($,"class","mr-4 hamburger-nav__cross pointer"),h(v,"class","d-flex py-3 justify-content-between align-items-center hamburger-nav__top-bar"),h(_,"class","divider-h"),h(C,"class","d-flex justify-content-between"),h(T,"class","card-md extra-bold"),h(B,"class","card-sm light"),h(P,"class",O="hamburger-nav__menu-element "+("classroom"==n[0]&&"active")),h(j,"class","my-4 pl-4"),h(U,"class","card-md extra-bold"),h(W,"class","card-sm light"),h(S,"class",q="hamburger-nav__menu-element "+("online"==n[0]&&"active")),h(N,"class","my-4 pl-4"),h(K,"class","card-md light my-4"),h(X,"class","card-md light my-4"),h(Z,"class","card-md light my-4"),h(w,"class","mt-5 px-4 overflow-y-auto no-scrollbar"),h(g,"class",tt="hamburger-nav b-right overflow-y-auto no-scrollbar "+(!n[1]&&"hamburger-nav--hidden")+" ")},m(t,s){c(t,e,s),c(t,o,s),c(t,r,s),c(t,u,s),c(t,g,s),a(g,v),a(v,p),a(v,b),a(v,$),a(g,y),a(g,_),a(g,x),a(g,w),a(w,C),a(w,A),a(w,j),a(j,P),a(P,T),a(P,D),a(P,B),a(j,J),st&&st.m(j,null),a(w,F),a(w,N),a(N,S),a(S,U),a(S,G),a(S,W),a(N,V),ot&&ot.m(N,null),a(w,z),a(w,K),a(w,Q),a(w,X),a(w,Y),a(w,Z),nt=!0,et=[m($,"click",n[3]),m(T,"click",n[4]),m(U,"click",n[5])]},p(t,[n]){(!nt||4&n)&&h(e,"href",t[2]),(!nt||1&n&&O!==(O="hamburger-nav__menu-element "+("classroom"==t[0]&&"active")))&&h(P,"class",O),"classroom"==t[0]?st?E(st,1):(st=I(),st.c(),E(st,1),st.m(j,null)):st&&(M(),H(st,1,1,()=>{st=null}),L()),(!nt||1&n&&q!==(q="hamburger-nav__menu-element "+("online"==t[0]&&"active")))&&h(S,"class",q),"online"==t[0]?ot?E(ot,1):(ot=R(),ot.c(),E(ot,1),ot.m(N,null)):ot&&(M(),H(ot,1,1,()=>{ot=null}),L()),(!nt||2&n&&tt!==(tt="hamburger-nav b-right overflow-y-auto no-scrollbar "+(!t[1]&&"hamburger-nav--hidden")+" "))&&h(g,"class",tt)},i(t){nt||(E(st),E(ot),nt=!0)},o(t){H(st),H(ot),nt=!1},d(t){t&&i(e),t&&i(o),t&&i(r),t&&i(u),t&&i(g),st&&st.d(),ot&&ot.d(),s(et)}}}function G(t,n,e){let{css:s="https://unpkg.com/@coding-blocks/motley/dist/app.min.css"}=n,{tab:o="classroom"}=n,{showhamburger:r=!1}=n;return t.$set=t=>{"css"in t&&e(2,s=t.css),"tab"in t&&e(0,o=t.tab),"showhamburger"in t&&e(1,r=t.showhamburger)},[o,r,s,()=>e(1,r=!r),()=>e(0,o="classroom"),()=>e(0,o="online")]}customElements.define("mobile-online-courses",S);class W extends j{constructor(t){super(),O(this,{target:this.shadowRoot},G,U,r,{css:2,tab:0,showhamburger:1}),t&&(t.target&&c(t.target,this,t.anchor),t.props&&(this.$set(t.props),x()))}static get observedAttributes(){return["css","tab","showhamburger"]}get css(){return this.$$.ctx[2]}set css(t){this.$set({css:t}),x()}get tab(){return this.$$.ctx[0]}set tab(t){this.$set({tab:t}),x()}get showhamburger(){return this.$$.ctx[1]}set showhamburger(t){this.$set({showhamburger:t}),x()}}return customElements.define("cb-mobile-navbar",W),W}(); | ||
var mobileCbNavbar=function(){"use strict";function t(){}function n(t){return t()}function e(){return Object.create(null)}function s(t){t.forEach(n)}function o(t){return"function"==typeof t}function r(t,n){return t!=t?n==n:t!==n||t&&"object"==typeof t||"function"==typeof t}function a(t,n){t.appendChild(n)}function c(t,n,e){t.insertBefore(n,e||null)}function i(t){t.parentNode.removeChild(t)}function l(t){return document.createElement(t)}function d(){return t=" ",document.createTextNode(t);var t}function m(t,n,e,s){return t.addEventListener(n,e,s),()=>t.removeEventListener(n,e,s)}function h(t,n,e){null==e?t.removeAttribute(n):t.getAttribute(n)!==e&&t.setAttribute(n,e)}let u;function g(t){u=t}const v=[],p=[],f=[],b=[],$=Promise.resolve();let k=!1;function y(t){f.push(t)}const x=new Set;function w(){do{for(;v.length;){const t=v.shift();g(t),C(t.$$)}for(;p.length;)p.pop()();for(let t=0;t<f.length;t+=1){const n=f[t];x.has(n)||(x.add(n),n())}f.length=0}while(v.length);for(;b.length;)b.pop()();k=!1,x.clear()}function C(t){if(null!==t.fragment){t.update(),s(t.before_update);const n=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,n),t.after_update.forEach(y)}}const _=new Set;let A,j;function M(){A={r:0,c:[],p:A}}function L(){A.r||s(A.c),A=A.p}function E(t,n){t&&t.i&&(_.delete(t),t.i(n))}function H(t,n,e,s){if(t&&t.o){if(_.has(t))return;_.add(t),A.c.push(()=>{_.delete(t),s&&(e&&t.d(1),s())}),t.o(n)}}function P(t){t&&t.c()}function T(t,e,r){const{fragment:a,on_mount:c,on_destroy:i,after_update:l}=t.$$;a&&a.m(e,r),y(()=>{const e=c.map(n).filter(o);i?i.push(...e):s(e),t.$$.on_mount=[]}),l.forEach(y)}function D(t,n){const e=t.$$;null!==e.fragment&&(s(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}function B(t,n){-1===t.$$.dirty[0]&&(v.push(t),k||(k=!0,$.then(w)),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<<n%31}function O(n,o,r,a,c,i,l=[-1]){const d=u;g(n);const m=o.props||{},h=n.$$={fragment:null,ctx:null,props:i,update:t,not_equal:c,bound:e(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(d?d.$$.context:[]),callbacks:e(),dirty:l};let v=!1;h.ctx=r?r(n,m,(t,e,...s)=>{const o=s.length?s[0]:e;return h.ctx&&c(h.ctx[t],h.ctx[t]=o)&&(h.bound[t]&&h.bound[t](o),v&&B(n,t)),e}):[],h.update(),v=!0,s(h.before_update),h.fragment=!!a&&a(h.ctx),o.target&&(o.hydrate?h.fragment&&h.fragment.l(function(t){return Array.from(t.childNodes)}(o.target)):h.fragment&&h.fragment.c(),o.intro&&E(n.$$.fragment),T(n,o.target,o.anchor),w()),g(d)}function J(n){let e;return{c(){e=l("div"),e.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,h(e,"class","pl-4")},m(t,n){c(t,e,n)},p:t,i:t,o:t,d(t){t&&i(e)}}}"function"==typeof HTMLElement&&(j=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,n,e){this[t]=e}$destroy(){D(this,1),this.$destroy=t}$on(t,n){const e=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return e.push(n),()=>{const t=e.indexOf(n);-1!==t&&e.splice(t,1)}}$set(){}});class F extends j{constructor(t){super(),O(this,{target:this.shadowRoot},null,J,r,{}),t&&t.target&&c(t.target,this,t.anchor)}}function N(n){let e;return{c(){e=l("div"),e.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,h(e,"class","pl-4")},m(t,n){c(t,e,n)},p:t,i:t,o:t,d(t){t&&i(e)}}}customElements.define("mobile-classroom-courses",F);class S extends j{constructor(t){super(),O(this,{target:this.shadowRoot},null,N,r,{}),t&&t.target&&c(t.target,this,t.anchor)}}function I(t){let n;const e=new F({});return{c(){P(e.$$.fragment)},m(t,s){T(e,t,s),n=!0},i(t){n||(E(e.$$.fragment,t),n=!0)},o(t){H(e.$$.fragment,t),n=!1},d(t){D(e,t)}}}function R(t){let n;const e=new S({});return{c(){P(e.$$.fragment)},m(t,s){T(e,t,s),n=!0},i(t){n||(E(e.$$.fragment,t),n=!0)},o(t){H(e.$$.fragment,t),n=!1},d(t){D(e,t)}}}function U(n){let e,o,r,u,g,v,p,f,b,$,k,y,x,w,C,_,A,j,P,T,D,B,O,J,F,N,S,U,G,W,q,V,z,K,Q,X,Y,Z,tt,nt,et,st,ot,rt="classroom"==n[0]&&I(),at="online"==n[0]&&R();return{c(){e=l("link"),o=d(),r=l("link"),u=d(),g=l("div"),v=l("div"),p=l("img"),b=d(),$=l("img"),y=d(),x=l("div"),w=d(),C=l("slot"),_=d(),A=l("div"),j=l("div"),j.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>',P=d(),T=l("div"),D=l("div"),B=l("div"),B.textContent="Classroom Courses",O=d(),J=l("div"),J.innerHTML='<a href="#" class="orange">Explore All</a>',N=d(),rt&&rt.c(),S=d(),U=l("div"),G=l("div"),W=l("div"),W.textContent="Online Courses",q=d(),V=l("div"),V.innerHTML='<a href="#" class="orange">Explore All</a>',K=d(),at&&at.c(),Q=d(),X=l("div"),X.innerHTML='<a href="https://codingblocks.com/campus-ambassador-program.html" target="blank">\n Campus Ambassadors\n </a>',Y=d(),Z=l("div"),Z.innerHTML='<a href="https://codingblocks.com/about" target="blank">\n About Us\n </a>',tt=d(),nt=l("div"),nt.innerHTML='<a href="https://codingblocks.com/centres" target="blank">\n Contact Us\n </a>',this.c=t,h(e,"rel","stylesheet"),h(e,"href",n[2]),h(r,"href","https://minio.codingblocks.com/hackerblocks-images/Gilroy.ttf"),h(r,"rel","stylesheet"),p.src!==(f=n[3])&&h(p,"src",f),h(p,"alt","HB"),h(p,"class","hamburger-nav__ham-logo ml-4"),$.src!==(k="https://minio.codingblocks.com/amoeba/wrong-close.png")&&h($,"src","https://minio.codingblocks.com/amoeba/wrong-close.png"),h($,"alt","#"),h($,"class","mr-4 hamburger-nav__cross pointer"),h(v,"class","d-flex py-3 justify-content-between align-items-center hamburger-nav__top-bar"),h(x,"class","divider-h"),h(j,"class","d-flex justify-content-between"),h(B,"class","card-md extra-bold"),h(J,"class","card-sm light"),h(D,"class",F="hamburger-nav__menu-element "+("classroom"==n[0]&&"active")),h(T,"class","my-4 pl-4"),h(W,"class","card-md extra-bold"),h(V,"class","card-sm light"),h(G,"class",z="hamburger-nav__menu-element "+("online"==n[0]&&"active")),h(U,"class","my-4 pl-4"),h(X,"class","card-md light my-4"),h(Z,"class","card-md light my-4"),h(nt,"class","card-md light my-4"),h(A,"class","mt-4 px-4 overflow-y-auto no-scrollbar"),h(g,"class",et="hamburger-nav b-right overflow-y-auto no-scrollbar "+(!n[1]&&"hamburger-nav--hidden")+" ")},m(t,s){c(t,e,s),c(t,o,s),c(t,r,s),c(t,u,s),c(t,g,s),a(g,v),a(v,p),a(v,b),a(v,$),a(g,y),a(g,x),a(g,w),a(g,C),a(g,_),a(g,A),a(A,j),a(A,P),a(A,T),a(T,D),a(D,B),a(D,O),a(D,J),a(T,N),rt&&rt.m(T,null),a(A,S),a(A,U),a(U,G),a(G,W),a(G,q),a(G,V),a(U,K),at&&at.m(U,null),a(A,Q),a(A,X),a(A,Y),a(A,Z),a(A,tt),a(A,nt),st=!0,ot=[m($,"click",n[4]),m(B,"click",n[5]),m(W,"click",n[6])]},p(t,[n]){(!st||4&n)&&h(e,"href",t[2]),(!st||8&n&&p.src!==(f=t[3]))&&h(p,"src",f),(!st||1&n&&F!==(F="hamburger-nav__menu-element "+("classroom"==t[0]&&"active")))&&h(D,"class",F),"classroom"==t[0]?rt?E(rt,1):(rt=I(),rt.c(),E(rt,1),rt.m(T,null)):rt&&(M(),H(rt,1,1,()=>{rt=null}),L()),(!st||1&n&&z!==(z="hamburger-nav__menu-element "+("online"==t[0]&&"active")))&&h(G,"class",z),"online"==t[0]?at?E(at,1):(at=R(),at.c(),E(at,1),at.m(U,null)):at&&(M(),H(at,1,1,()=>{at=null}),L()),(!st||2&n&&et!==(et="hamburger-nav b-right overflow-y-auto no-scrollbar "+(!t[1]&&"hamburger-nav--hidden")+" "))&&h(g,"class",et)},i(t){st||(E(rt),E(at),st=!0)},o(t){H(rt),H(at),st=!1},d(t){t&&i(e),t&&i(o),t&&i(r),t&&i(u),t&&i(g),rt&&rt.d(),at&&at.d(),s(ot)}}}function G(t,n,e){let{css:s="https://unpkg.com/@coding-blocks/motley/dist/app.min.css"}=n,{tab:o="classroom"}=n,{showhamburger:r=!1}=n,{logo:a="https://codingblocks.com/assets/images/cb/cblogo.png"}=n;return t.$set=t=>{"css"in t&&e(2,s=t.css),"tab"in t&&e(0,o=t.tab),"showhamburger"in t&&e(1,r=t.showhamburger),"logo"in t&&e(3,a=t.logo)},[o,r,s,a,()=>e(1,r=!r),()=>e(0,o="classroom"),()=>e(0,o="online")]}customElements.define("mobile-online-courses",S);class W extends j{constructor(t){super(),O(this,{target:this.shadowRoot},G,U,r,{css:2,tab:0,showhamburger:1,logo:3}),t&&(t.target&&c(t.target,this,t.anchor),t.props&&(this.$set(t.props),w()))}static get observedAttributes(){return["css","tab","showhamburger","logo"]}get css(){return this.$$.ctx[2]}set css(t){this.$set({css:t}),w()}get tab(){return this.$$.ctx[0]}set tab(t){this.$set({tab:t}),w()}get showhamburger(){return this.$$.ctx[1]}set showhamburger(t){this.$set({showhamburger:t}),w()}get logo(){return this.$$.ctx[3]}set logo(t){this.$set({logo:t}),w()}}return customElements.define("cb-mobile-navbar",W),W}(); |
@@ -5,3 +5,3 @@ { | ||
"outDir": "dist/", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"main": "dist/index.js", | ||
@@ -8,0 +8,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
114219
363