PageSourceSearch

https://hutzelhof.de/3915.4f1b6f7a434d1de7.js

js hutzelhof.de collected 2026-10-08 04:57:21 UTC 93,986 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkResponsiveApps=self.webpackChunkResponsiveApps||[]).push([[3915],{8699:(Q,O,r)=>{r.d(O,{v:()=>T});var e=r(72200),d=r(20734),p=r(33409),x=r(95816),_=r(89613),m=r(2615),D=r(73664);let T=(()=>{class b{static{this.\u0275fac=function(c){return new(c||b)}}static{this.\u0275mod=D.$C({type:b})}static{this.\u0275inj=m.G2t({imports:[e.MD,d.y,p.n,x.a,_.U]})}}return b})()},19347:(Q,O,r)=>{r.d(O,{I:()=>_});var e=r(72200),d=r(69753),p=r(2615),x=r(73664);let _=(()=>{class m{static{this.\u0275fac=function(b){return new(b||m)}}static{this.\u0275mod=x.$C({type:m})}static{this.\u0275inj=p.G2t({imports:[e.MD,d.o]})}}return m})()},24238:(Q,O,r)=>{r.d(O,{k:()=>I});var e=r(61594),d=r(96354),p=r(44668),x=r(25558),_=r(96697),m=r(35217),D=r(2615),T=r(27491),b=r(71063),j=r(91029);let I=(()=>{class c extends m.w{constructor(E,f,S){super(),this.uiConfigService=E,this.s_routeHelper=f,this.route=S,this.o_queryParams=this.getQueryParams().pipe((0,p.t)(1)),this.o_queryParams.subscribe()}getQueryParams(){const E=this.uiConfigService.globalConfig.logicalConfIndex.app_chameleon_query_params.defaultValue.valueAsObservable.pipe();return this.s_routeHelper.onRouteLoaded().pipe((0,x.n)(()=>E.pipe((0,_.s)(1))),(0,x.n)(f=>this.route.queryParamMap.pipe((0,e.$)(),(0,d.T)(S=>{if(!f||!S)return{};const B=f.split(",").map(L=>L.trim()),U={};return B.forEach(L=>{const P=S.get(L);null!==P&&(U[L]=P)}),U}))),(0,e.$)())}static{this.\u0275fac=function(f){return new(f||c)(D.KVO(T.s),D.KVO(b.N),D.KVO(j.nX))}}static{this.\u0275prov=D.jDH({token:c,factory:c.\u0275fac,providedIn:"root"})}}return c})()},33409:(Q,O,r)=>{r.d(O,{i:()=>x,n:()=>_});var e=r(73664),d=r(2615),p=r(45758);let x=(()=>{class m{constructor(T){this.s_formGroupsValidation=T,this.additionalInvalid=!1,this.validClick=new e.bkB}onClick(T){this.s_formGroupsValidation.checkFormGroupsValid(this.formGroups,this.additionalInvalid)&&this.validClick.next(T)}static{this.\u0275fac=function(b){return new(b||m)(e.rXU(p.F))}}static{this.\u0275dir=e.FsC({type:m,selectors:[["","invalidChecker",""]],hostBindings:function(b,j){1&b&&e.bIt("click",function(c){return j.onClick(c)})},inputs:{formGroups:[0,"invalidChecker","formGroups"],additionalInvalid:[0,"invalid","additionalInvalid"]},outputs:{validClick:"validClick"},standalone:!1})}}return m})(),_=(()=>{class m{static{this.\u0275fac=function(b){return new(b||m)}}static{this.\u0275mod=e.$C({type:m})}static{this.\u0275inj=d.G2t({})}}return m})()},43487:(Q,O,r)=>{r.d(O,{A:()=>e});class e{constructor(p){p&&(this.lfbisCode=p.lfbisCode,this.fistName=p.fistName,this.surName=p.surName,this.email=p.email,this.parentPRelationTypeSid=p.parentPRelationTypeSid)}getJson(){let p={};return this.lfbisCode&&(p.lfbisCode=this.lfbisCode),this.fistName&&(p.fistName=this.fistName),this.surName&&(p.surName=this.surName),this.email&&(p.email=this.email),this.parentPRelationTypeSid&&(p.parentPRelationTypeSid=this.parentPRelationTypeSid),p}}},45758:(Q,O,r)=>{r.d(O,{F:()=>p});var e=r(2615),d=r(82559);let p=(()=>{class x{constructor(m){this.s_invalidNotification=m}checkFormGroupsValid(m,D){if(D||m?.some(T=>T.invalid)){for(let T of m)T.markAllAsTouched(),T.updateValueAndValidity();return this.s_invalidNotification.showNotification(),!1}return!0}static{this.\u0275fac=function(D){return new(D||x)(e.KVO(d.K))}}static{this.\u0275prov=e.jDH({token:x,factory:x.\u0275fac,providedIn:"root"})}}return x})()},84620:(Q,O,r)=>{r.d(O,{e:()=>_e});var e=r(2615),d=r(73664),p=r(59295),x=r(56174),_=r(58935),m=r(23911),D=r(72200),T=r(13337),b=r(33409),j=r(68580),I=r(79111),c=r(89613);const w=(y,R)=>R.sid;function E(y,R){if(1&y&&(d.EFF(0,"\n          "),d.nrm(1,"button",3),d.EFF(2,"\n        ")),2&y){const v=d.XpG(),F=d.XpG(3);d.R7$(),d.Y8G("ngClass",v.style)("disabled",F.disabled)}}function f(y,R){if(1&y){const v=d.RV6();d.EFF(0,"\n        "),d.j41(1,"button",2),d.bIt("validClick",function(){const M=e.eBV(v),W=d.XpG(3);return e.Njj(W.executeActivityFlowPos.emit(M))}),d.EFF(2),d.k0s(),d.EFF(3,"\n        "),d.nVh(4,E,3,2)}if(2&y){const v=R,F=d.XpG(3);d.R7$(),d.Y8G("iconBefore",F.activityFlowPos.length>1?"dataflow-01":void 0)("ngClass",v.style)("disabled",F.disabled)("isRequesting",F.isRequesting)("invalidChecker",F.validationFormGroups),d.R7$(),d.SpI("\n          ",v.name,"\n        "),d.R7$(2),d.vxM(F.activityFlowPos.length>1?4:-1)}}function S(y,R){if(1&y&&(d.j41(0,"div",6),d.EFF(1,"\n          "),d.j41(2,"span"),d.EFF(3),d.nI1(4,"async"),d.k0s(),d.EFF(5,"\n        "),d.k0s()),2&y){const v=R.o_label;d.R7$(3),d.JRh(d.bMT(4,1,v))}}function B(y,R){if(1&y){const v=d.RV6();d.EFF(0,"\n          "),d.j41(1,"li",7),d.bIt("validClick",function(){const M=e.eBV(v).$implicit,W=d.XpG(4);return e.Njj(W.executeActivityFlowPos.emit(M))}),d.EFF(2,"\n          "),d.k0s(),d.EFF(3,"\n        ")}if(2&y){const v=R.$implicit,F=d.XpG(4);d.R7$(),d.Y8G("invalidChecker",F.validationFormGroups)("innerHTML",v.name,d.npT)}}function U(y,R){if(1&y&&(d.j41(0,"div",4),d.EFF(1,"\n        "),d.DNE(2,S,6,3,"div",5),d.EFF(3,"\n        "),d.Z7z(4,B,4,2,null,null,w),d.k0s()),2&y){const v=d.XpG(3);d.R7$(2),d.Y8G("fabGuid",`${v.guid}_dropdownMenu_header`),d.R7$(2),d.Dyx(v.activityFlowPos)}}function L(y,R){if(1&y&&(d.EFF(0,"\n    "),d.j41(1,"div",0),d.EFF(2,"\n      "),d.nVh(3,f,5,7),d.DNE(4,U,6,1,"div",1),d.EFF(5,"\n    "),d.k0s(),d.EFF(6,"\n  ")),2&y){let v;const F=d.XpG(2);d.R7$(),d.Y8G("dropup",!0),d.R7$(2),d.vxM((v=F.priorityFlowPos())?3:-1,v)}}function P(y,R){if(1&y){const v=d.RV6();d.j41(0,"button",9),d.bIt("validClick",function(){const M=e.eBV(v).$implicit,W=d.XpG(3);return e.Njj(W.executeActivityFlowPos.emit(M))}),d.EFF(1,"\n    "),d.k0s()}if(2&y){const v=R.$implicit,F=d.XpG(3);d.Y8G("ngClass",v.style)("disabled",F.disabled)("innerHTML",v.name,d.npT)("isRequesting",F.isRequesting)("invalidChecker",F.validationFormGroups)}}function pe(y,R){if(1&y&&(d.EFF(0,"\n    "),d.DNE(1,P,2,5,"button",8),d.EFF(2,"\n  ")),2&y){const v=d.XpG(2);d.R7$(),d.Y8G("ngForOf",v.activityFlowPos)}}function V(y,R){if(1&y&&(d.EFF(0,"\n  "),d.nVh(1,L,7,2)(2,pe,3,1)),2&y){const v=d.XpG();d.R7$(),d.vxM(v.cmsModuleUsage.module.isFabUI?1:2)}}let _e=(()=>{class y extends m.u{constructor(){super(...arguments),this.cmsModuleUsage=(0,e.WQX)(_.t),this.executeActivityFlowPos=new d.bkB,this.lastFlowPos=(0,e.vPA)(void 0),this.priorityFlowPos=(0,p.EW)(()=>this.lastFlowPos()??this.activityFlowPos.sort((v,F)=>(F.isDefault?1:0)-(v.isDefault?1:0))[0]),this.ROLE_ENQUIRY_EDIT=x.u.ROLE_ENQUIRY_EDIT,this.ROLE_ENQUIRY_CREATE=x.u.ROLE_ENQUIRY_CREATE}ngOnInit(){this.executeActivityFlowPos.subscribe({next:v=>{this.lastFlowPos.set(v)}})}static{this.\u0275fac=(()=>{let v;return function(M){return(v||(v=d.xGo(y)))(M||y)}})()}static{this.\u0275cmp=d.VBU({type:y,selectors:[["activity-flow-pos-buttons"]],inputs:{disabled:"disabled",isRequesting:"isRequesting",validationFormGroups:"validationFormGroups",activityFlowPos:"activityFlowPos",sessionInfo:"sessionInfo"},outputs:{executeActivityFlowPos:"executeActivityFlowPos"},standalone:!1,features:[d.Vt3],decls:1,vars:1,consts:[["dropdown","",1,"fab-ui-button-group","fab-ui-action-dropdown",3,"dropup"],["class","dropdown-menu dropdown-menu-right",4,"dropdownMenu"],["fabUIButton","","size","sm",3,"validClick","iconBefore","ngClass","disabled","isRequesting","invali
1dChecker"],["dropdownToggle","",1,"fab-ui-button","icon-only","dropdown-toggle",3,"ngClass","disabled"],[1,"dropdown-menu","dropdown-menu-right"],["class","dropdown-menu-header",4,"fabGuid"],[1,"dropdown-menu-header"],[1,"dropdown-item",3,"validClick","invalidChecker","innerHTML"],["class","fab-ui-button",3,"ngClass","disabled","innerHTML","isRequesting","invalidChecker","validClick",4,"ngFor","ngForOf"],[1,"fab-ui-button",3,"validClick","ngClass","disabled","innerHTML","isRequesting","invalidChecker"]],template:function(F,M){1&F&&d.nVh(0,V,3,1),2&F&&d.vxM(null!=M.activityFlowPos&&M.activityFlowPos.length&&(null!=M.sessionInfo&&M.sessionInfo.hasRole(M.ROLE_ENQUIRY_EDIT)||null!=M.sessionInfo&&M.sessionInfo.hasRole(M.ROLE_ENQUIRY_CREATE))?0:-1)},dependencies:[D.YU,D.Sq,T.B,b.i,j.hs,j.UL,j.Kk,I.l,c.p,D.Jj],encapsulation:2})}}return y})()},93915:(Q,O,r)=>{r.d(O,{FV:()=>ze,Sv:()=>Ni,rs:()=>Gi});var e=r(73664),d=r(68018),p=r(84412),x=r(21413),_=r(7673),m=r(84572),D=r(57786),T=r(35060),b=r(73557),j=r(983),I=r(23294),c=r(96354),w=r(88141),E=r(56977),f=r(25558),S=r(44668),B=r(53993),U=r(5964),L=r(99172),P=r(61594),pe=r(58964),V=r(72200),_e=r(25020),y=r(20734),R=r(51016),v=r(89417),F=r(82765),M=r(83869),W=r(74402),Ee=r(92688),J=r(96697),be=r(19852),Fe=r(70274),h=r(2615),A=r(17705),et=r(4125),xe=r(61577),Te=r(14117),fe=r(8045);class Se{dataNodes;expansionModel=new M.C(!0);trackBy;getLevel;isExpandable;getChildren;toggle(a){this.expansionModel.toggle(this._trackByValue(a))}expand(a){this.expansionModel.select(this._trackByValue(a))}collapse(a){this.expansionModel.deselect(this._trackByValue(a))}isExpanded(a){return this.expansionModel.isSelected(this._trackByValue(a))}toggleDescendants(a){this.expansionModel.isSelected(this._trackByValue(a))?this.collapseDescendants(a):this.expandDescendants(a)}collapseAll(){this.expansionModel.clear()}expandDescendants(a){let t=[a];t.push(...this.getDescendants(a)),this.expansionModel.select(...t.map(n=>this._trackByValue(n)))}collapseDescendants(a){let t=[a];t.push(...this.getDescendants(a)),this.expansionModel.deselect(...t.map(n=>this._trackByValue(n)))}_trackByValue(a){return this.trackBy?this.trackBy(a):a}}class tt extends Se{getLevel;isExpandable;options;constructor(a,t,n){super(),this.getLevel=a,this.isExpandable=t,this.options=n,this.options&&(this.trackBy=this.options.trackBy)}getDescendants(a){const n=[];for(let s=this.dataNodes.indexOf(a)+1;s<this.dataNodes.length&&this.getLevel(a)<this.getLevel(this.dataNodes[s]);s++)n.push(this.dataNodes[s]);return n}expandAll(){this.expansionModel.select(...this.dataNodes.map(a=>this._trackByValue(a)))}}const ie=new h.nKC("CDK_TREE_NODE_OUTLET_NODE");let ne=(()=>{class i{viewContainer=(0,h.WQX)(e.c1b);_node=(0,h.WQX)(ie,{optional:!0});constructor(){}static \u0275fac=function(n){return new(n||i)};static \u0275dir=e.FsC({type:i,selectors:[["","cdkTreeNodeOutlet",""]]})}return i})();class nt{$implicit;level;index;count;constructor(a){this.$implicit=a}}let se=(()=>{class i{template=(0,h.WQX)(e.C4Q);when;constructor(){}static \u0275fac=function(n){return new(n||i)};static \u0275dir=e.FsC({type:i,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:[0,"cdkTreeNodeDefWhen","when"]}})}return i})();function Pe(){return Error("Could not find a tree control, levelAccessor, or childrenAccessor for the tree.")}let Z=(()=>{class i{_differs=(0,h.WQX)(A._q3);_changeDetectorRef=(0,h.WQX)(A.gRc);_elementRef=(0,h.WQX)(e.aKT);_dir=(0,h.WQX)(xe.dS);_onDestroy=new x.B;_dataDiffer;_defaultNodeDef;_dataSubscription;_levels=new Map;_parents=new Map;_ariaSets=new Map;get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}_dataSource;treeControl;levelAccessor;childrenAccessor;trackBy;expansionKey;_nodeOutlet;_nodeDefs;viewChange=new p.t({start:0,end:Number.MAX_VALUE});_expansionModel;_flattenedNodes=new p.t([]);_nodeType=new p.t(null);_nodes=new p.t(new Map);_keyManagerNodes=new p.t([]);_keyManagerFactory=(0,h.WQX)(et.Z2);_keyManager;_viewInit=!1;constructor(){}ngAfterContentInit(){this._initializeKeyManager()}ngAfterContentChecked(){this._updateDefaultNodeDefinition(),this._subscribeToDataChanges()}ngOnDestroy(){this._nodeOutlet.viewContainer.clear(),this._nodes.complete(),this._keyManagerNodes.complete(),this._nodeType.complete(),this._flattenedNodes.complete(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),this._keyManager?.destroy()}ngOnInit(){this._checkTreeControlUsage(),this._initializeDataDiffer()}ngAfterViewInit(){this._viewInit=!0}_updateDefaultNodeDefinition(){const t=this._nodeDefs.filter(n=>!n.when);this._defaultNodeDef=t[0]}_setNodeTypeIfUnset(t){null===this._nodeType.value&&this._nodeType.next(t)}_switchDataSource(t){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),t||this._nodeOutlet.viewContainer.clear(),this._dataSource=t,this._nodeDefs&&this._subscribeToDataChanges()}_getExpansionModel(){return this.treeControl?this.treeControl.expansionModel:(this._expansionModel??=new M.C(!0),this._expansionModel)}_subscribeToDataChanges(){if(this._dataSubscription)return;let t;(0,Te.y)(this._dataSource)?t=this._dataSource.connect(this):(0,W.A)(this._dataSource)?t=this._dataSource:Array.isArray(this._dataSource)&&(t=(0,_.of)(this._dataSource)),t&&(this._dataSubscription=this._getRenderData(t).pipe((0,E.Q)(this._onDestroy)).subscribe(n=>{this._renderDataChanges(n)}))}_getRenderData(t){const n=this._getExpansionModel();return(0,m.z)([t,this._nodeType,n.changed.pipe((0,L.Z)(null),(0,w.M)(s=>{this._emitExpansionChanges(s)}))]).pipe((0,f.n)(([s,o])=>null===o?(0,_.of)({renderNodes:s,flattenedNodes:null,nodeType:o}):this._computeRenderingData(s,o).pipe((0,c.T)(l=>({...l,nodeType:o})))))}_renderDataChanges(t){null!==t.nodeType?(this._updateCachedData(t.flattenedNodes),this.renderNodeChanges(t.renderNodes),this._updateKeyManagerItems(t.flattenedNodes)):this.renderNodeChanges(t.renderNodes)}_emitExpansionChanges(t){if(!t)return;const n=this._nodes.value;for(const s of t.added)n.get(s)?._emitExpansionState(!0);for(const s of t.removed)n.get(s)?._emitExpansionState(!1)}_initializeKeyManager(){const t=(0,m.z)([this._keyManagerNodes,this._nodes]).pipe((0,c.T)(([s,o])=>s.reduce((l,u)=>{const g=o.get(this._getExpansionKey(u));return g&&l.push(g),l},[])));this._keyManager=this._keyManagerFactory(t,{trackBy:s=>this._getExpansionKey(s.data),skipPredicate:s=>!!s.isDisabled,typeAheadDebounceInterval:!0,horizontalOrientation:this._dir.value})}_initializeDataDiffer(){const t=this.trackBy??((n,s)=>this._getExpansionKey(s));this._dataDiffer=this._differs.find([]).create(t)}_checkTreeControlUsage(){}renderNodeChanges(t,n=this._dataDiffer,s=this._nodeOutlet.viewContainer,o){const l=n.diff(t);!l&&!this._viewInit||(l?.forEachOperation((u,g,C)=>{if(null==u.previousIndex)this.insertNode(t[C],C,s,o);else if(null==C)s.remove(g);else{const N=s.get(g);s.move(N,C)}}),l?.forEachIdentityChange(u=>{const g=u.item;null!=u.currentIndex&&(s.get(u.currentIndex).context.$implicit=g)}),o?this._changeDetectorRef.markForCheck():this._changeDetectorRef.detectChanges())}_getNodeDef(t,n){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(o=>o.when&&o.when(n,t))||this._defaultNodeDef}insertNode(t,n,s,o){const l=this._getLevelAccessor(),u=this._getNodeDef(t,n),g=this._getExpansionKey(t),C=new nt(t);C.index=n,o??=this._parents.get(g)??void 0,C.level=l?l(t):void 0!==o&&this._levels.has(this._getExpansionKey(o))?this._levels.get(this._getExpansionKey(o))+1:0,this._levels.set(g,C.level),(s||this._nodeOutlet.viewContainer).createEmbeddedView(u.template,C,n),K.mostRecentTreeNode&&(K.mostRecentTreeNode.data=t)}isExpanded(t){return!(!this.treeControl?.isExpanded(t)&&!this._expansionModel?.isSelected(this._getExpansionKey(t)))}toggle(t){this.treeControl?this.treeControl.toggle(t):this._expansionModel&&this._expansionModel.toggle(this._getExpansionKey(t))}expand(t){this.treeControl?this.treeControl.expand(t):this._expansionModel&&this._expansionModel.select(this._getExpansionKey(t))}collapse(t){this.treeControl?this.treeControl.collapse(t):this._expansionModel&&this._expansionModel.deselect(this._getExpansionKey(t))}toggleDescendants(t){this.treeControl?this.treeControl.toggleDescendants(t):this._expansionModel&&(this.isExpanded(t)?this.collapseDescendants(t):this.expandDescendants(t))}expandDescendants(t){if(this.treeControl)this.treeControl.expandDescendants(t);else if(this._expansionModel){const n=this._expansionModel;n.select(this._getExpansionKey(t)),this._getDescendants(t).pipe((0,J.s)(1),(0,E.Q)(this._onDestroy)).subscribe(s=>{n.select(...s.map(o=>this._getExpansionKey(o)))})}}collapseDescendants(t){if(this.treeControl)this.treeControl.collapseDescendants(t);else if(this._expansionModel){const n=this._expansionModel;n.deselect(this._getExpansionKey(t)),this._getDescendants(t).pipe((0,J.s)(1),(0,E.Q)(this._onDestroy)).subscribe(s=>{n.deselect(...s.map(o=>this._getExpansionKey(o)))})}}
1expandAll(){this.treeControl?this.treeControl.expandAll():this._expansionModel&&this._forEachExpansionKey(t=>this._expansionModel?.select(...t))}collapseAll(){this.treeControl?this.treeControl.collapseAll():this._expansionModel&&this._forEachExpansionKey(t=>this._expansionModel?.deselect(...t))}_getLevelAccessor(){return this.treeControl?.getLevel?.bind(this.treeControl)??this.levelAccessor}_getChildrenAccessor(){return this.treeControl?.getChildren?.bind(this.treeControl)??this.childrenAccessor}_getDirectChildren(t){const n=this._getLevelAccessor(),s=this._expansionModel??this.treeControl?.expansionModel;if(!s)return(0,_.of)([]);const o=this._getExpansionKey(t),l=s.changed.pipe((0,f.n)(g=>g.added.includes(o)?(0,_.of)(!0):g.removed.includes(o)?(0,_.of)(!1):j.w),(0,L.Z)(this.isExpanded(t)));if(n)return(0,m.z)([l,this._flattenedNodes]).pipe((0,c.T)(([g,C])=>g?this._findChildrenByLevel(n,C,t,1):[]));const u=this._getChildrenAccessor();if(u)return(0,fe.x)(u(t)??[]);throw Pe()}_findChildrenByLevel(t,n,s,o){const l=this._getExpansionKey(s),u=n.findIndex(X=>this._getExpansionKey(X)===l),g=t(s),C=g+o,N=[];for(let X=u+1;X<n.length;X++){const he=t(n[X]);if(he<=g)break;he<=C&&N.push(n[X])}return N}_registerNode(t){this._nodes.value.set(this._getExpansionKey(t.data),t),this._nodes.next(this._nodes.value)}_unregisterNode(t){this._nodes.value.delete(this._getExpansionKey(t.data)),this._nodes.next(this._nodes.value)}_getLevel(t){return this._levels.get(this._getExpansionKey(t))}_getSetSize(t){return this._getAriaSet(t).length}_getPositionInSet(t){const n=this._getAriaSet(t),s=this._getExpansionKey(t);return n.findIndex(o=>this._getExpansionKey(o)===s)+1}_getNodeParent(t){const n=this._parents.get(this._getExpansionKey(t.data));return n&&this._nodes.value.get(this._getExpansionKey(n))}_getNodeChildren(t){return this._getDirectChildren(t.data).pipe((0,c.T)(n=>n.reduce((s,o)=>{const l=this._nodes.value.get(this._getExpansionKey(o));return l&&s.push(l),s},[])))}_sendKeydownToKeyManager(t){if(t.target===this._elementRef.nativeElement)this._keyManager.onKeydown(t);else{const n=this._nodes.getValue();for(const[,s]of n)if(t.target===s._elementRef.nativeElement){this._keyManager.onKeydown(t);break}}}_getDescendants(t){if(this.treeControl)return(0,_.of)(this.treeControl.getDescendants(t));if(this.levelAccessor){const n=this._findChildrenByLevel(this.levelAccessor,this._flattenedNodes.value,t,1/0);return(0,_.of)(n)}if(this.childrenAccessor)return this._getAllChildrenRecursively(t).pipe((0,be.T)((n,s)=>(n.push(...s),n),[]));throw Pe()}_getAllChildrenRecursively(t){return this.childrenAccessor?(0,fe.x)(this.childrenAccessor(t)).pipe((0,J.s)(1),(0,f.n)(n=>{for(const s of n)this._parents.set(this._getExpansionKey(s),t);return(0,_.of)(...n).pipe((0,Fe.H)(s=>(0,Ee.x)((0,_.of)([s]),this._getAllChildrenRecursively(s))))})):(0,_.of)([])}_getExpansionKey(t){return this.expansionKey?.(t)??t}_getAriaSet(t){const n=this._getExpansionKey(t),s=this._parents.get(n),o=s?this._getExpansionKey(s):null;return this._ariaSets.get(o)??[t]}_findParentForNode(t,n,s){if(!s.length)return null;const o=this._levels.get(this._getExpansionKey(t))??0;for(let l=n-1;l>=0;l--){const u=s[l];if((this._levels.get(this._getExpansionKey(u))??0)<o)return u}return null}_flattenNestedNodesWithExpansion(t,n=0){const s=this._getChildrenAccessor();return s?(0,_.of)(...t).pipe((0,Fe.H)(o=>{const l=this._getExpansionKey(o);this._parents.has(l)||this._parents.set(l,null),this._levels.set(l,n);const u=(0,fe.x)(s(o));return(0,Ee.x)((0,_.of)([o]),u.pipe((0,J.s)(1),(0,w.M)(g=>{this._ariaSets.set(l,[...g??[]]);for(const C of g??[]){const N=this._getExpansionKey(C);this._parents.set(N,o),this._levels.set(N,n+1)}}),(0,f.n)(g=>g?this._flattenNestedNodesWithExpansion(g,n+1).pipe((0,c.T)(C=>this.isExpanded(o)?C:[])):(0,_.of)([]))))}),(0,be.T)((o,l)=>(o.push(...l),o),[])):(0,_.of)([...t])}_computeRenderingData(t,n){if(this.childrenAccessor&&"flat"===n)return this._clearPreviousCache(),this._ariaSets.set(null,[...t]),this._flattenNestedNodesWithExpansion(t).pipe((0,c.T)(s=>({renderNodes:s,flattenedNodes:s})));if(this.levelAccessor&&"nested"===n){const s=this.levelAccessor;return(0,_.of)(t.filter(o=>0===s(o))).pipe((0,c.T)(o=>({renderNodes:o,flattenedNodes:t})),(0,w.M)(({flattenedNodes:o})=>{this._calculateParents(o)}))}return"flat"===n?(0,_.of)({renderNodes:t,flattenedNodes:t}).pipe((0,w.M)(({flattenedNodes:s})=>{this._calculateParents(s)})):(this._clearPreviousCache(),this._ariaSets.set(null,[...t]),this._flattenNestedNodesWithExpansion(t).pipe((0,c.T)(s=>({renderNodes:t,flattenedNodes:s}))))}_updateCachedData(t){this._flattenedNodes.next(t)}_updateKeyManagerItems(t){this._keyManagerNodes.next(t)}_calculateParents(t){const n=this._getLevelAccessor();if(n){this._clearPreviousCache();for(let s=0;s<t.length;s++){const o=t[s],l=this._getExpansionKey(o);this._levels.set(l,n(o));const u=this._findParentForNode(o,s,t);this._parents.set(l,u);const g=u?this._getExpansionKey(u):null,C=this._ariaSets.get(g)??[];C.splice(s,0,o),this._ariaSets.set(g,C)}}}_forEachExpansionKey(t){const n=[],s=[];this._nodes.value.forEach(o=>{n.push(this._getExpansionKey(o.data)),s.push(this._getDescendants(o.data))}),s.length>0?(0,m.z)(s).pipe((0,J.s)(1),(0,E.Q)(this._onDestroy)).subscribe(o=>{o.forEach(l=>l.forEach(u=>n.push(this._getExpansionKey(u)))),t(n)}):t(n)}_clearPreviousCache(){this._parents.clear(),this._levels.clear(),this._ariaSets.clear()}static \u0275fac=function(n){return new(n||i)};
1static \u0275cmp=e.VBU({type:i,selectors:[["cdk-tree"]],contentQueries:function(n,s,o){if(1&n&&e.wni(o,se,5),2&n){let l;e.mGM(l=e.lsd())&&(s._nodeDefs=l)}},viewQuery:function(n,s){if(1&n&&e.GBs(ne,7),2&n){let o;e.mGM(o=e.lsd())&&(s._nodeOutlet=o.first)}},hostAttrs:["role","tree",1,"cdk-tree"],hostBindings:function(n,s){1&n&&e.bIt("keydown",function(l){return s._sendKeydownToKeyManager(l)})},inputs:{dataSource:"dataSource",treeControl:"treeControl",levelAccessor:"levelAccessor",childrenAccessor:"childrenAccessor",trackBy:"trackBy",expansionKey:"expansionKey"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(n,s){1&n&&e.eu8(0,0)},dependencies:[ne],encapsulation:2})}return i})(),K=(()=>{class i{_elementRef=(0,h.WQX)(e.aKT);_tree=(0,h.WQX)(Z);_tabindex=-1;_type="flat";get role(){return"treeitem"}set role(t){}get isExpandable(){return this._isExpandable()}set isExpandable(t){this._inputIsExpandable=t,(!this.data||this._isExpandable)&&this._inputIsExpandable&&(this._inputIsExpanded?this.expand():!1===this._inputIsExpanded&&this.collapse())}get isExpanded(){return this._tree.isExpanded(this._data)}set isExpanded(t){this._inputIsExpanded=t,t?this.expand():this.collapse()}isDisabled;typeaheadLabel;getLabel(){return this.typeaheadLabel||this._elementRef.nativeElement.textContent?.trim()||""}activation=new e.bkB;expandedChange=new e.bkB;static mostRecentTreeNode=null;_destroyed=new x.B;_dataChanges=new x.B;_inputIsExpandable=!1;_inputIsExpanded=void 0;_shouldFocus=!0;_parentNodeAriaLevel;get data(){return this._data}set data(t){t!==this._data&&(this._data=t,this._dataChanges.next())}_data;get isLeafNode(){return void 0!==this._tree.treeControl?.isExpandable&&!this._tree.treeControl.isExpandable(this._data)||void 0===this._tree.treeControl?.isExpandable&&0===this._tree.treeControl?.getDescendants(this._data).length}get level(){return this._tree._getLevel(this._data)??this._parentNodeAriaLevel}_isExpandable(){return this._tree.treeControl?!this.isLeafNode:this._inputIsExpandable}_getAriaExpanded(){return this._isExpandable()?String(this.isExpanded):null}_getSetSize(){return this._tree._getSetSize(this._data)}_getPositionInSet(){return this._tree._getPositionInSet(this._data)}_changeDetectorRef=(0,h.WQX)(A.gRc);constructor(){i.mostRecentTreeNode=this}ngOnInit(){this._parentNodeAriaLevel=function it(i){let a=i.parentElement;for(;a&&!st(a);)a=a.parentElement;return a?a.classList.contains("cdk-nested-tree-node")?(0,A.Udg)(a.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._tree._getExpansionModel().changed.pipe((0,c.T)(()=>this.isExpanded),(0,I.F)(),(0,E.Q)(this._destroyed)).pipe((0,E.Q)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._tree._setNodeTypeIfUnset(this._type),this._tree._registerNode(this)}ngOnDestroy(){i.mostRecentTreeNode===this&&(i.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}getParent(){return this._tree._getNodeParent(this)??null}getChildren(){return this._tree._getNodeChildren(this)}focus(){this._tabindex=0,this._shouldFocus&&this._elementRef.nativeElement.focus(),this._changeDetectorRef.markForCheck()}unfocus(){this._tabindex=-1,this._changeDetectorRef.markForCheck()}activate(){this.isDisabled||this.activation.next(this._data)}collapse(){this.isExpandable&&this._tree.collapse(this._data)}expand(){this.isExpandable&&this._tree.expand(this._data)}makeFocusable(){this._tabindex=0,this._changeDetectorRef.markForCheck()}_focusItem(){this.isDisabled||this._tree._keyManager.focusItem(this)}_setActiveItem(){this.isDisabled||(this._shouldFocus=!1,this._tree._keyManager.focusItem(this),this._shouldFocus=!0)}_emitExpansionState(t){this.expandedChange.emit(t)}static \u0275fac=function(n){return new(n||i)};static \u0275dir=e.FsC({type:i,selectors:[["cdk-tree-node"]],hostAttrs:["role","treeitem",1,"cdk-tree-node"],hostVars:5,hostBindings:function(n,s){1&n&&e.bIt("click",function(){return s._setActiveItem()})("focus",function(){return s._focusItem()}),2&n&&(e.Avn("tabIndex",s._tabindex),e.BMQ("aria-expanded",s._getAriaExpanded())("aria-level",s.level+1)("aria-posinset",s._getPositionInSet())("aria-setsize",s._getSetSize()))},inputs:{role:"role",isExpandable:[2,"isExpandable","isExpandable",A.L39],isExpanded:"isExpanded",isDisabled:[2,"isDisabled","isDisabled",A.L39],typeaheadLabel:[0,"cdkTreeNodeTypeaheadLabel","typeaheadLabel"]},outputs:{activation:"activation",expandedChange:"expandedChange"},exportAs:["cdkTreeNode"]})}return i})();function st(i){const a=i.classList;return!(!a?.contains("cdk-nested-tree-node")&&!a?.contains("cdk-tree"))}const at=/([A-Za-z%]+)$/;let me=(()=>{class i{_treeNode=(0,h.WQX)(K);_tree=(0,h.WQX)(Z);_element=(0,h.WQX)(e.aKT);_dir=(0,h.WQX)(xe.dS,{optional:!0});_currentPadding;_destroyed=new x.B;indentUnits="px";get level(){return this._level}set level(t){this._setLevelInput(t)}_level;get indent(){return this._indent}set indent(t){this._setIndentInput(t)}_indent=40;constructor(){this._setPadding(),this._dir?.change.pipe((0,E.Q)(this._destroyed)).subscribe(()=>this._setPadding(!0)),this._treeNode._dataChanges.subscribe(()=>this._setPadding())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const t=(this._treeNode.data&&this._tree._getLevel(this._treeNode.data))??null,
1n=null==this._level?t:this._level;return"number"==typeof n?`${n*this._indent}${this.indentUnits}`:null}_setPadding(t=!1){const n=this._paddingIndent();if(n!==this._currentPadding||t){const s=this._element.nativeElement,o=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",l="paddingLeft"===o?"paddingRight":"paddingLeft";s.style[o]=n||"",s.style[l]="",this._currentPadding=n}}_setLevelInput(t){this._level=isNaN(t)?null:t,this._setPadding()}_setIndentInput(t){let n=t,s="px";if("string"==typeof t){const o=t.split(at);n=o[0],s=o[1]||s}this.indentUnits=s,this._indent=(0,A.Udg)(n),this._setPadding()}static \u0275fac=function(n){return new(n||i)};static \u0275dir=e.FsC({type:i,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:[2,"cdkTreeNodePadding","level",A.Udg],indent:[0,"cdkTreeNodePaddingIndent","indent"]}})}return i})(),ve=(()=>{class i{_tree=(0,h.WQX)(Z);_treeNode=(0,h.WQX)(K);recursive=!1;constructor(){}_toggle(){this.recursive?this._tree.toggleDescendants(this._treeNode.data):this._tree.toggle(this._treeNode.data),this._tree._keyManager.focusItem(this._treeNode)}static \u0275fac=function(n){return new(n||i)};static \u0275dir=e.FsC({type:i,selectors:[["","cdkTreeNodeToggle",""]],hostAttrs:["tabindex","-1"],hostBindings:function(n,s){1&n&&e.bIt("click",function(l){return s._toggle(),l.stopPropagation()})("keydown.Enter",function(l){return s._toggle(),l.preventDefault()})("keydown.Space",function(l){return s._toggle(),l.preventDefault()})},inputs:{recursive:[2,"cdkTreeNodeToggleRecursive","recursive",A.L39]}})}return i})(),rt=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=e.$C({type:i});static \u0275inj=h.G2t({})}return i})();var De=r(22466);let Ie=(()=>{class i extends K{get tabIndexInputBinding(){return this._tabIndexInputBinding}set tabIndexInputBinding(t){this._tabIndexInputBinding=t}_tabIndexInputBinding;defaultTabIndex=0;_getTabindexAttribute(){return function ot(i){return!!i._isNoopTreeKeyManager}(this._tree._keyManager)?this.tabIndexInputBinding:this._tabindex}get disabled(){return this.isDisabled}set disabled(t){this.isDisabled=t}constructor(){super();const t=(0,h.WQX)(new A.ES_("tabindex"),{optional:!0});this.tabIndexInputBinding=Number(t)||this.defaultTabIndex}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}static \u0275fac=function(n){return new(n||i)};static \u0275dir=e.FsC({type:i,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],hostVars:5,hostBindings:function(n,s){1&n&&e.bIt("click",function(){return s._focusItem()}),2&n&&(e.Avn("tabIndex",s._getTabindexAttribute()),e.BMQ("aria-expanded",s._getAriaExpanded())("aria-level",s.level+1)("aria-posinset",s._getPositionInSet())("aria-setsize",s._getSetSize()))},inputs:{tabIndexInputBinding:[2,"tabIndex","tabIndexInputBinding",t=>null==t?0:(0,A.Udg)(t)],disabled:[2,"disabled","disabled",A.L39]},outputs:{activation:"activation",expandedChange:"expandedChange"},exportAs:["matTreeNode"],features:[e.Jv_([{provide:K,useExisting:i}]),e.Vt3]})}return i})(),Me=(()=>{class i extends se{data;static \u0275fac=(()=>{let t;return function(s){return(t||(t=e.xGo(i)))(s||i)}})();static \u0275dir=e.FsC({type:i,selectors:[["","matTreeNodeDef",""]],inputs:{when:[0,"matTreeNodeDefWhen","when"],data:[0,"matTreeNode","data"]},features:[e.Jv_([{provide:se,useExisting:i}]),e.Vt3]})}return i})(),Oe=(()=>{class i extends me{get level(){return this._level}set level(t){this._setLevelInput(t)}get indent(){return this._indent}set indent(t){this._setIndentInput(t)}static \u0275fac=(()=>{let t;return function(s){return(t||(t=e.xGo(i)))(s||i)}})();static \u0275dir=e.FsC({type:i,selectors:[["","matTreeNodePadding",""]],inputs:{level:[2,"matTreeNodePadding","level",A.Udg],indent:[0,"matTreeNodePaddingIndent","indent"]},features:[e.Jv_([{provide:me,useExisting:i}]),e.Vt3]})}return i})(),ye=(()=>{class i{viewContainer=(0,h.WQX)(e.c1b);_node=(0,h.WQX)(ie,{optional:!0});static \u0275fac=function(n){return new(n||i)};static \u0275dir=e.FsC({type:i,selectors:[["","matTreeNodeOutlet",""]],features:[e.Jv_([{provide:ne,useExisting:i}])]})}return i})(),Re=(()=>{class i extends Z{_nodeOutlet=void 0;static \u0275fac=(()=>{let t;return function(s){return(t||(t=e.xGo(i)))(s||i)}})();static \u0275cmp=e.VBU({type:i,selectors:[["mat-tree"]],viewQuery:function(n,s){if(1&n&&e.GBs(ye,7),2&n){let o;e.mGM(o=e.lsd())&&(s._nodeOutlet=o.first)}},hostAttrs:[1,"mat-tree"],exportAs:["matTree"],features:[e.Jv_([{provide:Z,useExisting:i}]),e.Vt3],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(n,s){1&n&&e.eu8(0,0)},dependencies:[ye],styles:[".mat-tree{display:block;background-color:var(--mat-tree-container-background-color, var(--mat-sys-surface))}.mat-tree-node,.mat-nested-tree-node{color:var(--mat-tree-node-text-color, var(--mat-sys-on-surface));font-family:var(--mat-tree-node-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-tree-node-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-tree-node-text-weight, var(--mat-sys-body-large-weight))}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word;min-height:var(--mat-tree-node-min-height, 48px)}.mat-nested-tree-node{border-bottom-width:0}\n"],encapsulation:2})}return i})(),Ae=(()=>{class i extends ve{static \u0275fac=(()=>{let t;return function(s){return(t||(t=e.xGo(i)))(s||i)}})();static \u0275dir=e.FsC({type:i,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:[0,"matTreeNodeToggleRecursive","recursive"]},features:[e.Jv_([{provide:ve,useExisting:i}]),e.Vt3]})}return i})(),lt=(()=>
1{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=e.$C({type:i});static \u0275inj=h.G2t({imports:[rt,De.y,De.y]})}return i})();class ct{transformFunction;getLevel;isExpandable;getChildren;constructor(a,t,n,s){this.transformFunction=a,this.getLevel=t,this.isExpandable=n,this.getChildren=s}_flattenNode(a,t,n,s){const o=this.transformFunction(a,t);if(n.push(o),this.isExpandable(o)){const l=this.getChildren(a);l&&(Array.isArray(l)?this._flattenChildren(l,t,n,s):l.pipe((0,J.s)(1)).subscribe(u=>{this._flattenChildren(u,t,n,s)}))}return n}_flattenChildren(a,t,n,s){a.forEach((o,l)=>{let u=s.slice();u.push(l!=a.length-1),this._flattenNode(o,t+1,n,u)})}flattenNodes(a){let t=[];return a.forEach(n=>this._flattenNode(n,0,t,[])),t}expandFlattenedNodes(a,t){let n=[],s=[];return s[0]=!0,a.forEach(o=>{let l=!0;for(let u=0;u<=this.getLevel(o);u++)l=l&&s[u];l&&n.push(o),this.isExpandable(o)&&(s[this.getLevel(o)+1]=t.isExpanded(o))}),n}}class ut extends Te.q{_treeControl;_treeFlattener;_flattenedData=new p.t([]);_expandedData=new p.t([]);get data(){return this._data.value}set data(a){this._data.next(a),this._flattenedData.next(this._treeFlattener.flattenNodes(this.data)),this._treeControl.dataNodes=this._flattenedData.value}_data=new p.t([]);constructor(a,t,n){super(),this._treeControl=a,this._treeFlattener=t,n&&(this.data=n)}connect(a){return(0,D.h)(a.viewChange,this._treeControl.expansionModel.changed,this._flattenedData).pipe((0,c.T)(()=>(this._expandedData.next(this._treeFlattener.expandFlattenedNodes(this._flattenedData.value,this._treeControl)),this._expandedData.value)))}disconnect(){}}var ht=r(88834);let pt=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=e.$C({type:i})}static{this.\u0275inj=h.G2t({imports:[V.MD,v.YN,d.h,lt,ht.Hl,F.g7]})}}return i})();var _t=r(66185),ft=r(8699),gt=r(69753),mt=r(95816),vt=r(19347),yt=r(72510),Ct=r(59575),Et=r(67817),Y=r(63693),k=r(80943),bt=r(84682),ae=r(34415),Ft=r(49198),xt=r(91633);class Tt extends Ft.f{constructor(a){super(a),this.controlId=xt.x.TypeaheadList,null!=a?.typeahead&&(this.typeahead=a?.typeahead)}}var St=r(76750),Ne=r(23911),Ge=r(67575),qe=r(41068),Pt=r(41645),Dt=r(84743);class Be{constructor(a){a&&(this.campaignPosSid=a.campaignPosSid)}getJson(){let a={};return this.campaignPosSid&&(a.campaignPosSid=this.campaignPosSid),a}}class It{constructor(a){a&&(Array.isArray(a.identifiers)&&(this.identifiers=a.identifiers.map(t=>new Be({campaignPosSid:t}))),this.campaignSids=a.campaignSids)}set campaignPosSids(a){this.identifiers=a?a.map(t=>new Be({campaignPosSid:t})):[]}get campaignPosSids(){return this.identifiers?this.identifiers.map(a=>a.campaignPosSid):[]}getJson(){let a={};if(this.identifiers){a.identifiers=[];for(let t of this.identifiers)a.identifiers.push(t.getJson())}return a.campaignSids=this.campaignSids,a}}class je{constructor(a){a&&(this.campaignSid=a.campaignSid)}getJson(){let a={};return this.campaignSid&&(a.campaignSid=this.campaignSid),a}}class Mt{constructor(a){a&&(Array.isArray(a.identifiers)&&(this.identifiers=a.identifiers.map(t=>new je(t))),a.loadChildCampaigns&&(this.loadChildCampaigns=a.loadChildCampaigns))}set campaignSids(a){this.identifiers=a?a.map(t=>new je({campaignSid:t})):[]}get campaignSids(){return this.identifiers?this.identifiers.map(a=>a.campaignSid):[]}getJson(){let a={};if(this.identifiers){a.identifiers=[];for(let t of this.identifiers)a.identifiers.push(t.getJson())}return a.loadChildCampaigns=this.loadChildCampaigns,a}}var Ot=r(43487),we=r(50472),Rt=r(82344);class Ue{constructor(a){a&&(this.enquiryChildSids=a.enquiryChildSids,this.enquiryParentSids=a.enquiryParentSids,this.loadRecursive=a.loadRecursive)}getJson(){let a={};return this.enquiryChildSids&&(a.enquiryChildSids=this.enquiryChildSids),this.enquiryParentSids&&(a.enquiryParentSids=this.enquiryParentSids),this.loadRecursive&&(a.loadRecursive=this.loadRecursive),a}}var At=r(35249),Nt=r(31333),q=r(56174),Gt=r(43392),Le=r(48081),re=r(3985),qt=r(2309),Ve=r(33985),oe=r(54730),$e=r(89613),de=r(13816),Xe=r(35959),Ke=r(71159),$=r(19793),Bt=r(30288),jt=r(42988),wt=r(97636),Ut=r(93685),Lt=r(94212),Vt=r(14853),$t=r(86771),Xt=r(16935),ke=r(23928),le=r(17639),ee=r(13713);class H extends le.T{static{this.propBuilders=[new ee.No("sid",!0),new ee.lC("name"),new ee.lC("description"),new ee.uM("campaignUsageAllow")]}constructor(a,t=null){super(H.propBuilders,a,t)}new(a,t=null){return new H(a,t)}static empty(){return new H(void 0)}static convert(a){return a?new H(a):null}get sid(){return this.data.sid.value}set sid(a){this.data.sid.value=a}get o_sid(){return this.data.sid.o_value}get name(){return this.data.name.value}set name(a){this.data.name.value=a}get o_name(){return this.data.name.o_value}get description(){return this.data.description.value}set description(a){this.data.description.value=a}get o_description(){return this.data.description.o_value}get campaignUsageAllow(){return this.data.campaignUsageAllow.value}set campaignUsageAllow(a){this.data.campaignUsageAllow.value=a}get o_campaignUsageAllow(){return this.data.campaignUsageAllow.o_value}static of(a){let t=le.T.generateJsonFromData(a);return new H(t,!0)}}class ce{get sid(){return this._campaignTypeCore.sid}get name(){return this._campaignTypeCore.name}set name(a){this._campaignTypeCore.name=a}get campaignUsageAllow(){return this._campaignTypeCore.campaignUsageAllow}set campaignUsageAllow(a){this._campaignTypeCore.campaignUsageAllow=a}
1static convert(a){return a?ce.getFromCoreObj(H.convert(a.campaignTypeCore)):null}static getFromCoreObj(a){let t=new ce;return t._campaignTypeCore=a,t}getJsonObject(){let a={};return this._campaignTypeCore&&(a.campaignCore=this._campaignTypeCore.getJsonObject()),a}}class Qe{constructor(a){a&&(this.campaignTypeSid=a.campaignTypeSid)}getJson(){let a={};return this.campaignTypeSid&&(a.campaignTypeSid=this.campaignTypeSid),a}}class Kt{constructor(a){a&&Array.isArray(a.identifiers)&&(this.identifiers=a.identifiers.map(t=>new Qe({campaignTypeSid:t})))}set campaignTypeSids(a){this.identifiers=a?a.map(t=>new Qe({campaignTypeSid:t})):[]}get campaignTypeSids(){return this.identifiers?this.identifiers.map(a=>a.campaignTypeSid):[]}getJson(){let a={};if(this.identifiers){a.identifiers=[];for(let t of this.identifiers)a.identifiers.push(t.getJson())}return a}}var kt=r(30199),Qt=r(31725),ue=r(99437);class z extends le.T{static{this.propBuilders=[new ee.No("sid",!0),new ee.lC("name")]}constructor(a,t=null){super(z.propBuilders,a,t)}new(a,t=null){return new z(a,t)}static empty(){return new z(void 0)}static convert(a){return a?new z(a):null}get sid(){return this.data.sid.value}set sid(a){this.data.sid.value=a}get o_sid(){return this.data.sid.o_value}get name(){return this.data.name.value}set name(a){this.data.name.value=a}get o_name(){return this.data.name.o_value}static of(a){let t=le.T.generateJsonFromData(a);return new z(t,!0)}}var We=r(39337),Wt=r(39228),Ht=r(35890);let Jt=(()=>{class i{constructor(t){this.dataService=t,this.homeUrl="/"}getCampaigns(t){return t?this.dataService.post("campaign/getcampaigns",JSON.stringify(t.getJson()),void 0,this.homeUrl).pipe((0,c.T)(n=>{n=n.json();let s=[];return n.campaigns&&n.campaigns.forEach(o=>{let l=We.m.convert(o);l=this.getCampaignInclChilds(l,o),s.push(l)}),s}),(0,ue.W)(this.dataService.notifyUsererror.bind(this.dataService))):(0,_.of)(void 0)}getCampaignUsages(t){let n={};return t&&(n.enquirySid=t),this.dataService.post("campaign/getcampaignusages",JSON.stringify(n),void 0,this.homeUrl).pipe((0,c.T)(function s(o){o=o.json();let l=[];return o.campaignUsages&&o.campaignUsages.forEach(u=>l.push(Wt.D.convert(u))),l}.bind(this)),(0,ue.W)(this.dataService.notifyUsererror.bind(this.dataService)))}getCampaignTypes(t){return t?this.dataService.post("campaign/getcampaigntypes",JSON.stringify(t.getJson()),void 0,this.homeUrl).pipe((0,c.T)(n=>{n=n.json();let s=[];return n.campaignTypes&&n.campaignTypes.forEach(o=>{let l=H.convert(o);s.push(l)}),s}),(0,ue.W)(this.dataService.notifyUsererror.bind(this.dataService))):(0,_.of)(void 0)}getCampaignInclChilds(t,n){return n.childCampaigns&&n.childCampaigns.forEach(s=>{let o=We.m.convert(s);s.childCampaigns&&(o=this.getCampaignInclChilds(o,s)),t.childCampaigns.push(o)}),t}getCampaignPos(t){return t?this.dataService.post("campaign/getcampaignpos",JSON.stringify(t.getJson()),void 0,this.homeUrl).pipe((0,c.T)(n=>{n=n.json();let s=[];return n.campaignPos&&n.campaignPos.forEach(o=>{let l=z.convert(o);s.push(l)}),s}),(0,ue.W)(this.dataService.notifyUsererror.bind(this.dataService))):(0,_.of)(void 0)}static{this.\u0275fac=function(n){return new(n||i)(h.KVO(Ht.u))}}static{this.\u0275prov=h.jDH({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),He=(()=>{class i extends Qt.N{constructor(t,n){super(t),this.s_data=n}getCampaigns(t){return this.s_data.getCampaigns(t)}getCampaignTypes(t){return this.s_data.getCampaignTypes(t)}getCampaignUsages(t){return this.s_data.getCampaignUsages(t)}getCampaignPos(t){return this.s_data.getCampaignPos(t)}static{this.\u0275fac=function(n){return new(n||i)(h.KVO(h.zZn),h.KVO(Jt))}}static{this.\u0275prov=h.jDH({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var Je=r(14622);let Yt=(()=>{class i{constructor(t,n){this.s_campaignCore=t,this.s_enquiryCore=n,this.initCampaignsWithCampaignTypes=this._initCampaignUsagesWithCampaignTypes.bind(this)}getCampaignWithCampaignTypes(t){return ke.B.combineInits((0,_.of)(t),[this.initCampaignsWithCampaignTypes])}getCampaigns(t){return t?this.s_campaignCore.getCampaigns(t).pipe((0,c.T)(n=>n?n.map(s=>
1kt.H.getFromCoreObj(s)):[])):(0,_.of)(null)}getCampaignTypes(t){return t?this.s_campaignCore.getCampaignTypes(t).pipe((0,c.T)(n=>n?n.map(s=>ce.getFromCoreObj(s)):[])):(0,_.of)(null)}_initCampaignUsagesWithCampaignTypes(t,n){return ke.B.initTWithU(t,n,s=>s.campaignTypeSid,s=>s.sid,s=>this.getCampaignTypes(new Kt({identifiers:s})),(s,o)=>{s.campaignType=o})}static{this.\u0275fac=function(n){return new(n||i)(h.KVO(He),h.KVO(Je.O))}}static{this.\u0275prov=h.jDH({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var zt=r(26319),Zt=r(23018),en=r(30641),tn=r(19209),nn=r(32375),sn=r(58297),an=r(31103),rn=r(89405),on=r(70143),dn=r(17931),ln=r(25720),cn=r(54776),un=r(37862),hn=r(24238),pn=r(93102),_n=r(74702);let fn=(()=>{class i{constructor(){this.enqStateColorConfig={[q.u.ENQ_STATE_DECLINED_SID]:$.i.Rose,[q.u.ENQ_STATE_REJECTED_SID]:$.i.Rose,[q.u.ENQ_STATE_BOOKING_BATCH_NOT_COMMITTED]:$.i.Orange,[q.u.ENQ_STATE_ASSETOBJ_ELIMINATED]:$.i.Orange,[q.u.ENQ_STATE_ASSETOBJ_DEPRECIATED]:$.i.Orange,[q.u.ENQ_STATE_ASSETOBJ_CANCELED]:$.i.Orange,[q.u.ENQ_STATE_PAYMENTRUN_FINISHED]:$.i.Moss,[q.u.ENQ_STATE_FINISHED]:$.i.Moss,[q.u.ENQ_STATE_ASSETOBJ_ACTIVE]:$.i.Moss}}getBadgeColorFromEnqState(t){return this.enqStateColorConfig[t.sid]??$.i.GrayModern}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275prov=h.jDH({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var gn=r(56904),mn=r(51701),vn=r(42451),yn=r(81684),Cn=r(13337),En=r(22598);const bn=i=>({0:i});function Fn(i,a){if(1&i&&(e.j41(0,"header"),e.EFF(1),e.nI1(2,"async"),e.nI1(3,"translate"),e.k0s()),2&i){const t=e.XpG();e.R7$(),e.JRh(e.i5U(3,3,"text.registrationfor",e.eq3(6,bn,e.bMT(2,1,t.o_campaigns)[0].name)))}}function xn(i,a){if(1&i){const t=e.RV6();e.j41(0,"mat-checkbox",7),e.bIt("change",function(s){h.eBV(t);const o=e.XpG().$implicit;return h.Njj(o.campaign.changedRegistered(s.checked))}),e.k0s()}if(2&i){const t=e.XpG().$implicit;e.Y8G("checked",t.registered)}}function Tn(i,a){if(1&i&&(e.j41(0,"mat-tree-node",5),e.EFF(1,"\n    "),e.DNE(2,xn,1,1,"mat-checkbox",6),e.EFF(3),e.k0s()),2&i){const t=a.$implicit;e.R7$(2),e.Y8G("ngIf",t.registrationAllowed),e.R7$(),e.SpI("\n    ",t.name,"\n  ")}}function Sn(i,a){if(1&i){const t=e.RV6();e.j41(0,"mat-checkbox",7),e.bIt("change",function(s){h.eBV(t);const o=e.XpG().$implicit;return h.Njj(o.campaign.changedRegistered(s.checked))}),e.k0s()}if(2&i){const t=e.XpG().$implicit;e.Y8G("checked",t.registered)}}function Pn(i,a){if(1&i&&(e.j41(0,"mat-tree-node",8),e.EFF(1,"\n    "),e.j41(2,"button",9),e.EFF(3,"\n      "),e.nrm(4,"i",10),e.EFF(5,"\n    "),e.k0s(),e.EFF(6,"\n    "),e.DNE(7,Sn,1,1,"mat-checkbox",6),e.EFF(8),e.k0s()),2&i){const t=a.$implicit,n=e.XpG();e.R7$(2),e.BMQ("aria-label","Toggle "+t.item),e.R7$(2),e.Y8G("ngClass",n.treeControl.isExpanded(t)?"fa fa-angle-down":"fa fa-angle-right"),e.R7$(3),e.Y8G("ngIf",t.registrationAllowed),e.R7$(),e.SpI("\n    ",t.name,"\n  ")}}let Dn=(()=>{class i extends Ne.u{set campaigns(t){this._campaigns.next(t)}get campaigns(){return this._campaigns.getValue()}constructor(){super(),this._campaigns=new p.t(void 0),this.o_campaigns=this._campaigns.asObservable(),this._transformer=(t,n)=>({expandable:!!t.childCampaigns&&t.childCampaigns.length>0,name:t.name,registered:t.registered,campaign:t,registrationAllowed:!!t.campaignType&&t.campaignType.campaignUsageAllow,level:n}),this.treeControl=new tt(t=>t.level,t=>t.expandable),this.treeFlattener=new ct(this._transformer,t=>t.level,t=>t.expandable,t=>t.childCampaigns),this.dataSource=new ut(this.treeControl,this.treeFlattener),this.hasChild=(t,n)=>n.expandable,this.o_campaigns.subscribe(t=>{t&&(this.dataSource.data=t,this.treeControl.expandAll())})}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["fab-campaignHierarchy"]],inputs:{campaigns:"campaigns"},standalone:!1,features:[e.Vt3],decls:12,vars:6,consts:[["tree",""],[4,"ngIf"],[3,"dataSource","treeControl"],["matTreeNodeToggle","","matTreeNodePadding","",4,"matTreeNodeDef"],["matTreeNodePadding","",4,"matTreeNodeDef","matTreeNodeDefWhen"],["matTreeNodeToggle","","matTreeNodePadding",""],["class","checklist-leaf-node",3,"checked","change",4,"ngIf"],[1,"checklist-leaf-node",3,"change","checked"],["matTreeNodePadding",""],["mat-icon-button","","matTreeNodeToggle",""],[1,"curs
1or",3,"ngClass"]],template:function(n,s){if(1&n&&(e.EFF(0,"\n"),e.DNE(1,Fn,4,8,"header",1),e.nI1(2,"async"),e.EFF(3,"\n\n"),e.j41(4,"mat-tree",2,0),e.EFF(6,"\n  "),e.DNE(7,Tn,4,2,"mat-tree-node",3),e.EFF(8,"\n\n  "),e.DNE(9,Pn,9,4,"mat-tree-node",4),e.EFF(10,"\n"),e.k0s(),e.EFF(11,"\n")),2&n){let o;e.R7$(),e.Y8G("ngIf",null==(o=e.bMT(2,4,s.o_campaigns))?null:o.length),e.R7$(3),e.Y8G("dataSource",s.dataSource)("treeControl",s.treeControl),e.R7$(5),e.Y8G("matTreeNodeDefWhen",s.hasChild)}},dependencies:[V.YU,V.bT,Me,Oe,Ae,Re,Ie,En.iY,F.So,V.Jj,d.D9],encapsulation:2,changeDetection:0})}}return i})();var In=r(84620),Mn=r(79111),On=r(95604),Rn=r(72205),An=r(18545),Nn=r(54157);const Gn=["*"],Ye=i=>({enqPartJobs:i}),qn=(i,a)=>a.sid;function Bn(i,a){1&i&&e.nrm(0,"mat-progress-bar",5)}function jn(i,a){if(1&i&&(e.EFF(0,"\n            "),e.j41(1,"div",23),e.EFF(2),e.k0s(),e.EFF(3,"\n          ")),2&i){const t=a,n=e.XpG(5);e.R7$(),e.Y8G("color",n.fabUiBadgeHelperService.getBadgeColorFromEnqState(t)),e.R7$(),e.SpI("\n              ",t.name,"\n            ")}}function wn(i,a){if(1&i&&(e.j41(0,"div",21),e.EFF(1,"\n          "),e.j41(2,"span",22),e.EFF(3),e.nI1(4,"async"),e.k0s(),e.EFF(5,"\n\n          "),e.nVh(6,jn,4,2),e.nI1(7,"async"),e.k0s()),2&i){let t;const n=a.o_label,s=e.XpG(),o=e.XpG(3);e.R7$(3),e.SpI("\n            ",s.name??e.bMT(4,2,n),"\n          "),e.R7$(3),e.vxM((t=e.bMT(7,4,o.o_enqState))?6:-1,t)}}function Un(i,a){if(1&i&&(e.j41(0,"div",25),e.EFF(1,"\n            "),e.j41(2,"span",26),e.EFF(3),e.nI1(4,"async"),e.k0s(),e.EFF(5,"\n            "),e.j41(6,"span",26),e.EFF(7),e.nI1(8,"async"),e.k0s(),e.EFF(9,"\n          "),e.k0s()),2&i){const t=a.o_label,n=e.XpG();e.R7$(3),e.SpI("",e.bMT(4,2,t),":"),e.R7$(4),e.JRh(e.bMT(8,4,n.mainAddress.o_nameFull))}}function Ln(i,a){if(1&i&&(e.EFF(0,"\n          "),e.DNE(1,Un,10,6,"div",24),e.EFF(2,"\n        ")),2&i){const t=e.XpG(4);e.R7$(),e.Y8G("fabGuid",t.guid+"_header_subtitle_inspector")}}function Vn(i,a){1&i&&e.eu8(0)}function $n(i,a){if(1&i&&(e.j41(0,"div"),e.EFF(1,"\n              "),e.DNE(2,Vn,1,0,"ng-container",29),e.EFF(3,"\n            "),e.k0s()),2&i){const t=e.XpG();e.XpG(4);const n=e.sdS(8);e.R7$(2),e.Y8G("ngTemplateOutlet",n)("ngTemplateOutletContext",e.eq3(2,Ye,t))}}function Xn(i,a){if(1&i&&(e.EFF(0,"\n            "),e.DNE(1,$n,4,4,"div",28),e.EFF(2,"\n          ")),2&i){const t=e.XpG(5);e.R7$(),e.Y8G("fabGuid",t.guid+"_header_badges_enqPartJob")}}function Kn(i,a){if(1&i&&(e.j41(0,"div",27),e.EFF(1,"\n          "),e.nVh(2,Xn,3,1),e.nI1(3,"async"),e.k0s()),2&i){let t;const n=e.XpG(4);e.R7$(2),e.vxM((t=e.bMT(3,1,n.s_enqProperty.o_enqPartJobs))?2:-1,t)}}function kn(i,a){if(1&i&&(e.j41(0,"div",32),e.EFF(1,"\n              "),e.j41(2,"div",33),e.EFF(3),e.k0s(),e.EFF(4,"\n            "),e.k0s()),2&i){const t=e.XpG(3);e.R7$(3),e.SpI("\n                ",t.enquiryOrigSid,"\n              ")}}function Qn(i,a){if(1&i&&(e.EFF(0,"\n            "),e.DNE(1,kn,5,1,"div",31),e.EFF(2,"\n          ")),2&i){const t=e.XpG(5);e.R7$(),e.Y8G("fabGuid",t.guid+"_header_description_item_origSid")}}function Wn(i,a){if(1&i&&(e.j41(0,"div",32),e.EFF(1,"\n              "),e.j41(2,"div",34),e.EFF(3),e.k0s(),e.EFF(4,"\n            "),e.k0s()),2&i){const t=e.XpG();e.R7$(3),e.SpI("\n                ",t,"\n              ")}}function Hn(i,a){if(1&i&&(e.EFF(0,"\n            "),e.DNE(1,Wn,5,1,"div",31),e.EFF(2,"\n          ")),2&i){const t=e.XpG(5);e.R7$(),e.Y8G("fabGuid",t.guid+"_header_description_item_creator")}}function Jn(i,a){if(1&i&&(e.j41(0,"div",32),e.EFF(1,"\n              "),e.j41(2,"div",35),e.EFF(3),e.nI1(4,"async"),e.k0s(),e.EFF(5,"\n            "),e.k0s()),2&i){const t=e.XpG();e.R7$(3),e.SpI("\n                ",e.bMT(4,1,t.mainAddress.o_nameFull),"\n              ")}}function Yn(i,a){if(1&i&&(e.EFF(0,"\n            "),e.DNE(1,Jn,6,3,"div",31),e.EFF(2,"\n          ")),2&i){const t=e.XpG(5);e.R7$(),e.Y8G("fabGuid",t.guid+"_header_description_item_partnerCertPe")}}function zn(i,a){if(1&i&&(e.j41(0,"div",30),e.EFF(1,"\n          "),e.nVh(2,Qn,3,1),e.nVh(3,Hn,3,1),e.nI1(4,"async"),e.nVh(5,Yn,3,1),e.nI1(6,"async"),e.k0s()),2&i){let t,n;const s=e.XpG(),o=e.XpG(3);e.R7$(2),e.vxM(s.enquiryOrigSid?2:-1),e.R7$(),e.vxM((t=e.bMT(4,3,o.o_creatorName))?3:-1,t),e.R7$(2),e.vxM((n=e.bMT(6,5,o.o_partnerCertPe))?5:-1,n)}}function Zn(i,a){if(1&i&&(e.EFF(0,"\n        "),e.DNE(1,wn,8,6,"div",18),e.EFF(2,"\n\n        "),e.nV
1h(3,Ln,3,1),e.nI1(4,"async"),e.DNE(5,Kn,4,3,"div",19),e.EFF(6,"\n\n        "),e.DNE(7,zn,7,7,"div",20),e.EFF(8,"\n      ")),2&i){let t;const n=e.XpG(3);e.R7$(),e.Y8G("fabGuid",n.guid+"_header_title"),e.R7$(2),e.vxM((t=e.bMT(4,4,n.o_partnerExecPe))?3:-1,t),e.R7$(2),e.Y8G("fabGuid",`${n.guid}_header_badges`),e.R7$(2),e.Y8G("fabGuid",n.guid+"_header_description")}}function ei(i,a){if(1&i&&(e.j41(0,"div",14),e.EFF(1,"\n\n    "),e.j41(2,"div",15),e.EFF(3,"\n      "),e.nrm(4,"span",16),e.EFF(5,"\n    "),e.k0s(),e.EFF(6,"\n\n    "),e.j41(7,"div",17),e.EFF(8,"\n      "),e.nVh(9,Zn,9,6),e.nI1(10,"async"),e.k0s(),e.EFF(11,"\n  "),e.k0s()),2&i){let t;const n=e.XpG(2);e.R7$(9),e.vxM((t=e.bMT(10,1,n.o_enquiry))?9:-1,t)}}function ti(i,a){if(1&i&&(e.nrm(0,"fab-campaignHierarchy",40),e.nI1(1,"async")),2&i){let t;const n=e.XpG(3);e.Y8G("campaigns",null==(t=e.bMT(1,1,n.o_enquiry))?null:t.campaigns)}}function ni(i,a){if(1&i&&(e.nrm(0,"fab-job-help-text",41),e.nI1(1,"async")),2&i){let t;const n=e.XpG(3);e.Y8G("jobSid",null==(t=e.bMT(1,1,n.o_enqPartJob))?null:t.jobSid)}}function ii(i,a){if(1&i&&(e.j41(0,"span"),e.EFF(1),e.nI1(2,"async"),e.k0s()),2&i){const t=a.o_label;e.R7$(),e.JRh(e.bMT(2,1,t))}}function si(i,a){if(1&i&&(e.j41(0,"span"),e.EFF(1),e.nI1(2,"async"),e.k0s()),2&i){const t=a.o_label;e.R7$(),e.JRh(e.bMT(2,1,t))}}function ai(i,a){1&i&&e.eu8(0)}function ri(i,a){if(1&i&&(e.j41(0,"div",43),e.EFF(1,"\n            "),e.DNE(2,ii,3,3,"span",44),e.EFF(3,"\n            "),e.DNE(4,si,3,3,"span",44),e.EFF(5,"\n\n            "),e.DNE(6,ai,1,0,"ng-container",29),e.EFF(7,"\n          "),e.k0s()),2&i){const t=e.XpG(2);e.XpG(2);const n=e.sdS(8),s=e.XpG();e.R7$(2),e.Y8G("fabGuid",s.guid+"_selectedJobNames_labelSingular")("fabGuidIf",t.length<=1),e.R7$(2),e.Y8G("fabGuid",s.guid+"_selectedJobNames_labelPlural")("fabGuidIf",t.length>1),e.R7$(2),e.Y8G("ngTemplateOutlet",n)("ngTemplateOutletContext",e.eq3(6,Ye,t))}}function oi(i,a){if(1&i&&(e.EFF(0,"\n          "),e.DNE(1,ri,8,8,"div",42),e.nI1(2,"async"),e.EFF(3,"\n        ")),2&i){const t=e.XpG(4);e.R7$(),e.Y8G("fabGuid",t.guid+"_selectedJobNames")("fabGuidIf",!e.bMT(2,2,null==t.uiConfig.confIndex[t.guid+"_tabset_tab_data"]||null==t.uiConfig.confIndex[t.guid+"_tabset_tab_data"].visible?null:t.uiConfig.confIndex[t.guid+"_tabset_tab_data"].visible.valueAsObservable))}}function di(i,a){1&i&&(e.EFF(0,"\n        "),e.nVh(1,oi,4,4)),2&i&&(e.R7$(),e.vxM(a.length?1:-1))}function li(i,a){if(1&i&&(e.j41(0,"fab-editable-data",45),e.EFF(1,"\n      "),e.k0s()),2&i){const t=e.XpG(3);e.Y8G("uiConfigFormGroup",t.enquiryForm)("editMode",!0)("editModeChangeable",!1)}}function ci(i,a){if(1&i&&(e.j41(0,"fab-editable-data",45),e.EFF(1,"\n      "),e.k0s()),2&i){const t=e.XpG(3);e.Y8G("uiConfigFormGroup",t.enquiryDetailsForm)("editMode",!0)("editModeChangeable",!1)}}function ui(i,a){if(1&i&&(e.EFF(0,"\n    "),e.j41(1,"div",36),e.EFF(2,"\n      "),e.DNE(3,ti,2,3,"fab-campaignHierarchy",37),e.nI1(4,"async"),e.EFF(5,"\n      "),e.DNE(6,ni,2,3,"fab-job-help-text",38),e.EFF(7,"\n      "),e.nVh(8,di,2,1),e.nI1(9,"async"),e.DNE(10,li,2,3,"fab-editable-data",39),e.EFF(11,"\n      "),e.DNE(12,ci,2,3,"fab-editable-data",39),e.EFF(13,"\n    "),e.k0s(),e.EFF(14,"\n  ")),2&i){let t,n;const s=e.XpG(2);e.R7$(3),e.Y8G("ngIf",null==(t=e.bMT(4,7,s.o_enquiry))||null==t.campaigns?null:t.campaigns.length),e.R7$(3),e.Y8G("fabGuid",s.guid+"_jobHelpText"),e.R7$(2),e.vxM((n=e.bMT(9,9,s.s_enqProperty.o_enqPartJobs))?8:-1,n),e.R7$(2),e.Y8G("fabGuid",s.guid)("fabGuidIf",!s.detailsVisible),e.R7$(2),e.Y8G("fabGuid",s.guid+"_details")("fabGuidIf",s.detailsVisible)}}function hi(i,a){if(1&i&&(e.EFF(0,"\n          "),e.j41(1,"span",47),e.EFF(2),e.k0s(),e.EFF(3,"\n        ")),2&i){const t=e.XpG().$implicit,n=e.XpG(3);e.R7$(),e.Y8G("color",n.FabUiBadgeColor.Purple),e.R7$(),e.JRh(t.name??(null==t.job?null:t.job.name))}}function pi(i,a){if(1&i&&(e.EFF(0,"\n        "),e.nVh(1,hi,4,2)),2&i){const t=a.$implicit;e.R7$(),e.vxM(t.name||null!=t.job&&t.job.name?1:-1)}}function _i(i,a){if(1&i&&(e.EFF(0,"\n    "),e.j41(1,"div",46),e.EFF(2,"\n      "),e.Z7z(3,pi,2,1,null,null,qn),e.k0s(),e.EFF(5,"\n  ")),2&i){const t=a.enqPartJobs;e.R7$(3),e.Dyx(t)}}function fi(i,a){if(1&i&&(e.j41(0,"span",53),e.EFF(1),e.nI1(2,"async"),e.k0s()),2&i){const t=a.o_label;e.R7$(),e.JRh(e.bMT(2,1,t))}}function gi(i,a){if(1&i&&(e.EFF(0,"\n          "),e.DNE(1,fi,3,3,"span",52),e.EFF(2,"\n        ")),2&i){const t=e.XpG(3);e.R7$(),e.Y8G("fabGuid",`${t.guid}_tabset_tab_data`)}}function mi(i,a){1&i&&e.eu8(0)}function vi(i,a){if(1&i&&(e.EFF(0,"\n            "),e.nrm(1,"span",55),e.nI1(2,"trustHtml"),e.EFF(3,"\n          ")),2&i){const t=e.XpG().$implicit;e.R7$(),e.Y8G("innerHTML",e.bMT(2,1,t.enqProperty.question),e.npT)}}function yi(i,a){if(1&i&&(e.qex(0),e.EFF(1,"\n        "),e.j41(2,"tab"),e.EFF(3,"\n          "),e.DNE(4,vi,4,3,"ng-template",49),e.EFF(5,"\n          "),e.nrm(6,"fab-ep-simple-container-cell",54),e.EFF(7,"\n        "),e.k0s(),e.EFF(8,"\n      "),e.bVm()),2&i){const t=a.$implicit;e.R7$(6),e.Y8G("epRenderElement",t)}}function Ci(i,a){if(1&i&&(e.EFF(0,"\n    "),e.SS7(1),e.nI1(2,"async"),e.EFF(3,"\n\n    "),e.j41(4,"tabset",48),e.
1EFF(5,"\n      "),e.j41(6,"tab"),e.EFF(7,"\n        "),e.DNE(8,gi,3,1,"ng-template",49),e.EFF(9,"\n        "),e.DNE(10,mi,1,0,"ng-container",50),e.EFF(11,"\n      "),e.k0s(),e.EFF(12,"\n      "),e.DNE(13,yi,9,1,"ng-container",51),e.EFF(14,"\n    "),e.k0s(),e.EFF(15,"\n  ")),2&i){e.XpG();const t=e.sdS(5),n=e.XpG(),s=e.bMT(2,3,n.s_enqProperty.getVisibleEpRenderElements(n.epQuestionnaire));e.R7$(4),e.Y8G("ngClass",(null==s?null:s.length)>1?"ep-tabset-multiple-tabs":""),e.R7$(6),e.Y8G("ngTemplateOutlet",t),e.R7$(3),e.Y8G("ngForOf",s)}}function Ei(i,a){1&i&&e.eu8(0)}function bi(i,a){if(1&i&&(e.EFF(0,"\n    "),e.DNE(1,Ei,1,0,"ng-container",50),e.EFF(2,"\n    "),e.nrm(3,"fab-enq-prop-questionnaires",56),e.EFF(4,"\n  ")),2&i){e.XpG();const t=e.sdS(5),n=e.XpG();e.R7$(),e.Y8G("ngTemplateOutlet",t),e.R7$(2),e.Y8G("guid",n.guid+"_questionnaires")("epQuestionnaire",n.epQuestionnaire)}}function Fi(i,a){if(1&i){const t=e.RV6();e.j41(0,"button",57),e.bIt("click",function(){h.eBV(t);const s=e.XpG(2);return h.Njj(s.validate())}),e.EFF(1),e.nI1(2,"async"),e.k0s()}if(2&i){const t=e.XpG(2);e.Y8G("size","sm")("appearance","secondary"),e.R7$(),e.SpI("\n      ",e.bMT(2,3,t.uiConfig.confIndex[t.guid+"_validate"].label.valueAsObservable),"\n    ")}}function xi(i,a){if(1&i){const t=e.RV6();e.j41(0,"button",57),e.bIt("click",function(){h.eBV(t);const s=e.XpG(2);return h.Njj(s.save())}),e.EFF(1),e.nI1(2,"async"),e.k0s()}if(2&i){const t=e.XpG(2);e.Y8G("size","sm")("appearance","secondary"),e.R7$(),e.SpI("\n      ",e.bMT(2,3,t.uiConfig.confIndex[t.guid+"_save"].label.valueAsObservable),"\n    ")}}function Ti(i,a){if(1&i){const t=e.RV6();e.j41(0,"button",58),e.bIt("click",function(){h.eBV(t);const s=e.XpG(2);return h.Njj(s.navigateToJSF(s.enquiry.sid))}),e.EFF(1,"\n      "),e.nrm(2,"span",59),e.EFF(3,"\n    "),e.k0s()}if(2&i){const t=e.XpG(2);e.Y8G("disabled",!(t.enquiry&&t.enquiry.sid))}}function Si(i,a){1&i&&(e.nrm(0,"i"),e.nI1(1,"async")),2&i&&e.HbH(e.bMT(1,2,a.o_defaultValue))}function Pi(i,a){if(1&i){const t=e.RV6();e.j41(0,"button",58),e.nI1(1,"async"),e.bIt("click",function(){h.eBV(t);const s=e.XpG(3);return h.Njj(s.navigateToJSFAsync(s.o_lastEnquiryFlowChildSid))}),e.EFF(2,"\n        "),e.DNE(3,Si,2,4,"i",61),e.EFF(4),e.nI1(5,"async"),e.k0s()}if(2&i){const t=a.o_label,n=e.XpG(3);e.Y8G("disabled",!e.bMT(1,3,n.o_lastEnquiryFlowChildSid)),e.R7$(3),e.Y8G("fabGuid",n.guid+"_lastEnquiryFlowChildJsfNavigationLink_iconClass"),e.R7$(),e.SpI(" ",e.bMT(5,5,t),"\n      ")}}function Di(i,a){if(1&i&&(e.qex(0),e.EFF(1,"\n      "),e.DNE(2,Pi,6,7,"button",60),e.nI1(3,"async"),e.EFF(4,"\n    "),e.bVm()),2&i){const t=e.XpG(2);e.R7$(2),e.Y8G("fabGuid",t.guid+"_lastEnquiryFlowChildJsfNavigationLink")("fabGuidIf",!!e.bMT(3,2,t.o_lastEnquiryFlowChildSid))}}function Ii(i,a){if(1&i){const t=e.RV6();e.j41(0,"button",57),e.bIt("click",function(){h.eBV(t);const s=e.XpG(2);return h.Njj(s.navigateBack())}),e.EFF(1),e.nI1(2,"async"),e.k0s()}if(2&i){const t=a.o_label;e.Y8G("size","sm")("appearance","secondary"),e.R7$(),e.JRh(e.bMT(2,3,t))}}function Mi(i,a){if(1&i){const t=e.RV6();e.j41(0,"activity-flow-pos-buttons",62),e.nI1(1,"async"),e.bIt("executeActivityFlowPos",function(s){h.eBV(t);const o=e.XpG(2);return h.Njj(o.save(s.sid))}),e.k0s()}if(2&i){let t;const n=e.XpG(2);e.Y8G("guid",`${n.guid}_activityFlowButtons`)("activityFlowPos",null==(t=e.bMT(1,3,n.o_enquiry))?null:t.activityFlowPos)("sessionInfo",n.sessionInfo)}}function Oi(i,a){if(1&i&&(e.j41(0,"div",63),e.EFF(1,"\n    "),e.EFF(2,"\n    "),e.j41(3,"div",64),e.EFF(4,"\n      "),e.nrm(5,"iframe",65,2),e.nI1(7,"async"),e.nI1(8,"safe"),e.EFF(9,"\n    "),e.k0s(),e.EFF(10,"\n  "),e.k0s()),2&i){let t;const n=e.XpG(2);e.R7$(5),e.Y8G("src",e.bMT(8,4,null==(t=e.bMT(7,2,n.o_enquiry))||null==t.additionalSaveData?null:t.additionalSaveData.redirectURL),e.f$h),e.BMQ("id","paymentFrameId")}}function Ri(i,a){if(1&i&&(e.qex(0),e.EFF(1,"\n\n  "),e.DNE(2,ei,12,3,"div",6),e.EFF(3,"\n\n\n  "),e.DNE(4,ui,15,11,"ng-template",null,0,e.C5r),e.EFF(6,"\n  "),e.DNE(7,_i,6,0,"ng-template",null,1,e.C5r),e.EFF(9,"\n  "),e.nVh(10,Ci,16,5),e.nI1(11,"async"),e.vZN(12,bi,5,3),e.j41(13,"div",7),e.nI1(14,"async"),e.EFF(15,"\n    "),e.SdG(16),e.EFF(17,"\n    "),e.DNE(18,Fi,3,5,"button",8),e.nI1(19,"async"),e.EFF(20,"\n    "),e.DNE(21,xi,3,5,"button",9),e.nI1(22,"async"),e.nI1(23,"async"),e.EFF(24,"\n\n    "),e.DNE(25,Ti,4,1,"button",10),e.EFF(26,"\n    "),e.DNE(27,Di,5,4,"ng-container",4),e.nI1(28,"async"),e.EFF(29,"\n    "),e.DNE(30,Ii,3,5,"button",11),e.EFF(31,"\n    "),e.DNE(32,Mi,2,5,"activity-flow-pos-buttons",12),e.nI1(33,"async"),e.EFF(34,"\n  "),e.k0s(),e.EFF(35,"\n\n\n  "),e.DNE(36,Oi,11,6,"div",13),e.nI1(37,"async"),e.EFF(38,"\n"),e.bVm()),2&i){let t;const n=e.XpG();e.R7$(2),e.Y8G("fabGuid",`${n.guid}_header`),e.R7$(8),e.vxM(e.bMT(11,12,n.uiConfig.confIndex[`${n.guid}_tabset_tab_data`].visible.valueAsObservable)?10:12),e.R7$(3),e.Y8G("isRequesting",e.bMT(14,14,n.isSaveing)),e.R7$(5),e.Y8G("fabGuid",n.guid+"_validate")("fabGuidIf",e.bMT(19,16,n.o_saveAllowed)),e.R7$(3),e.Y8G("ngIf",e.bMT(22,18,n.uiConfig.confIndex[n.guid+"_save"].visible.valueAsObservable)&&e.bMT(23,20,n.o_saveAllowed)),e.R7$(4),e.Y8G("fabGuid",n.guid+"_jsfNavigationLink"),e.R7$(2),e.Y8G("ngIf",e.bMT(28,22,n.uiConfig.confIndex[n.guid+"_lastEnquiryFlowChildJsfNavigationLink"].visible.valueAsObservable)),e.R7$(3),e.Y8G("fabGuid",n.guid+"_cancel"),e.R7$(2),e.Y8G("fabGuid",n.guid+"_activityFlowButtons")("fabGuidIf",e.bMT(33,24,n.o_saveAllowed)),e.R7$(4),e.Y8G("ngIf",null==(t=e.bMT(37,26,n.o_enquiry))||null==t.additionalSaveData?null:t.additionalSaveData.redirectURL)}}let Ni=(()=>{class i extends Ne.u{set inputPartnerSid(t){this._inputPartnerSid.next(t)}set enqPropFilterValues(t){this._enqPropFilterValues.next(t)}constructor(t,n,s,o,l,u,g,C,N,X,he,qi,Bi,ji,wi,Ui,Li,Vi,$i,Xi,Ki,ki,Qi,Wi,Hi,Ji,Yi,zi,Zi,es,ts,ns,is,ss){super(),this.s_translate=t,this.s_enqProperty=n,this.cd=s,this.s_employerStore=o,this.s_webshopData=l,this.s_notification=u,this.s_enquiryData=g,this.s_partnerAddressStore=C,this.s_jsfNavigation=N,this.s_routing=X,this.s_campaign=he,this.s_campaignCore=qi,this.s_enquiryCore=Bi,this.s_attachment=ji,this.s_uiObjectHelper=wi,this.s_partnerCore=Ui,this.s_userStore=Li,this.enquiryEnv=Vi,this.uiConfig=$i,this.s_cmsInfoNotifications=Xi,this.s_cmsMenu=Ki,this.s_cmsModuleParamValStore=ki,this.s_commonEnqStateCore=Qi,this.s_commonGenericCore=Wi,this.s_userCore=Hi,this.s_signoSignViewer=Ji,this.s_addressFormat=Yi,this.s_urlParameter=zi,this.s_currentCMSMenu=Zi,this.s_epQuestionnaireInit=es,this.fabUiBadgeHelperService=ts,this.s_commonEnquiry=ns,this.s_jobCore=is,this.s_enquiryContentLoader=ss,this._inputPartnerSid=new p.t(void 0),this._enqPropFilterValues=new p.t(void 0),this.saved=new e.bkB,this._epQuestionnaire=new p.t(null),this.o_epQuestionnaire=this._epQuestionnaire.asObservable(),this._enquiry=new p.t(null),this.o_enquiry=this._enquiry.asObservable(),this._selectedPartnerSid=new p.t(void 0),this.o_selectedPartnerSid=this._selectedPartnerSid.pipe((0,I.F)()),this._selectedPartnerExecPeSid=new p.t(void 0),this.o_selectedPartnerExecPeSid=this._selectedPartnerExecPeSid.pipe((0,I.F)()),this._selectedPartnerCertPeSid=new p.t(void 0),this.o_selectedPartnerCertPeSid=this._selectedPartnerCertPeSid.pipe((0,I.F)()),this._isSaveing=new p.t(!1),this.isSaveing=this._isSaveing.asObservable(),this.o_partnerTypeahead=new p.t(""),this.o_partnerExecPeTypeahead=new p.t(""),this.o_partnerCertPeTypeahead=new p.t(""),this.o_userExecTypeahead=new p.t(""),this.o_groupExecTypeahead=new p.t(""),this.o_enquiryFlowParentTypeahead=new x.B,this.detailsVisible=!1,this.FabUiBadgeColor=$.i,this.questionnaireTabInitialized=!1,this.isLoaded=!1,this.o_enqPartJob=this.o_enquiry.pipe((0,c.T)(G=>{if(G&&G.enqPartJobs&&G.enqPartJobs.length)return G.enqPartJobs[0]})),this.o_enquiry.pipe((0,w.M)(G=>{this.s_enqProperty.enqPartJobs=G?.enqPartJobs?.length?G.enqPartJobs:[]}),(0,E.Q)(this._destroyEvent)).subscribe(),this.o_enquiryFlowParents=this._enquiry.pipe((0,c.T)(G=>G?.sid),(0,I.F)(),(0,f.n)(G=>{if(!G)return(0,_.of)([]);let te=new Ue;return te.enquiryChildSids=[G],this.s_enquiryCore.initEnquiryFlowWithParentEnquiry(this.s_enquiryCore.getEnquiryFlows(te))}),(0,S.t)(1)),this.o_lastEnquiryFlowChildSid=this._enquiry.pipe((0,c.T)(G=>G?.sid),(0,I.F)(),(0,f.n)(G=>{if(!G)return(0,_.of)(void 0);let te=new Ue;return te.enquiryParentSids=[G],te.loadRecursive=!0,this.s_enquiryCore.getStructuredEnquiryFlows(te).pipe((0,c.T)(as=>{let Ze=(0,qe.sb)(as.map(Ce=>Ce.getLastChild()?.enquiryChildSid).filter(Ce=>!!Ce));if(1==Ze?.length)return Ze[0]}))}),(0,S.t)(1))}get enquiry(){return this._enquiry.getValue()}set enquiry(t){this.enquiryEnv.enquiry=t,this._enquiry.next(t),this._selectedPartnerSid.next(t?.partnerSid),this._selectedPartnerExecPeSid.next(t?.partnerExecPeSid),this._selectedPartnerCertPeSid.next(t?.partnerCertPeSid)}formatPartner(t){return this.s_addressFormat.formatPartner(t,this.uiConfig.logicalConfIndex[this.guid+"_partnerFormatJSONObjectSid"])}initVariables(){this.o_campaignPos=this.s_uiObjectHelper.uiObjValueAsNumberArrayIfExecute(this.uiConfig.logicalConfIndex[this.guid+"_campaignSidsFor
1CampaignPos"]).pipe((0,f.n)(t=>{let n=new It;return n.campaignSids=t,this.s_campaignCore.getCampaignPos(n).pipe((0,c.T)(s=>k.Z.getSortedOptionValues(s)))}),(0,S.t)(1)),this.o_coPos=this.s_uiObjectHelper.uiObjValueAsNumberIfExecute(this.uiConfig.logicalConfIndex[this.guid+"_coPosInterface"]).pipe((0,f.n)(t=>{if(t){let n=new Gt.D(t,[]);return this.s_webshopData.getGenericData(n).pipe((0,c.T)(s=>s.map(o=>{let l=new k.Z(o.identity,o.name);return l.groupLabel=o.groupname,l})))}return(0,_.of)([])}),(0,S.t)(1)),this.o_partnerOptions=k.Z.getOptionValuesForTypeahead(this.o_partnerTypeahead,this.s_uiObjectHelper.uiObjValueAsNumberIfExecute(this.uiConfig.logicalConfIndex[this.guid+"_partner_optionsFilterXDSid"]),this.s_uiObjectHelper.uiObjValueAsNumberIfExecute(this.uiConfig.logicalConfIndex[this.guid+"_partner_maxOptions"]),this.o_enquiry.pipe((0,f.n)(t=>t.o_partnerSid)),(t,n,s)=>{let o=new re.W;return o.filterXDSid=s,o.numberOfDS=n,o.partnerOrAddressName=t,this.s_partnerCore.getPartnersWithMainAddressByPartnerRequest(o)},t=>this.s_partnerCore.getPartnersWithMainAddress([t],[]).pipe((0,c.T)(n=>n?.length?n[0]:null)),t=>this.formatPartner(t)),this.o_partnerExecPeOptions=k.Z.getOptionValuesForTypeahead(this.o_partnerExecPeTypeahead,this.s_uiObjectHelper.uiObjValueAsNumberIfExecute(this.uiConfig.logicalConfIndex[this.guid+"_partnerExecPe_optionsFilterXDSid"]),this.s_uiObjectHelper.uiObjValueAsNumberIfExecute(this.uiConfig.logicalConfIndex[this.guid+"_partnerExecPe_maxOptions"]),this.o_enquiry.pipe((0,f.n)(t=>t.o_partnerExecPeSid)),(t,n,s)=>{let o=new re.W;return o.filterXDSid=s,o.numberOfDS=n,o.partnerOrAddressName=t,this.s_partnerCore.getPartnersWithMainAddressByPartnerRequest(o)},t=>this.s_partnerCore.getPartnersWithMainAddress([t],[]).pipe((0,c.T)(n=>n?.length?n[0]:null)),t=>this.formatPartner(t)),this.o_partnerCertPeOptions=k.Z.getOptionValuesForTypeahead(this.o_partnerCertPeTypeahead,this.s_uiObjectHelper.uiObjValueAsNumberIfExecute(this.uiConfig.logicalConfIndex[this.guid+"_partnerCertPe_optionsFilterXDSid"]),this.s_uiObjectHelper.uiObjValueAsNumberIfExecute(this.uiConfig.logicalConfIndex[this.guid+"_partnerCertPe_maxOptions"]),this.o_enquiry.pipe((0,f.n)(t=>t.o_partnerCertPeSid)),(t,n,s)=>{let o=new re.W;return o.filterXDSid=s,o.numberOfDS=n,o.partnerOrAddressName=t,this.s_partnerCore.getPartnersWithMainAddressByPartnerRequest(o)},t=>this.s_partnerCore.getPartnersWithMainAddress([t],[]).pipe((0,c.T)(n=>n?.length?n[0]:null)),t=>this.formatPartner(t)),this.o_userExecOptions=k.Z.getOptionValuesForTypeahead(this.o_userExecTypeahead,this.s_uiObjectHelper.uiObjValueAsNumberIfExecute(this.uiConfig.logicalConfIndex[this.guid+"_userExec_optionsFilterXDSid"]),this.s_uiObjectHelper.uiObjValueAsNumberIfExecute(this.uiConfig.logicalConfIndex[this.guid+"_userExec_maxOptions"]),this.o_enquiry.pipe((0,f.n)(t=>t.o_userExecSid)),(t,n,s)=>{let o=new Ve.p;return o.filterXDSid=s,o.numberOfDS=n,o.usernameSearch=t,this.s_userCore.getUsers(o)},t=>{let n=new Ve.p;return n.identifiers=[new qt.X({sid:t})],this.s_userCore.getUsers(n).pipe((0,c.T)(s=>s?.length?s[0]:null))},t=>t?.username),this.o_groupExecOptions=k.Z.getOptionValuesForTypeahead(this.o_groupExecTypeahead,this.s_uiObjectHelper.uiObjValueAsNumberIfExecute(this.uiConfig.logicalConfIndex[this.guid+"_groupExec_optionsFilterXDSid"]),this.s_uiObjectHelper.uiObjValueAsNumberIfExecute(this.uiConfig.logicalConfIndex[this.guid+"_groupExec_maxOptions"]),this.o_enquiry.pipe((0,f.n)(t=>t.o_groupExecSid)),(t,n,s)=>{let o=new Le.B;return o.filterXDSid=s,o.numberOfDS=n,o.nameSearch=t,this.s_userCore.getGroupsByRequest(o)},t=>{let n=new Le.B;return n.groupSids=[t],this.s_userCore.getGroupsByRequest(n).pipe((0,c.T)(s=>s?.length?s[0]:null))},t=>t.name),this.o_enquiryFlowParentOptions=this.o_enquiryFlowParentTypeahead.pipe((0,B.E)((0,m.z)([this.s_uiObjectHelper.uiObjValueAsNumberIfExecute(this.uiConfig.logicalConfIndex[this.guid+"_enquiryFlowParent_maxOptions"]),this.s_uiObjectHelper.uiObjValueAsNumberIfExecute(this.uiConfig.logicalConfIndex[this.guid+"_enquiryFlowParent_optionsFilterXDSid"])])),(0,f.n)(([t,[n,s]])=>{if(!t)return(0,_.of)([]);let o=new At.r;return o.name=t,o.numberOfDS=n,o.filterXDSid=s,this.s_enquiryCore.getEnquiries(o)}),(0,c.T)(t=>k.Z.getSortedOptionValues(t)),(0,S.t)(1)),this.o_enqState=this._enquiry.pipe((0,f.n)(t=>this.s_commonEnqStateCore.getEnqStates([t.enqStateSid]).pipe((0,c.T)(n=>n?.length?n[0]:null)))),this.o_partnerExecPe=this.o_selectedPartnerExecPeSid.pipe((0,E.Q)(this._destroyEvent),(0,I.F)(),(0,f.n)(t=>t?this.s_partnerCore.getPartnersWithMainAddress([t]):(0,_.of)(null)),(0,c.T)(t=>t&&t[0]),(0,S.t)({refCount:!0,bufferSize:1})),this.o_partnerCertPe=this.o_selectedPartnerCertPeSid.pipe((0,E.Q)(this._destroyEvent),(0,I.F)(),(0,f.n)(t=>t?this.s_partnerCore.getPartnersWithMainAddress([t]):(0,_.of)(null)),(0,c.T)(t=>t&&t[0]),(0,S.t)({refCount:!0,bufferSize:1})),this.o_creatorName=this._enquiry.pipe((0,f.n)(t=>
1this.s_partnerCore.getPartnersWithMainAddressByPartnerRequest(new re.W({userSid:t.userCreateSid})).pipe((0,f.n)(n=>n?.length?this.formatPartner(n[0]):(0,_.of)(null))))),this.o_saveAllowed=this.getSaveAllowed().pipe((0,E.Q)(this._destroyEvent),(0,S.t)(1))}initFormGroup(t){let n=new Et.S(this.uiConfig,t);return n.setControl(t,new bt.f({showNotEditableControls:"output"})),n.setControl(t+"_sid",new ae.Y({o_value:this._enquiry.pipe((0,c.T)(s=>s?.sid?.toString()))})),n.setControl(t+"_origSid",new ae.Y({o_value:this._enquiry.pipe((0,c.T)(s=>s?.enquiryOrigSid?.toString()))})),n.setControl(t+"_state",new ae.Y({o_value:this.o_enqState.pipe((0,c.T)(s=>s.name))})),n.setControl(t+"_creator",new ae.Y({o_value:this.o_creatorName})),n.setControl(t+"_campaignPos",new Y.L({o_value:this._enquiry.pipe((0,c.T)(s=>s?.campaignPosSid)),o_options:this.o_campaignPos,virtualScroll:!0})),n.setControl(t+"_coPos",new Y.L({o_value:this._enquiry.pipe((0,c.T)(s=>s?.coPosSid)),o_options:this.o_coPos,virtualScroll:!0,extendedSearch:!0,showGroupLabelInItem:!0})),n.setControl(t+"_partner",new Y.L({o_value:this.o_selectedPartnerSid,o_options:this.o_partnerOptions,typeahead:this.o_partnerTypeahead})),n.get(t+"_partner").manualValueChanges.pipe((0,E.Q)(this._destroyEvent)).subscribe(s=>this._selectedPartnerSid.next(s)),n.setControl(t+"_groupExec",new Y.L({o_value:this._enquiry.pipe((0,c.T)(s=>s?.groupExecSid)),o_options:this.o_groupExecOptions,typeahead:this.o_groupExecTypeahead})),n.setControl(t+"_userExec",new Y.L({o_value:this._enquiry.pipe((0,c.T)(s=>s?.userExecSid)),o_options:this.o_userExecOptions,typeahead:this.o_userExecTypeahead})),n.setControl(t+"_partnerExecPe",new Y.L({o_value:this.o_selectedPartnerExecPeSid,o_options:this.o_partnerExecPeOptions,typeahead:this.o_partnerExecPeTypeahead})),n.get(t+"_partnerExecPe").manualValueChanges.pipe((0,E.Q)(this._destroyEvent)).subscribe(s=>this._selectedPartnerExecPeSid.next(s)),n.setControl(t+"_partnerCertPe",new Y.L({o_value:this.o_selectedPartnerCertPeSid,o_options:this.o_partnerCertPeOptions,typeahead:this.o_partnerCertPeTypeahead})),n.get(t+"_partnerCertPe").manualValueChanges.pipe((0,E.Q)(this._destroyEvent)).subscribe(s=>this._selectedPartnerCertPeSid.next(s)),n.setControl(t+"_enquiryFlowParent",new Tt({o_value:this.o_enquiryFlowParents.pipe((0,c.T)(s=>s.map(o=>o?.enquiryParentSid))),o_options:this.o_enquiryFlowParentOptions,typeahead:this.o_enquiryFlowParentTypeahead,o_currentOptions:this.o_enquiryFlowParents.pipe((0,c.T)(s=>s.map(o=>new k.Z(o.enquiryParentSid,o.enquiryParent?.name))))})),n.setControl(t+"_toggleDetails",new St.s({class:"fab-ui-button secondary size-sm",execFunction:this.changeForms.bind(this)})),n}changeForms(){this.setEnquiryDataFromForm(this.enquiry).subscribe(()=>{this.detailsVisible=!this.detailsVisible})}ngOnInit(){this.initVariables(),this.enquiryForm=this.initFormGroup(this.enquiryGuid),this.enquiryDetailsForm=this.initFormGroup(this.enquiryDetailsGuid),this.uiConfig.confIndex[this.guid+"_tabset_tab_data"].visible.valueAsObservable.pipe((0,E.Q)(this._destroyEvent)).subscribe(t=>{["sid","origSid","state","creator"].forEach(n=>{t&&(this.uiConfig.confIndex[`${this.guid}_${n}`].visible.value=!t,this.uiConfig.confIndex[`${this.guid}_details_${n}`].visible.value=!t)})}),this.o_enquiry.pipe((0,E.Q)(this._destroyEvent)).subscribe(t=>{let n;t&&t.enqPartJobs&&t.enqPartJobs.length&&(n=t.enqPartJobs[0].jobSid),n!=this.uiConfig.getKeyValueStateByKey("jobSid")?.value&&this.uiConfig.setStateValue("jobSid",n)})}ngOnChanges(t){0!=(0,qe.FF)(Object.keys(t),"inputPartnerSid","enqPropFilterValues").length&&(this.isLoaded=!1,this.initLoadSubscription&&(this.subscriptions.splice(this.subscriptions.indexOf(this.initLoadSubscription)),this.initLoadSubscription.unsubscribe()),this.initLoadSubscription=this.loadEnquiry().pipe((0,U.p)(Boolean),(0,f.n)(this.loadQuestionnaire.bind(this))).subscribe(()=>{this.isLoaded=!0,this.cd.markForCheck()}),this.subscriptions.push(this.initLoadSubscription))}loadEnquiry(){return(this.enquirySid||this.enquiryOrigSid||this.enquiryOrigRowGuid?this.getExistingEnquiry():this.getNewEnquiry()).pipe((0,f.n)(s=>this.s_enquiryContentLoader.prepareEnquiry(s,{inputPartnerSid$:this._inputPartnerSid.asObservable(),partnerExecSid:this.partnerExecSid,partnerRespSid:this.partnerRespSid,contactSid:this.contactSid,adressBaseSid:this.adressBaseSid,campaignSid:this.campaignSid,contractSid:this.contractSid,jobSid:this.jobSid,jobBatchGrpSid:this.jobBatchGrpSid,o_enqPropFilterValues:this._enqPropFilterValues.asObservable()})),(0,c.T)(s=>{if(s?.enquiry)return this.enquiry=s.enquiry,this.loadCampaign(),s.questionnaireParams}))}loadQuestionnaire(t){return this.s_enquiryContentLoader.loadQuestionnaire(t,this.o_selectedPartnerSid.pipe((0,w.M)(()=>{this.isLoaded=!1}))).pipe((0,f.n)(n=>(this.epQuestionnaire=n,this.initQuestionnaireTabOnce(),this.epQuestionnaire?this.handleQuestionnaireEvents():(0,_.of)(void 0))))}handleQuestionnaireEvents(){return(0,D.h)(this.epQuestionnaire.maxFileSizeExceededEvents.pipe((0,f.n)(()=>{let t=this.s_routing.getCMSModuleParamValByIncoming(!0,"attachmentMaxError");return t&&t.cmsInfoSid?(0,_.of)(t.cmsInfo):T.t}),(0,w.M)(t=>{Array.isArray(t)&&1==t.length&&this.s_notification.set(t[0].getNotification(),!0)})),this.epQuestionnaire.epPortalsuccessorEvents.pipe((0,w.M)(t=>{t instanceof pe.pd&&this.save(t.activityFlowPosSid)}))).pipe((0,b.w)(),(0,L.Z)(void 0))}getExistingEnquiry(){return(0,m.z)([this.o_initWithJobs.pipe((0,f.n)(t=>this.s_enquiryContentLoader.loadExistingEnquiry({enquirySid:this.enquirySid,enquiryOrigSid:this.enquiryOrigSid,enquiryOrigRowGuid:this.enquiryOrigRowGuid},t))),this.uiConfig.logicalConfIndex[this.guid+"_showErrorMsgOnEnquiryNotFound"].execute.valueAsObservable]).pipe((0,w.M)(([t,n])=>{!t&&!0===n&&this.displayErrorNotification()}),(0,c.T)(([t])=>t))}displayErrorNotification(){this.s_translate.get("error.noEnquiryFound").subscribe(t=>{this.s_notification.error("",t)})}getNewEnquiry(){return this.getDefaultPartnerSid().pipe((0,f.n)(t=>{const n=(this.enqPartJobIdents?.length?this.enqPartJobIdents:[new ze(this.jobSid,this.jobBatchSid,this.jobBatchGrpSid)]).map(s=>({jobSid:s.jobSid,jobBatchSid:s.jobBatchSid,jobBatchGrpSid:s.jobBatchGrpSid}));return this.s_enquiryData.getEnquiryContainer({defaultDataEnquiryContainer:{enquiry:{partnerSid:t},enqPartJobs:n},loadDefaultData:!0,loadEnqPartJobs:!0,loadActivityFlowPos:!0,loadAnswers:!0}).pipe((0,c.T)(([s])=>s),(0,f.n)(s=>this.o_initWithJobs.pipe((0,f.n)(o=>this.s_enquiryContentLoader.initEnquiry(s,o)))))}),(0,c.T)(t=>(t&&this.altId1&&(t.altId1=this.altId1),t)))}getDefaultPartnerSid(){return this.getPartnerSidFromEmployerStore().pipe(oe.R.switchMapIfNull(()=>this.getPartnerSidFromUserStore()),oe.R.switchMapIfNull(()=>this._inputPartnerSid),oe.R.switchMapIfNull(()=>this.getPartnerSidFromLfbis()),oe.R.switchMapIfNull(()=>this.getPartnerFallbackSid()))}getPartnerSidFromEmployerStore(){return this.uiConfig.logicalConfIndex[this.guid+"_partner
1SidFromEmployerStore"].execute.valueAsObservable.pipe((0,I.F)(),(0,f.n)(t=>t?this.s_employerStore.employerAsObservable:(0,_.of)(void 0)),(0,c.T)(t=>t?.sid))}getPartnerSidFromUserStore(){return this.uiConfig.logicalConfIndex[this.guid+"_partnerSidFromUserStore"].execute.valueAsObservable.pipe((0,I.F)(),(0,f.n)(t=>t?this.s_userStore.o_user:(0,_.of)(void 0)),(0,c.T)(t=>t?.partnerSid))}getPartnerSidFromLfbis(){return this.partnerLfbis?this.s_partnerCore.checkPartner(new Ot.A({lfbisCode:this.partnerLfbis})):(0,_.of)(void 0)}getPartnerFallbackSid(){return this.s_uiObjectHelper.uiObjValueAsNumberIfExecute(this.uiConfig.logicalConfIndex[this.guid+"_partnerFallback"])}loadCampaign(){this.enquiry&&this.enquiry.campaignSid&&this.s_campaign.getCampaigns(new Mt({identifiers:[{campaignSid:this.enquiry.campaignSid}],loadChildCampaigns:!0})).subscribe(t=>{if(t&&1==t.length){this.enquiry.campaigns=t;let n=this.enquiry.campaigns[0].getAllCampaigns();this.s_campaign.getCampaignWithCampaignTypes(n).subscribe(),this.enquiry.sid&&this.s_campaignCore.getCampaignUsages(this.enquiry.sid).pipe((0,c.T)(s=>(n.forEach(o=>{o.campaignUsage=s.find(l=>l.campaignSid==o.sid)}),n))).subscribe()}})}validateCampaignRegistered(){return this.uiConfig.logicalConfIndex[this.guid+"_validate_registeredForCampaign"].execute.valueAsObservable.pipe((0,P.$)(),(0,c.T)(t=>{let n=!0;if(t&&this.enquiry.hasCampaings()){let s=this.enquiry.getRegisteredCampaigns();(!s||0==s.length)&&(n=!1)}return n}))}getEnquiryContainer(t){return this.uiConfig.logicalConfIndex[this.guid+"_preSaveQuestionnaireAttachments"].execute.valueAsObservable.pipe((0,P.$)(),(0,f.n)(n=>{const s=n?this.s_enqProperty.generateAnswerContainerWithPreSavedAttachments(this.epQuestionnaire):this.s_enqProperty.generateAnswerContainer(this.epQuestionnaire);return(0,m.z)([s,this.setEnquiryDataFromForm(this.enquiry).pipe((0,f.n)(()=>this.setEnquiryFlows()),(0,f.n)(()=>this.validateCampaignRegistered()),(0,P.$)()),this.getCRMAddressCont(),this._enquiry.asObservable(),this.uiConfig.logicalConfIndex[this.guid+"_openLastGenEnq"].execute.valueAsObservable,this.s_urlParameter.o_queryParams]).pipe((0,P.$)(),(0,c.T)(([o,l,u,g,C,N])=>{if(this.enquiry.answerContainer=o,l)return t||C?(this.enquiry.additionalSaveData||(this.enquiry.additionalSaveData=new Pt.R),this.enquiry.additionalSaveData.openLastGenEnq=C,this.enquiry.additionalSaveData.activityFlowPosToExecuteSid=t,this.enquiry.additionalSaveData.queryParams=N):this.enquiry.additionalSaveData&&(this.enquiry.additionalSaveData.openLastGenEnq=void 0,this.enquiry.additionalSaveData.activityFlowPosToExecuteSid=void 0,this.enquiry.additionalSaveData.queryParams=void 0),g.setPlaceholder("sid","enquiry_sid"),u?.sid&&(g.crmAdressContSid=u.sid),this.enquiry=g,we.N.fromEnquiry(g);this.s_notification.error("",this.s_translate.instant("error.validate.registeredForCampaign"))}))}))}getCRMAddressCont(){return this.uiConfig.logicalConfIndex[this.guid+"_useLoggedInPartnerAsContactPartner"].execute.valueAsObservable.pipe((0,f.n)(t=>t&&this.s_userStore.coreUser?.partnerSid?this.s_partnerCore.getPartnerAddress([this.s_userStore.coreUser.partnerSid],void 0).pipe((0,f.n)(n=>n&&n.length>0?(0,_.of)(n[0]):this.s_partnerAddressStore.o_partnerAddress)):this.s_partnerAddressStore.o_partnerAddress))}updateEnquiry(t){!t||!(t instanceof we.N)||(this.saved.emit(),this.o_initWithJobs.pipe((0,f.n)(n=>this.s_enquiryContentLoader.initEnquiry(t.getExtendedEnquiry(),n)),(0,P.$)(),(0,E.Q)(this._destroyEvent)).subscribe(n=>{if(!n)return;this.enquiry=n,this.s_enqProperty.enqPartJobs=this.enquiry?.enqPartJobs?.length?this.enquiry.enqPartJobs:[];let s=null;if(this.enquiry.enqPartJobs.length&&(s=this.enquiry.enqPartJobs[0].tempId),this.enquiry.additionalSaveData&&this.enquiry.additionalSaveData.attachments&&1==this.enquiry.additionalSaveData.attachments.length){let l=this.enquiry.additionalSaveData.attachments[0];l.signoTecAccessQRCodeURL?.length||l.signoTecAccessURL?.length?(this.s_signoSignViewer.initSignoSignAttachment(l,!0,l.signoTecAccessQRCodeURL&&!l.autoNavigation),this.s_signoSignViewer.allSignaturesSigned.pi
1pe((0,P.$)()).subscribe(u=>{(0,m.z)([this.s_uiObjectHelper.uiObjValueAsNumberIfExecute(this.uiConfig.logicalConfIndex[this.guid+"_enqStateSidToSetAfterDocumentSigned"]),this.s_uiObjectHelper.uiObjValueAsNumberIfExecute(this.uiConfig.logicalConfIndex[this.guid+"_activityFlowPosSidToExecuteAfterDocumentSigned"])]).pipe((0,P.$)(),(0,E.Q)(this._destroyEvent)).subscribe(([C,N])=>{C&&this.enquiry?.enqStateSid!=C?(this.enquiry.enqStateSid=C,this.save()):N&&this.save(N)});let g=Dt.r.empty();g.sid=u,this.s_attachment.openAttachment(g,!0),this.cd.markForCheck()})):this.s_attachment.openAttachment(this.enquiry.additionalSaveData.attachments[0],!0)}this.s_enqProperty.updateAnswers(this.epQuestionnaire,this.enquiry.answerContainer,s);let o=this.enquiry.additionalSaveData&&this.enquiry.additionalSaveData.getFlattenedResponses().filter(l=>l.msgType==q.u.MSGTYPE.ATTENTION);if(o&&o.length&&(0,m.z)(o.map(l=>l.getNotification(this.s_translate))).subscribe(l=>{l.forEach(u=>u&&this.s_notification.set(u,!0))}),this.uiConfig.logicalConfIndex[this.guid+"_setTimeoutForFormSuccess"].defaultValue.valueAsObservable.pipe((0,P.$)()).subscribe(l=>{const u=this.successCmsInfoParamName||"successNotificationCmsInfoSid";this.s_cmsModuleParamValStore.getCMSModuleParamValByIncoming(!0,u)?.cmsInfoSid&&this.s_cmsInfoNotifications.setModuleParamAsNotification(u,{timeOut:+l})}),this.enquiry&&this.enquiry.additionalSaveData&&null!=this.enquiry.additionalSaveData.enquirySidToOpen){let l={enquirySid:this.enquiry.additionalSaveData.enquirySidToOpen.toString()};this.s_routing.routeToCmsMenu(this.s_currentCMSMenu?.getCurrentCMSMenu(),l)}else if(this.enquiry?.additionalSaveData?.cmsMenuSidToOpen){let l={};this.enquiry.additionalSaveData.routingParams&&this.enquiry.additionalSaveData.routingParams.forEach(u=>{l[u.key]=u.value}),this.s_routing.routeToCmsMenu(this.s_cmsMenu.getCMSMenu(this.enquiry.additionalSaveData.cmsMenuSidToOpen),l)}else this.enquiry?.additionalSaveData?.externalUrlToOpen?window.open(this.enquiry.additionalSaveData.externalUrlToOpen,this.enquiry.additionalSaveData.externalUrlTarget):this.s_routing.routeToCmsMenuDestByParamName("successCmsMenuSid")}))}setErrors(t){this.epQuestionnaire.setErrors(t.flatten().filter(n=>n.identifiers&&"EnqPropHierarchy.SID"in n.identifiers))}validate(){this.epQuestionnaire&&this.s_enqProperty.validateQuestionnaire(this.epQuestionnaire).pipe((0,P.$)()).subscribe()}save(t){this._isSaveing.next(!0),this.getEnquiryContainer(t).pipe((0,P.$)(),(0,f.n)(n=>this.validateDeviationPossActions(n)?this.custSaveFunction?this.custSaveFunction(n):this.s_commonGenericCore.saveContainers([n]).pipe((0,c.T)(s=>s[0])):j.w)).subscribe(n=>{this._isSaveing.next(!1),this.epQuestionnaire.clearErrors(),n&&this.updateEnquiry(n)},n=>{this._isSaveing.next(!1),this.setErrors(n)})}validateDeviationPossActions(t){const n=t?.answerContainer?.getAnswerGrpBatches?.()??[];for(const s of n)for(const o of s?.getEnqPropResults?.()??[])for(const l of o?.enqPropResultDevs??[]){if(!l||q.u.recordStateDelete(l.recordStateSid))continue;const u=null!=l.possActionSid||!!l.freeActionDesc?.trim();if(!0===l.deviation?.possActionReq&&!u){const g=l.deviation?.name??"",N=this.epQuestionnaire.getEpRenderElementByEPHSid(o.enqPropHierarchySid)?.enqProperty?.question??"";this.s_notification.error("",this.s_translate.instant("error.validate.possActReq",{0:g,1:N}));let X=new Nt._(void 0,"error.validate.possActRequired",[g],q.u.MSGTYPE.ERROR,!0);return X.identifiers={"EnqPropHierarchy.SID":String(o.enqPropHierarchySid)},this.setErrors(X),!1}}return!0}initQuestionnaireTabOnce(){if(this.questionnaireTabInitialized)return;const t=this.uiConfig.confIndex[`${this.guid}_tabset_tab_data`]?.visible?.valueAsObservable;t&&t.pipe((0,P.$)(),(0,E.Q)(this._destroyEvent)).subscribe(n=>{n&&!this.questionnaireTabInitialized&&(this.s_epQuestionnaireInit.initEnqPropQuestionnaire(this.uiConfig,this.guid+"_questionnaires",this.o_epQuestionnaire,this.cd,this.subscriptions),this.questionnaireTabInitialized=!0)})}getCurrentFormValue(){return this.detailsVisible?this.enquiryDetailsForm:this.enquiryForm}setEnquiryDataFromForm(t){return this.getCurrentFormValue().visibleFormControlValue.pipe((0,P.$)(),(0,c.T)(n=>{n?.hasOwnProperty("campaignPos")&&(t.campaignPosSid=n.campaignPos),n?.hasOwnProperty("coPos")&&(t.coPosSid=n.coPos),n?.hasOwnProperty("partner")&&(t.partnerSid=n.partner),n?.hasOwnProperty("partnerExecPe")&&(t.partnerExecPeSid=n.partnerExecPe),n?.hasOwnProperty("partnerCertPe")&&(t.partnerCertPeSid=n.partnerCertPe),n?.hasOwnProperty("groupExec")&&(t.groupExecSid=n.groupExec),n?.hasOwnProperty("userExec")&&(t.userExecSid=n.userExec)}))}setEnquiryFlows(){let t=this.getCurrentFormValue().get((this.detailsVisible?this.enquiryDetailsGuid:this.enquiryGuid)+"_enquiryFlowParent");return t.combinedVisible.pipe((0,f.n)(n=>n?this.o_enquiryFlowParents.pipe((0,c.T)(s=>{let o=t.currentControlValue,l=[];for(let u of o)if(!s.find(g=>g.enquiryParentSid==u)){let g=Rt.V.empty();g.enquiryParentSid=u,l.push(g)}
1for(let u of s)o.includes(u.enquiryParentSid)||(u.recordStateSid=q.u.RECORD_STATE_DELETE_SID,l.push(u));this.enquiry.enquiryFlows=l})):(0,_.of)(void 0)))}navigateBack(){this.uiConfig.logicalConfIndex[this.guid+"_cancelButtonNavigationCMSMenuSid"].defaultValue.valueAsObservable.pipe((0,P.$)()).subscribe(t=>{t&&!isNaN(t)?this.s_routing.routeToCmsMenuSid(+t):this.s_routing.routeToCmsMenuSid(this.s_cmsMenu.getCMSMenuHomeSid())})}navigateToJSF(t){return this.navigateToJSFAsync((0,_.of)(t))}navigateToJSFAsync(t){t.pipe((0,P.$)(),(0,f.n)(n=>n?this.s_jsfNavigation.getEnquiryNavigation(n):j.w)).subscribe(n=>this.s_jsfNavigation.navigateToJSF(n))}get o_initWithJobs(){return this.uiConfig.confIndex[this.guid+"_questionnaires_deviation"].visible.valueAsObservable.pipe((0,P.$)())}get enquiryGuid(){return this.guid}get enquiryDetailsGuid(){return this.guid+"_details"}get epQuestionnaire(){return this._epQuestionnaire.getValue()}set epQuestionnaire(t){this._epQuestionnaire.next(t)}getSaveAllowed(){return this.o_enquiry.pipe((0,c.T)(t=>{let n=t?.sid?q.u.ROLE_ENQUIRY_EDIT:q.u.ROLE_ENQUIRY_CREATE;return!!this.sessionInfo?.hasRole(n)}),(0,I.F)())}static{this.\u0275fac=function(n){return new(n||i)(e.rXU(d.c$),e.rXU(Bt.B),e.rXU(A.gRc),e.rXU(jt.C),e.rXU(wt.x),e.rXU(Ut.I),e.rXU(Lt.N),e.rXU(Vt.R),e.rXU($t.F),e.rXU(Xt.O),e.rXU(Yt),e.rXU(He),e.rXU(Je.O),e.rXU(zt.V),e.rXU(Zt.Z),e.rXU(en.n),e.rXU(tn.w),e.rXU(R.ENQUIRY_ENVIRONMENT),e.rXU(nn.X),e.rXU(sn.d),e.rXU(an.a),e.rXU(rn.s),e.rXU(on.V),e.rXU(dn.X),e.rXU(ln.C),e.rXU(cn.J),e.rXU(un.B),e.rXU(hn.k),e.rXU(pn.r),e.rXU(_n.k),e.rXU(fn),e.rXU(gn.l),e.rXU(mn.i),e.rXU(vn.l))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["fab-enquiry-content"]],hostAttrs:[1,"fab-ui-component","no-inner-scroll"],inputs:{inputPartnerSid:[0,"partnerSid","inputPartnerSid"],jobSid:"jobSid",jobBatchSid:"jobBatchSid",jobBatchGrpSid:"jobBatchGrpSid",enquirySid:"enquirySid",enquiryOrigSid:"enquiryOrigSid",partnerExecSid:"partnerExecSid",partnerRespSid:"partnerRespSid",contactSid:"contactSid",adressBaseSid:"adressBaseSid",campaignSid:"campaignSid",partnerLfbis:"partnerLfbis",enquiryOrigRowGuid:"enquiryOrigRowGuid",altId1:"altId1",enqPartJobIdents:"enqPartJobIdents",custSaveFunction:"custSaveFunction",sessionInfo:"sessionInfo",enqPropFilterValues:"enqPropFilterValues",successCmsInfoParamName:"successCmsInfoParamName",contractSid:"contractSid"},outputs:{saved:"saved"},standalone:!1,features:[e.Jv_([{provide:R.ENQUIRY_ENVIRONMENT,useValue:{}},{provide:Xe.S,deps:[i],useFactory:t=>t.guid+"_questionnaires"}]),e.Vt3,e.OA$],ngContentSelectors:Gn,decls:5,vars:4,consts:[["enquiryData",""],["selectedJobNames",""],["paymentFrame",""],["mode","indeterminate",4,"ngIf"],[4,"ngIf"],["mode","indeterminate"],["class","fab-ui-component-header",4,"fabGuid"],[1,"fab-ui-component-footer","sticky","button-group","size-sm",3,"isRequesting"],["fabUIButton","",3,"size","appearance","click",4,"fabGuid","fabGuidIf"],["fabUIButton","",3,"size","appearance","click",4,"ngIf"],["class","btn btn-default btn-sm fab-ui-button tertiary size-sm icon-only",3,"disabled","click",4,"fabGuid"],["fabUIButton","",3,"size","appearance","click",4,"fabGuid"],["class","fab-ui-activity-flows size-sm",3,"guid","activityFlowPos","sessionInfo","executeActivityFlowPos",4,"fabGuid","fabGuidIf"],["id","paymentModal","class","paymentModal fab-ui-modal",4,"ngIf"],[1,"fab-ui-component-header"],[1,"header-icon"],[1,"fab-ui-icon-certificate-01"],[1,"header-left"],["class","fab-ui-component-header-title",4,"fabGuid"],["class","fab-ui-component-header-data",4,"fabGuid"],["class","fab-ui-component-header-description",4,"fabGuid"],[1,"fab-ui-component-header-title"],[1,"title"],["fabUIBadge","","size","sm","shape","pill",3,"color"],["class","fab-ui-component-header-subtitle",4,"fabGuid"],[1,"fab-ui-component-header-subtitle"],[1,"subtitle"],[1,"fab-ui-component-header-data"],[4,"fabGuid"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"fab-ui-component-header-description"],["class","fab-ui-component-header-description-item",4,"fabGuid"],[1,"fab-ui-component-header-description-item"],["fabUIBadge","","shape","none","iconBefore","hash","type","icon"],["fabUIBadge","","shape","none","iconBefore","user","type","icon"],["fabUIBadge","","shape","none","iconBefore","award-01","type","icon"],[1,"enquiry-data","fab-ui-card"],[3,"campaigns",4,"ngIf"],[3,"jobSid",4,"fabGuid"],[3,"uiConfigFormGroup","editMode","editModeChangeable",4,"fabGuid","fabGuidIf"],[3,"campaigns"],[3,"jobSid"],["class","enquiry-selected-job-names",4,"fabGuid","fabGuidIf"],[1,"enquiry-selected-job-names"],[4,"fabGuid","fabGuidIf"],[3,"uiConfigFormGroup","editMode","editModeChangeable"],[1,"fab-ui-component-header-data-badges"],["fabUIBadge","","shape","pill",1,"badge","badge-secondary",3,"color"],[1,"fab-ui-tabset","fab-ui-component-content",3,"ngClass"],["tabHeading",""],[4,"ngTemplateOutlet"],[4,"ngFor","ngForOf"],["class","ep-question-text",4,"fabGuid"],[1,"ep-question-text"],[3,"epRenderElement"],[1,"ep-question-text",3,"innerHTML"],[3,"guid","epQuestionnaire"],["fabUIButton","",3,"click","
1size","appearance"],[1,"btn","btn-default","btn-sm","fab-ui-button","tertiary","size-sm","icon-only",3,"click","disabled"],[1,"fa","fa-external-link"],["class","btn btn-default btn-sm fab-ui-button tertiary size-sm icon-only",3,"disabled","click",4,"fabGuid","fabGuidIf"],[3,"class",4,"fabGuid"],[1,"fab-ui-activity-flows","size-sm",3,"executeActivityFlowPos","guid","activityFlowPos","sessionInfo"],["id","paymentModal",1,"paymentModal","fab-ui-modal"],[1,"modal-content"],["data-hj-allow-iframe","true",2,"width","100%","border","0px","height","100%",3,"src"]],template:function(n,s){1&n&&(e.NAR(),e.DNE(0,Bn,1,0,"mat-progress-bar",3),e.nI1(1,"async"),e.EFF(2,"\n"),e.DNE(3,Ri,39,28,"ng-container",4),e.EFF(4,"\n")),2&n&&(e.Y8G("ngIf",e.bMT(1,2,s.o_isLoading)),e.R7$(3),e.Y8G("ngIf",s.isLoaded))},dependencies:()=>[V.YU,V.Sq,V.bT,V.T3,Xe.x,yn.g,Cn.B,Dn,In.e,Mn.l,On.d,Rn.s,Ge.HM,de.fw,de.V6,de.Bh,Ke.e,$e.p,V.Jj,An.m,Nn.g],encapsulation:2,changeDetection:0})}}return i})(),Gi=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=e.$C({type:i})}static{this.\u0275inj=h.G2t({imports:[V.MD,d.h,_e.m,y.y,pt,_t.G,ft.v,gt.o,mt.a,vt.I,yt.MQ,v.YN,Ct.S,Ge.PO,de.fw,Ke.J,$e.U]})}}return i})();class ze{constructor(a,t,n){this.jobSid=a,this.jobBatchSid=t,this.jobBatchGrpSid=n}}},95604:(Q,O,r)=>{r.d(O,{d:()=>w});var e=r(84412),d=r(23294),p=r(5964),x=r(96354),_=r(89348),m=r(99898),D=r(25558),T=r(23911),b=r(73664),j=r(51701),I=r
1(72200),c=r(54157);let w=(()=>{class E extends T.u{set jobSid(S){this._jobSid.next(S)}constructor(S){super(),this.s_jobCore=S,this._jobSid=new e.t(null),this.o_job=this._jobSid.pipe((0,d.F)(),(0,p.p)(B=>!!B),(0,D.n)(B=>this.s_jobCore.getJobsCached([B],!0).pipe((0,x.T)(U=>{if(U&&U.length)return U[0]}))),(0,_.H)(1),(0,m.B)())}static{this.\u0275fac=function(B){return new(B||E)(b.rXU(j.i))}}static{this.\u0275cmp=b.VBU({type:E,selectors:[["fab-job-help-text"]],inputs:{jobSid:"jobSid"},standalone:!1,features:[b.Vt3],decls:4,vars:5,consts:[[3,"innerHTML"]],template:function(B,U){if(1&B&&(b.nrm(0,"div",0),b.nI1(1,"async"),b.nI1(2,"trustHtml"),b.EFF(3,"\n")),2&B){let L;b.Y8G("innerHTML",b.bMT(2,3,null==(L=b.bMT(1,1,U.o_job))?null:L.helpTextHTML2),b.npT)}},dependencies:[I.Jj,c.g],encapsulation:2})}}return E})()}}]);

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.