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.4.0 to 0.5.0

2

dist/cbMobileVerification.js

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

!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(t=t||self).cbMobileVerification=n()}(this,(function(){"use strict";function t(){}function n(t){return t()}function e(){return Object.create(null)}function o(t){t.forEach(n)}function i(t){return"function"==typeof t}function c(t,n){return t!=t?n==n:t!==n||t&&"object"==typeof t||"function"==typeof t}function l(t,n){t.appendChild(n)}function s(t,n,e){t.insertBefore(n,e||null)}function r(t){t.parentNode.removeChild(t)}function a(t){return document.createElement(t)}function d(t){return document.createTextNode(t)}function u(){return d(" ")}function p(t,n,e,o){return t.addEventListener(n,e,o),()=>t.removeEventListener(n,e,o)}function f(t,n,e){null==e?t.removeAttribute(n):t.getAttribute(n)!==e&&t.setAttribute(n,e)}function h(t){return""===t?null:+t}function m(t,n){t.value=null==n?"":n}function b(t){const n={};for(const e of t)n[e.name]=e.value;return n}let g;function y(t){g=t}function v(t){(function(){if(!g)throw new Error("Function called outside component initialization");return g})().$$.on_mount.push(t)}const k=[],w=[],$=[],x=[],_=Promise.resolve();let T=!1;function j(t){$.push(t)}const E=new Set;let M=0;function O(){const t=g;do{for(;M<k.length;){const t=k[M];M++,y(t),C(t.$$)}for(y(null),k.length=0,M=0;w.length;)w.pop()();for(let t=0;t<$.length;t+=1){const n=$[t];E.has(n)||(E.add(n),n())}$.length=0}while(k.length);for(;x.length;)x.pop()();T=!1,E.clear(),y(t)}function C(t){if(null!==t.fragment){t.update(),o(t.before_update);const n=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,n),t.after_update.forEach(j)}}const L=new Set;const S="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function N(t,n){-1===t.$$.dirty[0]&&(k.push(t),T||(T=!0,_.then(O)),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<<n%31}function z(c,l,s,a,d,u,p,f=[-1]){const h=g;y(c);const m=c.$$={fragment:null,ctx:null,props:u,update:t,not_equal:d,bound:e(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(l.context||(h?h.$$.context:[])),callbacks:e(),dirty:f,skip_bound:!1,root:l.target||h.$$.root};p&&p(m.root);let b=!1;if(m.ctx=s?s(c,l.props||{},(t,n,...e)=>{const o=e.length?e[0]:n;return m.ctx&&d(m.ctx[t],m.ctx[t]=o)&&(!m.skip_bound&&m.bound[t]&&m.bound[t](o),b&&N(c,t)),n}):[],m.update(),b=!0,o(m.before_update),m.fragment=!!a&&a(m.ctx),l.target){if(l.hydrate){const t=function(t){return Array.from(t.childNodes)}(l.target);m.fragment&&m.fragment.l(t),t.forEach(r)}else m.fragment&&m.fragment.c();l.intro&&((v=c.$$.fragment)&&v.i&&(L.delete(v),v.i(k))),function(t,e,c,l){const{fragment:s,on_mount:r,on_destroy:a,after_update:d}=t.$$;s&&s.m(e,c),l||j(()=>{const e=r.map(n).filter(i);a?a.push(...e):o(e),t.$$.on_mount=[]}),d.forEach(j)}(c,l.target,l.anchor,l.customElement),O()}var v,k;y(h)}let A;"function"==typeof HTMLElement&&(A=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(n).filter(i);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,n,e){this[t]=e}disconnectedCallback(){o(this.$$.on_disconnect)}$destroy(){!function(t,n){const e=t.$$;null!==e.fragment&&(o(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}(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(t){var n;this.$$set&&(n=t,0!==Object.keys(n).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});const{document:B}=S;function H(t){let n,e;return{c(){n=a("div"),e=d(t[3]),f(n,"class","red")},m(t,o){s(t,n,o),l(n,e)},p(t,n){8&n&&function(t,n){n=""+n,t.wholeText!==n&&(t.data=n)}(e,t[3])},d(t){t&&r(n)}}}function P(t){let n,e,i,c,b,g,y;return{c(){n=a("input"),e=u(),i=a("button"),c=d("Send OTP"),f(n,"type","number"),f(n,"placeholder","Enter 10 digit Mobile Number"),f(n,"class","w-100 mb-4"),f(i,"class","btn btn-primary w-100"),i.disabled=b=!t[0]},m(o,r){s(o,n,r),m(n,t[0]),s(o,e,r),s(o,i,r),l(i,c),g||(y=[p(n,"input",t[7]),p(i,"click",t[4])],g=!0)},p(t,e){1&e&&h(n.value)!==t[0]&&m(n,t[0]),1&e&&b!==(b=!t[0])&&(i.disabled=b)},d(t){t&&r(n),t&&r(e),t&&r(i),g=!1,o(y)}}}function F(t){let n,e,i,c,b,g,y;return{c(){n=a("input"),e=u(),i=a("button"),c=d("Verify OTP"),f(n,"type","number"),f(n,"placeholder","Enter OTP"),f(n,"class","w-100 mb-4"),f(i,"class","btn btn-primary w-100"),i.disabled=b=!t[1]},m(o,r){s(o,n,r),m(n,t[1]),s(o,e,r),s(o,i,r),l(i,c),g||(y=[p(n,"input",t[6]),p(i,"click",t[5])],g=!0)},p(t,e){2&e&&h(n.value)!==t[1]&&m(n,t[1]),2&e&&b!==(b=!t[1])&&(i.disabled=b)},d(t){t&&r(n),t&&r(e),t&&r(i),g=!1,o(y)}}}function D(n){let e,o,i,c,d,p,h,m,b,g,y,v,k,w,$,x,_=n[3]&&H(n);function T(t,n){return t[2]?F:P}let j=T(n),E=j(n);return{c(){e=a("link"),o=a("link"),i=a("link"),c=u(),d=a("div"),p=u(),h=a("div"),m=a("div"),m.innerHTML="<h2>Verify Your Mobile</h2>",b=u(),_&&_.c(),g=u(),E.c(),y=u(),v=a("div"),v.innerHTML='<div class="header">Find your dream job</div> \n <div class="sub-header mb-4">Trusted by 100k+ students</div> \n <img src="https://minio.codingblocks.com/public/company-logo-group.png" alt=""/>',k=u(),w=a("div"),w.innerHTML='<a href="https://www.linkedin.com/school/codingblocksindia/" target="_blank"><img class="social-media-logo mr-2" src="https://minio.codingblocks.com/public/linkedin-logo.png" alt=""/></a> \n <a href="https://twitter.com/codingblocksIN" target="_blank"><img class="social-media-logo mr-2" src="https://minio.codingblocks.com/public/twitter-logo.png" alt=""/></a> \n <a href="https://github.com/coding-blocks" target="_blank"><img class="social-media-logo" src="https://minio.codingblocks.com/public/github-logo.png" alt=""/></a> \n <div><a href="https://codingblocks.com/tos.html" class="sub-header" target="_blank">Coding Blocks | Terms of service</a></div>',$=u(),x=a("link"),this.c=t,f(e,"rel","preconnect"),f(e,"href","https://fonts.googleapis.com"),f(o,"rel","preconnect"),f(o,"href","https://fonts.gstatic.com"),f(o,"crossorigin",""),f(i,"href","https://fonts.googleapis.com/css2?family=Mulish:wght@400;600&display=swap"),f(i,"rel","stylesheet"),f(d,"class","blurrer"),f(m,"class","d-flex justify-content-between align-items-center mb-5"),f(v,"class","mb-5 pt-5"),f(w,"class","position-absolute"),f(h,"id","cb-mobile-verification"),f(h,"class","cb-mobile-verification-container"),f(x,"rel","stylesheet"),f(x,"href","https://unpkg.com/@coding-blocks/motley@2.8.6/dist/account/app.min.css")},m(t,n){l(B.head,e),l(B.head,o),l(B.head,i),s(t,c,n),s(t,d,n),s(t,p,n),s(t,h,n),l(h,m),l(h,b),_&&_.m(h,null),l(h,g),E.m(h,null),l(h,y),l(h,v),l(h,k),l(h,w),s(t,$,n),s(t,x,n)},p(t,[n]){t[3]?_?_.p(t,n):(_=H(t),_.c(),_.m(h,g)):_&&(_.d(1),_=null),j===(j=T(t))&&E?E.p(t,n):(E.d(1),E=j(t),E&&(E.c(),E.m(h,y)))},i:t,o:t,d(t){r(e),r(o),r(i),t&&r(c),t&&r(d),t&&r(p),t&&r(h),_&&_.d(),E.d(),t&&r($),t&&r(x)}}}function J(t,n,e){let o=null;const i=window.location.host.split(".")[0],c={sendOtpMobile:{hack:"https://hack-api.codingblocks.com/api/v2/jwt/otp",online:"https://online-api.codingblocks.com/api/v2/jwt/otp/mobile",hire:"https://hire-api.codingblocks.com/login/otp/mobile","code-gym":"https://code-gym-api.codingblocks.com/api/jwt/otp"},verifyOtpMobile:{hack:"https://hack-api.codingblocks.com/api/v2/jwt/otp/verify",online:"https://online-api.codingblocks.com/api/v2/jwt/otp/mobile/verify",hire:"https://hire-api.codingblocks.com/login/otp/mobile/verify","code-gym":"https://code-gym-api.codingblocks.com/api/jwt/otp/verify"}};let l=null,s=null,r=null,a=null;return v(()=>{o=document.cookie.split("; ").filter(t=>"cb_auth"===t.split("=")[0])[0]}),[l,s,r,a,async function(){const t=await fetch(c.sendOtpMobile[i]||"http://localhost:3000/api/jwt/otp",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({mobile:l})});if(t.ok){let{id:n}=await t.json();e(2,r=n)}else{const{message:n}=await t.json();n&&e(3,a=n)}},async function(){e(3,a=null);const t=await fetch(c.verifyOtpMobile[i]+"?flow=mobile-verification"||"http://localhost:3000/api/jwt/otp/verify",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"JWT "+o},credentials:"include",body:JSON.stringify({email:email,mobile:l,otp_id:r,otp:s})});if(t.ok)window.location.reload();else{const{message:n}=await t.json();n&&e(3,a=n)}},function(){s=h(this.value),e(1,s)},function(){l=h(this.value),e(0,l)}]}class V extends A{constructor(t){super(),this.shadowRoot.innerHTML="<style>input{border:none;border-bottom:solid 1px #E95547;background:#15171E;padding:10px 0px}.blurrer{position:fixed;z-index:1000;top:0;left:0;width:100vw;height:100vh;background-color:#939393;opacity:0.5}.cb-mobile-verification-container{background:#15171E;color:white;width:100vw;min-height:100vh;position:fixed;z-index:1001;top:0;right:0;padding:5rem 3rem 3rem 3rem;font-family:'Mulish';transition:0.5s}:host(.hide-cb-mobile-verification-prompt) .cb-mobile-verification-container{right:-100vw}:host(.hide-cb-mobile-verification-prompt) .blurrer{display:none}@media screen and (min-width: 768px){.cb-mobile-verification-container{width:35vw}:host(.hide-cb-mobile-verification-prompt) .cb-mobile-verification-container{right:-35vw}}.btn{padding:10px 10px;border-radius:3px}.btn.btn-primary{background:linear-gradient(90deg, #F26A3E 0%, #FB8133 100%)}.btn:disabled{background:#939393}.header{font-size:20px}.sub-header{font-size:12px;color:#BDBDBD}.social-media-logo{width:15px}</style>",z(this,{target:this.shadowRoot,props:b(this.attributes),customElement:!0},J,D,c,{},null),t&&t.target&&s(t.target,this,t.anchor)}}return customElements.define("cb-mobile-verification",V),V}));
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(t=t||self).cbMobileVerification=n()}(this,(function(){"use strict";function t(){}function n(t){return t()}function e(){return Object.create(null)}function o(t){t.forEach(n)}function i(t){return"function"==typeof t}function c(t,n){return t!=t?n==n:t!==n||t&&"object"==typeof t||"function"==typeof t}function s(t,n){t.appendChild(n)}function l(t,n,e){t.insertBefore(n,e||null)}function r(t){t.parentNode.removeChild(t)}function a(t){return document.createElement(t)}function d(t){return document.createTextNode(t)}function u(){return d(" ")}function p(t,n,e,o){return t.addEventListener(n,e,o),()=>t.removeEventListener(n,e,o)}function f(t,n,e){null==e?t.removeAttribute(n):t.getAttribute(n)!==e&&t.setAttribute(n,e)}function h(t){return""===t?null:+t}function m(t,n){t.value=null==n?"":n}function b(t){const n={};for(const e of t)n[e.name]=e.value;return n}let g;function y(t){g=t}function v(t){(function(){if(!g)throw new Error("Function called outside component initialization");return g})().$$.on_mount.push(t)}const k=[],w=[],$=[],x=[],_=Promise.resolve();let T=!1;function j(t){$.push(t)}const E=new Set;let M=0;function O(){const t=g;do{for(;M<k.length;){const t=k[M];M++,y(t),C(t.$$)}for(y(null),k.length=0,M=0;w.length;)w.pop()();for(let t=0;t<$.length;t+=1){const n=$[t];E.has(n)||(E.add(n),n())}$.length=0}while(k.length);for(;x.length;)x.pop()();T=!1,E.clear(),y(t)}function C(t){if(null!==t.fragment){t.update(),o(t.before_update);const n=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,n),t.after_update.forEach(j)}}const L=new Set;const S="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function N(t,n){-1===t.$$.dirty[0]&&(k.push(t),T||(T=!0,_.then(O)),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<<n%31}function z(c,s,l,a,d,u,p,f=[-1]){const h=g;y(c);const m=c.$$={fragment:null,ctx:null,props:u,update:t,not_equal:d,bound:e(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(s.context||(h?h.$$.context:[])),callbacks:e(),dirty:f,skip_bound:!1,root:s.target||h.$$.root};p&&p(m.root);let b=!1;if(m.ctx=l?l(c,s.props||{},(t,n,...e)=>{const o=e.length?e[0]:n;return m.ctx&&d(m.ctx[t],m.ctx[t]=o)&&(!m.skip_bound&&m.bound[t]&&m.bound[t](o),b&&N(c,t)),n}):[],m.update(),b=!0,o(m.before_update),m.fragment=!!a&&a(m.ctx),s.target){if(s.hydrate){const t=function(t){return Array.from(t.childNodes)}(s.target);m.fragment&&m.fragment.l(t),t.forEach(r)}else m.fragment&&m.fragment.c();s.intro&&((v=c.$$.fragment)&&v.i&&(L.delete(v),v.i(k))),function(t,e,c,s){const{fragment:l,on_mount:r,on_destroy:a,after_update:d}=t.$$;l&&l.m(e,c),s||j(()=>{const e=r.map(n).filter(i);a?a.push(...e):o(e),t.$$.on_mount=[]}),d.forEach(j)}(c,s.target,s.anchor,s.customElement),O()}var v,k;y(h)}let A;"function"==typeof HTMLElement&&(A=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(n).filter(i);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,n,e){this[t]=e}disconnectedCallback(){o(this.$$.on_disconnect)}$destroy(){!function(t,n){const e=t.$$;null!==e.fragment&&(o(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}(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(t){var n;this.$$set&&(n=t,0!==Object.keys(n).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});const{document:B}=S;function H(t){let n,e;return{c(){n=a("div"),e=d(t[3]),f(n,"class","red")},m(t,o){l(t,n,o),s(n,e)},p(t,n){8&n&&function(t,n){n=""+n,t.wholeText!==n&&(t.data=n)}(e,t[3])},d(t){t&&r(n)}}}function P(t){let n,e,i,c,b,g,y;return{c(){n=a("input"),e=u(),i=a("button"),c=d("Send OTP"),f(n,"type","number"),f(n,"placeholder","Enter 10 digit Mobile Number"),f(n,"class","w-100 mb-4"),f(i,"class","btn btn-primary w-100"),i.disabled=b=!t[0]},m(o,r){l(o,n,r),m(n,t[0]),l(o,e,r),l(o,i,r),s(i,c),g||(y=[p(n,"input",t[7]),p(i,"click",t[4])],g=!0)},p(t,e){1&e&&h(n.value)!==t[0]&&m(n,t[0]),1&e&&b!==(b=!t[0])&&(i.disabled=b)},d(t){t&&r(n),t&&r(e),t&&r(i),g=!1,o(y)}}}function F(t){let n,e,i,c,b,g,y;return{c(){n=a("input"),e=u(),i=a("button"),c=d("Verify OTP"),f(n,"type","number"),f(n,"placeholder","Enter OTP"),f(n,"class","w-100 mb-4"),f(i,"class","btn btn-primary w-100"),i.disabled=b=!t[1]},m(o,r){l(o,n,r),m(n,t[1]),l(o,e,r),l(o,i,r),s(i,c),g||(y=[p(n,"input",t[6]),p(i,"click",t[5])],g=!0)},p(t,e){2&e&&h(n.value)!==t[1]&&m(n,t[1]),2&e&&b!==(b=!t[1])&&(i.disabled=b)},d(t){t&&r(n),t&&r(e),t&&r(i),g=!1,o(y)}}}function D(n){let e,o,i,c,d,p,h,m,b,g,y,v,k,w,$,x,_=n[3]&&H(n);function T(t,n){return t[2]?F:P}let j=T(n),E=j(n);return{c(){e=a("link"),o=a("link"),i=a("link"),c=u(),d=a("div"),p=u(),h=a("div"),m=a("div"),m.innerHTML="<h2>Verify Your Mobile</h2>",b=u(),_&&_.c(),g=u(),E.c(),y=u(),v=a("div"),v.innerHTML='<div class="header">Find your dream job</div> \n <div class="sub-header mb-4">Trusted by 100k+ students</div> \n <img src="https://minio.codingblocks.com/public/company-logo-group.png" alt=""/>',k=u(),w=a("div"),w.innerHTML='<a href="https://www.linkedin.com/school/codingblocksindia/" target="_blank"><img class="social-media-logo mr-2" src="https://minio.codingblocks.com/public/linkedin-logo.png" alt=""/></a> \n <a href="https://twitter.com/codingblocksIN" target="_blank"><img class="social-media-logo mr-2" src="https://minio.codingblocks.com/public/twitter-logo.png" alt=""/></a> \n <a href="https://github.com/coding-blocks" target="_blank"><img class="social-media-logo" src="https://minio.codingblocks.com/public/github-logo.png" alt=""/></a> \n <div><a href="https://codingblocks.com/tos.html" class="sub-header" target="_blank">Coding Blocks | Terms of service</a></div>',$=u(),x=a("link"),this.c=t,f(e,"rel","preconnect"),f(e,"href","https://fonts.googleapis.com"),f(o,"rel","preconnect"),f(o,"href","https://fonts.gstatic.com"),f(o,"crossorigin",""),f(i,"href","https://fonts.googleapis.com/css2?family=Mulish:wght@400;600&display=swap"),f(i,"rel","stylesheet"),f(d,"class","blurrer"),f(m,"class","d-flex justify-content-between align-items-center mb-5"),f(v,"class","mb-5 pt-5"),f(w,"class","position-absolute"),f(h,"id","cb-mobile-verification"),f(h,"class","cb-mobile-verification-container"),f(x,"rel","stylesheet"),f(x,"href","https://unpkg.com/@coding-blocks/motley@2.8.6/dist/account/app.min.css")},m(t,n){s(B.head,e),s(B.head,o),s(B.head,i),l(t,c,n),l(t,d,n),l(t,p,n),l(t,h,n),s(h,m),s(h,b),_&&_.m(h,null),s(h,g),E.m(h,null),s(h,y),s(h,v),s(h,k),s(h,w),l(t,$,n),l(t,x,n)},p(t,[n]){t[3]?_?_.p(t,n):(_=H(t),_.c(),_.m(h,g)):_&&(_.d(1),_=null),j===(j=T(t))&&E?E.p(t,n):(E.d(1),E=j(t),E&&(E.c(),E.m(h,y)))},i:t,o:t,d(t){r(e),r(o),r(i),t&&r(c),t&&r(d),t&&r(p),t&&r(h),_&&_.d(),E.d(),t&&r($),t&&r(x)}}}function J(t,n,e){let o=null;const i=window.location.host.split(".")[0],c={sendOtpMobile:{hack:"https://hack-api.codingblocks.com/api/v2/jwt/otp",online:"https://online-api.codingblocks.com/api/v2/jwt/otp/mobile",hire:"https://hire-api.codingblocks.com/login/otp/mobile","code-gym":"https://code-gym-api.codingblocks.com/api/jwt/otp"},verifyOtpMobile:{hack:"https://hack-api.codingblocks.com/api/v2/jwt/otp/verify",online:"https://online-api.codingblocks.com/api/v2/jwt/otp/mobile/verify",hire:"https://hire-api.codingblocks.com/login/otp/mobile/verify","code-gym":"https://code-gym-api.codingblocks.com/api/jwt/otp/verify"}};let s=null,l=null,r=null,a=null;return v(()=>{o=document.cookie.split("; ").filter(t=>"cb_auth"===t.split("=")[0])[0]}),[s,l,r,a,async function(){const t=await fetch(c.sendOtpMobile[i]||"http://localhost:3000/api/jwt/otp",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({mobile:s})});if(t.ok){let{id:n}=await t.json();e(2,r=n)}else{const{message:n}=await t.json();n&&e(3,a=n)}},async function(){e(3,a=null);const t=await fetch(c.verifyOtpMobile[i]+"?flow=mobile-verification"||"http://localhost:3000/api/jwt/otp/verify",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"JWT "+o},credentials:"include",body:JSON.stringify({mobile:s,otp_id:r,otp:l})});if(t.ok)window.location.reload();else{const{message:n}=await t.json();n&&e(3,a=n)}},function(){l=h(this.value),e(1,l)},function(){s=h(this.value),e(0,s)}]}class V extends A{constructor(t){super(),this.shadowRoot.innerHTML="<style>input{border:none;border-bottom:solid 1px #E95547;background:#15171E;padding:10px 0px}.blurrer{position:fixed;z-index:1000;top:0;left:0;width:100vw;height:100vh;background-color:#939393;opacity:0.5}.cb-mobile-verification-container{background:#15171E;color:white;width:100vw;min-height:100vh;position:fixed;z-index:1001;top:0;right:0;padding:5rem 3rem 3rem 3rem;font-family:'Mulish';transition:0.5s}:host(.hide-cb-mobile-verification-prompt) .cb-mobile-verification-container{right:-100vw}:host(.hide-cb-mobile-verification-prompt) .blurrer{display:none}@media screen and (min-width: 768px){.cb-mobile-verification-container{width:35vw}:host(.hide-cb-mobile-verification-prompt) .cb-mobile-verification-container{right:-35vw}}.btn{padding:10px 10px;border-radius:3px}.btn.btn-primary{background:linear-gradient(90deg, #F26A3E 0%, #FB8133 100%)}.btn:disabled{background:#939393}.header{font-size:20px}.sub-header{font-size:12px;color:#BDBDBD}.social-media-logo{width:15px}</style>",z(this,{target:this.shadowRoot,props:b(this.attributes),customElement:!0},J,D,c,{},null),t&&t.target&&l(t.target,this,t.anchor)}}return customElements.define("cb-mobile-verification",V),V}));

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

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