1"use strict";(self.webpackChunkreq_test_ui=self.webpackChunkreq_test_ui||[]).push([[4868],{63137:(W,g,n)=>{n.d(g,{H:()=>$});let f="testcase/create-test-case";var S=n(94650),K=n(71902),Z=n(88884);let $=(()=>{const m=class{constructor(c,u){this._apiGateWay=c,this.storage=u}loadFieldControl(c){return this._apiGateWay.get("Items/edit-item-fields-with-comments",c)}getProjects(c){return this._apiGateWay.get("projects",c)}getControlType(c){let u="input";switch(c){case 1:case 8:u="select";break;case 2:u="input";break;case 5:u="textarea"}return u}createTestcase(c){return console.log(f),this._apiGateWay.post(f,JSON.stringify(c))}};let R=m;return m.\u0275fac=function(u){return new(u||m)(S.\u0275\u0275inject(K.i),S.\u0275\u0275inject(Z.K))},m.\u0275prov=S.\u0275\u0275defineInjectable({token:m,factory:m.\u0275fac}),R})()},64868:(W,g,n)=>{n.r(g),n.d(g,{TestsModule:()=>Y});var l=n(62510),f=n(39300),t=n(94650),y=n(98191),x=n(11404),j=n(98311),b=n(50727),T=n(89383),F=n(88884),w=n(80062),C=n(36895);const A=function(){return["active"]},I=function(){return{exact:!1}},B=function(){return["test-run/view"]};function H(s,r){if(1&s&&(t.\u0275\u0275elementStart(0,"li",2,5),t.\u0275\u0275text(2,"\n "),t.\u0275\u0275elementStart(3,"a",6),t.\u0275\u0275listener("keydown.space",function(e){return e.preventDefault(),e.target.click()}),t.\u0275\u0275text(4),t.\u0275\u0275elementEnd(),t.\u0275\u0275text(5,"\n "),t.\u0275\u0275elementEnd()),2&s){const o=t.\u0275\u0275reference(1),e=t.\u0275\u0275nextContext();t.\u0275\u0275property("routerLinkActive",t.\u0275\u0275pureFunction0(6,A))("routerLinkActiveOptions",t.\u0275\u0275pureFunction0(7,I)),t.\u0275\u0275advance(3),t.\u0275\u0275property("routerLink",t.\u0275\u0275pureFunction0(8,B)),t.\u0275\u0275attribute("tabindex",o.isActive?"0":"-1")("aria-selected",o.isActive),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(e.testRuns)}}const k=function(){return{exact:!0}},D=function(){return["test-suite/view"]};function P(s,r){if(1&s&&(t.\u0275\u0275elementStart(0,"li",2,7),t.\u0275\u0275text(2,"\n "),t.\u0275\u0275elementStart(3,"a",8),t.\u0275\u0275listener("keydown.space",function(e){return e.preventDefault(),e.target.click()}),t.\u0275\u0275text(4),t.\u0275\u0275elementEnd(),t.\u0275\u0275text(5,"\n "),t.\u0275\u0275elementEnd()),2&s){const o=t.\u0275\u0275reference(1),e=t.\u0275\u0275nextContext();t.\u0275\u0275property("routerLinkActive",t.\u0275\u0275pureFunction0(6,A))("routerLinkActiveOptions",t.\u0275\u0275pureFunction0(7,k)),t.\u0275\u0275advance(3),t.\u0275\u0275property("routerLink",t.\u0275\u0275pureFunction0(8,D)),t.\u0275\u0275attribute("tabindex",o.isActive?"0":"-1")("aria-selected",o.isActive),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(e.testSuites)}}const E=function(){return["checklist/view"]};function Q(s,r){if(1&s&&(t.\u0275\u0275elementStart(0,"li",2,9),t.\u0275\u0275text(2,"\n "),t.\u0275\u0275elementStart(3,"a",10),t.\u0275\u0275listener("keydown.space",function(e){return e.preventDefault(),e.target.click()}),t.\u0275\u0275text(4),t.\u0275\u0275elementEnd(),t.\u0275\u0275text(5,"\n "),t.\u0275\u0275elementEnd()),2&s){const o=t.\u0275\u0275reference(1),e=t.\u0275\u0275nextContext();t.\u0275\u0275property("routerLinkActive",t.\u0275\u0275pureFunction0(6,A))("routerLinkActiveOptions",t.\u0275\u0275pureFunction0(7,k)),t.\u0275\u0275advance(3),t.\u0275\u0275property("routerLink",t.\u0275\u0275pureFunction0(8,E)),t.\u0275\u0275attribute("tabindex",o.isActive?"0":"-1")("aria-selected",o.isActive),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(e.checkList)}}const O=function(){return["test-case/view"]};let G=(()=>{const r=class{constructor(e,i,a,d){this.translate=e,this.storage=i,this.commonService=a,this.route=d,this.subs=new b.w0}ngOnDestroy(){const e=this;Object.keys(this).forEach(function(i){e[i]=null,delete e[i]}),this.subs&&this.subs.unsubscribe()}ngOnInit(){this.route.snapshot.queryParams.hasOwnProperty("vid")&&this.commonService.getProjectSwitchOnQueryParams()?this.subs.add(this.commonService.observeProjectSwitchCompleted.subscribe(e=>{e&&(this.commonService.setProjectSwitchOnQueryParams(!1),this.init())})):this.init()}onTabArrowKey(e){const i=[];this.commonService.isChildProject||i.push("thTestRunsTab","thTestSuitesTab"),i.push("thTestCasesTab"),this.commonService.isChildProject||i.push("thChecklistsTab"),(0,x.a)(e,i)}init(){try{if(this.storage){const e=this.storage.getToken("lang");j.e.setLanguage(this,"Svenska"===e?"Svenska":"English"),"Svenska"===e?(this.testRuns="Testk\xf6rningar",this.testSuites="Testsviter",this.testCases="Testfall",this.checkList="Checklistor"):(this.testRuns="Test Runs",this.testSuites="Test Suites",this.testCases="Test Cases",this.checkList="Checklists")}
1}catch(e){console.log(e)}}};let s=r;return r.\u0275fac=function(i){return new(i||r)(t.\u0275\u0275directiveInject(T.sK),t.\u0275\u0275directiveInject(F.K),t.\u0275\u0275directiveInject(w.v),t.\u0275\u0275directiveInject(l.gz))},r.\u0275cmp=t.\u0275\u0275defineComponent({type:r,selectors:[["app-test-header"]],inputs:{displaytestheader:"displaytestheader"},decls:15,vars:13,consts:[["role","tablist",1,"nav","nav-tabs",3,"hidden","keydown.arrowRight","keydown.arrowLeft"],["role","presentation",3,"routerLinkActive","routerLinkActiveOptions",4,"ngIf"],["role","presentation",3,"routerLinkActive","routerLinkActiveOptions"],["rla3","routerLinkActive"],["id","thTestCasesTab","role","tab",3,"routerLink","keydown.space"],["rla1","routerLinkActive"],["id","thTestRunsTab","role","tab",3,"routerLink","keydown.space"],["rla2","routerLinkActive"],["id","thTestSuitesTab","role","tab",3,"routerLink","keydown.space"],["rla4","routerLinkActive"],["id","thChecklistsTab","role","tab",3,"routerLink","keydown.space"]],template:function(i,a){if(1&i&&(t.\u0275\u0275elementStart(0,"ul",0),t.\u0275\u0275listener("keydown.arrowRight",function(h){return a.onTabArrowKey(h)})("keydown.arrowLeft",function(h){return a.onTabArrowKey(h)}),t.\u0275\u0275text(1,"\n "),t.\u0275\u0275template(2,H,6,9,"li",1),t.\u0275\u0275text(3,"\n "),t.\u0275\u0275template(4,P,6,9,"li",1),t.\u0275\u0275text(5,"\n "),t.\u0275\u0275elementStart(6,"li",2,3),t.\u0275\u0275text(8,"\n "),t.\u0275\u0275elementStart(9,"a",4),t.\u0275\u0275listener("keydown.space",function(h){return h.preventDefault(),h.target.click()}),t.\u0275\u0275text(10),t.\u0275\u0275elementEnd(),t.\u0275\u0275text(11,"\n "),t.\u0275\u0275elementEnd(),t.\u0275\u0275text(12,"\n "),t.\u0275\u0275template(13,Q,6,9,"li",1),t.\u0275\u0275text(14,"\n"),t.\u0275\u0275elementEnd()),2&i){const d=t.\u0275\u0275reference(7);t.\u0275\u0275property("hidden",!a.displaytestheader),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",!a.commonService.isChildProject),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",!a.commonService.isChildProject),t.\u0275\u0275advance(2),t.\u0275\u0275property("routerLinkActive",t.\u0275\u0275pureFunction0(10,A))("routerLinkActiveOptions",t.\u0275\u0275pureFunction0(11,I)),t.\u0275\u0275advance(3),t.\u0275\u0275property("routerLink",t.\u0275\u0275pureFunction0(12,O)),t.\u0275\u0275attribute("tabindex",d.isActive?"0":"-1")("aria-selected",d.isActive),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(a.testCases),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngIf",!a.commonService.isChildProject)}},dependencies:[C.O5,l.rH,l.Od],encapsulation:2}),s})();function N(s,r){}let z=(()=>{const r=class{constructor(e,i){this.router=e,this.gridCommonService=i,this.activeUsers=!1,this.activeProjects=!1,this.displaytestheader=!0,this.searchRoute(this.router.url),this.routeSubscriber=e.events.pipe((0,f.h)(a=>a instanceof l.m2)).subscribe(a=>{a instanceof l.m2&&this.searchRoute(a.url)})}searchRoute(e){this.currentUrl=e,this.displaytestheader=-1===this.currentUrl.search("view-detail")&&-1===this.currentUrl.search("view-test-run-details")&&-1===this.currentUrl.search("view-testsuite")}ngOnDestroy(){this.gridCommonService.initGridFilterOption();const e=this;this.routeSubscriber&&this.routeSubscriber.unsubscribe(),Object.keys(this).forEach(function(i){e[i]=null,delete e[i]})}};let s=r;return r.\u0275fac=function(i){return new(i||r)(t.\u0275\u0275directiveInject(l.F0),t.\u0275\u0275directiveInject(y.E))},r.\u0275cmp=t.\u0275\u0275defineComponent({type:r,selectors:[["ng-component"]],decls:28,vars:4,consts:[[1,"sr-only"],[1,"container-fluid"],[1,"row"],[1,"sides-padding-20"],[1,"panel-users"],[3,"displaytestheader"],["ngbModalContainer",""],[1,""],[1,"tab-content"]],template:function(i,a){1&i&&(t.\u0275\u0275elementStart(0,"h1",0),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275text(3,"\n"),t.\u0275\u0275elementStart(4,"div",1),t.\u0275\u0275text(5,"\n\t"),t.\u0275\u0275elementStart(6,"div",2),t.\u0275\u0275text(7,"\n\t\t"),t.\u0275\u0275elementStart(8,"div",3),t.\u0275\u0275text(9,"\n\t\t\t"),t.\u0275\u0275elementStart(10,"div",4),t.\u0275\u0275text(11,"\n\t\t\t\t"),t.\u0275\u0275element(12,"app-test-header",5),t.\u0275\u0275text(13,"\n\t\t\t\t"),t.\u0275\u0275template(14,N,0,0,"ng-template",6),t.\u0275\u0275text(15,"\n\t\t\t\t"),t.\u0275\u0275text(16,"\n\t\t\t\t"),t.\u0275\u0275elementStart(17,"div",7),t.\u0275\u0275text(18,"\n\t\t\t\t\t"),t.\u0275\u0275elementStart(19,"div",8),t.\u0275\u0275text(20,"\n\t\t\t\t\t\t"),t.\u0275\u0275element(21,"router-outlet"),t.\u0275\u0275text(22,"\n\t\t\t\t\t"),t.\u0275\u0275elementEnd(),t.\u0275\u0275text(23,"\n\t\t\t\t"),t.\u0275\u0275elementEnd(),t.\u0275\u0275text(24,"\n\t\t\t"),t.\u0275\u0275elementEnd(),t.\u0275\u0275text(25,"\n\n\t\t"),t.\u0275\u0275elementEnd(),t.\u0275\u0275text(26,"\n\n\t"),t.\u0275\u0275elementEnd(),t.\u0275\u0275text(27,"\n\n"),t.\u0275\u0275elementEnd()),2&i&&(t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(2,2,"Menus.tests")),t.\u0275\u0275advance(11),t.\u0275\u0275property("displaytestheader",a.displaytestheader))},dependencies:[l.lC,G,T.X$],encapsulation:2}),s})();var p=n(44003),v=n(12155);const U=l.Bz.forChild([{path:"",component:z,children:[{path:"",redirectTo:"test-run",pathMatch:"full"},{path:"test-case",loadChildren:()=>n.e(2922).then(n.bind(n,22922)).then(s=>s.TestCasesModule),canActivateChild:[p.I,v.p],data:{pathName:"test-module"}},{path:"test-run",loadChildren:()=>n.e(7214).then(n.bind(n,77214)).then(s=>s.TestRunModule),canActivateChild:[p.I,v.p],data:{pathName:"test-module"}},{path:"test-suite",loadChildren:()=>Promise.all([n.e(5115),n.e(495),n.e(743)]).then(n.bind(n,90743)).then(s=>
1s.GroupTestSuiteModule),canActivateChild:[p.I,v.p],data:{pathName:"test-module"}},{path:"checklist",loadChildren:()=>n.e(8382).then(n.bind(n,38382)).then(s=>s.CheckListsModule),canActivateChild:[p.I,v.p],data:{pathName:"test-module"}}]}]);var J=n(28413),L=n(24006),X=n(63137),V=n(41886);let Y=(()=>{const r=class{};let s=r;return r.\u0275fac=function(i){return new(i||r)},r.\u0275mod=t.\u0275\u0275defineNgModule({type:r}),r.\u0275inj=t.\u0275\u0275defineInjector({providers:[X.H,C.uU,p.I,v.p],imports:[C.ez,L.u5,V.IJ,L.UX,J.N.forRoot(),T.aw.forChild(),U]}),s})()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.