{"ast":null,"code":"import { FxSession } from './FxSession.injectable';\nimport { ActivatedRoute } from \"@angular/router\";\nimport * as packJson from \"../../package.json\";\nimport { animations } from '../../src/allFx';\nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"./FxSession.injectable\";\nimport * as i2 from \"@angular/router\";\n\nconst _c0 = function () {\n  return {\n    color: \"#88aaff\",\n    \"font-weight\": \"900\"\n  };\n};\n\nconst _c1 = function () {\n  return {\n    color: \"#999\"\n  };\n};\n\nfunction AppComponent_ng_container_9_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementContainerStart(0);\n    i0.ɵɵelementStart(1, \"div\", 4)(2, \"a\", 13);\n    i0.ɵɵtext(3);\n    i0.ɵɵelementEnd()();\n    i0.ɵɵelementContainerEnd();\n  }\n\n  if (rf & 2) {\n    const item_r3 = ctx.$implicit;\n    i0.ɵɵnextContext();\n\n    const _r1 = i0.ɵɵreference(16);\n\n    i0.ɵɵadvance(2);\n    i0.ɵɵproperty(\"routerLink\", \"/\" + item_r3)(\"ngStyle\", _r1.value == item_r3 ? i0.ɵɵpureFunction0(3, _c0) : i0.ɵɵpureFunction0(4, _c1));\n    i0.ɵɵadvance(1);\n    i0.ɵɵtextInterpolate(item_r3);\n  }\n}\n\nconst _c2 = function () {\n  return {\n    position: \"relative\",\n    overflow: \"hidden\"\n  };\n};\n\nconst _c3 = function (a0) {\n  return {\n    time: a0,\n    position: \"absolute\"\n  };\n};\n\nconst _c4 = function (a0, a1) {\n  return {\n    value: a0,\n    params: a1\n  };\n};\n\nconst _c5 = function (a0) {\n  return {\n    time: a0\n  };\n};\n\nexport const fxNameArray = ['fadeIn', 'fadeOut', 'fadeInOut', 'fadeInDown', 'fadeOutDown', 'fadeInOutDown', 'fadeInLeft', 'fadeOutLeft', 'fadeInOutLeft', 'fadeInRight', 'fadeOutRight', 'fadeInOutRight', 'fadeInUp', 'fadeOutUp', 'fadeInOutUp', 'bounceIn', 'bounceOut', 'bounceInOut', 'bounceInDown', 'bounceOutDown', 'bounceInOutDown', 'bounceInLeft', 'bounceOutLeft', 'bounceInOutLeft', 'bounceInRight', 'bounceOutRight', 'bounceInOutRight', 'bounceInUp', 'bounceOutUp', 'bounceInOutUp', 'rotateIn', 'rotateOut', 'rotateInOut', 'rotateInDownLeft', 'rotateOutDownLeft', 'rotateInOutDownLeft', 'rotateInDownRight', 'rotateOutDownRight', 'rotateInOutDownRight', 'rotateInUpLeft', 'rotateOutUpLeft', 'rotateInOutUpLeft', 'rotateInUpRight', 'rotateOutUpRight', 'rotateInOutUpRight', 'slideInUp', 'slideOutUp', 'slideInOutUp', 'slideInDown', 'slideOutDown', 'slideInOutDown', 'slideInLeft', 'slideOutLeft', 'slideInOutLeft', 'slideInRight', 'slideOutRight', 'slideInOutRight', 'zoomIn', 'zoomOut', 'zoomInOut', 'zoomInDown', 'zoomOutDown', 'zoomInOutDown', 'zoomInLeft', 'zoomOutLeft', 'zoomInOutLeft', 'zoomInRight', 'zoomOutRight', 'zoomInOutRight', 'zoomInUp', 'zoomOutUp', 'zoomInOutUp'];\nexport const fxWithKids = [\"fadeInOut\", \"fadeInOutDown\", \"fadeInOutLeft\", \"fadeInOutRight\", \"fadeInOutUp\", \"bounceInOut\", \"bounceInOutLeft\", \"bounceInOutRight\", \"bounceInOutUp\", \"rotateInOut\", \"rotateInOutDownLeft\", \"rotateInOutDownRight\", \"rotateInOutUpLeft\", \"rotateInOutUpRight\", \"slideInOutUp\", \"slideInOutDown\", \"slideInOutLeft\", \"slideInOutRight\", \"zoomInOut\", \"zoomInOutDown\", \"zoomInOutLeft\", \"zoomInOutRight\", \"zoomInOutUp\"];\nexport let AppComponent = /*#__PURE__*/(() => {\n  class AppComponent {\n    constructor(FxSession, ActivatedRoute) {\n      this.FxSession = FxSession;\n      this.ActivatedRoute = ActivatedRoute;\n      this.routes = ['overview', 'stagger', 'ngif', 'swapping', 'directives', 'router-outlet'];\n      this.fxTime = \"400ms 0ms linear\";\n      this.version = packJson['version'] || '0.0.0';\n      this.show = true;\n      this.state = '';\n      this.fxNameArray = fxNameArray;\n    }\n\n    ngAfterViewInit() {\n      if (window['scriptLoadTime']) {\n        console.log('Script Load Time', Date.now() - window['scriptLoadTime']);\n      }\n    }\n\n    onToggleOutItem(item) {\n      item.state = item.state ? '' : item.key;\n    }\n\n  }\n\n  AppComponent.ɵfac = function AppComponent_Factory(t) {\n    return new (t || AppComponent)(i0.ɵɵdirectiveInject(i1.FxSession), i0.ɵɵdirectiveInject(i2.ActivatedRoute));\n  };\n\n  AppComponent.ɵcmp = i0.ɵɵdefineComponent({\n    type: AppComponent,\n    selectors: [[\"app\"]],\n    decls: 21,\n    vars: 151,\n    consts: [[\"cellPadding\", \"0\", \"cellSpacing\", \"0\", \"border\", \"0\", \"align\", \"center\", 1, \"container\", 2, \"width\", \"100%\", \"height\", \"100%\", \"max-width\", \"900px\", \"background-color\", \"white\"], [2, \"padding\", \"1em\", \"text-align\", \"left\"], [2, \"text-align\", \"center\"], [4, \"ngFor\", \"ngForOf\"], [2, \"display\", \"inline-block\", \"padding\", \".4em\"], [3, \"model\", \"modelChange\"], [2, \"border-bottom\", \"1px dotted #CCCCCC\"], [2, \"height\", \"100%\", \"text-align\", \"left\"], [3, \"orderArray\", \"activatedRoute\", \"orderArrayChange\"], [\"fx\", \"\"], [2, \"height\", \"100%\", \"width\", \"100%\", 3, \"ngStyle\"], [2, \"padding\", \"1em\", \"height\", \"100%\"], [\"routerOutlet\", \"outlet\"], [3, \"routerLink\", \"ngStyle\"]],\n    template: function AppComponent_Template(rf, ctx) {\n      if (rf & 1) {\n        i0.ɵɵelementStart(0, \"table\", 0)(1, \"tr\")(2, \"td\")(3, \"div\", 1)(4, \"h1\");\n        i0.ɵɵtext(5);\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementStart(6, \"p\");\n        i0.ɵɵtext(7, \"Angular animations made super easy\");\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementStart(8, \"div\", 2);\n        i0.ɵɵtemplate(9, AppComponent_ng_container_9_Template, 4, 5, \"ng-container\", 3);\n        i0.ɵɵelementStart(10, \"div\", 4)(11, \"select-fx\", 5);\n        i0.ɵɵlistener(\"modelChange\", function AppComponent_Template_select_fx_modelChange_11_listener($event) {\n          return ctx.FxSession.fxForward = $event;\n        });\n        i0.ɵɵelementEnd()()();\n        i0.ɵɵelement(12, \"div\", 6);\n        i0.ɵɵelementEnd()()();\n        i0.ɵɵelementStart(13, \"tr\")(14, \"td\", 7)(15, \"fx-tracker\", 8, 9);\n        i0.ɵɵlistener(\"orderArrayChange\", function AppComponent_Template_fx_tracker_orderArrayChange_15_listener($event) {\n          return ctx.routes = $event;\n        });\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementStart(17, \"div\", 10)(18, \"div\", 11);\n        i0.ɵɵlistener(\"@absoluteKids.start\", function AppComponent_Template_div_animation_absoluteKids_start_18_listener() {\n          return ctx.inFx = true;\n        })(\"@absoluteKids.done\", function AppComponent_Template_div_animation_absoluteKids_done_18_listener() {\n          return ctx.inFx = false;\n        });\n        i0.ɵɵelement(19, \"router-outlet\", null, 12);\n        i0.ɵɵelementEnd()()()()();\n      }\n\n      if (rf & 2) {\n        const _r1 = i0.ɵɵreference(16);\n\n        i0.ɵɵadvance(5);\n        i0.ɵɵtextInterpolate1(\"ack-angular-fx \", ctx.version, \"\");\n        i0.ɵɵadvance(4);\n        i0.ɵɵproperty(\"ngForOf\", ctx.routes);\n        i0.ɵɵadvance(2);\n        i0.ɵɵproperty(\"model\", ctx.FxSession.fxForward);\n        i0.ɵɵadvance(4);\n        i0.ɵɵproperty(\"orderArray\", ctx.routes)(\"activatedRoute\", ctx.ActivatedRoute);\n        i0.ɵɵadvance(2);\n        i0.ɵɵproperty(\"ngStyle\", ctx.inFx && i0.ɵɵpureFunction0(30, _c2));\n        i0.ɵɵadvance(1);\n        i0.ɵɵproperty(\"@absoluteKids\", i0.ɵɵpureFunction2(33, _c4, _r1.id, i0.ɵɵpureFunction1(31, _c3, ctx.fxTime)))(\"@fadeInOutKids\", i0.ɵɵpureFunction2(38, _c4, ctx.FxSession.fxForward == \"fadeInOut\" ? _r1.id : \"nofx\", i0.ɵɵpureFunction1(36, _c5, ctx.fxTime)))(\"@fadeInOutDownKids\", i0.ɵɵpureFunction2(43, _c4, ctx.FxSession.fxForward == \"fadeInOutDown\" ? _r1.id : \"nofx\", i0.ɵɵpureFunction1(41, _c5, ctx.fxTime)))(\"@fadeInOutLeftKids\", i0.ɵɵpureFunction2(48, _c4, ctx.FxSession.fxForward == \"fadeInOutLeft\" ? _r1.id : \"nofx\", i0.ɵɵpureFunction1(46, _c5, ctx.fxTime)))(\"@fadeInOutRightKids\", i0.ɵɵpureFunction2(53, _c4, ctx.FxSession.fxForward == \"fadeInOutRight\" ? _r1.id : \"nofx\", i0.ɵɵpureFunction1(51, _c5, ctx.fxTime)))(\"@fadeInOutUpKids\", i0.ɵɵpureFunction2(58, _c4, ctx.FxSession.fxForward == \"fadeInOutUp\" ? _r1.id : \"nofx\", i0.ɵɵpureFunction1(56, _c5, ctx.fxTime)))(\"@bounceInOutKids\", i0.ɵɵpureFunction2(63, _c4, ctx.FxSession.fxForward == \"bounceInOut\" ? _r1.id : \"nofx\", i0.ɵɵpureFunction1(61, _c5, ctx.fxTime)))(\"@bounceInOutLeftKids\", i0.ɵɵpureFunction2(68, _c4, ctx.FxSession.fxForward == \"bounceInOutLeft\" ? _r1.id : \"nofx\", i0.ɵɵpureFunction1(66, _c5, ctx.fxTime)))(\"@bounceInOutRightKids\", i0.ɵɵpureFunction2(73, _c4, ctx.FxSession.fxForward == \"bounceInOutRight\" ? _r1.id : \"nofx\", i0.ɵɵpureFunction1(71, _c5, ctx.fxTime)))(\"@bounceInOutUpKids\", i0.ɵɵpureFunction2(78, _c4, ctx.FxSession.fxForward == \"bounceInOutUp\" ? _r1.id : \"nofx\", i0.ɵɵpureFunction1(76, _c5, ctx.fxTime)))(\"@rotateInOutKids\", i0.ɵɵpureFunction2(83, _c4, ctx.FxSession.fxForward == \"rotateInOut\" ? _r1.id : \"nofx\", i0.ɵɵpureFunction1(81, _c5, ctx.fxTime)))(\"@rotateInOutDownLeftKids\", i0.ɵɵpureFunction2(88, _c4, ctx.FxSession.fxForward == \"rotateInOutDownLeft\" ? _r1.id : \"nofx\", i0.ɵɵpureFunction1(86, _c5, ctx.fxTime)))(\"@rotateInOutDownRightKids\", i0.ɵɵpureFunction2(93, _c4, ctx.FxSession.fxForward == \"rotateInOutDownRight\" ? _r1.id : \"nofx\", i0.ɵɵpureFunction1(91, _c5, ctx.fxTime)))(\"@rotateInOutUpLeftKids\", i0.ɵɵpureFunction2(98, _c4, ctx.FxSession.fxForward == \"rotateInOutUpLeft\" ? _r1.id : \"nofx\", i0.ɵɵpureFunction1(96, _c5, ctx.fxTime)))(\"@rotateInOutUpRightKids\", i0.ɵɵpureFunction2(103, _c4, ctx.FxSession.fxForward == \"rotateInOutUpRight\" ? _r1.id : \"nofx\", i0.ɵɵpureFunction1(101, _c5, ctx.fxTime)))(\"@slideInOutUpKids\", i0.ɵɵpureFunction2(108, _c4, ctx.FxSession.fxForward == \"slideInOutUp\" ? _r1.id : \"nofx\", i0.ɵɵpureFunction1(106, _c5, ctx.fxTime)))(\"@slideInOutDownKids\", i0.ɵɵpureFunction2(113, _c4, ctx.FxSession.fxForward == \"slideInOutDown\" ? _r1.id : \"nofx\", i0.ɵɵpureFunction1(111, _c5, ctx.fxTime)))(\"@slideInOutLeftKids\", i0.ɵɵpureFunction2(118, _c4, ctx.FxSession.fxForward == \"slideInOutLeft\" ? _r1.id : \"nofx\", i0.ɵɵpureFunction1(116, _c5, ctx.fxTime)))(\"@slideInOutRightKids\", i0.ɵɵpureFunction2(123, _c4, ctx.FxSession.fxForward == \"slideInOutRight\" ? _r1.id : \"nofx\", i0.ɵɵpureFunction1(121, _c5, ctx.fxTime)))(\"@zoomInOutKids\", i0.ɵɵpureFunction2(128, _c4, ctx.FxSession.fxForward == \"zoomInOut\" ? _r1.id : \"nofx\", i0.ɵɵpureFunction1(126, _c5, ctx.fxTime)))(\"@zoomInOutDownKids\", i0.ɵɵpureFunction2(133, _c4, ctx.FxSession.fxForward == \"zoomInOutDown\" ? _r1.id : \"nofx\", i0.ɵɵpureFunction1(131, _c5, ctx.fxTime)))(\"@zoomInOutLeftKids\", i0.ɵɵpureFunction2(138, _c4, ctx.FxSession.fxForward == \"zoomInOutLeft\" ? _r1.id : \"nofx\", i0.ɵɵpureFunction1(136, _c5, ctx.fxTime)))(\"@zoomInOutRightKids\", i0.ɵɵpureFunction2(143, _c4, ctx.FxSession.fxForward == \"zoomInOutRight\" ? _r1.id : \"nofx\", i0.ɵɵpureFunction1(141, _c5, ctx.fxTime)))(\"@zoomInOutUpKids\", i0.ɵɵpureFunction2(148, _c4, ctx.FxSession.fxForward == \"zoomInOutUp\" ? _r1.id : \"nofx\", i0.ɵɵpureFunction1(146, _c5, ctx.fxTime)));\n      }\n    },\n    encapsulation: 2,\n    data: {\n      animation: animations\n    }\n  });\n  return AppComponent;\n})();","map":null,"metadata":{},"sourceType":"module"}