stoobly-agent 0.34.2__py3-none-any.whl → 0.34.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. stoobly_agent/__init__.py +1 -1
  2. stoobly_agent/app/cli/config_cli.py +10 -4
  3. stoobly_agent/app/proxy/mitmproxy/request_facade.py +15 -4
  4. stoobly_agent/app/proxy/mock/eval_fixtures_service.py +13 -5
  5. stoobly_agent/app/settings/url_rule.py +6 -0
  6. stoobly_agent/config/schema.yml +2 -0
  7. stoobly_agent/public/{1-es2015.cb071776436f10954db5.js → 1-es2015.bb4492eeabe1fe937ada.js} +1 -1
  8. stoobly_agent/public/{1-es5.cb071776436f10954db5.js → 1-es5.bb4492eeabe1fe937ada.js} +1 -1
  9. stoobly_agent/public/{10-es2015.bb1702aaf3968a2cb521.js → 10-es2015.56da22458086513ba0c7.js} +1 -1
  10. stoobly_agent/public/{10-es5.bb1702aaf3968a2cb521.js → 10-es5.56da22458086513ba0c7.js} +1 -1
  11. stoobly_agent/public/{12-es2015.591ec692afb8f8d13842.js → 12-es2015.be58ed0ef449008b932e.js} +1 -1
  12. stoobly_agent/public/{12-es5.591ec692afb8f8d13842.js → 12-es5.be58ed0ef449008b932e.js} +1 -1
  13. stoobly_agent/public/{13-es2015.f381e7d6ff361b669e12.js → 13-es2015.220b4a1adf4cacb294e5.js} +1 -1
  14. stoobly_agent/public/{13-es5.f381e7d6ff361b669e12.js → 13-es5.220b4a1adf4cacb294e5.js} +1 -1
  15. stoobly_agent/public/{14-es2015.1ffb225a16d6292dbddd.js → 14-es2015.b6619d7742671d2a37fb.js} +1 -1
  16. stoobly_agent/public/{14-es5.1ffb225a16d6292dbddd.js → 14-es5.b6619d7742671d2a37fb.js} +1 -1
  17. stoobly_agent/public/{15-es2015.2cf39bcaeb0ea2c52297.js → 15-es2015.d8855701408b0e1d7a3e.js} +1 -1
  18. stoobly_agent/public/{15-es5.2cf39bcaeb0ea2c52297.js → 15-es5.d8855701408b0e1d7a3e.js} +1 -1
  19. stoobly_agent/public/{16-es2015.0e9422b274e642f95e41.js → 16-es2015.98fa59c2c96d2caac3c3.js} +1 -1
  20. stoobly_agent/public/{16-es5.0e9422b274e642f95e41.js → 16-es5.98fa59c2c96d2caac3c3.js} +1 -1
  21. stoobly_agent/public/{17-es2015.7fb08367a22d1e34aed7.js → 17-es2015.7f60b56d1fd66d4d5544.js} +1 -1
  22. stoobly_agent/public/{17-es5.7fb08367a22d1e34aed7.js → 17-es5.7f60b56d1fd66d4d5544.js} +1 -1
  23. stoobly_agent/public/{18-es2015.5caa4789d1c335e628f2.js → 18-es2015.10cdd5c608b10d90d19a.js} +1 -1
  24. stoobly_agent/public/{18-es5.5caa4789d1c335e628f2.js → 18-es5.10cdd5c608b10d90d19a.js} +1 -1
  25. stoobly_agent/public/{19-es2015.8049aef58c329c500f9b.js → 19-es2015.78ec0e9fd228b5104712.js} +1 -1
  26. stoobly_agent/public/{19-es5.8049aef58c329c500f9b.js → 19-es5.78ec0e9fd228b5104712.js} +1 -1
  27. stoobly_agent/public/{2-es5.8f184ac63348ba447b1f.js → 2-es2015.51eb8544ea9a21f2874c.js} +1 -1
  28. stoobly_agent/public/{2-es2015.8f184ac63348ba447b1f.js → 2-es5.51eb8544ea9a21f2874c.js} +1 -1
  29. stoobly_agent/public/{22-es2015.df183804415330639987.js → 22-es2015.1e96ef651f96d51191e2.js} +1 -1
  30. stoobly_agent/public/{22-es5.df183804415330639987.js → 22-es5.1e96ef651f96d51191e2.js} +1 -1
  31. stoobly_agent/public/{23-es2015.0da63b056fabde91bb0b.js → 23-es2015.6d3052555b4fac38f16d.js} +1 -1
  32. stoobly_agent/public/{23-es5.0da63b056fabde91bb0b.js → 23-es5.6d3052555b4fac38f16d.js} +1 -1
  33. stoobly_agent/public/{28-es2015.9fe030e9d3b0e52239aa.js → 28-es2015.a2bf42f38e4dd771ccea.js} +1 -1
  34. stoobly_agent/public/{28-es5.9fe030e9d3b0e52239aa.js → 28-es5.a2bf42f38e4dd771ccea.js} +1 -1
  35. stoobly_agent/public/{29-es2015.9b440f22de725732e5ab.js → 29-es2015.18b515f07c88753c7eb6.js} +1 -1
  36. stoobly_agent/public/{29-es5.9b440f22de725732e5ab.js → 29-es5.18b515f07c88753c7eb6.js} +1 -1
  37. stoobly_agent/public/{30-es2015.6ad2a5126b0a27c1e7c6.js → 30-es2015.d4d3dc4101400cadf3f3.js} +1 -1
  38. stoobly_agent/public/{30-es5.6ad2a5126b0a27c1e7c6.js → 30-es5.d4d3dc4101400cadf3f3.js} +1 -1
  39. stoobly_agent/public/{31-es2015.f4291150f35d54ff19ca.js → 31-es2015.e3ea815f75c19c217b7d.js} +1 -1
  40. stoobly_agent/public/{31-es5.f4291150f35d54ff19ca.js → 31-es5.e3ea815f75c19c217b7d.js} +1 -1
  41. stoobly_agent/public/{32-es2015.c8f6ccb43bdba0adf199.js → 32-es2015.57553995bff0ae518501.js} +1 -1
  42. stoobly_agent/public/{32-es5.c8f6ccb43bdba0adf199.js → 32-es5.57553995bff0ae518501.js} +1 -1
  43. stoobly_agent/public/{33-es2015.f985e93402ebf86322ef.js → 33-es2015.da5ba1e5baa164921198.js} +1 -1
  44. stoobly_agent/public/{33-es5.f985e93402ebf86322ef.js → 33-es5.da5ba1e5baa164921198.js} +1 -1
  45. stoobly_agent/public/{34-es2015.0e1961fb3cf649a52d49.js → 34-es2015.87acbb95cfb824650157.js} +1 -1
  46. stoobly_agent/public/{34-es5.0e1961fb3cf649a52d49.js → 34-es5.87acbb95cfb824650157.js} +1 -1
  47. stoobly_agent/public/{35-es2015.a4ae56a89c0324397624.js → 35-es2015.61a7ae8da93df94fab06.js} +1 -1
  48. stoobly_agent/public/{35-es5.a4ae56a89c0324397624.js → 35-es5.61a7ae8da93df94fab06.js} +1 -1
  49. stoobly_agent/public/{36-es2015.b8fdd25590a79c820119.js → 36-es2015.e3a104020eeec02cb8c4.js} +1 -1
  50. stoobly_agent/public/{36-es5.b8fdd25590a79c820119.js → 36-es5.e3a104020eeec02cb8c4.js} +1 -1
  51. stoobly_agent/public/{37-es2015.6567a0ce4cf87ad7287b.js → 37-es2015.3b472e6cf303201bbf2c.js} +1 -1
  52. stoobly_agent/public/{37-es5.6567a0ce4cf87ad7287b.js → 37-es5.3b472e6cf303201bbf2c.js} +1 -1
  53. stoobly_agent/public/{38-es2015.6f6d751bff41d84d727a.js → 38-es2015.39dbf43d46cdc94f78c6.js} +1 -1
  54. stoobly_agent/public/{38-es5.6f6d751bff41d84d727a.js → 38-es5.39dbf43d46cdc94f78c6.js} +1 -1
  55. stoobly_agent/public/{39-es2015.47f63177e7d4509a22fa.js → 39-es2015.e5475ea4fb6ec5c60741.js} +1 -1
  56. stoobly_agent/public/{39-es5.47f63177e7d4509a22fa.js → 39-es5.e5475ea4fb6ec5c60741.js} +1 -1
  57. stoobly_agent/public/{4-es2015.182e1ce1811ef67571fb.js → 4-es2015.f8ac5475bf103969b2d2.js} +1 -1
  58. stoobly_agent/public/{4-es5.182e1ce1811ef67571fb.js → 4-es5.f8ac5475bf103969b2d2.js} +1 -1
  59. stoobly_agent/public/{40-es2015.5333067cdc4077c7495a.js → 40-es2015.47b2873a8439717af6a7.js} +1 -1
  60. stoobly_agent/public/{40-es5.5333067cdc4077c7495a.js → 40-es5.47b2873a8439717af6a7.js} +1 -1
  61. stoobly_agent/public/{41-es2015.7a2434380c81c11ff2c5.js → 41-es2015.69f2771002745c066976.js} +1 -1
  62. stoobly_agent/public/{41-es5.7a2434380c81c11ff2c5.js → 41-es5.69f2771002745c066976.js} +1 -1
  63. stoobly_agent/public/{42-es2015.5dde662fe1e3b4e4bdd1.js → 42-es2015.b590b92ede890155dcd6.js} +1 -1
  64. stoobly_agent/public/{42-es5.5dde662fe1e3b4e4bdd1.js → 42-es5.b590b92ede890155dcd6.js} +1 -1
  65. stoobly_agent/public/{43-es2015.608e917d689b9bb762cb.js → 43-es2015.ad1d956bffba561ba64c.js} +1 -1
  66. stoobly_agent/public/{43-es5.608e917d689b9bb762cb.js → 43-es5.ad1d956bffba561ba64c.js} +1 -1
  67. stoobly_agent/public/{44-es2015.2ae5fea15b5e8c2681d3.js → 44-es2015.3ef2c17996ed5be95ced.js} +1 -1
  68. stoobly_agent/public/44-es5.3ef2c17996ed5be95ced.js +1 -0
  69. stoobly_agent/public/{45-es2015.e46f228c795174428515.js → 45-es2015.3d65d27e0a7085e96356.js} +1 -1
  70. stoobly_agent/public/{45-es5.e46f228c795174428515.js → 45-es5.3d65d27e0a7085e96356.js} +1 -1
  71. stoobly_agent/public/{46-es2015.22a0d8e0b4bbfb513741.js → 46-es2015.e4f0a5b127eae13c27c0.js} +1 -1
  72. stoobly_agent/public/{46-es5.22a0d8e0b4bbfb513741.js → 46-es5.e4f0a5b127eae13c27c0.js} +1 -1
  73. stoobly_agent/public/{47-es2015.3878e5d1d692107748f3.js → 47-es2015.c7d45334a70131f133b5.js} +1 -1
  74. stoobly_agent/public/{47-es5.3878e5d1d692107748f3.js → 47-es5.c7d45334a70131f133b5.js} +1 -1
  75. stoobly_agent/public/{5-es2015.aba7173be56fc19b4b6f.js → 5-es2015.90ea7bd4439d9749e052.js} +1 -1
  76. stoobly_agent/public/{5-es5.aba7173be56fc19b4b6f.js → 5-es5.90ea7bd4439d9749e052.js} +1 -1
  77. stoobly_agent/public/{7-es2015.9b9ab4adf24d13bdc2f8.js → 7-es2015.c359dbb640e2af507221.js} +1 -1
  78. stoobly_agent/public/{7-es5.9b9ab4adf24d13bdc2f8.js → 7-es5.c359dbb640e2af507221.js} +1 -1
  79. stoobly_agent/public/{8-es2015.cdd7dce2a24aaf9d974f.js → 8-es2015.b901639e2aeff1358c3d.js} +1 -1
  80. stoobly_agent/public/{8-es5.cdd7dce2a24aaf9d974f.js → 8-es5.b901639e2aeff1358c3d.js} +1 -1
  81. stoobly_agent/public/{9-es2015.cdde98f2537997afbf0f.js → 9-es2015.cfc1101139d6ae75731b.js} +1 -1
  82. stoobly_agent/public/{9-es5.cdde98f2537997afbf0f.js → 9-es5.cfc1101139d6ae75731b.js} +1 -1
  83. stoobly_agent/public/index.html +2 -2
  84. stoobly_agent/public/main-es2015.ccd46ac1b6638ddf2066.js +1 -0
  85. stoobly_agent/public/main-es5.ccd46ac1b6638ddf2066.js +1 -0
  86. stoobly_agent/public/runtime-es2015.08e65883d390cd16c15b.js +1 -0
  87. stoobly_agent/public/runtime-es5.08e65883d390cd16c15b.js +1 -0
  88. stoobly_agent/public/{styles.ca104d947fbb2eebbeca.css → styles.ab281309cf423b2cdcb0.css} +1 -1
  89. stoobly_agent/test/app/cli/config/rewrite_test.py +9 -2
  90. stoobly_agent/test/app/models/schemas/.stoobly/db/VERSION +1 -1
  91. stoobly_agent/test/app/proxy/mitmproxy/request_facade_test.py +27 -0
  92. stoobly_agent/test/app/proxy/mock/eval_fixtures_service_test.py +5 -1
  93. {stoobly_agent-0.34.2.dist-info → stoobly_agent-0.34.3.dist-info}/METADATA +1 -1
  94. {stoobly_agent-0.34.2.dist-info → stoobly_agent-0.34.3.dist-info}/RECORD +103 -103
  95. stoobly_agent/public/44-es5.2ae5fea15b5e8c2681d3.js +0 -1
  96. stoobly_agent/public/main-es2015.081bbd2709f22e95933e.js +0 -1
  97. stoobly_agent/public/main-es5.081bbd2709f22e95933e.js +0 -1
  98. stoobly_agent/public/runtime-es2015.362e49d383fb724f5414.js +0 -1
  99. stoobly_agent/public/runtime-es5.362e49d383fb724f5414.js +0 -1
  100. /stoobly_agent/public/{0-es2015.a7e60cafc0868f87a771.js → 0-es2015.c7c5a6d51b98cb85b9fc.js} +0 -0
  101. /stoobly_agent/public/{0-es5.a7e60cafc0868f87a771.js → 0-es5.c7c5a6d51b98cb85b9fc.js} +0 -0
  102. /stoobly_agent/public/{20-es2015.473486aabfa4d4a6431b.js → 20-es2015.90544c488f1f0900bab4.js} +0 -0
  103. /stoobly_agent/public/{20-es5.473486aabfa4d4a6431b.js → 20-es5.90544c488f1f0900bab4.js} +0 -0
  104. /stoobly_agent/public/{common-es2015.6f230354b12587f9be81.js → common-es2015.388805227aa99c527fba.js} +0 -0
  105. /stoobly_agent/public/{common-es5.6f230354b12587f9be81.js → common-es5.388805227aa99c527fba.js} +0 -0
  106. {stoobly_agent-0.34.2.dist-info → stoobly_agent-0.34.3.dist-info}/LICENSE +0 -0
  107. {stoobly_agent-0.34.2.dist-info → stoobly_agent-0.34.3.dist-info}/WHEEL +0 -0
  108. {stoobly_agent-0.34.2.dist-info → stoobly_agent-0.34.3.dist-info}/entry_points.txt +0 -0
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[8],{"56zZ":function(l,n,e){"use strict";e.d(n,"a",function(){return z}),e.d(n,"b",function(){return I});var t=e("8Y7J"),a=e("CeGm"),i=e("UhP/"),u=e("Q2Ze"),o=e("1Xc+"),r=e("VDRc"),c=e("/q54"),s=e("Dxy4"),b=e("YEUz"),d=e("omvX"),p=e("XE/z"),f=e("Tj54"),m=e("l+Q0"),h=e("cUpR"),O=e("s7LF"),g=e("9gLZ"),v=e("H3DK"),_=e("SCoL"),x=e("Y1Mv"),y=e("ZTz/"),j=e("7KAL"),w=e("SVse"),z=(e("M1HD"),e("wjWB"),e("sNP5"),t.yb({encapsulation:0,styles:[[""]],data:{}}));function C(l){return t.bc(0,[(l()(),t.Ab(0,0,null,null,2,"mat-option",[["class","mat-option mat-focus-indicator"],["role","option"]],[[1,"tabindex",0],[2,"mat-selected",null],[2,"mat-option-multiple",null],[2,"mat-active",null],[8,"id",0],[1,"aria-selected",0],[1,"aria-disabled",0],[2,"mat-option-disabled",null]],[[null,"click"],[null,"keydown"]],function(l,n,e){var a=!0;return"click"===n&&(a=!1!==t.Ob(l,1)._selectViaInteraction()&&a),"keydown"===n&&(a=!1!==t.Ob(l,1)._handleKeydown(e)&&a),a},a.c,a.a)),t.zb(1,8568832,[[10,4]],0,i.q,[t.l,t.h,[2,i.j],[2,i.i]],{value:[0,"value"]},null),(l()(),t.Yb(2,0,[" "," "]))],function(l,n){l(n,1,0,n.context.$implicit)},function(l,n){l(n,0,0,t.Ob(n,1)._getTabIndex(),t.Ob(n,1).selected,t.Ob(n,1).multiple,t.Ob(n,1).active,t.Ob(n,1).id,t.Ob(n,1)._getAriaSelected(),t.Ob(n,1).disabled.toString(),t.Ob(n,1).disabled),l(n,2,0,n.context.$implicit.name)})}function F(l){return t.bc(0,[(l()(),t.Ab(0,0,null,null,2,"mat-option",[["class","mat-option mat-focus-indicator"],["role","option"]],[[1,"tabindex",0],[2,"mat-selected",null],[2,"mat-option-multiple",null],[2,"mat-active",null],[8,"id",0],[1,"aria-selected",0],[1,"aria-disabled",0],[2,"mat-option-disabled",null]],[[null,"click"],[null,"keydown"]],function(l,n,e){var a=!0;return"click"===n&&(a=!1!==t.Ob(l,1)._selectViaInteraction()&&a),"keydown"===n&&(a=!1!==t.Ob(l,1)._handleKeydown(e)&&a),a},a.c,a.a)),t.zb(1,8568832,[[22,4]],0,i.q,[t.l,t.h,[2,i.j],[2,i.i]],{value:[0,"value"]},null),(l()(),t.Yb(2,0,[" "," "]))],function(l,n){l(n,1,0,n.context.$implicit)},function(l,n){l(n,0,0,t.Ob(n,1)._getTabIndex(),t.Ob(n,1).selected,t.Ob(n,1).multiple,t.Ob(n,1).active,t.Ob(n,1).id,t.Ob(n,1)._getAriaSelected(),t.Ob(n,1).disabled.toString(),t.Ob(n,1).disabled),l(n,2,0,n.context.$implicit.name)})}function S(l){return t.bc(0,[(l()(),t.Ab(0,0,null,null,3,"mat-hint",[["class","mat-hint"]],[[2,"mat-form-field-hint-end",null],[1,"id",0],[1,"align",0]],null,null,null,null)),t.zb(1,16384,null,0,u.j,[],null,null),t.Tb(2048,[[19,4]],u.n,null,[u.j]),(l()(),t.Yb(3,null,["",""]))],null,function(l,n){var e=n.component;l(n,0,0,"end"===t.Ob(n,1).align,t.Ob(n,1).id,null),l(n,3,0,e.hint)})}function A(l){return t.bc(0,[(l()(),t.Ab(0,0,null,null,10,"button",[["class","input-button mt-2 mat-focus-indicator"],["fxFlex","40px"],["mat-icon-button",""],["matSuffix",""],["type","button"]],[[1,"disabled",0],[2,"_mat-animation-noopable",null],[2,"mat-button-disabled",null]],[[null,"click"]],function(l,n,e){var t=!0;return"click"===n&&(t=!1!==l.component.removeProject()&&t),t},o.d,o.b)),t.Tb(6144,null,u.e,null,[u.m]),t.zb(2,737280,null,0,r.b,[t.l,c.i,c.e,r.h,c.f],{fxFlex:[0,"fxFlex"]},null),t.zb(3,4374528,null,0,s.b,[t.l,b.h,[2,d.a]],null,null),t.zb(4,16384,null,0,u.m,[],null,null),(l()(),t.Ab(5,0,null,0,5,"div",[["fxLayout","row"],["fxLayoutAlign","center center"]],null,null,null,null,null)),t.zb(6,671744,null,0,r.d,[t.l,c.i,r.k,c.f],{fxLayout:[0,"fxLayout"]},null),t.zb(7,671744,null,0,r.c,[t.l,c.i,r.i,c.f],{fxLayoutAlign:[0,"fxLayoutAlign"]},null),(l()(),t.Ab(8,0,null,null,2,"mat-icon",[["class","mat-icon notranslate"],["role","img"]],[[1,"data-mat-icon-type",0],[1,"data-mat-icon-name",0],[1,"data-mat-icon-namespace",0],[2,"mat-icon-inline",null],[2,"mat-icon-no-color",null],[2,"ic-inline",null],[4,"font-size",null],[8,"innerHTML",1]],null,null,p.b,p.a)),t.zb(9,8634368,null,0,f.b,[t.l,f.d,[8,null],f.a,t.n],null,null),t.zb(10,606208,null,0,m.a,[h.b],{icIcon:[0,"icIcon"]},null)],function(l,n){var e=n.component;l(n,2,0,"40px"),l(n,6,0,"row"),l(n,7,0,"center center"),l(n,9,0),l(n,10,0,e.icClose)},function(l,n){l(n,0,0,t.Ob(n,3).disabled||null,"NoopAnimations"===t.Ob(n,3)._animationMode,t.Ob(n,3).disabled),l(n,8,0,t.Ob(n,9)._usingFontIcon()?"font":"svg",t.Ob(n,9)._svgName||t.Ob(n,9).fontIcon,t.Ob(n,9)._svgNamespace||t.Ob(n,9).fontSet,t.Ob(n,9).inline,"primary"!==t.Ob(n,9).color&&"accent"!==t.Ob(n,9).color&&"warn"!==t.Ob(n,9).color,t.Ob(n,10).inline,t.Ob(n,10).size,t.Ob(n,10).iconHTML)})}function I(l){return t.bc(0,[(l()(),t.Ab(0,0,null,null,69,"form",[["class","w-full"],["novalidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],function(l,n,e){var a=!0;return"submit"===n&&(a=!1!==t.Ob(l,2).onSubmit(e)&&a),"reset"===n&&(a=!1!==t.Ob(l,2).onReset()&&a),a},null,null)),t.zb(1,16384,null,0,O.A,[],null,null),t.zb(2,540672,null,0,O.k,[[8,null],[8,null]],{form:[0,"form"]},null),t.Tb(2048,null,O.d,null,[O.k]),t.zb(4,16384,null,0,O.r,[[6,O.d]],null,null),(l()(),t.Ab(5,0,null,null,64,"div",[["class","w-full"],["fxLayout","row"],["fxLayoutAlign","space-around start"],["fxLayoutGap","10px"]],null,null,null,null,null)),t.zb(6,671744,null,0,r.d,[t.l,c.i,r.k,c.f],{fxLayout:[0,"fxLayout"]},null),t.zb(7,1720320,null,0,r.e,[t.l,t.B,g.b,c.i,r.j,c.f],{fxLayoutGap:[0,"fxLayoutGap"]},null),t.zb(8,671744,null,0,r.c,[t.l,c.i,r.i,c.f],{fxLayoutAlign:[0,"fxLayoutAlign"]},null),(l()(),t.Ab(9,0,null,null,27,"mat-form-field",[["class","w-full mat-form-field"],["fxFlex","25"]],[[2,"mat-form-field-appearance-standard",null],[2,"mat-form-field-appearance-fill",null],[2,"mat-form-field-appearance-outline",null],[2,"mat-form-field-appearance-legacy",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-has-label",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-form-field-autofilled",null],[2,"mat-focused",null],[2,"mat-accent",null],[2,"mat-warn",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[2,"_mat-animation-noopable",null]],null,null,v.b,v.a)),t.zb(10,737280,null,0,r.b,[t.l,c.i,c.e,r.h,c.f],{fxFlex:[0,"fxFlex"]},null),t.zb(11,7520256,null,9,u.g,[t.l,t.h,t.l,[2,g.b],[2,u.c],_.a,t.B,[2,d.a]],null,null),t.Ub(603979776,1,{_controlNonStatic:0}),t.Ub(335544320,2,{_controlStatic:0}),t.Ub(603979776,3,{_labelChildNonStatic:0}),t.Ub(335544320,4,{_labelChildStatic:0}),t.Ub(603979776,5,{_placeholderChild:0}),t.Ub(603979776,6,{_errorChildren:1}),t.Ub(603979776,7,{_hintChildren:1}),t.Ub(603979776,8,{_prefixChildren:1}),t.Ub(603979776,9,{_suffixChildren:1}),t.Tb(2048,null,u.b,null,[u.g]),(l()(),t.Ab(22,0,null,3,2,"mat-label",[],null,null,null,null,null)),t.zb(23,16384,[[3,4],[4,4]],0,u.k,[],null,null),(l()(),t.Yb(-1,null,["Organization"])),(l()(),t.Ab(25,0,null,1,11,"mat-select",[["aria-autocomplete","none"],["aria-haspopup","true"],["class","mat-select"],["formControlName","organization"],["role","combobox"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[1,"id",0],[1,"tabindex",0],[1,"aria-controls",0],[1,"aria-expanded",0],[1,"aria-label",0],[1,"aria-required",0],[1,"aria-disabled",0],[1,"aria-invalid",0],[1,"aria-describedby",0],[1,"aria-activedescendant",0],[2,"mat-select-disabled",null],[2,"mat-select-invalid",null],[2,"mat-select-required",null],[2,"mat-select-empty",null],[2,"mat-select-multiple",null]],[[null,"selectionChange"],[null,"keydown"],[null,"focus"],[null,"blur"]],function(l,n,e){var a=!0,i=l.component;return"keydown"===n&&(a=!1!==t.Ob(l,30)._handleKeydown(e)&&a),"focus"===n&&(a=!1!==t.Ob(l,30)._onFocus()&&a),"blur"===n&&(a=!1!==t.Ob(l,30)._onBlur()&&a),"selectionChange"===n&&(a=!1!==i.selectOrganization(e)&&a),a},x.b,x.a)),t.Tb(6144,null,i.j,null,[y.d]),t.zb(27,671744,null,0,O.j,[[3,O.d],[8,null],[8,null],[8,null],[2,O.z]],{name:[0,"name"]},null),t.Tb(2048,null,O.p,null,[O.j]),t.zb(29,16384,null,0,O.q,[[4,O.p]],null,null),t.zb(30,2080768,null,3,y.d,[j.e,t.h,t.B,i.d,t.l,[2,g.b],[2,O.s],[2,O.k],[2,u.b],[6,O.p],[8,null],y.b,b.k,[2,y.a]],{compareWith:[0,"compareWith"]},{selectionChange:"selectionChange"}),t.Ub(603979776,10,{options:1}),t.Ub(603979776,11,{optionGroups:1}),t.Ub(603979776,12,{customTrigger:0}),t.Tb(2048,[[1,4],[2,4]],u.h,null,[y.d]),(l()(),t.jb(16777216,null,1,1,null,C)),t.zb(36,278528,null,0,w.m,[t.R,t.O,t.u],{ngForOf:[0,"ngForOf"]},null),(l()(),t.Ab(37,0,null,null,30,"mat-form-field",[["class","w-full mat-form-field"],["fxFlex","75"]],[[2,"mat-form-field-appearance-standard",null],[2,"mat-form-field-appearance-fill",null],[2,"mat-form-field-appearance-outline",null],[2,"mat-form-field-appearance-legacy",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-has-label",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-form-field-autofilled",null],[2,"mat-focused",null],[2,"mat-accent",null],[2,"mat-warn",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[2,"_mat-animation-noopable",null]],null,null,v.b,v.a)),t.zb(38,737280,null,0,r.b,[t.l,c.i,c.e,r.h,c.f],{fxFlex:[0,"fxFlex"]},null),t.zb(39,7520256,null,9,u.g,[t.l,t.h,t.l,[2,g.b],[2,u.c],_.a,t.B,[2,d.a]],null,null),t.Ub(603979776,13,{_controlNonStatic:0}),t.Ub(335544320,14,{_controlStatic:0}),t.Ub(603979776,15,{_labelChildNonStatic:0}),t.Ub(335544320,16,{_labelChildStatic:0}),t.Ub(603979776,17,{_placeholderChild:0}),t.Ub(603979776,18,{_errorChildren:1}),t.Ub(603979776,19,{_hintChildren:1}),t.Ub(603979776,20,{_prefixChildren:1}),t.Ub(603979776,21,{_suffixChildren:1}),t.Tb(2048,null,u.b,null,[u.g]),(l()(),t.Ab(50,0,null,3,2,"mat-label",[],null,null,null,null,null)),t.zb(51,16384,[[15,4],[16,4]],0,u.k,[],null,null),(l()(),t.Yb(-1,null,["Project"])),(l()(),t.Ab(53,0,null,1,12,"mat-select",[["aria-autocomplete","none"],["aria-haspopup","true"],["class","mat-select"],["formControlName","project"],["role","combobox"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[1,"id",0],[1,"tabindex",0],[1,"aria-controls",0],[1,"aria-expanded",0],[1,"aria-label",0],[1,"aria-required",0],[1,"aria-disabled",0],[1,"aria-invalid",0],[1,"aria-describedby",0],[1,"aria-activedescendant",0],[2,"mat-select-disabled",null],[2,"mat-select-invalid",null],[2,"mat-select-required",null],[2,"mat-select-empty",null],[2,"mat-select-multiple",null]],[[null,"selectionChange"],[null,"keydown"],[null,"focus"],[null,"blur"]],function(l,n,e){var a=!0,i=l.component;return"keydown"===n&&(a=!1!==t.Ob(l,58)._handleKeydown(e)&&a),"focus"===n&&(a=!1!==t.Ob(l,58)._onFocus()&&a),"blur"===n&&(a=!1!==t.Ob(l,58)._onBlur()&&a),"selectionChange"===n&&(a=!1!==i.selectProject(e)&&a),a},x.b,x.a)),t.Tb(6144,null,i.j,null,[y.d]),t.zb(55,671744,null,0,O.j,[[3,O.d],[8,null],[8,null],[8,null],[2,O.z]],{name:[0,"name"]},null),t.Tb(2048,null,O.p,null,[O.j]),t.zb(57,16384,null,0,O.q,[[4,O.p]],null,null),t.zb(58,2080768,null,3,y.d,[j.e,t.h,t.B,i.d,t.l,[2,g.b],[2,O.s],[2,O.k],[2,u.b],[6,O.p],[8,null],y.b,b.k,[2,y.a]],{compareWith:[0,"compareWith"]},{selectionChange:"selectionChange"}),t.Ub(603979776,22,{options:1}),t.Ub(603979776,23,{optionGroups:1}),t.Ub(603979776,24,{customTrigger:0}),t.Tb(2048,[[13,4],[14,4]],u.h,null,[y.d]),(l()(),t.jb(16777216,null,1,2,null,F)),t.zb(64,278528,null,0,w.m,[t.R,t.O,t.u],{ngForOf:[0,"ngForOf"]},null),t.Qb(131072,w.b,[t.h]),(l()(),t.jb(16777216,null,6,1,null,S)),t.zb(67,16384,null,0,w.n,[t.R,t.O],{ngIf:[0,"ngIf"]},null),(l()(),t.jb(16777216,null,null,1,null,A)),t.zb(69,16384,null,0,w.n,[t.R,t.O],{ngIf:[0,"ngIf"]},null)],function(l,n){var e=n.component;l(n,2,0,e.form),l(n,6,0,"row"),l(n,7,0,"10px"),l(n,8,0,"space-around start"),l(n,10,0,"25"),l(n,27,0,"organization"),l(n,30,0,e.compareResource),l(n,36,0,e.organizations),l(n,38,0,"75"),l(n,55,0,"project"),l(n,58,0,e.compareResource),l(n,64,0,t.Zb(n,64,0,t.Ob(n,65).transform(e.projects$))),l(n,67,0,e.hint),l(n,69,0,e.form.value.project)},function(l,n){l(n,0,0,t.Ob(n,4).ngClassUntouched,t.Ob(n,4).ngClassTouched,t.Ob(n,4).ngClassPristine,t.Ob(n,4).ngClassDirty,t.Ob(n,4).ngClassValid,t.Ob(n,4).ngClassInvalid,t.Ob(n,4).ngClassPending),l(n,9,1,["standard"==t.Ob(n,11).appearance,"fill"==t.Ob(n,11).appearance,"outline"==t.Ob(n,11).appearance,"legacy"==t.Ob(n,11).appearance,t.Ob(n,11)._control.errorState,t.Ob(n,11)._canLabelFloat(),t.Ob(n,11)._shouldLabelFloat(),t.Ob(n,11)._hasFloatingLabel(),t.Ob(n,11)._hideControlPlaceholder(),t.Ob(n,11)._control.disabled,t.Ob(n,11)._control.autofilled,t.Ob(n,11)._control.focused,"accent"==t.Ob(n,11).color,"warn"==t.Ob(n,11).color,t.Ob(n,11)._shouldForward("untouched"),t.Ob(n,11)._shouldForward("touched"),t.Ob(n,11)._shouldForward("pristine"),t.Ob(n,11)._shouldForward("dirty"),t.Ob(n,11)._shouldForward("valid"),t.Ob(n,11)._shouldForward("invalid"),t.Ob(n,11)._shouldForward("pending"),!t.Ob(n,11)._animationsEnabled]),l(n,25,1,[t.Ob(n,29).ngClassUntouched,t.Ob(n,29).ngClassTouched,t.Ob(n,29).ngClassPristine,t.Ob(n,29).ngClassDirty,t.Ob(n,29).ngClassValid,t.Ob(n,29).ngClassInvalid,t.Ob(n,29).ngClassPending,t.Ob(n,30).id,t.Ob(n,30).tabIndex,t.Ob(n,30).panelOpen?t.Ob(n,30).id+"-panel":null,t.Ob(n,30).panelOpen,t.Ob(n,30).ariaLabel||null,t.Ob(n,30).required.toString(),t.Ob(n,30).disabled.toString(),t.Ob(n,30).errorState,t.Ob(n,30)._ariaDescribedby||null,t.Ob(n,30)._getAriaActiveDescendant(),t.Ob(n,30).disabled,t.Ob(n,30).errorState,t.Ob(n,30).required,t.Ob(n,30).empty,t.Ob(n,30).multiple]),l(n,37,1,["standard"==t.Ob(n,39).appearance,"fill"==t.Ob(n,39).appearance,"outline"==t.Ob(n,39).appearance,"legacy"==t.Ob(n,39).appearance,t.Ob(n,39)._control.errorState,t.Ob(n,39)._canLabelFloat(),t.Ob(n,39)._shouldLabelFloat(),t.Ob(n,39)._hasFloatingLabel(),t.Ob(n,39)._hideControlPlaceholder(),t.Ob(n,39)._control.disabled,t.Ob(n,39)._control.autofilled,t.Ob(n,39)._control.focused,"accent"==t.Ob(n,39).color,"warn"==t.Ob(n,39).color,t.Ob(n,39)._shouldForward("untouched"),t.Ob(n,39)._shouldForward("touched"),t.Ob(n,39)._shouldForward("pristine"),t.Ob(n,39)._shouldForward("dirty"),t.Ob(n,39)._shouldForward("valid"),t.Ob(n,39)._shouldForward("invalid"),t.Ob(n,39)._shouldForward("pending"),!t.Ob(n,39)._animationsEnabled]),l(n,53,1,[t.Ob(n,57).ngClassUntouched,t.Ob(n,57).ngClassTouched,t.Ob(n,57).ngClassPristine,t.Ob(n,57).ngClassDirty,t.Ob(n,57).ngClassValid,t.Ob(n,57).ngClassInvalid,t.Ob(n,57).ngClassPending,t.Ob(n,58).id,t.Ob(n,58).tabIndex,t.Ob(n,58).panelOpen?t.Ob(n,58).id+"-panel":null,t.Ob(n,58).panelOpen,t.Ob(n,58).ariaLabel||null,t.Ob(n,58).required.toString(),t.Ob(n,58).disabled.toString(),t.Ob(n,58).errorState,t.Ob(n,58)._ariaDescribedby||null,t.Ob(n,58)._getAriaActiveDescendant(),t.Ob(n,58).disabled,t.Ob(n,58).errorState,t.Ob(n,58).required,t.Ob(n,58).empty,t.Ob(n,58).multiple])})}},M1HD:function(l,n,e){"use strict";e.d(n,"a",function(){return c});var t=e("8Y7J"),a=e("s7LF"),i=e("5mnX"),u=e.n(i),o=e("lJxs"),r=e("V99k");class c{constructor(l,n,e){this.fb=l,this.organizationsResource=n,this.projectsDataService=e,this.onProjectSelect=new t.o,this.icClose=u.a,this.form=this.fb.group({organization:new a.h(null),project:new a.h(this.project)}),this.organizationsResource.index({shadow:!0}).pipe(Object(o.a)(l=>l.map(l=>new r.l(l)))).subscribe(l=>{this.organizations=l;const n=this.organizations.find(l=>this.project?l.id===this.project.organizationId:l.isShadow);this.form.patchValue({organization:n})}),this.projectsDataService.fetch(),this.projects$=this.projectsDataService.projects$}ngOnInit(){}ngOnChanges(l){const{project:n}=l;if(n){const{currentValue:l,previousValue:e}=n;(null==e?void 0:e.id)!==(null==l?void 0:l.id)&&this.form.patchValue({project:l})}}removeProject(){this.form.patchValue({project:null}),this.onProjectSelect.emit(null)}selectOrganization(l){this.projectsDataService.fetchByOrganizationId(l.value.id)}selectProject(l){const n=l.value;this.form.patchValue({project:n}),this.onProjectSelect.emit(n)}compareResource(l,n){return(null==l?void 0:l.id)===(null==n?void 0:n.id)}}},iItg:function(l,n,e){"use strict";e.d(n,"a",function(){return t});class t{}},v9Wg:function(l,n,e){"use strict";e.d(n,"a",function(){return r});var t=e("2Vo4"),a=e("LRne"),i=e("8Y7J"),u=e("msBP"),o=e("3Ncz");let r=(()=>{class l{constructor(l,n){this.projectDataService=l,this.scenariosResource=n,this.subject=new t.a(null),this.scenarios$=this.subject.asObservable()}fetchByProjectId(l){this.fetch({project_id:l})}fetch(l){let n=l.project_id;if(null==n){if(!this.projectDataService.project)return;n=this.projectDataService.project.id}const e=Object.assign({project_id:n},l);this.scenariosResource.index(e).subscribe(l=>{this.set(l.list)})}get(){return this.scenarios$}set(l){this.scenarios=l,this.subject.next(l)}next(l){return l.page+=1,this.fetch(l)}prev(l){return l.page?(l.page-=1,this.fetch(l)):Object(a.a)()}}return l.\u0275prov=i.cc({factory:function(){return new l(i.dc(u.a),i.dc(o.a))},token:l,providedIn:"root"}),l})()},wjWB:function(l,n,e){"use strict";e.d(n,"a",function(){return i});var t=e("8Y7J"),a=e("iCaw");let i=(()=>{class l{constructor(l){this.restApi=l,this.ENDPOINT="organizations"}index(l){return this.restApi.index([this.ENDPOINT],l)}show(l,n){return this.restApi.show([this.ENDPOINT,l],n)}create(l){return this.restApi.create([this.ENDPOINT],l)}update(l,n){return this.restApi.update([this.ENDPOINT,l],n)}destroy(l){return this.restApi.destroy([this.ENDPOINT,l])}subscription(l,n){return this.restApi.index([this.ENDPOINT,l,"subscription"],n)}payments(l,n){return this.restApi.index([this.ENDPOINT,l,"payments"],n)}}return l.\u0275prov=t.cc({factory:function(){return new l(t.dc(a.a))},token:l,providedIn:"root"}),l})()}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[8],{"56zZ":function(l,n,e){"use strict";e.d(n,"a",function(){return z}),e.d(n,"b",function(){return I});var t=e("8Y7J"),a=e("CeGm"),i=e("UhP/"),o=e("Q2Ze"),u=e("1Xc+"),r=e("VDRc"),c=e("/q54"),s=e("Dxy4"),b=e("YEUz"),d=e("omvX"),p=e("XE/z"),f=e("Tj54"),m=e("l+Q0"),h=e("cUpR"),O=e("s7LF"),g=e("9gLZ"),v=e("H3DK"),_=e("SCoL"),x=e("Y1Mv"),y=e("ZTz/"),j=e("7KAL"),w=e("SVse"),z=(e("M1HD"),e("wjWB"),e("sNP5"),t.yb({encapsulation:0,styles:[[""]],data:{}}));function C(l){return t.bc(0,[(l()(),t.Ab(0,0,null,null,2,"mat-option",[["class","mat-option mat-focus-indicator"],["role","option"]],[[1,"tabindex",0],[2,"mat-selected",null],[2,"mat-option-multiple",null],[2,"mat-active",null],[8,"id",0],[1,"aria-selected",0],[1,"aria-disabled",0],[2,"mat-option-disabled",null]],[[null,"click"],[null,"keydown"]],function(l,n,e){var a=!0;return"click"===n&&(a=!1!==t.Ob(l,1)._selectViaInteraction()&&a),"keydown"===n&&(a=!1!==t.Ob(l,1)._handleKeydown(e)&&a),a},a.c,a.a)),t.zb(1,8568832,[[10,4]],0,i.q,[t.l,t.h,[2,i.j],[2,i.i]],{value:[0,"value"]},null),(l()(),t.Yb(2,0,[" "," "]))],function(l,n){l(n,1,0,n.context.$implicit)},function(l,n){l(n,0,0,t.Ob(n,1)._getTabIndex(),t.Ob(n,1).selected,t.Ob(n,1).multiple,t.Ob(n,1).active,t.Ob(n,1).id,t.Ob(n,1)._getAriaSelected(),t.Ob(n,1).disabled.toString(),t.Ob(n,1).disabled),l(n,2,0,n.context.$implicit.name)})}function F(l){return t.bc(0,[(l()(),t.Ab(0,0,null,null,2,"mat-option",[["class","mat-option mat-focus-indicator"],["role","option"]],[[1,"tabindex",0],[2,"mat-selected",null],[2,"mat-option-multiple",null],[2,"mat-active",null],[8,"id",0],[1,"aria-selected",0],[1,"aria-disabled",0],[2,"mat-option-disabled",null]],[[null,"click"],[null,"keydown"]],function(l,n,e){var a=!0;return"click"===n&&(a=!1!==t.Ob(l,1)._selectViaInteraction()&&a),"keydown"===n&&(a=!1!==t.Ob(l,1)._handleKeydown(e)&&a),a},a.c,a.a)),t.zb(1,8568832,[[22,4]],0,i.q,[t.l,t.h,[2,i.j],[2,i.i]],{value:[0,"value"]},null),(l()(),t.Yb(2,0,[" "," "]))],function(l,n){l(n,1,0,n.context.$implicit)},function(l,n){l(n,0,0,t.Ob(n,1)._getTabIndex(),t.Ob(n,1).selected,t.Ob(n,1).multiple,t.Ob(n,1).active,t.Ob(n,1).id,t.Ob(n,1)._getAriaSelected(),t.Ob(n,1).disabled.toString(),t.Ob(n,1).disabled),l(n,2,0,n.context.$implicit.name)})}function S(l){return t.bc(0,[(l()(),t.Ab(0,0,null,null,3,"mat-hint",[["class","mat-hint"]],[[2,"mat-form-field-hint-end",null],[1,"id",0],[1,"align",0]],null,null,null,null)),t.zb(1,16384,null,0,o.j,[],null,null),t.Tb(2048,[[19,4]],o.n,null,[o.j]),(l()(),t.Yb(3,null,["",""]))],null,function(l,n){var e=n.component;l(n,0,0,"end"===t.Ob(n,1).align,t.Ob(n,1).id,null),l(n,3,0,e.hint)})}function A(l){return t.bc(0,[(l()(),t.Ab(0,0,null,null,10,"button",[["class","input-button mt-2 mat-focus-indicator"],["fxFlex","40px"],["mat-icon-button",""],["matSuffix",""],["type","button"]],[[1,"disabled",0],[2,"_mat-animation-noopable",null],[2,"mat-button-disabled",null]],[[null,"click"]],function(l,n,e){var t=!0;return"click"===n&&(t=!1!==l.component.removeProject()&&t),t},u.d,u.b)),t.Tb(6144,null,o.e,null,[o.m]),t.zb(2,737280,null,0,r.b,[t.l,c.i,c.e,r.h,c.f],{fxFlex:[0,"fxFlex"]},null),t.zb(3,4374528,null,0,s.b,[t.l,b.h,[2,d.a]],null,null),t.zb(4,16384,null,0,o.m,[],null,null),(l()(),t.Ab(5,0,null,0,5,"div",[["fxLayout","row"],["fxLayoutAlign","center center"]],null,null,null,null,null)),t.zb(6,671744,null,0,r.d,[t.l,c.i,r.k,c.f],{fxLayout:[0,"fxLayout"]},null),t.zb(7,671744,null,0,r.c,[t.l,c.i,r.i,c.f],{fxLayoutAlign:[0,"fxLayoutAlign"]},null),(l()(),t.Ab(8,0,null,null,2,"mat-icon",[["class","mat-icon notranslate"],["role","img"]],[[1,"data-mat-icon-type",0],[1,"data-mat-icon-name",0],[1,"data-mat-icon-namespace",0],[2,"mat-icon-inline",null],[2,"mat-icon-no-color",null],[2,"ic-inline",null],[4,"font-size",null],[8,"innerHTML",1]],null,null,p.b,p.a)),t.zb(9,8634368,null,0,f.b,[t.l,f.d,[8,null],f.a,t.n],null,null),t.zb(10,606208,null,0,m.a,[h.b],{icIcon:[0,"icIcon"]},null)],function(l,n){var e=n.component;l(n,2,0,"40px"),l(n,6,0,"row"),l(n,7,0,"center center"),l(n,9,0),l(n,10,0,e.icClose)},function(l,n){l(n,0,0,t.Ob(n,3).disabled||null,"NoopAnimations"===t.Ob(n,3)._animationMode,t.Ob(n,3).disabled),l(n,8,0,t.Ob(n,9)._usingFontIcon()?"font":"svg",t.Ob(n,9)._svgName||t.Ob(n,9).fontIcon,t.Ob(n,9)._svgNamespace||t.Ob(n,9).fontSet,t.Ob(n,9).inline,"primary"!==t.Ob(n,9).color&&"accent"!==t.Ob(n,9).color&&"warn"!==t.Ob(n,9).color,t.Ob(n,10).inline,t.Ob(n,10).size,t.Ob(n,10).iconHTML)})}function I(l){return t.bc(0,[(l()(),t.Ab(0,0,null,null,69,"form",[["class","w-full"],["novalidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],function(l,n,e){var a=!0;return"submit"===n&&(a=!1!==t.Ob(l,2).onSubmit(e)&&a),"reset"===n&&(a=!1!==t.Ob(l,2).onReset()&&a),a},null,null)),t.zb(1,16384,null,0,O.A,[],null,null),t.zb(2,540672,null,0,O.k,[[8,null],[8,null]],{form:[0,"form"]},null),t.Tb(2048,null,O.d,null,[O.k]),t.zb(4,16384,null,0,O.r,[[6,O.d]],null,null),(l()(),t.Ab(5,0,null,null,64,"div",[["class","w-full"],["fxLayout","row"],["fxLayoutAlign","space-around start"],["fxLayoutGap","10px"]],null,null,null,null,null)),t.zb(6,671744,null,0,r.d,[t.l,c.i,r.k,c.f],{fxLayout:[0,"fxLayout"]},null),t.zb(7,1720320,null,0,r.e,[t.l,t.B,g.b,c.i,r.j,c.f],{fxLayoutGap:[0,"fxLayoutGap"]},null),t.zb(8,671744,null,0,r.c,[t.l,c.i,r.i,c.f],{fxLayoutAlign:[0,"fxLayoutAlign"]},null),(l()(),t.Ab(9,0,null,null,27,"mat-form-field",[["class","w-full mat-form-field"],["fxFlex","25"]],[[2,"mat-form-field-appearance-standard",null],[2,"mat-form-field-appearance-fill",null],[2,"mat-form-field-appearance-outline",null],[2,"mat-form-field-appearance-legacy",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-has-label",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-form-field-autofilled",null],[2,"mat-focused",null],[2,"mat-accent",null],[2,"mat-warn",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[2,"_mat-animation-noopable",null]],null,null,v.b,v.a)),t.zb(10,737280,null,0,r.b,[t.l,c.i,c.e,r.h,c.f],{fxFlex:[0,"fxFlex"]},null),t.zb(11,7520256,null,9,o.g,[t.l,t.h,t.l,[2,g.b],[2,o.c],_.a,t.B,[2,d.a]],null,null),t.Ub(603979776,1,{_controlNonStatic:0}),t.Ub(335544320,2,{_controlStatic:0}),t.Ub(603979776,3,{_labelChildNonStatic:0}),t.Ub(335544320,4,{_labelChildStatic:0}),t.Ub(603979776,5,{_placeholderChild:0}),t.Ub(603979776,6,{_errorChildren:1}),t.Ub(603979776,7,{_hintChildren:1}),t.Ub(603979776,8,{_prefixChildren:1}),t.Ub(603979776,9,{_suffixChildren:1}),t.Tb(2048,null,o.b,null,[o.g]),(l()(),t.Ab(22,0,null,3,2,"mat-label",[],null,null,null,null,null)),t.zb(23,16384,[[3,4],[4,4]],0,o.k,[],null,null),(l()(),t.Yb(-1,null,["Organization"])),(l()(),t.Ab(25,0,null,1,11,"mat-select",[["aria-autocomplete","none"],["aria-haspopup","true"],["class","mat-select"],["formControlName","organization"],["role","combobox"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[1,"id",0],[1,"tabindex",0],[1,"aria-controls",0],[1,"aria-expanded",0],[1,"aria-label",0],[1,"aria-required",0],[1,"aria-disabled",0],[1,"aria-invalid",0],[1,"aria-describedby",0],[1,"aria-activedescendant",0],[2,"mat-select-disabled",null],[2,"mat-select-invalid",null],[2,"mat-select-required",null],[2,"mat-select-empty",null],[2,"mat-select-multiple",null]],[[null,"selectionChange"],[null,"keydown"],[null,"focus"],[null,"blur"]],function(l,n,e){var a=!0,i=l.component;return"keydown"===n&&(a=!1!==t.Ob(l,30)._handleKeydown(e)&&a),"focus"===n&&(a=!1!==t.Ob(l,30)._onFocus()&&a),"blur"===n&&(a=!1!==t.Ob(l,30)._onBlur()&&a),"selectionChange"===n&&(a=!1!==i.selectOrganization(e)&&a),a},x.b,x.a)),t.Tb(6144,null,i.j,null,[y.d]),t.zb(27,671744,null,0,O.j,[[3,O.d],[8,null],[8,null],[8,null],[2,O.z]],{name:[0,"name"]},null),t.Tb(2048,null,O.p,null,[O.j]),t.zb(29,16384,null,0,O.q,[[4,O.p]],null,null),t.zb(30,2080768,null,3,y.d,[j.e,t.h,t.B,i.d,t.l,[2,g.b],[2,O.s],[2,O.k],[2,o.b],[6,O.p],[8,null],y.b,b.k,[2,y.a]],{compareWith:[0,"compareWith"]},{selectionChange:"selectionChange"}),t.Ub(603979776,10,{options:1}),t.Ub(603979776,11,{optionGroups:1}),t.Ub(603979776,12,{customTrigger:0}),t.Tb(2048,[[1,4],[2,4]],o.h,null,[y.d]),(l()(),t.jb(16777216,null,1,1,null,C)),t.zb(36,278528,null,0,w.n,[t.R,t.O,t.u],{ngForOf:[0,"ngForOf"]},null),(l()(),t.Ab(37,0,null,null,30,"mat-form-field",[["class","w-full mat-form-field"],["fxFlex","75"]],[[2,"mat-form-field-appearance-standard",null],[2,"mat-form-field-appearance-fill",null],[2,"mat-form-field-appearance-outline",null],[2,"mat-form-field-appearance-legacy",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-has-label",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-form-field-autofilled",null],[2,"mat-focused",null],[2,"mat-accent",null],[2,"mat-warn",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[2,"_mat-animation-noopable",null]],null,null,v.b,v.a)),t.zb(38,737280,null,0,r.b,[t.l,c.i,c.e,r.h,c.f],{fxFlex:[0,"fxFlex"]},null),t.zb(39,7520256,null,9,o.g,[t.l,t.h,t.l,[2,g.b],[2,o.c],_.a,t.B,[2,d.a]],null,null),t.Ub(603979776,13,{_controlNonStatic:0}),t.Ub(335544320,14,{_controlStatic:0}),t.Ub(603979776,15,{_labelChildNonStatic:0}),t.Ub(335544320,16,{_labelChildStatic:0}),t.Ub(603979776,17,{_placeholderChild:0}),t.Ub(603979776,18,{_errorChildren:1}),t.Ub(603979776,19,{_hintChildren:1}),t.Ub(603979776,20,{_prefixChildren:1}),t.Ub(603979776,21,{_suffixChildren:1}),t.Tb(2048,null,o.b,null,[o.g]),(l()(),t.Ab(50,0,null,3,2,"mat-label",[],null,null,null,null,null)),t.zb(51,16384,[[15,4],[16,4]],0,o.k,[],null,null),(l()(),t.Yb(-1,null,["Project"])),(l()(),t.Ab(53,0,null,1,12,"mat-select",[["aria-autocomplete","none"],["aria-haspopup","true"],["class","mat-select"],["formControlName","project"],["role","combobox"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[1,"id",0],[1,"tabindex",0],[1,"aria-controls",0],[1,"aria-expanded",0],[1,"aria-label",0],[1,"aria-required",0],[1,"aria-disabled",0],[1,"aria-invalid",0],[1,"aria-describedby",0],[1,"aria-activedescendant",0],[2,"mat-select-disabled",null],[2,"mat-select-invalid",null],[2,"mat-select-required",null],[2,"mat-select-empty",null],[2,"mat-select-multiple",null]],[[null,"selectionChange"],[null,"keydown"],[null,"focus"],[null,"blur"]],function(l,n,e){var a=!0,i=l.component;return"keydown"===n&&(a=!1!==t.Ob(l,58)._handleKeydown(e)&&a),"focus"===n&&(a=!1!==t.Ob(l,58)._onFocus()&&a),"blur"===n&&(a=!1!==t.Ob(l,58)._onBlur()&&a),"selectionChange"===n&&(a=!1!==i.selectProject(e)&&a),a},x.b,x.a)),t.Tb(6144,null,i.j,null,[y.d]),t.zb(55,671744,null,0,O.j,[[3,O.d],[8,null],[8,null],[8,null],[2,O.z]],{name:[0,"name"]},null),t.Tb(2048,null,O.p,null,[O.j]),t.zb(57,16384,null,0,O.q,[[4,O.p]],null,null),t.zb(58,2080768,null,3,y.d,[j.e,t.h,t.B,i.d,t.l,[2,g.b],[2,O.s],[2,O.k],[2,o.b],[6,O.p],[8,null],y.b,b.k,[2,y.a]],{compareWith:[0,"compareWith"]},{selectionChange:"selectionChange"}),t.Ub(603979776,22,{options:1}),t.Ub(603979776,23,{optionGroups:1}),t.Ub(603979776,24,{customTrigger:0}),t.Tb(2048,[[13,4],[14,4]],o.h,null,[y.d]),(l()(),t.jb(16777216,null,1,2,null,F)),t.zb(64,278528,null,0,w.n,[t.R,t.O,t.u],{ngForOf:[0,"ngForOf"]},null),t.Qb(131072,w.b,[t.h]),(l()(),t.jb(16777216,null,6,1,null,S)),t.zb(67,16384,null,0,w.o,[t.R,t.O],{ngIf:[0,"ngIf"]},null),(l()(),t.jb(16777216,null,null,1,null,A)),t.zb(69,16384,null,0,w.o,[t.R,t.O],{ngIf:[0,"ngIf"]},null)],function(l,n){var e=n.component;l(n,2,0,e.form),l(n,6,0,"row"),l(n,7,0,"10px"),l(n,8,0,"space-around start"),l(n,10,0,"25"),l(n,27,0,"organization"),l(n,30,0,e.compareResource),l(n,36,0,e.organizations),l(n,38,0,"75"),l(n,55,0,"project"),l(n,58,0,e.compareResource),l(n,64,0,t.Zb(n,64,0,t.Ob(n,65).transform(e.projects$))),l(n,67,0,e.hint),l(n,69,0,e.form.value.project)},function(l,n){l(n,0,0,t.Ob(n,4).ngClassUntouched,t.Ob(n,4).ngClassTouched,t.Ob(n,4).ngClassPristine,t.Ob(n,4).ngClassDirty,t.Ob(n,4).ngClassValid,t.Ob(n,4).ngClassInvalid,t.Ob(n,4).ngClassPending),l(n,9,1,["standard"==t.Ob(n,11).appearance,"fill"==t.Ob(n,11).appearance,"outline"==t.Ob(n,11).appearance,"legacy"==t.Ob(n,11).appearance,t.Ob(n,11)._control.errorState,t.Ob(n,11)._canLabelFloat(),t.Ob(n,11)._shouldLabelFloat(),t.Ob(n,11)._hasFloatingLabel(),t.Ob(n,11)._hideControlPlaceholder(),t.Ob(n,11)._control.disabled,t.Ob(n,11)._control.autofilled,t.Ob(n,11)._control.focused,"accent"==t.Ob(n,11).color,"warn"==t.Ob(n,11).color,t.Ob(n,11)._shouldForward("untouched"),t.Ob(n,11)._shouldForward("touched"),t.Ob(n,11)._shouldForward("pristine"),t.Ob(n,11)._shouldForward("dirty"),t.Ob(n,11)._shouldForward("valid"),t.Ob(n,11)._shouldForward("invalid"),t.Ob(n,11)._shouldForward("pending"),!t.Ob(n,11)._animationsEnabled]),l(n,25,1,[t.Ob(n,29).ngClassUntouched,t.Ob(n,29).ngClassTouched,t.Ob(n,29).ngClassPristine,t.Ob(n,29).ngClassDirty,t.Ob(n,29).ngClassValid,t.Ob(n,29).ngClassInvalid,t.Ob(n,29).ngClassPending,t.Ob(n,30).id,t.Ob(n,30).tabIndex,t.Ob(n,30).panelOpen?t.Ob(n,30).id+"-panel":null,t.Ob(n,30).panelOpen,t.Ob(n,30).ariaLabel||null,t.Ob(n,30).required.toString(),t.Ob(n,30).disabled.toString(),t.Ob(n,30).errorState,t.Ob(n,30)._ariaDescribedby||null,t.Ob(n,30)._getAriaActiveDescendant(),t.Ob(n,30).disabled,t.Ob(n,30).errorState,t.Ob(n,30).required,t.Ob(n,30).empty,t.Ob(n,30).multiple]),l(n,37,1,["standard"==t.Ob(n,39).appearance,"fill"==t.Ob(n,39).appearance,"outline"==t.Ob(n,39).appearance,"legacy"==t.Ob(n,39).appearance,t.Ob(n,39)._control.errorState,t.Ob(n,39)._canLabelFloat(),t.Ob(n,39)._shouldLabelFloat(),t.Ob(n,39)._hasFloatingLabel(),t.Ob(n,39)._hideControlPlaceholder(),t.Ob(n,39)._control.disabled,t.Ob(n,39)._control.autofilled,t.Ob(n,39)._control.focused,"accent"==t.Ob(n,39).color,"warn"==t.Ob(n,39).color,t.Ob(n,39)._shouldForward("untouched"),t.Ob(n,39)._shouldForward("touched"),t.Ob(n,39)._shouldForward("pristine"),t.Ob(n,39)._shouldForward("dirty"),t.Ob(n,39)._shouldForward("valid"),t.Ob(n,39)._shouldForward("invalid"),t.Ob(n,39)._shouldForward("pending"),!t.Ob(n,39)._animationsEnabled]),l(n,53,1,[t.Ob(n,57).ngClassUntouched,t.Ob(n,57).ngClassTouched,t.Ob(n,57).ngClassPristine,t.Ob(n,57).ngClassDirty,t.Ob(n,57).ngClassValid,t.Ob(n,57).ngClassInvalid,t.Ob(n,57).ngClassPending,t.Ob(n,58).id,t.Ob(n,58).tabIndex,t.Ob(n,58).panelOpen?t.Ob(n,58).id+"-panel":null,t.Ob(n,58).panelOpen,t.Ob(n,58).ariaLabel||null,t.Ob(n,58).required.toString(),t.Ob(n,58).disabled.toString(),t.Ob(n,58).errorState,t.Ob(n,58)._ariaDescribedby||null,t.Ob(n,58)._getAriaActiveDescendant(),t.Ob(n,58).disabled,t.Ob(n,58).errorState,t.Ob(n,58).required,t.Ob(n,58).empty,t.Ob(n,58).multiple])})}},M1HD:function(l,n,e){"use strict";e.d(n,"a",function(){return c});var t=e("8Y7J"),a=e("s7LF"),i=e("5mnX"),o=e.n(i),u=e("lJxs"),r=e("V99k");class c{constructor(l,n,e){this.fb=l,this.organizationsResource=n,this.projectsDataService=e,this.onProjectSelect=new t.o,this.icClose=o.a,this.form=this.fb.group({organization:new a.h(null),project:new a.h(this.project)}),this.organizationsResource.index({shadow:!0}).pipe(Object(u.a)(l=>l.map(l=>new r.l(l)))).subscribe(l=>{this.organizations=l;const n=this.organizations.find(l=>this.project?l.id===this.project.organizationId:l.isShadow);this.form.patchValue({organization:n})}),this.projectsDataService.fetch(),this.projects$=this.projectsDataService.projects$}ngOnInit(){}ngOnChanges(l){const{project:n}=l;if(n){const{currentValue:l,previousValue:e}=n;(null==e?void 0:e.id)!==(null==l?void 0:l.id)&&this.form.patchValue({project:l})}}removeProject(){this.form.patchValue({project:null}),this.onProjectSelect.emit(null)}selectOrganization(l){this.projectsDataService.fetchByOrganizationId(l.value.id)}selectProject(l){const n=l.value;this.form.patchValue({project:n}),this.onProjectSelect.emit(n)}compareResource(l,n){return(null==l?void 0:l.id)===(null==n?void 0:n.id)}}},iItg:function(l,n,e){"use strict";e.d(n,"a",function(){return t});class t{}},v9Wg:function(l,n,e){"use strict";e.d(n,"a",function(){return r});var t=e("2Vo4"),a=e("LRne"),i=e("8Y7J"),o=e("msBP"),u=e("3Ncz");let r=(()=>{class l{constructor(l,n){this.projectDataService=l,this.scenariosResource=n,this.subject=new t.a(null),this.scenarios$=this.subject.asObservable()}fetchByProjectId(l){this.fetch({project_id:l})}fetch(l){let n=l.project_id;if(null==n){if(!this.projectDataService.project)return;n=this.projectDataService.project.id}const e=Object.assign({project_id:n},l);this.scenariosResource.index(e).subscribe(l=>{this.set(l.list)})}get(){return this.scenarios$}set(l){this.scenarios=l,this.subject.next(l)}next(l){return l.page+=1,this.fetch(l)}prev(l){return l.page?(l.page-=1,this.fetch(l)):Object(a.a)()}}return l.\u0275prov=i.cc({factory:function(){return new l(i.dc(o.a),i.dc(u.a))},token:l,providedIn:"root"}),l})()},wjWB:function(l,n,e){"use strict";e.d(n,"a",function(){return i});var t=e("8Y7J"),a=e("iCaw");let i=(()=>{class l{constructor(l){this.restApi=l,this.ENDPOINT="organizations"}index(l){return this.restApi.index([this.ENDPOINT],l)}show(l,n){return this.restApi.show([this.ENDPOINT,l],n)}create(l){return this.restApi.create([this.ENDPOINT],l)}update(l,n){return this.restApi.update([this.ENDPOINT,l],n)}destroy(l){return this.restApi.destroy([this.ENDPOINT,l])}subscription(l,n){return this.restApi.index([this.ENDPOINT,l,"subscription"],n)}payments(l,n){return this.restApi.index([this.ENDPOINT,l,"payments"],n)}}return l.\u0275prov=t.cc({factory:function(){return new l(t.dc(a.a))},token:l,providedIn:"root"}),l})()}}]);
@@ -1 +1 @@
1
- !function(){function l(l,n){if(!(l instanceof n))throw new TypeError("Cannot call a class as a function")}function n(l,n){for(var e=0;e<n.length;e++){var t=n[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(l,t.key,t)}}function e(l,e,t){return e&&n(l.prototype,e),t&&n(l,t),l}(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{"56zZ":function(l,n,e){"use strict";e.d(n,"a",function(){return z}),e.d(n,"b",function(){return A});var t=e("8Y7J"),a=e("CeGm"),i=e("UhP/"),u=e("Q2Ze"),o=e("1Xc+"),r=e("VDRc"),c=e("/q54"),b=e("Dxy4"),s=e("YEUz"),d=e("omvX"),f=e("XE/z"),p=e("Tj54"),m=e("l+Q0"),h=e("cUpR"),O=e("s7LF"),g=e("9gLZ"),v=e("H3DK"),y=e("SCoL"),_=e("Y1Mv"),x=e("ZTz/"),w=e("7KAL"),j=e("SVse"),z=(e("M1HD"),e("wjWB"),e("sNP5"),t.yb({encapsulation:0,styles:[[""]],data:{}}));function C(l){return t.bc(0,[(l()(),t.Ab(0,0,null,null,2,"mat-option",[["class","mat-option mat-focus-indicator"],["role","option"]],[[1,"tabindex",0],[2,"mat-selected",null],[2,"mat-option-multiple",null],[2,"mat-active",null],[8,"id",0],[1,"aria-selected",0],[1,"aria-disabled",0],[2,"mat-option-disabled",null]],[[null,"click"],[null,"keydown"]],function(l,n,e){var a=!0;return"click"===n&&(a=!1!==t.Ob(l,1)._selectViaInteraction()&&a),"keydown"===n&&(a=!1!==t.Ob(l,1)._handleKeydown(e)&&a),a},a.c,a.a)),t.zb(1,8568832,[[10,4]],0,i.q,[t.l,t.h,[2,i.j],[2,i.i]],{value:[0,"value"]},null),(l()(),t.Yb(2,0,[" "," "]))],function(l,n){l(n,1,0,n.context.$implicit)},function(l,n){l(n,0,0,t.Ob(n,1)._getTabIndex(),t.Ob(n,1).selected,t.Ob(n,1).multiple,t.Ob(n,1).active,t.Ob(n,1).id,t.Ob(n,1)._getAriaSelected(),t.Ob(n,1).disabled.toString(),t.Ob(n,1).disabled),l(n,2,0,n.context.$implicit.name)})}function k(l){return t.bc(0,[(l()(),t.Ab(0,0,null,null,2,"mat-option",[["class","mat-option mat-focus-indicator"],["role","option"]],[[1,"tabindex",0],[2,"mat-selected",null],[2,"mat-option-multiple",null],[2,"mat-active",null],[8,"id",0],[1,"aria-selected",0],[1,"aria-disabled",0],[2,"mat-option-disabled",null]],[[null,"click"],[null,"keydown"]],function(l,n,e){var a=!0;return"click"===n&&(a=!1!==t.Ob(l,1)._selectViaInteraction()&&a),"keydown"===n&&(a=!1!==t.Ob(l,1)._handleKeydown(e)&&a),a},a.c,a.a)),t.zb(1,8568832,[[22,4]],0,i.q,[t.l,t.h,[2,i.j],[2,i.i]],{value:[0,"value"]},null),(l()(),t.Yb(2,0,[" "," "]))],function(l,n){l(n,1,0,n.context.$implicit)},function(l,n){l(n,0,0,t.Ob(n,1)._getTabIndex(),t.Ob(n,1).selected,t.Ob(n,1).multiple,t.Ob(n,1).active,t.Ob(n,1).id,t.Ob(n,1)._getAriaSelected(),t.Ob(n,1).disabled.toString(),t.Ob(n,1).disabled),l(n,2,0,n.context.$implicit.name)})}function F(l){return t.bc(0,[(l()(),t.Ab(0,0,null,null,3,"mat-hint",[["class","mat-hint"]],[[2,"mat-form-field-hint-end",null],[1,"id",0],[1,"align",0]],null,null,null,null)),t.zb(1,16384,null,0,u.j,[],null,null),t.Tb(2048,[[19,4]],u.n,null,[u.j]),(l()(),t.Yb(3,null,["",""]))],null,function(l,n){var e=n.component;l(n,0,0,"end"===t.Ob(n,1).align,t.Ob(n,1).id,null),l(n,3,0,e.hint)})}function S(l){return t.bc(0,[(l()(),t.Ab(0,0,null,null,10,"button",[["class","input-button mt-2 mat-focus-indicator"],["fxFlex","40px"],["mat-icon-button",""],["matSuffix",""],["type","button"]],[[1,"disabled",0],[2,"_mat-animation-noopable",null],[2,"mat-button-disabled",null]],[[null,"click"]],function(l,n,e){var t=!0;return"click"===n&&(t=!1!==l.component.removeProject()&&t),t},o.d,o.b)),t.Tb(6144,null,u.e,null,[u.m]),t.zb(2,737280,null,0,r.b,[t.l,c.i,c.e,r.h,c.f],{fxFlex:[0,"fxFlex"]},null),t.zb(3,4374528,null,0,b.b,[t.l,s.h,[2,d.a]],null,null),t.zb(4,16384,null,0,u.m,[],null,null),(l()(),t.Ab(5,0,null,0,5,"div",[["fxLayout","row"],["fxLayoutAlign","center center"]],null,null,null,null,null)),t.zb(6,671744,null,0,r.d,[t.l,c.i,r.k,c.f],{fxLayout:[0,"fxLayout"]},null),t.zb(7,671744,null,0,r.c,[t.l,c.i,r.i,c.f],{fxLayoutAlign:[0,"fxLayoutAlign"]},null),(l()(),t.Ab(8,0,null,null,2,"mat-icon",[["class","mat-icon notranslate"],["role","img"]],[[1,"data-mat-icon-type",0],[1,"data-mat-icon-name",0],[1,"data-mat-icon-namespace",0],[2,"mat-icon-inline",null],[2,"mat-icon-no-color",null],[2,"ic-inline",null],[4,"font-size",null],[8,"innerHTML",1]],null,null,f.b,f.a)),t.zb(9,8634368,null,0,p.b,[t.l,p.d,[8,null],p.a,t.n],null,null),t.zb(10,606208,null,0,m.a,[h.b],{icIcon:[0,"icIcon"]},null)],function(l,n){var e=n.component;l(n,2,0,"40px"),l(n,6,0,"row"),l(n,7,0,"center center"),l(n,9,0),l(n,10,0,e.icClose)},function(l,n){l(n,0,0,t.Ob(n,3).disabled||null,"NoopAnimations"===t.Ob(n,3)._animationMode,t.Ob(n,3).disabled),l(n,8,0,t.Ob(n,9)._usingFontIcon()?"font":"svg",t.Ob(n,9)._svgName||t.Ob(n,9).fontIcon,t.Ob(n,9)._svgNamespace||t.Ob(n,9).fontSet,t.Ob(n,9).inline,"primary"!==t.Ob(n,9).color&&"accent"!==t.Ob(n,9).color&&"warn"!==t.Ob(n,9).color,t.Ob(n,10).inline,t.Ob(n,10).size,t.Ob(n,10).iconHTML)})}function A(l){return t.bc(0,[(l()(),t.Ab(0,0,null,null,69,"form",[["class","w-full"],["novalidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],function(l,n,e){var a=!0;return"submit"===n&&(a=!1!==t.Ob(l,2).onSubmit(e)&&a),"reset"===n&&(a=!1!==t.Ob(l,2).onReset()&&a),a},null,null)),t.zb(1,16384,null,0,O.A,[],null,null),t.zb(2,540672,null,0,O.k,[[8,null],[8,null]],{form:[0,"form"]},null),t.Tb(2048,null,O.d,null,[O.k]),t.zb(4,16384,null,0,O.r,[[6,O.d]],null,null),(l()(),t.Ab(5,0,null,null,64,"div",[["class","w-full"],["fxLayout","row"],["fxLayoutAlign","space-around start"],["fxLayoutGap","10px"]],null,null,null,null,null)),t.zb(6,671744,null,0,r.d,[t.l,c.i,r.k,c.f],{fxLayout:[0,"fxLayout"]},null),t.zb(7,1720320,null,0,r.e,[t.l,t.B,g.b,c.i,r.j,c.f],{fxLayoutGap:[0,"fxLayoutGap"]},null),t.zb(8,671744,null,0,r.c,[t.l,c.i,r.i,c.f],{fxLayoutAlign:[0,"fxLayoutAlign"]},null),(l()(),t.Ab(9,0,null,null,27,"mat-form-field",[["class","w-full mat-form-field"],["fxFlex","25"]],[[2,"mat-form-field-appearance-standard",null],[2,"mat-form-field-appearance-fill",null],[2,"mat-form-field-appearance-outline",null],[2,"mat-form-field-appearance-legacy",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-has-label",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-form-field-autofilled",null],[2,"mat-focused",null],[2,"mat-accent",null],[2,"mat-warn",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[2,"_mat-animation-noopable",null]],null,null,v.b,v.a)),t.zb(10,737280,null,0,r.b,[t.l,c.i,c.e,r.h,c.f],{fxFlex:[0,"fxFlex"]},null),t.zb(11,7520256,null,9,u.g,[t.l,t.h,t.l,[2,g.b],[2,u.c],y.a,t.B,[2,d.a]],null,null),t.Ub(603979776,1,{_controlNonStatic:0}),t.Ub(335544320,2,{_controlStatic:0}),t.Ub(603979776,3,{_labelChildNonStatic:0}),t.Ub(335544320,4,{_labelChildStatic:0}),t.Ub(603979776,5,{_placeholderChild:0}),t.Ub(603979776,6,{_errorChildren:1}),t.Ub(603979776,7,{_hintChildren:1}),t.Ub(603979776,8,{_prefixChildren:1}),t.Ub(603979776,9,{_suffixChildren:1}),t.Tb(2048,null,u.b,null,[u.g]),(l()(),t.Ab(22,0,null,3,2,"mat-label",[],null,null,null,null,null)),t.zb(23,16384,[[3,4],[4,4]],0,u.k,[],null,null),(l()(),t.Yb(-1,null,["Organization"])),(l()(),t.Ab(25,0,null,1,11,"mat-select",[["aria-autocomplete","none"],["aria-haspopup","true"],["class","mat-select"],["formControlName","organization"],["role","combobox"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[1,"id",0],[1,"tabindex",0],[1,"aria-controls",0],[1,"aria-expanded",0],[1,"aria-label",0],[1,"aria-required",0],[1,"aria-disabled",0],[1,"aria-invalid",0],[1,"aria-describedby",0],[1,"aria-activedescendant",0],[2,"mat-select-disabled",null],[2,"mat-select-invalid",null],[2,"mat-select-required",null],[2,"mat-select-empty",null],[2,"mat-select-multiple",null]],[[null,"selectionChange"],[null,"keydown"],[null,"focus"],[null,"blur"]],function(l,n,e){var a=!0,i=l.component;return"keydown"===n&&(a=!1!==t.Ob(l,30)._handleKeydown(e)&&a),"focus"===n&&(a=!1!==t.Ob(l,30)._onFocus()&&a),"blur"===n&&(a=!1!==t.Ob(l,30)._onBlur()&&a),"selectionChange"===n&&(a=!1!==i.selectOrganization(e)&&a),a},_.b,_.a)),t.Tb(6144,null,i.j,null,[x.d]),t.zb(27,671744,null,0,O.j,[[3,O.d],[8,null],[8,null],[8,null],[2,O.z]],{name:[0,"name"]},null),t.Tb(2048,null,O.p,null,[O.j]),t.zb(29,16384,null,0,O.q,[[4,O.p]],null,null),t.zb(30,2080768,null,3,x.d,[w.e,t.h,t.B,i.d,t.l,[2,g.b],[2,O.s],[2,O.k],[2,u.b],[6,O.p],[8,null],x.b,s.k,[2,x.a]],{compareWith:[0,"compareWith"]},{selectionChange:"selectionChange"}),t.Ub(603979776,10,{options:1}),t.Ub(603979776,11,{optionGroups:1}),t.Ub(603979776,12,{customTrigger:0}),t.Tb(2048,[[1,4],[2,4]],u.h,null,[x.d]),(l()(),t.jb(16777216,null,1,1,null,C)),t.zb(36,278528,null,0,j.m,[t.R,t.O,t.u],{ngForOf:[0,"ngForOf"]},null),(l()(),t.Ab(37,0,null,null,30,"mat-form-field",[["class","w-full mat-form-field"],["fxFlex","75"]],[[2,"mat-form-field-appearance-standard",null],[2,"mat-form-field-appearance-fill",null],[2,"mat-form-field-appearance-outline",null],[2,"mat-form-field-appearance-legacy",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-has-label",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-form-field-autofilled",null],[2,"mat-focused",null],[2,"mat-accent",null],[2,"mat-warn",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[2,"_mat-animation-noopable",null]],null,null,v.b,v.a)),t.zb(38,737280,null,0,r.b,[t.l,c.i,c.e,r.h,c.f],{fxFlex:[0,"fxFlex"]},null),t.zb(39,7520256,null,9,u.g,[t.l,t.h,t.l,[2,g.b],[2,u.c],y.a,t.B,[2,d.a]],null,null),t.Ub(603979776,13,{_controlNonStatic:0}),t.Ub(335544320,14,{_controlStatic:0}),t.Ub(603979776,15,{_labelChildNonStatic:0}),t.Ub(335544320,16,{_labelChildStatic:0}),t.Ub(603979776,17,{_placeholderChild:0}),t.Ub(603979776,18,{_errorChildren:1}),t.Ub(603979776,19,{_hintChildren:1}),t.Ub(603979776,20,{_prefixChildren:1}),t.Ub(603979776,21,{_suffixChildren:1}),t.Tb(2048,null,u.b,null,[u.g]),(l()(),t.Ab(50,0,null,3,2,"mat-label",[],null,null,null,null,null)),t.zb(51,16384,[[15,4],[16,4]],0,u.k,[],null,null),(l()(),t.Yb(-1,null,["Project"])),(l()(),t.Ab(53,0,null,1,12,"mat-select",[["aria-autocomplete","none"],["aria-haspopup","true"],["class","mat-select"],["formControlName","project"],["role","combobox"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[1,"id",0],[1,"tabindex",0],[1,"aria-controls",0],[1,"aria-expanded",0],[1,"aria-label",0],[1,"aria-required",0],[1,"aria-disabled",0],[1,"aria-invalid",0],[1,"aria-describedby",0],[1,"aria-activedescendant",0],[2,"mat-select-disabled",null],[2,"mat-select-invalid",null],[2,"mat-select-required",null],[2,"mat-select-empty",null],[2,"mat-select-multiple",null]],[[null,"selectionChange"],[null,"keydown"],[null,"focus"],[null,"blur"]],function(l,n,e){var a=!0,i=l.component;return"keydown"===n&&(a=!1!==t.Ob(l,58)._handleKeydown(e)&&a),"focus"===n&&(a=!1!==t.Ob(l,58)._onFocus()&&a),"blur"===n&&(a=!1!==t.Ob(l,58)._onBlur()&&a),"selectionChange"===n&&(a=!1!==i.selectProject(e)&&a),a},_.b,_.a)),t.Tb(6144,null,i.j,null,[x.d]),t.zb(55,671744,null,0,O.j,[[3,O.d],[8,null],[8,null],[8,null],[2,O.z]],{name:[0,"name"]},null),t.Tb(2048,null,O.p,null,[O.j]),t.zb(57,16384,null,0,O.q,[[4,O.p]],null,null),t.zb(58,2080768,null,3,x.d,[w.e,t.h,t.B,i.d,t.l,[2,g.b],[2,O.s],[2,O.k],[2,u.b],[6,O.p],[8,null],x.b,s.k,[2,x.a]],{compareWith:[0,"compareWith"]},{selectionChange:"selectionChange"}),t.Ub(603979776,22,{options:1}),t.Ub(603979776,23,{optionGroups:1}),t.Ub(603979776,24,{customTrigger:0}),t.Tb(2048,[[13,4],[14,4]],u.h,null,[x.d]),(l()(),t.jb(16777216,null,1,2,null,k)),t.zb(64,278528,null,0,j.m,[t.R,t.O,t.u],{ngForOf:[0,"ngForOf"]},null),t.Qb(131072,j.b,[t.h]),(l()(),t.jb(16777216,null,6,1,null,F)),t.zb(67,16384,null,0,j.n,[t.R,t.O],{ngIf:[0,"ngIf"]},null),(l()(),t.jb(16777216,null,null,1,null,S)),t.zb(69,16384,null,0,j.n,[t.R,t.O],{ngIf:[0,"ngIf"]},null)],function(l,n){var e=n.component;l(n,2,0,e.form),l(n,6,0,"row"),l(n,7,0,"10px"),l(n,8,0,"space-around start"),l(n,10,0,"25"),l(n,27,0,"organization"),l(n,30,0,e.compareResource),l(n,36,0,e.organizations),l(n,38,0,"75"),l(n,55,0,"project"),l(n,58,0,e.compareResource),l(n,64,0,t.Zb(n,64,0,t.Ob(n,65).transform(e.projects$))),l(n,67,0,e.hint),l(n,69,0,e.form.value.project)},function(l,n){l(n,0,0,t.Ob(n,4).ngClassUntouched,t.Ob(n,4).ngClassTouched,t.Ob(n,4).ngClassPristine,t.Ob(n,4).ngClassDirty,t.Ob(n,4).ngClassValid,t.Ob(n,4).ngClassInvalid,t.Ob(n,4).ngClassPending),l(n,9,1,["standard"==t.Ob(n,11).appearance,"fill"==t.Ob(n,11).appearance,"outline"==t.Ob(n,11).appearance,"legacy"==t.Ob(n,11).appearance,t.Ob(n,11)._control.errorState,t.Ob(n,11)._canLabelFloat(),t.Ob(n,11)._shouldLabelFloat(),t.Ob(n,11)._hasFloatingLabel(),t.Ob(n,11)._hideControlPlaceholder(),t.Ob(n,11)._control.disabled,t.Ob(n,11)._control.autofilled,t.Ob(n,11)._control.focused,"accent"==t.Ob(n,11).color,"warn"==t.Ob(n,11).color,t.Ob(n,11)._shouldForward("untouched"),t.Ob(n,11)._shouldForward("touched"),t.Ob(n,11)._shouldForward("pristine"),t.Ob(n,11)._shouldForward("dirty"),t.Ob(n,11)._shouldForward("valid"),t.Ob(n,11)._shouldForward("invalid"),t.Ob(n,11)._shouldForward("pending"),!t.Ob(n,11)._animationsEnabled]),l(n,25,1,[t.Ob(n,29).ngClassUntouched,t.Ob(n,29).ngClassTouched,t.Ob(n,29).ngClassPristine,t.Ob(n,29).ngClassDirty,t.Ob(n,29).ngClassValid,t.Ob(n,29).ngClassInvalid,t.Ob(n,29).ngClassPending,t.Ob(n,30).id,t.Ob(n,30).tabIndex,t.Ob(n,30).panelOpen?t.Ob(n,30).id+"-panel":null,t.Ob(n,30).panelOpen,t.Ob(n,30).ariaLabel||null,t.Ob(n,30).required.toString(),t.Ob(n,30).disabled.toString(),t.Ob(n,30).errorState,t.Ob(n,30)._ariaDescribedby||null,t.Ob(n,30)._getAriaActiveDescendant(),t.Ob(n,30).disabled,t.Ob(n,30).errorState,t.Ob(n,30).required,t.Ob(n,30).empty,t.Ob(n,30).multiple]),l(n,37,1,["standard"==t.Ob(n,39).appearance,"fill"==t.Ob(n,39).appearance,"outline"==t.Ob(n,39).appearance,"legacy"==t.Ob(n,39).appearance,t.Ob(n,39)._control.errorState,t.Ob(n,39)._canLabelFloat(),t.Ob(n,39)._shouldLabelFloat(),t.Ob(n,39)._hasFloatingLabel(),t.Ob(n,39)._hideControlPlaceholder(),t.Ob(n,39)._control.disabled,t.Ob(n,39)._control.autofilled,t.Ob(n,39)._control.focused,"accent"==t.Ob(n,39).color,"warn"==t.Ob(n,39).color,t.Ob(n,39)._shouldForward("untouched"),t.Ob(n,39)._shouldForward("touched"),t.Ob(n,39)._shouldForward("pristine"),t.Ob(n,39)._shouldForward("dirty"),t.Ob(n,39)._shouldForward("valid"),t.Ob(n,39)._shouldForward("invalid"),t.Ob(n,39)._shouldForward("pending"),!t.Ob(n,39)._animationsEnabled]),l(n,53,1,[t.Ob(n,57).ngClassUntouched,t.Ob(n,57).ngClassTouched,t.Ob(n,57).ngClassPristine,t.Ob(n,57).ngClassDirty,t.Ob(n,57).ngClassValid,t.Ob(n,57).ngClassInvalid,t.Ob(n,57).ngClassPending,t.Ob(n,58).id,t.Ob(n,58).tabIndex,t.Ob(n,58).panelOpen?t.Ob(n,58).id+"-panel":null,t.Ob(n,58).panelOpen,t.Ob(n,58).ariaLabel||null,t.Ob(n,58).required.toString(),t.Ob(n,58).disabled.toString(),t.Ob(n,58).errorState,t.Ob(n,58)._ariaDescribedby||null,t.Ob(n,58)._getAriaActiveDescendant(),t.Ob(n,58).disabled,t.Ob(n,58).errorState,t.Ob(n,58).required,t.Ob(n,58).empty,t.Ob(n,58).multiple])})}},M1HD:function(n,t,a){"use strict";a.d(t,"a",function(){return s});var i=a("8Y7J"),u=a("s7LF"),o=a("5mnX"),r=a.n(o),c=a("lJxs"),b=a("V99k"),s=function(){function n(e,t,a){var o=this;l(this,n),this.fb=e,this.organizationsResource=t,this.projectsDataService=a,this.onProjectSelect=new i.o,this.icClose=r.a,this.form=this.fb.group({organization:new u.h(null),project:new u.h(this.project)}),this.organizationsResource.index({shadow:!0}).pipe(Object(c.a)(function(l){return l.map(function(l){return new b.l(l)})})).subscribe(function(l){o.organizations=l;var n=o.organizations.find(function(l){return o.project?l.id===o.project.organizationId:l.isShadow});o.form.patchValue({organization:n})}),this.projectsDataService.fetch(),this.projects$=this.projectsDataService.projects$}return e(n,[{key:"ngOnInit",value:function(){}},{key:"ngOnChanges",value:function(l){var n=l.project;if(n){var e=n.currentValue,t=n.previousValue;(null==t?void 0:t.id)!==(null==e?void 0:e.id)&&this.form.patchValue({project:e})}}},{key:"removeProject",value:function(){this.form.patchValue({project:null}),this.onProjectSelect.emit(null)}},{key:"selectOrganization",value:function(l){this.projectsDataService.fetchByOrganizationId(l.value.id)}},{key:"selectProject",value:function(l){var n=l.value;this.form.patchValue({project:n}),this.onProjectSelect.emit(n)}},{key:"compareResource",value:function(l,n){return(null==l?void 0:l.id)===(null==n?void 0:n.id)}}]),n}()},iItg:function(n,e,t){"use strict";t.d(e,"a",function(){return a});var a=function n(){l(this,n)}},v9Wg:function(n,t,a){"use strict";a.d(t,"a",function(){return b});var i=a("2Vo4"),u=a("LRne"),o=a("8Y7J"),r=a("msBP"),c=a("3Ncz"),b=function(){var n=function(){function n(e,t){l(this,n),this.projectDataService=e,this.scenariosResource=t,this.subject=new i.a(null),this.scenarios$=this.subject.asObservable()}return e(n,[{key:"fetchByProjectId",value:function(l){this.fetch({project_id:l})}},{key:"fetch",value:function(l){var n=this,e=l.project_id;if(null==e){if(!this.projectDataService.project)return;e=this.projectDataService.project.id}var t=Object.assign({project_id:e},l);this.scenariosResource.index(t).subscribe(function(l){n.set(l.list)})}},{key:"get",value:function(){return this.scenarios$}},{key:"set",value:function(l){this.scenarios=l,this.subject.next(l)}},{key:"next",value:function(l){return l.page+=1,this.fetch(l)}},{key:"prev",value:function(l){return l.page?(l.page-=1,this.fetch(l)):Object(u.a)()}}]),n}();return n.\u0275prov=o.cc({factory:function(){return new n(o.dc(r.a),o.dc(c.a))},token:n,providedIn:"root"}),n}()},wjWB:function(n,t,a){"use strict";a.d(t,"a",function(){return o});var i=a("8Y7J"),u=a("iCaw"),o=function(){var n=function(){function n(e){l(this,n),this.restApi=e,this.ENDPOINT="organizations"}return e(n,[{key:"index",value:function(l){return this.restApi.index([this.ENDPOINT],l)}},{key:"show",value:function(l,n){return this.restApi.show([this.ENDPOINT,l],n)}},{key:"create",value:function(l){return this.restApi.create([this.ENDPOINT],l)}},{key:"update",value:function(l,n){return this.restApi.update([this.ENDPOINT,l],n)}},{key:"destroy",value:function(l){return this.restApi.destroy([this.ENDPOINT,l])}},{key:"subscription",value:function(l,n){return this.restApi.index([this.ENDPOINT,l,"subscription"],n)}},{key:"payments",value:function(l,n){return this.restApi.index([this.ENDPOINT,l,"payments"],n)}}]),n}();return n.\u0275prov=i.cc({factory:function(){return new n(i.dc(u.a))},token:n,providedIn:"root"}),n}()}}])}();
1
+ !function(){function l(l,n){if(!(l instanceof n))throw new TypeError("Cannot call a class as a function")}function n(l,n){for(var e=0;e<n.length;e++){var t=n[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(l,t.key,t)}}function e(l,e,t){return e&&n(l.prototype,e),t&&n(l,t),l}(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{"56zZ":function(l,n,e){"use strict";e.d(n,"a",function(){return z}),e.d(n,"b",function(){return A});var t=e("8Y7J"),a=e("CeGm"),i=e("UhP/"),u=e("Q2Ze"),o=e("1Xc+"),r=e("VDRc"),c=e("/q54"),b=e("Dxy4"),s=e("YEUz"),d=e("omvX"),f=e("XE/z"),p=e("Tj54"),m=e("l+Q0"),h=e("cUpR"),O=e("s7LF"),g=e("9gLZ"),v=e("H3DK"),y=e("SCoL"),_=e("Y1Mv"),x=e("ZTz/"),w=e("7KAL"),j=e("SVse"),z=(e("M1HD"),e("wjWB"),e("sNP5"),t.yb({encapsulation:0,styles:[[""]],data:{}}));function C(l){return t.bc(0,[(l()(),t.Ab(0,0,null,null,2,"mat-option",[["class","mat-option mat-focus-indicator"],["role","option"]],[[1,"tabindex",0],[2,"mat-selected",null],[2,"mat-option-multiple",null],[2,"mat-active",null],[8,"id",0],[1,"aria-selected",0],[1,"aria-disabled",0],[2,"mat-option-disabled",null]],[[null,"click"],[null,"keydown"]],function(l,n,e){var a=!0;return"click"===n&&(a=!1!==t.Ob(l,1)._selectViaInteraction()&&a),"keydown"===n&&(a=!1!==t.Ob(l,1)._handleKeydown(e)&&a),a},a.c,a.a)),t.zb(1,8568832,[[10,4]],0,i.q,[t.l,t.h,[2,i.j],[2,i.i]],{value:[0,"value"]},null),(l()(),t.Yb(2,0,[" "," "]))],function(l,n){l(n,1,0,n.context.$implicit)},function(l,n){l(n,0,0,t.Ob(n,1)._getTabIndex(),t.Ob(n,1).selected,t.Ob(n,1).multiple,t.Ob(n,1).active,t.Ob(n,1).id,t.Ob(n,1)._getAriaSelected(),t.Ob(n,1).disabled.toString(),t.Ob(n,1).disabled),l(n,2,0,n.context.$implicit.name)})}function k(l){return t.bc(0,[(l()(),t.Ab(0,0,null,null,2,"mat-option",[["class","mat-option mat-focus-indicator"],["role","option"]],[[1,"tabindex",0],[2,"mat-selected",null],[2,"mat-option-multiple",null],[2,"mat-active",null],[8,"id",0],[1,"aria-selected",0],[1,"aria-disabled",0],[2,"mat-option-disabled",null]],[[null,"click"],[null,"keydown"]],function(l,n,e){var a=!0;return"click"===n&&(a=!1!==t.Ob(l,1)._selectViaInteraction()&&a),"keydown"===n&&(a=!1!==t.Ob(l,1)._handleKeydown(e)&&a),a},a.c,a.a)),t.zb(1,8568832,[[22,4]],0,i.q,[t.l,t.h,[2,i.j],[2,i.i]],{value:[0,"value"]},null),(l()(),t.Yb(2,0,[" "," "]))],function(l,n){l(n,1,0,n.context.$implicit)},function(l,n){l(n,0,0,t.Ob(n,1)._getTabIndex(),t.Ob(n,1).selected,t.Ob(n,1).multiple,t.Ob(n,1).active,t.Ob(n,1).id,t.Ob(n,1)._getAriaSelected(),t.Ob(n,1).disabled.toString(),t.Ob(n,1).disabled),l(n,2,0,n.context.$implicit.name)})}function F(l){return t.bc(0,[(l()(),t.Ab(0,0,null,null,3,"mat-hint",[["class","mat-hint"]],[[2,"mat-form-field-hint-end",null],[1,"id",0],[1,"align",0]],null,null,null,null)),t.zb(1,16384,null,0,u.j,[],null,null),t.Tb(2048,[[19,4]],u.n,null,[u.j]),(l()(),t.Yb(3,null,["",""]))],null,function(l,n){var e=n.component;l(n,0,0,"end"===t.Ob(n,1).align,t.Ob(n,1).id,null),l(n,3,0,e.hint)})}function S(l){return t.bc(0,[(l()(),t.Ab(0,0,null,null,10,"button",[["class","input-button mt-2 mat-focus-indicator"],["fxFlex","40px"],["mat-icon-button",""],["matSuffix",""],["type","button"]],[[1,"disabled",0],[2,"_mat-animation-noopable",null],[2,"mat-button-disabled",null]],[[null,"click"]],function(l,n,e){var t=!0;return"click"===n&&(t=!1!==l.component.removeProject()&&t),t},o.d,o.b)),t.Tb(6144,null,u.e,null,[u.m]),t.zb(2,737280,null,0,r.b,[t.l,c.i,c.e,r.h,c.f],{fxFlex:[0,"fxFlex"]},null),t.zb(3,4374528,null,0,b.b,[t.l,s.h,[2,d.a]],null,null),t.zb(4,16384,null,0,u.m,[],null,null),(l()(),t.Ab(5,0,null,0,5,"div",[["fxLayout","row"],["fxLayoutAlign","center center"]],null,null,null,null,null)),t.zb(6,671744,null,0,r.d,[t.l,c.i,r.k,c.f],{fxLayout:[0,"fxLayout"]},null),t.zb(7,671744,null,0,r.c,[t.l,c.i,r.i,c.f],{fxLayoutAlign:[0,"fxLayoutAlign"]},null),(l()(),t.Ab(8,0,null,null,2,"mat-icon",[["class","mat-icon notranslate"],["role","img"]],[[1,"data-mat-icon-type",0],[1,"data-mat-icon-name",0],[1,"data-mat-icon-namespace",0],[2,"mat-icon-inline",null],[2,"mat-icon-no-color",null],[2,"ic-inline",null],[4,"font-size",null],[8,"innerHTML",1]],null,null,f.b,f.a)),t.zb(9,8634368,null,0,p.b,[t.l,p.d,[8,null],p.a,t.n],null,null),t.zb(10,606208,null,0,m.a,[h.b],{icIcon:[0,"icIcon"]},null)],function(l,n){var e=n.component;l(n,2,0,"40px"),l(n,6,0,"row"),l(n,7,0,"center center"),l(n,9,0),l(n,10,0,e.icClose)},function(l,n){l(n,0,0,t.Ob(n,3).disabled||null,"NoopAnimations"===t.Ob(n,3)._animationMode,t.Ob(n,3).disabled),l(n,8,0,t.Ob(n,9)._usingFontIcon()?"font":"svg",t.Ob(n,9)._svgName||t.Ob(n,9).fontIcon,t.Ob(n,9)._svgNamespace||t.Ob(n,9).fontSet,t.Ob(n,9).inline,"primary"!==t.Ob(n,9).color&&"accent"!==t.Ob(n,9).color&&"warn"!==t.Ob(n,9).color,t.Ob(n,10).inline,t.Ob(n,10).size,t.Ob(n,10).iconHTML)})}function A(l){return t.bc(0,[(l()(),t.Ab(0,0,null,null,69,"form",[["class","w-full"],["novalidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],function(l,n,e){var a=!0;return"submit"===n&&(a=!1!==t.Ob(l,2).onSubmit(e)&&a),"reset"===n&&(a=!1!==t.Ob(l,2).onReset()&&a),a},null,null)),t.zb(1,16384,null,0,O.A,[],null,null),t.zb(2,540672,null,0,O.k,[[8,null],[8,null]],{form:[0,"form"]},null),t.Tb(2048,null,O.d,null,[O.k]),t.zb(4,16384,null,0,O.r,[[6,O.d]],null,null),(l()(),t.Ab(5,0,null,null,64,"div",[["class","w-full"],["fxLayout","row"],["fxLayoutAlign","space-around start"],["fxLayoutGap","10px"]],null,null,null,null,null)),t.zb(6,671744,null,0,r.d,[t.l,c.i,r.k,c.f],{fxLayout:[0,"fxLayout"]},null),t.zb(7,1720320,null,0,r.e,[t.l,t.B,g.b,c.i,r.j,c.f],{fxLayoutGap:[0,"fxLayoutGap"]},null),t.zb(8,671744,null,0,r.c,[t.l,c.i,r.i,c.f],{fxLayoutAlign:[0,"fxLayoutAlign"]},null),(l()(),t.Ab(9,0,null,null,27,"mat-form-field",[["class","w-full mat-form-field"],["fxFlex","25"]],[[2,"mat-form-field-appearance-standard",null],[2,"mat-form-field-appearance-fill",null],[2,"mat-form-field-appearance-outline",null],[2,"mat-form-field-appearance-legacy",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-has-label",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-form-field-autofilled",null],[2,"mat-focused",null],[2,"mat-accent",null],[2,"mat-warn",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[2,"_mat-animation-noopable",null]],null,null,v.b,v.a)),t.zb(10,737280,null,0,r.b,[t.l,c.i,c.e,r.h,c.f],{fxFlex:[0,"fxFlex"]},null),t.zb(11,7520256,null,9,u.g,[t.l,t.h,t.l,[2,g.b],[2,u.c],y.a,t.B,[2,d.a]],null,null),t.Ub(603979776,1,{_controlNonStatic:0}),t.Ub(335544320,2,{_controlStatic:0}),t.Ub(603979776,3,{_labelChildNonStatic:0}),t.Ub(335544320,4,{_labelChildStatic:0}),t.Ub(603979776,5,{_placeholderChild:0}),t.Ub(603979776,6,{_errorChildren:1}),t.Ub(603979776,7,{_hintChildren:1}),t.Ub(603979776,8,{_prefixChildren:1}),t.Ub(603979776,9,{_suffixChildren:1}),t.Tb(2048,null,u.b,null,[u.g]),(l()(),t.Ab(22,0,null,3,2,"mat-label",[],null,null,null,null,null)),t.zb(23,16384,[[3,4],[4,4]],0,u.k,[],null,null),(l()(),t.Yb(-1,null,["Organization"])),(l()(),t.Ab(25,0,null,1,11,"mat-select",[["aria-autocomplete","none"],["aria-haspopup","true"],["class","mat-select"],["formControlName","organization"],["role","combobox"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[1,"id",0],[1,"tabindex",0],[1,"aria-controls",0],[1,"aria-expanded",0],[1,"aria-label",0],[1,"aria-required",0],[1,"aria-disabled",0],[1,"aria-invalid",0],[1,"aria-describedby",0],[1,"aria-activedescendant",0],[2,"mat-select-disabled",null],[2,"mat-select-invalid",null],[2,"mat-select-required",null],[2,"mat-select-empty",null],[2,"mat-select-multiple",null]],[[null,"selectionChange"],[null,"keydown"],[null,"focus"],[null,"blur"]],function(l,n,e){var a=!0,i=l.component;return"keydown"===n&&(a=!1!==t.Ob(l,30)._handleKeydown(e)&&a),"focus"===n&&(a=!1!==t.Ob(l,30)._onFocus()&&a),"blur"===n&&(a=!1!==t.Ob(l,30)._onBlur()&&a),"selectionChange"===n&&(a=!1!==i.selectOrganization(e)&&a),a},_.b,_.a)),t.Tb(6144,null,i.j,null,[x.d]),t.zb(27,671744,null,0,O.j,[[3,O.d],[8,null],[8,null],[8,null],[2,O.z]],{name:[0,"name"]},null),t.Tb(2048,null,O.p,null,[O.j]),t.zb(29,16384,null,0,O.q,[[4,O.p]],null,null),t.zb(30,2080768,null,3,x.d,[w.e,t.h,t.B,i.d,t.l,[2,g.b],[2,O.s],[2,O.k],[2,u.b],[6,O.p],[8,null],x.b,s.k,[2,x.a]],{compareWith:[0,"compareWith"]},{selectionChange:"selectionChange"}),t.Ub(603979776,10,{options:1}),t.Ub(603979776,11,{optionGroups:1}),t.Ub(603979776,12,{customTrigger:0}),t.Tb(2048,[[1,4],[2,4]],u.h,null,[x.d]),(l()(),t.jb(16777216,null,1,1,null,C)),t.zb(36,278528,null,0,j.n,[t.R,t.O,t.u],{ngForOf:[0,"ngForOf"]},null),(l()(),t.Ab(37,0,null,null,30,"mat-form-field",[["class","w-full mat-form-field"],["fxFlex","75"]],[[2,"mat-form-field-appearance-standard",null],[2,"mat-form-field-appearance-fill",null],[2,"mat-form-field-appearance-outline",null],[2,"mat-form-field-appearance-legacy",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-has-label",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-form-field-autofilled",null],[2,"mat-focused",null],[2,"mat-accent",null],[2,"mat-warn",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[2,"_mat-animation-noopable",null]],null,null,v.b,v.a)),t.zb(38,737280,null,0,r.b,[t.l,c.i,c.e,r.h,c.f],{fxFlex:[0,"fxFlex"]},null),t.zb(39,7520256,null,9,u.g,[t.l,t.h,t.l,[2,g.b],[2,u.c],y.a,t.B,[2,d.a]],null,null),t.Ub(603979776,13,{_controlNonStatic:0}),t.Ub(335544320,14,{_controlStatic:0}),t.Ub(603979776,15,{_labelChildNonStatic:0}),t.Ub(335544320,16,{_labelChildStatic:0}),t.Ub(603979776,17,{_placeholderChild:0}),t.Ub(603979776,18,{_errorChildren:1}),t.Ub(603979776,19,{_hintChildren:1}),t.Ub(603979776,20,{_prefixChildren:1}),t.Ub(603979776,21,{_suffixChildren:1}),t.Tb(2048,null,u.b,null,[u.g]),(l()(),t.Ab(50,0,null,3,2,"mat-label",[],null,null,null,null,null)),t.zb(51,16384,[[15,4],[16,4]],0,u.k,[],null,null),(l()(),t.Yb(-1,null,["Project"])),(l()(),t.Ab(53,0,null,1,12,"mat-select",[["aria-autocomplete","none"],["aria-haspopup","true"],["class","mat-select"],["formControlName","project"],["role","combobox"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[1,"id",0],[1,"tabindex",0],[1,"aria-controls",0],[1,"aria-expanded",0],[1,"aria-label",0],[1,"aria-required",0],[1,"aria-disabled",0],[1,"aria-invalid",0],[1,"aria-describedby",0],[1,"aria-activedescendant",0],[2,"mat-select-disabled",null],[2,"mat-select-invalid",null],[2,"mat-select-required",null],[2,"mat-select-empty",null],[2,"mat-select-multiple",null]],[[null,"selectionChange"],[null,"keydown"],[null,"focus"],[null,"blur"]],function(l,n,e){var a=!0,i=l.component;return"keydown"===n&&(a=!1!==t.Ob(l,58)._handleKeydown(e)&&a),"focus"===n&&(a=!1!==t.Ob(l,58)._onFocus()&&a),"blur"===n&&(a=!1!==t.Ob(l,58)._onBlur()&&a),"selectionChange"===n&&(a=!1!==i.selectProject(e)&&a),a},_.b,_.a)),t.Tb(6144,null,i.j,null,[x.d]),t.zb(55,671744,null,0,O.j,[[3,O.d],[8,null],[8,null],[8,null],[2,O.z]],{name:[0,"name"]},null),t.Tb(2048,null,O.p,null,[O.j]),t.zb(57,16384,null,0,O.q,[[4,O.p]],null,null),t.zb(58,2080768,null,3,x.d,[w.e,t.h,t.B,i.d,t.l,[2,g.b],[2,O.s],[2,O.k],[2,u.b],[6,O.p],[8,null],x.b,s.k,[2,x.a]],{compareWith:[0,"compareWith"]},{selectionChange:"selectionChange"}),t.Ub(603979776,22,{options:1}),t.Ub(603979776,23,{optionGroups:1}),t.Ub(603979776,24,{customTrigger:0}),t.Tb(2048,[[13,4],[14,4]],u.h,null,[x.d]),(l()(),t.jb(16777216,null,1,2,null,k)),t.zb(64,278528,null,0,j.n,[t.R,t.O,t.u],{ngForOf:[0,"ngForOf"]},null),t.Qb(131072,j.b,[t.h]),(l()(),t.jb(16777216,null,6,1,null,F)),t.zb(67,16384,null,0,j.o,[t.R,t.O],{ngIf:[0,"ngIf"]},null),(l()(),t.jb(16777216,null,null,1,null,S)),t.zb(69,16384,null,0,j.o,[t.R,t.O],{ngIf:[0,"ngIf"]},null)],function(l,n){var e=n.component;l(n,2,0,e.form),l(n,6,0,"row"),l(n,7,0,"10px"),l(n,8,0,"space-around start"),l(n,10,0,"25"),l(n,27,0,"organization"),l(n,30,0,e.compareResource),l(n,36,0,e.organizations),l(n,38,0,"75"),l(n,55,0,"project"),l(n,58,0,e.compareResource),l(n,64,0,t.Zb(n,64,0,t.Ob(n,65).transform(e.projects$))),l(n,67,0,e.hint),l(n,69,0,e.form.value.project)},function(l,n){l(n,0,0,t.Ob(n,4).ngClassUntouched,t.Ob(n,4).ngClassTouched,t.Ob(n,4).ngClassPristine,t.Ob(n,4).ngClassDirty,t.Ob(n,4).ngClassValid,t.Ob(n,4).ngClassInvalid,t.Ob(n,4).ngClassPending),l(n,9,1,["standard"==t.Ob(n,11).appearance,"fill"==t.Ob(n,11).appearance,"outline"==t.Ob(n,11).appearance,"legacy"==t.Ob(n,11).appearance,t.Ob(n,11)._control.errorState,t.Ob(n,11)._canLabelFloat(),t.Ob(n,11)._shouldLabelFloat(),t.Ob(n,11)._hasFloatingLabel(),t.Ob(n,11)._hideControlPlaceholder(),t.Ob(n,11)._control.disabled,t.Ob(n,11)._control.autofilled,t.Ob(n,11)._control.focused,"accent"==t.Ob(n,11).color,"warn"==t.Ob(n,11).color,t.Ob(n,11)._shouldForward("untouched"),t.Ob(n,11)._shouldForward("touched"),t.Ob(n,11)._shouldForward("pristine"),t.Ob(n,11)._shouldForward("dirty"),t.Ob(n,11)._shouldForward("valid"),t.Ob(n,11)._shouldForward("invalid"),t.Ob(n,11)._shouldForward("pending"),!t.Ob(n,11)._animationsEnabled]),l(n,25,1,[t.Ob(n,29).ngClassUntouched,t.Ob(n,29).ngClassTouched,t.Ob(n,29).ngClassPristine,t.Ob(n,29).ngClassDirty,t.Ob(n,29).ngClassValid,t.Ob(n,29).ngClassInvalid,t.Ob(n,29).ngClassPending,t.Ob(n,30).id,t.Ob(n,30).tabIndex,t.Ob(n,30).panelOpen?t.Ob(n,30).id+"-panel":null,t.Ob(n,30).panelOpen,t.Ob(n,30).ariaLabel||null,t.Ob(n,30).required.toString(),t.Ob(n,30).disabled.toString(),t.Ob(n,30).errorState,t.Ob(n,30)._ariaDescribedby||null,t.Ob(n,30)._getAriaActiveDescendant(),t.Ob(n,30).disabled,t.Ob(n,30).errorState,t.Ob(n,30).required,t.Ob(n,30).empty,t.Ob(n,30).multiple]),l(n,37,1,["standard"==t.Ob(n,39).appearance,"fill"==t.Ob(n,39).appearance,"outline"==t.Ob(n,39).appearance,"legacy"==t.Ob(n,39).appearance,t.Ob(n,39)._control.errorState,t.Ob(n,39)._canLabelFloat(),t.Ob(n,39)._shouldLabelFloat(),t.Ob(n,39)._hasFloatingLabel(),t.Ob(n,39)._hideControlPlaceholder(),t.Ob(n,39)._control.disabled,t.Ob(n,39)._control.autofilled,t.Ob(n,39)._control.focused,"accent"==t.Ob(n,39).color,"warn"==t.Ob(n,39).color,t.Ob(n,39)._shouldForward("untouched"),t.Ob(n,39)._shouldForward("touched"),t.Ob(n,39)._shouldForward("pristine"),t.Ob(n,39)._shouldForward("dirty"),t.Ob(n,39)._shouldForward("valid"),t.Ob(n,39)._shouldForward("invalid"),t.Ob(n,39)._shouldForward("pending"),!t.Ob(n,39)._animationsEnabled]),l(n,53,1,[t.Ob(n,57).ngClassUntouched,t.Ob(n,57).ngClassTouched,t.Ob(n,57).ngClassPristine,t.Ob(n,57).ngClassDirty,t.Ob(n,57).ngClassValid,t.Ob(n,57).ngClassInvalid,t.Ob(n,57).ngClassPending,t.Ob(n,58).id,t.Ob(n,58).tabIndex,t.Ob(n,58).panelOpen?t.Ob(n,58).id+"-panel":null,t.Ob(n,58).panelOpen,t.Ob(n,58).ariaLabel||null,t.Ob(n,58).required.toString(),t.Ob(n,58).disabled.toString(),t.Ob(n,58).errorState,t.Ob(n,58)._ariaDescribedby||null,t.Ob(n,58)._getAriaActiveDescendant(),t.Ob(n,58).disabled,t.Ob(n,58).errorState,t.Ob(n,58).required,t.Ob(n,58).empty,t.Ob(n,58).multiple])})}},M1HD:function(n,t,a){"use strict";a.d(t,"a",function(){return s});var i=a("8Y7J"),u=a("s7LF"),o=a("5mnX"),r=a.n(o),c=a("lJxs"),b=a("V99k"),s=function(){function n(e,t,a){var o=this;l(this,n),this.fb=e,this.organizationsResource=t,this.projectsDataService=a,this.onProjectSelect=new i.o,this.icClose=r.a,this.form=this.fb.group({organization:new u.h(null),project:new u.h(this.project)}),this.organizationsResource.index({shadow:!0}).pipe(Object(c.a)(function(l){return l.map(function(l){return new b.l(l)})})).subscribe(function(l){o.organizations=l;var n=o.organizations.find(function(l){return o.project?l.id===o.project.organizationId:l.isShadow});o.form.patchValue({organization:n})}),this.projectsDataService.fetch(),this.projects$=this.projectsDataService.projects$}return e(n,[{key:"ngOnInit",value:function(){}},{key:"ngOnChanges",value:function(l){var n=l.project;if(n){var e=n.currentValue,t=n.previousValue;(null==t?void 0:t.id)!==(null==e?void 0:e.id)&&this.form.patchValue({project:e})}}},{key:"removeProject",value:function(){this.form.patchValue({project:null}),this.onProjectSelect.emit(null)}},{key:"selectOrganization",value:function(l){this.projectsDataService.fetchByOrganizationId(l.value.id)}},{key:"selectProject",value:function(l){var n=l.value;this.form.patchValue({project:n}),this.onProjectSelect.emit(n)}},{key:"compareResource",value:function(l,n){return(null==l?void 0:l.id)===(null==n?void 0:n.id)}}]),n}()},iItg:function(n,e,t){"use strict";t.d(e,"a",function(){return a});var a=function n(){l(this,n)}},v9Wg:function(n,t,a){"use strict";a.d(t,"a",function(){return b});var i=a("2Vo4"),u=a("LRne"),o=a("8Y7J"),r=a("msBP"),c=a("3Ncz"),b=function(){var n=function(){function n(e,t){l(this,n),this.projectDataService=e,this.scenariosResource=t,this.subject=new i.a(null),this.scenarios$=this.subject.asObservable()}return e(n,[{key:"fetchByProjectId",value:function(l){this.fetch({project_id:l})}},{key:"fetch",value:function(l){var n=this,e=l.project_id;if(null==e){if(!this.projectDataService.project)return;e=this.projectDataService.project.id}var t=Object.assign({project_id:e},l);this.scenariosResource.index(t).subscribe(function(l){n.set(l.list)})}},{key:"get",value:function(){return this.scenarios$}},{key:"set",value:function(l){this.scenarios=l,this.subject.next(l)}},{key:"next",value:function(l){return l.page+=1,this.fetch(l)}},{key:"prev",value:function(l){return l.page?(l.page-=1,this.fetch(l)):Object(u.a)()}}]),n}();return n.\u0275prov=o.cc({factory:function(){return new n(o.dc(r.a),o.dc(c.a))},token:n,providedIn:"root"}),n}()},wjWB:function(n,t,a){"use strict";a.d(t,"a",function(){return o});var i=a("8Y7J"),u=a("iCaw"),o=function(){var n=function(){function n(e){l(this,n),this.restApi=e,this.ENDPOINT="organizations"}return e(n,[{key:"index",value:function(l){return this.restApi.index([this.ENDPOINT],l)}},{key:"show",value:function(l,n){return this.restApi.show([this.ENDPOINT,l],n)}},{key:"create",value:function(l){return this.restApi.create([this.ENDPOINT],l)}},{key:"update",value:function(l,n){return this.restApi.update([this.ENDPOINT,l],n)}},{key:"destroy",value:function(l){return this.restApi.destroy([this.ENDPOINT,l])}},{key:"subscription",value:function(l,n){return this.restApi.index([this.ENDPOINT,l,"subscription"],n)}},{key:"payments",value:function(l,n){return this.restApi.index([this.ENDPOINT,l,"payments"],n)}}]),n}();return n.\u0275prov=i.cc({factory:function(){return new n(i.dc(u.a))},token:n,providedIn:"root"}),n}()}}])}();