webpackJsonp([1],{102:function(e,t,n){"use strict";var i=n(19),o=n(184),a=n.n(o);t.a={state:{profile:null,accessToken:null,verification:null,isAuthenticated:!1,count:0},getters:{profile:function(e){return e.profile},verification:function(e){return e.verification},accessToken:function(e){return e.accessToken},idToken:function(e){return e.idToken},isAuthenticated:function(e){return e.isAuthenticated}},mutations:{setProfile:function(e,t){e.profile=t},setAccessToken:function(e,t){e.accessToken=t},setIdToken:function(e,t){e.idToken=t},setVerification:function(e,t){e.verification=t},setAuthenticated:function(e,t){e.isAuthenticated=t}},actions:{signout:function(e,t){e.commit("setProfile",null),e.commit("setAccessToken",null),e.commit("setAuthenticated",!1),i.a.push({name:"login"})},authenticate:function(e,t){return null===t.verification||t.verification!==e.getters.verification?void i.a.push({name:"error",params:{message:"The verification state in the authentication response did not match our original request"}}):null===t.idToken||"id"!==(a()(t.idToken).token_use||null)?void i.a.push({name:"error",params:{message:"The authentication response did not include a valid ID token"}}):(e.commit("setProfile",a()(t.idToken)),e.commit("setAccessToken",t.accessToken),e.commit("setIdToken",t.idToken),e.commit("setAuthenticated",!0),void i.a.push({name:"home"}))}}}},104:function(e,t,n){var i=n(5)(n(105),n(166),null,null,null);e.exports=i.exports},105:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(106),o=n(162),a=(n.n(o),n(165)),r=n.n(a);t.default={name:"home",components:{Spinner:r.a},data:function(){return{form:{mainTitle:"",subTitle:"Closeout Package",backgroundImageFile:null},loading:!1}},methods:{onSubmit:function(e){var t=this;e.preventDefault();var n=new FormData;n.append("mainTitle",this.form.mainTitle),n.append("subTitle",this.form.subTitle),n.append("backgroundImage",this.form.backgroundImageFile),this.loading=!0,Object(i.a)().post("/api/build",n,{timeout:12e4}).then(function(e){console.log(e);var n="https://closeout-builder.com/"+e.data.artifact;Object(i.a)().get(n,{responseType:"arraybuffer"}).then(function(e){console.log(e),console.log(n.substr(n.lastIndexOf("/")+1));var i=new Blob([e.data],{type:"application/vnd.microsoft.portable-executable"});Object(o.saveAs)(i,n.substr(n.lastIndexOf("/")+1)),t.loading=!1}).catch(function(e){console.error(e),console.error(e.response),t.loading=!1})}).catch(function(e){console.error(e),console.error(e.response),t.loading=!1})},onReset:function(e){var t=this;e.preventDefault(),this.form.mainTitle="",this.form.subTitle="Closeout Documents",this.form.backgroundImageFile=null,this.$refs.fileinput.reset(),this.show=!1,this.$nextTick(function(){t.show=!0})}},created:function(){Object(i.a)().get("/api/ping").catch(function(e){console.error(e.response)})}}},106:function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i=n(107),o=n.n(i),a=n(142),r=n.n(a),s=n(14),u=n(19),c=function(){var e=r.a.create({baseURL:"https://closeout-builder.com",headers:{Authorization:s.a.getters.idToken}});return e.interceptors.response.use(function(e){return e},function(e){return 401===e.response.status&&s.a.dispatch("signout").then(function(){u.a.push({name:"login"})}),o.a.reject(e)}),e}},13:function(e,t,n){function i(e){n(170)}var o=n(5)(n(171),n(172),i,null,null);e.exports=o.exports},14:function(e,t,n){"use strict";var i=n(18),o=n(100),a=n(101),r=n.n(a),s=n(102);i.a.use(o.a);var u=new o.a.Store({plugins:[r()({namespace:"closeout-builder",initialState:{},expires:6048e5})],modules:{auth:s.a}});t.a=u},166:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("h1",[e._v("JMA Closeout Builder")]),e._v(" "),n("b-form",{directives:[{name:"show",rawName:"v-show",value:!e.loading,expression:"!loading"}],on:{submit:e.onSubmit,reset:e.onReset}},[n("b-form-group",{attrs:{id:"main-title-group",label:"Main Title (Ex: Draper Labs)",description:"This will appear as the large title text at the top of the page. It's usually the client's name."}},[n("b-form-input",{attrs:{id:"main-title-input",type:"text",required:"",placeholder:"ex: Draper Labs"},model:{value:e.form.mainTitle,callback:function(t){e.form.mainTitle=t},expression:"form.mainTitle"}})],1),e._v(" "),n("b-form-group",{attrs:{id:"sub-title-group",label:"Secondary Title",description:"This will appear below the main title. You probably don't need to change this."}},[n("b-form-input",{attrs:{id:"sub-title-input",type:"text",required:"",placehoder:"ex: Closeout Package"},model:{value:e.form.subTitle,callback:function(t){e.form.subTitle=t},expression:"form.subTitle"}})],1),e._v(" "),n("b-form-group",{attrs:{id:"background-image-group",label:"Background Image"}},[n("b-form-file",{ref:"fileinput",attrs:{id:"background-image-upload",accept:"image/jpeg, image/png",placeholder:"Choose file...",required:""},model:{value:e.form.backgroundImageFile,callback:function(t){e.form.backgroundImageFile=t},expression:"form.backgroundImageFile"}})],1),e._v(" "),n("b-button",{attrs:{type:"button"},on:{click:e.onReset}},[e._v("Clear Form")]),e._v(" "),n("b-button",{attrs:{type:"submit",variant:"primary"}},[e._v("Submit")])],1),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.loading,expression:"loading"}]},[n("spinner",{attrs:{size:"huge",message:"Processing..."}})],1)],1)},staticRenderFns:[]}},167:function(e,t,n){var i=n(5)(n(168),n(177),null,null,null);e.exports=i.exports},168:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(45);n(169),n(173),n(174),n(175),n(176);t.default={name:"login",methods:{authenticate:function(e){return i.a.authenticate(e)}}}},170:function(e,t){},171:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),o={};t.default={name:"icon",props:{name:{type:String,validator:function(e){return e?e in o||(i.a.util.warn('Invalid prop: prop "icon" is referring to an unregistered icon "'+e+'".\nPlesase make sure you have imported this icon before using it.',this),!1):null}},scale:[Number,String],spin:Boolean,inverse:Boolean,pulse:Boolean,flip:{validator:function(e){return"horizontal"===e||"vertical"===e}},label:String},data:function(){return{x:!1,y:!1,childrenWidth:0,childrenHeight:0,outerScale:1}},computed:{normalizedScale:function(){var e=this.scale;return e=void 0===e?1:Number(e),isNaN(e)||e<=0?(i.a.util.warn('Invalid prop: prop "scale" should be a number over 0.',this),this.outerScale):e*this.outerScale},clazz:function(){return{"fa-icon":!0,"fa-spin":this.spin,"fa-flip-horizontal":"horizontal"===this.flip,"fa-flip-vertical":"vertical"===this.flip,"fa-inverse":this.inverse,"fa-pulse":this.pulse}},icon:function(){return this.name?o[this.name]:null},box:function(){return this.icon?"0 0 "+this.icon.width+" "+this.icon.height:"0 0 "+this.width+" "+this.height},ratio:function(){if(!this.icon)return 1;var e=this.icon,t=e.width,n=e.height;return Math.max(t,n)/16},width:function(){return this.childrenWidth||this.icon&&this.icon.width/this.ratio*this.normalizedScale||0},height:function(){return this.childrenHeight||this.icon&&this.icon.height/this.ratio*this.normalizedScale||0},style:function(){return 1!==this.normalizedScale&&{fontSize:this.normalizedScale+"em"}}},mounted:function(){var e=this;if(!this.icon){this.$children.forEach(function(t){t.outerScale=e.normalizedScale});var t=0,n=0;this.$children.forEach(function(e){t=Math.max(t,e.width),n=Math.max(n,e.height)}),this.childrenWidth=t,this.childrenHeight=n,this.$children.forEach(function(e){e.x=(t-e.width)/2,e.y=(n-e.height)/2})}},register:function(e){for(var t in e){var n=e[t];n.paths||(n.paths=[]),n.d&&n.paths.push({d:n.d}),n.polygons||(n.polygons=[]),n.points&&n.polygons.push({points:n.points}),o[t]=n}},icons:o}},172:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{class:e.clazz,style:e.style,attrs:{version:"1.1",role:e.label?"img":"presentation","aria-label":e.label,x:e.x,y:e.y,width:e.width,height:e.height,viewBox:e.box}},[e._t("default",[e.icon&&e.icon.paths?e._l(e.icon.paths,function(t){return n("path",e._b({},"path",t,!1))}):e._e(),e._v(" "),e.icon&&e.icon.polygons?e._l(e.icon.polygons,function(t){return n("polygon",e._b({},"polygon",t,!1))}):e._e(),e._v("\b\n "),e.icon&&e.icon.raw?[n("g",{domProps:{innerHTML:e._s(e.icon.raw)}})]:e._e()])],2)},staticRenderFns:[]}},177:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("h1",[e._v("Not Authenticated")]),e._v(" "),n("button",{staticClass:"btn btn-outline-dark",on:{click:function(t){e.authenticate()}}},[n("icon",{attrs:{name:"sign-in"}}),e._v("Go to Login")],1)])},staticRenderFns:[]}},178:function(e,t,n){var i=n(5)(n(179),n(180),null,null,null);e.exports=i.exports},179:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(14),o=n(19);t.default={created:function(){var e=this.$route.hash.match(/(?:access_token)=([^&]+)/),t=this.$route.hash.match(/(?:id_token)=([^&]+)/),n=this.$route.hash.match(/(?:state)=([^&]+)/),a=this.$route.hash.match(/(?:expires_in)=(\d+)/);return e?t?n?a?void i.a.dispatch("authenticate",{accessToken:e[1],idToken:t[1],verification:n[1],expiresIn:a[1]}):void o.a.push({name:"error",params:{message:"The authentication response did not contain a valid token expiry date"}}):void o.a.push({name:"error",params:{message:"The authentication response did not contain a valid verification state value"}}):void o.a.push({name:"error",params:{message:"The authentication response did not contain a valid id_token"}}):void o.a.push({name:"error",params:{message:"The authentication response did not contain a valid access_token"}})}}},180:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;e._self._c;return e._m(0)},staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("h1",[e._v("Authenticating...")])])}]}},181:function(e,t,n){var i=n(5)(n(182),n(183),null,null,null);e.exports=i.exports},182:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"error",computed:{message:function(){return this.$route.params.message}}}},183:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("h1",[e._v("Error")]),e._v(" "),n("p",[e._v("An error occurred while processing the request.")]),e._v(" "),n("pre",[e._v(e._s(e.message))])])},staticRenderFns:[]}},187:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"header"},[n("ul",{staticClass:"nav navbar-nav navbar-right"},[e.isAuthenticated?e._e():n("li",{on:{click:function(t){e.authenticate()}}},[e._v("Sign in")]),e._v(" "),e.isAuthenticated?n("li",{on:{click:function(t){e.signout()}}},[e._v("Sign out")]):e._e()])])},staticRenderFns:[]}},188:function(e,t,n){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app"}},[n("nav",{staticClass:"navbar navbar-inverse"},[n("div",{staticClass:"container-fluid"},[e._m(0),e._v(" "),n("ul",{staticClass:"nav navbar-nav navbar-right"},[n("profile")],1)])]),e._v(" "),n("main",[n("div",{staticClass:"container-fluid"},[n("router-view")],1)])])},staticRenderFns:[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"navbar-header"},[i("a",{staticClass:"navbar-left",attrs:{href:"/"}},[i("img",{attrs:{src:n(189)}})]),e._v(" "),i("div",{staticClass:"navbar-brand navbar-text d-none d-sm-inline"},[i("a",{staticClass:"navbar-brand",attrs:{href:"/"}},[e._v("Closeout Package Generator")])])])}]}},189:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+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19TUGt9ryfI4QgZ1uwwaKJtUbqcRyv+H3jNRZpYilRFIV8wWEzYq3vacsMj85ARoAMGQEyZATIkBEgQ0aADBkBMmQEyJARIENGgAwZATJkBMiQESBDRoAMGQEyZATIsIynCkLCKCIKo1Qub2bYOIhk8Ygi+VyipScIsCxxC0MJYUgQqtlbbSqXLiCOn1sh9AQBXD9A1zR++5e/QBTHL0T0mGEd1g/EMsa2TCqu90zx6xMEiKIIRVE40NOJogheoo5pTY/lpVKWbi6Va+4zbw+tsAUkt38WKzXIFr9pqSCEeK6rYxosKUofG52VOf4m3wweM95Ha/w4AZyCs62jtyPZ6zOL37LQTR3N0NCTtqqPtPHa1OWpH377z7/9rdJCqQVJC6AvOYCMDlvpvK9rQihCLH60WAKsxz29AhwFDgCtj8UUGbbWIUEAd4BLwKy2tPhtS/9YBOoZAbY0ATzgI6AGRGKJACaQBxxW2TMgQ9MhXFr8CuB/fAtQsuD/pUoZxED8fwMAZ+tzhAqW/20AAAAASUVORK5CYII="},19:function(e,t,n){"use strict";var i=n(18),o=n(103),a=n(104),r=n.n(a),s=n(167),u=n.n(s),c=n(178),l=n.n(c),h=n(181),f=n.n(h),p=n(14);i.a.use(o.a);var d=new o.a({mode:"history",routes:[{path:"/",name:"home",component:r.a,meta:{title:"Home",auth:!0}},{path:"/login",name:"login",component:u.a,meta:{title:"Login",auth:!1}},{path:"/callback",name:"callback",component:l.a,meta:{title:"Authenticating...",auth:!1}},{path:"/error",name:"error",component:f.a,props:!0,meta:{title:"Error",auth:!1}}]});d.beforeEach(function(e,t,n){e.meta&&e.meta.title&&(document.title=e.meta.title),e.meta&&void 0!==e.meta.auth?e.meta.auth?p.a.getters.isAuthenticated?n():d.push({name:"login"}):p.a.getters.isAuthenticated?d.push({name:"home"}):n():n()}),t.a=d},190:function(e,t){},191:function(e,t){},255:function(e,t,n){function i(e){n(256)}var o=n(5)(n(257),null,i,null,null);e.exports=o.exports},256:function(e,t){},257:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(258);t.default=i.a},265:function(e,t,n){function i(e){n(266)}var o=n(5)(n(267),null,i,null,null);e.exports=o.exports},266:function(e,t){},267:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(268);t.default=i.a},273:function(e,t,n){function i(e){n(274)}var o=n(5)(n(275),null,i,null,null);e.exports=o.exports},274:function(e,t){},275:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(276);t.default=i.a},291:function(e,t,n){function i(e){n(292)}var o=n(5)(n(293),null,i,null,null);e.exports=o.exports},292:function(e,t){},293:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(294);t.default=i.a},314:function(e,t,n){function i(e){n(315)}var o=n(5)(n(316),null,i,null,null);e.exports=o.exports},315:function(e,t){},316:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(317);t.default=i.a},320:function(e,t,n){function i(e){n(321)}var o=n(5)(n(322),null,i,null,null);e.exports=o.exports},321:function(e,t){},322:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(323);t.default=i.a},45:function(e,t,n){"use strict";function i(){for(var e="",t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=0;n<32;n++)e+=t.charAt(Math.floor(Math.random()*t.length));return e}var o=n(14);t.a={getAuthEndpoint:function(){var e=window.location.protocol+"//"+window.location.host+"/callback",t=i();return o.a.commit("setVerification",t),"https://moriarty-closeout-builder.auth.us-east-1.amazoncognito.com/login?response_type=token&client_id=51ge617bgd7vc03jsvvs730vos&redirect_uri="+e+"&state="+t+"&scope=openid profile"},authenticate:function(e){var t="moriarty-closeout-builder.auth.us-east-1.amazoncognito.com",n="51ge617bgd7vc03jsvvs730vos",a=window.location.protocol+"//"+window.location.host+"/callback",r=i();o.a.commit("setVerification",r),window.location.href=void 0!==e?"https://"+t+"/authorize?identity_provider="+e+"&response_type=token&client_id="+n+"&redirect_uri="+a+"&state="+r+"&scope=openid profile":"https://"+t+"/login?response_type=token&client_id="+n+"&redirect_uri="+a+"&state="+r+"&scope=openid profile"}}},92:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),o=n(93),a=n.n(o),r=n(19),s=n(14),u=n(190),c=(n.n(u),n(191)),l=(n.n(c),n(192)),h=n(13),f=n.n(h);i.a.config.productionTip=!1,i.a.use(l.a),i.a.component("icon",f.a),new i.a({el:"#app",router:r.a,store:s.a,template:"",components:{App:a.a}})},93:function(e,t,n){function i(e){n(94)}var o=n(5)(n(96),n(188),i,null,null);e.exports=o.exports},94:function(e,t){},96:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(97),o=n.n(i);t.default={name:"app",components:{Profile:o.a}}},97:function(e,t,n){function i(e){n(98)}var o=n(5)(n(99),n(187),i,null,null);e.exports=o.exports},98:function(e,t){},99:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(45);t.default={name:"profile",computed:{isAuthenticated:function(){return this.$store.getters.isAuthenticated}},methods:{authenticate:function(){i.a.authenticate()},signout:function(){var e=this;this.$store.dispatch("signout").then(function(){e.$router.push({name:"login"})})}}}}},[92]); //# sourceMappingURL=app.d256dc903720bf0b59ab.js.map