{"size": 2387, "ext": "js", "max_stars_repo_path": "content/stencil/ionic-site-components/6zvfnujp.js", "max_stars_repo_name": "lbvgm1/ionic-site", "max_stars_repo_stars_event_min_datetime": "2018-07-27T13:02:55.000Z", "max_stars_repo_stars_event_max_datetime": "2018-07-27T13:02:55.000Z", "max_issues_repo_path": "content/stencil/ionic-site-components/6zvfnujp.js", "max_issues_repo_name": "lbvgm1/ionic-site", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "content/stencil/ionic-site-components/6zvfnujp.js", "max_forks_repo_name": "lbvgm1/ionic-site", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 596.75, "max_line_length": 1239, "alphanum_fraction": 0.7704231253}
/*! Built with http://stenciljs.com (es5) */

window['ionic-site-components'].loadStyles("ionic-newsletter-signup","ionic-newsletter-signup form{position:relative;display:flex;border-collapse:separate;width:100%}\@media (max-width:991px){ionic-newsletter-signup form{max-width:calc(100% - 340px)}}\@media (max-width:767px){ionic-newsletter-signup form{float:none;max-width:100%;margin-top:15px}}ionic-newsletter-signup input{border:1px solid rgba(255,255,255,0);background:rgba(255,255,255,.2);border-radius:4px 0 0 4px;font-size:13px;color:#fff;box-shadow:none;font-weight:400;height:40px;outline:0;flex-grow:1;padding:1px 16px 0;transition:.2s background,.2s box-shadow}ionic-newsletter-signup input:hover{box-shadow:0 1px 3px rgba(0,0,0,.15)}ionic-newsletter-signup input:focus{box-shadow:none;border:1px solid rgba(255,255,255,0);background:rgba(255,255,255,.25)}ionic-newsletter-signup input::placeholder{padding-left:0;color:#bbceef}ionic-newsletter-signup ionic-button button{border-top-left-radius:0;border-bottom-left-radius:0;font-weight:500;font-size:14px;padding:11px 13px 10px}\nionic-newsletter-signup.hydrated{visibility:inherit}");
window["ionic-site-components"].loadComponents("6zvfnujp",function(t,e,i,n){"use strict";var a=function(){function t(){this.isLoading=!1,this.hasSubmitted=!1,this.email=null}return t.prototype.handleEmailChange=function(t){this.email=t.target.value},t.prototype.handleSubmit=function(t){var e=this;t.preventDefault(),this.isLoading=!0;var i=new XMLHttpRequest;i.open("POST","/api/v1/newsletter"),i.setRequestHeader("Content-Type","application/json;charset=UTF-8"),i.onreadystatechange=function(){if(console.log(i),4===i.readyState&&200===i.status){e.isLoading=!1;var t=JSON.parse(i.responseText);e.hasSubmitted=t.ok}},i.send(JSON.stringify({email:this.email}))},t.prototype.render=function(){var t=this;return e("form",{onSubmit:function(e){return t.handleSubmit(e)}},e("input",{name:"email",type:"email",value:this.email,onInput:function(){return t.handleEmailChange(event)},disabled:this.isLoading,placeholder:"Get the latest ionic framework news and updates",required:!0}),e("ionic-button",{color:"white",type:"submit",disabled:this.isLoading||this.hasSubmitted},this.hasSubmitted?"Added!":"Email me!"))},t}();t["ionic-newsletter-signup"]=a},["ionic-newsletter-signup",[["email",5,0,1],["hasSubmitted",5,0,1],["isLoading",5,0,1]],{}]);;