PageSourceSearch

https://work.lazeapp.io/741.1042ffe2a7a0c246.js

js lazeapp.io collected 2026-09-24 15:06:10 UTC 27,085 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkDashboardAngular=self.webpackChunkDashboardAngular||[]).push([[741],{83741:(L,A,a)=>{a.d(A,{v:()=>Me});var c=a(10467),e=a(54438),E=a(65814),S=a(45383),k=a(5779),F=a(21413),b=a(18359),D=a(84572),O=a(23294),y=a(70152),V=a(48337),n=a(31253),l=a(2309),d=a(70226),C=a(64313),U=a(83013),G=a(93569),N=a(10764),j=a(97301),x=a(49162),I=a(60177),R=a(89417),K=a(81141),H=a(22242),$=a(85030),Y=a(56296),X=a(29170),z=a(91208),Q=a(20060),J=a(56547),Z=a(86476),q=a(98889);const ee=["advancedFilters"],h=(i,u)=>({"p-button-outlined":i,"p-button-primary":u}),te=i=>["/","workspace",i,"assets","favorite","list"],M=i=>({teamGuids:i}),se=i=>["/","workspace",i,"assets","archive","list"],re=i=>["/","workspace",i,"assets","shared","list"],ie=i=>["/","workspace",i,"assets","favorite","grid"],ae=i=>["/","workspace",i,"assets","archive","grid"],oe=i=>["/","workspace",i,"assets","shared","grid"],ne=(i,u)=>["/workspace",i,"assets",u,"list"],ce=(i,u)=>["/team-workspace",i,"assets",u,"list"],le=(i,u)=>["/workspace",i,"assets",u,"grid"],pe=(i,u)=>["/team-workspace",i,"assets",u,"grid"];function de(i,u){if(1&i&&(e.j41(0,"div",22)(1,"h2",23),e.EFF(2),e.k0s(),e.nrm(3,"app-advanced-filters",null,2),e.k0s()),2&i){const r=e.XpG();e.R7$(2),e.JRh(r.title)}}function ue(i,u){if(1&i){const r=e.RV6();e.j41(0,"div",24)(1,"p-multiSelect",25),e.mxI("ngModelChange",function(s){e.eBV(r);const o=e.XpG();return e.DH7(o.selectedNodes,s)||(o.selectedNodes=s),e.Njj(s)}),e.bIt("onChange",function(){e.eBV(r);const s=e.XpG();return e.Njj(s.onTreeSelectClosed())}),e.k0s()()}if(2&i){const r=e.XpG();e.R7$(),e.R50("ngModel",r.selectedNodes),e.Y8G("options",r.accountWithOrganizationAndTeamNames)("metaKeySelection",!1)("key",r.key)}}function _e(i,u){if(1&i){const r=e.RV6();e.j41(0,"fa-icon",26),e.bIt("click",function(){e.eBV(r);const s=e.XpG();return e.Njj(s.clearSearch())}),e.k0s()}if(2&i){const r=e.XpG();e.Y8G("icon",r.faXmark)}}function he(i,u){if(1&i&&(e.j41(0,"a",29,5),e.EFF(2," Shared with me "),e.k0s()),2&i){const r=e.sdS(1),t=e.XpG(3);e.Y8G("routerLink",e.eq3(3,re,t.workspaceId))("queryParams",e.eq3(5,M,t.teamGuid))("ngClass",e.l_i(7,h,!r.isActive,r.isActive))}}function me(i,u){if(1&i&&(e.j41(0,"div")(1,"a",29,3),e.EFF(3," My Favorites "),e.k0s(),e.DNE(4,he,3,10,"a",30),e.j41(5,"a",29,4),e.EFF(7," My Archives "),e.k0s()()),2&i){const r=e.sdS(2),t=e.sdS(6),s=e.XpG(2);e.R7$(),e.Y8G("routerLink",e.eq3(7,te,s.workspaceId))("queryParams",e.eq3(9,M,s.teamGuid))("ngClass",e.l_i(11,h,!r.isActive,r.isActive)),e.R7$(3),e.Y8G("ngIf","team-workspace"!==s.parentWorkspaceRoute),e.R7$(),e.Y8G("routerLink",e.eq3(14,se,s.workspaceId))("queryParams",e.eq3(16,M,s.teamGuid))("ngClass",e.l_i(18,h,!t.isActive,t.isActive))}}function ge(i,u){if(1&i&&(e.j41(0,"a",29,5),e.EFF(2," Shared with me "),e.k0s()),2&i){const r=e.sdS(1),t=e.XpG(3);e.Y8G("routerLink",e.eq3(3,oe,t.workspaceId))("queryParams",e.eq3(5,M,t.teamGuid))("ngClass",e.l_i(7,h,!r.isActive,r.isActive))}}function fe(i,u){if(1&i&&(e.j41(0,"div")(1,"a",29,3),e.EFF(3," My Favorites "),e.k0s(),e.DNE(4,ge,3,10,"a",30),e.j41(5,"a",29,4),e.EFF(7," My Archives "),e.k0s()()),2&i){const r=e.sdS(2),t=e.sdS(6),s=e.XpG(2);e.R7$(),e.Y8G("routerLink",e.eq3(7,ie,s.workspaceId))("queryParams",e.eq3(9,M,s.teamGuid))("ngClass",e.l_i(11,h,!r.isActive,r.isActive)),e.R7$(3),e.Y8G("ngIf","team-workspace"!==s.parentWorkspaceRoute),e.R7$(),e.Y8G("routerLink",e.eq3(14,ae,s.workspaceId))("queryParams",e.eq3(16,M,s.teamGuid))("ngClass",e.l_i(18,h,!t.isActive,t.isActive))}}function ve(i,u){if(1&i&&(e.j41(0,"div",27),e.DNE(1,me,8,21,"div",28)(2,fe,8,21,"div",28),e.k0s()),2&i){const r=e.XpG();e.Y8G("ngSwitch",r.isListRoute),e.R7$(),e.Y8G("ngSwitchCase",!0),e.R7$(),e.Y8G("ngSwitchCase",!1)}}function ye(i,u){if(1&i&&(e.j41(0,"div")(1,"a",32,5),e.EFF(3," My Space "),e.k0s(),e.j41(4,"a",32,3),e.EFF(6," Team Space "),e.k0s()()),2&i){const r=e.XpG(2);e.R7$(),e.Y8G("routerLink",e.l_i(4,ne,r.workspaceId,r.parentRoute))("ngClass",e.l_i(7,h,r.isTeamSpace,!r.isAllRoute)),e.R7$(3),e.Y8G("routerLink",e.l_i(10,ce,r.teamWorkspaceId,r.parentRoute))("ngClass",e.l_i(13,h,!r.isTeamSpace,r.isAllRoute))}}function Ce(i,u){if(1&i&&(e.j41(0,"div")(1,"a",32,5),e.EFF(3," My Space "),e.k0s(),e.j41(4,"a",32,3),e.EFF(6," Team Space "),e.k0s()()),2&i){const r=e.XpG(2);e.R7$(),e.Y8G("routerLink",e.l_i(4,le,r.workspaceId,r.parentRoute))("ngClass",e.l_i(7,h,r.isTeamSpace,!r.isAllRoute)),e.R7$(3),e.Y8G("routerLink",e.l_i(10,pe,r.teamWorkspaceId,r.parentRoute))("ngClass",e.l_i(13,h,!r.isTeamSpace,r.isAllRoute))}}function Ee(i,u){if(1&i&&(e.j41(0,"div",31),e.DNE(1,ye,7,16,"div",28)(2,Ce,7,16,"div",28),e.k0s()),2&i){const r=e.XpG();e.Y8G("ngSwitch",r.isListRoute),e.R7$(),e.Y8G("ngSwitchCase",!0),e.R7$(),e.Y8G("ngSwitchCase",!1)}}let Me=(()=>
1{class i extends V.${constructor(r){super(),this.router=r,this.assetService=(0,e.WQX)(l.I),this.messageService=(0,e.WQX)(k.bg),this.route=(0,e.WQX)(E.nX),this.routeDataHelperService=(0,e.WQX)(C.n),this.loadingService=(0,e.WQX)(d.U),this.userAccountService=(0,e.WQX)(U.w),this.tableSortSynchronizer=(0,e.WQX)(N.q),this.assetSortMapper=(0,e.WQX)(j.l),this.advancedFiltersService=(0,e.WQX)(x.$),this.title="Assets",this.faSearch=S.MjD,this.faXmark=S.Jyw,this.FilterTypeEnum=n.i$,this.selectedMediaTypeFilter=n.If.None,this.selectedAssets=this.assetService.selectedAssets,this.searchSubject=new F.B,this.subscription=new b.yU,this.sortDefinitions=[],this.activeSorts=[],(0,e.QZP)(()=>{const t=this.assetService.activeOrderByProperties();this.activeSorts=t&&t.length>0?this.assetSortMapper.orderByPropertiesToColumnSortFormat(t):[]})}ngOnInit(){var r=()=>super.ngOnInit,t=this;return(0,c.A)(function*(){r().call(t);const s=t.route.paramMap,o=t.route.queryParamMap;t.selectedUserAccount=t.activeUserService.getCurrentUserAccount(),s.subscribe(p=>{t.workspaceId=t.workspaceIdFromUrl=parseInt(p.get("workspaceId"));let g=t.activeUserService.getWebshotCurrentUserAccount();t.isPersonalAccount=g?.accountType==G.B.Personal||1==t.selectedUserAccount?.userOrganization?.personal,t.workspaceId=1==t.isPersonalAccount?g?.userWorkspaceId??t.workspaceId:t.workspaceId,t.teamWorkspaceId=g?.teamWorkspaceId??t.assetService.getWorkspaceId(p);let T=1==t.selectedUserAccount?.userOrganization?.personal?t.workspaceId:t.teamWorkspaceId;t.parentWorkspaceRoute=t.routeDataHelperService.getClosestParentData(t.route,"parentWorkspaceRoute"),t.isTeamSpace=t.parentWorkspaceRoute.includes("team-workspace"),t.filterTypeEnum=t.routeDataHelperService.getClosestParentData(t.route,"filterTypeEnum"),t.parentRoute=t.routeDataHelperService.getClosestParentData(t.route,"parentRoute"),t.isListRoute=t.routeDataHelperService.getClosestParentData(t.route,"isListRoute")??!1,t.routeDataHelperService.getClosestParentData(t.route,"isHomePage")&&"team-workspace"==t.parentWorkspaceRoute&&(t.filterTypeEnum=n.i$.AssetHomeFilterFormValues);const f=t.filterTypeEnum==n.i$.SharedFilterFormValues?T:t.isTeamSpace?t.teamWorkspaceId:t.workspaceId,v=t.routeDataHelperService.getClosestParentData(t.route,"viewRoutesBase"),m=v?.length>0?["/",t.parentWorkspaceRoute,f,...v]:["/",t.parentWorkspaceRoute,f,"assets",t.parentRoute];!0===t.isAllRoute?(t.gridRoute=[...m,"all","grid"],t.listRoute=[...m,"all","list"]):(t.gridRoute=[...m,"grid"],t.listRoute=[...m,"list"]),(null==t.sortDefinitions||0==t.sortDefinitions.length)&&t.initializeSortDefinitions(),t.restoreSortState(),t.restoreSearchValue()});const _=(0,D.z)([s,o]).subscribe(function(){var p=(0,c.A)(function*([g,T]){t.routeDataHelperService.getClosestParentData(t.route,"useWorkspaceIds"),t.getTypeEnum=t.routeDataHelperService.getClosestParentData(t.route,"getTypeEnum"),t.setTeamGuidByWorkspaceId()});return function(g){return p.apply(this,arguments)}}());t.activeUserService.getUserAccountsWithTeamAndOrganizationNames().then(p=>{t.currentUserAccounts=p;let g=[];for(const P of t.currentUserAccounts.filter(f=>1!=f.userOrganization.personal)){let{id:f,name:v,teamId:m,teamName:W}=P.userOrganization;const B=g.find(w=>w.key===f);if(m)if(B)B.children=[...B.children,t.createTreeNode(m,W,[t.createTreeNode(m+"_p","Personal"),t.createTreeNode(m+"_t","Team")])];else{const w=t.createTreeNode(f+"_o",v,[t.createTreeNode(m,W,[t.createTreeNode(m+"_p","Personal"),t.createTreeNode(m+"_t","Team")])]);g=[...g,w]}}t.accountWithOrganizationAndTeamNames=g;const T=t.route.snapshot.queryParamMap;if(T.has("teamGuids")){const P=T.get("teamGuids"),f=P?P.split(",").map(v=>v.trim()).filter(v=>v):[];f.length>0&&(t.selectedNodes=[],t.selectedNodes=t.findNodesByKeys(t.accountWithOrganizationAndTeamNames,f))}}),t.subscription.add(_),t.setTeamGuidByWorkspaceId(),t.handleSearch()})()}setTeamGuidByWorkspaceId(){return this.userAccountService.getTeamIdsByWorkspaceIdsAsync([this.workspaceId]).pipe((0,O.F)(),(0,y.B)(300)).subscribe(r=>{r&&r.length>=0&&(this.teamGuid=this.isTeamSpace?r[0]+"_t":r[0]+"_p")})}onTreeSelectClosed(){var r=this;return(0,c.A)(function*(){const s=r.getMatchingKeys(r.selectedNodes).join(",");r.router.navigate([],{queryParams:{teamGuids:s},queryParamsHandling:"merge"})})()}getMatchingKeys(r){const t=[],s=o=>{o.key&&(o.key.endsWith("_p")||o.key.endsWith("_t"))&&t.push(o.key),o.children&&o.children.length&&o.children.forEac
1h(_=>s(_))};return r?.forEach(o=>s(o)),t}createTreeNode(r,t,s){return{key:r,label:t,children:s||[]}}findNodesByKeys(r,t){const s=[],o=_=>{for(let p of _)t.includes(p.key)&&s.push(p),p.children&&o(p.children)};return o(r),s}onSearchInput(r){const t=r?.trim()||"";(t||""===r)&&(this.searchSubject.next(t),this.advancedFilters?.setName(t))}onMediaTypeFilterChanged(r){this.selectedMediaTypeFilter=r}clearSearch(){this.searchValue="",this.onSearchInput("")}handleSearch(){const r=this.searchSubject.pipe((0,y.B)(1e3),(0,O.F)()).subscribe(t=>{const s=t.trim();this.advancedFiltersService.getFilterFormValuesFromDatabase(!1,this.workspaceId,this.filterTypeEnum).subscribe({next:o=>{o.formValues||(o.formValues={}),o.formValues.name=s,this.advancedFiltersService.stampSearchQueryTimestamp(o.formValues),this.assetService.setFilterFormValuesToDatabase(this.workspaceId,this.filterTypeEnum,o.formValues,1==this.isListRoute?"list":"grid").subscribe({next:()=>{const _=this.advancedFiltersService.getSearchModelFromLocalStorage(this.workspaceId,this.filterTypeEnum);_.name=s,_.mediaTypeFilter=this.selectedMediaTypeFilter===n.If.None?null:this.selectedMediaTypeFilter,this.assetService.updateFilterModel(_)}})}})});this.subscription.add(r)}ngOnDestroy(){this.subscription.unsubscribe()}initializeSortDefinitions(){this.sortDefinitions=1!=this.isPersonalAccount?[{key:"fileTicketNumber",label:"Id",sortable:!0,group:1,widthClass:"w-4"},{key:"name",label:"Name",sortable:!0,group:1,widthClass:"w-4"},{key:"openTaskCount",label:"Open Tasks",sortable:!0,group:1,widthClass:"w-4"},{key:"appEnvironmentName",label:"App Environment",sortable:!0,group:2,widthClass:"w-4"},{key:"projectName",label:"Project",sortable:!0,group:2,widthClass:"w-4"},{key:"creationDateTime",label:"Created on",sortable:!0,group:3,widthClass:"w-4"},{key:"createdBy",label:"Created by",sortable:!0,group:3,widthClass:"w-4"}]:[{key:"fileTicketNumber",label:"Id",sortable:!0,group:1,widthClass:"w-4"},{key:"name",label:"Name",sortable:!0,group:1,widthClass:"w-4"},{key:"appEnvironmentName",label:"App Environment",sortable:!0,group:2,widthClass:"w-4"},{key:"projectName",label:"Project",sortable:!0,group:2,widthClass:"w-4"},{key:"creationDateTime",label:"Created on",sortable:!0,group:3,widthClass:"w-4"}],this.activeSorts=[]}onSortChange(r){this.activeSorts=r;const t=this.tableSortSynchronizer.handleColumnSortChange(r,this.assetSortMapper);!t||!t.shouldFetchData||(this.assetService.setActiveOrderByProperties(t.backendSorts),this.workspaceIdFromUrl&&this.assetService.updateAssetSortOrder(this.workspaceIdFromUrl,this.filterTypeEnum,t.backendSorts))}restoreSearchValue(){if(!this.workspaceId||!this.filterTypeEnum)return;const t=localStorage.getItem(`${this.workspaceId}-${n.i$[this.filterTypeEnum]}`);if(t)try{const s=JSON.parse(t);this.advancedFiltersService.clearExpiredSearchQuery(s?.formValues)&&(this.advancedFiltersService.saveFilterSettingsToStorage(this.workspaceId,this.filterTypeEnum,s),this.assetService.setFilterFormValuesToDatabase(this.workspaceId,this.filterTypeEnum,s.formValues,1==this.isListRoute?"list":"grid").subscribe()),this.searchValue=(s?.formValues?.name??"")||"",setTimeout(()=>{this.advancedFilters?.setName(this.searchValue)})}catch(s){console.error("[AssetHeadBar] Error parsing localStorage for search:",s)}}restoreSortState(){if(!this.workspaceIdFromUrl||!this.filterTypeEnum)return;const t=localStorage.getItem(`${this.workspaceIdFromUrl}-${n.i$[this.filterTypeEnum]}`);if(t)try{const s=JSON.parse(t);s?.formValues?.orderByProperties&&Array.isArray(s.formValues.orderByProperties)?this.assetService.setActiveOrderByProperties(s.formValues.orderByProperties):this.assetService.setActiveOrderByProperties([])}catch(s){console.error("[AssetHeadBar] Error parsing localStorage:",s),this.assetService.setActiveOrderByProperties([])}else this.assetService.setActiveOrderByProperties([]);this.advancedFiltersService.getFilterFormValuesFromDatabase(!1,this.workspaceIdFromUrl,this.filterTypeEnum).subscribe({next:s=>{s?(s?.formValues?.orderByProperties&&Array.isArray(s.formValues.orderByProperties)?this.assetService.setActiveOrderByProperties(s.formValues.orderByProperties):this.assetService.setActiveOrderByProperties([]),this.advancedFiltersService.clearExpiredSearchQuery(s?.formValues)&&(this.advancedFiltersService.saveFilterSettingsToStorage(this.workspaceIdFromUrl,this.filterTypeEnum,s),this.assetService.setFilterFormValuesToDatabase(this.workspaceIdFromUrl,this.filterTypeEnum,s.formValues,1==this.isListRoute?"list":"grid").subscribe()),this.searchValue=(s?.formValues?.name??"")||"",this.advancedFilters?.setName(this.searchValue)):this.assetService.setActiveOrderByProperties([])},error:s=>{console.error("[AssetHeadBar] Error restoring sort state from DB:",s)}})}static#e=this.\u0275fac=function(t){return new(t||i)(e.rXU(E.Ix))};static#t=this.\u0275cmp=e.VBU({type:i,selectors:[["app-asset-head-bar"]],viewQuery:function(t,s){if(1&t&&e.GBs(ee,5),2&t){let o;e.mGM(o=e.lsd())&&(s.advancedFilters=o.first)}},inputs:{title:"title"},features:[e.Vt3],decls:21,vars:22,consts:[["rlaGrid","routerLinkActive"],["rlaList","routerLinkActive"],["advancedFilters",""],["favorites","routerLinkActive"],["archives","routerLinkActive"],["assets","routerLinkActive"],["class","flex align-items-center gap-3 mb-3 justify-content-between",4,"ngIf"],[1,"flex","align-items-center","gap-2","mb-4","flex-wrap"],[1,"flex","align-items-center","gap-3","flex-grow-1","flex-wrap"],["inner-search-filter","","class","sorting text-left field mb-0","style","border-bottom: none;",4,"ngIf"],[1,"search-container"],["iconPosition","left"],["styleClass","pi pi-search"],["type","text","pInputText","","placeholder","Search Assets...",1,"search-input-field",3,"ngModelChange","input","ngModel"],["class","cursor-pointer close-icon","title","Clear search",3,"icon","click",4,"ngIf"],[3,"filterChange","selectedFilter","workspaceId","filterTypeEnum","isListRoute"],["pButton","","routerLinkActive","active","title","Grid View",1,"p-button",3,"routerLink","ngClass"],["pButton","","routerLinkActive","active","title","List View",1,"p-button",3,"routerLink","ngClass"],[1,"ml-auto"],["placeholder","Sort",3,"ngModelChange","sortChange","columns","ngModel"],["class","mb-4",3,"ngSwitch",4,"ngIf"],["class","mb-2",3,"ngSwitch",4,"ngIf"],[1,"flex","align-items-center","gap-3","mb-3","justify-content-between"],[1,"mb-0"],["
1inner-search-filter","",1,"sorting","text-left","field","mb-0",2,"border-bottom","none"],["display","comma","selectionMode","checkbox","placeholder","Select Organizations",3,"ngModelChange","onChange","ngModel","options","metaKeySelection","key"],["title","Clear search",1,"cursor-pointer","close-icon",3,"click","icon"],[1,"mb-4",3,"ngSwitch"],[4,"ngSwitchCase"],["routerLinkActive","active",1,"mr-3","underline-offset-4",3,"routerLink","queryParams","ngClass"],["class","mr-3 underline-offset-4","routerLinkActive","active",3,"routerLink","queryParams","ngClass",4,"ngIf"],[1,"mb-2",3,"ngSwitch"],["pButton","","routerLinkActive","active",1,"p-button","mr-3",3,"routerLink","ngClass"]],template:function(t,s){if(1&t){const o=e.RV6();e.DNE(0,de,5,1,"div",6),e.j41(1,"div",7)(2,"div",8),e.DNE(3,ue,2,4,"div",9),e.j41(4,"div",10)(5,"p-iconField",11),e.nrm(6,"p-inputIcon",12),e.j41(7,"input",13),e.mxI("ngModelChange",function(p){return e.eBV(o),e.DH7(s.searchValue,p)||(s.searchValue=p),e.Njj(p)}),e.bIt("input",function(p){return e.eBV(o),e.Njj(s.onSearchInput(p.target.value))}),e.k0s()(),e.DNE(8,_e,1,1,"fa-icon",14),e.k0s(),e.j41(9,"app-asset-media-type-filter",15),e.bIt("filterChange",function(p){return e.eBV(o),e.Njj(s.onMediaTypeFilterChanged(p))}),e.k0s(),e.j41(10,"p-buttonGroup")(11,"a",16,0),e.EFF(13," Grid "),e.k0s(),e.j41(14,"a",17,1),e.EFF(16," List "),e.k0s()()(),e.j41(17,"div",18)(18,"app-column-sort",19),e.mxI("ngModelChange",function(p){return e.eBV(o),e.DH7(s.activeSorts,p)||(s.activeSorts=p),e.Njj(p)}),e.bIt("sortChange",function(p){return e.eBV(o),e.Njj(s.onSortChange(p))}),e.k0s()()(),e.DNE(19,ve,3,3,"div",20)(20,Ee,3,3,"div",21)}if(2&t){const o=e.sdS(12),_=e.sdS(15);e.Y8G("ngIf",null!=s.currentWebshotUserAccount),e.R7$(3),e.Y8G("ngIf",(null==s.accountWithOrganizationAndTeamNames?null:s.accountWithOrganizationAndTeamNames.length)>0&&1==s.isPersonalAccount&&("favorite"==s.parentRoute||"shared"==s.parentRoute||"archive"==s.parentRoute)),e.R7$(4),e.R50("ngModel",s.searchValue),e.R7$(),e.Y8G("ngIf",s.searchValue&&s.searchValue.trim()),e.R7$(),e.Y8G("selectedFilter",s.selectedMediaTypeFilter)("workspaceId",s.workspaceId)("filterTypeEnum",s.filterTypeEnum)("isListRoute",s.isListRoute),e.R7$(2),e.Y8G("routerLink",s.gridRoute)("ngClass",e.l_i(16,h,!o.isActive,o.isActive)),e.R7$(3),e.Y8G("routerLink",s.listRoute)("ngClass",e.l_i(19,h,!_.isActive,_.isActive)),e.R7$(4),e.Y8G("columns",s.sortDefinitions),e.R50("ngModel",s.activeSorts),e.R7$(),e.Y8G("ngIf","team-workspace"==s.parentWorkspaceRoute||s.filterTypeEnum==s.FilterTypeEnum.AssetHomeFilterFormValues),e.R7$(),e.Y8G("ngIf","trash"==s.parentRoute&&1!=s.isPersonalAccount)}},dependencies:[I.YU,I.bT,I.ux,I.e1,R.me,R.BC,R.vS,K._f,H.S,$.e,E.Wk,E.wQ,Y.KF,X.C,z.m,Q.aY,J.d,Z.w,q.C],styles:["[_nghost-%COMP%]     .search-container, [_nghost-%COMP%]     .task-search-container{position:relative;min-width:300px}[_nghost-%COMP%]     .search-container .close-icon, [_nghost-%COMP%]     .task-search-container .close-icon{position:absolute;top:50%;right:.5rem;transform:translateY(-50%)}[_nghost-%COMP%]     .search-container .search-input-field, [_nghost-%COMP%]     .search-container .search-dropdown, [_nghost-%COMP%]     .task-search-container .search-input-field, [_nghost-%COMP%]     .task-search-container .search-dropdown{width:100%;padding:6px 2rem 6px 36px;color:var(--site-black);border:1px solid var(--support-color-4);border-radius:.25rem}[_nghost-%COMP%]     .search-container .search-input-field:focus, [_nghost-%COMP%]     .search-container .search-input-field.p-inputwrapper-focus, [_nghost-%COMP%]     .search-container .search-dropdown:focus, [_nghost-%COMP%]     .search-container .search-dropdown.p-inputwrapper-focus, [_nghost-%COMP%]     .task-search-container .search-input-field:focus, [_nghost-%COMP%]     .task-search-container .search-input-field.p-inputwrapper-focus, [_nghost-%COMP%]     .task-search-container .search-dropdown:focus, [_nghost-%COMP%]     .task-search-container .search-dropdown.p-inputwrapper-focus{border-color:var(--hyperlink-color)}[_nghost-%COMP%]     .search-container .search-dropdown, [_nghost-%COMP%]     .task-search-container .search-dropdown{padding:5px 0}[_nghost-%COMP%]     .search-container .p-icon-field-left .p-input-icon:first-of-type, [_nghost-%COMP%]     .task-search-container .p-icon-field-left .p-input-icon:first-of-type{left
1:12px}[_nghost-%COMP%]     .search-container .p-input-icon, [_nghost-%COMP%]     .task-search-container .p-input-icon{color:var(--support-color-5)}[_nghost-%COMP%]     .task-search-container{max-width:700px}[_nghost-%COMP%]     .grid-list-buttons{flex-grow:1;flex-shrink:0}@media (max-width: 767px){[_nghost-%COMP%]     .search-container, [_nghost-%COMP%]     .task-search-container{width:100%}[_nghost-%COMP%]     .grid-list-buttons{display:flex}[_nghost-%COMP%]     .grid-list-buttons .p-button-group{display:inline-flex}}.custom-confirm-message[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:1rem}.custom-confirm-icon[_ngcontent-%COMP%]{font-size:1.5rem;margin-top:.7rem}.media-type-filter-group[_ngcontent-%COMP%]   .p-button[_ngcontent-%COMP%]{min-width:84px}[_nghost-%COMP%]     p-multiselect{min-width:205px}[_nghost-%COMP%]     .teams-tree-select{display:inline-block;min-width:205px}[_nghost-%COMP%]     .teams-tree-select .p-treeselect{width:100%;border:0;border-bottom:1px solid var(--primary-color)}[_nghost-%COMP%]     .teams-tree-select .p-treeselect-panel .p-treeselect-items-wrapper .p-tree{padding:0;border:0;background:#fff;box-shadow:0 0 10px #00000040;border-radius:0 0 0 5px}[_nghost-%COMP%]     .teams-tree-select .p-tree .p-tree-container .p-treenode{padding:0}[_nghost-%COMP%]     .teams-tree-select .p-tree .p-tree-container .p-treenode .p-treenode-content{padding:0}[_nghost-%COMP%]     .teams-tree-select .p-tree .p-tree-container .p-treenode .p-treenode-content.p-highlight{background:#fff;color:var(--site-black)}[_nghost-%COMP%]     .teams-tree-select .p-tree .p-tree-container .p-treenode:focus>.p-treenode-content{box-shadow:inset 0 0 0 .1rem #76c3bc}[_nghost-%COMP%]     .teams-tree-select .p-tree .p-tree-container .p-treenode .p-treenode-content.p-treenode-selectable:not(.p-highlight):hover{background:#f5f5f5;color:#4e4e4e}[_nghost-%COMP%]     .teams-tree-select .p-tree .p-tree-container .p-treenode .p-treenode-content.p-highlight .p-tree-toggler, [_nghost-%COMP%]     .teams-tree-select .p-tree .p-tree-container .p-treenode .p-treenode-content.p-highlight .p-treenode-icon{color:var(--site-black)}[_nghost-%COMP%]     .p-treenode-label{padding-right:.6rem}"]})}return i})()},98889:(L,A,a)=>{a.d(A,{C:()=>O});var c=a(54438),e=a(31253),E=a(2309),S=a(49162),k=a(4431),F=a(81141),b=a(85030),D=a(74655);let O=(()=>{class y{constructor(){this.assetService=(0,c.WQX)(E.I),this.advancedFiltersService=(0,c.WQX)(S.$),this.selectedFilter=e.If.None,this.isListRoute=!1,this.filterChange=new c.bkB,this.MediaTypeFilterEnum=e.If,this.iconImageFilter=k.rI,this.iconVideoFilter=k.V8,this.hasRestoredFilter=!1}ngOnInit(){this.restoreSavedFilter()}ngOnChanges(n){(n.workspaceId||n.filterTypeEnum)&&(this.hasRestoredFilter=!1,this.restoreSavedFilter())}isFilterActive(n){return this.selectedFilter===n}onFilterToggle(n){const l=this.selectedFilter===n?e.If.None:n;this.filterChange.emit(l),this.persistSelectedFilter(l)}restoreSavedFilter(){if(this.hasRestoredFilter||!this.workspaceId||null==this.filterTypeEnum)return;this.hasRestoredFilter=!0;const l=localStorage.getItem(`${this.workspaceId}-${e.i$[this.filterTypeEnum]}`);if(l)try{const d=JSON.parse(l);this.selectedFilter=this.parseMediaTypeFilter(d?.formValues?.mediaTypeFilter),this.filterChange.emit(this.selectedFilter),this.applyFilterToSharedSearchModel(this.selectedFilter)}catch(d){console.error("[AssetMediaTypeFilter] Error parsing localStorage for media filter:",d)}this.advancedFiltersService.getFilterFormValuesFromDatabase(!1,this.workspaceId,this.filterTypeEnum).subscribe({next:d=>{const C=this.parseMediaTypeFilter(d?.formValues?.mediaTypeFilter);this.selectedFilter=C,this.filterChange.emit(C),this.applyFilterToSharedSearchModel(C)},error:d=>{console.error("[AssetMediaTypeFilter] Error restoring media filter from DB:",d)}})}persistSelectedFilter(n){!this.workspaceId||null==this.filterTypeEnum||this.advancedFiltersService.getFilterFormValuesFromDatabase(!1,this.workspaceId,this.filterTypeEnum).subscribe({next:l=>{l||(l={formValues:{}}),l.formValues||(l.formValues={}),l.formValues.mediaTypeFilter=n===e.If.None?null:n,this.assetService.setFilterFormValuesToDatabase(this.workspaceId,this.filterTypeEnum,l.formValues,!0===this.isListRoute?"list":"grid").subscribe({next:()=>{this.applyFilterToSharedSearchModel(n)}})}})}applyFilterToSharedSearchModel(n){if(!this.workspaceId||null==this.filterTypeEnum)return;const l=this.advancedFiltersService.getSearchModelFromLocalStorage(this.workspaceId,this.filterTypeEnum);l.mediaTypeFilter=n===e.If.None?null:n,this.assetService.updateFilterModel(l)}parseMediaTypeFilter(n){if(null==n||""===n)return e.If.None;const l="string"==typeof n?Number(n):n;return l===e.If.Image||l===e.If.Video?l:e.If.None}static#e=this.\u0275fac=function(l){return new(l||y)};static#t=this.\u0275cmp=c.VBU({type:y,selectors:[["app-asset-media-type-filter"]],inputs:{selectedFilter:"selectedFilter",workspaceId:"workspaceId",filterTypeEnum:"filterTypeEnum",isListRoute:"isListRoute"},outputs:{filterChange:"filterChange"},features:[c.OA$],decls:5,vars:10,consts:[[1,"media-type-filter-group"],["pButton","","type","button",1,"p-button","p-button-rounded","p-button-text","media-type-icon-btn",3,"click"],["className","media-type-icon-svg",3,"icon"]],template:function(l,d){1&l&&(c.j41(0,"p-buttonGroup",0)(1,"button",1),c.bIt("click",function(){return d.onFilterToggle(d.MediaTypeFilterEnum.Image)}),c.nrm(2,"app-svg-icon",2),c.k0s(),c.j41(3,"button",1),c.bIt("click",function(){return d.onFilterToggle(d.MediaTypeFilterEnum.Video)}),c.nrm(4,"app-svg-icon",2),c.k0s()()),2&l&&(c.R7$(),c.AVh("is-active",d.isFilterActive(d.MediaTypeFilterEnum.Image)),c.BMQ("aria-label","Filter images")("title","Images"),c.R7$(),c.Y8G("icon",d.iconImageFilter),c.R7$(),c.AVh("is-active",d.isFilterActive(d.MediaTypeFilterEnum.Video)),c.BMQ("aria-label","Filter videos")("title","Videos"),c.R7$(),c.Y8G("icon",d.iconVideoFilter))},dependencies:[F._f,b.e,D.D],styles:[".media-type-filter-group[_ngcontent-%COMP%]{display:inline-flex;gap:.25rem}.media-type-filter-group[_ngcontent-%COMP%]   .media-type-icon-btn[_ngcontent-%COMP%]{width:2.25rem;height:2.25rem;border-radius:5px;border:none!important;color:var(--text-color-secondary);background:var(--surface-card);box-shadow:none!important;outline:none!important;display:inline-flex;align-items:center;justify-content:center;font-size:1.25rem}.media-type-filter-group[_ngcontent-%COMP%]   .media-type-icon-btn.is-active[_ngcontent-%COMP%]{background:color-mix(in srgb,var(--primary-color) 14%,transparent);color:var(--primary-color)}[_nghost-%COMP%]     .media-type-filter-group .media-type-icon-btn, [_nghost-%COMP%]     .media-type-filter-group .media-type-icon-btn.p-button, [_nghost-%COMP%]     .media-type-filter-group .media-type-icon-btn.p-button:enabled:hover, [_nghost-%COMP%]     .media-type-filter-group .media-type-icon-btn.p-button:enabled:focus, [_nghost-%COMP%]     .media-type-filter-group .media-type-icon-btn.p-button:enabled:active{border:none!important;box-shadow:none!important;outline:none!important}"]})}return y})()}}]);

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.