From 9c79c365bcdb41a502f496ed4c7476581cb0966a Mon Sep 17 00:00:00 2001 From: jeremymlewis Date: Tue, 26 Dec 2023 14:02:41 +1100 Subject: [PATCH] 10million --- 5955.be5920e2923f9921.js | 1 + index.html | 2 +- runtime.a9573aa548255554.js | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 5955.be5920e2923f9921.js create mode 100644 runtime.a9573aa548255554.js diff --git a/5955.be5920e2923f9921.js b/5955.be5920e2923f9921.js new file mode 100644 index 0000000..f829797 --- /dev/null +++ b/5955.be5920e2923f9921.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[5955],{5955:(tn,b,g)=>{g.r(b),g.d(b,{Tab1PageModule:()=>en});var r=g(7609),v=g(6895),p=g(4719),w=g(581),u=g(8564),d=g(5861),e=g(6738);let _=(()=>{class n{constructor(t){this.modalCtrl=t,this.title="Title",this.message="Message"}cancel(){return this.modalCtrl.dismiss(null,"cancel")}confirm(){return this.modalCtrl.dismiss(null,"confirm")}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(r.IN))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-modal"]],decls:10,vars:2,consts:[[1,"center"],[2,"color","black"],[1,"button43",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div")(1,"div",0)(2,"h1",1),e._uU(3),e.qZA()(),e.TgZ(4,"div",0)(5,"p",1),e._uU(6),e.qZA()(),e.TgZ(7,"div",0)(8,"ion-button",2),e.NdJ("click",function(){return i.confirm()}),e._uU(9,"Continue"),e.qZA()()()),2&t&&(e.xp6(3),e.hij(" ",i.title,""),e.xp6(3),e.Oqu(i.message))},dependencies:[r.YG],styles:[".center[_ngcontent-%COMP%]{font-size:large;text-align:center;display:flex;justify-content:center;align-items:center;left:50%}"]}),n})();var m=g(1589);let P=(()=>{class n{constructor(){this.diceValue=0,this.isOver=!1}setDiceValue(t){this.diceValue=t}setDiceRollOver(){this.isOver=!0}getDiceValue(){return this.isOver=!1,this.diceValue}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function E(n,o){1&n&&e._UZ(0,"img",9),2&n&&e.MGl("src","assets/diceRep",o.$implicit,".png",e.LSH)}function M(n,o){if(1&n&&(e.TgZ(0,"div",5)(1,"div",6),e.YNc(2,E,1,1,"img",7),e.qZA(),e.TgZ(3,"div",8),e._uU(4),e.qZA()()),2&n){const t=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",t.slot0),e.xp6(2),e.hij(" ",t.val0," ")}}function k(n,o){1&n&&e._UZ(0,"img",9),2&n&&e.MGl("src","assets/diceRep",o.$implicit,".png",e.LSH)}function D(n,o){if(1&n&&(e.TgZ(0,"div",5)(1,"div",6),e.YNc(2,k,1,1,"img",7),e.qZA(),e.TgZ(3,"div",8),e._uU(4),e.qZA()()),2&n){const t=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",t.slot0),e.xp6(2),e.hij(" ",t.val1," ")}}function N(n,o){1&n&&e._UZ(0,"img",9),2&n&&e.MGl("src","assets/diceRep",o.$implicit,".png",e.LSH)}function Y(n,o){if(1&n&&(e.TgZ(0,"div",5)(1,"div",6),e.YNc(2,N,1,1,"img",7),e.qZA(),e.TgZ(3,"div",8),e._uU(4),e.qZA()()),2&n){const t=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",t.slot1),e.xp6(2),e.hij(" ",t.val2," ")}}function U(n,o){1&n&&e._UZ(0,"img",9),2&n&&e.MGl("src","assets/diceRep",o.$implicit,".png",e.LSH)}function R(n,o){if(1&n&&(e.TgZ(0,"div",5)(1,"div",6),e.YNc(2,U,1,1,"img",7),e.qZA(),e.TgZ(3,"div",8),e._uU(4),e.qZA()()),2&n){const t=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",t.slot2),e.xp6(2),e.hij(" ",t.val3," ")}}function O(n,o){1&n&&e._UZ(0,"img",9),2&n&&e.MGl("src","assets/diceRep",o.$implicit,".png",e.LSH)}function F(n,o){if(1&n&&(e.TgZ(0,"div",5)(1,"div",6),e.YNc(2,O,1,1,"img",7),e.qZA(),e.TgZ(3,"div",8),e._uU(4),e.qZA()()),2&n){const t=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",t.slot3),e.xp6(2),e.hij(" ",t.val4," ")}}function q(n,o){1&n&&e._UZ(0,"img",9),2&n&&e.MGl("src","assets/diceRep",o.$implicit,".png",e.LSH)}function G(n,o){if(1&n&&(e.TgZ(0,"div",10)(1,"div",6),e.YNc(2,q,1,1,"img",7),e.qZA(),e.TgZ(3,"div",8),e._uU(4),e.qZA()()),2&n){const t=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",t.slot1),e.xp6(2),e.hij(" ",t.val1," ")}}function J(n,o){1&n&&e._UZ(0,"img",9),2&n&&e.MGl("src","assets/diceRep",o.$implicit,".png",e.LSH)}function B(n,o){if(1&n&&(e.TgZ(0,"div",10)(1,"div",6),e.YNc(2,J,1,1,"img",7),e.qZA(),e.TgZ(3,"div",8),e._uU(4),e.qZA()()),2&n){const t=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",t.slot2),e.xp6(2),e.hij(" ",t.val2," ")}}function Q(n,o){1&n&&e._UZ(0,"img",9),2&n&&e.MGl("src","assets/diceRep",o.$implicit,".png",e.LSH)}function H(n,o){if(1&n&&(e.TgZ(0,"div",10)(1,"div",6),e.YNc(2,Q,1,1,"img",7),e.qZA(),e.TgZ(3,"div",8),e._uU(4),e.qZA()()),2&n){const t=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",t.slot3),e.xp6(2),e.hij(" ",t.val3," ")}}function j(n,o){1&n&&e._UZ(0,"img",9),2&n&&e.MGl("src","assets/diceRep",o.$implicit,".png",e.LSH)}function L(n,o){if(1&n&&(e.TgZ(0,"div",10)(1,"div",6),e.YNc(2,j,1,1,"img",7),e.qZA(),e.TgZ(3,"div",8),e._uU(4),e.qZA()()),2&n){const t=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",t.slot4),e.xp6(2),e.hij(" ",t.val4," ")}}function W(n,o){1&n&&e._UZ(0,"img",9),2&n&&e.MGl("src","assets/diceRep",o.$implicit,".png",e.LSH)}function V(n,o){if(1&n&&(e.TgZ(0,"div",11)(1,"div",6),e.YNc(2,W,1,1,"img",7),e.qZA(),e.TgZ(3,"div",8),e._uU(4),e.qZA()()),2&n){const t=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",t.slot1),e.xp6(2),e.hij(" ",t.val1," ")}}function z(n,o){1&n&&e._UZ(0,"img",9),2&n&&e.MGl("src","assets/diceRep",o.$implicit,".png",e.LSH)}function $(n,o){if(1&n&&(e.TgZ(0,"div",11)(1,"div",6),e.YNc(2,z,1,1,"img",7),e.qZA(),e.TgZ(3,"div",8),e._uU(4),e.qZA()()),2&n){const t=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",t.slot2),e.xp6(2),e.hij(" ",t.val2," ")}}function X(n,o){1&n&&e._UZ(0,"img",9),2&n&&e.MGl("src","assets/diceRep",o.$implicit,".png",e.LSH)}function K(n,o){if(1&n&&(e.TgZ(0,"div",11)(1,"div",6),e.YNc(2,X,1,1,"img",7),e.qZA(),e.TgZ(3,"div",8),e._uU(4),e.qZA()()),2&n){const t=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",t.slot3),e.xp6(2),e.hij(" ",t.val3," ")}}function ee(n,o){1&n&&e._UZ(0,"img",9),2&n&&e.MGl("src","assets/diceRep",o.$implicit,".png",e.LSH)}function te(n,o){if(1&n&&(e.TgZ(0,"div",11)(1,"div",6),e.YNc(2,ee,1,1,"img",7),e.qZA(),e.TgZ(3,"div",8),e._uU(4),e.qZA()()),2&n){const t=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",t.slot4),e.xp6(2),e.hij(" ",t.val4," ")}}function ne(n,o){1&n&&e._UZ(0,"img",9),2&n&&e.MGl("src","assets/diceRep",o.$implicit,".png",e.LSH)}function ie(n,o){if(1&n&&(e.TgZ(0,"div",11)(1,"div",6),e.YNc(2,ne,1,1,"img",7),e.qZA(),e.TgZ(3,"div",8),e._uU(4),e.qZA()()),2&n){const t=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",t.slot5),e.xp6(2),e.hij(" ",t.val5," ")}}function oe(n,o){if(1&n&&(e.TgZ(0,"div",1),e.YNc(1,M,5,2,"div",2),e.YNc(2,D,5,2,"div",2),e.YNc(3,Y,5,2,"div",2),e.YNc(4,R,5,2,"div",2),e.YNc(5,F,5,2,"div",2),e.YNc(6,G,5,2,"div",3),e.YNc(7,B,5,2,"div",3),e.YNc(8,H,5,2,"div",3),e.YNc(9,L,5,2,"div",3),e.YNc(10,V,5,2,"div",4),e.YNc(11,$,5,2,"div",4),e.YNc(12,K,5,2,"div",4),e.YNc(13,te,5,2,"div",4),e.YNc(14,ie,5,2,"div",4),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.slot0.length>0),e.xp6(1),e.Q6J("ngIf",0===t.slot0.length&&t.slot1.length>0),e.xp6(1),e.Q6J("ngIf",0===t.slot0.length&&0===t.slot1.length&&t.slot2.length>0),e.xp6(1),e.Q6J("ngIf",0===t.slot0.length&&0===t.slot1.length&&0===t.slot2.length&&t.slot3.length>0),e.xp6(1),e.Q6J("ngIf",0===t.slot0.length&&0===t.slot1.length&&0===t.slot2.length&&0===t.slot3.length&&t.slot4.length>0),e.xp6(1),e.Q6J("ngIf",t.slot1.length>0&&t.slot0.length>0&&(t.slot3.length>0||t.slot2.length>0||t.slot4.length>0||t.slot5.length>0)),e.xp6(1),e.Q6J("ngIf",t.slot2.length>0&&(t.slot5.length>0||t.slot4.length>0||t.slot3.length>0)&&(t.slot1.length>0||t.slot0.length>0)),e.xp6(1),e.Q6J("ngIf",t.slot3.length>0&&(t.slot5.length>0||t.slot4.length>0)&&(t.slot2.length>0||t.slot1.length>0||t.slot0.length>0)),e.xp6(1),e.Q6J("ngIf",t.slot4.length>0&&t.slot5.length>0&&(t.slot3.length>0||t.slot2.length>0||t.slot1.length>0||t.slot0.length>0)),e.xp6(1),e.Q6J("ngIf",0===t.slot5.length&&0===t.slot4.length&&0===t.slot3.length&&0===t.slot2.length&&t.slot1.length>0),e.xp6(1),e.Q6J("ngIf",0===t.slot5.length&&0===t.slot4.length&&0===t.slot3.length&&t.slot2.length>0),e.xp6(1),e.Q6J("ngIf",0===t.slot5.length&&0===t.slot4.length&&t.slot3.length>0),e.xp6(1),e.Q6J("ngIf",0===t.slot5.length&&t.slot4.length>0),e.xp6(1),e.Q6J("ngIf",t.slot5.length>0)}}function se(n,o){1&n&&e._UZ(0,"img",9),2&n&&e.MGl("src","assets/diceDem",o.$implicit,".png",e.LSH)}function ae(n,o){if(1&n&&(e.TgZ(0,"div",5)(1,"div",6),e.YNc(2,se,1,1,"img",7),e.qZA(),e.TgZ(3,"div",8),e._uU(4),e.qZA()()),2&n){const t=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",t.slot0),e.xp6(2),e.hij(" ",t.val0," ")}}function re(n,o){1&n&&e._UZ(0,"img",9),2&n&&e.MGl("src","assets/diceDem",o.$implicit,".png",e.LSH)}function le(n,o){if(1&n&&(e.TgZ(0,"div",5)(1,"div",6),e.YNc(2,re,1,1,"img",7),e.qZA(),e.TgZ(3,"div",8),e._uU(4),e.qZA()()),2&n){const t=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",t.slot0),e.xp6(2),e.hij(" ",t.val1," ")}}function ce(n,o){1&n&&e._UZ(0,"img",9),2&n&&e.MGl("src","assets/diceDem",o.$implicit,".png",e.LSH)}function de(n,o){if(1&n&&(e.TgZ(0,"div",5)(1,"div",6),e.YNc(2,ce,1,1,"img",7),e.qZA(),e.TgZ(3,"div",8),e._uU(4),e.qZA()()),2&n){const t=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",t.slot1),e.xp6(2),e.hij(" ",t.val2," ")}}function pe(n,o){1&n&&e._UZ(0,"img",9),2&n&&e.MGl("src","assets/diceDem",o.$implicit,".png",e.LSH)}function ge(n,o){if(1&n&&(e.TgZ(0,"div",5)(1,"div",6),e.YNc(2,pe,1,1,"img",7),e.qZA(),e.TgZ(3,"div",8),e._uU(4),e.qZA()()),2&n){const t=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",t.slot2),e.xp6(2),e.hij(" ",t.val3," ")}}function ve(n,o){1&n&&e._UZ(0,"img",9),2&n&&e.MGl("src","assets/diceDem",o.$implicit,".png",e.LSH)}function ue(n,o){if(1&n&&(e.TgZ(0,"div",5)(1,"div",6),e.YNc(2,ve,1,1,"img",7),e.qZA(),e.TgZ(3,"div",8),e._uU(4),e.qZA()()),2&n){const t=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",t.slot3),e.xp6(2),e.hij(" ",t.val4," ")}}function me(n,o){1&n&&e._UZ(0,"img",9),2&n&&e.MGl("src","assets/diceDem",o.$implicit,".png",e.LSH)}function he(n,o){if(1&n&&(e.TgZ(0,"div",10)(1,"div",6),e.YNc(2,me,1,1,"img",7),e.qZA(),e.TgZ(3,"div",8),e._uU(4),e.qZA()()),2&n){const t=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",t.slot1),e.xp6(2),e.hij(" ",t.val1," ")}}function fe(n,o){1&n&&e._UZ(0,"img",9),2&n&&e.MGl("src","assets/diceDem",o.$implicit,".png",e.LSH)}function _e(n,o){if(1&n&&(e.TgZ(0,"div",10)(1,"div",6),e.YNc(2,fe,1,1,"img",7),e.qZA(),e.TgZ(3,"div",8),e._uU(4),e.qZA()()),2&n){const t=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",t.slot2),e.xp6(2),e.hij(" ",t.val2," ")}}function ye(n,o){1&n&&e._UZ(0,"img",9),2&n&&e.MGl("src","assets/diceDem",o.$implicit,".png",e.LSH)}function Te(n,o){if(1&n&&(e.TgZ(0,"div",10)(1,"div",6),e.YNc(2,ye,1,1,"img",7),e.qZA(),e.TgZ(3,"div",8),e._uU(4),e.qZA()()),2&n){const t=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",t.slot3),e.xp6(2),e.hij(" ",t.val3," ")}}function be(n,o){1&n&&e._UZ(0,"img",9),2&n&&e.MGl("src","assets/diceDem",o.$implicit,".png",e.LSH)}function Ie(n,o){if(1&n&&(e.TgZ(0,"div",10)(1,"div",6),e.YNc(2,be,1,1,"img",7),e.qZA(),e.TgZ(3,"div",8),e._uU(4),e.qZA()()),2&n){const t=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",t.slot4),e.xp6(2),e.hij(" ",t.val4," ")}}function xe(n,o){1&n&&e._UZ(0,"img",9),2&n&&e.MGl("src","assets/diceDem",o.$implicit,".png",e.LSH)}function Ze(n,o){if(1&n&&(e.TgZ(0,"div",11)(1,"div",6),e.YNc(2,xe,1,1,"img",7),e.qZA(),e.TgZ(3,"div",8),e._uU(4),e.qZA()()),2&n){const t=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",t.slot1),e.xp6(2),e.hij(" ",t.val1," ")}}function Ae(n,o){1&n&&e._UZ(0,"img",9),2&n&&e.MGl("src","assets/diceDem",o.$implicit,".png",e.LSH)}function Se(n,o){if(1&n&&(e.TgZ(0,"div",11)(1,"div",6),e.YNc(2,Ae,1,1,"img",7),e.qZA(),e.TgZ(3,"div",8),e._uU(4),e.qZA()()),2&n){const t=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",t.slot2),e.xp6(2),e.hij(" ",t.val2," ")}}function Ce(n,o){1&n&&e._UZ(0,"img",9),2&n&&e.MGl("src","assets/diceDem",o.$implicit,".png",e.LSH)}function we(n,o){if(1&n&&(e.TgZ(0,"div",11)(1,"div",6),e.YNc(2,Ce,1,1,"img",7),e.qZA(),e.TgZ(3,"div",8),e._uU(4),e.qZA()()),2&n){const t=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",t.slot3),e.xp6(2),e.hij(" ",t.val3," ")}}function Pe(n,o){1&n&&e._UZ(0,"img",9),2&n&&e.MGl("src","assets/diceDem",o.$implicit,".png",e.LSH)}function Ee(n,o){if(1&n&&(e.TgZ(0,"div",11)(1,"div",6),e.YNc(2,Pe,1,1,"img",7),e.qZA(),e.TgZ(3,"div",8),e._uU(4),e.qZA()()),2&n){const t=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",t.slot4),e.xp6(2),e.hij(" ",t.val4," ")}}function Me(n,o){1&n&&e._UZ(0,"img",9),2&n&&e.MGl("src","assets/diceDem",o.$implicit,".png",e.LSH)}function ke(n,o){if(1&n&&(e.TgZ(0,"div",11)(1,"div",6),e.YNc(2,Me,1,1,"img",7),e.qZA(),e.TgZ(3,"div",8),e._uU(4),e.qZA()()),2&n){const t=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",t.slot5),e.xp6(2),e.hij(" ",t.val5," ")}}function De(n,o){if(1&n&&(e.TgZ(0,"div",1),e.YNc(1,ae,5,2,"div",2),e.YNc(2,le,5,2,"div",2),e.YNc(3,de,5,2,"div",2),e.YNc(4,ge,5,2,"div",2),e.YNc(5,ue,5,2,"div",2),e.YNc(6,he,5,2,"div",3),e.YNc(7,_e,5,2,"div",3),e.YNc(8,Te,5,2,"div",3),e.YNc(9,Ie,5,2,"div",3),e.YNc(10,Ze,5,2,"div",4),e.YNc(11,Se,5,2,"div",4),e.YNc(12,we,5,2,"div",4),e.YNc(13,Ee,5,2,"div",4),e.YNc(14,ke,5,2,"div",4),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.slot0.length>0),e.xp6(1),e.Q6J("ngIf",0===t.slot0.length&&t.slot1.length>0),e.xp6(1),e.Q6J("ngIf",0===t.slot0.length&&0===t.slot1.length&&t.slot2.length>0),e.xp6(1),e.Q6J("ngIf",0===t.slot0.length&&0===t.slot1.length&&0===t.slot2.length&&t.slot3.length>0),e.xp6(1),e.Q6J("ngIf",0===t.slot0.length&&0===t.slot1.length&&0===t.slot2.length&&0===t.slot3.length&&t.slot4.length>0),e.xp6(1),e.Q6J("ngIf",t.slot1.length>0&&t.slot0.length>0&&(t.slot3.length>0||t.slot2.length>0||t.slot4.length>0||t.slot5.length>0)),e.xp6(1),e.Q6J("ngIf",t.slot2.length>0&&(t.slot5.length>0||t.slot4.length>0||t.slot3.length>0)&&(t.slot1.length>0||t.slot0.length>0)),e.xp6(1),e.Q6J("ngIf",t.slot3.length>0&&(t.slot5.length>0||t.slot4.length>0)&&(t.slot2.length>0||t.slot1.length>0||t.slot0.length>0)),e.xp6(1),e.Q6J("ngIf",t.slot4.length>0&&t.slot5.length>0&&(t.slot3.length>0||t.slot2.length>0||t.slot1.length>0||t.slot0.length>0)),e.xp6(1),e.Q6J("ngIf",0===t.slot5.length&&0===t.slot4.length&&0===t.slot3.length&&0===t.slot2.length&&t.slot1.length>0),e.xp6(1),e.Q6J("ngIf",0===t.slot5.length&&0===t.slot4.length&&0===t.slot3.length&&t.slot2.length>0),e.xp6(1),e.Q6J("ngIf",0===t.slot5.length&&0===t.slot4.length&&t.slot3.length>0),e.xp6(1),e.Q6J("ngIf",0===t.slot5.length&&t.slot4.length>0),e.xp6(1),e.Q6J("ngIf",t.slot5.length>0)}}let Ne=(()=>{class n{constructor(t){this.votes=t,this.slot0=[],this.slot1=[],this.slot2=[],this.slot3=[],this.slot4=[],this.slot5=[],this.val0="0",this.val1="1",this.val2="2",this.val3="3",this.val4="4",this.val5="5"}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(m.s))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-rolltable"]],inputs:{slot0:"slot0",slot1:"slot1",slot2:"slot2",slot3:"slot3",slot4:"slot4",slot5:"slot5",val0:"val0",val1:"val1",val2:"val2",val3:"val3",val4:"val4",val5:"val5"},decls:2,vars:2,consts:[["class","center",4,"ngIf"],[1,"center"],["class","top",4,"ngIf"],["class","row",4,"ngIf"],["class","bottom",4,"ngIf"],[1,"top"],[1,"col","left"],["class","dice",3,"src",4,"ngFor","ngForOf"],[1,"col","right"],[1,"dice",3,"src"],[1,"row"],[1,"bottom"]],template:function(t,i){1&t&&(e.YNc(0,oe,15,14,"div",0),e.YNc(1,De,15,14,"div",0)),2&t&&(e.Q6J("ngIf",!i.votes.isDemocrat),e.xp6(1),e.Q6J("ngIf",i.votes.isDemocrat))},dependencies:[v.sg,v.O5],styles:[".dice[_ngcontent-%COMP%]{margin-top:2px;max-width:20px;margin-left:4px}.center[_ngcontent-%COMP%]{width:100%}.left[_ngcontent-%COMP%]{border-right:black 2px solid}.right[_ngcontent-%COMP%]{border-left:black 2px solid}.col[_ngcontent-%COMP%]{flex:50%;justify-content:center;text-align:center}.row[_ngcontent-%COMP%]{width:100%;border-left:black 3px solid;border-right:black 3px solid;border-bottom:black 3px solid;display:flex;position:sticky;left:20%}.top[_ngcontent-%COMP%]{width:100%;display:flex;border:black 3px solid;border-radius:6px 6px 0 0;position:sticky;left:20%}.bottom[_ngcontent-%COMP%]{width:100%;display:flex;border:black 3px solid;border-top:0;border-radius:0 0 6px 6px;position:sticky;left:20%}"]}),n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),y=(()=>{class n{constructor(t,i){this.calculationService=t,this.votes=i,this.diceRolled=new e.vpe,this.rollStarted=new e.vpe,this.canClick=!0,this.slot0=[],this.slot1=[],this.slot2=[],this.slot3=[],this.slot4=[],this.slot5=[],this.val0="0",this.val1="1",this.val2="2",this.val3="3",this.val4="4",this.val5="5",this.value=1,this.imageValue="dice"+(this.votes.isDemocrat?"Dem":"Rep")+"1",this.image1="dice1",this.image2="dice2",this.image3="dice3",this.image4="dice4",this.image5="dice5",this.image6="dice6"}setImage(t){this.imageValue=t<2?"dice"+(this.votes.isDemocrat?"Dem":"Rep")+1:2===t?"dice"+(this.votes.isDemocrat?"Dem":"Rep")+2:3===t?"dice"+(this.votes.isDemocrat?"Dem":"Rep")+3:4===t?"dice"+(this.votes.isDemocrat?"Dem":"Rep")+4:5===t?"dice"+(this.votes.isDemocrat?"Dem":"Rep")+5:"dice"+(this.votes.isDemocrat?"Dem":"Rep")+6}rollDice(){this.value=Math.floor(6*Math.random())+1,this.setImage(this.value)}animatedDiceRoll(){var t=this;return(0,d.Z)(function*(){t.votes.actionPending=!0,t.rollStarted.emit(!0),document.getElementById("dice").style.animation="rotation 1.6s",t.canClick=!1,t.rollDice(),yield new Promise(i=>setTimeout(i,80)),t.rollDice(),yield new Promise(i=>setTimeout(i,80)),t.rollDice(),yield new Promise(i=>setTimeout(i,80)),t.rollDice(),yield new Promise(i=>setTimeout(i,80)),t.rollDice(),yield new Promise(i=>setTimeout(i,80)),t.rollDice(),yield new Promise(i=>setTimeout(i,80)),t.rollDice(),yield new Promise(i=>setTimeout(i,80)),t.rollDice(),yield new Promise(i=>setTimeout(i,80)),t.rollDice(),yield new Promise(i=>setTimeout(i,80)),t.rollDice(),yield new Promise(i=>setTimeout(i,80)),t.rollDice(),yield new Promise(i=>setTimeout(i,500)),t.diceRolled.emit(t.value),yield new Promise(i=>setTimeout(i,1e3)),t.votes.actionPending=!1,yield new Promise(i=>setTimeout(i,500)),t.canClick=!0})()}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(P),e.Y36(m.s))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-dice"]],inputs:{canClick:"canClick",slot0:"slot0",slot1:"slot1",slot2:"slot2",slot3:"slot3",slot4:"slot4",slot5:"slot5",val0:"val0",val1:"val1",val2:"val2",val3:"val3",val4:"val4",val5:"val5"},outputs:{diceRolled:"diceRolled",rollStarted:"rollStarted"},decls:8,vars:14,consts:[[2,"width","75%","margin-right","12.5%","margin-left","12.5%"],[3,"slot0","slot1","slot2","slot3","slot4","slot5","val0","val1","val2","val3","val4","val5"],[1,"center"],["id","dice",3,"src"],[1,"button43",3,"disabled","click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e._UZ(1,"app-rolltable",1),e.TgZ(2,"div",2),e._UZ(3,"img",3),e.TgZ(4,"ion-button",4),e.NdJ("click",function(){return i.animatedDiceRoll()}),e.TgZ(5,"em"),e._uU(6,"Roll"),e.qZA()()(),e._UZ(7,"div"),e.qZA()),2&t&&(e.xp6(1),e.Q6J("slot0",i.slot0)("slot1",i.slot1)("slot2",i.slot2)("slot3",i.slot3)("slot4",i.slot4)("slot5",i.slot5)("val0",i.val0)("val1",i.val1)("val2",i.val2)("val3",i.val3)("val4",i.val4)("val5",i.val5),e.xp6(2),e.MGl("src","assets/",i.imageValue,".png",e.LSH),e.xp6(1),e.Q6J("disabled",!i.canClick))},dependencies:[r.YG,Ne],styles:["#dice[_ngcontent-%COMP%]{max-width:40px}.center[_ngcontent-%COMP%]{font-size:large;text-align:center;display:flex;justify-content:center;align-items:center;left:50%}@keyframes rotation{0%{transform:rotate(0)}to{transform:rotate(359deg)}}.rotate[_ngcontent-%COMP%]{animation:rotation 1s}"]}),n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Ye(n,o){1&n&&e._UZ(0,"img",51)}function Ue(n,o){1&n&&e._UZ(0,"img",52)}function Re(n,o){1&n&&(e.TgZ(0,"ion-content",53)(1,"h3"),e._uU(2,"Running Advertisements!"),e.qZA(),e.TgZ(3,"p"),e._uU(4,"Ads here are run on regional TV channels, so you can pick any of the 8 available regions."),e.qZA(),e.TgZ(5,"p"),e._uU(6,"Ads are great for influencing multiple states in 1 turn."),e.qZA(),e.TgZ(7,"p"),e._uU(8,"Sometimes, the ads will have no effect on the people in these regions. Your roll will determine how effective they are!"),e.qZA()())}function Oe(n,o){1&n&&(e.TgZ(0,"label",54),e._UZ(1,"img",55)(2,"img",56)(3,"img",57)(4,"img",58)(5,"br"),e._uU(6," HI, CA, WA, OR"),e.qZA())}function Fe(n,o){1&n&&(e.TgZ(0,"label",54),e._UZ(1,"img",56)(2,"img",57)(3,"img",58)(4,"br"),e._uU(5," CA, WA, OR"),e.qZA())}function qe(n,o){1&n&&(e.TgZ(0,"label",54),e._UZ(1,"img",56)(2,"img",58)(3,"img",59)(4,"br"),e._uU(5," CA, OR, NV"),e.qZA())}function Ge(n,o){1&n&&(e.TgZ(0,"label",60),e._UZ(1,"img",61)(2,"img",62)(3,"img",59)(4,"img",63)(5,"br"),e._uU(6," NM, CO, NV, AZ"),e.qZA())}function Je(n,o){1&n&&(e.TgZ(0,"label",60),e._UZ(1,"img",64)(2,"img",65)(3,"img",66)(4,"br"),e._uU(5," NY, NJ, CT"),e.qZA())}function Be(n,o){1&n&&(e.TgZ(0,"label",67),e._UZ(1,"img",68)(2,"img",69)(3,"br"),e._uU(4," TX, AK"),e.qZA())}function Qe(n,o){1&n&&(e.TgZ(0,"label",67),e._UZ(1,"img",68)(2,"br"),e._uU(3," TX"),e.qZA())}const He=function(){return[1]},je=function(){return[2,3,4,5]},Le=function(){return[6]};let We=(()=>{class n{constructor(t,i,s){this.router=t,this.modalCtrl=i,this.votes=s,this.diceEnabled=!1,this.canBack=!0,this.myGroup=new p.cw({buttonGroup:new p.NI})}ngOnInit(){this.isDemocrat=this.votes.getUserIsDem(),this.isThird=this.votes.getUserIsThird()}enableDice(){this.diceEnabled=!0}getGroup(){"one"===this.myGroup.value.buttonGroup?this.selectedStates=this.votes.Washington?this.votes.Hawaii?["HI","CA","WA","OR"]:["CA","WA","OR"]:["CA","NV","OR"]:"two"===this.myGroup.value.buttonGroup?this.selectedStates=["IL","MN"]:"three"===this.myGroup.value.buttonGroup?this.selectedStates=this.votes.NewMexico?["NM","CO","NV","AZ"]:["NY","NJ","CT"]:"four"===this.myGroup.value.buttonGroup?this.selectedStates=["ME","NH","VA","PA"]:"five"===this.myGroup.value.buttonGroup?this.selectedStates=["WI","IA","MI","OH"]:"six"===this.myGroup.value.buttonGroup?this.selectedStates=["FL","NC","GA"]:"seven"===this.myGroup.value.buttonGroup?this.selectedStates=this.votes.Alaska?["TX","AK"]:["TX"]:"eight"===this.myGroup.value.buttonGroup&&(this.selectedStates=["SC","MO","IN","MS","LA"])}rollStarted(){this.canBack=!1}handleRoll(t){var i=this;return(0,d.Z)(function*(){if(i.canBack=!1,i.getGroup(),!i.isThird)if(1===t)i.openModal("You rolled a "+t+", Your advertising made no difference!");else if(t<6){i.openModal("You rolled a "+t+", Your advertising made a difference of 1 in your selected states!");for(const s in i.selectedStates)i.isDemocrat?i.votes.changeStateClimate(i.selectedStates[s],1,0):i.votes.changeStateClimate(i.selectedStates[s],0,1)}else{i.openModal("You rolled a "+t+", Your advertising made a difference of 2 in your selected states!");for(const s in i.selectedStates)i.isDemocrat?i.votes.changeStateClimate(i.selectedStates[s],2,0):i.votes.changeStateClimate(i.selectedStates[s],0,2)}})()}toNextTurn(){this.router.navigateByUrl("/tabs/tab1/opponent",{replaceUrl:!0})}back(){this.votes.funds++,this.router.navigateByUrl("/tabs/tab1",{replaceUrl:!0})}openModal(t,i="Results"){var s=this;return(0,d.Z)(function*(){const a=yield s.modalCtrl.create({component:_,componentProps:{message:t,title:i}});a.onDidDismiss().then(()=>{s.toNextTurn()}),a.present(),yield a.onWillDismiss()})()}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(u.F0),e.Y36(r.IN),e.Y36(m.s))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-advertise"]],decls:75,vars:20,consts:[[3,"translucent"],["class","header-icon","src","../../../assets/images/republicanIcon.png",4,"ngIf"],["class","header-icon","src","../../../assets/images/democratIcon.png",4,"ngIf"],["fill","clear","id","click-triggerAd"],["name","help-circle-outline"],["trigger","click-triggerAd","triggerAction","click"],[3,"fullscreen"],[2,"margin-left","2px","margin-top","2px"],["size","small",1,"backbutton",3,"disabled","click"],["name","arrow-back-circle-outline"],[1,"center"],[2,"margin-top","14px","max-width","65%"],[1,"row"],[3,"formGroup"],[1,"column","left"],["type","radio","name","buttonGroup","formControlName","buttonGroup","value","one","id","one",3,"click"],["for","one",4,"ngIf"],["type","radio","name","buttonGroup","formControlName","buttonGroup","value","two","id","two",3,"click"],["for","two"],["src","../../../assets/images/states/IL-Illinois.png",1,"state-icon"],["src","../../../assets/images/states/MN-Minnesota.png",1,"state-icon"],["type","radio","name","buttonGroup","formControlName","buttonGroup","value","three","id","three",3,"click"],["for","three",4,"ngIf"],["type","radio","name","buttonGroup","formControlName","buttonGroup","value","four","id","four",3,"click"],["for","four"],["src","../../../assets/images/states/ME-Maine.png",1,"state-icon"],["src","../../../assets/images/states/NH-New-Hampshire.png",1,"state-icon"],["src","../../../assets/images/states/VA-Virginia.png",1,"state-icon"],["src","../../../assets/images/states/PA-Pennsylvania.png",1,"state-icon"],[1,"column","right"],["type","radio","name","buttonGroup","formControlName","buttonGroup","value","five","id","five",3,"click"],["for","five"],["src","../../../assets/images/states/WI-Wisconsin.png",1,"state-icon"],["src","../../../assets/images/states/IA-Iowa.png",1,"state-icon"],["src","../../../assets/images/states/MI-Michigan.png",1,"state-icon"],["src","../../../assets/images/states/OH-Ohio.png",1,"state-icon"],["type","radio","name","buttonGroup","formControlName","buttonGroup","value","six","id","six",3,"click"],["for","six"],["src","../../../assets/images/states/FL-Florida.png",1,"state-icon"],["src","../../../assets/images/states/NC-North-Carolina.png",1,"state-icon"],["src","../../../assets/images/states/GA-Georgia.png",1,"state-icon"],["type","radio","name","buttonGroup","formControlName","buttonGroup","value","seven","id","seven",3,"click"],["for","seven",4,"ngIf"],["type","radio","name","buttonGroup","formControlName","buttonGroup","value","eight","id","eight",3,"click"],["for","eight"],["src","../../../assets/images/states/SC-South-Carolina.png",1,"state-icon"],["src","../../../assets/images/states/MO-Missouri.png",1,"state-icon"],["src","../../../assets/images/states/IN-Indiana.png",1,"state-icon"],["src","../../../assets/images/states/MS-Mississippi.png",1,"state-icon"],["src","../../../assets/images/states/LA-Louisiana.png",1,"state-icon"],["val0","No Effect","val1","+1%","val2","+2%",3,"slot0","slot1","slot2","canClick","rollStarted","diceRolled"],["src","../../../assets/images/republicanIcon.png",1,"header-icon"],["src","../../../assets/images/democratIcon.png",1,"header-icon"],[1,"ion-padding"],["for","one"],["src","../../../assets/images/states/HI-Hawaii.png",1,"state-icon"],["src","../../../assets/images/states/CA-California.png",1,"state-icon"],["src","../../../assets/images/states/WA-Washington.png",1,"state-icon"],["src","../../../assets/images/states/OR-Oregon.png",1,"state-icon"],["src","../../../assets/images/states/NV-Nevada.png",1,"state-icon"],["for","three"],["src","../../../assets/images/states/NM-New-Mexico.png",1,"state-icon"],["src","../../../assets/images/states/CO-Colorado.png",1,"state-icon"],["src","../../../assets/images/states/AZ-Arizona.png",1,"state-icon"],["src","../../../assets/images/states/NY-New-York.png",1,"state-icon"],["src","../../../assets/images/states/NJ-New-Jersey.png",1,"state-icon"],["src","../../../assets/images/states/CT-Connecticut.png",1,"state-icon"],["for","seven"],["src","../../../assets/images/states/TX-Texas.png",1,"state-icon"],["src","../../../assets/images/states/AK-Alaska.png",1,"state-icon"]],template:function(t,i){1&t&&(e.TgZ(0,"ion-header",0)(1,"ion-toolbar")(2,"ion-title"),e._uU(3," Advertise "),e.YNc(4,Ye,1,0,"img",1),e.YNc(5,Ue,1,0,"img",2),e.qZA(),e.TgZ(6,"ion-button",3),e._UZ(7,"ion-icon",4),e.qZA(),e.TgZ(8,"ion-popover",5),e.YNc(9,Re,9,0,"ng-template"),e.qZA()()(),e.TgZ(10,"ion-content",6)(11,"div",7)(12,"ion-button",8),e.NdJ("click",function(){return i.back()}),e._UZ(13,"ion-icon",9),e.TgZ(14,"em"),e._uU(15,"Back"),e.qZA()()(),e.TgZ(16,"div",10)(17,"h3",11),e._uU(18,"Choose where to run advertisements:"),e.qZA()(),e.TgZ(19,"div",12)(20,"div",13)(21,"div",14)(22,"input",15),e.NdJ("click",function(){return i.enableDice()}),e.qZA(),e.YNc(23,Oe,7,0,"label",16),e.YNc(24,Fe,6,0,"label",16),e.YNc(25,qe,6,0,"label",16),e.TgZ(26,"input",17),e.NdJ("click",function(){return i.enableDice()}),e.qZA(),e.TgZ(27,"label",18),e._UZ(28,"img",19)(29,"img",20)(30,"br"),e._uU(31," IL, MN"),e.qZA(),e.TgZ(32,"input",21),e.NdJ("click",function(){return i.enableDice()}),e.qZA(),e.YNc(33,Ge,7,0,"label",22),e.YNc(34,Je,6,0,"label",22),e.TgZ(35,"input",23),e.NdJ("click",function(){return i.enableDice()}),e.qZA(),e.TgZ(36,"label",24),e._UZ(37,"img",25)(38,"img",26)(39,"img",27)(40,"img",28)(41,"br"),e._uU(42," ME, NH, VA, PA"),e.qZA()(),e.TgZ(43,"div",29)(44,"input",30),e.NdJ("click",function(){return i.enableDice()}),e.qZA(),e.TgZ(45,"label",31),e._UZ(46,"img",32)(47,"img",33)(48,"img",34)(49,"img",35)(50,"br"),e._uU(51," WI, IA, MI, OH"),e.qZA(),e.TgZ(52,"input",36),e.NdJ("click",function(){return i.enableDice()}),e.qZA(),e.TgZ(53,"label",37),e._UZ(54,"img",38)(55,"img",39)(56,"img",40)(57,"br"),e._uU(58," FL, NC, GA"),e.qZA(),e.TgZ(59,"input",41),e.NdJ("click",function(){return i.enableDice()}),e.qZA(),e.YNc(60,Be,5,0,"label",42),e.YNc(61,Qe,4,0,"label",42),e.TgZ(62,"input",43),e.NdJ("click",function(){return i.enableDice()}),e.qZA(),e.TgZ(63,"label",44),e._UZ(64,"img",45)(65,"img",46)(66,"img",47)(67,"img",48)(68,"img",49)(69,"br"),e._uU(70," SC, MO, IN, MS, LA"),e.qZA()()()(),e.TgZ(71,"div",10)(72,"p"),e._uU(73,"Click 'roll' to see how well the ads work."),e.qZA()(),e.TgZ(74,"app-dice",50),e.NdJ("rollStarted",function(){return i.rollStarted()})("diceRolled",function(a){return i.handleRoll(a)}),e.qZA()()),2&t&&(e.Q6J("translucent",!1),e.xp6(4),e.Q6J("ngIf",!i.isDemocrat),e.xp6(1),e.Q6J("ngIf",i.isDemocrat),e.xp6(5),e.Q6J("fullscreen",!0),e.xp6(2),e.Q6J("disabled",!i.canBack),e.xp6(8),e.Q6J("formGroup",i.myGroup),e.xp6(3),e.Q6J("ngIf",i.votes.Hawaii),e.xp6(1),e.Q6J("ngIf",!i.votes.Hawaii&&i.votes.Washington),e.xp6(1),e.Q6J("ngIf",!i.votes.Hawaii&&!i.votes.Washington),e.xp6(8),e.Q6J("ngIf",i.votes.NewMexico),e.xp6(1),e.Q6J("ngIf",!i.votes.NewMexico),e.xp6(26),e.Q6J("ngIf",i.votes.Alaska),e.xp6(1),e.Q6J("ngIf",!i.votes.Alaska),e.xp6(13),e.Q6J("slot0",e.DdM(17,He))("slot1",e.DdM(18,je))("slot2",e.DdM(19,Le))("canClick",i.diceEnabled))},dependencies:[r.YG,r.W2,r.Gu,r.gu,r.d8,r.sr,r.wd,v.O5,p.Fj,p._,p.JJ,p.JL,p.sg,p.u,y],styles:['input[type=radio][name=buttonGroup][_ngcontent-%COMP%]{display:none}label[_ngcontent-%COMP%]{display:inline-block;padding:3px;border:1px solid #000000;border-radius:3px;background-color:#f5f5f5;width:10em;text-align:center}input[type=radio][name=buttonGroup][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{background-color:#bbb}.column[_ngcontent-%COMP%]{float:left;padding:10px}.left[_ngcontent-%COMP%], .right[_ngcontent-%COMP%]{width:50%}.row[_ngcontent-%COMP%]:after{content:"";display:table;clear:both}.state-icon[_ngcontent-%COMP%]{max-height:20px}.backbutton[_ngcontent-%COMP%]{position:absolute}.center[_ngcontent-%COMP%]{margin-left:3px;margin-right:3px;font-size:large;text-align:center;display:flex;justify-content:center;align-items:center;left:50%}.header-icon[_ngcontent-%COMP%]{position:fixed;right:10px;max-height:30px;z-index:199999}']}),n})(),I=(()=>{class n{transform(t){if(t.thirdPercent>-1)return t.thirdPercent+"%";{const i=t.demPercent-t.repPercent;if(i>0)return"+"+i+" D";if(0===i)return"Even";if(i<0)return"+"+-i+" R"}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275pipe=e.Yjl({name:"scoreDisplay",type:n,pure:!0}),n})();function Ve(n,o){1&n&&e._UZ(0,"img",18)}function ze(n,o){1&n&&e._UZ(0,"img",19)}function $e(n,o){1&n&&(e.TgZ(0,"ion-content",20)(1,"h3"),e._uU(2,"State Visits!"),e.qZA(),e.TgZ(3,"p"),e._uU(4,"One of the best ways to get people to vote for you is meeting them in person!"),e.qZA(),e.TgZ(5,"p"),e._uU(6,"Pick a state, and visit to show people who you are."),e.qZA(),e.TgZ(7,"p"),e._uU(8,"Then roll to see how effective your visit was."),e.qZA(),e.TgZ(9,"p"),e._uU(10,"Some states are marked with a * and these are harder to influence."),e.qZA()())}function Xe(n,o){if(1&n&&(e.TgZ(0,"ion-select-option",21),e._uU(1),e.ALo(2,"scoreDisplay"),e.qZA()),2&n){const t=o.$implicit;e.Q6J("value",t),e.xp6(1),e.HOy("",t.protected,"",t.name," (",e.lcZ(2,5,t),") (",t.college," votes)")}}function Ke(n,o){1&n&&(e.TgZ(0,"div",10)(1,"div",22),e._UZ(2,"img",23),e.qZA()())}function et(n,o){if(1&n&&(e.TgZ(0,"div",10)(1,"div",22),e._UZ(2,"img",24),e.TgZ(3,"p",25),e._uU(4),e.ALo(5,"scoreDisplay"),e.qZA(),e.TgZ(6,"p",25),e._uU(7),e.qZA(),e.TgZ(8,"h2",26),e._uU(9),e.qZA()()()),2&n){const t=e.oxw();e.xp6(2),e.hYB("src","../../../assets/images/states/",t.chosenState.abbreviation,"-",t.chosenState.name.replace(" ","-"),".png",e.LSH),e.xp6(2),e.hij("Leans: ",e.lcZ(5,5,t.chosenState),""),e.xp6(3),e.hij("Electoral Votes: ",t.chosenState.college,""),e.xp6(2),e.Oqu(t.chosenState.name)}}const x=function(){return[1]},Z=function(){return[2,3]},A=function(){return[4,5]},S=function(){return[6]};function tt(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"app-dice",27),e.NdJ("rollStarted",function(){e.CHM(t);const s=e.oxw();return e.KtG(s.rollStarted())})("diceRolled",function(s){e.CHM(t);const a=e.oxw();return e.KtG(a.handleRoll(s))}),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("slot0",e.DdM(5,x))("slot1",e.DdM(6,Z))("slot2",e.DdM(7,A))("slot3",e.DdM(8,S))("canClick",!!t.chosenState)}}function nt(n,o){1&n&&(e.TgZ(0,"div",10)(1,"p",28),e._uU(2,"Visiting this state will be less effective"),e.qZA()())}function it(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"app-dice",29),e.NdJ("rollStarted",function(){e.CHM(t);const s=e.oxw();return e.KtG(s.rollStarted())})("diceRolled",function(s){e.CHM(t);const a=e.oxw();return e.KtG(a.handleRoll(s))}),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("slot0",e.DdM(5,x))("slot1",e.DdM(6,Z))("slot2",e.DdM(7,A))("slot3",e.DdM(8,S))("canClick",!!t.chosenState)}}let ot=(()=>{class n{constructor(t,i,s,a){this.router=t,this.modalCtrl=i,this.toastController=s,this.votes=a,this.chosenState=null,this.effective=!0,this.canBack=!0}ngOnInit(){this.isDemocrat=this.votes.getUserIsDem(),this.isThird=this.votes.getUserIsThird(),this.states=this.votes.getSortedStates()}inputChange(){console.log("On Changes"),this.effective=!this.chosenState?.protected}rollStarted(){this.canBack=!1}checkRecordCompletion(){}handleRoll(t){var i=this;return(0,d.Z)(function*(){let s=0;const a=i.chosenState.abbreviation;i.chosenState.protected&&(s=-1);const l=t;t=Math.floor(t/2)+s,i.votes.stateVisited(i.chosenState),i.chosenState&&(i.isDemocrat?i.votes.changeStateClimate(a,t,0):i.votes.changeStateClimate(a,0,t),i.openModal("You rolled a "+l+", your polling numbers go up by "+t+"% in "+i.chosenState.name))})()}toNextTurn(){this.router.navigateByUrl("/tabs/tab1/opponent",{replaceUrl:!0})}back(){this.router.navigateByUrl("/tabs/tab1",{replaceUrl:!0})}openModal(t,i="Results"){var s=this;return(0,d.Z)(function*(){const a=yield s.modalCtrl.create({component:_,componentProps:{message:t,title:i}});a.onDidDismiss().then(()=>{s.toNextTurn()}),a.present(),yield a.onWillDismiss()})()}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(u.F0),e.Y36(r.IN),e.Y36(r.yF),e.Y36(m.s))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-campaign"]],decls:32,vars:13,consts:[[3,"translucent"],["class","header-icon","src","../../../assets/images/republicanIcon.png",4,"ngIf"],["class","header-icon","src","../../../assets/images/democratIcon.png",4,"ngIf"],["fill","clear","id","click-triggerCa"],["name","help-circle-outline"],["trigger","click-triggerCa","triggerAction","click"],[3,"fullscreen"],[2,"margin-left","2px","margin-top","2px"],["size","small",1,"backbutton",3,"disabled","click"],["name","arrow-back-circle-outline"],[1,"center"],[2,"margin-top","14px","max-width","65%"],[2,"width","80%","margin-left","10%","border","1px black solid",3,"inset"],["placeholder","Select a state...",3,"ngModel","ionChange","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["class","center",4,"ngIf"],["val0","+0%","val1","+1%","val2","+2%","val3","+3%",3,"slot0","slot1","slot2","slot3","canClick","rollStarted","diceRolled",4,"ngIf"],["val0","-1%","val1","+0%","val2","+1%","val3","+2%",3,"slot0","slot1","slot2","slot3","canClick","rollStarted","diceRolled",4,"ngIf"],["src","../../../assets/images/republicanIcon.png",1,"header-icon"],["src","../../../assets/images/democratIcon.png",1,"header-icon"],[1,"ion-padding"],[3,"value"],[2,"height","160px","border-radius","8px","border","2px black solid","width","80%","left","10%"],["src","../../../assets/images/USmystery.png",2,"height","156px"],[2,"height","100px",3,"src"],[2,"font-size","18px"],[2,"color","black","margin-top","0px","position","relative","bottom","120px"],["val0","+0%","val1","+1%","val2","+2%","val3","+3%",3,"slot0","slot1","slot2","slot3","canClick","rollStarted","diceRolled"],[2,"color","red"],["val0","-1%","val1","+0%","val2","+1%","val3","+2%",3,"slot0","slot1","slot2","slot3","canClick","rollStarted","diceRolled"]],template:function(t,i){1&t&&(e.TgZ(0,"ion-header",0)(1,"ion-toolbar")(2,"ion-title"),e._uU(3," Visit a State "),e.YNc(4,Ve,1,0,"img",1),e.YNc(5,ze,1,0,"img",2),e.qZA(),e.TgZ(6,"ion-button",3),e._UZ(7,"ion-icon",4),e.qZA(),e.TgZ(8,"ion-popover",5),e.YNc(9,$e,11,0,"ng-template"),e.qZA()()(),e.TgZ(10,"ion-content",6)(11,"div",7)(12,"ion-button",8),e.NdJ("click",function(){return i.back()}),e._UZ(13,"ion-icon",9),e.TgZ(14,"em"),e._uU(15,"Back"),e.qZA()()(),e.TgZ(16,"div",10)(17,"h1",11),e._uU(18,"State Visit"),e.qZA()(),e.TgZ(19,"div",10)(20,"p"),e._uU(21,"Choose 1 state to visit. You will hold an in-person rally to raise support"),e.qZA()(),e.TgZ(22,"ion-list",12)(23,"ion-item")(24,"ion-select",13),e.NdJ("ionChange",function(){return i.inputChange()})("ngModelChange",function(a){return i.chosenState=a}),e.YNc(25,Xe,3,7,"ion-select-option",14),e.qZA()()(),e.YNc(26,Ke,3,0,"div",15),e.YNc(27,et,10,7,"div",15),e._UZ(28,"br"),e.YNc(29,tt,1,9,"app-dice",16),e.YNc(30,nt,3,0,"div",15),e.YNc(31,it,1,9,"app-dice",17),e.qZA()),2&t&&(e.Q6J("translucent",!1),e.xp6(4),e.Q6J("ngIf",!i.isDemocrat),e.xp6(1),e.Q6J("ngIf",i.isDemocrat),e.xp6(5),e.Q6J("fullscreen",!0),e.xp6(2),e.Q6J("disabled",!i.canBack),e.xp6(10),e.Q6J("inset",!0),e.xp6(2),e.Q6J("ngModel",i.chosenState),e.xp6(1),e.Q6J("ngForOf",i.states),e.xp6(1),e.Q6J("ngIf",!i.chosenState),e.xp6(1),e.Q6J("ngIf",i.chosenState),e.xp6(2),e.Q6J("ngIf",i.effective),e.xp6(1),e.Q6J("ngIf",!i.effective),e.xp6(1),e.Q6J("ngIf",!i.effective))},dependencies:[r.YG,r.W2,r.Gu,r.gu,r.Ie,r.q_,r.d8,r.t9,r.n0,r.sr,r.wd,r.QI,v.sg,v.O5,p.JJ,p.On,y,I],styles:["p[_ngcontent-%COMP%]{margin-top:2px;margin-bottom:2px}.backbutton[_ngcontent-%COMP%]{position:absolute}.center[_ngcontent-%COMP%]{margin-left:3px;margin-right:3px;font-size:large;text-align:center;display:flex;justify-content:center;align-items:center;left:50%}.header-icon[_ngcontent-%COMP%]{position:fixed;right:10px;max-height:30px;z-index:199999}"]}),n})(),st=(()=>{class n{getBoonEvents(){return[{title:"Lucky Break",description:"Your opponent is rocked by a scandal",points:1,imageSrc:"/assets/images/presidents/campaign.png",history:"Sometimes a bad opponent is more important than a good candidate...",politicanInvolved:"",yearInvolved:"",normalFactDisplay:!1,statesInvolved:[],choiceEvent:!1},{title:"Lucky Break",description:"You handle a current issue very well in the public eye",points:1,imageSrc:"/assets/images/presidents/campaign.png",history:"People often vote for a president who handles things well",politicanInvolved:"",yearInvolved:"",normalFactDisplay:!1,statesInvolved:[],choiceEvent:!1},{title:"Lucky Break",description:"A big swing in the economy occurs",points:1,imageSrc:"/assets/images/presidents/campaign.png",history:"The Economy is often one of the biggest things voters look at during an election",politicanInvolved:"",yearInvolved:"",normalFactDisplay:!1,statesInvolved:[],choiceEvent:!1}]}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),at=(()=>{class n{getEndorsementEvents(){return[{title:"Endorsement",description:"Oprah, queen bee of TV, endorses your presidential nomination",points:1,imageSrc:"/assets/images/presidents/44-obama.jpg",history:"Oprah endorsed President Obama even before he told everyone he was running!",politicanInvolved:"Barack Obama",yearInvolved:"2008",normalFactDisplay:!0,statesInvolved:[],choiceEvent:!1},{normalFactDisplay:!0,title:"Endorsement",description:"You receive a grudgingly given endorsement from your former opponent",points:2,imageSrc:"/assets/images/presidents/44-obama.jpg",history:"After dropping out of the Democratic Primary, Hillary Clinton gave her endorsement to her former opponent.",politicanInvolved:"Barack Obama",yearInvolved:"2008",statesInvolved:["NY","IN"],choiceEvent:!1},{normalFactDisplay:!0,title:"Endorsement",description:"Your opponent has been endorsed by famous actor, George Clooney",points:-3,imageSrc:"/assets/images/presidents/44-obama.jpg",history:'During an interview with "Good Morning America", Clooney praised the president-to-be and offered an endorsement.',politicanInvolved:"Barack Obama",yearInvolved:"2008",statesInvolved:["CA","FL"],choiceEvent:!1},{normalFactDisplay:!0,title:"Endorsement",description:"You have been endorsed by the Planned Parenthood Action Fund",points:1,imageSrc:"/assets/images/presidents/46-joe-biden.png",history:"This was a big endorsement coming after referendums in Kansas and Ohio on reproductive rights",politicanInvolved:"Joe Biden",yearInvolved:"2024",statesInvolved:["KS","OH"],choiceEvent:!1},{title:"Endorsement",description:"You have been endorsed by the NRA",points:1,imageSrc:"/assets/images/presidents/45-donald-trump.png",history:"This organization spent around $2.6 Million that year lobbying on firearm legislation",politicanInvolved:"Donald Trump",yearInvolved:"2016",normalFactDisplay:!0,statesInvolved:["TX","MI","GA","ID","MT"],choiceEvent:!1},{title:"Endorsement",description:"You have been endorsed by Emily's List",points:1,imageSrc:"/assets/images/presidents/46-joe-biden.png",history:"Reproductive rights are a central issue in the 2024 election",politicanInvolved:"Joe Biden",yearInvolved:"2024",normalFactDisplay:!0,statesInvolved:["DE","CT","NM","KS"],choiceEvent:!1},{title:"Endorsement",description:"Your opponet has been endorsed by Planned Parenthood Action Fund",points:-1,imageSrc:"/assets/images/presidents/hillary_clinton.jpg",history:"Reproductive rights were a central issue in the 2016 election",politicanInvolved:"Hillary Clinton",yearInvolved:"2016",normalFactDisplay:!0,statesInvolved:["VA","MD","IA"],choiceEvent:!1},{title:"Endorsement",description:"You are endorsed by a former president!",points:1,imageSrc:"/assets/images/presidents/43-bush.jpg",history:"He was endorsed by his father, George H W Bush, who had held office 8 years earlier",politicanInvolved:"George W Bush",yearInvolved:"2000",normalFactDisplay:!0,statesInvolved:[],choiceEvent:!1},{title:"Endorsement",description:"Your opponent is endorsed by a former president!",points:-1,imageSrc:"/assets/images/presidents/43-bush.jpg",history:"He was endorsed by his father, George H W Bush, who had held office 8 years earlier",politicanInvolved:"George W Bush",yearInvolved:"2000",normalFactDisplay:!0,statesInvolved:[],choiceEvent:!1},{title:"Endorsement",description:"You have been endorsed by the Speaker of the House",points:1,imageSrc:"/assets/images/presidents/39-carter.jpg",history:"Speaker of the house Carl Albert publicly endorsed Carter's candidacy",politicanInvolved:"Jimmy Carter",yearInvolved:"1976",normalFactDisplay:!0,statesInvolved:["ME","MT","NE","SC","UT","CO","CT","MS","LA"],choiceEvent:!1},{title:"Endorsement",description:"You have been endorsed by a large Newspaper in Ohio",points:1,imageSrc:"/assets/images/presidents/40-reagan.jpg",history:'Reagan was endorsed by "The Plain Dealer" of Clevand, Ohio',politicanInvolved:"Ronald Reagan",yearInvolved:"1980",normalFactDisplay:!0,statesInvolved:["OH"],choiceEvent:!1},{title:"Endorsement",description:"Your opponent has been endorsed by the governor of Michigan",points:-2,imageSrc:"/assets/images/presidents/32-roosevelt.jpg",history:"Bush was endorsed by the Governor of Michigan, John Engler",politicanInvolved:"George W Bush",yearInvolved:"2000",normalFactDisplay:!0,statesInvolved:["MI"],choiceEvent:!1},{title:"Endorsement",description:"Your opponent has been endorsed by the governor of Pennsylvania",points:-2,imageSrc:"/assets/images/presidents/43-bush.jpg",history:"Bush was endorsed by the Governor of Pennsylvania, Tom Ridge",politicanInvolved:"George W Bush",yearInvolved:"2000",normalFactDisplay:!0,statesInvolved:["PA"],choiceEvent:!1},{title:"Endorsement",description:"You have been endorsed by the governor of California",points:3,imageSrc:"/assets/images/presidents/32-roosevelt.jpg",history:"FDR was endorsed early on by the Governor of California, Hiran Johnson",politicanInvolved:"Franklin D Roosevelt",yearInvolved:"1932",normalFactDisplay:!0,statesInvolved:["CA"],choiceEvent:!1},{title:"Endorsement",description:"You have been endorsed by the governor of North Carolina",points:2,imageSrc:"/assets/images/presidents/32-roosevelt.jpg",history:"Trump was endorsed early on by the Governor of North Carolina, Pat McCrory",politicanInvolved:"Donald Trump",yearInvolved:"2016",normalFactDisplay:!0,statesInvolved:["NC"],choiceEvent:!1},{title:"Endorsement",description:"Your opponent has been endorsed by the governor of North Carolina",points:-2,imageSrc:"/assets/images/presidents/32-roosevelt.jpg",history:"Trump was endorsed early on by the Governor of North Carolina, Pat McCrory",politicanInvolved:"Donald Trump",yearInvolved:"2016",normalFactDisplay:!0,statesInvolved:["NC"],choiceEvent:!1},{title:"Endorsement",description:"Your opponent has been endorsed by the governor of Colorado",points:-2,imageSrc:"/assets/images/presidents/42-clinton.jpg",history:"Colorado Governor Roy Rudolf Romer was a national co-chairman of Clinton's campaign",politicanInvolved:"Bill Clinton",yearInvolved:"1996",normalFactDisplay:!0,statesInvolved:["CO"],choiceEvent:!1},{title:"Endorsement",description:"You have been endorsed by the governor of Arizona",points:1,imageSrc:"/assets/images/presidents/44-obama.jpg",history:"Janet Napolitano, Governor of Arizona, endorsed Barack Obama 10 months before the election took place",politicanInvolved:"Barack Obama",yearInvolved:"2008",normalFactDisplay:!0,statesInvolved:["AZ"],choiceEvent:!1},{title:"Endorsement",description:"You have been endorsed by a former vice president",points:1,imageSrc:"/assets/images/presidents/43-bush.jpg",history:"Former Vice President Dan Quayle gave his endorsement to this member of his party",politicanInvolved:"George W Bush",yearInvolved:"2000",normalFactDisplay:!0,statesInvolved:["CA","OR","WA","PA","NC","TN","WI","FL"],choiceEvent:!1},{title:"Endorsement",description:"You have been endorsed by the Mayor of Austin, TX",points:2,imageSrc:"/assets/images/presidents/46-joe-biden.png",history:"Joe Biden was endorsed by Steve Adler, the Mayor of Austin",politicanInvolved:"Joe Biden",yearInvolved:"2020",normalFactDisplay:!0,statesInvolved:["TX"],choiceEvent:!1},{title:"Endorsement",description:"You have been endorsed by the Mayor of Atlanta, GA",points:2,imageSrc:"/assets/images/presidents/46-joe-biden.png",history:"Joe Biden was endorsed by Keisha Lance Bottoms, the Mayor of Atlanta, GA",politicanInvolved:"Joe Biden",yearInvolved:"2020",normalFactDisplay:!0,statesInvolved:["GA"],choiceEvent:!1},{title:"Endorsement",description:"You have been endorsed by the Mayor of Cincinnati, OH",points:2,imageSrc:"/assets/images/presidents/46-joe-biden.png",history:"Joe Biden was endorsed by John Cranley, the Mayor of Cincinnati, Ohio",politicanInvolved:"Joe Biden",yearInvolved:"2020",normalFactDisplay:!0,statesInvolved:["OH"],choiceEvent:!1},{title:"Endorsement",description:"Your opponent has been endorsed by the Mayor of Salt Lake City",points:-3,imageSrc:"/assets/images/presidents/46-joe-biden.png",history:"Joe Biden was endorsed by Erin Mendenhall, the Mayor of Salt Lake City",politicanInvolved:"Joe Biden",yearInvolved:"2020",normalFactDisplay:!0,statesInvolved:["UT"],choiceEvent:!1},{title:"Endorsement",description:"Your opponent has been endorsed by the Mayor of Milwaukee, WI",points:-2,imageSrc:"/assets/images/presidents/46-joe-biden.png",history:"Joe Biden was endorsed by Tom Barrett, the Mayor of Milwaukee, WI",politicanInvolved:"Joe Biden",yearInvolved:"2020",normalFactDisplay:!0,statesInvolved:["WI"],choiceEvent:!1},{title:"Endorsement",description:"Your opponent has been endorsed by the Governor of Indiana",points:-2,imageSrc:"/assets/images/presidents/45-donald-trump.png",history:"Donald Trump was endorsed by Mike Pence, the Governor of IN, an Pence eventually became his Vice President!",politicanInvolved:"Donald Trump",yearInvolved:"2016",normalFactDisplay:!0,statesInvolved:["IN"],choiceEvent:!1},{title:"Endorsement",description:"You have been endorsed by The American Federation of Teachers",points:1,imageSrc:"/assets/images/presidents/42-clinton.jpg",history:"Education is often a top issue that voters care about.",politicanInvolved:"Bill Clinton",yearInvolved:"1996",normalFactDisplay:!0,statesInvolved:[],choiceEvent:!1},{title:"Endorsement",description:"Your opponent has been endorsed by The American Federation of Teachers",points:-1,imageSrc:"/assets/images/presidents/42-clinton.jpg",history:"Education is often a top issue that voters care about.",politicanInvolved:"Bill Clinton",yearInvolved:"1996",normalFactDisplay:!0,statesInvolved:[],choiceEvent:!1},{title:"Endorsement",description:"Your opponent has been endorsed by a Grassroots Organization",points:-1,imageSrc:"/assets/images/presidents/34-eisenhower.jpg",history:"A group called Citizens for Eisenhower helped raise money for his campaign.",politicanInvolved:"Dwight Eisenhower",yearInvolved:"1952",normalFactDisplay:!0,statesInvolved:[],choiceEvent:!1},{title:"Endorsement",description:"You have been endorsed by a Grassroots Organization",points:1,imageSrc:"/assets/images/presidents/34-eisenhower.jpg",history:"A group called Citizens for Eisenhower helped raise money for his campaign.",politicanInvolved:"Dwight Eisenhower",yearInvolved:"1952",normalFactDisplay:!0,statesInvolved:[],choiceEvent:!1}]}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),rt=(()=>{class n{getGaffeEvents(){return[{title:"Gaffe",description:"One of your thoughts doesn't translate well into words during an interview",points:-1,imageSrc:"/assets/images/presidents/43-bush.jpg",history:"During an event in Michigan, Bush said \u201cThe human and the fish can coexist peacefully\u201d during a discussion on energy",politicanInvolved:"George W Bush",yearInvolved:"2000",normalFactDisplay:!0,statesInvolved:["MI","PA","WI","OH","IL"],choiceEvent:!1},{title:"Gaffe",description:"One of your opponent's thoughts doesn't translate well into words during an interview",points:1,imageSrc:"/assets/images/presidents/43-bush.jpg",history:"During an event in Michigan, Bush said \u201cThe human and the fish can coexist peacefully\u201d during a discussion on energy",politicanInvolved:"George W Bush",yearInvolved:"2000",normalFactDisplay:!0,statesInvolved:["MI","PA","WI","OH","IL"],choiceEvent:!1},{title:"Gaffe",description:"You say the wrong number during a speech",points:-1,normalFactDisplay:!0,imageSrc:"/assets/images/presidents/44-obama.jpg",history:'During a campaign speech in Oregon, Obama accidently said: "I\'ve now been to 57 states"',politicanInvolved:"Barack Obama",yearInvolved:"2008",statesInvolved:["OR","ID","MT","WA","UT","NV","OK"],choiceEvent:!1},{title:"Gaffe",description:"You slip up while making a comparison during a speech",points:-2,imageSrc:"/assets/images/presidents/46-joe-biden.png",history:'During a speech in Iowa, Biden mispoke saying: "Poor kids are just as bright and just as talented as white kids" before immediately correcting himself',politicanInvolved:"Joe Biden",yearInvolved:"2020",normalFactDisplay:!0,statesInvolved:["TX","CA","FL","PA","NC","NY","IL"],choiceEvent:!1},{title:"Gaffe",description:"You misremember a common saying",points:-4,imageSrc:"/assets/images/presidents/43-bush.jpg",history:"During a speech in Nashville, Bush said: \"There's an old saying in Tennessee - I know it's in Texas, probably in Tennessee - that says, fool me once, shame on - shame on you. Fool me - you can't get fooled again.\"",politicanInvolved:"George W Bush",yearInvolved:"2004",normalFactDisplay:!0,statesInvolved:["TN","TX"],choiceEvent:!1},{title:"Gaffe",description:"One of your thoughts doesn't translate well into words during an interview",points:-2,imageSrc:"/assets/images/presidents/43-bush.jpg",history:"During an event in South Carolina, Bush said \u201cRarely is the question asked, is our children learning?\u201d during a discussion on education",politicanInvolved:"George W Bush",yearInvolved:"2000",normalFactDisplay:!0,statesInvolved:["SC","NC","GA"],choiceEvent:!1},{title:"Gaffe",description:"Your opponent misspeaks during a speach",points:2,imageSrc:"/assets/images/presidents/43-bush.jpg",history:'During an event in Bentonville, Arkansas, Bush said "They misunderestimate me."',politicanInvolved:"George W Bush",yearInvolved:"2000",normalFactDisplay:!0,statesInvolved:["AR","MO","TX"],choiceEvent:!1},{title:"Gaffe",description:"Your opponent says something silly",points:1,normalFactDisplay:!0,imageSrc:"/assets/images/presidents/40-reagan.jpg",history:'Reagan\'s opponent, Walter Mondale, said "Mr. Reagan will raise you taxes and so will I!"',politicanInvolved:"Ronald Reagan",yearInvolved:"1980",statesInvolved:["VA","NC","PA","ME","WI"],choiceEvent:!1},{title:"Gaffe",description:"Your opponent says something insensitive",points:1,imageSrc:"/assets/images/presidents/44-obama.jpg",history:'His opponent, Mitt Romney, said: "I\'m not concerned about the very poor."',politicanInvolved:"Barack Obama",yearInvolved:"2012",normalFactDisplay:!0,statesInvolved:["IA","WV","FL","AZ"],choiceEvent:!1}]}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),lt=(()=>{class n{getHotButtonEvents(){return[{title:"Hot Button Issue",description:"Border Security",points:1,imageSrc:"/assets/images/presidents/43-bush.jpg",history:"South westerners say they want you to increase Border Security. What promise do you make?",politicanInvolved:"",yearInvolved:"2004",normalFactDisplay:!1,statesInvolved:["CA","AZ","NM","TX"],statesInvolved2:["NV","CO","FL","TX"],choiceEvent:!0,choiceText1:"More Border Patrol",choiceText2:"Less Border Patrol",choicePoints1:2,choicePoints2:-2},{title:"Hot Button Issue",description:"National Healthcare",points:1,imageSrc:"/assets/images/presidents/43-bush.jpg",history:"People want to know your position on expanding Medicare",politicanInvolved:"",yearInvolved:"2004",normalFactDisplay:!1,statesInvolved:["ID","AZ","IA","OH"],statesInvolved2:["NM","IL","OR","WA"],choiceEvent:!0,choiceText1:"Expand Medicare",choiceText2:"Reduce Medicare",choicePoints1:-2,choicePoints2:-2},{title:"Hot Button Issue",description:"Car Company Bailout",points:1,imageSrc:"/assets/images/presidents/43-bush.jpg",history:'Car Companies in the midwest are seeking government funds in a "Bail Out" to avoid layoffs',politicanInvolved:"",yearInvolved:"2004",normalFactDisplay:!1,statesInvolved:["MI","WI","PA"],statesInvolved2:["MI","WI","PA"],choiceEvent:!0,choiceText1:"Bail out car company",choiceText2:"Don't Support Bail Out",choicePoints1:2,choicePoints2:-1},{title:"Hot Button Issue",description:"Coal Mining",points:2,imageSrc:"/assets/images/presidents/43-bush.jpg",history:"Appalacian Coal Miners want your support of coal mining, while New Englanders are asking you to support Green Energy. Which promise will you make?",politicanInvolved:"",yearInvolved:"2004",normalFactDisplay:!1,statesInvolved:["WV","KY","PA"],statesInvolved2:["NH","CT","ME"],choiceEvent:!0,choiceText1:"Support Mining",choiceText2:"Suport Green Energy",choicePoints1:2,choicePoints2:2},{title:"Hot Button Issue",description:"Water Conservation",points:1,imageSrc:"/assets/images/presidents/43-bush.jpg",history:"A South Western governor asks you to promise to spend more on Dams and Water Conservation",politicanInvolved:"",yearInvolved:"2004",normalFactDisplay:!1,statesInvolved:["NV","UT","AZ","WY"],statesInvolved2:["NV","UT","AZ","WY"],choiceEvent:!0,choiceText1:"Spend More",choiceText2:"Keep Spending the Same",choicePoints1:2,choicePoints2:-1},{title:"Hot Button Issue",description:"The Mississipi River Has Flooded!",points:2,imageSrc:"/assets/images/presidents/43-bush.jpg",history:"A reporter asks whether you support taking money from the defense budget to give aid to effected states.",politicanInvolved:"",yearInvolved:"2004",normalFactDisplay:!1,statesInvolved:["MS","MO","LA","AR","TN"],statesInvolved2:["MS","MO","LA","AR","TN"],choiceEvent:!0,choiceText1:"Promise aid money to flooded states",choiceText2:"Keep money in defense budget",choicePoints1:2,choicePoints2:-4},{title:"Hot Button Issue",description:"A Huricane has Stuck the East Coast!",points:2,imageSrc:"/assets/images/presidents/43-bush.jpg",history:"A reporter asks whether you support taking money from the National Parks budget to give aid to effected states.",politicanInvolved:"",yearInvolved:"2004",normalFactDisplay:!1,statesInvolved:["NC","SC","VA","MD"],statesInvolved2:["NC","SC","VA","MD"],choiceEvent:!0,choiceText1:"Promise aid money to East Coast states",choiceText2:"Keep money in defense budget",choicePoints1:2,choicePoints2:-2},{title:"Hot Button Issue",description:"New Military Base",points:2,imageSrc:"/assets/images/presidents/43-bush.jpg",history:"A new Miltary Base is being planned and will either be built in Florida or Georgia. A reporter asks which state you think should get the new Base.",politicanInvolved:"",yearInvolved:"2004",normalFactDisplay:!1,statesInvolved:["FL"],statesInvolved2:["GA"],choiceEvent:!0,choiceText1:"Florida",choiceText2:"Georgia",choicePoints1:2,choicePoints2:2},{title:"Hot Button Issue",description:"Supreme Court Vacancy",points:2,imageSrc:"/assets/images/presidents/43-bush.jpg",history:"A Vacancy has just opened on the Supreme Court! What kind of judge will you promise to nominate?",politicanInvolved:"",yearInvolved:"2004",normalFactDisplay:!1,statesInvolved:["WI","MI"],statesInvolved2:["MA","LA"],choiceEvent:!0,choiceText1:"A judge who can compromise when needed",choiceText2:"A judge who will never compromise their values",choicePoints1:2,choicePoints2:2}]}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ct=(()=>{class n{getMediaTourEvents(){return[{title:"Media Tour",description:"A National TV show covers you story",points:1,imageSrc:"/assets/images/presidents/32-roosevelt.jpg",history:"Franklin D Roosevelt was the first president to appear on TV during the 1939 World's Fair",politicanInvolved:"Franklin D Roosevelt",yearInvolved:"1940",normalFactDisplay:!1,statesInvolved:[],diceEvent:!0,choiceEvent:!1},{title:"Media Tour",description:"A National Radio show covers your story",points:1,imageSrc:"/assets/images/presidents/29-harding.jpg",history:"Warren G Harding was the first president to talk over the radio, giving a speech at the dedication of the Lincoln monument",politicanInvolved:"Warren G Harding",yearInvolved:"1920",normalFactDisplay:!1,statesInvolved:[],diceEvent:!0,choiceEvent:!1},{title:"Media Tour",description:"A popular website runs a big story on you",points:1,imageSrc:"/assets/images/presidents/42-clinton.jpg",history:"Bill Clinton was the president when the White House built their first website",politicanInvolved:"Bill Clinton",yearInvolved:"1996",normalFactDisplay:!1,statesInvolved:[],diceEvent:!0,choiceEvent:!1}]}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),dt=(()=>{class n{getSuperPacEvents(){return[{title:"Super Pac",description:"A Politcal Action Group ran ads for you in Michigan and Illinois",points:3,imageSrc:"/assets/images/presidents/campaign.png",normalFactDisplay:!1,history:"Super Pacs affect elections with money",politicanInvolved:"",yearInvolved:"",statesInvolved:["MI","IL"],choiceEvent:!1},{title:"Super Pac",description:"A Politcal Action Group ran ads for your opponent in Georgia and Mississippi",points:-3,imageSrc:"/assets/images/presidents/campaign.png",normalFactDisplay:!1,history:"Super Pacs affect elections with money",politicanInvolved:"",yearInvolved:"",statesInvolved:["MS","GA"],choiceEvent:!1},{title:"Super Pac",description:"A Politcal Action Group ran ads for your opponent in the South West",points:-2,imageSrc:"/assets/images/presidents/campaign.png",normalFactDisplay:!1,history:"Super Pacs affect elections with money",politicanInvolved:"",yearInvolved:"",statesInvolved:["NM","AZ","TX","NV"],choiceEvent:!1},{title:"Super Pac",description:"A Politcal Action Group ran ads for you in the South West",points:2,imageSrc:"/assets/images/presidents/campaign.png",normalFactDisplay:!1,history:"Super Pacs affect elections with money",politicanInvolved:"",yearInvolved:"",statesInvolved:["NM","AZ","TX","NV"],choiceEvent:!1},{title:"Super Pac",description:"A Politcal Action Group ran ads for you in Maine and New Hampshire",points:3,imageSrc:"/assets/images/presidents/campaign.png",normalFactDisplay:!1,history:"Super Pacs affect elections with money",politicanInvolved:"",yearInvolved:"",statesInvolved:["ME","NH"],choiceEvent:!1},{title:"Super Pac",description:"A Politcal Action Group ran ads for your opponent in Maine and New Hampshire",points:-2,imageSrc:"/assets/images/presidents/campaign.png",normalFactDisplay:!1,history:"Super Pacs affect elections with money",politicanInvolved:"",yearInvolved:"",statesInvolved:["ME","NH"],choiceEvent:!1},{title:"Super Pac",description:"A Politcal Action Group ran ads for your opponent in Virginia and West Virginia",points:-2,imageSrc:"/assets/images/presidents/campaign.png",normalFactDisplay:!1,history:"Super Pacs affect elections with money",politicanInvolved:"",yearInvolved:"",statesInvolved:["VA","WV"],choiceEvent:!1},{title:"Super Pac",description:"A Politcal Action Group ran ads for your opponent in Oregon and Washington",points:-4,imageSrc:"/assets/images/presidents/campaign.png",normalFactDisplay:!1,history:"Super Pacs affect elections with money",politicanInvolved:"",yearInvolved:"",statesInvolved:["OR","WA"],choiceEvent:!1},{title:"Super Pac",description:"A Politcal Action Group ran ads for you in the Carolinas",points:2,imageSrc:"/assets/images/presidents/campaign.png",normalFactDisplay:!1,history:"Super Pacs affect elections with money",politicanInvolved:"",yearInvolved:"",statesInvolved:["SC","NC"],choiceEvent:!1},{title:"Super Pac",description:"A Politcal Action Group ran ads for your opponent in Florida",points:-3,imageSrc:"/assets/images/presidents/campaign.png",normalFactDisplay:!1,history:"Super Pacs affect elections with money",politicanInvolved:"",yearInvolved:"",statesInvolved:["FL"],choiceEvent:!1},{title:"Super Pac",description:"A Politcal Action Group ran ads for your opponent in Texas",points:-2,imageSrc:"/assets/images/presidents/campaign.png",normalFactDisplay:!1,history:"Super Pacs affect elections with money",politicanInvolved:"",yearInvolved:"",statesInvolved:["TX"],choiceEvent:!1},{title:"Super Pac",description:"A Politcal Action Group ran ads for you in Wisconsin and Minnesota",points:2,imageSrc:"/assets/images/presidents/campaign.png",normalFactDisplay:!1,history:"Super Pacs affect elections with money",politicanInvolved:"",yearInvolved:"",statesInvolved:["WI","MN"],choiceEvent:!1},{title:"Super Pac",description:"A Politcal Action Group ran ads for your opponent in Wisconsin and Minnesota",points:-3,imageSrc:"/assets/images/presidents/campaign.png",normalFactDisplay:!1,history:"Super Pacs affect elections with money",politicanInvolved:"",yearInvolved:"",statesInvolved:["WI","MN"],choiceEvent:!1},{title:"Super Pac",description:"A Politcal Action Group ran ads for your opponent in Colorado and Nevada",points:-3,imageSrc:"/assets/images/presidents/campaign.png",normalFactDisplay:!1,history:"Super Pacs affect elections with money",politicanInvolved:"",yearInvolved:"",statesInvolved:["CO","NV"],choiceEvent:!1},{title:"Super Pac",description:"A Politcal Action Group ran ads for you in Missouri, Arkansas and Louisianna",points:2,imageSrc:"/assets/images/presidents/campaign.png",normalFactDisplay:!1,history:"Super Pacs affect elections with money",politicanInvolved:"",yearInvolved:"",statesInvolved:["MO","AR","LA"],choiceEvent:!1}]}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),pt=(()=>{class n{getScandalEvents(){return[{title:"Scandal",description:"Your opponent spreads a bizarre rumour about you. Voters find this distasteful.",points:-2,imageSrc:"/assets/images/presidents/09-harrison.jpg",history:'Known as "The Dead Cow Campaign", Harrison\'s opponent falsely claimed that he was courtmartialed for killing a cow while in the military',politicanInvolved:"William Henry Harrison",yearInvolved:"1840",normalFactDisplay:!0,statesInvolved:[],choiceEvent:!1},{title:"Scandal",description:"Your running mate accepted bribes.",points:-2,imageSrc:"/assets/images/presidents/18-grant.jpg",history:'Known as "The Credit Mobilier Scandal", A railroad company gave Senators money in exchange for passing laws. These included Grant\'s Vice President',politicanInvolved:"Ulysses S. Grant",yearInvolved:"1872",normalFactDisplay:!0,statesInvolved:[],choiceEvent:!1},{title:"Scandal",description:"Your opponent is revealed to have an illegitimate child",points:2,imageSrc:"assets/images/presidents/22-24-cleveland.jpg",history:'After discovering Cleveland had fathered a son out of wedlock, his opponent taunted him with the chant: "Ma, Ma, where\'s my Pa? In the White House Ha Ha Ha!" ',politicanInvolved:"Grover Cleveland",yearInvolved:"1884",normalFactDisplay:!0,statesInvolved:[],choiceEvent:!1},{title:"Scandal",description:"A leak from private fundraising event reveals some bad comments you made",points:-2,imageSrc:"assets/images/presidents/44-obama.jpg",history:'A leak from a fundraiser showed President Obama said: "People in rural areas are bitter about their lives and cling to their guns and religion."',politicanInvolved:"Barack Obama",yearInvolved:"2012",normalFactDisplay:!0,statesInvolved:[],choiceEvent:!1},{title:"Scandal",description:"A leak from private fundraising event reveals some bad comments your opponent made",points:2,imageSrc:"assets/images/presidents/44-obama.jpg",history:'A leak from a fundraiser showed President Obama said: "People in rural areas are bitter about their lives and cling to their guns and religion."',politicanInvolved:"Barack Obama",yearInvolved:"2012",normalFactDisplay:!0,statesInvolved:[],choiceEvent:!1},{title:"Scandal",description:"Your Cabinet Member's family life interferes with the election",points:-2,imageSrc:"assets/images/presidents/07-jackson.jpg",history:'Called "The Petticoat Affair", Jackson\'s Secretary of War married an unpopular woman. Several Cabinet Members resigned after Jackson got angry with them for their reception of her.',politicanInvolved:"Andrew Jackson",yearInvolved:"1832",normalFactDisplay:!0,statesInvolved:[],choiceEvent:!1},{title:"Scandal",description:"Media discovers that you were unfaithful to your spouse",points:-2,imageSrc:"assets/images/presidents/42-clinton.jpg",history:"President Clinton had inappropriate relations with a White House intern, and lied under oath about it.",politicanInvolved:"Bill Clinton",yearInvolved:"1996",normalFactDisplay:!0,statesInvolved:[],choiceEvent:!1},{title:"Scandal",description:"Media discovers that your opponent was unfaithful to their spouse",points:2,imageSrc:"assets/images/presidents/42-clinton.jpg",history:"President Clinton had inappropriate relations with a White House intern, and lied under oath about it.",politicanInvolved:"Bill Clinton",yearInvolved:"1996",normalFactDisplay:!0,statesInvolved:[],choiceEvent:!1},{title:"Scandal",description:"Your opponent's company has engaged in some shady practices.",points:2,imageSrc:"assets/images/presidents/romney.jpg",history:"A company Mitt Romney invested in was accused of causing a woman's death by firing her.",politicanInvolved:"Mitt Romney",yearInvolved:"2012",normalFactDisplay:!0,statesInvolved:[],choiceEvent:!1},{title:"Scandal",description:"You were caught spying on your opponet's campaign headquarters.",points:-2,imageSrc:"assets/images/presidents/romney.jpg",history:'Known as the "Watergate Scandal", Nixon\'s team broke into the Watergate Hotel to steal information, and he eventually resigned as a consequence.',politicanInvolved:"Richard Nixon",yearInvolved:"1972",normalFactDisplay:!0,statesInvolved:[],choiceEvent:!1},{title:"Scandal",description:"An old recording shows your opponent saying something extremely distasteful.",points:2,imageSrc:"/assets/images/presidents/45-donald-trump.png",history:"An Access Hollywood tape showed Trump boasting about criminal sexual violence",politicanInvolved:"Donald Trump",yearInvolved:"2016",normalFactDisplay:!0,statesInvolved:[],choiceEvent:!1}]}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),T=(()=>{class n{constructor(t,i,s,a,l,c,h){this.boon=t,this.endorsement=i,this.gaffe=s,this.hotButton=a,this.mediaTour=l,this.pac=c,this.scandal=h}getScandalEvents(){return this.scandal.getScandalEvents()}getGaffeEvents(){return this.gaffe.getGaffeEvents()}getBoonEvents(){return this.boon.getBoonEvents()}getEndorsementEvents(){return this.endorsement.getEndorsementEvents()}getSuperPacEvents(){return this.pac.getSuperPacEvents()}getMediaTourEvents(){return this.mediaTour.getMediaTourEvents()}getHotButtonEvents(){return this.hotButton.getHotButtonEvents()}getTurns(t=!1){let i=["It is your first turn! Each turn you get to choose 1 action. Click on one of the options below! Your opponent will go next.","Good job in Round 1! Tap the Map/Polls icon at the bottom of the page to see how you are doing in the Polls.","Welcome to Round 3! Have you tried fundraising yet?","It is Round 4.","It is Round 5. Are you paying attention to your opponent's moves? They might affect your strategy.","It is Round 6.","It is Round 7. ","It is Round 8. You are half way to the Election!","It is Round 9. Sometimes it pays off to go after a state that seems out of reach...","It is Round 10. I hope you get a good Event Card this time...","It is Round 11. ","It is Round 12. You are doing great. I would vote for you.","It is Round 13. ","It is Round 14. We are three rounds away! Check the Map for which last states to target.","It is Round 15. ","It is Round 16. This is your last move before election day! Make it count!"];return t&&(i=["It is your first turn! Each turn you get to choose 1 action. Click on one of the options below! Your opponent will go next.","Good job in Round 1! Tap the Map/Polls icon at the bottom of the page to see how you are doing in the Polls.","Welcome to Round 3! Have you tried fundraising yet?","It is Round 4.","It is Round 5. Are you paying attention to your opponent's moves? They might affect your strategy.","It is Round 6.","It is Round 7. ","It is Round 8. ","It is Round 9. Sometimes it pays off to go after a state that seems out of reach...","It is Round 10. I hope you get a good Event Card this time...","It is Round 11. ","It is Round 12. ","It is Round 13. Remember to check the MAP often!","It is Round 14. ","It is Round 15. ","It is Round 16. ","It is Round 17. You are half way to the Election!","It is Round 18. ","It is Round 19. ","It is Round 20. ","It is Round 21. You are doing great!","It is Round 22. ","It is Round 23. ","It is Round 24. Keep it up!","It is Round 25. ","It is Round 26. ","It is Round 27. ","It is Round 28. ","It is Round 29. We are three rounds away! Check the Map for which last states to target.","It is Round 30. ","It is Round 31. ","It is Round 32. This is your last move before election day! Make it count!"]),i}getFundraisingFacts(){return[{presidentIcon:"/assets/images/presidents/44-obama.jpg",eventHistory:"Barack Obama spent $730 Million during the 2008 election"},{presidentIcon:"/assets/images/presidents/37-nixon.jpg",eventHistory:"Richard Nixon spent $25.4 Million during the 1968 election"},{presidentIcon:"/assets/images/presidents/39-carter.jpg",eventHistory:"Jimmy Carter spent $33.4 Million during the 1976 election"},{presidentIcon:"/assets/images/presidents/40-reagan.jpg",eventHistory:"Ronald Reagan spent $57.7 Million during the 1980 election"},{presidentIcon:"/assets/images/presidents/41-bush.jpg",eventHistory:"George H W Bush spent $80 Million during the 1988 election"},{presidentIcon:"/assets/images/presidents/42-clinton.jpg",eventHistory:"Bill Clinton spent $107 Million during the 1992 election"},{presidentIcon:"/assets/images/presidents/43-bush.jpg",eventHistory:"George W Bush spent $186 Millon during the 2000 election"}]}}return n.\u0275fac=function(t){return new(t||n)(e.LFG(st),e.LFG(at),e.LFG(rt),e.LFG(lt),e.LFG(ct),e.LFG(dt),e.LFG(pt))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function gt(n,o){1&n&&e._UZ(0,"img",17)}function vt(n,o){1&n&&e._UZ(0,"img",18)}function ut(n,o){1&n&&(e.TgZ(0,"ion-content",19)(1,"h3"),e._uU(2,"Special Event"),e.qZA(),e.TgZ(3,"p"),e._uU(4,"There are tons of events that have effected previous elections. The events could help you, or hurt you. It is always a good idea to check the MAP tab after a special event to see how the race has changed."),e.qZA()())}function mt(n,o){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.hij("This moves the National Climate ",-t.eventPoints," points toward your opponent")}}function ht(n,o){1&n&&(e.TgZ(0,"p"),e._uU(1,"The National Climate is unaffected"),e.qZA())}function ft(n,o){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.hij("This moves the National Climate ",t.eventPoints," points in your favor")}}function _t(n,o){if(1&n&&(e.TgZ(0,"div",12),e.YNc(1,mt,2,1,"p",14),e.YNc(2,ht,2,0,"p",14),e.YNc(3,ft,2,1,"p",14),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",t.eventPoints<0),e.xp6(1),e.Q6J("ngIf",0===t.eventPoints),e.xp6(1),e.Q6J("ngIf",t.eventPoints>0)}}function yt(n,o){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.AsE("This moves the Climate ",-t.eventPoints," points toward your opponent in ",t.statesInvolvedString,"")}}function Tt(n,o){1&n&&(e.TgZ(0,"p"),e._uU(1,"This state is now polling EVEN for Republican and Democrat"),e.qZA())}function bt(n,o){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.AsE("This moves the Climate ",t.eventPoints," points in your favor in ",t.statesInvolvedString,"")}}function It(n,o){if(1&n&&(e.TgZ(0,"div",12),e.YNc(1,yt,2,2,"p",14),e.YNc(2,Tt,2,0,"p",14),e.YNc(3,bt,2,2,"p",14),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",t.eventPoints<0),e.xp6(1),e.Q6J("ngIf",0===t.eventPoints),e.xp6(1),e.Q6J("ngIf",t.eventPoints>0)}}function xt(n,o){if(1&n&&(e.TgZ(0,"div"),e.YNc(1,_t,4,3,"div",20),e.YNc(2,It,4,3,"div",20),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",0===t.statesInvolved.length),e.xp6(1),e.Q6J("ngIf",0!==t.statesInvolved.length)}}function Zt(n,o){1&n&&(e.TgZ(0,"div")(1,"div",12)(2,"p"),e._uU(3,"Roll to see if this hurts you, or helps you"),e.qZA()()())}function At(n,o){if(1&n&&(e.TgZ(0,"div")(1,"div",12)(2,"p"),e._uU(3),e.qZA()()()),2&n){const t=e.oxw();e.xp6(3),e.Oqu(null==t.currentEvent?null:t.currentEvent.history)}}const St=function(){return[1,2]},Ct=function(){return[3,4,5,6]};function wt(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"div",21)(1,"app-dice",22),e.NdJ("diceRolled",function(s){e.CHM(t);const a=e.oxw();return e.KtG(a.handleDiceRoll(s))}),e.qZA()()}2&n&&(e.xp6(1),e.Q6J("slot0",e.DdM(2,St))("slot1",e.DdM(3,Ct)))}function Pt(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"div"),e._UZ(1,"br"),e.TgZ(2,"div",12),e._uU(3," Your choice will affect 3-5 states. "),e.qZA(),e.TgZ(4,"div",12),e._uU(5," You can help your standing... or hurt it. "),e.qZA(),e._UZ(6,"br"),e.TgZ(7,"div",12)(8,"ion-button",23),e.NdJ("click",function(){e.CHM(t);const s=e.oxw();return e.KtG(s.handleRollToast(null==s.currentEvent?null:s.currentEvent.choicePoints1,null==s.currentEvent?null:s.currentEvent.statesInvolved))}),e._uU(9),e.qZA()(),e.TgZ(10,"div",12)(11,"ion-button",23),e.NdJ("click",function(){e.CHM(t);const s=e.oxw();return e.KtG(s.handleRollToast(null==s.currentEvent?null:s.currentEvent.choicePoints2,null==s.currentEvent?null:s.currentEvent.statesInvolved2))}),e._uU(12),e.qZA()()()}if(2&n){const t=e.oxw();e.xp6(9),e.Oqu(null==t.currentEvent?null:t.currentEvent.choiceText1),e.xp6(3),e.Oqu(null==t.currentEvent?null:t.currentEvent.choiceText2)}}function Et(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"div")(1,"div",12)(2,"ion-button",24),e.NdJ("click",function(){e.CHM(t);const s=e.oxw();return e.KtG(s.handleRoll(s.eventPoints,s.statesInvolved,null))}),e._uU(3,"Next"),e.qZA()()()}}function Mt(n,o){if(1&n&&(e.TgZ(0,"p",32),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.AsE("This event happened to ",t.eventPersonInvolved," during the election of ",t.eventYear,"")}}function kt(n,o){if(1&n&&(e.TgZ(0,"div",25)(1,"ul",26)(2,"li",27),e._uU(3,"Fun Fact"),e.qZA(),e.TgZ(4,"div",28),e.YNc(5,Mt,2,2,"p",29),e._UZ(6,"img",30),e.TgZ(7,"p",31),e._uU(8),e.qZA()()()()),2&n){const t=e.oxw();e.xp6(5),e.Q6J("ngIf",t.normalFactDisplay),e.xp6(1),e.Q6J("src",t.eventIcon,e.LSH),e.xp6(2),e.Oqu(t.eventHistory)}}let Dt=(()=>{class n{constructor(t,i,s,a,l){this.modalCtrl=t,this.router=i,this.votes=s,this.toastController=a,this.textService=l,this.currentIndex=0}ngOnInit(){if(this.currentIndex=this.votes.round-2,this.isDemocrat=this.votes.isDemocrat,this.scandalEvents=this.textService.getScandalEvents(),this.gaffeEvents=this.textService.getGaffeEvents(),this.boonEvents=this.textService.getBoonEvents(),this.endorsementEvents=this.textService.getEndorsementEvents(),this.hotButtonEvents=this.textService.getHotButtonEvents(),this.mediaTourEvents=this.textService.getMediaTourEvents(),this.superPacEvents=this.textService.getSuperPacEvents(),this.currentEvent=this.getCurrentEvent(),this.eventTitle=this.currentEvent.title,this.eventDescription=this.currentEvent.description,this.eventHistory=this.currentEvent.history,this.eventIcon=this.currentEvent.imageSrc,this.eventYear=this.currentEvent.yearInvolved,this.eventPersonInvolved=this.currentEvent.politicanInvolved,this.eventPoints=this.currentEvent.points,this.normalFactDisplay=this.currentEvent.normalFactDisplay,this.statesInvolved=this.currentEvent.statesInvolved,this.statesInvolvedString="",1===this.statesInvolved.length)this.statesInvolvedString=" "+this.statesInvolved[0];else{for(const t of this.statesInvolved)this.statesInvolvedString+=" ",this.statesInvolvedString+=t,this.statesInvolvedString+=",";this.statesInvolvedString=this.statesInvolvedString.substring(0,this.statesInvolvedString.length-1),this.statesInvolvedString=this.statesInvolvedString.slice(0,this.statesInvolvedString.length-3)+" and"+this.statesInvolvedString.slice(this.statesInvolvedString.length-3)}}getCurrentEvent(){const t=this.getCurrentEventType();return"superPac"===t?this.superPacEvents[Math.floor(Math.random()*this.superPacEvents.length)]:"endorsement"===t?this.endorsementEvents[Math.floor(Math.random()*this.endorsementEvents.length)]:"boon"===t?this.boonEvents[Math.floor(Math.random()*this.boonEvents.length)]:"mediaTour"===t?this.mediaTourEvents[Math.floor(Math.random()*this.mediaTourEvents.length)]:"hotButton"===t?this.hotButtonEvents[Math.floor(Math.random()*this.hotButtonEvents.length)]:"gaffe"===t?this.gaffeEvents[Math.floor(Math.random()*this.gaffeEvents.length)]:"scandal"===t?this.scandalEvents[Math.floor(Math.random()*this.scandalEvents.length)]:this.allEvents[0]}getCurrentEventType(){const t=Math.floor(93*Math.random());return t>95?"boon":t>80?"mediaTour":t>60?"endorsement":t>45?"superPac":t>20?"hotButton":t>6?"gaffe":(this.votes.scandalDrawn(),"scandal")}handleDiceRoll(t){var i=this;return(0,d.Z)(function*(){i.handleRollToast(t<=2?-1:1,[])})()}handleRollToast(t,i){var s=this;return(0,d.Z)(function*(){let a="",l="",c="";if(0===i.length)t<0?(c="Bad news...",l="You fall "+t+"% in the polls in every state"):(c="Good News!",l="You gain "+t+"% in the polls in every state");else{if(1===i.length)a=" "+i[0];else{for(const h of i)a+=" ",a+=h,a+=",";a=a.substring(0,a.length-1),a=a.slice(0,a.length-3)+" and"+a.slice(a.length-3)}t<0?(l="This moves the Climate "+-t+" points toward your opponent in "+a,c="Tough luck..."):(c="Smart Choice!",l="This moves the Climate "+t+" points in your favor in "+a)}s.handleRoll(t,i,l,c)})()}handleRoll(t,i,s,a){var l=this;return(0,d.Z)(function*(){if(0===i.length)l.isDemocrat?l.votes.changeNationalClimate(t/2,-t/2):l.votes.changeNationalClimate(-t/2,t/2);else for(const c of i)l.isDemocrat?l.votes.changeStateClimate(c,t/2,-t/2):l.votes.changeStateClimate(c,-t/2,t/2);s?l.openModal(s,a):l.endEvent()})()}openModal(t,i="Results"){var s=this;return(0,d.Z)(function*(){const a=yield s.modalCtrl.create({component:_,componentProps:{message:t,title:i}});a.onDidDismiss().then(()=>{s.endEvent()}),a.present(),yield a.onWillDismiss()})()}checkRecordCompletion(){}endEvent(){this.router.navigateByUrl("/tabs/tab1",{replaceUrl:!0})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(r.IN),e.Y36(u.F0),e.Y36(m.s),e.Y36(r.yF),e.Y36(T))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-event"]],decls:28,vars:13,consts:[[3,"translucent"],[1,"ion-text-center"],["class","header-icon","src","../../../assets/images/republicanIcon.png",4,"ngIf"],["class","header-icon","src","../../../assets/images/democratIcon.png",4,"ngIf"],["fill","clear","id","click-triggerEvent"],["name","help-circle-outline"],["trigger","click-triggerEvent","triggerAction","click"],[3,"fullscreen"],[1,"card"],[1,"center",2,"margin-top","0px","margin-bottom","0px"],[2,"margin-top","2px","margin-bottom","0px"],[2,"color","white","border-width","1px"],[1,"center"],[2,"margin-top","1px"],[4,"ngIf"],["class","dice",4,"ngIf"],["id","navcontainer",4,"ngIf"],["src","../../../assets/images/republicanIcon.png",1,"header-icon"],["src","../../../assets/images/democratIcon.png",1,"header-icon"],[1,"ion-padding"],["class","center",4,"ngIf"],[1,"dice"],["val0","-1%","val1","+1%",3,"slot0","slot1","diceRolled"],[1,"button43","ion-text-wrap",2,"max-width","90%",3,"click"],[1,"button43",3,"click"],["id","navcontainer"],["id","navlist"],["id","active"],[1,"funfact"],["style","margin-bottom: 0;",4,"ngIf"],[2,"border-radius","50%","border","2px solid black","width","50px","height","50px","padding-top","0","margin-bottom","0",3,"src"],[2,"margin-top","0"],[2,"margin-bottom","0"]],template:function(t,i){1&t&&(e.TgZ(0,"ion-header",0)(1,"ion-toolbar")(2,"ion-title",1),e._uU(3," Special Event Card "),e.YNc(4,gt,1,0,"img",2),e.YNc(5,vt,1,0,"img",3),e.qZA(),e.TgZ(6,"ion-button",4),e._UZ(7,"ion-icon",5),e.qZA(),e.TgZ(8,"ion-popover",6),e.YNc(9,ut,5,0,"ng-template"),e.qZA()()(),e.TgZ(10,"ion-content",7),e._UZ(11,"br"),e.TgZ(12,"div",8)(13,"div",9)(14,"h1",10),e._uU(15),e.qZA()(),e._UZ(16,"hr",11)(17,"div",12),e.TgZ(18,"div",12)(19,"h2",13),e._uU(20),e.qZA()(),e.YNc(21,xt,3,2,"div",14),e.YNc(22,Zt,4,0,"div",14),e.YNc(23,At,4,1,"div",14),e.qZA(),e.YNc(24,wt,2,4,"div",15),e.YNc(25,Pt,13,2,"div",14),e.YNc(26,Et,4,0,"div",14),e.YNc(27,kt,9,3,"div",16),e.qZA()),2&t&&(e.Q6J("translucent",!1),e.xp6(4),e.Q6J("ngIf",!i.isDemocrat),e.xp6(1),e.Q6J("ngIf",i.isDemocrat),e.xp6(5),e.Q6J("fullscreen",!0),e.xp6(5),e.Oqu(i.eventTitle),e.xp6(5),e.Oqu(i.eventDescription),e.xp6(1),e.Q6J("ngIf",!(null!=i.currentEvent&&i.currentEvent.choiceEvent||null!=i.currentEvent&&i.currentEvent.diceEvent)),e.xp6(1),e.Q6J("ngIf",null==i.currentEvent?null:i.currentEvent.diceEvent),e.xp6(1),e.Q6J("ngIf",null==i.currentEvent?null:i.currentEvent.choiceEvent),e.xp6(1),e.Q6J("ngIf",null==i.currentEvent?null:i.currentEvent.diceEvent),e.xp6(1),e.Q6J("ngIf",null==i.currentEvent?null:i.currentEvent.choiceEvent),e.xp6(1),e.Q6J("ngIf",!(null!=i.currentEvent&&i.currentEvent.choiceEvent||null!=i.currentEvent&&i.currentEvent.diceEvent)),e.xp6(1),e.Q6J("ngIf",!!i.eventPersonInvolved))},dependencies:[r.YG,r.W2,r.Gu,r.gu,r.d8,r.sr,r.wd,v.O5,y],styles:[".card[_ngcontent-%COMP%]{border:#7f7ffe 4px solid;border-radius:8px;background-color:#c0c0ff;width:90%;margin-left:5%;margin-right:5%}.dice[_ngcontent-%COMP%]{margin-top:4px}.center[_ngcontent-%COMP%]{margin-left:3px;margin-right:3px;font-size:large;text-align:center;display:flex;justify-content:center;align-items:center;left:50%}#navcontainer[_ngcontent-%COMP%]{margin-left:5%;margin-right:5%;display:block;width:90%}#navlist[_ngcontent-%COMP%]{padding:3px 0;margin-right:2px}#navlist[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{padding-left:2px;padding-right:2px;border-radius:2px;border-bottom:2px solid #999999;background:#999999;list-style:none;margin-left:3px;border-top:2px solid #999999;border-left:2px solid #999999;border-right:2px solid #999999;left:5%;color:#000;display:inline;position:relative;top:1px}.header-icon[_ngcontent-%COMP%]{position:fixed;right:10px;max-height:30px;z-index:199999}.funfact[_ngcontent-%COMP%]{border-radius:4px;border:2px solid #505050;font-size:large;text-align:center;display:block;justify-content:center;align-items:center;left:50%}p[_ngcontent-%COMP%]{margin-top:10px}#aid[_ngcontent-%COMP%]{animation:flyaid 15s linear;top:100vw;left:0}#title[_ngcontent-%COMP%]{animation:flytitle 15s linear;top:100vw;left:0}#info1[_ngcontent-%COMP%]{animation:flyinfo1 15s linear;top:100vw;left:0}#info2[_ngcontent-%COMP%]{animation:flyinfo2 15s linear;top:100vw;left:0}#info3[_ngcontent-%COMP%]{animation:flyinfo3 15s linear;top:100vw;left:0}#info4[_ngcontent-%COMP%]{animation:flyinfo4 15s linear;top:100vw;left:0}#info5[_ngcontent-%COMP%]{animation:flyinfo5 15s linear;top:100vw;left:0}#info6[_ngcontent-%COMP%]{animation:flyinfo6 15s linear;top:100vw;left:0}#ready[_ngcontent-%COMP%]{animation:flyready 15s linear;top:100vw;left:0}@keyframes flyaid{0%{transform:translate(110vw,-90vw);opacity:.75}8%{transform:translateY(-90vw);opacity:.75}15%{transform:translateY(-90vw);opacity:.75}17%{transform:translateY(-75vw);opacity:.75}25%{transform:translateY(-75vw);opacity:.75}27%{transform:translateY(-60vw);opacity:.75}40%{transform:translateY(-60vw);opacity:.75}42%{transform:translateY(-42vw);opacity:.75}50%{transform:translateY(-42vw);opacity:.75}52%{transform:translateY(-24vw);opacity:.75}70%{transform:translateY(-24vw);opacity:.75}72%{transform:translate(0);opacity:.75}}@keyframes flytitle{0%{transform:translate(110vw);opacity:.75}10%{transform:translate(110vw);opacity:.75}12%{transform:translate(0);opacity:1}}@keyframes flyinfo1{0%{transform:translate(110vw);opacity:.75}15%{transform:translate(110vw);opacity:.75}17%{transform:translate(0);opacity:1}}@keyframes flyinfo2{0%{transform:translate(110vw);opacity:.75}25%{transform:translate(110vw);opacity:.75}27%{transform:translate(0);opacity:1}}@keyframes flyinfo3{0%{transform:translate(110vw);opacity:.75}40%{transform:translate(110vw);opacity:.75}42%{transform:translate(0);opacity:1}}@keyframes flyinfo4{0%{transform:translate(110vw);opacity:.75}50%{transform:translate(110vw);opacity:.75}52%{transform:translate(0);opacity:1}}@keyframes flyinfo5{0%{transform:translate(110vw);opacity:.75}70%{transform:translate(110vw);opacity:.75}72%{transform:translate(0);opacity:1}}@keyframes flyinfo6{0%{transform:translate(110vw);opacity:.75}85%{transform:translate(110vw);opacity:.75}87%{transform:translate(0);opacity:1}}@keyframes flyready{0%{transform:translate(110vw);opacity:.75}95%{transform:translate(110vw);opacity:.75}to{transform:translate(0);opacity:1}}"]}),n})();function Nt(n,o){1&n&&(e.TgZ(0,"ion-content",14)(1,"h3"),e._uU(2,"Special Event"),e.qZA(),e.TgZ(3,"p"),e._uU(4,"Every 2 rounds you will draw a special event card. These could help you, or hurt you. Good luck!"),e.qZA()())}let Yt=(()=>{class n{constructor(t,i){this.route=t,this.votes=i,this.imgSrc="Deck1",this.imgSrcs=["Deck1","Deck2","Deck3","Deck4","Deck5","Deck6","Deck7","Deck8","Deck9","Deck10","Deck11","Deck12","Deck13","Deck14","Deck15","Deck16","Deck17"]}ngOnInit(){this.cycleCards()}cycleCards(){var t=this;return(0,d.Z)(function*(){for(const i of t.imgSrcs)t.imgSrc=i,yield new Promise(s=>setTimeout(s,130));for(const i of t.imgSrcs)t.imgSrc=i,yield new Promise(s=>setTimeout(s,130));for(const i of t.imgSrcs)t.imgSrc=i,yield new Promise(s=>setTimeout(s,130));for(const i of t.imgSrcs)t.imgSrc=i,yield new Promise(s=>setTimeout(s,130));for(const i of t.imgSrcs)t.imgSrc=i,yield new Promise(s=>setTimeout(s,130));for(const i of t.imgSrcs)t.imgSrc=i,yield new Promise(s=>setTimeout(s,130))})()}continue(){this.route.navigateByUrl("/tabs/tab1/event")}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(u.F0),e.Y36(m.s))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-event-welcome-page"]],decls:28,vars:3,consts:[[3,"translucent"],["fill","clear","id","click-triggerEW"],["name","help-circle-outline"],["trigger","click-triggerEW","triggerAction","click"],[3,"fullscreen"],[1,"ion-no-padding","bg-image"],[1,"background"],[1,"container"],[1,"center"],["id","info2"],["id","info1"],[3,"src"],["id","ready",1,"center"],[1,"button43",3,"click"],[1,"ion-padding"]],template:function(t,i){1&t&&(e.TgZ(0,"ion-header",0)(1,"ion-toolbar")(2,"ion-title"),e._uU(3," Special Event "),e.qZA(),e.TgZ(4,"ion-button",1),e._UZ(5,"ion-icon",2),e.qZA(),e.TgZ(6,"ion-popover",3),e.YNc(7,Nt,5,0,"ng-template"),e.qZA()()(),e.TgZ(8,"ion-content",4)(9,"ion-grid",5)(10,"div",6)(11,"div",7)(12,"div",8)(13,"h1"),e._uU(14,"It is time for a SPECIAL EVENT!"),e.qZA()(),e.TgZ(15,"div",8)(16,"p",9),e._uU(17,"Every 2 rounds you will draw a special event card"),e.qZA()(),e.TgZ(18,"div",8)(19,"p",10),e._uU(20,"National News, Media Coverage, Scandals, Fortunes, and Issues await!"),e.qZA()(),e._UZ(21,"img",11),e.TgZ(22,"div",12)(23,"p"),e._uU(24,"Good luck!"),e.qZA()(),e.TgZ(25,"div",12)(26,"ion-button",13),e.NdJ("click",function(){return i.continue()}),e._uU(27,"Draw A Card"),e.qZA()()()()()()),2&t&&(e.Q6J("translucent",!1),e.xp6(8),e.Q6J("fullscreen",!0),e.xp6(13),e.MGl("src","../../../assets/images/deck/",i.imgSrc,".png",e.LSH))},dependencies:[r.YG,r.W2,r.jY,r.Gu,r.gu,r.d8,r.sr,r.wd],styles:[".center[_ngcontent-%COMP%]{margin-left:3px;margin-right:3px;font-size:large;text-align:center;display:flex;justify-content:center;align-items:center;left:50%}.header-icon[_ngcontent-%COMP%]{position:fixed;right:10px;max-height:30px;z-index:199999}p[_ngcontent-%COMP%]{margin-top:10px}#aid[_ngcontent-%COMP%], #title[_ngcontent-%COMP%], #info1[_ngcontent-%COMP%], #info2[_ngcontent-%COMP%], #info3[_ngcontent-%COMP%], #info4[_ngcontent-%COMP%], #info5[_ngcontent-%COMP%], #info6[_ngcontent-%COMP%], #ready[_ngcontent-%COMP%]{top:100vw;left:0}"]}),n})();function Ut(n,o){1&n&&e._UZ(0,"img",22)}function Rt(n,o){1&n&&e._UZ(0,"img",23)}function Ot(n,o){1&n&&(e.TgZ(0,"ion-content",24)(1,"h3"),e._uU(2,"Fundraising!"),e.qZA(),e.TgZ(3,"p"),e._uU(4,"You cant win without money!"),e.qZA(),e.TgZ(5,"p"),e._uU(6,"Use the money you gain here to pay for ads on a later turn."),e.qZA(),e.TgZ(7,"p"),e._uU(8,"Since Ads are so powerful, Fundraising is an important way to progress your candidacy"),e.qZA(),e.TgZ(9,"p"),e._uU(10,"Roll the dice to fundraise!"),e.qZA()())}const Ft=function(){return[1,2,3]},qt=function(){return[4,5]},Gt=function(){return[6]};let Jt=(()=>{class n{constructor(t,i,s,a){this.router=t,this.modalCtrl=i,this.votes=s,this.textService=a,this.canBack=!0,this.presidentIcon="",this.eventHistory=""}ngOnInit(){this.isDemocrat=this.votes.isDemocrat}ionViewWillEnter(){this.getFunFact()}getFunFact(){const t=this.textService.getFundraisingFacts(),i=t[Math.floor(Math.random()*t.length)];this.presidentIcon=i.presidentIcon,this.eventHistory=i.eventHistory}rollStarted(){this.canBack=!1}handleRoll(t){var i=this;return(0,d.Z)(function*(){i.canBack=!1,t<=3?(i.votes.funds++,i.openModal("You rolled a "+t+", raising enough to run 1 ad campaign")):t<=5?(i.votes.funds+=2,i.openModal("You rolled a "+t+", raising enough to run 2 ad campaigns")):(i.votes.funds+=3,i.openModal("You rolled a "+t+", raising enough to run 3 ad campaigns"))})()}toNextTurn(){this.canBack=!0,this.router.navigateByUrl("/tabs/tab1/opponent",{replaceUrl:!0})}back(){this.router.navigateByUrl("/tabs/tab1",{replaceUrl:!0})}openModal(t,i="Results"){var s=this;return(0,d.Z)(function*(){const a=yield s.modalCtrl.create({component:_,componentProps:{message:t,title:i}});a.onDidDismiss().then(()=>{s.toNextTurn()}),a.present(),yield a.onWillDismiss()})()}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(u.F0),e.Y36(r.IN),e.Y36(m.s),e.Y36(T))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-fundraise"]],decls:33,vars:13,consts:[[3,"translucent"],["class","header-icon","src","../../../assets/images/republicanIcon.png",4,"ngIf"],["class","header-icon","src","../../../assets/images/democratIcon.png",4,"ngIf"],["fill","clear","id","click-triggerFa"],["name","help-circle-outline"],["trigger","click-triggerFa","triggerAction","click"],[3,"fullscreen"],[2,"margin-left","2px","margin-top","2px"],["size","small",1,"backbutton",3,"disabled","click"],["name","arrow-back-circle-outline"],[1,"center"],[2,"margin-top","14px","max-width","65%"],[1,"center",2,"margin-top","0px"],[2,"margin-top","0px"],["val0","$10 Million","val1","$20 Million","val2","$30 Million",3,"slot0","slot1","slot2","rollStarted","diceRolled"],["id","navcontainer"],["id","navlist"],["id","active"],[1,"funfact"],[2,"margin-top","2px","margin-bottom","1px"],[1,"photo",2,"margin-top","0",3,"src"],[2,"margin-top","0","margin-bottom","2px"],["src","../../../assets/images/republicanIcon.png",1,"header-icon"],["src","../../../assets/images/democratIcon.png",1,"header-icon"],[1,"ion-padding"]],template:function(t,i){1&t&&(e.TgZ(0,"ion-header",0)(1,"ion-toolbar")(2,"ion-title"),e._uU(3," FUNDRAISE "),e.YNc(4,Ut,1,0,"img",1),e.YNc(5,Rt,1,0,"img",2),e.qZA(),e.TgZ(6,"ion-button",3),e._UZ(7,"ion-icon",4),e.qZA(),e.TgZ(8,"ion-popover",5),e.YNc(9,Ot,11,0,"ng-template"),e.qZA()()(),e.TgZ(10,"ion-content",6)(11,"div",7)(12,"ion-button",8),e.NdJ("click",function(){return i.back()}),e._UZ(13,"ion-icon",9),e.TgZ(14,"em"),e._uU(15,"Back"),e.qZA()()(),e.TgZ(16,"div",10)(17,"h1",11),e._uU(18,"Fundraise"),e.qZA()(),e.TgZ(19,"div",12)(20,"p",13),e._uU(21,"Roll the dice to raise $10-30 million for advertising!"),e.qZA()(),e.TgZ(22,"app-dice",14),e.NdJ("rollStarted",function(){return i.rollStarted()})("diceRolled",function(a){return i.handleRoll(a)}),e.qZA(),e.TgZ(23,"div",15)(24,"ul",16)(25,"li",17),e._uU(26,"Fun Fact"),e.qZA(),e.TgZ(27,"div",18)(28,"p",19),e._uU(29,"Fundraising is a big part of every campaign."),e.qZA(),e._UZ(30,"img",20),e.TgZ(31,"p",21),e._uU(32),e.qZA()()()()()),2&t&&(e.Q6J("translucent",!1),e.xp6(4),e.Q6J("ngIf",!i.isDemocrat),e.xp6(1),e.Q6J("ngIf",i.isDemocrat),e.xp6(5),e.Q6J("fullscreen",!0),e.xp6(2),e.Q6J("disabled",!i.canBack),e.xp6(10),e.Q6J("slot0",e.DdM(10,Ft))("slot1",e.DdM(11,qt))("slot2",e.DdM(12,Gt)),e.xp6(8),e.Q6J("src",i.presidentIcon,e.LSH),e.xp6(2),e.Oqu(i.eventHistory))},dependencies:[r.YG,r.W2,r.Gu,r.gu,r.d8,r.sr,r.wd,v.O5,y],styles:[".backbutton[_ngcontent-%COMP%]{position:absolute}.center[_ngcontent-%COMP%]{margin-left:3px;margin-right:3px;font-size:large;text-align:center;display:flex;justify-content:center;align-items:center;left:50%}.header-icon[_ngcontent-%COMP%]{position:fixed;right:10px;max-height:30px;z-index:199999}.funfact[_ngcontent-%COMP%]{border-radius:4px;border:2px solid #505050;font-size:large;text-align:center;display:block;justify-content:center;align-items:center;left:50%}.photo[_ngcontent-%COMP%]{margin-top:18px;border-radius:50%;border:2px solid black;width:50px;height:50px;padding-top:0;margin-bottom:0}#navcontainer[_ngcontent-%COMP%]{margin-left:5%;margin-right:5%;display:block;width:90%}#navlist[_ngcontent-%COMP%]{padding:3px 0;margin-right:2px}#navlist[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{padding-left:2px;padding-right:2px;border-radius:2px;border-bottom:2px solid #999999;background:#999999;list-style:none;margin-left:3px;border-top:2px solid #999999;border-left:2px solid #999999;border-right:2px solid #999999;left:5%;color:#000;display:inline;position:relative;top:1px}"]}),n})();function Bt(n,o){1&n&&(e.TgZ(0,"ion-content",9)(1,"h3"),e._uU(2,"Your Opponents"),e.qZA(),e.TgZ(3,"p"),e._uU(4,"You are working hard to win, but so is your opponent."),e.qZA(),e.TgZ(5,"p"),e._uU(6,"Every time that you make a move, your opponent will as well."),e.qZA(),e.TgZ(7,"p"),e._uU(8,"Pay attention to the moves your opponent makes, since you might need to fight back."),e.qZA()())}function Qt(n,o){if(1&n&&(e.TgZ(0,"h3",13),e._uU(1),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.hij("+ ",t.change,"")}}function Ht(n,o){if(1&n&&(e.TgZ(0,"h3",14),e._uU(1),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.hij("+ ",t.change,"")}}function jt(n,o){if(1&n&&(e.TgZ(0,"div",6),e._UZ(1,"img",10),e.YNc(2,Qt,2,1,"h3",11),e.YNc(3,Ht,2,1,"h3",12),e.qZA()),2&n){const t=o.$implicit;e.xp6(1),e.Q6J("src",t.path,e.LSH),e.xp6(1),e.Q6J("ngIf",t.isTowardBlue),e.xp6(1),e.Q6J("ngIf",!t.isTowardBlue)}}let Lt=(()=>{class n{constructor(t,i,s,a){this.router=t,this.toastController=i,this.votes=s,this.textService=a,this.actionText="",this.actionId=0,this.actionIcons=[]}ngOnInit(){this.actionText=this.getNextOpponentAction()}getAllActions(){}getNextOpponentAction(){const t=Math.floor(6*Math.random())+1;if(t<=2&&this.votes.round2?(this.handleGroupScoreUpdate(s,1),"Your opponent ran advertising in"+a+" where they made a difference of 1 point"):(this.handleGroupScoreUpdate(s,0),"Your opponent ran advertising in"+a+" where they made no difference")}}if(t<=4){if(0===this.votes.opponentFunds&&this.votes.roundc&&(c=C.college,f=h),h++;return i>4?(this.handleGroupScoreUpdate([l[f].abbreviation],2),"Your opponent campaigned in "+l[f].name+" where they made a difference of 2 point"):(this.handleGroupScoreUpdate([l[f].abbreviation],1),"Your opponent campaigned in "+l[f].name+" where they made a difference of 1 point")}const s=Math.floor(10*Math.random()),a=this.votes.getSortedStates(10);return i>2?(this.handleGroupScoreUpdate([a[s].abbreviation],2),"Your opponent campaigned in "+a[s].name+" where they made a difference of 2 points"):(this.handleGroupScoreUpdate([a[s].abbreviation],1),"Your opponent campaigned in "+a[s].name+" where they made a difference of 1 point")}}addActionIconByAbrev(t,i,s){const a=this.votes.getStateIconByAbrev(t);this.actionIcons.push({path:"assets/images/states/"+a,change:i,isTowardBlue:s})}goToResults(){this.router.navigateByUrl("/results")}goToTab1(){this.router.navigateByUrl("tabs/tab1")}goToEvent(){this.router.navigateByUrl("/tabs/tab1/firstevent")}goToFirstEvent(){this.router.navigateByUrl("/tabs/tab1/firstevent")}nextEvent(){this.moveProgressBar(),this.votes.round%2==0?(this.votes.round++,this.votes.round>this.votes.gameLength?this.goToResults():this.goToEvent()):(this.votes.round++,this.votes.round>this.votes.gameLength?this.goToResults():this.goToTab1())}moveProgressBar(){document.getElementById("greenbar").style.backgroundImage="linear-gradient(to left, rgb(255, 255, 255), #38ff80)",this.votes.progress>this.votes.gameLength-1?(document.getElementById("finish-icon").style.left="100%",document.getElementById("greenbar").style.backgroundColor="#30ff30",document.getElementById("greenbar").style.backgroundImage="none",this.votes.progressMessage="ELECTION DAY!"):this.votes.progress++,document.getElementById("greenbar").style.width=this.votes.progress/this.votes.gameLength*100+"%",document.getElementById("whitebar").style.width=(this.votes.gameLength-this.votes.progress)/this.votes.gameLength*100+"%",document.getElementById("progress-icon").style.left=this.votes.progress/this.votes.gameLength*100-4+"%",this.votes.progress>this.votes.gameLength-3&&(document.getElementById("greenbar").style.backgroundImage="linear-gradient(to left, rgb(255, 255, 255), rgb(255, 40, 40))",this.votes.progressMessage="ELECTION DAY SOON"),this.votes.progress>this.votes.gameLength-2&&(document.getElementById("finish-icon").style.left="100%")}handleGroupScoreUpdate(t,i){if(this.actionIcons=[],this.votes.getUserIsDem())for(const s of t)this.addActionIconByAbrev(s,i,!1),this.votes.changeStateClimate(s,-i/2,i/2);else for(const s of t)this.addActionIconByAbrev(s,i,!0),this.votes.changeStateClimate(s,i/2,-i/2)}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(u.F0),e.Y36(r.yF),e.Y36(m.s),e.Y36(T))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-opponent"]],decls:21,vars:4,consts:[[3,"translucent"],[1,"ion-text-center"],["fill","clear","id","click-triggerOp"],["name","help-circle-outline"],["trigger","click-triggerOp","triggerAction","click"],[3,"fullscreen"],[1,"center"],["class","center",4,"ngFor","ngForOf"],[1,"button43",3,"click"],[1,"ion-padding"],[2,"max-height","28px",3,"src"],["style","color:blue",4,"ngIf"],["style","color:red",4,"ngIf"],[2,"color","blue"],[2,"color","red"]],template:function(t,i){1&t&&(e.TgZ(0,"ion-header",0)(1,"ion-toolbar")(2,"ion-title",1),e._uU(3," Your Opponent's Turn "),e.qZA(),e.TgZ(4,"ion-button",2),e._UZ(5,"ion-icon",3),e.qZA(),e.TgZ(6,"ion-popover",4),e.YNc(7,Bt,9,0,"ng-template"),e.qZA()()(),e.TgZ(8,"ion-content",5)(9,"div",6)(10,"h1"),e._uU(11,"THIS IS WHAT YOUR OPPONENT DID:"),e.qZA()(),e.TgZ(12,"div",6)(13,"h2"),e._uU(14),e.qZA()(),e.YNc(15,jt,4,3,"div",7),e._UZ(16,"br")(17,"br"),e.TgZ(18,"div",6)(19,"ion-button",8),e.NdJ("click",function(){return i.nextEvent()}),e._uU(20,"Continue"),e.qZA()()()),2&t&&(e.Q6J("translucent",!1),e.xp6(8),e.Q6J("fullscreen",!0),e.xp6(6),e.Oqu(i.actionText),e.xp6(1),e.Q6J("ngForOf",i.actionIcons))},dependencies:[r.YG,r.W2,r.Gu,r.gu,r.d8,r.sr,r.wd,v.sg,v.O5],styles:[".center[_ngcontent-%COMP%]{margin-left:3px;margin-right:3px;font-size:large;text-align:center;display:flex;justify-content:center;align-items:center;left:50%}.header-icon[_ngcontent-%COMP%]{position:fixed;right:10px;max-height:30px;z-index:199999}"]}),n})();var Wt=g(6425);function Vt(n,o){1&n&&e._UZ(0,"img",12)}function zt(n,o){1&n&&e._UZ(0,"img",13)}function $t(n,o){1&n&&(e.TgZ(0,"ion-content",14)(1,"h3"),e._uU(2,"It is your turn!"),e.qZA(),e.TgZ(3,"p"),e._uU(4,"You have three choices on your turn:"),e.qZA(),e.TgZ(5,"p"),e._uU(6,"Fundraise! You can raise money for ads. This is an important part of winning the presidential race."),e.qZA(),e.TgZ(7,"p"),e._uU(8,"Run Ads! Use your fundraised money to affect multiple states."),e.qZA(),e.TgZ(9,"p"),e._uU(10,"State Visit! Visit a state and boost your popularity in that state."),e.qZA(),e.TgZ(11,"p"),e._uU(12,"If you are unsure what to do, go to the MAP tab and pick a state you want to affect"),e.qZA()())}const Xt=[{path:"",component:(()=>{class n{constructor(t,i,s,a,l){this.audio=t,this.route=i,this.textService=s,this.toastController=a,this.votes=l,this.text="",this.funds=0,this.partyName=""}ngOnInit(){this.partyName=this.votes.getThirdPartyName(),this.turns=this.textService.getTurns(this.votes.gameLength>20),this.currentTurn=this.turns[0],this.isThird=this.votes.getUserIsThird(),this.isDemocrat=this.votes.getUserIsDem()}ionViewWillEnter(){this.isDemocrat=this.votes.isDemocrat,this.currentTurn=this.turns[this.votes.round-1],0===this.votes.progress&&(document.getElementById("greenbar").style.backgroundImage="linear-gradient(to left, rgb(255, 255, 255), #38ff80)",document.getElementById("greenbar").style.width=1/this.votes.gameLength*100+"%",document.getElementById("whitebar").style.width=(this.votes.gameLength-1)/this.votes.gameLength*100+"%",document.getElementById("progress-icon").style.left=1/this.votes.gameLength*100-4+"%")}ngAfterViewInit(){}fundraise(){this.audio.play("a8"),this.takeTurn(),this.route.navigateByUrl("tabs/tab1/fundraise")}campaign(){this.audio.play("a3"),this.takeTurn(),this.route.navigateByUrl("tabs/tab1/campaign")}advertising(){this.audio.play("a5"),this.votes.funds>0?(this.votes.funds--,this.takeTurn(),this.route.navigateByUrl("tabs/tab1/advertise")):this.presentToast("You need to fundraise before you can spend on advertising!",3e3,"danger")}takeTurn(){}presentToast(t,i,s="primary"){var a=this;return(0,d.Z)(function*(){(yield a.toastController.create({message:t,duration:i,color:s,position:"middle",mode:"md"})).present()})()}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(Wt.Q),e.Y36(u.F0),e.Y36(T),e.Y36(r.yF),e.Y36(m.s))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-tab1"]],decls:33,vars:9,consts:[[3,"translucent"],["class","header-icon","src","../../assets/images/republicanIcon.png",4,"ngIf"],["class","header-icon","src","../../assets/images/democratIcon.png",4,"ngIf"],["fill","clear","id","click-trigger1"],["name","help-circle-outline"],["trigger","click-trigger1","triggerAction","click"],[3,"fullscreen"],[1,"center"],[1,"option","button43",3,"click"],[1,"option","button43",3,"disabled","click"],[2,"margin-bottom","1px"],[2,"font-size","small","margin-top","0px"],["src","../../assets/images/republicanIcon.png",1,"header-icon"],["src","../../assets/images/democratIcon.png",1,"header-icon"],[1,"ion-padding"]],template:function(t,i){1&t&&(e.TgZ(0,"ion-header",0)(1,"ion-toolbar")(2,"ion-title"),e._uU(3," Campaign Headquarters "),e.YNc(4,Vt,1,0,"img",1),e.YNc(5,zt,1,0,"img",2),e.qZA(),e.TgZ(6,"ion-button",3),e._UZ(7,"ion-icon",4),e.qZA(),e.TgZ(8,"ion-popover",5),e.YNc(9,$t,13,0,"ng-template"),e.qZA()()(),e.TgZ(10,"ion-content",6)(11,"div",7)(12,"p")(13,"strong"),e._uU(14),e.qZA()()(),e.TgZ(15,"div",7)(16,"p"),e._uU(17),e.qZA()(),e.TgZ(18,"ion-button",8),e.NdJ("click",function(){return i.fundraise()}),e.TgZ(19,"em"),e._uU(20,"FUNDRAISE"),e.qZA()(),e.TgZ(21,"ion-button",9),e.NdJ("click",function(){return i.advertising()}),e.TgZ(22,"div")(23,"p",10)(24,"em"),e._uU(25,"ADVERTISE"),e.qZA()(),e.TgZ(26,"p",11),e._uU(27,"COSTS $10 MILLION"),e.qZA(),e.TgZ(28,"p",11),e._uU(29),e.qZA()()(),e.TgZ(30,"ion-button",8),e.NdJ("click",function(){return i.campaign()}),e.TgZ(31,"em"),e._uU(32,"VISIT A STATE"),e.qZA()()()),2&t&&(e.Q6J("translucent",!1),e.xp6(4),e.Q6J("ngIf",!i.isDemocrat&&!i.isThird),e.xp6(1),e.Q6J("ngIf",i.isDemocrat&&!i.isThird),e.xp6(5),e.Q6J("fullscreen",!0),e.xp6(4),e.AsE("Round ",i.votes.round," out of ",i.votes.gameLength,""),e.xp6(3),e.Oqu(i.currentTurn),e.xp6(4),e.Q6J("disabled",!i.votes.funds),e.xp6(8),e.hij("(",10*i.votes.funds," AVAILABLE)"))},dependencies:[r.YG,r.W2,r.Gu,r.gu,r.d8,r.sr,r.wd,v.O5],styles:[".option[_ngcontent-%COMP%]{height:100px;position:relative;font-size:x-large;left:10%;width:80%;right:10%;white-space:normal;flex-flow:column}.header-icon[_ngcontent-%COMP%]{position:fixed;right:10px;max-height:30px;z-index:199999}.subtitle[_ngcontent-%COMP%]{position:absolute;top:5px;right:1px;font-size:80%}.center[_ngcontent-%COMP%]{margin-left:3px;margin-right:3px;font-size:large;text-align:center;display:flex;justify-content:center;align-items:center;left:50%}"]}),n})()},{path:"campaign",component:ot},{path:"opponent",component:Lt},{path:"firstevent",component:Yt},{path:"fundraise",component:Jt},{path:"advertise",component:We},{path:"event",component:Dt}];let Kt=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[u.Bz.forChild(Xt),u.Bz]}),n})(),en=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({providers:[I],imports:[r.Pc,v.ez,p.u5,p.UX,w.e,Kt]}),n})()}}]); \ No newline at end of file diff --git a/index.html b/index.html index fe3192a..924eee9 100644 --- a/index.html +++ b/index.html @@ -18,7 +18,7 @@ - + \ No newline at end of file diff --git a/runtime.a9573aa548255554.js b/runtime.a9573aa548255554.js new file mode 100644 index 0000000..12dfd97 --- /dev/null +++ b/runtime.a9573aa548255554.js @@ -0,0 +1 @@ +(()=>{"use strict";var e,v={},g={};function t(e){var r=g[e];if(void 0!==r)return r.exports;var a=g[e]={exports:{}};return v[e].call(a.exports,a,a.exports,t),a.exports}t.m=v,e=[],t.O=(r,a,d,b)=>{if(!a){var f=1/0;for(c=0;c=b)&&Object.keys(t.O).every(p=>t.O[p](a[n]))?a.splice(n--,1):(l=!1,b0&&e[c-1][2]>b;c--)e[c]=e[c-1];e[c]=[a,d,b]},t.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return t.d(r,{a:r}),r},(()=>{var r,e=Object.getPrototypeOf?a=>Object.getPrototypeOf(a):a=>a.__proto__;t.t=function(a,d){if(1&d&&(a=this(a)),8&d||"object"==typeof a&&a&&(4&d&&a.__esModule||16&d&&"function"==typeof a.then))return a;var b=Object.create(null);t.r(b);var c={};r=r||[null,e({}),e([]),e(e)];for(var f=2&d&&a;"object"==typeof f&&!~r.indexOf(f);f=e(f))Object.getOwnPropertyNames(f).forEach(l=>c[l]=()=>a[l]);return c.default=()=>a,t.d(b,c),b}})(),t.d=(e,r)=>{for(var a in r)t.o(r,a)&&!t.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:r[a]})},t.f={},t.e=e=>Promise.all(Object.keys(t.f).reduce((r,a)=>(t.f[a](e,r),r),[])),t.u=e=>(({2214:"polyfills-core-js",6748:"polyfills-dom",8592:"common"}[e]||e)+"."+{174:"a389053bc88aaaab",273:"15c14b60a59b2f79",388:"43aaeccd0377cad7",438:"10352d48d58302e6",657:"393fdd011fe05d0a",700:"7cff17d488988eee",1033:"f13ca48a9b2cc63a",1118:"22f160842b9b6cb3",1186:"6b087d045dbcdd96",1217:"a5f7d2179f926ed5",1536:"5fdc09ccbd666679",1589:"c7fa8a8f18985f1a",1650:"b6519bb722c59ff6",1709:"2a6866451d382455",2073:"aea5191e0442c2cb",2175:"5aa76bcd3cc660f1",2214:"c8961a92c3ed4c69",2289:"023b11ddf8ceca24",2349:"6755e701460aa077",2698:"68c89d7500d4f034",2773:"4810b26bcdbbfea0",3236:"ddfacf7ad861d148",3262:"25e10497ec7aabe2",3648:"9a51e94caba97c3e",3804:"eeeddaa4a58e3de6",3805:"9abd1fa15e577d71",4174:"408f8c3e1419cd76",4223:"0058773620bf78b0",4330:"d4f9f41b6f3b337a",4376:"5a470308f8381ae2",4432:"032a882a78cb212f",4651:"820c97c4e9019632",4711:"06b81d4681299a4d",4753:"08d5927e465ff7da",4908:"497ac9ff8ad0368d",4959:"a15de6678e093036",5168:"94201d2f877f711e",5349:"278c87bddb13fb4d",5652:"6813ab23623a1a19",5817:"ed789ef2b97f27b8",5836:"3d6e69e65b354dc8",5955:"be5920e2923f9921",6120:"abea0ba0c2a2e03a",6560:"825889516e246b72",6666:"3457f7477a5039ae",6748:"5c5f23fb57b03028",7404:"ffb474eb404438bf",7544:"9a7dc870e2ad96ef",7602:"1a3d732c56ecd9db",8136:"657760b067269b35",8592:"1f2766cd1d69f1f1",8628:"3d668260213db3ce",8939:"67364b80b4907507",9016:"ad91fd864f379010",9196:"93b9561ffd0b35b1",9230:"48ad8165440ee9fe",9325:"f704ce51503a2ff4",9427:"b2abc5eaddc47a55",9434:"a7a9f00377b14586",9536:"424bca4784e04c65",9654:"5479ae0d369aac09",9824:"c582ee190aea9312",9922:"66656d1865dcfb4b",9958:"6495d2cc067ff4d0"}[e]+".js"),t.miniCssF=e=>{},t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),(()=>{var e={},r="app:";t.l=(a,d,b,c)=>{if(e[a])e[a].push(d);else{var f,l;if(void 0!==b)for(var n=document.getElementsByTagName("script"),i=0;i{f.onerror=f.onload=null,clearTimeout(u);var y=e[a];if(delete e[a],f.parentNode&&f.parentNode.removeChild(f),y&&y.forEach(_=>_(p)),m)return m(p)},u=setTimeout(s.bind(null,void 0,{type:"timeout",target:f}),12e4);f.onerror=s.bind(null,f.onerror),f.onload=s.bind(null,f.onload),l&&document.head.appendChild(f)}}})(),t.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;t.tt=()=>(void 0===e&&(e={createScriptURL:r=>r},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),t.tu=e=>t.tt().createScriptURL(e),t.p="",(()=>{var e={3666:0};t.f.j=(d,b)=>{var c=t.o(e,d)?e[d]:void 0;if(0!==c)if(c)b.push(c[2]);else if(3666!=d){var f=new Promise((o,s)=>c=e[d]=[o,s]);b.push(c[2]=f);var l=t.p+t.u(d),n=new Error;t.l(l,o=>{if(t.o(e,d)&&(0!==(c=e[d])&&(e[d]=void 0),c)){var s=o&&("load"===o.type?"missing":o.type),u=o&&o.target&&o.target.src;n.message="Loading chunk "+d+" failed.\n("+s+": "+u+")",n.name="ChunkLoadError",n.type=s,n.request=u,c[1](n)}},"chunk-"+d,d)}else e[d]=0},t.O.j=d=>0===e[d];var r=(d,b)=>{var n,i,[c,f,l]=b,o=0;if(c.some(u=>0!==e[u])){for(n in f)t.o(f,n)&&(t.m[n]=f[n]);if(l)var s=l(t)}for(d&&d(b);o