1"use strict";(self.webpackChunkSBB=self.webpackChunkSBB||[]).push([[2306],{11752:(P,C,o)=>{o.d(C,{d:()=>e});var f=o(15861),n=o(65879),g=o(85854),h=o(85219),a=o(60095),I=o(97680),c=o(96814),p=o(36081),u=o(86850),T=o(85317);function E(r,v){if(1&r&&(n.TgZ(0,"span",7),n._uU(1),n.qZA()),2&r){const s=n.oxw().$implicit;n.xp6(1),n.hij(" (",s.organizationName,") ")}}function D(r,v){if(1&r&&(n.TgZ(0,"span",5),n._uU(1),n.qZA(),n.YNc(2,E,2,1,"span",6)),2&r){const s=v.$implicit;n.xp6(1),n.hij(" ",s.label," "),n.xp6(1),n.Q6J("ngIf",s.organizationName)}}function O(r,v){if(1&r&&(n.TgZ(0,"label",8),n._uU(1),n.qZA()),2&r){const s=n.oxw();n.xp6(1),n.hij(" ",s.floatLabel||s.placeholder," ")}}function L(r,v){1&r&&n._UZ(0,"p-progressSpinner",9),2&r&&n.Q6J("ngClass","spinner")}const m=function(r,v){return{"tree-float-wrapper":r,"tree-float-active":v}};let e=(()=>{class r{get hasValue(){return"single"===this.selectionMode?null!=this.sbbModel:Array.isArray(this.sbbModel)&&this.sbbModel.length>0}constructor(s,i){this.client=s,this.sbbMessageService=i,this.selectionMode="checkbox",this.sbbModelChange=new n.vpe,this.emptyMessage="Sonu\xe7 bulunamad\u0131",this.showClear=!1,this.isModelClear=!0,this.parenValueId=void 0,this.targetLevel=null,this.isActiveValues=null,this.excludedIds=[],this.useFloatLabel=!1,this.floatLabel="",this.isFocused=!1,this.loading=!1,this.treeClass="",this.isOrgChange=!1,this.filterList={},this.onChange=()=>{},this.selectedIdsChange=new n.vpe,this.isListing=!0,this.allNodesExpanded=!1,this.onlyLastNodeSelectable=!1,this.sortAlphabetically=!1,this.autoSelectSingle=!1,this.filterType={}}ngOnChanges(s){var i=this;return(0,f.Z)(function*(){let t=!1,l=s.sbbModel;l?.currentValue!=s.sbbModel?.previousValue&&(i.sbbModel=l.currentValue||null),s.typeId?.currentValue!=s.typeId?.previousValue&&(t=!0),s.selectedOrgIds?.currentValue!=s.selectedOrgIds?.previousValue&&(i.isOrgChange=!0,t=!0),s.isListing?.currentValue!=s.isListing?.previousValue&&(t=!0),s.parentValueId?.currentValue!=s.parentValueId?.previousValue&&(t=!0),t&&(yield i.fetchTypeValue(i.typeId,i.selectedOrgIds,i.isListing)),s.selectedIds?.currentValue!==s.selectedIds?.previousValue&&i.selectwithId(s.selectedIds.currentValue)})()}ngOnInit(){}fetchTypeValue(s,i,t){var l=this;return(0,f.Z)(function*(){l.filterType={},null==i&&(i=[]),l.loading=!0,l.filterList={organizationIds:i,isListing:t,allNodesExpanded:l.allNodesExpanded,onlyLastNodeSelectable:l.onlyLastNodeSelectable,targetLevel:l.targetLevel,isActiveValues:l.isActiveValues,parentValueId:l.parenValueId};var d=yield l.client.post(`/gnl/typeValue/GetAuthorizedTypeValuesTree/${s}`,l.filterList);if(d.IsError)return l.messageService?void(0,g.X)(d,l.messageService,{authMessage:"Tip de\u011fer dropdown'da yetkiniz yok !",defaultMessage:l.defaultMessage||"Tip De\u011fer dropdown da beklenmedik bir hata meydana geldi",notFound:"Tip de\u011fer dropdown' endpoint bulunamad\u0131"}):void(0,g.P)(d,l.sbbMessageService,{authMessage:"Tip de\u011fer dropdown'da yetkiniz yok !",defaultMessage:l.defaultMessage||"Tip De\u011fer dropdown da beklenmedik bir hata meydana geldi",notFound:"Tip de\u011fer dropdown' endpoint bulunamad\u0131"});l.isModelClear&&l.isOrgChange&&(l.sbbModel=null),l.loading=!1;let M=d.data;if(l.excludedIds&&l.excludedIds.length>0){let b=[];M.forEach(_=>{l.excludedIds.includes(_.data)?_.children&&_.children.length>0&&b.push(..._.children):b.push(_)}),M=b}l.nodes=l.sortAlphabetically?M.sort((b,_)=>b.label.localeCompare(_.label)):M,l.selectSingleAvailableNode()})()}selectSingleAvailableNode(){if(!this.autoSelectSingle||"single"!==this.selectionMode||null!=this.selectedIds)return;const s=this.flattenTree(this.nodes).filter(i=>!1!==i.selectable);1===s.length&&(this.sbbModel=s[0],this.selectedIds=s[0].data,this.selectedIdsChange.emit(this.selectedIds),this.sbbModelChange.emit(this.sbbModel),this.onChange(this.sbbModel))}onChangeModel(s){if(this.sbbModel=s,this.sbbModelChange.emit(s),this.onChange(this.sbbModel),"single"!=this.selectionMode){let i=this.sbbModel?.map(t=>t.data);this.selectedIdsChange.emit(i||null)}else this.selectedIdsChange.emit(null!=this.sbbModel?this.sbbModel.data:null)}selectwithId(s){if(this.sbbModel=[],"single"!=this.selectionMode){if(Array.isArray(s)){let i=this.flattenTree(this.nodes);
1s.forEach(t=>{let l=i.find(d=>d.data==t);this.sbbModel.push(l)})}else if(s){let i=this.flattenTree(this.nodes).find(t=>t.data==s);i&&(this.sbbModel=[i])}}else null!=s&&null!=s&&!Array.isArray(s)&&(this.sbbModel=this.flattenTree(this.nodes).find(i=>i.data==s)),null!=s&&null!=s&&Array.isArray(s)&&s.length>0&&(this.sbbModel=this.flattenTree(this.nodes).find(i=>i.data==s[0]));Array.isArray(this.sbbModel)&&0==this.sbbModel.length&&(this.sbbModel=null)}flattenTree(s,i="children"){const t=[];function l(d){const M={...d};t.push(M),d[i]&&d[i].length>0&&d[i].forEach(b=>l(b))}return null!=s&&null!=s&&s.forEach(d=>l(d)),t}writeValue(s){void 0!==s&&(this.selectedIds=s,this.sbbModel=this.selectedIds,this.selectwithId(s))}registerOnChange(s){this.onChange=s}registerOnTouched(s){this.onTouched=s}static#e=this.\u0275fac=function(i){return new(i||r)(n.Y36(u._),n.Y36(T.y))};static#n=this.\u0275cmp=n.Xpm({type:r,selectors:[["type-value-tree-select"]],inputs:{messageService:"messageService",typeId:"typeId",defaultMessage:"defaultMessage",selectionMode:"selectionMode",sbbModel:"sbbModel",appendTo:"appendTo",placeholder:"placeholder",class:"class",filter:"filter",filterMode:"filterMode",emptyMessage:"emptyMessage",disabled:"disabled",style:"style",showClear:"showClear",isModelClear:"isModelClear",parenValueId:"parenValueId",targetLevel:"targetLevel",isActiveValues:"isActiveValues",excludedIds:"excludedIds",useFloatLabel:"useFloatLabel",floatLabel:"floatLabel",selectedIds:"selectedIds",selectedOrgIds:"selectedOrgIds",isListing:"isListing",allNodesExpanded:"allNodesExpanded",onlyLastNodeSelectable:"onlyLastNodeSelectable",sortAlphabetically:"sortAlphabetically",autoSelectSingle:"autoSelectSingle"},outputs:{sbbModelChange:"sbbModelChange",selectedIdsChange:"selectedIdsChange"},standalone:!0,features:[n._Bn([{provide:a.JU,useExisting:(0,n.Gpc)(()=>r),multi:!0}]),n.TTD,n.jDz],decls:5,vars:21,consts:[[1,"relative-div",3,"ngClass","focusin","focusout"],["containerStyleClass","w-full",3,"ngModel","filterInputAutoFocus","options","placeholder","selectionMode","appendTo","filter","filterMode","emptyMessage","disabled","showClear","ngModelChange"],["pTemplate","default"],["class","tree-float-label",4,"ngIf"],[3,"ngClass",4,"ngIf"],[2,"font-family","'Poppins', sans-serif","font-size","1rem","font-weight","normal","color","#1e293b"],["style","color: lightgray; font-style: italic; font-size: smaller;",4,"ngIf"],[2,"color","lightgray","font-style","italic","font-size","smaller"],[1,"tree-float-label"],[3,"ngClass"]],template:function(i,t){1&i&&(n.TgZ(0,"div",0),n.NdJ("focusin",function(){return t.isFocused=!0})("focusout",function(){return t.isFocused=!1}),n.TgZ(1,"p-treeSelect",1),n.NdJ("ngModelChange",function(d){return t.onChangeModel(d)}),n.YNc(2,D,3,2,"ng-template",2),n.qZA(),n.YNc(3,O,2,1,"label",3),n.YNc(4,L,1,1,"p-progressSpinner",4),n.qZA()),2&i&&(n.Tol(t.class),n.Q6J("ngClass",n.WLB(18,m,t.useFloatLabel,t.useFloatLabel&&(t.hasValue||t.isFocused))),n.xp6(1),n.Tol(t.treeClass),n.Q6J("ngModel",t.sbbModel)("filterInputAutoFocus",!1)("options",t.nodes)("placeholder",t.useFloatLabel?"":t.placeholder)("selectionMode",t.selectionMode)("appendTo",t.appendTo)("filter",t.filter)("filterMode",t.filterMode)("emptyMessage",t.emptyMessage)("disabled",t.disabled||t.loading)("showClear",t.showClear),n.xp6(2),n.Q6J("ngIf",t.useFloatLabel),n.xp6(1),n.Q6J("ngIf",t.loading))},dependencies:[p.o6,p.mP,h.jx,a.u5,a.JJ,a.On,h.m8,c.O5,I.L,I.G,c.mk],styles:[".relative-div[_ngcontent-%COMP%]{position:relative}[_nghost-%COMP%] .p-progress-spinner{height:25px;width:25px}.spinner[_ngcontent-%COMP%]{position:absolute;height:25px;width:25px;right:35px;bottom:10px}.tree-float-wrapper[_ngcontent-%COMP%]{position:relative;display:block;width:100%}.tree-float-label[_ngcontent-%COMP%]{position:absolute;left:.75rem;top:50%;transform:translateY(-50%);color:#6b7280;pointer-events:none;transition:all .2s ease;background:#fff;padding:0 .25rem;z-index:2;font-size:1rem}.tree-float-active[_ngcontent-%COMP%] .tree-float-label[_ngcontent-%COMP%]{top:-.55rem;transform:none;font-size:.75rem;color:#3b82f6}"]})}return r})()},21749:(P,C,o)=>{o.d(C,{C1:()=>n,EL:()=>a,IB:()=>T,In:()=>c,P0:()=>g,Xi:()=>L,ZL:()=>E,d5:()=>m,dT:()=>u,fu:()=>h,hv:()=>D,jZ:()=>p,k9:()=>f,xh:()=>O});var f=function(e){return e[e.epsg3857=3518]="epsg3857",e[e.epsg4326=3519]="epsg4326",e}(f||{}),n=function(e){return e[e.useAlways=3520]="useAlways",e[e.dontUseIfNoUser=3521]="dontUseIfNoUser",e[e.dontUseItOnLocalNetwork=3522]="dontUseItOnLocalNetwork",e}(n||{}
1),g=function(e){return e[e.InfrastructureInstitution=5496]="InfrastructureInstitution",e[e.LegalEntity=5497]="LegalEntity",e[e.RealPerson=5498]="RealPerson",e}(g||{}),h=function(e){return e[e.NewApplication=5460]="NewApplication",e[e.Operator=5461]="Operator",e[e.Inspection=5462]="Inspection",e[e.InspectionRevision=5463]="InspectionRevision",e[e.InspectionApproval=5464]="InspectionApproval",e[e.Manager=5465]="Manager",e[e.Ukome=5466]="Ukome",e[e.UkomeRevision=5467]="UkomeRevision",e[e.UkomeApproval=5468]="UkomeApproval",e[e.ExcavationDocumentRequest=5469]="ExcavationDocumentRequest",e[e.UnsignedExcavationDocumentUploaded=5470]="UnsignedExcavationDocumentUploaded",e[e.ExcavationDocumentControl=5471]="ExcavationDocumentControl",e[e.PrePermit=5472]="PrePermit",e[e.WorkPermission=5473]="WorkPermission",e[e.WorkCompleted=5474]="WorkCompleted",e[e.WorkCompletionRevision=5475]="WorkCompletionRevision",e[e.WorkCompletionRevisionApproval=5476]="WorkCompletionRevisionApproval",e[e.EndOfProcess=5477]="EndOfProcess",e[e.PermitFeeCalculation=5478]="PermitFeeCalculation",e[e.CompanyRelationTerminationBefore=5479]="CompanyRelationTerminationBefore",e[e.CompanyRelationTermination=5480]="CompanyRelationTermination",e[e.ApprovedExcavationEnd=5481]="ApprovedExcavationEnd",e[e.InspectionDenied=5723]="InspectionDenied",e[e.CompanyDecision=5724]="CompanyDecision",e[e.CompanyUploadFile=5725]="CompanyUploadFile",e[e.UploadInstitutionData=5726]="UploadInstitutionData",e[e.ApplicationRevision=5727]="ApplicationRevision",e[e.CompanyInspectionRevisionApproval=5728]="CompanyInspectionRevisionApproval",e[e.CompanyDecisionOperator=5729]="CompanyDecisionOperator",e[e.OperatorBilling=5730]="OperatorBilling",e[e.BillingRevision=6841]="BillingRevision",e[e.LegalEntityDecision=6892]="LegalEntityDecision",e[e.DigginStarted=7434]="DigginStarted",e}(h||{}),a=function(e){return e[e.Urgent=5673]="Urgent",e[e.Planned=5674]="Planned",e[e.NoExcavation=5675]="NoExcavation",e}(a||{}),c=function(e){return e[e.Person=5678]="Person",e[e.Company=5679]="Company",e}(c||{}),p=function(e){return e[e.Person=5713]="Person",e[e.Corporate=5714]="Corporate",e}(p||{}),u=function(e){return e[e.Letter=6890]="Letter",e[e.Cash=6891]="Cash",e}(u||{}),T=function(e){return e[e.Theme=7171]="Theme",e[e.PolyOpt=7172]="PolyOpt",e[e.Icon=7199]="Icon",e[e.Density=7356]="Density",e}(T||{}),E=function(e){return e[e.SBB=8258]="SBB",e}(E||{}),D=function(e){return e[e.Responsible=8482]="Responsible",e[e.Support=8483]="Support",e}(D||{}),O=function(e){return e[e.SourceTypeWorkOrder=8496]="SourceTypeWorkOrder",e[e.SourceTypeDemand=8495]="SourceTypeDemand",e[e.AssetTypeGeometry=8493]="AssetTypeGeometry",e[e.AssetTypeMaterial=8494]="AssetTypeMaterial",e}(O||{}),L=function(e){return e[e.Responsible=8485]="Responsible",e[e.Support=8484]="Support",e}(L||{}),m=function(e){return e[e.Project=8806]="Project",e[e.Investment=8807]="Investment",e[e.Bidding=8837]="Bidding",e}(m||{})},97680:(P,C,o)=>{o.d(C,{G:()=>g,L:()=>h});var f=o(96814),n=o(65879);let g=(()=>{class a{styleClass;style;strokeWidth="2";fill="none";animationDuration="2s";static \u0275fac=function(p){return new(p||a)};static \u0275cmp=n.Xpm({type:a,selectors:[["p-progressSpinner"]],hostAttrs:[1,"p-element"],inputs:{styleClass:"styleClass",style:"style",strokeWidth:"strokeWidth",fill:"fill",animationDuration:"animationDuration"},decls:3,vars:6,consts:[["role","alert","aria-busy","true",1,"p-progress-spinner",3,"ngStyle","ngClass"],["viewBox","25 25 50 50",1,"p-progress-spinner-svg"],["cx","50","cy","50","r","20","stroke-miterlimit","10",1,"p-progress-spinner-circle"]],template:function(p,u){1&p&&(n.TgZ(0,"div",0),n.O4$(),n.TgZ(1,"svg",1),n._UZ(2,"circle",2),n.qZA()()),2&p&&(n.Q6J("ngStyle",u.style)("ngClass",u.styleClass),n.xp6(1),n.Udp("animation-duration",u.animationDuration),n.xp6(1),n.uIk("fill",u.fill)("stroke-width",u.strokeWidth))},dependencies:[f.mk,f.PC],styles:['.p-progress-spinner{position:relative;margin:0 auto;width:100px;height:100px;display:inline-block}.p-progress-spinner:before{content:"";display:block;padding-top:100%}.p-progress-spinner-svg{animation:p-progress-spinner-rotate 2s linear infinite;height:100%;transform-origin:center center;width:100%;position:absolute;inset:0;margin:auto}.p-progress-spinner-circle{stroke-dasharray:89,200;stroke-dashoffset:0;stroke:#d62d20;animation:p-progress-spinner-dash 1.5s ease-in-out infinite,p-progress-spinner-color 6s ease-in-out infinite;stroke-linecap:round}@keyframes p-progress-spinner-rotate{to{transform:rotate(360deg)}}@keyframes p-progress-spinner-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}to{stroke-dasharray:89,200;stroke-dashoffset:-124px}}@keyframes p-progress-spinner-color{to,0%{stroke:#d62d20}40%{stroke:#0057e7}66%{stroke:#008744}80%,90%{stroke:#ffa700}}\n'],encapsulation:2,changeDetection:0})}return a})(),h=(()=>{class a{static \u0275fac=function(p){return new(p||a)};static \u0275mod=n.oAB({type:a});static \u0275inj=n.cJS({imports:[f.ez]})}return a})()}}]);
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.