PageSourceSearch

https://baseb.app/7701.6d7d36f08f8d0fd5.js

js baseb.app collected 2026-10-04 03:27:00 UTC 3,136 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkbaseb_app=self.webpackChunkbaseb_app||[]).push([[7701,82],{77701:(T,h,a)=>{a.d(h,{t:()=>O});var t=a(54438),r=a(89417),u=a(70152),p=a(11058),f=a(16139),_=a(60177),E=a(59042),l=a(53719),m=a(60850),P=a(86600),d=a(99213),v=a(14823),g=a(46941);function C(i,c){if(1&i&&(t.j41(0,"mat-option",7),t.EFF(1),t.k0s()),2&i){const e=c.$implicit;t.Y8G("matTooltip",e.nickname?e.nickname:e.name)("value",e),t.R7$(),t.SpI(" ",e.nickname?e.nickname:e.name," ")}}function D(i,c){1&i&&(t.j41(0,"mat-option",8),t.EFF(1),t.nI1(2,"transloco"),t.k0s()),2&i&&(t.Y8G("value",null),t.R7$(),t.JRh(t.bMT(2,2,"text.noResultsFound")))}let O=(()=>{class i{constructor(e,o){this.route=e,this.settingBranchService=o,this.formControl=new r.hs,this.itens=[],this.branchId="",this.field="branch",this.text="field.branch",this.setFilter=new t.bkB,this.removeParam=new t.bkB,this.subscriptions=[],this.field in this.route.snapshot.queryParams&&this.subscriptions.push(this.settingBranchService.get(this.route.snapshot.queryParams[this.field]).subscribe(n=>{this.formControl.setValue(n)})),this.subscriptions.push(this.formControl.valueChanges.pipe((0,u.B)(400)).subscribe(n=>{n||(this.branchId="",this.removeParam.emit(this.field)),"string"==typeof n&&this.settingBranchService.query({q:n,pageSize:25}).subscribe(s=>{this.itens=s.body})}))}ngOnDestroy(){this.subscriptions.forEach(e=>e?.unsubscribe())}select(e){e.option.value&&(this.branchId=e.option.value.id,this.setFilter.emit({field:this.field,value:e.option.value.id}))}displayFn(e){return e?e.nickname?e.nickname:e.name:void 0}static{this.\u0275fac=function(o){return new(o||i)(t.rXU(p.nX),t.rXU(f.y))}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-purchase-filter-branch"]],inputs:{field:"field",text:"text"},outputs:{setFilter:"setFilter",removeParam:"removeParam"},decls:11,vars:8,consts:[["auto","matAutocomplete"],[1,"w-full"],["type","text","aria-label","Assignee","matInput","",3,"click","formControl","matAutocomplete"],["matSuffix",""],[3,"optionSelected","displayWith"],["matTooltipPosition","right","matTooltipShowDelay","1000",3,"matTooltip","value",4,"ngFor","ngForOf"],[3,"value",4,"ngIf"],["matTooltipPosition","right","matTooltipShowDelay","1000",3,"matTooltip","value"],[3,"value"]],template:function(o,n){if(1&o){const s=t.RV6();t.j41(0,"mat-form-field",1)(1,"mat-label"),t.EFF(2),t.nI1(3,"transloco"),t.k0s(),t.j41(4,"input",2),t.bIt("click",function(){return t.eBV(s),t.Njj(n.formControl.setValue(""))}),t.k0s(),t.j41(5,"mat-icon",3),t.EFF(6,"search"),t.k0s(),t.j41(7,"mat-autocomplete",4,0),t.bIt("optionSelected",function(M){return t.eBV(s),t.Njj(n.select(M))}),t.DNE(9,C,2,3,"mat-option",5)(10,D,3,4,"mat-option",6),t.k0s()()}if(2&o){const s=t.sdS(8);t.R7$(2),t.JRh(t.bMT(3,6,n.text)),t.R7$(2),t.Y8G("formControl",n.formControl)("matAutocomplete",s),t.R7$(3),t.Y8G("displayWith",n.displayFn),t.R7$(2),t.Y8G("ngForOf",n.itens),t.R7$(),t.Y8G("ngIf",0===n.itens.length)}},dependencies:[_.Sq,_.bT,r.me,r.BC,E.fg,l.rl,l.nJ,l.yw,r.l_,m.$3,P.wT,m.pN,d.An,v.oV,g.Kj],styles:[".mat-mdc-form-field[_ngcontent-%COMP%]{font-size:13px;height:40px}"]})}}return i})()}}]);

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.