2020-04-21 21:02:45 -04:00
( window [ "webpackJsonp" ] = window [ "webpackJsonp" ] || [ ] ) . push ( [ [ "main" ] , {
/***/ "./$$_lazy_route_resource lazy recursive" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / $$ _lazy _route _resource lazy namespace object * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/ ( function ( module , exports ) {
function webpackEmptyAsyncContext ( req ) {
// Here Promise.resolve().then() is used instead of new Promise() to prevent
// uncaught exception popping up in devtools
return Promise . resolve ( ) . then ( function ( ) {
var e = new Error ( "Cannot find module '" + req + "'" ) ;
e . code = 'MODULE_NOT_FOUND' ;
throw e ;
} ) ;
}
webpackEmptyAsyncContext . keys = function ( ) { return [ ] ; } ;
webpackEmptyAsyncContext . resolve = webpackEmptyAsyncContext ;
module . exports = webpackEmptyAsyncContext ;
webpackEmptyAsyncContext . id = "./$$_lazy_route_resource lazy recursive" ;
/***/ } ) ,
/***/ "./node_modules/raw-loader/index.js!./src/app/app.component.html" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / raw - loader ! . / src / app / app . component . html * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/ ( function ( module , exports ) {
module . exports = "<main></main>"
/***/ } ) ,
/***/ "./node_modules/raw-loader/index.js!./src/app/components/card/card.component.html" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / raw - loader ! . / src / app / components / card / card . component . html * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/ ( function ( module , exports ) {
module . exports = "<!-- <img class=\"margins\" *ngIf=\"!flipped\" (click)=\"flipCard()\" src=\"../../../assets/back.png\" width=\"161\" height=\"225\"> -->\n<img class=\"margins\" src=\"../../../assets/{{fileString}}.png\" width=\"161\" height=\"225\">"
/***/ } ) ,
/***/ "./node_modules/raw-loader/index.js!./src/app/components/main/main.component.html" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / raw - loader ! . / src / app / components / main / main . component . html * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/ ( function ( module , exports ) {
2020-04-21 21:43:14 -04:00
module . exports = "<div class=\"container\">\n <div class=\"row\">\n <div class=\"col\">\n <div class=\"card\">\n <div class=\"card-header\">\n Card Workout!\n </div>\n <div class=\"card-body\">\n <div class=\"form-group\">\n <label for=\"numCards\">Number of cards</label>\n <input type=\"number\" class=\"form-control\" id=\"numCards\" [(ngModel)]=\"numCards\">\n </div>\n <button href=\"#\" class=\"btn btn-primary\" (click)=\"createCards()\">Submit</button>\n <button style=\"margin-left: 1em\" href=\"#\" class=\"btn btn-danger\" (click)=\"resetCards()\">Reset</button>\n </div>\n </div>\n </div>\n </div>\n</div>\n\n<div *ngIf=\"workoutDeck && showCards\" class=\"container\">\n <div class=\"row\">\n <!-- Previous card -->\n <div class=\"col\">\n <div class=\"alert alert-danger\" role=\"alert\">\n Previous Card\n </div>\n </div>\n <!-- Current card -->\n <div class=\"col\">\n <div class=\"alert alert-success\" role=\"alert\">\n Current Card\n </div>\n </div>\n <!-- Exercise info -->\n <div class=\"col\">\n <div class=\"alert alert-success\" role=\"alert\">\n Current Exercise\n </div>\n </div>\n </div>\n <div class=\"row\">\n <!-- Previous card -->\n <div class=\"col center\">\n <card *ngIf=\"previousCardNumber > -1\" class=\"\" [number]=\"workoutDeck[previousCardNumber].value\" [suit]=\"workoutDeck[previousCardNumber].suit\"\n (cardEmitter)=\"displayExercise()\" (click)=\"decrementCardCounter()\"></card>\n </div>\n <!-- Current card -->\n <div class=\"col center\">\n <card *ngIf=\"currentCardNumber < workoutDeck.length\" class=\"\" [number]=\"workoutDeck[currentCardNumber].value\" \n [suit]=\"workoutDeck[currentCardNumber].suit\" (click)=\"incrementCardCounter()\"></card>\n </div>\n <!-- Exercise info -->\n <div class=\"col center\">\n <div *ngIf=\"exercise && reps\" class=\"card sticky-card\">\n <div class=\"card-body\">\n <h5 class=\"card-title\">{{exercise}}</h5>\n <p class=\"card-text\">{{reps}} reps</p>\n </div>\n </div>\n </div>\n </div>\n</div>"
2020-04-21 21:02:45 -04:00
/***/ } ) ,
/***/ "./src/app/app.component.css" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / src / app / app . component . css * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/ ( function ( module , exports ) {
module . exports = "\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL2FwcC5jb21wb25lbnQuY3NzIn0= */"
/***/ } ) ,
/***/ "./src/app/app.component.ts" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / src / app / app . component . ts * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! exports provided: AppComponent */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "AppComponent" , function ( ) { return AppComponent ; } ) ;
/* harmony import */ var tslib _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( /*! tslib */ "./node_modules/tslib/tslib.es6.js" ) ;
/* harmony import */ var _angular _core _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js" ) ;
var AppComponent = /** @class */ ( function ( ) {
function AppComponent ( ) {
this . title = 'cardWorkout' ;
}
AppComponent = tslib _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "__decorate" ] ( [
Object ( _angular _core _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "Component" ] ) ( {
selector : 'app-root' ,
template : _ _webpack _require _ _ ( /*! raw-loader!./app.component.html */ "./node_modules/raw-loader/index.js!./src/app/app.component.html" ) ,
styles : [ _ _webpack _require _ _ ( /*! ./app.component.css */ "./src/app/app.component.css" ) ]
} )
] , AppComponent ) ;
return AppComponent ;
} ( ) ) ;
/***/ } ) ,
/***/ "./src/app/app.module.ts" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / src / app / app . module . ts * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! exports provided: AppModule */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "AppModule" , function ( ) { return AppModule ; } ) ;
/* harmony import */ var tslib _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( /*! tslib */ "./node_modules/tslib/tslib.es6.js" ) ;
/* harmony import */ var _angular _platform _browser _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @angular/platform-browser */ "./node_modules/@angular/platform-browser/fesm5/platform-browser.js" ) ;
/* harmony import */ var _angular _core _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js" ) ;
/* harmony import */ var _angular _forms _ _WEBPACK _IMPORTED _MODULE _3 _ _ = _ _webpack _require _ _ ( /*! @angular/forms */ "./node_modules/@angular/forms/fesm5/forms.js" ) ;
/* harmony import */ var _app _component _ _WEBPACK _IMPORTED _MODULE _4 _ _ = _ _webpack _require _ _ ( /*! ./app.component */ "./src/app/app.component.ts" ) ;
/* harmony import */ var _components _main _main _component _ _WEBPACK _IMPORTED _MODULE _5 _ _ = _ _webpack _require _ _ ( /*! ./components/main/main.component */ "./src/app/components/main/main.component.ts" ) ;
/* harmony import */ var _components _card _card _component _ _WEBPACK _IMPORTED _MODULE _6 _ _ = _ _webpack _require _ _ ( /*! ./components/card/card.component */ "./src/app/components/card/card.component.ts" ) ;
var AppModule = /** @class */ ( function ( ) {
function AppModule ( ) {
}
AppModule = tslib _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "__decorate" ] ( [
Object ( _angular _core _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "NgModule" ] ) ( {
declarations : [
_app _component _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "AppComponent" ] ,
_components _main _main _component _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "MainComponent" ] ,
_components _card _card _component _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "CardComponent" ] ,
] ,
imports : [
_angular _platform _browser _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "BrowserModule" ] ,
_angular _forms _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "ReactiveFormsModule" ] ,
_angular _forms _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "FormsModule" ]
] ,
providers : [ ] ,
bootstrap : [ _app _component _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "AppComponent" ] ]
} )
] , AppModule ) ;
return AppModule ;
} ( ) ) ;
/***/ } ) ,
/***/ "./src/app/components/card/card.component.css" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / src / app / components / card / card . component . css * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/ ( function ( module , exports ) {
module . exports = ".margins {\r\n margin: 12px;\r\n}\r\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9jYXJkL2NhcmQuY29tcG9uZW50LmNzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtJQUNJLFlBQVk7QUFDaEIiLCJmaWxlIjoic3JjL2FwcC9jb21wb25lbnRzL2NhcmQvY2FyZC5jb21wb25lbnQuY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLm1hcmdpbnMge1xyXG4gICAgbWFyZ2luOiAxMnB4O1xyXG59Il19 */"
/***/ } ) ,
/***/ "./src/app/components/card/card.component.ts" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / src / app / components / card / card . component . ts * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! exports provided: CardComponent */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "CardComponent" , function ( ) { return CardComponent ; } ) ;
/* harmony import */ var tslib _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( /*! tslib */ "./node_modules/tslib/tslib.es6.js" ) ;
/* harmony import */ var _angular _core _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js" ) ;
var CardComponent = /** @class */ ( function ( ) {
function CardComponent ( changeDetector ) {
this . changeDetector = changeDetector ;
this . cardEmitter = new _angular _core _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "EventEmitter" ] ( ) ;
}
CardComponent . prototype . ngOnInit = function ( ) {
console . log ( this . number ) ;
if ( this . number < 10 ) {
this . fileString = this . suit + '0' + this . number ;
}
if ( this . number >= 10 ) {
this . fileString = this . suit + this . number ;
}
} ;
CardComponent . prototype . ngOnChanges = function ( changes ) {
//Called before any other lifecycle hook. Use it to inject dependencies, but avoid any serious work here.
//Add '${implements OnChanges}' to the class.
this . ngOnInit ( ) ;
this . changeDetector . detectChanges ( ) ;
} ;
CardComponent . ctorParameters = function ( ) { return [
{ type : _angular _core _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "ChangeDetectorRef" ] }
] ; } ;
tslib _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "__decorate" ] ( [
Object ( _angular _core _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "Input" ] ) ( )
] , CardComponent . prototype , "number" , void 0 ) ;
tslib _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "__decorate" ] ( [
Object ( _angular _core _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "Input" ] ) ( )
] , CardComponent . prototype , "suit" , void 0 ) ;
tslib _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "__decorate" ] ( [
Object ( _angular _core _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "Output" ] ) ( )
] , CardComponent . prototype , "cardEmitter" , void 0 ) ;
CardComponent = tslib _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "__decorate" ] ( [
Object ( _angular _core _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "Component" ] ) ( {
selector : 'card' ,
template : _ _webpack _require _ _ ( /*! raw-loader!./card.component.html */ "./node_modules/raw-loader/index.js!./src/app/components/card/card.component.html" ) ,
styles : [ _ _webpack _require _ _ ( /*! ./card.component.css */ "./src/app/components/card/card.component.css" ) ]
} )
] , CardComponent ) ;
return CardComponent ;
} ( ) ) ;
/***/ } ) ,
/***/ "./src/app/components/main/exercises.json" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / src / app / components / main / exercises . json * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! exports provided: c, d, h, s, default */
/***/ ( function ( module ) {
module . exports = JSON . parse ( "{\"c\":[\"Pull Up\",\"Table/Desk Inverted Row\",\"Rear Delt Fly (Dumbbell or Milk Jug\",\"Upright Row (Backpack or Milk Jug)\"],\"d\":[\"Bicep Curl\",\"Skullcrushers (on a table) or Close Grip Pus-Ups\",\"Bicycle Crunch or Reverse Crunch\",\"Standing Calf Raise\"],\"h\":[\"Walking Lunge (Dumbbell or backpack to load)\",\"Bulgarian Split Squat\",\"Single Leg Hip Thrust\",\"Nordic Ham Curl\"],\"s\":[\"Push-Up or Incline Push-Up\",\"Pike Push-Up or Vertical Push-Up\",\"Standing Press (Milk jug or dumbbells)\",\"Milk Jug Lateral Raise or Doorway Lateral Raise (for time)\"]}" ) ;
/***/ } ) ,
/***/ "./src/app/components/main/main.component.css" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / src / app / components / main / main . component . css * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/ ( function ( module , exports ) {
module . exports = ".container {\r\n margin-top: 2em;\r\n}\r\n\r\n.alert {\r\n text-align: center;\r\n}\r\n\r\n.center {\r\n display: flex;\r\n justify-content: center; \r\n}\r\n\r\n.sticky-card {\r\n max-height: 50%;\r\n width: 100%;\r\n}\r\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9tYWluL21haW4uY29tcG9uZW50LmNzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtJQUNJLGVBQWU7QUFDbkI7O0FBRUE7SUFDSSxrQkFBa0I7QUFDdEI7O0FBRUE7SUFDSSxhQUFhO0lBQ2IsdUJBQXVCO0FBQzNCOztBQUNBO0lBQ0ksZUFBZTtJQUNmLFdBQVc7QUFDZiIsImZpbGUiOiJzcmMvYXBwL2NvbXBvbmVudHMvbWFpbi9tYWluLmNvbXBvbmVudC5jc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuY29udGFpbmVyIHtcclxuICAgIG1hcmdpbi10b3A6IDJlbTtcclxufVxyXG5cclxuLmFsZXJ0IHtcclxuICAgIHRleHQtYWxpZ246IGNlbnRlcjtcclxufVxyXG5cclxuLmNlbnRlciB7XHJcbiAgICBkaXNwbGF5OiBmbGV4O1xyXG4gICAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7ICAgIFxyXG59XHJcbi5zdGlja3ktY2FyZCB7XHJcbiAgICBtYXgtaGVpZ2h0OiA1MCU7XHJcbiAgICB3aWR0aDogMTAwJTtcclxufSJdfQ== */"
/***/ } ) ,
/***/ "./src/app/components/main/main.component.ts" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / src / app / components / main / main . component . ts * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! exports provided: MainComponent */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "MainComponent" , function ( ) { return MainComponent ; } ) ;
/* harmony import */ var tslib _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( /*! tslib */ "./node_modules/tslib/tslib.es6.js" ) ;
/* harmony import */ var _angular _core _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js" ) ;
var MainComponent = /** @class */ ( function ( ) {
function MainComponent ( changeDetector ) {
this . changeDetector = changeDetector ;
this . numCards = 20 ;
this . previousCardNumber = - 1 ;
this . currentCardNumber = 0 ;
this . defaultCardNumber = 20 ;
this . suits = [ 's' , 'd' , 'c' , 'h' ] ;
this . values = [ '1' , '2' , '3' , '4' , '5' , '6' , '7' , '8' , '9' , '10' , '11' , '12' , '13' ] ;
this . exercisesJson = _ _webpack _require _ _ ( /*! ./exercises.json */ "./src/app/components/main/exercises.json" ) ;
this . cCounter = 0 ;
this . dCounter = 0 ;
this . hCounter = 0 ;
this . sCounter = 0 ;
}
MainComponent . prototype . ngOnInit = function ( ) {
this . deck = this . createDeck ( ) ;
this . shuffleDeck ( this . deck ) ;
} ;
MainComponent . prototype . createCards = function ( ) {
this . showCards = true ;
this . workoutDeck = this . deck . slice ( 0 , this . numCards ) ;
this . displayExercise ( ) ;
} ;
MainComponent . prototype . resetCards = function ( ) {
this . showCards = false ;
this . deck = undefined ;
this . deck = this . createDeck ( ) ;
this . shuffleDeck ( this . deck ) ;
this . workoutDeck = this . deck . slice ( 0 , this . numCards ) ;
this . showCards = true ;
this . reps = undefined ;
this . rest = false ;
this . exercise = undefined ;
this . currentCardNumber = 0 ;
this . previousCardNumber = - 1 ;
} ;
MainComponent . prototype . createDeck = function ( ) {
var deck = new Array ( ) ;
var card ;
for ( var i = 0 ; i < this . suits . length ; i ++ ) {
for ( var n = 0 ; n < this . values . length ; n ++ ) {
card = { value : this . values [ n ] , suit : this . suits [ i ] } ;
deck . push ( card ) ;
}
}
return deck ;
} ;
MainComponent . prototype . shuffleDeck = function ( deck ) {
var location1 ;
var location2 ;
var temp ;
for ( var i = 0 ; i < 2000 ; i ++ ) {
location1 = Math . floor ( ( Math . random ( ) * deck . length ) ) ;
location2 = Math . floor ( ( Math . random ( ) * deck . length ) ) ;
temp = deck [ location1 ] ;
deck [ location1 ] = deck [ location2 ] ;
deck [ location2 ] = temp ;
}
} ;
MainComponent . prototype . displayExercise = function ( ) {
var currentCard = this . workoutDeck [ this . currentCardNumber ] ;
console . log ( currentCard ) ;
if ( currentCard . value !== 1 ) {
this . rest = undefined ;
this . reps = Number ( currentCard . value ) + 10 ;
if ( currentCard . suit === 'c' ) {
this . exercise = this . exercisesJson . c [ this . cCounter ] ;
this . cCounter += 1 ;
}
else if ( currentCard . suit === 'd' ) {
this . exercise = this . exercisesJson . d [ this . dCounter ] ;
this . dCounter += 1 ;
}
else if ( currentCard . suit === 'h' ) {
this . exercise = this . exercisesJson . h [ this . hCounter ] ;
this . hCounter += 1 ;
}
else if ( currentCard . suit === 's' ) {
this . exercise = this . exercisesJson . s [ this . sCounter ] ;
this . sCounter += 1 ;
}
if ( this . cCounter > 3 ) {
this . cCounter = 0 ;
}
else if ( this . dCounter > 3 ) {
this . dCounter = 0 ;
}
else if ( this . hCounter > 3 ) {
this . hCounter = 0 ;
}
else if ( this . sCounter > 3 ) {
this . sCounter = 0 ;
}
}
else {
this . exercise = undefined ;
this . reps = undefined ;
this . rest = true ;
}
} ;
MainComponent . prototype . incrementCardCounter = function ( ) {
this . displayExercise ( ) ;
this . currentCardNumber += 1 ;
this . previousCardNumber += 1 ;
} ;
MainComponent . prototype . decrementCardCounter = function ( ) {
this . displayExercise ( ) ;
this . currentCardNumber -= 1 ;
this . previousCardNumber -= 1 ;
} ;
MainComponent . ctorParameters = function ( ) { return [
{ type : _angular _core _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "ChangeDetectorRef" ] }
] ; } ;
MainComponent = tslib _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "__decorate" ] ( [
Object ( _angular _core _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "Component" ] ) ( {
selector : 'main' ,
template : _ _webpack _require _ _ ( /*! raw-loader!./main.component.html */ "./node_modules/raw-loader/index.js!./src/app/components/main/main.component.html" ) ,
styles : [ _ _webpack _require _ _ ( /*! ./main.component.css */ "./src/app/components/main/main.component.css" ) ]
} )
] , MainComponent ) ;
return MainComponent ;
} ( ) ) ;
/***/ } ) ,
/***/ "./src/environments/environment.ts" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / src / environments / environment . ts * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! exports provided: environment */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "environment" , function ( ) { return environment ; } ) ;
// This file can be replaced during build by using the `fileReplacements` array.
// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.
// The list of file replacements can be found in `angular.json`.
var environment = {
production : false
} ;
/ *
* For easier debugging in development mode , you can import the following file
* to ignore zone related error stack frames such as ` zone.run ` , ` zoneDelegate.invokeTask ` .
*
* This import should be commented out in production mode because it will have a negative impact
* on performance if an error is thrown .
* /
// import 'zone.js/dist/zone-error'; // Included with Angular CLI.
/***/ } ) ,
/***/ "./src/main.ts" :
/ * ! * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / src / main . ts * * * !
\ * * * * * * * * * * * * * * * * * * * * * /
/*! no exports provided */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony import */ var _angular _core _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( /*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js" ) ;
/* harmony import */ var _angular _platform _browser _dynamic _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @angular/platform-browser-dynamic */ "./node_modules/@angular/platform-browser-dynamic/fesm5/platform-browser-dynamic.js" ) ;
/* harmony import */ var _app _app _module _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! ./app/app.module */ "./src/app/app.module.ts" ) ;
/* harmony import */ var _environments _environment _ _WEBPACK _IMPORTED _MODULE _3 _ _ = _ _webpack _require _ _ ( /*! ./environments/environment */ "./src/environments/environment.ts" ) ;
if ( _environments _environment _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "environment" ] . production ) {
Object ( _angular _core _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "enableProdMode" ] ) ( ) ;
}
Object ( _angular _platform _browser _dynamic _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "platformBrowserDynamic" ] ) ( ) . bootstrapModule ( _app _app _module _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "AppModule" ] )
. catch ( function ( err ) { return console . error ( err ) ; } ) ;
/***/ } ) ,
/***/ 0 :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * multi . / src / main . ts * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
module . exports = _ _webpack _require _ _ ( /*! C:\Users\Will\Documents\Coding\cardWorkout\src\main.ts */ "./src/main.ts" ) ;
/***/ } )
} , [ [ 0 , "runtime" , "vendor" ] ] ] ) ;
//# sourceMappingURL=main-es5.js.map